first commit

This commit is contained in:
2026-09-23 09:38:39 +08:00
commit 98a8b8cace
6257 changed files with 1266718 additions and 0 deletions
@@ -0,0 +1,161 @@
<!--#
layout("/layouts/platform.html"){
#-->
<style>
.el-divider--horizontal {
margin-top: 50px;
margin-bottom: 40px;
}
</style>
<div id="app" v-cloak>
<guava>
<apply :form="formData" @radio="radioButton">
</apply>
<div style="float: right;margin: 20px 0">
<el-button type="primary" @click="operation">确 定</el-button>
</div>
</guava>
<el-dialog
title=""
:visible.sync="dialogVisible"
width="40%">
<el-form>
<el-form-item label="&emsp;&emsp;申请须知" class="view-header">
</el-form-item>
</el-form>
<span style="line-height: 24px">
&emsp;&emsp;一、住院慰问金申请:每位在职工会会员每年限申请一次,需在当年提出申请。系统全部审核完成后,可打印出报销凭证和纸质审批表,由本部门审核人员及本人签字并盖章后,以部门工会为单位送交工会。为减少部门工会工作量,部门工会可于每月10号、20号(遇周末节假日可顺延)集中审核盖章后送交工会纸质材料。<br/>
&emsp;&emsp;二、因生活困难申报“元旦、春节”困难补助(慰问)金的会员,还须同时向部门工会提交下列相关证明:<br/>
&emsp;&emsp;&emsp;&emsp;(1)申请人配偶、子女及家庭其他成员的收入情况证明原件(不涉及则无需提供);<br/>
&emsp;&emsp;&emsp;&emsp;(2)个人收入证明(年度工资银行对账单且有银行或单位盖章);<br/>
&emsp;&emsp;&emsp;&emsp;(3)涉及会员本人、配偶或子女患重病、大病者须提供病史证明复印件和自费医药费正式发票;
</span>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">关闭</el-button>
<el-button type="primary" @click="dialogVisible = false">同意</el-button>
</span>
</el-dialog>
</div>
<script>
function getQueryVariable(variable) {
let query = window.location.search.substring(1);
let vars = query.split("&");
for (let i = 0; i < vars.length; i++) {
let pair = vars[i].split("=");
if (pair[0] == variable) {
return pair[1];
}
}
return '';
}
const vue = new Vue({
el: '#app',
mixins: [initTableMixins],
components: {
'apply': httpVueLoader('/components/difficulty/apply.vue'),
},
data() {
return {
dialogVisible: false,
formData: {
sq_bzlx: "1",
sqsj: moment().format('YYYY-MM-DD'),
apply_mode: '1',
jtcys: [],
},
userData: {},
}
},
methods: {
radioButton() {
this.$set(this.formData, 'idcard', '${@shiro.getPrincipalProperty("idcard")}')
this.$set(this.formData, 'sqr', '${@shiro.getPrincipalProperty("username")}')
this.$set(this.formData, 'bbzrusername', this.formData.apply_mode == 1 ? "${@shiro.getPrincipalProperty('username')}" : null)
this.$set(this.formData, 'sqrloginname', "${@shiro.getPrincipalProperty('loginname')}")
this.$set(this.formData, 'sex', this.formData.apply_mode == 1 ? "${@shiro.getPrincipalProperty('sex')}" : null)
this.$set(this.formData, 'idcard', this.formData.apply_mode == 1 ? "${@shiro.getPrincipalProperty('idcard')}" : null)
this.$set(this.formData, 'birthday', this.formData.apply_mode == 1 ? "${@shiro.getPrincipalProperty('birthday')}" : null)
this.$set(this.formData, 'lxfs', this.formData.apply_mode == 1 ? "${@shiro.getPrincipalProperty('mobile')}" : null)
this.$set(this.formData, 'yhkh', this.formData.apply_mode == 1 ? "${@shiro.getPrincipalProperty('bank_number')}" : null)
this.$set(this.formData, 'yhmc', this.formData.apply_mode == 1 ? "${@shiro.getPrincipalProperty('yhmc')}" : null)
this.$set(this.formData, 'unitname', this.formData.apply_mode == 1 ? this.userData.unitname : null)
this.$set(this.formData, 'zw', this.formData.apply_mode == 1 ? this.userData.position : null)
this.$set(this.formData, 'zc', this.formData.apply_mode == 1 ? this.userData.jobtitle : null)
this.$set(this.formData, 'zzmm', this.formData.apply_mode == 1 ? this.userData.political : null)
this.$set(this.formData, 'mz', this.formData.apply_mode == 1 ? this.userData.nation : null)
},
async getUserData() {
const resp = await $.post(loc() + "/getUserData")
requestLaterFun(resp, () => {
this.userData = resp.data;
}, () => {
this.$notify.error({title: '失败', message: resp.msg});
})
},
async operation() {
let method = this.formData.id ? "/doEdit" : "/doAdd"
/* this.$refs["addform"].validate(async (valid) => {
if (valid) {*/
const loading = this.$loading({
lock: true,
text: '正在提交...',
spinner: 'el-icon-loading',
background: COVER_LAYER_COLOR
});
const formData = Object.assign({}, this.formData);
/*formData.jtcys = JSON.stringify(formData.jtcys)*/
formData.files = JSON.stringify(formData.files)
formData.applicantsign = formData.sqsign
if (formData.hospitalized_time && formData.hospitalized_time.length > 0) {
formData.hospitalized_time = formData.hospitalized_time[0] + "至" + formData.hospitalized_time[1]
}
if (formData.apply_mode == 1) {
formData.bbzrusername = "${@shiro.getPrincipalProperty('id')}"
}
const resp = await $.post(loc() + method, formData)
requestLaterFun(resp, () => {
window.location.href = '/platform/fw/difficulty/applylist'
}, () => {
this.$notify.error({title: '失败', message: resp.msg});
}, () => {
loading.close()
})
/* }
}
);*/
},
async openEdit(id) {
const resp = await $.get("/platform/fw/difficulty/applylist/findOne", {id})
requestLaterFun(resp, (data) => {
if (data.files) {
data.files = JSON.parse(data.files)
}
this.formData = data
})
}
},
async created() {
await this.getUserData()
let id = getQueryVariable("id")
id ? this.openEdit(id) : this.radioButton()
}
})
</script>
<!--#
}
#-->