From ea2fb5c02fa39e531018b3f7beca4796b1c46d6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=94=A1=E7=8E=B2?= <8702040+cai-ling@user.noreply.gitee.com> Date: Thu, 2 Jan 2025 17:11:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E5=88=87=E4=B8=8B=E6=96=99=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/manage/split-cut.vue | 34 +++++++++++++++++++++++++++++----- utils/getData2.js | 4 ++-- 2 files changed, 31 insertions(+), 7 deletions(-) diff --git a/pages/manage/split-cut.vue b/pages/manage/split-cut.vue index ed6c4cd..834e128 100644 --- a/pages/manage/split-cut.vue +++ b/pages/manage/split-cut.vue @@ -11,8 +11,28 @@ + + + 上轴子卷号 + + + + + + + + 下轴子卷号 + + + + + - + @@ -54,6 +74,8 @@ title: '', options: [], index: '', + val1: '', + val2: '', obj: {up: '-', down: '-', msg: '-'}, disabled: false }; @@ -68,7 +90,7 @@ this.options = [...res] }, selectChange (e) { - this._querySlitterDeviceSubVolumeInfos(e) + // this._querySlitterDeviceSubVolumeInfos(e) }, async _querySlitterDeviceSubVolumeInfos (e) { try { @@ -80,7 +102,9 @@ }, clearUp () { this.index = '' - this.obj = {up: '-', down: '-', msg: '-'} + this.val1 = '' + this.val2 = '' + // this.obj = {up: '-', down: '-', msg: '-'} this.disabled = false }, async _slitterDown () { @@ -90,7 +114,7 @@ return } try { - let res = await slitterDown(this.index) + let res = await slitterDown(this.index, this.val1, this.val2) this.clearUp() uni.showToast({ title: res.message, diff --git a/utils/getData2.js b/utils/getData2.js index 4a2d94e..228de19 100644 --- a/utils/getData2.js +++ b/utils/getData2.js @@ -140,9 +140,9 @@ export const querySlitterDeviceSubVolumeInfos = (code) => request({ url:'api/pda/slitter/querySlitterDeviceSubVolumeInfos', data: {point_code: code} }) -export const slitterDown = (code) => request({ +export const slitterDown = (code, cn1, cn2) => request({ url:'api/pda/slitter/slitterDown', - data: {point_code: code} + data: {point_code: code, container1: cn1, container2: cn2} }) // 子卷绑定 export const devicePointQuery = (code) => request({