change
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.check_id === pkId}" @tap="toCheck(e)">
|
||||
<td>{{i+1}}</td>
|
||||
<td>{{e.check_result}}</td>
|
||||
<td>{{e.check_result_name}}</td>
|
||||
<td>{{e.struct_code}}</td>
|
||||
<td>{{e.storagevehicle_code}}</td>
|
||||
<td>{{e.material_code}}</td>
|
||||
@@ -76,6 +76,11 @@
|
||||
title: '',
|
||||
keyword: '',
|
||||
dataList: [],
|
||||
statusMap: {
|
||||
'10': '生成',
|
||||
'20': '盘点中',
|
||||
'99': '完成'
|
||||
},
|
||||
pkId: '',
|
||||
pkObj: {}
|
||||
};
|
||||
@@ -89,7 +94,10 @@
|
||||
try {
|
||||
let res = await getCheckDocumentInfo(this.keyword, '1')
|
||||
if (res && res.data.length > 0) {
|
||||
this.dataList = [...res.data]
|
||||
this.dataList = res.data.map(item => ({
|
||||
...item,
|
||||
check_result_name: this.statusMap[item.check_result] || ''
|
||||
}))
|
||||
} else {
|
||||
this.dataList = []
|
||||
}
|
||||
@@ -105,7 +113,7 @@
|
||||
if (this.pkId) {
|
||||
this.$store.dispatch('setPublicObj', this.pkObj)
|
||||
uni.navigateTo({
|
||||
url: 'pages/Material/hw-check'
|
||||
url: '/pages/Material/hw-check?title=货位盘点'
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user