jiangping
2025-03-27 a76e80c22002c50097aa6e991d87eae9bc823b22
h5/pages/driver/reserved.vue
@@ -15,9 +15,9 @@
         <view class="line">
            <view class="label">
               <text>*</text>
               <text>合同号</text>
               <text>合同/单据编号</text>
            </view>
            <view class="value"><input type="text" placeholder="请输入您的合同号" v-model="param.contractNum" placeholder-style="color: #999999;" /></view>
            <view class="value"><input type="text" placeholder="请输入您的合同/单据编号" v-model="param.contractNum" placeholder-style="color: #999999;" /></view>
         </view>
         <!--  -->
         <view class="line">
@@ -33,7 +33,7 @@
         <view class="line">
            <view class="label">
               <text>*</text>
               <text>入库类型</text>
               <text>作业类型</text>
            </view>
            <view class="value">
               <view class="btns">
@@ -55,7 +55,7 @@
         <view class="line">
            <view class="label">
               <text>*</text>
               <text>准运证照片</text>
               <text>准运证/运单照片</text>
            </view>
            <view class="value" @click="handleUpload">
               <image v-if="param.transportImgFull" class="upload_wrap" :src="param.transportImgFull" alt="">
@@ -98,8 +98,10 @@
            </view>
         </view>
         <view class="copy" @click="copy">复制车前牌照号</view>
         <view class="handle_sub" @click="onSubmit">
            提交
         <view class="footer">
            <view class="handle_sub" @click="onSubmit">
               提交
            </view>
         </view>
      </view>
      
@@ -173,14 +175,14 @@
      onSubmit() {
         const param = { ...this.param }
         if (!param.arriveDate) return this.showToast('请选择到场时间')
         if (!param.inType && param.inType != 0) return this.showToast('请选择入库类型')
         if (!param.contractNum) return this.showToast('请输入合同号')
         if (!param.inType && param.inType != 0) return this.showToast('请选择作业类型')
         if (!param.contractNum) return this.showToast('请输入合同/单据编号')
         if (!param.totalNum) return this.showToast('请输入总运输量')
         if (!param.driverName) return this.showToast('请输入司机姓名')
         if (!param.driverPhone) return this.showToast('请输入手机号')
         if (!param.carCodeFront) return this.showToast('请输入车前牌号')
         if (!param.carCodeBack) return this.showToast('请输入车后牌号')
         if (!param.transportImgFull) return this.showToast('请上传准运证照片')
         if (!param.transportImgFull) return this.showToast('请上传准运证/运单照片')
         param.arriveDate = param.arriveDate + ':00'
         let fn = param.id ? driverCarApplyEdit : driverCarApply
         fn({...param}).then(res => {
@@ -188,7 +190,9 @@
               setTimeout(() => {
                  this.showToast('预约申请成功')
               })
               this.$jump('/pages/driver/reservedRecord')
               uni.redirectTo({
                  url: '/pages/driver/index'
               })
            }
         })
      },
@@ -377,11 +381,13 @@
}
.main_app {
   padding-top: 10rpx;
   .footer{
      background-color: #f7f7f7;
      padding: 20rpx 30rpx 30rpx;
      margin: 0 -30rpx;
   }
   .handle_sub{
      // position: fixed;
      // bottom: 64rpx;
      width: 690rpx;
      margin-top: 80rpx;
      background-color: #4d99a8;
      height: 88rpx;
      line-height: 88rpx;
@@ -399,6 +405,7 @@
      background-color: #f7f7f7;
      display: flex;
      margin: 0 -30rpx;
      width: 750rpx;
      justify-content: flex-end;
      padding: 12rpx 30rpx;
      font-size: 26rpx;