chunk-71c995bd.756e7f88.js.map 20 KB

1
  1. {"version":3,"sources":["webpack:///./src/views/order/GoodsReturn.vue?773e","webpack:///src/views/order/GoodsReturn.vue","webpack:///./src/views/order/GoodsReturn.vue?edf9","webpack:///./src/views/order/GoodsReturn.vue","webpack:///./src/api/order.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_l","orderInfo","cart","key","id","attrs","src","productInfo","image","_v","_s","store_name","attrInfo","price","cart_num","total_num","pay_price","directives","name","rawName","value","expression","on","change","$event","$$selectedVal","Array","prototype","filter","call","target","options","o","selected","map","val","_value","reason","multiple","text","index","domProps","placeholder","input","composing","refund_reason_wap_explain","_m","img","click","refund_reason_wap_img","splice","length","crop","compress","headers","max-file-size","credentials","inputAccept","inputOfFile","url","imageuploaded","_e","submit","staticRenderFns","GoodsReturnvue_type_script_lang_js_","components","VueCoreImageUpload","vue_core_image_upload","data","concat","utils","Authori-zation","$store","state","app","token","$route","params","reasonList","methods","res","status","$dialog","error","msg","push","getOrderDetail","_this","Object","order","then","catch","err","getRefundReason","_this2","_this3","toast","mes","uni","order_id","join","success","$router","go","mounted","order_GoodsReturnvue_type_script_lang_js_","component","componentNormalizer","__webpack_exports__","__webpack_require__","d","postOrderConfirm","postOrderComputed","getOrderCoupon","createOrder","getOrderData","getOrderList","cancelOrder","orderDetail","postOrderRefund","takeOrder","delOrder","express","payOrder","orderVerific","_utils_request__WEBPACK_IMPORTED_MODULE_0__","cartId","request","post","get","parseFloat","paytype","from","verify_code","is_confirm"],"mappings":"yHAAA,IAAAA,EAAA,WAA0B,IAAAC,EAAAC,KAAaC,EAAAF,EAAAG,eAA0BC,EAAAJ,EAAAK,MAAAD,IAAAF,EAAwB,OAAAE,EAAA,OAAiBE,YAAA,gBAA2B,CAAAN,EAAAO,GAAAP,EAAAQ,UAAA,kBAAAC,GAAiD,OAAAL,EAAA,OAAiBM,IAAAD,EAAAE,GAAAL,YAAA,mCAA0D,CAAAF,EAAA,OAAYE,YAAA,WAAsB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BAAAgB,IAAA,IAAAC,EAAAhB,EAAA,QAUO,SAASE,EAAiBe,GAC/B,OAAOC,OAAQC,KAAK,iBAAkB,CAAEF,WASnC,SAASd,EAAkB7G,EAAKiE,GACrC,OAAO2D,OAAQC,KAAK,mBAAqB7H,EAAKiE,GAQzC,SAAS6C,EAAepG,GAC7B,OAAOkH,OAAQE,IAAI,mBAAqBC,WAAWrH,IAAU,IASxD,SAASqG,EAAY/G,EAAKiE,GAC/B,OAAO2D,OAAQC,KAAK,iBAAmB7H,EAAKiE,GAAQ,IAO/C,SAAS+C,IACd,OAAOY,OAAQE,IAAI,eAOd,SAASb,EAAahD,GAC3B,OAAO2D,OAAQE,IAAI,cAAe7D,GAO7B,SAASiD,EAAYjH,GAC1B,OAAO2H,OAAQC,KAAK,gBAAiB,CAAE5H,OAOlC,SAASkH,EAAYlH,GAC1B,OAAO2H,OAAQE,IAAI,iBAAmB7H,GAOjC,SAASyF,IACd,OAAOkC,OAAQE,IAAI,wBAOd,SAASV,EAAgBnD,GAC9B,OAAO2D,OAAQC,KAAK,uBAAwB5D,GAOvC,SAASoD,EAAUtB,GACxB,OAAO6B,OAAQC,KAAK,cAAe,CAAE9B,QAOhC,SAASuB,EAASvB,GACvB,OAAO6B,OAAQC,KAAK,aAAc,CAAE9B,QAO/B,SAASwB,EAAQxB,GACtB,OAAO6B,OAAQE,IAAI,iBAAmB/B,GAOjC,SAASyB,EAASzB,EAAKiC,EAASC,GACrC,OAAOL,OAAQC,KAAK,YAAa,CAAE9B,MAAKiC,UAASC,SAM5C,SAASR,EAAaS,EAAaC,GACxC,OAAOP,OAAQC,KAAK,sBAAuB,CAAEK,cAAaC","file":"h5/js/chunk-71c995bd.756e7f88.js","sourcesContent":["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","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./GoodsReturn.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/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=f3a24b18&\"\nimport script from \"./GoodsReturn.vue?vue&type=script&lang=js&\"\nexport * from \"./GoodsReturn.vue?vue&type=script&lang=js&\"\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 null,\n null\n \n)\n\nexport default component.exports","/*\r\n * 订单确认\r\n * */\r\nimport request from \"@utils/request\";\r\n\r\n/**\r\n * 通过购物车 id 获取订单信息\r\n * @param cartId\r\n * @returns {*}\r\n */\r\nexport function postOrderConfirm(cartId) {\r\n return request.post(\"/order/confirm\", { cartId });\r\n}\r\n\r\n/**\r\n * 计算订单金额\r\n * @param key\r\n * @param data\r\n * @returns {*}\r\n */\r\nexport function postOrderComputed(key, data) {\r\n return request.post(\"/order/computed/\" + key, data);\r\n}\r\n\r\n/**\r\n * 获取指定金额可用优惠券\r\n * @param price\r\n * @returns {*}\r\n */\r\nexport function getOrderCoupon(price) {\r\n return request.get(\"/coupons/order/\" + (parseFloat(price) || 0));\r\n}\r\n\r\n/**\r\n * 生成订单\r\n * @param key\r\n * @param data\r\n * @returns {*}\r\n */\r\nexport function createOrder(key, data) {\r\n return request.post(\"/order/create/\" + key, data || {});\r\n}\r\n\r\n/**\r\n * 订单统计数据\r\n * @returns {*}\r\n */\r\nexport function getOrderData() {\r\n return request.get(\"/order/data\");\r\n}\r\n\r\n/**\r\n * 订单列表\r\n * @returns {*}\r\n */\r\nexport function getOrderList(data) {\r\n return request.get(\"/order/list\", data);\r\n}\r\n\r\n/**\r\n * 取消订单\r\n * @returns {*}\r\n */\r\nexport function cancelOrder(id) {\r\n return request.post(\"/order/cancel\", { id });\r\n}\r\n\r\n/**\r\n * 订单详情\r\n * @returns {*}\r\n */\r\nexport function orderDetail(id) {\r\n return request.get(\"/order/detail/\" + id);\r\n}\r\n\r\n/**\r\n * 退款理由\r\n * @returns {*}\r\n */\r\nexport function getRefundReason() {\r\n return request.get(\"/order/refund/reason\");\r\n}\r\n\r\n/**\r\n * 提交退款\r\n * @returns {*}\r\n */\r\nexport function postOrderRefund(data) {\r\n return request.post(\"/order/refund/verify\", data);\r\n}\r\n\r\n/**\r\n * 确认收货\r\n * @returns {*}\r\n */\r\nexport function takeOrder(uni) {\r\n return request.post(\"/order/take\", { uni });\r\n}\r\n\r\n/**\r\n * 删除订单\r\n * @returns {*}\r\n */\r\nexport function delOrder(uni) {\r\n return request.post(\"/order/del\", { uni });\r\n}\r\n\r\n/**\r\n * 订单查询物流信息\r\n * @returns {*}\r\n */\r\nexport function express(uni) {\r\n return request.get(\"order/express/\" + uni);\r\n}\r\n\r\n/**\r\n * 订单查询物流信息\r\n * @returns {*}\r\n */\r\nexport function payOrder(uni, paytype, from) {\r\n return request.post(\"order/pay\", { uni, paytype, from });\r\n}\r\n/**\r\n * 订单核销\r\n * @returns {*}\r\n */\r\nexport function orderVerific(verify_code, is_confirm) {\r\n return request.post(\"order/order_verific\", { verify_code, is_confirm });\r\n}\r\n"],"sourceRoot":""}