wenhongquan 2 年之前
父節點
當前提交
661cf7a5c0
共有 3 個文件被更改,包括 349 次插入149 次删除
  1. 8 0
      src/api/system/task.js
  2. 112 9
      src/views/mb/task/index.vue
  3. 229 140
      src/views/task/detail/index.vue

+ 8 - 0
src/api/system/task.js

@@ -94,4 +94,12 @@ export function ddTask(data) {
         method: "post",
         data: data,
     });
+}
+
+export function ddcTask(data) {
+    return request({
+        url: "/system/tasklog",
+        method: "put",
+        data: data,
+    });
 }

+ 112 - 9
src/views/mb/task/index.vue

@@ -29,7 +29,16 @@
               style="padding: 10px 10px; padding-bottom: 0"
               v-for="item in tasklist"
             >
-              <div  @click="gotodetail(item)" :class="item.status < 5 && item.tblTaskLogList.filter((ii) => ii.taskStatus === 6).length>0?'item warning-row':'item'">
+              <div
+                @click="gotodetail(item)"
+                :class="
+                  item.status < 5 &&
+                  item.tblTaskLogList.filter((ii) => ii.taskStatus === 6)
+                    .length > 0
+                    ? 'item warning-row'
+                    : 'item'
+                "
+              >
                 <div>
                   <div class="header">
                     <div>任务编号:{{ item.taskCode }}</div>
@@ -147,14 +156,32 @@
                             >驳回反馈</van-button
                           >
                           <van-button
-                            v-if="
-                              item.status === 2
-                            "
+                            v-if="item.status === 2"
                             type="primary"
                             size="small"
                             @click.stop="czfk(item)"
                             >处置反馈</van-button
                           >
+
+                          <van-button
+                            type="primary"
+                            size="small"
+                            :disabled="
+                              (gettaskitemlogdes(item, -2) ?? { status: 1 })
+                                .status !== 1
+                            "
+                            style="margin-left: 10px"
+                            @click.stop="ysclick(item)"
+                            >{{
+                              (gettaskitemlogdes(item, -2) ?? { status: 1 })
+                                .status === 1
+                                ? "申请延期"
+                                : (gettaskitemlogdes(item, -2) ?? { status: 1 })
+                                    .status === 0
+                                ? "申请中"
+                                : "已拒绝"
+                            }}</van-button
+                          >
                         </div>
                       </van-col>
                     </van-row>
@@ -166,6 +193,41 @@
         </van-pull-refresh>
       </div>
     </div>
+    <van-action-sheet v-model:show="showys" title="延时申请">
+      <div style="padding: 15px; text-align: center; padding-bottom: 30px">
+        <van-field name="slider" label="时间">
+          <template #input>
+            <van-slider
+              v-model="yqnum"
+              @change="onyqnumChange"
+              :min="1"
+              :max="50"
+            >
+              <template #button>
+                <div class="custom-sbutton">{{ yqnum }}</div>
+              </template>
+            </van-slider>
+          </template>
+          <template #button>
+            <span>小时</span>
+          </template>
+        </van-field>
+        <van-field
+          v-model="yqcontent"
+          rows="1"
+          autosize
+          label="说明"
+          type="textarea"
+          placeholder="请输入理由"
+        />
+        <van-button
+          type="primary"
+          style="width: 90%; margin: auto"
+          @click="doyssq"
+          >申请</van-button
+        >
+      </div>
+    </van-action-sheet>
   </div>
 </template>
 
@@ -204,6 +266,8 @@ const { task_status, task_event_category, task_event_type, task_type } =
 const bodyheight = ref(0);
 bodyheight.value = document.body.clientHeight - 48 - 46;
 const value1 = ref(0);
+const yqnum = ref(0);
+const yqcontent = ref("");
 const value2 = ref("0");
 const option1 = [
   { text: "我的", value: 0 },
@@ -217,13 +281,16 @@ const option2 = computed(() => {
   );
 });
 
+const onyqnumChange = (value) => {
+  // Toast(value);
+};
+
 const gotodetail = (item) => {
   router.push(`/mb/task/detail/${item.taskId}`);
 };
 const store = useStore();
 const getters = computed(() => store.getters);
 
-
 const pagec = ref(1);
 
 const onLoad = () => {
@@ -236,9 +303,9 @@ const onLoad = () => {
   if (value2.value !== "0") {
     p["status"] = parseInt(value2.value);
   }
-  if(value1.value == '0'){
+  if (value1.value == "0") {
     p["params"] = {};
-    p.params['userId'] = getters.value.userId;
+    p.params["userId"] = getters.value.userId;
   }
   listTask(p).then((res) => {
     // finished.value = true;
@@ -280,6 +347,8 @@ const onClickRight = () => {
   router.push("/mb/task/add");
 };
 
+const showys = ref(false);
+
 const xyobj = ref({
   bzxytime: "",
   ddxctime: "",
@@ -293,7 +362,6 @@ const xyobj = ref({
   gls: "",
 });
 
-
 const allusers = ref([]);
 listUser({ pageSize: 1000 }).then((res) => {
   allusers.value = res.rows;
@@ -374,6 +442,33 @@ const bhfk = (item) => {
   localStorage.setItem("currenttask", JSON.stringify(item));
   router.push(`/mb/task/disposal?bh=1&id=${item.taskId}`);
 };
+
+var currentitem = null;
+const ysclick = (item) => {
+  showys.value = true;
+  currentitem = item;
+};
+
+const doyssq = () => {
+  if (currentitem == null) {
+    Toast("未知错误");
+    showys.value = false;
+    return;
+  }
+  ddTask({
+    taskId: currentitem.taskId,
+    taskStatus: -2,
+    logDes: JSON.stringify({
+      yqsc: yqnum.value,
+      yqcontent: yqcontent.value,
+      status: 0, //0申请 1 同意 2拒绝
+    }),
+  }).then((res) => {
+    Toast.success("成功");
+    onRefresh();
+  });
+  showys.value = false;
+};
 </script>
 
 <style lang="scss">
@@ -382,7 +477,15 @@ body {
   width: 100%;
   top: -1px;
 }
-
+.custom-sbutton {
+  width: 26px;
+  color: #fff;
+  font-size: 10px;
+  line-height: 18px;
+  text-align: center;
+  background-color: var(--van-button-primary-background-color);
+  border-radius: 100px;
+}
 .warning-row {
   background: var(--el-color-warning-light-9) !important;
 }

+ 229 - 140
src/views/task/detail/index.vue

@@ -3,6 +3,7 @@
     <div class="taskdetail">
       <div class="title">
         {{ taskinfo.taskCode }} 工单
+
         <div class="btngroup">
           <el-button
             type="primary"
@@ -61,6 +62,7 @@
       <div class="card">
         <div class="title" style="position: relative">
           工单信息
+
           <div
             style="
               position: absolute;
@@ -70,6 +72,39 @@
               font-size: 20px;
             "
           >
+            <el-popconfirm
+              v-if="
+                taskinfo.tblTaskLogList.filter((ii) => ii.taskStatus === -2)
+                  .length > 0 &&
+                JSON.parse(
+                  taskinfo.tblTaskLogList.filter(
+                    (ii) => ii.taskStatus === -2
+                  )[0].logDes
+                ).status == 0
+              "
+              confirm-button-text="通过"
+              cancel-button-text="拒绝"
+              @confirm="yssqcl(1)"
+              @cancel="yssqcl(0)"
+              icon-color="#626AEF"
+              :title="`因 '${
+                JSON.parse(
+                  taskinfo.tblTaskLogList.filter(
+                    (ii) => ii.taskStatus === -2
+                  )[0].logDes
+                ).yqcontent
+              }' 需延时 ${
+                JSON.parse(
+                  taskinfo.tblTaskLogList.filter(
+                    (ii) => ii.taskStatus === -2
+                  )[0].logDes
+                ).yqsc
+              } 小时`"
+            >
+              <template #reference>
+                <el-button type="danger">延时申请处理</el-button>
+              </template>
+            </el-popconfirm>
             {{
               task_status.filter(
                 (i) => i.value.toString() === taskinfo.status.toString()
@@ -139,16 +174,14 @@
             >
           </el-row>
           <el-row>
-            <el-col :span="6"
-            >处置时限:{{ taskinfo.taskTime }}</el-col
-            >
-<!--            <el-col :span="6"-->
-<!--              >是否需要确认:{{ taskinfo.remark === "1" ? "是" : "否" }}</el-col-->
-<!--            >-->
+            <el-col :span="6">处置时限:{{ taskinfo.taskTime }}</el-col>
+            <!--            <el-col :span="6"-->
+            <!--              >是否需要确认:{{ taskinfo.remark === "1" ? "是" : "否" }}</el-col-->
+            <!--            >-->
             <el-col :span="18">来件备注:{{ taskinfo.taskFromRemark }}</el-col>
-<!--            <el-col :span="6"-->
-<!--              >投诉人电话:{{ taskinfo.taskComplainConnect }}</el-col-->
-<!--            >-->
+            <!--            <el-col :span="6"-->
+            <!--              >投诉人电话:{{ taskinfo.taskComplainConnect }}</el-col-->
+            <!--            >-->
           </el-row>
           <el-row>
             <el-col :span="24">详细地址:{{ taskinfo.taskAddr }}</el-col>
@@ -156,7 +189,7 @@
           </el-row>
           <el-row>
             <el-col :span="12">现场照片:</el-col>
-<!--            <el-col :span="12">任务内容:{{ taskinfo.taskContent }}</el-col>-->
+            <!--            <el-col :span="12">任务内容:{{ taskinfo.taskContent }}</el-col>-->
           </el-row>
 
           <el-row>
@@ -167,13 +200,12 @@
                 :width="'120px'"
               ></ImagePreview>
             </el-col>
-
           </el-row>
           <el-row>
             <el-col :span="24">派单照片:</el-col>
           </el-row>
 
-            <el-row>
+          <el-row>
             <el-col :span="24">
               <ImagePreview
                 v-model:src="taskinfo.taskVideos"
@@ -181,7 +213,6 @@
                 :width="'120px'"
               ></ImagePreview>
             </el-col>
-
           </el-row>
         </div>
       </div>
@@ -251,9 +282,15 @@
         </div>
       </div>
 
-        <div class="card" v-if="taskinfo.status < 5 && (taskinfo.tblTaskLogList.filter((ii) => ii.taskStatus === 6) ?? [])
-            .length > 0">
-        <div class="title" style="background:#f9d3e3">核查反馈信息</div>
+      <div
+        class="card"
+        v-if="
+          taskinfo.status < 5 &&
+          (taskinfo.tblTaskLogList.filter((ii) => ii.taskStatus === 6) ?? [])
+            .length > 0
+        "
+      >
+        <div class="title" style="background: #f9d3e3">核查反馈信息</div>
         <div class="body">
           <el-row>
             <el-col :span="12"
@@ -416,8 +453,6 @@
         </div>
       </div>
 
-
-
       <div class="card" v-if="taskinfo.status == 4">
         <div class="title">现场驳回</div>
         <div class="body">
@@ -483,7 +518,13 @@
         </div>
       </div>
 
-      <div class="card" v-if="taskinfo.status >= 5 && taskinfo.tblTaskLogList.filter((ii) => ii.taskStatus === 5).length>0">
+      <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>
@@ -568,8 +609,18 @@
                 v-for="(item, index1) in JSON.parse(
                   taskinfo.tblTaskLogList.filter((ii) => ii.taskStatus === 3)[0]
                     .logDes ?? '{}'
-                ).gzldata" :style="item['value1'] !==''?'':'display:none' "
-                >{{ item.name + ":" + item.value1 +" "+item.unit1 +(item.hasOwnProperty('value2')?(`${item.value2+" "+item.unit2}`):'') }}
+                ).gzldata"
+                :style="item['value1'] !== '' ? '' : 'display:none'"
+                >{{
+                  item.name +
+                  ":" +
+                  item.value1 +
+                  " " +
+                  item.unit1 +
+                  (item.hasOwnProperty("value2")
+                    ? `${item.value2 + " " + item.unit2}`
+                    : "")
+                }}
               </el-col>
             </el-row>
           </div>
@@ -584,8 +635,18 @@
                 v-for="(item, index1) in JSON.parse(
                   taskinfo.tblTaskLogList.filter((ii) => ii.taskStatus === 3)[0]
                     .logDes ?? '{}'
-                ).clsbdata" :style="item['value1'] !==''?'':'display:none' "
-                >{{ item.name + ":" + item.value1 +" "+item.unit1 +(item.hasOwnProperty('value2')?(`${item.value2+" "+item.unit2}`):'') }}
+                ).clsbdata"
+                :style="item['value1'] !== '' ? '' : 'display:none'"
+                >{{
+                  item.name +
+                  ":" +
+                  item.value1 +
+                  " " +
+                  item.unit1 +
+                  (item.hasOwnProperty("value2")
+                    ? `${item.value2 + " " + item.unit2}`
+                    : "")
+                }}
               </el-col>
             </el-row>
           </div>
@@ -600,8 +661,18 @@
                 v-for="(item, index1) in JSON.parse(
                   taskinfo.tblTaskLogList.filter((ii) => ii.taskStatus === 3)[0]
                     .logDes ?? '{}'
-                ).hcdata" :style="item['value1'] !==''?'':'display:none' "
-                >{{ item.name + ":" + item.value1 +" "+item.unit1 +(item.hasOwnProperty('value2')?(`${item.value2+" "+item.unit2}`):'') }}
+                ).hcdata"
+                :style="item['value1'] !== '' ? '' : 'display:none'"
+                >{{
+                  item.name +
+                  ":" +
+                  item.value1 +
+                  " " +
+                  item.unit1 +
+                  (item.hasOwnProperty("value2")
+                    ? `${item.value2 + " " + item.unit2}`
+                    : "")
+                }}
               </el-col>
             </el-row>
           </div>
@@ -810,7 +881,7 @@
       <template #footer>
         <span class="dialog-footer">
           <el-button @click="showsh = false">取消</el-button>
-           <el-button type="danger" @click="TaskJJ">退回处置</el-button>
+          <el-button type="danger" @click="TaskJJ">退回处置</el-button>
           <el-button type="primary" @click="TaskSH">确定</el-button>
         </span>
       </template>
@@ -900,111 +971,106 @@
             <el-tabs v-model="cztblaname" class="demo-tabs">
               <el-tab-pane label="工作量" name="gzl">
                 <el-row>
-                  <el-col :span="12" v-for="item in czobj.gzldata" >
-                    <div style="margin-bottom:10px">
-                       <el-row>
-                      <el-col :span="8"><div style="text-align: right;padding-right:6px">{{ item.name }}:</div></el-col>
-                      <el-col :span="item.hasOwnProperty('value2') ? 8 : 16">
-                        <el-input
-                          v-model="item.value1"
-                          placeholder="请输入"
-                        >
-                          <template #append v-if="item.unit1!==''">{{
-                            item.unit1
-                          }}</template></el-input
+                  <el-col :span="12" v-for="item in czobj.gzldata">
+                    <div style="margin-bottom: 10px">
+                      <el-row>
+                        <el-col :span="8"
+                          ><div style="text-align: right; padding-right: 6px">
+                            {{ item.name }}:
+                          </div></el-col
                         >
-                      </el-col>
-                      <el-col :span="8" v-if="item.hasOwnProperty('value2')">
-                        <div style="padding-left:5px">
-                           <el-input
-                          v-if="item.hasOwnProperty('value2')"
-                          v-model="item.value2"
-                          placeholder="请输入"
-                        >
-                          <template #append v-if="item.unit2!==''">{{
-                            item.unit2
-                          }}</template></el-input
-                        >
-
-                        </div>
-
-                      </el-col>
-                    </el-row>
-
+                        <el-col :span="item.hasOwnProperty('value2') ? 8 : 16">
+                          <el-input v-model="item.value1" placeholder="请输入">
+                            <template #append v-if="item.unit1 !== ''">{{
+                              item.unit1
+                            }}</template></el-input
+                          >
+                        </el-col>
+                        <el-col :span="8" v-if="item.hasOwnProperty('value2')">
+                          <div style="padding-left: 5px">
+                            <el-input
+                              v-if="item.hasOwnProperty('value2')"
+                              v-model="item.value2"
+                              placeholder="请输入"
+                            >
+                              <template #append v-if="item.unit2 !== ''">{{
+                                item.unit2
+                              }}</template></el-input
+                            >
+                          </div>
+                        </el-col>
+                      </el-row>
                     </div>
-
                   </el-col>
                 </el-row>
               </el-tab-pane>
               <el-tab-pane label="车辆设备" name="clsb">
                 <el-row>
-                  <el-col :span="12" v-for="item in czobj.clsbdata" >
-                    <div style="margin-bottom:10px">
-                       <el-row>
-                      <el-col :span="8"><div style="text-align: right;padding-right:6px">{{ item.name }}:</div></el-col>
-                      <el-col :span="item.hasOwnProperty('value2') ? 8 : 16">
-                        <el-input
-                          v-model="item.value1"
-                          placeholder="请输入"
-                        >
-                          <template #append v-if="item.unit1!==''">{{
-                            item.unit1
-                          }}</template></el-input
-                        >
-                      </el-col>
-                      <el-col :span="8" v-if="item.hasOwnProperty('value2')">
-                        <div style="padding-left:5px">
-                           <el-input
-                          v-if="item.hasOwnProperty('value2')"
-                          v-model="item.value2"
-                          placeholder="请输入"
-                        >
-                          <template #append v-if="item.unit2!==''">{{
-                            item.unit2
-                          }}</template></el-input
+                  <el-col :span="12" v-for="item in czobj.clsbdata">
+                    <div style="margin-bottom: 10px">
+                      <el-row>
+                        <el-col :span="8"
+                          ><div style="text-align: right; padding-right: 6px">
+                            {{ item.name }}:
+                          </div></el-col
                         >
-
-                        </div>
-                      </el-col>
-                    </el-row>
-
+                        <el-col :span="item.hasOwnProperty('value2') ? 8 : 16">
+                          <el-input v-model="item.value1" placeholder="请输入">
+                            <template #append v-if="item.unit1 !== ''">{{
+                              item.unit1
+                            }}</template></el-input
+                          >
+                        </el-col>
+                        <el-col :span="8" v-if="item.hasOwnProperty('value2')">
+                          <div style="padding-left: 5px">
+                            <el-input
+                              v-if="item.hasOwnProperty('value2')"
+                              v-model="item.value2"
+                              placeholder="请输入"
+                            >
+                              <template #append v-if="item.unit2 !== ''">{{
+                                item.unit2
+                              }}</template></el-input
+                            >
+                          </div>
+                        </el-col>
+                      </el-row>
                     </div>
-
                   </el-col>
                 </el-row>
               </el-tab-pane>
               <el-tab-pane label="耗材" name="hc">
-                 <el-row>
-                  <el-col :span="12" v-for="item in czobj.hcdata" >
-                    <div style="margin-bottom:10px">
-                       <el-row>
-                      <el-col :span="8"><div style="text-align: right;padding-right:6px">{{ item.name }}:</div></el-col>
-                      <el-col :span="item.hasOwnProperty('value2') ? 8 : 16">
-                        <el-input
-                          v-model="item.value1"
-                          placeholder="请输入"
-                        >
-                          <template #append v-if="item.unit1!==''">{{
-                            item.unit1
-                          }}</template></el-input
-                        >
-                      </el-col>
-                      <el-col :span="8" v-if="item.hasOwnProperty('value2')">
-                        <div style="padding-left:5px">
-                           <el-input
-                          v-if="item.hasOwnProperty('value2')"
-                          v-model="item.value2"
-                          placeholder="请输入"
-                        >
-                          <template #append v-if="item.unit2!==''">{{
-                            item.unit2
-                          }}</template></el-input
+                <el-row>
+                  <el-col :span="12" v-for="item in czobj.hcdata">
+                    <div style="margin-bottom: 10px">
+                      <el-row>
+                        <el-col :span="8"
+                          ><div style="text-align: right; padding-right: 6px">
+                            {{ item.name }}:
+                          </div></el-col
                         >
-                        </div>
-                      </el-col>
+                        <el-col :span="item.hasOwnProperty('value2') ? 8 : 16">
+                          <el-input v-model="item.value1" placeholder="请输入">
+                            <template #append v-if="item.unit1 !== ''">{{
+                              item.unit1
+                            }}</template></el-input
+                          >
+                        </el-col>
+                        <el-col :span="8" v-if="item.hasOwnProperty('value2')">
+                          <div style="padding-left: 5px">
+                            <el-input
+                              v-if="item.hasOwnProperty('value2')"
+                              v-model="item.value2"
+                              placeholder="请输入"
+                            >
+                              <template #append v-if="item.unit2 !== ''">{{
+                                item.unit2
+                              }}</template></el-input
+                            >
+                          </div>
+                        </el-col>
                       </el-row>
                     </div>
-
                   </el-col>
                 </el-row>
               </el-tab-pane>
@@ -1062,6 +1128,7 @@ import {
   gzTask,
   hcTask,
   ddTask,
+  ddcTask,
 } from "@/api/system/task";
 import {
   changeUserStatus,
@@ -1176,7 +1243,7 @@ const TaskSH = () => {
 
 const TaskJJ = () => {
   var gz = cloneDeep(shobj.value);
-   if (gz.hctime) {
+  if (gz.hctime) {
     gz.hctime = moment(gz.hctime).format("YYYY-MM-DD HH:mm:ss");
   }
   ddTask({
@@ -1185,17 +1252,15 @@ const TaskJJ = () => {
     logDes: JSON.stringify(gz),
   }).then((res) => {
     updateTask({
-    taskId: route.params.id,
-    status: 2,
-  }).then((res) => {
-    showsh.value = false;
-    ElMessage.success("成功!");
-    gettasklist();
-  });
+      taskId: route.params.id,
+      status: 2,
+    }).then((res) => {
+      showsh.value = false;
+      ElMessage.success("成功!");
+      gettasklist();
+    });
   });
-
-}
-
+};
 
 const TaskClose = () => {
   closeTask({
@@ -1250,7 +1315,8 @@ watch(
           3600.0
         ).toFixed(2) + "";
     }
-  },{immediate:true,deep:true}
+  },
+  { immediate: true, deep: true }
 );
 const TaskXY = () => {
   var gz = cloneDeep(xyobj.value);
@@ -1395,15 +1461,15 @@ const gettasklist = () => {
     }
 
     task_work.value.map((i) => {
-      i.remark = i.remark == undefined || i.remark == null ? '' : i.remark;
+      i.remark = i.remark == undefined || i.remark == null ? "" : i.remark;
       var data = { name: i.label, unit1: i.remark };
       if ((i.remark ?? "").split(",").length > 1) {
-        data["value1"] = '';
-        data["value2"] = '';
+        data["value1"] = "";
+        data["value2"] = "";
         data["unit1"] = (i.remark ?? "").split(",")[0];
         data["unit2"] = (i.remark ?? "").split(",")[1];
       } else {
-        data["value1"] = '';
+        data["value1"] = "";
       }
       var temp = czobj.value.gzldata.find((p) => {
         return p.name == data.name;
@@ -1414,15 +1480,15 @@ const gettasklist = () => {
     });
 
     task_car.value.map((i) => {
-      i.remark = i.remark == undefined || i.remark == null ? '' : i.remark;
+      i.remark = i.remark == undefined || i.remark == null ? "" : i.remark;
       var data = { name: i.label, unit1: i.remark };
       if ((i.remark ?? "").split(",").length > 1) {
-        data["value1"] = '';
-        data["value2"] = '';
+        data["value1"] = "";
+        data["value2"] = "";
         data["unit1"] = (i.remark ?? "").split(",")[0];
         data["unit2"] = (i.remark ?? "").split(",")[1];
       } else {
-        data["value1"] = '';
+        data["value1"] = "";
       }
       var temp = czobj.value.clsbdata.find((p) => {
         return p.name == data.name;
@@ -1433,15 +1499,15 @@ const gettasklist = () => {
     });
 
     task_consumables.value.map((i) => {
-      i.remark = i.remark == undefined || i.remark == null ? '' : i.remark;
+      i.remark = i.remark == undefined || i.remark == null ? "" : i.remark;
       var data = { name: i.label, unit1: i.remark };
       if ((i.remark ?? "").split(",").length > 1) {
-        data["value1"] = '';
-        data["value2"] = '';
+        data["value1"] = "";
+        data["value2"] = "";
         data["unit1"] = (i.remark ?? "").split(",")[0];
         data["unit2"] = (i.remark ?? "").split(",")[1];
       } else {
-        data["value1"] = '';
+        data["value1"] = "";
       }
       var temp = czobj.value.hcdata.find((p) => {
         return p.name == data.name;
@@ -1450,8 +1516,32 @@ const gettasklist = () => {
         czobj.value.hcdata.push(data);
       }
     });
+  });
+};
 
+const yssqcl = (status) => {
+  var cc = JSON.parse(
+    taskinfo.value.tblTaskLogList.filter((ii) => ii.taskStatus === -2)[0].logDes
+  );
+  cc.status = status == 1 ? 1 : 2;
 
+  ddcTask({
+    id: taskinfo.value.tblTaskLogList.filter((ii) => ii.taskStatus === -2)[0]
+      .id,
+    logDes: JSON.stringify(cc),
+  }).then((res) => {
+    if (cc.status == 1) {
+      updateTask({
+        taskId: route.params.id,
+        taskTime: moment(taskinfo.value.taskTime)
+          .add(cc.yqsc, "hours")
+          .format("YYYY-MM-DD HH:mm:ss"),
+      }).then((res) => {
+        gettasklist();
+      });
+    }
+    ElMessage.success("成功!");
+    gettasklist();
   });
 };
 
@@ -1493,7 +1583,6 @@ watch(
   padding-top: 20px;
   position: relative;
 
-
   // .el-select {
   //   width: 100%;
   // }