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;