Browse Source

资产台账四大厂商

haojianlong 4 years ago
parent
commit
826bafc28c

+ 2 - 2
src/components/business_space/dialogs/addDialog/businessDialog.vue

@@ -551,7 +551,7 @@ export default {
         let falg = null
         if (!!this.main[row.row].infos) {
           if (!!this.main[row.row].infos) {
-            falg = this.main[row.row].infos.DPSupplierID
+            falg = this.main[row.row].infos.dpSupplierId
           }
         }
         if (!!falg) {
@@ -658,7 +658,7 @@ export default {
         this.utilToKey(key, "phone", data, "SupplierPhone")
         this.utilToKey(key, "fox", data, "SupplierFax")
         this.utilToKey(key, "man", data, "SupplierContactor")
-        this.utilToKey(key, "venderId", data, "DPSupplierID")
+        this.utilToKey(key, "venderId", data, "dpSupplierId")
       }
       tools.setItem(this.deviceType.code, this.main)
     },

+ 2 - 2
src/components/dialogs/addDialog/businessDialog.vue

@@ -551,7 +551,7 @@ export default {
         let falg = null
         if (!!this.main[row.row].infos) {
           if (!!this.main[row.row].infos) {
-            falg = this.main[row.row].infos.DPSupplierID
+            falg = this.main[row.row].infos.dpSupplierId
           }
         }
         if (!!falg) {
@@ -658,7 +658,7 @@ export default {
         this.utilToKey(key, "phone", data, "SupplierPhone")
         this.utilToKey(key, "fox", data, "SupplierFax")
         this.utilToKey(key, "man", data, "SupplierContactor")
-        this.utilToKey(key, "venderId", data, "DPSupplierID")
+        this.utilToKey(key, "venderId", data, "dpSupplierId")
       }
       tools.setItem(this.deviceType.code, this.main)
     },

+ 5 - 5
src/components/dialogs/addDialog/dialogAssets.vue

@@ -390,8 +390,8 @@ export default {
     //新建资产请求
     async createJson(data) {
       data.map(item => {
-        if (!!item.Infos.DPSupplierID) {
-          item.Infos.DPSupplierID = item.Infos.DPSupplierID.split("-")[0]
+        if (!!item.Infos.dpSupplierId) {
+          item.Infos.dpSupplierId = item.Infos.dpSupplierId.split("-")[0]
         }
         if (!!item.Infos.dpManufacturerId) {
           item.Infos.dpManufacturerId = item.Infos.dpManufacturerId.split("-")[0]
@@ -578,7 +578,7 @@ export default {
         let falg = null
         if (!!this.main[row.row].infos) {
           if (!!this.main[row.row].infos) {
-            falg = this.main[row.row].infos.DPSupplierID.split("-")[0]
+            falg = this.main[row.row].infos.dpSupplierId.split("-")[0]
           }
         }
         if (!!falg) {
@@ -636,7 +636,7 @@ export default {
       }
 
       if (
-        val == "infos.DPSupplierID"
+        val == "infos.dpSupplierId"
       ) {
         this.myDialog.supplier = true;
       }
@@ -727,7 +727,7 @@ export default {
         if (key == "venderId") {
           data[key] = data[key] + "-" + data.name
           console.log(data)
-          this.utilToKey(key, "venderId", data, "DPSupplierID")
+          this.utilToKey(key, "venderId", data, "dpSupplierId")
         }
         // this.utilToKey(key, "specificationId", data, "dpSpecificationId")
       }

+ 2 - 2
src/components/dialogs/list/batchDialog.vue

@@ -314,7 +314,7 @@ export default {
         return false
       }
       let arr = []
-      // DPSupplierID 供应商 dpManufacturerId 生产商 dpBrandId 品牌
+      // dpSupplierId 供应商 dpManufacturerId 生产商 dpBrandId 品牌
       // dpSpecificationId 型号 DPInsurerID 保险商 dpMaintainerId 维修商
       this.multipleSelection.forEach(item => {
         let equipId = item.id
@@ -346,7 +346,7 @@ export default {
             supplier: name,
 
           }
-          Id.DPSupplierID = venderId
+          Id.dpSupplierId = venderId
         }
       })
       this.checkedCities.filter(item => item.num === 35).forEach(i => {  //维修商

+ 5 - 5
src/components/ledger/addDialog/dialogAssets.vue

@@ -393,8 +393,8 @@ export default {
     //新建资产请求
     async createJson(data) {
       data.map(item => {
-        if (!!item.Infos.DPSupplierID) {
-          item.Infos.DPSupplierID = item.Infos.DPSupplierID.split("-")[0]
+        if (!!item.Infos.dpSupplierId) {
+          item.Infos.dpSupplierId = item.Infos.dpSupplierId.split("-")[0]
         }
         if (!!item.Infos.dpManufacturerId) {
           item.Infos.dpManufacturerId = item.Infos.dpManufacturerId.split("-")[0]
@@ -582,7 +582,7 @@ export default {
         let falg = null
         if (!!this.main[row.row].infos) {
           if (!!this.main[row.row].infos) {
-            falg = this.main[row.row].infos.DPSupplierID.split("-")[0]
+            falg = this.main[row.row].infos.dpSupplierId.split("-")[0]
           }
         }
         if (!!falg) {
@@ -641,7 +641,7 @@ export default {
       }
 
       if (
-        val == "infos.DPSupplierID"
+        val == "infos.dpSupplierId"
       ) {
         this.myDialog.supplier = true;
       }
@@ -732,7 +732,7 @@ export default {
         if (key == "venderId") {
           data[key] = data[key] + "-" + data.name
           console.log(data)
-          this.utilToKey(key, "venderId", data, "DPSupplierID")
+          this.utilToKey(key, "venderId", data, "dpSupplierId")
         }
         // this.utilToKey(key, "specificationId", data, "dpSpecificationId")
       }

+ 37 - 38
src/components/ledger/handsontables/assets.vue

@@ -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"
         )