master
zhaoxiaomin 2 years ago
parent 96841c2441
commit 34d3d8cd5a
  1. 37
      src/views/warehousing/otherStore/index.vue

@ -128,7 +128,7 @@ import {getBranchList, InitInOrder} from "@/api/system/branch";
import {getGoods} from "@/api/basicData/goods"; import {getGoods} from "@/api/basicData/goods";
export default { export default {
name: "index", name: "index",
dicts: ["goods_classify"], dicts: ["goods_classify","good_class"],
data() { data() {
const _that=this const _that=this
return { return {
@ -192,28 +192,7 @@ export default {
chooselist:[], chooselist:[],
classifyList:[{ classifyList:[{
label: '物料分类', label: '物料分类',
children: [{ children: []
label: '成品',
id:110
},{
label: '铝合金锭',
id:100
},{
label: '锌合金锭',
id:101
},{
label: '模具配件',
id:111
},{
label: '配件',
id:102
},{
label: '辅料',
id:108
},{
label: '模具',
id:101
}]
}], }],
defaultProps: { defaultProps: {
children: 'children', children: 'children',
@ -222,13 +201,23 @@ export default {
}; };
}, },
mounted() { mounted() {
//
this.getDicts("good_class").then((res)=>{
res.data.forEach((item) => {
let newItem = {
label: item.dictLabel,
value: item.dictValue
};
this.classifyList[0].children.push(newItem);
})
})
this.getBranchList() this.getBranchList()
this.queryTable() this.queryTable()
}, },
methods: { methods: {
// //
handleNodeClick(data) { handleNodeClick(data) {
this.searchForm.chiff=data.id this.searchForm.chiff=data.value
this.paging.page=1 this.paging.page=1
this.queryTable() this.queryTable()
}, },

Loading…
Cancel
Save