| | |
| | | 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>
|
| | |
| | | <u-popup :show="showApprModal" :round="10" :safeAreaInsetBottom="true" mode="bottom" @close="showApprModal = false">
|
| | | <view class="appr_modal">
|
| | | <view class="title">{{ param.status == 2 ? "同意" : "拒绝" }}</view>
|
| | | <view v-if="param.status == 2" class="line" @click="isShowDrive = true">
|
| | | <text v-if="param.driverName">{{ param.driverName }}</text>
|
| | | <view v-if="param.status == 2" class="line" @click="openModal">
|
| | | <text :class="{placeholder9: info.approveDateVO.driverParam == 0}" v-if="param.driverName">{{ param.driverName }}</text>
|
| | | <text v-else class="placeholder9">派车司机</text>
|
| | | <u-icon class="ml12" name="arrow-right" color="#999999" />
|
| | | <u-icon v-if="info.approveDateVO.driverParam == 1" class="ml12" name="arrow-right" color="#999999" />
|
| | | </view>
|
| | | <textarea v-model="param.checkInfo" :placeholder="
|
| | | param.status == 2 ? '同意说明,非必填' : '拒绝说明,必填'
|
| | |
| | | showApprModal: false,
|
| | | isShowBack: false,
|
| | | backParam: {},
|
| | | isShowDrive: false,
|
| | | isShowDrive: false, |
| | | userInfo: uni.getStorageSync('userInfo') || {},
|
| | | id: '',
|
| | | appr: '',
|
| | | infoStatus: '',
|
| | |
| | | })
|
| | | }
|
| | | })
|
| | | }, |
| | | openModal() { |
| | | if(this.info.approveDateVO.driverParam == 0) return |
| | | this.isShowDrive = true |
| | | |
| | | },
|
| | | onSubBack() {
|
| | | carUseBookBack({
|
| | |
| | | this.getDriveList()
|
| | | } else {
|
| | |
|
| | | } |
| | | if(this.info.driverId && this.info.driverName){ |
| | | this.$set(this.param, 'driverId', this.info.driverId) |
| | | this.$set(this.param, 'driverName', this.info.driverName) |
| | | }
|
| | | 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) {
|