فهرست منبع

任务报工新增首件两检的状态的显示

695593266@qq.com 5 ماه پیش
والد
کامیت
eca0467643
1فایلهای تغییر یافته به همراه34 افزوده شده و 0 حذف شده
  1. 34 0
      src/views/produce/components/taskWorkList.vue

+ 34 - 0
src/views/produce/components/taskWorkList.vue

@@ -39,6 +39,33 @@
         <el-tag v-if="row.disposalStatus == 2" type="danger">已拒绝</el-tag>
       </template>
 
+      <template v-slot:totalFirstArticleDualInspectionStatus="{ row }">
+        <el-tag
+          v-if="
+            row.hasFirstArticleDualInspection == 1 &&
+            row.totalFirstArticleDualInspectionStatus == 0
+          "
+          type="success"
+          >待自检</el-tag
+        >
+        <el-tag
+          v-if="
+            row.hasFirstArticleDualInspection == 1 &&
+            row.totalFirstArticleDualInspectionStatus == 1
+          "
+          type="success"
+          >待专检</el-tag
+        >
+        <el-tag
+          v-if="
+            row.hasFirstArticleDualInspection == 1 &&
+            row.totalFirstArticleDualInspectionStatus == 2
+          "
+          type="success"
+          >已完成</el-tag
+        >
+      </template>
+
       <template v-slot:action="{ row }">
         <el-popconfirm
           icon="el-icon-info"
@@ -335,6 +362,13 @@
             slot: 'disposalStatus',
             width: 120
           },
+          {
+            prop: 'totalFirstArticleDualInspectionStatus',
+            label: '首件两检状态',
+            align: 'center',
+            slot: 'totalFirstArticleDualInspectionStatus',
+            width: 120
+          },
           {
             prop: 'customerName',
             label: '客户名称',