change
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
<tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.iostorinv_id === pkId}" @tap="toCheck(e)">
|
||||
<td>{{i+1}}</td>
|
||||
<td>{{e.bill_code}}</td>
|
||||
<td>{{e.bill_type}}</td>
|
||||
<td>{{e.bill_type_name}}</td>
|
||||
<td>{{e.struct_code}}</td>
|
||||
<td>{{e.storagevehicle_code}}</td>
|
||||
<td>{{e.material_code}}</td>
|
||||
@@ -92,8 +92,15 @@
|
||||
keyword: null,
|
||||
date: currentDate,
|
||||
dataList: [],
|
||||
statusMap: {
|
||||
'1001': '领料出库',
|
||||
'1002': '质检出库',
|
||||
'1003': '退货出库',
|
||||
'1004': '烘干出库',
|
||||
'1009': '手工出库'
|
||||
},
|
||||
pkId: '',
|
||||
pkObj: {}
|
||||
pkObj: {},
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
@@ -119,7 +126,10 @@
|
||||
try {
|
||||
let res = await getIoDisDocumentInfo(this.keyword, this.date, '1')
|
||||
if (res && res.data.length > 0) {
|
||||
this.dataList = [...res.data]
|
||||
this.dataList = res.data.map(item => ({
|
||||
...item,
|
||||
bill_type_name: this.statusMap[item.bill_type] || ''
|
||||
}))
|
||||
} else {
|
||||
this.dataList = []
|
||||
}
|
||||
@@ -135,7 +145,7 @@
|
||||
if (this.pkId) {
|
||||
this.$store.dispatch('setPublicObj', this.pkObj)
|
||||
uni.navigateTo({
|
||||
url: 'pages/Material/hw-out-store'
|
||||
url: '/pages/Material/hw-out-store?title=货位出库'
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user