first commit

This commit is contained in:
2026-09-08 19:49:21 +08:00
commit ebffbab428
7320 changed files with 1477614 additions and 0 deletions
+382
View File
@@ -0,0 +1,382 @@
<!--#
layout("/mobile/platform.html"){
#-->
<div id="app" v-cloak>
<van-nav-bar title="确认承办单位" fixed placeholder safe-area-inset-top></van-nav-bar>
<proposal-info :proposal_id="proposalId" title="确认承办单位" :handle="handle" ref="info">
<template #handle>
<div class="van-cell-group__title">
<div class="van-sidebar-item van-sidebar-item--select">
确认承办单位
</div>
</div>
<van-form>
<van-cell-group class="info">
<van-cell title="审核时间" :value="formData.auditTime"></van-cell>
<van-cell title="立案结果" :value="formData.resultName"></van-cell>
<template v-if="formData.resultCode!='notGive'">
<van-field
input-align="right"
readonly
v-model="formData.hostUnitName"
show-word-limit
label="主办单位"
placeholder="请选择主办单位"
@click="host_showPickerClick"
></van-field>
<van-field
autosize
input-align="right"
readonly
type="textarea"
v-model="formData.helpUnitName"
show-word-limit
label="协办单位"
placeholder="请选择协办单位"
@click="help_showPickerClick"
></van-field>
</template>
<van-field
input-align="right"
v-model="formData.opinion"
rows="2"
autosize
label="审核意见"
type="textarea"
maxlength="1000"
placeholder="请输入审核意见"
show-word-limit
></van-field>
</van-cell-group>
<van-row gutter="20" style="padding: 0 10px">
<van-col span="24">
<van-button :color="themeColor" block size="large" @click="doAudit">提交
</van-button>
</van-col>
</van-row>
</van-form>
</template>
</proposal-info>
<van-popup v-model="host_showPicker" @click-close-icon="host_dwselclose"
get-container="#app"
round position="bottom" safe-area-inset-bottom
:lazy-render="false"
:close-on-click-overlay="false" :style="{ height: '80%'}">
<div style="padding:0px 20px;margin-top:20px;box-sizing: border-box;max-height: calc(100% - 100px);overflow-y: auto">
<van-checkbox-group v-model="hostUnit" checked-color="#081776" style="font-size: 12px">
<van-cell-group>
<van-index-bar highlight-color="red" :sticky="false">
<template v-for="c,ci in unitOptions">
<van-index-anchor :index="c.k"></van-index-anchor>
<template v-for="x,xi in c.v">
<van-cell
clickable
:key="x.id"
:title="x.unitName"
@click="host_toggle(x.id,$event)"
>
<template #right-icon>
<van-checkbox :name="x" ref="host_checkboxes"></van-checkbox>
</template>
</van-cell>
</template>
</template>
</van-index-bar>
</van-cell-group>
</van-checkbox-group>
</div>
<div style="position: absolute;width: 80%;bottom: 10px;left: 50%;transform: translateX(-50%)">
<van-button :color="themeColor" block @click="host_dwselclose">确定</van-button>
</div>
</van-popup>
<van-popup v-model="help_showPicker"
@click-close-icon="help_dwselclose"
get-container="#app"
round position="bottom"
safe-area-inset-bottom
:close-on-click-overlay="false"
:lazy-render="false"
:style="{ height: '80%'}">
<div style="padding:0px 20px;margin-top:20px;box-sizing: border-box;max-height: calc(100% - 100px);overflow-y: auto">
<van-checkbox-group v-model="helpUnit" checked-color="#081776" style="font-size: 12px">
<van-cell-group>
<van-index-bar highlight-color="red" :sticky="false">
<template v-for="c,ci in unitOptions">
<van-index-anchor :index="c.k"></van-index-anchor>
<template v-for="x,xi in c.v">
<van-cell
clickable
:key="x.id"
:title="x.unitName"
@click="help_toggle(x.id)"
>
<template #right-icon>
<van-checkbox :name="x" @click.stop="help_toggle(x.id)"
ref="help_checkboxes"></van-checkbox>
</template>
</van-cell>
</template>
</template>
</van-index-bar>
</van-cell-group>
</van-checkbox-group>
</div>
<div style="position: absolute;width: 80%;bottom: 10px;left: 50%;transform: translateX(-50%)">
<van-button :color="themeColor" block @click="help_dwselclose">确定</van-button>
</div>
</van-popup>
</div>
<script>
var vue = new Vue({
el: '#app',
mixins: [mobileMixins],
data() {
return {
host_showPicker: false,
help_showPicker: false,
showPopover: false,
resultOptions: [],
handle: true,
proposalId: GetQueryString('proposal_id'),
formData: {
username: "${@shiro.getPrincipalProperty('username')}",
loginName: "${@shiro.getPrincipalProperty('loginname')}",
auditTime: moment().format('YYYY-MM-DD'),
resultCode: 'determine',
proposalId: GetQueryString('proposal_id'),
flag: true,
hostUnit: '',
helpUnit: [],
opinion: '',
hostUnitName: '',
helpUnitName: ''
},
unitList: [],
unitOptions: [],
hostUnit: [],
helpUnit: []
}
},
components: {
'proposal-info': httpVueLoader('/components/proposal/wechat/ProposalInfo.vue?v=' + new Date().getTime()),
},
methods: {
host_showPickerClick() {
this.host_showPicker = true
this.$refs.host_checkboxes.some(v => {
if (this.formData.hostUnit === v.name.id && v.checked == false) {
v.toggle()
return true
}
})
},
help_showPickerClick() {
this.help_showPicker = true
this.$refs.help_checkboxes.map(v => {
if (this.formData.helpUnit.includes(v.name.id) && v.checked == false) {
v.toggle()
}
})
},
async checkUnderTake() {
const {data} = await $.get('/platform/proposal/transact/case/checkUnderTake', {
hostUnit: this.formData.hostUnit,
helpUnit: this.formData.helpUnit
})
return data
},
async doAudit() {
if (['determine', 'opinion'].includes(this.formData.resultCode)) {
if (this.formData.hostUnit.length === 0) {
vant.Toast('请选择主办单位');
return
}
}
if (this.formData.opinion === '') {
vant.Toast('请输入审核意见');
return
}
const emptyUserUnderTakes = await this.checkUnderTake()
if (emptyUserUnderTakes !== '') {
vant.Toast(emptyUserUnderTakes);
return
}
vant.Dialog.confirm({
title: '提示',
message: '确定提交吗?',
}).then(async () => {
const loading = this.$toast({
duration: 0,
message: '提交中...',
forbidClick: true,
loadingType: 'spinner',
type: 'loading',
overlay: true
});
const resp = await $.post("/platform/proposal/transact/audit/doAudit", {
audit: JSON.stringify(this.formData),
resultCode: this.formData.resultCode,
hostUnit: this.formData.hostUnit,
helpUnit: JSON.stringify(this.formData.helpUnit),
flag: this.formData.flag
})
if (resp.code === 0) {
setTimeout(async () => {
loading.type = 'success'
loading.message = '提交成功'
loading.close()
this.handle = [700, 850].includes(await mProposal.GetProposalStateCode(this.proposalId))
this.$refs.info.openView(this.proposalId)
}, 1200)
} else {
loading.type = 'fail'
loading.message = '提交失败,请联系管理员'
}
}).catch(() => {
});
},
//点击cell单元格切换选中状态
host_toggle(id, event) {
this.hostUnit = []
this.$refs.host_checkboxes.some(v => {
if (v.name.id === id) {
v.toggle()
return true
}
})
},
//点击cell单元格切换选中状态
help_toggle(id) {
this.$refs.help_checkboxes.some(v => {
if (v.name.id === id) {
v.toggle()
return true
}
})
},
host_dwselclose() {
if (this.hostUnit.length > 0) {
this.formData.hostUnitName = this.hostUnit[0].unitName
this.formData.hostUnit = this.hostUnit[0].id
}
if (this.formData.helpUnit.includes(this.formData.hostUnit)) {
vant.Toast('单位重复')
return
}
this.host_showPicker = false
},
help_dwselclose() {
if (this.helpUnit.length > 0) {
this.formData.helpUnit = this.helpUnit.map(v => v.id)
this.formData.helpUnitName = this.helpUnit.map(v => v.unitName).toString()
}
if (this.formData.helpUnit.includes(this.formData.hostUnit)) {
vant.Toast('协办单位中存在您已选择的主办单位!请检查确认后提交')
return
}
this.help_showPicker = false
},
},
async created() {
const proposal_id = GetQueryString("proposal_id")
const biz_key = GetQueryString("biz_key")
if (proposal_id === '' || biz_key === '') {
vant.Dialog.alert({
title: '提示',
message: '非法参数',
showConfirmButton: false
}).then(() => {
})
return
}
const lastIndex = window.location.href.lastIndexOf('&')
if (window.location.href.substr(lastIndex + 1, 6) === 'ticket') {
window.document.location.replace(window.location.href.substring(0, lastIndex))
}
const py = new Pinyin()
this.resultOptions = await getDictByCode("proposal_result")
this.handle = [700, 850].includes(await mProposal.GetProposalStateCode(this.proposalId))
if (this.handle) {
const data = await findOrganizer(this.proposalId)
const resultCode = await mProposal.GetProposalResultCode(this.proposalId)
this.formData.proposalId = this.proposalId
this.formData.resultCode = resultCode
this.formData.resultName = this.resultOptions.find(v => v.code === resultCode).name
if (data.length) {
const host = data.find(v => {
return v.undertakeType === 1
})
this.formData.hostUnit = host.undertakeId
this.formData.hostUnitName = host.unitName
this.formData.helpUnit = data.filter(v => {
return v.undertakeType === 2
}).map(v => {
return v.undertakeId
})
this.formData.helpUnitName = data.filter(v => {
return v.undertakeType === 2
}).map(v => {
return v.unitName
}).toString()
}
}
this.unitList = await mProposal.getProposalUndertake()
const pyArr = [...Array(26).keys()].map(i => String.fromCharCode(i + 65))
pyArr.forEach(p => {
const c = this.unitList.filter(x => {
return py.getCamelChars(x.unitName).substr(0, 1) === p
})
this.unitOptions.push({k: p, v: c})
})
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,46 @@
<!--#
layout("/mobile/platform.html"){
#-->
<div id="app" v-cloak>
<van-nav-bar title="提案信息" fixed placeholder :left-arrow="leftArrow" safe-area-inset-top
@click-left="history.back()"></van-nav-bar>
<proposal-info :proposal_id="proposalId" ref="pi"></proposal-info>
</div>
<script>
var vue = new Vue({
el: '#app',
data() {
return {
leftArrow: false,
proposalId: GetQueryString('proposal_id')
}
},
components: {
'proposal-info': httpVueLoader('/components/proposal/wechat/ProposalInfo.vue?v=' + new Date().getTime()),
},
methods: {},
async created() {
if (GetQueryString("mobile")) this.leftArrow = true
const proposal_id = GetQueryString("proposal_id")
const biz_key = GetQueryString("biz_key")
if (proposal_id === '' || biz_key === '') {
vant.Dialog.alert({
title: '提示',
message: '非法参数',
showConfirmButton: false
}).then(() => {
})
return
}
const lastIndex = window.location.href.lastIndexOf('&')
if (window.location.href.substr(lastIndex + 1, 6) === 'ticket') {
window.document.location.replace(window.location.href.substring(0, lastIndex))
}
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,137 @@
<!--#
layout("/mobile/platform.html"){
#-->
<div id="app" v-cloak>
<van-nav-bar title="团长审核" fixed placeholder safe-area-inset-top @click-left="history.back()"
:left-arrow="leftArrow"></van-nav-bar>
<proposal-info :proposal_id="proposalId" title="团长审核" :handle="handle" ref="info">
<template #handle>
<div class="van-cell-group__title">
<div class="van-sidebar-item van-sidebar-item--select">
团长审核
</div>
</div>
<van-form>
<van-cell-group class="info">
<van-cell title="审核时间" :value="formData.auditTime"></van-cell>
<van-field
input-align="right"
v-model="formData.opinion"
rows="2"
autosize
label="审核意见"
type="textarea"
maxlength="1000"
placeholder="请输入审核意见"
show-word-limit
></van-field>
</van-cell-group>
<van-row type="flex" :gutter="20" style="padding: 20px 0px">
<van-col span="12" style="padding: 0 10px">
<van-button plain size="large" @click="doAudit(0)">退回</van-button>
</van-col>
<van-col span="12" style="padding: 0 10px">
<van-button :color="themeColor" block size="large" @click="doAudit(1)">通过</van-button>
</van-col>
</van-row>
</van-form>
</template>
</proposal-info>
</div>
<script>
var vue = new Vue({
el: '#app',
mixins: [mobileMixins],
data() {
return {
leftArrow: false,
handle: true,
proposalId: GetQueryString('proposal_id'),
formData: {
username: "${@shiro.getPrincipalProperty('username')}",
loginName: "${@shiro.getPrincipalProperty('loginname')}",
auditTime: moment().format('YYYY-MM-DD'),
opinion: '',
proposalId: GetQueryString('proposal_id')
}
}
},
components: {
'proposal-info': httpVueLoader('/components/proposal/wechat/ProposalInfo.vue?v=' + new Date().getTime()),
},
methods: {
async doAudit(flag) {
if (this.formData.opinion === '') {
vant.Toast('请输入审核意见');
return
}
const res = flag === 1 ? '通过' : '退回'
vant.Dialog.confirm({
title: '提示',
message: '您确定' + res + '该提案吗?',
}).then(async () => {
const loading = this.$toast({
duration: 0,
message: '提交中...',
forbidClick: true,
loadingType: 'spinner',
type: 'loading',
overlay: true
});
const resp = await $.post("/platform/proposal/transact/audit/doAudit", {
audit: JSON.stringify(this.formData),
flag: flag
})
if (resp.code === 0) {
setTimeout(async () => {
loading.type = 'success'
loading.message = '提交成功'
loading.close()
this.handle = await mProposal.GetProposalStateCode(this.proposalId) === 200
this.$refs.info.openView(this.proposalId)
}, 1200)
} else {
loading.type = 'fail'
loading.message = '提交失败,请联系管理员'
}
})
}
},
async created() {
if (GetQueryString("mobile")) this.leftArrow = true
const proposal_id = GetQueryString("proposal_id")
const biz_key = GetQueryString("biz_key")
if (proposal_id === '' || biz_key === '') {
vant.Dialog.alert({
title: '提示',
message: '非法参数',
showConfirmButton: false
}).then(() => {
})
return
}
this.handle = await mProposal.GetProposalStateCode(this.proposalId) === 200
const lastIndex = window.location.href.lastIndexOf('&')
if (window.location.href.substr(lastIndex + 1, 6) === 'ticket') {
window.document.location.replace(window.location.href.substring(0, lastIndex))
}
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,143 @@
<!--#
layout("/mobile/platform.html"){
#-->
<div id="app" v-cloak>
<van-nav-bar title="反馈评分" fixed placeholder safe-area-inset-top></van-nav-bar>
<proposal-info :proposal_id="proposalId" title="反馈评分" :handle="handle" ref="info">
<template #handle>
<div class="van-cell-group__title">
<div class="van-sidebar-item van-sidebar-item--select">
反馈评分
</div>
</div>
<van-form>
<van-cell-group class="info">
<van-cell title="反馈时间" :value="formData.feedbackTime"></van-cell>
<van-cell title="承办满意度"></van-cell>
<van-radio-group v-model="formData.feedbackCode" direction="horizontal"
style="font-size: 12px;padding: 10px 0 10px 16px;box-sizing: border-box;background: #FFFFFF;">
<van-radio v-for="item in feedbackOptions" :name="item.code" shape="square"
checked-color="#081776">
{{item.name}}
</van-radio>
</van-radio-group>
<van-field
input-align="right"
v-model="formData.feedbackOpinion"
rows="2"
autosize
required
label="反馈意见"
type="textarea"
maxlength="1000"
placeholder="请输入反馈意见"
show-word-limit
></van-field>
<van-field name="files" label="附&emsp;&emsp;件" required>
<template #input>
<upload :files.sync="formData.files"></upload>
</template>
</van-field>
</van-cell-group>
<van-row gutter="20" style="margin-top: 30px;padding: 0 25px">
<van-col span="24">
<van-button :color="themeColor" block size="large" @click="doFeedback">提 交
</van-button>
</van-col>
</van-row>
</van-form>
</template>
</proposal-info>
</div>
<script>
var vue = new Vue({
el: '#app',
mixins: [mobileMixins],
data() {
return {
show: false,
handle: true,
feedbackOptions: [],
proposalId: GetQueryString('proposal_id'),
formData: {
username: "${@shiro.getPrincipalProperty('username')}",
loginName: "${@shiro.getPrincipalProperty('loginname')}",
feedbackTime: moment().format('YYYY-MM-DD'),
feedbackCode: 'satisfied',
proposalId: GetQueryString('proposal_id')
}
}
},
components: {
'proposal-info': httpVueLoader('/components/proposal/wechat/ProposalInfo.vue?v=' + new Date().getTime()),
'upload': httpVueLoader('/components/plugins/VantFileUpload.vue'),
},
methods: {
async doFeedback() {
if (this.formData.feedbackOpinion === '') {
vant.Toast('请输入反馈意见');
return
}
const loading = this.$toast({
duration: 0,
message: '提交中...',
forbidClick: true,
loadingType: 'spinner',
type: 'loading',
overlay: true
});
this.formData.replyUnitId = this.undertakeId
const resp = await $.post("/platform/proposal/transact/feedback/doFeedback", {
feedback: JSON.stringify(this.formData),
sign: ""
})
if (resp.code === 0) {
setTimeout(async () => {
loading.type = 'success'
loading.message = '提交成功'
loading.close()
this.handle = await mProposal.GetProposalStateCode(this.proposalId) === 1300
this.$refs.info.openView(this.proposalId)
}, 1200)
} else {
loading.type = 'fail'
loading.message = '提交失败,请联系管理员'
}
},
},
async created() {
const proposal_id = GetQueryString("proposal_id")
if (proposal_id === '') {
vant.Dialog.alert({
title: '提示',
message: '非法参数',
showConfirmButton: false
}).then(() => {
})
return
}
this.feedbackOptions = await getDictByCode("proposal_feedback")
this.handle = await mProposal.GetProposalStateCode(this.proposalId) === 1300
// const lastIndex = window.location.href.lastIndexOf('&')
// if (window.location.href.substr(lastIndex + 1, 6) === 'ticket') {
// window.document.location.replace(window.location.href.substring(0, lastIndex))
// }
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,140 @@
<!--#
layout("/mobile/platform.html"){
#-->
<div id="app" v-cloak>
<van-nav-bar title="分管校领导批示" fixed placeholder safe-area-inset-top></van-nav-bar>
<proposal-info :proposal_id="proposalId" title="分管校领导批示" :handle="handle" ref="info">
<template #handle>
<div class="van-cell-group__title">
<div class="van-sidebar-item van-sidebar-item--select">
分管校领导批示
</div>
</div>
<van-form>
<van-cell-group class="info">
<van-cell title="审核时间" :value="formData.auditTime"></van-cell>
<van-field
input-align="right"
v-model="formData.opinion"
rows="2"
autosize
label="审核意见"
type="textarea"
maxlength="1000"
placeholder="请输入审核意见"
show-word-limit
></van-field>
</van-cell-group>
<van-row type="flex" :gutter="20" style="padding: 20px 0px">
<van-col span="12" style="padding: 0 10px">
<van-button plain :color="themeColor" block size="large" @click="doAudit(false)">退回</van-button>
</van-col>
<van-col span="12" style="padding: 0 10px">
<van-button :color="themeColor" block size="large" @click="doAudit(true)">通过</van-button>
</van-col>
</van-row>
</van-form>
</template>
</proposal-info>
</div>
<script>
var vue = new Vue({
el: '#app',
mixins: [mobileMixins],
data() {
return {
handle: true,
proposalId: '',
replyUnitId: '',
formData: {
username: "${@shiro.getPrincipalProperty('username')}",
loginName: "${@shiro.getPrincipalProperty('loginname')}",
auditTime: moment().format('YYYY-MM-DD'),
opinion: '',
proposalId: GetQueryString('proposal_id')
}
}
},
components: {
'proposal-info': httpVueLoader('/components/proposal/wechat/ProposalInfo.vue?v=' + new Date().getTime()),
},
methods: {
doAudit(flag) {
if (this.formData.opinion === '') {
vant.Toast('请输入审核意见');
return
}
const message = '您是否' + (flag ? '通过' : '退回') + '该提案?'
vant.Dialog.confirm({
title: '提示',
message: message,
})
.then(async () => {
const loading = this.$toast({
duration: 0,
message: '提交中...',
forbidClick: true,
loadingType: 'spinner',
type: 'loading',
overlay: true
});
const resp = await $.post("/platform/proposal/transact/audit/doAudit", {
audit: JSON.stringify(this.formData),
replyUnitId: this.replyUnitId,
flag: flag
})
if (resp.code === 0) {
setTimeout(async () => {
loading.type = 'success'
loading.message = '提交成功'
loading.close()
this.handle = await mProposal.GetProposalStateCode(this.proposalId) === 900
this.$refs.info.openView(this.proposalId)
}, 1200)
} else {
loading.type = 'fail'
loading.message = '提交失败,请联系管理员'
}
})
.catch(() => {
// on cancel
});
}
},
async created() {
const proposal_id = GetQueryString("proposal_id")
const biz_key = GetQueryString("biz_key")
if (proposal_id === '' || biz_key === '') {
vant.Dialog.alert({
title: '提示',
message: '非法参数',
showConfirmButton: false
}).then(() => {
})
return
}
this.proposalId = GetQueryString('proposal_id')
this.replyUnitId = GetQueryString('biz_key')
this.handle = await mProposal.GetProposalStateCode(this.proposalId) === 900
const lastIndex = window.location.href.lastIndexOf('&')
if (window.location.href.substr(lastIndex + 1, 6) === 'ticket') {
window.document.location.replace(window.location.href.substring(0, lastIndex))
}
}
})
</script>
<!--#
}
#-->
+176
View File
@@ -0,0 +1,176 @@
<!--#
layout("/mobile/platform.html"){
#-->
<style>
.van-radio--horizontal{
width: 45%;
margin-top: 12px;
}
</style>
<div id="app" v-cloak>
<van-nav-bar title="答复信息" fixed placeholder safe-area-inset-top></van-nav-bar>
<proposal-info :proposal_id="proposalId" title="答复信息" :handle="handle" ref="info">
<template #handle>
<div class="van-cell-group__title">
<div class="van-sidebar-item van-sidebar-item--select">
答复信息
</div>
</div>
<van-form>
<van-cell-group class="info">
<van-cell title="答复单位" :value="undertakeName"></van-cell>
<van-cell title="答复时间" :value="formData.replyTime"></van-cell>
<van-cell title="落实情况"></van-cell>
<van-radio-group v-model="formData.implementState" direction="horizontal"
checked-color="#081776"
style="font-size: 12px;padding: 10px 0 10px 16px;box-sizing: border-box;background: #FFFFFF;
justify-content: center">
<van-radio name="已经落实" shape="square">已经落实</van-radio>
<van-radio name="正在落实" shape="square">正在落实</van-radio>
<van-radio name="暂缓落实" shape="square">暂缓落实</van-radio>
<van-radio name="不能落实" shape="square">不能落实</van-radio>
</van-radio-group>
<van-field
input-align="right"
v-model="formData.replyContent"
rows="2"
autosize
required
label="答复内容"
type="textarea"
maxlength="1000"
placeholder="请输入答复内容"
show-word-limit
></van-field>
<van-field name="files" label="附&emsp;&emsp;件">
<template #input>
<upload :files.sync="formData.files"></upload>
</template>
</van-field>
</van-cell-group>
<van-row gutter="20" style="margin-top: 30px;padding: 0 25px">
<van-col span="24">
<van-button :color="themeColor" block size="large" @click="doAudit">提 交
</van-button>
</van-col>
</van-row>
</van-form>
</template>
</proposal-info>
</div>
<script>
var vue = new Vue({
el: '#app',
mixins: [mobileMixins],
data() {
return {
undertakeId: "",
undertakeName: "",
handle: true,
isReply: true,
proposalId: GetQueryString('proposal_id'),
formData: {
username: "${@shiro.getPrincipalProperty('username')}",
loginName: "${@shiro.getPrincipalProperty('loginname')}",
replyTime: moment().format('YYYY-MM-DD'),
replyContent: '',
proposalId: GetQueryString('proposal_id'),
implementState:'已经落实'
},
show: false,
actions: [{name: '选项一'}, {name: '选项二'}, {name: '选项三'}],
}
},
components: {
'proposal-info': httpVueLoader('/components/proposal/wechat/ProposalInfo.vue?v=' + new Date().getTime()),
'upload': httpVueLoader('/components/plugins/VantFileUpload.vue'),
},
methods: {
async doAudit() {
if (this.formData.replyContent === '') {
vant.Toast('请输入审核意见');
return
}
const loading = this.$toast({
duration: 0,
message: '提交中...',
forbidClick: true,
loadingType: 'spinner',
type: 'loading',
overlay: true
});
//根据用户id和提案查询承办单位id
this.formData.replyUnitId = this.undertakeId
const resp = await $.post("/platform/proposal/transact/reply/doReply", {
reply: JSON.stringify(this.formData),
sign: ""
})
if (resp.code === 0) {
setTimeout(async () => {
loading.type = 'success'
loading.message = '提交成功'
loading.close()
this.handle = this.isReply == true
this.$refs.info.openView(this.proposalId)
}, 1200)
} else {
loading.type = 'fail'
loading.message = '提交失败,请联系管理员'
}
},
async getIsReply() {
const res = await $.post("/public/wechat/getIsReply", {
proposalId: this.proposalId,
undertakeId: this.undertakeId
})
this.isReply = res.isreply
},
async getUnderTakeName() {
this.undertakeName = await $.post("/public/wechat/getUnderTakeName", {
underTakeId: this.undertakeId
})
}
},
async created() {
const proposal_id = GetQueryString("proposal_id")
const biz_key = GetQueryString("biz_key")
if (proposal_id === '' || biz_key === '') {
vant.Dialog.alert({
title: '提示',
message: '非法参数',
showConfirmButton: false
}).then(() => {
})
return
}
this.undertakeId = GetQueryString("biz_key")
this.formData.replyUnitId = this.undertakeId
await this.getIsReply()
await this.getUnderTakeName()
this.handle = this.isReply !== true
const lastIndex = window.location.href.lastIndexOf('&')
if (window.location.href.substr(lastIndex + 1, 6) === 'ticket') {
window.document.location.replace(window.location.href.substring(0, lastIndex))
}
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,111 @@
<!--#
layout("/mobile/platform.html"){
#-->
<div id="app" v-cloak>
<van-nav-bar title="附议提案" fixed placeholder :left-arrow="leftArrow" safe-area-inset-top
@click-left="history.back()"></van-nav-bar>
<proposal-info :proposal_id="proposalId" ref="pi"></proposal-info>
<van-row v-if="secondedInfo.isAgree==null">
<div class="van-cell-group__title">
<div class="van-sidebar-item van-sidebar-item--select">
附议提案
</div>
</div>
<div style="display: flex;justify-content: space-around;padding: 5px 0 20px 0;">
<van-button :color="themeColor" plain style="flex: 1;margin: 0 10px 0 10px" @click="openDialog(false)">拒绝
</van-button>
<van-button :color="themeColor" style="flex: 1;margin: 0 10px 0 10px" @click="openDialog(true)">同意</van-button>
</div>
</van-row>
</div>
<script>
var vue = new Vue({
el: '#app',
mixins: [mobileMixins],
data() {
return {
leftArrow: false,
proposalId: GetQueryString('proposal_id'),
secondedInfo: {
isAgree: false
}
}
},
components: {
'proposal-info': httpVueLoader('/components/proposal/wechat/ProposalInfo.vue?v=' + new Date().getTime()),
},
methods: {
openDialog(flag) {
const res = flag === true ? '通过' : '拒绝'
vant.Dialog.confirm({
title: '提示',
message: '您确定' + res + '附议该提案吗?',
}).then(async () => {
const loading = this.$toast({
duration: 0,
message: '提交中...',
forbidClick: true,
loadingType: 'spinner',
type: 'loading',
overlay: true
});
const resp = await $.post("/platform/proposal/transact/seconded/doAudit", {
secondedId: this.secondedInfo.id,
proposalId: this.proposalId,
flag: flag
})
if (resp.code === 0) {
setTimeout(async () => {
loading.type = 'success'
loading.message = '提交成功'
loading.close()
this.$refs.pi.openView(this.proposalId)
this.getSecondedCount()
}, 1200)
} else {
loading.type = 'fail'
loading.message = '提交失败,请联系管理员'
}
})
},
getSecondedCount() {
const biz_key = GetQueryString("biz_key")
$.post("/public/wechat/getSecondedCount", {
proposalId: this.proposalId,
id: biz_key
}).then(res => {
this.secondedInfo = res
})
}
},
async created() {
if (GetQueryString("mobile")) this.leftArrow = true
const proposal_id = GetQueryString("proposal_id")
const biz_key = GetQueryString("biz_key")
if (proposal_id === '' || biz_key === '') {
vant.Dialog.alert({
title: '提示',
message: '非法参数',
showConfirmButton: false
}).then(() => {
})
return
}
this.getSecondedCount();
const lastIndex = window.location.href.lastIndexOf('&')
if (window.location.href.substr(lastIndex + 1, 6) === 'ticket') {
window.document.location.replace(window.location.href.substring(0, lastIndex))
}
}
})
</script>
<!--#
}
#-->
@@ -0,0 +1,365 @@
<!--#
layout("/mobile/platform.html"){
#-->
<div id="app" v-cloak>
<van-nav-bar title="提案委员会立案" fixed placeholder safe-area-inset-top></van-nav-bar>
<proposal-info :proposal_id="proposalId" title="提案委员会立案" :handle="handle" ref="info">
<template #handle>
<div class="van-cell-group__title">
<div class="van-sidebar-item van-sidebar-item--select">
提案委员会立案
</div>
</div>
<van-form>
<van-cell-group class="info">
<van-cell title="审核时间" :value="formData.auditTime"></van-cell>
<van-cell title="立案编号" :value="formData.caseCode"></van-cell>
<van-cell title="建议立案结果"></van-cell>
<template>
<van-radio-group v-model="formData.resultCode" direction="horizontal"
style="font-size: 12px;padding: 10px 0 10px 26px;box-sizing: border-box;background: #FFFFFF;"
@change="resultCodeChange">
<van-radio v-for="item in resultOptions" :name="item.code" shape="square"
checked-color="themeColor">
{{item.name}}
</van-radio>
</van-radio-group>
<template v-if="formData.resultCode!='notGive'">
<van-field
input-align="right"
readonly
v-model="formData.hostUnitName"
show-word-limit
label="承办单位"
placeholder="请输入承办单位"
@click="host_showPicker = true"
></van-field>
<van-field
input-align="right"
readonly
v-model="formData.helpUnitName"
show-word-limit
label="协办单位"
placeholder="请输入协办单位"
@click="help_showPicker = true"
></van-field>
</template>
</template>
<van-field
input-align="right"
v-model="formData.opinion"
rows="2"
autosize
label="审核意见"
type="textarea"
maxlength="1000"
placeholder="请输入审核意见"
show-word-limit
></van-field>
</van-cell-group>
<van-row type="flex" :gutter="20" style="padding: 20px 0px">
<van-col span="24" style="padding: 0 10px">
<van-button :color="themeColor" block size="large" @click="doAudit(true)">提 交</van-button>
</van-col>
</van-row>
</van-form>
</template>
</proposal-info>
<van-popup v-model="host_showPicker" @click-close-icon="host_dwselclose"
get-container="#app"
round position="bottom" safe-area-inset-bottom
:close-on-click-overlay="false" :style="{ height: '80%'}">
<div style="padding:0px 20px;margin-top:20px;box-sizing: border-box;max-height: calc(100% - 100px);overflow-y: auto">
<van-checkbox-group v-model="hostUnit" checked-color="#081776" style="font-size: 12px">
<van-cell-group>
<van-index-bar highlight-color="red" :sticky="false">
<template v-for="c,ci in unitOptions">
<van-index-anchor :index="c.k"></van-index-anchor>
<template v-for="x,xi in c.v">
<van-cell
clickable
:key="x.id"
:title="x.unitName"
@click="host_toggle(x.id)"
>
<template #right-icon>
<van-checkbox :name="x" @click.stop="host_toggle(x.id)"
ref="host_checkboxes"></van-checkbox>
</template>
</van-cell>
</template>
</template>
</van-index-bar>
</van-cell-group>
</van-checkbox-group>
</div>
<div style="position: absolute;width: 80%;bottom: 10px;left: 50%;transform: translateX(-50%)">
<van-button :color="themeColor" block @click="host_dwselclose">确定</van-button>
</div>
</van-popup>
<van-popup v-model="help_showPicker"
@click-close-icon="help_dwselclose"
get-container="#app"
round position="bottom"
safe-area-inset-bottom
:close-on-click-overlay="false"
:style="{ height: '80%'}">
<div style="padding:0px 20px;margin-top:20px;box-sizing: border-box;max-height: calc(100% - 100px);overflow-y: auto">
<van-checkbox-group v-model="helpUnit" checked-color="#081776" style="font-size: 12px">
<van-cell-group>
<van-index-bar highlight-color="red" :sticky="false">
<template v-for="c,ci in unitOptions">
<van-index-anchor :index="c.k"></van-index-anchor>
<template v-for="x,xi in c.v">
<van-cell
clickable
:key="x.id"
:title="x.unitName"
@click="help_toggle(x.id)"
>
<template #right-icon>
<van-checkbox :name="x" @click.stop="help_toggle(x.id)"
ref="help_checkboxes"></van-checkbox>
</template>
</van-cell>
</template>
</template>
</van-index-bar>
</van-cell-group>
</van-checkbox-group>
</div>
<div style="position: absolute;width: 80%;bottom: 10px;left: 50%;transform: translateX(-50%)">
<van-button :color="themeColor" block @click="help_dwselclose">确定</van-button>
</div>
</van-popup>
</div>
<script>
var vue = new Vue({
el: '#app',
mixins: [mobileMixins],
data() {
return {
host_showPicker: false,
help_showPicker: false,
showPopover: false,
resultOptions: [],
handle: true,
proposalId: GetQueryString('proposal_id'),
formData: {
username: "${@shiro.getPrincipalProperty('username')}",
loginName: "${@shiro.getPrincipalProperty('loginname')}",
auditTime: moment().format('YYYY-MM-DD'),
resultCode: 'determine',
caseCode: '',
proposalId: GetQueryString('proposal_id'),
flag: true,
hostUnit: [],
helpUnit: [],
opinion: '',
hostUnitName: '',
helpUnitName: ''
},
unitList: [],
unitOptions: [],
hostUnit: [],
helpUnit: []
}
},
components: {
'proposal-info': httpVueLoader('/components/proposal/wechat/ProposalInfo.vue?v=' + new Date().getTime()),
},
methods: {
async resultCodeChange(val) {
const {data} = await $.get('/platform/proposal/transact/secretary/generateCaseCode', {resultCode: val})
this.$set(this.formData, 'caseCode', data)
},
async doAudit(flag) {
this.formData.flag = flag
if (this.formData.flag === true) {
if (this.formData.resultCode === '') {
vant.Toast('请选择建议立案结果');
return
}
if (['determine', 'opinion'].includes(this.formData.resultCode)) {
if (this.formData.hostUnit.length === 0) {
vant.Toast('请选择主办单位');
return
}
}
if (this.formData.opinion === '') {
vant.Toast('请输入审核意见');
return
}
const resultName = this.resultOptions.find(v => v.code === this.formData.resultCode).name
vant.Dialog.confirm({
title: '提示',
message: '请确认是否' + resultName + "?",
}).then(async () => {
await this.doAudit2()
}).catch(() => {
});
} else {
vant.Dialog.confirm({
title: '提示',
message: '您确定要将此提案退回到提案人吗?',
}).then(async () => {
await this.doAudit2()
}).catch(() => {
});
}
},
async doAudit2() {
const loading = this.$toast({
duration: 0,
message: '提交中...',
forbidClick: true,
loadingType: 'spinner',
type: 'loading',
overlay: true
});
const resp = await $.post("/platform/proposal/transact/audit/doAudit", {
audit: JSON.stringify(this.formData),
resultCode: this.formData.resultCode,
caseCode: this.formData.caseCode,
hostUnit: this.formData.hostUnit,
helpUnit: JSON.stringify(this.formData.helpUnit),
flag: this.formData.flag
})
if (resp.code === 0) {
setTimeout(async () => {
loading.type = 'success'
loading.message = '提交成功'
loading.close()
this.handle = await mProposal.GetProposalStateCode(this.proposalId) === 500
this.$refs.info.openView(this.proposalId)
}, 1200)
} else {
loading.type = 'fail'
loading.message = '提交失败,请联系管理员'
}
},
//点击cell单元格切换选中状态
host_toggle(id) {
this.hostUnit = []
this.$refs.host_checkboxes.some(v => {
if (v.name.id === id) {
v.toggle()
return true
}
})
},
//点击cell单元格切换选中状态
help_toggle(id) {
this.$refs.help_checkboxes.some(v => {
if (v.name.id === id) {
v.toggle()
return true
}
})
},
host_dwselclose() {
if (this.hostUnit.length > 0) {
this.formData.hostUnitName = this.hostUnit[0].unitName
this.formData.hostUnit = this.hostUnit[0].id
}
if (this.formData.helpUnit.includes(this.formData.hostUnit)) {
vant.Toast('单位重复')
return
}
this.host_showPicker = false
},
help_dwselclose() {
if (this.helpUnit.length > 0) {
this.formData.helpUnit = this.helpUnit.map(v => v.id)
this.formData.helpUnitName = this.helpUnit.map(v => v.unitName).toString()
}
if (this.formData.helpUnit.includes(this.formData.hostUnit)) {
vant.Toast('协办单位中存在您已选择的主办单位!请检查确认后提交')
return
}
this.help_showPicker = false
},
},
async created() {
const proposal_id = GetQueryString("proposal_id")
const biz_key = GetQueryString("biz_key")
if (proposal_id === '' || biz_key === '') {
vant.Dialog.alert({
title: '提示',
message: '非法参数',
showConfirmButton: false
}).then(() => {
})
return
}
await this.resultCodeChange(this.formData.resultCode)
const lastIndex = window.location.href.lastIndexOf('&')
if (window.location.href.substr(lastIndex + 1, 6) === 'ticket') {
window.document.location.replace(window.location.href.substring(0, lastIndex))
}
const py = new Pinyin()
this.resultOptions = await getDictByCode("proposal_result")
this.handle = await mProposal.GetProposalStateCode(this.proposalId) === 500
this.unitList = await getProposalUndertake()
const pyArr = [...Array(26).keys()].map(i => String.fromCharCode(i + 65))
pyArr.forEach(p => {
const c = this.unitList.filter(x => {
return py.getCamelChars(x.unitName).substr(0, 1) === p
})
this.unitOptions.push({k: p, v: c})
})
}
})
</script>
<!--#
}
#-->
+200
View File
@@ -0,0 +1,200 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!-- 在 head 标签中添加 meta 标签,并设置 viewport-fit=cover 值 -->
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover"
/>
<!-- 开启 safe-area-inset-bottom 属性 -->
<!-- <van-number-keyboard safe-area-inset-bottom/>-->
<title>智慧工会平台</title>
<!-- 引入样式文件 -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/vant@2.10/lib/index.css"
/>
<link rel="stylesheet" type="text/css" href="https://zhgh.nju.edu.cn/assets/platform/plugins/viewer/viewer.min.css">
<script src="${base!}/assets/platform/js/v.js"></script>
<!-- import Vue before Element -->
<script src="${base!}/assets/platform/plugins/vue/vue.min.js"></script>
<!-- 引入 Vue 和 Vant 的 JS 文件 -->
<script src="https://cdn.staticfile.org/jquery/1.11.1/jquery.min.js"></script>
<script src="https://cdn.staticfile.org/vue/2.6.9/vue.min.js"></script>
<script src="${base!}/assets/platform/js/viewer.min.js"></script>
<script src="${base!}/assets/platform/js/jquery-viewer.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vant@2.10/lib/vant.min.js"></script>
<script src="${base!}/assets/platform/plugins/moment/moment.min.js"></script>
<script src="${base!}/assets/platform/module/proposal/api.js"></script>
<script src="${base!}/assets/platform/js/getAppFun.js"></script>
<script src="${base!}/assets/platform/js/pinyin.js"></script>
<script src="${base!}/assets/platform/plugins/vue-loader/httpVueLoader.js"></script>
<script src="${base!}/assets/platform/module/basics/basics.js?v=1.0.5"></script>
</head>
<style>
[v-cloak] {
display: none;
}
#app,
body,
html {
background-color: #f7f8fa;
height: 100%;
}
.van-button {
font-size: 16px;
}
.van-nav-bar {
background: #081776;
}
.van-nav-bar__title {
color: #fff;
}
.van-sidebar {
width: 100%;
}
.van-sidebar-item--select:before {
background: #081776;
}
.van-sidebar-item {
padding: 10px 12px 10px 10px;
}
.handle {
-webkit-box-sizing: border-box;
box-sizing: border-box;
background: #fff;
padding-left: 10px;
}
.sidebar-content {
-webkit-box-sizing: border-box;
box-sizing: border-box;
padding-left: 10px;
background: #fff;
}
.info .van-cell .van-cell__title {
padding-left: 10px;
/*font-size: 16px;*/
width: 30%;
-webkit-box-flex: unset;
-webkit-flex: unset;
-ms-flex: unset;
flex: unset;
}
.info .van-cell .van-cell__value {
padding-left: 10px;
/*font-size: 16px;*/
width: 70%;
-webkit-box-flex: unset;
-webkit-flex: unset;
-ms-flex: unset;
flex: unset;
}
.info .van-collapse .van-cell__title {
width: 100%;
}
.van-cell__value, .van-collapse-item__content {
/*font-size: 16px;*/
color: #323233;
}
.van-cell-group__title .van-sidebar-item {
background-color: unset;
/*font-size: 17px;*/
}
.van-cell-group__title {
padding: 5px 0 5px 16px;
}
.van-collapse-item__content {
padding-left: 26px;
}
.van-index-bar__sidebar {
top: -webkit-calc(20% + 20px);
top: calc(20% + 20px);
height: -webkit-calc(80% - 100px);
height: calc(80% - 100px);
-webkit-transform: unset;
-ms-transform: unset;
transform: unset;
}
.van-index-bar__index {
-webkit-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
font-weight: 500;
font-size: 14px;
}
.van-index-anchor {
background: #f7f7f7;
}
/*文字不换行*/
.text-nowrap {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.color-puple {
color: #7b168b;
}
.van-popover__wrapper {
width: 82%;
}
.van-popover__wrapper div {
text-align: left;
}
</style>
<script type="text/javascript">
const base = "${base!}";
const FILE_DOMAIN = "${AppFileDomain!}"
</script>
<body>
<script type="text/javascript">
Vue.use(httpVueLoader)
function GetQueryString(name) {
const reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
const r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]);
return "";
}
$.ajaxSetup({"cache": false})
</script>
${layoutContent}
</body>
</html>