doctor-admin-components 1.0.14-beta.71 → 1.0.14-beta.72
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/package.json
CHANGED
|
@@ -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
|
-
|
|
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
|
}
|