| | |
| | | </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> |
| | |
| | | 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); |
| | |
| | | pvcPlanMeasure:'', |
| | | forwardSurplus: 0, |
| | | paramsName: {}, |
| | | packingType:'', |
| | | productName:'', |
| | | customerId:'', |
| | | huoDaiData: [], |
| | |
| | | }, |
| | | 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: { |
| | |
| | | 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}`}); |