413 460 513 514
This commit is contained in:
@@ -744,11 +744,7 @@ function handleSubmitApproval() {
|
||||
} else {
|
||||
submitApproval(receiptHeaderForm.busNo).then((response) => {
|
||||
proxy.$modal.msgSuccess('提交审批成功');
|
||||
// proxy.$tab.closePage(route).then(({ visitedViews }) => { // 关闭当前页
|
||||
// toLastView(visitedViews, route)
|
||||
// })
|
||||
tagsViewStore.delView(router.currentRoute.value);
|
||||
// 跳转到调拨管理页面
|
||||
router.replace({ path: 'transferManagentList' });
|
||||
});
|
||||
}
|
||||
@@ -871,7 +867,6 @@ function handleUnitCodeChange(row, index, value) {
|
||||
}
|
||||
|
||||
function handleItemQuantityChange(row, value) {
|
||||
debugger;
|
||||
let quantityTemp = ''; // 转换成小单位的临时变量 做校验
|
||||
// 大单位情况
|
||||
if (row.unitCodeMap[row.unitCode] == 'unit') {
|
||||
@@ -882,12 +877,6 @@ function handleItemQuantityChange(row, value) {
|
||||
row.itemQuantity = value;
|
||||
quantityTemp = value;
|
||||
}
|
||||
if (row.totalSourceQuantity < quantityTemp) {
|
||||
proxy.$modal.msgWarning('调拨数量不可超出源库存数量');
|
||||
row.itemQuantity = 0;
|
||||
row.itemQuantityDisplay = 0;
|
||||
return;
|
||||
}
|
||||
row.totalPrice = ((row.price * quantityTemp) / row.partPercent).toFixed(2);
|
||||
// 更新总数据中对应的记录
|
||||
const totalIndex = totalIncentoryInfoList.value.findIndex((item) => item.id === row.id);
|
||||
@@ -918,11 +907,12 @@ function remakeBlur(row, index) {
|
||||
editBatchTransfer(index);
|
||||
}
|
||||
function handleSave() {
|
||||
const invalidRow = totalIncentoryInfoList.value.find(
|
||||
// 校验单价
|
||||
const invalidPriceRow = totalIncentoryInfoList.value.find(
|
||||
(row) => !row.price || row.price <= 0
|
||||
);
|
||||
if (invalidRow) {
|
||||
proxy.$message.warning('调拨单价不能为空或为0,请检查!');
|
||||
if (invalidPriceRow) {
|
||||
proxy.$modal.msgError('调拨单价不能为空或为0,请检查!');
|
||||
return;
|
||||
}
|
||||
addTransferProductBatch(totalIncentoryInfoList.value).then((res) => {
|
||||
|
||||
@@ -970,12 +970,6 @@ function handleItemQuantityChange(row, value) {
|
||||
row.itemQuantity = value;
|
||||
quantityTemp = value;
|
||||
}
|
||||
if (row.totalSourceQuantity < quantityTemp) {
|
||||
proxy.$modal.msgWarning('调拨数量不可超出源库存数量');
|
||||
row.itemQuantity = 0;
|
||||
row.itemQuantityDisplay = 0;
|
||||
return;
|
||||
}
|
||||
row.totalPrice = ((row.price * quantityTemp) / row.partPercent).toFixed(2);
|
||||
}
|
||||
|
||||
@@ -1022,11 +1016,7 @@ function handleSubmitApproval() {
|
||||
} else {
|
||||
submitApproval(receiptHeaderForm.busNo).then((response) => {
|
||||
proxy.$modal.msgSuccess('提交审批成功');
|
||||
// proxy.$tab.closePage(route).then(({ visitedViews }) => { // 关闭当前页
|
||||
// toLastView(visitedViews, route)
|
||||
// })
|
||||
tagsViewStore.delView(router.currentRoute.value);
|
||||
// 跳转到调拨管理页面
|
||||
router.replace({ path: 'transferManagentList' });
|
||||
store.clearCurrentDataDB();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user