doctor-admin-components 1.0.14-beta.77 → 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
|
@@ -36,6 +36,18 @@
|
|
|
36
36
|
</el-select>
|
|
37
37
|
</el-form-item>
|
|
38
38
|
</el-col>
|
|
39
|
+
<el-col :span="6">
|
|
40
|
+
<el-form-item label="起运港" prop="originPort">
|
|
41
|
+
<el-select v-model="form.originPort" style="width: 100%" placeholder="请选择起运港" clearable filterable size="small">
|
|
42
|
+
<el-option v-for="(item, i) in portOptionList" :key="'origin'+i" :value="item.dictValue" :label="item.dictValue" />
|
|
43
|
+
</el-select>
|
|
44
|
+
</el-form-item>
|
|
45
|
+
</el-col>
|
|
46
|
+
<el-col :span="6">
|
|
47
|
+
<el-form-item label="海运距离(KM)" prop="portDistance">
|
|
48
|
+
<el-input v-decimal="2" v-model="form.portDistance" placeholder="请输入海运距离" size="small" />
|
|
49
|
+
</el-form-item>
|
|
50
|
+
</el-col>
|
|
39
51
|
</el-row>
|
|
40
52
|
<el-row>
|
|
41
53
|
<el-col :span="6">
|
|
@@ -471,7 +483,7 @@ import { updateBizContractDetail } from '../../../api/biz/bizContractDetail'
|
|
|
471
483
|
import { queryPurchaseContracts } from '../../../api/biz/bizContract'
|
|
472
484
|
|
|
473
485
|
import { Loading } from 'element-ui'
|
|
474
|
-
import { listDictData } from '../../../api/biz/dictData'
|
|
486
|
+
import { listDictData, portDictList } from '../../../api/biz/dictData'
|
|
475
487
|
import selectBooking from './selectBooking.vue'
|
|
476
488
|
import { listBizBooking } from '../../../api/biz/bizBooking'
|
|
477
489
|
import ReferenceAlert from './referenceAlert.vue'
|
|
@@ -490,6 +502,7 @@ export default {
|
|
|
490
502
|
voidInvoiceList: null,
|
|
491
503
|
//目的地港口列表
|
|
492
504
|
destinationPortList: [],
|
|
505
|
+
portOptionList:[],
|
|
493
506
|
//折叠面板
|
|
494
507
|
activeName: ['1'],
|
|
495
508
|
//折叠面板
|
|
@@ -568,6 +581,10 @@ export default {
|
|
|
568
581
|
}
|
|
569
582
|
},
|
|
570
583
|
props: {
|
|
584
|
+
asyncGetDataFlag: {
|
|
585
|
+
type: Boolean,
|
|
586
|
+
default: false
|
|
587
|
+
},
|
|
571
588
|
billInfoSummary: {
|
|
572
589
|
type: Object,
|
|
573
590
|
default: () => {
|
|
@@ -580,11 +597,14 @@ export default {
|
|
|
580
597
|
}
|
|
581
598
|
},
|
|
582
599
|
created() {
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
600
|
+
if (this.asyncGetDataFlag) {
|
|
601
|
+
// 延时1s获取港口列表
|
|
602
|
+
setTimeout(() => {
|
|
603
|
+
this.getPortDatas()
|
|
604
|
+
}, 1200)
|
|
605
|
+
} else {
|
|
606
|
+
this.getPortDatas()
|
|
607
|
+
}
|
|
588
608
|
},
|
|
589
609
|
mounted() {
|
|
590
610
|
const channel = new BroadcastChannel('ocrInfo-channnel');
|
|
@@ -593,7 +613,6 @@ export default {
|
|
|
593
613
|
this.OCRDataFilling(event.data)
|
|
594
614
|
// channel.close();
|
|
595
615
|
});
|
|
596
|
-
|
|
597
616
|
},
|
|
598
617
|
computed: {
|
|
599
618
|
containerList() {
|
|
@@ -626,6 +645,20 @@ export default {
|
|
|
626
645
|
}
|
|
627
646
|
},
|
|
628
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
|
+
},
|
|
629
662
|
// 已用的数据,赋值给form
|
|
630
663
|
handleReferenced(data) {
|
|
631
664
|
//shipment, copyFileTypeList
|
|
@@ -879,6 +912,8 @@ export default {
|
|
|
879
912
|
bookingNo: null,
|
|
880
913
|
billOfLadingNo: null,
|
|
881
914
|
destinationPort: null,
|
|
915
|
+
originPort: null, // 添加
|
|
916
|
+
portDistance: null, // 添加
|
|
882
917
|
purchaseContractNo: null,
|
|
883
918
|
etd: null,
|
|
884
919
|
eta: null,
|
|
@@ -888,7 +923,12 @@ export default {
|
|
|
888
923
|
updateTime: null,
|
|
889
924
|
containerList: [],
|
|
890
925
|
etaUpdateOn: true,
|
|
891
|
-
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 // 添加
|
|
892
932
|
}
|
|
893
933
|
this.contract = {
|
|
894
934
|
purchaseContractNos: null
|
|
@@ -943,6 +983,7 @@ export default {
|
|
|
943
983
|
/** 新增按钮操作 */
|
|
944
984
|
handleAdd(contractDetailList, destinationPort, contract) {
|
|
945
985
|
this.reset()
|
|
986
|
+
this.getPortDatas()
|
|
946
987
|
if (contract.contractType == 'purchase') {
|
|
947
988
|
this.$modal.msgError('请选择销售合同')
|
|
948
989
|
return
|
|
@@ -1299,6 +1340,14 @@ export default {
|
|
|
1299
1340
|
this.form.destinationPort = billInfoSummary.destinationPort
|
|
1300
1341
|
}
|
|
1301
1342
|
|
|
1343
|
+
if (billInfoSummary.originPort) {
|
|
1344
|
+
this.form.originPort = billInfoSummary.originPort
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
if (billInfoSummary.portDistance) {
|
|
1348
|
+
this.form.portDistance = billInfoSummary.portDistance
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1302
1351
|
// if (billInfoSummary.actualArrivalDate) {
|
|
1303
1352
|
// this.form.actualArrivalDate = billInfoSummary.actualArrivalDate;
|
|
1304
1353
|
// }
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
|
|
103
103
|
<el-descriptions-item label="Origin Country/Region">{{ form.originCountry }}</el-descriptions-item>
|
|
104
104
|
<el-descriptions-item label="Loading Country/Region">{{ form.loadingCountry }}</el-descriptions-item>
|
|
105
|
-
<el-descriptions-item label="Loading Port">{{ form.originPort }}</el-descriptions-item>
|
|
105
|
+
<el-descriptions-item label="Loading Port" v-if="form.freightTerms != 'EXW'">{{ form.originPort }}</el-descriptions-item>
|
|
106
106
|
<el-descriptions-item v-if="form.freightTerms != 'EXW'" label="Destination">{{ form.destination }}</el-descriptions-item>
|
|
107
107
|
<el-descriptions-item v-else label="EXW Address">{{ form.exw }}</el-descriptions-item>
|
|
108
108
|
<el-descriptions-item label="Containers">
|