yangan
2024-10-24 74073d164925eff4962188405355debb367aaf06
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 
@@ -207,7 +208,7 @@
                        <view class=""></view>
                     </view>
                     <view class="second">
                        <view class="coal-name">{{ item.productNames || item.productName }}</view>
                        <view class="coal-name">{{ item.productNames?limitString(item.productNames,20,'...'):'' || ''}}</view>
                        <view class="order-type">{{ item.orderType || '' }}</view>
                     </view>
                     <view class="third">
@@ -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">
@@ -341,7 +342,7 @@
                  </view>
                  <view v-if="/聚氯乙烯树脂/.test(activeObj.productName)">
                     <view>计划量:{{Number(activeObj.planMeasure)}}</view>
                     <view >实际量:{{ Number(activeObj.realityMeasure)}}</view>
                     <view >实际量:{{ Number(activeObj.productQuantity)}}</view>
                  </view>
                  <view class="queren" v-show="isCleanFlag === '1'">
                     <text>请输入</text>:
@@ -349,7 +350,7 @@
                          type='digit'
                         :disabled="yelvFlag"
                          border="bottom"
                        :placeholder="/聚氯乙烯树脂/.test(activeObj.productName) ? '实际吨数' :  isNumOk ?  '数量' : blend ? '数量' : '折吨'"
                        :placeholder="/聚氯乙烯树脂/.test(activeObj.productName) ? '实际吨数' :  isNumOk ?  '确认数量' : blend ? '确认数量' : '折吨'"
                        v-model="checkNum"
                     >
                     </u--input>
@@ -388,7 +389,7 @@
                     <view class="pvcBig" v-if="activeObj.productName === '聚氯乙烯树脂' && activeObj.packingType === 5">
                        
                     </view>
                     <view v-if="isNumOk && activeObj.productQuantity">当前数量:{{activeObj.productQuantity}}{{ activeObj.productUnit || '件' }}</view>
                     <view v-if="isNumOk && activeObj.planMeasure">计划量:{{activeObj.planMeasure}}{{ activeObj.productUnit || '件' }}</view>
                     <view v-if="activeObj.containerNumber"><span>集装箱号:</span>{{activeObj.containerNumber}}</view>
                     
               </view>
@@ -458,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"
@@ -577,13 +581,16 @@
            ],
            isCleanFlag:'1',
            checkNumEdit:'',
            showConfim:false,
            remarkContent:'',
            dataForm: {
               firstClass: "",
               secondClass: "",
               orderType: '',
               bunkerIds:""
            },
            historyData:[],
            historyData:[],
            paramsItem:{},
            messageObj:{
               carNo:'',
            },
@@ -851,6 +858,13 @@
         },
         open(){},
         allOkBtn(item){
            //点击一键确认
             this.paramsItem = item;
            this.showConfim = true;
         },
         enterOk(parintItem,item){
            this.yelvFlag = false;
            console.log(parintItem,'priintItem')
@@ -881,7 +895,7 @@
               this.blend = true;
               this.isNumOk = false;
               this.isClean = false;
               this.isCleanFlag = '0';
               // this.isCleanFlag = '0';
                this.isFlagNum = false;
            }
            else { 
@@ -922,7 +936,7 @@
               this.isNumOk = true;
               this.isClean = false;
               this.yelvFlag = true;
               this.checkNum = item.planMeasure;
               this.checkNum = item.productQuantity;
               this.blend = false;
               this.isCleanFlag = '1';
                this.isFlagNum = false;
@@ -981,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;
@@ -1026,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 : '操作异常')
            })
         },
         //查看最近一次的原盐钙镁
@@ -1079,6 +1109,11 @@
   width: auto;
  }
   
}
.rightBtn{
   position: absolute;
   right: 100rpx;
   bottom: 5rpx;
}
.notice-bar{
      margin-left: vww(10);
@@ -1236,6 +1271,7 @@
               }
            }
            .history-information {
               position: relative;
         margin-bottom:30rpx;
         margin-top: 10rpx;
         background: #ffffff;
@@ -1313,6 +1349,7 @@
            font-size: 30rpx;
            font-weight: 300;
            color: #515151;
            position: relative;
            margin: vww(10) vww(10) 0;
            @include flex;