feat:客户分享日计划限制& 库管查看拼单按钮增加传参
| | |
| | | console.log(111,obj) |
| | | if (obj.cars2 == 0) return this.$u.toast('请先领取后再转发'); |
| | | uni |
| | | .navigateTo({ url: `/pages/public-page/forward/forward?orderPlanId=${obj.id}&orderType=${obj.orderType}&carNumSurplus1=${obj.carNumSurplus1}&carNum=${obj.carNum}&cars2=${obj.cars2}&productName=${obj.productName}&customerId=${obj.customerId}&pvcPlanMeasure=${obj.pvcPlanMeasure}&packingType=${obj.packingType}`}); |
| | | .navigateTo({ url: `/pages/public-page/forward/forward?orderPlanId=${obj.id}&orderType=${obj.orderType}&carNumSurplus1=${obj.carNumSurplus1}&carNum=${obj.carNum}&cars2=${obj.cars2}&productName=${obj.productName}&customerId=${obj.customerId}&pvcPlanMeasure=${obj.pvcPlanMeasure}&packingType=${obj.packingType}&productId=${obj.productId}`}); |
| | | }, |
| | | // 自主配送 |
| | | selfDeliver() { |
| | |
| | | <uni-td align="center"> |
| | | <view class="btnBox"> |
| | | <!-- --> |
| | | <u-button size='mini' v-if="item.isPindan === 1 && $store.state.pvcIdList.includes(subItem.productId) " type='primary' text='查看拼单' @click.native.stop="toViewPindan(subItem)"></u-button> |
| | | <u-button size='mini' v-if="item.isPindan === 1 && $store.state.pvcIdList.includes(subItem.productId) " type='primary' text='查看拼单' @click.native.stop="toViewPindan(item)"></u-button> |
| | | <u-button type='primary' text='确认装卸' size='mini' v-if="subItem.flag && isBtnShow(item) && !( item.tmTaskCoalList.length >1 && !item.tmTaskCoalList.find(item=>item.isWeight !== 0) && item.packingType !== 1) && subItem.isPindan!==2" @click.native.stop="enterOk(item,subItem)"></u-button> |
| | | </view></uni-td> |
| | | <uni-td align="left"> |
| | |
| | | :disabled="whetherClick"></u-button></view> |
| | | <!--分享日计划 --> |
| | | <view |
| | | class="AdddBtn" v-if="isshow && roleType!== 2 "><u-button text="分享日计划" |
| | | class="AdddBtn" v-if="isshow && roleType!== 2 && btnFlag"><u-button text="分享日计划" |
| | | :hairline="false" |
| | | open-type="share" |
| | | :loading='loading'></u-button></view> |
| | |
| | | this.customerId = params.customerId; |
| | | this.packingType = params.packingType; |
| | | this.pvcPlanMeasure = params.pvcPlanMeasure; |
| | | this.productId = params.productId; |
| | | // 客户 |
| | | this.cars2 = Number(params.cars2); |
| | | this.tempcarNumSurplus1 = this.carNumSurplus1 = Number(params.carNumSurplus1 || 0); |
| | |
| | | forwardSurplus: 0, |
| | | paramsName: {}, |
| | | packingType:'', |
| | | productId:'', |
| | | productName:'', |
| | | customerId:'', |
| | | huoDaiData: [], |
| | |
| | | formNum: 1, |
| | | // 个人转发数据 |
| | | personalForward: {}, |
| | | falseProductNames:['1818237609508347905','1818237832536268801','1818211942485995521'], |
| | | whetherClick: false, //添加按钮 |
| | | whetherClick1: false, |
| | | // 滑动单元格配置 |
| | |
| | | }else{ |
| | | return false |
| | | } |
| | | }, |
| | | btnFlag(){ |
| | | if(this.falseProductNames.includes(this.productId)){ |
| | | return false; |
| | | }else{ |
| | | return true; |
| | | } |
| | | |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | todoFenPei(val){ |
| | | uni |
| | | .navigateTo({ url: `/subPages/allocaTetonnage/index?orderPlanId=${this.orderPlanId}&customerId=${this.customerId}&fleetId=${val.fleetId}&pvcPlanMeasure=${this.pvcPlanMeasure}`}); |
| | | } |
| | | }, |
| | | |
| | | } |
| | | }; |
| | | </script> |