39.c1e2b0d38a964a27914a.js.map 24 KB

1
  1. {"version":3,"sources":["webpack:///src/views/oms/apply/reason.vue","webpack:///./src/api/returnReason.js","webpack:///./src/views/oms/apply/reason.vue?ec6c","webpack:///./src/views/oms/apply/reason.vue"],"names":["defaultListQuery","pageNum","pageSize","defaultReturnReason","name","sort","status","createTime","reason","data","list","total","multipleSelection","listLoading","listQuery","assign_default","operateType","operateOptions","label","value","dialogVisible","returnReason","operateReasonId","created","this","getList","filters","formatCreateTime","time","date","Date","Object","utils_date","methods","handleAdd","handleConfirm","_this","request","url","method","then","response","$message","message","type","duration","id","updateReason","handleUpdate","index","row","_this2","handleDelete","ids","push","deleteReason","handleSelectionChange","val","handleStatusChange","_this3","params","obj","join","handleBatchOperate","length","i","handleSizeChange","handleCurrentChange","_this4","_this5","$confirm","confirmButtonText","cancelButtonText","apply_reason","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","shadow","_v","size","on","click","directives","rawName","expression","ref","staticStyle","width","border","selection-change","align","scopedSlots","_u","key","fn","scope","_s","active-value","inactive-value","change","$event","$index","model","callback","$$v","$set","_f","background","layout","current-page","page-size","page-sizes","size-change","current-change","update:currentPage","title","visible","update:visible","label-width","slot","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"uJA6GA,IAAAA,GACAC,QAAA,EACAC,SAAA,GAEAC,GACAC,KAAA,KACAC,KAAA,EACAC,OAAA,EACAC,WAAA,MAEAC,GACAJ,KAAA,mBACAK,KAFA,WAGA,OACAC,KAAA,KACAC,MAAA,KACAC,qBACAC,aAAA,EACAC,UAAAC,OAAAf,GACAgB,YAAA,KACAC,iBAEAC,MAAA,KACAC,MAAA,IAGAC,eAAA,EACAC,aAAAN,OAAAZ,GACAmB,gBAAA,OAGAC,QArBA,WAsBAC,KAAAC,WAEAC,SACAC,iBADA,SACAC,GACA,IAAAC,EAAA,IAAAC,KAAAF,GACA,OAAAG,OAAAC,EAAA,EAAAD,CAAAF,EAAA,yB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AC,GAAyDlC,EAAAmC,KAAAnC,EAAAtD,aAAA,SAAAwF,IAA0CpB,WAAA,0BAAmC,OAAAd,EAAAQ,GAAA,KAAAL,EAAA,QAAiCE,YAAA,gBAAAC,OAAmC2C,KAAA,UAAgBA,KAAA,WAAe9C,EAAA,aAAkBO,IAAIC,MAAA,SAAAmB,GAAyB9B,EAAAvD,eAAA,MAA4BuD,EAAAQ,GAAA,SAAAR,EAAAQ,GAAA,KAAAL,EAAA,aAA8CG,OAAOrC,KAAA,WAAiByC,IAAKC,MAAAX,EAAAxC,iBAA2BwC,EAAAQ,GAAA,sBAE1+H0C,oBCCjB,IAcAC,EAdAC,EAAA,OAcAC,CACAxH,EACAiE,GATA,EAVA,SAAAwD,GACAF,EAAA,SAaA,kBAEA,MAUAG,EAAA,QAAAJ,EAAA","file":"static/js/39.c1e2b0d38a964a27914a.js","sourcesContent":["<template> \n <div class=\"app-container\">\n <el-card class=\"operate-container\" shadow=\"never\">\n <i class=\"el-icon-tickets\"></i>\n <span>数据列表</span>\n <el-button\n size=\"mini\"\n @click=\"handleAdd\"\n class=\"btn-add\">添加\n </el-button>\n </el-card>\n <div class=\"table-container\">\n <el-table ref=\"returnReasonTable\"\n :data=\"list\"\n style=\"width: 100%;\"\n @selection-change=\"handleSelectionChange\"\n v-loading=\"listLoading\" border>\n <el-table-column type=\"selection\" width=\"60\" align=\"center\"></el-table-column>\n <el-table-column label=\"编号\" width=\"80\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.id}}</template>\n </el-table-column>\n <el-table-column label=\"原因类型\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.name}}</template>\n </el-table-column>\n <el-table-column label=\"排序\" width=\"100\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.sort }}</template>\n </el-table-column>\n <el-table-column label=\"是否可用\" align=\"center\">\n <template slot-scope=\"scope\">\n <el-switch\n v-model=\"scope.row.status\"\n @change=\"handleStatusChange(scope.$index,scope.row)\"\n :active-value=\"1\"\n :inactive-value=\"0\">\n </el-switch>\n </template>\n </el-table-column>\n <el-table-column label=\"添加时间\" width=\"180\" align=\"center\">\n <template slot-scope=\"scope\">{{scope.row.createTime | formatCreateTime}}</template>\n </el-table-column>\n <el-table-column label=\"操作\" width=\"160\" align=\"center\">\n <template slot-scope=\"scope\">\n <el-button\n size=\"mini\"\n @click=\"handleUpdate(scope.$index, scope.row)\">编辑</el-button>\n <el-button\n size=\"mini\"\n @click=\"handleDelete(scope.$index, scope.row)\">删除</el-button>\n </template>\n </el-table-column>\n </el-table>\n </div>\n <!-- <div class=\"batch-operate-container\">\n <el-select\n size=\"small\"\n v-model=\"operateType\" placeholder=\"批量操作\">\n <el-option\n v-for=\"item in operateOptions\"\n :key=\"item.value\"\n :label=\"item.label\"\n :value=\"item.value\">\n </el-option>\n </el-select>\n <el-button\n style=\"margin-left: 20px\"\n class=\"search-button\"\n @click=\"handleBatchOperate\"\n type=\"primary\"\n size=\"small\">\n 确定\n </el-button>\n </div> -->\n <div class=\"pagination-container\">\n <el-pagination\n background\n @size-change=\"handleSizeChange\"\n @current-change=\"handleCurrentChange\"\n layout=\"total, sizes,prev, pager, next,jumper\"\n :current-page.sync=\"listQuery.pageNum\"\n :page-size=\"listQuery.pageSize\"\n :page-sizes=\"[5,10,15]\"\n :total=\"total\">\n </el-pagination>\n </div>\n <el-dialog\n title=\"添加退货原因\"\n :visible.sync=\"dialogVisible\" width=\"30%\">\n <el-form :model=\"returnReason\"\n ref=\"reasonForm\" label-width=\"150px\">\n <el-form-item label=\"原因类型:\">\n <el-input v-model=\"returnReason.name\" class=\"input-width\"></el-input>\n </el-form-item>\n <el-form-item label=\"排序:\">\n <el-input v-model=\"returnReason.sort\" class=\"input-width\"></el-input>\n </el-form-item>\n <el-form-item label=\"是否启用:\">\n <el-switch v-model=\"returnReason.status\" :active-value=\"1\" :inactive-value=\"0\"></el-switch>\n </el-form-item>\n </el-form>\n <span slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"dialogVisible = false\">取 消</el-button>\n <el-button type=\"primary\" @click=\"handleConfirm\">确 定</el-button>\n </span>\n </el-dialog>\n </div>\n</template>\n<script>\n import {formatDate} from '@/utils/date';\n import {fetchList,deleteReason,updateStatus,addReason,getReasonDetail,updateReason} from '@/api/returnReason';\n const defaultListQuery = {\n pageNum: 1,\n pageSize: 5\n };\n const defaultReturnReason = {\n name:null,\n sort:0,\n status:1,\n createTime:null\n };\n export default {\n name: 'returnReasonList',\n data() {\n return {\n list: null,\n total: null,\n multipleSelection: [],\n listLoading:true,\n listQuery:Object.assign({}, defaultListQuery),\n operateType:null,\n operateOptions: [\n {\n label: \"删除\",\n value: 1\n }\n ],\n dialogVisible:false,\n returnReason:Object.assign({},defaultReturnReason),\n operateReasonId:null\n }\n },\n created(){\n this.getList();\n },\n filters:{\n formatCreateTime(time) {\n let date = new Date(time);\n return formatDate(date, 'yyyy-MM-dd hh:mm:ss')\n }\n },\n methods: {\n handleAdd() {\n this.dialogVisible=true;\n this.operateReasonId=null;\n this.returnReason=Object.assign({},defaultReturnReason);\n },\n handleConfirm(){\n if(this.operateReasonId==null){\n //添加操作\n addReason(this.returnReason).then(response=>{\n this.dialogVisible=false;\n this.operateReasonId=null;\n this.$message({\n message: '添加成功!',\n type: 'success',\n duration:1000\n });\n this.getList();\n });\n }else{\n //编辑操作\n updateReason(this.operateReasonId,this.returnReason).then(response=>{\n this.dialogVisible=false;\n this.operateReasonId=null;\n this.$message({\n message: '修改成功!',\n type: 'success',\n duration:1000\n });\n this.getList();\n });\n }\n },\n handleUpdate(index, row){\n this.dialogVisible=true;\n this.operateReasonId=row.id;\n getReasonDetail(row.id).then(response=>{\n this.returnReason=response.data;\n });\n },\n handleDelete(index, row){\n let ids=[];\n ids.push(row.id);\n this.deleteReason(ids);\n },\n handleSelectionChange(val){\n this.multipleSelection = val;\n },\n handleStatusChange(index,row){\n let ids=[];\n ids.push(row.id);\n // let param = new URLSearchParams();\n // param.append(\"status\",row.status);\n // param.append(\"ids\",ids);\n let obj = {\n status:row.status,\n ids:ids.join(',')\n }\n updateStatus(obj).then(response=>{\n this.$message({\n message: '状态修改成功',\n type: 'success'\n });\n });\n },\n handleBatchOperate(){\n if(this.multipleSelection==null||this.multipleSelection.length<1){\n this.$message({\n message: '请选择要操作的条目',\n type: 'warning',\n duration: 1000\n });\n return;\n }\n if(this.operateType===1){\n let ids=[];\n for(let i=0;i<this.multipleSelection.length;i++){\n ids.push(this.multipleSelection[i].id);\n }\n this.deleteReason(ids);\n }\n },\n handleSizeChange(val){\n this.listQuery.pageNum = 1;\n this.listQuery.pageSize = val;\n this.getList();\n },\n handleCurrentChange(val){\n this.listQuery.pageNum = val;\n this.getList();\n },\n getList(){\n this.listLoading = true;\n fetchList(this.listQuery).then(response => {\n this.listLoading = false;\n this.list = response.data.list;\n this.total = response.data.total;\n });\n },\n deleteReason(ids){\n this.$confirm('是否要进行该删除操作?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(() => {\n // let params = new URLSearchParams();\n // params.append(\"ids\",ids);\n let obj = {\n ids:ids.join(',')\n }\n deleteReason(obj).then(response=>{\n this.$message({\n message: '删除成功!',\n type: 'success',\n duration: 1000\n });\n this.listQuery.pageNum=1;\n this.getList();\n });\n })\n },\n }\n }\n</script>\n<style scoped>\n .input-width {\n width: 80%;\n }\n</style>\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/views/oms/apply/reason.vue","import request from '@/utils/request'\nexport function fetchList(params) {\n return request({\n url:'/returnReason/list',\n method:'get',\n params:params\n })\n}\n\nexport function deleteReason(params) {\n return request({\n url:'/returnReason/delete',\n method:'post',\n params:params\n })\n}\n\nexport function updateStatus(params) {\n return request({\n url:'/returnReason/update/status',\n method:'post',\n params:params\n })\n}\n\nexport function addReason(data) {\n return request({\n url:'/returnReason/create',\n method:'post',\n data:data\n })\n}\n\nexport function getReasonDetail(id) {\n return request({\n url:'/returnReason/'+id,\n method:'get'\n })\n}\n\nexport function updateReason(id,data) {\n return request({\n url:'/returnReason/update/'+id,\n method:'post',\n data:data\n })\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/api/returnReason.js","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:\"operate-container\",attrs:{\"shadow\":\"never\"}},[_c('i',{staticClass:\"el-icon-tickets\"}),_vm._v(\" \"),_c('span',[_vm._v(\"数据列表\")]),_vm._v(\" \"),_c('el-button',{staticClass:\"btn-add\",attrs:{\"size\":\"mini\"},on:{\"click\":_vm.handleAdd}},[_vm._v(\"添加\\n \")])],1),_vm._v(\" \"),_c('div',{staticClass:\"table-container\"},[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.listLoading),expression:\"listLoading\"}],ref:\"returnReasonTable\",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\":\"80\",\"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\":\"原因类型\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(scope.row.name))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"排序\",\"width\":\"100\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(scope.row.sort))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"是否可用\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-switch',{attrs:{\"active-value\":1,\"inactive-value\":0},on:{\"change\":function($event){_vm.handleStatusChange(scope.$index,scope.row)}},model:{value:(scope.row.status),callback:function ($$v) {_vm.$set(scope.row, \"status\", $$v)},expression:\"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(\"formatCreateTime\")(scope.row.createTime)))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"操作\",\"width\":\"160\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){_vm.handleUpdate(scope.$index, scope.row)}}},[_vm._v(\"编辑\")]),_vm._v(\" \"),_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){_vm.handleDelete(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),_vm._v(\" \"),_c('el-dialog',{attrs:{\"title\":\"添加退货原因\",\"visible\":_vm.dialogVisible,\"width\":\"30%\"},on:{\"update:visible\":function($event){_vm.dialogVisible=$event}}},[_c('el-form',{ref:\"reasonForm\",attrs:{\"model\":_vm.returnReason,\"label-width\":\"150px\"}},[_c('el-form-item',{attrs:{\"label\":\"原因类型:\"}},[_c('el-input',{staticClass:\"input-width\",model:{value:(_vm.returnReason.name),callback:function ($$v) {_vm.$set(_vm.returnReason, \"name\", $$v)},expression:\"returnReason.name\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"排序:\"}},[_c('el-input',{staticClass:\"input-width\",model:{value:(_vm.returnReason.sort),callback:function ($$v) {_vm.$set(_vm.returnReason, \"sort\", $$v)},expression:\"returnReason.sort\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"是否启用:\"}},[_c('el-switch',{attrs:{\"active-value\":1,\"inactive-value\":0},model:{value:(_vm.returnReason.status),callback:function ($$v) {_vm.$set(_vm.returnReason, \"status\", $$v)},expression:\"returnReason.status\"}})],1)],1),_vm._v(\" \"),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{on:{\"click\":function($event){_vm.dialogVisible = false}}},[_vm._v(\"取 消\")]),_vm._v(\" \"),_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.handleConfirm}},[_vm._v(\"确 定\")])],1)],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-4ef3b87d\",\"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/reason.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,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-4ef3b87d\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./reason.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!./reason.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./reason.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-4ef3b87d\\\",\\\"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!./reason.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-4ef3b87d\"\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/reason.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}