| | |
| | | </u-form-item> |
| | | |
| | | </u--form> |
| | | <view><u-button text="分配日计划吨数" type="primary" :plain="true" @click="todoFenPei"></u-button></view> |
| | | <view><u-button v-if="/聚氯乙烯树脂/.test(this.productName) && isShow" 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.pvcPlanMeasure = params.pvcPlanMeasure; |
| | | // 客户 |
| | | this.cars2 = Number(params.cars2); |
| | | this.tempcarNumSurplus1 = this.carNumSurplus1 = Number(params.carNumSurplus1 || 0); |
| | |
| | | data() { |
| | | return { |
| | | isshow:false, |
| | | pvcPlanMeasure:'', |
| | | forwardSurplus: 0, |
| | | paramsName: {}, |
| | | productName:'', |
| | |
| | | }], |
| | | loading: false, //提交loading |
| | | originForwardName: '', //原转发对象 |
| | | isShow:false, |
| | | laterForwardName: '', //后转发对象 |
| | | errorDataList: [], // 错误数据 |
| | | isDirectAdd: false, // 是否是在原来有对象的item修改 是的为true |
| | |
| | | onShow() { |
| | | this.init(); |
| | | this.getBuild(); |
| | | // this.getOrderPlan(); |
| | | if (this.roleType == 2) { |
| | | this.list1.splice(1, 1); |
| | | this.tabHuoDai = false; |
| | |
| | | }) |
| | | this.$reqGet('forwardList', { OrderPlanId: this.orderPlanId }).then(res => { |
| | | uni.hideLoading() |
| | | if(res.data.length){ |
| | | this.isShow = true; |
| | | }else{ |
| | | this.isShow = false; |
| | | |
| | | } |
| | | if (res.data.length !== 0 && this.roleType == 1) { |
| | | this.jhOrderPlanForwardList = res.data.map((item, index) => { |
| | | return { |
| | |
| | | // this.selectPopupShow = true; |
| | | // } |
| | | // } else { |
| | | console.log(this.jhOrderPlanForwardList,item,'jhOrderPlanForwardList') |
| | | let isableAdd = this.jhOrderPlanForwardList.filter(v => item.name === v.name); |
| | | if (isableAdd.length > 0) { |
| | | this.$u.toast('存在重复添加'); |
| | |
| | | if(/聚氯乙烯树脂/.test(this.productName)){ |
| | | setTimeout(()=>{ |
| | | uni |
| | | .navigateTo({ url: `/subPages/allocaTetonnage/index?orderPlanId=${this.orderPlanId}&customerId=${this.customerId}&status=${0}`}); |
| | | .navigateTo({ url: `/subPages/allocaTetonnage/index?orderPlanId=${this.orderPlanId}&customerId=${this.customerId}&status=${0}&pvcPlanMeasure=${this.pvcPlanMeasure}`}); |
| | | |
| | | },500) |
| | | |
| | |
| | | this.tabHuoDai = false; |
| | | } |
| | | }, |
| | | todoFenPei(){ |
| | | todoFenPei(val){ |
| | | uni |
| | | .navigateTo({ url: `/subPages/allocaTetonnage/index?orderPlanId=${this.orderPlanId}&customerId=${this.customerId}`}); |
| | | .navigateTo({ url: `/subPages/allocaTetonnage/index?orderPlanId=${this.orderPlanId}&customerId=${this.customerId}&fleetId=${val.fleetId}&pvcPlanMeasure=${this.pvcPlanMeasure}`}); |
| | | } |
| | | } |
| | | }; |