Files
UNION_HUTB/target/classes/views/platform/proposal/transact/caseRead.html
T
2026-09-09 09:14:28 +08:00

295 lines
14 KiB
HTML

<!--#
layout("/layouts/platform.html"){
#-->
<style></style>
<div id="app" v-cloak>
<guava ref="guava">
<template>
<proposal-search :page="pageForm" @search="doSearch"></proposal-search>
<el-card class="mt20" shadow="never">
<table-tool :app="this" label="委员查阅提案">
<template #func>
<el-button @click="doSend()" icon="el-icon-message" size="small" type="primary"
v-if="${@shiro.hasRole('sysadmin')||@shiro.hasRole('tamange')}">
发送消息
</el-button>
<el-button @click="doExport()" icon="el-icon-message" size="small" type="primary"
v-if="${@shiro.hasRole('sysadmin')||@shiro.hasRole('tamange')}">
导出
</el-button>
</template>
</table-tool>
<el-table :data="tableData" :row-key="(row)=>{row.id}" :size="tableSize" @sort-change="pageOrder"
align="center"
header-align="center">
<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
:label="column.label"
:prop="column.prop"
:sortable="column.sortable"
:width="column.width"
align="center"
header-align="center"
show-overflow-tooltip
v-for="column in tableColumns"
>
<template scope="{row}" v-if="column.prop=='proposalName'">
<el-link @click="openView(row)" type="primary">{{row.proposalName}}</el-link>
</template>
<template scope="{row}" v-else-if="column.prop=='auditState'">
<span class="text-success" v-if="row.stateCode!=proposal.DELEGATION">已审核</span>
<span class="text-primary" v-if="row.stateCode==proposal.DELEGATION">待审核</span>
</template>
</el-table-column>
<el-table-column align="center" fixed="right" header-align="center" label="操作" width="200px">
<template scope="{row}">
<el-button @click="openView(row)" size="mini" type="primary">
查阅
</el-button>
<el-button @click="doRecall(row)" size="mini" type="primary" v-if="row.isOpinion">
撤回
</el-button>
<el-button @click="openAudit(row.id)" size="mini"
type="primary"
v-if="row.isOpinion==0&&[proposal.CASE].includes(row.stateCode)">
提出意见
</el-button>
</template>
</el-table-column>
</el-table>
<!--#include("/layouts/pagination.html"){}#-->
</el-card>
</template>
<template #edit>
<proposal-info handle label="委员会成员意见" ref="audit">
<template #handle>
<el-form :model="formData" :rules="formRules" label-width="120px" ref="auditForm">
<vi-title title="成员意见"></vi-title>
<el-row gutter="20">
<el-col :span="12">
<el-form-item label="审核人" prop="username">
<el-input disabled v-model="formData.username"></el-input>
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="审核时间" prop="auditTime">
<el-input disabled v-model="formData.auditTime"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-form-item label="立案意见" prop="other">
<el-radio-group v-model="formData.other">
<el-radio :label="item.code" border v-for="item in resultOptions">{{item.name}}
</el-radio>
</el-radio-group>
<template v-if="formData.other === '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 label="审核意见" prop="opinion">
<el-input maxlength="1000" placeholder="请填写您的意见" rows="4" type="textarea"
v-model="formData.opinion"></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 :disabled="submitDisabled" @click="doAudit(false)" type="primary">提 交</el-button>
</el-row>
</el-form>
</template>
</proposal-info>
</template>
<template #view>
<proposal-info ref="info"></proposal-info>
</template>
</guava>
</div>
<script>
const vue = new Vue({
el: '#app',
mixins: [initTableMixins],
components: {
'proposal-info': httpVueLoader('/components/proposal/ProposalInfo.vue'),
'proposal-search': httpVueLoader('/components/proposal/ProposalSearch.vue'),
'proposal-table': httpVueLoader('/components/proposal/ProposalTable.vue'),
},
data() {
const that = this
const isShow = (e) => {
console.log(e)
}
return {
tableColumns: [
{prop: 'oldProposalCode', label: '草案编号', width: "120", checked: 0, sortable: true},
{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, checked: 0},
{prop: 'mannerCode', label: '提案方式编码', sortable: true, checked: 0},
{prop: 'mannerName', label: '提案方式', sortable: true, checked: 0},
{prop: 'meetingName', label: '届次', sortable: true, checked: 0},
{prop: 'delegationCode', label: '代表团编码', sortable: true, checked: 0},
{prop: 'delegationName', label: '代表团', sortable: true, checked: 0},
{prop: 'stateName', label: '提案状态', sortable: true},
{prop: 'caseNum', label: '立案票数', sortable: true},
{prop: 'emphasisNum', label: '重点提案票数', sortable: true},
{prop: 'ordinaryNum', label: '普通提案票数', sortable: true},
{prop: 'opinionNum', label: '意见建议票数', sortable: true},
{prop: 'notGiveNum', label: '不予立案票数', sortable: true},
],
isSign: () => {
return proposal.needSignState.map(v => v.stateCode).includes(proposal.CASE)
},
auditUrl: base + '/platform/proposal/transact/audit',
submitDisabled: false,
pageForm: {searchName: 'proposalName', isAudit: false},
formData: {
username: "${@shiro.getPrincipalProperty('username')}",
loginName: "${@shiro.getPrincipalProperty('loginname')}",
auditTime: moment().format('YYYY-MM-DD'),
opinion: '',
sign: '',
other: 'determine'
},
formRules: {
opinion: [{required: false, message: '请输入审核意见', trigger: ['blur', 'change']}],
other: [{required: false, message: '请选择立案意见', trigger: ['blur', 'change']}]
},
resultOptions: []
}
},
methods: {
async doRecall(row) {
const confirm = await this.$confirm('此操作将会撤回您答复的内容, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
if (confirm === "confirm") {
const loading = this.$loading({
lock: true,
text: '正在提交...',
spinner: 'el-icon-loading',
background: COVER_LAYER_COLOR
});
const resp = await $.post(loc() + "/doRecall", {id: row.id})
requestLaterFun(resp, () => {
this.pageData()
this.$notify.success({title: '成功', message: resp.msg});
}, () => {
this.$notify.error({title: '失败', message: resp.msg});
}, () => {
loading.close()
})
}
},
async doSend() {
const confirm = await this.$confirm('此操作将会给提案委员会发送消息, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
if (confirm === "confirm") {
const loading = this.$loading({
lock: true,
text: '正在提交...',
spinner: 'el-icon-loading',
background: COVER_LAYER_COLOR
});
const resp = await $.post(loc() + "/doSend", {meetingId: this.pageForm.meetingId})
requestLaterFun(resp, () => {
this.$notify.success({title: '成功', message: resp.msg});
}, () => {
this.$notify.error({title: '失败', message: resp.msg});
}, () => {
loading.close()
})
}
},
doExport() {
window.open(loc() + '/doExport/' + this.pageForm.meetingId + "/" + JSON.stringify(this.tableColumns))
},
openView(row) {
this.$refs.guava.view()
this.$refs.info.openView(row.id)
},
openAudit(id) {
this.formData.proposalId = id
this.$set(this.formData, "other", "determine")
this.$set(this.formData, "determineTypeCode", "ordinary")
this.$refs.guava.edit()
this.$refs.audit.openView(id)
if (this.$refs['auditForm']) {
this.$refs['auditForm'].resetFields()
}
},
async doAudit(flag) {
this.submitDisabled = true
this.$refs["auditForm"].validate(async (valid) => {
if (valid) {
const loading = this.$loading({
lock: true,
text: '正在提交...',
spinner: 'el-icon-loading',
background: COVER_LAYER_COLOR
});
const resp = await $.post(loc() + "/putSuggestion", {
audit: JSON.stringify(this.formData),
sign: this.formData.sign,
proposalId: this.formData.proposalId,
flag: flag
})
requestLaterFun(resp, () => {
this.$notify.success({title: '成功', message: resp.msg});
this.pageData()
this.$refs.guava.index()
}, () => {
this.$notify.error({title: '失败', message: resp.msg});
}, () => {
loading.close()
this.submitDisabled = false
})
}
});
}
},
async created() {
await proposal.initData(this)
this.resultOptions = await getDictByCode("proposal_result")
}
})
</script>
<!--#
}
#-->