doctor-admin-components 1.0.14-beta.4 → 1.0.14-beta.40

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 (24) hide show
  1. package/README.md +4 -1
  2. package/package.json +1 -1
  3. package/packages/index.js +7 -4
  4. package/packages/src/api/biz/bizContract.js +10 -0
  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 +9 -2
  8. package/packages/src/utils/zip.js +29 -11
  9. package/packages/src/views/biz/bizFileInfo/contract.vue +489 -361
  10. package/packages/src/views/biz/bizFileInfo/contractFile/BillOfLadingNoTab.vue +9 -7
  11. package/packages/src/views/biz/bizFileInfo/contractFile/IMGPreviewCheckBox.vue +24 -6
  12. package/packages/src/views/biz/bizFileInfo/contractFile/SectionSlot.vue +11 -3
  13. package/packages/src/views/biz/bizFileInfo/fileShow.vue +16 -6
  14. package/packages/src/views/biz/bizShipment/add.vue +82 -42
  15. package/packages/src/views/biz/contractTracing/billInfo.vue +15 -7
  16. package/packages/src/views/biz/contractTracing/changrLogList.vue +67 -0
  17. package/packages/src/views/biz/contractTracing/companyBanks.vue +15 -5
  18. package/packages/src/views/biz/contractTracing/contractPdf.vue +2 -7
  19. package/packages/src/views/biz/contractTracing/contractSummary.vue +101 -73
  20. package/packages/src/views/biz/contractTracing/contractTracingDetail.vue +5 -77
  21. package/packages/src/views/biz/contractTracing/editBill.vue +18 -10
  22. package/packages/src/views/biz/contractTracing/queryDeductionRecords.vue +103 -0
  23. package/packages/src/views/biz/contractTracing/shipmentPurchaseAmount.vue +359 -79
  24. 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.4",
4
+ "version": "1.0.14-beta.40",
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,9 @@ import {
55
54
  CompanyBanks,
56
55
  VDistpicker,
57
56
  ContractFileDragUpload,
58
- FileShow
57
+ FileShow,
58
+ ShipmentPurchaseAmount
59
+
59
60
  } from "./src";
60
61
  // 组件列表
61
62
  const components = [
@@ -69,7 +70,8 @@ const components = [
69
70
  CompanyBanks,
70
71
  VDistpicker,
71
72
  ContractFileDragUpload,
72
- FileShow
73
+ FileShow,
74
+ ShipmentPurchaseAmount
73
75
  ];
74
76
 
75
77
  // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,那么所有的组件都会被注册
@@ -142,5 +144,6 @@ export default {
142
144
  CompanyBanks,
143
145
  VDistpicker,
144
146
  ContractFileDragUpload,
145
- FileShow
147
+ FileShow,
148
+ ShipmentPurchaseAmount
146
149
  };
@@ -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
+ }
@@ -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: 2024-08-23 16:19:29
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,7 @@ 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'
26
27
 
27
28
  // 为组件提供 install 安装方法,供按需引入
28
29
 
@@ -65,6 +66,11 @@ FileShow.install = function (Vue) {
65
66
  Vue.component(FileShow.name, FileShow);
66
67
  };
67
68
 
69
+ ShipmentPurchaseAmount.install = function (Vue) {
70
+ Vue.component(ShipmentPurchaseAmount.name, ShipmentPurchaseAmount);
71
+ };
72
+
73
+
68
74
  // 导出组件
69
75
  export {
70
76
  EditBill,
@@ -76,5 +82,6 @@ export {
76
82
  CompanyBanks,
77
83
  VDistpicker,
78
84
  ContractFileDragUpload,
79
- FileShow
85
+ FileShow,
86
+ ShipmentPurchaseAmount
80
87
  };
@@ -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
  }