no message
parent
675729d7c8
commit
ab9531d192
|
|
@ -194,7 +194,7 @@ import rrOperation from '@crud/RR.operation'
|
|||
import crudOperation from '@crud/CRUD.operation'
|
||||
import udOperation from '@crud/UD.operation'
|
||||
import pagination from '@crud/Pagination'
|
||||
import {getItems, getItemsList} from "@/api/item"
|
||||
import {getItemsList} from "@/api/item"
|
||||
import PickTask from "@/views/business-data/pickDetail/pickTicketTask.vue"
|
||||
import DateRangePicker from "@/components/DateRangePicker/index.vue";
|
||||
import ItemOut from "@/views/business-data/pickDetail/itemOut.vue";
|
||||
|
|
@ -280,7 +280,6 @@ export default {
|
|||
mounted() {
|
||||
//初始化数据
|
||||
this.getItem();
|
||||
this.itemDataGet();
|
||||
},
|
||||
methods: {
|
||||
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
|
||||
|
|
@ -288,13 +287,8 @@ export default {
|
|||
return true
|
||||
},
|
||||
getItem() {
|
||||
getItems({}).then(res => {
|
||||
this.items = res.content.map(function (obj) {
|
||||
if (obj.hasChildren) {
|
||||
obj.children = null
|
||||
}
|
||||
return obj
|
||||
})
|
||||
getItemsList({}).then(res => {
|
||||
this.items = res
|
||||
})
|
||||
},
|
||||
|
||||
|
|
@ -402,18 +396,6 @@ export default {
|
|||
return true;
|
||||
}
|
||||
},
|
||||
//物料数据
|
||||
itemDataGet() {
|
||||
getItemsList().then(res => {
|
||||
this.itemListData = res;
|
||||
}).catch(e => {
|
||||
this.$message({
|
||||
showClose: true,
|
||||
message: '物料加载失败',
|
||||
type: 'error'
|
||||
});
|
||||
})
|
||||
},
|
||||
toItemOut() {
|
||||
this.$refs.itemOut.dialog = true
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue