1 line
9.9 KiB
JSON
1 line
9.9 KiB
JSON
{"remainingRequest":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\views\\order\\back.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\views\\order\\back.vue","mtime":1718614939733},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1718764957200},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\babel-loader\\lib\\index.js","mtime":1718764959024},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1718764957200},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\vue-loader\\lib\\index.js","mtime":1718764959862}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KDQovLyBpbXBvcnQgUGFnaW5hdGlvbiBmcm9tICdAL2NvbXBvbmVudHMvUGFnaW5hdGlvbicNCmltcG9ydCBQYWdpbmF0aW9uIGZyb20gJ0AvY29tcG9uZW50cy9QYWdpbmF0aW9uRml4ZWQnDQoNCmV4cG9ydCBkZWZhdW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pIHsNCiAgICAgIHRoaXMuJGF4aW9zLnBvc3QoJy9hZG1pbi9vcmRlci9iYWNrJywgdGhpcy5pdGVtKS50aGVuKHJlcyA9PiB7DQogICAgICAgIHRoaXMuZGlhbG9nVmlzaWJsZSA9IGZhbHNlDQogICAgICAgIHRoaXMuaXRlbSA9IHt9DQogICAgICAgIHRoaXMuZ2V0TGlzdCgpDQogICAgICB9KS5jYXRjaChlcnIgPT4gew0KDQogICAgICB9KQ0KICAgIH0sDQogICAgb25QYXNzKGl0ZW0pIHsNCiAgICAgIHRoaXMuJGF4aW9zLnBvc3QoJy9hZG1pbi9vcmRlci9iYWNrcGFzcycsIHsgaWQ6IGl0ZW0uaWQgfSkudGhlbihyZXMgPT4gew0KICAgICAgICB0aGlzLmRpYWxvZ1Zpc2libGUgPSBmYWxzZQ0KICAgICAgICB0aGlzLml0ZW0gPSB7fQ0KICAgICAgICB0aGlzLmdldExpc3QoKQ0KICAgICAgfSkuY2F0Y2goZXJyID0+IHsNCg0KICAgICAgfSkNCiAgICB9LA0KICAgIG9uUmVmdXNlKGl0ZW0pIHsNCiAgICAgIHRoaXMuJGF4aW9zLnBvc3QoJy9hZG1pbi9vcmRlci9iYWNrcmVmdXNlJywgeyBpZDogaXRlbS5pZCB9KS50aGVuKHJlcyA9PiB7DQogICAgICAgIHRoaXMuZGlhbG9nVmlzaWJsZSA9IGZhbHNlDQogICAgICAgIHRoaXMuaXRlbSA9IHt9DQogICAgICAgIHRoaXMuZ2V0TGlzdCgpDQogICAgICB9KS5jYXRjaChlcnIgPT4gew0KDQogICAgICB9KQ0KICAgIH0NCiAgfQ0KfQ0K"},{"version":3,"sources":["back.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4FA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA","file":"back.vue","sourceRoot":"src/views/order","sourcesContent":["<template>\r\n <div class=\"app-container\">\r\n\r\n <div class=\"filter-container\">\r\n <el-input v-model=\"listQuery.sn\" placeholder=\"订单号\" style=\"width: 300px;\" class=\"filter-item\" />\r\n\r\n <el-select v-model=\"listQuery.status\" filterable placeholder=\"状态\" class=\"filter-item\" style=\"width: 120px;\">\r\n <el-option label=\"未处理\" value=\"0\">未处理</el-option>\r\n <el-option label=\"已同意\" value=\"1\">已同意</el-option>\r\n <el-option label=\"拒绝\" value=\"2\">拒绝</el-option>\r\n <el-option label=\"取消\" value=\"3\">取消</el-option>\r\n </el-select>\r\n\r\n <el-button class=\"filter-item\" type=\"primary\" icon=\"el-icon-search\" @click=\"getList\">\r\n 搜索\r\n </el-button>\r\n\r\n <el-button class=\"filter-item\" type=\"primary\" icon=\"el-icon-edit-outline\" @click=\"dialogVisible=true\">\r\n 申请转入\r\n </el-button>\r\n </div>\r\n\r\n <el-table v-loading=\"listLoading\" :data=\"list\" border fit highlight-current-row style=\"width: 100%\">\r\n\r\n <el-table-column align=\"center\" fixed width=\"220\" label=\"操作\">\r\n <template slot-scope=\"scope\">\r\n <el-button v-if=\"scope.row.self ==0 && scope.row.status == 0\" type=\"primary\" size=\"small\" icon=\"el-icon-check\" @click=\"onPass(scope.row)\">\r\n 同意\r\n </el-button>\r\n <el-button v-if=\"scope.row.self ==0 && scope.row.status == 0\" type=\"success\" size=\"small\" icon=\"el-icon-close\" @click=\"onRefuse(scope.row)\">\r\n 拒绝\r\n </el-button>\r\n </template>\r\n </el-table-column>\r\n\r\n <el-table-column align=\"center\" label=\"转出\" width=\"80\" prop=\"outto.username\" />\r\n\r\n <el-table-column align=\"center\" label=\"转入\" width=\"80\" prop=\"into.username\" />\r\n <el-table-column align=\"center\" label=\"订单号\" width=\"220\" prop=\"orders.sn\" />\r\n <el-table-column align=\"center\" label=\"产品\" prop=\"orders.product_name\" />\r\n\r\n <el-table-column align=\"center\" label=\"总金额\" width=\"120\">\r\n <template slot-scope=\"scope\">\r\n <span>{{ scope.row.orders && scope.row.orders.total_price/100 }}</span>\r\n </template>\r\n </el-table-column>\r\n\r\n <el-table-column align=\"center\" label=\"状态\" width=\"120\">\r\n <template slot-scope=\"scope\">\r\n <span>{{ scope.row.status| statusFilter }}</span>\r\n </template>\r\n </el-table-column>\r\n\r\n <el-table-column width=\"180px\" align=\"center\" label=\"申请时间\">\r\n <template slot-scope=\"scope\">\r\n <span>{{ scope.row.create_time | parseTime('{y}-{m}-{d} {h}:{i}') }}</span>\r\n </template>\r\n </el-table-column>\r\n\r\n <el-table-column width=\"180px\" align=\"center\" label=\"修改时间\">\r\n <template slot-scope=\"scope\">\r\n <span>{{ scope.row.update_time | parseTime('{y}-{m}-{d} {h}:{i}') }}</span>\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n\r\n <pagination\r\n v-show=\"total>0\"\r\n :total=\"total\"\r\n :page.sync=\"listQuery.page\"\r\n :limit.sync=\"listQuery.limit\"\r\n @pagination=\"getList\"\r\n />\r\n\r\n <el-dialog title=\"申请转入订单\" :visible.sync=\"dialogVisible\">\r\n <el-form label-width=\"160px\" :model=\"item\">\r\n <el-form-item label=\"订单号\">\r\n <el-input v-model=\"item.sn\" name=\"check_sn\" placeholder=\"请输入订单号\" />\r\n </el-form-item>\r\n <el-form-item label=\"平台\">\r\n <el-radio v-for=\"(value,index) in oss\" v-model=\"item.os\" :label=\"index\">{{ value }}</el-radio>\r\n </el-form-item>\r\n </el-form>\r\n <div slot=\"footer\" class=\"dialog-footer\">\r\n <el-button type=\"primary\" @click=\"onBack()\">确 认</el-button>\r\n </div>\r\n </el-dialog>\r\n\r\n </div>\r\n</template>\r\n\r\n<script>\r\n// import Pagination from '@/components/Pagination'\r\nimport Pagination from '@/components/PaginationFixed'\r\n\r\nexport default {\r\n name: 'Orderlist',\r\n components: { Pagination },\r\n filters: {\r\n statusFilter(status) {\r\n const statusMap = {\r\n 1: '同意',\r\n 0: '申请中',\r\n 2: '拒绝',\r\n 3: '取消'\r\n }\r\n return statusMap[status]\r\n }\r\n },\r\n data() {\r\n return {\r\n list: [],\r\n total: 0,\r\n listLoading: true,\r\n listQuery: {\r\n page: 1,\r\n limit: 10\r\n },\r\n oss: {},\r\n item: {},\r\n dialogVisible: false\r\n }\r\n },\r\n created() {\r\n this.getList()\r\n },\r\n methods: {\r\n getList() {\r\n this.$axios.get('/admin/order/backlist', { params: this.listQuery }).then(response => {\r\n this.list = response.data.data\r\n this.total = response.data.total\r\n this.oss = response.ext\r\n this.listLoading = false\r\n })\r\n },\r\n onBack() {\r\n this.$axios.post('/admin/order/back', this.item).then(res => {\r\n this.dialogVisible = false\r\n this.item = {}\r\n this.getList()\r\n }).catch(err => {\r\n\r\n })\r\n },\r\n onPass(item) {\r\n this.$axios.post('/admin/order/backpass', { id: item.id }).then(res => {\r\n this.dialogVisible = false\r\n this.item = {}\r\n this.getList()\r\n }).catch(err => {\r\n\r\n })\r\n },\r\n onRefuse(item) {\r\n this.$axios.post('/admin/order/backrefuse', { id: item.id }).then(res => {\r\n this.dialogVisible = false\r\n this.item = {}\r\n this.getList()\r\n }).catch(err => {\r\n\r\n })\r\n }\r\n }\r\n}\r\n</script>\r\n<style scoped>\r\n.app-container {\r\n position: relative;\r\n padding-bottom: 60px; /* 分页条的高度 */\r\n}\r\n\r\n.filter-container,\r\n.el-table {\r\n padding-bottom: 52px; /* 分页条的高度,以避免内容重叠 */\r\n}\r\n</style>\r\n"]}]} |