[update] 绑定零部件

This commit is contained in:
lideqin
2024-04-19 15:28:41 +08:00
parent 41a8f9bd91
commit bc85636515
4 changed files with 17 additions and 13 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ const getEnterpriseLevelMapList = (params) => getAction('/sys/lawsGrade/list', p
// 绑定零部件-获取拆分标准
const getSplitStandardList = (params) => getAction('/laws/bindPart/selectStandard', params)
// 绑定零部件-获取条款目录树
const getClauseTree = (params) => getAction('/laws/bindPart/selectClause', params)
const getClauseTree = (params) => getAction('/laws/bindPart/clauseTree', params)
// 根据标准拆分id获取条款列表
const getClauseListByStandardInfoId = (params) => postAction('/laws/bindPart/selectClause', params)
@@ -15,13 +15,13 @@
<a-col :sm="8">
<a-form-item :label="$t('clauseSelect.clauseNumber')" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input :placeholder="$t('pleaseEnter')+$t('clauseSelect.clauseNumber')"
v-model="queryParam.clauseNumber"></a-input>
v-model="queryParam.item_num"></a-input>
</a-form-item>
</a-col>
<a-col :sm="8">
<a-form-item :label="$t('clauseSelect.clauseName')" :labelCol="labelCol" :wrapperCol="wrapperCol">
<a-input :placeholder="$t('pleaseEnter')+$t('clauseSelect.clauseName')"
v-model="queryParam.clauseName"></a-input>
v-model="queryParam.item_title"></a-input>
</a-form-item>
</a-col>
<div style="float: right;overflow: hidden;margin-right: 41px;margin-bottom: 20px"
@@ -14,7 +14,7 @@
<a-row :gutter="24">
<a-col :sm="8">
<a-form-item :label="$t('standardSelect.source')" :labelCol="labelCol" :wrapperCol="wrapperCol">
<j-dict-select-tag style="width: 100%" v-model="queryParam.source"
<j-dict-select-tag style="width: 100%" v-model="queryParam.standardType"
:disabled="disabledSourceSearch"
:placeholder="$t('pleaseSelect')+$t('standardSelect.source')"
:triggerChange="false"
@@ -64,8 +64,8 @@
<!-- 标准状态 -->
<template slot="standardState" slot-scope="text, record">
<a-tooltip overlay-class-name="tooltip-style">
<template slot="title">{{ record.source === '3' ? (record.esStandardState_dictText || global.emptyLine) : (record.standardState_dictText || global.emptyLine) }}</template>
<div class="table-text">{{ record.source === '3' ? (record.esStandardState_dictText || global.emptyLine) : (record.standardState_dictText || global.emptyLine) }}</div>
<template slot="title">{{ record.standardType === '3' ? (record.esStandardState_dictText || global.emptyLine) : (record.standardState_dictText || global.emptyLine) }}</template>
<div class="table-text">{{ record.standardType === '3' ? (record.esStandardState_dictText || global.emptyLine) : (record.standardState_dictText || global.emptyLine) }}</div>
</a-tooltip>
</template>
@@ -198,7 +198,7 @@ export default {
this.queryParam = {}
this.initDict()
this.$nextTick(() => {
this.source ? this.queryParam.source = this.source : this.queryParam = {}
this.source ? this.queryParam.standardType = this.source : this.queryParam = {}
this.replacePage()
})
},
@@ -222,8 +222,8 @@ export default {
pageSize: this.ipagination.pageSize
}
// 清空在可选范围内进行查询
if (!query.source && this.canSelectedSource.length < 3) {
query.source = this.canSelectedSource.join(',')
if (!query.standardType && this.canSelectedSource.length < 3) {
query.standardType = this.canSelectedSource.join(',')
}
// this.selectedRowKeys = []
this.loading = true
@@ -245,7 +245,7 @@ export default {
searchReset () {
// 如果禁用来源,就不重置来源
if (this.disabledSourceSearch) {
this.queryParam = { source: this.source }
this.queryParam = { standardType: this.source }
} else {
this.queryParam = {}
}
@@ -330,11 +330,11 @@ export default {
handleGoDetail (record) {
let path = ''
// 需要先判断是哪种标准
if (record.source === '1') {
if (record.standardType === '1') {
path = '/standardRegulationLibrary/DomesticStandardDetail'
} else if (record.source === '2') {
} else if (record.standardType === '2') {
path = '/standardRegulationLibrary/OverseasStandardDetail'
} else if (record.source === '3') {
} else if (record.standardType === '3') {
path = '/enterpriseStandardLibrary/enterpriseStandardDetail'
}
this.$openPageNewSheet({
@@ -152,6 +152,10 @@ export default {
handleStandardChange (value) {
this.sarFileSplitInfoId = value[0].infoId
this.model.docSplitId = value[0].infoId
this.model.standardId = value[0].id
this.model.standardType = value[0].standardType
this.form.resetFields(['clauseIds'])
this.model.clauseNos = ''
this.$nextTick(() => {
this.form.setFieldsValue(pick(value[0], 'standardName'))
})