个人和单位申请分开
This commit is contained in:
parent
056bdacf76
commit
edff1cc690
@ -53,9 +53,9 @@
|
|||||||
<u-icon name="man-add" size="38" color="#2979ff"></u-icon>
|
<u-icon name="man-add" size="38" color="#2979ff"></u-icon>
|
||||||
<text class="section-title">申请人类型</text>
|
<text class="section-title">申请人类型</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="date-display" @click="showApplyTypeClick()">
|
<view class="date-display">
|
||||||
<view class="">{{applyName}}</view>
|
<view class="">{{applyName}}</view>
|
||||||
<u-icon slot="right" name="arrow-right"></u-icon>
|
<!-- <u-icon slot="right" name="arrow-right"></u-icon> -->
|
||||||
</view>
|
</view>
|
||||||
<view v-show="applyName=='单位申请'">
|
<view v-show="applyName=='单位申请'">
|
||||||
<view style="margin-top: 10px;background-color: #f8f9fa;">
|
<view style="margin-top: 10px;background-color: #f8f9fa;">
|
||||||
@ -305,8 +305,8 @@
|
|||||||
applyTypeColumns: [
|
applyTypeColumns: [
|
||||||
['个人申请', '单位申请']
|
['个人申请', '单位申请']
|
||||||
],
|
],
|
||||||
applyType: 1, //个人1 企业2
|
applyType: 1, //企业1 个人2
|
||||||
applyName: '个人申请',
|
|
||||||
concatName: '', //联系人姓名
|
concatName: '', //联系人姓名
|
||||||
concatPhone: '', //联系人电话
|
concatPhone: '', //联系人电话
|
||||||
// 时间选择器控制
|
// 时间选择器控制
|
||||||
@ -398,8 +398,16 @@
|
|||||||
|
|
||||||
return `${month}月${day}日 ${weekday}`;
|
return `${month}月${day}日 ${weekday}`;
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
applyName(){
|
||||||
|
if(this.applyType===1){
|
||||||
|
return '单位申请'
|
||||||
|
}else{
|
||||||
|
return '个人申请'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getDetail();
|
this.getDetail();
|
||||||
},
|
},
|
||||||
@ -432,6 +440,8 @@
|
|||||||
this.detail = {
|
this.detail = {
|
||||||
...res.data
|
...res.data
|
||||||
};
|
};
|
||||||
|
this.applyType=res.data.roomType
|
||||||
|
console.log(this.applyType)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('获取详情失败:', err);
|
console.error('获取详情失败:', err);
|
||||||
}
|
}
|
||||||
@ -610,7 +620,8 @@
|
|||||||
reason: this.reason,
|
reason: this.reason,
|
||||||
applyTheme: this.applyTheme
|
applyTheme: this.applyTheme
|
||||||
};
|
};
|
||||||
if (this.applyType === 1) {
|
//个人申请
|
||||||
|
if (this.applyType === 2) {
|
||||||
const userApplyInfo = {
|
const userApplyInfo = {
|
||||||
userName: this.userName,
|
userName: this.userName,
|
||||||
userPhone: this.userPhone,
|
userPhone: this.userPhone,
|
||||||
@ -629,7 +640,8 @@
|
|||||||
app.globalData.applyInfo = applyInfo
|
app.globalData.applyInfo = applyInfo
|
||||||
this.readShow=true
|
this.readShow=true
|
||||||
}
|
}
|
||||||
if (this.applyType === 2) {
|
//单位申请
|
||||||
|
if (this.applyType === 1) {
|
||||||
if (!this.stampUrl) return uni.showToast({
|
if (!this.stampUrl) return uni.showToast({
|
||||||
title: '请上传印章',
|
title: '请上传印章',
|
||||||
icon:'none'
|
icon:'none'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user