This commit is contained in:
2025-07-29 16:13:19 +08:00
parent 8b1765c452
commit 5315d61561
6 changed files with 15 additions and 7 deletions

View File

@@ -19,14 +19,14 @@
<thead>
<tr>
<th>物料名称</th>
<th>物料规格</th>
<th><view style="width: 300rpx;">物料规格</view></th>
<th>物料编码</th>
</tr>
</thead>
<tbody>
<tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.material_id === pkId}" @tap="toCheck(e)">
<td>{{e.material_name}}</td>
<td>{{e.material_spec}}</td>
<td class="wrap">{{e.material_spec}}</td>
<td>{{e.material_code}}</td>
</tr>
</tbody>
@@ -83,10 +83,9 @@
},
async _getMaterialList () {
let res = await getMaterialList( this.val1, this.pageNum + '', this.pageSize + '')
// this.dataList = res.data
this.totalCount = res.totalElements
if (res.totalElements > 0) {
const dataMap = res.data
const dataMap = res.content
this.dataList = this.reload ? dataMap : this.dataList.concat(dataMap)
this.reload = false
} else {