wenhongquan 3 năm trước cách đây
mục cha
commit
87cff83f1e
2 tập tin đã thay đổi với 28 bổ sung2 xóa
  1. 27 1
      src/views/mb/task/disposal/index.vue
  2. 1 1
      src/views/task/detail/index.vue

+ 27 - 1
src/views/mb/task/disposal/index.vue

@@ -238,7 +238,11 @@
 
           <div style="margin: 16px">
             <van-button round block type="primary" native-type="submit">
-              提交
+              暂存
+            </van-button>
+
+            <van-button round block type="primary" native-type="submit1">
+              处置完成
             </van-button>
           </div>
         </van-form>
@@ -504,6 +508,28 @@ const onSubmit = async () => {
   });
 };
 
+const onSubmit1 = async () => {
+  Toast.loading({
+  message: '加载中...',
+  forbidClick: true,
+  });
+  await updateTask(taskinfo.value);
+  czTask({
+    taskId: Number(route.query.id),
+    logDes: JSON.stringify(czobj.value),
+  }).then((res) => {
+    await ddTask({
+      taskId: Number(route.query.id),
+      taskStatus: -1,
+      logDes: JSON.stringify(xyobj.value)
+    })
+    Toast.clear();
+      Toast.success("成功");
+      router.back();
+  });
+
+};
+
 const onClickLeft = () => {
   router.back();
 };

+ 1 - 1
src/views/task/detail/index.vue

@@ -444,7 +444,7 @@
         </div>
       </div>
 
-      <div class="card" v-if="taskinfo.status >= 5">
+      <div class="card" v-if="taskinfo.status >= 5 && taskinfo.tblTaskLogList.filter((ii) => ii.taskStatus === 5).length>0">
         <div class="title">跟踪信息</div>
         <div class="body">
           <el-row>