确认单据

20240912_adapter_z
yewj 10 months ago
parent 1926b45bea
commit 21b01ae12c

@ -6,7 +6,7 @@ ENV = 'development'
# 开发环境 # 开发环境
# VUE_APP_BASE_API = 'https://mudi.dsxyy.org/UDI_WMS_MC/' # VUE_APP_BASE_API = 'https://mudi.dsxyy.org/UDI_WMS_MC/'
VUE_APP_BASE_API = 'http://127.0.0.1:9991' VUE_APP_BASE_API = 'http://192.168.0.166:9991'
VUE_APP_SYNC_API ="http://127.0.0.1:10001" VUE_APP_SYNC_API ="http://127.0.0.1:10001"
# 应用访问路径 例如使用前缀 /admin/ # 应用访问路径 例如使用前缀 /admin/

@ -56,7 +56,7 @@
<el-button <el-button
type="primary" type="primary"
:disabled="formData.tagStatus<2" :disabled="formData.tagStatus<2"
@click.native="finishOrder()" @click.native="confirmFinishOrder()"
>处理完成 >处理完成
</el-button> </el-button>
@ -209,14 +209,14 @@
:prescribeData="curRow" :prescribeData="curRow"
></prescribeOriginPanel> ></prescribeOriginPanel>
</el-tab-pane> </el-tab-pane>
<!-- <el-tab-pane label="扫码明细">--> <!-- <el-tab-pane label="扫码明细">-->
<!-- <PanelOrderManuTagCode--> <!-- <PanelOrderManuTagCode-->
<!-- v-if="panelALive"--> <!-- v-if="panelALive"-->
<!-- :fifoSplit="3"--> <!-- :fifoSplit="3"-->
<!-- :prescribeData="curRow"--> <!-- :prescribeData="curRow"-->
<!-- :refreshPanel="refreshCodesPanelP"--> <!-- :refreshPanel="refreshCodesPanelP"-->
<!-- ></PanelOrderManuTagCode>--> <!-- ></PanelOrderManuTagCode>-->
<!-- </el-tab-pane>--> <!-- </el-tab-pane>-->
<el-tab-pane label="拆零详情"> <el-tab-pane label="拆零详情">
<prescribeCodePanel <prescribeCodePanel
v-if="panelALive" v-if="panelALive"
@ -326,7 +326,7 @@ import {enterCodeWeb} from "@/api/inout/order";
import {draftOrder, finishOrder, startSplit, tagCode, updateOrder} from "@/api/collect/splitCreateOrder"; import {draftOrder, finishOrder, startSplit, tagCode, updateOrder} from "@/api/collect/splitCreateOrder";
import {selectCorpList} from "@/api/basic/basicUnitMaintain"; import {selectCorpList} from "@/api/basic/basicUnitMaintain";
import {delDrugLevel} from "@/api/basic/product/drugUdiinfos"; import {delDrugLevel} from "@/api/basic/product/drugUdiinfos";
import {getCurOrder, getNextOrder,findByBill} from "@/api/collect/collectOrder"; import {getCurOrder, getNextOrder, findByBill} from "@/api/collect/collectOrder";
import PanelOrderAllDetail from "@/views/collect/PanelOrderAllDetail"; import PanelOrderAllDetail from "@/views/collect/PanelOrderAllDetail";
import {getWorkBindBusTypes, removeBusTypeById} from '@/api/basic/workPlace/sysWorkplaceDocuments' import {getWorkBindBusTypes, removeBusTypeById} from '@/api/basic/workPlace/sysWorkplaceDocuments'
@ -365,12 +365,13 @@ export default {
curWorkPlaces: [], curWorkPlaces: [],
erpList: [], erpList: [],
formData: { formData: {
billNo:null, billNo: null,
tagStatus: -1, tagStatus: -1,
invCode: null, invCode: null,
busType: null, busType: null,
workPlaceCode: null, workPlaceCode: null,
fromCorp: null, fromCorp: null,
confirmFinish: false,
}, },
selectPrescriptionVisible: false, selectPrescriptionVisible: false,
corpOrderIdDisabled: false, corpOrderIdDisabled: false,
@ -418,7 +419,7 @@ export default {
}, },
methods: { methods: {
getBillNo(billNo){ getBillNo(billNo) {
let post = { let post = {
billNo: billNo, billNo: billNo,
page: 1, page: 1,
@ -426,7 +427,7 @@ export default {
} }
findByBill(post).then(res => { findByBill(post).then(res => {
if (res.code == 20000) { if (res.code == 20000) {
if (res.data.list.length > 0){ if (res.data.list.length > 0) {
this.formData = res.data.list[0] this.formData = res.data.list[0]
} }
} }
@ -454,9 +455,9 @@ export default {
if (this.formDataVisible.scanType == 1) { if (this.formDataVisible.scanType == 1) {
this.findFromInvList(""); this.findFromInvList("");
} }
if (this.formData.billNo != null){ if (this.formData.billNo != null) {
this.getBillNo(this.formData.billNo) this.getBillNo(this.formData.billNo)
}else { } else {
this.findCurOrder(); this.findCurOrder();
} }
@ -689,25 +690,39 @@ export default {
}); });
}, },
finishOrder() { confirmFinishOrder() {
this.$confirm('是否确定完成此单据?', '提示', { this.$confirm('是否确定完成此单据?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.finishOrder()
}).catch(() => {
});
},
finishOrder() {
finishOrder(this.formData).then(res => { finishOrder(this.formData).then(res => {
this.loading = false this.loading = false
if (res.code == 20000) { if (res.code == 20000) {
this.formData = {tagStatus: -1}; this.formData = {tagStatus: -1};
this.curRow = null this.curRow = null
this.formData.confirmFinish = false;
this.refreshCodesPanel(this) this.refreshCodesPanel(this)
} else if (res.code == 502) {
this.$confirm(res.message, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.formData.confirmFinish = true;
this.finishOrder();
}).catch(() => {
});
} }
}).catch(() => { }).catch(() => {
this.loading = false this.loading = false
}) })
}).catch(() => {
});
}, },
updateOrder() { updateOrder() {
@ -878,8 +893,6 @@ export default {
} }
} }
} }

Loading…
Cancel
Save