Bläddra i källkod

fix:/costSurveyTemplate/v1/listFixedEnabled 添加请求传参catalogId

luzhixia 1 vecka sedan
förälder
incheckning
86583c80e5
2 ändrade filer med 13 tillägg och 12 borttagningar
  1. 2 1
      src/api/costFormManage.js
  2. 11 11
      src/views/costAudit/baseInfo/costVerifyManage/index.vue

+ 2 - 1
src/api/costFormManage.js

@@ -137,10 +137,11 @@ export function getActiveCostVerifyFormList(params) {
 }
 
 // 获取所有模板类型为固定表的所有启用成本调查表数据
-export function getActiveCostVerifyFormListByType() {
+export function getActiveCostVerifyFormListByType(params) {
   return request({
     url: `${url}/costSurveyTemplate/v1/listFixedEnabled`,
     method: 'get',
+    params,
   })
 }
 

+ 11 - 11
src/views/costAudit/baseInfo/costVerifyManage/index.vue

@@ -308,7 +308,8 @@
                 :disabled="
                   dialogTitle == '查看成本核定模板' ||
                   dialogTitle == '修改成本核定模板' ||
-                  contentEditForm.surveyTemplateId != ''
+                  contentEditForm.surveyTemplateId != '' ||
+                  contentEditForm.catalogId == ''
                 "
               >
                 <el-option
@@ -342,8 +343,7 @@
                 :disabled="
                   dialogTitle == '查看成本核定模板' ||
                   dialogTitle == '修改成本核定模板' ||
-                  contentEditForm.surveyTemplateId != '' ||
-                  contentEditForm.catalogId == ''
+                  contentEditForm.surveyTemplateId != ''
                 "
               >
                 <el-option
@@ -1337,9 +1337,7 @@
       },
       // 获取所有状态为启用的成本核定表模板数据
       getActiveCostVerifyFormList() {
-        getActiveCostVerifyFormList({
-          catalogId: this.contentEditForm.catalogId,
-        }).then((res) => {
+        getActiveCostVerifyFormList().then((res) => {
           if (res.code === 200) {
             this.contentEditFormList = res.value
           }
@@ -1347,7 +1345,9 @@
       },
       // 获取所有模板类型为固定表的所有启用成本调查表数据
       getActiveCostVerifyFormListByType() {
-        getActiveCostVerifyFormListByType().then((res) => {
+        getActiveCostVerifyFormListByType({
+          catalogId: this.contentEditForm.catalogId,
+        }).then((res) => {
           if (res.code === 200) {
             this.surveyFormList = res.value
           }
@@ -1453,9 +1453,9 @@
             fixedTablesTitle: [],
           },
         }
+        // 成本核定表模板列表
+        this.getActiveCostVerifyFormList()
 
-        // 成本调查表模板列表
-        this.getActiveCostVerifyFormListByType()
         this.dialogVisible = true
         // 清除表单校验
         this.$nextTick(() => {
@@ -1466,8 +1466,8 @@
       },
       // 级联选择器改变时触发
       handleCatalogChange(val) {
-        // 成本核定表模板列表
-        this.getActiveCostVerifyFormList()
+        // 成本调查表模板列表
+        this.getActiveCostVerifyFormListByType()
       },
 
       // 修改