(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3b1a5e88"],{1491:function(t,e,r){"use strict";r.d(e,"B",(function(){return a})),r.d(e,"z",(function(){return o})),r.d(e,"g",(function(){return u})),r.d(e,"C",(function(){return c})),r.d(e,"y",(function(){return i})),r.d(e,"l",(function(){return s})),r.d(e,"r",(function(){return l})),r.d(e,"c",(function(){return d})),r.d(e,"D",(function(){return f})),r.d(e,"a",(function(){return m})),r.d(e,"b",(function(){return g})),r.d(e,"o",(function(){return p})),r.d(e,"p",(function(){return _})),r.d(e,"t",(function(){return b})),r.d(e,"x",(function(){return h})),r.d(e,"w",(function(){return v})),r.d(e,"d",(function(){return y})),r.d(e,"e",(function(){return w})),r.d(e,"n",(function(){return j})),r.d(e,"v",(function(){return O})),r.d(e,"j",(function(){return k})),r.d(e,"s",(function(){return I})),r.d(e,"k",(function(){return U})),r.d(e,"i",(function(){return x})),r.d(e,"h",(function(){return S})),r.d(e,"m",(function(){return F})),r.d(e,"q",(function(){return G})),r.d(e,"A",(function(){return B})),r.d(e,"f",(function(){return A})),r.d(e,"u",(function(){return C}));var n=r("b775");function a(t){return Object(n["a"])({url:"/orders/get_agent_gift_bag",method:"get",params:t})}function o(t){return Object(n["a"])({url:"/orders/add_list_tag",method:"post",data:t})}function u(t){return Object(n["a"])({url:"/orders/BatchAddTag",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/orders/export_list",method:"get",params:t})}function i(){return Object(n["a"])({url:"/activity/getactivityinfo",method:"get"})}function s(t){return Object(n["a"])({url:"/orders/GetActivityLimit",method:"get",params:t})}function l(t){return Object(n["a"])({url:"/UserImg/GetUserInfo",method:"get",params:t})}function d(t){return Object(n["a"])({url:"/UserImg/AddUserImgInfo",method:"post",data:t})}function f(t){return Object(n["a"])({url:"/UserImg/uploadImage",method:"post",data:t})}function m(t){return Object(n["a"])({url:"/UserImg/AddUpdateImg",method:"get",params:t})}function g(t){return Object(n["a"])({url:"/UserImg/AddUpdateImgB",method:"get",params:t})}function p(t){return Object(n["a"])({url:"/UserImg/GetImgStatus",method:"get",params:t})}function _(t){return Object(n["a"])({url:"/UserImg/GetImgStatusB",method:"get",params:t})}function b(t){return Object(n["a"])({url:"/UserImg/GetUserList",method:"get",params:t})}function h(t){return Object(n["a"])({url:"/UserImg/UpdateUserImgInfoB ",method:"post",data:t})}function v(t){return Object(n["a"])({url:"/UserImg/UpdateUserImgInfo",method:"post",data:t})}function y(t){return Object(n["a"])({url:"/UserImg/AgainCreateImg",method:"get",params:t})}function w(t){return Object(n["a"])({url:"/UserImg/AgainCreateImgB",method:"get",params:t})}function j(t){return Object(n["a"])({url:"/UserImg/GetCrownInfo",method:"get",params:t})}function O(t){return Object(n["a"])({url:"/UserImg/UpdateCrownImgInfo",method:"post",data:t})}function k(t){return Object(n["a"])({url:"/UserImg/DeleteUserImg",method:"get",params:t})}function I(t){return Object(n["a"])({url:"/UserImg/GetUserInfos",method:"get",params:t})}function U(t){return Object(n["a"])({url:"/UserImg/ExportAddress",method:"get",params:t})}function x(t){return Object(n["a"])({url:"/CrownBigGiftInfo",method:"get",params:t})}function S(t){return Object(n["a"])({url:"/BigGiftInfo",method:"get",params:t})}function F(t){return Object(n["a"])({url:"/BigGift/GetApplyList",method:"get",params:t})}function G(t){return Object(n["a"])({url:"/BigGift/GetUserInfo",method:"get",params:t})}function B(t){return Object(n["a"])({url:"/BigGift/editBelongToUser",method:"post",data:t})}function A(t){return Object(n["a"])({url:"/BigGift/ApplySuccess",method:"post",data:t})}function C(t){return Object(n["a"])({url:"/BigGift/UpdateApply",method:"post",data:t})}},"44f1":function(t,e,r){"use strict";r.d(e,"d",(function(){return n})),r.d(e,"e",(function(){return a})),r.d(e,"f",(function(){return o})),r.d(e,"a",(function(){return u})),r.d(e,"c",(function(){return c})),r.d(e,"b",(function(){return i})),r.d(e,"h",(function(){return s})),r.d(e,"g",(function(){return l}));r("c5f6"),r("a481"),r("ac6a");function n(t){switch(+t){case-2:return{name:"已取消",color:"#F56C6C"};case-1:return{name:"待收款确认",color:"#4da5a5"};case 0:return{name:"待订单审核",color:"#f97547"};case 1:return{name:"待财务审核",color:"#13c19f"};case 2:return{name:"待发货审核",color:"#ffaa1d"};case 3:return{name:"待收货",color:"#409EFF"};case 4:return{name:"已完成",color:"#74a2e6"};case 5:return{name:"已驳回(客服)",color:"#67C23A"};case 6:return{name:"已驳回(财务)",color:"#67C23A"};case 7:return{name:"已驳回(物流)",color:"#67C23A"};default:return{name:"未知订单状态",color:"#909399"}}}function a(t){switch(+t){case-1:return{name:"已删除",color:"#4da5a5"};case 0:return{name:"订单未审核",color:"#f97547"};case 1:return{name:"财务未审核",color:"#13c19f"};case 2:return{name:"未发货审核",color:"#ffaa1d"};case 3:return{name:"待收货",color:"#409EFF"};case 4:return{name:"已完成",color:"#74a2e6"}}}function o(t){switch(+t){case 0:return{name:"未付款",color:"#f96b6b"};case 1:return{name:"部分付款",color:"#f96b6b"};case 2:return{name:"已付款",color:"#415161"};case 3:return{name:"待退款",color:"#f96b6b"};default:return{name:"未知支付状态",color:"#909399"}}}function u(t){var e;switch(t){case 0:e="销售未实名认证";break;case 1:e="等待分享人审核";break;case 2:e="等待上级批发商审核";break;case 3:e="等待用户确认";break;case 4:e="分享人审核驳回";break;case 5:e="上级批发商审核驳回";break;case 6:e="授权成功";break;default:e=t}return e}function c(t){if(!t&&0!==t)return{name:"类别待定",color:"#909399"};var e;switch(t){case 3:e={name:"批发商",color:"#f0a637"};break;case 2:e={name:"经销商",color:"#67c23a"};break;case 1:e={name:"销售员",color:"#1fd3c2"};break;default:e={name:"公司",color:"#409eff"}}return e}function i(t,e){if(!t)return 0;var r=e?t:parseFloat(t);return String(r).replace(/(\d{1,3})(?=(\d{3})+(?:$|\.))/g,"$1,")}function s(t){if("0"===t)return 0;var e=Number(100*t).toFixed()+"%";return e}function l(t){switch(+t){case 0:return{name:"未审核",color:"#f96b6b"};case 1:return{name:"已通过",color:"#13c19f"};case 2:return{name:"已驳回",color:"#f30"};default:return{name:"已删除",color:"#999"}}}},4764:function(t,e,r){"use strict";r.d(e,"m",(function(){return a})),r.d(e,"e",(function(){return o})),r.d(e,"o",(function(){return u})),r.d(e,"q",(function(){return c})),r.d(e,"c",(function(){return i})),r.d(e,"d",(function(){return s})),r.d(e,"g",(function(){return l})),r.d(e,"r",(function(){return d})),r.d(e,"p",(function(){return f})),r.d(e,"l",(function(){return m})),r.d(e,"i",(function(){return g})),r.d(e,"n",(function(){return p})),r.d(e,"f",(function(){return _})),r.d(e,"h",(function(){return b})),r.d(e,"k",(function(){return h})),r.d(e,"b",(function(){return v})),r.d(e,"a",(function(){return y})),r.d(e,"j",(function(){return w}));var n=r("b775");function a(t){return Object(n["a"])({url:"/orders/order_detail",method:"get",params:t})}function o(t){return Object(n["a"])({url:"/orders/add_order_log",method:"get",params:t})}function u(t){return Object(n["a"])({url:"/orders/audit_order",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/orders/get_collect_money_log",method:"get",params:t})}function i(t){return Object(n["a"])({url:"/orders/get_user_money",method:"get",params:t})}function s(t){return Object(n["a"])({url:"/orders/add_income_log",method:"post",data:t})}function l(t){return Object(n["a"])({url:"/orders/part_back_money",method:"post",data:t})}function d(t){return Object(n["a"])({url:"/orders/destory_order",method:"get",params:t})}function f(t){return Object(n["a"])({url:"/orders/send_express",method:"post",data:t})}function m(t){return Object(n["a"])({url:"/orders/order_address",method:"get",params:t})}function g(t){return Object(n["a"])({url:"/orders/destroy_order_address",method:"post",data:t})}function p(){return Object(n["a"])({url:"/orders/get_cancel_why",method:"get"})}function _(t){return Object(n["a"])({url:"/orders/add_cancel_why",method:"post",data:t})}function b(t){return Object(n["a"])({url:"/orders/GetUser",method:"get",params:t})}function h(t){return Object(n["a"])({url:"/orders/UpdateBelongId",method:"get",params:t})}function v(t){return Object(n["a"])({url:"orders/GetExceptionOrder",method:"get",params:t})}function y(t){return Object(n["a"])({url:"orders/ExportExceptionOrder",method:"get",params:t})}function w(t){return Object(n["a"])({url:"/orders/destory_order_all",method:"post",data:t})}},d3ad:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"app-container"},[r("div",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:t.loadingFull,expression:"loadingFull",modifiers:{fullscreen:!0,lock:!0}}]}),t._v(" "),r("el-select",{staticStyle:{width:"300px","margin-bottom":"20px"},on:{change:t.seclect},model:{value:t.listQuery.activity_id,callback:function(e){t.$set(t.listQuery,"activity_id",e)},expression:"listQuery.activity_id"}},t._l(t.activitys,(function(t){return r("el-option",{key:t.id,attrs:{label:t.title,value:t.id}})})),1),t._v(" "),r("el-button",{staticStyle:{"margin-left":"15px"},attrs:{type:"primary"},on:{click:t.toExport}},[t._v("导出")]),t._v(" "),r("el-table",{staticClass:"tableBorder",attrs:{border:"",stripe:"","header-cell-style":{background:"#f8fbfc"},data:t.tablelist}},[r("el-table-column",{attrs:{prop:"order_num",label:"订单编号",width:"210"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[t._v("\n "+t._s(r.order_num)+"\n ")]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"created_at",align:"center",label:"下单时间",width:"160","show-overflow-tooltip":!0}}),t._v(" "),r("el-table-column",{attrs:{label:"体验店订单",width:"150",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row.get_store;return[t._v("\n "+t._s(r&&r.name)+"\n ")]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"所属客服",width:"150",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row.get_user;return[t._v("\n "+t._s(r&&r.warea&&r.warea.admin_name)+"\n ")]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"get_user",label:"备注昵称",align:"center",width:"150","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[t._v(t._s(r.get_user&&r.get_user.name))]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"get_user",label:"下单人姓名",align:"center",width:"120","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[t._v(t._s(r.get_user&&r.get_user.realname))]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"status",align:"center",label:"订单状态",width:"110","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row,a=n.is_deleted,o=n.status;return[1===a?r("el-tag",{attrs:{type:"info"}},[t._v("已作废")]):r("el-tag",{staticStyle:{color:"#ffffff"},attrs:{color:t.orderStatus(o).color}},[t._v(t._s(t.orderStatus(o).name))])]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"pay_status",align:"center",label:"支付状态",width:"90","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[r("span",{style:"color: "+t.payStatus(n.pay_status).color},[t._v(t._s(t.payStatus(n.pay_status).name))])]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"total",label:"数量合计",align:"center",width:"80","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[t._v("\n "+t._s(r.total)+"\n ")]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"money",label:"订单总额",align:"center",width:"120","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[t._v(t._s("¥"+r.money))]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"belong_user",label:"所属者昵称",align:"center",width:"120","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[t._v(t._s(r.belong_user&&r.belong_user.nickname))]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"belong_user",label:"所属者姓名",align:"center",width:"120","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[t._v(t._s(r.belong_user&&r.belong_user.realname))]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"belong_user",label:"所属者手机号",align:"center",width:"120","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[t._v(t._s(r.belong_user&&r.belong_user.mobile))]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"or_status",label:"原因",align:"center",width:"160","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[t._v(t._s(r.or_status?"所属者与下单人不是一个团队":"所属者已被删除"))]}}])})],1),t._v(" "),r("pagination",{attrs:{total:t.tableTotal,limit:t.listQuery.page_size,page:t.listQuery.page_index},on:{pagination:t.changePagination,"update:limit":t.changePagination}})],1)},a=[],o=(r("7f7f"),r("c7eb")),u=(r("96cf"),r("1da1")),c=r("4764"),i=r("1491"),s=r("ed08"),l=r("44f1"),d=r("8975"),f={data:function(){return{loadingFull:!1,listQuery:{page_index:1,page_size:10,activity_id:""},tablelist:[],tableTotal:0,activitys:[]}},created:function(){var t=this;this.orderStatus=l["d"],this.payStatus=l["f"],this.parseMoney=s["g"],this.activityList((function(){t.getList()}))},methods:{seclect:function(){this.getList()},getList:function(){var t=Object(u["a"])(Object(o["a"])().mark((function t(){var e=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(c["b"])(this.listQuery).then((function(t){e.loadingFull=!1,200===t.code?(e.tablelist=t.data.list,e.tableTotal=t.data.total):e.$message.error(t.message)})).catch((function(t){e.loadingFull=!1}));case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),index:function(t){var e=this.listQuery,r=e.page_index,n=e.page_size;return(r-1)*n+t+1},changePagination:function(t){var e=t.page,r=t.limit;this.listQuery.page_size=r,this.listQuery.page_index=e,this.getList()},toExport:function(){var t=Object(u["a"])(Object(o["a"])().mark((function t(){var e=this;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.loadingFull=!0,this.$request(Object(c["a"])({activity_id:this.listQuery.activity_id}),(function(t){var n=t;console.log(n),Promise.all([r.e("chunk-5bdd67a2"),r.e("chunk-2c21b5a5")]).then(r.bind(null,"4bf8d")).then((function(t){var e=["序号","下单时间","体验店订单","所属客服","备注昵称","下单人姓名","订单状态","支付状态","数量合计","订单总额","所属者昵称","所属者姓名","所属者手机号","原因"],r=["index","updated_at","get_store","admin_name","name","realname","status","pay_status","total","money","belong_nickname","belong_realname","belong_mobile","or_status"],a=n.map((function(t,e){var r={index:e+1,updated_at:t.updated_at||"",get_store:t.get_store&&t.get_store.name,admin_name:t.get_user&&t.get_user.warea&&t.get_user.warea.admin_name,name:t.get_user&&t.get_user.name||"",realname:t.get_user&&t.get_user.realname||"",status:Object(l["d"])(t.status).name||"",pay_status:Object(l["f"])(t.pay_status).name,total:t.total||"",money:t.money||"",belong_realname:t.belong_user&&t.belong_user.realname,belong_nickname:t.belong_user&&t.belong_user.nickname,belong_mobile:t.belong_user&&t.belong_user.mobile,or_status:t.or_status?"所属者与下单人不是一个团队":"所属者已被删除"};return r})),o=a.map((function(t){return r.map((function(e){return t[e]}))}));t.export_json_to_excel({header:e,data:o,filename:"".concat(Object(d["formatter"])(new Date,"yyyy-MM-dd"),"异常订单"),autoWidth:!0,bookType:"xlsx"})})),e.loadingFull=!1}));case 2:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),activityList:function(){var t=Object(u["a"])(Object(o["a"])().mark((function t(e){var r=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(i["y"])().then((function(t){r.loadingFull=!1,200===t.code&&(r.activitys=t.data,t.data.map((function(t){1===t.is_ing&&(r.listQuery.activity_id=t.id)}))),e&&e()})).catch((function(t){r.loadingFull=!1,e&&e()}));case 3:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()}},m=f,g=r("2877"),p=Object(g["a"])(m,n,a,!1,null,null,null);e["default"]=p.exports}}]);