first commit

This commit is contained in:
2026-09-09 09:14:28 +08:00
commit 5343198112
5199 changed files with 1052895 additions and 0 deletions
@@ -0,0 +1,225 @@
<!--#
layout("/layouts/platform.html"){
#-->
<style>
.el-select {
width: 100%;
}
</style>
<div id="app" v-cloak>
<guava ref="guava">
<template>
<proposal-search :page="pageForm" @search="doSearch" title="批示"></proposal-search>
<proposal-table :data="tableData" :loading="tableLoading" :page="pageForm"
@order="pageOrder" @view="openView">
<template #column>
<el-table-column align="center" header-align="center" label="承办单位" width="200px">
<template scope="{row}">
<span>{{row.unitName}}({{row.undertakeType==1?'主办':'协办'}})</span>
</template>
</el-table-column>
<el-table-column align="center" header-align="center" label="批示状态" width="80px">
<template scope="{row}">
<span class="text-success" v-if="row.isMakePass">已批示</span>
<span class="text-primary" v-else>待批示</span>
</template>
</el-table-column>
<el-table-column align="center" fixed="right" header-align="center" label="操作" width="100px">
<template scope="{row}">
<el-dropdown @command="dropdownCommand">
<el-button plain size="mini">
<i class="ti-settings"></i>
<span class="ti-angle-down"></span>
</el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item :command="{type:'view',data:row}">
查看
</el-dropdown-item>
<el-dropdown-item :command="{type:'audit',data:row}"
v-if="[proposal.SCHOOL_LEAD_AUDIT].includes(row.stateCode)">
批示
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</template>
</el-table-column>
</template>
<template #pagination>
<!--#include("/layouts/pagination.html"){}#-->
</template>
</proposal-table>
</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="opinion">
<el-input maxlength="1000" placeholder="请填写您的审核意见" rows="4" type="textarea"
v-model="formData.opinion"></el-input>
</el-form-item>
<el-form-item label="签&emsp;&emsp;字" prop="sign" v-if="isSign">
<sign :qz.sync="formData.sign" prefix="proposal"></sign>
</el-form-item>
<el-row style="margin: 40px 0;text-align: right">
<el-button :disabled="submitDisabled" @click="doAudit(false)" type="danger">退 回</el-button>
<el-button :disabled="submitDisabled" @click="doAudit(true)" 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: {
'sign': httpVueLoader('/components/sign/sign.vue?v=2.0.0'),
'guava': httpVueLoader('/components/plugins/Guava.vue'),
'proposal-info': httpVueLoader('/components/proposal/ProposalInfo.vue'),
'proposal-search': httpVueLoader('/components/proposal/ProposalSearch.vue'),
'proposal-table': httpVueLoader('/components/proposal/ProposalTable.vue')
},
data() {
return {
isSign: false,
submitDisabled: false,
auditUrl: base + '/platform/proposal/transact/audit',
pageForm: {searchName: 'proposalName', isAudit: false},
formData: {
username: "${@shiro.getPrincipalProperty('username')}",
loginName: "${@shiro.getPrincipalProperty('loginname')}",
auditTime: moment().format('YYYY-MM-DD'),
opinion: '',
sign: '',
isBack: false
},
formRules: {
opinion: [{required: true, message: '请输入审核意见', trigger: ['blur', 'change']}]
}
}
},
methods: {
dropdownCommand(command) {
const {type, data} = command
if (type === 'view') {
this.openView(data)
} else if (type === 'audit') {
this.openAudit(data)
}
},
openView(row) {
this.$refs.guava.view()
this.$refs.info.openView(row.id)
},
openAudit(row) {
this.formData.proposalId = row.id
this.formData.replyUnitId = row.undertakeId
this.$refs.guava.edit()
this.$refs.audit.openView(row.id)
if (this.$refs['auditForm']) {
this.$refs['auditForm'].resetFields()
}
},
async doAudit(flag) {
this.$refs["auditForm"].validate(async (valid) => {
if (valid) {
this.submitDisabled = true
const loading = this.$loading({
lock: true,
text: '正在提交...',
spinner: 'el-icon-loading',
background: COVER_LAYER_COLOR
});
const resp = await $.post(this.auditUrl + "/doAudit", {
audit: JSON.stringify(this.formData),
replyUnitId: this.formData.replyUnitId,
sign: this.formData.sign,
isBack: 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
})
}
});
},
doBack() {
this.formData.isBack = true
this.doAudit()
},
async openTask() {
const proposal_id = GetQueryString("proposal_id")
const biz_key = GetQueryString("biz_key")
if (proposal_id !== '' && biz_key !== '') {
const {data} = await $.post('/platform/proposal/common/getProposalStateCode', {proposal_id})
const loading = this.$loading({
lock: true,
text: '',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
if (data !== proposal.SCHOOL_LEAD_AUDIT) {
this.pageForm.isAudit = true
this.pageData()
setTimeout(() => {
this.openView({id: proposal_id})
loading.close()
}, 800)
} else {
setTimeout(() => {
this.openAudit({id: proposal_id, undertakeId: biz_key})
loading.close()
}, 800)
}
}
}
},
async created() {
await initData(proposal.SCHOOL_LEAD_AUDIT, this)
await this.openTask()
}
})
</script>
<!--#
}
#-->