|
|
@@ -388,7 +388,7 @@
|
|
|
</div>
|
|
|
<div class="submit-btn" v-if="!isAdd && !isEdit">
|
|
|
<div class="btn second" @click="handleIgnore">忽略</div>
|
|
|
- <div class="btn" @click.prevent="submitForm(formRef)">下发农事</div>
|
|
|
+ <div class="btn" @click.prevent="submitForm(formRef)">确认并报价</div>
|
|
|
</div>
|
|
|
<div class="submit-btn" v-if="isAdd && farmProgress === 0">
|
|
|
<div class="btn second">取消</div>
|
|
|
@@ -414,6 +414,10 @@
|
|
|
</template>
|
|
|
<div class="create-farm-btn" @click="handlePopupBtn">{{ taskPopupType === 'warning' ? '确认忽略' : '我知道了' }}</div>
|
|
|
</popup>
|
|
|
+
|
|
|
+
|
|
|
+ <!-- 服务报价单 -->
|
|
|
+ <price-sheet-popup ref="priceSheetPopupRef"></price-sheet-popup>
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
@@ -427,6 +431,7 @@ import { Popup } from "vant";
|
|
|
import farmSteps from "@/components/farmSteps.vue";
|
|
|
import { base_img_url2 } from "@/api/config";
|
|
|
import { formatArea } from "@/common/commonFun";
|
|
|
+import priceSheetPopup from "@/components/popup/priceSheetPopup.vue";
|
|
|
import dayjs from "dayjs";
|
|
|
const store = useStore();
|
|
|
const router = useRouter();
|
|
|
@@ -493,6 +498,12 @@ const getTriggerImg = async (id) => {
|
|
|
triggerImg.value = data || [];
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+const priceSheetPopupRef = ref(null);
|
|
|
+const showPriceSheetPopup = () => {
|
|
|
+ priceSheetPopupRef.value.handleShowPopup(detailData.value);
|
|
|
+};
|
|
|
+
|
|
|
const detailData = ref({});
|
|
|
const getDetail = (id) => {
|
|
|
VE_API.z_farm_work_record.getDetail({ id }).then(({ data }) => {
|
|
|
@@ -886,8 +897,10 @@ const submit = () => {
|
|
|
};
|
|
|
VE_API.z_farm_work_record.issueFarmWorkRecord(data).then((res) => {
|
|
|
if (res.code === 0) {
|
|
|
- taskPopupType.value = 'success';
|
|
|
- showTaskPopup.value = true;
|
|
|
+ // taskPopupType.value = 'success';
|
|
|
+ // showTaskPopup.value = true;
|
|
|
+
|
|
|
+ showPriceSheetPopup()
|
|
|
}
|
|
|
})
|
|
|
// 新增农事
|