Ver Fonte

维修填写状态调整

lipenghui há 2 meses atrás
pai
commit
7cc6a9876a

+ 6 - 1
src/views/pms/maintain/IotMaintain.vue

@@ -531,7 +531,12 @@ const submitForm = async () => {
   // 提交请求
   formLoading.value = true
   try {
-    formData.value.status = 'finished'
+    if (formData.value.type==='in') {
+      formData.value.status = 'finished'
+    } else {
+      formData.value.status = 'tx'
+    }
+
     let files: any[]
     files = formData.value.outFile
     if (files) {

+ 1 - 1
src/views/pms/maintain/index.vue

@@ -207,7 +207,7 @@
               </el-button>
               <el-button
                 link
-                v-if="scope.row.status==='tx'"
+                v-if="scope.row.status==='tx'&&scope.row.auditStatus===20"
                 type="danger"
                 @click="openForm('update',scope.row.id)"
               >