| | |
| | | } |
| | | }, |
| | | |
| | | activated() { |
| | | window.addEventListener('resize', this.getHeight) |
| | | this.getHeight() |
| | | }, |
| | | created() { |
| | | this.handleRequest() |
| | | }, |
| | |
| | | const { data: res } = await PartSelectRpute({ partcode: val }) |
| | | if (this.mesSetting.route) { |
| | | this.routeDialogArr = res |
| | | res.forEach(i => { |
| | | i.unprice = parseFloat(i.unprice) === 0 ? '' : i.unprice |
| | | }) |
| | | this.stepDialogArr = res |
| | | this.stepDialogArr = [] |
| | | this.dialogForm.routecode = '' |
| | | } else { |
| | | this.stepDialogArr = res |
| | | res.forEach(i => { |
| | | i.unprice = parseFloat(i.unprice) === 0 ? '' : i.unprice |
| | | }) |
| | | this.stepDialogArr = res |
| | | } |
| | | }, |
| | | async routeDialogChange(val) { |
| | | const { data: res } = await RouteSelectStep({ partcode: this.dialogForm.partcode, routecode: val }) |
| | | res.forEach(i => { |
| | | i.unprice = parseFloat(i.unprice) === 0 ? '' : i.unprice |
| | | }) |
| | | this.stepDialogArr = res |
| | | }, |
| | | |
| | |
| | | 'seq': i.step_seq, |
| | | 'isbott': i.isbott, |
| | | 'isend': i.isend, |
| | | 'unprice': i.unprice |
| | | 'unprice': i.unprice.toString().trim() === '' ? 0 : i.unprice |
| | | }) |
| | | }) |
| | | |