doctor-admin-components 1.0.14-beta.3 → 1.0.14-beta.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
  * @Author: zhangpengwei 15038779532@163.com
3
3
  * @Date: 2023-07-24 15:11:26
4
4
  * @LastEditors: zhangpengwei@1338418459736990.onaliyun.com zhangpengwei@1338418459736990.onaliyun.com
5
- * @LastEditTime: 2024-07-25 18:01:56
5
+ * @LastEditTime: 2024-07-29 18:10:31
6
6
  * @FilePath: /doctor-admin-components/README.md
7
7
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE1
8
8
  -->
@@ -85,3 +85,6 @@ VDistpicker
85
85
  ```
86
86
 
87
87
  https://npmmirror.com/package/doctor-admin-components/versions?
88
+
89
+
90
+ npm config set proxy http://127.0.0.1:7890
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "doctor-admin-components",
3
3
  "version1": "1.0.11",
4
- "version": "1.0.14-beta.3",
4
+ "version": "1.0.14-beta.30",
5
5
  "private": false,
6
6
  "main1": "lib/index.umd.min.js",
7
7
  "main": "packages/index.js",
package/packages/index.js CHANGED
@@ -21,7 +21,6 @@ import plugins from "./src/plugins";
21
21
  // import VueI18n from 'vue-i18n'
22
22
  // Vue.use(plugins)
23
23
  // Vue.use(VueI18n)
24
-
25
24
  import {
26
25
  parseTime,
27
26
  resetForm,
@@ -1130,3 +1130,13 @@ export function editReferenceNo(data) {
1130
1130
  data: data,
1131
1131
  });
1132
1132
  }
1133
+
1134
+
1135
+ // 获取第二通知人
1136
+ export function getSecondNotifyInfo(query) {
1137
+ return request({
1138
+ url: "/biz/contract/getSecondNotifyInfo",
1139
+ method: "get",
1140
+ params: query,
1141
+ });
1142
+ }
@@ -155,4 +155,33 @@ export function getDraft(contractId) {
155
155
  contractId
156
156
  }
157
157
  })
158
- }
158
+ }
159
+
160
+
161
+
162
+ // 保存草稿
163
+ export function containerEditBatch(data) {
164
+ return request({
165
+ url: '/biz/container/editBatch',
166
+ method: 'put',
167
+ data
168
+ })
169
+ }
170
+
171
+
172
+ // 保存草稿
173
+ export function deductionRecords(data) {
174
+ return request({
175
+ url: `biz/shipment/deposit/deduction/record/${data.shipmentId}`,
176
+ method: 'get',
177
+ data:{}
178
+ })
179
+ }
180
+ // 更新 eta更新时间
181
+ export function refreshUpdateTime(data) {
182
+ return request({
183
+ url: '/biz/shipment/refreshUpdateTime',
184
+ method: 'put',
185
+ data: data
186
+ })
187
+ }
@@ -32,18 +32,35 @@ export function batchAsZip(fileList, zipName) {
32
32
  background: "rgba(0, 0, 0, 0.7)",
33
33
  });
34
34
  const zip = new JSZip();
35
- const promises = [];
36
- const cache = {};
35
+ // const promises = [];
36
+ // const cache = {};
37
37
  console.log(fileList);
38
- fileList.forEach((item) => {
39
- const promise = getFile(item.url).then((data) => {
40
- // 下载文件, 并存成ArrayBuffer对象
41
- // const file_name = item.realName // 获取文件名
42
- zip.file(item.fileName, data, { binary: true });
43
- cache[item.fileName] = data;
44
- });
45
- promises.push(promise);
46
- });
38
+ const usedFileNames = {} // 用于跟踪已使用的文件名
39
+ // fileList.forEach((item) => {
40
+ // const promise = getFile(item.url).then((data) => {
41
+ // // 下载文件, 并存成ArrayBuffer对象
42
+ // // const file_name = item.realName // 获取文件名
43
+ // zip.file(item.fileName, data, { binary: true });
44
+ // cache[item.fileName] = data;
45
+ // });
46
+ // promises.push(promise);
47
+ // });
48
+ const promises = fileList.map((item) => {
49
+ return getFile(item.url).then((data) => {
50
+ let fileName = item.fileName
51
+ let count = 1
52
+
53
+ // 如果文件名已存在,则添加递增的数字后缀
54
+ while (usedFileNames[fileName]) {
55
+ fileName = `${count}_${item.fileName}`
56
+ count++
57
+ }
58
+
59
+ usedFileNames[fileName] = true
60
+
61
+ zip.file(fileName, data, { binary: true })
62
+ })
63
+ })
47
64
  Promise.all(promises)
48
65
  .then(() => {
49
66
  zip.generateAsync({ type: "blob" }).then((f) => {
@@ -57,6 +74,7 @@ export function batchAsZip(fileList, zipName) {
57
74
  })
58
75
  .catch((res) => {
59
76
  Message.error("下载文件出现错误,请联系管理员!");
77
+ console.log(res)
60
78
  downloadLoadingInstance.close();
61
79
  });
62
80
  }