chunk-6769057f.061d7f20.js.map 17 KB

1
  1. {"version":3,"sources":["webpack:///./src/views/order/GoodsReturn.vue?3114","webpack:///./src/views/order/GoodsReturn.vue?cae9","webpack:///src/views/order/GoodsReturn.vue","webpack:///./src/views/order/GoodsReturn.vue?b5c7","webpack:///./src/views/order/GoodsReturn.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_l","orderInfo","cart","key","id","attrs","productInfo","image","_v","_s","store_name","attrInfo","price","cart_num","total_num","pay_price","directives","name","rawName","value","expression","on","$event","$$selectedVal","Array","prototype","filter","call","target","options","o","selected","map","val","_value","reason","multiple","text","index","domProps","composing","refund_reason_wap_explain","_m","img","refund_reason_wap_img","splice","length","headers","url","imageuploaded","_e","submit","staticRenderFns","components","VueCoreImageUpload","data","$store","state","app","token","$route","params","reasonList","methods","res","status","push","getOrderDetail","getRefundReason","$dialog","toast","uni","order_id","join","mounted","component"],"mappings":"kHAAA,yBAA0nB,EAAG,G,oECA7nB,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACN,EAAIO,GAAIP,EAAIQ,UAAkB,UAAE,SAASC,GAAM,OAAOL,EAAG,MAAM,CAACM,IAAID,EAAKE,GAAGL,YAAY,mCAAmC,CAACF,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,MAAM,CAACE,YAAY,QAAQM,MAAM,CAAC,IAAMH,EAAKI,YAAYC,WAAWV,EAAG,MAAM,CAACE,YAAY,6BAA6B,CAACF,EAAG,MAAM,CAACE,YAAY,cAAc,CAACN,EAAIe,GAAGf,EAAIgB,GAAGP,EAAKI,YAAYI,eAAeb,EAAG,MAAM,CAACE,YAAY,SAAS,CAACF,EAAG,MAAM,CAACJ,EAAIe,GAAG,gBAAgBf,EAAIgB,GAAGP,EAAKI,YAAYK,SAC5jBT,EAAKI,YAAYK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ACA,KACA,WACA,MAIa,aAAAuB,E","file":"h5/js/chunk-6769057f.061d7f20.js","sourcesContent":["import mod from \"-!../../../node_modules/_mini-css-extract-plugin@0.8.2@mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/_css-loader@1.0.1@css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/_vue-loader@15.9.0@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/_vue-loader@15.9.0@vue-loader/lib/index.js??vue-loader-options!./GoodsReturn.vue?vue&type=style&index=0&id=94d347e6&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../node_modules/_mini-css-extract-plugin@0.8.2@mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/_css-loader@1.0.1@css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/_vue-loader@15.9.0@vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/_postcss-loader@3.0.0@postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/_vue-loader@15.9.0@vue-loader/lib/index.js??vue-loader-options!./GoodsReturn.vue?vue&type=style&index=0&id=94d347e6&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"apply-return\"},[_vm._l((_vm.orderInfo.cartInfo),function(cart){return _c('div',{key:cart.id,staticClass:\"goodsStyle acea-row row-between\"},[_c('div',{staticClass:\"pictrue\"},[_c('img',{staticClass:\"image\",attrs:{\"src\":cart.productInfo.image}})]),_c('div',{staticClass:\"text acea-row row-between\"},[_c('div',{staticClass:\"name line2\"},[_vm._v(_vm._s(cart.productInfo.store_name))]),_c('div',{staticClass:\"money\"},[_c('div',[_vm._v(\"\\n ¥\"+_vm._s(cart.productInfo.attrInfo\n ? cart.productInfo.attrInfo.price\n : cart.productInfo.price)+\"\\n \")]),_c('div',{staticClass:\"num\"},[_vm._v(\"x\"+_vm._s(cart.cart_num))])])])])}),_c('div',{staticClass:\"list\"},[_c('div',{staticClass:\"item acea-row row-between-wrapper\"},[_c('div',[_vm._v(\"退货件数\")]),_c('div',{staticClass:\"num\"},[_vm._v(_vm._s(_vm.orderInfo.total_num))])]),_c('div',{staticClass:\"item acea-row row-between-wrapper\"},[_c('div',[_vm._v(\"退款金额\")]),_c('div',{staticClass:\"num\"},[_vm._v(\"¥\"+_vm._s(_vm.orderInfo.pay_price))])]),_c('div',{staticClass:\"item acea-row row-between-wrapper\"},[_c('div',[_vm._v(\"退款原因\")]),_c('div',{staticClass:\"num acea-row row-left\"},[_c('select',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.reason),expression:\"reason\"}],on:{\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.reason=$event.target.multiple ? $$selectedVal : $$selectedVal[0]}}},[_c('option',{attrs:{\"value\":\"\"}},[_vm._v(\"选择退款原因\")]),_vm._l((_vm.reasonList),function(text,index){return _c('option',{key:index,domProps:{\"value\":text}},[_vm._v(\"\\n \"+_vm._s(text)+\"\\n \")])})],2),_c('span',{staticClass:\"iconfont icon-jiantou\"})])]),_c('div',{staticClass:\"item textarea acea-row row-between\"},[_c('div',[_vm._v(\"备注说明\")]),_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.refund_reason_wap_explain),expression:\"refund_reason_wap_explain\"}],staticClass:\"num\",attrs:{\"placeholder\":\"填写备注信息,100字以内\"},domProps:{\"value\":(_vm.refund_reason_wap_explain)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.refund_reason_wap_explain=$event.target.value}}})]),_c('div',{staticClass:\"item acea-row row-between\"},[_vm._m(0),_c('div',{staticClass:\"upload acea-row row-middle\"},[_vm._l((_vm.refund_reason_wap_img),function(img,index){return _c('div',{key:img,staticClass:\"pictrue\"},[_c('img',{attrs:{\"src\":img}}),_c('div',{staticClass:\"iconfont icon-guanbi1 font-color-red\",on:{\"click\":function($event){return _vm.refund_reason_wap_img.splice(index, 1)}}})])}),(_vm.refund_reason_wap_img.length < 3)?_c('VueCoreImageUpload',{staticClass:\"btn btn-primary\",attrs:{\"crop\":false,\"compress\":\"80\",\"headers\":_vm.headers,\"max-file-size\":5242880,\"credentials\":false,\"inputAccept\":\"image/*\",\"inputOfFile\":\"file\",\"url\":_vm.url},on:{\"imageuploaded\":_vm.imageuploaded}},[_c('div',{staticClass:\"pictrue acea-row row-center-wrapper row-column\"},[_c('span',{staticClass:\"iconfont icon-icon25201\"}),_c('div',[_vm._v(\"上传凭证\")])])]):_vm._e()],2)])]),_c('div',{staticClass:\"returnBnt bg-color-red\",on:{\"click\":_vm.submit}},[_vm._v(\"申请退款\")])],2)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"title acea-row row-between-wrapper\"},[_c('div',[_vm._v(\"上传凭证\")]),_c('div',{staticClass:\"tip\"},[_vm._v(\"( 最多可上传3张 )\")])])}]\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"apply-return\">\r\n <div\r\n class=\"goodsStyle acea-row row-between\"\r\n v-for=\"cart in orderInfo.cartInfo\"\r\n :key=\"cart.id\"\r\n >\r\n <div class=\"pictrue\">\r\n <img :src=\"cart.productInfo.image\" class=\"image\" />\r\n </div>\r\n <div class=\"text acea-row row-between\">\r\n <div class=\"name line2\">{{ cart.productInfo.store_name }}</div>\r\n <div class=\"money\">\r\n <div>\r\n ¥{{\r\n cart.productInfo.attrInfo\r\n ? cart.productInfo.attrInfo.price\r\n : cart.productInfo.price\r\n }}\r\n </div>\r\n <div class=\"num\">x{{ cart.cart_num }}</div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"list\">\r\n <div class=\"item acea-row row-between-wrapper\">\r\n <div>退货件数</div>\r\n <div class=\"num\">{{ orderInfo.total_num }}</div>\r\n </div>\r\n <div class=\"item acea-row row-between-wrapper\">\r\n <div>退款金额</div>\r\n <div class=\"num\">¥{{ orderInfo.pay_price }}</div>\r\n </div>\r\n <div class=\"item acea-row row-between-wrapper\">\r\n <div>退款原因</div>\r\n <div class=\"num acea-row row-left\">\r\n <select v-model=\"reason\">\r\n <option value=\"\">选择退款原因</option>\r\n <option\r\n v-for=\"(text, index) in reasonList\"\r\n :value=\"text\"\r\n :key=\"index\"\r\n >\r\n {{ text }}\r\n </option>\r\n </select>\r\n <span class=\"iconfont icon-jiantou\"></span>\r\n </div>\r\n </div>\r\n <div class=\"item textarea acea-row row-between\">\r\n <div>备注说明</div>\r\n <textarea\r\n placeholder=\"填写备注信息,100字以内\"\r\n class=\"num\"\r\n v-model=\"refund_reason_wap_explain\"\r\n ></textarea>\r\n </div>\r\n <div class=\"item acea-row row-between\">\r\n <div class=\"title acea-row row-between-wrapper\">\r\n <div>上传凭证</div>\r\n <div class=\"tip\">( 最多可上传3张 )</div>\r\n </div>\r\n <div class=\"upload acea-row row-middle\">\r\n <div\r\n class=\"pictrue\"\r\n v-for=\"(img, index) in refund_reason_wap_img\"\r\n :key=\"img\"\r\n >\r\n <img :src=\"img\" />\r\n <div\r\n class=\"iconfont icon-guanbi1 font-color-red\"\r\n @click=\"refund_reason_wap_img.splice(index, 1)\"\r\n ></div>\r\n </div>\r\n <VueCoreImageUpload\r\n class=\"btn btn-primary\"\r\n :crop=\"false\"\r\n compress=\"80\"\r\n @imageuploaded=\"imageuploaded\"\r\n :headers=\"headers\"\r\n :max-file-size=\"5242880\"\r\n :credentials=\"false\"\r\n inputAccept=\"image/*\"\r\n inputOfFile=\"file\"\r\n :url=\"url\"\r\n v-if=\"refund_reason_wap_img.length < 3\"\r\n >\r\n <div class=\"pictrue acea-row row-center-wrapper row-column\">\r\n <span class=\"iconfont icon-icon25201\"></span>\r\n <div>上传凭证</div>\r\n </div>\r\n </VueCoreImageUpload>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"returnBnt bg-color-red\" @click=\"submit\">申请退款</div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport { orderDetail, getRefundReason, postOrderRefund } from \"@api/order\";\r\nimport { trim, VUE_APP_API_URL } from \"@utils\";\r\nimport VueCoreImageUpload from \"vue-core-image-upload\";\r\n\r\nexport default {\r\n name: \"goodsReturn\",\r\n components: {\r\n VueCoreImageUpload\r\n },\r\n data() {\r\n return {\r\n url: `${VUE_APP_API_URL}/upload/image`,\r\n headers: {\r\n \"Authori-zation\": \"Bearer \" + this.$store.state.app.token\r\n },\r\n id: this.$route.params.id || 0,\r\n orderInfo: {},\r\n reasonList: [],\r\n reason: \"\",\r\n refund_reason_wap_explain: \"\",\r\n refund_reason_wap_img: []\r\n };\r\n },\r\n methods: {\r\n imageuploaded(res) {\r\n if (res.status !== 200)\r\n return this.$dialog.error(res.msg || \"上传图片失败\");\r\n this.refund_reason_wap_img.push(res.data.url);\r\n },\r\n getOrderDetail() {\r\n orderDetail(this.id)\r\n .then(res => {\r\n this.orderInfo = res.data;\r\n })\r\n .catch(err => {\r\n this.$dialog.error(err.msg || \"获取订单失败\");\r\n });\r\n },\r\n getRefundReason() {\r\n getRefundReason().then(res => {\r\n this.reasonList = res.data;\r\n });\r\n },\r\n submit() {\r\n const refund_reason_wap_explain = trim(this.refund_reason_wap_explain),\r\n text = this.reason;\r\n if (!text) return this.$dialog.toast({ mes: \"请选择退款原因\" });\r\n postOrderRefund({\r\n text,\r\n uni: this.orderInfo.order_id,\r\n refund_reason_wap_img: this.refund_reason_wap_img.join(\",\"),\r\n refund_reason_wap_explain\r\n })\r\n .then(res => {\r\n this.$dialog.success(res.msg);\r\n this.$router.go(-1);\r\n })\r\n .catch(res => {\r\n this.$dialog.error(res.msg);\r\n });\r\n }\r\n },\r\n mounted() {\r\n this.getOrderDetail();\r\n this.getRefundReason();\r\n }\r\n};\r\n</script>\r\n<style scoped>\r\n.line2 {\r\n word-break: break-all;\r\n display: -webkit-box;\r\n -webkit-line-clamp: 3;\r\n -webkit-box-orient: vertical;\r\n overflow: hidden;\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../../node_modules/_babel-loader@8.0.6@babel-loader/lib/index.js!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/_vue-loader@15.9.0@vue-loader/lib/index.js??vue-loader-options!./GoodsReturn.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/_thread-loader@2.1.3@thread-loader/dist/cjs.js!../../../node_modules/_babel-loader@8.0.6@babel-loader/lib/index.js!../../../node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/_vue-loader@15.9.0@vue-loader/lib/index.js??vue-loader-options!./GoodsReturn.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./GoodsReturn.vue?vue&type=template&id=94d347e6&scoped=true&\"\nimport script from \"./GoodsReturn.vue?vue&type=script&lang=js&\"\nexport * from \"./GoodsReturn.vue?vue&type=script&lang=js&\"\nimport style0 from \"./GoodsReturn.vue?vue&type=style&index=0&id=94d347e6&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/_vue-loader@15.9.0@vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"94d347e6\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}