doctor-admin-components 1.0.14-beta.71 → 1.0.14-beta.73

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
@@ -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,34 +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: 158394933000abc
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
73
- ```
74
-
75
- ### Customize configuration
76
-
77
- See [Configuration Reference](https://cli.vuejs.org/config/).
78
-
79
- VDistpicker
56
+ 2 发布
57
+ 修改package.json里的 version
58
+ 调试版本格式:"1.0.0-beta.11"
59
+ npm publish --tag=beta
80
60
  ```
81
- <VDistpicker :hideArea="true" @selected="onSelected"></VDistpicker>
82
- #### 重新编辑
83
- <VDistpicker :hideArea="true" @selected="onSelected" :province="placeholders.province" :city="placeholders.city"></VDistpicker>
84
-
85
- ```
86
-
87
- https://npmmirror.com/package/doctor-admin-components/versions?
88
61
 
89
62
 
90
- npm config set proxy http://127.0.0.1:7890
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.71",
4
+ "version": "1.0.14-beta.73",
5
5
  "private": false,
6
6
  "main1": "lib/index.umd.min.js",
7
7
  "main": "packages/index.js",
@@ -2,11 +2,13 @@
2
2
  <div class="app-container">
3
3
  <!-- 添加或修改装运对话框 -->
4
4
  <el-dialog :visible.sync="open" z-index="1000" width="80%" :before-close="handleClose" :title="title">
5
+ <slot name="billOfLadingUpload"></slot>
5
6
  <slot name="">
6
7
  <span v-if="isDraft" style="color: red">提示: 当前打开了【{{ form.lastUpdateUserName }}】在【{{ form.updateTime }}】保存的装运草稿</span>
7
8
  <span v-if="voidInvoiceList" style="color: red">【快捷转卖】:系统检测到此销售合同关联的采购合同存在【已作废】的装运,</span>
8
9
  <el-button v-if="voidInvoiceList" @click="handleReference" size="mini" type="text">点击这里直接复制并引用</el-button>
9
10
  </slot>
11
+
10
12
  <div v-if="reason" style="color: #f00; padding-left: 60px; margin-bottom: 10px">{{ reason }}</div>
11
13
  <el-form ref="form" :model="form" :rules="rules" label-position="right" label-width="80px">
12
14
  <el-row>
@@ -581,6 +583,15 @@ export default {
581
583
  this.destinationPortList = res.rows
582
584
  })
583
585
  },
586
+ mounted() {
587
+ const channel = new BroadcastChannel('ocrInfo-channnel');
588
+ channel.addEventListener('message', event => {
589
+ console.log('event:', event.data)
590
+ this.OCRDataFilling(event.data)
591
+ // channel.close();
592
+ });
593
+
594
+ },
584
595
  computed: {
585
596
  containerList() {
586
597
  return this.form.containerList
@@ -1016,85 +1027,7 @@ export default {
1016
1027
 
1017
1028
  // OCR识别数据汇总
1018
1029
  if (this.billInfoSummary?.shipmentOcrType) {
1019
- if (this.billInfoSummary.shippingCompany) {
1020
- this.form.shippingCompany = this.billInfoSummary.shippingCompany
1021
- }
1022
-
1023
- if (this.billInfoSummary.bookingNo) {
1024
- this.form.bookingNo = this.billInfoSummary.bookingNo
1025
- }
1026
-
1027
- if (this.billInfoSummary.billOfLadingNo) {
1028
- this.form.billOfLadingNo = this.billInfoSummary.billOfLadingNo
1029
- }
1030
-
1031
- if (this.billInfoSummary.destinationPort) {
1032
- this.form.destinationPort = this.billInfoSummary.destinationPort
1033
- }
1034
-
1035
- // if (this.billInfoSummary.actualArrivalDate) {
1036
- // this.form.actualArrivalDate = this.billInfoSummary.actualArrivalDate;
1037
- // }
1038
-
1039
- // if (this.billInfoSummary.loadingTime) {
1040
- // this.form.loadingTime = this.billInfoSummary.loadingTime;
1041
- // }
1042
-
1043
- // if (this.billInfoSummary.etd) {
1044
- // this.form.etd = this.billInfoSummary.etd;
1045
- // }
1046
-
1047
- // if (this.billInfoSummary.eta) {
1048
- // this.form.eta = this.billInfoSummary.eta;
1049
- // }
1050
-
1051
- if (this.billInfoSummary?.containerOcrList?.length) {
1052
- this.form.containerList = []
1053
- this.billInfoSummary?.containerOcrList.forEach((containerItem, index) => {
1054
- this.form.containerList.push({
1055
- containerId: null,
1056
- shipmentId: shipmentId,
1057
- contractNo: containerItem.containerNo,
1058
- invoiceNo: containerItem.invoiceNo,
1059
- totalGoodsGrossWeight: containerItem.totalGoodsGrossWeight,
1060
- totalGoodsNetWeight: containerItem.totalGoodsNetWeight,
1061
- totalGoodsTareWeight: containerItem.totalGoodsTareWeight,
1062
- totalGoodsNumber: containerItem.totalGoodsNumber,
1063
- containerNo: containerItem.containerNo,
1064
- containerTareWeight: containerItem.totalGoodsTareWeight ? containerItem.totalGoodsTareWeight * 1000 : null,
1065
- sealNo: containerItem.sealNo,
1066
- isGenerateInvoice: null,
1067
- remark: containerItem.remark,
1068
- createTime: null,
1069
- updateTime: null,
1070
- containerDetailList: []
1071
- })
1072
- if (containerItem?.containerDetailOcrList?.length) {
1073
- containerItem?.containerDetailOcrList.forEach((containerDetailItem, index2) => {
1074
- this.form.containerList[index].containerDetailList.push({
1075
- contractDetailId: null,
1076
- askDetailId: null,
1077
- askName: containerDetailItem.askName,
1078
- goodsNetWeight: containerDetailItem.goodsNetWeight,
1079
- goodsTareWeight: containerDetailItem.goodsTareWeight,
1080
- goodsGrossWeight: containerDetailItem.goodsGrossWeight,
1081
- goodsNumber: containerDetailItem.goodsNumber,
1082
- packageList: [
1083
- {
1084
- packageNetWeight: containerDetailItem.goodsNetWeight,
1085
- packageTareWeight: containerDetailItem.goodsTareWeight,
1086
- packageGrossWeight: containerDetailItem.goodsGrossWeight,
1087
- remark: containerDetailItem.remark
1088
- }
1089
- ]
1090
- })
1091
- })
1092
- }
1093
- })
1094
- }
1095
- }
1096
- if (this.billInfoSummary) {
1097
- this.addContainerRow()
1030
+ this.OCRDataFilling(this.billInfoSummary, shipmentId)
1098
1031
  }
1099
1032
 
1100
1033
  this.$emit('closeFullscreenLoading')
@@ -1346,6 +1279,86 @@ export default {
1346
1279
  loading.close()
1347
1280
  })
1348
1281
  }
1282
+ },
1283
+ OCRDataFilling(billInfoSummary, shipmentId = null) {
1284
+ if (billInfoSummary?.shipmentOcrType) {
1285
+ if (billInfoSummary.shippingCompany) {
1286
+ this.form.shippingCompany = billInfoSummary.shippingCompany
1287
+ }
1288
+
1289
+ if (billInfoSummary.bookingNo) {
1290
+ this.form.bookingNo = billInfoSummary.bookingNo
1291
+ }
1292
+
1293
+ if (billInfoSummary.billOfLadingNo) {
1294
+ this.form.billOfLadingNo = billInfoSummary.billOfLadingNo
1295
+ }
1296
+
1297
+ if (billInfoSummary.destinationPort) {
1298
+ this.form.destinationPort = billInfoSummary.destinationPort
1299
+ }
1300
+
1301
+ // if (billInfoSummary.actualArrivalDate) {
1302
+ // this.form.actualArrivalDate = billInfoSummary.actualArrivalDate;
1303
+ // }
1304
+
1305
+ // if (billInfoSummary.loadingTime) {
1306
+ // this.form.loadingTime = billInfoSummary.loadingTime;
1307
+ // }
1308
+
1309
+ // if (billInfoSummary.etd) {
1310
+ // this.form.etd = billInfoSummary.etd;
1311
+ // }
1312
+
1313
+ // if (billInfoSummary.eta) {
1314
+ // this.form.eta = billInfoSummary.eta;
1315
+ // }
1316
+
1317
+ if (billInfoSummary?.containerOcrList?.length) {
1318
+ this.form.containerList = []
1319
+ billInfoSummary?.containerOcrList.forEach((containerItem, index) => {
1320
+ this.form.containerList.push({
1321
+ containerId: null,
1322
+ shipmentId: shipmentId,
1323
+ contractNo: containerItem.containerNo,
1324
+ invoiceNo: containerItem.invoiceNo,
1325
+ totalGoodsGrossWeight: containerItem.totalGoodsGrossWeight,
1326
+ totalGoodsNetWeight: containerItem.totalGoodsNetWeight,
1327
+ totalGoodsTareWeight: containerItem.totalGoodsTareWeight,
1328
+ totalGoodsNumber: containerItem.totalGoodsNumber,
1329
+ containerNo: containerItem.containerNo,
1330
+ containerTareWeight: containerItem.totalGoodsTareWeight ? containerItem.totalGoodsTareWeight * 1000 : null,
1331
+ sealNo: containerItem.sealNo,
1332
+ isGenerateInvoice: null,
1333
+ remark: containerItem.remark,
1334
+ createTime: null,
1335
+ updateTime: null,
1336
+ containerDetailList: []
1337
+ })
1338
+ if (containerItem?.containerDetailOcrList?.length) {
1339
+ containerItem?.containerDetailOcrList.forEach((containerDetailItem, index2) => {
1340
+ this.form.containerList[index].containerDetailList.push({
1341
+ contractDetailId: null,
1342
+ askDetailId: null,
1343
+ askName: containerDetailItem.askName,
1344
+ goodsNetWeight: containerDetailItem.goodsNetWeight,
1345
+ goodsTareWeight: containerDetailItem.goodsTareWeight,
1346
+ goodsGrossWeight: containerDetailItem.goodsGrossWeight,
1347
+ goodsNumber: containerDetailItem.goodsNumber,
1348
+ packageList: [
1349
+ {
1350
+ packageNetWeight: containerDetailItem.goodsNetWeight,
1351
+ packageTareWeight: containerDetailItem.goodsTareWeight,
1352
+ packageGrossWeight: containerDetailItem.goodsGrossWeight,
1353
+ remark: containerDetailItem.remark
1354
+ }
1355
+ ]
1356
+ })
1357
+ })
1358
+ }
1359
+ })
1360
+ }
1361
+ }
1349
1362
  }
1350
1363
  }
1351
1364
  }
@@ -131,6 +131,7 @@
131
131
  <el-descriptions-item label="Partial Shipment"> {{ form.partialShipment }}</el-descriptions-item>
132
132
  <el-descriptions-item label="Transshipment"> {{ form.transshipment }}</el-descriptions-item>
133
133
  <el-descriptions-item label="Quality" v-if="form.qualityCertificateSwitch">{{ form.qualityCertificate }}</el-descriptions-item>
134
+ <el-descriptions-item label="Customs Rejection" v-if="form.returnedBearer">{{ form.returnedBearer && form.returnedBearer.toUpperCase() }} shall bear the return costs if goods are not in compliance with the required standards of the import country and are rejected by customs authoritie</el-descriptions-item>
134
135
  <el-descriptions-item label="Claim" v-if="form.claimSwitch">
135
136
  <div v-html="form.claim" style="white-space: pre-wrap; word-break: break-word;"></div>
136
137
  </el-descriptions-item>