yangan
2024-10-22 5d1fee5bb28015f427c53ee36ba2c7fe513226c0
pages/loadUnload-page/selectTarget/selectTarget.vue
@@ -108,6 +108,7 @@
                           </view>
                        </view>
                        <view class="senddate">{{ item.orderCode }}</view>
                        <view class="rightBtn"><u-button type='primary' text='一键确认' v-if="item.isWeight === 0 && item.tmTaskCoalList.length >1 && item.packingType !== 1"  @click.native.stop="allOkBtn(item)"></u-button></view>
                     </view>
                                     <view class="table">
         <uni-table border stripe 
@@ -264,7 +265,7 @@
                   <uni-td  align="center">
               <view class="btnBox"> 
                  <!--   -->
                  <u-button type='primary' text='修改' size='mini'   @click="editOrder(subItem)"></u-button>
                  <!-- <u-button type='primary' text='修改' size='mini' v-if="subItem.isWeight === 0 || subItem.isWeight === 2 "   @click="editOrder(subItem)"></u-button> -->
                  <u-button type='primary' text='拼单' size='mini'  v-if="isPinShow(item)" @click="pinDan(subItem)"></u-button>
                  </view></uni-td>
                  <uni-td w align="center">
@@ -347,6 +348,7 @@
                     <text>请输入</text>:
                       <u--input
                          type='digit'
                         :disabled="yelvFlag"
                          border="bottom"
                        :placeholder="/聚氯乙烯树脂/.test(activeObj.productName) ? '实际吨数' :  isNumOk ?  '数量' : blend ? '数量' : '折吨'"
                        v-model="checkNum"
@@ -457,6 +459,9 @@
               </view>
               
            </view>
         </u-modal>
         <u-modal :show="showConfim" @confirm="confirmEnter"  :showCancelButton="true"   @cancel="showConfim = false" ref="uModal" :asyncClose="true">
            <view> 是否确定一键装卸?</view>
         </u-modal>
      <!-- 仓库 -->
      <!-- <u-action-sheet :actions="secondClassActionsList"
@@ -576,13 +581,16 @@
            ],
            isCleanFlag:'1',
            checkNumEdit:'',
            showConfim:false,
            remarkContent:'',
            dataForm: {
               firstClass: "",
               secondClass: "",
               orderType: '',
               bunkerIds:""
            },
            historyData:[],
            historyData:[],
            paramsItem:{},
            messageObj:{
               carNo:'',
            },
@@ -595,6 +603,7 @@
            typeText:'', // 确认装卸三种类型
            isNumOk:false, //计件
            isClean:false, // 折吨   
            yelvFlag:false,
            isFlagNum:false,// PVCV
            // 场地操作菜单
            firstClassActionsList: [],
@@ -849,7 +858,15 @@
         },
         open(){},
         allOkBtn(item){
            //点击一键确认
             this.paramsItem = item;
            this.showConfim = true;
         },
         enterOk(parintItem,item){
            this.yelvFlag = false;
            console.log(parintItem,'priintItem')
            // uni.request({
            //    url: `${BaseUrl}/admin/dict/type/tray_weight`,
@@ -918,6 +935,8 @@
            if(item.packingType === 1){ 
               this.isNumOk = true;
               this.isClean = false;
               this.yelvFlag = true;
               this.checkNum = item.planMeasure;
               this.blend = false;
               this.isCleanFlag = '1';
                this.isFlagNum = false;
@@ -976,10 +995,6 @@
            }else if( this.isEmptyCar === null){
               this.$u.toast(`请检查${this.isNumOk ? '计件数量' :'折吨'},以及是否空车出厂项!`);
               //装卸 为 2 ,但是必须得称重
            }else if( (this.activeObj.isWeight === 2 || this.activeObj.packingType === 1) && (!this.activeObj.skin  &&    !this.activeObj.hair) ){
               console.log('》》》》》》》》》》》触发')
               this.enterZx = false;
               this.$u.toast(`请先称重后装卸确认!`);
            }
            else{
               this.enterZx = false;
@@ -1021,6 +1036,26 @@
         //判断是否是 三种特殊类型对应弹窗
         judgeTypeFun(name){
         
         },
         //确认
         confirmEnter(){
            this.$reqPost('oneClickLoading',{tmId:this.paramsItem.id},'params').then((res) => {
               if(res.code == 0){
               console.log(res,'res')
               this.$u.toast('一键确认成功')
               this.showConfim = false;
               setTimeout(() => {
                  this.getDetailData();
               }, 500);
               }else{
                  this.showConfim = false;
                  this.$u.toast(res.msg ? res.msg : '一键确认失败');
               }
            }).catch(err=>{
               this.$u.toast(err ? err : '操作异常')
            })
         },
         //查看最近一次的原盐钙镁
@@ -1074,6 +1109,11 @@
   width: auto;
  }
   
}
.rightBtn{
   position: absolute;
   right: 100rpx;
   bottom: 5rpx;
}
.notice-bar{
      margin-left: vww(10);
@@ -1231,6 +1271,7 @@
               }
            }
            .history-information {
               position: relative;
         margin-bottom:30rpx;
         margin-top: 10rpx;
         background: #ffffff;
@@ -1308,6 +1349,7 @@
            font-size: 30rpx;
            font-weight: 300;
            color: #515151;
            position: relative;
            margin: vww(10) vww(10) 0;
            @include flex;