|
|
|
@ -38,26 +38,26 @@
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
:disabled="isSelectOrder"
|
|
|
|
|
@click.native="selectPrescribe()"
|
|
|
|
|
@click.native="nextCollectOrder()"
|
|
|
|
|
>下一单据
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
:disabled="isSelectOrder"
|
|
|
|
|
@click.native="selectPrescribe()"
|
|
|
|
|
>选入单据
|
|
|
|
|
>选入单据1
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
:disabled="formData.tagStatus<2"
|
|
|
|
|
@click.native="saveDraftOrder()"
|
|
|
|
|
>单据挂起
|
|
|
|
|
>单据挂起1
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
:disabled="formData.tagStatus<2"
|
|
|
|
|
@click.native="finishOrder()"
|
|
|
|
|
>处理完成
|
|
|
|
|
>处理完成1
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
<el-dropdown @command="handleCommand">
|
|
|
|
@ -216,6 +216,7 @@
|
|
|
|
|
append-to-body
|
|
|
|
|
>
|
|
|
|
|
<selectPrescribeDialog
|
|
|
|
|
:workPlaceCode="this.formData.workPlaceCode"
|
|
|
|
|
:confirmSelect="this.confirmSelect"
|
|
|
|
|
:closeDialog="this.closeDialog"
|
|
|
|
|
></selectPrescribeDialog>
|
|
|
|
@ -234,9 +235,10 @@ import prescribeCodePanel from "./PanelOrderTagCode";
|
|
|
|
|
import PannelOrderBiz from "./PannelOrderBiz";
|
|
|
|
|
import {listPage} from "@/api/basic/sysWorkplaceManage";
|
|
|
|
|
import {enterCodeWeb} from "@/api/inout/order";
|
|
|
|
|
import {draftOrder, finishOrder, tagCode} from "@/api/collect/splitCreateOrder";
|
|
|
|
|
import {draftOrder, finishOrder, startSplit, tagCode} from "@/api/collect/splitCreateOrder";
|
|
|
|
|
import {selectCorpList} from "@/api/basic/basicUnitMaintain";
|
|
|
|
|
import {delDrugLevel} from "@/api/basic/product/drugUdiinfos";
|
|
|
|
|
import {getNextOrder} from "@/api/collect/collectOrder";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
/**
|
|
|
|
@ -319,8 +321,11 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
workPlaceCodeChange(value) {
|
|
|
|
|
this.curWorkPlaces.forEach(item => {if(item.workplaceId == value){ this.formDataVisible = item
|
|
|
|
|
} })
|
|
|
|
|
this.curWorkPlaces.forEach(item => {
|
|
|
|
|
if (item.workplaceId == value) {
|
|
|
|
|
this.formDataVisible = item
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
if (this.formDataVisible.operationType == 1) {
|
|
|
|
|
this.findFromInvList("");
|
|
|
|
|
}
|
|
|
|
@ -454,12 +459,13 @@ export default {
|
|
|
|
|
addCode() {
|
|
|
|
|
if (this.$isBlank(this.filterQuery.code)) {
|
|
|
|
|
this.filterQuery.code = this.scanCode.trim();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (this.$isBlank(this.filterQuery.code) && this.$isBlank(this.scanCode)) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
let tagQuery = {
|
|
|
|
|
workPlaceCode: this.formData.workPlaceCode,
|
|
|
|
|
fromCorp: this.formData.fromCorp,
|
|
|
|
|
billNo: this.formData.billNo,
|
|
|
|
|
code: this.filterQuery.code.trim(),
|
|
|
|
|
};
|
|
|
|
@ -468,6 +474,7 @@ export default {
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
this.formData.tagStatus = 2;
|
|
|
|
|
this.formData = res.data;
|
|
|
|
|
this.refreshCodesPanel(this);
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
|
}
|
|
|
|
@ -513,10 +520,27 @@ export default {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//选择单据
|
|
|
|
|
selectPrescribe() {
|
|
|
|
|
console.log(this.formData.workPlaceCode)
|
|
|
|
|
this.selectPrescriptionVisible = true;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//获取下一单据
|
|
|
|
|
nextCollectOrder() {
|
|
|
|
|
getNextOrder(this.formData).then(res => {
|
|
|
|
|
this.loading = false
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
this.formData = res.data;
|
|
|
|
|
this.dealSplitOrder()
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(res.message)
|
|
|
|
|
}
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
this.loading = false
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
closeDialog() {
|
|
|
|
|
this.selectPrescriptionVisible = false;
|
|
|
|
|
},
|
|
|
|
@ -525,9 +549,27 @@ export default {
|
|
|
|
|
this.selectPrescriptionVisible = false;
|
|
|
|
|
this.formData = row;
|
|
|
|
|
this.curRow = row;
|
|
|
|
|
this.dealSplitOrder()
|
|
|
|
|
this.refreshCodesPanel(this);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
//开始拆零
|
|
|
|
|
dealSplitOrder() {
|
|
|
|
|
startSplit(this.formData).then(res => {
|
|
|
|
|
this.loading = false
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
console.log(res.data)
|
|
|
|
|
this.refreshCodesPanel(this);
|
|
|
|
|
} else {
|
|
|
|
|
console.log(res.message)
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
this.loading = false
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
printCodeResult(data, isSuccess) {
|
|
|
|
|
const resultParts = ["追溯码:" + data.code + "\r\n"];
|
|
|
|
|
|
|
|
|
|