wk
2024-06-29 bc283f3277c5da93684864e8fbd9f3aee262ca7a
pages/driver-page/drvier-my/drvier-my.vue
@@ -34,12 +34,7 @@
      <view class="process-tran"
         >
      </view>
      <view class="tran-type">
         <view ><u-button type="primary"
               @click="editTranClick"
               shape="circle"
               plain>添加运输证</u-button></view>
      </view>
      <view class="information-block">
         <view class="personal-information">
            <view class="personal-information-block">
@@ -129,7 +124,7 @@
                           size="36"></u-icon>
                     </view>
                  </view> -->
                  <view class="information-line last"
                  <view class="information-line"
                     @click="scoreDetail">
                     <view class="line-label"
                        style="margin-left: 1.5%;">
@@ -147,24 +142,27 @@
                              size="36"></u-icon>
                        </view>
                     </view>
                  </view>
                  <view class="information-line last"
                     @click="scoreCert">
                     <view class="line-label"
                        style="margin-left: 1.5%;">
                        <image src="https://mx.jzeg.cn:9096/appimg/image/banner/score.png"
                           mode="widthFix"
                           style="width: 36rpx;position: relative;left: 8rpx;"></image>
                        <view class="label-text">道路运输证</view>
                     </view>
                     <view class="information-value">
                        <view class="">
                           {{ '' }}
                        </view>
                        <view class="">
                           <u-icon name="arrow-right"
                              size="36"></u-icon>
                        </view>
                     </view>
                  </view>
               </view>
            </view>
         </view>
      </view>
      <view class="car-information" v-if="certificateData.length>0">
         <view class="roadTransportCertificate">
            <view class="information-body">
               <view class="certificate" v-for="item in certificateData" :key="item.id">
                  <view class="certificate-left">
                     产品:{{item.productName}}
                  </view>
                  <view class="certificate-right">
                     {{item.status==0?'未审核':item.status==1?'通过':item.status==2?'过期':item.status==-1?"未通过":null}}
                  </view>
               </view>
               {{}}
            </view>
         </view>
      </view>
@@ -288,6 +286,7 @@
                     required>
                     <u--input v-model="editUserInfo.phone"
                        border="none"
                        disabled
                        inputAlign="left"></u--input>
                  </u-form-item>
                  <!-- <u-form-item labelWidth="20%"
@@ -301,7 +300,7 @@
                  <u-form-item labelWidth="20%"
                     label="体重"
                     prop="weight"
                     required>
                     >
                     <u--input v-model="editUserInfo.weight"
                        border="none"
                        inputAlign="left"
@@ -310,13 +309,13 @@
                  <u-form-item labelWidth="20%"
                     label="车轴数"
                     prop="axleNum"
                     required>
                     >
                     <u--input v-model="editUserInfo.axleNum"
                        border="none"
                        inputAlign="left"></u--input>
                  </u-form-item>
                  <u-form-item labelWidth="20%"
                     label="车辆类型"
                     label="环保标准"
                     borderBottom
                     required
                     prop="countryNumberCar">
@@ -333,85 +332,17 @@
                           :name="item.name"></u-radio>
                     </u-radio-group>
                  </u-form-item>
                  <u-form-item labelWidth="25%"
                     label="车辆照片"
                     @click="beforeRead"
                     prop="carImg"
                     required>
                     <u-upload :fileList="fileList1"
                        @afterRead="afterRead"
                        @delete="deletePic"
                        name="1"
                        multiple
                        :maxCount="1"
                        width="250"
                        height="150"
                        :previewFullImage="true"></u-upload>
                  </u-form-item>
                  <u-form-item labelWidth="25%"
                     label="行驶证照片"
                     ref="item1"
                     @click="beforeRead"
                     prop="drivingImg"
                     required>
                     <u-upload :fileList="fileList2"
                        @afterRead="afterRead"
                        @delete="deletePic"
                        name="2"
                        multiple
                        :maxCount="1"
                        width="250"
                        height="150"
                        :previewFullImage="true"></u-upload>
                  </u-form-item>
                  <u-form-item labelWidth="25%"
                     label="道路运输证"
                     ref="item1"
                     @click="beforeRead"
                     prop="roadTransportImg"
                     required>
                     <u-upload :fileList="fileList3"
                        @afterRead="afterRead"
                        @delete="deletePic"
                        name="3"
                        multiple
                        :maxCount="1"
                        width="250"
                        height="150"
                        :previewFullImage="true"></u-upload>
                  </u-form-item>
                  <u-form-item labelWidth="25%"
                     label="从业资格证"
                     ref="item1"
                     @click="beforeRead"
                     prop="tradeQualificationImg"
                     required>
                     <u-upload :fileList="fileList4"
                        @afterRead="afterRead"
                        @delete="deletePic"
                        name="4"
                        multiple
                        :maxCount="1"
                        width="250"
                        height="150"
                        :previewFullImage="true"></u-upload>
                  </u-form-item>
                  <u-form-item prop="inventoryImg"
                     label="环保清单"
                     labelWidth="24%"
                  <u-form-item labelWidth="20%"
                     label="车辆类型"
                     borderBottom
                     @click="beforeRead">
                     <u-upload :fileList="fileList5"
                        deletable
                        @afterRead="afterRead"
                        @delete="deletePic"
                        name="5"
                        multiple
                        :maxCount="3"
                        width="250"
                        height="150"
                        :previewFullImage="true">
                     </u-upload>
                     ref="roleRef"
                     required>
                     <niceui-data-select-input v-model="editUserInfo.carType"
                        :localdata="radiolist2"
                        label="车辆类型选择"
                        placeholder="请选择车辆类型"
                        @change="productcarTypeChange"
                        ></niceui-data-select-input>
                  </u-form-item>
               </u--form>
               <view class="person-utils">
@@ -437,7 +368,7 @@
            <view class="editDriverPopup-container-box">
               <u--form labelPosition="left"
                  :model="registerFormModel"
                  ref="editRef">
                  >
                  <u-form-item prop="cardImg1"
                     label="身份证正面"
                     labelWidth="20%"
@@ -532,7 +463,6 @@
                     label="从业资格证"
                     labelWidth="24%"
                     borderBottom
                     v-if="registerFormModel.type == 3||registerFormModel.type == 4"
                     required
                     @click="beforeRead">
                     <u-upload :fileList="fileList4"
@@ -551,7 +481,7 @@
                     label="从业资格过期时间"
                     labelWidth="20%"
                     borderBottom
                     v-if="registerFormModel.type == 3||registerFormModel.type == 4">
                     >
                     <uni-datetime-picker v-model="registerFormModel.expirationTimeTradequalification" type="datetime"  :start="minDate" />
                  </u-form-item>
               </u--form>
@@ -559,200 +489,6 @@
                  <u-button text="提交证件修改"
                     @click="updateDoc"
                     type="primary"></u-button>
               </view>
            </view>
         </u-popup>
      </view>
      <!-- 添加道路运输证 -->
      <view class="editDriverPopup-container">
         <u-popup :show="editTranShow"
            mode="bottom"
            @close="editTranClose"
            @open="editTranOpen"
            :closeable="true">
            <combined-title title="运输证"
               style="margin-left:20rpx"></combined-title>
            <view class="editDriverPopup-container-box">
               <u--form labelPosition="left"
                  :model="tranSportForm"
                  :rule="sportRules"
                  ref="sportRef">
                  <u-form-item labelWidth="20%"
                     label="运输证号"
                     prop="certificateNo"
                     required>
                     <u--input v-model="tranSportForm.certificateNo"
                        border="none"
                        inputAlign="left"></u--input>
                  </u-form-item>
                  <u-form-item labelWidth="20%"
                     label="车牌号"
                     prop="carNo"
                     required>
                     <u--input v-model="tranSportForm.carNo"
                        border="none"
                        inputAlign="left"></u--input>
                  </u-form-item>
                  <u-form-item labelWidth="20%"
                     label="产品"
                     ref="item1"
                     @click="treeOpen"
                     prop='productId'>
                     <u--input placeholder="请选择产品"
                        v-model="productName"
                        class="input"
                        type="text"></u--input>
                     <qian-tree ref="tkitree"
                        :range="productData"
                        rangeKey='productName'
                        confirmColor="#4e8af7"
                        :selectParent="true"
                        title="选择部门"
                        @confirm="treeChooseValue" />
                  </u-form-item>
                  <view class="customer-name">
                     <view class="customer-name_label">
                        选择客户
                     </view>
                     <view class="customer-name_block"
                        @click="selfDeliver">
                        <input class="customer-name_block-input"
                           type="text"
                           placeholder="请选择客户"
                           v-model="customerName"
                           @focus="selfDeliver"
                           ref="selectCustomer" />
                     </view>
                  </view>
                  <u-form-item prop="certificateImg"
                     label="运输证"
                     labelWidth="20%"
                     borderBottom
                     required
                     @click="beforeRead">
                     <u-upload :fileList="fileList9"
                        deletable
                        @afterRead="afterRead"
                        @delete="deletePic"
                        name="9"
                        multiple
                        :maxCount="1"
                        width="250"
                        height="150"
                        :previewFullImage="true">
                     </u-upload>
                  </u-form-item>
                  <u-form-item prop="expirationTime"
                     label="运输证过期时间"
                     labelWidth="20%"
                     borderBottom>
                     <uni-datetime-picker v-model="tranSportForm.expirationTime" type="datetime" :start="minDate" />
                  </u-form-item>
                  <view class="adddelete">
                     <u-button text="添加驾驶员"
                        @click="addDriver"
                        type="primary"></u-button>
                     <u-button text="删除驾驶员"
                        @click="deleteDriver"
                        type="error"></u-button>
                  </view>
                  <view class="superList" v-for="(item,index) in driverList" :key="index">
                     <u-form-item labelWidth="20%"
                        label="姓名"
                        prop="driverName"
                        required>
                        <u--input v-model="item.driverName"
                           border="none"
                           inputAlign="left"></u--input>
                     </u-form-item>
                     <u-form-item labelWidth="20%"
                        label="身份证"
                        prop="driverIdcard"
                        required>
                        <u--input v-model="item.driverIdcard"
                           border="none"
                           inputAlign="left"></u--input>
                     </u-form-item>
                  </view>
                  <view class="adddelete">
                     <u-button text="添加押运员"
                        @click="addSupercar"
                        type="primary"></u-button>
                     <u-button text="删除押运员"
                        @click="deleteSupercar"
                        type="error"></u-button>
                  </view>
                  <view class="superList" v-for="(item,index) in supercargoList" :key="index">
                     <u-form-item labelWidth="20%"
                        label="姓名"
                        prop="driverName"
                        required>
                        <u--input v-model="item.driverName"
                           border="none"
                           inputAlign="left"></u--input>
                     </u-form-item>
                     <u-form-item labelWidth="20%"
                        label="身份证"
                        prop="driverIdcard"
                        required>
                        <u--input v-model="item.driverIdcard"
                           border="none"
                           inputAlign="left"></u--input>
                     </u-form-item>
                     <u-form-item labelWidth="20%"
                        label="手机号"
                        prop="driverPhone"
                        required>
                        <u--input v-model="item.driverPhone"
                           border="none"
                           inputAlign="left"></u--input>
                     </u-form-item>
                  </view>
                  <u-form-item labelWidth="20%"
                     label="备注"
                     prop="remarks">
                     <u--input v-model="tranSportForm.remarks"
                        border="none"
                        inputAlign="left"></u--input>
                  </u-form-item>
               </u--form>
               <view class="person-utils">
                  <u-button text="提交道路运输证"
                     @click="updateRoad"
                     type="primary"></u-button>
               </view>
            </view>
         </u-popup>
         <u-popup :closeable='true'
            :round="30"
            mode='bottom'
            :show="selfDeliverShow"
            @close="selfDeliverClose"
            @open="selfDeliverOpen">
            <view class="name-list-section">
               <view class="name-list_title">
                  选择客户
               </view>
               <view class="name-list_container">
                  <u-empty mode="data"
                     icon="http://cdn.uviewui.com/uview/empty/data.png"
                     text="暂无数据"
                     textSize="30"
                     iconSize="1000"
                     v-if="customerNameList.length===0"></u-empty>
                  <view class="name-list_container_item"
                     v-for="(item,index) in customerNameList" :key="index"
                     @click="selectCustomer(item)">
                     <view class="item-image">
                        <image src="https://mx.jzeg.cn:9096/appimg/image/banner/address.png"
                           mode="widthFix"
                           style="width: 18px;"></image>
                     </view>
                     <view class="item-customerName">
                        {{item.customerName}}
                     </view>
                  </view>
               </view>
            </view>
         </u-popup>
@@ -783,8 +519,6 @@
      data() {
         return {
            minDate: this.getToday(),
            selfDeliverShow: false,
            customerNameList:[],
            customerName:"",
            // 获取的司机详情
            userInfo: {},
@@ -810,11 +544,23 @@
               countryNumberCar: 0
            },
            registerFormModel:{},
            tranSportForm:{
               carNo:"",
               productId:"",
               customerId:""
            },
            radiolist2: [{
                  text: '普通运输车',
                  value:1
               },
               {
                  text: '集装箱平板车',
                  value:2
               },
               {
                  text: '液氯槽车',
                  value:3
               },
               {
                  text: '液碱槽车',
                  value:4
               }
            ],
            countryNumberCarList: [{
                  name: 1,
                  label: '国五',
@@ -824,44 +570,18 @@
                  label: '国六',
               }
            ],
            sportRules:{
               certificateNo: {
                  type: 'string',
                  required: true,
                  message: '请填写运输证号',
                  trigger: ['blur', 'change']
               },
               expirationTime: {
                  type: 'string',
                  required: true,
                  message: '请选择运输证过期时间',
                  trigger: ['blur', 'change']
               },
               carNo: [{
                     type: 'string',
                     required: true,
                     message: '请输入车牌号',
                     trigger: ['blur', 'change']
                  },
                  {
                     transform(value) {
                        return String(value);
                     },
                     validator: (rule, value, callback) => {
                        return uni.$u.test.carNo(value);
                     },
                     message: '请输入正确的车牌号',
                     trigger: ['change', 'blur']
                  }
               ],
            },
            rules: {
               name: {
               name: [{
                  type: 'string',
                  required: true,
                  message: '请填写姓名',
                  trigger: ['blur', 'change']
               },
               {
                  pattern: /^[\u4e00-\u9fa5\s]+$/,
                  message: '姓名只能是中文',
                  trigger: ['blur', 'change']
               }],
               idCard: [{
                     type: 'string',
                     required: true,
@@ -952,7 +672,7 @@
               countryNumberCar: {
                  type: 'number',
                  required: true,
                  message: '请选择车辆类型',
                  message: '请选择环保标准',
                  trigger: ['blur', 'change']
               },
               roadTransportImg: {
@@ -973,22 +693,12 @@
            fileList2: [],
            fileList3: [],
            fileList4: [],
            fileList5: [],
            fileList6: [],
            fileList7: [],
            fileList8: [],
            fileList9: [],
            productData:[],
            certificateData:[],
            driverList:[{
               driverName:"",
               driverIdcard:""
            }],
            supercargoList:[],
            // 修改信息弹出框
            editDriverPopupShow: false,
            editDocShow:false,
            editTranShow:false,
            // previewImage
            previewImageShow: false,
            previewImageSrc: '',
@@ -1013,9 +723,11 @@
      },
      onReady() {
         this.$refs.editRef.setRules(this.rules);
         this.$refs.sportRef.setRules(this.sportRules);
      },
      methods: {
         productcarTypeChange(e){
            this.registerFormModel.carType = this.radiolist2.find(v => v.value === e).value
         },
         ...mapMutations(['changeisUploadimg']),
         getToday() {
           let now = new Date();
@@ -1025,16 +737,12 @@
           let hour = this.padStart(now.getHours());
           let minute = this.padStart(now.getMinutes());
           let second = this.padStart(now.getSeconds());
           console.log(`${year}-${month}-${day} ${hour}:${minute}:${second}`)
           return `${year}-${month}-${day} ${hour}:${minute}:${second}`;
         },
         padStart(value) {
           return value.toString().padStart(2, '0');
         },
         init() {
            this.$reqGet('getProductTree').then(res => {
               this.productData = res.data;
            });
            this.getUserEntity();
         },
         getUserEntity() {
@@ -1044,10 +752,6 @@
            this.$reqGet('getUserEntity').then(res => {
               uni.hideLoading();
               this.userInfo = res.data;
               this.$reqGetId('getDriverListById', this.userInfo.userId).then(res => {
                  this.certificateData = res.data;
                  console.log(this.certificateData)
               });
               // this.userInfo.idCard = this.userInfo.idCard.slice(0, 6) + '********' + this.userInfo.idCard
               //    .slice(-4)
               uni.setStorageSync('carImg', this.userInfo.carImg);
@@ -1072,11 +776,6 @@
               if (this.fileList4.length == 0 && this.userInfo.tradeQualificationImg) {
                  this.fileList4.push({
                     url: `${BaseUrl}${this.userInfo.tradeQualificationImg}`
                  });
               }
               if (this.fileList5.length == 0 && this.userInfo.inventoryImg) {
                  this.fileList5.push({
                     url: `${BaseUrl}${this.userInfo.inventoryImg}`
                  });
               }
               Object.assign(this.editUserInfo, res.data)
@@ -1120,10 +819,6 @@
         },
         editDocClick(){
            this.editDocShow = true;
         },
         editTranClick(){
            this.getShipToList()
            this.editTranShow = true;
         },
         imageClick(index) {
            if (index == 1) {
@@ -1218,10 +913,6 @@
                        this.registerFormModel.driverImg = JSON.parse(res.data)
                           .data.url;
                        resolve(`${BaseUrl}${JSON.parse(res.data).data.url}`);
                     }else if(num==9){
                        this.tranSportForm.certificateImg = JSON.parse(res.data)
                           .data.url;
                        resolve(`${BaseUrl}${JSON.parse(res.data).data.url}`);
                     }
                     
                  }
@@ -1244,12 +935,8 @@
         editDocClose(){
            this.editDocShow = false;
         },
         editTranClose(){
            this.editTranShow = false;
         },
         editDriverPopupOpen() {},
         editDocOpen(){},
         editTranOpen(){},
         modifyPassword() {
            this.$store.commit('changeisLogin', false)
            this.$store.dispatch('websocketOnClose')
@@ -1257,124 +944,8 @@
               url: '/pages/login/forgetPassword/forgetPassword'
            })
         },
         updateRoad(){
            this.$refs.sportRef
               .validate()
               .then(res => {
                  if (this.tranSportForm.productId == '' ) {
                     uni.showToast({
                        title: '请选择产品!',
                        icon: 'error',
                        duration: 2000
                     });
                  }else if(this.tranSportForm.customerId == ''){
                     uni.showToast({
                        title: '请选择客户!',
                        icon: 'error',
                        duration: 2000
                     });
                  }
                  let idcardtext=/^([1-6][1-9]|50)\d{4}(18|19|20)\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/
                  if(this.driverList.length>0){
                     this.driverList.forEach((item,index)=>{
                        if(!item.driverName){
                           uni.showToast({
                              title: `请填写驾驶姓名!`,
                              icon: 'error',
                              duration: 2000
                           });
                        }
                        if(!item.driverIdcard){
                           uni.showToast({
                              title: `请填写驾驶身份证!`,
                              icon: 'error',
                              duration: 2000
                           });
                        }else if(!idcardtext.test(item.driverIdcard)){
                           uni.showToast({
                              title: `请检验驾驶员身份证!`,
                              icon: 'error',
                              duration: 2000
                           });
                        }
                     })
                  }
                  if(this.supercargoList.length>0){
                     this.supercargoList.forEach((item,index)=>{
                        if(!item.driverName){
                           uni.showToast({
                              title: `请填写押运姓名!`,
                              icon: 'error',
                              duration: 2000
                           });
                        }
                        if(!item.driverIdcard){
                           uni.showToast({
                              title: `请填写押运身份证!`,
                              icon: 'error',
                              duration: 2000
                           });
                        }else if(!idcardtext.test(item.driverIdcard)){
                           uni.showToast({
                              title: `请检验押运身份证!`,
                              icon: 'error',
                              duration: 2000
                           });
                        }
                        if(!item.driverPhone){
                           uni.showToast({
                              title: `请填写押运手机号!`,
                              icon: 'error',
                              duration: 2000
                           });
                        }else if( !/^1[23456789]\d{9}$/.test(item.driverPhone)){
                           uni.showToast({
                              title: `请检验押运手机号!`,
                              icon: 'error',
                              duration: 2000
                           });
                        }
                     })
                  }
                  let driverName=""
                  let driverIdcard=""
                  let supercargoInfo=''
                  driverName = this.driverList.map((item, index) => {
                          return item.driverName;
                        }).join(",");
                  driverIdcard = this.driverList.map((item, index) => {
                         return item.driverIdcard;
                        }).join(",");
                  supercargoInfo = this.supercargoList.map((item, index) => {
                      return item.driverName+ '|'+item.driverIdcard+"|"+item.driverPhone
                     }).join(",");
                     if(this.tranSportForm.expirationTime){
                        this.tranSportForm.expirationTime=this.tranSportForm.expirationTime.slice(0,16)
                     }
                  this.$reqPost('addJcroadtransport', {
                     userId:this.registerFormModel.customerid,
                     ...this.tranSportForm,
                     driverName:driverName,
                     driverIdcard:driverIdcard,
                     supercargoInfo:supercargoInfo
                  }, 'json').then(res => {
                     this.editTranShow = false;
                     if (res.code == 0) {
                        this.$u.toast('修改成功');
                        this.init();
                     } else {
                        uni.showToast({
                           title: res.msg,
                           icon: 'none',
                           duration: 2000
                        });
                     }
                  })
               })
         },
         // 修改证件信息
         updateDoc(){
            if(this.registerFormModel.type == 3||this.registerFormModel.type == 4){
               this.$reqPost('saveDriverDocs', {
                  userId:this.registerFormModel.customerid,
                  idCardImg:this.registerFormModel.cardImg1+","+this.registerFormModel.cardImg2,
@@ -1386,10 +957,10 @@
                  tradeQualificationImg:this.registerFormModel.tradeQualificationImg,
                  expirationTimeTradequalification:this.registerFormModel.expirationTimeTradequalification.slice(0,16),
               }, 'json').then(res => {
                  this.editDocShow = false;
                  if (res.code == 0) {
                     this.$u.toast('修改成功');
                     this.init();
                     this.editDocShow = false;
                  } else {
                     uni.showToast({
                        title: res.msg,
@@ -1398,37 +969,13 @@
                     });
                  }
               })
            }else{
               this.$reqPost('saveDriverDocs', {
                  userId:this.registerFormModel.customerid,
                  idCardImg:this.registerFormModel.cardImg1+","+this.registerFormModel.cardImg2,
                  expirationTimeIdcard:this.registerFormModel.expirationTimeIdcard.slice(0,16),
                  drivingImg:this.registerFormModel.drivingImg,
                  expirationTimeDriving:this.registerFormModel.expirationTimeDriving.slice(0,16),
                  driverImg:this.registerFormModel.driverImg,
                  expirationTimeDriver:this.registerFormModel.expirationTimeDriver.slice(0,16),
               }, 'json').then(res => {
                  this.editDocShow = false;
                  if (res.code == 0) {
                     this.$u.toast('修改成功');
                     this.init();
                  } else {
                     uni.showToast({
                        title: res.msg,
                        icon: 'none',
                        duration: 2000
                     });
                  }
               })
            }
         },
         // 修改用户信息
         updateUser() {
            this.editUserInfo = {
               ...this.editUserInfo,
               carImg: uni.getStorageSync('carImg'),
               drivingImg: uni.getStorageSync('drivingImg'),
               isRegister: '0'
               drivingImg: uni.getStorageSync('drivingImg')
            };
            this.$refs.editRef
               .validate()
@@ -1474,6 +1021,11 @@
               url: '/pages/driver-page/drvier-my/scoreDetail/scoreDetail'
            })
         },
         scoreCert(){
            uni.navigateTo({
               url: '/pages/driver-page/drvier-my/certifiCate/certifiCate'
            })
         },
         addressManageHandle() {
            uni.navigateTo({
               url: '/pages/driver-page/drvier-my/addressMange/addressMange'
@@ -1507,56 +1059,7 @@
         treeClose() {
            this.$refs.tkitree._hide();
         },
         treeChooseValue(v) {
            this.$refs.tkitree._hide();
            let data=this.findNameById(this.productData, v)[0]
            this.tranSportForm.productId = data.id;
            this.productName=data.name
         },
         // 获取客户
         getShipToList() {
            this.$reqGet('getShipToList', { deptId: this.editUserInfo.deptId, productName: this.editUserInfo.productName })
               .then(res => {
                  if (res.code == 0) {
                     this.customerNameList = res.data
                  }else {
                  this.$u.toast('加载失败')
               }
            })
         },
         selfDeliver() {
            this.selfDeliverShow = true
         },
         selfDeliverClose() {
            this.selfDeliverShow = false
         },
         selfDeliverOpen() {
            this.selfDeliverShow = true
         },
         selectCustomer(value) {
            this.tranSportForm.customerId = value.customerId
            this.customerName = value.customerName
            this.selfDeliverShow = false
         },
         addSupercar(){
            this.supercargoList.push({
               driverName:"",
               driverIdcard:"",
               driverPhone:""
            })
         },
         addDriver(){
            this.driverList.push({
               driverName:"",
               driverIdcard:""
            })
         },
         deleteSupercar(){
            this.supercargoList.splice(this.supercargoList.length - 1, 1)
         },
         deleteDriver(){
            this.driverList.splice(this.driverList.length - 1, 1);
         },
      }
   };
</script>
@@ -1690,7 +1193,7 @@
            &-block {
               width: 690rpx;
               height: 680rpx;
               height: 760rpx;
               background: #ffffff;
               box-shadow: 0rpx 0rpx 14rpx 0rpx rgba(73, 120, 240, 0.14), 0rpx 7rpx 45rpx 0rpx rgba(73, 120, 240, 0.12);
               border-radius: 20rpx;