easypay-admin/crmebadmin/static/js/chunk-924d915e.aa64915c.js
2023-12-20 21:43:49 +08:00

1 line
16 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-924d915e"],{"10a9":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{ref:"container",staticClass:"pos-order-list"},[r("div",{staticClass:"nav acea-row row-around row-middle"},[r("div",{staticClass:"item",class:"unPaid"==t.where.status?"on":"",on:{click:function(e){return t.changeStatus("unPaid")}}},[t._v("待付款")]),t._v(" "),r("div",{staticClass:"item",class:"notShipped"==t.where.status?"on":"",on:{click:function(e){return t.changeStatus("notShipped")}}},[t._v("\n 待发货\n ")]),t._v(" "),r("div",{staticClass:"item",class:"spike"==t.where.status?"on":"",on:{click:function(e){return t.changeStatus("spike")}}},[t._v("待收货")]),t._v(" "),r("div",{staticClass:"item",class:"toBeWrittenOff"==t.where.status?"on":"",on:{click:function(e){return t.changeStatus("toBeWrittenOff")}}},[t._v("\n 待核销\n ")]),t._v(" "),r("div",{staticClass:"item",class:"complete"==t.where.status?"on":"",on:{click:function(e){return t.changeStatus("complete")}}},[t._v("已完成")]),t._v(" "),r("div",{staticClass:"item",class:"refunding"==t.where.status?"on":"",on:{click:function(e){return t.changeStatus("refunding")}}},[t._v("退款")])]),t._v(" "),r("div",{staticClass:"list"},[t.list.length>0?t._l(t.list,(function(e,n){return r("div",{key:n,staticClass:"item"},[r("div",{staticClass:"order-num acea-row row-middle",on:{click:function(r){return t.toDetail(e)}}},[t._v("\n 订单号:"+t._s(e.orderId)+"\n "),r("span",{staticClass:"time"},[t._v("下单时间:"+t._s(e.createTime))])]),t._v(" "),t._l(e.productList,(function(n,i){return r("div",{key:i,staticClass:"pos-order-goods"},[r("div",{staticClass:"goods acea-row row-between-wrapper",on:{click:function(r){return t.toDetail(e)}}},[r("div",{staticClass:"picTxt acea-row row-between-wrapper"},[r("div",{staticClass:"pictrue"},[r("img",{attrs:{src:n.info.image}})]),t._v(" "),r("div",{staticClass:"text"},[r("div",{staticClass:"info line2"},[t._v("\n "+t._s(n.info.productName)+"\n ")]),t._v(" "),n.info.sku?r("div",{staticClass:"attr"},[t._v("\n "+t._s(n.info.sku)+"\n ")]):t._e()])]),t._v(" "),r("div",{staticClass:"money"},[r("div",{staticClass:"x-money"},[t._v("¥"+t._s(n.info.price))]),t._v(" "),r("div",{staticClass:"num"},[t._v("x"+t._s(n.info.payNum))]),t._v(" "),r("div",{staticClass:"y-money"})])])])})),t._v(" "),r("div",{staticClass:"public-total"},[t._v("\n 共"+t._s(e.totalNum?e.totalNum:1)+"件商品,应支付 "),r("span",{staticClass:"money"},[t._v("¥"+t._s(e.payPrice))]),t._v(" (\n 邮费 ¥"+t._s(e.totalPostage?e.totalPostage:0)+")\n ")]),t._v(" "),r("div",{staticClass:"operation acea-row row-between-wrapper"},[r("div",{staticClass:"more"}),t._v(" "),r("div",{staticClass:"acea-row row-middle"},[e.isAlterPrice||0!=e.paid?t._e():r("div",{staticClass:"bnt",on:{click:function(r){return t.modify(e,0)}}},[t._v("一键改价")]),t._v(" "),r("div",{staticClass:"bnt",on:{click:function(r){return t.modify(e,1)}}},[t._v("订单备注")]),t._v(" "),"refunding"===t.where.status&&1===e.refundStatus?r("div",{staticClass:"bnt",on:{click:function(r){return t.modify(e,2)}}},[t._v("\n 立即退款\n ")]):t._e(),t._v(" "),"refunding"===t.where.status&&1===e.refundStatus?r("div",{staticClass:"bnt",on:{click:function(r){return t.modify(e,3)}}},[t._v("\n 拒绝退款\n ")]):t._e(),t._v(" "),"notShipped"===t.where.status&&2!==e.shippingType&&2!==e.refundStatus?r("router-link",{staticClass:"bnt",attrs:{to:"/javaMobile/orderDelivery/"+e.orderId+"/"+e.id}},[t._v("去发货\n ")]):t._e(),t._v(" "),"toBeWrittenOff"===t.where.status&&2===e.shippingType&&t.isWriteOff&&0===e.refundStatus&&1==e.paid?r("router-link",{staticClass:"bnt",attrs:{to:"/javaMobile/orderCancellation"}},[t._v("去核销\n ")]):t._e()],1)])],2)})):t._e(),t._v(" "),t.loading||0!==t.list.length?t._e():[r("div",{staticStyle:{"text-align":"center"}},[t._v("暂无数据")])]],2),t._v(" "),r("Loading",{attrs:{loaded:t.loaded,loading:t.loading}}),t._v(" "),t.orderInfo?r("PriceChange",{attrs:{change:t.change,orderInfo:t.orderInfo,status:t.status},on:{closechange:function(e){return t.changeclose(e)},getRefuse:t.getRefuse}}):t._e()],1)},i=[],o=r("4c60"),a=r("b798"),s=r("f8b7"),c=r("61f7"),u=r("69ae"),l=r("ed08");function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function h(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */h=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var o=e&&e.prototype instanceof w?e:w,a=Object.create(o.prototype),s=new $(n||[]);return i(a,"_invoke",{value:S(t,r,s)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var v="suspendedStart",p="suspendedYield",g="executing",y="completed",m={};function w(){}function _(){}function b(){}var x={};u(x,a,(function(){return this}));var k=Object.getPrototypeOf,C=k&&k(k(N([])));C&&C!==r&&n.call(C,a)&&(x=C);var O=b.prototype=w.prototype=Object.create(x);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(i,o,a,s){var c=d(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==f(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,s)}))}s(c.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function S(e,r,n){var i=v;return function(o,a){if(i===g)throw new Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:t,done:!0}}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=E(s,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===v)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=g;var u=d(e,r,n);if("normal"===u.type){if(i=n.done?y:p,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function E(e,r){var n=r.method,i=e.iterator[n];if(i===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,E(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var o=d(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,m;var a=o.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function $(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return o.next=o}}throw new TypeError(f(e)+" is not iterable")}return _.prototype=b,i(O,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:_,configurable:!0}),_.displayName=u(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,c,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},L(j.prototype),u(j.prototype,s,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new j(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(O),u(O,c,"Generator"),u(O,a,(function(){return this})),u(O,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=N,$.prototype={constructor:$,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return s.type="throw",s.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;I(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function d(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(u){return void r(u)}s.done?e(c):Promise.resolve(c).then(n,i)}function v(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){d(o,n,i,a,s,"next",t)}function s(t){d(o,n,i,a,s,"throw",t)}a(void 0)}))}}var p={name:"AdminOrderList",components:{PriceChange:o["a"],Loading:a["a"]},props:{},data:function(){return{isWriteOff:Object(l["e"])(),current:"",change:!1,types:0,where:{page:1,limit:10,status:"unPaid"},list:[],loaded:!1,loading:!1,orderInfo:{},status:null}},watch:{"$route.params.types":function(t){var e=this;void 0!=t&&(e.where.status=t,e.init())},types:function(){this.getIndex()}},created:function(){r.e("chunk-2d0d6f43").then(r.t.bind(null,"756e",7))},mounted:function(){var t=this;this.where.status=this.$route.params.types,this.current="",this.getIndex(),this.$scroll(this.$refs.container,(function(){!t.loading&&t.getIndex()}))},methods:{more:function(t){this.current===t?this.current="":this.current=t},modify:function(t,e){this.change=!0,this.orderInfo=t,this.status=e},changeclose:function(t){this.change=t,this.init()},getRefuse:function(t,e){var r=this;Object(s["l"])({orderNo:t,reason:e}).then((function(){r.change=!1,r.$dialog.success("已拒绝退款"),r.init()})).catch((function(t){r.$dialog.error(t.message)}))},savePrice:function(){var t=v(h().mark((function t(e){var r,n,i,o,a,l;return h().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=this,n={},i=e.price,o=e.refundPrice,a=r.orderInfo.refundStatus,l=e.remark,0!=r.status||0!==a){t.next=15;break}return t.prev=2,t.next=5,this.$validator({price:[Object(c["f"])(c["f"].message("金额"))]}).validate({price:i});case 5:t.next=10;break;case 7:return t.prev=7,t.t0=t["catch"](2),t.abrupt("return",Object(u["b"])(t.t0));case 10:n.price=i,n.orderNo=e.orderId,Object(s["editPriceApi"])(n).then((function(){r.change=!1,r.$dialog.success("改价成功"),r.init()})).catch((function(t){r.$dialog.error(t.message)})),t.next=41;break;case 15:if(0!=r.status||1!==a){t.next=30;break}return t.prev=16,t.next=19,this.$validator({refundPrice:[Object(c["f"])(c["f"].message("金额")),Object(c["e"])(c["e"].message("金额"))]}).validate({refundPrice:o});case 19:t.next=24;break;case 21:return t.prev=21,t.t1=t["catch"](16),t.abrupt("return",Object(u["b"])(t.t1));case 24:n.amount=o,n.type=e.type,n.orderNo=e.orderId,Object(s["k"])(n).then((function(t){r.change=!1,r.$dialog.success("退款成功"),r.init()}),(function(t){r.change=!1,r.$dialog.error(t.message)})),t.next=41;break;case 30:return t.prev=30,t.next=33,this.$validator({remark:[Object(c["f"])(c["f"].message("备注"))]}).validate({remark:l});case 33:t.next=38;break;case 35:return t.prev=35,t.t2=t["catch"](30),t.abrupt("return",Object(u["b"])(t.t2));case 38:n.mark=l,n.orderNo=e.orderId,Object(s["i"])(n).then((function(t){r.change=!1,r.$dialog.success("提交成功"),r.init()}),(function(t){r.change=!1,r.$dialog.error(t.message)}));case 41:case"end":return t.stop()}}),t,this,[[2,7],[16,21],[30,35]])})));function e(e){return t.apply(this,arguments)}return e}(),init:function(){this.list=[],this.where.page=1,this.loaded=!1,this.loading=!1,this.getIndex(),this.current=""},getIndex:function(){var t=this;this.loading||this.loaded||(this.loading=!0,Object(s["f"])(this.where).then((function(e){t.loading=!1,t.loaded=e.list.length<t.where.limit,t.list.push.apply(t.list,e.list),t.where.page=t.where.page+1}),(function(e){t.$dialog.error(e.message)})))},changeStatus:function(t){this.where.status!=t&&(this.where.status=t,this.init())},toDetail:function(t){this.$router.push({path:"/javaMobile/orderDetail/"+t.orderId})},offlinePay:function(t){}}},g=p,y=(r("9ef0"),r("2877")),m=Object(y["a"])(g,n,i,!1,null,"bc540e06",null);e["default"]=m.exports},"37b2":function(t,e,r){},"9ef0":function(t,e,r){"use strict";r("37b2")},b798:function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.loading&&!t.loaded?r("div",{staticClass:"Loads acea-row row-center-wrapper",staticStyle:{"margin-top":"0.2rem","font-size":"12px"}},[t.loading?[r("div",{staticClass:"iconfont icon-jiazai loading acea-row row-center-wrapper"}),t._v("\n 正在加载中\n ")]:[t._v(" 上拉加载更多 ")]],2):t._e()},i=[],o={name:"Loading",props:{loaded:Boolean,loading:Boolean},created:function(){r.e("chunk-2d0d6f43").then(r.t.bind(null,"756e",7))}},a=o,s=r("2877"),c=Object(s["a"])(a,n,i,!1,null,null,null);e["a"]=c.exports}}]);