|
@@ -930,10 +930,10 @@ export default {
|
|
|
}
|
|
|
return false
|
|
|
//供应合同编号
|
|
|
- case 'LedgerParam.SupplyPurchase.SupplierContractID':
|
|
|
+ case 'infos.supplierContractID':
|
|
|
if (!this.onlyRead) {
|
|
|
let ContractIDflag = null;
|
|
|
- let DPSdata = this.tableData[row.row].DPSupplierID;
|
|
|
+ let DPSdata = this.tableData[row.row].dpSupplierId;
|
|
|
if (DPSdata) {
|
|
|
ContractIDflag = DPSdata.split("-")[0];
|
|
|
}
|
|
@@ -946,7 +946,7 @@ export default {
|
|
|
}
|
|
|
return false
|
|
|
//保险单号
|
|
|
- case 'LedgerParam.InsuranceDoc.InsuranceNum':
|
|
|
+ case 'infos.insuranceNum':
|
|
|
if (!this.onlyRead) {
|
|
|
let DPInsurerIDflag = null;
|
|
|
let DPIdata = this.tableData[row.row].dpInsurerId;
|
|
@@ -962,33 +962,33 @@ export default {
|
|
|
}
|
|
|
return false
|
|
|
//保险文件--资产文档--安装质检报告
|
|
|
- case 'LedgerParam.InsuranceDoc.InsuranceFile': //保险文件
|
|
|
- case 'LedgerParam.PhotoDoc.Archive': //设备文档
|
|
|
- case 'LedgerParam.Siteinstall.CheckReport': //安装质检报告
|
|
|
- case 'LedgerParam.operationMainte.MaintainManual': //维修保养手册
|
|
|
- case 'LedgerParam.SupplyPurchase.ApproachingAcceptance': //进场验收单
|
|
|
- case 'LedgerParam.SupplyPurchase.AcceptanceReport': //验收报告
|
|
|
- case 'LedgerParam.PhotoDoc.OperationManual': //操作说明书
|
|
|
- case 'LedgerParam.equipManufactor.OriginalCertificate': //原厂证明
|
|
|
- case 'LedgerParam.equipManufactor.TestReport': //检测报告
|
|
|
- case 'LedgerParam.PhotoDoc.ProductCertification': //产品合格证
|
|
|
- case 'LedgerParam.Siteinstall.InstallInstruction': //安装说明书
|
|
|
- case 'LedgerParam.SupplyPurchase.SupplierContract': //供应合同
|
|
|
- case 'LedgerParam.PhotoDoc.Drawing': //设备图纸
|
|
|
- case 'LedgerParam.Siteinstall.InstallDrawing': //安装图纸
|
|
|
+ case 'infos.insuranceFile': //保险文件
|
|
|
+ case 'infos.archive': //设备文档
|
|
|
+ case 'infos.checkReport': //安装质检报告
|
|
|
+ case 'infos.maintainManual': //维修保养手册
|
|
|
+ case 'infos.approachingAcceptance': //进场验收单
|
|
|
+ case 'infos.acceptanceReport': //验收报告
|
|
|
+ case 'infos.operationManual': //操作说明书
|
|
|
+ case 'infos.originalCertificate': //原厂证明
|
|
|
+ case 'infos.testReport': //检测报告
|
|
|
+ case 'infos.productCertification': //产品合格证
|
|
|
+ case 'infos.installInstruction': //安装说明书
|
|
|
+ case 'infos.supplierContractID': //供应合同
|
|
|
+ case 'infos.drawing': //设备图纸
|
|
|
+ case 'infos.installDrawing': //安装图纸
|
|
|
let IPSdata = tools.dataForKey(this.tableData[row.row], val);
|
|
|
this.filesArr = IPSdata ? IPSdata : [];
|
|
|
this.myDialog.uploadFiles = true;
|
|
|
return false
|
|
|
//安装照片--设备铭牌照片
|
|
|
- case 'LedgerParam.Siteinstall.InstallPic':
|
|
|
- case 'LedgerParam.PhotoDoc.Nameplate':
|
|
|
+ case 'infos.installPic':
|
|
|
+ case 'infos.nameplate':
|
|
|
let SSPPdata = tools.dataForKey(this.tableData[row.row], val);
|
|
|
this.imgsArr = SSPPdata ? SSPPdata : [];
|
|
|
this.myDialog.uploadImgs = true;
|
|
|
return false
|
|
|
//设备照片
|
|
|
- case 'LedgerParam.PhotoDoc.Pic':
|
|
|
+ case 'infos.pic':
|
|
|
let Pdata = tools.dataForKey(this.tableData[row.row], val);
|
|
|
this.picsArr = Pdata ? Pdata : [];
|
|
|
this.myDialog.pic = true;
|
|
@@ -1065,12 +1065,12 @@ 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], "LedgerParam.SupplyPurchase.Supplier", data.name)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "dpSupplierId", data.venderId)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "infos.supplier", data.name)
|
|
|
this.handleUpdataTable(
|
|
|
[
|
|
|
- [this.row, "DPSupplierID", null, data.venderId],
|
|
|
- [this.row, "LedgerParam.SupplyPurchase.Supplier", null, data.name]
|
|
|
+ [this.row, "dpSupplierId", null, data.venderId],
|
|
|
+ [this.row, "infos.supplier", null, data.name]
|
|
|
],
|
|
|
"edit"
|
|
|
)
|
|
@@ -1079,18 +1079,18 @@ export default {
|
|
|
},
|
|
|
//供应合同编号
|
|
|
supplyChange(data) {
|
|
|
- tools.setDataForKey(this.tableData[this.row], "LedgerParam.SupplyPurchase.SupplierContractID", { id: data })
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "infos.supplierContractID", { id: data })
|
|
|
},
|
|
|
//保险单号-保险文件
|
|
|
guaranteeChange(data) {
|
|
|
for (let key in data) {
|
|
|
- this.utilToKey(key, "insuranceNo", data, "InsuranceNum")
|
|
|
+ this.utilToKey(key, "insuranceNo", data, "insuranceNum")
|
|
|
if (key == "contractFile") {
|
|
|
if (!!data[key]) {
|
|
|
data[key] = [data[key]]
|
|
|
}
|
|
|
}
|
|
|
- this.utilToKey(key, "contractFile", data, "InsuranceFile")
|
|
|
+ this.utilToKey(key, "contractFile", data, "insuranceFile")
|
|
|
}
|
|
|
},
|
|
|
//选择型号修改
|
|
@@ -1107,21 +1107,20 @@ export default {
|
|
|
}
|
|
|
this.firmName = firm //批量维护dialog显示对象的字段
|
|
|
} else {
|
|
|
-
|
|
|
tools.setDataForKey(this.tableData[this.row], "dpManufacturerId", data.venderId)//生产商ID
|
|
|
tools.setDataForKey(this.tableData[this.row], "dpBrandId", data.brandId)//品牌ID
|
|
|
tools.setDataForKey(this.tableData[this.row], "dpSpecificationId", data.specificationId)//型号ID
|
|
|
- tools.setDataForKey(this.tableData[this.row], "LedgerParam.equipManufactor.manufacturer", data.venderName)
|
|
|
- tools.setDataForKey(this.tableData[this.row], "LedgerParam.equipManufactor.Brand", data.brandName)
|
|
|
- tools.setDataForKey(this.tableData[this.row], "LedgerParam.equipManufactor.Specification", data.name)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "infos.manufacturer", data.venderName)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "infos.brand", data.brandName)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "infos.specification", data.name)
|
|
|
this.handleUpdataTable(
|
|
|
[
|
|
|
[this.row, "dpManufacturerId", null, data.venderId],
|
|
|
[this.row, "dpBrandId", null, data.brandId],
|
|
|
[this.row, "dpSpecificationId", null, data.specificationId],
|
|
|
- [this.row, "LedgerParam.equipManufactor.manufacturer", null, data.venderName],
|
|
|
- [this.row, "LedgerParam.equipManufactor.Brand", null, data.brandName],
|
|
|
- [this.row, "LedgerParam.equipManufactor.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"
|
|
|
)
|
|
@@ -1136,11 +1135,11 @@ export default {
|
|
|
this.firmName = firm
|
|
|
} else {
|
|
|
tools.setDataForKey(this.tableData[this.row], "dpInsurerId", data.venderId)
|
|
|
- tools.setDataForKey(this.tableData[this.row], "LedgerParam.insuranceDoc.insurer", data.name)
|
|
|
+ tools.setDataForKey(this.tableData[this.row], "infos.insurer", data.name)
|
|
|
this.handleUpdataTable(
|
|
|
[
|
|
|
[this.row, "dpInsurerId", null, data.venderId],
|
|
|
- [this.row, "LedgerParam.insuranceDoc.insurer", null, data.name]
|
|
|
+ [this.row, "infos.insurer", null, data.name]
|
|
|
],
|
|
|
"edit"
|
|
|
)
|
|
@@ -1155,11 +1154,11 @@ export default {
|
|
|
} else {
|
|
|
|
|
|
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], "infos.maintainer", data.name)
|
|
|
this.handleUpdataTable(
|
|
|
[
|
|
|
[this.row, "dpMaintainerId", null, data.venderId],
|
|
|
- [this.row, "LedgerParam.operationMainte.maintainer", null, data.name]
|
|
|
+ [this.row, "infos.maintainer", null, data.name]
|
|
|
],
|
|
|
"edit"
|
|
|
)
|