| | |
| | | }
|
| | | },
|
| | |
|
| | | activated() {
window.addEventListener('resize', this.getHeight)
this.getHeight()
},
created() {
|
| | | activated() { |
| | | window.addEventListener('resize', this.getHeight) |
| | | this.getHeight() |
| | | }, |
| | | created() { |
| | | this.handleRequest()
|
| | | },
|
| | | mounted() {
|
| | |
| | | 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 |
| | | })
|
| | | })
|
| | |
|
| | |
| | | divData.scrollTop += 1 |
| | | if (divData.clientHeight + divData.scrollTop === divData.scrollHeight) { |
| | | divData.scrollTop = 0 |
| | | WorkShopProduceTopData({ wkshopcode: this.wkshopcode.join(',') }).then(res => { |
| | | // WorkShopProduceTopData({ wkshopcode: this.wkshopcode.join(',') }).then(res => { |
| | | WorkShopProduceTopData({ wkshopcode: '101,102' }).then(res => { |
| | | this.tableDataCenterTop = res.data |
| | | |
| | | if (this.tableDataCenterTop.length > 22) { |
| | |
| | | 'nextstepprice': '',
|
| | | 'stepdesc': '',
|
| | | 'planqty': 0,
|
| | | 'startqty': 0, //
|
| | | 'startqty': '', // |
| | | 'noreportqty': 0, // 未报数量
|
| | | 'reportqty': 0, // 已报数量
|
| | | 'noputqty': 0, // 不良数量
|
| | |
| | | xx: ''
|
| | | }
|
| | | },
|
| | | activated() {
window.addEventListener('resize', this.getHeight)
this.getHeight()
},
created() {
|
| | | activated() { |
| | | window.addEventListener('resize', this.getHeight) |
| | | this.getHeight() |
| | | }, |
| | | created() { |
| | |
|
| | | },
|
| | | mounted() {
|
| | |
| | | this.dialogForm.nextstepprice = res.nextstepprice
|
| | | this.dialogForm.stepdesc = res.stepdesc
|
| | | this.dialogForm.planqty = res.planqty
|
| | | this.dialogForm.startqty = res.startqty
|
| | | this.dialogForm.startqty = res.startqty === 0 ? '' : res.startqty |
| | | this.dialogForm.noreportqty = res.noreportqty// 未报数量
|
| | | this.dialogForm.reportqty = res.reportqty // 已报数量
|
| | | this.dialogForm.noputqty = res.noputqty
|
| | |
| | | 'nextstepprice': '',
|
| | | 'stepdesc': '',
|
| | | 'planqty': 0,
|
| | | 'startqty': 0, //
|
| | | 'startqty': '', // |
| | | 'noreportqty': 0, // 未报数量
|
| | | 'reportqty': 0, // 已报数量
|
| | | 'noputqty': 0, // 不良数量
|