yangan
2024-10-28 3a0823db9324207eb54b1747dfe3d2c6d52a9962
pages/public-page/forward/forward.vue
@@ -75,7 +75,7 @@
                              </u-form-item>
                              
                           </u--form>
                           <view><u-button v-if="/聚氯乙烯树脂/.test(this.productName) &&  isShow" text="分配日计划吨数" type="primary" :plain="true" @click="todoFenPei(val)"></u-button></view>
                           <view><u-button v-if="fenpeiFlag " text="分配日计划吨数" type="primary" :plain="true" @click="todoFenPei(val)"></u-button></view>
                        </view>
                     </view>
                  </view>
@@ -166,6 +166,7 @@
         this.isshow=!reg.test(params.orderType)
         this.productName = params.productName;
         this.customerId = params.customerId;
         this.packingType = params.packingType;
         this.pvcPlanMeasure = params.pvcPlanMeasure;
         // 客户
         this.cars2 = Number(params.cars2);
@@ -200,6 +201,7 @@
            pvcPlanMeasure:'',
            forwardSurplus: 0,
            paramsName: {},
            packingType:'',
            productName:'',
            customerId:'',
            huoDaiData: [],
@@ -266,6 +268,14 @@
         },
         text1() {
            return `已拥有${this.carNum}张收发单,剩余${this.carNumSurplusHuodai}张收发单`;
         },
         fenpeiFlag(){
            console.log(this.productName,this.packingType,'122222222cumped',/聚氯乙烯树脂/.test(this.productName) || (this.packingType &&  this.packingType == '1'))
            if(/聚氯乙烯树脂/.test(this.productName) || (this.packingType &&  this.packingType == '1')){
               return true
            }else{
               return false
            }
         }
      },
      methods: {
@@ -663,7 +673,7 @@
                  if (res.code === 0) {
                     this.loading = false
                     this.$u.toast('提交成功');
                     if(/聚氯乙烯树脂/.test(this.productName)){
                     if(this.fenpeiFlag){
                        setTimeout(()=>{
                           uni
               .navigateTo({ url: `/subPages/allocaTetonnage/index?orderPlanId=${this.orderPlanId}&customerId=${this.customerId}&status=${1}&pvcPlanMeasure=${this.pvcPlanMeasure}`});