1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b2e70724"],{1491:function(t,e,n){"use strict";n.d(e,"B",(function(){return r})),n.d(e,"z",(function(){return o})),n.d(e,"g",(function(){return i})),n.d(e,"C",(function(){return u})),n.d(e,"y",(function(){return s})),n.d(e,"l",(function(){return c})),n.d(e,"r",(function(){return l})),n.d(e,"c",(function(){return d})),n.d(e,"D",(function(){return p})),n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return m})),n.d(e,"o",(function(){return _})),n.d(e,"p",(function(){return g})),n.d(e,"t",(function(){return b})),n.d(e,"x",(function(){return y})),n.d(e,"w",(function(){return v})),n.d(e,"d",(function(){return h})),n.d(e,"e",(function(){return j})),n.d(e,"n",(function(){return O})),n.d(e,"v",(function(){return k})),n.d(e,"j",(function(){return x})),n.d(e,"s",(function(){return I})),n.d(e,"k",(function(){return w})),n.d(e,"i",(function(){return U})),n.d(e,"h",(function(){return Q})),n.d(e,"m",(function(){return S})),n.d(e,"q",(function(){return M})),n.d(e,"A",(function(){return G})),n.d(e,"f",(function(){return B})),n.d(e,"u",(function(){return C}));var a=n("b775");function r(t){return Object(a["a"])({url:"/orders/get_agent_gift_bag",method:"get",params:t})}function o(t){return Object(a["a"])({url:"/orders/add_list_tag",method:"post",data:t})}function i(t){return Object(a["a"])({url:"/orders/BatchAddTag",method:"post",data:t})}function u(t){return Object(a["a"])({url:"/orders/export_list",method:"get",params:t})}function s(){return Object(a["a"])({url:"/activity/getactivityinfo",method:"get"})}function c(t){return Object(a["a"])({url:"/orders/GetActivityLimit",method:"get",params:t})}function l(t){return Object(a["a"])({url:"/UserImg/GetUserInfo",method:"get",params:t})}function d(t){return Object(a["a"])({url:"/UserImg/AddUserImgInfo",method:"post",data:t})}function p(t){return Object(a["a"])({url:"/UserImg/uploadImage",method:"post",data:t})}function f(t){return Object(a["a"])({url:"/UserImg/AddUpdateImg",method:"get",params:t})}function m(t){return Object(a["a"])({url:"/UserImg/AddUpdateImgB",method:"get",params:t})}function _(t){return Object(a["a"])({url:"/UserImg/GetImgStatus",method:"get",params:t})}function g(t){return Object(a["a"])({url:"/UserImg/GetImgStatusB",method:"get",params:t})}function b(t){return Object(a["a"])({url:"/UserImg/GetUserList",method:"get",params:t})}function y(t){return Object(a["a"])({url:"/UserImg/UpdateUserImgInfoB ",method:"post",data:t})}function v(t){return Object(a["a"])({url:"/UserImg/UpdateUserImgInfo",method:"post",data:t})}function h(t){return Object(a["a"])({url:"/UserImg/AgainCreateImg",method:"get",params:t})}function j(t){return Object(a["a"])({url:"/UserImg/AgainCreateImgB",method:"get",params:t})}function O(t){return Object(a["a"])({url:"/UserImg/GetCrownInfo",method:"get",params:t})}function k(t){return Object(a["a"])({url:"/UserImg/UpdateCrownImgInfo",method:"post",data:t})}function x(t){return Object(a["a"])({url:"/UserImg/DeleteUserImg",method:"get",params:t})}function I(t){return Object(a["a"])({url:"/UserImg/GetUserInfos",method:"get",params:t})}function w(t){return Object(a["a"])({url:"/UserImg/ExportAddress",method:"get",params:t})}function U(t){return Object(a["a"])({url:"/CrownBigGiftInfo",method:"get",params:t})}function Q(t){return Object(a["a"])({url:"/BigGiftInfo",method:"get",params:t})}function S(t){return Object(a["a"])({url:"/BigGift/GetApplyList",method:"get",params:t})}function M(t){return Object(a["a"])({url:"/BigGift/GetUserInfo",method:"get",params:t})}function G(t){return Object(a["a"])({url:"/BigGift/editBelongToUser",method:"post",data:t})}function B(t){return Object(a["a"])({url:"/BigGift/ApplySuccess",method:"post",data:t})}function C(t){return Object(a["a"])({url:"/BigGift/UpdateApply",method:"post",data:t})}},"2f21":function(t,e,n){"use strict";var a=n("79e5");t.exports=function(t,e){return!!t&&a((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},"34d1":function(t,e,n){"use strict";n("4b3f")},"4b3f":function(t,e,n){},"55dd":function(t,e,n){"use strict";var a=n("5ca1"),r=n("d8e8"),o=n("4bf8"),i=n("79e5"),u=[].sort,s=[1,2,3];a(a.P+a.F*(i((function(){s.sort(void 0)}))||!i((function(){s.sort(null)}))||!n("2f21")(u)),"Array",{sort:function(t){return void 0===t?u.call(o(this)):u.call(o(this),r(t))}})},9813:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("div",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:t.loadingFull,expression:"loadingFull",modifiers:{fullscreen:!0,lock:!0}}]}),t._v(" "),n("div",{staticClass:"search-container"},[n("el-input",{staticStyle:{width:"300px"},attrs:{type:"text",placeholder:"下单人昵称/姓名/手机号"},nativeOn:{keyup:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.listQuery.page_index=1,t.getList()}},model:{value:t.listQuery.search_name,callback:function(e){t.$set(t.listQuery,"search_name",e)},expression:"listQuery.search_name"}}),t._v(" "),n("el-select",{staticStyle:{width:"400px"},model:{value:t.listQuery.activity_id,callback:function(e){t.$set(t.listQuery,"activity_id",e)},expression:"listQuery.activity_id"}},[n("el-option",{attrs:{label:"全部",value:""}}),t._v(" "),t._l(t.activitys,(function(t){return n("el-option",{key:t.id,attrs:{label:t.title,value:t.id}})}))],2),t._v(" "),n("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd HH:mm",format:"yyyy-MM-dd HH:mm"},model:{value:t.listQuery.time,callback:function(e){t.$set(t.listQuery,"time",e)},expression:"listQuery.time"}}),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){t.listQuery.page_index=1,t.getList()}}},[t._v("搜索")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:t.toExport}},[t._v("导出")])],1),t._v(" "),n("div",{staticClass:"total_money"},[n("span",[t._v("总订货金额: "),n("i",{staticClass:"red"},[t._v(t._s(t.parseMoney(t.total.all)))])]),t._v(" "),n("span",[t._v("总付款金额: "),n("i",{staticClass:"red"},[t._v(t._s(t.parseMoney(t.total.pay)))])]),t._v(" "),n("span",[t._v("总未付款金额: "),n("i",{staticClass:"red"},[t._v(t._s(t.parseMoney(t.total.no_pay)))])]),t._v(" "),n("span",[t._v("总资金账户余额: "),n("i",{staticClass:"red"},[t._v(t._s(t.parseMoney(t.total.all_money)))])])]),t._v(" "),n("el-table",{staticClass:"tableBorder",attrs:{border:"",stripe:"","header-cell-style":{background:"#f8fbfc"},data:t.limitTable},on:{"sort-change":t.MoneySort}},[n("el-table-column",{attrs:{type:"index",index:t.index,label:"序号",width:"80",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row.no_pay_account,r=e.$index;return n("span",{class:a>0?"red":""},[t._v(t._s(r+1+Number(t.listQuery.page_size)*(Number(t.listQuery.page_index)-1)))])}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"nickname",label:"备注昵称"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row,r=a.nickname,o=a.no_pay_account;return n("span",{class:o>0?"red":""},[t._v(t._s(r))])}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"realname",label:"客户姓名"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row,r=a.realname,o=a.no_pay_account;return n("span",{class:o>0?"red":""},[t._v(t._s(r))])}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"mobile",label:"客户手机号"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row,r=a.mobile,o=a.no_pay_account;return n("span",{class:o>0?"red":""},[t._v(t._s(r))])}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"精装版",label:"精装版",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("span",{class:a.no_pay_account>0?"red":""},[t._v(t._s(a["精装版"]||0)+" ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"简约版",label:"简约版",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("span",{class:a.no_pay_account>0?"red":""},[t._v(t._s(a["简约版"]||0)+" ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"高腰版",label:"高腰版",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("span",{class:a.no_pay_account>0?"red":""},[t._v(t._s(a["高腰版"]||0)+" ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"纯棉老人版",label:"纯棉老人版",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("span",{class:a.no_pay_account>0?"red":""},[t._v(t._s(a["纯棉老人版"]||0)+" ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"青春版",label:"青春版",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[n("span",{class:a.no_pay_account>0?"red":""},[t._v(t._s(a["青春版"]||0)+" ")])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"account",label:"订货金额",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row,r=a.account,o=a.no_pay_account;return n("span",{class:o>0?"red":""},[t._v(t._s(t.parseMoney(r)))])}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"pay_account",label:"已付款金额",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row,r=a.pay_account,o=a.no_pay_account;return n("span",{class:o>0?"red":""},[t._v(t._s(t.parseMoney(r)))])}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"no_pay_account",label:"未付款金额",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row.no_pay_account;return n("span",{class:a>0?"red":""},[t._v(t._s(t.parseMoney(a)))])}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"money",label:"账户余额",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row.money;return n("span",{class:a>0?"red":""},[t._v(t._s(t.parseMoney(a)))])}}])})],1),t._v(" "),n("pagination",{attrs:{total:t.tablelist.length,limit:t.listQuery.page_size,page:t.listQuery.page_index},on:{pagination:t.changePagination,"update:limit":t.changePagination}})],1)},r=[],o=(n("55dd"),n("ac6a"),n("456d"),n("c7eb")),i=(n("96cf"),n("1da1")),u=(n("c5f6"),n("f2e4")),s=n("ed08"),c=n("8975"),l=n("1491"),d={data:function(){return{loadingFull:!1,listQuery:{page_index:1,page_size:50,search_name:"",time:"",activity_id:""},tablelist:[],tableTotal:0,total:{all:0,pay:0,no_pay:0,all_money:0},activitys:[]}},computed:{limitTable:function(){var t=this.listQuery,e=t.page_index,n=t.page_size;return this.tablelist.slice((Number(e)-1)*Number(n),(Number(e)-1)*Number(n)+n)}},created:function(){var t=this;this.parseMoney=s["g"],this.activityList((function(){t.getList()}))},methods:{getList:function(){var t=Object(i["a"])(Object(o["a"])().mark((function t(){var e,n,a,r,i,s,c=this;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.loadingFull=!0,e=this.listQuery,n=e.page_index,a=e.page_size,r=e.search_name,i=e.time,s=e.activity_id,t.next=4,Object(u["a"])({page_index:n,page_size:a,search_name:r,activity_id:s,start_time:i&&i.length>0?i[0]:"",end_time:i&&i.length>0?i[1]:""}).then((function(t){c.total={all:0,pay:0,no_pay:0,all_money:0},c.loadingFull=!1,200===t.code?(c.tablelist=t.data.list.list,c.total={all:t.data.list.total[0].account,pay:t.data.list.total[0].pay_account,no_pay:t.data.list.total[0].no_pay_account,all_money:t.data.list.all_money},c.tableTotal=t.data.total):c.$message.error(t.message)})).catch((function(t){c.loadingFull=!1}));case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),index:function(t){var e=this.listQuery,n=e.page_index,a=e.page_size;return(n-1)*a+t+1},changePagination:function(t){var e=t.page,n=t.limit;this.listQuery.page_size=n,this.listQuery.page_index=e},toExport:function(){var t=Object(i["a"])(Object(o["a"])().mark((function t(){var e,a,r,i,s,l,d=this;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.loadingFull=!0,e=this.listQuery,a=e.page_index,r=e.page_size,i=e.search_name,s=e.time,l=e.activity_id,Object(u["b"])({page_index:a,page_size:r,search_name:i,activity_id:l,start_time:s&&s.length>0?s[0]:"",end_time:s&&s.length>0?s[1]:""}).then((function(t){if(200===t.code){if(0===t.data.length)return d.$message.error("没有可导出数据"),!1;var e=Object.keys(t.data[0]);e.unshift("序号"),Promise.all([n.e("chunk-5bdd67a2"),n.e("chunk-2c21b5a5")]).then(n.bind(null,"4bf8d")).then((function(n){n.export_json_to_excel({header:e,data:t.data.map((function(t,n){return e.map((function(e){return"简约版"!==e&&"纯棉老人版"!==e&&"精装版"!==e&&"高腰版"!==e&&"青春版"!==e||(t[e]=Number(t[e])||0),"序号"===e&&(t[e]=n+1),t[e]}))})),filename:"".concat(Object(c["formatter"])(new Date,"yyyy-MM-dd"),"订单排名"),bookType:"xlsx"})}))}})).catch((function(t){d.$message.error("导出失败")})).finally((function(){d.loadingFull=!1}));case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),MoneySort:function(t){var e=t.prop,n=t.order;"descending"===n?this.tablelist.sort((function(t,n){return Number(n[e]||0)-Number(t[e]||0)})):"ascending"===n&&this.tablelist.sort((function(t,n){return Number(t[e]||0)-Number(n[e]||0)}))},activityList:function(){var t=Object(i["a"])(Object(o["a"])().mark((function t(e){var n=this;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.loadingFull=!0,t.next=3,Object(l["y"])().then((function(t){n.loadingFull=!1,200===t.code&&(n.activitys=t.data,t.data.map((function(t){1===t.is_ing&&(n.listQuery.activity_id=t.id)}))),e&&e()})).catch((function(t){n.loadingFull=!1,e&&e()}));case 3:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()}},p=d,f=(n("34d1"),n("2877")),m=Object(f["a"])(p,a,r,!1,null,"bf68056c",null);e["default"]=m.exports},f2e4:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var a=n("b775");function r(t){return Object(a["a"])({url:"/orders/get_like_agent_gift_bag",method:"get",params:t})}function o(t){return Object(a["a"])({url:"/orders/export_like_agent_gift_bag",method:"get",params:t})}}}]);
|