diff --git a/pages/SecondPhase/slitting/PaperBind.vue b/pages/SecondPhase/slitting/PaperBind.vue index ff25b6e..72a66e9 100644 --- a/pages/SecondPhase/slitting/PaperBind.vue +++ b/pages/SecondPhase/slitting/PaperBind.vue @@ -11,9 +11,15 @@ + + 排数 + + + + - 排数 + 数量 @@ -29,8 +35,8 @@ - - + + @@ -48,6 +54,8 @@ data() { return { val1: '', + options1: [{value: '1', text: '1'}, {value: '2', text: '2'}, {value: '3', text: '3'}, {value: '4', text: '4'}, {value: '5', text: '5'}], + index1: '', val2: '', options: [], index: '', @@ -66,6 +74,9 @@ this.newoptions = [...res.rows] }, /** 选择器 */ + selectChange1 (e) { + this.index1 = e + }, selectChange (e) { this.index = e }, @@ -92,12 +103,12 @@ }, async _operateIvt (type) { this.disabled = true - if (!this.val1 || !this.val2 || !this.index) { + if (!this.val1 || !this.val2 || !this.index || !this.index1) { this.disabled = false return } try { - let res = await operateIvt(type, this.val1, this.val2, this.index) + let res = await operateIvt(type, this.val1, this.index1, this.val2, this.index) uni.showToast({ title: res.message, icon: 'none' @@ -111,6 +122,7 @@ this.val1 = '' this.val2 = '' this.index = '' + this.index1 = '' } } } diff --git a/utils/getData3.js b/utils/getData3.js index aaf6725..50d4bed 100644 --- a/utils/getData3.js +++ b/utils/getData3.js @@ -157,9 +157,9 @@ export const updatePackageInfo = (ivt, cn) => request({ /** * 纸管绑定 */ -export const operateIvt = (type, vcode, num, code) => request({ +export const operateIvt = (type, vcode, num, qty, code) => request({ url:'api/bstIvtStockingivt/operateIvt', - data: {type: type, vehicle_code: vcode, row_num: num, material_code: code} + data: {type: type, vehicle_code: vcode, row_num: num, qty: qty, material_code: code} }) /** * 分切暂存下料