chris 3 năm trước cách đây
mục cha
commit
964bf98aa1

+ 11 - 0
src/views/modules/check/finish-check.vue

@@ -59,6 +59,7 @@
         prop="-"
         header-align="center"
         align="center"
+        :formatter="formatStates"
         label="是否合格">
       </el-table-column>
       <el-table-column
@@ -183,6 +184,16 @@
           this.$refs.addOrUpdate.init(id, disable)
         })
       },
+      formatStates (row) {
+        if (!row.state) return ''
+        if (row.state === '3') {
+          return '合格'
+        }
+        if (row.state === '4') {
+          return '不合格'
+        }
+        return ''
+      },
       // 详情
       detailHandle (id) {
         this.detailVisible = true

+ 1 - 1
src/views/modules/production/monitoring-details.vue

@@ -75,7 +75,7 @@ export default {
       }
     }
   },
-  mounted() {
+  mounted () {
     this.visible = true
   },
   methods: {

+ 3 - 4
src/views/modules/production/scheduling-mould-details.vue

@@ -122,10 +122,10 @@ export default {
       this.visible = true
       this.display = disable
       this.mouldId = id
-    
+
       await this.initProductList()
 
-      if(id > 0) {
+      if (id > 0) {
         await getMouldDetail(id).then(async ({ data }) => {
           if (data && data.code === '200') {
             this.dataForm = data.data
@@ -137,7 +137,7 @@ export default {
           }
         })
       }
-      if(productionId && productionId > 0){
+      if (productionId && productionId > 0) {
         this.productChange(productionId)
       }
     },
@@ -163,7 +163,6 @@ export default {
           })
         }
       })
-      
     },
     // 按工种ID查询操作人列表
     getOperatorList (workTypeId) {

+ 1 - 1
src/views/modules/production/scheduling-mould.vue

@@ -151,7 +151,7 @@
         this.detailsVisible = false
       },
       reloadDialog (id, disable, productionId) {
-        console.log("reloadDialog")
+        console.log('reloadDialog')
         this.detailsVisible = false
         this.detailsVisible = true
         // this.$nextTick(() => {