doctor-admin-components 1.0.13-beta.77 → 1.0.13-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
|
@@ -9,6 +9,14 @@ export function listBizContract(query) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
// 查询过滤作废的采购合同
|
|
13
|
+
export function queryPurchaseContracts(saleContractId) {
|
|
14
|
+
return request({
|
|
15
|
+
url: "/biz/contract/queryPurchaseContracts/"+saleContractId,
|
|
16
|
+
method: "get",
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
12
20
|
// 查询合同的提单指令列表
|
|
13
21
|
export function getContractBlList(contractId) {
|
|
14
22
|
return request({
|
|
@@ -1594,7 +1594,7 @@ export default {
|
|
|
1594
1594
|
let timer = Date.now();
|
|
1595
1595
|
addBizShipmentPurchase({
|
|
1596
1596
|
bookingNo: 'bookingNo-' + timer,
|
|
1597
|
-
billOfLadingNo:
|
|
1597
|
+
billOfLadingNo: `Refer BL ${this.contract.contractNo}-${(this.contractFileInfo?.shipmentFileInfoList?.length || 0) + 1}`,
|
|
1598
1598
|
saleContractId: purchaseBuyerInfo.contractId,
|
|
1599
1599
|
purchaseContractId: this.contract.contractId,
|
|
1600
1600
|
containerList: [{
|
|
@@ -442,6 +442,8 @@
|
|
|
442
442
|
import { haveVoidShipment, listBizShipment, getBizShipment, delBizShipment, addWithContainer, addContainerCheck, updateWithContainer, updateWithContainerAndInvoice } from '../../../api/biz/bizShipment'
|
|
443
443
|
import { generateFinalInvoiceByShipmentId } from '../../../api/biz/bizInvoice'
|
|
444
444
|
import { updateBizContractDetail } from '../../../api/biz/bizContractDetail'
|
|
445
|
+
import { queryPurchaseContracts } from '../../../api/biz/bizContract'
|
|
446
|
+
|
|
445
447
|
import { Loading } from 'element-ui'
|
|
446
448
|
import { listDictData } from '../../../api/biz/dictData'
|
|
447
449
|
import selectBooking from './selectBooking.vue'
|
|
@@ -587,12 +589,13 @@ export default {
|
|
|
587
589
|
// 已用的数据,赋值给form
|
|
588
590
|
handleReferenced(data) {
|
|
589
591
|
//shipment, copyFileTypeList
|
|
590
|
-
|
|
591
|
-
this.form
|
|
592
|
+
let contractIds = this.form.contractIds // 保持不变
|
|
593
|
+
this.form = {...this.form, ...data.shipment, 'contractIds':contractIds}
|
|
592
594
|
// 需要去掉shipmentId
|
|
593
595
|
this.form.shipmentId = null
|
|
594
596
|
this.form.citeShipmentId = data.shipment.shipmentId
|
|
595
597
|
this.form.copyFileTypeList = data.copyFileTypeList
|
|
598
|
+
console.log('form:', this.form)
|
|
596
599
|
},
|
|
597
600
|
//引用已作废的装运
|
|
598
601
|
handleReference() {
|
|
@@ -885,19 +888,29 @@ export default {
|
|
|
885
888
|
this.contractDetailList = contractDetailList.map((v) => {
|
|
886
889
|
return { ...v, selected: false }
|
|
887
890
|
})
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
+
// 过滤作废的采购合同
|
|
892
|
+
queryPurchaseContracts(contract.contractId)
|
|
893
|
+
.then((res) => {
|
|
894
|
+
let purchaseContractNos = res.rows
|
|
891
895
|
this.contract.purchaseContractNos = purchaseContractNos
|
|
892
896
|
if (purchaseContractNos && purchaseContractNos.length == 1) {
|
|
893
897
|
this.form.purchaseContractNo = purchaseContractNos[0]
|
|
894
898
|
}
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
899
|
+
})
|
|
900
|
+
// var purchaseContractNos = contract?.purchaseContractNos
|
|
901
|
+
// if (typeof purchaseContractNos == 'string') {
|
|
902
|
+
// purchaseContractNos = purchaseContractNos?.split(',')
|
|
903
|
+
// this.contract.purchaseContractNos = purchaseContractNos
|
|
904
|
+
// if (purchaseContractNos && purchaseContractNos.length == 1) {
|
|
905
|
+
// this.form.purchaseContractNo = purchaseContractNos[0]
|
|
906
|
+
// }
|
|
907
|
+
// } else {
|
|
908
|
+
// this.contract.purchaseContractNos = purchaseContractNos
|
|
909
|
+
// if (purchaseContractNos && purchaseContractNos.length == 1) {
|
|
910
|
+
// this.form.purchaseContractNo = purchaseContractNos[0]
|
|
911
|
+
// }
|
|
912
|
+
// }
|
|
913
|
+
|
|
901
914
|
let containerNum = 1
|
|
902
915
|
this.form.destinationPort = destinationPort
|
|
903
916
|
this.form.contractIds = Array.from(new Set(contractDetailList.map((i) => i.contractId)))
|