This commit is contained in:
2025-08-12 17:07:44 +08:00
parent a907127908
commit 95d82746a3
7 changed files with 262 additions and 103 deletions

View File

@@ -56,12 +56,12 @@
return {
title: '',
val1: '',
// dataList: [],
dataList: [
{material_code: 'code1', material_name: 'name1', measure_unit_id: '千克'},
{material_code: 'code2', material_name: 'name2', measure_unit_id: '千克'},
{material_code: 'code3', material_name: 'name3', measure_unit_id: '千克'},
],
dataList: [],
// dataList: [
// {material_code: 'code1', material_name: 'name1', measure_unit_id: '千克'},
// {material_code: 'code2', material_name: 'name2', measure_unit_id: '千克'},
// {material_code: 'code3', material_name: 'name3', measure_unit_id: '千克'},
// ],
pkId: '',
pkObj: {},
reload: false,
@@ -78,7 +78,7 @@
},
onLoad (options) {
this.title = options.title
this.searchList()
// this.searchList()
},
methods: {
searchList () {
@@ -87,7 +87,7 @@
this._selectMaterials()
},
async _selectMaterials () {
let res = await selectMaterials( this.val1)
let res = await selectMaterials(this.val1)
this.dataList = res.data
// this.totalCount = res.totalElements
// if (res.totalElements > 0) {