273 lines
13 KiB
HTML
273 lines
13 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 shadow="never" class="mt20">
|
|
<table-tool label="提案委员会成员查阅提案" :app="this">
|
|
<template #func>
|
|
<el-button @click="doSend" size="small" type="primary"
|
|
v-if="(${@shiro.hasRole('T01') || @shiro.hasRole('sysadmin')} && pageForm.isAudit==false)"
|
|
>一键提醒
|
|
</el-button>
|
|
</template>
|
|
</table-tool>
|
|
<el-table :data="tableData" align="center" header-align="center" :row-key="(row)=>{row.id}"
|
|
:size="tableSize"
|
|
@sort-change="pageOrder">
|
|
<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="center"
|
|
header-align="center"
|
|
v-for="column in tableColumns"
|
|
show-overflow-tooltip
|
|
:label="column.label"
|
|
: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=='auditState'" scope="{row}">
|
|
<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" header-align="center" label="操作" fixed="right" width="200px">
|
|
<template scope="{row}">
|
|
<!-- <el-button type="primary" size="mini" @click="openView(row)">-->
|
|
<!-- 查阅-->
|
|
<!-- </el-button>-->
|
|
<!-- <el-button type="primary" size="mini"-->
|
|
<!-- v-if="row.isOpinion==0&&[proposal.CASE].includes(row.stateCode)"-->
|
|
<!-- @click="openAudit(row.id)">-->
|
|
<!-- 提出意见-->
|
|
<!-- </el-button>-->
|
|
|
|
<el-button type="primary" size="mini" @click="openRead(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" disabled></el-input>
|
|
</el-form-item>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-form-item prop="auditTime" label="审核时间">
|
|
<el-input v-model="formData.auditTime" disabled></el-input>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
|
|
<el-form-item prop="other" label="立案意见">
|
|
<el-radio-group v-model="formData.other">
|
|
<el-radio v-for="item in resultOptions" :label="item.code" border>{{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 prop="opinion" label="审核意见">
|
|
<el-input type="textarea" v-model="formData.opinion" rows="4" maxlength="1000"
|
|
placeholder="请填写您的意见"></el-input>
|
|
</el-form-item>
|
|
|
|
<!-- <el-form-item v-if="isSign()" prop="sign" label="签  字">
|
|
<sign prefix="proposal" :qz.sync="formData.sign"></sign>
|
|
</el-form-item>-->
|
|
|
|
<el-row style="margin: 40px 0;text-align: right">
|
|
<el-button type="primary" :disabled="submitDisabled" @click="doAudit(false)">提 交</el-button>
|
|
</el-row>
|
|
|
|
</el-form>
|
|
</template>
|
|
</proposal-info>
|
|
</template>
|
|
|
|
|
|
<template #view>
|
|
<proposal-info ref="info"></proposal-info>
|
|
</template>
|
|
</guava>
|
|
|
|
</div>
|
|
|
|
<script>
|
|
var 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: '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: [],
|
|
oneKeyRemindDialogVisible: false,
|
|
oneKeyTableData: []
|
|
}
|
|
},
|
|
methods: {
|
|
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})
|
|
loading.close()
|
|
if(resp.code===0){
|
|
this.notifySuccess(resp.msg)
|
|
}else{
|
|
this.notifyWarning(resp.msg)
|
|
}
|
|
}
|
|
},
|
|
openRead(row) {
|
|
if (row.isOpinion === 0 && [proposal.CASE].includes(row.stateCode)) {
|
|
this.openAudit(row.id)
|
|
} else {
|
|
this.openView(row)
|
|
}
|
|
},
|
|
|
|
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
|
|
})
|
|
|
|
if(resp.code===0){
|
|
this.notifySuccess(resp.msg)
|
|
this.pageData()
|
|
this.$refs.guava.index()
|
|
}else{
|
|
this.notifyWarning(resp.msg)
|
|
}
|
|
loading.close()
|
|
this.submitDisabled = false
|
|
}
|
|
});
|
|
}
|
|
},
|
|
async created() {
|
|
await proposal.initData(this)
|
|
this.resultOptions = await getDictByCode("proposal_result")
|
|
}
|
|
})
|
|
</script>
|
|
|
|
<!--#
|
|
}
|
|
#--> |