Files
UNION_NSI/target/classes/views/platform/proposal/transact/case.html
T
2026-09-08 19:49:21 +08:00

780 lines
40 KiB
HTML

<!--#
layout("/layouts/platform.html"){
#-->
<style>
.el-select {
width: 100%;
}
.el-dialog__body {
padding: 20px 30px 1px 30px;
}
.pro_table {
padding-left: 65px;
}
.el-table::before {
height: 0;
}
.el-table__empty-block {
background: none;
min-height: 50px;
}
.el-table__empty-text {
position: inherit;
}
.cell {
width: 100% !important;
font-size: 14px;
}
</style>
<div id="app" v-cloak>
<guava ref="guava" @vchange="vChange">
<template>
<proposal-search :page="pageForm" @search="doSearch"></proposal-search>
<el-card shadow="never" class="mt20">
<table-tool label="提案委员会立案审核" :app="this">
<template #func>
<el-button @click="mergeAudit"
:disabled="multipleSelection && multipleSelection.length >=2 ? false : true"
type="primary" v-if="!pageForm.isAudit" size="mini">并案审核
</el-button>
</template>
</table-tool>
<el-table :data="tableData" align="center" header-align="center" :row-key="(row)=>{row.id}"
:size="tableSize" @selection-change="handleSelectionChange" ref="multipleTable"
@sort-change="pageOrder">
<el-table-column
type="selection" v-if="!pageForm.isAudit"
:selectable="(row) => { return [proposal.CASE].includes(row.stateCode) }"
width="55">
</el-table-column>
<el-table-column align="center" header-align="center" label="序号" type="index" width="80">
<template scope="scope">
<span>{{ scope.$index + (pageForm.pageNumber - 1) * pageForm.pageSize + 1 }} </span>
</template>
</el-table-column>
<el-table-column
:align="column.align?column.align:'center'"
header-align="center"
v-for="column in tableColumns"
show-overflow-tooltip
:label="column.label"
:width="column.width"
:min-width="column.width"
:prop="column.prop"
:sortable="column.sortable"
>
<template v-if="column.prop=='proposalName'" scope="{row}">
<el-link type="primary" @click="openView(row)">{{row.proposalName}}</el-link>
</template>
<template v-else-if="column.prop=='isConjoin'" scope="{row}">
<span :style="row.isConjoin === 1 ? 'color: #236eb4' : ''">{{[proposal.CASE].includes(row.stateCode) ? '暂无' : row.isConjoin === 1 ? '是' : '否'}}</span>
</template>
<template v-else-if="column.prop=='auditState'" scope="{row}">
<span v-if="![proposal.CASE].includes(row.stateCode)">已审核</span>
<span v-else>待审核</span>
</template>
<template v-else-if="column.prop=='resultName'" scope="{row}">
<el-link type="primary">
{{row.resultName ? row.resultName:'暂未审核'}}
</el-link>
</template>
<template v-else-if="column.prop=='laLevelName'" scope="{row}">
<span>
{{[proposal.CASE].includes(row.stateCode) ? '暂无' : !row.determineTypeCode ? '否' : row.determineTypeCode === 'emphasis' ? '重点' : '普通'}}
</span>
</template>
</el-table-column>
<el-table-column align="center" header-align="center" label="操作" fixed="right" width="220px">
<template scope="{row}">
<el-button type="primary" size="mini" @click="mergeIndex = 0; openView(row)">
查看
</el-button>
<el-button type="primary" size="mini"
v-if="[proposal.CASE].includes(row.stateCode)"
@click="mergeIndex = 0; openAudit(row.id,row)">
审核
</el-button>
<!--<el-button type="primary" size="mini"
v-if="row.resultCode=='notGive'"
@click="doExport(row)">
导出
</el-button>-->
<el-button type="primary" size="mini"
v-if="![proposal.CASE].includes(row.stateCode) && row.canEdit"
@click="openEdit(row)">
编辑
</el-button>
<el-button type="danger" size="mini"
v-if="![proposal.CASE].includes(row.stateCode) && row.canEdit"
@click="revoke(row)">
撤回
</el-button>
</template>
</el-table-column>
</el-table>
<!--#include("/layouts/pagination.html"){}#-->
</el-card>
</template>
<template #edit>
<proposal-info ref="audit" label="提案委员会立案审核" handle>
<template #handle>
<el-form :model="formData" ref="auditForm" :rules="formRules" label-width="120px">
<vi-title title="审核信息"></vi-title>
<el-row gutter="20">
<el-col :span="12">
<el-form-item prop="username" label="审核人">
<el-input v-model="formData.username" readonly></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="auditTime" label="审核时间">
<el-input v-model="formData.auditTime" readonly></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="resultCode" label="立案结果">
<el-checkbox-group @change="resultCodeChange" v-model="formData.resultCode" max="1">
<el-checkbox v-for="item in resultOptions" :label="item.code" border>
{{item.name}}
</el-checkbox>
</el-checkbox-group>
<!--<template v-if="formData.resultCode === 'determine'">
<el-radio label="emphasis" v-model="formData.determineTypeCode">重点</el-radio>
<el-radio label="ordinary" v-model="formData.determineTypeCode">普通</el-radio>
</template>-->
</el-form-item>
<!-- <el-form-item prop="determineTypeCode" label=""-->
<!-- v-if="formData.resultCode === 'determine'">-->
<!-- <el-radio v-model="formData.determineTypeCode" label="emphasis">重点提案</el-radio>-->
<!-- <el-radio v-model="formData.determineTypeCode" label="ordinary">普通提案</el-radio>-->
<!-- </el-form-item>-->
</el-col>
<el-col :span="12">
<el-form-item prop="typeId" label="提案类型">
<el-select v-model="formData.typeId" filterable clearable
placeholder="提案类型">
<el-option
v-for="item in typeOptions"
:key="item.id"
:label="item.typeName"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-form-item prop="noFilingReason" label="理由列表" v-if="formData.resultCode=='notGive'">
<el-select v-model="formData.noFilingReason" filterable clearable
placeholder="请选择理由列表"
@change="formData.opinion = '';formData.opinion='经提案委员会审理,该提案不予立案。'+formData.noFilingReason">
<el-option v-for="item in noFilingReason"
:key="item"
:label="item"
:value="item">
</el-option>
</el-select>
</el-form-item>
<el-row v-if="formData.resultCode!='notGive'" gutter="20">
<el-col :span="12">
<el-form-item prop="hostUnit" label="主办单位">
<el-select v-model="formData.hostUnit" filterable clearable
placeholder="请选择主办单位">
<el-option v-for="item in unitOptions"
:key="item.id"
:label="item.unitName"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="主办单位领导" v-if="formData.hostUnit">
<el-input v-model="hostUnitLeader" readonly></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row v-if="formData.resultCode!='notGive'" gutter="20">
<el-col :span="12">
<el-form-item prop="helpUnit" label="协办单位">
<el-select v-model="formData.helpUnit" multiple filterable clearable
placeholder="请选择协办单位">
<el-option v-for="item in unitOptions"
:key="item.id"
:label="item.unitName"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="协办单位领导"
v-if="formData.helpUnit && formData.helpUnit.length>0">
<el-input v-model="helpUnitLeader" readonly></el-input>
</el-form-item>
</el-col>
</el-row>
<el-form-item prop="opinion" label="审核意见">
<el-input type="textarea" v-model="formData.opinion" rows="4" maxlength="500"
placeholder="请填写您的审核意见"></el-input>
</el-form-item>
<!--<el-form-item v-if="isSign()" prop="sign" label="签&emsp;&emsp;字">
<sign prefix="proposal" :qz.sync="formData.sign"></sign>
</el-form-item>-->
<el-row style="margin: 40px 0;text-align: right">
<!-- <el-tooltip content="退回到团长" placement="top">-->
<!-- <el-button type="warning" :disabled="submitDisabled" @click="doAudit(2)">退回修改-->
<!-- </el-button>-->
<!-- </el-tooltip>-->
<el-button @click="$refs.guava.index()">取消</el-button>
<el-button type="primary" :disabled="submitDisabled" @click="doAudit(1)">提交</el-button>
</el-row>
</el-form>
</template>
</proposal-info>
</template>
<template #view>
<proposal-info ref="info"></proposal-info>
</template>
</guava>
<el-dialog
:title="diatitle" ref="dialog" @closed="diaClosed"
:visible.sync="dialogVisible"
width="70%" top="5.3vh">
<!--并案信息-->
<vi-title style="margin-bottom: 16px !important;"
:title="proTableData.length > 1 ? '并案信息' : '提案信息'"></vi-title>
<el-table size="small" class="pro_table" :data="proTableData" tooltip-effect="dark" style="width: 100%">
<el-table-column width="200" align="left" header-align="left" prop="proposalCode"
label="提案编号"></el-table-column>
<el-table-column width="200" align="left" header-align="left" prop="username" label="提案人"
show-overflow-tooltip></el-table-column>
<el-table-column align="left" header-align="left" prop="proposalName" label="提案名称"
show-overflow-tooltip>
<template slot-scope="{row}">
<span @click="openDialog(row)" style="color: #236eb4; cursor: pointer; text-decoration: underline">{{row.proposalName}}</span>
</template>
</el-table-column>
<el-table-column label="操作">
<template slot-scope="scope">
<el-button v-if="editRow.id !== scope.row.id" size="mini" type="danger"
@click="delProposal(scope.row, scope.$index)">移除
</el-button>
</template>
</el-table-column>
</el-table>
<!--审核信息-->
<el-form style="margin-top: 20px" :model="formData" ref="auditForm" :rules="formRules" label-width="120px">
<vi-title style="margin-bottom: 16px !important;" title="审核信息"></vi-title>
<el-row gutter="20">
<el-col :span="12">
<el-form-item prop="username" label="审核人">
<el-input v-model="formData.username" readonly></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="auditTime" label="审核时间">
<el-input v-model="formData.auditTime" readonly></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item prop="resultCode" label="立案结果">
<el-checkbox-group @change="resultCodeChange" v-model="formData.resultCode" max="1">
<el-checkbox v-for="item in resultOptions" :label="item.code" border>
{{item.name}}
</el-checkbox>
</el-checkbox-group>
<!-- <template v-if="formData.resultCode === 'determine'">
<el-radio label="emphasis" v-model="formData.determineTypeCode">重点
</el-radio>
<el-radio label="ordinary" v-model="formData.determineTypeCode">普通
</el-radio>
</template>-->
</el-form-item>
<!-- <el-form-item prop="determineTypeCode" label=""-->
<!-- v-if="formData.resultCode === 'determine'">-->
<!-- <el-radio v-model="formData.determineTypeCode" label="emphasis">重点提案</el-radio>-->
<!-- <el-radio v-model="formData.determineTypeCode" label="ordinary">普通提案</el-radio>-->
<!-- </el-form-item>-->
</el-col>
<el-col :span="12">
<el-form-item prop="typeId" label="提案类型">
<el-select v-model="formData.typeId" filterable clearable
placeholder="提案类型">
<el-option
v-for="item in typeOptions"
:key="item.id"
:label="item.typeName"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-form-item prop="noFilingReason" label="理由列表" v-if="formData.resultCode=='notGive'">
<el-select v-model="formData.noFilingReason" filterable clearable placeholder="请选择理由列表"
@change="formData.opinion = '';formData.opinion='经提案委员会审理,该提案不予立案。'+formData.noFilingReason">
<el-option v-for="item in noFilingReason"
:key="item"
:label="item"
:value="item">
</el-option>
</el-select>
</el-form-item>
<el-row v-if="formData.resultCode!='notGive'" gutter="20">
<el-col :span="12">
<el-form-item prop="hostUnit" label="主办单位">
<el-select v-model="formData.hostUnit" filterable clearable placeholder="请选择主办单位">
<el-option v-for="item in unitOptions"
:key="item.id"
:label="item.unitName"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="主办单位领导" v-if="formData.hostUnit">
<el-input v-model="hostUnitLeader" readonly=""></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row v-if="formData.resultCode!='notGive'" gutter="20">
<el-col :span="12">
<el-form-item prop="helpUnit" label="协办单位">
<el-select v-model="formData.helpUnit" multiple filterable clearable
placeholder="请选择协办单位">
<el-option v-for="item in unitOptions"
:key="item.id"
:label="item.unitName"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="协办单位领导" v-if="formData.helpUnit && formData.helpUnit.length>0">
<el-input v-model="helpUnitLeader" readonly=""></el-input>
</el-form-item>
</el-col>
</el-row>
<el-form-item prop="opinion" label="审核意见">
<el-input type="textarea" v-model="formData.opinion" rows="4" maxlength="500"
placeholder="请填写您的审核意见"></el-input>
</el-form-item>
<!--<el-form-item v-if="isSign()" prop="sign" label="签&emsp;&emsp;字">
<sign prefix="proposal" :qz.sync="formData.sign"></sign>
</el-form-item>-->
<el-row style="margin: 40px 0;text-align: right">
<el-button @click="dialogVisible = false">取消</el-button>
<el-tooltip content="退回到团长" placement="top">
<el-button type="warning" :disabled="submitDisabled" @click="doAudit(2)">退回修改
</el-button>
</el-tooltip>
<el-button type="primary" :disabled="submitDisabled" @click="doAudit(1)">提交</el-button>
</el-row>
</el-form>
</el-dialog>
</div>
<script>
var vue = new Vue({
el: '#app',
mixins: [initTableMixins],
components: {
'sign': httpVueLoader('/components/sign/sign.vue?v=2.0.0'),
'proposal-info': httpVueLoader('/components/proposal/ProposalInfo.vue'),
'proposal-search': httpVueLoader('/components/proposal/ProposalSearch.vue'),
'proposal-table': httpVueLoader('/components/proposal/ProposalTable.vue')
},
computed: {
hostUnitLeader() {
const hostUnit = this.unitOptions.find(v => v.id === this.formData.hostUnit)
return hostUnit ? hostUnit.leader : '无'
},
helpUnitLeader() {
const helpUnits = this.unitOptions.filter(v => this.formData.helpUnit.includes(v.id)).map(v => {
return v.leader ? v.leader : '无'
})
return helpUnits && helpUnits.length > 0 ? helpUnits.toString() : '无'
}
},
data() {
return {
buttonIndex: 0,
proTableData: [],
diatitle: '',
mergeIndex: 0,
dialogVisible: false,
isSign: () => {
return proposal.needSignState.map(v => v.stateCode).includes(proposal.CASE)
},
tableColumns: [
{prop: 'proposalCode', label: '提案编号', width: "120", sortable: true, disabled: true},
{prop: 'proposalName', label: '提案名称', width: "300", disabled: true},
{prop: 'username', label: '提案人', disabled: true},
{prop: 'typeCode', label: '提案类型编码', sortable: true, checked: 0},
{prop: 'typeName', label: '提案类型', sortable: true},
{prop: 'mannerCode', label: '提案方式编码', sortable: true, checked: 0},
{prop: 'mannerName', label: '提案方式', sortable: true},
{prop: 'meetingName', label: '届次', sortable: true, checked: 0},
{prop: 'delegationCode', label: '代表团编码', sortable: true, checked: 0},
{prop: 'delegationName', label: '代表团', sortable: true, checked: 0},
{prop: 'resultName', label: '立案结果', sortable: true},
{prop: 'isConjoin', label: '是否并案', sortable: true},
// {prop: 'laLevelName', label: '是否重点', sortable: true},
{prop: 'stateName', label: '提案状态', sortable: true},
{prop: 'auditState', label: '审核状态', sortable: true},
],
typeOptions: [],
noFilingReason: [],
config: {},
unitOptions: [],
resultOptions: [],
submitDisabled: false,
pageForm: {searchName: 'proposalName', isAudit: false},
formData: {
flag: true,
username: "${@shiro.getPrincipalProperty('username')}",
loginName: "${@shiro.getPrincipalProperty('loginname')}",
auditTime: moment().format('YYYY-MM-DD'),
resultCode: [],
hostUnit: '',
helpUnit: '',
opinion: '经提案委员会审理,该提案返回修改。',
typeId: '',
determineTypeCode: ''
},
formRules: {
// resultCode: [{required: true, message: '请选择立案结果', trigger: ['blur', 'change']}],
// hostUnit: [{required: true, message: '请选择主办单位', trigger: ['blur', 'change']}],
opinion: [{required: true, message: '请输入审核意见', trigger: ['blur', 'change']}],
typeId: [{required: true, message: '请输入提案类型', trigger: ['blur', 'change']}],
sign: [{required: true, message: '请扫描二维码进行签字', trigger: ['blur', 'change']}]
},
multipleSelection: [],
editRow: {},
conJoinProposal: [],
}
},
methods: {
diaClosed() {
this.editRow = ''
this.formData = {
flag: true,
username: "${@shiro.getPrincipalProperty('username')}",
loginName: "${@shiro.getPrincipalProperty('loginname')}",
auditTime: moment().format('YYYY-MM-DD'),
resultCode: [],
hostUnit: '',
helpUnit: '',
opinion: '经提案委员会审理,该提案返回修改。',
typeId: '',
determineTypeCode: ''
}
},
async delProposal(row, index) {
if ([proposal.CASE].includes(row.stateCode)) {
if (this.multipleSelection.length <= 2) {
this.$notify.warning({title: '警告', message: '并案审核时提案个数最少为2个'});
return
}
this.proTableData = this.multipleSelection.filter(o => o.id !== row.id)
this.$refs.multipleTable.toggleRowSelection(row);
} else {
if (this.proTableData.length <= 2) {
this.$notify.warning({title: '警告', message: '并案审核时提案个数最少为2个'});
return
}
const confirm = await this.$confirm('是否把' + row.proposalName + '移除并案,请确认!', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
if (confirm === 'confirm') {
this.proTableData = this.proTableData.filter(o => o.id !== row.id)
}
}
},
async openEdit(row) {
this.diatitle = '编辑'
this.buttonIndex = 2
this.editRow = row
const resp = await $.get('/platform/proposal/common/findConjoinProposal', {proposalId: row.id})
this.conJoinProposal = resp.data
this.proTableData = resp.data.filter(o => {
return o.id !== row.id
})
this.proTableData.unshift(row)
const re = await $.get(loc() + '/backShow', {proposalId: row.id})
this.formData.hostUnit = re.data.hostUnitId
this.formData.helpUnit = re.data.helpUnitIds
this.formData.username = re.data.caseAuditRecord.username
this.formData.auditTime = re.data.caseAuditRecord.auditTime
if (re.data.caseAuditRecord.opinion) {
this.formData.opinion = re.data.caseAuditRecord.opinion
}
if (re.data.basic_info.resultCode) {
this.formData.resultCode.push(re.data.basic_info.resultCode)
}
this.formData.determineTypeCode = re.data.basic_info.determineTypeCode
this.formData.typeId = re.data.basic_info.typeId
this.formData.typeId = re.data.basic_info.typeId
this.dialogVisible = true
},
async revoke(o) {
const str = o.isConjoin === 0 ? '您确定要撤销吗?' : '此操作将撤销合并的提案,您确定要撤销吗?'
const confirm = await this.$confirm(str, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
if (confirm === 'confirm') {
const resp = await $.post(loc() + '/revoke', {proposalId: o.id})
if (resp.code === 0) {
this.$notify.success({title: '成功', message: resp.msg});
this.pageData()
} else {
this.$notify.error({title: '失败', message: resp.msg});
}
}
},
vChange(value) {
if (value.newValue === 'index' && this.multipleSelection.length > 0 && this.mergeIndex === 1) {
this.dialogVisible = true
}
},
openDialog(item) {
this.openView(item)
this.dialogVisible = false
},
mergeAudit() {
this.diatitle = '并案审核'
this.buttonIndex = 1
if (this.multipleSelection && this.multipleSelection.length === 0) {
this.$notify.warning({title: '警告', message: '并案审核需要先在多选框中选择提案'});
return
}
this.mergeIndex = 1
this.formData.typeId = this.multipleSelection[0].typeId
this.proTableData = this.multipleSelection
this.dialogVisible = true
},
handleSelectionChange(row) {
this.multipleSelection = row;
},
resultCodeChange(code) {
if (code && code.length > 0) {
if (code[0] === "opinion") {
this.$set(this.formData, "opinion", "经提案委员会审理,该提案作为意见建议。")
} else if (code[0] === "notGive") {
this.$set(this.formData, "opinion", "经提案委员会审理,该提案不予立案。")
} else if (code[0] === "determine") {
this.$set(this.formData, "opinion", "经提案委员会审理,该提案确定立案。")
} else {
this.$set(this.formData, "opinion", "经提案委员会审理,该提案立案解释。")
}
} else {
this.$set(this.formData, "opinion", "经提案委员会审理,该提案返回修改。")
}
},
dropdownCommand(command) {
const {type, data} = command
if (type === 'view') {
this.openView(data)
} else if (type === 'audit') {
this.openAudit(data.id, data)
}
},
doExport(row) {
window.open(loc() + "/doExport?proposalId=" + row.id)
},
async openView(row) {
this.$refs.guava.view()
this.$refs.info.openView(row.id)
},
async openAudit(id, pro_data) {
if (this.$refs['auditForm']) {
this.$refs['auditForm'].resetFields()
}
this.buttonIndex = 0
this.formData.proposalId = id
this.formData.typeId = pro_data.typeId
this.$set(this.formData, "determineTypeCode", "")
this.$refs.guava.edit()
this.$refs.audit.openView(id)
},
async doAudit(flag) {
let formValid = true
this.$refs["auditForm"].validate(async valid => formValid = valid)
if (formValid) {
const exist = this.formData.helpUnit.find(v => {
return v === this.formData.hostUnit
})
if (flag === 1) {
if (this.formData.hostUnit === '' && this.formData.resultCode.length > 0 && this.formData.resultCode[0] !== 'notGive') {
this.$notify.warning({title: '警告', message: '主办单位必填!请检查确认后提交'});
return
}
if (this.formData.resultCode.length === 0) {
this.$notify.warning({title: '警告', message: '立案结果必填!请检查确认后提交'});
return
}
}
if (exist) {
this.$notify.warning({
title: '警告',
message: '协办单位中存在您已选择的主办单位!请检查确认后提交'
});
return
}
let msg = ''
if (this.formData.resultCode.length > 0 && this.formData.resultCode[0] === 'notGive' && flag === 1) {
msg = '该提案不予立案,提交后将完结,请确认!'
} else {
if (this.multipleSelection.length > 1) {
msg = '将有(' + this.multipleSelection.length + ')个提案进行并案处理,请确认!'
} else if (flag === 2) {
msg = '请确认是否退回到团长!'
} else {
msg = '请确认是否提交该提案!'
}
}
// switch (this.formData.resultCode) {
// case "notGive": {
// msg = '该提案不予立案,提交后将完结,请确认!'
// break
// }
// default: {
// msg = '将有(' + this.multipleSelection.length + ')个提案进行并案处理,请确认!'
// }
// }
this.$confirm(msg, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(async () => {
this.submitDisabled = true
const loading = this.$loading({
lock: true,
text: '正在提交...',
spinner: 'el-icon-loading',
background: COVER_LAYER_COLOR
});
const url = loc() + (this.editRow.stateCode !== undefined && this.editRow.stateCode > 300 ? '/edit' : '/audit')
let proposalIds = ''
let auditType = ''
// 0 => 进行单个审核操作
// 1 => 进行并案审核操作
// 2 => 进行编辑操作
if (this.buttonIndex === 0) {
auditType = 'one'
proposalIds = JSON.stringify([this.formData.proposalId])
} else if (this.buttonIndex === 1) {
auditType = 'many'
proposalIds = JSON.stringify(this.multipleSelection.map(o => {
return o.id
}))
} else {
auditType = this.editRow.isConjoin === 0 ? 'one' : 'many'
proposalIds = JSON.stringify(this.proTableData.map(o => o.id))
}
const resp = await $.post(url, {
audit: JSON.stringify(this.formData),
resultCode: this.formData.resultCode && this.formData.resultCode.length > 0 ? this.formData.resultCode[0] : '',
typeId: this.formData.typeId,
hostUnit: this.formData.hostUnit,
helpUnit: JSON.stringify(this.formData.helpUnit),
sign: this.formData.sign,
determineTypeCode: this.formData.determineTypeCode,
proposalIds: proposalIds,
auditType: auditType,
flag: flag
})
if (resp.code === 0) {
this.$notify.success({title: '成功', message: resp.msg});
this.pageData()
this.$refs.guava.index()
} else {
this.$notify.error({title: '失败', message: resp.msg});
}
loading.close()
this.dialogVisible = false
this.submitDisabled = false
}).catch()
}
},
async getProposalUndertakeAndLeaderInfo() {
const resp = await $.get(loc() + '/getUnderTakeAndLeader')
return resp.code === 0 ? resp.data : []
}
},
async created() {
this.resultOptions = await getDictByCode("proposal_result")
this.unitOptions = await this.getProposalUndertakeAndLeaderInfo()
// this.unitOptions = await proposal.getProposalUndertake()
this.config = await proposal.getProposalConfig()
this.typeOptions = await proposal.getProposalType()
this.noFilingReason = this.config.noFilingReason
await proposal.initData(this)
},
watch: {}
})
</script>
<!--#
}
#-->