缓存线

This commit is contained in:
2023-05-22 17:15:47 +08:00
parent d3d89424a0
commit ff05ff9383
2 changed files with 8 additions and 6 deletions

View File

@@ -315,7 +315,7 @@
async _cacheLineHandCheck () { async _cacheLineHandCheck () {
this.disabled4 = true this.disabled4 = true
try { try {
let res = await cacheLineHandCheck('0') let res = await cacheLineHandCheck('0', this.index2)
this.disabled4 = false this.disabled4 = false
uni.showToast({ uni.showToast({
title: res.message, title: res.message,
@@ -328,7 +328,7 @@
async _cacheLineHandCheckEnd () { async _cacheLineHandCheckEnd () {
this.disabled5 = true this.disabled5 = true
try { try {
let res = await cacheLineHandCheckEnd('1') let res = await cacheLineHandCheckEnd('1', this.index2)
this.disabled5 = false this.disabled5 = false
uni.showToast({ uni.showToast({
title: res.message, title: res.message,

View File

@@ -118,17 +118,19 @@ export const deleteBox = (obj) => request({
data: obj data: obj
}) })
// 1.7缓存线盘点-盘点开始 // 1.7缓存线盘点-盘点开始
export const cacheLineHandCheck = (option) => request({ export const cacheLineHandCheck = (option, code) => request({
url:'api/cacheLineHand/check', url:'api/cacheLineHand/check',
data: { data: {
check_option: option check_option: option,
device_code: code
} }
}) })
// 1.8缓存线盘点-盘点结束 // 1.8缓存线盘点-盘点结束
export const cacheLineHandCheckEnd = (option) => request({ export const cacheLineHandCheckEnd = (option, code) => request({
url:'api/cacheLineHand/checkEnd', url:'api/cacheLineHand/checkEnd',
data: { data: {
check_option: option check_option: option,
device_code: code
} }
}) })