|
@@ -1363,24 +1363,25 @@ export default {
|
|
|
let firm = { ...data, num: 8 };
|
|
|
this.firmName = firm;
|
|
|
} else {
|
|
|
- tools.setDataForKey(
|
|
|
- this.tableData[this.row],
|
|
|
- "dpSupplierId",
|
|
|
- data.venderId
|
|
|
- );
|
|
|
- tools.setDataForKey(
|
|
|
- this.tableData[this.row],
|
|
|
- "infos.supplier",
|
|
|
- data.name
|
|
|
- );
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "dpSupplierId", data.venderId);
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "infos.supplier", data.name);
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'infos.supplierPhone', data.contacts[0]?data.contacts[0].phone:null)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'infos.supplierContactor', data.contacts[0]?data.contacts[0].name:null)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'infos.supplierWeb', data.website?data.website:null)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'infos.supplierEmail', data.contacts[0]?data.contacts[0].email:null)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'infos.supplierFax', data.contacts[0]?data.contacts[0].fax:null)
|
|
|
this.handleUpdataTable(
|
|
|
[
|
|
|
[this.row, "dpSupplierId", null, data.venderId],
|
|
|
- [this.row, "infos.supplier", null, data.name]
|
|
|
+ [this.row, "infos.supplier", null, data.name],
|
|
|
+ [this.row, 'infos.supplierPhone', null, data.contacts[0]?data.contacts[0].phone:null],
|
|
|
+ [this.row, 'infos.supplierContactor', null, data.contacts[0]?data.contacts[0].name:null],
|
|
|
+ [this.row, 'infos.supplierWeb', null, data.website?data.website:null],
|
|
|
+ [this.row, 'infos.supplierEmail', null, data.contacts[0]?data.contacts[0].email:null],
|
|
|
+ [this.row, 'infos.supplierFax', null, data.contacts[0]?data.contacts[0].fax:null],
|
|
|
],
|
|
|
"edit"
|
|
|
);
|
|
|
- // this.handleUpdataTable([[this.row, "infos.SupplyPurchase.Supplier", null, data.name]], "edit")
|
|
|
}
|
|
|
},
|
|
|
//供应合同编号
|
|
@@ -1459,29 +1460,12 @@ export default {
|
|
|
[this.row, "dpManufacturerId", null, data.venderId],
|
|
|
[this.row, "dpBrandId", null, data.brandId],
|
|
|
[this.row, "dpSpecificationId", null, data.specificationId],
|
|
|
- [
|
|
|
- this.row,
|
|
|
- "infos.manufacturer",
|
|
|
- null,
|
|
|
- data.venderName
|
|
|
- ],
|
|
|
- [
|
|
|
- this.row,
|
|
|
- "infos.brand",
|
|
|
- null,
|
|
|
- data.brandName
|
|
|
- ],
|
|
|
- [
|
|
|
- this.row,
|
|
|
- "infos.specification",
|
|
|
- null,
|
|
|
- data.name
|
|
|
- ]
|
|
|
+ [this.row, "infos.manufacturer", null, data.venderName],
|
|
|
+ [this.row, "infos.brand", null, data.brandName],
|
|
|
+ [this.row, "infos.specification", null, data.name]
|
|
|
],
|
|
|
"edit"
|
|
|
);
|
|
|
- // this.handleUpdataTable([[this.row, "infos.equipManufactor.Brand", null, data.brand]], "edit")
|
|
|
- // this.handleUpdataTable([[this.row, "infos.equipManufactor.Specification", null, data.name]], "edit")
|
|
|
}
|
|
|
},
|
|
|
//保险商变更
|
|
@@ -1490,24 +1474,25 @@ export default {
|
|
|
let firm = { ...data, num: 42 };
|
|
|
this.firmName = firm;
|
|
|
} else {
|
|
|
- tools.setDataForKey(
|
|
|
- this.tableData[this.row],
|
|
|
- "dpInsurerId",
|
|
|
- data.venderId
|
|
|
- );
|
|
|
- tools.setDataForKey(
|
|
|
- this.tableData[this.row],
|
|
|
- "infos.insurer",
|
|
|
- data.name
|
|
|
- );
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "dpInsurerId", data.venderId);
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "infos.insurer", data.name);
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'infos.insurerWeb', data.website?data.website:null)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'infos.insurerEmail', data.contacts[0]?data.contacts[0].email:null)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'infos.insurerFax', data.contacts[0]?data.contacts[0].fax:null)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'infos.insurerPhone', data.contacts[0]?data.contacts[0].phone:null)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'infos.insurerContactor', data.contacts[0]?data.contacts[0].name:null)
|
|
|
this.handleUpdataTable(
|
|
|
[
|
|
|
[this.row, "dpInsurerId", null, data.venderId],
|
|
|
- [this.row, "infos.insurer", null, data.name]
|
|
|
+ [this.row, "infos.insurer", null, data.name],
|
|
|
+ [this.row, 'infos.insurerWeb', null, data.website?data.website:null],
|
|
|
+ [this.row, 'infos.insurerEmail', null, data.contacts[0]?data.contacts[0].email:null],
|
|
|
+ [this.row, 'infos.insurerFax', null, data.contacts[0]?data.contacts[0].fax:null],
|
|
|
+ [this.row, 'infos.insurerPhone', null, data.contacts[0]?data.contacts[0].phone:null],
|
|
|
+ [this.row, 'infos.insurerContactor', null, data.contacts[0]?data.contacts[0].name:null],
|
|
|
],
|
|
|
"edit"
|
|
|
);
|
|
|
- // this.handleUpdataTable([[this.row, "infos.InsuranceDoc.Insurer", null, data.name]], "edit")
|
|
|
}
|
|
|
},
|
|
|
//维修商变更
|
|
@@ -1516,29 +1501,25 @@ export default {
|
|
|
let firm = { ...data, num: 35 };
|
|
|
this.firmName = firm;
|
|
|
} else {
|
|
|
- tools.setDataForKey(
|
|
|
- this.tableData[this.row],
|
|
|
- "dpMaintainerId",
|
|
|
- data.venderId
|
|
|
- );
|
|
|
- tools.setDataForKey(
|
|
|
- this.tableData[this.row],
|
|
|
- "infos.maintainer",
|
|
|
- data.name
|
|
|
- );
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "dpMaintainerId", data.venderId);
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "infos.maintainer", data.name);
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'infos.maintainerWeb', data.website?data.website:null)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'infos.maintainerContactor', data.contacts[0]?data.contacts[0].name:null)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'infos.maintainerPhone', data.contacts[0]?data.contacts[0].phone:null)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'infos.maintainerEmail', data.contacts[0]?data.contacts[0].email:null)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'infos.maintainerFax', data.contacts[0]?data.contacts[0].fax:null)
|
|
|
this.handleUpdataTable(
|
|
|
[
|
|
|
[this.row, "dpMaintainerId", null, data.venderId],
|
|
|
- [
|
|
|
- this.row,
|
|
|
- "infos.maintainer",
|
|
|
- null,
|
|
|
- data.name
|
|
|
- ]
|
|
|
+ [this.row, "infos.maintainer", null, data.name],
|
|
|
+ [this.row, 'infos.maintainerWeb', null, data.website?data.website:null],
|
|
|
+ [this.row, 'infos.maintainerContactor', null, data.contacts[0]?data.contacts[0].name:null],
|
|
|
+ [this.row, 'infos.maintainerPhone', null, data.contacts[0]?data.contacts[0].phone:null],
|
|
|
+ [this.row, 'infos.maintainerEmail', null, data.contacts[0]?data.contacts[0].email:null],
|
|
|
+ [this.row, 'infos.maintainerFax', null, data.contacts[0]?data.contacts[0].fax:null],
|
|
|
],
|
|
|
"edit"
|
|
|
);
|
|
|
- // this.handleUpdataTable([[this.row, "infos.operationMainte.maintainer", null, data.name]], "edit")
|
|
|
}
|
|
|
},
|
|
|
//修改关联的资产
|