[update] 绑定零部件
This commit is contained in:
@@ -140,6 +140,8 @@ 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)
|
||||||
// 根据标准拆分id获取条款列表
|
// 根据标准拆分id获取条款列表
|
||||||
const getClauseListByStandardInfoId = (params) => postAction('/laws/bindPart/selectClause', params)
|
const getClauseListByStandardInfoId = (params) => postAction('/laws/bindPart/selectClause', params)
|
||||||
|
|
||||||
@@ -231,6 +233,7 @@ export {
|
|||||||
getEnterpriseLevelMapList,
|
getEnterpriseLevelMapList,
|
||||||
|
|
||||||
getSplitStandardList,
|
getSplitStandardList,
|
||||||
|
getClauseTree,
|
||||||
getClauseListByStandardInfoId,
|
getClauseListByStandardInfoId,
|
||||||
|
|
||||||
getSSOUserInfo,
|
getSSOUserInfo,
|
||||||
|
|||||||
@@ -119,21 +119,21 @@ export default {
|
|||||||
columns: [
|
columns: [
|
||||||
{ // 条款号
|
{ // 条款号
|
||||||
title: this.$t('clauseSelect.clauseNumber'),
|
title: this.$t('clauseSelect.clauseNumber'),
|
||||||
dataIndex: 'clauseNumber',
|
dataIndex: 'item_num',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 150,
|
width: 150,
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{ // 条款名称
|
{ // 条款名称
|
||||||
title: this.$t('clauseSelect.clauseName'),
|
title: this.$t('clauseSelect.clauseName'),
|
||||||
dataIndex: 'clauseName',
|
dataIndex: 'item_title',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 150,
|
width: 150,
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{ // 条款内容
|
{ // 条款内容
|
||||||
title: this.$t('clauseSelect.clauseContent'),
|
title: this.$t('clauseSelect.clauseContent'),
|
||||||
dataIndex: 'clauseContent',
|
dataIndex: 'item_content',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 150,
|
width: 150,
|
||||||
scopedSlots: { customRender: 'clauseContent' }
|
scopedSlots: { customRender: 'clauseContent' }
|
||||||
|
|||||||
@@ -199,32 +199,32 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
// 使用绑定关系
|
// 使用绑定关系
|
||||||
useBindingRelationship () {
|
useBindingRelationship () {
|
||||||
if (this.selectedRowKeys.length <= 0) {
|
// if (this.selectedRowKeys.length <= 0) {
|
||||||
this.$message.warning(this.$t('selectARecord'))
|
// this.$message.warning(this.$t('selectARecord'))
|
||||||
} else {
|
// } else {
|
||||||
const ids = this.selectedRowKeys.join(',')
|
// const ids = this.selectedRowKeys.join(',')
|
||||||
const that = this
|
// const that = this
|
||||||
this.$confirm({
|
// this.$confirm({
|
||||||
title: this.$t('system.bindingParts.confirmUseBindRelationship'),
|
// title: this.$t('system.bindingParts.confirmUseBindRelationship'),
|
||||||
content: this.$t('system.bindingParts.isUseBindRelationship'),
|
// content: this.$t('system.bindingParts.isUseBindRelationship'),
|
||||||
onOk: () => {
|
// onOk: () => {
|
||||||
that.loading = true
|
// that.loading = true
|
||||||
postAction(that.url.useBindingRelationship, { ids: ids }).then((res) => {
|
// postAction(that.url.useBindingRelationship, { ids: ids }).then((res) => {
|
||||||
if (res.success) {
|
// if (res.success) {
|
||||||
// 重新计算分页问题
|
// // 重新计算分页问题
|
||||||
that.reCalculatePage(that.selectedRowKeys.length)
|
// that.reCalculatePage(that.selectedRowKeys.length)
|
||||||
that.$message.success(res.message)
|
// that.$message.success(res.message)
|
||||||
that.loadData()
|
// that.loadData()
|
||||||
that.onClearSelected()
|
// that.onClearSelected()
|
||||||
} else {
|
// } else {
|
||||||
that.$message.warning(res.message)
|
// that.$message.warning(res.message)
|
||||||
}
|
// }
|
||||||
}).finally(() => {
|
// }).finally(() => {
|
||||||
that.loading = false
|
// that.loading = false
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
// 点击标准编号和标准名称
|
// 点击标准编号和标准名称
|
||||||
handleGoDetail (record) {
|
handleGoDetail (record) {
|
||||||
@@ -246,7 +246,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 点击条款号
|
// 点击条款号
|
||||||
handleGoClause (record) {
|
handleGoClause (record) {
|
||||||
this.$refs.clauseModalRef.open(record.infoId)
|
this.$refs.clauseModalRef.open(record.docSplitId, record.clauseIds)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,25 +47,25 @@
|
|||||||
<!--条文号-->
|
<!--条文号-->
|
||||||
<a-col :md="6" :sm="12">
|
<a-col :md="6" :sm="12">
|
||||||
<a-form-item :label="$t('clauseSelect.articleNumber')">
|
<a-form-item :label="$t('clauseSelect.articleNumber')">
|
||||||
<j-input
|
<a-input
|
||||||
:placeholder="$t('pleaseEnter') + $t('clauseSelect.articleNumber')"
|
:placeholder="$t('pleaseEnter') + $t('clauseSelect.articleNumber')"
|
||||||
v-model="queryParam.articleNumber"></j-input>
|
v-model="queryParam.item_num"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<!--条文标题-->
|
<!--条文标题-->
|
||||||
<a-col :md="6" :sm="12">
|
<a-col :md="6" :sm="12">
|
||||||
<a-form-item :label="$t('clauseSelect.articleTitle')">
|
<a-form-item :label="$t('clauseSelect.articleTitle')">
|
||||||
<j-input
|
<a-input
|
||||||
:placeholder="$t('pleaseEnter') + $t('clauseSelect.articleTitle')"
|
:placeholder="$t('pleaseEnter') + $t('clauseSelect.articleTitle')"
|
||||||
v-model="queryParam.articleTitle"></j-input>
|
v-model="queryParam.item_title"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<!--条文内容-->
|
<!--条文内容-->
|
||||||
<a-col :md="6" :sm="12">
|
<a-col :md="6" :sm="12">
|
||||||
<a-form-item :label="$t('clauseSelect.articleContent')">
|
<a-form-item :label="$t('clauseSelect.articleContent')">
|
||||||
<j-input
|
<a-input
|
||||||
:placeholder="$t('pleaseEnter') + $t('clauseSelect.articleContent')"
|
:placeholder="$t('pleaseEnter') + $t('clauseSelect.articleContent')"
|
||||||
v-model="queryParam.articleContent"></j-input>
|
v-model="queryParam.item_content"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
||||||
@@ -108,13 +108,11 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
|
||||||
getClauseTreeData
|
|
||||||
} from '../../../../api/documentToolApi'
|
|
||||||
import SplitClauseDetail from '../../../documentTool/documentSplit/modules/SplitClauseDetail'
|
import SplitClauseDetail from '../../../documentTool/documentSplit/modules/SplitClauseDetail'
|
||||||
import { JeroListMixin } from '../../../../mixins/JeroListMixin'
|
import { JeroListMixin } from '../../../../mixins/JeroListMixin'
|
||||||
import JTable from '../../../../components/jero/JTable'
|
import JTable from '../../../../components/jero/JTable'
|
||||||
import { postAction } from '../../../../api/manage'
|
import { postAction } from '../../../../api/manage'
|
||||||
|
import { getClauseTree } from '../../../../api/api'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ClauseModal',
|
name: 'ClauseModal',
|
||||||
@@ -133,7 +131,7 @@ export default {
|
|||||||
searchValue: '',
|
searchValue: '',
|
||||||
selectedKeys: [],
|
selectedKeys: [],
|
||||||
url: {
|
url: {
|
||||||
list: '/laws/DocumentTool/documentSplit/queryDocumentSplitDetail'
|
list: '/laws/bindPart/selectClause'
|
||||||
},
|
},
|
||||||
disableMixinCreated: true,
|
disableMixinCreated: true,
|
||||||
expandedKeys: [],
|
expandedKeys: [],
|
||||||
@@ -141,25 +139,26 @@ export default {
|
|||||||
{ // 条文号
|
{ // 条文号
|
||||||
title: this.$t('clauseSelect.articleNumber'),
|
title: this.$t('clauseSelect.articleNumber'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 100,
|
||||||
dataIndex: 'articleNumber',
|
dataIndex: 'item_num',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{ // 条文标题
|
{ // 条文标题
|
||||||
title: this.$t('clauseSelect.articleTitle'),
|
title: this.$t('clauseSelect.articleTitle'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 120,
|
||||||
dataIndex: 'articleTitle',
|
dataIndex: 'item_title',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
},
|
},
|
||||||
{ // 条文内容
|
{ // 条文内容
|
||||||
title: this.$t('clauseSelect.articleContent'),
|
title: this.$t('clauseSelect.articleContent'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 180,
|
width: 180,
|
||||||
dataIndex: 'articleContent',
|
dataIndex: 'item_content',
|
||||||
scopedSlots: { customRender: 'text' }
|
scopedSlots: { customRender: 'text' }
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
clauseIds: '' // 能查看的条款ids
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -168,16 +167,16 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
open (infoId) {
|
open (infoId, clauseIds) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.infoId = infoId
|
this.infoId = infoId
|
||||||
|
this.clauseIds = clauseIds
|
||||||
this.filters = {
|
this.filters = {
|
||||||
menu_id: this.menuId,
|
menu_id: this.menuId,
|
||||||
info_id: this.infoId
|
info_id: this.infoId
|
||||||
}
|
}
|
||||||
this.loadData()
|
|
||||||
this.infoId = infoId
|
|
||||||
this.loadMenuData()
|
this.loadMenuData()
|
||||||
|
this.loadData()
|
||||||
},
|
},
|
||||||
loadData (arg) {
|
loadData (arg) {
|
||||||
if (!this.url.list) {
|
if (!this.url.list) {
|
||||||
@@ -188,7 +187,9 @@ export default {
|
|||||||
if (arg === 1) {
|
if (arg === 1) {
|
||||||
this.ipagination.current = 1
|
this.ipagination.current = 1
|
||||||
}
|
}
|
||||||
const params = this.getQueryParams()
|
const params = Object.assign({}, this.filters, this.queryParam)
|
||||||
|
params.pageNo = this.ipagination.current
|
||||||
|
params.pageSize = this.ipagination.pageSize
|
||||||
this.loading = true
|
this.loading = true
|
||||||
postAction(this.url.list, params).then((res) => {
|
postAction(this.url.list, params).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
@@ -198,6 +199,7 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.dataSource = res.result.records || []
|
this.dataSource = res.result.records || []
|
||||||
|
this.selectedRowKeys = this.clauseIds ? this.clauseIds.split(',') : []
|
||||||
this.ipagination.total = res.result.total
|
this.ipagination.total = res.result.total
|
||||||
} else {
|
} else {
|
||||||
this.$message.warn(res.message)
|
this.$message.warn(res.message)
|
||||||
@@ -237,7 +239,7 @@ export default {
|
|||||||
name: this.searchValue
|
name: this.searchValue
|
||||||
}
|
}
|
||||||
this.treeLoading = true
|
this.treeLoading = true
|
||||||
getClauseTreeData(params).then(res => {
|
getClauseTree(params).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.treeData = res.result || []
|
this.treeData = res.result || []
|
||||||
this.expandedKeys = this.treeData.length > 0 ? [this.treeData[0].id] : []
|
this.expandedKeys = this.treeData.length > 0 ? [this.treeData[0].id] : []
|
||||||
|
|||||||
Reference in New Issue
Block a user