wk
2024-07-11 fcd9dabadd792a13d22d89cf574d081038c98d32
pages/doorkeeper-page/doorkeeper-index/doorkeeper-index.vue
@@ -18,7 +18,7 @@
            <uni-tr v-for="(item, index) in driverBillOfLoadingData"
               :key="item.id">
               <uni-td align="center">{{ item.carNo || '' }}</uni-td>
               <uni-td align="center">{{ item.productName || '' }}</uni-td>
               <uni-td align="center">{{ item.productNames || '' }}</uni-td>
               <uni-td align="center">{{ item.driver  }}</uni-td>
               <uni-td align="center">{{ item.phone || '' }}</uni-td>
               <uni-td align="center">{{ item.startTime || '' }}-{{item.endTime || ""}}</uni-td>
@@ -104,6 +104,14 @@
               @confirm="logoutConfirm"
               @cancel="logoutCancel"></u-modal>
         </view>
         <view class="falseModel">
            <u-modal :show="falseShow"
               :title="logoutTitle"
               showCancelButton
               :content="logoutContent"
               @confirm="falseConfirm"
               @cancel="falseCancel"></u-modal>
         </view>
      </view>
</template>
@@ -126,6 +134,7 @@
            ClickLoading:false,
            certificateImg:"",
            logoutShow: false,
            falseShow:false,
            logoutTitle: '提示',
            logoutContent: '是否检查完毕',
            previewImageSrc:"",
@@ -136,6 +145,27 @@
         this.init();
      },
      methods: {
         falseConfirm(){
            this.inspectData=[]
            uni.showLoading({ title: '加载中...' });
            this.$reqPost('addCheckLog',{
                        carNo:this.form.carNo,
                        taskId:this.form.id,
                        taskcode:this.form.code,
                     }, 'json').then(res => {
               if (res.code === 0) {
                  uni.$u.toast('检查成功')
                  this.form={}
                  this.ClickLoading = false;
                  this.show = false;
                  this.TaskCoalList()
                  this.falseShow = false;
               } else {
                  uni.$u.toast(res.msg ? res.msg : '检查失败')
                  this.falseShow = false;
               }
            })
         },
         logoutConfirm() {
            if(this.isAllSelected==true){
               this.ClickLoading = true;
@@ -162,6 +192,7 @@
                     this.TaskCoalList()
                  } else {
                     uni.$u.toast(res.msg ? res.msg : '检查失败')
                     this.logoutShow = false;
                  }
               })
            }else{
@@ -170,6 +201,9 @@
         },
         logoutCancel() {
            this.logoutShow = false;
         },
         falseCancel() {
            this.falseShow = false;
         },
         previewImageClose() {
            this.previewImageShow = false;
@@ -225,24 +259,8 @@
                  this.form=item
                  this.show = true;
               }else{
                  this.inspectData=[]
               this.falseShow = true;
                  this.form=item
                  uni.showLoading({ title: '加载中...' });
                  this.$reqPost('addCheckLog',{
                              carNo:this.form.carNo,
                              taskId:this.form.id,
                              taskcode:this.form.code,
                           }, 'json').then(res => {
                     if (res.code === 0) {
                        uni.$u.toast('检查成功')
                        this.form={}
                        this.ClickLoading = false;
                        this.show = false;
                        this.TaskCoalList()
                     } else {
                        uni.$u.toast(res.msg ? res.msg : '检查失败')
                     }
                  })
               }
            }
            
@@ -259,7 +277,7 @@
            this.certificateImg=""
         },
         popClick() {
               this.logoutShow = true;
            this.logoutShow = true;
         },
         open() {},
         close() {