|
|
|
@ -326,7 +326,7 @@ import {enterCodeWeb} from "@/api/inout/order";
|
|
|
|
|
import {draftOrder, finishOrder, startSplit, tagCode, updateOrder} from "@/api/collect/splitCreateOrder";
|
|
|
|
|
import {selectCorpList} from "@/api/basic/basicUnitMaintain";
|
|
|
|
|
import {delDrugLevel} from "@/api/basic/product/drugUdiinfos";
|
|
|
|
|
import {getCurOrder, getNextOrder} from "@/api/collect/collectOrder";
|
|
|
|
|
import {getCurOrder, getNextOrder,findByBill} from "@/api/collect/collectOrder";
|
|
|
|
|
import PanelOrderAllDetail from "@/views/collect/PanelOrderAllDetail";
|
|
|
|
|
import {getWorkBindBusTypes, removeBusTypeById} from '@/api/basic/workPlace/sysWorkplaceDocuments'
|
|
|
|
|
|
|
|
|
@ -365,6 +365,7 @@ export default {
|
|
|
|
|
curWorkPlaces: [],
|
|
|
|
|
erpList: [],
|
|
|
|
|
formData: {
|
|
|
|
|
billNo:null,
|
|
|
|
|
tagStatus: -1,
|
|
|
|
|
invCode: null,
|
|
|
|
|
busType: null,
|
|
|
|
@ -416,6 +417,23 @@ export default {
|
|
|
|
|
PanelOrderAllDetail
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
|
|
getBillNo(billNo,workPlaceCode){
|
|
|
|
|
let post = {
|
|
|
|
|
billNo: billNo,
|
|
|
|
|
workPlaceCode: workPlaceCode,
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 10,
|
|
|
|
|
}
|
|
|
|
|
findByBill(post).then(res => {
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
if (res.data.billNo != null){
|
|
|
|
|
this.formData = res.data
|
|
|
|
|
this.startDeal();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
selectBusType(val) {
|
|
|
|
|
this.formData.busType = val
|
|
|
|
|
this.selectBusTypeDisabled = false
|
|
|
|
@ -438,7 +456,12 @@ export default {
|
|
|
|
|
if (this.formDataVisible.scanType == 1) {
|
|
|
|
|
this.findFromInvList("");
|
|
|
|
|
}
|
|
|
|
|
this.findCurOrder();
|
|
|
|
|
if (this.formData.billNo != null){
|
|
|
|
|
this.getBillNo(this.formData.billNo,this.formData.workPlaceCode)
|
|
|
|
|
}else {
|
|
|
|
|
this.findCurOrder();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
this.formData.busType = null
|
|
|
|
|
}
|
|
|
|
@ -844,6 +867,9 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
this.findCurWorkPlaces();
|
|
|
|
|
this.formData.invCode = this.$store.getters.locInvCode;
|
|
|
|
|
if (this.$route.query.billNo != null) {
|
|
|
|
|
this.formData.billNo = this.$route.query.billNo
|
|
|
|
|
}
|
|
|
|
|
if (this.$route.query.workplaceId != null) {
|
|
|
|
|
this.isLinkDisabled = true
|
|
|
|
|
this.selectBusTypeDisabled = true
|
|
|
|
@ -853,6 +879,8 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|