doctor-admin-components 1.0.14-beta.78 → 1.0.14-beta.79
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
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
<el-col :span="6">
|
|
40
40
|
<el-form-item label="起运港" prop="originPort">
|
|
41
41
|
<el-select v-model="form.originPort" style="width: 100%" placeholder="请选择起运港" clearable filterable size="small">
|
|
42
|
-
<el-option v-for="(item, i) in
|
|
42
|
+
<el-option v-for="(item, i) in portOptionList" :key="'origin'+i" :value="item.dictValue" :label="item.dictValue" />
|
|
43
43
|
</el-select>
|
|
44
44
|
</el-form-item>
|
|
45
45
|
</el-col>
|
|
@@ -502,7 +502,7 @@ export default {
|
|
|
502
502
|
voidInvoiceList: null,
|
|
503
503
|
//目的地港口列表
|
|
504
504
|
destinationPortList: [],
|
|
505
|
-
|
|
505
|
+
portOptionList:[],
|
|
506
506
|
//折叠面板
|
|
507
507
|
activeName: ['1'],
|
|
508
508
|
//折叠面板
|
|
@@ -581,6 +581,10 @@ export default {
|
|
|
581
581
|
}
|
|
582
582
|
},
|
|
583
583
|
props: {
|
|
584
|
+
asyncGetDataFlag: {
|
|
585
|
+
type: Boolean,
|
|
586
|
+
default: false
|
|
587
|
+
},
|
|
584
588
|
billInfoSummary: {
|
|
585
589
|
type: Object,
|
|
586
590
|
default: () => {
|
|
@@ -593,14 +597,14 @@ export default {
|
|
|
593
597
|
}
|
|
594
598
|
},
|
|
595
599
|
created() {
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
}
|
|
600
|
+
if (this.asyncGetDataFlag) {
|
|
601
|
+
// 延时1s获取港口列表
|
|
602
|
+
setTimeout(() => {
|
|
603
|
+
this.getPortDatas()
|
|
604
|
+
}, 1200)
|
|
605
|
+
} else {
|
|
606
|
+
this.getPortDatas()
|
|
607
|
+
}
|
|
604
608
|
},
|
|
605
609
|
mounted() {
|
|
606
610
|
const channel = new BroadcastChannel('ocrInfo-channnel');
|
|
@@ -609,7 +613,6 @@ export default {
|
|
|
609
613
|
this.OCRDataFilling(event.data)
|
|
610
614
|
// channel.close();
|
|
611
615
|
});
|
|
612
|
-
|
|
613
616
|
},
|
|
614
617
|
computed: {
|
|
615
618
|
containerList() {
|
|
@@ -642,6 +645,20 @@ export default {
|
|
|
642
645
|
}
|
|
643
646
|
},
|
|
644
647
|
methods: {
|
|
648
|
+
getPortDatas() {
|
|
649
|
+
if (this.destinationPortList.length == 0) {
|
|
650
|
+
listDictData({
|
|
651
|
+
dictType: 'DESTINATION PORT'
|
|
652
|
+
}).then((res) => {
|
|
653
|
+
this.destinationPortList = res.rows
|
|
654
|
+
})
|
|
655
|
+
}
|
|
656
|
+
if (this.portOptionList.length == 0) {
|
|
657
|
+
portDictList().then((res) => {
|
|
658
|
+
this.portOptionList = res.rows
|
|
659
|
+
})
|
|
660
|
+
}
|
|
661
|
+
},
|
|
645
662
|
// 已用的数据,赋值给form
|
|
646
663
|
handleReferenced(data) {
|
|
647
664
|
//shipment, copyFileTypeList
|
|
@@ -895,6 +912,8 @@ export default {
|
|
|
895
912
|
bookingNo: null,
|
|
896
913
|
billOfLadingNo: null,
|
|
897
914
|
destinationPort: null,
|
|
915
|
+
originPort: null, // 添加
|
|
916
|
+
portDistance: null, // 添加
|
|
898
917
|
purchaseContractNo: null,
|
|
899
918
|
etd: null,
|
|
900
919
|
eta: null,
|
|
@@ -904,7 +923,12 @@ export default {
|
|
|
904
923
|
updateTime: null,
|
|
905
924
|
containerList: [],
|
|
906
925
|
etaUpdateOn: true,
|
|
907
|
-
loadingTime: this.utc2local(new Date(), 'yyyy-MM-DD HH:mm:ss')
|
|
926
|
+
loadingTime: this.utc2local(new Date(), 'yyyy-MM-DD HH:mm:ss'),
|
|
927
|
+
bookingId: null, // 添加
|
|
928
|
+
citeShipmentId: null, // 添加
|
|
929
|
+
copyFileTypeList: null, // 添加
|
|
930
|
+
containerNum: 0, // 添加
|
|
931
|
+
contractIds: null // 添加
|
|
908
932
|
}
|
|
909
933
|
this.contract = {
|
|
910
934
|
purchaseContractNos: null
|
|
@@ -959,6 +983,7 @@ export default {
|
|
|
959
983
|
/** 新增按钮操作 */
|
|
960
984
|
handleAdd(contractDetailList, destinationPort, contract) {
|
|
961
985
|
this.reset()
|
|
986
|
+
this.getPortDatas()
|
|
962
987
|
if (contract.contractType == 'purchase') {
|
|
963
988
|
this.$modal.msgError('请选择销售合同')
|
|
964
989
|
return
|