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 crudOperation from '@crud/CRUD.operation'
import udOperation from '@crud/UD.operation' import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination' 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 PickTask from "@/views/business-data/pickDetail/pickTicketTask.vue"
import DateRangePicker from "@/components/DateRangePicker/index.vue"; import DateRangePicker from "@/components/DateRangePicker/index.vue";
import ItemOut from "@/views/business-data/pickDetail/itemOut.vue"; import ItemOut from "@/views/business-data/pickDetail/itemOut.vue";
@ -280,7 +280,6 @@ export default {
mounted() { mounted() {
// //
this.getItem(); this.getItem();
this.itemDataGet();
}, },
methods: { methods: {
// false // false
@ -288,13 +287,8 @@ export default {
return true return true
}, },
getItem() { getItem() {
getItems({}).then(res => { getItemsList({}).then(res => {
this.items = res.content.map(function (obj) { this.items = res
if (obj.hasChildren) {
obj.children = null
}
return obj
})
}) })
}, },
@ -402,18 +396,6 @@ export default {
return true; return true;
} }
}, },
//
itemDataGet() {
getItemsList().then(res => {
this.itemListData = res;
}).catch(e => {
this.$message({
showClose: true,
message: '物料加载失败',
type: 'error'
});
})
},
toItemOut() { toItemOut() {
this.$refs.itemOut.dialog = true this.$refs.itemOut.dialog = true
} }