布产料品
This commit is contained in:
parent
59b28d141e
commit
038f5d2935
|
|
@ -650,6 +650,16 @@ export default {
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
delete postdata.create_time
|
||||||
|
delete postdata.create_uid
|
||||||
|
delete postdata.update_time
|
||||||
|
delete postdata.update_uid
|
||||||
|
delete postdata.custom_attribute_attribute
|
||||||
|
delete postdata.custom_attribute_category
|
||||||
|
delete postdata.custom_attribute_field
|
||||||
|
delete postdata.mes_materials_sort
|
||||||
|
|
||||||
|
|
||||||
console.log(postdata)
|
console.log(postdata)
|
||||||
// 格式化提交的数据
|
// 格式化提交的数据
|
||||||
this.$mk.formatFormData({ data: postdata, rules: this.options.formOptions.items });
|
this.$mk.formatFormData({ data: postdata, rules: this.options.formOptions.items });
|
||||||
|
|
|
||||||
|
|
@ -498,8 +498,9 @@ export default {
|
||||||
if (!this.dataId) {
|
if (!this.dataId) {
|
||||||
this.dataId = a.data.id;
|
this.dataId = a.data.id;
|
||||||
|
|
||||||
this.pageInit();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.pageInit();
|
||||||
} else {
|
} else {
|
||||||
this.$mk.error(a.msg || "保存失败"); // 显示错误信息
|
this.$mk.error(a.msg || "保存失败"); // 显示错误信息
|
||||||
}
|
}
|
||||||
|
|
@ -676,38 +677,7 @@ export default {
|
||||||
width: width * 0.9,
|
width: width * 0.9,
|
||||||
height: height * 0.9,
|
height: height * 0.9,
|
||||||
callback: ({ data }) => {
|
callback: ({ data }) => {
|
||||||
if (data.list && data.details && data.details.length) {
|
console.log(data)
|
||||||
this.formOptions.data = this.getDefaultData();
|
|
||||||
this.formOptions.data.AAPartner = data.list[0].AAPartner;
|
|
||||||
this.formOptions.data.WorkingProcedure = data.list[0].WorkingProcedure;
|
|
||||||
|
|
||||||
|
|
||||||
var rows = [];
|
|
||||||
data.details.forEach(item => {
|
|
||||||
var row = {
|
|
||||||
AAProduct: item.AAInventory,
|
|
||||||
AAProductID: item.AAInventoryID
|
|
||||||
};
|
|
||||||
row.ProductCode = item.AAInventoryCode;
|
|
||||||
row.specification = item.specification;
|
|
||||||
row.UnitName = item.ProductionUnitTitle;
|
|
||||||
if (this.firstQuantityFieldName) {
|
|
||||||
row[this.firstQuantityFieldName] = (item.Quantity || 0) - (item.QuantityReceived || 0);
|
|
||||||
}
|
|
||||||
row.SourceTableName = "TP_outSourceOrder";
|
|
||||||
row.SourceTableID = item.OutSourceOrderID;
|
|
||||||
rows.push(row);
|
|
||||||
});
|
|
||||||
for (let i = rows.length; i < 10; i++) {
|
|
||||||
rows.push({});
|
|
||||||
}
|
|
||||||
console.log(rows)
|
|
||||||
this.detailsData = rows;
|
|
||||||
|
|
||||||
this.updateCurrentQuantity();
|
|
||||||
} else {
|
|
||||||
this.$mk.error("未选择任何数据");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue