启程易购后端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
qicheng_shop_backend/public/system/js/chunk-98620c54.316f37de.js

1 lines
14 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-98620c54"],{"0b65":function(t,e,r){"use strict";e["a"]={shortcuts:[{text:"今天",onClick:function(t){var e=new Date,r=new Date;r.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),t.$emit("pick",[r,e])}},{text:"昨天",onClick:function(t){var e=new Date,r=new Date;r.setTime(r.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.$emit("pick",[r,e])}},{text:"最近7天",onClick:function(t){var e=new Date,r=new Date;r.setTime(r.getTime()-6048e5),t.$emit("pick",[r,e])}},{text:"最近30天",onClick:function(t){var e=new Date,r=new Date;r.setTime(r.getTime()-2592e6),t.$emit("pick",[r,e])}},{text:"本月",onClick:function(t){var e=new Date,r=new Date;r.setTime(r.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),t.$emit("pick",[r,e])}},{text:"本年",onClick:function(t){var e=new Date,r=new Date;r.setTime(r.setTime(new Date((new Date).getFullYear(),0,1))),t.$emit("pick",[r,e])}}]}},"9a01":function(t,e,r){"use strict";r("b137")},b137:function(t,e,r){},e572:function(t,e,r){"use strict";r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return o}));var a=[{label:"开启",value:1},{label:"关闭",value:0}],n={title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},o={title:"状态",custom:!0,fromTxt:[{text:"全部",val:""},{text:"待审核",val:"0"},{text:"审核已通过",val:"1"},{text:"审核未通过",val:"2"}]}},f52f:function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"divBox"},[r("div",{staticClass:"selCard"},[r("el-form",{ref:"searchForm",attrs:{size:"small",inline:"",model:t.tableFrom,"label-width":"90px"}},[r("el-form-item",{staticClass:"width100",attrs:{label:"退款单状态:",prop:"status"}},[r("el-radio-group",{attrs:{type:"button"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.status,callback:function(e){t.$set(t.tableFrom,"status",e)},expression:"tableFrom.status"}},[r("el-radio-button",{attrs:{label:""}},[t._v("全部 "+t._s(t.orderChartType.all))]),t._v(" "),r("el-radio-button",{attrs:{label:"0"}},[t._v("待审核 "+t._s(t.orderChartType.audit))]),t._v(" "),r("el-radio-button",{attrs:{label:"-1"}},[t._v("审核未通过 "+t._s(t.orderChartType.refuse))]),t._v(" "),r("el-radio-button",{attrs:{label:"1"}},[t._v("审核通过 "+t._s(t.orderChartType.agree))]),t._v(" "),r("el-radio-button",{attrs:{label:"2"}},[t._v("待收货 "+t._s(t.orderChartType.backgood))]),t._v(" "),r("el-radio-button",{attrs:{label:"3"}},[t._v("已完成 "+t._s(t.orderChartType.end))])],1)],1),t._v(" "),r("el-form-item",{attrs:{label:"时间选择:"}},[r("el-date-picker",{staticStyle:{width:"280px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间","picker-options":t.pickerOptions},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),r("el-form-item",{attrs:{label:"商户类别:",prop:"is_trader"}},[r("el-select",{staticClass:"selWidth",attrs:{clearable:"",placeholder:"请选择"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.is_trader,callback:function(e){t.$set(t.tableFrom,"is_trader",e)},expression:"tableFrom.is_trader"}},[r("el-option",{attrs:{label:"自营",value:"1"}}),t._v(" "),r("el-option",{attrs:{label:"非自营",value:"0"}})],1)],1),t._v(" "),r("el-form-item",{attrs:{label:"退款单号:",prop:"refund_order_sn"}},[r("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入订单号",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.refund_order_sn,callback:function(e){t.$set(t.tableFrom,"refund_order_sn",e)},expression:"tableFrom.refund_order_sn"}})],1),t._v(" "),r("el-form-item",{attrs:{label:"订单单号:",prop:"order_sn"}},[r("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入订单号",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.order_sn,callback:function(e){t.$set(t.tableFrom,"order_sn",e)},expression:"tableFrom.order_sn"}})],1),t._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.getList(1)}}},[t._v("搜索")]),t._v(" "),r("el-button",{attrs:{size:"small"},on:{click:function(e){return t.searchReset()}}},[t._v("重置")])],1)],1)],1),t._v(" "),r("el-card",{staticClass:"mt14"},[r("el-button",{staticClass:"mb20",attrs:{size:"small",type:"primary"},on:{click:t.exports}},[t._v("导出列表")]),t._v(" "),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"table",attrs:{data:t.tableData.data,size:"small","highlight-current-row":""}},[r("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-form",{staticClass:"demo-table-expand demo-table-expands",attrs:{"label-position":"left",inline:""}},[r("el-form-item",{attrs:{label:"退款商品总价:"}},[r("span",[t._v(t._s(t.getTotal(e.row.refundProduct)))])]),t._v(" "),r("el-form-item",{attrs:{label:"退款商品总数:"}},[r("span",[t._v(t._s(e.row.refund_num))])]),t._v(" "),r("el-form-item",{attrs:{label:"申请退款时间:"}},[r("span",[t._v(t._s(t._f("filterEmpty")(e.row.create_time)))])]),t._v(" "),r("el-form-item",{attrs:{label:"用户备注:"}},[r("span",[t._v(t._s(t._f("filterEmpty")(e.row.mark)))])]),t._v(" "),r("el-form-item",{attrs:{label:"商家备注:"}},[r("span",[t._v(t._s(t._f("filterEmpty")(e.row.mer_mark)))])])],1)]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"退款单号","min-width":"170"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",{staticStyle:{display:"block"},domProps:{textContent:t._s(e.row.refund_order_sn)}}),t._v(" "),r("span",{directives:[{name:"show",rawName:"v-show",value:e.row.is_del>0,expression:"scope.row.is_del > 0"}],staticStyle:{color:"#ED4014",display:"block"}},[t._v("用户已删除")])]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"user.nickname",label:"用户信息","min-width":"130"}}),t._v(" "),r("el-table-column",{attrs:{prop:"merchant.mer_name",label:"商户名称","min-width":"130"}}),t._v(" "),r("el-table-column",{attrs:{prop:"mer_name",label:"商户类别","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.merchant?r("span",{staticClass:"spBlock"},[t._v(t._s(e.row.merchant.is_trader?"自营":"非自营"))]):t._e()]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"refund_price",label:"退款金额","min-width":"130"}}),t._v(" "),r("el-table-column",{attrs:{prop:"nickname",label:"商品信息","min-width":"330"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.refundProduct,(function(e,a){return r("div",{key:a,staticClass:"tabBox acea-row row-middle"},[r("div",{staticClass:"demo-image__preview"},[r("el-image",{attrs:{src:e.product&&e.product.cart_info.product.image,"preview-src-list":[e.product&&e.product.cart_info.product.image]}})],1),t._v(" "),r("span",{staticClass:"tabBox_tit"},[t._v(t._s(e.product&&e.product.cart_info.product.store_name+" | ")+t._s(e.product&&e.product.cart_info.productAttr.sku))]),t._v(" "),r("span",{staticClass:"tabBox_pice"},[t._v(t._s("¥"+e.product.cart_info.productAttr.price+" x "+e.product.product_num))])])}))}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"serviceScore",label:"订单状态","min-width":"250"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",{staticStyle:{display:"block"}},[t._v(t._s(t._f("orderRefundFilter")(e.row.status)))]),t._v(" "),r("span",{staticStyle:{display:"block"}},[t._v("退款原因:"+t._s(e.row.refund_message))]),t._v(" "),r("span",{staticStyle:{display:"block"}},[t._v("状态变更时间:"+t._s(e.row.status_time))])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"操作","min-width":"90",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{type:"text",size:"small"},on:{click:function(r){return t.onOrderDetail(e.row.order.order_sn)}}},[t._v("订单详情")])]}}])})],1),t._v(" "),r("div",{staticClass:"block"},[r("el-pagination",{attrs:{background:"","page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),r("file-list",{ref:"exportList"})],1)},n=[],o=r("c80c"),i=(r("96cf"),r("3b8d")),s=r("f8b7"),l=r("2e83"),c=r("e572"),u=r("30dc"),d=r("83d6"),m=r("0b65"),f={components:{fileList:u["a"]},name:"OrderRefund",data:function(){return{pickerOptions:m["a"],orderId:0,roterPre:d["roterPre"],tableData:{data:[],total:0},listLoading:!0,tableFrom:{refund_order_sn:this.$route.query.refund_order_sn?this.$route.query.refund_order_sn:"",order_sn:"",status:"",date:"",page:1,limit:20,is_trader:""},orderChartType:{},timeVal:[],fromList:c["a"],selectionList:[],ids:"",tableFromLog:{page:1,limit:10},tableDataLog:{data:[],total:0},LogLoading:!1,dialogVisible:!1,cardLists:[],orderDatalist:null}},mounted:function(){this.$route.query.hasOwnProperty("sn")?this.tableFrom.order_sn=this.$route.query.sn:this.tableFrom.order_sn="",this.getList("")},activated:function(){this.$route.query.hasOwnProperty("sn")?this.tableFrom.order_sn=this.$route.query.sn:this.tableFrom.order_sn="",this.getList("")},methods:{searchReset:function(){this.timeVal=[],this.tableFrom.date="",this.$refs.searchForm.resetFields(),this.tableFrom.order_sn="",this.getList(1)},onOrderDetail:function(t){this.$router.push({path:this.roterPre+"/order/list",query:{order_sn:t}})},exports:function(){var t=Object(i["a"])(Object(o["a"])().mark((function t(){var e,r,a,n,i;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e=JSON.parse(JSON.stringify(this.tableFrom)),r=[],e.page=1,a=1,n={},i=0;case 5:if(!(i<a)){t.next=14;break}return t.next=8,this.downData(e);case 8:n=t.sent,a=Math.ceil(n.count/e.limit),n.export.length&&(r=r.concat(n.export),e.page++);case 11:i++,t.next=5;break;case 14:return Object(l["a"])(n.header,n.title,r,n.foot,n.filename),t.abrupt("return");case 16:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),downData:function(t){return new Promise((function(e,r){Object(s["h"])(t).then((function(t){return e(t.data)}))}))},exportRecord:function(){var t=this;Object(s["h"])(this.tableFrom).then((function(e){var r=t.$createElement;t.$msgbox({title:"提示",message:r("p",null,[r("span",null,'文件正在生成中,请稍后点击"'),r("span",{style:"color: teal"},"导出记录"),r("span",null,'"查看~ ')]),confirmButtonText:"我知道了"}).then((function(t){}))})).catch((function(e){t.$message.error(e.message)}))},getExportFileList:function(){this.$refs.exportList.exportFileList()},getTotal:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r].product.cart_info.productAttr.price*t[r].refund_num;return e},pageChangeLog:function(t){this.tableFromLog.page=t,this.getList("")},handleSizeChangeLog:function(t){this.tableFromLog.limit=t,this.getList(1)},selectChange:function(t){this.tableFrom.date=t,this.tableFrom.page=1,this.timeVal=[],this.getList("")},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getList("")},edit:function(t){var e=this;this.$modalForm(Object(s["o"])(t)).then((function(){return e.getList("")}))},send:function(t){var e=this;this.$modalForm(Object(s["k"])(t)).then((function(){return e.getList("")}))},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(s["s"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.orderChartType=t.data.stat,e.cardLists=t.data.stat,e.listLoading=!1})).catch((function(t){e.$message.error(t.message),e.listLoading=!1}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList(1)}}},p=f,_=(r("9a01"),r("2877")),b=Object(_["a"])(p,a,n,!1,null,"5765fd97",null);e["default"]=b.exports},f8b7:function(t,e,r){"use strict";r.d(e,"m",(function(){return n})),r.d(e,"b",(function(){return o})),r.d(e,"a",(function(){return i})),r.d(e,"o",(function(){return s})),r.d(e,"k",(function(){return l})),r.d(e,"l",(function(){return c})),r.d(e,"n",(function(){return u})),r.d(e,"s",(function(){return d})),r.d(e,"i",(function(){return m})),r.d(e,"j",(function(){return f})),r.d(e,"g",(function(){return p})),r.d(e,"h",(function(){return _})),r.d(e,"f",(function(){return b})),r.d(e,"u",(function(){return h})),r.d(e,"v",(function(){return g})),r.d(e,"t",(function(){return v})),r.d(e,"e",(function(){return y})),r.d(e,"d",(function(){return w})),r.d(e,"c",(function(){return k})),r.d(e,"r",(function(){return x})),r.d(e,"q",(function(){return F})),r.d(e,"p",(function(){return D}));var a=r("0c6d");function n(t){return a["a"].get("order/lst",t)}function o(){return a["a"].get("order/chart")}function i(t){return a["a"].get("order/title",t)}function s(t){return a["a"].get("store/order/update/".concat(t,"/form"))}function l(t){return a["a"].get("store/order/delivery/".concat(t,"/form"))}function c(t){return a["a"].get("order/detail/".concat(t))}function u(t,e){return a["a"].get("order/status/".concat(t),e)}function d(t){return a["a"].get("order/refund/lst",t)}function m(t){return a["a"].get("order/children/".concat(t))}function f(t){return a["a"].get("order/express/".concat(t))}function p(t){return a["a"].get("order/excel",t)}function _(t){return a["a"].get("order/refund/excel",t)}function b(t){return a["a"].get("excel/lst",t)}function h(){return a["a"].get("order/takechart")}function g(t){return a["a"].get("order/takelst",t)}function v(t){return a["a"].get("order/take_title",t)}function y(){return a["a"].get("excel/type")}function w(t){return a["a"].get("delivery/order/lst",t)}function k(t){return a["a"].get("delivery/order/cancel/".concat(t,"/form"))}function x(t){return a["a"].get("delivery/station/payLst",t)}function F(){return a["a"].get("delivery/title")}function D(){return a["a"].get("delivery/belence")}}}]);