|
@@ -77,7 +77,7 @@
|
|
|
<div class="price-bottom">
|
|
<div class="price-bottom">
|
|
|
<div class="info-title-wrap">
|
|
<div class="info-title-wrap">
|
|
|
<div class="sub-title">服务费用</div>
|
|
<div class="sub-title">服务费用</div>
|
|
|
- <div class="info-more">{{ quotationData.farmWorkServiceCost || '--' }}<span class="unit-text">元</span></div>
|
|
|
|
|
|
|
+ <div class="info-more">{{ quotationData?.farmWorkServiceCost ? getServiceCost(quotationData.farmWorkServiceCost, quotationData.area) : '--' }}<span class="unit-text">元</span></div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="price-info">
|
|
<div class="price-info">
|
|
|
<div class="info-l">执行方式<span class="main-text">{{ quotationData.executionMethodName || '--' }}</span></div>
|
|
<div class="info-l">执行方式<span class="main-text">{{ quotationData.executionMethodName || '--' }}</span></div>
|
|
@@ -635,6 +635,10 @@ onActivated(async () => {
|
|
|
// }
|
|
// }
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+function getServiceCost(cost, area) {
|
|
|
|
|
+ if (!cost || !area) return '--';
|
|
|
|
|
+ return (parseFloat(cost) * parseFloat(area)).toFixed(2);
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
const triggerImg = ref([]);
|
|
const triggerImg = ref([]);
|
|
|
const getTriggerImg = async (id) => {
|
|
const getTriggerImg = async (id) => {
|