commit
This commit is contained in:
@@ -193,7 +193,8 @@ layout("/mobile/platform.html"){
|
||||
<span>{{o.campus}}</span>
|
||||
</div>
|
||||
<div>
|
||||
<span class="train-title">地  点:</span>
|
||||
<span class="train-title" v-if="activity.addressName">{{activity.addressName}}:</span>
|
||||
<span class="train-title" v-else>地  点:</span>
|
||||
<span>{{o.courseLocation}}</span>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
@@ -97,16 +97,12 @@ layout("/layouts/platform.html"){
|
||||
<!-- <el-input v-model="row.unitName" maxlength="10" size="small"></el-input>-->
|
||||
<!-- </template>-->
|
||||
</el-table-column>
|
||||
<el-table-column label="个人支付金额(元)" prop="selfPayMoney" width="200">
|
||||
<!-- <template scope="{row}">-->
|
||||
<!-- <el-input-number v-model="row.selfPayMoney" :min="0" :max="999999"-->
|
||||
<!-- :precision="2" size="small" style="width: 100%"></el-input-number>-->
|
||||
<!-- </template>-->
|
||||
</el-table-column>
|
||||
<el-table-column label="医保四项之和金额(元)" prop="medicalFourTotalMoney" width="200"></el-table-column>
|
||||
<el-table-column label="两项自付之和金额(元)" prop="selfPayTotalMoney" width="200"></el-table-column>
|
||||
|
||||
<el-table-column label="学校二次报销金额(元)" prop="schoolSecondSubsidyMoney" width="200"></el-table-column>
|
||||
<el-table-column label="个人支付金额(元)" prop="selfPayMoney" width="200"></el-table-column>
|
||||
<el-table-column label="未补助年份" prop="noSubsidyYear" width="200"></el-table-column>
|
||||
<el-table-column label="计算金额(元)" prop="noLimitSubsidyMoney" width="200"></el-table-column>
|
||||
|
||||
<el-table-column label="补助金额(元)" prop="subsidyMoney" width="200">
|
||||
<!-- <template scope="{row}">-->
|
||||
<!-- <el-input-number v-model="row.subsidyMoney" :min="0" :max="999999"-->
|
||||
|
||||
@@ -107,7 +107,7 @@ layout("/layouts/platform.html"){
|
||||
</table-tool>
|
||||
<el-table :data="tableData" :size="tableSize" @sort-change="pageOrder"
|
||||
align="center" header-align="center">
|
||||
<el-table-column align="center" header-align="center" label="序号" type="index" width="80">
|
||||
<el-table-column align="center" header-align="center" label="序号" type="index" width="80" fixed="left">
|
||||
<template scope="scope">
|
||||
<span>{{ scope.$index + (pageForm.pageNumber - 1) * pageForm.pageSize + 1 }} </span>
|
||||
</template>
|
||||
@@ -119,6 +119,7 @@ layout("/layouts/platform.html"){
|
||||
:width="column.width"
|
||||
align="center"
|
||||
header-align="center"
|
||||
:fixed="column.fixed"
|
||||
show-overflow-tooltip
|
||||
v-for="column in tableColumns"
|
||||
>
|
||||
@@ -230,15 +231,19 @@ layout("/layouts/platform.html"){
|
||||
data() {
|
||||
return {
|
||||
tableColumns: [
|
||||
{prop: 'year', label: '年度', sortable: true},
|
||||
{prop: 'userName', label: '姓名'},
|
||||
{prop: 'loginName', label: '工号'},
|
||||
{prop: 'year', label: '年度', sortable: true, fixed: 'left'},
|
||||
{prop: 'userName', label: '姓名', fixed: 'left'},
|
||||
{prop: 'loginName', label: '工号', fixed: 'left',width: 120},
|
||||
{prop: 'unionName', label: '分工会', sortable: true, width: 150},
|
||||
{prop: 'unitName', label: '单位', sortable: true, width: 150},
|
||||
|
||||
{prop: 'selfPayMoney', label: '个人支付金额(元)', sortable: true, width: 150},
|
||||
{prop: 'medicalFourTotalMoney', label: '医保四项之和金额(元)', sortable: true, width: 200},
|
||||
{prop: 'selfPayTotalMoney', label: '两项自付之和金额(元)', sortable: true, width: 200},
|
||||
{prop: 'schoolSecondSubsidyMoney', label: '学校二次报销金额(元)', sortable: true, width: 200},
|
||||
{prop: 'selfPayMoney', label: '个人支付金额(元)', sortable: true, width: 170},
|
||||
{prop: 'noLimitSubsidyMoney', label: '计算金额(元)', sortable: true, width: 150},
|
||||
{prop: 'subsidyMoney', label: '补助金额(元)', sortable: true, width: 150},
|
||||
{prop: 'noSubsidyYear', label: '未补助年份', sortable: true, width: 120},
|
||||
{prop: 'isMember', label: '是否会员', sortable: true, width: 100},
|
||||
|
||||
// {prop: 'selfPaySubsidyRatio', label: '个人支付金额补助比例', sortable: true, width: 160},
|
||||
@@ -250,7 +255,8 @@ layout("/layouts/platform.html"){
|
||||
],
|
||||
pageForm: {
|
||||
year: (new Date().getFullYear() - 1).toString(),
|
||||
isMember: null
|
||||
isMember: null,
|
||||
unitName:''
|
||||
},
|
||||
unions: [],
|
||||
units: [],
|
||||
|
||||
@@ -46,6 +46,9 @@ layout("/layouts/platform.html"){
|
||||
data() {
|
||||
const that = this
|
||||
return {
|
||||
use: false,
|
||||
historicalActList: [],
|
||||
historicalAct: "",
|
||||
trainType: '培训班',
|
||||
trainTypeList: [],
|
||||
fromEdit: '',
|
||||
@@ -62,6 +65,7 @@ layout("/layouts/platform.html"){
|
||||
restrictLimit: 1,
|
||||
limitNum: 1,
|
||||
typeLimits: [],
|
||||
addressDisplayName: '培训班地点',
|
||||
},
|
||||
pickerOptions: {
|
||||
disabledDate(time) {
|
||||
@@ -117,6 +121,13 @@ layout("/layouts/platform.html"){
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
getAddressName() {
|
||||
if(!this.formData.addressName) {
|
||||
this.formData.addressDisplayName = this.trainType + '地点'
|
||||
} else {
|
||||
this.formData.addressDisplayName = this.formData.addressName
|
||||
}
|
||||
},
|
||||
openUserScope() {
|
||||
this.userScopeDialog = true
|
||||
},
|
||||
@@ -648,6 +659,34 @@ layout("/layouts/platform.html"){
|
||||
typeChange(val) {
|
||||
const type = this.trainTypeList.find(o => o.code === val)
|
||||
this.trainType = type ? type.name : ''
|
||||
this.getAddressName()
|
||||
},
|
||||
async getHistoricalActList() {
|
||||
const resp = await $.post("/platform/trainSingUp/manage/activity/add/getHistoricalActList", {})
|
||||
return resp.data
|
||||
},
|
||||
async historicalActChange(val) {
|
||||
const resp = await $.get("/platform/trainSingUp/manage/activity/findOne", { id: val })
|
||||
if (resp.code === 0) {
|
||||
/*resp.data.cover = [resp.data.cover]
|
||||
if (resp.data.wechat) {
|
||||
resp.data.wechat = [resp.data.wechat]
|
||||
}*/
|
||||
this.formData = resp.data
|
||||
const type = this.trainTypeList.find(o => o.code === this.formData.trainType)
|
||||
this.trainType = type ? type.name : "培训班"
|
||||
this.$nextTick(() => {
|
||||
$("#introduce").html("")
|
||||
var editor = new E("#introduce")
|
||||
editor.config.onchange = (html) => {
|
||||
this.formData.introduce = html.replace(/<p\><\/p>/g, "")
|
||||
}
|
||||
editor.create()
|
||||
editor.txt.html(resp.data.introduce)
|
||||
})
|
||||
this.getAddressName()
|
||||
this.formData.id = ""
|
||||
}
|
||||
}
|
||||
},
|
||||
async created() {
|
||||
@@ -656,7 +695,9 @@ layout("/layouts/platform.html"){
|
||||
await this.initData()
|
||||
this.activityGroupList = await getActivityGroup()
|
||||
this.campusList = await getCampus()
|
||||
this.historicalActList = await this.getHistoricalActList()
|
||||
this.courseTypeList = await this.getAllType()
|
||||
this.getAddressName()
|
||||
},
|
||||
watch: {
|
||||
'formData.restrictLimit'(val) {
|
||||
|
||||
@@ -1,10 +1,42 @@
|
||||
<el-form :model="formData" label-width="120px" ref="form">
|
||||
<el-form :model="formData" label-width="130px" ref="form">
|
||||
<vi-title title="活动信息"></vi-title>
|
||||
<el-row :gutter="20" type="flex">
|
||||
<el-row :gutter="20" type="flex" v-if="fromEdit !== 'edit'">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="是否沿用之前活动" prop="use">
|
||||
<el-radio-group size="medium" v-model="use">
|
||||
<el-radio-button :label="true" border>沿用之前活动</el-radio-button>
|
||||
<el-radio-button :label="false" border>不沿用之前活动</el-radio-button>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="往期活动" prop="historicalAct">
|
||||
<el-select :disabled="!use" @change="historicalActChange"
|
||||
placeholder="请选择往期活动"
|
||||
style="width: 100%" v-model="historicalAct">
|
||||
<el-option
|
||||
:key="item.id"
|
||||
:label="item.activityName"
|
||||
:value="item.id"
|
||||
v-for="item in historicalActList">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20" type="flex">
|
||||
<el-col :span="24">
|
||||
<el-form-item :rules="{required:true,message: '请输入活动名称', trigger: 'blur'}" label="活动名称"
|
||||
prop="activityName">
|
||||
<el-input maxlength="50" v-model="formData.activityName"></el-input>
|
||||
<el-input maxlength="50" v-model="formData.activityName" placeholder="请输入活动名称"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20" type="flex">
|
||||
<el-col :span="12">
|
||||
<el-form-item label="地点显示文字"
|
||||
prop="addressName">
|
||||
<el-input @input="getAddressName" maxlength="50" v-model="formData.addressName" placeholder="请输入地点显示文字"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
@@ -181,7 +213,7 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column :label="trainType + '地点'" prop="courseLocation">
|
||||
<el-table-column :label="formData.addressDisplayName" prop="courseLocation">
|
||||
<template scope="{row}">
|
||||
<el-input v-model="row.courseLocation"></el-input>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user