Browse Source

2025.02.27 供应商送货计划添加换货数量列

供应商送货计划信息 送货汇总增加汇总行
master
jiayang yue 11 months ago
parent
commit
a85af42d1a
  1. 41
      src/views/modules/deliverySchedule/externalSupplierDeliverySchedule.vue
  2. 20
      src/views/modules/deliverySchedule/supplierDeliverySchedule.vue

41
src/views/modules/deliverySchedule/externalSupplierDeliverySchedule.vue

@ -148,8 +148,11 @@
</el-pagination> </el-pagination>
<el-tabs style="margin-top: 0px; width: 100%; height: 100%;" v-model="activeName" class="customer-tab" type="border-card"> <el-tabs style="margin-top: 0px; width: 100%; height: 100%;" v-model="activeName" class="customer-tab" type="border-card">
<el-tab-pane label="汇总" name="first">
<el-tab-pane label="送货汇总" name="first">
<el-table <el-table
:key="collectDataList.length"
:summary-method="getSummaries"
show-summary
:height="height - 325" :height="height - 325"
:data="collectDataList" :data="collectDataList"
border border
@ -716,14 +719,14 @@ export default {
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 109003, functionId: 109003,
serialNumber: '109003Table1PartNo',
serialNumber: '109003Table1NotifyQty',
tableId: "109003Table1", tableId: "109003Table1",
tableName: "送货计划信息汇总表", tableName: "送货计划信息汇总表",
columnWidth: 202,
columnProp: 'partNo',
columnWidth: 120,
columnProp: 'notifyQty',
headerAlign: 'center', headerAlign: 'center',
align: "left",
columnLabel: '物料编码',
align: "right",
columnLabel: '要求送货数量',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -734,14 +737,14 @@ export default {
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 109003, functionId: 109003,
serialNumber: '109003Table1PartDescription',
serialNumber: '109003Table1PartNo',
tableId: "109003Table1", tableId: "109003Table1",
tableName: "送货计划信息汇总表", tableName: "送货计划信息汇总表",
columnWidth: 282,
columnProp: 'partDescription',
columnWidth: 202,
columnProp: 'partNo',
headerAlign: 'center', headerAlign: 'center',
align: "left", align: "left",
columnLabel: '物料名称',
columnLabel: '物料编码',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -752,13 +755,14 @@ export default {
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 109003, functionId: 109003,
serialNumber: '109003Table1Spec',
serialNumber: '109003Table1PartDescription',
tableId: "109003Table1", tableId: "109003Table1",
tableName: "送货计划信息汇总表", tableName: "送货计划信息汇总表",
columnProp: 'spec',
columnWidth: 282,
columnProp: 'partDescription',
headerAlign: 'center', headerAlign: 'center',
align: "left", align: "left",
columnLabel: '规格型号',
columnLabel: '物料名称',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -769,14 +773,13 @@ export default {
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 109003, functionId: 109003,
serialNumber: '109003Table1NotifyQty',
serialNumber: '109003Table1Spec',
tableId: "109003Table1", tableId: "109003Table1",
tableName: "送货计划信息汇总表", tableName: "送货计划信息汇总表",
columnWidth: 120,
columnProp: 'notifyQty',
columnProp: 'spec',
headerAlign: 'center', headerAlign: 'center',
align: "right",
columnLabel: '要求送货数量',
align: "left",
columnLabel: '规格型号',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
@ -1047,8 +1050,6 @@ export default {
return sum + value; return sum + value;
}, 0); }, 0);
sums[index] = total; // sums[index] = total; //
} else if (column.property === 'orderRef1') {
sums[index] = this.dataList.length;
} else { } else {
sums[index] = ''; // sums[index] = ''; //
} }

20
src/views/modules/deliverySchedule/supplierDeliverySchedule.vue

@ -397,6 +397,24 @@ export default {
status: true, status: true,
fixed: '', fixed: '',
}, },
{
userId: this.$store.state.user.name,
functionId: 109001,
serialNumber: '109001TableQtyReplace',
tableId: "109001Table",
tableName: "供应商送货计划表",
columnWidth: 120,
columnProp: 'qtyReplace',
headerAlign: 'center',
align: "right",
columnLabel: '换货数量',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
},
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 109001, functionId: 109001,
@ -860,7 +878,7 @@ export default {
return; return;
} }
const columnProp = column.property; // columnProp const columnProp = column.property; // columnProp
if (['qty', 'pendingQty', 'delNotifyQty', 'deliveryQty'].includes(columnProp)) {
if (['qty', 'pendingQty', 'delNotifyQty', 'deliveryQty','qtyReplace'].includes(columnProp)) {
// //
const total = data.reduce((sum, row) => { const total = data.reduce((sum, row) => {
const value = Number(row[columnProp]) || 0; const value = Number(row[columnProp]) || 0;

Loading…
Cancel
Save