first commit

This commit is contained in:
2026-09-20 15:46:34 +08:00
parent 72fb5eae10
commit e558339dcc
3340 changed files with 671310 additions and 251 deletions
@@ -0,0 +1,189 @@
<!--#
layout("/layouts/platform.html"){
#-->
<style>
.el-radio-group {
vertical-align: unset !important;
}
</style>
<div id="app" v-clock>
<guava ref="guava">
<syr-table auditval="审核" ref="syrTable" request="/platfotm/syr/info/pwlxps/pageData">
<template slot="operation">
<el-table-column label="操作" fixed="right" width="100">
<template slot-scope="{row}">
<!--如果是超管 根据状态来判断评委是否都评审完-->
<el-button v-if="hasAdminRole"
size="mini"
:type="row.state>40?null:'primary'"
@click="openView(row,row.state>40)">
{{row.state>40?'查看':'评审'}}
</el-button>
<!--如果是评委-->
<el-button v-else
size="mini"
:type="row.isps>0?null:'primary'"
@click="openView(row,row.isps>0)">
{{row.isps>0?'查看':'评审'}}
</el-button>
</template>
</el-table-column>
</template>
</syr-table>
<template #edit>
<syr-info-new ref="auditInfo">
<template #handle>
<el-tab-pane label="评委立项评审" name="pwlxps">
<el-form :model="formData" :rules="rules" label-suffix=":" label-width="100px" ref="form">
<el-row type="flex">
<el-col>
<el-form-item label="评委" prop="pwid">
<span v-if="hasAdminRole">
<el-select v-model="formData.pwid">
<el-option v-for="u in userList"
:value="u.userid"
:key="u.userid"
:label="u.username + '-' +u.loginname">
</el-option>
</el-select>
</span>
<span v-else>
${@shiro.getPrincipalProperty('username')}
</span>
</el-form-item>
</el-col>
<el-col>
<el-form-item label="审核时间">
{{moment().format('YYYY-MM-DD')}}
</el-form-item>
</el-col>
</el-row>
<el-row type="flex">
<el-col>
<el-form-item label="建议立项" prop="isjylx">
<el-radio-group v-model="formData.isjylx">
<el-radio label="1" value="1">是</el-radio>
<el-radio label="0" value="0">否</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
<el-col>
<el-form-item label="立项等次" prop="lxlevel" v-if="formData.isjylx==='1'">
<el-radio-group v-model="formData.lxlevel">
<el-radio label="2000" value="2000">2000元</el-radio>
<el-radio label="3000" value="3000">3000元</el-radio>
<el-radio label="5000" value="5000">5000元</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
</el-row>
<el-form-item label="评审意见" prop="psyj">
<el-input maxlength="50" rows="5" show-word-limit type="textarea"
v-model="formData.psyj"></el-input>
</el-form-item>
</el-form>
<el-row class="mt20 text-center">
<el-button @click="$refs.guava.index()">返 回</el-button>
<el-button @click="doHandle" type="primary">确 定</el-button>
</el-row>
</el-tab-pane>
</template>
</syr-info-new>
</template>
<template #view>
<syr-info-new ref="viewInfo"></syr-info-new>
</template>
</guava>
</div>
<script>
let vue = new Vue({
el: '#app',
mixins: [initTableMixins],
data() {
return {
smm: {
status: 'table'
},
formData: {},
searchData: {
unionid: '',
unitid: ''
},
userList: [],
rules: {
pwid: [{required: true, message: '请选择评委', trigger: ['blur', 'change']}],
psyj: [{required: true, message: '请输入评审意见', trigger: ['blur', 'change']}]
},
//拥有其它权限吗 校管 超管
hasAdminRole: false
}
},
components: {
'syr-table': httpVueLoader('/components/syr/syrtable.vue'),
'syr-info': httpVueLoader('/components/syr/syrinfo.vue'),
'syr-info-new': httpVueLoader('/components/syr/SyrInfoNew.vue'),
},
methods: {
openView(row, isView) {
if (isView) {
this.$refs.guava.view()
this.$refs.viewInfo.openView(row.id)
} else {
this.$refs.guava.edit()
this.$refs.auditInfo.openView(row.id, 'pwlxps')
this.formData = {
xmid: row.id,
isjylx: '1',
lxlevel: '2000',
psyj: '',
pwid: this.hasAdminRole ? '' : "${@shiro.getPrincipalProperty('id')}"
}
this.getWpsPwList(row.id)
}
},
async doHandle() {
try {
const valid = await this.$refs['form'].validate()
if (valid) {
const resp = await $.post('/platfotm/syr/info/pwlxps/doHandle', this.formData)
if (resp.code === 0) {
this.$refs.guava.index()
this.notifySuccess(resp.msg)
this.$refs['syrTable'].doSearch()
}
}
} catch (e) {
console.log(e)
}
// this.$refs['form'].validate(async valid => {
// if (valid) {
// await POST('/platfotm/syr/info/pwlxps/doHandle', this.formData)
// this.smm = {
// status: 'table',
// showpane: [1, 2, 3, 4]
// }
// }
// })
},
async getWpsPwList(xmid) {
const {data} = await GET('/platfotm/syr/info/pwlxps/getWpsPwList', {xmid: xmid})
this.userList = data
}
},
async created() {
if (${@shiro.hasRole('sysadmin')} || ${@shiro.hasRole('A06')}) {
this.hasAdminRole = true
}
}
})
</script>
<!--#
}
#-->