Browse Source

2025-10-16

取值优化
master
fengyuan_yang 3 months ago
parent
commit
dc264d3460
  1. 12
      src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue
  2. 112
      src/views/modules/print/PoPartPrint.vue

12
src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue

@ -3770,35 +3770,25 @@
this.$message.warning('请先选择一条申请单记录!'); this.$message.warning('请先选择一条申请单记录!');
return; return;
} }
if (!row.orderNo) { if (!row.orderNo) {
this.$message.warning('该记录没有关联工单,无法查询替代料!'); this.$message.warning('该记录没有关联工单,无法查询替代料!');
return; return;
} }
const params = { const params = {
site: row.site, site: row.site,
notifyNo: row.notifyNo, notifyNo: row.notifyNo,
orderNo: row.orderNo, orderNo: row.orderNo,
componentPart: row.componentPartNo componentPart: row.componentPartNo
}; };
this.alternativePartsLoading = true; this.alternativePartsLoading = true;
this.alternativePartsModalFlag = true; this.alternativePartsModalFlag = true;
getBomAlternativeParts(params).then(({data}) => { getBomAlternativeParts(params).then(({data}) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.alternativePartsList = data.rows || [];
if (this.alternativePartsList.length === 0) {
this.$message.info('未找到该物料的替代料');
}
this.alternativePartsList = data.rows || []
} else { } else {
this.$message.error(data.msg || '查询替代料失败'); this.$message.error(data.msg || '查询替代料失败');
this.alternativePartsList = []; this.alternativePartsList = [];
} }
}).catch(err => {
this.$message.error('查询替代料失败: ' + err.message);
this.alternativePartsList = [];
}).finally(() => { }).finally(() => {
this.alternativePartsLoading = false; this.alternativePartsLoading = false;
}); });

112
src/views/modules/print/PoPartPrint.vue

@ -216,7 +216,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="本次可发行数量">
<el-form-item label="可发行数量">
<el-input v-model="addModelData.remainingIssuableQty" disabled style="width: 100%"></el-input> <el-input v-model="addModelData.remainingIssuableQty" disabled style="width: 100%"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -393,126 +393,144 @@ export default {
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: this.functionId, functionId: this.functionId,
serialNumber: '670Table1PoOrderNo',
serialNumber: '670Table1OrderQty',
tableId: "670Table1", tableId: "670Table1",
tableName: "采购检验合格单", tableName: "采购检验合格单",
columnProp: "poOrderNo",
columnProp: "orderQty",
headerAlign: "center", headerAlign: "center",
align: "left",
columnLabel: "采购订单号",
columnWidth: '120',
align: "right",
columnLabel: "到货数量",
columnWidth: '100',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
sortLv: 5,
sortLv: 10,
status: true, status: true,
fixed: false fixed: false
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: this.functionId, functionId: this.functionId,
serialNumber: '670Table1PoItemNo',
serialNumber: '670Table1RollCount',
tableId: "670Table1", tableId: "670Table1",
tableName: "采购检验合格单", tableName: "采购检验合格单",
columnProp: "poItemNo",
columnProp: "rollCount",
headerAlign: "center", headerAlign: "center",
align: "center",
columnLabel: "行号",
columnWidth: '80',
align: "right",
columnLabel: "到货卷数",
columnWidth: '100',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
sortLv: 6,
sortLv: 11,
status: true, status: true,
fixed: false fixed: false
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: this.functionId, functionId: this.functionId,
serialNumber: '670Table1SupplierName',
serialNumber: '670Table1BatchQualifiedQty',
tableId: "670Table1", tableId: "670Table1",
tableName: "采购检验合格单", tableName: "采购检验合格单",
columnProp: "supplierName",
columnProp: "batchQualifiedQty",
headerAlign: "center",
align: "right",
columnLabel: "允许入库数",
columnWidth: '100',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 14,
status: true,
fixed: false
},
{
userId: this.$store.state.user.name,
functionId: this.functionId,
serialNumber: '670Table1PoOrderNo',
tableId: "670Table1",
tableName: "采购检验合格单",
columnProp: "poOrderNo",
headerAlign: "center", headerAlign: "center",
align: "left", align: "left",
columnLabel: "供应商",
columnLabel: "采购订单号",
columnWidth: '120', columnWidth: '120',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
sortLv: 7,
sortLv: 5,
status: true, status: true,
fixed: false fixed: false
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: this.functionId, functionId: this.functionId,
serialNumber: '670Table1InspectorDate',
serialNumber: '670Table1PoItemNo',
tableId: "670Table1", tableId: "670Table1",
tableName: "采购检验合格单", tableName: "采购检验合格单",
columnProp: "inspectorDate",
columnProp: "poItemNo",
headerAlign: "center", headerAlign: "center",
align: "center", align: "center",
columnLabel: "检验日期",
columnWidth: '100',
columnLabel: "行号",
columnWidth: '80',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
sortLv: 8,
sortLv: 6,
status: true, status: true,
fixed: false fixed: false
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: this.functionId, functionId: this.functionId,
serialNumber: '670Table1InspectorNo',
serialNumber: '670Table1SupplierName',
tableId: "670Table1", tableId: "670Table1",
tableName: "采购检验合格单", tableName: "采购检验合格单",
columnProp: "inspectorNo",
columnProp: "supplierName",
headerAlign: "center", headerAlign: "center",
align: "left", align: "left",
columnLabel: "检验员",
columnWidth: '100',
columnLabel: "供应商",
columnWidth: '120',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
sortLv: 9,
sortLv: 7,
status: true, status: true,
fixed: false fixed: false
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: this.functionId, functionId: this.functionId,
serialNumber: '670Table1OrderQty',
serialNumber: '670Table1InspectorDate',
tableId: "670Table1", tableId: "670Table1",
tableName: "采购检验合格单", tableName: "采购检验合格单",
columnProp: "orderQty",
columnProp: "inspectorDate",
headerAlign: "center", headerAlign: "center",
align: "right",
columnLabel: "到货数量",
align: "center",
columnLabel: "检验日期",
columnWidth: '100', columnWidth: '100',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
sortLv: 10,
sortLv: 8,
status: true, status: true,
fixed: false fixed: false
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: this.functionId, functionId: this.functionId,
serialNumber: '670Table1RollCount',
serialNumber: '670Table1InspectorNo',
tableId: "670Table1", tableId: "670Table1",
tableName: "采购检验合格单", tableName: "采购检验合格单",
columnProp: "rollCount",
columnProp: "inspectorNo",
headerAlign: "center", headerAlign: "center",
align: "right",
columnLabel: "到货卷数",
align: "left",
columnLabel: "检验员",
columnWidth: '100', columnWidth: '100',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
sortLv: 11,
sortLv: 9,
status: true, status: true,
fixed: false fixed: false
}, },
@ -552,24 +570,6 @@ export default {
status: true, status: true,
fixed: false fixed: false
}, },
{
userId: this.$store.state.user.name,
functionId: this.functionId,
serialNumber: '670Table1BatchQualifiedQty',
tableId: "670Table1",
tableName: "采购检验合格单",
columnProp: "batchQualifiedQty",
headerAlign: "center",
align: "right",
columnLabel: "允许入库数",
columnWidth: '100',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 14,
status: true,
fixed: false
}
], ],
columnArray2: [ columnArray2: [
{ {
@ -879,7 +879,7 @@ export default {
batchQualifiedQty: row.batchQualifiedQty, batchQualifiedQty: row.batchQualifiedQty,
remainingIssuableQty: outData.remainingIssuableQty, remainingIssuableQty: outData.remainingIssuableQty,
exceedInRatio: outData.exceedInRatio, exceedInRatio: outData.exceedInRatio,
expirationFlag: outData.expirationFlag? outData.expirationFlag:'N',
expirationFlag: outData.expirationFlag,
expirationDay:outData.expirationDay?Number(outData.expirationDay):0, expirationDay:outData.expirationDay?Number(outData.expirationDay):0,
nowRollQty: row.rollQty, nowRollQty: row.rollQty,
productionDate: this.dayjs().format("YYYY-MM-DD"), productionDate: this.dayjs().format("YYYY-MM-DD"),

Loading…
Cancel
Save