Explorar el Código

工程量新增字段,EXCEL更换为模板导出

zx hace 1 mes
padre
commit
88125bedde
Se han modificado 1 ficheros con 95 adiciones y 1 borrados
  1. 95 1
      src/views/distributionnetwork/quantity-of-work/index.vue

+ 95 - 1
src/views/distributionnetwork/quantity-of-work/index.vue

@@ -144,7 +144,9 @@
           fixed="left"
         >
           <template slot-scope="scope">
-            {{ scope.row.proCategory === "10" ? "农网" : "城网" }}
+            <span v-if="scope.row.proCategory === '10'" >农网</span>
+            <span v-if="scope.row.proCategory === '20'" >城网</span>
+            <span v-if="scope.row.proCategory === '30' ">技改</span>
           </template>
         </el-table-column>
         <el-table-column
@@ -220,6 +222,19 @@
             :show-overflow-tooltip="true"
           >
           </el-table-column>
+          <el-table-column
+            label="异常状态"
+            prop="lineCableNewAccuQtExcType"
+            align="center"
+            width="80"
+            fixed="left"
+            ><template slot-scope="scope">
+              <el-tag v-if="scope.row.lineCableNewAccuQtExcType === '0'" type="success"
+                >正常</el-tag
+              >
+              <el-tag v-if="scope.row.lineCableNewAccuQtExcType === '1'" type="danger">异常</el-tag>
+            </template>
+          </el-table-column>
         </el-table-column>
 
         <el-table-column
@@ -273,6 +288,19 @@
             :show-overflow-tooltip="true"
           >
           </el-table-column>
+          <el-table-column
+            label="异常状态"
+            prop="lineOverhdNewAccuQtExcType"
+            align="center"
+            width="80"
+            fixed="left"
+            ><template slot-scope="scope">
+              <el-tag v-if="scope.row.lineOverhdNewAccuQtExcType === '0'" type="success"
+                >正常</el-tag
+              >
+              <el-tag v-if="scope.row.lineOverhdNewAccuQtExcType === '1'" type="danger">异常</el-tag>
+            </template>
+          </el-table-column>
         </el-table-column>
         <el-table-column
           label="配电变压器"
@@ -325,6 +353,19 @@
             :show-overflow-tooltip="true"
           >
           </el-table-column>
+          <el-table-column
+            label="异常状态"
+            prop="distTransNewAccuQtExcType"
+            align="center"
+            width="80"
+            fixed="left"
+            ><template slot-scope="scope">
+              <el-tag v-if="scope.row.distTransNewAccuQtExcType === '0'" type="success"
+                >正常</el-tag
+              >
+              <el-tag v-if="scope.row.distTransNewAccuQtExcType === '1'" type="danger">异常</el-tag>
+            </template>
+          </el-table-column>
         </el-table-column>
         <el-table-column
           label="低压线路"
@@ -377,6 +418,19 @@
             :show-overflow-tooltip="true"
           >
           </el-table-column>
+          <el-table-column
+            label="异常状态"
+            prop="lowVoltLineAccuQtExcType"
+            align="center"
+            width="80"
+            fixed="left"
+            ><template slot-scope="scope">
+              <el-tag v-if="scope.row.lowVoltLineAccuQtExcType === '0'" type="success"
+                >正常</el-tag
+              >
+              <el-tag v-if="scope.row.lowVoltLineAccuQtExcType === '1'" type="danger">异常</el-tag>
+            </template>
+          </el-table-column>
         </el-table-column>
 
         <el-table-column
@@ -430,6 +484,19 @@
             :show-overflow-tooltip="true"
           >
           </el-table-column>
+          <el-table-column
+            label="异常状态"
+            prop="towerAccuQtExcType"
+            align="center"
+            width="80"
+            fixed="left"
+            ><template slot-scope="scope">
+              <el-tag v-if="scope.row.towerAccuQtExcType === '0'" type="success"
+                >正常</el-tag
+              >
+              <el-tag v-if="scope.row.towerAccuQtExcType === '1'" type="danger">异常</el-tag>
+            </template>
+          </el-table-column>
         </el-table-column>
         <el-table-column
           label="环网柜"
@@ -482,6 +549,19 @@
             :show-overflow-tooltip="true"
           >
           </el-table-column>
+          <el-table-column
+            label="异常状态"
+            prop="ringCabinetAccuQtExcType"
+            align="center"
+            width="80"
+            fixed="left"
+            ><template slot-scope="scope">
+              <el-tag v-if="scope.row.ringCabinetAccuQtExcType === '0'" type="success"
+                >正常</el-tag
+              >
+              <el-tag v-if="scope.row.ringCabinetAccuQtExcType === '1'" type="danger">异常</el-tag>
+            </template>
+          </el-table-column>
         </el-table-column>
         <el-table-column
           label="柱上设备"
@@ -534,6 +614,19 @@
             :show-overflow-tooltip="true"
           >
           </el-table-column>
+          <el-table-column
+            label="异常状态"
+            prop="poleTabAccuQtExcType"
+            align="center"
+            width="80"
+            fixed="left"
+            ><template slot-scope="scope">
+              <el-tag v-if="scope.row.poleTabAccuQtExcType === '0'" type="success"
+                >正常</el-tag
+              >
+              <el-tag v-if="scope.row.poleTabAccuQtExcType === '1'" type="danger">异常</el-tag>
+            </template>
+          </el-table-column>
         </el-table-column>
       </el-table>
       <pagination
@@ -571,6 +664,7 @@ export default {
       proCategoryOptions: [
         { value: "10", label: "农网" },
         { value: "20", label: "城网" },
+        { value: "30", label: "技改" },
       ],
       excTypeOption: [
         { value: "0", label: "否" },