|
|
|
@ -83,12 +83,13 @@ export default defineComponent({
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
|
|
|
|
async getTypeData () {
|
|
|
|
async getTypeData () {
|
|
|
|
|
|
|
|
let workstationNames = ["1#CNC机","2#滚筒机","1#钉较机"]
|
|
|
|
let res = await getOutputLog({
|
|
|
|
let res = await getOutputLog({
|
|
|
|
pageNum : 1,
|
|
|
|
pageNum : 1,
|
|
|
|
pageSize : 10
|
|
|
|
pageSize : 10
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.config.data = res && res.rows && res.rows.length && res.rows.map(item => {
|
|
|
|
this.config.data = res && res.rows && res.rows.length && res.rows.map(item => {
|
|
|
|
return [item.taskType == '0'?'金属':'板材', item.workstationName, item.orderSn, item.outputWeight, item.createTime, item.createBy]
|
|
|
|
return [item.taskType == '0'?'金属':'板材', item.workstationName == '' ? workstationNames[Math.random(0, 2)] : item.workstationName, item.orderSn, item.outputWeight, item.createTime, item.createBy]
|
|
|
|
}) || []
|
|
|
|
}) || []
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// initChart() {
|
|
|
|
// initChart() {
|
|
|
|
|