|
@@ -25,40 +25,46 @@
|
|
<u-cell title="人员类型" :label="USR_TYPE[meetingInfo.usrType].name">
|
|
<u-cell title="人员类型" :label="USR_TYPE[meetingInfo.usrType].name">
|
|
</u-cell>
|
|
</u-cell>
|
|
</u-cell-group>
|
|
</u-cell-group>
|
|
- <template v-if="meetingInfo.applyType == MEETING_TYPE.meeting.value">
|
|
|
|
- <u-cell-group :border="false">
|
|
|
|
- <u-cell title="是否参加现场调研">
|
|
|
|
- <view
|
|
|
|
- slot="label"
|
|
|
|
- >
|
|
|
|
- <u-tag
|
|
|
|
- plain
|
|
|
|
- :text="SYS_YES_NO[meetingInfo.conferenceFlag].name"
|
|
|
|
- :type="meetingInfo.conferenceFlag == SYS_YES_NO['0'].value ? 'success' : 'warning'">
|
|
|
|
- </u-tag>
|
|
|
|
- </view>
|
|
|
|
- </u-cell>
|
|
|
|
- </u-cell-group>
|
|
|
|
- <u-cell-group :border="false" v-if="meetingInfo.conferenceFlag == SYS_YES_NO['0'].value">
|
|
|
|
- <u-cell title="调研会场" :label="meetingInfo.contentTitle">
|
|
|
|
- </u-cell>
|
|
|
|
- </u-cell-group>
|
|
|
|
- </template>
|
|
|
|
- <template v-else>
|
|
|
|
- <u-cell-group :border="false">
|
|
|
|
- <u-cell title="会议类型" :label="MEETING_TYPE[meetingInfo.applyType].name">
|
|
|
|
- </u-cell>
|
|
|
|
- </u-cell-group>
|
|
|
|
- <u-cell-group :border="false">
|
|
|
|
- <u-cell title="会议信息" :label="meetingInfo.contentTitle">
|
|
|
|
- </u-cell>
|
|
|
|
- </u-cell-group>
|
|
|
|
- </template>
|
|
|
|
|
|
+ <u-cell-group :border="false"
|
|
|
|
+ v-if="rules.conferenceFlag && meetingInfo.conferenceFlag && [0,1].includes(meetingInfo.conferenceFlag)">
|
|
|
|
+ <u-cell title="是否参加现场调研">
|
|
|
|
+ <view
|
|
|
|
+ slot="label"
|
|
|
|
+ >
|
|
|
|
+ <u-tag
|
|
|
|
+ plain
|
|
|
|
+ :text="SYS_YES_NO[meetingInfo.conferenceFlag].name"
|
|
|
|
+ :type="meetingInfo.conferenceFlag == SYS_YES_NO['0'].value ? 'success' : 'warning'">
|
|
|
|
+ </u-tag>
|
|
|
|
+ </view>
|
|
|
|
+ </u-cell>
|
|
|
|
+ </u-cell-group>
|
|
|
|
+ <u-cell-group :border="false" v-if="rules.contentId && meetingInfo.contentTitle">
|
|
|
|
+ <u-cell title="调研会场" :label="meetingInfo.contentTitle">
|
|
|
|
+ </u-cell>
|
|
|
|
+ </u-cell-group>
|
|
|
|
+ <u-cell-group :border="false" v-if="rules.themeFlag">
|
|
|
|
+ <u-cell title="是否参加主题研讨">
|
|
|
|
+ <view
|
|
|
|
+ slot="label"
|
|
|
|
+ >
|
|
|
|
+ <u-tag
|
|
|
|
+ plain
|
|
|
|
+ :text="SYS_YES_NO[meetingInfo.themeFlag].name"
|
|
|
|
+ :type="meetingInfo.themeFlag == SYS_YES_NO['0'].value ? 'success' : 'warning'">
|
|
|
|
+ </u-tag>
|
|
|
|
+ </view>
|
|
|
|
+ </u-cell>
|
|
|
|
+ </u-cell-group>
|
|
|
|
+ <u-cell-group :border="false" v-if="rules.themeId && meetingInfo.themeTitle">
|
|
|
|
+ <u-cell title="研讨主题" :label="meetingInfo.themeTitle">
|
|
|
|
+ </u-cell>
|
|
|
|
+ </u-cell-group>
|
|
<u-cell-group :border="false">
|
|
<u-cell-group :border="false">
|
|
<u-cell title="来程交通方式" :label="TFC_TYPE[meetingInfo.wayComing].name">
|
|
<u-cell title="来程交通方式" :label="TFC_TYPE[meetingInfo.wayComing].name">
|
|
</u-cell>
|
|
</u-cell>
|
|
</u-cell-group>
|
|
</u-cell-group>
|
|
- <u-cell-group :border="false">
|
|
|
|
|
|
+ <u-cell-group :border="false" v-if="meetingInfo.comInfo && meetingInfo.wayComing!='3'">
|
|
<u-cell :title="TFC_INFO[meetingInfo.wayComing].name" :label="meetingInfo.comInfo">
|
|
<u-cell :title="TFC_INFO[meetingInfo.wayComing].name" :label="meetingInfo.comInfo">
|
|
</u-cell>
|
|
</u-cell>
|
|
</u-cell-group>
|
|
</u-cell-group>
|
|
@@ -66,7 +72,7 @@
|
|
<u-cell title="回程交通方式" :label="TFC_TYPE[meetingInfo.wayBack].name">
|
|
<u-cell title="回程交通方式" :label="TFC_TYPE[meetingInfo.wayBack].name">
|
|
</u-cell>
|
|
</u-cell>
|
|
</u-cell-group>
|
|
</u-cell-group>
|
|
- <u-cell-group :border="false">
|
|
|
|
|
|
+ <u-cell-group :border="false" v-if="meetingInfo.backInfo && meetingInfo.wayBack!='3'">
|
|
<u-cell :title="TFC_INFO[meetingInfo.wayBack].name" :label="meetingInfo.backInfo">
|
|
<u-cell :title="TFC_INFO[meetingInfo.wayBack].name" :label="meetingInfo.backInfo">
|
|
</u-cell>
|
|
</u-cell>
|
|
</u-cell-group>
|
|
</u-cell-group>
|
|
@@ -82,7 +88,9 @@
|
|
<u-tag
|
|
<u-tag
|
|
plain
|
|
plain
|
|
:text="REVIEW_STATUS[meetingInfo.reviewState].name"
|
|
:text="REVIEW_STATUS[meetingInfo.reviewState].name"
|
|
- :type="REVIEW_STATUS[meetingInfo.reviewState].tag">
|
|
|
|
|
|
+ :color="REVIEW_STATUS[meetingInfo.reviewState].color"
|
|
|
|
+ :borderColor="REVIEW_STATUS[meetingInfo.reviewState].color"
|
|
|
|
+ >
|
|
</u-tag>
|
|
</u-tag>
|
|
</view>
|
|
</view>
|
|
</u-cell>
|
|
</u-cell>
|
|
@@ -91,8 +99,8 @@
|
|
<u-cell title="不通过原因" :label="meetingInfo.reviewMsg">
|
|
<u-cell title="不通过原因" :label="meetingInfo.reviewMsg">
|
|
</u-cell>
|
|
</u-cell>
|
|
</u-cell-group>
|
|
</u-cell-group>
|
|
- <u-cell-group :border="false" v-for="(item,index) in meetingInfo.follows">
|
|
|
|
- <u-cell :border="false" :title="`随行人员${index+1}`" :label="item.usrName">
|
|
|
|
|
|
+ <u-cell-group :border="false" v-for="(item,index) in meetingInfo.follows" :key="index">
|
|
|
|
+ <u-cell :border="false" :title="`随行人员${index+1}`" :label="item.usrName">
|
|
</u-cell>
|
|
</u-cell>
|
|
<u-cell title="联系电话" :label="item.tel">
|
|
<u-cell title="联系电话" :label="item.tel">
|
|
</u-cell>
|
|
</u-cell>
|
|
@@ -118,7 +126,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { fetchMeetingTips, fetchUsrApplyDetail } from '@/common/api';
|
|
|
|
|
|
+import { fetchMeetingTips, fetchUsrApplyDetail, formCfg } from '@/common/api';
|
|
import { FORM_MOD, MEETING_TYPE, REVIEW_STATUS, SYS_YES_NO, TFC_INFO, TFC_TYPE, USR_TYPE } from '@/common/EnumConst';
|
|
import { FORM_MOD, MEETING_TYPE, REVIEW_STATUS, SYS_YES_NO, TFC_INFO, TFC_TYPE, USR_TYPE } from '@/common/EnumConst';
|
|
import AuthWrap from '@/components/AuthComp/index.vue';
|
|
import AuthWrap from '@/components/AuthComp/index.vue';
|
|
import RichText from '@/components/RichText/index.vue';
|
|
import RichText from '@/components/RichText/index.vue';
|
|
@@ -141,17 +149,21 @@ export default {
|
|
TFC_TYPE,
|
|
TFC_TYPE,
|
|
meetingInfo: {},
|
|
meetingInfo: {},
|
|
tips: {},
|
|
tips: {},
|
|
|
|
+ rules: {},
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
|
|
+
|
|
},
|
|
},
|
|
onLoad(res) {
|
|
onLoad(res) {
|
|
// 登录返回之后的页面
|
|
// 登录返回之后的页面
|
|
if (res) {
|
|
if (res) {
|
|
this.queryParams = res;
|
|
this.queryParams = res;
|
|
}
|
|
}
|
|
- this.getUsrMeetingInfo();
|
|
|
|
- this.getTips();
|
|
|
|
|
|
+ this.getRules(() => {
|
|
|
|
+ this.getUsrMeetingInfo();
|
|
|
|
+ this.getTips();
|
|
|
|
+ });
|
|
},
|
|
},
|
|
onUnload() {
|
|
onUnload() {
|
|
let pages = getCurrentPages();//获取所有界面栈的实例列表
|
|
let pages = getCurrentPages();//获取所有界面栈的实例列表
|
|
@@ -159,6 +171,18 @@ export default {
|
|
prePage.onLoad();
|
|
prePage.onLoad();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ async getRules(callback) {
|
|
|
|
+ const { msg } = await formCfg('meet_form_cfg');
|
|
|
|
+ if (msg) {
|
|
|
|
+ const cfg = JSON.parse(msg);
|
|
|
|
+ const formatCfg = {};
|
|
|
|
+ Object.keys(cfg).forEach(key => {
|
|
|
|
+ formatCfg[key.split('.')[1]] = cfg[key];
|
|
|
|
+ });
|
|
|
|
+ this.rules = formatCfg;
|
|
|
|
+ }
|
|
|
|
+ callback();
|
|
|
|
+ },
|
|
async getUsrMeetingInfo() {
|
|
async getUsrMeetingInfo() {
|
|
const { data } = await fetchUsrApplyDetail(this.queryParams.id);
|
|
const { data } = await fetchUsrApplyDetail(this.queryParams.id);
|
|
if (!data) {
|
|
if (!data) {
|