From ff05ff93831a99ac0c1368db480f374153408478 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Mon, 22 May 2023 17:15:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=93=E5=AD=98=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/management/hcxcheck.vue | 4 ++-- utils/getData2.js | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/pages/management/hcxcheck.vue b/pages/management/hcxcheck.vue index b0452da..a4fe175 100644 --- a/pages/management/hcxcheck.vue +++ b/pages/management/hcxcheck.vue @@ -315,7 +315,7 @@ async _cacheLineHandCheck () { this.disabled4 = true try { - let res = await cacheLineHandCheck('0') + let res = await cacheLineHandCheck('0', this.index2) this.disabled4 = false uni.showToast({ title: res.message, @@ -328,7 +328,7 @@ async _cacheLineHandCheckEnd () { this.disabled5 = true try { - let res = await cacheLineHandCheckEnd('1') + let res = await cacheLineHandCheckEnd('1', this.index2) this.disabled5 = false uni.showToast({ title: res.message, diff --git a/utils/getData2.js b/utils/getData2.js index 139c1af..cd32ab7 100644 --- a/utils/getData2.js +++ b/utils/getData2.js @@ -118,17 +118,19 @@ export const deleteBox = (obj) => request({ data: obj }) // 1.7缓存线盘点-盘点开始 -export const cacheLineHandCheck = (option) => request({ +export const cacheLineHandCheck = (option, code) => request({ url:'api/cacheLineHand/check', data: { - check_option: option + check_option: option, + device_code: code } }) // 1.8缓存线盘点-盘点结束 -export const cacheLineHandCheckEnd = (option) => request({ +export const cacheLineHandCheckEnd = (option, code) => request({ url:'api/cacheLineHand/checkEnd', data: { - check_option: option + check_option: option, + device_code: code } })