Procházet zdrojové kódy

工业进场时间
碰口作业导出

wangzhe před 10 měsíci
rodič
revize
d015e350a4

+ 1 - 1
src/views/zdsz/engineeringGY/index.vue

@@ -106,7 +106,7 @@
       <el-table-column label="设计负责人" align="center" prop="designHead"/>
       <el-table-column label="监理负责人" align="center" prop="supervisionHead"/>
       <el-table-column label="建项时间" align="center" prop="createTime"/>
-      <el-table-column label="开工时间" align="center" prop="startTime"/>
+      <el-table-column label="进场时间" align="center" prop="startTime"/>
       <el-table-column label="竣工时间" align="center" prop="beCompletedTime"/>
       <el-table-column label="用料比" align="center" prop="enginClassification" width="300px">
         <template slot-scope="scope">

+ 38 - 42
src/views/zdsz/touchOperationEngineering/index.vue

@@ -81,8 +81,6 @@
         </el-button>
       </el-col>
       <el-col :span="2.5" style="float: right;">
-         <span
-           style="height: 20px;margin-right: 5px;width: 20px; border-radius: 50%; display: inline-block; background-color: #807e7a;"></span>无数据
         <span
           style="height: 20px;margin-right: 5px;width: 20px; border-radius: 50%; display: inline-block; background-color: #e0c794;"></span>待审核
         <span
@@ -111,9 +109,7 @@
               placement="top-start"
               trigger="hover"
               :content="item.Type">
-               <span slot="reference" v-if="item.state == '-1' && item.content=='无数据'"
-                     style="height: 20px;margin-right: 5px;width: 20px; border-radius: 50%; display: inline-block; background-color: #807e7a;"></span>
-              <span slot="reference" v-else-if="item.state == '0' && item.content=='暂未审核'"
+              <span slot="reference" v-if="item.state == '0' && item.content=='暂未审核'"
                     style="height: 20px;margin-right: 5px;width: 20px; border-radius: 50%; display: inline-block; background-color: #e0c794;"></span>
               <span slot="reference" v-else-if="item.state == '1' "
                     style="height: 20px;margin-right: 5px;width: 20px; border-radius: 50%; display: inline-block; background-color: #30B08F;"></span>
@@ -397,18 +393,18 @@ export default {
     },
     updateviewSource(e) {
       this.currentId = e.id
-      let dists ;
-      if ("地埋扳孔"  == e.modeOperation){
-        dists="bury_the_wrench_hole";
-      }else if ("架空扳孔"  == e.modeOperation){
-        dists="aerial_wrench_hole";
-      }else if ("停气作业"  == e.modeOperation){
-        dists="shutdown_operation";
-      }else if ("PE 封堵"  == e.modeOperation){
-        dists="pe_plugging";
-      }else if ("钢管带气封堵"  == e.modeOperation){
-        dists="the_steel_pipe_sealed_with_gas";
-      }
+      let dists = e.modeOperation;
+      // if ("地埋扳孔"  == e.modeOperation){
+      //   dists="bury_the_wrench_hole";
+      // }else if ("架空扳孔"  == e.modeOperation){
+      //   dists="aerial_wrench_hole";
+      // }else if ("停气作业"  == e.modeOperation){
+      //   dists="shutdown_operation";
+      // }else if ("PE 封堵"  == e.modeOperation){
+      //   dists="pe_plugging";
+      // }else if ("钢管带气封堵"  == e.modeOperation){
+      //   dists="the_steel_pipe_sealed_with_gas";
+      // }
       getDicts(dists).then(res => {
         this.nodeList = res.data
         let dict = []
@@ -426,18 +422,18 @@ export default {
     handleHistory(e, type = null){
       this.currentId = e.id
       let dict = []
-      let dists ;
-      if ("地埋扳孔"  == e.modeOperation){
-        dists="bury_the_wrench_hole";
-      }else if ("架空扳孔"  == e.modeOperation){
-        dists="aerial_wrench_hole";
-      }else if ("停气作业"  == e.modeOperation){
-        dists="shutdown_operation";
-      }else if ("PE 封堵"  == e.modeOperation){
-        dists="pe_plugging";
-      }else if ("钢管带气封堵"  == e.modeOperation){
-        dists="the_steel_pipe_sealed_with_gas";
-      }
+      let dists = e.modeOperation;
+      // if ("地埋扳孔"  == e.modeOperation){
+      //   dists="bury_the_wrench_hole";
+      // }else if ("架空扳孔"  == e.modeOperation){
+      //   dists="aerial_wrench_hole";
+      // }else if ("停气作业"  == e.modeOperation){
+      //   dists="shutdown_operation";
+      // }else if ("PE 封堵"  == e.modeOperation){
+      //   dists="pe_plugging";
+      // }else if ("钢管带气封堵"  == e.modeOperation){
+      //   dists="the_steel_pipe_sealed_with_gas";
+      // }
       getDicts(dists).then(res => {
         this.nodeList = res.data
         for (let i = 0; i < this.nodeList.length; i++) {
@@ -548,18 +544,18 @@ export default {
         this.form = response.data;
         this.open = true;
         this.title = "添加碰口作业用料信息";
-        let dists ;
-        if ("地埋扳孔"  == response.data.modeOperation){
-          dists="bury_the_wrench_hole";
-        }else if ("架空扳孔"  == response.data.modeOperation){
-          dists="aerial_wrench_hole";
-        }else if ("停气作业"  == response.data.modeOperation){
-          dists="shutdown_operation";
-        }else if ("PE 封堵"  == response.data.modeOperation){
-          dists="pe_plugging";
-        }else if ("钢管带气封堵"  == response.data.modeOperation){
-          dists="the_steel_pipe_sealed_with_gas";
-        }
+        let dists = response.data.modeOperation;
+        // if ("地埋扳孔"  == response.data.modeOperation){
+        //   dists="bury_the_wrench_hole";
+        // }else if ("架空扳孔"  == response.data.modeOperation){
+        //   dists="aerial_wrench_hole";
+        // }else if ("停气作业"  == response.data.modeOperation){
+        //   dists="shutdown_operation";
+        // }else if ("PE 封堵"  == response.data.modeOperation){
+        //   dists="pe_plugging";
+        // }else if ("钢管带气封堵"  == response.data.modeOperation){
+        //   dists="the_steel_pipe_sealed_with_gas";
+        // }
         getDicts(dists).then(res => {
           this.nodeList = res.data
         })
@@ -609,7 +605,7 @@ export default {
     handleExport() {
       this.download('zdsz/touchOperationEngineering/export', {
         ...this.queryParams
-      }, `碰口作业数据_${new Date().getTime()}.xlsx`)
+      }, `碰口工程数据_${new Date().getTime()}.xlsx`)
     }
   }
 };