commit
This commit is contained in:
@@ -1,382 +0,0 @@
|
||||
<!--#
|
||||
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>
|
||||
|
||||
|
||||
<!--#
|
||||
}
|
||||
#-->
|
||||
@@ -1,46 +0,0 @@
|
||||
<!--#
|
||||
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>
|
||||
|
||||
<!--#
|
||||
}
|
||||
#-->
|
||||
@@ -1,137 +0,0 @@
|
||||
<!--#
|
||||
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>
|
||||
|
||||
|
||||
<!--#
|
||||
}
|
||||
#-->
|
||||
@@ -1,143 +0,0 @@
|
||||
<!--#
|
||||
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="附  件" 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>
|
||||
|
||||
|
||||
<!--#
|
||||
}
|
||||
#-->
|
||||
@@ -1,140 +0,0 @@
|
||||
<!--#
|
||||
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>
|
||||
|
||||
|
||||
<!--#
|
||||
}
|
||||
#-->
|
||||
@@ -1,176 +0,0 @@
|
||||
<!--#
|
||||
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="附  件">
|
||||
<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>
|
||||
|
||||
|
||||
<!--#
|
||||
}
|
||||
#-->
|
||||
@@ -1,111 +0,0 @@
|
||||
<!--#
|
||||
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>
|
||||
|
||||
<!--#
|
||||
}
|
||||
#-->
|
||||
@@ -1,365 +0,0 @@
|
||||
<!--#
|
||||
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>
|
||||
|
||||
|
||||
<!--#
|
||||
}
|
||||
#-->
|
||||
Reference in New Issue
Block a user