|
@@ -56,8 +56,7 @@
|
|
|
<el-input-number
|
|
<el-input-number
|
|
|
style="width: 132px"
|
|
style="width: 132px"
|
|
|
v-model="pesticide.price"
|
|
v-model="pesticide.price"
|
|
|
- :min="0"
|
|
|
|
|
- :precision="2"
|
|
|
|
|
|
|
+ :min="0.0000000001"
|
|
|
/>
|
|
/>
|
|
|
<!-- <span class="price-unit">元/{{ pesticide.unit }}</span> -->
|
|
<!-- <span class="price-unit">元/{{ pesticide.unit }}</span> -->
|
|
|
</div>
|
|
</div>
|
|
@@ -68,7 +67,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="medicine-item">
|
|
<div class="medicine-item">
|
|
|
<div class="item-name">亩数</div>
|
|
<div class="item-name">亩数</div>
|
|
|
- <div class="item-val">{{ detailData?.area }}亩</div>
|
|
|
|
|
|
|
+ <div class="item-val">{{ formatArea(detailData?.area) }}亩</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="medicine-item">
|
|
<div class="medicine-item">
|
|
|
<div class="item-total">总计:</div>
|
|
<div class="item-total">总计:</div>
|
|
@@ -114,7 +113,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="medicine-item">
|
|
<div class="medicine-item">
|
|
|
<div class="item-name">亩数</div>
|
|
<div class="item-name">亩数</div>
|
|
|
- <div class="item-val">{{ detailData?.area }}亩</div>
|
|
|
|
|
|
|
+ <div class="item-val">{{ formatArea(detailData?.area) }}亩</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="medicine-item">
|
|
<div class="medicine-item">
|
|
|
<div class="item-total">总计:</div>
|
|
<div class="item-total">总计:</div>
|
|
@@ -138,6 +137,7 @@ import customHeader from "@/components/customHeader.vue";
|
|
|
import { ElMessage } from "element-plus";
|
|
import { ElMessage } from "element-plus";
|
|
|
import { ref, onMounted, onActivated, onBeforeUnmount, onDeactivated } from "vue";
|
|
import { ref, onMounted, onActivated, onBeforeUnmount, onDeactivated } from "vue";
|
|
|
import { useRoute, useRouter } from "vue-router";
|
|
import { useRoute, useRouter } from "vue-router";
|
|
|
|
|
+import { formatArea } from "@/common/commonFun";
|
|
|
|
|
|
|
|
const router = useRouter();
|
|
const router = useRouter();
|
|
|
const executeDate = ref(null);
|
|
const executeDate = ref(null);
|
|
@@ -145,7 +145,7 @@ let query = useRoute().query;
|
|
|
const detailData = ref(JSON.parse(query.data));
|
|
const detailData = ref(JSON.parse(query.data));
|
|
|
const priceData = ref({});
|
|
const priceData = ref({});
|
|
|
|
|
|
|
|
-const servicePricePerMu = ref(0);
|
|
|
|
|
|
|
+const servicePricePerMu = ref(null);
|
|
|
const executionMethod = ref(null);
|
|
const executionMethod = ref(null);
|
|
|
const modeList = ref([
|
|
const modeList = ref([
|
|
|
{name: "无人机", value: 1},
|
|
{name: "无人机", value: 1},
|