|
@@ -252,6 +252,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import Add from './add.vue'
|
|
import Add from './add.vue'
|
|
|
|
+import {getDivisionList} from '@/api/purchase/basic.js'
|
|
export default {
|
|
export default {
|
|
name: 'MaterialClassDivision',
|
|
name: 'MaterialClassDivision',
|
|
components: {
|
|
components: {
|
|
@@ -285,7 +286,18 @@ export default {
|
|
tableList: []
|
|
tableList: []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ created() {
|
|
|
|
+ this.getList()
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
|
|
+ getList(){
|
|
|
|
+ getDivisionList().then(res => {
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
+ this.tableList = res.rows
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ ,
|
|
handleSelectionChange() {},
|
|
handleSelectionChange() {},
|
|
handleCommand(command) {
|
|
handleCommand(command) {
|
|
alert(command)
|
|
alert(command)
|