Commit 107b9828 authored by danfuman's avatar danfuman

修改

parent dcc7f073
...@@ -32,6 +32,13 @@ export function bizDictData() { ...@@ -32,6 +32,13 @@ export function bizDictData() {
method: 'get', method: 'get',
}); });
} }
//查询物资类别树
export function queryMaterialClassTree() {
return request({
url: '/dCustomerClass/queryMaterialClassTree',
method: 'get',
});
}
//供应商管理分类列表 //供应商管理分类列表
export function custmerInfolist(param) { export function custmerInfolist(param) {
return request({ return request({
......
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
{{scope.row.registerCity||"--"}} {{scope.row.registerCity||"--"}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="供应类别" min-width="85" :resizable="false"> <el-table-column label="供应类别" min-width="120" :resizable="false">
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.groupSpecialty||"--"}} {{scope.row.groupSpecialty||"--"}}
</template> </template>
...@@ -293,7 +293,7 @@ ...@@ -293,7 +293,7 @@
import '@/assets/styles/public.scss' import '@/assets/styles/public.scss'
import '@/assets/styles/supplierlist.scss' import '@/assets/styles/supplierlist.scss'
import skeleton from '@/views/project/projectList/component/skeleton' import skeleton from '@/views/project/projectList/component/skeleton'
import { areaAll, bizDictData, custmerInfolist,exportCustomerList } from '@/api/supplier/supplier' import { areaAll, bizDictData, custmerInfolist,exportCustomerList,queryMaterialClassTree } from '@/api/supplier/supplier'
import { getDicts } from '@/api/system/dict/data' import { getDicts } from '@/api/system/dict/data'
import {queryConditionFiltering} from '@/utils/index' import {queryConditionFiltering} from '@/utils/index'
export default { export default {
...@@ -318,7 +318,8 @@ ...@@ -318,7 +318,8 @@
groupprops:{ groupprops:{
checkStrictly:false, checkStrictly:false,
multiple:true, multiple:true,
value:'id', value:'customerClassId',
label:'customerClassName'
}, },
formdata:{ formdata:{
customerClass:'分供', customerClass:'分供',
...@@ -377,12 +378,29 @@ ...@@ -377,12 +378,29 @@
// this.dataRegion() // this.dataRegion()
//专业类别 //专业类别
bizDictData().then(res=>{ bizDictData().then(res=>{
this.groupSpecialty = res.data // console.log(res.data,"||||||")
// this.groupSpecialty = res.data
}) })
// 地区树 // 地区树
areaAll().then(res=>{ areaAll().then(res=>{
this.addressList = res.data this.addressList = res.data
}) })
// 物资类别
queryMaterialClassTree().then(res=>{
// console.log(this.filteredArray(res.data))
this.groupSpecialty = this.filteredArray(res.data)
})
},
filteredArray(arr) {
let _that=this;
return arr.map((item) => {
if(item.children?.length){
_that.filteredArray(item.children)
}else {
delete item.children
}
return item
})
}, },
clears(){ clears(){
this.formdata = { this.formdata = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment