|
@@ -1071,15 +1071,25 @@
|
|
|
let firm = {...data, num: 8}
|
|
|
this.firmName = firm
|
|
|
} else {
|
|
|
- tools.setDataForKey(this.tableData[this.row], "DPSupplierID", data.venderId)
|
|
|
- tools.setDataForKey(this.tableData[this.row], "LedgerParam.SupplyPurchase.Supplier", data.name)
|
|
|
- this.handleUpdataTable(
|
|
|
- [
|
|
|
- [this.row, "DPSupplierID", null, data.venderId],
|
|
|
- [this.row, "LedgerParam.SupplyPurchase.Supplier", null, data.name]
|
|
|
- ],
|
|
|
- "edit"
|
|
|
- )
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'DPSupplierID', data.venderId)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'LedgerParam.SupplyPurchase.Supplier', data.name)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'LedgerParam.SupplyPurchase.SupplierPhone', data.contacts[0]?data.contacts[0].phone:null)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'LedgerParam.SupplyPurchase.SupplierContactor', data.contacts[0]?data.contacts[0].name:null)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'LedgerParam.SupplyPurchase.SupplierWeb', data.website?data.website:null)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'LedgerParam.SupplyPurchase.SupplierEmail', data.contacts[0]?data.contacts[0].email:null)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'LedgerParam.SupplyPurchase.SupplierFax', data.contacts[0]?data.contacts[0].fax:null)
|
|
|
+ this.handleUpdataTable(
|
|
|
+ [
|
|
|
+ [this.row, 'DPSupplierID', null, data.venderId],
|
|
|
+ [this.row, 'LedgerParam.SupplyPurchase.Supplier', null, data.name],
|
|
|
+ [this.row, 'LedgerParam.SupplyPurchase.SupplierPhone', null, data.contacts[0]?data.contacts[0].phone:null],
|
|
|
+ [this.row, 'LedgerParam.SupplyPurchase.SupplierContactor', null, data.contacts[0]?data.contacts[0].name:null],
|
|
|
+ [this.row, 'LedgerParam.SupplyPurchase.SupplierWeb', null, data.website?data.website:null],
|
|
|
+ [this.row, 'LedgerParam.SupplyPurchase.SupplierEmail', null, data.contacts[0]?data.contacts[0].email:null],
|
|
|
+ [this.row, 'LedgerParam.SupplyPurchase.SupplierFax', null, data.contacts[0]?data.contacts[0].fax:null],
|
|
|
+ ],
|
|
|
+ 'edit'
|
|
|
+ )
|
|
|
// this.handleUpdataTable([[this.row, "LedgerParam.SupplyPurchase.Supplier", null, data.name]], "edit")
|
|
|
}
|
|
|
},
|
|
@@ -1141,15 +1151,25 @@
|
|
|
let firm = {...data, num: 42}
|
|
|
this.firmName = firm
|
|
|
} else {
|
|
|
- tools.setDataForKey(this.tableData[this.row], "DPInsurerID", data.venderId)
|
|
|
- tools.setDataForKey(this.tableData[this.row], "LedgerParam.InsuranceDoc.Insurer", data.name)
|
|
|
- this.handleUpdataTable(
|
|
|
- [
|
|
|
- [this.row, "DPInsurerID", null, data.venderId],
|
|
|
- [this.row, "LedgerParam.InsuranceDoc.Insurer", null, data.name]
|
|
|
- ],
|
|
|
- "edit"
|
|
|
- )
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'DPInsurerID', data.venderId)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'LedgerParam.InsuranceDoc.Insurer', data.name?data.name:null)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'LedgerParam.InsuranceDoc.InsurerWeb', data.website?data.website:null)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'LedgerParam.InsuranceDoc.InsurerEmail', data.contacts[0]?data.contacts[0].email:null)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'LedgerParam.InsuranceDoc.InsurerFax', data.contacts[0]?data.contacts[0].fax:null)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'LedgerParam.InsuranceDoc.InsurerPhone', data.contacts[0]?data.contacts[0].phone:null)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'LedgerParam.InsuranceDoc.InsurerContactor', data.contacts[0]?data.contacts[0].name:null)
|
|
|
+ this.handleUpdataTable(
|
|
|
+ [
|
|
|
+ [this.row, 'DPInsurerID', null, data.venderId],
|
|
|
+ [this.row, 'LedgerParam.InsuranceDoc.Insurer', null, data.name?data.name:null],
|
|
|
+ [this.row, 'LedgerParam.InsuranceDoc.InsurerWeb', null, data.website?data.website:null],
|
|
|
+ [this.row, 'LedgerParam.InsuranceDoc.InsurerEmail', null, data.contacts[0]?data.contacts[0].email:null],
|
|
|
+ [this.row, 'LedgerParam.InsuranceDoc.InsurerFax', null, data.contacts[0]?data.contacts[0].fax:null],
|
|
|
+ [this.row, 'LedgerParam.InsuranceDoc.InsurerPhone', null, data.contacts[0]?data.contacts[0].phone:null],
|
|
|
+ [this.row, 'LedgerParam.InsuranceDoc.InsurerContactor', null, data.contacts[0]?data.contacts[0].name:null],
|
|
|
+ ],
|
|
|
+ 'edit'
|
|
|
+ )
|
|
|
// this.handleUpdataTable([[this.row, "LedgerParam.InsuranceDoc.Insurer", null, data.name]], "edit")
|
|
|
}
|
|
|
},
|
|
@@ -1159,16 +1179,25 @@
|
|
|
let firm = {...data, num: 35}
|
|
|
this.firmName = firm
|
|
|
} else {
|
|
|
-
|
|
|
- tools.setDataForKey(this.tableData[this.row], "DPMaintainerID", data.venderId)
|
|
|
- tools.setDataForKey(this.tableData[this.row], "LedgerParam.OperationMainte.Maintainer", data.name)
|
|
|
- this.handleUpdataTable(
|
|
|
- [
|
|
|
- [this.row, "DPMaintainerID", null, data.venderId],
|
|
|
- [this.row, "LedgerParam.OperationMainte.Maintainer", null, data.name]
|
|
|
- ],
|
|
|
- "edit"
|
|
|
- )
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'DPMaintainerID', data.venderId)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'LedgerParam.OperationMainte.Maintainer', data.name)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'LedgerParam.OperationMainte.MaintainerWeb', data.website?data.website:null)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'LedgerParam.OperationMainte.MaintainerContactor', data.contacts[0]?data.contacts[0].name:null)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'LedgerParam.OperationMainte.MaintainerPhone', data.contacts[0]?data.contacts[0].phone:null)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'LedgerParam.OperationMainte.MaintainerEmail', data.contacts[0]?data.contacts[0].email:null)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], 'LedgerParam.OperationMainte.MaintainerFax', data.contacts[0]?data.contacts[0].fax:null)
|
|
|
+ this.handleUpdataTable(
|
|
|
+ [
|
|
|
+ [this.row, 'DPMaintainerID', null, data.venderId],
|
|
|
+ [this.row, 'LedgerParam.OperationMainte.Maintainer', null, data.name],
|
|
|
+ [this.row, 'LedgerParam.OperationMainte.MaintainerWeb', null, data.website?data.website:null],
|
|
|
+ [this.row, 'LedgerParam.OperationMainte.MaintainerContactor', null, data.contacts[0]?data.contacts[0].name:null],
|
|
|
+ [this.row, 'LedgerParam.OperationMainte.MaintainerPhone', null, data.contacts[0]?data.contacts[0].phone:null],
|
|
|
+ [this.row, 'LedgerParam.OperationMainte.MaintainerEmail', null, data.contacts[0]?data.contacts[0].email:null],
|
|
|
+ [this.row, 'LedgerParam.OperationMainte.MaintainerFax', null, data.contacts[0]?data.contacts[0].fax:null],
|
|
|
+ ],
|
|
|
+ 'edit'
|
|
|
+ )
|
|
|
// this.handleUpdataTable([[this.row, "LedgerParam.OperationMainte.Maintainer", null, data.name]], "edit")
|
|
|
}
|
|
|
},
|