This commit is contained in:
2026-01-28 16:53:35 +08:00
parent b2036c1285
commit 35326ead8e
5 changed files with 55 additions and 46 deletions
@@ -2,8 +2,9 @@ const ACTIVITY_CULTURE_APPLY_ACTIVITY = {
template: /*language=HTML*/ ` template: /*language=HTML*/ `
<div> <div>
<template> <template>
<el-card shadow="never"> <custom-card>
<snaker-start slot="header" label="文化活动申报" :define_key="activity_type===40002?'FGHWHHD':'XHWHHD'" <snaker-start slot="header" label="文化活动申报"
:define_key="activity_type===40002?'FGHWHHD':'XHWHHD'"
v-if="activity_type===40002||activity_type===40003"></snaker-start> v-if="activity_type===40002||activity_type===40003"></snaker-start>
<el-form :model="formData" :rules="formRules" label-suffix="" label-width="170px" <el-form :model="formData" :rules="formRules" label-suffix="" label-width="170px"
ref="addForm" v-loading="formLoading"> ref="addForm" v-loading="formLoading">
@@ -520,15 +521,14 @@ const ACTIVITY_CULTURE_APPLY_ACTIVITY = {
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</el-form> </el-form>
<el-row type="flex" justify="end" class="mt20"> <template slot="footer">
<el-button type="primary" plain @click="onSave">保存</el-button> <el-button type="primary" plain @click="onSave">保存</el-button>
<template v-if="formData.isEnrollSystem"> <template v-if="formData.isEnrollSystem">
<el-button type="primary" @click="onSubmit" v-if="!taskId">提交</el-button> <el-button type="primary" @click="onSubmit" v-if="!taskId">提交</el-button>
<el-button type="primary" @click="onFinishTask" v-else>提交</el-button> <el-button type="primary" @click="onFinishTask" v-else>提交</el-button>
</template> </template>
</template>
</el-row> </custom-card>
</el-card>
<drawer-user-scope <drawer-user-scope
@group_change="getActivityGroup" @group_change="getActivityGroup"
@@ -11,7 +11,7 @@ layout("/layouts/platform.html"){
} }
</style> </style>
<div id="app"> <div id="app">
<el-card shadow="never"> <custom-card>
<snaker-start slot="header" label="活动申报" define_key="HDSB"></snaker-start> <snaker-start slot="header" label="活动申报" define_key="HDSB"></snaker-start>
<el-form :model="formData" ref="formRef" :rules="formRules" label-width="0" label-suffix="" <el-form :model="formData" ref="formRef" :rules="formRules" label-width="0" label-suffix=""
class="flow-task-form"> class="flow-task-form">
@@ -187,13 +187,12 @@ layout("/layouts/platform.html"){
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
</el-form> </el-form>
<template slot="footer">
<el-row type="flex" justify="end" class="mt20">
<el-button type="primary" plain @click="onSave">保存</el-button> <el-button type="primary" plain @click="onSave">保存</el-button>
<el-button type="primary" @click="onSubmit" v-if="!taskId">提交</el-button> <el-button type="primary" @click="onSubmit" v-if="!taskId">提交</el-button>
<el-button type="primary" @click="onFinishTask" v-else>提交</el-button> <el-button type="primary" @click="onFinishTask" v-else>提交</el-button>
</el-row> </template>
</el-card> </custom-card>
</div> </div>
<script nonce="${cspNonce!}"> <script nonce="${cspNonce!}">
@@ -8,7 +8,7 @@ layout("/layouts/platform.html"){
</style> </style>
<div id="app"> <div id="app">
<div> <div>
<el-card shadow="never"> <custom-card>
<snaker-start slot="header" label="活动报销" define_key="HDBX"></snaker-start> <snaker-start slot="header" label="活动报销" define_key="HDBX"></snaker-start>
<el-form :model="formData" ref="formRef" :rules="formRules" label-width="0" label-suffix="" <el-form :model="formData" ref="formRef" :rules="formRules" label-width="0" label-suffix=""
class="flow-task-form"> class="flow-task-form">
@@ -283,13 +283,12 @@ layout("/layouts/platform.html"){
</el-descriptions> </el-descriptions>
</el-form> </el-form>
<el-row type="flex" justify="end" class="mt20"> <template slot="footer">
<el-button type="primary" plain @click="onSave">保存</el-button> <el-button type="primary" plain @click="onSave">保存</el-button>
<el-button type="primary" @click="onSubmit" v-if="!taskId">提交</el-button> <el-button type="primary" @click="onSubmit" v-if="!taskId">提交</el-button>
<el-button type="primary" @click="onFinishTask" v-else>提交</el-button> <el-button type="primary" @click="onFinishTask" v-else>提交</el-button>
</el-row> </template>
</el-card> </custom-card>
<el-dialog title="申报数据" :visible.sync="declareDialogVisible" width="60%"> <el-dialog title="申报数据" :visible.sync="declareDialogVisible" width="60%">
<div style="max-height: 68vh;overflow-y: auto"> <div style="max-height: 68vh;overflow-y: auto">
@@ -6,7 +6,7 @@ layout("/layouts/platform.html"){
<div id="app" v-cloak> <div id="app" v-cloak>
<template> <template>
<el-card shadow="never"> <custom-card>
<snaker-start slot="header" label="撰写提案" define_key="JDHTA"></snaker-start> <snaker-start slot="header" label="撰写提案" define_key="JDHTA"></snaker-start>
<template> <template>
<el-form :model="formData" :rules="formRules" label-width="120px" ref="addForm"> <el-form :model="formData" :rules="formRules" label-width="120px" ref="addForm">
@@ -153,13 +153,15 @@ layout("/layouts/platform.html"){
<!-- <pc-signature v-model="formData.signature"></pc-signature>--> <!-- <pc-signature v-model="formData.signature"></pc-signature>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
</el-form> </el-form>
<el-row justify="end" type="flex" v-if="isWriteTime"> <template slot="footer">
<el-button type="primary" @click="onSave">保存</el-button> <el-row v-if="isWriteTime">
<el-button type="primary" @click="onSubmit" v-if="!taskId">提交</el-button> <el-button type="primary" @click="onSave">保存</el-button>
<el-button type="primary" @click="onSubmitAgain" v-else>提交</el-button> <el-button type="primary" @click="onSubmit" v-if="!taskId">提交</el-button>
</el-row> <el-button type="primary" @click="onSubmitAgain" v-else>提交</el-button>
</el-row>
</template>
</template> </template>
</el-card> </custom-card>
</template> </template>
<el-dialog title="提案撰写须知" :visible.sync="noticeDialogVisible" :show-close="false" width="50%"> <el-dialog title="提案撰写须知" :visible.sync="noticeDialogVisible" :show-close="false" width="50%">
@@ -260,7 +262,7 @@ layout("/layouts/platform.html"){
loading.close() loading.close()
if (res.code === 0) { if (res.code === 0) {
this.$message.success("提交成功") this.$message.success("提交成功")
if (this.formData.source==="PERSONAL"){ if (this.formData.source === "PERSONAL") {
this.$confirm("提交成功,是否立即去邀请附议人?", "提示", { this.$confirm("提交成功,是否立即去邀请附议人?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
@@ -271,7 +273,7 @@ layout("/layouts/platform.html"){
this.$message.info("请到我的提案界面邀请附议人") this.$message.info("请到我的提案界面邀请附议人")
commonUtil.pjaxPush('/platform/proposal/mine') commonUtil.pjaxPush('/platform/proposal/mine')
}) })
}else{ } else {
commonUtil.pjaxPush('/platform/proposal/mine') commonUtil.pjaxPush('/platform/proposal/mine')
} }
@@ -4,7 +4,8 @@ const times = {
` `
<div> <div>
<van-action-sheet v-model="visible" title="时间段" cancel-text="取消"> <van-action-sheet v-model="visible" title="时间段" cancel-text="取消">
<div id="mapContainer" v-if="row?.isMobileSign === true && row?.signType === 3" style="width: 100%; height: 250px"></div> <div id="mapContainer" v-if="row?.isMobileSign === true && row?.signType === 3"
style="width: 100%; height: 250px"></div>
<button v-for="(item,index) in row?.courseTimes" type="button" class="van-action-sheet__item"> <button v-for="(item,index) in row?.courseTimes" type="button" class="van-action-sheet__item">
<div style="display: flex; justify-content: space-between; align-items: center"> <div style="display: flex; justify-content: space-between; align-items: center">
<div> <div>
@@ -13,12 +14,19 @@ const times = {
<label>{{ $moment(item.courseDate).format('YYYY-MM-DD') }}</label> <label>{{ $moment(item.courseDate).format('YYYY-MM-DD') }}</label>
</div> </div>
<div class="van-action-sheet__subname"> <div class="van-action-sheet__subname">
{{$moment(item.courseStartTime).format('MM-DD HH:mm') + ' 至 ' + $moment(item.courseEndTime).format('MM-DD HH:mm')}} {{$moment(item.courseStartTime).format('MM-DD HH:mm') + ' 至 ' +
$moment(item.courseEndTime).format('MM-DD HH:mm')}}
</div> </div>
</div> </div>
<div v-if="row.isSign === true && row.isMobileSign === true" class="sign_button"> <div v-if="row.isSign === true && row.isMobileSign === true" class="sign_button">
<van-button v-if="item.isAttend !== true" @click.stop="onSign(item)" size="mini" type="info">签到</van-button> <van-button
<van-button v-if="item.isAttend === true" size="mini" type="info" disabled>已签到</van-button> v-if="item.isAttend !== true
&&
$moment(item.courseEndTime).unix()>$moment().unix()"
@click.stop="onSign(item)" size="mini" type="info">签到
</van-button>
<van-button v-if="item.isAttend === true" size="mini" type="info" disabled>已签到
</van-button>
</div> </div>
</div> </div>
</button> </button>
@@ -39,7 +47,7 @@ const times = {
store, store,
data() { data() {
return { return {
visible:false, visible: false,
row: null, row: null,
weekdayCNMap: {0: '周日', 1: '周一', 2: '周二', 3: '周三', 4: '周四', 5: '周五', 6: '周六'}, weekdayCNMap: {0: '周日', 1: '周一', 2: '周二', 3: '周三', 4: '周四', 5: '周五', 6: '周六'},
@@ -62,8 +70,8 @@ const times = {
this.row = row this.row = row
this.visible = true this.visible = true
this.$nextTick(() => { this.$nextTick(() => {
if(this.row.signType === 3) { if (this.row.signType === 3) {
if(this.map) this.map.destroy() if (this.map) this.map.destroy()
this.initMap() this.initMap()
this.getLocation((coords) => { this.getLocation((coords) => {
if (coords) { if (coords) {
@@ -115,7 +123,8 @@ const times = {
}, },
getLocation(callback) { getLocation(callback) {
if (typeof callback !== 'function') { if (typeof callback !== 'function') {
callback = () => {}; callback = () => {
};
} }
if (!navigator.geolocation) { if (!navigator.geolocation) {
this.$toast('当前浏览器不支持定位功能'); this.$toast('当前浏览器不支持定位功能');
@@ -161,7 +170,7 @@ const times = {
); );
}, },
initMap() { initMap() {
if(!this.row.courseLocationCoordinates) { if (!this.row.courseLocationCoordinates) {
this.$toast('未设置签到点') this.$toast('未设置签到点')
return return
} }
@@ -210,7 +219,7 @@ const times = {
const content = jrQrcode.getQrBase64(data) const content = jrQrcode.getQrBase64(data)
vant.ImagePreview([content]) vant.ImagePreview([content])
}, },
onClose(){ onClose() {
this.visible = false this.visible = false
}, },
}, },