剩余模块:生产退料
This commit is contained in:
@@ -186,20 +186,22 @@
|
||||
|
||||
//仓库校验
|
||||
if (Object.keys(state.warehouseData).length !== 0 && Object.keys(state.receiveBillScanData.StockId).length !== 0) {
|
||||
console.log('断点1');
|
||||
if (state.receiveBillScanData.StockId.Number !== state.warehouseData.FNUMBER) {
|
||||
uni.showModal({
|
||||
title: t('index.ts'), content: t('index.ymrckbt'), cancelText: t('index.qx'), confirmText: t('index.qd'),
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
state.scanFrame.warehouseStr = formatLangTextValue(state.receiveBillScanData.StockId.Name)
|
||||
state.warehouseData = state.receiveBillScanData.StockId.MultiLanguageText
|
||||
} else if (res.cancel) {
|
||||
console.log('用户点击取消');
|
||||
}
|
||||
}
|
||||
});
|
||||
// uni.showModal({
|
||||
// title: t('index.ts'), content: t('index.ymrckbt'), cancelText: t('index.qx'), confirmText: t('index.qd'),
|
||||
// success(res) {
|
||||
// if (res.confirm) {
|
||||
// state.scanFrame.warehouseStr = formatLangTextValue(state.receiveBillScanData.StockId.Name)
|
||||
// state.warehouseData = state.receiveBillScanData.StockId
|
||||
// } else if (res.cancel) {
|
||||
// console.log('用户点击取消');
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
}
|
||||
} else if (Object.keys(state.warehouseData).length == 0 && Object.keys(state.receiveBillScanData.StockId).length !== 0) {
|
||||
console.log('断点2');
|
||||
state.scanFrame.warehouseStr = formatLangTextValue(state.receiveBillScanData.StockId.Name)
|
||||
state.warehouseData = {
|
||||
FIsOpenLocation: state.receiveBillScanData.StockId.IsOpenLocation,
|
||||
@@ -244,11 +246,11 @@
|
||||
|
||||
//反馈数据校验
|
||||
const dataVerifyFun = () => {
|
||||
if (state.quantityStrState) {
|
||||
uni.$u.toast('请检查您的数量')
|
||||
eimts('err')
|
||||
return false
|
||||
}
|
||||
// if (state.quantityStrState) {
|
||||
// uni.$u.toast('请检查您的数量')
|
||||
// eimts('err')
|
||||
// return false
|
||||
// }
|
||||
if (state.receiveBillScanData.stashVerify) {
|
||||
if (state.scanFrame.warehouseStr == '') {
|
||||
uni.$u.toast(t('index.gmkxyzdck'))
|
||||
|
||||
Reference in New Issue
Block a user