| | |
| | | endTime: this.endTime |
| | | // criteria: JSON.stringify(obj) |
| | | }).then((res) => { |
| | | console.log(res.data.data.length) |
| | | if (res.data.data.length) { |
| | | const arr = [] |
| | | arr.push(res.data.data[0]) |
| | |
| | | this.scanArr.push(res.data.data[0].id) |
| | | this.idList = [...new Set(this.scanArr)] |
| | | this.part = null |
| | | console.log(this.idList) |
| | | } |
| | | }) |
| | | } |
| | |
| | | templateType: this.currTemplateType |
| | | }) |
| | | ).then((response) => { |
| | | console.log(response) |
| | | this.paramTemplatesList = response.data.data.records |
| | | }) |
| | | }, |
| | |
| | | this.params = JSON.parse(JSON.stringify(list)) |
| | | } |
| | | }) |
| | | console.log(this.selectedTemplateId) |
| | | }, |
| | | getParamValuesi() { |
| | | this.params = [] |
| | |
| | | this.params = JSON.parse(JSON.stringify(list)) |
| | | } |
| | | }) |
| | | console.log(this.selectedTemplateIds) |
| | | }, |
| | | saveProductRecord() { |
| | | this.saveDisabled = true |
| | |
| | | // this.part = val.systemNo + ' ' + val.outBatchNo |
| | | this.part = val.outBatchNo |
| | | this.productOutId = val.id |
| | | console.log(this.part) |
| | | const forData = [] |
| | | console.log(val) |
| | | forData.push(val) |
| | | console.log(forData) |
| | | for (let i = 0; i < forData.length; i++) { |
| | | if (!this.produceList.some((e) => e.id === forData[i].id)) |
| | | this.produceList.push(forData[i]) |
| | |
| | | } |
| | | } |
| | | // this.idList = [...new Set(arr)] |
| | | console.log(this.outputPartsList) |
| | | console.log(this.idList) |
| | | } |
| | | }, |
| | | selectProductOutPuts(val) { |
| | |
| | | // this.part = val.systemNo + ' ' + val.outBatchNo |
| | | this.parts = val.partBatchNo |
| | | this.productOutId = val.id |
| | | console.log(this.parts) |
| | | const forData = [] |
| | | console.log(val) |
| | | forData.push(val) |
| | | console.log(forData) |
| | | for (let i = 0; i < forData.length; i++) { |
| | | if (!this.cutApartList.some((e) => e.id === forData[i].id)) |
| | | this.cutApartList.push(forData[i]) |
| | |
| | | } |
| | | } |
| | | // this.idLists = [...new Set(arr)] |
| | | console.log(this.outputPartsList) |
| | | console.log(this.idLists) |
| | | } |
| | | }, |
| | | handleDelete(index, row) { |
| | | console.log(index, row) |
| | | this.outputPartsList = this.outputPartsList.filter( |
| | | (item) => item.id !== row.id |
| | | ) |
| | |
| | | this.produceList = this.produceList.filter((item) => item.id !== row.id) |
| | | this.cutApartList = this.cutApartList.filter((item) => item.id !== row.id) |
| | | |
| | | console.log(this.idList) |
| | | console.log(this.outputPartsList) |
| | | }, |
| | | // 回车换行 |
| | | nextFocus(index) { |
| | |
| | | this.paramObj.endTime = this.getNowFormatDate() |
| | | this.paramObjs.startTime = this.getNowFormatDate() |
| | | this.paramObjs.endTime = this.getNowFormatDate() |
| | | console.log(123456) |
| | | } else if (this.createDateRangeArr.length !== 0) { |
| | | console.log(123456) |
| | | this.paramObj.startTime = this.createDateRangeArr[0] |
| | | .split('-') |
| | | .join('') |