1 |
- {"version":3,"sources":["webpack:///src/views/oms/apply/index.vue","webpack:///./src/views/oms/apply/index.vue?9711","webpack:///./src/views/oms/apply/index.vue","webpack:///./src/api/returnApply.js"],"names":["defaultListQuery","pageNum","pageSize","id","receiverKeyword","status","createTime","handleMan","handleTime","defaultStatusOptions","label","value","apply","name","data","listQuery","assign_default","statusOptions","list","total","listLoading","multipleSelection","operateType","operateOptions","created","this","$route","params","getList","filters","formatTime","time","date","Date","Object","utils_date","formatStatus","i","length","formatReturnAmount","row","productRealPrice","productCount","methods","handleSelectionChange","val","handleResetSearch","handleSearchList","handleViewDetail","index","$router","push","path","query","handleBatchOperate","_this","$message","message","type","duration","$confirm","confirmButtonText","cancelButtonText","then","ids","obj","join","returnApply","response","handleSizeChange","handleCurrentChange","_this2","oms_apply","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","shadow","_v","staticStyle","float","size","on","click","$event","margin-right","margin-top","inline","model","label-width","placeholder","callback","$$v","$set","expression","clearable","_l","item","key","value-format","directives","rawName","ref","width","border","selection-change","align","scopedSlots","_u","fn","scope","_s","_f","memberUsername","$index","background","layout","current-page","page-size","page-sizes","size-change","current-change","update:currentPage","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__","__WEBPACK_IMPORTED_MODULE_0__utils_request__","url","method","requestType"],"mappings":"uJAqIAA,GACAC,QAAA,EACAC,SAAA,GACAC,GAAA,KACAC,gBAAA,KACAC,OAAA,KACAC,WAAA,KACAC,UAAA,KACAC,WAAA,MAEAC,IAEAC,MAAA,MACAC,MAAA,IAGAD,MAAA,MACAC,MAAA,IAGAD,MAAA,MACAC,MAAA,IAGAD,MAAA,MACAC,MAAA,IAGAC,GACAC,KAAA,kBACAC,KAFA,WAGA,OACAC,UAAAC,OAAAhB,GACAiB,cAAAD,OAAAP,GACAS,KAAA,KACAC,MAAA,KACAC,aAAA,EACAC,qBACAC,YAAA,EACAC,iBAEAb,MAAA,OACAC,MAAA,MAKAa,QAnBA,WAoB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D,OAAkLmE,IAAKsC,cAAAlD,EAAAL,iBAAAwD,iBAAAnD,EAAAJ,oBAAAwD,qBAAA,SAAAtC,GAAkHd,EAAAuB,KAAAvB,EAAA3D,UAAA,UAAAyE,QAA6C,QAEvzJuC,oBCCjB,IAcAC,EAdAC,EAAA,OAcAC,CACAtH,EACA4D,GATA,EAVA,SAAA2D,GACAF,EAAA,SAaA,kBAEA,MAUAG,EAAA,QAAAJ,EAAA,+CCzBO,SAAmBrG,GACxB,OAAOO,OAAAmG,EAAA,EAAAnG,EACLoG,IAAI,oBACJC,OAAO,MACP5G,OAAOA,SAIJ,SAAqBA,GAC1B,OAAOO,OAAAmG,EAAA,EAAAnG,EACLoG,IAAI,sBACJC,OAAO,OACP5G,OAAOA,EACP6G,YAAY,cAGT,SAA2BrI,EAAGW,GACnC,OAAOoB,OAAAmG,EAAA,EAAAnG,EACLoG,IAAI,8BAA8BnI,EAClCoI,OAAO,OACPzH,KAAKA,SAIF,SAAwBX,GAC7B,OAAO+B,OAAAmG,EAAA,EAAAnG,EACLoG,IAAI,gBAAgBnI,EACpBoI,OAAO","file":"static/js/22.e0692b5e57317f512108.js","sourcesContent":["<template> \r\n <div class=\"app-container\">\r\n <el-card class=\"filter-container\" shadow=\"never\">\r\n <div>\r\n <i class=\"el-icon-search\"></i>\r\n <span>筛选搜索</span>\r\n <el-button\r\n style=\"float:right\"\r\n type=\"primary\"\r\n @click=\"handleSearchList()\"\r\n size=\"small\">\r\n 查询搜索\r\n </el-button>\r\n <el-button\r\n style=\"float:right;margin-right: 15px\"\r\n @click=\"handleResetSearch()\"\r\n size=\"small\">\r\n 重置\r\n </el-button>\r\n </div>\r\n <div style=\"margin-top: 15px\">\r\n <el-form :inline=\"true\" :model=\"listQuery\" size=\"small\" label-width=\"140px\">\r\n <el-form-item label=\"输入搜索:\">\r\n <el-input v-model=\"listQuery.id\" class=\"input-width\" placeholder=\"服务单号\"></el-input>\r\n </el-form-item>\r\n <el-form-item label=\"处理状态:\">\r\n <el-select v-model=\"listQuery.status\" placeholder=\"全部\" clearable class=\"input-width\">\r\n <el-option v-for=\"item in statusOptions\"\r\n :key=\"item.value\"\r\n :label=\"item.label\"\r\n :value=\"item.value\">\r\n </el-option>\r\n </el-select>\r\n </el-form-item>\r\n <el-form-item label=\"申请时间:\">\r\n <el-date-picker\r\n class=\"input-width\"\r\n v-model=\"listQuery.createTime\"\r\n value-format=\"yyyy-MM-dd\"\r\n type=\"date\"\r\n placeholder=\"请选择时间\">\r\n </el-date-picker>\r\n </el-form-item>\r\n <el-form-item label=\"操作人员:\">\r\n <el-input v-model=\"listQuery.handleMan\" class=\"input-width\" placeholder=\"全部\"></el-input>\r\n </el-form-item>\r\n <el-form-item label=\"处理时间:\">\r\n <el-date-picker\r\n class=\"input-width\"\r\n v-model=\"listQuery.handleTime\"\r\n value-format=\"yyyy-MM-dd\"\r\n type=\"date\"\r\n placeholder=\"请选择时间\">\r\n </el-date-picker>\r\n </el-form-item>\r\n </el-form>\r\n </div>\r\n </el-card>\r\n <el-card class=\"operate-container\" shadow=\"never\">\r\n <i class=\"el-icon-tickets\"></i>\r\n <span>数据列表</span>\r\n </el-card>\r\n <div class=\"table-container\">\r\n <el-table ref=\"returnApplyTable\"\r\n :data=\"list\"\r\n style=\"width: 100%;\"\r\n @selection-change=\"handleSelectionChange\"\r\n v-loading=\"listLoading\" border>\r\n <el-table-column type=\"selection\" width=\"60\" align=\"center\"></el-table-column>\r\n <el-table-column label=\"服务单号\" width=\"180\" align=\"center\">\r\n <template slot-scope=\"scope\">{{scope.row.id}}</template>\r\n </el-table-column>\r\n <el-table-column label=\"申请时间\" width=\"180\" align=\"center\">\r\n <template slot-scope=\"scope\">{{scope.row.createTime | formatTime}}</template>\r\n </el-table-column>\r\n <el-table-column label=\"用户账号\" align=\"center\">\r\n <template slot-scope=\"scope\">{{scope.row.memberUsername}}</template>\r\n </el-table-column>\r\n <el-table-column label=\"退款金额\" width=\"180\" align=\"center\">\r\n <template slot-scope=\"scope\">¥{{scope.row | formatReturnAmount}}</template>\r\n </el-table-column>\r\n <el-table-column label=\"申请状态\" width=\"180\" align=\"center\">\r\n <template slot-scope=\"scope\">{{scope.row.status | formatStatus}}</template>\r\n </el-table-column>\r\n <el-table-column label=\"处理时间\" width=\"180\" align=\"center\">\r\n <template slot-scope=\"scope\">{{scope.row.handleTime | formatTime}}</template>\r\n </el-table-column>\r\n <el-table-column label=\"操作\" width=\"180\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <el-button\r\n size=\"mini\"\r\n @click=\"handleViewDetail(scope.$index, scope.row)\">查看详情</el-button>\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n </div>\r\n <!-- <div class=\"batch-operate-container\">\r\n <el-select\r\n size=\"small\"\r\n v-model=\"operateType\" placeholder=\"批量操作\">\r\n <el-option\r\n v-for=\"item in operateOptions\"\r\n :key=\"item.value\"\r\n :label=\"item.label\"\r\n :value=\"item.value\">\r\n </el-option>\r\n </el-select>\r\n <el-button\r\n style=\"margin-left: 20px\"\r\n class=\"search-button\"\r\n @click=\"handleBatchOperate()\"\r\n type=\"primary\"\r\n size=\"small\">\r\n 确定\r\n </el-button>\r\n </div> -->\r\n <div class=\"pagination-container\">\r\n <el-pagination\r\n background\r\n @size-change=\"handleSizeChange\"\r\n @current-change=\"handleCurrentChange\"\r\n layout=\"total, sizes,prev, pager, next,jumper\"\r\n :current-page.sync=\"listQuery.pageNum\"\r\n :page-size=\"listQuery.pageSize\"\r\n :page-sizes=\"[5,10,15]\"\r\n :total=\"total\">\r\n </el-pagination>\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\n import {formatDate} from '@/utils/date';\r\n import {fetchList,deleteApply} from '@/api/returnApply';\r\n const defaultListQuery = {\r\n pageNum: 1,\r\n pageSize: 10,\r\n id: null,\r\n receiverKeyword: null,\r\n status: null,\r\n createTime: null,\r\n handleMan: null,\r\n handleTime: null\r\n };\r\n const defaultStatusOptions=[\r\n {\r\n label: '待处理',\r\n value: 0\r\n },\r\n {\r\n label: '退货中',\r\n value: 1\r\n },\r\n {\r\n label: '已完成',\r\n value: 2\r\n },\r\n {\r\n label: '已拒绝',\r\n value: 3\r\n }\r\n ];\r\n export default {\r\n name:'returnApplyList',\r\n data() {\r\n return {\r\n listQuery:Object.assign({},defaultListQuery),\r\n statusOptions: Object.assign({},defaultStatusOptions),\r\n list:null,\r\n total:null,\r\n listLoading:false,\r\n multipleSelection:[],\r\n operateType:1,\r\n operateOptions: [\r\n {\r\n label: \"批量删除\",\r\n value: 1\r\n }\r\n ],\r\n }\r\n },\r\n created(){\r\n if (this.$route.params.status + \"\") {\r\n this.listQuery.status = this.$route.params.status;\r\n }\r\n this.getList();\r\n },\r\n filters:{\r\n formatTime(time) {\r\n if(time==null||time===''){\r\n return '--';\r\n }\r\n let date = new Date(time);\r\n return formatDate(date, 'yyyy-MM-dd hh:mm:ss')\r\n },\r\n formatStatus(status){\r\n for(let i=0;i<defaultStatusOptions.length;i++){\r\n if(status===defaultStatusOptions[i].value){\r\n return defaultStatusOptions[i].label;\r\n }\r\n }\r\n },\r\n formatReturnAmount(row){\r\n return row.productRealPrice*row.productCount;\r\n }\r\n },\r\n methods:{\r\n handleSelectionChange(val){\r\n this.multipleSelection = val;\r\n },\r\n handleResetSearch() {\r\n this.listQuery = Object.assign({}, defaultListQuery);\r\n },\r\n handleSearchList() {\r\n this.listQuery.pageNum = 1;\r\n this.getList();\r\n },\r\n handleViewDetail(index,row){\r\n this.$router.push({path:'/oms/returnApplyDetail',query:{id:row.id}})\r\n },\r\n handleBatchOperate(){\r\n if(this.multipleSelection==null||this.multipleSelection.length<1){\r\n this.$message({\r\n message: '请选择要操作的申请',\r\n type: 'warning',\r\n duration: 1000\r\n });\r\n return;\r\n }\r\n if(this.operateType===1){\r\n //批量删除\r\n this.$confirm('是否要进行删除操作?', '提示', {\r\n confirmButtonText: '确定',\r\n cancelButtonText: '取消',\r\n type: 'warning'\r\n }).then(() => {\r\n // let params = new URLSearchParams();\r\n let ids=[];\r\n for(let i=0;i<this.multipleSelection.length;i++){\r\n ids.push(this.multipleSelection[i].id);\r\n }\r\n // params.append(\"ids\",ids);\r\n let obj = {ids:ids.join(',')}\r\n deleteApply(obj).then(response=>{\r\n this.getList();\r\n this.$message({\r\n type: 'success',\r\n message: '删除成功!'\r\n });\r\n });\r\n })\r\n }\r\n },\r\n handleSizeChange(val){\r\n this.listQuery.pageNum = 1;\r\n this.listQuery.pageSize = val;\r\n this.getList();\r\n },\r\n handleCurrentChange(val){\r\n this.listQuery.pageNum = val;\r\n this.getList();\r\n },\r\n getList(){\r\n this.listLoading=true;\r\n fetchList(this.listQuery).then(response => {\r\n this.listLoading = false;\r\n this.list = response.data.list;\r\n this.total = response.data.total;\r\n });\r\n }\r\n }\r\n }\r\n</script>\r\n<style scoped>\r\n .input-width {\r\n width: 203px;\r\n }\r\n</style>\r\n\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/oms/apply/index.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"app-container\"},[_c('el-card',{staticClass:\"filter-container\",attrs:{\"shadow\":\"never\"}},[_c('div',[_c('i',{staticClass:\"el-icon-search\"}),_vm._v(\" \"),_c('span',[_vm._v(\"筛选搜索\")]),_vm._v(\" \"),_c('el-button',{staticStyle:{\"float\":\"right\"},attrs:{\"type\":\"primary\",\"size\":\"small\"},on:{\"click\":function($event){_vm.handleSearchList()}}},[_vm._v(\"\\n 查询搜索\\n \")]),_vm._v(\" \"),_c('el-button',{staticStyle:{\"float\":\"right\",\"margin-right\":\"15px\"},attrs:{\"size\":\"small\"},on:{\"click\":function($event){_vm.handleResetSearch()}}},[_vm._v(\"\\n 重置\\n \")])],1),_vm._v(\" \"),_c('div',{staticStyle:{\"margin-top\":\"15px\"}},[_c('el-form',{attrs:{\"inline\":true,\"model\":_vm.listQuery,\"size\":\"small\",\"label-width\":\"140px\"}},[_c('el-form-item',{attrs:{\"label\":\"输入搜索:\"}},[_c('el-input',{staticClass:\"input-width\",attrs:{\"placeholder\":\"服务单号\"},model:{value:(_vm.listQuery.id),callback:function ($$v) {_vm.$set(_vm.listQuery, \"id\", $$v)},expression:\"listQuery.id\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"处理状态:\"}},[_c('el-select',{staticClass:\"input-width\",attrs:{\"placeholder\":\"全部\",\"clearable\":\"\"},model:{value:(_vm.listQuery.status),callback:function ($$v) {_vm.$set(_vm.listQuery, \"status\", $$v)},expression:\"listQuery.status\"}},_vm._l((_vm.statusOptions),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}))],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"申请时间:\"}},[_c('el-date-picker',{staticClass:\"input-width\",attrs:{\"value-format\":\"yyyy-MM-dd\",\"type\":\"date\",\"placeholder\":\"请选择时间\"},model:{value:(_vm.listQuery.createTime),callback:function ($$v) {_vm.$set(_vm.listQuery, \"createTime\", $$v)},expression:\"listQuery.createTime\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"操作人员:\"}},[_c('el-input',{staticClass:\"input-width\",attrs:{\"placeholder\":\"全部\"},model:{value:(_vm.listQuery.handleMan),callback:function ($$v) {_vm.$set(_vm.listQuery, \"handleMan\", $$v)},expression:\"listQuery.handleMan\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"处理时间:\"}},[_c('el-date-picker',{staticClass:\"input-width\",attrs:{\"value-format\":\"yyyy-MM-dd\",\"type\":\"date\",\"placeholder\":\"请选择时间\"},model:{value:(_vm.listQuery.handleTime),callback:function ($$v) {_vm.$set(_vm.listQuery, \"handleTime\", $$v)},expression:\"listQuery.handleTime\"}})],1)],1)],1)]),_vm._v(\" \"),_c('el-card',{staticClass:\"operate-container\",attrs:{\"shadow\":\"never\"}},[_c('i',{staticClass:\"el-icon-tickets\"}),_vm._v(\" \"),_c('span',[_vm._v(\"数据列表\")])]),_vm._v(\" \"),_c('div',{staticClass:\"table-container\"},[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.listLoading),expression:\"listLoading\"}],ref:\"returnApplyTable\",staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.list,\"border\":\"\"},on:{\"selection-change\":_vm.handleSelectionChange}},[_c('el-table-column',{attrs:{\"type\":\"selection\",\"width\":\"60\",\"align\":\"center\"}}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"服务单号\",\"width\":\"180\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(scope.row.id))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"申请时间\",\"width\":\"180\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(_vm._f(\"formatTime\")(scope.row.createTime)))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"用户账号\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(scope.row.memberUsername))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"退款金额\",\"width\":\"180\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"¥\"+_vm._s(_vm._f(\"formatReturnAmount\")(scope.row)))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"申请状态\",\"width\":\"180\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(_vm._f(\"formatStatus\")(scope.row.status)))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"处理时间\",\"width\":\"180\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(_vm._f(\"formatTime\")(scope.row.handleTime)))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"操作\",\"width\":\"180\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){_vm.handleViewDetail(scope.$index, scope.row)}}},[_vm._v(\"查看详情\")])]}}])})],1)],1),_vm._v(\" \"),_c('div',{staticClass:\"pagination-container\"},[_c('el-pagination',{attrs:{\"background\":\"\",\"layout\":\"total, sizes,prev, pager, next,jumper\",\"current-page\":_vm.listQuery.pageNum,\"page-size\":_vm.listQuery.pageSize,\"page-sizes\":[5,10,15],\"total\":_vm.total},on:{\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange,\"update:currentPage\":function($event){_vm.$set(_vm.listQuery, \"pageNum\", $event)}}})],1)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-6baad3e7\",\"hasScoped\":true,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/oms/apply/index.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-6baad3e7\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./index.vue\")\n}\nvar normalizeComponent = require(\"!../../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./index.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-6baad3e7\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../../node_modules/vue-loader/lib/selector?type=template&index=0!./index.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-6baad3e7\"\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/oms/apply/index.vue\n// module id = null\n// module chunks = ","import request from '@/utils/request'\r\nexport function fetchList(params) {\r\n return request({\r\n url:'/returnApply/list',\r\n method:'get',\r\n params:params\r\n })\r\n}\r\n\r\nexport function deleteApply(params) {\r\n return request({\r\n url:'/returnApply/delete',\r\n method:'post',\r\n params:params,\r\n requestType:'form'\r\n })\r\n}\r\nexport function updateApplyStatus(id,data) {\r\n return request({\r\n url:'/returnApply/update/status/'+id,\r\n method:'post',\r\n data:data\r\n })\r\n}\r\n\r\nexport function getApplyDetail(id) {\r\n return request({\r\n url:'/returnApply/'+id,\r\n method:'get'\r\n })\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/api/returnApply.js"],"sourceRoot":""}
|