Browse Source

修复已知bug

dev-xx
马远东 8 months ago
parent
commit
88edc5fe09
  1. 3
      src/views/cost/Deliverycostmanagement/Deliverymaintenancecosts.vue
  2. 47
      src/views/mail/order/add.vue
  3. 20
      src/views/mail/order/list.vue

3
src/views/cost/Deliverycostmanagement/Deliverymaintenancecosts.vue

@ -531,7 +531,8 @@ const Pricingrules = () => {
carModel:form.value.carModel,//
}
$_expenseDispatchPricesave(data).then(res=>{
console.log(res,'res');
console.log(res,'提交成功');
})

47
src/views/mail/order/add.vue

@ -214,6 +214,7 @@
@selection="selectionChange"
>
<template #default="slotProps">
<!-- <el-text-->
<!-- v-if="inventoryShow"-->
<!-- type="primary"-->
@ -2461,21 +2462,41 @@
let inventoryIds = [];
let inventoryList = [];
let stockArticleList = [];
// let operation = true;
// this.inventoryData.forEach(item => {
// if (Number(item.reservationNum) === 0 || item.reservationNum > item.quantityStock) {
// this.$message({
// type: 'warning',
// message: '',
// });
// operation = false;
// return;
// }
// item.reservationNum = item.reservationNum;
// inventoryIds.push(item.id);
// inventoryList.push(item);
// });
// if(!operation){
// return
// }
let operation = true;
this.inventoryData.forEach(item => {
if (Number(item.reservationNum) === 0 || item.reservationNum > item.quantityStock) {
this.$message({
type: 'warning',
message: '存在无效的预约数量',
});
operation = false;
return;
}
item.reservationNum = item.reservationNum;
inventoryIds.push(item.id);
inventoryList.push(item);
});
for (let i = 0; i < this.inventoryData.length; i++) {
const item = this.inventoryData[i];
if (Number(item.reservationNum) === 0 || item.reservationNum > item.quantityStock) {
this.$message({
type: 'warning',
message: '存在无效的预约数量',
});
operation = false;
break; //
}
inventoryIds.push(item.id);
inventoryList.push(item);
}
if (!operation) {
return;
}
orderIds.join(',');
inventoryIds.join(',');
this.form.stockArticleIds = orderIds.toString();

20
src/views/mail/order/list.vue

@ -507,16 +507,16 @@ export default {
fixed: false,
sortable: true,
},
{
prop: 'availableQuantity',
label: '可用数量',
type: 2,
values: '',
width: '140',
checkarr: [],
fixed: false,
sortable: true,
},
// {
// prop: 'availableQuantity',
// label: '',
// type: 2,
// values: '',
// width: '140',
// checkarr: [],
// fixed: false,
// sortable: true,
// },
{
prop: 'notReceived',
label: '未入库数量',

Loading…
Cancel
Save