修改
This commit is contained in:
@@ -43,7 +43,8 @@
|
||||
<td>{{e.workorder_code}}</td>
|
||||
<td>{{e.material_code}}</td>
|
||||
<td>{{e.material_name}}</td>
|
||||
<td>{{e.workorder_status}}</td>
|
||||
<!-- <td>{{e.workorder_status}}</td> -->
|
||||
<td>{{e.workorder_status_name}}</td>
|
||||
<td>{{e.operator}}</td>
|
||||
<td>{{e.create_name}}</td>
|
||||
<td>{{e.plan_weight}}</td>
|
||||
@@ -86,6 +87,11 @@
|
||||
pkId: '',
|
||||
pkObj: {},
|
||||
disabled: false,
|
||||
statusMap: {
|
||||
'1': '未开始',
|
||||
'3': '生产中',
|
||||
'5': '已结束'
|
||||
},
|
||||
reload: false,
|
||||
status: 'more',
|
||||
contentText: {
|
||||
@@ -106,6 +112,10 @@
|
||||
this._regionList()
|
||||
},
|
||||
methods: {
|
||||
// 获取状态名称
|
||||
getStatusName (status) {
|
||||
return this.statusMap[status] || ''
|
||||
},
|
||||
async _regionList () {
|
||||
try {
|
||||
let res = await regionList()
|
||||
@@ -150,7 +160,11 @@
|
||||
async _getOrderList () {
|
||||
let res = await getOrderList(this.index2, '1')
|
||||
if (res.code === '200') {
|
||||
this.dataList = res.data
|
||||
// this.dataList = res.data
|
||||
this.taskList = res.data.map(item => ({
|
||||
...item,
|
||||
workorder_status_name: this.statusMap[item.workorder_status] || ''
|
||||
}))
|
||||
// this.totalCount = res.totalElements
|
||||
// if (res.totalElements > 0) {
|
||||
// const dataMap = res.content
|
||||
|
||||
Reference in New Issue
Block a user