自制件加序

This commit is contained in:
Vergil
2020-03-23 13:36:51 +08:00
parent d761b6ccd0
commit c769581d19
2 changed files with 15 additions and 16 deletions

View File

@@ -443,24 +443,24 @@ export default {
this.checkbox_number = 1
}
getTable(this.checkbox_Machine, this.Machine, this.checkbox_Group, this.Group, this.checkbox_number, this.number, this.startTime, this.endTime, this.pageCurrent, this.pageSize).then(response => {
if (response.data.rows.length !== 0) {
for (let i = 0; i < response.data.rows.length; i++) {
if (response.data.result.length !== 0) {
for (let i = 0; i < response.data.result.length; i++) {
this.tableData.push({
工艺计划流水号: response.data.rows[i].工艺计划流水号,
考核状态: response.data.rows[i].考核状态,
序号: response.data.rows[i].序号,
跟单号: response.data.rows[i].跟单号,
零件图号: response.data.rows[i].零件图号,
零件名称: response.data.rows[i].零件名称,
加工数: response.data.rows[i].完成数量, // MES里采集 现在没有
投产数量: response.data.rows[i].批次数量,
完成日期: response.data.rows[i].机加工实际完成时间 ? response.data.rows[i].机加工实际完成时间.split(' ')[0] : '', // 排产时间
计划结束时间: response.data.rows[i].机加工结束时间 ? response.data.rows[i].机加工结束时间.split(' ')[0] : '',
客户名称: response.data.rows[i].客户名称 // 客户名
工艺计划流水号: response.data.result[i].工艺计划流水号,
考核状态: response.data.result[i].考核状态,
序号: response.data.result[i].序号,
跟单号: response.data.result[i].跟单号,
零件图号: response.data.result[i].零件图号,
零件名称: response.data.result[i].零件名称,
加工数: response.data.result[i].完成数量, // MES里采集 现在没有
投产数量: response.data.result[i].批次数量,
完成日期: response.data.result[i].机加工实际完成时间 ? response.data.result[i].机加工实际完成时间.split(' ')[0] : '', // 排产时间
计划结束时间: response.data.result[i].机加工结束时间 ? response.data.result[i].机加工结束时间.split(' ')[0] : '',
客户名称: response.data.result[i].客户名称 // 客户名
})
}
}
this.total = response.data.total
this.total = parseInt(response.data.output[0].ItemCount)
this.loading0 = false
}).catch(() => {
this.loading0 = false