货品供应商

This commit is contained in:
zzyuan 2025-07-17 16:47:22 +08:00
parent 4d5d6bfceb
commit aab65ce7c1
1 changed files with 13 additions and 22 deletions

View File

@ -11,9 +11,9 @@
style="width: 240px" style="width: 240px"
/> />
</el-form-item> </el-form-item>
<el-form-item label="货品类别" prop="categoryIdList"> <el-form-item label="货品类别" prop="materialTypeIds">
<el-cascader <el-cascader
v-model="queryParams.categoryIdList" v-model="queryParams.materialTypeIds"
:options="treeTypeOptions" :options="treeTypeOptions"
:props="{ :props="{
multiple:true, multiple:true,
@ -102,11 +102,11 @@
@pagination="getList" @pagination="getList"
/> />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="货品类别" name="category"> <!-- <el-tab-pane label="货品类别" name="category">
<el-form :model="queryParams2" ref="queryForm2" size="small" :inline="true" v-show="showSearch" label-width="90px"> <el-form :model="queryParams2" ref="queryForm2" size="small" :inline="true" v-show="showSearch" label-width="90px">
<el-form-item label="货品类别" prop="categoryIdList"> <el-form-item label="货品类别" prop="materialTypeIds">
<el-cascader <el-cascader
v-model="queryParams2.categoryIdList" v-model="queryParams2.materialTypeIds"
:options="treeTypeOptions" :options="treeTypeOptions"
:props="{ :props="{
multiple:true, multiple:true,
@ -123,16 +123,7 @@
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery2">重置</el-button> <el-button icon="el-icon-refresh" size="mini" @click="resetQuery2">重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<!-- <el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
>新增</el-button>
</el-col> -->
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList2"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList2"></right-toolbar>
</el-row> </el-row>
<el-table v-loading="loading" :data="tableListData2" height="800"> <el-table v-loading="loading" :data="tableListData2" height="800">
@ -169,7 +160,7 @@
:limit.sync="queryParams2.pageSize" :limit.sync="queryParams2.pageSize"
@pagination="getList2" @pagination="getList2"
/> />
</el-tab-pane> </el-tab-pane> -->
</el-tabs> </el-tabs>
@ -278,7 +269,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
supplierName: undefined, supplierName: undefined,
categoryIdList:[] materialTypeIds:[]
}, },
//----------- //-----------
// //
@ -290,7 +281,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
canteenId: undefined, canteenId: undefined,
categoryIdList:[] materialTypeIds:[]
}, },
// //
open: false, open: false,
@ -345,7 +336,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
supplierName: undefined, supplierName: undefined,
categoryIdList:[] materialTypeIds:[]
} }
this.resetForm("queryForm"); this.resetForm("queryForm");
this.handleQuery() this.handleQuery()
@ -354,7 +345,7 @@ export default {
this.queryParams2={ this.queryParams2={
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
categoryIdList:[] materialTypeIds:[]
} }
this.resetForm("queryForm2"); this.resetForm("queryForm2");
this.handleQuery2() this.handleQuery2()
@ -379,7 +370,7 @@ export default {
"pageNum": this.queryParams.pageNum, "pageNum": this.queryParams.pageNum,
"pageSize": this.queryParams.pageSize, "pageSize": this.queryParams.pageSize,
"supplierName": this.queryParams.supplierName, "supplierName": this.queryParams.supplierName,
"categoryIdList": this.queryParams.categoryIdList, "materialTypeIds": this.queryParams.materialTypeIds,
} }
supplierBindMaterialListApi(param).then(response => { supplierBindMaterialListApi(param).then(response => {
this.tableListData = response.rows; this.tableListData = response.rows;
@ -499,7 +490,7 @@ export default {
let param = { let param = {
"pageNum": this.queryParams2.pageNum, "pageNum": this.queryParams2.pageNum,
"pageSize": this.queryParams2.pageSize, "pageSize": this.queryParams2.pageSize,
"categoryIdList": this.queryParams2.categoryIdList, "materialTypeIds": this.queryParams2.materialTypeIds,
} }
// supplierBindMaterialListApi(param).then(response => { // supplierBindMaterialListApi(param).then(response => {
// this.tableListData2 = response.rows; // this.tableListData2 = response.rows;