Forráskód Böngészése

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

luzhixia 1 hete
szülő
commit
09e6a9e0ff

+ 3 - 1
src/components/task/components/costAudit.vue

@@ -340,7 +340,9 @@
       },
       // 获取所有模板类型为固定表的所有启用成本调查表数据
       getActiveCostVerifyFormListByType() {
-        getActiveCostVerifyFormListByType().then((res) => {
+        getActiveCostVerifyFormListByType({
+          catalogId: this.auditForm.catalogId,
+        }).then((res) => {
           if (res.code === 200) {
             this.surveyFormList = res.value
           }

+ 7 - 3
src/views/costAudit/auditInfo/auditManage/costAudit.vue

@@ -8,7 +8,7 @@
         :disabled="hasTableData"
       >
         <el-row :gutter="20">
-          <el-col :span="6">
+          <el-col :span="8">
             <el-form-item label="" prop="templateType">
               <div
                 style="display: flex; justify-self: start; align-items: center"
@@ -24,6 +24,7 @@
                   v-model="auditForm.dataTable"
                   placeholder="请选择"
                   :disabled="auditForm.templateType !== '1'"
+                  style="width: 100%"
                 >
                   <el-option
                     v-for="item in surveyFormList"
@@ -35,7 +36,7 @@
               </div>
             </el-form-item>
           </el-col>
-          <el-col :span="6">
+          <el-col :span="8">
             <el-form-item label="" prop="">
               <div
                 style="display: flex; justify-self: start; align-items: center"
@@ -51,6 +52,7 @@
                   v-model="auditForm.historyTemplate"
                   placeholder="请选择"
                   :disabled="auditForm.templateType !== '2'"
+                  style="width: 100%"
                 >
                   <el-option
                     v-for="item in auditFormList"
@@ -618,7 +620,9 @@
       },
       async loadSurveyFormOptions() {
         try {
-          const res = await getActiveCostVerifyFormListByType()
+          const res = await getActiveCostVerifyFormListByType({
+            catalogId: this.catalogId,
+          })
           const list = Array.isArray(res?.value) ? res.value : []
           // 规范为 surveyTemplateId / surveyTemplateName 结构供下拉使用
           this.surveyFormList = list.map((it) => ({

+ 3 - 1
src/views/costAudit/baseInfo/statistics/components/costAudit.vue

@@ -340,7 +340,9 @@
       },
       // 获取所有模板类型为固定表的所有启用成本调查表数据
       getActiveCostVerifyFormListByType() {
-        getActiveCostVerifyFormListByType().then((res) => {
+        getActiveCostVerifyFormListByType({
+          catalogId: this.auditForm.catalogId,
+        }).then((res) => {
           if (res.code === 200) {
             this.surveyFormList = res.value
           }