|
|
@@ -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()
|
|
|
},
|
|
|
|
|
|
// 修改
|