zhangyu 4 anos atrás
pai
commit
4ed6b6741e

+ 2 - 2
src/components/ledger/system/dialog/addSpaceDialog.vue

@@ -34,7 +34,7 @@
         </el-table-column>
         <el-table-column prop="objectType" :label="`空间类型`" show-overflow-tooltip min-width="100">
           <template slot-scope="scope">
-            {{ spaceType[scope.row.objectType] || '' }}
+            {{ spaceType[scope.row.classCode] || '' }}
           </template>
         </el-table-column>
         <el-table-column prop="action" label="操作" min-width="100">
@@ -167,7 +167,7 @@ export default {
         params.data.filters += `;floorId='${this.Buildfloor[1]}'`;
       }
       if (this.Spacecategory) {
-        params.data.filters += `;objectType='${this.Spacecategory}'`;
+        params.data.filters += `;classCode='${this.Spacecategory}'`;
       }
       if (this.keycode != "") {
         params.data.filters += `;name contain '${this.keycode}' or localName contain '${this.keycode}'`;

+ 4 - 4
src/views/ledger/cenotelist/index.vue

@@ -338,7 +338,7 @@ export default {
         },
         readOnly: true
       }, {
-        data: "OtheRelations",
+        data: "otheRelations",
         renderer: (instance, td, row, col, prop, value, cellProperties) => {
           td.style.color = "#409EFF";
           td.style.cursor = "pointer";
@@ -382,14 +382,14 @@ export default {
       let inputData = this.inputMap[val]
       let name = infos.localName ? infos.localName : infos.name
       this.shaftId = infos.id //要操作的数据id
-      //点击关联的空间
-      if (val === "SpaceList") {
+      //点击关联的业务空间
+      if (val === "spaceList") {
         this.$router.push({
           path: '/ledger/relatedSpace',
           query: { ShaftId: this.shaftId, name: name, onlyRead: this.onlyRead }
         })
         return false
-      } else if (val === "OtheRelations") {
+      } else if (val === "otheRelations") {
         this.$router.push({
           path: "/ledger/cenoteDetail",
           query: {

+ 2 - 1
src/views/ledger/cenotelist/relatedSpace.vue

@@ -215,6 +215,7 @@ export default {
           this.buildingLoading = false;
           this.buildingList = res.content;
           this.buildingList = this.buildingList.map(item => {
+						debugger
             item.floor = item.floorList;
             item.BuildID = item.BuildingId;
             item.BuildLocalName = item.BuildingLocalName;
@@ -312,7 +313,7 @@ export default {
     },
     //更换楼层
     changeFloor(floorObj) {
-      this.buildFloorName = `${this.buildingObj.BuildLocalName || this.buildingObj.BuildName || ""}-${floorObj.FloorLocalName || floorObj.FloorName || ""}`
+      this.buildFloorName = `${this.buildingObj.localName || this.buildingObj.name || ""}-${floorObj.localName || floorObj.name || ""}`
       this.floor = floorObj.id;
       let buildfloor = [this.building, floorObj.id]
       this.$refs.cenotegraphy.getFloorMap(buildfloor, this.ObjectType)

+ 2 - 2
src/views/ledger/facility/batchlink.vue

@@ -240,8 +240,8 @@ export default {
       if (Object.keys(this.radio).length) {
         for (let key in this.radio) {
           params.content.push({
-            equipId: this.radio[key],
-            equipmentId: key
+            id: this.radio[key],
+            equipId: key
           })
           console.log(params.content)
         }

+ 82 - 132
src/views/ledger/facility/partsmanage/addparts/index.vue

@@ -31,22 +31,29 @@
     </el-row>
     <!-- 二维码弹窗 -->
     <qrcode :dialog="myDialog" :qrcodeUrl="qrcodeUrl" :addBody="true" ref="qrcode"></qrcode>
-    <!-- 型号弹窗 -->
-    <firm :mess="{deviceId: firmId}" ref="firm" @changeFirm="firmChange" :dialog="myDialog"></firm>
-    <!-- 供应商合同弹窗 -->
-    <supply-dialog ref="supply" @change="supplyChange" :id="id" :dialog="myDialog"></supply-dialog>
-    <!-- 供应商弹窗 -->
-    <supplier-dialog ref="supplier" @changeSupplier="supplierChange" :dialog="myDialog"></supplier-dialog>
-    <guarantee-dialog :id="id" ref="guarantee" @change="guaranteeChange" :dialog="myDialog"></guarantee-dialog>
     <upload-files-dialog :read="onlyRead ? true : false" ref="upload" @changeFile="fileChange" :keysArr="filesArr"
                          :dialog="myDialog">
     </upload-files-dialog>
     <upload-img-dialog :read="onlyRead ? true : false" @changeFile="imgChange" :keysArr="imgsArr"
                        :dialog="myDialog"></upload-img-dialog>
-    <maintainer-dialog @changeMaintainer="changeMaintainer" ref="maintainer" :dialog="myDialog"></maintainer-dialog>
-    <insurer-dialog @changeInsurer="changeInsurer" ref="insurer" :dialog="myDialog"></insurer-dialog>
     <pic-dialog :read="onlyRead ? true : false" :dialog="myDialog" :keysArr="picsArr" @change="changePics"></pic-dialog>
     <details-dialog :iframeSrc="iframeSrc" v-if="myDialog.details" :dialog="myDialog"></details-dialog>
+    <!-- 不支持的输入方式 -->
+    <el-dialog title="临时维护信息点" :visible.sync="myDialog.update" @close="handleCloseUpdate" width="670px">
+      <el-row>
+        该信息点未定义对应组件,现在维护数据不确定后续是否可用。如确实需要维护,请点击
+        <el-link @click="updateInputShow = true" type="primary" :underline="false">继续维护</el-link>
+        。
+      </el-row>
+      <el-row style="margin-top:20px;" v-show="updateInputShow">
+        <el-input type="textarea" :autosize="{ minRows: 4, maxRows: 8}" placeholder="请输入内容"
+                  v-model="updateInput"></el-input>
+      </el-row>
+      <span slot="footer" class="dialog-footer">
+        <el-button @click="myDialog.update = false">取 消</el-button>
+        <el-button type="primary" @click="handleClickUpdate">确 认</el-button>
+      </span>
+    </el-dialog>
   </div>
 </template>
 <script>
@@ -68,12 +75,6 @@ import { getDataDictionary } from "@/api/dict";
 import { mapGetters, mapActions } from "vuex";
 
 import qrcode from "@/components/ledger/lib/qrcode";
-import firm from "@/components/dialogs/list/firm";
-import supplyDialog from "@/components/dialogs/list/supplyDialog";
-import supplierDialog from "@/components/dialogs/list/supplierDialog";
-import maintainerDialog from "@/components/dialogs/list/maintainerDialog";
-import insurerDialog from "@/components/dialogs/list/insurerDialog";
-import guaranteeDialog from "@/components/dialogs/list/guaranteeDialog";
 import uploadFilesDialog from "@/components/dialogs/list/filesDialog";
 import uploadImgDialog from "@/components/dialogs/list/uploadImgDialog";
 import picDialog from "@/components/dialogs/list/picDialog";
@@ -81,12 +82,6 @@ import picDialog from "@/components/dialogs/list/picDialog";
 export default {
   components: {
     qrcode, //二维码页面
-    firm, //品牌型号弹窗
-    supplyDialog,
-    supplierDialog,
-    maintainerDialog,
-    insurerDialog,
-    guaranteeDialog,
     uploadFilesDialog,
     uploadImgDialog,
     picDialog,
@@ -112,12 +107,6 @@ export default {
       category: "", //当前设备类
       myDialog: {
         qrcode: false, //二维码弹窗
-        firm: false, //厂商弹窗
-        supply: false, //选择供应合同
-        supplier: false, //供应商选择
-        guarantee: false, //选择保单
-        maintainer: false, //选择维修商
-        insurer: false, //选择保险公司
         uploadFiles: false, //上传文件
         uploadImgs: false, //上传单个图片
         pic: false, //多个图片
@@ -125,8 +114,22 @@ export default {
         systemType: false,
         details: false, //详情页
         changeRea: false,
-        lookPic: false //图片查看
+        lookPic: false, //图片查看
+        update: false,//临时维护信息点
       },
+      inputMap: {
+        flowBuild: {
+          editable: true,
+          code: "flowBuild",
+          name: "建筑楼层",
+          path: "flowBuild",
+          category: 'STATIC',
+          dataType: "ENUM"
+        }
+      }, //信息点和输入方式映射表
+      updateInputShow: false, //是否显示临时维护输入框
+      updateInfoPoint: '',//临时维护信息点
+      updateInput: '', //临时维护信息点值
       qrcodeUrl: "", //二维码图片地址
       filesArr: [], //保存临时的文件key
       imgsArr: [], //临时保存的图片key数组
@@ -174,6 +177,11 @@ export default {
       };
       await getDataDictionary(params, res => {
         this.tableHeader = res.content;
+        this.tableHeader.forEach(item => {
+          if (item.path) {
+            this.inputMap[item.path] = item
+          }
+        });
         this.initTable();
       });
     },
@@ -335,60 +343,6 @@ export default {
       }
       return a;
     },
-    //选择型号修改
-    firmChange(data) {
-      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], "infos.manufacturer", data.venderName);
-      tools.setDataForKey(this.tableData[this.row], "infos.brand", data.name);
-      tools.setDataForKey(this.tableData[this.row], "infos.specification", data.brandName);
-    },
-    //供应商变更
-    supplierChange(data) {
-      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)
-    },
-    //保险商变更
-    changeInsurer(data) {
-      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)
-    },
-    //维修商变更
-    changeMaintainer(data) {
-      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)
-    },
-    supplyChange(data) {
-      tools.setDataForKey(this.tableData[this.row], "infos.supplierContractID", { id: data });
-    },
-    //保险合同
-    guaranteeChange(data) {
-      for (let key in data) {
-        this.utilToKey(key, "insuranceNo", data, "insuranceNum");
-        if (key == "contractFile") {
-          if (!!data[key]) {
-            data[key] = [data[key]];
-          }
-        }
-        this.utilToKey(key, "contractFile", data, "insuranceFile");
-      }
-    },
     //上传文件弹窗触发事件
     fileChange(keys) {
       this.setDataToMain(keys, this.messKey, this.row);
@@ -448,60 +402,34 @@ export default {
     getInfors(infos, row) {
       //其他的开始判断
       let val = this.tableExample.colToProp(row.col);
+      let inputData = this.inputMap[val];
+      this.row = row.row;
+      this.messKey = val;
       //设备二维码图片
       if (val == "defaultQRCode") {
         this.myDialog.qrcode = true;
         this.$refs.qrcode.getCanvas(1111);
       }
-      //关联系统
-      if (val == "linkSystem") {
-        // this.systemList = this.tableData[row.row].linkSystem || [];
-        this.myDialog.systemType = true;
-      }
-      //品牌型号弹窗
-      if (val == "dpManufacturerId") {
-        this.myDialog.firm = true;
-      }
-      //供应商信息弹窗
-      if (val == "dpSupplierId") {
-        this.myDialog.supplier = true;
-      }
-      //维修商信息弹窗
-      if (val == "dpMaintainerId") {
-        this.myDialog.maintainer = true;
-      }
-      //保险公司信息
-      if (val == "dpInsurerId") {
-        this.myDialog.insurer = true;
-      }
-      //供应合同编号
-      if (val == "infos.supplierContractID") {
-        let falg = null;
-        let data = this.tableData[row.row].dpSupplierId;
-        if (data) {
-          falg = data.split("-")[0];
-        }
-        if (!!falg) {
-          this.id = falg;
-          this.myDialog.supply = true;
-        } else {
-          this.$message("请先选择供应商");
-        }
-      }
-      //保险单号
-      if (val == "infos.insuranceNum") {
-        //选择保单
-        let falg = null;
-        let data = this.tableData[row.row].dpInsurerId
-        if (data) {
-          falg = data.split("-")[0];
-        }
-        if (!!falg) {
-          this.id = falg;
-          this.myDialog.guarantee = true;
-        } else {
-          this.$message("请先选择保险商");
+      if (
+        val == "flowBuild" || //所属建筑楼层
+        val == "infos.productDate" || //生产日期
+        val == "infos.serialNum" || //出厂编号
+        val == "infos.assetID" || //资产编号
+        val == "infos.purchasePrice" || //采购价格
+        val == "infos.insuranceNum" || //保险单号
+        val == "infos.insuranceFile" //保险文件
+      ) {
+        const propertyId = this.tableData[row.row].propertyId;
+        if (!propertyId) { //未关联资产
+            this.$confirm('请先关联资产再维护该信息!', '提示', {
+                confirmButtonText: '确定',
+                showCancelButton: false,
+                type: 'warning'
+            }).then(() => {
+                return false;
+            });
         }
+        return false
       }
       //保险文件--设备文档--安装质检报告
       if (
@@ -539,8 +467,30 @@ export default {
         this.picsArr = data ? data : []
         this.myDialog.pic = true;
       }
-      this.row = row.row;
-      this.messKey = val;
+      if (!this.onlyRead && !inputData.editable) {
+        this.$message("该信息点的值为自动生成,不可人工维护!");
+        return false;
+      }
+      if (!this.onlyRead && showTools.inputModeArr.indexOf(inputData.dataType) == '-1') {
+        this.updateInfoPoint = val;
+        this.updateInput = tools.dataForKey(this.tableData[row.row], val);
+        this.myDialog.update = true;
+        return false;
+      }
+    },
+    //关闭临时维护弹窗回调
+    handleCloseUpdate() {
+      this.updateInputShow = false
+      this.updateInfoPoint = ''
+      this.updateInput = ''
+    },
+    //更新临时维护信息点
+    handleClickUpdate() {
+      tools.setDataForKey(this.tableData[this.row], this.updateInfoPoint, this.updateInput)
+      this.handleUpdataTable([[this.row, this.updateInfoPoint, null, this.updateInput]], "edit")
+      this.updateInputShow = false
+      this.myDialog.update = false
+      this.updateInput = ''
     },
     utilToKey(key, name, data, messName) {
       if (key == name) {

+ 20 - 187
src/views/ledger/facility/partsmanage/index.vue

@@ -44,20 +44,11 @@
                    :total="page.total"></el-pagination>
     <!-- 二维码弹窗 -->
     <qrcode :dialog="myDialog" :qrcodeUrl="qrcodeUrl" :addBody="true" ref="qrcode"></qrcode>
-    <!-- 型号弹窗 -->
-    <firm :mess="{deviceId: firmId}" ref="firm" @changeFirm="firmChange" :dialog="myDialog"></firm>
-    <!-- 供应商合同弹窗 -->
-    <supply-dialog ref="supply" @change="supplyChange" :id="id" :dialog="myDialog"></supply-dialog>
-    <!-- 供应商弹窗 -->
-    <supplier-dialog ref="supplier" @changeSupplier="supplierChange" :dialog="myDialog"></supplier-dialog>
-    <guarantee-dialog :id="id" ref="guarantee" @change="guaranteeChange" :dialog="myDialog"></guarantee-dialog>
     <upload-files-dialog :read="onlyRead ? true : false" ref="upload" @changeFile="fileChange" :keysArr="filesArr"
                          :dialog="myDialog">
     </upload-files-dialog>
     <upload-img-dialog :read="onlyRead ? true : false" @changeFile="imgChange" :keysArr="imgsArr"
                        :dialog="myDialog"></upload-img-dialog>
-    <maintainer-dialog @changeMaintainer="changeMaintainer" ref="maintainer" :dialog="myDialog"></maintainer-dialog>
-    <insurer-dialog @changeInsurer="changeInsurer" ref="insurer" :dialog="myDialog"></insurer-dialog>
     <pic-dialog :read="onlyRead ? true : false" :dialog="myDialog" :keysArr="picsArr" @change="changePics"></pic-dialog>
     <details-dialog :iframeSrc="iframeSrc" v-if="myDialog.details" :dialog="myDialog"></details-dialog>
     <!-- 关联资产 -->
@@ -100,12 +91,6 @@ import { getDataDictionary } from "@/api/dict";
 import { mapGetters, mapActions } from "vuex";
 
 import qrcode from "@/components/ledger/lib/qrcode";
-import firm from "@/components/dialogs/list/firm";
-import supplyDialog from "@/components/dialogs/list/supplyDialog";
-import supplierDialog from "@/components/dialogs/list/supplierDialog";
-import maintainerDialog from "@/components/dialogs/list/maintainerDialog";
-import insurerDialog from "@/components/dialogs/list/insurerDialog";
-import guaranteeDialog from "@/components/dialogs/list/guaranteeDialog";
 import uploadFilesDialog from "@/components/dialogs/list/filesDialog";
 import uploadImgDialog from "@/components/dialogs/list/uploadImgDialog";
 import picDialog from "@/components/dialogs/list/picDialog";
@@ -114,12 +99,6 @@ import changeRea from "@/components/dialogs/changeRea"
 export default {
   components: {
     qrcode, //二维码页面
-    firm, //品牌型号弹窗
-    supplyDialog,
-    supplierDialog,
-    maintainerDialog,
-    insurerDialog,
-    guaranteeDialog,
     uploadFilesDialog,
     uploadImgDialog,
     picDialog,
@@ -166,12 +145,6 @@ export default {
       partsTypeList: [], //tabs
       myDialog: {
         qrcode: false, //二维码弹窗
-        firm: false, //厂商弹窗
-        supply: false, //选择供应合同
-        supplier: false, //供应商选择
-        guarantee: false, //选择保单
-        maintainer: false, //选择维修商
-        insurer: false, //选择保险公司
         uploadFiles: false, //上传文件
         uploadImgs: false, //上传单个图片
         pic: false, //多个图片
@@ -485,111 +458,6 @@ export default {
       }
       return a;
     },
-    //选择型号修改
-    firmChange(data) {
-      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], "infos.manufacturer", data.venderName);
-      tools.setDataForKey(this.tableData[this.row], "infos.brand", data.name);
-      tools.setDataForKey(this.tableData[this.row], "infos.specification", data.brandName);
-      this.handleUpdataTable(
-        [
-          [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]
-        ],
-        "edit"
-      )
-      // this.handleUpdataTable([[this.row, "LedgerParam.equipManufactor.Brand", null, data.brand]], "edit")
-      // this.handleUpdataTable([[this.row, "LedgerParam.equipManufactor.Specification", null, data.name]], "edit")
-    },
-    //供应商变更
-    supplierChange(data) {
-      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.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"
-      )
-    },
-    //保险商变更
-    changeInsurer(data) {
-      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.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, "LedgerParam.InsuranceDoc.Insurer", null, data.name]], "edit")
-    },
-    //维修商变更
-    changeMaintainer(data) {
-      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.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, "LedgerParam.operationMainte.maintainer", null, data.name]], "edit")
-    },
-    supplyChange(data) {
-      tools.setDataForKey(this.tableData[this.row], "infos.supplierContractID", { id: data });
-    },
-    //保险合同
-    guaranteeChange(data) {
-      for (let key in data) {
-        this.utilToKey(key, "insuranceNo", data, "insuranceNum");
-        if (key == "contractFile") {
-          if (!!data[key]) {
-            data[key] = [data[key]];
-          }
-        }
-        this.utilToKey(key, "contractFile", data, "insuranceFile");
-      }
-    },
     //修改关联的资产
     changeProperty(val) {
       this.setDataToMain(val.propertyId, 'propertyId', this.row);
@@ -685,62 +553,27 @@ export default {
             this.myDialog.changeRea = true;
           }
           break;
-        //品牌型号弹窗
-        case 'dpManufacturerId':
-          if (!this.onlyRead) {
-            this.myDialog.firm = true;
-          }
-          break;
-        //供应商信息弹窗
-        case 'dpSupplierId':
-          if (!this.onlyRead) {
-            this.myDialog.supplier = true;
-          }
-          break;
-        //维修商信息弹窗
-        case 'dpMaintainerId':
-          if (!this.onlyRead) {
-            this.myDialog.maintainer = true;
-          }
-          break;
-        //保险公司信息
-        case 'dpInsurerId':
-          if (!this.onlyRead) {
-            this.myDialog.insurer = true;
-          }
-          break;
-        //供应合同编号
-        case 'infos.supplierContractID':
-          if (!this.onlyRead) {
-            let ContractIDflag = null;
-            let DPSdata = this.tableData[row.row].dpSupplierId;
-            if (DPSdata) {
-              ContractIDflag = DPSdata.split("-")[0];
-            }
-            if (!!ContractIDflag) {
-              this.id = ContractIDflag;
-              this.myDialog.supply = true;
-            } else {
-              this.$message("请先选择供应商");
-            }
-          }
-          break;
-        //保险单号
-        case 'infos.insuranceNum':
-          if (!this.onlyRead) {
-            let DPInsurerIDflag = null;
-            let DPIdata = this.tableData[row.row].dpInsurerId;
-            if (DPIdata) {
-              DPInsurerIDflag = DPIdata.split("-")[0];
-            }
-            if (!!DPInsurerIDflag) {
-              this.id = DPInsurerIDflag;
-              this.myDialog.guarantee = true;
-            } else {
-              this.$message("请先选择保险商");
+        /**
+         * 关联资产后才可维护的信息点
+         */
+        case 'flowBuild': //所属建筑楼层
+        case 'infos.productDate': //生产日期
+        case 'infos.serialNum': //出厂编号
+        case 'infos.assetID': //资产编号
+        case 'infos.purchasePrice': //采购价格
+        case 'infos.insuranceNum': //保险单号
+        case 'infos.insuranceFile': //保险文件
+            const propertyId = this.tableData[row.row].propertyId;
+            if (!propertyId) { //未关联资产
+                this.$confirm('请先关联资产后再维护该信息!', '提示', {
+                    confirmButtonText: '确定',
+                    showCancelButton: false,
+                    type: 'warning'
+                }).then(() => {
+                    return false;
+                });
             }
-          }
-          break;
+            break
         //保险文件--设备文档--安装质检报告
         case 'infos.insuranceFile': //保险文件
         case 'infos.archive': //设备文档