Sfoglia il codice sorgente

开工预付款计量单修改

duy 1 anno fa
parent
commit
fbf409d93a

+ 1 - 1
src/views/debit-pay/material/order.vue

@@ -142,7 +142,7 @@ const getKey1Data = async ()=>{
     if (!error && code === 200) {
         key1Data.value = getArrValue(data)
         if (key1Data.value.length > 0) {
-            searchForm.value.meterPeriodId = key1Data.value[0].id
+            searchForm.value.meterPeriodId = key1Data.value[key1Data.value.length - 1].id
         }
         
     } else {

+ 3 - 0
src/views/debit-pay/start-work/components/order/dataModal.vue

@@ -126,6 +126,9 @@ const getKey1Data = async ()=>{
     })
     if (!error && code === 200) {
         key1Data.value = getArrValue(data)
+        if (key1Data.value.length > 0) {
+            baseForm.value.meterPeriodId = key1Data.value[ key1Data.value.length - 1].id
+        }
     } else {
         key1Data.value = []
     }