chunk-6a0fca0d.05762136.js 11 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6a0fca0d","chunk-3784bb01"],{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 o})),n.d(e,"C",(function(){return u})),n.d(e,"y",(function(){return c})),n.d(e,"l",(function(){return l})),n.d(e,"r",(function(){return s})),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 m})),n.d(e,"o",(function(){return p})),n.d(e,"p",(function(){return h})),n.d(e,"t",(function(){return _})),n.d(e,"x",(function(){return b})),n.d(e,"w",(function(){return v})),n.d(e,"d",(function(){return y})),n.d(e,"e",(function(){return O})),n.d(e,"n",(function(){return I})),n.d(e,"v",(function(){return j})),n.d(e,"j",(function(){return U})),n.d(e,"s",(function(){return k})),n.d(e,"k",(function(){return x})),n.d(e,"i",(function(){return w})),n.d(e,"h",(function(){return Q})),n.d(e,"m",(function(){return G})),n.d(e,"q",(function(){return C})),n.d(e,"A",(function(){return B})),n.d(e,"f",(function(){return F})),n.d(e,"u",(function(){return A}));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 o(t){return Object(r["a"])({url:"/orders/BatchAddTag",method:"post",data:t})}function u(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 l(t){return Object(r["a"])({url:"/orders/GetActivityLimit",method:"get",params:t})}function s(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 m(t){return Object(r["a"])({url:"/UserImg/AddUpdateImgB",method:"get",params:t})}function p(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 _(t){return Object(r["a"])({url:"/UserImg/GetUserList",method:"get",params:t})}function b(t){return Object(r["a"])({url:"/UserImg/UpdateUserImgInfoB ",method:"post",data:t})}function v(t){return Object(r["a"])({url:"/UserImg/UpdateUserImgInfo",method:"post",data:t})}function y(t){return Object(r["a"])({url:"/UserImg/AgainCreateImg",method:"get",params:t})}function O(t){return Object(r["a"])({url:"/UserImg/AgainCreateImgB",method:"get",params:t})}function I(t){return Object(r["a"])({url:"/UserImg/GetCrownInfo",method:"get",params:t})}function j(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 k(t){return Object(r["a"])({url:"/UserImg/GetUserInfos",method:"get",params:t})}function x(t){return Object(r["a"])({url:"/UserImg/ExportAddress",method:"get",params:t})}function w(t){return Object(r["a"])({url:"/CrownBigGiftInfo",method:"get",params:t})}function Q(t){return Object(r["a"])({url:"/BigGiftInfo",method:"get",params:t})}function G(t){return Object(r["a"])({url:"/BigGift/GetApplyList",method:"get",params:t})}function C(t){return Object(r["a"])({url:"/BigGift/GetUserInfo",method:"get",params:t})}function B(t){return Object(r["a"])({url:"/BigGift/editBelongToUser",method:"post",data:t})}function F(t){return Object(r["a"])({url:"/BigGift/ApplySuccess",method:"post",data:t})}function A(t){return Object(r["a"])({url:"/BigGift/UpdateApply",method:"post",data:t})}},"504c":function(t,e,n){var r=n("9e1e"),a=n("0d58"),i=n("6821"),o=n("52a7").f;t.exports=function(t){return function(e){var n,u=i(e),c=a(u),l=c.length,s=0,d=[];while(l>s)n=c[s++],r&&!o.call(u,n)||d.push(t?[n,u[n]]:u[n]);return d}}},"5d00":function(t,e,n){"use strict";n("c608")},"63cd":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("div",{staticStyle:{"margin-bottom":"15px"}},[n("el-input",{staticClass:"filter-item filter-input",staticStyle:{display:"inline-block",width:"240px"},attrs:{placeholder:"收货人姓名/手机号"},nativeOn:{keydown: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"}},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",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:function(e){t.listQuery.page_index=1,t.getList()}}},[t._v("搜索")]),t._v(" "),n("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-document"},on:{click:t.exportOrder}},[t._v("导出")])],1),t._v(" "),n("el-table",{attrs:{data:t.list,"header-cell-style":{background:"#f8fbfc"},border:"",stripe:""}},[n("el-table-column",{attrs:{prop:"u_nickname",label:"备注昵称",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{prop:"u_name",label:"下单人姓名",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{prop:"u_name",label:"下单人手机号",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{prop:"name",label:"收货人姓名",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{prop:"mobile",label:"收货人手机号",align:"center"}}),t._v(" "),n("el-table-column",{attrs:{prop:"address",label:"收货人地址",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[t._v(t._s(n.province+n.city+n.town+n.address))]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"订单信息",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[n("el-button",{attrs:{type:"text"},on:{click:function(e){return t.seeOrderInfo(r)}}},[t._v("查看订单")])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"gift",label:"赠品信息",align:"center"}})],1),t._v(" "),n("pagination",{attrs:{total:t.total,limit:t.listQuery.page_size,page:t.listQuery.page_index},on:{pagination:t.changePagination,"update:limit":t.changePagination}}),t._v(" "),n("el-dialog",{attrs:{title:"订单详情",visible:t.dialogOrderInfo},on:{"update:visible":function(e){t.dialogOrderInfo=e}}},t._l(t.orderInfo,(function(e,r){return n("div",{key:r,staticClass:"order_info_container"},[n("p",{staticClass:"title"},[t._v("订单"+t._s(r+1)+": "+t._s(e.order_num))]),t._v(" "),t._l(e.get_order_detail,(function(e,r){return n("ul",{key:r,staticClass:"main"},[n("li",[t._v(t._s(e.goods_name+"-"+e.goods_size+"-"+e.num+"("+e.goods_unit+")"))])])}))],2)})),0)],1)},a=[],i=n("c7eb"),o=(n("96cf"),n("1da1")),u=(n("456d"),n("7f7f"),n("ac6a"),n("8615"),n("b775"));function c(t){return Object(u["a"])({url:"/data/get_merger_order",method:"get",params:t})}function l(t){return Object(u["a"])({url:"/data/get_order_goods_info",method:"get",params:t})}function s(t){return Object(u["a"])({url:"/data/export_merger_order",method:"get",params:t})}var d=n("1491"),f={name:"MergeOrder",data:function(){return{listQuery:{search_name:"",activity_id:"",page_index:1,page_size:20},list:[],total:0,activitys:[],loadingFull:!1,dialogOrderInfo:!1,orderInfo:[]}},watch:{dialogOrderInfo:function(t){t||(this.orderInfo=[])}},created:function(){var t=this;this.activityList((function(){t.getList()}))},methods:{exportOrder:function(){var t=this;this.loadingFull=!0,s({search_name:this.listQuery.search_name,activity_id:this.listQuery.activity_id}).then((function(e){if(t.loadingFull=!1,200===e.code){var r=Object.values(e.data);0===r.length?t.$message.error("没有可导出数据"):(t.loadingFull=!0,Promise.all([n.e("chunk-5bdd67a2"),n.e("chunk-2c21b5a5")]).then(n.bind(null,"4bf8d")).then((function(e){var n=["备注昵称","下单人姓名","下单人手机号","收货人姓名","收货人手机号","收货人地址","赠品信息","手环","项链","订单信息"];r=r.map((function(t){return{"收货人姓名":t.name,"收货人手机号":t.mobile,"收货人地址":"".concat(t.province||"").concat(t.city||"").concat(t.town||"").concat(t.address),"备注昵称":t.name,"下单人姓名":t.u_name,"下单人手机号":t.u_mobile,"订单信息":Object.keys(t.goods).map((function(e){var n="订单: ".concat(e,"(");return n+=t.goods[e].join(";"),n+=")",n})),"赠品信息":t.gift,"手环":t.shouhuan,"项链":t.xianglian}})),e.export_json_to_excel({header:n,data:r.map((function(t){return n.map((function(e){return t[e]}))})),filename:"".concat((new Date).toLocaleDateString(),"快递单导出"),bookType:"xlsx",isCSV:!0}),t.loadingFull=!1})))}else t.loadingFull=!1,t.$message.error("导出失败")}))},changePagination:function(t){var e=t.page,n=t.limit;this.listQuery.page_size=n,this.listQuery.page_index=e,this.getList()},seeOrderInfo:function(t){var e=this,n=t.user_id,r=t.address_id;l({address_id:r,user_id:n,activity_id:this.listQuery.activity_id}).then((function(t){200===t.code?(e.orderInfo=t.data,e.dialogOrderInfo=!0):e.$message.error("获取订单详情失败")}))},activityList:function(){var t=Object(o["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(d["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}(),getList:function(){var t=this;this.loadingFull=!0,c(this.listQuery).then((function(e){t.loadingFull=!1,200===e.code?(t.total=e.data.total,t.list=Object.values(e.data.list)):t.$message.error(e.message||"获取合并订单失败")})).catch((function(e){t.loadingFull=!1}))}}},g=f,m=(n("5d00"),n("2877")),p=Object(m["a"])(g,r,a,!1,null,"75e867e9",null);e["default"]=p.exports},8615:function(t,e,n){var r=n("5ca1"),a=n("504c")(!1);r(r.S,"Object",{values:function(t){return a(t)}})},c608:function(t,e,n){}}]);