| | |
| | | onShow() { |
| | | this.init(); |
| | | this.getBuild(); |
| | | this.getOrderPlan(); |
| | | // this.getOrderPlan(); |
| | | if (this.roleType == 2) { |
| | | this.list1.splice(1, 1); |
| | | this.tabHuoDai = false; |
| | |
| | | // 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('存在重复添加'); |
| | |
| | | this.$u.toast('请输入合法数字'); |
| | | isPass = false; |
| | | return isPass; |
| | | } else if (!v.name){ |
| | | this.$u.toast('请选择车队'); |
| | | isPass = false; |
| | | return isPass; |
| | | } else { |
| | | isPass = true; |
| | | return isPass; |
| | |
| | | this.$reqPost('forward', this.jhOrderPlanForwardList, 'json').then(res => { |
| | | console.log(res, 'zh'); |
| | | // res.data.length == 0 提交成功 否则提交失败 |
| | | if (res.data.length == 0) { |
| | | if (res.code === 0) { |
| | | this.loading = false |
| | | this.$u.toast('提交成功'); |
| | | if(/聚氯乙烯树脂/.test(this.productName)){ |
| | | setTimeout(()=>{ |
| | | uni |
| | | .navigateTo({ url: `/subPages/allocaTetonnage/index?orderPlanId=${this.orderPlanId}&customerId=${this.customerId}&status=${0}&pvcPlanMeasure=${this.pvcPlanMeasure}`}); |
| | | .navigateTo({ url: `/subPages/allocaTetonnage/index?orderPlanId=${this.orderPlanId}&customerId=${this.customerId}&status=${1}&pvcPlanMeasure=${this.pvcPlanMeasure}`}); |
| | | |
| | | },500) |
| | | |