|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="completed-work">
|
|
|
- <custom-header name="农事详情" :isClose="showBack" :showClose="false"></custom-header>
|
|
|
+ <custom-header name="农事详情" isGoBack @goback="handleClose"></custom-header>
|
|
|
<div class="work-content">
|
|
|
<!-- <div class="step-wrap" v-show="query.status !== 'warning'">
|
|
|
<farm-steps :currentStep="currentStep" />
|
|
|
@@ -441,7 +441,13 @@ const onConfirmExecuteTime = (date) => {
|
|
|
.updateExpectedExecuteDate({ recordId: query.value.id, expectedExecuteDate: formatDate(date) })
|
|
|
.then((res) => {
|
|
|
if (res.code === 0) {
|
|
|
- getDetail(query.value.id);
|
|
|
+ if(showBack.value){
|
|
|
+ router.replace({
|
|
|
+ path: "/task_condition",
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ getDetail(query.value.id);
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
};
|
|
|
@@ -461,11 +467,21 @@ const toList = (val) => {
|
|
|
return JSON.parse(val);
|
|
|
};
|
|
|
|
|
|
+const handleClose = () => {
|
|
|
+ if(showBack.value){
|
|
|
+ router.replace({
|
|
|
+ path: "/task_condition",
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ router.back();
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
const speciesList = computed(() => toList(quotationData.value.serviceSpecies));
|
|
|
const equipmentList = computed(() => toList(quotationData.value.serviceEquipment));
|
|
|
-const showBack = ref(false);
|
|
|
const agriculturalRole = ref(null);
|
|
|
const userId = ref(null);
|
|
|
+const showBack = ref(false);
|
|
|
onActivated(async () => {
|
|
|
//
|
|
|
const userInfo = JSON.parse(localStorage.getItem("localUserInfo"));
|