From b53eb289eead5825bd27b04300fe82b93a213db1 Mon Sep 17 00:00:00 2001 From: shijing Date: Fri, 1 Aug 2025 14:03:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E9=94=80=E5=94=AE=E5=8F=91=E8=B4=A7?= =?UTF-8?q?=EF=BC=8C=E5=8F=91=E8=B4=A7=E7=BC=96=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inm/mioitem.vue | 17 +- src/views/inm/mioitem_form.vue | 124 ++++++++++-- src/views/sam/sale.vue | 259 ++++++++++++++++++++++++ src/views/sam/sale_form.vue | 348 +++++++++++++++++++++++++++++++++ src/views/wpm_bx/inmOut.vue | 79 +++++++- 5 files changed, 807 insertions(+), 20 deletions(-) create mode 100644 src/views/sam/sale.vue create mode 100644 src/views/sam/sale_form.vue diff --git a/src/views/inm/mioitem.vue b/src/views/inm/mioitem.vue index cf595d8d..b2584be8 100644 --- a/src/views/inm/mioitem.vue +++ b/src/views/inm/mioitem.vue @@ -100,7 +100,7 @@ diff --git a/src/views/sam/sale_form.vue b/src/views/sam/sale_form.vue new file mode 100644 index 00000000..cd6855f4 --- /dev/null +++ b/src/views/sam/sale_form.vue @@ -0,0 +1,348 @@ + + + diff --git a/src/views/wpm_bx/inmOut.vue b/src/views/wpm_bx/inmOut.vue index 140a4d64..b22c93bb 100644 --- a/src/views/wpm_bx/inmOut.vue +++ b/src/views/wpm_bx/inmOut.vue @@ -203,9 +203,11 @@ + + + + + + + + { + that.getRowWpr(); + }, + getRowWpr(){ + let that = this; + that.$API.wpm.wpr.list.req(that.wprParams).then((res) => { that.wprList = res; }) }, @@ -479,6 +499,59 @@ export default { this.$refs.handoverDialog.open("add",row,20); }); }, + wprNumberChange(){ + let that = this; + that.showBatch = true; + }, + wprNumberClear(){ + let that = this; + let items = []; + for(let i=0;i< that.wprList.length;i++){ + let obj = {}; + obj.id = that.wprList[i].id; + obj.number_out = null; + items.push(obj) + } + let params = {}; + params.items = items; + that.$API.wpm.wpr.assginNumberOut.req(params).then((res) => { + that.getRowWpr(); + }) + }, + getWprNum(){ + let that = this; + let params0 = {}; + params0.prefix = that.prefix; + that.$API.wpm.wpr.numberOutLast.req(params0).then((res) => { + let number_out_last = ''; + if(res.number_out_last==null){ + number_out_last = that.prefix+'000'; + }else{ + number_out_last = res.number_out_last; + } + that.number_out_last = number_out_last; + let num = number_out_last.slice(-3) + let str = number_out_last.slice(0,-3) + let items = []; + for(let i=0;i< that.wprList.length;i++){ + let obj = {}; + let numb = Number(num)+i+1; + if(numb<10){ + numb = '00'+numb; + }else if(numb<100){ + numb = '0'+numb; + } + obj.id = that.wprList[i].id; + obj.number_out = str+numb; + items.push(obj) + } + let params = {}; + params.items = items; + that.$API.wpm.wpr.assginNumberOut.req(params).then((res) => { + that.getRowWpr(); + }) + }) + }, //本地更新数据 handleSaveSuccess(data, mode) { this.dialog.save = false;