chunk-2d0e2116.90a729e5.js.map 22 KB

1
  1. {"version":3,"sources":["webpack:///./src/views/orderAdmin/AdminOrderList.vue?179b","webpack:///src/views/orderAdmin/AdminOrderList.vue","webpack:///./src/views/orderAdmin/AdminOrderList.vue?a273","webpack:///./src/views/orderAdmin/AdminOrderList.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","ref","staticClass","class","where","status","on","$event","changeStatus","_v","_l","item","index","key","toDetail","_s","order_id","add_time","val","attrs","cart_info","productInfo","image","store_name","suk","_e","price","cart_num","ot_price","total_num","pay_price","total_postage","modify","refund_status","pay_type","paid","offlinePay","loaded","loading","change","orderInfo","changeclose","savePrice","staticRenderFns","name","components","PriceChange","Loading","props","data","current","types","page","limit","list","watch","undefined","newVal","that","init","getIndex","mounted","$route","params","$scroll","$refs","container","methods","more","msg","$router","push","console","log","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,IAAI,YAAYC,YAAY,kBAAkB,CAACH,EAAG,MAAM,CAACG,YAAY,sCAAsC,CAACH,EAAG,MAAM,CAACG,YAAY,OAAOC,MAA0B,GAApBR,EAAIS,MAAMC,OAAc,KAAO,GAAGC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOZ,EAAIa,aAAa,MAAM,CAACb,EAAIc,GAAG,uBAAuBV,EAAG,MAAM,CAACG,YAAY,OAAOC,MAA0B,GAApBR,EAAIS,MAAMC,OAAc,KAAO,GAAGC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOZ,EAAIa,aAAa,MAAM,CAACb,EAAIc,GAAG,uBAAuBV,EAAG,MAAM,CAACG,YAAY,OAAOC,MAA0B,GAApBR,EAAIS,MAAMC,OAAc,KAAO,GAAGC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOZ,EAAIa,aAAa,MAAM,CAACb,EAAIc,GAAG,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ACQ,EAAR,+BACQ,EAAR,6BAEA,YACQ,EAAR,0BAII9B,aAAc,SAAlB,GACUZ,KAAKQ,MAAMC,QAAUa,IACvBtB,KAAKQ,MAAMC,OAASa,EACpBtB,KAAK+D,SAGT7C,SAAU,SAAd,GACMlB,KAAK0E,QAAQC,KAAK,CAAxB,4CAEInC,WAAY,SAAhB,cACMoC,QAAQC,IAAI9D,GACZ,OAAN,OAAM,CAAN,6BACA,YACQ,EAAR,uBACQ,EAAR,UAEA,YACQ,EAAR,2BCvU2c,I,YCOvc+D,EAAY,eACd,EACAhF,EACAiD,GACA,EACA,KACA,KACA,MAIa,aAAA+B,E","file":"h5/js/chunk-2d0e2116.90a729e5.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:\"container\",staticClass:\"pos-order-list\"},[_c('div',{staticClass:\"nav acea-row row-around row-middle\"},[_c('div',{staticClass:\"item\",class:_vm.where.status == 0 ? 'on' : '',on:{\"click\":function($event){return _vm.changeStatus(0)}}},[_vm._v(\"\\n 待付款\\n \")]),_c('div',{staticClass:\"item\",class:_vm.where.status == 1 ? 'on' : '',on:{\"click\":function($event){return _vm.changeStatus(1)}}},[_vm._v(\"\\n 待发货\\n \")]),_c('div',{staticClass:\"item\",class:_vm.where.status == 2 ? 'on' : '',on:{\"click\":function($event){return _vm.changeStatus(2)}}},[_vm._v(\"\\n 待收货\\n \")]),_c('div',{staticClass:\"item\",class:_vm.where.status == 3 ? 'on' : '',on:{\"click\":function($event){return _vm.changeStatus(3)}}},[_vm._v(\"\\n 待评价\\n \")]),_c('div',{staticClass:\"item\",class:_vm.where.status == 4 ? 'on' : '',on:{\"click\":function($event){return _vm.changeStatus(4)}}},[_vm._v(\"\\n 已完成\\n \")]),_c('div',{staticClass:\"item\",class:_vm.where.status == -3 ? 'on' : '',on:{\"click\":function($event){return _vm.changeStatus(-3)}}},[_vm._v(\"\\n 退款\\n \")])]),_c('div',{staticClass:\"list\"},_vm._l((_vm.list),function(item,index){return _c('div',{key:index,staticClass:\"item\"},[_c('div',{staticClass:\"order-num acea-row row-middle\",on:{\"click\":function($event){return _vm.toDetail(item)}}},[_vm._v(\"\\n 订单号:\"+_vm._s(item.order_id)+\"\\n \"),_c('span',{staticClass:\"time\"},[_vm._v(\"下单时间:\"+_vm._s(item.add_time))])]),_vm._l((item._info),function(val,key){return _c('div',{key:key,staticClass:\"pos-order-goods\"},[_c('div',{staticClass:\"goods acea-row row-between-wrapper\",on:{\"click\":function($event){return _vm.toDetail(item)}}},[_c('div',{staticClass:\"picTxt acea-row row-between-wrapper\"},[_c('div',{staticClass:\"pictrue\"},[_c('img',{attrs:{\"src\":val.cart_info.productInfo.image}})]),_c('div',{staticClass:\"text acea-row row-between row-column\"},[_c('div',{staticClass:\"info line2\"},[_vm._v(\"\\n \"+_vm._s(val.cart_info.productInfo.store_name)+\"\\n \")]),(val.cart_info.productInfo.suk)?_c('div',{staticClass:\"attr\"},[_vm._v(\"\\n \"+_vm._s(val.cart_info.productInfo.suk)+\"\\n \")]):_vm._e()])]),_c('div',{staticClass:\"money\"},[_c('div',{staticClass:\"x-money\"},[_vm._v(\"¥\"+_vm._s(val.cart_info.productInfo.price))]),_c('div',{staticClass:\"num\"},[_vm._v(\"x\"+_vm._s(val.cart_info.cart_num))]),_c('div',{staticClass:\"y-money\"},[_vm._v(\"\\n ¥\"+_vm._s(val.cart_info.productInfo.ot_price)+\"\\n \")])])])])}),_c('div',{staticClass:\"public-total\"},[_vm._v(\"\\n 共\"+_vm._s(item.total_num)+\"件商品,应支付\\n \"),_c('span',{staticClass:\"money\"},[_vm._v(\"¥\"+_vm._s(item.pay_price))]),_vm._v(\" ( 邮费 ¥\"+_vm._s(item.total_postage)+\"\\n )\\n \")]),_c('div',{staticClass:\"operation acea-row row-between-wrapper\"},[_c('div',{staticClass:\"more\"}),_c('div',{staticClass:\"acea-row row-middle\"},[(_vm.where.status == 0)?_c('div',{staticClass:\"bnt\",on:{\"click\":function($event){return _vm.modify(item, 0)}}},[_vm._v(\"\\n 一键改价\\n \")]):_vm._e(),_c('div',{staticClass:\"bnt\",on:{\"click\":function($event){return _vm.modify(item, 1)}}},[_vm._v(\"订单备注\")]),(_vm.where.status == -3 && item.refund_status === 1)?_c('div',{staticClass:\"bnt\",on:{\"click\":function($event){return _vm.modify(item, 0)}}},[_vm._v(\"\\n 立即退款\\n \")]):_vm._e(),(item.pay_type === 'offline' && item.paid === 0)?_c('div',{staticClass:\"bnt cancel\",on:{\"click\":function($event){return _vm.offlinePay(item)}}},[_vm._v(\"\\n 确认付款\\n \")]):_vm._e(),(_vm.where.status == 1)?_c('router-link',{staticClass:\"bnt\",attrs:{\"to\":'/customer/delivery/' + item.order_id}},[_vm._v(\"去发货\\n \")]):_vm._e()],1)])],2)}),0),_c('Loading',{attrs:{\"loaded\":_vm.loaded,\"loading\":_vm.loading}}),_c('PriceChange',{attrs:{\"change\":_vm.change,\"orderInfo\":_vm.orderInfo,\"status\":_vm.status},on:{\"closechange\":function($event){return _vm.changeclose($event)},\"savePrice\":_vm.savePrice}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"pos-order-list\" ref=\"container\">\r\n <div class=\"nav acea-row row-around row-middle\">\r\n <div\r\n class=\"item\"\r\n :class=\"where.status == 0 ? 'on' : ''\"\r\n @click=\"changeStatus(0)\"\r\n >\r\n 待付款\r\n </div>\r\n <div\r\n class=\"item\"\r\n :class=\"where.status == 1 ? 'on' : ''\"\r\n @click=\"changeStatus(1)\"\r\n >\r\n 待发货\r\n </div>\r\n <div\r\n class=\"item\"\r\n :class=\"where.status == 2 ? 'on' : ''\"\r\n @click=\"changeStatus(2)\"\r\n >\r\n 待收货\r\n </div>\r\n <div\r\n class=\"item\"\r\n :class=\"where.status == 3 ? 'on' : ''\"\r\n @click=\"changeStatus(3)\"\r\n >\r\n 待评价\r\n </div>\r\n <div\r\n class=\"item\"\r\n :class=\"where.status == 4 ? 'on' : ''\"\r\n @click=\"changeStatus(4)\"\r\n >\r\n 已完成\r\n </div>\r\n <div\r\n class=\"item\"\r\n :class=\"where.status == -3 ? 'on' : ''\"\r\n @click=\"changeStatus(-3)\"\r\n >\r\n 退款\r\n </div>\r\n </div>\r\n <div class=\"list\">\r\n <div class=\"item\" v-for=\"(item, index) in list\" :key=\"index\">\r\n <div class=\"order-num acea-row row-middle\" @click=\"toDetail(item)\">\r\n 订单号:{{ item.order_id }}\r\n <span class=\"time\">下单时间:{{ item.add_time }}</span>\r\n </div>\r\n <div\r\n class=\"pos-order-goods\"\r\n v-for=\"(val, key) in item._info\"\r\n :key=\"key\"\r\n >\r\n <div\r\n class=\"goods acea-row row-between-wrapper\"\r\n @click=\"toDetail(item)\"\r\n >\r\n <div class=\"picTxt acea-row row-between-wrapper\">\r\n <div class=\"pictrue\">\r\n <img :src=\"val.cart_info.productInfo.image\" />\r\n </div>\r\n <div class=\"text acea-row row-between row-column\">\r\n <div class=\"info line2\">\r\n {{ val.cart_info.productInfo.store_name }}\r\n </div>\r\n <div class=\"attr\" v-if=\"val.cart_info.productInfo.suk\">\r\n {{ val.cart_info.productInfo.suk }}\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"money\">\r\n <div class=\"x-money\">¥{{ val.cart_info.productInfo.price }}</div>\r\n <div class=\"num\">x{{ val.cart_info.cart_num }}</div>\r\n <div class=\"y-money\">\r\n ¥{{ val.cart_info.productInfo.ot_price }}\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"public-total\">\r\n 共{{ item.total_num }}件商品,应支付\r\n <span class=\"money\">¥{{ item.pay_price }}</span> ( 邮费 ¥{{\r\n item.total_postage\r\n }}\r\n )\r\n </div>\r\n <div class=\"operation acea-row row-between-wrapper\">\r\n <div class=\"more\">\r\n <!-- <div class=\"iconfont icon-gengduo\" @click=\"more(index)\"></div>-->\r\n <!-- <div class=\"order\" v-show=\"current === index\">-->\r\n <!-- <div class=\"items\">-->\r\n <!-- {{ where.status > 0 ? \"删除\" : \"取消\" }}订单-->\r\n <!-- </div>-->\r\n <!-- <div class=\"arrow\"></div>-->\r\n <!-- </div>-->\r\n </div>\r\n <div class=\"acea-row row-middle\">\r\n <div class=\"bnt\" @click=\"modify(item, 0)\" v-if=\"where.status == 0\">\r\n 一键改价\r\n </div>\r\n <div class=\"bnt\" @click=\"modify(item, 1)\">订单备注</div>\r\n <div\r\n class=\"bnt\"\r\n @click=\"modify(item, 0)\"\r\n v-if=\"where.status == -3 && item.refund_status === 1\"\r\n >\r\n 立即退款\r\n </div>\r\n <div\r\n class=\"bnt cancel\"\r\n v-if=\"item.pay_type === 'offline' && item.paid === 0\"\r\n @click=\"offlinePay(item)\"\r\n >\r\n 确认付款\r\n </div>\r\n <router-link\r\n class=\"bnt\"\r\n v-if=\"where.status == 1\"\r\n :to=\"'/customer/delivery/' + item.order_id\"\r\n >去发货\r\n </router-link>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <Loading :loaded=\"loaded\" :loading=\"loading\"></Loading>\r\n <PriceChange\r\n :change=\"change\"\r\n :orderInfo=\"orderInfo\"\r\n v-on:closechange=\"changeclose($event)\"\r\n v-on:savePrice=\"savePrice\"\r\n :status=\"status\"\r\n ></PriceChange>\r\n </div>\r\n</template>\r\n<script>\r\nimport PriceChange from \"@components/PriceChange\";\r\nimport Loading from \"@components/Loading\";\r\nimport {\r\n getAdminOrderList,\r\n setAdminOrderPrice,\r\n setAdminOrderRemark,\r\n setOfflinePay,\r\n setOrderRefund\r\n} from \"../../api/admin\";\r\nimport { required, num } from \"@utils/validate\";\r\nimport { validatorDefaultCatch } from \"@utils/dialog\";\r\nexport default {\r\n name: \"AdminOrderList\",\r\n components: {\r\n PriceChange,\r\n Loading\r\n },\r\n props: {},\r\n data: function() {\r\n return {\r\n current: \"\",\r\n change: false,\r\n types: 0,\r\n where: {\r\n page: 1,\r\n limit: 5,\r\n status: 0\r\n },\r\n list: [],\r\n loaded: false,\r\n loading: false,\r\n orderInfo: {},\r\n status: \"\"\r\n };\r\n },\r\n watch: {\r\n \"$route.params.types\": function(newVal) {\r\n let that = this;\r\n if (newVal != undefined) {\r\n that.where.status = newVal;\r\n that.init();\r\n }\r\n },\r\n types: function() {\r\n this.getIndex();\r\n }\r\n },\r\n mounted: function() {\r\n let that = this;\r\n that.where.status = that.$route.params.types;\r\n that.current = \"\";\r\n that.getIndex();\r\n that.$scroll(that.$refs.container, () => {\r\n !that.loading && that.getIndex();\r\n });\r\n },\r\n methods: {\r\n more: function(index) {\r\n if (this.current === index) this.current = \"\";\r\n else this.current = index;\r\n },\r\n modify: function(item, status) {\r\n this.change = true;\r\n this.orderInfo = item;\r\n this.status = status;\r\n },\r\n changeclose: function(msg) {\r\n this.change = msg;\r\n },\r\n async savePrice(opt) {\r\n let that = this,\r\n data = {},\r\n price = opt.price,\r\n refund_price = opt.refund_price,\r\n refund_status = that.orderInfo.refund_status,\r\n remark = opt.remark;\r\n data.order_id = that.orderInfo.order_id;\r\n if (that.status == 0 && refund_status === 0) {\r\n try {\r\n await this.$validator({\r\n price: [\r\n required(required.message(\"金额\")),\r\n num(num.message(\"金额\"))\r\n ]\r\n }).validate({ price });\r\n } catch (e) {\r\n return validatorDefaultCatch(e);\r\n }\r\n data.price = price;\r\n setAdminOrderPrice(data).then(\r\n function() {\r\n that.change = false;\r\n that.$dialog.success(\"改价成功\");\r\n that.init();\r\n },\r\n function() {\r\n that.change = false;\r\n that.$dialog.error(\"改价失败\");\r\n }\r\n );\r\n } else if (that.status == 0 && refund_status === 1) {\r\n try {\r\n await this.$validator({\r\n refund_price: [\r\n required(required.message(\"金额\")),\r\n num(num.message(\"金额\"))\r\n ]\r\n }).validate({ refund_price });\r\n } catch (e) {\r\n return validatorDefaultCatch(e);\r\n }\r\n data.price = refund_price;\r\n data.type = opt.type;\r\n setOrderRefund(data).then(\r\n res => {\r\n that.change = false;\r\n that.$dialog.success(res.msg);\r\n that.init();\r\n },\r\n err => {\r\n that.change = false;\r\n that.$dialog.error(err.msg);\r\n }\r\n );\r\n } else {\r\n try {\r\n await this.$validator({\r\n remark: [required(required.message(\"备注\"))]\r\n }).validate({ remark });\r\n } catch (e) {\r\n return validatorDefaultCatch(e);\r\n }\r\n data.remark = remark;\r\n setAdminOrderRemark(data).then(\r\n res => {\r\n that.change = false;\r\n that.$dialog.success(res.msg);\r\n that.init();\r\n },\r\n err => {\r\n that.change = false;\r\n that.$dialog.error(err.msg);\r\n }\r\n );\r\n }\r\n },\r\n init: function() {\r\n this.list = [];\r\n this.where.page = 1;\r\n this.loaded = false;\r\n this.loading = false;\r\n this.getIndex();\r\n this.current = \"\";\r\n },\r\n getIndex: function() {\r\n let that = this;\r\n if (that.loading || that.loaded) return;\r\n that.loading = true;\r\n getAdminOrderList(that.where).then(\r\n res => {\r\n that.loading = false;\r\n that.loaded = res.data.length < that.where.limit;\r\n that.list.push.apply(that.list, res.data);\r\n that.where.page = that.where.page + 1;\r\n },\r\n err => {\r\n that.$dialog.error(err.msg);\r\n }\r\n );\r\n },\r\n changeStatus: function(val) {\r\n if (this.where.status != val) {\r\n this.where.status = val;\r\n this.init();\r\n }\r\n },\r\n toDetail: function(item) {\r\n this.$router.push({ path: \"/customer/orderdetail/\" + item.order_id });\r\n },\r\n offlinePay: function(item) {\r\n console.log(item);\r\n setOfflinePay({ order_id: item.order_id }).then(\r\n res => {\r\n this.$dialog.success(res.msg);\r\n this.init();\r\n },\r\n error => {\r\n this.$dialog.error(error.msg);\r\n }\r\n );\r\n }\r\n }\r\n};\r\n</script>\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!./AdminOrderList.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!./AdminOrderList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AdminOrderList.vue?vue&type=template&id=43541e32&\"\nimport script from \"./AdminOrderList.vue?vue&type=script&lang=js&\"\nexport * from \"./AdminOrderList.vue?vue&type=script&lang=js&\"\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 null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}