|
@@ -166,7 +166,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="form-item">
|
|
<div class="form-item">
|
|
|
<div class="item-name">服务亩数</div>
|
|
<div class="item-name">服务亩数</div>
|
|
|
- <div class="item-text">{{ detailData?.area ? detailData?.area + '亩' : '--' }}</div>
|
|
|
|
|
|
|
+ <div class="item-text">{{ detailData?.area ? formatArea(detailData?.area) + '亩' : '--' }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="form-item">
|
|
<div class="form-item">
|
|
|
<div class="item-name">服务区域</div>
|
|
<div class="item-name">服务区域</div>
|
|
@@ -328,6 +328,8 @@ import priceTable from "../agri_work/components/priceTable.vue";
|
|
|
import priceSheetPopup from "@/components/popup/priceSheetPopup.vue";
|
|
import priceSheetPopup from "@/components/popup/priceSheetPopup.vue";
|
|
|
import uploadExecute from "@/views/old_mini/task_condition/components/uploadExecute.vue";
|
|
import uploadExecute from "@/views/old_mini/task_condition/components/uploadExecute.vue";
|
|
|
import { base_img_url2 } from "@/api/config";
|
|
import { base_img_url2 } from "@/api/config";
|
|
|
|
|
+import { ElMessage } from "element-plus";
|
|
|
|
|
+import { formatArea } from "@/common/commonFun";
|
|
|
|
|
|
|
|
const router = useRouter();
|
|
const router = useRouter();
|
|
|
const store = useStore();
|
|
const store = useStore();
|
|
@@ -437,11 +439,15 @@ const handleRemindExecute = () => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const handleForward = () => {
|
|
const handleForward = () => {
|
|
|
- onlyShare.value = true;
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- uploadExecuteRef.value.showPopup({...parmasPage.value, type:'quotation'});
|
|
|
|
|
- }, 10);
|
|
|
|
|
-
|
|
|
|
|
|
|
+ if(quotationData.value.itemsList && quotationData.value.itemsList.length > 0) {
|
|
|
|
|
+ onlyShare.value = true;
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ uploadExecuteRef.value.showPopup({...parmasPage.value, type:'quotation'});
|
|
|
|
|
+ }, 10);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ ElMessage.warning('暂无报价数据,无法分享')
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const onlyShare = ref(false);
|
|
const onlyShare = ref(false);
|
|
@@ -567,12 +573,6 @@ const getTriggerImg = async (id) => {
|
|
|
const { data } = await VE_API.z_farm_work_record.getTriggerImg({ farmWorkRecordId: id });
|
|
const { data } = await VE_API.z_farm_work_record.getTriggerImg({ farmWorkRecordId: id });
|
|
|
triggerImg.value = data || [];
|
|
triggerImg.value = data || [];
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-function formatArea(val) {
|
|
|
|
|
- const num = typeof val === 'number' ? val : parseFloat(val);
|
|
|
|
|
- if (Number.isNaN(num)) return val;
|
|
|
|
|
- return Number.isInteger(num) ? num : num.toFixed(2);
|
|
|
|
|
-}
|
|
|
|
|
const detailData = ref({});
|
|
const detailData = ref({});
|
|
|
const getDetail = async (id) => {
|
|
const getDetail = async (id) => {
|
|
|
const { data } = await VE_API.z_farm_work_record.getDetail({ id });
|
|
const { data } = await VE_API.z_farm_work_record.getDetail({ id });
|