CRMEB/crmeb/public/admin/system_static/js/chunk-d34cd670.c25f551e.js
2023-09-19 17:39:39 +08:00

1 line
20 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-d34cd670"],{3353:function(t,e,r){"use strict";r.r(e);var n=r("0122"),o=r("c964"),a=r("f3f3"),i=(r("a15b"),r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("3410"),r("d9e2"),r("159b"),r("b0c0"),r("131a"),r("fb6a"),r("2f62")),s=r("f8b7"),c=r("31b4"),l=r("fc48"),d=r("61f8"),u=r("1031");function f(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */f=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(e){l=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var a,i,s,c;e=e&&e.prototype instanceof h?e:h,e=Object.create(e.prototype),n=new x(n||[]);return o(e,"_invoke",{value:(a=t,i=r,s=n,c="suspendedStart",function(t,e){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return L()}for(s.method=t,s.arg=e;;){var r=s.delegate;if(r&&(r=function t(e,r){var n=r.method,o=e.iterator[n];return void 0===o?(r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p):(n=u(o,e.iterator,r.arg),"throw"===n.type?(r.method="throw",r.arg=n.arg,r.delegate=null,p):(o=n.arg,o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)))}(r,s),r)){if(r===p)continue;return r}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if("suspendedStart"===c)throw c="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);if(c="executing",r=u(a,i,s),"normal"===r.type){if(c=s.done?"completed":"suspendedYield",r.arg===p)continue;return{value:r.arg,done:s.done}}"throw"===r.type&&(c="completed",s.method="throw",s.arg=r.arg)}})}),e}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=d;var p={};function h(){}function m(){}function g(){}a={};var v=(l(a,i,(function(){return this})),Object.getPrototypeOf),_=(v=v&&v(v(O([]))),v&&v!==e&&r.call(v,i)&&(a=v),g.prototype=h.prototype=Object.create(a));function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){var a;o(this,"_invoke",{value:function(o,i){function s(){return new e((function(a,s){!function o(a,i,s,c){var l;a=u(t[a],t,i);if("throw"!==a.type)return(i=(l=a.arg).value)&&"object"==Object(n.a)(i)&&r.call(i,"__await")?e.resolve(i.__await).then((function(t){o("next",t,s,c)}),(function(t){o("throw",t,s,c)})):e.resolve(i).then((function(t){l.value=t,s(l)}),(function(t){return o("throw",t,s,c)}));c(a.arg)}(o,i,a,s)}))}return a=a?a.then(s,s):s()}})}function b(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 k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function O(t){if(t){var e,n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(n=function n(){for(;++e<t.length;)if(r.call(t,e))return n.value=t[e],n.done=!1,n;return n.value=void 0,n.done=!0,n}).next=n}return{next:L}}function L(){return{value:void 0,done:!0}}return o(_,"constructor",{value:m.prototype=g,configurable:!0}),o(g,"constructor",{value:m,configurable:!0}),m.displayName=l(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,c,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},w(y.prototype),l(y.prototype,s,(function(){return this})),t.AsyncIterator=y,t.async=function(e,r,n,o,a){void 0===a&&(a=Promise);var i=new y(d(e,r,n,o),a);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},w(_),l(_,c,"Generator"),l(_,i,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),n=[];for(e in r)n.push(e);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=O,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;0<=o;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}var i=(a=a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc?null:a)?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,p):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),p},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,o=this.tryEntries[e];if(o.tryLoc===t)return"throw"===(r=o.completion).type&&(n=r.arg,k(o)),n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}c={components:{editFrom:c.a,detailsFrom:l.a,orderRemark:d.a},data:function(){return{grid:{xl:7,lg:8,md:12,sm:24,xs:24},tbody:[],num:[],orderDatalist:null,loading:!1,FromData:null,total:0,orderId:0,animal:1,pagination:{page:1,limit:15,order_id:"",time:"",refund_type:0},timeVal:[],modal:!1,qrcode:null,name:"",spin:!1,pickerOptions:u.a}},computed:Object(a.a)(Object(a.a)({},Object(i.d)("order",["orderChartType"])),{},{labelWidth:function(){return this.isMobile?void 0:"80px"},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.getOrderList()},methods:{onchangeCode:function(t){this.animal=t,this.qrcodeShow()},onchangeTime:function(t){this.pagination.page=1,this.timeVal=t||[],this.pagination.time=this.timeVal[0]&&this.timeVal?this.timeVal.join("-"):"",this.getOrderList()},changeMenu:function(t,e){var r=this;switch(this.orderId=t.id,e){case"1":this.delfromData={title:"修改立即支付",url:"/order/pay_offline/".concat(t.id),method:"post",ids:""},this.$modalSure(this.delfromData).then((function(t){r.$message.success(t.msg),r.getOrderList()})).catch((function(t){r.$message.error(t.msg)}));break;case"2":this.getData(t.order_id);break;case"4":this.$refs.remarks.modals=!0,this.$refs.remarks.formValidate.remark=t.remark;break;case"5":this.getRefundData(t.id,t.refund_type);break;case"6":this.getRefundIntegral(t.id);break;case"7":this.getNoRefundData(t.id);break;case"8":this.delfromData={title:"删除订单",url:"/order/del/".concat(t.store_order_id),method:"DELETE",ids:""},this.delOrder(t,this.delfromData);break;case"10":this.delfromData={title:"立即打印订单",info:"您确认打印此订单吗?",url:"/order/print/".concat(t.id),method:"get",ids:""},this.$modalSure(this.delfromData).then((function(t){r.$message.success(t.msg),r.$emit("changeGetTabs"),r.getOrderList()})).catch((function(t){r.$message.error(t.msg)}));break;case"11":this.delfromData={title:"立即打印电子面单",info:"您确认打印此电子面单吗?",url:"/order/order_dump/".concat(t.id),method:"get",ids:""},this.$modalSure(this.delfromData).then((function(t){r.$message.success(t.msg),r.getOrderList()})).catch((function(t){r.$message.error(t.msg)}));break;default:this.delfromData={title:"删除订单",url:"/order/del/".concat(t.id),method:"DELETE",ids:""},this.delOrder(t,this.delfromData)}},getRefundData:function(t,e){var r=this;2==e?(this.delfromData={title:"同意退货退款",url:"/refund/agree/".concat(t),method:"get"},this.$modalSure(this.delfromData).then((function(t){r.$message.success(t.msg),r.getOrderList()})).catch((function(t){r.$message.error(t.msg)}))):this.$modalForm(Object(s.j)(t)).then((function(){r.getOrderList(),r.$emit("changeGetTabs")}))},getRefundIntegral:function(t){var e=this;Object(s.Q)(t).then(function(){var t=Object(o.a)(f().mark((function t(r){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.FromData=r.data,e.$refs.edits.modals=!0;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.msg)}))},getData:function(t){var e=this;Object(s.f)(t).then(function(){var t=Object(o.a)(f().mark((function t(r){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.orderDatalist=r.data,e.$nextTick((function(t){e.$refs.detailss.modals=!0}));case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.msg)}))},delOrder:function(t,e){var r=this;1===t.is_del?this.$modalSure(e).then((function(t){r.$message.success(t.msg),r.getOrderList()})).catch((function(t){r.$message.error(t.msg)})):this.$message.error("您选择的的订单存在用户未删除的订单,无法删除用户未删除的订单!")},submitFail:function(){this.getOrderList()},selectChange2:function(t){this.pagination.page=1,this.getOrderList(t)},getNoRefundData:function(t){var e=this;this.$modalForm(Object(s.k)(t)).then((function(){e.getOrderList(),e.$emit("changeGetTabs")}))},getOrderList:function(){var t=this;this.loading=!0,Object(s.F)(this.pagination).then((function(e){t.loading=!1;e=e.data;var r=e.count,n=e.list;e=e.num;t.total=r,t.tbody=n,t.num=e})).catch((function(e){t.loading=!1,t.$message.error(e.msg)}))},nameSearch:function(){this.pagination.page=1,this.getOrderList()},orderSearch:function(){this.pagination.page=1,this.getOrderList()},delivery:function(t){var e=this;Object(s.g)(t.id).then(function(){var t=Object(o.a)(f().mark((function t(r){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.FromData=r.data,e.$refs.edits.modals=!0;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.msg)}))}}},r("e023"),l=r("2877"),d=Object(l.a)(c,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never","body-style":{padding:0}}},[r("div",{staticClass:"padding-add"},[r("el-form",{ref:"pagination",attrs:{model:t.pagination,"label-width":t.labelWidth,"label-position":t.labelPosition,inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[r("el-form-item",{attrs:{label:"订单状态:"}},[r("el-select",{staticClass:"form_content_width",attrs:{clearable:"",placeholder:"全部"},on:{change:t.selectChange2},model:{value:t.pagination.refund_type,callback:function(e){t.$set(t.pagination,"refund_type",e)},expression:"pagination.refund_type"}},t._l(t.num,(function(e,n){return r("el-option",{key:n,attrs:{value:n,label:e.name}},[t._v(t._s(e.name))])})),1)],1),r("el-form-item",{attrs:{label:"退款时间:"}},[r("el-date-picker",{staticClass:"mr20",staticStyle:{width:"250px"},attrs:{clearable:"",type:"daterange",editable:!1,format:"yyyy/MM/dd","value-format":"yyyy/MM/dd","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),r("el-form-item",{attrs:{label:"订单号:","label-for":"title"}},[r("el-input",{staticClass:"form_content_width",attrs:{clearable:"",placeholder:"请输入订单号"},model:{value:t.pagination.order_id,callback:function(e){t.$set(t.pagination,"order_id",e)},expression:"pagination.order_id"}})],1),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:t.orderSearch}},[t._v("查询")])],1)],1)],1)]),r("el-card",{staticClass:"ivu-mt mt16",attrs:{bordered:!1,shadow:"never"}},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",attrs:{data:t.tbody,"highlight-current-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}},[r("el-table-column",{attrs:{label:"退款订单号","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",{staticStyle:{display:"block"},domProps:{textContent:t._s(e.row.order_id)}}),r("span",{directives:[{name:"show",rawName:"v-show",value:1===e.row.is_del,expression:"scope.row.is_del === 1"}],staticStyle:{color:"#ed4014",display:"block"}},[t._v("用户已删除")])]}}])}),r("el-table-column",{attrs:{label:"原订单号","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",{staticStyle:{display:"block"},domProps:{textContent:t._s(e.row.store_order_order_id)}})]}}])}),r("el-table-column",{attrs:{label:"商品信息","min-width":"250"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row._info,(function(e,n){return r("div",{key:n,staticClass:"tab"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:(e.cart_info.productInfo.attrInfo||e.cart_info.productInfo).image,expression:"item.cart_info.productInfo.attrInfo ? item.cart_info.productInfo.attrInfo.image : item.cart_info.productInfo.image"}]}),r("el-tooltip",{attrs:{placement:"top","open-delay":300}},[r("div",{attrs:{slot:"content"},slot:"content"},[r("div",[r("span",[t._v("商品名称:")]),r("span",[t._v(t._s(e.cart_info.productInfo.store_name||"--"))])]),r("div",[r("span",[t._v("规格名称:")]),r("span",[t._v(t._s(e.cart_info.productInfo.attrInfo?e.cart_info.productInfo.attrInfo.suk:"---"))])]),r("div",[r("span",[t._v("价格:")]),r("span",[t._v("¥"+t._s(e.cart_info.truePrice||"--"))])]),r("div",[r("span",[t._v("数量:")]),r("span",[t._v(t._s(e.cart_info.cart_num||"--"))])])]),r("span",{staticClass:"line2 w-250"},[t._v(t._s(e.cart_info.productInfo.store_name))])])],1)}))}}])}),r("el-table-column",{attrs:{label:"用户信息","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.nickname))])]}}])}),r("el-table-column",{attrs:{label:"实际支付","min-width":"70"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.pay_price))])]}}])}),r("el-table-column",{attrs:{label:"发起退款时间","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.add_time))])]}}])}),r("el-table-column",{attrs:{label:"退款状态","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.refund_type?r("div",[t._v("仅退款")]):2==e.row.refund_type?r("div",[t._v("退货退款")]):3==e.row.refund_type?r("div",[r("div",[t._v("拒绝退款")]),r("div",[t._v("原因:"+t._s(e.row.refuse_reason))])]):4==e.row.refund_type?r("div",[t._v("商品待退货")]):5==e.row.refund_type?r("div",[r("div",[t._v("退货待收货")]),r("div",[t._v("单号:"+t._s(e.row.refund_express))])]):6==e.row.refund_type?r("div",[t._v("已退款")]):t._e()]}}])}),r("el-table-column",{attrs:{label:"订单状态","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.store_order_status))])]}}])}),r("el-table-column",{attrs:{label:"退款信息","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",{staticClass:"pt5",domProps:{innerHTML:t._s(e.row.refund_reason)}}),e.row.refund_img.length?r("div",{staticClass:"pictrue-box"},t._l(e.row.refund_img||[],(function(t,e){return r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],key:e},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t,expression:"item"}],staticClass:"pictrue mr10",attrs:{src:t}})])})),0):t._e()]}}])}),r("el-table-column",{attrs:{fixed:"right",label:"操作",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-dropdown",{attrs:{size:"small"},on:{command:function(r){return t.changeMenu(e.row,r)}}},[r("span",{staticClass:"el-dropdown-link"},[t._v("更多"),r("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[r("el-dropdown-item",{directives:[{name:"show",rawName:"v-show",value:1===e.row._status&&0===e.row.paid&&"offline"===e.row.pay_type,expression:"scope.row._status === 1 && scope.row.paid === 0 && scope.row.pay_type === 'offline'"}],ref:"ones",attrs:{command:"1"}},[t._v("立即支付")]),r("el-dropdown-item",{attrs:{command:"2"}},[t._v("订单详情")]),r("el-dropdown-item",{directives:[{name:"show",rawName:"v-show",value:1!==e.row._status||3===e.row._status&&0<e.row.use_integral&&e.row.use_integral>=e.row.back_integral,expression:"\n scope.row._status !== 1 ||\n (scope.row._status === 3 &&\n scope.row.use_integral > 0 &&\n scope.row.use_integral >= scope.row.back_integral)\n "}],attrs:{command:"4"}},[t._v("售后备注")]),r("el-dropdown-item",{directives:[{name:"show",rawName:"v-show",value:[1,2,5].includes(e.row.refund_type)&&(parseFloat(e.row.pay_price)>parseFloat(e.row.refunded_price)||0==e.row.pay_price),expression:"\n [1, 2, 5].includes(scope.row.refund_type) &&\n (parseFloat(scope.row.pay_price) > parseFloat(scope.row.refunded_price) || scope.row.pay_price == 0)\n "}],attrs:{command:"5"}},[t._v(t._s(2==e.row.refund_type?"同意退货":"立即退款"))]),r("el-dropdown-item",{directives:[{name:"show",rawName:"v-show",value:[1,2].includes(e.row.refund_type)&&0===e.row.is_pink_cancel,expression:"[1, 2].includes(scope.row.refund_type) && scope.row.is_pink_cancel === 0"}],attrs:{command:"7"}},[t._v("不退款")]),r("el-dropdown-item",{directives:[{name:"show",rawName:"v-show",value:1==e.row.is_del,expression:"scope.row.is_del == 1"}],attrs:{command:"8"}},[t._v("删除订单")])],1)],1)]}}])})],1),r("div",{staticClass:"acea-row row-right page"},[t.total?r("pagination",{attrs:{total:t.total,page:t.pagination.page,limit:t.pagination.limit},on:{"update:page":function(e){return t.$set(t.pagination,"page",e)},"update:limit":function(e){return t.$set(t.pagination,"limit",e)},pagination:t.getOrderList}}):t._e()],1)],1),r("edit-from",{ref:"edits",attrs:{FromData:t.FromData},on:{submitFail:t.submitFail}}),r("details-from",{ref:"detailss",attrs:{orderDatalist:t.orderDatalist,orderId:t.orderId,is_refund:1}}),r("order-remark",{ref:"remarks",attrs:{remarkType:"refund",orderId:t.orderId},on:{submitFail:t.submitFail}})],1)}),[],!1,null,"c866bc06",null),e.default=d.exports},3947:function(t,e,r){},e023:function(t,e,r){"use strict";var n=r("3947");r.n(n).a}}]);