From 7d2731439bc01cfff22380cf1b58ba37c0c22023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E6=99=A8=E6=99=A8?= Date: Wed, 19 Apr 2023 11:01:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=A2=84=E9=80=89=E5=8D=95?= =?UTF-8?q?=E9=80=89=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inout/DialogCreateOrder.vue | 34 +++++++++---- src/views/inout/DialogCreateOrderSelect.vue | 53 ++++++++++----------- vue.config.js | 6 +-- 3 files changed, 53 insertions(+), 40 deletions(-) diff --git a/src/views/inout/DialogCreateOrder.vue b/src/views/inout/DialogCreateOrder.vue index 59006fdf..67ccebb9 100644 --- a/src/views/inout/DialogCreateOrder.vue +++ b/src/views/inout/DialogCreateOrder.vue @@ -14,6 +14,7 @@ 选入预验收库单 @@ -184,10 +185,13 @@ - + - + @@ -284,7 +288,10 @@ append-to-body @close="closeDialogtwo" > - + @@ -346,7 +353,7 @@ export default { remark: null, fromType: 2, errMsg: null, - Acceptance: null, + checkPreInOrders: null, }, errView: 0, //选入相关 @@ -419,6 +426,8 @@ export default { viewBizVisible: false, viewCodeVisible: false, viewCodeDetailVisible: false, + + documentShow:false,//控制预选单显示隐藏 }; }, components: { @@ -446,14 +455,18 @@ export default { }) .catch(() => {}); }, - //接收预选单传值 - giveselectbox(val){ - this.orderFormData.Acceptance=val + //接收预选单传值 + giveselectbox(val) { + this.orderFormData.checkPreInOrders = val; }, //仓库改变 changeInv() { this.orderFormData.action = null; this.getBusTypeByInv(); + + // if(scanPreIn = true && backPreinType === 1){ + + // } }, //根据仓库,用户获取单据类型 @@ -552,6 +565,11 @@ export default { this.orderFormData.fromInvCode = null; this.findFromInvList(); } + if(this.curAction.scanPreIn = true && this.curAction.backPreinType == 1){ + this.documentShow=true + } + + }, //获取往来仓库列表 @@ -914,7 +932,7 @@ export default { created() { //页面初始化 this.codeFormData.code = ""; - this.giveselectbox() + this.giveselectbox(); //页面类型 if (this.viewType == 2) { //2.新增扫码单据页面,1、新增业务单据页面,3、正常页面 diff --git a/src/views/inout/DialogCreateOrderSelect.vue b/src/views/inout/DialogCreateOrderSelect.vue index ce28b099..74f699d3 100644 --- a/src/views/inout/DialogCreateOrderSelect.vue +++ b/src/views/inout/DialogCreateOrderSelect.vue @@ -125,7 +125,7 @@ border @row-click="handleSelectionChange" > - + { - // 每一项的单号 - return item.billNo - }) - this.selectbox=qwe - }, - //关闭对话框 - closeLocalDialog(){ - + combine() { + this.closeDialogtwo(); + this.$emit("giveselectbox", this.currentRow.billNo); }, + // //选择 + // select(selection,row){ + + // // console.log(row); + // this.selectboxs.push(row) + // let nerArr = JSON.parse(JSON.stringify(this.selectboxs)) + // let qwe = nerArr.map(item=>{ + // // 每一项的单号 + // return item.billNo + // }) + // this.selectbox=qwe + // }, + //关闭对话框 + closeLocalDialog() {}, hideSearch() { this.showSearch = !this.showSearch; }, @@ -437,7 +434,7 @@ export default { }, handleSelectionChange(val) { this.currentRow = val; - console.log(this.currentRow); + console.log(this.currentRow.billNo); this.getOrderDetails(); }, // 获取单据 业务详情、扫码详情、扫码明细 diff --git a/vue.config.js b/vue.config.js index 0c3feeb1..bf23e227 100644 --- a/vue.config.js +++ b/vue.config.js @@ -35,11 +35,9 @@ module.exports = { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { -<<<<<<< HEAD - target: `http://192.168.0.166:9991/`, -======= + + target: `http://192.168.0.66:9150/UDI_WMS_MC/`, ->>>>>>> 9888474ccf2da85118a27d3e30da15957c8302ff changeOrigin: true, pathRewrite: { ["^" + process.env.VUE_APP_BASE_API]: "",