自制件状态查询
This commit is contained in:
@@ -57,9 +57,8 @@ export function searchTable(check1, machine, check2, groupNum, check3, partNumbe
|
|||||||
UserID: state.state.user.id,
|
UserID: state.state.user.id,
|
||||||
ModularID: router.currentRoute.path,
|
ModularID: router.currentRoute.path,
|
||||||
type: '1',
|
type: '1',
|
||||||
name: '车间生产管理工艺_零件工艺计划_查询数据_状态_最新_MESWORK',
|
name: '车间生产管理工艺_自制件状态查询_查询',
|
||||||
param: '机床流水号_check=' + check1 + '=int&机床流水号=' + machine + '=int&组件流水号_check=' + check2 + '=int&组件流水号=' + groupNum + '=int&零件图号_check=' + check3 + '=int&零件图号=' + partNumber + '=string&考核状态_check=' + check4 + '=int&考核状态=' + partStateValue + '=int&单件是否外协_check=' + check5 + '=int&单件是否外协=' + partTypeValue + '=int',
|
param: '机床流水号_check=' + check1 + '=int&机床流水号=' + machine + '=int&组件流水号_check=' + check2 + '=int&组件流水号=' + groupNum + '=int&零件图号_check=' + check3 + '=int&零件图号=' + partNumber + '=string&考核状态_check=' + check4 + '=int&考核状态=' + partStateValue + '=int&单件是否外协_check=' + check5 + '=int&单件是否外协=' + partTypeValue + `&PageCurrent=${pageCurrent}&PageSize=${pageSize}&PageCount=1111=int=output&ItemCount=1111=int=output`
|
||||||
Pagination: pageCurrent + '&' + pageSize
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -172,15 +172,15 @@ export default {
|
|||||||
if (this.partTypeValue) { check5 = 1 } else { check5 = 0 }
|
if (this.partTypeValue) { check5 = 1 } else { check5 = 0 }
|
||||||
this.loading0 = true
|
this.loading0 = true
|
||||||
searchTable(check1, this.machineToolValue, check2, this.groupNumberValue, check3, this.partNumber, check4, this.partStateValue, check5, this.partTypeValue, this.pageCurrent, this.pageSize).then(response => {
|
searchTable(check1, this.machineToolValue, check2, this.groupNumberValue, check3, this.partNumber, check4, this.partStateValue, check5, this.partTypeValue, this.pageCurrent, this.pageSize).then(response => {
|
||||||
for (let i = 0; i < response.data.rows.length; i++) {
|
for (let i = 0; i < response.data.result.length; i++) {
|
||||||
response.data.rows[i].考核状态 = parseInt(response.data.rows[i].考核状态) - 2
|
response.data.result[i].考核状态 = parseInt(response.data.result[i].考核状态) - 2
|
||||||
if (response.data.rows[i].传递时间 !== undefined || response.data.rows[i].hasOwnProperty('传递时间')) {
|
if (response.data.result[i].传递时间 !== undefined || response.data.result[i].hasOwnProperty('传递时间')) {
|
||||||
response.data.rows[i].传递时间 = response.data.rows[i].传递时间.split(' ', 2)[0]
|
response.data.result[i].传递时间 = response.data.result[i].传递时间.split(' ', 2)[0]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.loading0 = false
|
this.loading0 = false
|
||||||
this.total = response.data.total
|
this.total = parseInt(response.data.output[0].ItemCount)
|
||||||
this.tableData = response.data.rows
|
this.tableData = response.data.result
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleSizeChange(val) {
|
handleSizeChange(val) {
|
||||||
|
|||||||
Reference in New Issue
Block a user