easypay-admin/crmebadmin/static/js/chunk-12aa17b0.803ee1ff.js
2023-12-20 21:43:49 +08:00

1 line
16 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-12aa17b0"],{"4c60":function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticClass:"priceChange",class:!0===t.change?"on":""},[r("div",{staticClass:"priceTitle"},[t._v("\n "+t._s(0===t.status||2===t.status?1===t.orderInfo.refundStatus?"立即退款":"一键改价":1===t.status?"订单备注":"拒绝原因")+"\n "),r("i",{staticClass:"el-icon-circle-close iconfonts",on:{click:t.close}})]),t._v(" "),0===t.status||2===t.status?r("div",{staticClass:"listChange"},[0===t.orderInfo.refundStatus?r("div",{staticClass:"item acea-row row-between-wrapper"},[r("div",[t._v("商品总价(¥)")]),t._v(" "),r("div",{staticClass:"money"},[t._v(t._s(t.orderInfo.totalPrice)),r("span",{staticClass:"iconfont icon-suozi"})])]):t._e(),t._v(" "),0===t.orderInfo.refundStatus?r("div",{staticClass:"item acea-row row-between-wrapper"},[r("div",[t._v("原始邮费(¥)")]),t._v(" "),r("div",{staticClass:"money"},[t._v(t._s(t.orderInfo.payPostage)),r("span",{staticClass:"iconfont icon-suozi"})])]):t._e(),t._v(" "),0===t.orderInfo.refundStatus?r("div",{staticClass:"item acea-row row-between-wrapper"},[r("div",[t._v("实际支付(¥)")]),t._v(" "),r("div",{staticClass:"money"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.price,expression:"price"}],class:!0===t.focus?"on":"",attrs:{type:"text"},domProps:{value:t.price},on:{focus:t.priceChange,input:function(e){e.target.composing||(t.price=e.target.value)}}})])]):t._e(),t._v(" "),1===t.orderInfo.refundStatus?r("div",{staticClass:"item acea-row row-between-wrapper"},[r("div",[t._v("实际支付(¥)")]),t._v(" "),r("div",{staticClass:"money"},[t._v(t._s(t.orderInfo.payPrice)),r("span",{staticClass:"iconfont icon-suozi"})])]):t._e(),t._v(" "),1===t.orderInfo.refundStatus?r("div",{staticClass:"item acea-row row-between-wrapper"},[r("div",[t._v("退款金额(¥)")]),t._v(" "),r("div",{staticClass:"money"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.refundPrice,expression:"refundPrice"}],class:!0===t.focus?"on":"",attrs:{type:"text"},domProps:{value:t.refundPrice},on:{focus:t.priceChange,input:function(e){e.target.composing||(t.refundPrice=e.target.value)}}})])]):t._e()]):3===t.status?r("div",{staticClass:"listChange"},[r("textarea",{directives:[{name:"model",rawName:"v-model",value:t.reason,expression:"reason"}],attrs:{placeholder:"请填写退款原因",maxlength:"100"},domProps:{value:t.reason},on:{input:function(e){e.target.composing||(t.reason=e.target.value)}}})]):r("div",{staticClass:"listChange"},[r("textarea",{directives:[{name:"model",rawName:"v-model",value:t.remark,expression:"remark"}],attrs:{placeholder:t.orderInfo.remark?t.orderInfo.remark:"请填写备注信息...",maxlength:"100"},domProps:{value:t.remark},on:{input:function(e){e.target.composing||(t.remark=e.target.value)}}})]),t._v(" "),r("div",{staticClass:"modify",on:{click:t.save}},[t._v("\n "+t._s(0===t.orderInfo.refundStatus||1===t.status||3===t.status?"立即提交":"确认退款")+"\n ")])]),t._v(" "),r("div",{directives:[{name:"show",rawName:"v-show",value:!0===t.change,expression:"change === true"}],staticClass:"maskModel",on:{touchmove:function(t){t.preventDefault()}}})])},o=[],a=r("61f7"),i=r("69ae"),c=r("f8b7");function s(t){return s="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},s(t)}function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",f=a.toStringTag||"@@toStringTag";function d(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var a=e&&e.prototype instanceof b?e:b,i=Object.create(a.prototype),c=new $(n||[]);return o(i,"_invoke",{value:C(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",m="suspendedYield",v="executing",g="completed",y={};function b(){}function w(){}function j(){}var x={};d(x,i,(function(){return this}));var O=Object.getPrototypeOf,_=O&&O(O(N([])));_&&_!==r&&n.call(_,i)&&(x=_);var k=j.prototype=b.prototype=Object.create(x);function P(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function I(t,e){function r(o,a,i,c){var u=h(t[o],t,a);if("throw"!==u.type){var f=u.arg,d=f.value;return d&&"object"==s(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(d).then((function(t){f.value=t,i(f)}),(function(t){return r("throw",t,i,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function C(e,r,n){var o=p;return function(a,i){if(o===v)throw new Error("Generator is already running");if(o===g){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var s=L(c,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var u=h(e,r,n);if("normal"===u.type){if(o=n.done?g:m,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=g,n.method="throw",n.arg=u.arg)}}}function L(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=h(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function E(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function $(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(s(e)+" is not iterable")}return w.prototype=j,o(k,"constructor",{value:j,configurable:!0}),o(j,"constructor",{value:w,configurable:!0}),w.displayName=d(j,f,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,j):(t.__proto__=j,d(t,f,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},P(I.prototype),d(I.prototype,c,(function(){return this})),e.AsyncIterator=I,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new I(l(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},P(k),d(k,f,"Generator"),d(k,i,(function(){return this})),d(k,"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(S),!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 o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},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),y},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),S(r),y}},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 o=n.arg;S(r)}return o}}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),y}},e}function f(t,e,r,n,o,a,i){try{var c=t[a](i),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function d(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function i(t){f(a,n,o,i,c,"next",t)}function c(t){f(a,n,o,i,c,"throw",t)}i(void 0)}))}}var l={name:"PriceChange",components:{},props:{change:Boolean,orderInfo:{type:Object,default:null},status:{type:Number,default:0}},data:function(){return{focus:!1,price:0,refundPrice:0,remark:"",reason:""}},watch:{orderInfo:function(){this.price=this.orderInfo.payPrice,this.refundPrice=this.orderInfo.payPrice,this.remark=this.orderInfo.remark}},created:function(){r.e("chunk-2d0d6f43").then(r.t.bind(null,"756e",7))},methods:{priceChange:function(){this.focus=!0},close:function(){this.price=this.orderInfo.payPrice,this.$emit("closechange",!1)},save:function(){3===this.status?this.refuse():this.savePrice({price:this.price,refundPrice:this.refundPrice,type:1,remark:this.remark,orderId:this.orderInfo.orderId})},savePrice:function(){var t=d(u().mark((function t(e){var r,n,o,s,f,d,l=this;return u().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=this,n={},o=e.price,s=e.refundPrice,f=r.orderInfo.refundStatus,d=e.remark,0!=r.status||0!==f){t.next=15;break}return t.prev=2,t.next=5,this.$validator({price:[Object(a["f"])(a["f"].message("金额")),Object(a["e"])(a["e"].message("金额"))]}).validate({price:o});case 5:t.next=10;break;case 7:return t.prev=7,t.t0=t["catch"](2),t.abrupt("return",Object(i["b"])(t.t0));case 10:n.payPrice=o,n.orderNo=e.orderId,Object(c["s"])(n).then((function(){l.$emit("closechange",!1),r.$dialog.success("改价成功")})).catch((function(t){r.$dialog.error(t.message)})),t.next=41;break;case 15:if(2!=r.status||1!==f){t.next=30;break}return t.prev=16,t.next=19,this.$validator({refundPrice:[Object(a["f"])(a["f"].message("金额")),Object(a["e"])(a["e"].message("金额"))]}).validate({refundPrice:s});case 19:t.next=24;break;case 21:return t.prev=21,t.t1=t["catch"](16),t.abrupt("return",Object(i["b"])(t.t1));case 24:n.amount=s,n.type=e.type,n.orderNo=e.orderId,Object(c["k"])(n).then((function(t){l.$emit("closechange",!1),r.$dialog.success("退款成功")}),(function(t){l.$emit("closechange",!1),r.$dialog.error(t.message)})),t.next=41;break;case 30:return t.prev=30,t.next=33,this.$validator({remark:[Object(a["f"])(a["f"].message("备注"))]}).validate({remark:d});case 33:t.next=38;break;case 35:return t.prev=35,t.t2=t["catch"](30),t.abrupt("return",Object(i["b"])(t.t2));case 38:n.mark=d,n.orderNo=e.orderId,Object(c["i"])(n).then((function(t){l.$emit("closechange",!1),r.$dialog.success("提交成功")}),(function(t){l.$emit("closechange",!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}(),refuse:function(){var t=d(u().mark((function t(){var e;return u().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this.reason,t.prev=1,t.next=4,this.$validator({reason:[Object(a["f"])(a["f"].message("备注"))]}).validate({reason:e});case 4:t.next=9;break;case 6:return t.prev=6,t.t0=t["catch"](1),t.abrupt("return",Object(i["b"])(t.t0));case 9:this.$emit("getRefuse",this.orderInfo.orderId,e);case 10:case"end":return t.stop()}}),t,this,[[1,6]])})));function e(){return t.apply(this,arguments)}return e}()}},h=l,p=(r("9a35"),r("2877")),m=Object(p["a"])(h,n,o,!1,null,"3028645a",null);e["a"]=m.exports},"9a35":function(t,e,r){"use strict";r("ffab")},f8b7:function(t,e,r){"use strict";r.d(e,"f",(function(){return o})),r.d(e,"o",(function(){return a})),r.d(e,"g",(function(){return i})),r.d(e,"d",(function(){return c})),r.d(e,"h",(function(){return s})),r.d(e,"e",(function(){return u})),r.d(e,"i",(function(){return f})),r.d(e,"m",(function(){return d})),r.d(e,"l",(function(){return l})),r.d(e,"k",(function(){return h})),r.d(e,"w",(function(){return p})),r.d(e,"v",(function(){return m})),r.d(e,"n",(function(){return v})),r.d(e,"r",(function(){return g})),r.d(e,"s",(function(){return y})),r.d(e,"p",(function(){return b})),r.d(e,"q",(function(){return w})),r.d(e,"c",(function(){return j})),r.d(e,"a",(function(){return x})),r.d(e,"u",(function(){return O})),r.d(e,"j",(function(){return _})),r.d(e,"t",(function(){return k}));var n=r("b775");function o(t){return Object(n["a"])({url:"/admin/store/order/list",method:"get",params:t})}function a(t){return Object(n["a"])({url:"/admin/store/order/status/num",method:"get",params:t})}function i(t){return Object(n["a"])({url:"/admin/store/order/list/data",method:"get",params:t})}function c(t){return Object(n["a"])({url:"/admin/store/order/delete",method:"get",params:t})}function s(t){return Object(n["a"])({url:"/admin/store/order/status/list",method:"get",params:t})}function u(t){return Object(n["a"])({url:"/admin/store/order/info",method:"get",params:t})}function f(t){return Object(n["a"])({url:"/admin/store/order/mark",method:"post",params:t})}function d(t){return Object(n["a"])({url:"/admin/store/order/send",method:"post",data:t})}function l(t){return Object(n["a"])({url:"/admin/store/order/refund/refuse",method:"get",params:t})}function h(t){return Object(n["a"])({url:"/admin/store/order/refund",method:"get",params:t})}function p(t){return Object(n["a"])({url:"/admin/store/order/writeUpdate/".concat(t),method:"get"})}function m(t){return Object(n["a"])({url:"/admin/store/order/writeConfirm/".concat(t),method:"get"})}function v(){return Object(n["a"])({url:"/admin/store/order/statistics",method:"get"})}function g(t){return Object(n["a"])({url:"/admin/store/order/statisticsData",method:"get",params:t})}function y(t){return Object(n["a"])({url:"admin/store/order/update/price",method:"post",data:t})}function b(t){return Object(n["a"])({url:"/admin/store/order/time",method:"get",params:t})}function w(){return Object(n["a"])({url:"/admin/store/order/sheet/info",method:"get"})}function j(t){return Object(n["a"])({url:"/admin/store/order/getLogisticsInfo",method:"get",params:t})}function x(){return Object(n["a"])({url:"/admin/pay/component/delivery/company/get/list",method:"get"})}function O(t){return Object(n["a"])({url:"/admin/store/order/video/send",method:"post",data:t})}function _(t){return Object(n["a"])({url:"/admin/yly/print/".concat(t),method:"get"})}function k(t){return Object(n["a"])({url:"/admin/store/order/update/tracking/number",method:"post",data:t})}},ffab:function(t,e,r){}}]);