(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5f991144","chunk-ae7cb8dc","chunk-ae7cb8dc"],{"11be":function(e,t,n){},"22c1":function(e,t,n){"use strict";n("8d8d")},2376:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("custom-bread",{attrs:{breadList:e.breadList}}),n("div",{staticClass:"table-page-search-wrapper"},[n("a-card",{staticStyle:{"margin-top":"24px"},attrs:{bordered:!1}},[n("a-form",{attrs:{layout:"inline"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search(t)}}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{md:8,sm:24,xxl:6}},[n("a-form-item",{attrs:{label:"兑换时间"}},[n("a-range-picker",{staticStyle:{width:"100%"},attrs:{placeholder:["开始时间","结束时间"],ranges:{"今天":[e.moment(),e.moment()],"昨天":[e.moment().subtract(1,"days"),e.moment().subtract(1,"days")],"本周":[e.moment().startOf("week"),e.moment()],"上周":[e.moment().day(-6),e.moment().day(0)],"本月":[e.moment().startOf("month"),e.moment()],"上月":[e.moment().subtract(1,"months").startOf("month"),e.moment().subtract("month",1).endOf("month")]}},on:{change:e.handleCommenTimeChange},model:{value:e.exchangeTime,callback:function(t){e.exchangeTime=t},expression:"exchangeTime"}})],1)],1),n("a-col",{attrs:{md:8,sm:24,xxl:6}},[n("a-form-item",{attrs:{label:"商品类型"}},[n("a-select",{model:{value:e.requestQuery.link_type,callback:function(t){e.$set(e.requestQuery,"link_type",t)},expression:"requestQuery.link_type"}},[n("a-select-option",{attrs:{value:""}},[e._v("全部")]),n("a-select-option",{attrs:{value:1}},[e._v("商品")]),n("a-select-option",{attrs:{value:2}},[e._v("优惠券")])],1)],1)],1),n("a-col",{attrs:{md:8,sm:24,xxl:6}},[n("a-form-item",{attrs:{label:"商品ID"}},[n("a-input",{staticClass:"import",staticStyle:{width:"100%"},attrs:{placeholder:"请输入商品ID或优惠券ID"},on:{change:function(t){return e.handleNumberInputChange(t,"link_id")}},model:{value:e.requestQuery.link_id,callback:function(t){e.$set(e.requestQuery,"link_id","string"===typeof t?t.trim():t)},expression:"requestQuery.link_id"}})],1)],1),n("a-col",{attrs:{md:8,sm:24,xxl:6}},[n("a-form-item",{attrs:{label:"商品名称"}},[n("a-input",{staticClass:"import",staticStyle:{width:"100%"},attrs:{placeholder:"请输入商品名称或优惠券标题"},model:{value:e.requestQuery.link_name,callback:function(t){e.$set(e.requestQuery,"link_name","string"===typeof t?t.trim():t)},expression:"requestQuery.link_name"}})],1)],1),n("a-col",{attrs:{md:8,sm:24,xxl:6}},[n("a-form-item",{attrs:{label:"用户ID"}},[n("a-input",{staticClass:"import",staticStyle:{width:"100%"},attrs:{placeholder:"请输入"},on:{change:function(t){return e.handleNumberInputChange(t,"user_id")}},model:{value:e.requestQuery.user_id,callback:function(t){e.$set(e.requestQuery,"user_id","string"===typeof t?t.trim():t)},expression:"requestQuery.user_id"}})],1)],1),n("a-col",{attrs:{md:8,sm:24,xxl:6}},[n("a-form-item",{attrs:{label:"订单号"}},[n("a-input",{staticClass:"import",staticStyle:{width:"100%"},attrs:{placeholder:"请输入"},model:{value:e.requestQuery.increment_id,callback:function(t){e.$set(e.requestQuery,"increment_id","string"===typeof t?t.trim():t)},expression:"requestQuery.increment_id\t"}})],1)],1)],1),n("a-row",[n("a-col",[n("a-button",{attrs:{type:"primary"},on:{click:e.search}},[e._v(e._s(e.$t("message.Search")))]),n("a-button",{style:{marginLeft:"6px"},on:{click:e.reset}},[e._v(e._s(e.$t("message.Reset")))])],1)],1)],1)],1)],1),n("div",{staticStyle:{"margin-top":"16px"}},[n("a-card",[n("record-list",{attrs:{loading:e.loading,dataSource:e.dataSource}}),n("p-agination",{attrs:{total:e.pageTotal,currentPage:e.query.page,computedPageNumber:e.computedPageNumber,pageSize:e.query.limit},on:{jumpTableChange:e.jumpTableChange,selectPageSizeChange:e.selectPageSizeChange}})],1)],1)],1)},i=[],s=n("5633"),r=n("492ec"),l=n("bf43"),c=n("ac0d"),o=n("c24f"),d=n("c1df"),u=n.n(d),m={components:{CustomBread:s["a"],RecordList:r["a"],PAgination:l["a"]},mixins:[c["h"]],data:function(){return{breadList:{current:"兑换记录",loopBread:[{name:"1",title:"工作台",href:"/dashboard"},{name:"2",title:"用户"},{name:"3",title:"积分"},{name:"4",title:"兑换记录"}]},requestQuery:{exchange_time_start:"",exchange_time_end:"",link_type:"",link_id:"",link_name:"",user_id:"",increment_id:""},exchangeTime:null,loading:!1}},methods:{moment:u.a,getTableList:function(){var e=this,t={};delete this.query.website_id,Object.assign(t,this.query,this.requestQuery),this.loading=!0,Object(o["t"])(t).then((function(t){if(e.loading=!1,t){var n=t.data;e.dataSource=n.rows,e.pageTotal=n.total}}))},search:function(){this.query.page=1,this.getTableList()},handleNumberInputChange:function(e,t){var n=e.target.value;/\d+/.test(n)||(this.requestQuery[t]="")},reset:function(){this.requestQuery={exchange_time_start:"",exchange_time_end:"",link_type:"",link_id:"",user_id:"",link_name:"",increment_id:""},this.exchangeTime=null,this.query.page=1,this.getTableList()},handleCommenTimeChange:function(e,t){Object.assign(this.requestQuery,{exchange_time_start:t[0],exchange_time_end:t[1]})}}},b=m,p=n("2877"),f=Object(p["a"])(b,a,i,!1,null,null,null);t["default"]=f.exports},"3fdb":function(e,t,n){"use strict";n("11be")},"492ec":function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return g}));var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"shop-list"},[a("a-table",{attrs:{loading:e.loading,dataSource:e.dataSource,columns:e.columns,pagination:!1,rowSelection:e.rowSelection,rowKey:"id"},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"info",fn:function(t,i){return[a("div",{staticClass:"info"},[a("div",{staticClass:"info-img"},[i.link_image?a("img",{attrs:{src:i.link_image,alt:"图片"}}):[a("img",{attrs:{src:n("24b4")}})]],2),a("div",{staticStyle:{flex:"1"}},[a("div",{staticClass:"info-title"},[a("a-tooltip",{attrs:{placement:"topLeft"}},[a("template",{slot:"title"},[a("span",[e._v(e._s(i.link_name))])]),a("span",{staticClass:"text-ellipsis-line"},[e._v(e._s(e._f("stringFilter")(i.link_name)))])],2)],1),a("div",[e._v("商品ID: "+e._s(i.link_id))])])])]}},{key:"exchange_price",fn:function(t,n){return e._l(n.exchange_price_info,(function(t,n){return a("div",{key:n},[e._v(" "+e._s(t)+" ")])}))}},{key:"exchange_limit",fn:function(t,n){return[e._v("\n "+e._s(e._f("customNumberFormat")(n.exchange_limit))+" / "+e._s(e._f("customNumberFormat")(n.exchange_total_limit))+"\n ")]}},{key:"action",fn:function(t,n){return[a("router-link",{directives:[{name:"permission",rawName:"v-permission",value:"user:/user/integral/shop/view",expression:"'user:/user/integral/shop/view'"}],attrs:{target:"_blank",to:"/user/integral/shop/detail/"+n.id+"/websiteId/"+e.websiteId}},[e._v("\n "+e._s(e.$t("message.View"))+"\n ")])]}}])})],1)},i=[],s=(n("6b54"),n("a481"),[{title:"商品信息",dataIndex:"info",width:"25%",scopedSlots:{customRender:"info"}},{title:"兑换价",dataIndex:"exchange_price",width:"17%",scopedSlots:{customRender:"exchange_price"}},{title:"可兑数量",dataIndex:"exchange_num",align:"left",width:"10%",sortDirections:["descend","ascend"],sorter:!0,scopedSlots:{customRender:"exchange_num"}},{title:"已兑数量",dataIndex:"already_exchange_num",align:"left",width:"10%",sortDirections:["descend","ascend"],sorter:!0,scopedSlots:{customRender:"already_exchange_num"}},{title:"每次兑换/一共兑换限制",dataIndex:"exchange_limit",width:"160px",align:"left",scopedSlots:{customRender:"exchange_limit"}},{title:"排序",dataIndex:"sort",align:"left",width:"70px",sortDirections:["descend","ascend"],sorter:!0,scopedSlots:{customRender:"sort"}},{title:"状态",dataIndex:"status_name",align:"left",width:"60px"},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"},width:"60px"}]),r={props:{dataSource:{type:Array,default:function(){return[]}},loading:{type:Boolean,default:function(){return!1}},rowSelection:{type:Object,default:function(){}}},filters:{customNumberFormat:function(e){return e?e.toString().replace(/(\d)(?=(?:\d{3})+$)/g,"$1,"):"- -"}},computed:{websiteId:function(){return this.$store.getters.websiteId}},data:function(){return{columns:s}},methods:{handleTableChange:function(e,t,n){var a=n.columnKey,i=n.order,s="";s="descend"===i?"".concat(a,"_desc"):"ascend"===i?"".concat(a,"_asc"):"",this.$emit("sortChange",{order:s})}}},l=r,c=(n("a07f"),n("2877")),o=Object(c["a"])(l,a,i,!1,null,"0fcf2a26",null),d=o.exports,u=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"record-list"},[a("a-table",{attrs:{loading:e.loading,dataSource:e.dataSource,columns:e.columns,pagination:!1,rowKey:"id"},scopedSlots:e._u([{key:"userInfo",fn:function(t,i){return[a("div",{staticClass:"info"},[a("div",{staticClass:"info-img",staticStyle:{width:"40px",height:"40px"}},[i.user_info.avatar_url?a("img",{attrs:{src:i.user_info.avatar_url,alt:"用户头像"}}):[a("img",{attrs:{src:n("24b4")}})]],2),a("div",{staticStyle:{flex:"1"}},[a("router-link",{staticStyle:{"font-size":"14px"},attrs:{to:"/user/detail/"+i.user_id+"/websiteId/"+e.websiteId,target:"_blank"}},[e._v("用户ID: "+e._s(i.user_id))]),a("div",[a("a-tooltip",{attrs:{placement:"topLeft"}},[a("template",{slot:"title"},[a("span",[e._v(e._s(i.user_info.level_name))])]),a("span",{staticClass:"text-ellipsis-line1"},[e._v("会员等级:"+e._s(e._f("stringFilter")(i.user_info.level_name)))])],2)],1)],1)])]}},{key:"linkInfo",fn:function(t,i){return[[a("div",{staticClass:"info"},[a("div",{staticClass:"info-img"},[i.link_image_url?a("img",{attrs:{src:i.link_image_url,alt:"商品图片"}}):[a("img",{attrs:{src:n("24b4")}})]],2),a("div",{staticStyle:{flex:"1"}},[a("div",{staticClass:"info-title"},[a("a-tooltip",{attrs:{placement:"topLeft"}},[a("template",{slot:"title"},[a("span",[e._v(e._s(i.link_name))])]),a("span",{staticClass:"text-ellipsis-line2"},[e._v(e._s(e._f("stringFilter")(i.link_name)))])],2)],1),a("div",[e._v("商品ID: "+e._s(i.link_id))])])])]]}},{key:"exchangeInfo",fn:function(t,n){return[e._v("\n "+e._s(e.formatNum(n.exchange_points))+"积分 "),n.exchange_price?a("span",[e._v(" + "+e._s(n.currency_symbol)+e._s(e.formatNum(n.exchange_price)))]):e._e()]}},{key:"incrementId",fn:function(t){return[e._v("\n "+e._s(t||"- -")+"\n ")]}}])})],1)},m=[],b=[{title:"用户",dataIndex:"user",width:"22%",scopedSlots:{customRender:"userInfo"}},{title:"商品信息",dataIndex:"info",width:"26%",scopedSlots:{customRender:"linkInfo"}},{title:"兑换价",dataIndex:"exchangeInfo",width:"14%",align:"left",scopedSlots:{customRender:"exchangeInfo"}},{title:"兑换数量",dataIndex:"exchange_num",align:"left",width:"10%"},{title:"兑换时间",dataIndex:"exchange_time",align:"left",width:"14%"},{title:"订单号",dataIndex:"increment_id",align:"left",width:"14%",scopedSlots:{customRender:"incrementId"}}],p={props:{dataSource:{type:Array,default:function(){return[]}},loading:{type:Boolean,default:function(){return!1}}},computed:{websiteId:function(){return this.$store.getters.websiteId}},data:function(){return{columns:b}},methods:{formatNum:function(e){return(e+"").replace(/(\d{1,3})(?=(\d{3})+(?:$|\.))/g,"$1,")}}},f=p,_=(n("3fdb"),Object(c["a"])(f,u,m,!1,null,"28473c2e",null)),g=_.exports},5499:function(e,t,n){},5633:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"customBread"},[n("div",{staticClass:"page-header clearfix"},[n("div",{staticClass:"page-header-index-wide",staticStyle:{float:"left"}},[n("a-breadcrumb",{staticClass:"breadcrumb"},e._l(e.breadList.loopBread,(function(t){return n("a-breadcrumb-item",{key:t.name},[t.href?n("router-link",{attrs:{to:{path:t.href}}},[e._v("\n "+e._s(t.title)+"\n ")]):n("span",[e._v(e._s(t.title))])],1)})),1),n("div",{staticClass:"detail"},[n("div",{staticClass:"customBreadcrumb-current"},[n("h1",{staticClass:"title"},[e._v(e._s(e.breadList.current))]),e.breadList.showNote&&e.breadList.isText?n("a-tooltip",{attrs:{placement:"bottomLeft"}},[n("template",{slot:"title"},[n("div",{domProps:{innerHTML:e._s(e.noteRender())}})]),n("a-icon",{staticClass:"customBreadcrumb-icon",attrs:{type:"exclamation-circle"}})],2):e.breadList.showNote?n("a-popover",{attrs:{placement:"bottomLeft",overlayClassName:"custom-crumbcrumb-tips"}},[n("template",{slot:"content"},[n("div",{domProps:{innerHTML:e._s(e.noteRender())}})]),n("a-icon",{staticClass:"customBreadcrumb-icon",attrs:{type:"exclamation-circle"}})],2):e._e()],1)])],1),n("div",{staticClass:"customBreadRight"},[e._t("default")],2)])])},i=[],s={props:{breadList:{type:Object,required:!0}},methods:{noteRender:function(){var e=this.breadList.current;switch(e){case"热搜词":return'\n
商品综合排序规则说明:
\n