| | |
| | | info.approveDateVO.canBeApproved != null &&
|
| | | info.approveDateVO.canBeApproved == 1
|
| | | ">
|
| | | <template v-if="appr == '1'">
|
| | | <template>
|
| | | <view class="btn" @click="handleSub(3)">拒绝</view>
|
| | | <view class="btn agree" @click="handleSub(2)">同意</view>
|
| | | </template>
|
| | | <view v-else class="btn agree" @click="isShowBack = true">撤销用车</view>
|
| | | </view>
|
| | | </view> |
| | | <template v-else> |
| | | <view v-if="(info.approveDateVO.canBeApproved == 1 || userInfo.memberId == info.memberId) && info.status == 0" class="main_footer" @click="isShowBack = true"> |
| | | <view class="agree btn">撤回用车</view> |
| | | </view> |
| | | </template> |
| | | |
| | |
|
| | | <!-- 撤销 -->
|
| | | <u-popup :show="isShowBack" :round="10" :safeAreaInsetBottom="true" mode="bottom" @close="isShowBack = false">
|
| | | <view class="appr_modal">
|
| | | <view class="title">撤销用车</view>
|
| | | <view class="line"> 撤销说明 </view>
|
| | | <view class="title">撤回用车</view>
|
| | | <view class="line"> 撤回说明 </view>
|
| | | <textarea v-model="backParam.info" placeholder="非必填" placeholder-class="placeholder9" />
|
| | | <view class="main_footer">
|
| | | <view class="btn agree" @click="onSubBack">提交</view>
|
| | |
| | | showApprModal: false,
|
| | | isShowBack: false,
|
| | | backParam: {},
|
| | | isShowDrive: false,
|
| | | isShowDrive: false, |
| | | userInfo: uni.getStorageSync('userInfo') || {},
|
| | | id: '',
|
| | | appr: '',
|
| | | infoStatus: '',
|
| | |
| | | this.showApprModal = true
|
| | | },
|
| | | getDriveList() {
|
| | | driveListPost({}).then(res => {
|
| | | this.driveList = [res.data]
|
| | | driveListPost({}).then(res => { |
| | | const temp = res.data || []
|
| | | this.driveList = [res.data] |
| | | if(this.param.driverId){ |
| | | const item = temp.find(i=>i.id == this.param.driverId) |
| | | this.$set(this.param, 'driverName', item.name) |
| | | }
|
| | | })
|
| | | },
|
| | | seletedDrive(e) {
|