|
@@ -6,7 +6,7 @@
|
|
|
</el-row>
|
|
|
<el-divider content-position="left"><i class="el-icon-document"></i> 报告签发单</el-divider>
|
|
|
</div>
|
|
|
- <el-form size="middle" :model="inputForm" ref="inputForm" v-loading="loading" :class="method==='view'?'readonly':''" :disabled="formReadOnly"
|
|
|
+ <el-form size="middle" :model="inputForm" ref="inputForm" v-loading="loading" :class="method==='view'?'readonly':''" :disabled="status === 'audit' || status === 'taskFormDetail'|| isDisabled === 'view'"
|
|
|
label-width="150px" @submit.native.prevent>
|
|
|
<el-row :gutter="15">
|
|
|
<el-col :span="24">
|
|
@@ -53,65 +53,29 @@
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
- <el-divider>业务类型</el-divider>
|
|
|
- <el-divider content-position="left">A类</el-divider>
|
|
|
- <el-row>
|
|
|
+ <el-divider content-position="left"><span style="font-size: 17px;margin-left: 0px"><b>业务类型</b></span></el-divider>
|
|
|
+ <el-row v-for="(item, index) in typeList">
|
|
|
+ <el-divider content-position="left"><span style="font-size: 17px;margin-left: 10px">{{item.name}}</span></el-divider>
|
|
|
<vxe-table
|
|
|
- border
|
|
|
+ border="inner"
|
|
|
show-overflow
|
|
|
- ref="details"
|
|
|
+ ref="table"
|
|
|
class="vxe-table-element"
|
|
|
- :data="AList"
|
|
|
+ :data="item.childrenList"
|
|
|
style="margin-left: 5em"
|
|
|
@cell-click=""
|
|
|
@edit-closed=""
|
|
|
- highlight-current-row
|
|
|
- :edit-config="{trigger: 'click', mode: 'cell', showStatus: true, autoClear: true}"
|
|
|
+ :show-header="false"
|
|
|
+ :row-config="{isHover: true,keyField: 'id'}"
|
|
|
+ @radio-change="radioChangeEvent($event, index)"
|
|
|
+ :radio-config="{trigger: 'row',labelField: 'name'}"
|
|
|
>
|
|
|
- <vxe-table-column field="name" title="名称" :edit-render="{}">
|
|
|
- </vxe-table-column>
|
|
|
+ <vxe-column type="radio" align="left"></vxe-column>
|
|
|
+<!-- <vxe-column align="left" field="name"></vxe-column>-->
|
|
|
</vxe-table>
|
|
|
</el-row>
|
|
|
|
|
|
- <el-divider content-position="left">B类</el-divider>
|
|
|
- <el-row>
|
|
|
- <vxe-table
|
|
|
- border
|
|
|
- show-overflow
|
|
|
- ref="details"
|
|
|
- class="vxe-table-element"
|
|
|
- :data="BList"
|
|
|
- style="margin-left: 5em"
|
|
|
- @cell-click=""
|
|
|
- @edit-closed=""
|
|
|
- highlight-current-row
|
|
|
- :edit-config="{trigger: 'click', mode: 'cell', showStatus: true, autoClear: true}"
|
|
|
- >
|
|
|
- <vxe-table-column field="name" title="名称" :edit-render="{}">
|
|
|
- </vxe-table-column>
|
|
|
- </vxe-table>
|
|
|
- </el-row>
|
|
|
-
|
|
|
- <el-divider content-position="left">C类</el-divider>
|
|
|
- <el-row>
|
|
|
- <vxe-table
|
|
|
- border
|
|
|
- show-overflow
|
|
|
- ref="details"
|
|
|
- class="vxe-table-element"
|
|
|
- :data="CList"
|
|
|
- style="margin-left: 5em"
|
|
|
- @cell-click=""
|
|
|
- @edit-closed=""
|
|
|
- highlight-current-row
|
|
|
- :edit-config="{trigger: 'click', mode: 'cell', showStatus: true, autoClear: true}"
|
|
|
- >
|
|
|
- <vxe-table-column field="name" title="名称" :edit-render="{}">
|
|
|
- </vxe-table-column>
|
|
|
- </vxe-table>
|
|
|
- </el-row>
|
|
|
-
|
|
|
- <el-row :gutter="15" style="margin-top: 20px">
|
|
|
+ <el-row :gutter="15" style="margin-top: 40px">
|
|
|
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="是否已完善项目信息" prop="isTxtz" :rules="[{required: true, message:'请选择是否已完善项目信息', trigger:'blur'}]">
|
|
@@ -198,6 +162,7 @@
|
|
|
import SelectUserTree from '@/views/modules/utils/treeUserSelect'
|
|
|
import ProofreadIssuedService from '@/api/sys/ProofreadIssuedService'
|
|
|
import ProgramProjectListInfoService from '@/api/program/ProgramProjectListInfoService'
|
|
|
+ import ProgramServiceTypeService from '@/api/program/ProgramServiceTypeService'
|
|
|
export default {
|
|
|
props: {
|
|
|
businessId: {
|
|
@@ -207,6 +172,10 @@
|
|
|
formReadOnly: {
|
|
|
type: Boolean,
|
|
|
default: false
|
|
|
+ },
|
|
|
+ status: {
|
|
|
+ type: String,
|
|
|
+ default: ''
|
|
|
}
|
|
|
},
|
|
|
data () {
|
|
@@ -235,47 +204,32 @@
|
|
|
status: '',
|
|
|
agreeTime: '',
|
|
|
agreeUserId: '',
|
|
|
- reportType: ''
|
|
|
+ reportType: '',
|
|
|
+ serviceType: ''
|
|
|
},
|
|
|
keyWatch: '',
|
|
|
yesOrNo: [
|
|
|
{value: 0, label: '否'},
|
|
|
{value: 1, label: '是'}
|
|
|
],
|
|
|
- AList: [
|
|
|
- {name: '经济行为涉及上市公司及其子公司的资产组合、无形资产、企业价值(包括业务及资产组)评估业务'},
|
|
|
- {name: '上市公司及其合并报表范围内的下属公司财务报告目的的评估及咨询业务'},
|
|
|
- {name: '经济行为涉及上市公司及其合并报表范围内的下属公司的除本条第(一)款规定之外的评估业务'},
|
|
|
- {name: '经济行为涉及非上市证券公司、非上市期货公司、非上市公众公司、拟上市公司及其合并报表范围内的下属公司的评估业务'},
|
|
|
- {name: '其中:非国有企业改制设立股份公司评估业务'}
|
|
|
- ],
|
|
|
- BList: [
|
|
|
- {name: '除A类业务以外的无形资产评估业务'},
|
|
|
- {name: '除A类业务以外的资产组合评估业务'},
|
|
|
- {name: '除A类业务以外的企业价值评估业务'},
|
|
|
- {name: '除A类业务以外的报务报告目的评估业务'},
|
|
|
- {name: '除A类业务以外的抵押担保目的评估业务'},
|
|
|
- {name: '除A类以外的,涉及上市公司、证券公司、期货公司、非上市公众公司、拟上市公司及其下属公司不用于市场交易的复核评估、追溯评估和咨询评估业务'},
|
|
|
- {name: '除A类以外的涉及国有企业与非国有企业之间的交易行为的评估业务及相关的复核评估、追溯评估和咨询评估业务'},
|
|
|
- {name: '金融企业(包括银行、保险公司、信托投资公司、基金管理公司、租赁公司等)的评估业务'},
|
|
|
- {name: '评估经验较少的新领域评估业务'}
|
|
|
- ],
|
|
|
- CList: [
|
|
|
- {name: '除A、B类业务以外的经济行为涉及单项资产的评估业务'},
|
|
|
- {name: '除A、B类业务以外的不用于市场交易的复核评估、追溯评估和咨询评估业务'}
|
|
|
- ],
|
|
|
- tabName: ''
|
|
|
+ typeList: [],
|
|
|
+ tabName: '',
|
|
|
+ chooseTableIndex: '',
|
|
|
+ isDisabled: ''
|
|
|
}
|
|
|
},
|
|
|
proofreadIssuedService: null,
|
|
|
programProjectListInfoService: null,
|
|
|
+ programServiceTypeService: null,
|
|
|
created () {
|
|
|
+ this.programServiceTypeService = new ProgramServiceTypeService()
|
|
|
this.proofreadIssuedService = new ProofreadIssuedService()
|
|
|
this.programProjectListInfoService = new ProgramProjectListInfoService()
|
|
|
this.proofreadIssuedService.findProjectInfoById(this.businessId).then(({data}) => {
|
|
|
this.inputForm = this.recover(this.inputForm, data)
|
|
|
this.inputForm = JSON.parse(JSON.stringify(this.inputForm))
|
|
|
})
|
|
|
+ this.getTypeList() // 获取业务类型数据
|
|
|
},
|
|
|
computed: {
|
|
|
bus: {
|
|
@@ -312,6 +266,9 @@
|
|
|
init (method, id, tabName) {
|
|
|
this.tabName = tabName
|
|
|
this.method = method
|
|
|
+ if (method === 'view') {
|
|
|
+ this.isDisabled = 'view'
|
|
|
+ }
|
|
|
this.inputForm = {
|
|
|
id: '',
|
|
|
projectId: '',
|
|
@@ -332,11 +289,13 @@
|
|
|
status: '',
|
|
|
agreeTime: '',
|
|
|
agreeUserId: '',
|
|
|
- reportType: ''
|
|
|
+ reportType: '',
|
|
|
+ serviceType: ''
|
|
|
}
|
|
|
this.inputForm.projectId = id
|
|
|
this.visible = true
|
|
|
this.loading = false
|
|
|
+ this.getTypeList() // 获取业务类型数据
|
|
|
this.$nextTick(() => {
|
|
|
this.loading = true
|
|
|
this.proofreadIssuedService.findById(this.inputForm.projectId).then(({data}) => {
|
|
@@ -344,17 +303,25 @@
|
|
|
this.$refs.inputForm.resetFields()
|
|
|
this.inputForm = this.recover(this.inputForm, data)
|
|
|
this.inputForm = JSON.parse(JSON.stringify(this.inputForm))
|
|
|
+ this.chooseRow() // 选中行
|
|
|
this.loading = false
|
|
|
} else {
|
|
|
this.proofreadIssuedService.findProjectInfoById(this.inputForm.projectId).then(({data}) => {
|
|
|
this.inputForm = this.recover(this.inputForm, data)
|
|
|
this.inputForm = JSON.parse(JSON.stringify(this.inputForm))
|
|
|
+ this.chooseRow() // 选中行
|
|
|
this.loading = false
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
+ // 获取业务类型数据
|
|
|
+ getTypeList () {
|
|
|
+ this.programServiceTypeService.getList().then(({data}) => {
|
|
|
+ this.typeList = data
|
|
|
+ })
|
|
|
+ },
|
|
|
reapplyForm (callback) {
|
|
|
this.proofreadIssuedService.findById(this.inputForm.id).then(({data}) => {
|
|
|
if (data.status !== '4') { // 审核状态不是“驳回”,就弹出提示
|
|
@@ -497,8 +464,11 @@
|
|
|
status: '',
|
|
|
agreeTime: '',
|
|
|
agreeUserId: '',
|
|
|
- reportType: ''
|
|
|
+ reportType: '',
|
|
|
+ serviceType: ''
|
|
|
}
|
|
|
+ this.chooseTableIndex = ''
|
|
|
+ this.typeList = []
|
|
|
this.$refs.inputForm.resetFields()
|
|
|
this.visible = false
|
|
|
},
|
|
@@ -516,6 +486,57 @@
|
|
|
console.log(err.response)
|
|
|
}
|
|
|
})
|
|
|
+ },
|
|
|
+ // 业务类别表格值改变事件
|
|
|
+ radioChangeEvent (event, tableIndex) {
|
|
|
+ if (this.status === 'audit' || this.status === 'taskFormDetail' || this.isDisabled === 'view') { // 数据审核页面或详情页面 不允许修改数据时
|
|
|
+ if (this.commonJS.isNotEmpty(this.chooseTableIndex)) { // chooseTableIndex有值,说明数据有默认值
|
|
|
+ if (tableIndex === this.chooseTableIndex) { // 选中行是默认数据所属的表,不允许切换
|
|
|
+ this.$refs.table[tableIndex].setRadioRow(event.oldValue) // 将表中的选择重新赋值上一个选择,达到未切换的目的
|
|
|
+ } else { // 选中行不是默认数据所属的表,不允许切换
|
|
|
+ this.$refs.table[tableIndex].clearRadioRow() // 清空表中的选项,达到未切换数据的目的
|
|
|
+ }
|
|
|
+ } else { // chooseTableIndex没有值,说明数据没有默认值,清空表中的选项
|
|
|
+ this.$refs.table[tableIndex].clearRadioRow()
|
|
|
+ }
|
|
|
+ } else { // 允许修改数据时
|
|
|
+ // 清除其他表格的选择
|
|
|
+ this.typeList.forEach((item, index) => {
|
|
|
+ if (index !== tableIndex) {
|
|
|
+ this.$refs.table[index].clearRadioRow()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ // 绑定表格的选择
|
|
|
+ this.inputForm.serviceType = event.row.id
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 单选框是否禁用
|
|
|
+ // tableCheckMethod () {
|
|
|
+ // console.log('禁用')
|
|
|
+ // if (this.status === 'audit' || this.status === 'taskFormDetail') {
|
|
|
+ // return false
|
|
|
+ // }
|
|
|
+ // return true
|
|
|
+ // },
|
|
|
+ chooseRow () {
|
|
|
+ if (this.commonJS.isNotEmpty(this.inputForm.serviceType)) {
|
|
|
+ if (this.commonJS.isNotEmpty(this.typeList)) {
|
|
|
+ this.typeList.forEach((item, index) => { // 遍历出表格(A类、B类等表格)
|
|
|
+ if (this.commonJS.isNotEmpty(item.childrenList)) { // 每个表格中的数据遍历出来(A类表格中的数据、B类表格中的数据等等...)
|
|
|
+ item.childrenList.forEach((child) => {
|
|
|
+ if (child.id === this.inputForm.serviceType) { // 如果表格中的数据等于查询到的业务类型,说明要将这条数据选中
|
|
|
+ this.$refs.table[index].setRadioRow(child) // 将数据改为选中状态
|
|
|
+ this.chooseTableIndex = index // 获取选中数据属于哪个表格
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 关闭父页面时调用此方法
|
|
|
+ closeThis () {
|
|
|
+ this.close()
|
|
|
}
|
|
|
}
|
|
|
}
|