1 line
7.8 KiB
JSON
1 line
7.8 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=style&index=0&id=39f65ebc&scoped=true&lang=css","dependencies":[{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\views\\order\\back.vue","mtime":1718614939733},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\css-loader\\dist\\cjs.js","mtime":1718764958140},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\vue-loader\\lib\\loaders\\stylePostLoader.js","mtime":1718764960674},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\postcss-loader\\src\\index.js","mtime":1718764958994},{"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:CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKDQouYXBwLWNvbnRhaW5lciB7DQogIHBvc2l0aW9uOiByZWxhdGl2ZTsNCiAgcGFkZGluZy1ib3R0b206IDYwcHg7IC8qIOWIhumhteadoeeahOmrmOW6piAqLw0KfQ0KDQouZmlsdGVyLWNvbnRhaW5lciwNCi5lbC10YWJsZSB7DQogIHBhZGRpbmctYm90dG9tOiA1MnB4OyAvKiDliIbpobXmnaHnmoTpq5jluqbvvIzku6Xpgb/lhY3lhoXlrrnph43lj6AgKi8NCn0NCg=="},{"version":3,"sources":["back.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsKA;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"]}]} |