You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
6.4 KiB

{"remainingRequest":"D:\\YuanZhuoLogistics\\WarehouseManagerVue\\node_modules\\babel-loader\\lib\\index.js!D:\\YuanZhuoLogistics\\WarehouseManagerVue\\node_modules\\cache-loader\\dist\\cjs.js??ref--1-0!D:\\YuanZhuoLogistics\\WarehouseManagerVue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\YuanZhuoLogistics\\WarehouseManagerVue\\src\\components\\Tran.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\YuanZhuoLogistics\\WarehouseManagerVue\\src\\components\\Tran.vue","mtime":1729672419223},{"path":"D:\\YuanZhuoLogistics\\WarehouseManagerVue\\babel.config.js","mtime":1677915063811},{"path":"D:\\YuanZhuoLogistics\\WarehouseManagerVue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\YuanZhuoLogistics\\WarehouseManagerVue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\YuanZhuoLogistics\\WarehouseManagerVue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\YuanZhuoLogistics\\WarehouseManagerVue\\node_modules\\vue-loader\\lib\\index.js","mtime":1655715099000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IEFzaWRlIGZyb20gIi4vQXNpZGUiOwppbXBvcnQgSGVhZGVyIGZyb20gIi4vSGVhZGVyIjsKZXhwb3J0IGRlZmF1bHQgewogIG5hbWU6ICJUcmFuIiwKICBjb21wb25lbnRzOiB7CiAgICBBc2lkZSwKICAgIEhlYWRlcgogIH0sCgogIGRhdGEoKSB7CiAgICByZXR1cm4gewogICAgICBpc0NvbGxhcHNlOiBmYWxzZSwKICAgICAgYXNpZGVfd2lkdGg6ICcyMDBweCcsCiAgICAgIGljb246ICdlbC1pY29uLXMtZm9sZCcsCiAgICAgIGRlbGl2ZXJ5RGF0YTogWy8vIOi/memHjOWPr+S7pea3u+WKoOS4gOS6m+WIneWni+aVsOaNruaIluiAhemAmui/h0FQSeiOt+WPlgogICAgICB7CiAgICAgICAgaWQ6IDEsCiAgICAgICAgaXRlbTogJ+W/q+mAkuWMheijuUEnLAogICAgICAgIHF1YW50aXR5OiAxMCwKICAgICAgICBzdGF0dXM6ICflvoXmtL7pgIEnCiAgICAgIH0sIHsKICAgICAgICBpZDogMiwKICAgICAgICBpdGVtOiAn5b+r6YCS5YyF6KO5QicsCiAgICAgICAgcXVhbnRpdHk6IDUsCiAgICAgICAgc3RhdHVzOiAn5bey5rS+6YCBJwogICAgICB9IC8vIOabtOWkmuaVsOaNri4uLgogICAgICBdCiAgICB9OwogIH0sCgogIG1ldGhvZHM6IHsKICAgIGRvQ29sbGFwc2UoKSB7CiAgICAgIHRoaXMuaXNDb2xsYXBzZSA9ICF0aGlzLmlzQ29sbGFwc2U7CgogICAgICBpZiAoIXRoaXMuaXNDb2xsYXBzZSkgewogICAgICAgIC8vIOWxleW8gAogICAgICAgIHRoaXMuYXNpZGVfd2lkdGggPSAnMjAwcHgnOwogICAgICAgIHRoaXMuaWNvbiA9ICdlbC1pY29uLXMtZm9sZCc7CiAgICAgIH0gZWxzZSB7CiAgICAgICAgLy8g5YWz6ZetCiAgICAgICAgdGhpcy5hc2lkZV93aWR0aCA9ICc2NHB4JzsKICAgICAgICB0aGlzLmljb24gPSAnZWwtaWNvbi1zLXVuZm9sZCc7CiAgICAgIH0KICAgIH0sCgogICAgaGFuZGxlRGlzcGF0Y2gocm93KSB7CiAgICAgIC8vIOWkhOeQhua0vumAgemAu+i+kQogICAgICBjb25zb2xlLmxvZygn5rS+6YCB54mp5ZOBOicsIHJvdyk7IC8vIOWPr+S7peWcqOi/memHjOa3u+WKoOS7o+eggeadpeabtOaWsOa0vumAgeeKtuaAgeaIluiwg+eUqEFQSQogICAgfSwKCiAgICBoYW5kbGVEZWxldGUocm93KSB7CiAgICAgIC8vIOWkhOeQhuWIoOmZpOmAu+i+kQogICAgICBjb25zb2xlLmxvZygn5Yig6Zmk54mp5ZOBOicsIHJvdyk7IC8vIOWPr+S7peWcqOi/memHjOa3u+WKoOS7o+eggeadpeWIoOmZpOeJqeWTgeaIluiwg+eUqEFQSQogICAgfQoKICB9Cn07"},{"version":3,"mappings":"AA8BA;AACA;AAEA;EACAA,YADA;EAEAC;IAAAC;IAAAC;EAAA,CAFA;;EAGAC;IACA;MACAC,iBADA;MAEAC,oBAFA;MAGAC,sBAHA;MAIAC,eACA;MACA;QAAAC;QAAAC;QAAAC;QAAAC;MAAA,CAFA,EAGA;QAAAH;QAAAC;QAAAC;QAAAC;MAAA,CAHA,CAIA;MAJA;IAJA;EAWA,CAfA;;EAgBAC;IACAC;MACA;;MACA;QAAA;QACA;QACA;MACA,CAHA,MAGA;QAAA;QACA;QACA;MACA;IACA,CAVA;;IAWAC;MACA;MACAC,0BAFA,CAGA;IACA,CAfA;;IAgBAC;MACA;MACAD,0BAFA,CAGA;IACA;;EApBA;AAhBA","names":["name","components","Aside","Header","data","isCollapse","aside_width","icon","deliveryData","id","item","quantity","status","methods","doCollapse","handleDispatch","console","handleDelete"],"sourceRoot":"src/components","sources":["Tran.vue"],"sourcesContent":["<template>\r\n <el-container style=\"height: 100%; border: 1px solid #eee\">\r\n <el-aside :width=\"aside_width\" style=\"height: 100vh; background-color: rgb(238, 241, 246); margin-left: -1px;\">\r\n <Aside :isCollapse=\"isCollapse\"></Aside>\r\n </el-aside>\r\n\r\n <el-container style=\"height: 100%;\">\r\n <el-header style=\"text-align: right; font-size: 12px; height: 100%; border-bottom: rgba(168,168,168,0.3) 1px solid;\">\r\n <Header @doCollapse=\"doCollapse\" :icon=\"icon\"></Header>\r\n </el-header>\r\n\r\n <el-main style=\"height: 100%;\">\r\n <el-table :data=\"deliveryData\" style=\"width: 100%\" border>\r\n <el-table-column prop=\"id\" label=\"ID\" width=\"50\"></el-table-column>\r\n <el-table-column prop=\"item\" label=\"物品名称\" width=\"180\"></el-table-column>\r\n <el-table-column prop=\"quantity\" label=\"库存数量\" width=\"100\"></el-table-column>\r\n <el-table-column prop=\"status\" label=\"派送状态\" width=\"100\"></el-table-column>\r\n <el-table-column label=\"操作\" width=\"200\">\r\n <template slot-scope=\"scope\">\r\n <el-button size=\"mini\" @click=\"handleDispatch(scope.row)\">派送</el-button>\r\n <el-button size=\"mini\" type=\"danger\" @click=\"handleDelete(scope.row)\">删除</el-button>\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n </el-main>\r\n </el-container>\r\n </el-container>\r\n</template>\r\n\r\n<script>\r\nimport Aside from \"./Aside\";\r\nimport Header from \"./Header\";\r\n\r\nexport default {\r\n name: \"Tran\",\r\n components: { Aside, Header },\r\n data() {\r\n return {\r\n isCollapse: false,\r\n aside_width: '200px',\r\n icon: 'el-icon-s-fold',\r\n deliveryData: [\r\n // 这里可以添加一些初始数据或者通过API获取\r\n { id: 1, item: '快递包裹A', quantity: 10, status: '待派送' },\r\n { id: 2, item: '快递包裹B', quantity: 5, status: '已派送' },\r\n // 更多数据...\r\n ]\r\n };\r\n },\r\n methods: {\r\n doCollapse() {\r\n this.isCollapse = !this.isCollapse;\r\n if (!this.isCollapse) { // 展开\r\n this.aside_width = '200px';\r\n this.icon = 'el-icon-s-fold';\r\n } else { // 关闭\r\n this.aside_width = '64px';\r\n this.icon = 'el-icon-s-unfold';\r\n }\r\n },\r\n handleDispatch(row) {\r\n // 处理派送逻辑\r\n console.log('派送物品:', row);\r\n // 可以在这里添加代码来更新派送状态或调用API\r\n },\r\n handleDelete(row) {\r\n // 处理删除逻辑\r\n console.log('删除物品:', row);\r\n // 可以在这里添加代码来删除物品或调用API\r\n }\r\n }\r\n};\r\n</script>\r\n\r\n<style scoped>\r\n.el-header {\r\n color: #333;\r\n line-height: 60px;\r\n}\r\n.el-main {\r\n padding: 20px;\r\n}\r\n.el-aside {\r\n color: #333;\r\n}\r\n</style>"]}]}