fix: 修正物料分类查询参数命名不一致问题
将queryParams中的categoryName改为categoryCode以保持命名一致性,并修复查询功能
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
<el-input v-model="queryParams.materialName" placeholder="请输入物料名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="物料分类名称" prop="categoryName">
|
||||
<el-select v-model="queryParams.categoryCode" placeholder="请选择">
|
||||
<el-select v-model="queryParams.CategoryCode" placeholder="请选择">
|
||||
<el-option v-for="item in materialCategoryOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@@ -219,7 +219,7 @@ const queryParams = reactive({
|
||||
sortType: 'asc',
|
||||
materialCode: '',
|
||||
materialName: '',
|
||||
categoryName: ''
|
||||
categoryCode: ''
|
||||
})
|
||||
const columns = ref([
|
||||
{ visible: true, align: 'center', type: '', prop: 'id', label: '主键ID' },
|
||||
@@ -249,6 +249,7 @@ var dictParams = []
|
||||
function getList() {
|
||||
loading.value = true
|
||||
listMmMaterial(queryParams).then((res) => {
|
||||
console.log(queryParams)
|
||||
const { code, data } = res
|
||||
if (code == 200) {
|
||||
dataList.value = data.result
|
||||
|
||||
Reference in New Issue
Block a user