''
liukangdong
2024-07-04 5a85dcab83e969d6b21c599b512a15117e9b8651
h5/pages/staff/vehicle/sendACarDetail.vue
@@ -118,10 +118,19 @@
      </view>
    </view>
    <view class="emyty"></view>
    <view class="main_footer">
      <!-- <view class="btn" @click="handleSub(3)">拒绝</view>
      <view class="btn agree" @click="handleSub(2)">同意</view> -->
      <view class="btn agree" @click="isShowBack = true">撤销用车</view>
    <view
      class="main_footer"
      v-if="
        info.approveDateVO != null &&
        info.approveDateVO.canBeApproved != null &&
        info.approveDateVO.canBeApproved == 1
      "
    >
      <template v-if="appr == '1'">
        <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>
    <!-- 撤销 -->
@@ -155,7 +164,7 @@
    >
      <view class="appr_modal">
        <view class="title">{{ param.status == 2 ? "同意" : "拒绝" }}</view>
        <view class="line" @click="isShowDrive = true">
        <view v-if="param.status == 2" class="line" @click="isShowDrive = true">
          <text v-if="param.driverName">{{ param.driverName }}</text>
          <text v-else class="placeholder9">派车司机</text>
          <u-icon class="ml12" name="arrow-right" color="#999999" />
@@ -163,7 +172,7 @@
        <textarea
          v-model="param.checkInfo"
          :placeholder="
            param.status == 2 ? '同意说明,非必填' : '拒绝说明,非必填'
            param.status == 2 ? '同意说明,非必填' : '拒绝说明,必填'
          "
          placeholder-class="placeholder9"
        />
@@ -187,7 +196,7 @@
</template>
<script>
import { carUseBookDetail, carUseBookAppr, driveListPos, carUseBookBack } from '@/api'
import { carUseBookDetail, carUseBookAppr, driveListPost, carUseBookBack } from '@/api'
export default {
  data() {
    return {
@@ -196,6 +205,7 @@
      backParam: {},
      isShowDrive: false,
      id: '',
      appr: '',
      info: {},
      param: {
        status: ''
@@ -206,6 +216,7 @@
  },
  onLoad(option) {
    this.id = option.id
    this.appr = option.appr || ''
    this.getDetail()
  },
  methods: {
@@ -295,7 +306,7 @@
    padding: 30rpx 0;
    .flow_title {
      font-weight: 500;
      font-weight: 600;
      font-size: 32rpx;
      color: #222222;
      margin-bottom: 24rpx;
@@ -466,7 +477,7 @@
    padding: 30rpx 0;
    .name {
      font-weight: 500;
      font-weight: 600;
      font-size: 32rpx;
      margin-bottom: 20rpx;
      color: #222222;
@@ -525,7 +536,7 @@
      margin-bottom: 20rpx;
    }
    .title {
      font-weight: 500;
      font-weight: 600;
      font-size: 32rpx;
      color: #222222;
      margin-bottom: 40rpx;