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 } })