协同BUG修改

master
leo 3 years ago
parent b1980ae61e
commit c684d53db9

@ -437,11 +437,16 @@ export default {
}) || null;
if (result != null && result.FID) {
let col7 = this.dataColumn.filter(s => s.fieldType == 7) || [];
col7.forEach((item) => {
if (item.table == "TFS_MaterialInfo") {
// let col7 = this.dataColumn.filter(s => s.fieldType == 7) || [];
// col7.forEach((item) => {
// if (item.table == "TFS_MaterialInfo") {
// data[item.key] = result[item.key] || data[item.key] || "";
// }
// });
this.dataColumn.forEach((item) => {
if (item.key != "FTypeID1" && item.key != "FTypeID2") {
data[item.key] = result[item.key] || data[item.key] || "";
}
}
});
let type1 = this.typeList[0].filter(t => t.FValue == data.FTypeID1)[0];
@ -556,6 +561,14 @@ export default {
}
}
if (!dataObj["TFS_ViewMaterial"]) {
dataObj["TFS_ViewMaterial"] = {};
}
dataObj["TFS_ViewMaterial"].FMaterialID = row["FMaterialID"];
dataObj["TFS_ViewMaterial"].FMRP1ProductType = row["FMRP1ProductType"];
dataObj["TFS_ViewMaterial"].FBaseMaterialCode = row["FBaseMaterialCode"]
for (let key in dataObj) {
if (!updateObj[key]) updateObj[key] = [];
updateObj[key].push(dataObj[key]);

Loading…
Cancel
Save