doctor-admin-components 1.0.14-beta.8 → 1.0.14-beta.81

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 (29) hide show
  1. package/README.md +25 -48
  2. package/package.json +1 -1
  3. package/packages/index.js +14 -3
  4. package/packages/src/api/biz/bizContract.js +36 -9
  5. package/packages/src/api/biz/bizShipment.js +30 -1
  6. package/packages/src/api/biz/dictData.js +4 -1
  7. package/packages/src/i18n/zh-CN/message.json +1 -1
  8. package/packages/src/index.js +18 -2
  9. package/packages/src/utils/index.js +1 -1
  10. package/packages/src/utils/zip.js +29 -11
  11. package/packages/src/views/biz/bizFileInfo/contract.vue +131 -151
  12. package/packages/src/views/biz/bizFileInfo/contractFile/IMGPreviewCheckBox.vue +8 -6
  13. package/packages/src/views/biz/bizFileInfo/fileShow.vue +5 -3
  14. package/packages/src/views/biz/bizShipment/add.vue +234 -142
  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/contractChangeLog.vue +29 -2
  19. package/packages/src/views/biz/contractTracing/contractClause.vue +356 -0
  20. package/packages/src/views/biz/contractTracing/contractClauseComponenrts/TextContent.vue +53 -0
  21. package/packages/src/views/biz/contractTracing/contractPdf.vue +16 -175
  22. package/packages/src/views/biz/contractTracing/contractSummary.vue +101 -73
  23. package/packages/src/views/biz/contractTracing/contractTracingDetail.vue +2 -2
  24. package/packages/src/views/biz/contractTracing/editBill.vue +35 -27
  25. package/packages/src/views/biz/contractTracing/info.vue +365 -0
  26. package/packages/src/views/biz/contractTracing/purchaseInvoiceUpload.vue +5 -2
  27. package/packages/src/views/biz/contractTracing/queryDeductionRecords.vue +103 -0
  28. package/packages/src/views/biz/contractTracing/shipmentPurchaseAmount.vue +361 -79
  29. 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
  -->
@@ -15,36 +15,13 @@
15
15
  npm install
16
16
  ```
17
17
 
18
- ### 运行项目可以开调试模块(example 文件)
19
-
20
- ```
21
- npm run serve
22
- ```
23
-
24
- ### 打包(组件修改在 packages 文件中)
25
-
26
- ```
27
- npm run lib
28
- ```
29
-
30
- ### 调试
31
-
32
- package.json 文件 入口改为:"main": "packages/index.js"
33
-
34
- #### 把模块链接到全局
35
-
18
+ #### 1 把公共模块链接到全局
36
19
  ```
37
20
  sudo npm link
38
21
  ```
39
22
 
40
- #### 模块取消软链接
41
-
42
- ```
43
- sudo npm unlink doctor-admin-components
44
- ```
45
-
46
- #### 把模块链接到项目
47
23
 
24
+ #### 2 把公共模块链接到项目中
48
25
  ```
49
26
  npm link doctor-admin-components --legacy-peer-deps
50
27
  ```
@@ -57,31 +34,31 @@ npm unlink doctor-admin-components --legacy-peer-deps
57
34
 
58
35
  ### 发布包
59
36
 
60
- ```
61
- package.json文件 入口改为:"main": "lib/index.umd.min.js"
62
-
63
- 登录npm账号
37
+ 1登录npm账号
38
+ 确保是npm镜像
39
+ nrm ls 查看镜像列表
40
+ npm ---------- https://registry.npmjs.org/
41
+ yarn --------- https://registry.yarnpkg.com/
42
+ tencent ------ https://mirrors.cloud.tencent.com/npm/
43
+ cnpm --------- https://r.cnpmjs.org/
44
+ taobao ------- https://registry.npmmirror.com/
45
+ npmMirror ---- https://skimdb.npmjs.com/registry/
46
+ nrm use npm
64
47
 
65
48
  npm login
49
+ 填写信息
50
+ Username: xizaozao
51
+ Password: 15839493300abc
52
+ Email: (this IS public) 3316756985@qq.com
53
+ 如果出现这个:联系我
54
+ Enter one-time password:
66
55
 
67
- 1 npm run lib
68
- 2 修改package.json里的 version
69
- 2.1 调试版本格式:"1.0.0-beta.11"
70
- npm publish --tag=beta
71
- 2.2 正式版本格式:"1.0.0"
72
- npm publish
56
+ 2 发布
57
+ 修改package.json里的 version
58
+ 调试版本格式:"1.0.0-beta.11"
59
+ npm publish --tag=beta
73
60
  ```
74
61
 
75
- ### Customize configuration
76
-
77
- See [Configuration Reference](https://cli.vuejs.org/config/).
78
-
79
- VDistpicker
80
- ```
81
- <VDistpicker :hideArea="true" @selected="onSelected"></VDistpicker>
82
- #### 重新编辑
83
- <VDistpicker :hideArea="true" @selected="onSelected" :province="placeholders.province" :city="placeholders.city"></VDistpicker>
84
-
85
- ```
86
62
 
87
- https://npmmirror.com/package/doctor-admin-components/versions?
63
+ 3 拉取最新版本镜像 点击同步 可能会有延迟
64
+ https://npmmirror.com/package/doctor-admin-components/versions?version=1.0.14-beta.72
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.8",
4
+ "version": "1.0.14-beta.81",
5
5
  "private": false,
6
6
  "main1": "lib/index.umd.min.js",
7
7
  "main": "packages/index.js",
package/packages/index.js CHANGED
@@ -54,7 +54,12 @@ import {
54
54
  CompanyBanks,
55
55
  VDistpicker,
56
56
  ContractFileDragUpload,
57
- FileShow
57
+ FileShow,
58
+ ShipmentPurchaseAmount,
59
+ ContractClause,
60
+ ContractInfo
61
+
62
+
58
63
  } from "./src";
59
64
  // 组件列表
60
65
  const components = [
@@ -68,7 +73,10 @@ const components = [
68
73
  CompanyBanks,
69
74
  VDistpicker,
70
75
  ContractFileDragUpload,
71
- FileShow
76
+ FileShow,
77
+ ShipmentPurchaseAmount,
78
+ ContractClause,
79
+ ContractInfo
72
80
  ];
73
81
 
74
82
  // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,那么所有的组件都会被注册
@@ -141,5 +149,8 @@ export default {
141
149
  CompanyBanks,
142
150
  VDistpicker,
143
151
  ContractFileDragUpload,
144
- FileShow
152
+ FileShow,
153
+ ShipmentPurchaseAmount,
154
+ ContractClause,
155
+ ContractInfo
145
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
+ }
@@ -64,7 +64,10 @@ export function exportDictData(query) {
64
64
  export function portDictList() {
65
65
  return request({
66
66
  url: '/tb/dict/data/portDictList',
67
- method: 'post',
67
+ method: 'get',
68
+ headers: {
69
+ repeatSubmit: false,
70
+ },
68
71
  })
69
72
  }
70
73
 
@@ -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
  };
@@ -6,7 +6,7 @@ import CryptoJS from "crypto-js";
6
6
  */
7
7
  export function formatDate(cellValue) {
8
8
  if (cellValue == null || cellValue == "") return "";
9
- var date = new Date(cellValue);
9
+ var date = new Date(cellValue - 0);
10
10
  var year = date.getFullYear();
11
11
  var month =
12
12
  date.getMonth() + 1 < 10
@@ -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
  }