| | |
| | | this.enterCode = true; |
| | | }else{ |
| | | this.enterCode = false; |
| | | if (value.orderType === '外购') { |
| | | if (value.orderType === '外购' && value.isWeight === 1 && value.productNames.split(',').filter(item => item != '').length <= 1) { |
| | | uni.navigateTo({ |
| | | url: `/subPages/bill-of-lading-details/originInfo/originInfo?orderPlanId=${value.id}&filedId=${value.filedId}&deptId=${value.deptId}&sendDate=${value.sendDate}&isSpecial=${value.isSpecial}&isWeight=${value.isWeight}` |
| | | }); |
| | |
| | | }).catch(err=>{ |
| | | |
| | | }).finally(() => { |
| | | if (this.activeObj.orderType === '外购') { |
| | | if (this.activeObj.orderType === '外购' && this.activeObj.isWeight === 1 && this.activeObj.productNames.filter(item => item != '').length <= 1) { |
| | | uni.navigateTo({ |
| | | url: `/subPages/bill-of-lading-details/originInfo/originInfo?orderPlanId=${this.activeObj.id}&filedId=${this.activeObj.filedId}&deptId=${this.activeObj.deptId}&sendDate=${this.activeObj.sendDate}&isSpecial=${this.activeObj.isSpecial}&isWeight=${this.activeObj.isWeight}` |
| | | }); |
| | |
| | | cancelCodeCancel(){ |
| | | this.enterCode = false; |
| | | this.enterCodeStr = ''; |
| | | if (this.activeObj.orderType === '外购') { |
| | | if (this.activeObj.orderType === '外购 '&& this.activeObj.isWeight === 1 && this.activeObj.productNames.split(',').filter(item => item != '').length <= 1) { |
| | | uni.navigateTo({ |
| | | url: `/subPages/bill-of-lading-details/originInfo/originInfo?orderPlanId=${this.activeObj.id}&filedId=${this.activeObj.filedId}&deptId=${this.activeObj.deptId}&sendDate=${this.activeObj.sendDate}&isSpecial=${this.activeObj.isSpecial}&isWeight=${this.activeObj.isWeight}` |
| | | }); |
| | |
| | | // 置空 radioGroupValue 即取消选中的值 |
| | | this.radioGroupValue = '' |
| | | // 初始化 num |
| | | this.num = 0 |
| | | this.num = 0 |
| | | } |
| | | }, |
| | | // 当切换其他选项的时候此方法才会执行 |