Files
2026-09-08 19:49:21 +08:00

217 lines
8.3 KiB
HTML

<!--#
layout("/mobile/platform.html"){
#-->
<style>
.register-icon {
position: absolute;
bottom: 8px;
right: 16px;
z-index: 1;
}
</style>
<div id="app" v-cloak>
<m-page-loading v-if="mLoading"></m-page-loading>
<van-nav-bar
title="我的登记"
left-arrow
placeholder
fixed
@click-left="history.back()"
></van-nav-bar>
<div style="margin: 20px auto 0">
<van-list
v-model="mLoading"
:finished="finished"
:finished-text="tableData.length>0?'没有更多了':''"
@load="onLoad">
<div v-for="o in tableData" class="list-card" @click.stop="openView(o)">
<van-cell-group inset>
<van-cell title="登记类型" :border="false">
<div style="display: flex;align-items: center">
<span :style="{color:themeColor}" style="font-size: 16px"
class="van-ellipsis">{{o.dj_djlx==1?'幼升小':o.dj_djlx==2?'小学':'初升高'}}</span>
</div>
</van-cell>
<van-cell :border="false" title="子女姓名">{{o.dj_znname}}</van-cell>
<!-- <van-cell :border="false" title="出生日期" v-if="o.dj_djlx===2">{{o.dj_znzsny}}</van-cell>-->
<van-cell :border="false" title="教职工姓名">{{o.jzgname}}</van-cell>
<van-cell :border="false" title="所属单位">{{o.dwname}}</van-cell>
<van-cell :border="false" title="所属分工会">{{o.jzgfghname}}</van-cell>
<van-cell :border="false" title="手机号码">{{o.dj_iphone}}</van-cell>
<van-cell :border="false" title="审核状态">
<span :style="'color: ' + o.stateColor">{{o.stateName}}</span>
</van-cell>
<div style="text-align: right;margin-bottom: 10px;margin-right: 10px;margin-top: -35px;">
<van-button :color="themeColor" round size="small" type="primary"
@click.stop="openBa(o)" v-if="o.dj_sqzt===5300&&!o.dj_bashr">
信息反馈
</van-button>
<van-button :color="themeColor" plain round size="small"
type="primary"
@click.stop="openView(o)" style="width: 60px">
查看
</van-button>
<van-button :color="themeColor" round size="small"
type="primary"
v-if="([5000,5118,5218].includes(o.dj_sqzt))"
@click.stop="openEdit(o)" style="width: 60px">
编辑
</van-button>
</div>
</van-cell-group>
</div>
</van-list>
<van-empty
v-if="mLoading==false&&tableData.length==0"
class="custom-image"
image="/none.svg"
description="暂无数据"
></van-empty>
</div>
<van-popup v-model="beiAnPopupShow" position="right" :style="{ height: '100%', width: '100%'}">
<van-nav-bar title="入学备案"
left-arrow
placeholder
fixed
@click-left="onRefresh();beiAnPopupShow=false"></van-nav-bar>
<rxdj-mobile-info :dj_id="formData.dj_id" title="入学备案" :handle="handle">
<template #handle>
<div class="handle">
<van-form>
<van-field
readonly
value="${@shiro.getPrincipalProperty('username')}"
name="username"
label="审核人员"
></van-field>
<van-field v-model="formData.auditTime" label="审核时间" readonly></van-field>
<van-cell center title="备案信息">
<template #right-icon>
<van-switch v-model="formData.dj_sfrx" size="24"
:active-color="themeColor"
inactive-color="red"></van-switch>
</template>
</van-cell>
<van-field v-model="formData.dj_babz"
rows="2"
autosize
label="备注"
type="textarea"
placeholder="如果没有入学,请注明原因或其他学校"
></van-field>
</van-form>
<div style="margin: 16px;">
<van-row gutter="20">
<van-col span="24">
<van-button round block :color="themeColor" @click="doBeiAn">
确认
</van-button>
</van-col>
</van-row>
</div>
</div>
</template>
</rxdj-mobile-info>
</van-popup>
</div>
<script>
let vue = new Vue({
el: '#app',
mixins: [mobileMixins],
data() {
return {
handle: false,
beiAnPopupShow: false,
}
},
components: {
'rxdj-mobile-info': httpVueLoader('/components/zgfw/rxdj/mobileRxdj.vue?v=' + new Date().getTime()),
},
methods: {
async doBeiAn() {
const confirm = await this.$dialog.confirm({
title: "温馨提示",
message: '确定要提交吗?'
})
if (confirm === "confirm") {
const resp = await $.post('/platform/zgfw/rxdj/beian/doHandle', this.formData)
if (resp.code === 0) {
this.$toast.fail("提交成功!")
this.onRefresh()
this.beiAnPopupShow = false
}
}
},
async onRefresh() {
this.tableData = []
this.refreshing = true;
this.finished = false;
this.pageForm.pageNumber = 0
this.loading = true;
await this.onLoad();
},
openBa(row) {
this.formData = {
dj_id: row.dj_id,
username: "${@shiro.getPrincipalProperty('username')}",
auditTime: moment().format('YYYY-MM-DD'),
dj_babz: '',
dj_sfrx: true
}
this.handle = true
this.beiAnPopupShow = true
},
async onLoad() {
this.mLoading = true
$.post('/platform/zgfw/rxdjxx/pageData', this.pageForm).then(res => {
if (res.code === 0) {
this.tableData = this.tableData.concat(res.data.list)
if (this.tableData.length === res.data.totalCount) {
this.finished = true
} else {
this.pageForm.pageNumber++
}
}
this.mLoading = false
})
},
openView(o) {
window.location.href = "/platform/zgfw/mobile/rxdj/apply/info?dj_id=" + o.dj_id
},
openEdit(o) {
window.location.href = "/platform/zgfw/mobile/rxdj/psms?client=mobile&dj_id=" + o.dj_id + "&dj_djlx=" + o.dj_djlx
}
},
async created() {
}
})
window.addEventListener('pageshow', e => {
if (e.persisted || (window.performance && window.performance.navigation.type === 2)) {
vue.onRefresh()
}
})
</script>
<!--#
}
#-->