Browse Source

中期支付证书修改

duy 1 year ago
parent
commit
1349842094

+ 10 - 2
src/api/modules/debit-pay/admin/certificate.js

@@ -49,14 +49,22 @@ export default {
             params: form,
         }, msg)
     },
-    //合同计量期
+    //所有合同计量期
     async getAllPeriod(form, msg = false) {
         return HcApi({
-            url: '/api/blade-meter/contractMeterPeriod/conditionPeriod',
+            url: '/api/blade-meter/contractMeterPeriod/allPeriod',
             method: 'get',
             params: form,
         }, msg)
     },
+        //未被计量的合同计量期
+     async getConditionPeriod(form, msg = false) {
+            return HcApi({
+                url: '/api/blade-meter/contractMeterPeriod/conditionPeriod',
+                method: 'get',
+                params: form,
+            }, msg)
+        },
     //材料计量期
     async getMeterPeriod(form, msg = true) {
         return HcApi({

+ 1 - 1
src/views/debit-pay/admin/components/certificate/addModal.vue

@@ -59,7 +59,7 @@ const isShow = defineModel('modelValue', {
 //获取合同计量期
 const allPeriodData = ref([])
 const getAllPeriod = async () => {
-    const { data } = await mainApi.getAllPeriod({
+    const { data } = await mainApi.getConditionPeriod({
         projectId: projectId.value,
         contractId: contractId.value,
     })