zhulizhen1111 4 years ago
parent
commit
ea56219e55

+ 9 - 3
src/views/equipment/table/eqListTable.vue

@@ -115,13 +115,13 @@ export default {
             floor: '1',
             type_name: '',
             floorAllSelect: [],
-            sign:1,
+            sign: 1,
         }
     },
     computed: {
         ...mapGetters(['floorSelect']),
     },
-    props: ['param', 'major', 'systemName', 'InfoName','smsxt','diff'],
+    props: ['param', 'major', 'systemName', 'InfoName', 'smsxt', 'diff'],
     methods: {
         indexMethod(index) {
             return (this.currentPage - 1) * this.size + index + 1
@@ -147,7 +147,7 @@ export default {
                 major: this.major,
             }
             //区分土建主要设备
-            if(this.smsxt != '1008'){
+            if (this.smsxt != '1008') {
                 data.onlyMainAsset = true
             }
             //下拉
@@ -233,6 +233,12 @@ export default {
         margin-top: 28px;
     }
 }
+/deep/ .el-dialog__body {
+    padding: 0;
+}
+/deep/.el-dialog {
+    margin-top: 5vh !important;
+}
 @media screen and (max-width: 1600px) {
     /deep/ .el-dialog__body {
         padding: 0;

+ 2 - 167
src/views/equipment/table/rcwxTable.vue

@@ -146,7 +146,7 @@
             <div
               v-if="row.repair_photos_num"
               style="cursor:pointer;color: #0091ff;"
-             @click.stop='clickPic(row)'
+             @click.stop='clickPicRepair(row)'
             >{{row.repair_photos_num+'张'}}</div>
             <div v-else>{{'--'}}</div>
           </template>
@@ -156,7 +156,7 @@
             <div
               v-if="row.finish_photos_num"
               style="cursor:pointer;color: #0091ff;"
-              @click.stop='clickPic(row)'
+              @click.stop='clickPicFinish(row)'
             >{{row.finish_photos_num+'张'}}</div>
             <div v-else>{{'--'}}</div>
           </template>
@@ -214,19 +214,6 @@ export default {
   },
   props: ["smsxt", "diff", "tabLabel", "size", "assetnum"],
   methods: {
-    //序号的方法
-    indexMethod(index) {
-      return (this.currentPage - 1) * this.size + index + 1;
-    },
-    innerTable(row) {
-      if (row.workorderid) {
-        window.open(
-          `http://gcgl.wanda.cn/maximo/ui/?event=loadapp&value=JXWO&uniqueid=${row.workorderid}`
-        );
-      }
-    },
-    props: ['smsxt', 'diff', 'tabLabel', 'size', 'assetnum'],
-    methods: {
         //序号的方法
         indexMethod(index) {
             return (this.currentPage - 1) * this.size + index + 1
@@ -393,158 +380,6 @@ export default {
                 })
             })
         },
-    },
-    //多余输入框监听
-    confirm(reportdate, real, locationName) {
-      this.reportdate = reportdate;
-      this.sjjssj = real;
-      this.locationName = locationName;
-      this.getList();
-    },
-    pageChanged(page) {
-      this.currentPage = page;
-      this.getList();
-    },
-    getList() {
-      let getParams = {
-        data: {
-          smsxt: this.smsxt,
-          // diff: this.diff,
-          plazaId: this.$store.state.plazaId,
-          page: this.currentPage,
-          size: this.size
-        }
-      };
-      //区分主要设备和全部设备
-      if (this.smsxt != "1008") {
-        getParams.data.onlyMainAsset = true;
-      }
-      if (this.assetnum) {
-        getParams.data.assetnum = this.assetnum;
-      }
-      //下拉
-      if (this.reportdate) {
-        getParams.data.schedfinishStartDate = this.reportdate[0] + "000000";
-        getParams.data.schedfinishEndDate = this.reportdate[1] + "000000";
-      }
-      if (this.real) {
-        getParams.data.wotjyssjStartDate = this.real[0] + "000000";
-        getParams.data.wotjyssjEndDate = this.real[1] + "000000";
-      }
-      if (this.source && this.source != "全部") {
-        getParams.data.bxfwlymc = this.source;
-      }
-      if (this.status && this.status != "全部") {
-        getParams.data.status = this.status;
-      }
-      //输入框搜索
-      getParams.data.keyword = "";
-      if (this.sbjc) {
-        getParams.data.keyword += `${this.sbjc}:sbmc,assetnum;`;
-      }
-      if (this.matters) {
-        getParams.data.keyword += `${this.matters}:description;`;
-      }
-      if (this.locationName) {
-        getParams.data.keyword += `${this.locationName}:location;`;
-      }
-      if (this.wonum2) {
-        getParams.data.keyword += `${this.wonum2}:wonum;`;
-      }
-      if (this.people) {
-        getParams.data.keyword += `${this.people}:lead;`;
-      }
-      if (getParams.data.keyword == "") {
-        delete getParams.data.keyword;
-      }
-
-      queryWxzy(getParams).then(res => {
-        this.tableData = res.data || [];
-        this.total = res.count;
-      });
-    },
-    clickPic(row) {
-      this.imgUrl = [];
-      if (row) {
-        row.forEach(el => {
-          let obj = {
-            name: el.description,
-            url: el.url
-          };
-          this.imgUrl.push(obj);
-        });
-      }
-      this.$refs.picLargeOpen.open(this.imgUrl);
-    },
-    startMethods() {
-      this.tabFind();
-      this.getList();
-    },
-    //下拉框查询
-    tabFind() {
-      // 1保修来源
-      let postParams = [
-        {
-          columnName: { bxfwly: "bxfwlymc" },
-          params: {
-            smsxt: this.smsxt
-          },
-          tableName: "sms_wxzy" //视图名称
-        }
-      ];
-      let data = {
-        plazaId: this.$store.state.plazaId
-      };
-      if (this.smsxt != "1008") {
-        data.onlyMainAsset = true;
-      }
-      querySelect({ data, postParams }).then(res => {
-        //console.log(res)
-        let bxfwlymc =
-          res.data && res.data.data && res.data.data.sms_wxzy
-            ? res.data.data.sms_wxzy.bxfwly
-            : [];
-        this.sourceOption = [];
-        this.sourceOption.push({
-          name: "全部",
-          id: "全部"
-        });
-        bxfwlymc.forEach(el => {
-          this.sourceOption.push({
-            name: el.value,
-            id: el.key
-          });
-        });
-      });
-      // 2任务状态
-      let postParams2 = [
-        {
-          columnName: { status: "status" },
-          params: {
-            smsxt: this.smsxt
-          },
-          tableName: "sms_wxzy" //视图名称
-        }
-      ];
-      querySelect({ data, postParams: postParams2 }).then(res => {
-        console.log("resrfes", res);
-        let bxfwlymc =
-          res.data && res.data.data && res.data.data.sms_wxzy
-            ? res.data.data.sms_wxzy.status
-            : [];
-        this.statusOption = [];
-        this.statusOption.push({
-          name: "全部",
-          id: "全部"
-        });
-        bxfwlymc.forEach(el => {
-          this.statusOption.push({
-            name: el.value,
-            id: el.key
-          });
-        });
-      });
-    }
   },
   watch: {
     diff(newV, oldV) {

+ 10 - 4
src/views/equipment/table/standTable.vue

@@ -107,10 +107,10 @@ export default {
             manufacturer: '',
             type_name: '',
             floorAllSelect: [],
-            sign:1
+            sign: 1,
         }
     },
-    props: ['major', 'param', 'InfoName','smsxt','diff'],
+    props: ['major', 'param', 'InfoName', 'smsxt', 'diff'],
     components: { EqDetail, Select },
     computed: {
         ...mapGetters(['floorSelect']),
@@ -152,8 +152,8 @@ export default {
                 major: major,
                 // floor:this.floor
             }
-             //区分土建主要设备
-            if(this.smsxt != '1008'){
+            //区分土建主要设备
+            if (this.smsxt != '1008') {
                 data.onlyMainAsset = true
             }
             //下拉
@@ -238,6 +238,12 @@ export default {
         margin-top: 28px;
     }
 }
+/deep/ .el-dialog__body {
+    padding: 0;
+}
+/deep/.el-dialog {
+    margin-top: 5vh !important;
+}
 @media screen and (max-width: 1600px) {
     /deep/ .el-dialog__body {
         padding: 0;