|
@@ -771,6 +771,7 @@
|
|
|
<template #footer>
|
|
|
<span class="dialog-footer">
|
|
|
<el-button @click="showsh = false">取消</el-button>
|
|
|
+ <el-button @click="TaskJJ">拒接</el-button>
|
|
|
<el-button type="primary" @click="TaskSH">确定</el-button>
|
|
|
</span>
|
|
|
</template>
|
|
@@ -1133,6 +1134,19 @@ const TaskSH = () => {
|
|
|
gettasklist();
|
|
|
});
|
|
|
};
|
|
|
+
|
|
|
+const TaskJJ = () => {
|
|
|
+ updateTask({
|
|
|
+ taskId: route.params.id,
|
|
|
+ status: 2,
|
|
|
+ }).then((res) => {
|
|
|
+ showsh.value = false;
|
|
|
+ ElMessage.success("成功!");
|
|
|
+ gettasklist();
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
const TaskClose = () => {
|
|
|
closeTask({
|
|
|
taskId: route.params.id,
|
|
@@ -1168,7 +1182,7 @@ const addnewitem = () => {
|
|
|
};
|
|
|
|
|
|
watch(
|
|
|
- [() => xyobj.value.bzxytime, xyobj.value.ddxctime, xyobj.value.czwctime],
|
|
|
+ xyobj,
|
|
|
() => {
|
|
|
if (xyobj.value.bzxytime != "" && xyobj.value.czwctime != "") {
|
|
|
xyobj.value.clsc =
|
|
@@ -1186,7 +1200,7 @@ watch(
|
|
|
3600.0
|
|
|
).toFixed(2) + "";
|
|
|
}
|
|
|
- }
|
|
|
+ },{immediate:true,deep:true}
|
|
|
);
|
|
|
const TaskXY = () => {
|
|
|
var gz = cloneDeep(xyobj.value);
|