update 征求意见
This commit is contained in:
@@ -30,6 +30,9 @@ const queryPaymentList = (params) => getAction('/laws/standardization/lawsStanda
|
|||||||
// 标准化活动-统计-参会记录
|
// 标准化活动-统计-参会记录
|
||||||
const queryMeetingList = (params) => getAction('/laws/standardization/lawsStandardization/queryMeetingByStandardizationId', params)
|
const queryMeetingList = (params) => getAction('/laws/standardization/lawsStandardization/queryMeetingByStandardizationId', params)
|
||||||
|
|
||||||
|
// 征求意见-详情
|
||||||
|
const queryAskForAdviceDetail = (params) => getAction('/laws/consultation/queryDetailByBusinessId', params)
|
||||||
|
|
||||||
export {
|
export {
|
||||||
getQuizById,
|
getQuizById,
|
||||||
answerQuiz,
|
answerQuiz,
|
||||||
@@ -46,5 +49,8 @@ export {
|
|||||||
queryContactList,
|
queryContactList,
|
||||||
queryGroupList,
|
queryGroupList,
|
||||||
queryPaymentList,
|
queryPaymentList,
|
||||||
queryMeetingList
|
queryMeetingList,
|
||||||
|
|
||||||
|
// 征求意见
|
||||||
|
queryAskForAdviceDetail
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<internal-detail-page :title="$route.meta.title">
|
<internal-detail-page :title="$route.meta.title" :loading="loading">
|
||||||
<template v-slot:titleRightCustom>
|
<template v-slot:titleRightCustom>
|
||||||
<a @click="handleToggle" style="margin-left: 8px">
|
<a @click="handleToggle" style="margin-left: 8px">
|
||||||
{{ toggleStatus ? $t('putAway') : $t('open') }}
|
{{ toggleStatus ? $t('putAway') : $t('open') }}
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
<a-button icon="upload"
|
<a-button icon="upload"
|
||||||
type="primary"
|
type="primary"
|
||||||
ghost
|
ghost
|
||||||
@click="handleExportXls($t('businessSupport.askForAdvice.detailsOfComments'), 'zip')">
|
@click="handleExportXls($t('businessSupport.askForAdvice.detailsOfComments'), '.zip')">
|
||||||
{{ $t('export') }}
|
{{ $t('export') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -56,8 +56,11 @@
|
|||||||
:loading="loading"
|
:loading="loading"
|
||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
:scroll="{x: '100%'}"
|
:scroll="{x: '100%'}"
|
||||||
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
|
|
||||||
|
<template v-slot:standardDetail="{text, record}">
|
||||||
|
<a-button type="primary">{{ $t('docTool.split.clickToView') }}</a-button>
|
||||||
|
</template>
|
||||||
</j-table>
|
</j-table>
|
||||||
</div>
|
</div>
|
||||||
</internal-detail-page>
|
</internal-detail-page>
|
||||||
@@ -69,6 +72,7 @@ import FileEcho from '../../../components/FileEcho'
|
|||||||
import { downFile } from '../../../api/manage'
|
import { downFile } from '../../../api/manage'
|
||||||
import JTable from '../../../components/jero/JTable'
|
import JTable from '../../../components/jero/JTable'
|
||||||
import { JeroListMixin } from '../../../mixins/JeroListMixin'
|
import { JeroListMixin } from '../../../mixins/JeroListMixin'
|
||||||
|
import { queryAskForAdviceDetail } from '../../../api/businessSupport'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AskForAdviceDetail',
|
name: 'AskForAdviceDetail',
|
||||||
@@ -77,10 +81,129 @@ export default {
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
toggleStatus: true,
|
toggleStatus: true,
|
||||||
detailData: {}
|
detailData: {},
|
||||||
|
disableMixinCreated: true,
|
||||||
|
loading: false,
|
||||||
|
columns: [
|
||||||
|
{
|
||||||
|
title: this.$t('serialNumber'),
|
||||||
|
dataIndex: '',
|
||||||
|
key: 'rowIndex',
|
||||||
|
align: 'center',
|
||||||
|
width: 80,
|
||||||
|
customRender: function (t, r, index) {
|
||||||
|
return parseInt(index) + 1
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{ // 条款号
|
||||||
|
title: this.$t('workCenter.enStandardRevision.clauseNumber'),
|
||||||
|
width: 180,
|
||||||
|
align: 'center',
|
||||||
|
dataIndex: 'chapterNumber',
|
||||||
|
scopedSlots: { customRender: 'text' }
|
||||||
|
},
|
||||||
|
{ // 条款名称
|
||||||
|
title: this.$t('docTool.split.clauseName'),
|
||||||
|
width: 180,
|
||||||
|
align: 'center',
|
||||||
|
dataIndex: 'chapterName',
|
||||||
|
scopedSlots: { customRender: 'text' }
|
||||||
|
},
|
||||||
|
{ // 修改意见内容
|
||||||
|
title: this.$t('workCenter.enStandardChange.revisedOpinionContent'),
|
||||||
|
children: [
|
||||||
|
{ // 修改前
|
||||||
|
title: this.$t('workCenter.enStandardChange.beforeUpdate'),
|
||||||
|
align: 'center',
|
||||||
|
width: 180,
|
||||||
|
dataIndex: 'modificationBefore',
|
||||||
|
scopedSlots: { customRender: 'standardDetail' }
|
||||||
|
},
|
||||||
|
{ // 修改后
|
||||||
|
title: this.$t('workCenter.enStandardChange.afterUpdate'),
|
||||||
|
align: 'center',
|
||||||
|
width: 180,
|
||||||
|
dataIndex: 'modificationAfter',
|
||||||
|
scopedSlots: { customRender: 'text' }
|
||||||
|
},
|
||||||
|
{ // 修改理由
|
||||||
|
title: this.$t('workCenter.enStandardChange.updateReason'),
|
||||||
|
align: 'center',
|
||||||
|
width: 180,
|
||||||
|
dataIndex: 'modificationReason',
|
||||||
|
scopedSlots: { customRender: 'text' }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{ // 提出部门
|
||||||
|
title: this.$t('workCenter.enStandardChange.proposingDepartment'),
|
||||||
|
align: 'center',
|
||||||
|
width: 180,
|
||||||
|
dataIndex: 'depart',
|
||||||
|
scopedSlots: { customRender: 'text' }
|
||||||
|
},
|
||||||
|
{ // 提出人
|
||||||
|
title: this.$t('workCenter.enStandardChange.introducer'),
|
||||||
|
align: 'center',
|
||||||
|
width: 180,
|
||||||
|
dataIndex: 'designEngineerName',
|
||||||
|
scopedSlots: { customRender: 'text' }
|
||||||
|
},
|
||||||
|
{ // 处理意见
|
||||||
|
title: this.$t('workCenter.enStandardRevision.handlingSuggestion'),
|
||||||
|
align: 'center',
|
||||||
|
width: 180,
|
||||||
|
dataIndex: 'isAdopt_dictText'
|
||||||
|
},
|
||||||
|
// 依据描述
|
||||||
|
{
|
||||||
|
dataIndex: 'basisDescription',
|
||||||
|
title: this.$t('projectLibrary.specialProjectLibrary.basisDescription'),
|
||||||
|
width: 180
|
||||||
|
},
|
||||||
|
// 佐证材料
|
||||||
|
{
|
||||||
|
dataIndex: 'basisFile',
|
||||||
|
title: this.$t('projectLibrary.specialProjectLibrary.supportingMaterial'),
|
||||||
|
width: 120
|
||||||
|
}
|
||||||
|
],
|
||||||
|
/* 分页参数 */
|
||||||
|
ipagination: {
|
||||||
|
current: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
pageSizeOptions: ['10', '20', '30'],
|
||||||
|
showTotal: (total, range) => {
|
||||||
|
return range[0] + '-' + range[1] + ' ' + this.$t('total') + total + this.$t('strip')
|
||||||
|
},
|
||||||
|
showQuickJumper: true,
|
||||||
|
showSizeChanger: true,
|
||||||
|
total: 0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
created () {
|
||||||
|
this.initDetailData()
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
initDetailData () {
|
||||||
|
this.loading = true
|
||||||
|
const params = {
|
||||||
|
pageNo: this.ipagination.current,
|
||||||
|
pageSize: this.ipagination.pageSize,
|
||||||
|
businessId: this.$route.query.id
|
||||||
|
}
|
||||||
|
queryAskForAdviceDetail(params).then(res => {
|
||||||
|
if (res.success) {
|
||||||
|
console.log(res.result)
|
||||||
|
this.dataSource = res.result || []
|
||||||
|
} else {
|
||||||
|
this.$message.warning(res.message)
|
||||||
|
}
|
||||||
|
}).finally(() => {
|
||||||
|
this.loading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
handleToggle () {
|
handleToggle () {
|
||||||
this.toggleStatus = !this.toggleStatus
|
this.toggleStatus = !this.toggleStatus
|
||||||
},
|
},
|
||||||
@@ -89,6 +212,7 @@ export default {
|
|||||||
fileName = '导出文件'
|
fileName = '导出文件'
|
||||||
}
|
}
|
||||||
const param = this.getQueryParams()
|
const param = this.getQueryParams()
|
||||||
|
param.businessId = this.$route.query.id
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
param.selections = this.selectedRowKeys.join(',')
|
param.selections = this.selectedRowKeys.join(',')
|
||||||
}
|
}
|
||||||
@@ -103,7 +227,7 @@ export default {
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
document.getElementsByClassName('ant-modal-confirm-btns')[0].style = 'display:none'
|
document.getElementsByClassName('ant-modal-confirm-btns')[0].style = 'display:none'
|
||||||
})
|
})
|
||||||
downFile('', param).then((data) => {
|
downFile('/laws/consultation/exportExcel', param).then((data) => {
|
||||||
if (!data) {
|
if (!data) {
|
||||||
this.$message.warning('文件下载失败')
|
this.$message.warning('文件下载失败')
|
||||||
return
|
return
|
||||||
@@ -116,6 +240,7 @@ export default {
|
|||||||
link.style.display = 'none'
|
link.style.display = 'none'
|
||||||
link.href = url
|
link.href = url
|
||||||
link.setAttribute('download', fileName + fileSuffix)
|
link.setAttribute('download', fileName + fileSuffix)
|
||||||
|
console.log(fileName + fileSuffix)
|
||||||
document.body.appendChild(link)
|
document.body.appendChild(link)
|
||||||
link.click()
|
link.click()
|
||||||
document.body.removeChild(link) // 下载完成移除元素
|
document.body.removeChild(link) // 下载完成移除元素
|
||||||
@@ -125,7 +250,16 @@ export default {
|
|||||||
// 销毁这个提示
|
// 销毁这个提示
|
||||||
modalLoading.destroy()
|
modalLoading.destroy()
|
||||||
})
|
})
|
||||||
}
|
},
|
||||||
|
handleTableChange (pagination, filters, sorter) {
|
||||||
|
// 分页、排序、筛选变化时触发
|
||||||
|
if (Object.keys(sorter).length > 0) {
|
||||||
|
this.isorter.column = sorter.order ? sorter.field : 'createTime'
|
||||||
|
this.isorter.order = sorter.order === 'ascend' ? 'asc' : 'desc'
|
||||||
|
}
|
||||||
|
this.ipagination = pagination
|
||||||
|
this.initDetailData()
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
<!--标准名称/编号-->
|
<!--标准名称/编号-->
|
||||||
<a-col :md="6" :sm="12">
|
<a-col :md="6" :sm="12">
|
||||||
<a-form-item :label="$t('businessSupport.askForAdvice.standardNameNumber')">
|
<a-form-item :label="$t('businessSupport.askForAdvice.standardNameNumber')">
|
||||||
<j-input :placeholder="$t('pleaseEnter') + $t('businessSupport.askForAdvice.standardNameNumber')"
|
<a-input :placeholder="$t('pleaseEnter') + $t('businessSupport.askForAdvice.standardNameNumber')"
|
||||||
v-model="queryParam.projectName"></j-input>
|
v-model="queryParam.standardNameNumber" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<!--征求意见周期-->
|
<!--征求意见周期-->
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
format="YYYY-MM-DD"
|
format="YYYY-MM-DD"
|
||||||
value-format="YYYY-MM-DD"
|
value-format="YYYY-MM-DD"
|
||||||
style='margin-left: -1px'
|
style='margin-left: -1px'
|
||||||
v-model="queryParam.time"
|
v-model="queryParam.consultationPeriodList"
|
||||||
:disabled="false" />
|
:disabled="false" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -65,6 +65,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
||||||
import JTable from '../../../components/jero/JTable'
|
import JTable from '../../../components/jero/JTable'
|
||||||
|
import { filterObj } from '../../../utils/util'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AskForAdviceList',
|
name: 'AskForAdviceList',
|
||||||
@@ -77,19 +78,19 @@ export default {
|
|||||||
{
|
{
|
||||||
title: this.$t('businessSupport.askForAdvice.standardNameNumber'),
|
title: this.$t('businessSupport.askForAdvice.standardNameNumber'),
|
||||||
width: 200,
|
width: 200,
|
||||||
dataIndex: 'listName',
|
dataIndex: 'standardNameNumber',
|
||||||
scopedSlots: { customRender: 'detail' }
|
scopedSlots: { customRender: 'detail' }
|
||||||
},
|
},
|
||||||
// 征求意见周期
|
// 征求意见周期
|
||||||
{
|
{
|
||||||
title: this.$t('businessSupport.askForAdvice.consultationCycle'),
|
title: this.$t('businessSupport.askForAdvice.consultationCycle'),
|
||||||
width: 200,
|
width: 200,
|
||||||
dataIndex: 'referenceStandard'
|
dataIndex: 'consultationPeriod'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
dataSource: [{ id: '1', listName: 'sdkjgfdjg' }],
|
dataSource: [],
|
||||||
url: {
|
url: {
|
||||||
list: ''
|
list: '/laws/consultation/queryByPage'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -99,6 +100,23 @@ export default {
|
|||||||
path: '/businessSupport/AskForAdviceDetail',
|
path: '/businessSupport/AskForAdviceDetail',
|
||||||
query: { id }
|
query: { id }
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
getQueryParams () {
|
||||||
|
// 获取查询条件
|
||||||
|
const sqp = {}
|
||||||
|
if (this.superQueryParams) {
|
||||||
|
sqp.superQueryParams = encodeURI(this.superQueryParams)
|
||||||
|
sqp.superQueryMatchType = this.superQueryMatchType
|
||||||
|
}
|
||||||
|
const param = Object.assign(sqp, this.queryParam, this.isorter, this.filters)
|
||||||
|
param.field = this.getQueryField()
|
||||||
|
param.pageNo = this.ipagination.current
|
||||||
|
param.pageSize = this.ipagination.pageSize
|
||||||
|
if (param.consultationPeriodList && param.consultationPeriodList.length > 0) {
|
||||||
|
param.consultationPeriod = param.consultationPeriodList.join(',')
|
||||||
|
delete param.consultationPeriodList
|
||||||
|
}
|
||||||
|
return filterObj(param)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,7 +68,7 @@
|
|||||||
:filters="{releaseSplitFlag: '1'}"
|
:filters="{releaseSplitFlag: '1'}"
|
||||||
:can-selected-source="[StandardSource.DOMESTIC.value]"
|
:can-selected-source="[StandardSource.DOMESTIC.value]"
|
||||||
type="radio"
|
type="radio"
|
||||||
@nameChange="handleStandardChange" />
|
@listChange="handleStandardChange" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-flex-item custom-flex-form-item">
|
<div class="form-flex-item custom-flex-form-item">
|
||||||
@@ -852,8 +852,10 @@ export default {
|
|||||||
* 选择标准带出标准名称
|
* 选择标准带出标准名称
|
||||||
* @param name
|
* @param name
|
||||||
*/
|
*/
|
||||||
handleStandardChange (name) {
|
handleStandardChange (list) {
|
||||||
this.basicServiceInfoForm.setFieldsValue({ standardName: name, standardTextFileName: null })
|
const standard = list[0] || {}
|
||||||
|
this.basicServiceInfoForm.setFieldsValue({ standardName: standard.standardName, standardTextFileName: null })
|
||||||
|
this.basicServiceInfo.standardId = standard.id
|
||||||
delete this.basicServiceInfo.standardTextFileName
|
delete this.basicServiceInfo.standardTextFileName
|
||||||
delete this.basicServiceInfo.standardText
|
delete this.basicServiceInfo.standardText
|
||||||
delete this.basicServiceInfo.standardTextFileId
|
delete this.basicServiceInfo.standardTextFileId
|
||||||
@@ -909,6 +911,7 @@ export default {
|
|||||||
this.selectedRowKeys = []
|
this.selectedRowKeys = []
|
||||||
},
|
},
|
||||||
onSelectChange (selectedRowKeys) {
|
onSelectChange (selectedRowKeys) {
|
||||||
|
console.log(selectedRowKeys)
|
||||||
this.selectedRowKeys = selectedRowKeys
|
this.selectedRowKeys = selectedRowKeys
|
||||||
},
|
},
|
||||||
handleEdit (record, index) {
|
handleEdit (record, index) {
|
||||||
|
|||||||
Reference in New Issue
Block a user