no message

main
HUOJIN\92525 2024-07-18 15:17:21 +08:00
parent 675729d7c8
commit ab9531d192
1 changed files with 3 additions and 21 deletions

View File

@ -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
}