doctor-admin-components 1.0.14-beta.6 → 1.0.14-beta.61

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.
Files changed (28) hide show
  1. package/README.md +4 -1
  2. package/package.json +1 -1
  3. package/packages/index.js +14 -4
  4. package/packages/src/api/biz/bizContract.js +36 -9
  5. package/packages/src/api/biz/bizShipment.js +30 -1
  6. package/packages/src/i18n/zh-CN/message.json +1 -1
  7. package/packages/src/index.js +18 -2
  8. package/packages/src/utils/zip.js +29 -11
  9. package/packages/src/views/biz/bizFileInfo/contract.vue +494 -366
  10. package/packages/src/views/biz/bizFileInfo/contractFile/BillOfLadingNoTab.vue +9 -7
  11. package/packages/src/views/biz/bizFileInfo/contractFile/IMGPreviewCheckBox.vue +25 -10
  12. package/packages/src/views/biz/bizFileInfo/contractFile/SectionSlot.vue +11 -3
  13. package/packages/src/views/biz/bizFileInfo/fileShow.vue +11 -5
  14. package/packages/src/views/biz/bizShipment/add.vue +82 -42
  15. package/packages/src/views/biz/contractTracing/billInfo.vue +17 -9
  16. package/packages/src/views/biz/contractTracing/changrLogList.vue +67 -0
  17. package/packages/src/views/biz/contractTracing/companyBanks.vue +19 -8
  18. package/packages/src/views/biz/contractTracing/contractClause.vue +357 -0
  19. package/packages/src/views/biz/contractTracing/contractClauseComponenrts/TextContent.vue +53 -0
  20. package/packages/src/views/biz/contractTracing/contractPdf.vue +9 -171
  21. package/packages/src/views/biz/contractTracing/contractSummary.vue +101 -73
  22. package/packages/src/views/biz/contractTracing/contractTracingDetail.vue +5 -77
  23. package/packages/src/views/biz/contractTracing/editBill.vue +35 -27
  24. package/packages/src/views/biz/contractTracing/info.vue +346 -0
  25. package/packages/src/views/biz/contractTracing/purchaseInvoiceUpload.vue +5 -2
  26. package/packages/src/views/biz/contractTracing/queryDeductionRecords.vue +103 -0
  27. package/packages/src/views/biz/contractTracing/shipmentPurchaseAmount.vue +361 -79
  28. package/packages/src/views/biz/contractTracing/shipmentPurchaseAmountEditDialog.vue +176 -0
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.6",
4
+ "version": "1.0.14-beta.61",
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,
@@ -55,7 +54,12 @@ import {
55
54
  CompanyBanks,
56
55
  VDistpicker,
57
56
  ContractFileDragUpload,
58
- FileShow
57
+ FileShow,
58
+ ShipmentPurchaseAmount,
59
+ ContractClause,
60
+ ContractInfo
61
+
62
+
59
63
  } from "./src";
60
64
  // 组件列表
61
65
  const components = [
@@ -69,7 +73,10 @@ const components = [
69
73
  CompanyBanks,
70
74
  VDistpicker,
71
75
  ContractFileDragUpload,
72
- FileShow
76
+ FileShow,
77
+ ShipmentPurchaseAmount,
78
+ ContractClause,
79
+ ContractInfo
73
80
  ];
74
81
 
75
82
  // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,那么所有的组件都会被注册
@@ -142,5 +149,8 @@ export default {
142
149
  CompanyBanks,
143
150
  VDistpicker,
144
151
  ContractFileDragUpload,
145
- FileShow
152
+ FileShow,
153
+ ShipmentPurchaseAmount,
154
+ ContractClause,
155
+ ContractInfo
146
156
  };
@@ -20,11 +20,28 @@ export function queryPurchaseContracts(saleContractId) {
20
20
  // 查询合同的提单指令列表
21
21
  export function getContractBlList(contractId) {
22
22
  return request({
23
- url: "/biz/contract/blList/" + contractId,
23
+ url: "/biz/contract/bli/list/" + contractId,
24
24
  method: "get",
25
25
  });
26
26
  }
27
27
 
28
+ // 查询合同的提单详情
29
+ export function getContractBliDetail(contractId) {
30
+ return request({
31
+ url: "/biz/contract/bli/" + contractId,
32
+ method: "get",
33
+ });
34
+ }
35
+
36
+ // 修改合同bli
37
+ export function updateContractBli(data) {
38
+ return request({
39
+ url: "/biz/contract/bli/addOrEdit",
40
+ method: "put",
41
+ data: data,
42
+ });
43
+ }
44
+
28
45
  // 合同追踪列表
29
46
  export function listContractTrace(query) {
30
47
  return request({
@@ -100,7 +117,7 @@ export function getBizContractFileInfo(id) {
100
117
  // "linkType": "dealRecord",
101
118
  // "fileName": "0414cc54-e649-4bda-8e69-2758a9052178.CNT__",
102
119
  // "fileType": "personal_deal_bill",
103
- // "url": "https://s3.cdn.doctorscrap.com/develop/2024/03/11/fe9193a409f746379a437552f6c515fd.CNT__",
120
+ // "url": "https://s3.doctorscrap.com/develop/2024/03/11/fe9193a409f746379a437552f6c515fd.CNT__",
104
121
  // "coverUrl": null,
105
122
  // "createTime": "2024-03-11 03:25:25",
106
123
  // "ext": ".CNT__",
@@ -121,7 +138,7 @@ export function getBizContractFileInfo(id) {
121
138
  // "linkType": "contract",
122
139
  // "fileName": "20240307-095507.jpeg",
123
140
  // "fileType": "contract_sign",
124
- // "url": "https://s3.cdn.doctorscrap.com/develop/2024/03/12/eea2a0771a7147e0a7004f44c7a13797.jpeg",
141
+ // "url": "https://s3.doctorscrap.com/develop/2024/03/12/eea2a0771a7147e0a7004f44c7a13797.jpeg",
125
142
  // "coverUrl": null,
126
143
  // "createTime": "2024-03-12 10:09:00",
127
144
  // "ext": ".jpeg",
@@ -248,7 +265,7 @@ export function getBizContractFileInfo(id) {
248
265
  // "linkType": "invoice",
249
266
  // "fileName": "02b0ef972253423c990e4d674a5e52f3 (1).jpeg",
250
267
  // "fileType": "personal_proforma_invoice",
251
- // "url": "https://s3.cdn.doctorscrap.com/develop/2024/03/12/ee52b404a79842e7823e71f5ec7bd6a4.jpeg",
268
+ // "url": "https://s3.doctorscrap.com/develop/2024/03/12/ee52b404a79842e7823e71f5ec7bd6a4.jpeg",
252
269
  // "coverUrl": null,
253
270
  // "createTime": "2024-03-12 09:48:04",
254
271
  // "ext": ".jpeg",
@@ -287,7 +304,7 @@ export function getBizContractFileInfo(id) {
287
304
  // "linkType": "shipment",
288
305
  // "fileName": "port-data.png",
289
306
  // "fileType": "sale_personal_shipment_packing_list",
290
- // "url": "https://s3.cdn.doctorscrap.com/develop/2024/03/11/5b94778c1bdc447daf21056a1c2786f4.png",
307
+ // "url": "https://s3.doctorscrap.com/develop/2024/03/11/5b94778c1bdc447daf21056a1c2786f4.png",
291
308
  // "coverUrl": null,
292
309
  // "createTime": "2024-03-11 06:23:36",
293
310
  // "ext": ".png",
@@ -311,7 +328,7 @@ export function getBizContractFileInfo(id) {
311
328
  // "linkType": "container",
312
329
  // "fileName": "port-data.png",
313
330
  // "fileType": "container_packing_photo",
314
- // "url": "https://s3.cdn.doctorscrap.com/develop/2024/03/11/6c6b0f69b2ef473680df021ce1a177a5.png",
331
+ // "url": "https://s3.doctorscrap.com/develop/2024/03/11/6c6b0f69b2ef473680df021ce1a177a5.png",
315
332
  // "coverUrl": null,
316
333
  // "createTime": "2024-03-11 06:48:58",
317
334
  // "ext": ".png",
@@ -328,7 +345,7 @@ export function getBizContractFileInfo(id) {
328
345
  // "linkType": "container",
329
346
  // "fileName": "20240103-102832.jpeg",
330
347
  // "fileType": "container_packing_photo",
331
- // "url": "https://s3.cdn.doctorscrap.com/develop/2024/03/11/64327bfa54074b61899359cc21fbb4ac.jpeg",
348
+ // "url": "https://s3.doctorscrap.com/develop/2024/03/11/64327bfa54074b61899359cc21fbb4ac.jpeg",
332
349
  // "coverUrl": null,
333
350
  // "createTime": "2024-03-11 06:52:27",
334
351
  // "ext": ".jpeg",
@@ -446,7 +463,7 @@ export function getBizContractFileInfo(id) {
446
463
  // "linkType": "shipment",
447
464
  // "fileName": "port-data.png",
448
465
  // "fileType": "sale_shipment_other",
449
- // "url": "https://s3.cdn.doctorscrap.com/develop/2024/03/11/c80277e21f5848d89f47bbf30af202d8.png",
466
+ // "url": "https://s3.doctorscrap.com/develop/2024/03/11/c80277e21f5848d89f47bbf30af202d8.png",
450
467
  // "coverUrl": null,
451
468
  // "createTime": "2024-03-11 08:07:01",
452
469
  // "ext": ".png",
@@ -723,7 +740,7 @@ export function getBizContractFileInfo(id) {
723
740
  "linkType": "contract",
724
741
  "fileName": "索赔申请书文案未更新.png",
725
742
  "fileType": "contract_sign",
726
- "url": "https://s3.cdn.doctorscrap.com/develop/2024/03/14/7f0f6dd70e3c40c183a5b2a3a5db5dcc.png",
743
+ "url": "https://s3.doctorscrap.com/develop/2024/03/14/7f0f6dd70e3c40c183a5b2a3a5db5dcc.png",
727
744
  "coverUrl": null,
728
745
  "createTime": "2024-03-14 10:07:49",
729
746
  "ext": ".png",
@@ -1130,3 +1147,13 @@ export function editReferenceNo(data) {
1130
1147
  data: data,
1131
1148
  });
1132
1149
  }
1150
+
1151
+
1152
+ // 获取第二通知人
1153
+ export function getSecondNotifyInfo(query) {
1154
+ return request({
1155
+ url: "/biz/contract/getSecondNotifyInfo",
1156
+ method: "get",
1157
+ params: query,
1158
+ });
1159
+ }
@@ -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
+ }
@@ -131,7 +131,7 @@
131
131
  "BL_No": "提单号:",
132
132
  "BL_Not_Confirm": "BLI未确认",
133
133
  "BL_Confirmed": "BLI已确认",
134
- "BL_info_confirmed": "提单信息已确认",
134
+ "BL_info_confirmed": "草稿提单已确认",
135
135
  "bl_draft_confirm": "确认提单草稿",
136
136
  "editBLInformation": "编辑提单信息",
137
137
  "Credit_Note": "Credit note",
@@ -2,7 +2,7 @@
2
2
  * @Author: error: git config user.name && git config user.email & please set dead value or install git
3
3
  * @Date: 2022-07-25 11:24:53
4
4
  * @LastEditors: zhangpengwei@1338418459736990.onaliyun.com zhangpengwei@1338418459736990.onaliyun.com
5
- * @LastEditTime: 2024-07-24 12:09:33
5
+ * @LastEditTime: 2025-05-13 17:25:39
6
6
  * @FilePath: /zpw-com-test/src/lib-components/index.js
7
7
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
8
  */
@@ -23,6 +23,9 @@ import CompanyBanks from "./views/biz/contractTracing/companyBanks.vue";
23
23
  import VDistpicker from "./views/components/RegionPicker/Distpicker.vue";
24
24
  import ContractFileDragUpload from '../src/components/FileUpload/contract-drag-new.vue';
25
25
  import FileShow from '../src/views/biz/bizFileInfo/fileShow.vue'
26
+ import ShipmentPurchaseAmount from '../src/views/biz/contractTracing/shipmentPurchaseAmount.vue'
27
+ import ContractClause from '../src/views/biz/contractTracing/contractClause.vue'
28
+ import ContractInfo from '../src/views/biz/contractTracing/info.vue'
26
29
 
27
30
  // 为组件提供 install 安装方法,供按需引入
28
31
 
@@ -65,6 +68,16 @@ FileShow.install = function (Vue) {
65
68
  Vue.component(FileShow.name, FileShow);
66
69
  };
67
70
 
71
+ ShipmentPurchaseAmount.install = function (Vue) {
72
+ Vue.component(ShipmentPurchaseAmount.name, ShipmentPurchaseAmount);
73
+ };
74
+ ContractClause.install = function (Vue) {
75
+ Vue.component(ContractClause.name, ContractClause);
76
+ };
77
+ ContractInfo.install = function (Vue) {
78
+ Vue.component(ContractInfo.name, ContractInfo);
79
+ };
80
+
68
81
  // 导出组件
69
82
  export {
70
83
  EditBill,
@@ -76,5 +89,8 @@ export {
76
89
  CompanyBanks,
77
90
  VDistpicker,
78
91
  ContractFileDragUpload,
79
- FileShow
92
+ FileShow,
93
+ ShipmentPurchaseAmount,
94
+ ContractClause,
95
+ ContractInfo
80
96
  };
@@ -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
  }