[update 标准征求意见流程] 选择标准去掉多余参数、选择文本更换接口

This commit is contained in:
danshihao
2024-07-04 10:32:00 +08:00
parent 1582b33cdf
commit 6825d243e5
3 changed files with 12 additions and 10 deletions
+3
View File
@@ -191,6 +191,8 @@ const rejectStandardECProcess = (params) => postAction('/process/fb/processFbEnt
/* 标准征求意见流程 */ /* 标准征求意见流程 */
// 获取标准被拆分的列表 // 获取标准被拆分的列表
const querySpitFileByStandardNumber = (params) => getAction('/laws/standard/common/getSplitsByStandardNumber', params) const querySpitFileByStandardNumber = (params) => getAction('/laws/standard/common/getSplitsByStandardNumber', params)
// 通过标准id获取标准被拆分的列表
const querySpitFileByStandardId = (params) => getAction('/laws/standard/common/getFileByStandardId', params)
// 获取标准条款号 // 获取标准条款号
const queryStandardClauseNumber = (params) => getAction('/laws/DocumentTool/documentSplit/queryTreeMenuByInfoId', params) const queryStandardClauseNumber = (params) => getAction('/laws/DocumentTool/documentSplit/queryTreeMenuByInfoId', params)
// 保存 // 保存
@@ -537,6 +539,7 @@ export {
rejectStandardECProcess, rejectStandardECProcess,
querySpitFileByStandardNumber, querySpitFileByStandardNumber,
querySpitFileByStandardId,
queryStandardClauseNumber, queryStandardClauseNumber,
saveConsultationProcess, saveConsultationProcess,
queryConsultationProcessDetail, queryConsultationProcessDetail,
@@ -64,7 +64,6 @@
<standard-selection v-decorator="['standardNumber', validatorRules.standardNumber]" <standard-selection v-decorator="['standardNumber', validatorRules.standardNumber]"
:disabled="basicServiceInfoDisabled" :disabled="basicServiceInfoDisabled"
:placeholder="$t('pleaseSelect') + $t('standardNumber')" :placeholder="$t('pleaseSelect') + $t('standardNumber')"
:filters="{releaseSplitFlag: '1'}"
:can-selected-source="[StandardSource.DOMESTIC.value]" :can-selected-source="[StandardSource.DOMESTIC.value]"
type="radio" type="radio"
select-only select-only
@@ -919,7 +918,7 @@ export default {
}, },
/** /**
* 选择标准带出标准名称 * 选择标准带出标准名称
* @param name * @param list
*/ */
handleStandardChange (list) { handleStandardChange (list) {
const standard = list[0] || {} const standard = list[0] || {}
@@ -944,7 +943,7 @@ export default {
this.$message.warning(this.$t('workCenter.standardConsultationProcess.pleaseSelectCriteriaFirst')) this.$message.warning(this.$t('workCenter.standardConsultationProcess.pleaseSelectCriteriaFirst'))
return return
} }
this.$refs.selectStandardFileModal.open(selectedStandard, this.basicServiceInfo.standardText) this.$refs.selectStandardFileModal.open(this.basicServiceInfo.standardId, this.basicServiceInfo.standardText)
}, },
/** /**
* 下发人员类型修改 * 下发人员类型修改
@@ -1313,7 +1312,7 @@ export default {
this.basicServiceInfoForm.setFieldsValue({ standardTextFileName: item.fileName }) this.basicServiceInfoForm.setFieldsValue({ standardTextFileName: item.fileName })
this.basicServiceInfo.standardTextFileName = item.fileName this.basicServiceInfo.standardTextFileName = item.fileName
this.basicServiceInfo.standardText = item.publishBeforeId this.basicServiceInfo.standardText = item.publishBeforeId
this.basicServiceInfo.standardTextFileId = item.fileId this.basicServiceInfo.standardTextFileId = item.id
}, },
/** /**
* 修改意见 * 修改意见
@@ -18,9 +18,9 @@
show-search show-search
:filter-option="filterOption" :filter-option="filterOption"
v-decorator="['fileType']"> v-decorator="['fileType']">
<a-select-option v-for="item in optionList" :key="item.publishBeforeId" :value="item.publishBeforeId"> <a-select-option v-for="item in optionList" :key="item.id" :value="item.id">
<div style="display: inline-block;width: 100%" :title=" item.fileType_dictText"> <div style="display: inline-block;width: 100%" :title=" item.standardFileType_dictText">
{{ item.fileType_dictText }} {{ item.standardFileType_dictText }}
</div> </div>
</a-select-option> </a-select-option>
</a-select> </a-select>
@@ -55,10 +55,10 @@ export default {
} }
}, },
methods: { methods: {
open (standardNumber, selectedValue) { open (standardId, selectedValue) {
this.visible = true this.visible = true
this.confirmLoading = true this.confirmLoading = true
querySpitFileByStandardNumber({ standardNumber }).then(res => { querySpitFileByStandardNumber({ standardId }).then(res => {
if (res.success) { if (res.success) {
this.optionList = res.result || [] this.optionList = res.result || []
this.$nextTick(() => { this.$nextTick(() => {
@@ -75,7 +75,7 @@ export default {
this.form.validateFields((errors, values) => { this.form.validateFields((errors, values) => {
if (!errors) { if (!errors) {
this.$emit('ok', values.fileType) this.$emit('ok', values.fileType)
const item = values.fileType ? this.optionList.find(tt => tt.publishBeforeId === values.fileType) : {} const item = values.fileType ? this.optionList.find(tt => tt.id === values.fileType) : {}
console.log(item) console.log(item)
this.$emit('okItem', item) this.$emit('okItem', item)
} }