Browse Source

优化收入品类是否维护的展示

dev-xx
qb 5 months ago
parent
commit
dc11aa9b86
  1. 2
      src/views/distribution/inventory/BookingNote.vue
  2. 22
      src/views/distribution/inventory/CreateOrder.vue

2
src/views/distribution/inventory/BookingNote.vue

@ -1641,7 +1641,7 @@ const initOrderPackage = async () => {
for (let i = 0; i < details.orderPackageOption.data.length; i++) {
const element = details.orderPackageOption.data[i];
element.MaintenanceOrNot = element.incomeCategoryName && element.costCategoryId ? '是' : '否';
element.MaintenanceOrNot = element.incomeCategoryId ? '是' : '否';
//
element.incomeCategoryName = element.incomeCategoryName || '其它';

22
src/views/distribution/inventory/CreateOrder.vue

@ -1188,10 +1188,9 @@
slotProps.scope.row.costCategory = _item.goodsName || '其它';
//
slotProps.scope.row.MaintenanceOrNot =
slotProps.scope.row.incomeCategoryId && slotProps.scope.row.costCategoryId
? '是'
: '否';
slotProps.scope.row.MaintenanceOrNot = slotProps.scope.row.incomeCategoryId
? '是'
: '否';
}
"
:remote-method="handleFindGoodsByName"
@ -1228,10 +1227,9 @@
slotProps.scope.row.incomeCategory = _item.goodsName || '其它';
//
slotProps.scope.row.MaintenanceOrNot =
slotProps.scope.row.incomeCategoryId && slotProps.scope.row.costCategoryId
? '是'
: '否';
slotProps.scope.row.MaintenanceOrNot = slotProps.scope.row.incomeCategoryId
? '是'
: '否';
}
"
:remote-method="handleFindGoodsByName"
@ -2219,8 +2217,7 @@ const onLoad = async (idsArr = []) => {
for (let i = 0; i < details.package.data.length; i++) {
const element = details.package.data[i];
element.MaintenanceOrNot =
element.incomeCategoryName && element.costCategoryId ? '是' : '否';
element.MaintenanceOrNot = element.incomeCategoryId ? '是' : '否';
//
element.confirmIncomeCategoryName = element.incomeCategoryName || '其它';
@ -2394,8 +2391,7 @@ const onEditLoad = async () => {
for (let i = 0; i < details.package.data.length; i++) {
const element = details.package.data[i];
element.MaintenanceOrNot =
element.incomeCategoryName && element.costCategoryId ? '是' : '否';
element.MaintenanceOrNot = element.incomeCategoryId ? '是' : '否';
//
element.confirmIncomeCategoryName = element.incomeCategoryName || '其它';
@ -4679,7 +4675,7 @@ const handleBatchEdit = () => {
value.incomeCategoryName = details.package.incomeCategoryName || '其它';
value.incomeCategory = details.package.incomeCategoryName || '其它';
value.MaintenanceOrNot = value.incomeCategoryId && value.costCategoryId ? '是' : '否';
value.MaintenanceOrNot = value.incomeCategoryId ? '是' : '否';
}
})
.catch(() => {

Loading…
Cancel
Save