临时外出申请新增是否因公外出字段,新增修改查看

This commit is contained in:
lSun 2025-07-29 15:45:31 +08:00
parent ced2b5469a
commit 1eacfe207f
2 changed files with 36 additions and 1 deletions

View File

@ -51,6 +51,11 @@
<input type="text" :value="formData.isTrain === '1' ? '是' : '否'" disabled />
</view>
<view class="form-item">
<text class="label required" style="width: 300px">是否因公外出</text>
<input type="text" :value="formData.isBusiness === '1' ? '是' : '否'" disabled />
</view>
<view class="form-item">
<text class="label required">代理主持工作人员</text>
<input type="text" v-model="formData.hostUserName" disabled />
@ -89,6 +94,7 @@
leaveDuration: '',
location: '',
isAgree: '1',
isBusiness: '1',
isTrain: '1',
hostUserName: '',
leaveReason: '',

View File

@ -162,6 +162,29 @@
</radio-group>
</view>
<view class="form-item">
<text class="label required" style="width: 300px">是否因公外出</text>
<radio-group @change="onBusinessChange">
<label class="radio">
<radio
value="1"
:disabled="isFormDisabled"
checked
:checked="formData.isBusiness === '1'"
/>
</label>
<label class="radio">
<radio
value="0"
:disabled="isFormDisabled"
:checked="formData.isBusiness === '0'"
/>
</label>
</radio-group>
</view>
<view class="form-item" style="margin-bottom: 20rpx">
<text
class="label required"
@ -310,6 +333,7 @@
location: '',
isAgree: '1',
isTrain: '1',
isBusiness: '1',
representative: '',
hostUserId: '',
hostUserName: '',
@ -473,6 +497,9 @@
onAgreerovalChange(e){
this.formData.isAgree = e.detail.value
},
onBusinessChange(e){
this.formData.isBusiness = e.detail.value
},
onTrainChange(e){
this.formData.isTrain = e.detail.value
},
@ -621,7 +648,8 @@
hostUserId,
hostUserName,
isAgree,
isTrain,
isBusiness,
isTrain,
leaveDuration,
leaveEndDate,
leaveStartDate,
@ -643,6 +671,7 @@
hostUserId,
hostUserName,
isAgree,
isBusiness,
isTrain,
leaveDuration,
leaveEndDate,