shop-point-history.990f3f96.js 14 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["shop-point-history"],{"0ffe":function(e,t,r){"use strict";r("96cf");var n=r("1da1"),a=r("d4ec"),s=r("bee2"),o=r("262e"),i=r("2caf"),u=r("ff2d"),c=r("bc3a"),l=r.n(c),p=r("f121"),h=r.n(p),d=function(e){Object(o["a"])(r,e);var t=Object(i["a"])(r);function r(){var e;return Object(a["a"])(this,r),e=t.call(this),l.a.defaults.baseURL=h.a.HostShop,e}return Object(s["a"])(r,[{key:"getShopToken",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.postAll("Host80","/shop/custom/info/loginByCId",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"customBalance",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.postAll("HostShop","/custom/balance",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"customLntegralList",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.postAll("HostShop","/custom/integral/search/list",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"commodityTypeList",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.postAll("HostShop","/commodity/type/search/list",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"commodityList",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.postAll("HostShop","/commodity/search/list",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"commoditySingle",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.postAll("HostShop","/commodity/search/single",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"orderAdd",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.postAll("HostShop","/order/add",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"orderUpdate",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.postAll("HostShop","/order/update",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"orderCancel",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.postAll("HostShop","/order/cancel",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"orderComplete",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.postAll("HostShop","/order/complete",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"orderList",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.postAll("HostShop","/order/search/list",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"orderSingle",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.postAll("HostShop","/order/search/single",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"addressAdd",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.postAll("HostShop","/custom/address/add",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"addressDelete",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.postAll("HostShop","/custom/address/delete",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"addressUpdate",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.postAll("HostShop","/custom/address/update",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"addressList",value:function(){var e=Object(n["a"])(regeneratorRuntime.mark((function e(){var t,r,n=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.next=3,this.postAll("HostShop","/custom/address/search/list",t);case 3:return r=e.sent,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}]),r}(u["a"]);t["a"]=new d},"5c12":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],attrs:{id:"PointHistory","element-loading-background":"rgba(43, 48, 67, 0.65)","element-loading-spinner":"el-icon-loading"}},[r("div",{staticClass:"crm-title-box"},[r("div",{staticClass:"header"},[r("span",{staticClass:"user"},[r("i",{staticClass:"iconfont iconyonghu1"}),r("span",{directives:[{name:"t",rawName:"v-t",value:"Shop.Global.CID",expression:"'Shop.Global.CID'"}]}),e._v(": "+e._s(e.user)+" ")]),r("span",{staticClass:"point"},[r("span",{directives:[{name:"t",rawName:"v-t",value:"Shop.Global.Points",expression:"'Shop.Global.Points'"}]}),e._v(": "+e._s(e._f("NumberFormat1")(e.point)))])])]),r("div",{staticClass:"main-content"},[r("el-row",{staticClass:"title-box",attrs:{gutter:10}},[r("el-col",{staticClass:"title",attrs:{xs:8,sm:24,md:24,lg:6}},[r("span",{directives:[{name:"t",rawName:"v-t",value:"Shop.Points.IntegralHistory",expression:"'Shop.Points.IntegralHistory'"}],staticClass:"content"})]),r("el-col",{staticClass:"search",attrs:{xs:16,sm:24,md:24,lg:18}},[r("el-date-picker",{staticClass:"crm_date_pick crm-border-radius-no",staticStyle:{"padding-top":"2px"},attrs:{type:"daterange",align:"right","unlink-panels":"","value-format":"yyyy-MM-dd","range-separator":"-",size:"small","start-placeholder":e.$t("placeholder.Start"),"end-placeholder":e.$t("placeholder.End")},model:{value:e.search.date,callback:function(t){e.$set(e.search,"date",t)},expression:"search.date"}}),r("el-button",{staticClass:"crm-border-radius-no crm-border-left-no",attrs:{size:"small",icon:"el-icon-search"},on:{click:e.toSearch}})],1)],1),r("el-row",[r("el-table",{staticClass:"table",staticStyle:{width:"100%"},attrs:{stripe:"","show-summary":"","summary-method":e.getSummaries,data:e.mock_data}},[r("el-table-column",{attrs:{label:e.$t("Shop.Points.SourceOfPoints"),width:"200",prop:"source"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.source||"--")+" ")]}}])}),r("el-table-column",{attrs:{label:e.$t("Shop.Points.Type"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.type?r("div",{staticClass:"content"},[r("span",{directives:[{name:"t",rawName:"v-t",value:"Shop.Points.NewlyAdded",expression:"'Shop.Points.NewlyAdded'"}]})]):e._e(),2==t.row.type?r("div",{staticClass:"content"},[r("span",{directives:[{name:"t",rawName:"v-t",value:"Shop.Points.Deduction",expression:"'Shop.Points.Deduction'"}]})]):e._e()]}}])}),r("el-table-column",{attrs:{label:e.$t("Shop.Points.DateTime"),width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",{staticClass:"content"},[e._v(e._s(t.row.date||"--"))])]}}])}),r("el-table-column",{attrs:{label:e.$t("Shop.Points.ProductFraction"),width:"180",prop:"integral"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.integral||"0")+" ")]}}])}),r("el-table-column",{attrs:{label:e.$t("Shop.Points.Remarks"),prop:"note"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s("cn"==e.lang?t.row.channelName||"--":t.row.channelNameEn||"--")+" ")]}}])})],1)],1),e.pagerInfo.rowTotal?r("el-pagination",{staticClass:"pagination",attrs:{background:"",layout:"prev, pager, next","page-size":e.pagerInfo.row,total:e.pagerInfo.rowTotal},on:{"current-change":e.handleCurrentChange}}):e._e()],1)])},a=[],s=(r("c975"),r("d3b7"),r("ac1f"),r("25f0"),r("841c"),r("1276"),r("5530")),o=(r("96cf"),r("1da1")),i=r("0ffe"),u=r("f121"),c=r.n(u),l=c.a.Code,p={name:"PointHistory",data:function(){return{pictLoading:!1,user:"--",point:"--",option:-3,options:[{value:-3,label:"全部"},{value:-2,label:"后台取消"},{value:-1,label:"客户取消"},{value:0,label:"已支付"},{value:1,label:"已发货"},{value:2,label:"订单完成"}],daterange:"",mock_data:[],search:{date:[],startDate:"",endDate:""},combined:{},pagerInfo:{row:10,current:1,pageTotal:0,rowTotal:0}}},computed:{lang:function(){return this.Session.Get("lang")}},methods:{NumberFormatAll:function(e){if("***"==e)return"***";if(isNaN(e))return 0;var t=e.toString();if(t.indexOf("-")>-1){t=t.split("-")[1];var r=t.split("."),n=r[0].length;if(n<3)return e;for(var a=0,s="",o=n-3;o>=0;o-=3)s=r[0].substr(o,3)+(""==s?"":",")+s,a=o;return a>0&&(s=r[0].substr(0,a)+(""==s?"":",")+s),"-"+s+(1==r.length?"":"."+r[1])}var i=t.split("."),u=i[0].length;if(u<3)return e;for(var c=0,l="",p=u-3;p>=0;p-=3)l=i[0].substr(p,3)+(""==l?"":",")+l,c=p;return c>0&&(l=i[0].substr(0,c)+(""==l?"":",")+l),l+(1==i.length?"":"."+i[1])},getSummaries:function(){var e=[this.$i18n.t("Label.Total"),"","",this.combined.integral?this.NumberFormatAll(this.combined.integral):0,""];return e},toSearch:function(){this.pagerInfo.current=1,this.searchFunc()},handleSizeChange:function(e){this.pagerInfo.row=e,this.searchFunc()},handleCurrentChange:function(e){this.pagerInfo.current=e,this.searchFunc()},getPoint:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,i["a"].customBalance();case 2:r=t.sent,r.code==l.StatusOK?e.point=r.data:e.$pigeon.MessageError(r.msg);case 4:case"end":return t.stop()}}),t)})))()},searchFunc:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.pictLoading=!0,null==e.search.date||0==e.search.date.length?(e.search.startDate="",e.search.endDate=""):(e.search.startDate=e.search.date[0],e.search.endDate=e.search.date[1]),t.next=4,i["a"].customLntegralList(Object(s["a"])(Object(s["a"])({},e.search),{},{page:{current:e.pagerInfo.current,row:e.pagerInfo.row}}));case 4:r=t.sent,r.code==l.StatusOK?(e.mock_data=r.data,null!=r.page?(e.pagerInfo.rowTotal=r.page.rowTotal,e.pagerInfo.pageTotal=r.page.pageTotal):e.pagerInfo.rowTotal=0,null!=r.sum?e.combined=r.sum:e.combined={},e.$pigeon.MessageOK(e.$i18n.t("Msg.SearchSuccess")),e.pictLoading=!1):(e.$pigeon.MessageError(r.msg),e.pictLoading=!1);case 6:case"end":return t.stop()}}),t)})))()}},mounted:function(){this.user=JSON.parse(this.Session.Get("user",!0)).customInfo.cId,this.getPoint(),this.searchFunc()}},h=p,d=(r("f6fb"),r("2877")),m=Object(d["a"])(h,n,a,!1,null,null,null);t["default"]=m.exports},"76e2":function(e,t,r){},f6fb:function(e,t,r){"use strict";var n=r("76e2"),a=r.n(n);a.a}}]);