Переглянути джерело

Merge branch 'dev' of http://39.106.8.246:3003/web/ibms into dev

shaun-sheep 4 роки тому
батько
коміт
a0f5055b8b

+ 2 - 2
package.json

@@ -22,8 +22,8 @@
     "@saga-web/base": "2.1.9",
     "@saga-web/cad-engine": "2.0.548",
     "@saga-web/draw": "2.1.75",
-    "@saga-web/graphy": "2.1.42",
-    "@saga-web/topology": "1.0.41",
+    "@saga-web/graphy": "2.1.45",
+    "@saga-web/topology": "1.0.53",
     "axios": "^0.18.0",
     "echarts": "^4.1.0",
     "el-cascader-multi": "^1.1.8",

+ 32 - 35
src/components/globaluploader/index.vue

@@ -81,6 +81,7 @@ export default {
         target: '/image-service/common/multipart_upload',
         chunkSize: 1*1024*1024,
         fileParameterName: 'file',
+        allowDuplicateUploads: true, //允许重复上传
         maxChunkRetries: 3,
         testChunks: false,   //是否开启服务器分片校验
         // 服务器分片校验函数,秒传及断点续传基础
@@ -119,41 +120,37 @@ export default {
     });
 
     Bus.$on('openUploader', (query, file) => {
-      if(!this.uploaderList.some(item => {return item.name === file.name})){
-        if(query.uploadId){
-        // this.params = query || {};
-          file.uploadId = query.uploadId
-          file.modelId = query.modelId? query.modelId: ''
-          this.uploader.addFile(file)
-          this.setUploaderList(this.uploader.files.map(item => {
-            item.modelId = item.file.modelId?item.file.modelId:''
-            return item
-          }))
-        } else {
-          getUploadId({
-            systemId: query.systemId?query.systemId:'revit', 
-            secret: query.secret?query.secret:'63afbef6906c342b', 
-            overwrite: query.overwrite? query.overwrite: false,
-            key: file.name
-          }, res => {
-            if(res.UploadId){
-              // this.params = Object.assign(query, { uploadId: res.UploadId }) || {};
-              file = Object.assign(file, {
-                ...query,
-                uploadId: res.UploadId 
-              })
-              this.uploader.addFile(file)
-              this.setUploaderList(this.uploader.files.map(item => {
-                item.modelId = item.file.modelId?item.file.modelId:'';
-                return item
-              }))
-            } else {
-              this.$message.error(`请求分片上传接口失败!`);
-            }
-          })
-        }
-      }else {
-        this.$message.error(`该文件在上传列表中已存在!`);
+      if(query.uploadId){
+      // this.params = query || {};
+        file.uploadId = query.uploadId
+        file.modelId = query.modelId? query.modelId: ''
+        this.uploader.addFile(file)
+        this.setUploaderList(this.uploader.files.map(item => {
+          item.modelId = item.file.modelId?item.file.modelId:''
+          return item
+        }))
+      } else {
+        getUploadId({
+          systemId: query.systemId?query.systemId:'revit', 
+          secret: query.secret?query.secret:'63afbef6906c342b', 
+          overwrite: query.overwrite? query.overwrite: false,
+          key: file.name
+        }, res => {
+          if(res.UploadId){
+            // this.params = Object.assign(query, { uploadId: res.UploadId }) || {};
+            file = Object.assign(file, {
+              ...query,
+              uploadId: res.UploadId 
+            })
+            this.uploader.addFile(file)
+            this.setUploaderList(this.uploader.files.map(item => {
+              item.modelId = item.file.modelId?item.file.modelId:'';
+              return item
+            }))
+          } else {
+            this.$message.error(`请求分片上传接口失败!`);
+          }
+        })
       }
 
       // if (this.$refs.uploadBtn) {

+ 1 - 1
src/components/ledger/cenote/elevationMap.vue

@@ -29,7 +29,7 @@
     </div>
     <div v-else class="saga-center">
       <i class="icon-wushuju iconfont"></i>
-      数据暂无
+      暂无数据
     </div>
   </div>
 </template>

+ 15 - 7
src/components/ledger/handsontables/assets.vue

@@ -848,23 +848,31 @@
             }
             return false
           //保险文件--资产文档--安装质检报告
-          case 'LedgerParam.InsuranceDoc.InsuranceFile':
-          case 'LedgerParam.PhotoDoc.Archive':
-          case 'LedgerParam.Siteinstall.CheckReport':
+          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.PhotoDoc.Drawing': //设备图纸
+          case 'LedgerParam.Siteinstall.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.Siteinstall.InstallDrawing':
           case 'LedgerParam.PhotoDoc.Nameplate':
-          case 'LedgerParam.PhotoDoc.Drawing':
             let SSPPdata = tools.dataForKey(this.tableData[row.row], val);
             this.imgsArr = SSPPdata ? SSPPdata : [];
             this.myDialog.uploadImgs = true;
             return false
-          //资产照片
+          //设备照片
           case 'LedgerParam.PhotoDoc.Pic':
             let Pdata = tools.dataForKey(this.tableData[row.row], val);
             this.picsArr = Pdata ? Pdata : [];

+ 459 - 415
src/components/ledger/handsontables/device.vue

@@ -282,7 +282,8 @@
         deviceType: {}, //族3位编码及名称
         floorData: [],
         curDevice: '',//当前点击的设备id
-        addData: {}, //添加设备选择的设备类型
+        addData: {}, //
+        showParts: false,
         inputMap: {
           flowBuild: 'D1'
         }, //信息点和输入方式映射表
@@ -411,6 +412,7 @@
           }
           getEquipTableCon(param, res => {
             this.loading = false;
+            this.showParts = res.Message == "1"?true:false;// 判断是否显示包含的部件列
             this.tableData = res.Content.map((item) => {
               if (item.hasOwnProperty("BuildingId") && item.hasOwnProperty("FloorId")) {
                 item.flowBuild = item.BuildingId + "-" + item.FloorId
@@ -617,9 +619,15 @@
       formatHeaderData(list) {
         let arr = tools.copyArr(list)
         let data = showTools.headerTextFilter(arr, 'equipment', this.onlyRead, this.showType, true)
-        data.unshift("操作", "当前关联的资产", "所属系统实例", "包含的部件");
-        if (this.showType == "all") {
+        if (this.showParts) {
+          data.unshift("操作", "当前关联的资产", "所属系统实例", "包含的部件");
+        } else {
+          data.unshift("操作", "当前关联的资产", "所属系统实例");
+        }
+        if (this.showType == "all" && this.showParts) {
           data.splice(6, 0, "所属建筑楼层")
+        } else if (this.showType == "all" && !this.showParts) {
+          data.splice(5, 0, "所属建筑楼层")
         }
         return data;
       },
@@ -627,27 +635,46 @@
       formatHeaderType(list) {
         let arr = tools.copyArr(list)
         let data = showTools.headerTypeFilter(arr, 'equipment', this.onlyRead, this.showType, true)
-        data.unshift(
-          {
-            data: "caozuo",
-            renderer: tools.lookDetails,
-            readOnly: true
-          },
-          {
-            data: "LinkEquipLocalName",
-            readOnly: true,
-            renderer: tools.LinkEquipLocalName
-          }, {
-            data: "LinkSystem",
-            renderer: text.systemList,
-            readOnly: true
-          }, {
-            data: "Count",
-            readOnly: true,
-            renderer: tools.lookDetails
-          }
-        );
-        if (this.showType == "all") {
+        if (this.showParts) {
+          data.unshift(
+            {
+              data: "caozuo",
+              renderer: tools.lookDetails,
+              readOnly: true
+            },
+            {
+              data: "LinkEquipLocalName",
+              readOnly: true,
+              renderer: tools.LinkEquipLocalName
+            }, {
+              data: "LinkSystem",
+              renderer: text.systemList,
+              readOnly: true
+            }, {
+              data: "Count",
+              readOnly: true,
+              renderer: tools.lookDetails
+            }
+          );
+        } else {
+          data.unshift(
+            {
+              data: "caozuo",
+              renderer: tools.lookDetails,
+              readOnly: true
+            },
+            {
+              data: "LinkEquipLocalName",
+              readOnly: true,
+              renderer: tools.LinkEquipLocalName
+            }, {
+              data: "LinkSystem",
+              renderer: text.systemList,
+              readOnly: true
+            }
+          );
+        }
+        if (this.showType == "all" && this.showParts) {
           data.splice(6, 0, {
             data: "flowBuild",
             renderer: tools.customDropdownRenderer,
@@ -657,6 +684,16 @@
             },
             readOnly: this.onlyRead
           })
+        } else if (this.showType == "all" && !this.showParts) {
+          data.splice(5, 0, {
+            data: "flowBuild",
+            renderer: tools.customDropdownRenderer,
+            editor: "chosen",
+            chosenOptions: {
+              data: this.buildFloorData
+            },
+            readOnly: this.onlyRead
+          })
         }
         return data;
       },
@@ -670,7 +707,7 @@
         }
         this.hot = new Handsontable(container, {
           data: this.tableData,
-          fixedColumnsLeft: 6,
+          fixedColumnsLeft: this.showParts?6:5,
           colHeaders: this.formatHeaderData(this.tableHeader), //表头文案
           columns: this.formatHeaderType(this.tableHeader), //数据显示格式
           filters: true,
@@ -934,417 +971,424 @@
             break;
         }
       },
-
-        //获取到了正确的信息
-        getInfors(infos, row, el) {
-            let val = this.hot.colToProp(row.col);
-            let inputMode = this.inputMap[val];
-            this.row = row.row;
-            this.messKey = val;
-            this.firmDataType = 'row'
-            lStorage.set('screen_data', { path: this.$route.path, data: { equip: infos } })
-            switch (val) {
-                //操作
-                case 'caozuo':
-                    // window.open(`http://adm.sagacloud.cn:8058/spread?id=${infos.EquipID}&pid=${this.projectId}&secret=${this.secret}`,"_blank")
-                    // this.$message("开发中...")
-                    this.$router.push({
-                      path: "deviceDetails",
-                      query: {
-                        type: this.mess.deviceId,
-                        equipId: infos.EquipID,
-                        equipName: infos.EquipLocalName?infos.EquipLocalName:infos.EquipName?infos.EquipName:'',
-                        equipCode: infos.EquipLocalID?infos.EquipLocalID:'',
-                        data: this.tableData.map(item => {
-                          return {
-                            value: item.EquipID,
-                            label: item.EquipLocalName?item.EquipLocalName:item.EquipName?item.EquipName:''
-                          }
-                        })
-                      }
-                    })
-                    return false
-                //设备二维码图片
-                case 'EquipQRCode':
-                    this.qrcodeUrl = this.tableData[row.row].EquipQRCode;
-                    if (!!this.qrcodeUrl) {
-                        this.myDialog.qrcode = true;
-                    } else {
-                        this.$message("此设备没有设备二维码");
-                    }
-                    return false
-                //关联系统
-                case 'LinkSystem':
-                    if (!this.onlyRead) {
-                        this.curDevice = infos.EquipID;
-                        this.systemList = this.tableData[row.row].LinkSystem || [];
-                        this.myDialog.systemType = true;
-                    }
-                    return false
-                //关联资产
-                case 'LinkEquipLocalName':
-                    if (!this.onlyRead) {
-                        this.myDialog.changeRea = true;
-                    }
-                    return false
-                //品牌型号弹窗
-                case 'DPManufacturerID':
-                    if (!this.onlyRead) {
-                        this.myDialog.firm = true;
-                    }
-                    return false
-                //供应商信息弹窗
-                case 'DPSupplierID':
-                    if (!this.onlyRead) {
-                        this.myDialog.supplier = true;
-                    }
-                    return false
-                //维修商信息弹窗
-                case 'DPMaintainerID':
-                    if (!this.onlyRead) {
-                        this.myDialog.maintainer = true;
-                    }
-                    return false
-                //保险公司信息
-                case 'DPInsurerID':
-                    if (!this.onlyRead) {
-                        this.myDialog.insurer = true;
-                    }
-                    return false
-                //供应合同编号
-                case 'LedgerParam.SupplyPurchase.SupplierContractID':
-                    if (!this.onlyRead) {
-                        let ContractIDflag = null;
-                        let DPSdata = this.tableData[row.row].DPSupplierID;
-                        if (DPSdata) {
-                            ContractIDflag = DPSdata.split("-")[0];
+      //获取到了正确的信息
+      getInfors(infos, row, el) {
+          let val = this.hot.colToProp(row.col);
+          let inputMode = this.inputMap[val];
+          this.row = row.row;
+          this.messKey = val;
+          this.firmDataType = 'row'
+          lStorage.set('screen_data', { path: this.$route.path, data: { equip: infos } })
+          switch (val) {
+              //操作
+              case 'caozuo':
+                  // window.open(`http://adm.sagacloud.cn:8058/spread?id=${infos.EquipID}&pid=${this.projectId}&secret=${this.secret}`,"_blank")
+                  // this.$message("开发中...")
+                  this.$router.push({
+                    path: "deviceDetails",
+                    query: {
+                      type: this.mess.deviceId,
+                      equipId: infos.EquipID,
+                      equipName: infos.EquipLocalName?infos.EquipLocalName:infos.EquipName?infos.EquipName:'',
+                      equipCode: infos.EquipLocalID?infos.EquipLocalID:'',
+                      data: this.tableData.map(item => {
+                        return {
+                          value: item.EquipID,
+                          label: item.EquipLocalName?item.EquipLocalName:item.EquipName?item.EquipName:''
                         }
-                        if (!!ContractIDflag) {
-                            this.id = ContractIDflag;
-                            this.myDialog.supply = true;
-                        } else {
-                            this.$message("请先选择供应商");
-                        }
-                    }
-                    return false
-                //保险单号
-                case 'LedgerParam.InsuranceDoc.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("请先选择保险商");
-                        }
-                    }
-                    return false
-                //保险文件--设备文档--安装质检报告
-                case 'LedgerParam.InsuranceDoc.InsuranceFile':
-                case 'LedgerParam.PhotoDoc.Archive':
-                case 'LedgerParam.Siteinstall.CheckReport':
-                    let IPSdata = tools.dataForKey(this.tableData[row.row], val);
-                    this.filesArr = IPSdata ? IPSdata : [];
-                    if (!this.onlyRead || this.filesArr.length) {
-                        this.myDialog.uploadFiles = true;
-                    }
-                    return false
-                //安装照片--安装图纸--设备铭牌照片--设备图纸
-                case 'LedgerParam.Siteinstall.InstallPic':
-                case 'LedgerParam.Siteinstall.InstallDrawing':
-                case 'LedgerParam.PhotoDoc.Nameplate':
-                case 'LedgerParam.PhotoDoc.Drawing':
-                    let SSPPdata = tools.dataForKey(this.tableData[row.row], val);
-                    this.imgsArr = SSPPdata ? SSPPdata : [];
-                    if (!this.onlyRead || this.imgsArr.length) {
-                        this.myDialog.uploadImgs = true;
-                    }
-                    return false
-                //设备照片
-                case 'LedgerParam.PhotoDoc.Pic':
-                    let Pdata = tools.dataForKey(this.tableData[row.row], val);
-                    this.picsArr = Pdata ? Pdata : [];
-                    if (!this.onlyRead || this.picsArr.length) {
-                        this.myDialog.pic = true;
-                    }
-                    return false
-                //包含的部件字段
-                case 'Count':
-                    let countUrl = this.onlyRead ? '/ledger/parts' : '/ledger/partsmanage';
-                    this.$router.push({path: countUrl, query: {
-                        deviceId: infos.EquipID,
-                        typeId: this.mess.deviceId,
-                        pageNo: this.page.currentPage,
-                        pageSize: this.page.size
-                    }});
-                    return false
-                default:
-                    break;
-            }
-            if (!this.onlyRead && showTools.InputModeArr.indexOf(inputMode) == '-1') {
-                this.updateInfoPoint = val
-                this.updateInput = tools.dataForKey(this.tableData[row.row], val)
-                this.myDialog.update = true
-            }
-        },
-        //关闭临时维护弹窗回调
-        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 = ''
-        },
-        //获取被筛选掉的行号
-        trimmedRows() {
-            var plugin = this.hot.getPlugin("trimRows").trimmedRows;
-            let dataLength = this.tableData.length;
-            let dataArr = new Array();
-            for (let i = 0; i < dataLength; i++) {
-                dataArr.push(i);
-            }
-            if (plugin.length <= 0) {
-                dataArr = undefined;
-            } else {
-                dataArr = this.array_diff(dataArr, plugin);
-            }
-            return dataArr || [];
-        },
-        //去除数组中相同的元素
-        array_diff(a, b) {
-            for (var i = 0; i < b.length; i++) {
-                for (var j = 0; j < a.length; j++) {
-                    if (a[j] == b[i]) {
-                        a.splice(j, 1);
-                        j = j - 1;
+                      })
                     }
-                }
-            }
-            return a;
-        },
-        //如果选择供应商之后
-        supplierChange(data, type) {
-            if (type === 'dialog') {
-                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"
-                )
-                // this.handleUpdataTable([[this.row, "LedgerParam.SupplyPurchase.Supplier", null, data.name]], "edit")
-            }
-
+                  })
+                  return false
+              //设备二维码图片
+              case 'EquipQRCode':
+                  this.qrcodeUrl = this.tableData[row.row].EquipQRCode;
+                  if (!!this.qrcodeUrl) {
+                      this.myDialog.qrcode = true;
+                  } else {
+                      this.$message("此设备没有设备二维码");
+                  }
+                  return false
+              //关联系统
+              case 'LinkSystem':
+                  if (!this.onlyRead) {
+                      this.curDevice = infos.EquipID;
+                      this.systemList = this.tableData[row.row].LinkSystem || [];
+                      this.myDialog.systemType = true;
+                  }
+                  return false
+              //关联资产
+              case 'LinkEquipLocalName':
+                  if (!this.onlyRead) {
+                      this.myDialog.changeRea = true;
+                  }
+                  return false
+              //品牌型号弹窗
+              case 'DPManufacturerID':
+                  if (!this.onlyRead) {
+                      this.myDialog.firm = true;
+                  }
+                  return false
+              //供应商信息弹窗
+              case 'DPSupplierID':
+                  if (!this.onlyRead) {
+                      this.myDialog.supplier = true;
+                  }
+                  return false
+              //维修商信息弹窗
+              case 'DPMaintainerID':
+                  if (!this.onlyRead) {
+                      this.myDialog.maintainer = true;
+                  }
+                  return false
+              //保险公司信息
+              case 'DPInsurerID':
+                  if (!this.onlyRead) {
+                      this.myDialog.insurer = true;
+                  }
+                  return false
+              //供应合同编号
+              case 'LedgerParam.SupplyPurchase.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("请先选择供应商");
+                      }
+                  }
+                  return false
+              //保险单号
+              case 'LedgerParam.InsuranceDoc.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("请先选择保险商");
+                      }
+                  }
+                  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.PhotoDoc.Drawing': //设备图纸
+              case 'LedgerParam.Siteinstall.InstallDrawing': //安装图纸
+                  let IPSdata = tools.dataForKey(this.tableData[row.row], val);
+                  this.filesArr = IPSdata ? IPSdata : [];
+                  if (!this.onlyRead || this.filesArr.length) {
+                      this.myDialog.uploadFiles = true;
+                  }
+                  return false
+              //安装照片--设备铭牌照片
+              case 'LedgerParam.Siteinstall.InstallPic':
+              case 'LedgerParam.PhotoDoc.Nameplate':
+                  let SSPPdata = tools.dataForKey(this.tableData[row.row], val);
+                  this.imgsArr = SSPPdata ? SSPPdata : [];
+                  if (!this.onlyRead || this.imgsArr.length) {
+                      this.myDialog.uploadImgs = true;
+                  }
+                  return false
+              //设备照片
+              case 'LedgerParam.PhotoDoc.Pic':
+                  let Pdata = tools.dataForKey(this.tableData[row.row], val);
+                  this.picsArr = Pdata ? Pdata : [];
+                  if (!this.onlyRead || this.picsArr.length) {
+                      this.myDialog.pic = true;
+                  }
+                  return false
+              //包含的部件字段
+              case 'Count':
+                  let countUrl = this.onlyRead ? '/ledger/parts' : '/ledger/partsmanage';
+                  this.$router.push({path: countUrl, query: {
+                      deviceId: infos.EquipID,
+                      typeId: this.mess.deviceId,
+                      pageNo: this.page.currentPage,
+                      pageSize: this.page.size
+                  }});
+                  return false
+              default:
+                  break;
+          }
+          if (!this.onlyRead && showTools.InputModeArr.indexOf(inputMode) == '-1') {
+              this.updateInfoPoint = val
+              this.updateInput = tools.dataForKey(this.tableData[row.row], val)
+              this.myDialog.update = true
+          }
       },
-      //供应合同编号
-      supplyChange(data) {
-        tools.setDataForKey(this.tableData[this.row], "LedgerParam.SupplyPurchase.SupplierContractID", {id: data})
+      //关闭临时维护弹窗回调
+      handleCloseUpdate() {
+          this.updateInputShow = false
+          this.updateInfoPoint = ''
+          this.updateInput = ''
       },
-      //保险单号-保险文件
-      guaranteeChange(data) {
-        for (let key in data) {
-          this.utilToKey(key, "insuranceNo", data, "InsuranceNum")
-          if (key == "contractFile") {
-            if (!!data[key]) {
-              data[key] = [data[key]]
-            }
+      //更新临时维护信息点
+      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 = ''
+      },
+      //获取被筛选掉的行号
+      trimmedRows() {
+          var plugin = this.hot.getPlugin("trimRows").trimmedRows;
+          let dataLength = this.tableData.length;
+          let dataArr = new Array();
+          for (let i = 0; i < dataLength; i++) {
+              dataArr.push(i);
           }
-          this.utilToKey(key, "contractFile", data, "InsuranceFile")
-        }
+          if (plugin.length <= 0) {
+              dataArr = undefined;
+          } else {
+              dataArr = this.array_diff(dataArr, plugin);
+          }
+          return dataArr || [];
+      },
+      //去除数组中相同的元素
+      array_diff(a, b) {
+          for (var i = 0; i < b.length; i++) {
+              for (var j = 0; j < a.length; j++) {
+                  if (a[j] == b[i]) {
+                      a.splice(j, 1);
+                      j = j - 1;
+                  }
+              }
+          }
+          return a;
       },
-      //选择型号修改
-      firmChange(data, type) {
-        if (type === 'dialog') { // 如果是批量信息维护
-          let venderName = data.venderName ? data.venderName : '空'
-          let brandName = data.brandName ? data.brandName : '空'
-          let name = data.name ? data.name : '空'
-          let firm = {
-            ...data,
-            num: 2,
-            Specification: data.name,
-            name: `${venderName}/${brandName}/${name}`
+      //如果选择供应商之后
+      supplierChange(data, type) {
+          if (type === 'dialog') {
+              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"
+              )
+              // this.handleUpdataTable([[this.row, "LedgerParam.SupplyPurchase.Supplier", null, data.name]], "edit")
+          }
+
+    },
+    //供应合同编号
+    supplyChange(data) {
+      tools.setDataForKey(this.tableData[this.row], "LedgerParam.SupplyPurchase.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.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)
-          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]
-            ],
-            "edit"
-          )
-          // this.handleUpdataTable([[this.row, "LedgerParam.EquipManufactor.Brand", null, data.brand]], "edit")
-          // this.handleUpdataTable([[this.row, "LedgerParam.EquipManufactor.Specification", null, data.name]], "edit")
         }
-      },
-      //保险商变更
-      changeInsurer(data, type) {
-        if (type === 'dialog') {
-          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"
-          )
-          // this.handleUpdataTable([[this.row, "LedgerParam.InsuranceDoc.Insurer", null, data.name]], "edit")
+        this.utilToKey(key, "contractFile", data, "InsuranceFile")
+      }
+    },
+    //选择型号修改
+    firmChange(data, type) {
+      if (type === 'dialog') { // 如果是批量信息维护
+        let venderName = data.venderName ? data.venderName : '空'
+        let brandName = data.brandName ? data.brandName : '空'
+        let name = data.name ? data.name : '空'
+        let firm = {
+          ...data,
+          num: 2,
+          Specification: data.name,
+          name: `${venderName}/${brandName}/${name}`
         }
+        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)
+        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]
+          ],
+          "edit"
+        )
+        // this.handleUpdataTable([[this.row, "LedgerParam.EquipManufactor.Brand", null, data.brand]], "edit")
+        // this.handleUpdataTable([[this.row, "LedgerParam.EquipManufactor.Specification", null, data.name]], "edit")
+      }
+    },
+    //保险商变更
+    changeInsurer(data, type) {
+      if (type === 'dialog') {
+        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"
+        )
+        // this.handleUpdataTable([[this.row, "LedgerParam.InsuranceDoc.Insurer", null, data.name]], "edit")
+      }
 
-      },
-      //维修商变更
-      changeMaintainer(data, type) {
-        if (type === 'dialog') {
-          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"
-          )
-          // this.handleUpdataTable([[this.row, "LedgerParam.OperationMainte.Maintainer", null, data.name]], "edit")
-        }
+    },
+    //维修商变更
+    changeMaintainer(data, type) {
+      if (type === 'dialog') {
+        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"
+        )
+        // this.handleUpdataTable([[this.row, "LedgerParam.OperationMainte.Maintainer", null, data.name]], "edit")
+      }
 
-      },
-      //修改关联的资产
-      changeProperty(val) {
-        this.setDataToMain(val.PropertyId, 'PropertyId', this.row);
-        this.setDataToMain(val.LinkEquipLocalName, 'LinkEquipLocalName', this.row);
-      },
-      //上传文件弹窗触发事件
-      fileChange(keys, type) {
-        if (type === 'dialog') {
-          this.information = keys
-        } else {
-          this.setDataToMain(keys, this.messKey, this.row);
-        }
-      },
-      //上传图片弹窗触发事件
-      imgChange(keys, type) {
-        if (type === 'dialog') {
-          this.information = keys
-        } else {
-          this.setDataToMain(keys, this.messKey, this.row);
+    },
+    //修改关联的资产
+    changeProperty(val) {
+      this.setDataToMain(val.PropertyId, 'PropertyId', this.row);
+      this.setDataToMain(val.LinkEquipLocalName, 'LinkEquipLocalName', this.row);
+    },
+    //上传文件弹窗触发事件
+    fileChange(keys, type) {
+      if (type === 'dialog') {
+        this.information = keys
+      } else {
+        this.setDataToMain(keys, this.messKey, this.row);
+      }
+    },
+    //上传图片弹窗触发事件
+    imgChange(keys, type) {
+      if (type === 'dialog') {
+        this.information = keys
+      } else {
+        this.setDataToMain(keys, this.messKey, this.row);
 
-        }
-      },
-      //关联系统更改
-      changeSystemType(data) {
-        tools.setDataForKey(this.tableData[this.row], "LinkSystem", data)
-      },
-      //设备图片弹窗改变事件
-      changePics(keys, type) {
-        if (type === 'dialog') {
-          this.information = keys
+      }
+    },
+    //关联系统更改
+    changeSystemType(data) {
+      tools.setDataForKey(this.tableData[this.row], "LinkSystem", data)
+    },
+    //设备图片弹窗改变事件
+    changePics(keys, type) {
+      if (type === 'dialog') {
+        this.information = keys
+      } else {
+        this.setDataToMain(keys, this.messKey, this.row);
+      }
+    },
+    utilToKey(key, name, data, messName) {
+      if (key == name) {
+        this.setDataToMain(data[key], messName, this.row)
+      }
+    },
+    //判断是否有值,有值赋值
+    setDataToMain(data, key, row) {
+      if (!!data && data != '--') {
+        if (!!this.tableData[row]) {
+          tools.setDataForKey(this.tableData[row], key, data);
+          this.handleUpdataTable([[row, key, null, data]], "edit");
         } else {
-          this.setDataToMain(keys, this.messKey, this.row);
+          this.tableData[row] = {};
+          tools.setDataForKey(this.tableData[row], key, data);
         }
-      },
-      utilToKey(key, name, data, messName) {
-        if (key == name) {
-          this.setDataToMain(data[key], messName, this.row)
-        }
-      },
-      //判断是否有值,有值赋值
-      setDataToMain(data, key, row) {
-        if (!!data && data != '--') {
-          if (!!this.tableData[row]) {
-            tools.setDataForKey(this.tableData[row], key, data);
-            this.handleUpdataTable([[row, key, null, data]], "edit");
-          } else {
-            this.tableData[row] = {};
-            tools.setDataForKey(this.tableData[row], key, data);
-          }
-        } else {
-          tools.setDataForKey(this.tableData[row], key, "");
+      } else {
+        tools.setDataForKey(this.tableData[row], key, "");
+      }
+    },
+    //    批量信息维护
+    Batch() {
+      this.firmDataType = 'dialog'
+      this.$refs.batchDialogs.batchDialog = true
+    },
+    upDataDevice(type, data1, data2) {
+      let param = {Content: data1}
+      let param1 = {Content: data2}
+      if (type === 1) { //增量
+        //LedgerParam
+        let filterParam = this.filterCheck(param, 'sole')
+        let filterParam1 = this.filterCheck(param1, 'multiple')
+        if (filterParam) {
+          updateEquip(param, res => {
+          });
         }
-      },
-      //    批量信息维护
-      Batch() {
-        this.firmDataType = 'dialog'
-        this.$refs.batchDialogs.batchDialog = true
-      },
-      upDataDevice(type, data1, data2) {
-        let param = {Content: data1}
-        let param1 = {Content: data2}
-        if (type === 1) { //增量
-          //LedgerParam
-          let filterParam = this.filterCheck(param, 'sole')
-          let filterParam1 = this.filterCheck(param1, 'multiple')
-          if (filterParam) {
-            updateEquip(param, res => {
-            });
-          }
-          if (filterParam1) {
-            setTimeout(() => {
-              queryUpdate(param1, res => {
-              })
+        if (filterParam1) {
+          setTimeout(() => {
+            queryUpdate(param1, res => {
             })
+          })
 
-          }
         }
-        if (type === 2) {//覆盖
-          let filterParams = this.filterCheck(param, 'sole')
-          if (filterParams) {
-            updateEquip(param, res => {
-            });
-          }
+      }
+      if (type === 2) {//覆盖
+        let filterParams = this.filterCheck(param, 'sole')
+        if (filterParams) {
+          updateEquip(param, res => {
+          });
         }
-        setTimeout(() => {
-          this.getTableData()
-          this.getAllData()
-        }, 10)
-      },
-      filterCheck(arr, type) {
-        if (type === 'sole') {
-          for (let i of arr.Content) {
-            return Object.keys(i.LedgerParam).length
-          }
-        } else if (type === 'multiple') {
-          let  nArr = [];
-          arr.Content.forEach(i => {
-            let {EquipID, ...value} = i
-            nArr.push({LedgerParam: value})
-          })
-          for (let j of nArr) {
-            return Object.keys(j.LedgerParam).length
-          }
+      }
+      setTimeout(() => {
+        this.getTableData()
+        this.getAllData()
+      }, 10)
+    },
+    filterCheck(arr, type) {
+      if (type === 'sole') {
+        for (let i of arr.Content) {
+          return Object.keys(i.LedgerParam).length
+        }
+      } else if (type === 'multiple') {
+        let  nArr = [];
+        arr.Content.forEach(i => {
+          let {EquipID, ...value} = i
+          nArr.push({LedgerParam: value})
+        })
+        for (let j of nArr) {
+          return Object.keys(j.LedgerParam).length
         }
       }
+    }
     },
     watch: {
       projectId() {

+ 3 - 2
src/components/ledger/lib/floorCascader.vue

@@ -63,7 +63,8 @@
             getData() {
                 let data, buildParams = {
                     PageNumber: 1,
-                    PageSize: 500,
+                    PageSize: 1000,
+                    Orders: "BuildLocalName asc",
                     Projection: [
                         "BuildID",
                         "BuildLocalName"
@@ -71,7 +72,7 @@
                 }, floorParams = {
                     Orders: "FloorSequenceID desc",
                     PageNumber: 1,
-                    PageSize: 500,
+                    PageSize: 1000,
                     Projection: [
                         "BuildID",
                         "FloorID",

+ 6 - 10
src/components/ledger/lib/system.vue

@@ -10,7 +10,7 @@
 </template>
 <script>
 import { mapGetters } from 'vuex';
-import { queryLinkSys, getEqCode } from "@/api/scan/request";
+import { queryLinkSys, queryPhysicsAllType } from "@/api/scan/request";
 export default {
   name: "getCode",
   props: {
@@ -72,7 +72,7 @@ export default {
       let param = {
         Distinct: true,
         PageNumber: 1,
-        PageSize: 500,
+        PageSize: 1000,
         Projection: [
           "Category", "CategoryName"
         ]
@@ -85,8 +85,8 @@ export default {
       })
     },
     getAllData() {
-      getEqCode().then(res => {
-        this.options = this.changeArr(res.data.Content)
+      queryPhysicsAllType('System', res => {
+        this.options = this.changeArr(res.Content)
         if (this.value) {
           this.changeVal(this.value)
         }
@@ -94,12 +94,8 @@ export default {
     },
     changeArr(arr) {
       let data = [];
-      arr.map(item => {
-        if (item.content && item.content.length) {
-          return item.content.map(children => {
-            data.push({ Category: children.code, CategoryName: children.system });
-          });
-        }
+      arr.forEach(item => {
+        data.push({ Category: item.Code, CategoryName: item.Name });
       });
       return data;
     }

+ 0 - 2
src/components/model/file/addFloorDialog.vue

@@ -137,8 +137,6 @@ export default {
       let FloorName = null;
       if (this.form.file == null) {
         this.$message.error("模型文件不能为空!");
-      } else if (this.uploaderList.some(item => {return item.name === this.form.file.name})) {
-        this.$message.error("该文件在上传列表中已存在!");
       } else {
         let FloorName = null;
         // 根据是否有夹层拼接楼层名

+ 1 - 1
src/components/model/file/floorTable.vue

@@ -90,7 +90,7 @@ export default {
     },
     // 替换日志
     repliaceModel(item) {
-      if (item.Status != 4 && item.Status != 21) {
+      if (item.Status != 4) {
         this.$alert("正在识别模型对象,请稍后再替换。", "替换模型", {
           confirmButtonText: "确定",
           callback: action => {

+ 1 - 1
src/components/model/file/modelLog.vue

@@ -94,7 +94,7 @@ export default {
      */
     deleteModel(item) {
       this.$confirm(
-        "此操作只可删除楼层模型文件已经识别的对象及关系等,暂不可删除。确定删除?",
+        "此操作只可删除楼层模型文件已经识别的对象及关系等,暂不可删除。确定删除?",
         "提示",
         {
           confirmButtonText: "确定",

+ 0 - 2
src/components/model/file/replaceModelDialog.vue

@@ -74,8 +74,6 @@ export default {
     onSubmit() {
       if (this.form.file == null) {
         this.$message.error("模型文件不能为空!");
-      } else if (this.uploaderList.some(item => {return item.name === this.form.file.name})) {
-        this.$message.error("该文件在上传列表中已存在!");
       } else {
         this.$emit("updataModel", {
           file: this.form.file,

+ 66 - 22
src/utils/handsontable/notShow.js

@@ -463,14 +463,11 @@ const showTools = {
                             readOnly: true
                         }
                     }
-
                     //图片类型
                     if (
                         item.InfoPointCode == "InstallPic" ||
-                        item.InfoPointCode == "InstallDrawing" ||
                         item.InfoPointCode == "Nameplate" ||
-                        item.InfoPointCode == "Pic" ||
-                        item.InfoPointCode == "Drawing"
+                        item.InfoPointCode == "Pic"
                     ) {
                         return {
                             data: "infos." + item.InfoPointCode,
@@ -482,7 +479,19 @@ const showTools = {
                     //文件类型
                     if (item.InfoPointCode == "InsuranceFile" ||
                         item.InfoPointCode == "Archive" ||
-                        item.InfoPointCode == "CheckReport") {
+                        item.InfoPointCode == "CheckReport" ||
+                        item.InfoPointCode == "MaintainManual" ||
+                        item.InfoPointCode == "ApproachingAcceptance" ||
+                        item.InfoPointCode == "AcceptanceReport" ||
+                        item.InfoPointCode == "OperationManual" ||
+                        item.InfoPointCode == "OriginalCertificate" ||
+                        item.InfoPointCode == "TestReport" ||
+                        item.InfoPointCode == "ProductCertification" ||
+                        item.InfoPointCode == "InstallInstruction" ||
+                        item.InfoPointCode == "Drawing" ||
+                        item.InfoPointCode == "InstallDrawing"
+
+                    ) {
                         return {
                             data: "infos." + item.InfoPointCode,
                             renderer: text.fileType,
@@ -640,10 +649,8 @@ const showTools = {
                     //图片类型
                     if (
                         item.InfoPointCode == "InstallPic" ||
-                        item.InfoPointCode == "InstallDrawing" ||
                         item.InfoPointCode == "Nameplate" ||
-                        item.InfoPointCode == "Pic" ||
-                        item.InfoPointCode == "Drawing"
+                        item.InfoPointCode == "Pic"
                     ) {
                         return {
                             data: item.Path,
@@ -655,7 +662,18 @@ const showTools = {
                     //文件类型
                     if (item.InfoPointCode == "InsuranceFile" ||
                         item.InfoPointCode == "Archive" ||
-                        item.InfoPointCode == "CheckReport") {
+                        item.InfoPointCode == "CheckReport" ||
+                        item.InfoPointCode == "MaintainManual" ||
+                        item.InfoPointCode == "ApproachingAcceptance" ||
+                        item.InfoPointCode == "AcceptanceReport" ||
+                        item.InfoPointCode == "OperationManual" ||
+                        item.InfoPointCode == "OriginalCertificate" ||
+                        item.InfoPointCode == "TestReport" ||
+                        item.InfoPointCode == "ProductCertification" ||
+                        item.InfoPointCode == "InstallInstruction" ||
+                        item.InfoPointCode == "Drawing" ||
+                        item.InfoPointCode == "InstallDrawing"
+                    ) {
                         return {
                             data: item.Path,
                             renderer: text.fileType,
@@ -799,10 +817,8 @@ const showTools = {
                     //图片类型
                     if (
                         item.InfoPointCode == "InstallPic" ||
-                        item.InfoPointCode == "InstallDrawing" ||
                         item.InfoPointCode == "Nameplate" ||
-                        item.InfoPointCode == "Pic" ||
-                        item.InfoPointCode == "Drawing"
+                        item.InfoPointCode == "Pic"
                     ) {
                         return {
                             data: item.Path,
@@ -814,7 +830,18 @@ const showTools = {
                     //文件类型
                     if (item.InfoPointCode == "InsuranceFile" ||
                         item.InfoPointCode == "Archive" ||
-                        item.InfoPointCode == "CheckReport") {
+                        item.InfoPointCode == "CheckReport" ||
+                        item.InfoPointCode == "MaintainManual" ||
+                        item.InfoPointCode == "ApproachingAcceptance" ||
+                        item.InfoPointCode == "AcceptanceReport" ||
+                        item.InfoPointCode == "OperationManual" ||
+                        item.InfoPointCode == "OriginalCertificate" ||
+                        item.InfoPointCode == "TestReport" ||
+                        item.InfoPointCode == "ProductCertification" ||
+                        item.InfoPointCode == "InstallInstruction" ||
+                        item.InfoPointCode == "Drawing" ||
+                        item.InfoPointCode == "InstallDrawing"
+                    ) {
                         return {
                             data: item.Path,
                             renderer: text.fileType,
@@ -996,10 +1023,8 @@ const showTools = {
         //图片类型
         if (
             item.InfoPointCode == "InstallPic" ||
-            item.InfoPointCode == "InstallDrawing" ||
             item.InfoPointCode == "Nameplate" ||
-            item.InfoPointCode == "Pic" ||
-            item.InfoPointCode == "Drawing"
+            item.InfoPointCode == "Pic"
         ) {
             return {
                 data: item.Path,
@@ -1007,11 +1032,21 @@ const showTools = {
                 readOnly: onlyRead
             }
         }
-
         //文件类型
         if (item.InfoPointCode == "InsuranceFile" ||
             item.InfoPointCode == "Archive" ||
-            item.InfoPointCode == "CheckReport") {
+            item.InfoPointCode == "CheckReport" ||
+            item.InfoPointCode == "MaintainManual" ||
+            item.InfoPointCode == "ApproachingAcceptance" ||
+            item.InfoPointCode == "AcceptanceReport" ||
+            item.InfoPointCode == "OperationManual" ||
+            item.InfoPointCode == "OriginalCertificate" ||
+            item.InfoPointCode == "TestReport" ||
+            item.InfoPointCode == "ProductCertification" ||
+            item.InfoPointCode == "InstallInstruction" ||
+            item.InfoPointCode == "Drawing" ||
+            item.InfoPointCode == "InstallDrawing"
+        ) {
             return {
                 data: item.Path,
                 renderer: text.fileType,
@@ -1091,10 +1126,8 @@ const showTools = {
         //图片类型
         if (
             item.InfoPointCode == "InstallPic" ||
-            item.InfoPointCode == "InstallDrawing" ||
             item.InfoPointCode == "Nameplate" ||
-            item.InfoPointCode == "Pic" ||
-            item.InfoPointCode == "Drawing"
+            item.InfoPointCode == "Pic"
         ) {
             return {
                 data: item.Path,
@@ -1106,7 +1139,18 @@ const showTools = {
         //文件类型
         if (item.InfoPointCode == "InsuranceFile" ||
             item.InfoPointCode == "Archive" ||
-            item.InfoPointCode == "CheckReport") {
+            item.InfoPointCode == "CheckReport" ||
+            item.InfoPointCode == "MaintainManual" ||
+            item.InfoPointCode == "ApproachingAcceptance" ||
+            item.InfoPointCode == "AcceptanceReport" ||
+            item.InfoPointCode == "OperationManual" ||
+            item.InfoPointCode == "OriginalCertificate" ||
+            item.InfoPointCode == "TestReport" ||
+            item.InfoPointCode == "ProductCertification" ||
+            item.InfoPointCode == "InstallInstruction" ||
+            item.InfoPointCode == "Drawing" ||
+            item.InfoPointCode == "InstallDrawing"
+        ) {
             return {
                 data: item.Path,
                 renderer: text.fileType,

+ 3 - 2
src/utils/scan/tools.js

@@ -313,9 +313,10 @@ tools.hasRelation = function (instance, td, row, col, prop, value, cellPropertie
 //关联的资产
 tools.LinkEquipLocalName = function (instance, td, row, col, prop, value, cellProperties) {
   if (value) {
-    td.innerHTML = value;
+    td.innerHTML = value == 'null'?'':value;
   } else {
-    td.innerHTML = instance.getDataAtRowProp(row, 'LinkEquipName');
+    let html = instance.getDataAtRowProp(row, 'LinkEquipName');
+    td.innerHTML = html == 'null'?'':html;
   }
   return td;
 }

+ 2 - 5
src/views/business_space/dataUtil/topology.vue

@@ -86,13 +86,10 @@ export default {
           Width: 100,
           Height: 50
         },
-        Pos:{},
-        AnchorList: [{ FaceType: 0, Pos: {} }, { FaceType: 1, Pos: {} }, { FaceType: 2, Pos: {} }, { FaceType: 3, Pos: {} }]
+        Pos: {},
+        AnchorList: [{ Pos: { X: 0, Y: -25 } },{ Pos: { X: 0, Y: 25 } },{ Pos: { X: -50, Y: 0 } },{ Pos: { X: 50, Y: 0} }]
       }
       this.scene.createItem(equipdata)
-      this.scene.grabItem.moveable = true
-      console.log(this.scene)
-      console.log(this.view)
     },
     drawline() {
       this.scene.isLining = true;

+ 6 - 1
src/views/data_admin/buildData/index.vue

@@ -598,7 +598,12 @@
             },
             //获取建筑列表
             getBuilding() {
-                buildingQuery({}, res => {
+                buildingQuery({
+                    PageNumber: 1,
+                    PageSize: 1000,
+                    Orders: "BuildLocalName asc",
+                    Projection: [ "BuildID", "BuildLocalName" ]
+                }, res => {
                     this.buildList = res.Content;
                 });
             },

+ 14 - 6
src/views/ledger/facility/addfacility.vue

@@ -605,18 +605,26 @@ export default {
           }
           break;
         //保险文件--设备文档--安装质检报告
-        case 'LedgerParam.InsuranceDoc.InsuranceFile':
-        case 'LedgerParam.PhotoDoc.Archive':
-        case 'LedgerParam.Siteinstall.CheckReport':
+        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.PhotoDoc.Drawing': //设备图纸
+        case 'LedgerParam.Siteinstall.InstallDrawing': //安装图纸
           let IPSdata = tools.dataForKey(this.tableData[row.row], val);
           this.filesArr = IPSdata ? IPSdata : [];
           this.myDialog.uploadFiles = true;
           break;
-        //安装照片--安装图纸--设备铭牌照片--设备图纸
+        //安装照片--设备铭牌照片
         case 'LedgerParam.Siteinstall.InstallPic':
-        case 'LedgerParam.Siteinstall.InstallDrawing':
         case 'LedgerParam.PhotoDoc.Nameplate':
-        case 'LedgerParam.PhotoDoc.Drawing':
           let SSPPdata = tools.dataForKey(this.tableData[row.row], val);
           this.imgsArr = SSPPdata ? SSPPdata : [];
           this.myDialog.uploadImgs = true;

+ 15 - 7
src/views/ledger/facility/parts/index.vue

@@ -359,20 +359,28 @@ export default {
       }
       //保险文件--设备文档--安装质检报告
       if (
-        val == "LedgerParam.InsuranceDoc.InsuranceFile" ||
-        val == "LedgerParam.PhotoDoc.Archive" ||
-        val == "LedgerParam.Siteinstall.CheckReport"
+        val == "LedgerParam.InsuranceDoc.InsuranceFile" || //保险文件
+        val == "LedgerParam.PhotoDoc.Archive" || //设备文档
+        val == "LedgerParam.Siteinstall.CheckReport" || //安装质检报告
+        val == "LedgerParam.OperationMainte.MaintainManual" || //维修保养手册
+        val == "LedgerParam.SupplyPurchase.ApproachingAcceptance" || //进场验收单
+        val == "LedgerParam.SupplyPurchase.AcceptanceReport" || //验收报告
+        val == "LedgerParam.PhotoDoc.OperationManual" || //操作说明书
+        val == "LedgerParam.EquipManufactor.OriginalCertificate" || //原厂证明
+        val == "LedgerParam.EquipManufactor.TestReport" || //检测报告
+        val == "LedgerParam.PhotoDoc.ProductCertification" || //产品合格证
+        val == "LedgerParam.Siteinstall.InstallInstruction" || //安装说明书
+        val == "LedgerParam.PhotoDoc.Drawing" || //设备图纸
+        val == "LedgerParam.Siteinstall.InstallDrawing" //安装图纸
       ) {
         let data = tools.dataForKey(this.tableData[row.row], val);
         this.filesArr = data ? data : [];
         this.myDialog.uploadFiles = true;
       }
-      //安装照片--安装图纸--设备铭牌照片--设备图纸
+      //安装照片--设备铭牌照片
       if (
         val == "LedgerParam.Siteinstall.InstallPic" ||
-        val == "LedgerParam.Siteinstall.InstallDrawing" ||
-        val == "LedgerParam.PhotoDoc.Nameplate" ||
-        val == "LedgerParam.PhotoDoc.Drawing"
+        val == "LedgerParam.PhotoDoc.Nameplate"
       ) {
         let data = tools.dataForKey(this.tableData[row.row], val);
         this.imgsArr = data ? data : [];

+ 15 - 30
src/views/ledger/facility/partsmanage/addparts/index.vue

@@ -504,52 +504,37 @@ export default {
       }
       //保险文件--设备文档--安装质检报告
       if (
-        val == "LedgerParam.InsuranceDoc.InsuranceFile" ||
-        val == "LedgerParam.PhotoDoc.Archive" ||
-        val == "LedgerParam.Siteinstall.CheckReport"
+        val == "LedgerParam.InsuranceDoc.InsuranceFile" || //保险文件
+        val == "LedgerParam.PhotoDoc.Archive" || //设备文档
+        val == "LedgerParam.Siteinstall.CheckReport" || //安装质检报告
+        val == "LedgerParam.OperationMainte.MaintainManual" || //维修保养手册
+        val == "LedgerParam.SupplyPurchase.ApproachingAcceptance" || //进场验收单
+        val == "LedgerParam.SupplyPurchase.AcceptanceReport" || //验收报告
+        val == "LedgerParam.PhotoDoc.OperationManual" || //操作说明书
+        val == "LedgerParam.EquipManufactor.OriginalCertificate" || //原厂证明
+        val == "LedgerParam.EquipManufactor.TestReport" || //检测报告
+        val == "LedgerParam.PhotoDoc.ProductCertification" || //产品合格证
+        val == "LedgerParam.Siteinstall.InstallInstruction" || //安装说明书
+        val == "LedgerParam.PhotoDoc.Drawing" || //设备图纸
+        val == "LedgerParam.Siteinstall.InstallDrawing" //安装图纸
       ) {
         let data = tools.dataForKey(this.tableData[row.row], val)
         this.filesArr = data ? data : []
-        // this.filesArr = this.tableData[row.row].infos
-        //   ? this.tableData[row.row].infos[val.split(".")[1]]
-        //     ? [this.tableData[row.row].infos[val.split(".")[1]]]
-        //     : []
-        //   : [];
         this.myDialog.uploadFiles = true;
       }
-      //安装照片--安装图纸--设备铭牌照片--设备图纸
+      //安装照片--设备铭牌照片
       if (
         val == "LedgerParam.Siteinstall.InstallPic" ||
-        val == "LedgerParam.Siteinstall.InstallDrawing" ||
-        val == "LedgerParam.PhotoDoc.Nameplate" ||
-        val == "LedgerParam.PhotoDoc.Drawing"
+        val == "LedgerParam.PhotoDoc.Nameplate"
       ) {
         let data = tools.dataForKey(this.tableData[row.row], val)
         this.imgsArr = data ? data : []
-        // if (val == "LedgerParam.PhotoDoc.Nameplate") {
-        //   this.imgsArr = this.tableData[row.row].infos
-        //     ? this.tableData[row.row].infos[val.split(".")[1]]
-        //       ? [this.tableData[row.row].infos[val.split(".")[1]].key]
-        //       : []
-        //     : [];
-        // } else {
-        //   this.imgsArr = this.tableData[row.row].infos
-        //     ? this.tableData[row.row].infos[val.split(".")[1]]
-        //       ? [this.tableData[row.row].infos[val.split(".")[1]]]
-        //       : []
-        //     : [];
-        // }
         this.myDialog.uploadImgs = true;
       }
       //设备照片
       if (val == "LedgerParam.PhotoDoc.Pic") {
         let data = tools.dataForKey(this.tableData[row.row], val)
         this.picsArr = data ? data : []
-        // this.picsArr = this.tableData[row.row].infos
-        //   ? this.tableData[row.row].infos[val.split(".")[1]]
-        //     ? this.tableData[row.row].infos[val.split(".")[1]]
-        //     : []
-        //   : [];
         this.myDialog.pic = true;
       }
       this.row = row.row;

+ 14 - 6
src/views/ledger/facility/partsmanage/index.vue

@@ -668,18 +668,26 @@ export default {
           }
           break;
         //保险文件--设备文档--安装质检报告
-        case 'LedgerParam.InsuranceDoc.InsuranceFile':
-        case 'LedgerParam.PhotoDoc.Archive':
-        case 'LedgerParam.Siteinstall.CheckReport':
+        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.PhotoDoc.Drawing': //设备图纸
+        case 'LedgerParam.Siteinstall.InstallDrawing': //安装图纸
           let IPSdata = tools.dataForKey(this.tableData[row.row], val);
           this.filesArr = IPSdata ? IPSdata : [];
           this.myDialog.uploadFiles = true;
           break;
-        //安装照片--安装图纸--设备铭牌照片--设备图纸
+        //安装照片--设备铭牌照片
         case 'LedgerParam.Siteinstall.InstallPic':
-        case 'LedgerParam.Siteinstall.InstallDrawing':
         case 'LedgerParam.PhotoDoc.Nameplate':
-        case 'LedgerParam.PhotoDoc.Drawing':
           let SSPPdata = tools.dataForKey(this.tableData[row.row], val);
           this.imgsArr = SSPPdata ? SSPPdata : [];
           this.myDialog.uploadImgs = true;

+ 14 - 6
src/views/ledger/property/addproperty.vue

@@ -438,18 +438,26 @@ export default {
           }
           break;
         //保险文件--设备文档--安装质检报告
-        case 'LedgerParam.InsuranceDoc.InsuranceFile':
-        case 'LedgerParam.PhotoDoc.Archive':
-        case 'LedgerParam.Siteinstall.CheckReport':
+        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.PhotoDoc.Drawing': //设备图纸
+        case 'LedgerParam.Siteinstall.InstallDrawing': //安装图纸
           let IPSdata = tools.dataForKey(this.tableData[row.row], val);
           this.filesArr = IPSdata ? IPSdata : [];
           this.myDialog.uploadFiles = true;
           break;
-        //安装照片--安装图纸--设备铭牌照片--设备图纸
+        //安装照片--设备铭牌照片
         case 'LedgerParam.Siteinstall.InstallPic':
-        case 'LedgerParam.Siteinstall.InstallDrawing':
         case 'LedgerParam.PhotoDoc.Nameplate':
-        case 'LedgerParam.PhotoDoc.Drawing':
           let SSPPdata = tools.dataForKey(this.tableData[row.row], val);
           this.imgsArr = SSPPdata ? SSPPdata : [];
           this.myDialog.uploadImgs = true;

+ 1 - 1
src/views/ready/buildfloor/drawGraphy/drawFloor.vue

@@ -143,7 +143,7 @@ export default {
           }
         });
         this.drawMainScene.addAllShade(this.shadeList);
-        this.$emit('changeSign', this.shadeList.length > 0);
+        this.$emit('changeSign', res.Content.length > 1);
       });
     },
     // 清空平面图

+ 3 - 1
src/views/ready/buildfloor/index.vue

@@ -382,9 +382,11 @@
             this.$message.success("删除成功");
             this.delDialogVis = false;
             objectDeleteBuild(param, res => {
+              this.$message.success("删除成功");
+              this.buildDisabled = false
+              this.delDialogVis = false;
               this.handleBuildQuery()
               this.init()
-              this.buildDisabled = false
             })
           }