1 line
20 KiB
JavaScript
1 line
20 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-78dfa940"],{"0e7c":function(t,n,e){"use strict";e.r(n);var r=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"divBox"},[e("el-card",{staticClass:"box-card"},[e("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e("div",{staticClass:"container"},[e("cards-data",{attrs:{"card-lists":t.cardLists}}),t._v(" "),e("el-form",{attrs:{inline:"",size:"small","label-width":"80px"}},[e("el-form-item",{attrs:{label:"搜索:"}},[e("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入用户ID用户昵称、标题",clearable:""},nativeOn:{keyup:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(n){t.$set(t.tableFrom,"keyword",n)},expression:"tableFrom.keyword"}},[e("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(n){return t.getList(1)}},slot:"append"})],1)],1),t._v(" "),e("el-form-item",{staticClass:"width100",attrs:{label:"选择时间:"}},[e("el-date-picker",{staticStyle:{width:"250px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(n){t.timeVal=n},expression:"timeVal"}})],1),t._v(" "),e("el-form-item",{staticClass:"width100"},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.exports}},[t._v("导出")])],1)],1)],1)]),t._v(" "),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini"}},[e("el-table-column",{attrs:{prop:"bill_id",label:"ID","min-width":"50"}}),t._v(" "),e("el-table-column",{attrs:{label:"用户昵称",prop:"nickname","min-width":"150"}}),t._v(" "),e("el-table-column",{attrs:{label:"积分标题",prop:"title","min-width":"120"}}),t._v(" "),e("el-table-column",{attrs:{label:"积分变动",prop:"number","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(n){return[1==n.row.pm?e("span",{staticStyle:{color:"#ff3b30"}},[t._v("+"+t._s(n.row.number))]):t._e(),t._v(" "),0==n.row.pm?e("span",{staticStyle:{color:"#82e493"}},[t._v("-"+t._s(n.row.number))]):t._e()]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"当前积分额度",prop:"balance","min-width":"90"}}),t._v(" "),e("el-table-column",{attrs:{prop:"mark",label:"备注","min-width":"150"}}),t._v(" "),e("el-table-column",{attrs:{prop:"create_time",label:"添加时间","min-width":"90"}})],1),t._v(" "),e("div",{staticClass:"block"},[e("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},o=[],u=e("c7eb"),c=(e("96cf"),e("1da1")),a=e("b7be"),i=e("30dc"),s=e("0f56"),l=e("2e83"),f=e("83d6"),d={name:"preSaleProductList",components:{fileList:i["a"],cardsData:s["a"]},data:function(){return{timeVal:[],listLoading:!0,roterPre:f["roterPre"],tableData:{data:[],total:0},tableFrom:{page:1,limit:20,keyword:"",date:""},loading:!1,cardLists:[]}},watch:{},mounted:function(){this.getList(""),this.getTitle()},methods:{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("")},exports:function(){var t=Object(c["a"])(Object(u["a"])().mark((function t(){var n,e,r,o,c;return Object(u["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=JSON.parse(JSON.stringify(this.tableFrom)),e=[],n.page=1,r=1,o={},c=0;case 5:if(!(c<r)){t.next=14;break}return t.next=8,this.downData(n);case 8:o=t.sent,r=Math.ceil(o.count/n.limit),o.export.length&&(e=e.concat(o.export),n.page++);case 11:c++,t.next=5;break;case 14:return Object(l["a"])(o.header,o.title,e,o.foot,o.filename),t.abrupt("return");case 16:case"end":return t.stop()}}),t,this)})));function n(){return t.apply(this,arguments)}return n}(),downData:function(t){return new Promise((function(n,e){Object(a["Kb"])(t).then((function(t){return n(t.data)}))}))},exportRecord:function(){var t=this;Object(a["Kb"])(this.tableFrom).then((function(n){var e=t.$createElement;t.$msgbox({title:"提示",message:e("p",null,[e("span",null,'文件正在生成中,请稍后点击"'),e("span",{style:"color: teal"},"导出记录"),e("span",null,'"查看~ ')]),confirmButtonText:"我知道了"}).then((function(n){t.$router.push({path:t.roterPre+"/group/exportList"})}))})).catch((function(n){t.$message.error(n.message)}))},getTitle:function(){var t=this;Object(a["fb"])().then((function(n){t.cardLists=n.data})).catch((function(n){t.$message.error(n.message)}))},getList:function(t){var n=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(a["eb"])(this.tableFrom).then((function(t){n.tableData.data=t.data.list,n.tableData.total=t.data.count,n.listLoading=!1})).catch((function(t){n.listLoading=!1,n.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")}}},g=d,p=(e("9b7e"),e("2877")),b=Object(p["a"])(g,r,o,!1,null,"a167ce8c",null);n["default"]=b.exports},2364:function(t,n,e){},"2e83":function(t,n,e){"use strict";e.d(n,"a",(function(){return a}));e("28a5");var r=e("8122"),o=e("e8ae"),u=e.n(o),c=e("21a6");function a(t,n,e,o,a,i){var s,l=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],d=1,g=new u.a.Workbook,p=t.length;function b(t){var n=Array.isArray(t)?t[0]:t,e=Array.isArray(t)?t[1]:{};s=g.addWorksheet(n,e)}function m(t,n){if(!Object(r["isEmpty"])(t)){t=Array.isArray(t)?t:t.split(",");for(var e=0;e<t.length;e++){var o=s.getRow(e+1);o.getCell(1).value=t[e],o.height=30,o.font={bold:!0,size:20,vertAlign:"subscript"},o.alignment={vertical:"bottom",horizontal:"center"},o.outlineLevel=1,s.mergeCells(e+1,1,e+1,n),o.commit(),d++}}}function h(t){if(!Object(r["isEmpty"])(t)){for(var n=s.getRow(d),e=1;e<=t.length;e++)n.getCell(e).value=t[e-1];n.height=25,n.width=50,n.font={bold:!0,size:18,vertAlign:"subscript"},n.alignment={vertical:"bottom",horizontal:"center"},n.outlineLevel=1,n.commit(),d++}}function v(t){if(!Object(r["isEmpty"])(t))for(var n=0;n<t.length;n++){for(var e=d,o=s.getRow(d),u=!1,c=0,a=0,i=0,l=0;l<t[n].length;l++)Array.isArray(t[n][l])?(c=i,u=!0,y(t[n][l],i),i+=t[n][l][0].length,a=i):(o.getCell(x(i)).value=t[n][l],o.getCell(x(i)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},o.alignment={vertical:"middle",horizontal:"center"},i++);u&&w(e,d,c,a),o.height=25,o.commit(),d++}}function y(t,n){for(var e=t.length,r=e-1,o=0;o<t.length;o++){for(var u=s.getRow(d),c=0;c<t[o].length;c++)u.getCell(x(n+c)).value=t[o][c],u.getCell(x(n+c)).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},u.alignment={vertical:"middle",horizontal:"center"};u.height=25,u.commit(),o<r&&d++}}function w(t,n,e,r){for(var o=0;o<p;o++)(o<e||o>=r)&&s.mergeCells(x(o)+t+":"+x(o)+n)}function k(t){if(!Object(r["isEmpty"])(t))if(Array.isArray(t))for(var n=0;n<t.length;n++){var e=s.getRow(d);e.getCell(1).value=t[n],e.getCell(1).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},e.alignment={vertical:"middle",horizontal:"left"},s.mergeCells("A"+d+":"+x(p-1)+d),d++}else{var o=s.getRow(d);o.getCell(1).value=t[f],o.getCell(1).border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},o.alignment={vertical:"middle",horizontal:"left"},s.mergeCells("A"+d+":"+x(p-1)+d)}}function x(t){if(t<26)return l[t];var n=t%26,e=Math.floor(t%26);return l[e]+l[n]}function _(t){t||(t=(new Date).getTime()),g.xlsx.writeBuffer().then((function(n){var e=new Blob([n],{type:"application/octet-stream"});c["saveAs"](e,t+".xlsx")}))}b(i),m(n,p),h(t),v(e),k(o),_(a)}},"9b7e":function(t,n,e){"use strict";e("2364")},b7be:function(t,n,e){"use strict";e.d(n,"Gb",(function(){return o})),e.d(n,"Fb",(function(){return u})),e.d(n,"Bb",(function(){return c})),e.d(n,"Ab",(function(){return a})),e.d(n,"zb",(function(){return i})),e.d(n,"Cb",(function(){return s})),e.d(n,"Db",(function(){return l})),e.d(n,"Eb",(function(){return f})),e.d(n,"N",(function(){return d})),e.d(n,"I",(function(){return g})),e.d(n,"J",(function(){return p})),e.d(n,"L",(function(){return b})),e.d(n,"K",(function(){return m})),e.d(n,"tb",(function(){return h})),e.d(n,"H",(function(){return v})),e.d(n,"o",(function(){return y})),e.d(n,"u",(function(){return w})),e.d(n,"m",(function(){return k})),e.d(n,"l",(function(){return x})),e.d(n,"n",(function(){return _})),e.d(n,"ub",(function(){return C})),e.d(n,"vb",(function(){return L})),e.d(n,"Qb",(function(){return z})),e.d(n,"r",(function(){return F})),e.d(n,"q",(function(){return O})),e.d(n,"v",(function(){return j})),e.d(n,"a",(function(){return A})),e.d(n,"Pb",(function(){return D})),e.d(n,"Mb",(function(){return S})),e.d(n,"Ob",(function(){return E})),e.d(n,"Lb",(function(){return R})),e.d(n,"Nb",(function(){return M})),e.d(n,"Ib",(function(){return P})),e.d(n,"Rb",(function(){return T})),e.d(n,"p",(function(){return V})),e.d(n,"t",(function(){return $})),e.d(n,"s",(function(){return B})),e.d(n,"F",(function(){return J})),e.d(n,"x",(function(){return K})),e.d(n,"A",(function(){return N})),e.d(n,"B",(function(){return I})),e.d(n,"z",(function(){return W})),e.d(n,"C",(function(){return q})),e.d(n,"G",(function(){return G})),e.d(n,"E",(function(){return Q})),e.d(n,"D",(function(){return H})),e.d(n,"w",(function(){return U})),e.d(n,"y",(function(){return X})),e.d(n,"M",(function(){return Y})),e.d(n,"fb",(function(){return Z})),e.d(n,"eb",(function(){return tt})),e.d(n,"Kb",(function(){return nt})),e.d(n,"X",(function(){return et})),e.d(n,"W",(function(){return rt})),e.d(n,"Tb",(function(){return ot})),e.d(n,"T",(function(){return ut})),e.d(n,"R",(function(){return ct})),e.d(n,"S",(function(){return at})),e.d(n,"Jb",(function(){return it})),e.d(n,"O",(function(){return st})),e.d(n,"f",(function(){return lt})),e.d(n,"e",(function(){return ft})),e.d(n,"d",(function(){return dt})),e.d(n,"c",(function(){return gt})),e.d(n,"b",(function(){return pt})),e.d(n,"P",(function(){return bt})),e.d(n,"k",(function(){return mt})),e.d(n,"i",(function(){return ht})),e.d(n,"h",(function(){return vt})),e.d(n,"j",(function(){return yt})),e.d(n,"g",(function(){return wt})),e.d(n,"ab",(function(){return kt})),e.d(n,"Y",(function(){return xt})),e.d(n,"cb",(function(){return _t})),e.d(n,"Z",(function(){return Ct})),e.d(n,"bb",(function(){return Lt})),e.d(n,"Q",(function(){return zt})),e.d(n,"rb",(function(){return Ft})),e.d(n,"qb",(function(){return Ot})),e.d(n,"ob",(function(){return jt})),e.d(n,"sb",(function(){return At})),e.d(n,"V",(function(){return Dt})),e.d(n,"nb",(function(){return St})),e.d(n,"pb",(function(){return Et})),e.d(n,"mb",(function(){return Rt})),e.d(n,"ib",(function(){return Mt})),e.d(n,"kb",(function(){return Pt})),e.d(n,"jb",(function(){return Tt})),e.d(n,"db",(function(){return Vt})),e.d(n,"U",(function(){return $t})),e.d(n,"gb",(function(){return Bt})),e.d(n,"lb",(function(){return Jt})),e.d(n,"hb",(function(){return Kt}));var r=e("0c6d");function o(t){return r["a"].get("/store/coupon/platformLst",t)}function u(t){return r["a"].get("/store/coupon/update/".concat(t,"/form"))}function c(t){return r["a"].get("/store/coupon/show/".concat(t))}function a(t){return r["a"].delete("store/coupon/delete/".concat(t))}function i(t){return r["a"].get("/store/coupon/sys/clone/".concat(t,"/form"))}function s(t){return r["a"].get("store/coupon/sys/issue",t)}function l(t,n){return r["a"].get("store/coupon/show_lst/".concat(t),n)}function f(t){return r["a"].get("/store/coupon/send/lst",t)}function d(t){return r["a"].post("store/coupon/send",t)}function g(t){return r["a"].get("store/coupon/detail/".concat(t))}function p(t){return r["a"].get("store/coupon/lst",t)}function b(t,n){return r["a"].post("store/coupon/status/".concat(t),{status:n})}function m(){return r["a"].get("store/coupon/create/form")}function h(t){return r["a"].get("store/coupon/issue",t)}function v(t){return r["a"].delete("store/coupon/delete/".concat(t))}function y(t){return r["a"].get("broadcast/room/lst",t)}function w(t,n){return r["a"].post("broadcast/room/status/".concat(t),n)}function k(t){return r["a"].delete("broadcast/room/delete/".concat(t))}function x(t){return r["a"].get("broadcast/room/apply/form/".concat(t))}function _(t){return r["a"].get("broadcast/room/detail/".concat(t))}function C(t,n){return r["a"].post("broadcast/room/feedsPublic/".concat(t),{status:n})}function L(t,n){return r["a"].post("broadcast/room/comment/".concat(t),{status:n})}function z(t,n){return r["a"].post("broadcast/room/closeKf/".concat(t),{status:n})}function F(t){return r["a"].get("broadcast/goods/lst",t)}function O(t){return r["a"].get("broadcast/goods/detail/".concat(t))}function j(t,n){return r["a"].post("broadcast/goods/status/".concat(t),n)}function A(t){return r["a"].get("broadcast/goods/apply/form/".concat(t))}function D(){return r["a"].get("seckill/config/create/form")}function S(t){return r["a"].get("seckill/config/lst",t)}function E(t){return r["a"].get("seckill/config/update/".concat(t,"/form"))}function R(t){return r["a"].delete("seckill/config/delete/".concat(t))}function M(t,n){return r["a"].post("seckill/config/status/".concat(t),{status:n})}function P(t,n){return r["a"].get("seckill/product/detail/".concat(t),n)}function T(t,n){return r["a"].get("broadcast/room/goods/".concat(t),n)}function V(t){return r["a"].delete("broadcast/goods/delete/".concat(t))}function $(t,n){return r["a"].post("broadcast/room/sort/".concat(t),n)}function B(t,n){return r["a"].post("broadcast/goods/sort/".concat(t),n)}function J(t){return r["a"].post("config/others/group_buying",t)}function K(){return r["a"].get("config/others/group_buying")}function N(t){return r["a"].get("store/product/group/lst",t)}function I(t){return r["a"].get("store/product/group/get/".concat(t))}function W(t){return r["a"].get("store/product/group/detail/".concat(t))}function q(t){return r["a"].post("store/product/group/status",t)}function G(t,n){return r["a"].post("store/product/group/is_show/".concat(t),{status:n})}function Q(t){return r["a"].get("store/product/group/get/".concat(t))}function H(t,n){return r["a"].post("store/product/group/update/".concat(t),n)}function U(t){return r["a"].get("store/product/group/buying/lst",t)}function X(t,n){return r["a"].get("store/product/group/buying/detail/".concat(t),n)}function Y(t,n){return r["a"].get("store/coupon/product/".concat(t),n)}function Z(){return r["a"].get("user/integral/title")}function tt(t){return r["a"].get("user/integral/lst",t)}function nt(t){return r["a"].get("user/integral/excel",t)}function et(t){return r["a"].get("user/integral/hold_list",t)}function rt(){return r["a"].get("user/integral/config")}function ot(t){return r["a"].post("user/integral/config",t)}function ut(t){return r["a"].get("discounts/lst",t)}function ct(t,n){return r["a"].post("discounts/status/".concat(t),{status:n})}function at(t){return r["a"].get("discounts/detail/".concat(t))}function it(t){return r["a"].get("marketing/spu/lst",t)}function st(t){return r["a"].post("activity/atmosphere/create",t)}function lt(t,n){return r["a"].post("activity/atmosphere/update/".concat(t),n)}function ft(t){return r["a"].get("activity/atmosphere/lst",t)}function dt(t){return r["a"].get("activity/atmosphere/detail/".concat(t))}function gt(t,n){return r["a"].post("activity/atmosphere/status/".concat(t),{status:n})}function pt(t){return r["a"].delete("activity/atmosphere/delete/".concat(t))}function bt(t){return r["a"].post("activity/border/create",t)}function mt(t,n){return r["a"].post("activity/border/update/".concat(t),n)}function ht(t){return r["a"].get("activity/border/lst",t)}function vt(t){return r["a"].get("activity/border/detail/".concat(t))}function yt(t,n){return r["a"].post("activity/border/status/".concat(t),{status:n})}function wt(t){return r["a"].delete("activity/border/delete/".concat(t))}function kt(){return r["a"].get("points/cate/lst")}function xt(){return r["a"].get("points/cate/create/form")}function _t(t){return r["a"].get("points/cate/update/form/".concat(t))}function Ct(t){return r["a"].delete("points/cate/delete/".concat(t))}function Lt(t,n){return r["a"].post("points/cate/status/".concat(t),{status:n})}function zt(t){return r["a"].post("points/product/create",t)}function Ft(t,n){return r["a"].post("points/product/update/".concat(t),n)}function Ot(t){return r["a"].get("points/product/lst",t)}function jt(t){return r["a"].delete("points/product/delete/".concat(t))}function At(t,n){return r["a"].post("points/product/status/".concat(t),{status:n})}function Dt(t,n){return r["a"].post("points/product/get_attr_value/".concat(t),n)}function St(){return r["a"].get("points/cate/select")}function Et(t){return r["a"].get("points/product/detail/".concat(t))}function Rt(t){return r["a"].get("points/order/lst",t)}function Mt(t){return r["a"].get("points/order/detail/".concat(t))}function Pt(t){return r["a"].get("points/order/express/".concat(t))}function Tt(t){return r["a"].get("points/order/excel",t)}function Vt(t,n){return r["a"].post("points/order/delivery/".concat(t),n)}function $t(t){return r["a"].get("store/express/options",t)}function Bt(t){return r["a"].get("points/order/mark/".concat(t,"/form"))}function Jt(t,n){return r["a"].get("points/order/status/".concat(t),n)}function Kt(t){return r["a"].delete("points/order/delete/".concat(t))}},f8b7:function(t,n,e){"use strict";e.d(n,"m",(function(){return o})),e.d(n,"b",(function(){return u})),e.d(n,"a",(function(){return c})),e.d(n,"o",(function(){return a})),e.d(n,"k",(function(){return i})),e.d(n,"l",(function(){return s})),e.d(n,"n",(function(){return l})),e.d(n,"s",(function(){return f})),e.d(n,"i",(function(){return d})),e.d(n,"j",(function(){return g})),e.d(n,"g",(function(){return p})),e.d(n,"h",(function(){return b})),e.d(n,"f",(function(){return m})),e.d(n,"u",(function(){return h})),e.d(n,"v",(function(){return v})),e.d(n,"t",(function(){return y})),e.d(n,"e",(function(){return w})),e.d(n,"d",(function(){return k})),e.d(n,"c",(function(){return x})),e.d(n,"r",(function(){return _})),e.d(n,"q",(function(){return C})),e.d(n,"p",(function(){return L}));var r=e("0c6d");function o(t){return r["a"].get("order/lst",t)}function u(){return r["a"].get("order/chart")}function c(t){return r["a"].get("order/title",t)}function a(t){return r["a"].get("store/order/update/".concat(t,"/form"))}function i(t){return r["a"].get("store/order/delivery/".concat(t,"/form"))}function s(t){return r["a"].get("order/detail/".concat(t))}function l(t,n){return r["a"].get("order/status/".concat(t),n)}function f(t){return r["a"].get("order/refund/lst",t)}function d(t){return r["a"].get("order/children/".concat(t))}function g(t){return r["a"].get("order/express/".concat(t))}function p(t){return r["a"].get("order/excel",t)}function b(t){return r["a"].get("order/refund/excel",t)}function m(t){return r["a"].get("excel/lst",t)}function h(){return r["a"].get("order/takechart")}function v(t){return r["a"].get("order/takelst",t)}function y(t){return r["a"].get("order/take_title",t)}function w(){return r["a"].get("excel/type")}function k(t){return r["a"].get("delivery/order/lst",t)}function x(t){return r["a"].get("delivery/order/cancel/".concat(t,"/form"))}function _(t){return r["a"].get("delivery/station/payLst",t)}function C(){return r["a"].get("delivery/title")}function L(){return r["a"].get("delivery/belence")}}}]); |