1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7ecf9433"],{1491:function(t,e,n){"use strict";n.d(e,"B",(function(){return a})),n.d(e,"z",(function(){return i})),n.d(e,"g",(function(){return u})),n.d(e,"C",(function(){return o})),n.d(e,"y",(function(){return c})),n.d(e,"l",(function(){return s})),n.d(e,"r",(function(){return l})),n.d(e,"c",(function(){return d})),n.d(e,"D",(function(){return f})),n.d(e,"a",(function(){return g})),n.d(e,"b",(function(){return p})),n.d(e,"o",(function(){return m})),n.d(e,"p",(function(){return h})),n.d(e,"t",(function(){return b})),n.d(e,"x",(function(){return y})),n.d(e,"w",(function(){return _})),n.d(e,"d",(function(){return v})),n.d(e,"e",(function(){return j})),n.d(e,"n",(function(){return O})),n.d(e,"v",(function(){return I})),n.d(e,"j",(function(){return U})),n.d(e,"s",(function(){return x})),n.d(e,"k",(function(){return w})),n.d(e,"i",(function(){return k})),n.d(e,"h",(function(){return G})),n.d(e,"m",(function(){return Q})),n.d(e,"q",(function(){return B})),n.d(e,"A",(function(){return F})),n.d(e,"f",(function(){return A})),n.d(e,"u",(function(){return S}));var r=n("b775");function a(t){return Object(r["a"])({url:"/orders/get_agent_gift_bag",method:"get",params:t})}function i(t){return Object(r["a"])({url:"/orders/add_list_tag",method:"post",data:t})}function u(t){return Object(r["a"])({url:"/orders/BatchAddTag",method:"post",data:t})}function o(t){return Object(r["a"])({url:"/orders/export_list",method:"get",params:t})}function c(){return Object(r["a"])({url:"/activity/getactivityinfo",method:"get"})}function s(t){return Object(r["a"])({url:"/orders/GetActivityLimit",method:"get",params:t})}function l(t){return Object(r["a"])({url:"/UserImg/GetUserInfo",method:"get",params:t})}function d(t){return Object(r["a"])({url:"/UserImg/AddUserImgInfo",method:"post",data:t})}function f(t){return Object(r["a"])({url:"/UserImg/uploadImage",method:"post",data:t})}function g(t){return Object(r["a"])({url:"/UserImg/AddUpdateImg",method:"get",params:t})}function p(t){return Object(r["a"])({url:"/UserImg/AddUpdateImgB",method:"get",params:t})}function m(t){return Object(r["a"])({url:"/UserImg/GetImgStatus",method:"get",params:t})}function h(t){return Object(r["a"])({url:"/UserImg/GetImgStatusB",method:"get",params:t})}function b(t){return Object(r["a"])({url:"/UserImg/GetUserList",method:"get",params:t})}function y(t){return Object(r["a"])({url:"/UserImg/UpdateUserImgInfoB ",method:"post",data:t})}function _(t){return Object(r["a"])({url:"/UserImg/UpdateUserImgInfo",method:"post",data:t})}function v(t){return Object(r["a"])({url:"/UserImg/AgainCreateImg",method:"get",params:t})}function j(t){return Object(r["a"])({url:"/UserImg/AgainCreateImgB",method:"get",params:t})}function O(t){return Object(r["a"])({url:"/UserImg/GetCrownInfo",method:"get",params:t})}function I(t){return Object(r["a"])({url:"/UserImg/UpdateCrownImgInfo",method:"post",data:t})}function U(t){return Object(r["a"])({url:"/UserImg/DeleteUserImg",method:"get",params:t})}function x(t){return Object(r["a"])({url:"/UserImg/GetUserInfos",method:"get",params:t})}function w(t){return Object(r["a"])({url:"/UserImg/ExportAddress",method:"get",params:t})}function k(t){return Object(r["a"])({url:"/CrownBigGiftInfo",method:"get",params:t})}function G(t){return Object(r["a"])({url:"/BigGiftInfo",method:"get",params:t})}function Q(t){return Object(r["a"])({url:"/BigGift/GetApplyList",method:"get",params:t})}function B(t){return Object(r["a"])({url:"/BigGift/GetUserInfo",method:"get",params:t})}function F(t){return Object(r["a"])({url:"/BigGift/editBelongToUser",method:"post",data:t})}function A(t){return Object(r["a"])({url:"/BigGift/ApplySuccess",method:"post",data:t})}function S(t){return Object(r["a"])({url:"/BigGift/UpdateApply",method:"post",data:t})}},eea2:function(t,e,n){"use strict";n.r(e);var r=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("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"}},t._l(t.activitys,(function(t){return n("el-option",{key:t.id,attrs:{label:t.title,value:t.id}})})),1),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",{staticStyle:{"margin-bottom":"15px"},attrs:{type:"primary"},on:{click:t.toExport}},[t._v("导出")]),t._v(" "),n("el-table",{staticClass:"tableBorder",attrs:{border:"",stripe:"","header-cell-style":{background:"#f8fbfc"},data:t.tablelist}},[n("el-table-column",{attrs:{type:"index",label:"序号",index:t.index,width:"80",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{prop:"name",label:"备注昵称"}}),t._v(" "),n("el-table-column",{attrs:{prop:"realname",label:"客户姓名"}}),t._v(" "),n("el-table-column",{attrs:{prop:"account",label:"订货金额"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row.account;return n("span",{},[t._v(t._s(t.parseMoney(r)))])}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"pay_account",label:"已付款金额"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row.pay_account;return n("span",{},[t._v(t._s(t.parseMoney(r)))])}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"no_pay_account",label:"未付款金额"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row.no_pay_account;return n("span",{},[t._v(t._s(t.parseMoney(r)))])}}])}),t._v(" "),n("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[1===r.tag?n("el-tag",[t._v("已标记")]):n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.addSign(r)}}},[t._v("标记")])]}}])})],1),t._v(" "),n("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=[],i=(n("ac6a"),n("456d"),n("c7eb")),u=(n("96cf"),n("1da1")),o=n("b775");function c(t){return Object(o["a"])({url:"/orders/get_travel",method:"get",params:t})}var s=n("1491"),l=n("ed08"),d=n("8975"),f={data:function(){return{loadingFull:!1,listQuery:{page_index:1,page_size:10,activity_id:"",tag:"",search_name:""},tablelist:[],tableTotal:0,activitys:[]}},created:function(){var t=this;this.parseMoney=l["g"],this.activityList((function(){t.getList()}))},methods:{getList:function(){var t=Object(u["a"])(Object(i["a"])().mark((function t(){var e=this;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.loadingFull=!0,t.next=3,c(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,n=e.page_index,r=e.page_size;return(n-1)*r+t+1},changePagination:function(t){var e=t.page,n=t.limit;this.listQuery.page_size=n,this.listQuery.page_index=e,this.getList()},addSign:function(t){var e=this,n=t.id,r=t.account;this.loadingFull=!0,Object(s["z"])({user_id:n,money:r,type:3,activity_id:this.listQuery.activity_id}).then((function(t){e.loadingFull=!1,200===t.code?(e.getList(),e.$message.success(t.message)):e.$message.error(t.message)})).catch((function(t){e.loadingFull=!1}))},toExport:function(){var t=Object(u["a"])(Object(i["a"])().mark((function t(){var e=this;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.loadingFull=!0,t.next=3,Object(s["C"])({type:3,activity_id:this.listQuery.activity_id,tag:this.listQuery.tag,search_name:this.listQuery.search_name}).then((function(t){e.loadingFull=!1,200===t.code?t.data&&t.data.length>0?Promise.all([n.e("chunk-5bdd67a2"),n.e("chunk-2c21b5a5")]).then(n.bind(null,"4bf8d")).then((function(e){e.export_json_to_excel({header:Object.keys(t.data[0]),data:t.data.map((function(e){return Object.keys(t.data[0]).map((function(t){return e[t]}))})),filename:"".concat(Object(d["formatter"])(new Date,"yyyy-MM-dd"),"旅游名单"),bookType:"xlsx"})})):e.$message.error("没有可导出数据"):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}(),activityList:function(){var t=Object(u["a"])(Object(i["a"])().mark((function t(e){var n=this;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.loadingFull=!0,t.next=3,Object(s["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}()}},g=f,p=n("2877"),m=Object(p["a"])(g,r,a,!1,null,null,null);e["default"]=m.exports}}]);
|