|
@@ -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%;
|
|
|
// }
|