|
|
|
@ -982,7 +982,8 @@
|
|
|
|
|
confirmText: '确认删除', |
|
|
|
|
success() { |
|
|
|
|
details.renderList = details.renderList.filter(val => Number(val.questStatus) === 1 || !val.isChoose) |
|
|
|
|
details.orderList = details.renderList |
|
|
|
|
if (details.tabBarCode === 1) details.orderList = details.renderList |
|
|
|
|
else if (details.tabBarCode === 2) details.stockList = details.renderList |
|
|
|
|
details.scanNum = details.renderList.reduce((curr, item) => { |
|
|
|
|
if (item.questStatus === 1) return curr += 1 |
|
|
|
|
return curr |
|
|
|
@ -1523,6 +1524,11 @@
|
|
|
|
|
console.log('submitData :>> ', submitData); |
|
|
|
|
const res = await postWarehouseTaskAddDataInfo(submitData) |
|
|
|
|
console.log('res :>> ', res); |
|
|
|
|
const { code } = res |
|
|
|
|
if (code === 200) { |
|
|
|
|
// 提交成功返回上一级页面 |
|
|
|
|
uni.navigateBack() |
|
|
|
|
} |
|
|
|
|
} catch (err) { |
|
|
|
|
console.log('err :>> ', err); |
|
|
|
|
//TODO handle the exception |
|
|
|
|