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