yangan
2025-01-13 1b2b99dc4ebf5dd1b40f516d334e02ecb64827cf
feat:客户分享日计划限制& 库管查看拼单按钮增加传参
3个文件已修改
20 ■■■■ 已修改文件
pages/customer-page/customer-index/customer-index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/loadUnload-page/selectTarget/selectTarget.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/public-page/forward/forward.vue 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/customer-page/customer-index/customer-index.vue
@@ -364,7 +364,7 @@
                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() {
pages/loadUnload-page/selectTarget/selectTarget.vue
@@ -138,7 +138,7 @@
                         <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">
pages/public-page/forward/forward.vue
@@ -92,7 +92,7 @@
                    :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>
@@ -168,6 +168,7 @@
            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);
@@ -202,6 +203,7 @@
                forwardSurplus: 0,
                paramsName: {},
                packingType:'',
                productId:'',
                productName:'',
                customerId:'',
                huoDaiData: [],
@@ -232,6 +234,7 @@
                formNum: 1,
                // 个人转发数据
                personalForward: {},
                falseProductNames:['1818237609508347905','1818237832536268801','1818211942485995521'],
                whetherClick: false,  //添加按钮
                whetherClick1: false,
                // 滑动单元格配置
@@ -276,6 +279,14 @@
                }else{
                    return false
                }
            },
            btnFlag(){
                if(this.falseProductNames.includes(this.productId)){
                    return false;
                }else{
                    return true;
                }
            }
        },
        methods: {
@@ -706,7 +717,8 @@
            todoFenPei(val){
                uni
                    .navigateTo({ url: `/subPages/allocaTetonnage/index?orderPlanId=${this.orderPlanId}&customerId=${this.customerId}&fleetId=${val.fleetId}&pvcPlanMeasure=${this.pvcPlanMeasure}`});
            }
            },
        }
    };
</script>