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.
rcgy_xmf_qrcode/js/chunk-4a5ed58d.eb6d6778.js.map

1 line
38 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{"version":3,"sources":["webpack:///./src/views/commodity/page/categoryManagemen.vue","webpack:///src/views/commodity/page/categoryManagemen.vue","webpack:///./src/views/commodity/page/categoryManagemen.vue?9525","webpack:///./src/views/commodity/page/categoryManagemen.vue?fcf1","webpack:///./src/views/commodity/page/categoryManagemen.vue?6f0f","webpack:///./src/api/shop.js"],"names":["render","_vm","this","_c","_self","staticClass","_m","attrs","on","$event","add","_v","staticStyle","_l","options","item","index","key","class","red","changeRed","change","getChild","_s","name","handleEdit","handleDelete","childrenOptions","add_vrisible","addClose","slot","ref","addForm","addRuleSuccess","$baseUrl","ImgeSuccess","imglist","handleExceed","beforeAvatarUpload","addSubmit","edit_vrisible","editClose","editForm","editSubmit","staticRenderFns","data","ruleForm","id","parentId","imgUrls","idPath","form_item","type","label","placeholder","width","prop","slotName","rules","required","message","trigger","value","mounted","methods","shopCategoryList","res","shopCategoryInsert","console","url","getDate","shopCategoryUpdate","files","confirmButtonText","cancelButtonText","confirmButtonClass","cancelButtonClass","then","shopCategoryDelete","categoryId","catch","action","watch","handler","immediate","component","shopSupplierInsert","service","request","method","shopGoodsInsert","shopSupplierList","params","orderArrivalGoods","shopGoodsLoading","shopGoodsUnloading","shopOrderDeliverGoods","refundExchangeGoods","shopRefundExamine","shopEvaluationReply"],"mappings":"yHAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACA,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACJ,EAAIK,GAAG,GAAGH,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,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mB1B,GAC/B,OAAO0C,OAAQC,QAAQ,CACnBC,OAAO,OACPpB,IAAI,uBACJxB,KAAMA,IAIP,SAASiC,EAAmBjC,GAC/B,OAAO0C,OAAQC,QAAQ,CACnBC,OAAO,MACPpB,IAAI,uBACJuB,OAAQ/C,IAGT,SAASsB,EAAmBtB,GAC/B,OAAO0C,OAAQC,QAAQ,CACnBC,OAAO,OACPpB,IAAI,uBACJxB,KAAMA,IAKP,SAASiD,EAAiBjD,GAC7B,OAAO0C,OAAQC,QAAQ,CACnBC,OAAO,MACPpB,IAAI,qBACJuB,OAAQ/C,IAGT,SAASkD,EAAmBlD,GAC/B,OAAO0C,OAAQC,QAAQ,CACnBC,OAAO,MACPpB,IAAI,uBACJuB,OAAQ/C,IAIT,SAASmD,EAAsBnD,GAClC,OAAO0C,OAAQC,QAAQ,CACnBC,OAAO,OACPpB,IAAI,0BACJxB,KAAMA,IAIP,SAASoD,EAAoBpD,GAChC,OAAO0C,OAAQC,QAAQ,CACnBC,OAAO,MACPpB,IAAI,4BACJuB,OAAO/C,IAIR,SAASqD,EAAkBrD,GAC9B,OAAO0C,OAAQC,QAAQ,CACnBC,OAAO,OACPpB,IAAI,sBACJxB,KAAMA,IAIP,SAASsD,EAAoBtD,GAChC,OAAO0C,OAAQC,QAAQ,CACnBC,OAAO,OACPpB,IAAI,wBACJxB,KAAMA","file":"js/chunk-4a5ed58d.eb6d6778.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('div',[_c('div',{staticClass:\"main-content\"},[_vm._m(0),_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"btn\"},[_c('el-button',{staticClass:\"init-button\",attrs:{\"size\":\"small\"},on:{\"click\":function($event){return _vm.add()}}},[_vm._v(\"新增类目\")])],1),_c('div',{staticClass:\"category\"},[_c('el-row',[_c('el-col',{attrs:{\"span\":4}},[_c('ul',{staticStyle:{\"border-right\":\"1px solid #e6e6fa\"}},_vm._l((this.options),function(item,index){return _c('li',{key:index,class:{red: _vm.changeRed == index},on:{\"click\":function($event){return _vm.change(index)}}},[_c('span',{staticClass:\"cateName\",on:{\"click\":function($event){return _vm.getChild(item)}}},[_vm._v(\" \"+_vm._s(item.name)+\" \")]),[_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.handleEdit(item)}}},[_vm._v(\"编辑\")]),_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.handleDelete(item)}}},[_vm._v(\"删除\")])]],2)}),0)]),_c('el-col',{attrs:{\"span\":10}},[_c('ul',{staticStyle:{\"margin-left\":\"30px\"}},_vm._l((this\n .childrenOptions),function(item,index){return _c('li',{key:index},[_c('span',{staticClass:\"cateName\"},[_vm._v(\" \"+_vm._s(item.name)+\" \")]),[_c('el-button',{attrs:{\"size\":\"mini\"},on:{\"click\":function($event){return _vm.handleEdit(item)}}},[_vm._v(\"编辑\")]),_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){return _vm.handleDelete(item)}}},[_vm._v(\"删除\")])]],2)}),0)])],1)],1),_c('Drawer',{attrs:{\"drawerTitle\":\"新增分类\",\"drawerVrisible\":_vm.add_vrisible},on:{\"drawerClose\":_vm.addClose}},[_c('div',{staticStyle:{\"padding\":\"30px\"}},[_c('FromCard',[_c('template',{slot:\"title\"},[_vm._v(\"填写分类信息\")]),[_c('VueForm',{ref:\"addForm\",attrs:{\"formObj\":_vm.addForm},on:{\"ruleSuccess\":_vm.addRuleSuccess}},[_c('template',{slot:\"imgUrls\"},[[_c('el-upload',{attrs:{\"action\":`${_vm.$baseUrl}upload/uploadShoppingCategory`,\"on-success\":_vm.ImgeSuccess,\"file-list\":_vm.imglist,\"on-exceed\":_vm.handleExceed,\"limit\":1,\"accept\":\".jpg,.png,.JPG,.PNG\",\"before-upload\":_vm.beforeAvatarUpload}},[_c('el-button',{attrs:{\"icon\":\"el-icon-edit\",\"size\":\"small\"}},[_vm._v(\"上传图片\")]),_c('span',{staticStyle:{\"margin-left\":\"10px\",\"font-size\":\"12px\",\"color\":\"#444444\"}},[_vm._v(\"建议比例3:2\")]),_c('div',{staticClass:\"el-upload__tip\",attrs:{\"slot\":\"tip\"},slot:\"tip\"},[_c('span',[_vm._v(\"支持扩展名png,jpg\")])])],1)]],2)],2)]],2)],1),_c('div',{attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('button',{staticClass:\"btn-orange\",on:{\"click\":function($event){return _vm.addSubmit()}}},[_c('span',[_c('i',{staticClass:\"el-icon-circle-check\"}),_vm._v(\"提交\")])]),_c('button',{staticClass:\"btn-gray\",on:{\"click\":_vm.addClose}},[_c('span',[_vm._v(\"取消\")])])])]),_c('Drawer',{attrs:{\"drawerTitle\":\"修改分类名称\",\"drawerVrisible\":_vm.edit_vrisible},on:{\"drawerClose\":_vm.editClose}},[_c('div',{staticStyle:{\"padding\":\"30px\"}},[_c('FromCard',[_c('template',{slot:\"title\"},[_vm._v(\"填写分类名称\")]),[_c('VueForm',{ref:\"editForm\",attrs:{\"formObj\":_vm.editForm}},[_c('template',{slot:\"imgUrls\"},[[_c('el-upload',{attrs:{\"action\":`${_vm.$baseUrl}upload/uploadShoppingCategory`,\"on-success\":_vm.ImgeSuccess,\"file-list\":_vm.imglist,\"on-exceed\":_vm.handleExceed,\"limit\":1,\"accept\":\".jpg,.png,.JPG,.PNG\",\"before-upload\":_vm.beforeAvatarUpload}},[_c('el-button',{attrs:{\"icon\":\"el-icon-edit\",\"size\":\"small\"}},[_vm._v(\"上传图片\")]),_c('span',{staticStyle:{\"margin-left\":\"10px\",\"font-size\":\"12px\",\"color\":\"#444444\"}},[_vm._v(\"建议比例3:2\")]),_c('div',{staticClass:\"el-upload__tip\",attrs:{\"slot\":\"tip\"},slot:\"tip\"},[_c('span',[_vm._v(\"支持扩展名png,jpg\")])])],1)]],2)],2)]],2)],1),_c('div',{attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('button',{staticClass:\"btn-orange\",on:{\"click\":function($event){return _vm.editSubmit()}}},[_c('span',[_c('i',{staticClass:\"el-icon-circle-check\"}),_vm._v(\"提交\")])]),_c('button',{staticClass:\"btn-gray\",on:{\"click\":_vm.editClose}},[_c('span',[_vm._v(\"取消\")])])])])],1)])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"main-titel\"},[_c('span',[_vm._v(\"产品类型系列\")])])\n}]\n\nexport { render, staticRenderFns }","<template>\n <div>\n <div>\n <div class=\"main-content\">\n <div class=\"main-titel\">\n <span>产品类型系列</span>\n </div>\n <div class=\"content\">\n <!-- <el-button class=\"init-button\" size=\"small\" @click=\"edit()\"\n >修改类目</el-button\n > -->\n <div class=\"btn\">\n <el-button\n class=\"init-button\"\n size=\"small\"\n @click=\"add()\"\n >新增类目</el-button\n >\n </div>\n <div class=\"category\">\n <el-row>\n <el-col :span=\"4\">\n <ul style=\"border-right: 1px solid #e6e6fa\">\n <li\n v-for=\"(item, index) in this.options\"\n :key=\"index\"\n :class=\"{red: changeRed == index}\" @click=\"change(index)\"\n >\n <span\n class=\"cateName\"\n @click=\"getChild(item)\"\n >\n {{ item.name }}\n </span>\n <template>\n <el-button\n size=\"mini\"\n @click=\"handleEdit(item)\"\n >编辑</el-button\n >\n <el-button\n size=\"mini\"\n type=\"danger\"\n @click=\"handleDelete(item)\"\n >删除</el-button\n >\n </template>\n </li>\n </ul>\n </el-col>\n <el-col :span=\"10\">\n <ul style=\"margin-left: 30px\">\n <li\n v-for=\"(item, index) in this\n .childrenOptions\"\n :key=\"index\"\n >\n <span class=\"cateName\">\n {{ item.name }}\n </span>\n <template>\n <el-button\n size=\"mini\"\n @click=\"handleEdit(item)\"\n >编辑</el-button\n >\n <el-button\n size=\"mini\"\n type=\"danger\"\n @click=\"handleDelete(item)\"\n >删除</el-button\n >\n </template>\n </li>\n </ul>\n </el-col>\n </el-row>\n </div>\n\n <!-- 新增 -->\n <Drawer\n drawerTitle=\"新增分类\"\n @drawerClose=\"addClose\"\n :drawerVrisible=\"add_vrisible\"\n >\n <div style=\"padding: 30px\">\n <FromCard>\n <template slot=\"title\">填写分类信息</template>\n <template>\n <VueForm ref=\"addForm\" :formObj=\"addForm\" @ruleSuccess=\"addRuleSuccess\">\n <template slot=\"imgUrls\">\n <template>\n <el-upload\n :action=\"`${$baseUrl}upload/uploadShoppingCategory`\"\n :on-success=\"ImgeSuccess\"\n :file-list=\"imglist\"\n :on-exceed=\"handleExceed\"\n :limit=\"1\"\n accept=\".jpg,.png,.JPG,.PNG\"\n :before-upload=\"\n beforeAvatarUpload\n \"\n >\n <el-button\n icon=\"el-icon-edit\"\n size=\"small\"\n >上传图片</el-button\n >\n <span\n style=\"\n margin-left: 10px;\n font-size: 12px;\n color: #444444;\n \"\n >建议比例3:2</span\n >\n <div\n slot=\"tip\"\n class=\"el-upload__tip\"\n >\n <span\n >支持扩展名png,jpg</span\n >\n </div>\n </el-upload>\n </template>\n </template>\n </VueForm>\n </template>\n </FromCard>\n </div>\n <div slot=\"footer\">\n <button class=\"btn-orange\" @click=\"addSubmit()\">\n <span>\n <i class=\"el-icon-circle-check\"></i\n >提交</span\n >\n </button>\n <button class=\"btn-gray\" @click=\"addClose\">\n <span>取消</span>\n </button>\n </div>\n </Drawer>\n <Drawer\n drawerTitle=\"修改分类名称\"\n @drawerClose=\"editClose\"\n :drawerVrisible=\"edit_vrisible\"\n >\n <div style=\"padding: 30px\">\n <FromCard>\n <template slot=\"title\">填写分类名称</template>\n <template>\n <VueForm ref=\"editForm\" :formObj=\"editForm\">\n <template slot=\"imgUrls\">\n <template>\n <el-upload\n :action=\"`${$baseUrl}upload/uploadShoppingCategory`\"\n :on-success=\"ImgeSuccess\"\n :file-list=\"imglist\"\n :on-exceed=\"handleExceed\"\n :limit=\"1\"\n accept=\".jpg,.png,.JPG,.PNG\"\n :before-upload=\"\n beforeAvatarUpload\n \"\n >\n <el-button\n icon=\"el-icon-edit\"\n size=\"small\"\n >上传图片</el-button\n >\n <span\n style=\"\n margin-left: 10px;\n font-size: 12px;\n color: #444444;\n \"\n >建议比例3:2</span\n >\n <div\n slot=\"tip\"\n class=\"el-upload__tip\"\n >\n <span\n >支持扩展名png,jpg</span\n >\n </div>\n </el-upload>\n </template>\n </template>\n </VueForm>\n </template>\n </FromCard>\n </div>\n <div slot=\"footer\">\n <button class=\"btn-orange\" @click=\"editSubmit()\">\n <span>\n <i class=\"el-icon-circle-check\"></i\n >提交</span\n >\n </button>\n <button class=\"btn-gray\" @click=\"editClose\">\n <span>取消</span>\n </button>\n </div>\n </Drawer>\n </div>\n </div>\n </div>\n </div>\n</template>\n<script>\nimport {\n shopCategoryList,\n shopCategoryUpdate,\n shopCategoryDelete,\n shopCategoryInsert\n} from '@/api/shop.js'\nexport default {\n data() {\n return {\n changeRed: -1,\n edit_vrisible: false,\n add_vrisible: false,\n imglist: [],\n options: [],\n childrenOptions: [],\n editForm: {\n ruleForm: {\n name: null,\n id: null,\n parentId: null,\n imgUrls: [],\n idPath: null\n },\n form_item: [\n {\n type: 'Input',\n label: '分类名称',\n placeholder: '请输入',\n width: '100%',\n prop: 'name'\n },\n {\n type: 'Slot',\n label: '图片上传',\n placeholder: '请输入',\n width: '100%',\n prop: 'imgUrls',\n slotName: 'imgUrls'\n }\n ]\n },\n addForm: {\n ruleForm: {\n name: null,\n parentId: null,\n imgUrls: [],\n idPath: null\n },\n rules: {\n // 表单必填\n parentId: [\n { required: true, message: '请输入', trigger: 'change' }\n ],\n name: [\n { required: true, message: '请输入', trigger: 'change' }\n ]\n },\n form_item: [\n {\n type: 'Select',\n label: '所属类别',\n placeholder: '请输入',\n width: '100%',\n prop: 'parentId',\n options: [\n {\n label: '顶层类',\n value: '0'\n }\n ]\n },\n {\n type: 'Input',\n label: '分类名称',\n placeholder: '请输入',\n width: '100%',\n prop: 'name'\n },\n {\n type: 'Slot',\n label: '图片上传',\n placeholder: '请输入',\n width: '100%',\n prop: 'imgUrls',\n slotName: 'imgUrls'\n }\n ]\n }\n }\n },\n mounted() {\n this.getDate()\n },\n methods: {\n change:function (index) {\n this.changeRed=index;\n },\n add() {\n this.add_vrisible = true\n this.addForm.form_item[0].options = [\n {\n label: '顶层类',\n value: '0'\n }\n ]\n shopCategoryList({ parentId: 0 }).then((res) => {\n res.data.forEach((element) => {\n let obj = {\n value: element.id,\n label: element.name\n }\n this.addForm.form_item[0].options.push(obj)\n })\n })\n },\n addClose() {\n this.$refs.addForm.reset()\n this.add_vrisible = false\n this.imglist = []\n },\n addRuleSuccess() {\n let resData = {\n name: this.addForm.ruleForm.name,\n parentId: this.addForm.ruleForm.parentId,\n imgUrls: this.addForm.ruleForm.imgUrls,\n idPath: this.addForm.ruleForm.idPath\n }\n shopCategoryInsert(resData).then((res) => {\n if (res.status) {\n this.$message({\n message: res.message,\n type: 'success'\n })\n // this.$refs.table.loadData()\n this.addClose()\n this.getDate()\n }\n })\n },\n addSubmit() {\n this.$refs.addForm.submitForm()\n },\n handleEdit(data) {\n console.log(data)\n this.edit_vrisible = true\n this.editForm.ruleForm.name = data.name\n this.editForm.ruleForm.id = data.id\n // this.editForm.ruleForm.imgUrls=data.imgList[0].url\n if (data.imgList.length) {\n let obj = {\n name: data.imgList[0].url,\n url: data.imgList[0].url\n }\n this.editForm.ruleForm.imgUrls = [\n data.imgList[0].url\n ]\n this.$set(this.imglist, 0, obj)\n } else {\n this.editForm.ruleForm.imgUrls = []\n }\n console.log(this.editForm.ruleForm);\n },\n getDate() {\n shopCategoryList({ parentId: 0 }).then((res) => {\n console.log(res)\n this.options = res.data\n })\n },\n getChild(data) {\n // console.log(this.$refs['cascaderAddr'].getCheckedNodes()[0].data);\n // let that = this.$refs['cascaderAddr'].getCheckedNodes()[0].data\n // console.log(that);\n // shopCategoryList({parentId:that.id}).then((res)=>{\n // this.$set(that,'children',res.data)\n // console.log(that);\n // })\n console.log(data.id)\n shopCategoryList({ parentId: data.id }).then((res) => {\n console.log(res)\n this.childrenOptions = res.data\n })\n },\n editClose() {\n this.$refs.editForm.reset()\n this.edit_vrisible = false\n this.imglist = []\n },\n editSubmit() {\n let resData = {\n ...this.editForm.ruleForm,\n id: this.editForm.ruleForm.id,\n imgUrls: this.addForm.ruleForm.imgUrls,\n }\n shopCategoryUpdate(resData).then((res) => {\n if (res.status) {\n this.$message({\n message: res.message,\n type: 'success'\n })\n this.getDate()\n this.editClose()\n this.getChild(resData.id)\n }\n })\n },\n // 图片上传成功\n ImgeSuccess(res, file) {\n this.addForm.ruleForm.imgUrls[0] = file.response.url\n },\n // 图片文件上传之前\n beforeAvatarUpload(file) {\n const isLt2M = file.size / 1024 / 1024 < 2\n const isJPG = file.type === 'image/png'\n const isPNG = file.type === 'image/jpeg'\n if (!isJPG && !isPNG) {\n this.$message.error('上传头像图片只能是 JPG/PNG 格式!')\n }\n if (!isLt2M) {\n this.$message.error('上传头像图片大小不能超过 2MB!')\n }\n return (isJPG || isPNG) && isLt2M\n },\n // 上传限制提示\n handleExceed(files, fileList) {\n this.$message.warning(\n `当前限制选择 1 个文件,本次选择了 ${\n files.length\n } 个文件,共选择了 ${files.length + fileList.length} 个文件`\n )\n },\n handleDelete(data) {\n console.log(data.id)\n this.$confirm('是否确认删除?删除不可恢复', '删除', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n confirmButtonClass: 'confirmButton',\n cancelButtonClass: 'cancelButton'\n })\n .then(() => {\n shopCategoryDelete({ categoryId: data.id }).then((res) => {\n if(res.status==false){\n return\n }else{\n this.$message({\n message: res.message,\n type: 'success'\n })\n this.getDate()\n this.getChild(data.id)\n }\n\n })\n }).catch(action => { })\n }\n },\n watch: {\n 'addForm.ruleForm.parentId': {\n handler(newValue) {\n console.log(newValue)\n if (newValue == 0) {\n this.addForm.ruleForm.idPath = '0::'\n } else {\n this.addForm.ruleForm.idPath = '0::' + newValue + '::'\n }\n console.log(this.addForm.ruleForm.idPath)\n },\n immediate: true\n }\n }\n}\n</script>\n\n<style lang=\"scss\" scoped>\n.btn {\n margin-bottom: 20px;\n}\n.editBtn span {\n color: blue;\n cursor: pointer;\n padding: 10px;\n}\n.creation_box {\n margin: 0;\n height: 100%;\n height: 100% !important;\n}\n.cateName {\n font-size: 19px;\n cursor: pointer;\n padding-right: 20px;\n}\n.red{\n color: red;\n }\n</style>\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./categoryManagemen.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./categoryManagemen.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./categoryManagemen.vue?vue&type=template&id=7bfde2ee&scoped=true&\"\nimport script from \"./categoryManagemen.vue?vue&type=script&lang=js&\"\nexport * from \"./categoryManagemen.vue?vue&type=script&lang=js&\"\nimport style0 from \"./categoryManagemen.vue?vue&type=style&index=0&id=7bfde2ee&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7bfde2ee\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./categoryManagemen.vue?vue&type=style&index=0&id=7bfde2ee&prod&lang=scss&scoped=true&\"","import service from '../utils/request'\nimport requestUrl from './requestUrl'\n\n//supplierManagement供应商 shop/supplier/list\nexport function shopSupplierInsert(data){\n return service.request({\n method:'POST',\n url:'shop/supplier/insert',\n data: data\n })\n}\n//shop/goods/insert\nexport function shopGoodsInsert(data){\n return service.request({\n method:'POST',\n url:'shop/goods/insert',\n data: data\n })\n}\nexport function shopSupplierList(data){\n return service.request({\n method:'GET',\n url:'shop/supplier/list',\n params: data\n })\n}\n//到货order/arrivalGoods\nexport function orderArrivalGoods(data){\n return service.request({\n method:'POST',\n url:'shop/order/arrivalGoods',\n data: data\n })\n}\n//分类'shop/category/list'\nexport function shopCategoryList(data){\n return service.request({\n method:'GET',\n url:'shop/category/list',\n params: data\n })\n}\n//shop/category/update\nexport function shopCategoryUpdate(data){\n return service.request({\n method:'POST',\n url:'shop/category/update',\n data: data\n })\n}\n// shop/category/delete shop/category/insert\nexport function shopCategoryDelete(data){\n return service.request({\n method:'GET',\n url:'shop/category/delete',\n params: data\n })\n}\nexport function shopCategoryInsert(data){\n return service.request({\n method:'POST',\n url:'shop/category/insert',\n data: data\n })\n}\n\n//商品管理 上架shop/goods/loading 下架shop/goods/unloading\nexport function shopGoodsLoading(data){\n return service.request({\n method:'GET',\n url:'shop/goods/loading',\n params: data\n })\n}\nexport function shopGoodsUnloading(data){\n return service.request({\n method:'GET',\n url:'shop/goods/unloading',\n params: data\n })\n}\n//shop/order/deliverGoods 发货\nexport function shopOrderDeliverGoods(data){\n return service.request({\n method:'POST',\n url:'shop/order/deliverGoods',\n data: data\n })\n}\n//shop/refund/exchangeGoods\nexport function refundExchangeGoods(data){\n return service.request({\n method:'GET',\n url:'shop/refund/exchangeGoods',\n params:data\n })\n}\n//shop/refund/examine\nexport function shopRefundExamine(data){\n return service.request({\n method:'POST',\n url:'shop/refund/examine',\n data: data\n })\n}\n//商城评价回复 shop/evaluation/reply\nexport function shopEvaluationReply(data){\n return service.request({\n method:'POST',\n url:'shop/evaluation/reply',\n data: data\n })\n}"],"sourceRoot":""}