chunk-7e8cc947.752b03b2.js 15 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7e8cc947"],{"0bbe":function(e,t,r){"use strict";r.d(t,"f",(function(){return a})),r.d(t,"e",(function(){return o})),r.d(t,"d",(function(){return i})),r.d(t,"n",(function(){return s})),r.d(t,"k",(function(){return l})),r.d(t,"m",(function(){return c})),r.d(t,"l",(function(){return u})),r.d(t,"a",(function(){return d})),r.d(t,"h",(function(){return f})),r.d(t,"i",(function(){return p})),r.d(t,"g",(function(){return _})),r.d(t,"b",(function(){return m})),r.d(t,"c",(function(){return h})),r.d(t,"j",(function(){return g})),r.d(t,"o",(function(){return b}));var n=r("b775");function a(e){return Object(n["a"])({url:"/order/getorderlist",method:"get",params:e})}function o(e){return Object(n["a"])({url:"/goods/getgoodsinfo",method:"get",params:e})}function i(e){return Object(n["a"])({url:"/orders/down_load",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/data/get_info",method:"get",params:e})}function l(e){return Object(n["a"])({url:"/orders/order_pass",method:"get",params:e})}function c(e){return Object(n["a"])({url:"/orders/order_reject",method:"get",params:e})}function u(e){return Object(n["a"])({url:"/orders/send_order",method:"post",data:e})}function d(e){return Object(n["a"])({url:"/orders/UpdateExpress",method:"post",data:e})}function f(e){return Object(n["a"])({url:"/orders/get_conditions_order_list",method:"get",params:e})}function p(e){return Object(n["a"])({url:"/orders/many_audit_order",method:"post",data:e})}function _(){return Object(n["a"])({url:"/orders/get_storename",method:"get"})}function m(e){return Object(n["a"])({url:"/orders/add_store",method:"get",params:e})}function h(e){return Object(n["a"])({url:"/orders/cancel_store",method:"post",data:e})}function g(e){return Object(n["a"])({url:"/orders/merge_order_detail",method:"get",params:e})}function b(e){return Object(n["a"])({url:"/orders/merge_order",method:"post",data:e})}},1491:function(e,t,r){"use strict";r.d(t,"c",(function(){return a})),r.d(t,"b",(function(){return o})),r.d(t,"d",(function(){return i})),r.d(t,"a",(function(){return s}));var n=r("b775");function a(e){return Object(n["a"])({url:"/orders/get_agent_gift_bag",method:"get",params:e})}function o(e){return Object(n["a"])({url:"/orders/add_list_tag",method:"post",data:e})}function i(e){return Object(n["a"])({url:"/orders/export_list",method:"get",params:e})}function s(){return Object(n["a"])({url:"/activity/getactivityinfo",method:"get"})}},"3d54":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("div",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:e.loadingFull,expression:"loadingFull",modifiers:{fullscreen:!0,lock:!0}}]}),e._v(" "),r("div",{staticStyle:{"margin-bottom":"15px"}},[r("el-date-picker",{staticClass:"filter-item",staticStyle:{width:"400px"},attrs:{"value-format":"yyyy-MM-dd HH:mm",format:"yyyy-MM-dd HH:mm",type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.listQuery.time,callback:function(t){e.$set(e.listQuery,"time",t)},expression:"listQuery.time"}}),e._v(" "),r("el-input",{staticClass:"filter-item filter-input",staticStyle:{display:"inline-block",width:"240px"},attrs:{placeholder:"订单编号"},nativeOn:{keydown:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.listQuery.page_index=1,e.getList()}},model:{value:e.listQuery.order_no,callback:function(t){e.$set(e.listQuery,"order_no",t)},expression:"listQuery.order_no"}}),e._v(" "),r("el-input",{staticClass:"filter-item filter-input",staticStyle:{display:"inline-block",width:"240px"},attrs:{placeholder:"下单人昵称/姓名/手机号"},nativeOn:{keydown:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.listQuery.page_index=1,e.getList()}},model:{value:e.listQuery.search_name,callback:function(t){e.$set(e.listQuery,"search_name",t)},expression:"listQuery.search_name"}}),e._v(" "),r("el-select",{model:{value:e.listQuery.store_id,callback:function(t){e.$set(e.listQuery,"store_id",t)},expression:"listQuery.store_id"}},[r("el-option",{attrs:{label:"全部",value:""}}),e._v(" "),e._l(e.storeList,(function(e){return r("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}))],2),e._v(" "),r("el-select",{staticStyle:{width:"400px"},model:{value:e.listQuery.activity_id,callback:function(t){e.$set(e.listQuery,"activity_id",t)},expression:"listQuery.activity_id"}},[r("el-option",{attrs:{label:"全部",value:""}}),e._v(" "),e._l(e.activitys,(function(e){return r("el-option",{key:e.id,attrs:{label:e.title,value:e.id}})}))],2),e._v(" "),r("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:function(t){e.listQuery.page_index=1,e.getList()}}},[e._v("搜索")]),e._v(" "),r("el-button",{staticClass:"filter-item",attrs:{type:"primary",loading:e.downloadLoading,icon:"el-icon-document"},on:{click:e.exportOrder}},[e._v("导出")])],1),e._v(" "),r("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#f8fbfc"},border:"",stripe:""},on:{"selection-change":e.orderMulSelect}},[r("el-table-column",{attrs:{type:"selection",width:"50",align:"center","show-overflow-tooltip":!0}}),e._v(" "),r("el-table-column",{attrs:{prop:"order_num",label:"订单编号",width:"210"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[r("el-button",{attrs:{type:"text"},on:{click:function(t){return e.toOrderWxamine(n)}}},[e._v(e._s(n.order_num))]),e._v(" "),r("br"),e._v(" "),1===n.order_type?r("p",{staticClass:"tag sub-tag"},[e._v("代下单")]):e._e(),e._v(" "),1===n.is_back?r("p",{staticClass:"tag return-tag"},[e._v("退回")]):e._e()]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"get_user",label:"下单人昵称",align:"center",width:"150","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[e._v(e._s(r.get_user.nickname))]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"get_user",label:"下单人姓名",align:"center",width:"120","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[e._v(e._s(r.get_user.realname))]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"created_at",align:"center",label:"下单时间",width:"160","show-overflow-tooltip":!0}}),e._v(" "),r("el-table-column",{attrs:{prop:"status",align:"center",label:"订单状态",width:"110","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row,a=n.is_deleted,o=n.status;return[1===a?r("el-tag",{attrs:{type:"info"}},[e._v("已作废")]):r("el-tag",{staticStyle:{color:"#ffffff"},attrs:{color:e.orderStatus(o).color}},[e._v(e._s(e.orderStatus(o).name))])]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"get_store",label:"体验店订单",width:"150",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row.get_store;return r("span",{},[e._v(e._s(n&&n.name||""))])}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"pay_status",align:"center",label:"支付状态",width:"90","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[r("span",{style:"color: "+e.payStatus(n.pay_status).color},[e._v(e._s(e.payStatus(n.pay_status).name))])]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"total",label:"数量合计",align:"center",width:"80","show-overflow-tooltip":!0}}),e._v(" "),r("el-table-column",{attrs:{prop:"money",label:"订单总额",align:"center",width:"120","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[e._v(e._s("¥"+r.money))]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"get_address",label:"收货人",align:"center",width:"120","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[e._v(e._s(r.get_address&&r.get_address.username))]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"get_address",label:"联系方式",align:"center",width:"120","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[e._v(e._s(r.get_address&&r.get_address.mobile))]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"get_address",label:"收货地址",align:"center",width:"200","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row.get_address;return[e._v(e._s(r&&r.province+r.city+r.town+r.address))]}}])}),e._v(" "),r("el-table-column",{attrs:{prop:"remark",label:"订单备注",align:"center",width:"160","show-overflow-tooltip":!0}})],1),e._v(" "),r("pagination",{attrs:{total:e.tableTotal,limit:e.listQuery.page_size,page:e.listQuery.page_index},on:{pagination:e.changePagination,"update:limit":e.changePagination}})],1)},a=[],o=(r("ac6a"),r("456d"),r("96cf"),r("1da1")),i=r("b775");function s(e){return Object(i["a"])({url:"/orders/order_store",method:"get",params:e})}function l(e){return Object(i["a"])({url:"/orders/order_store_excel",method:"get",params:e})}var c=r("0bbe"),u=r("44f1"),d=r("8975"),f=r("1491"),p={data:function(){return{roles:this.$route.meta.buttonAuthList?this.$route.meta.buttonAuthList:[],authList:this.$route.meta.authList,loadingFull:!1,downloadLoading:!1,listQuery:{order_no:"",page_index:1,page_size:20,time:"",search_name:"",store_id:"",activity_id:""},storeList:[],tableList:[],tableTotal:0,chooseList:[],activitys:[]}},created:function(){var e=this;this.orderStatus=u["c"],this.payStatus=u["e"],this.getStore(),this.activityList((function(){e.getList()}))},methods:{toOrderWxamine:function(e){this.$router.push({name:"order_examine",params:{order:e.order_num}})},getList:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,r,n,a,o,i,l,c,u=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loadingFull=!0,t=this.listQuery,r=t.page_index,n=t.page_size,a=t.order_no,o=t.search_name,i=t.store_id,l=t.time,c=t.activity_id,e.next=4,s({page_index:r,page_size:n,order_no:a,search_name:o,store_id:i,activity_id:c,start_time:l&&l.length>0?l[0]:"",end_time:l&&l.length>0?l[1]:""}).then((function(e){u.loadingFull=!1,200===e.code?(u.tableList=e.data.list,u.tableTotal=e.data.total):u.$message.error(e.message)})).catch((function(e){u.loadingFull=!1}));case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getStore:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loadingFull=!0,e.next=3,Object(c["g"])().then((function(e){t.loadingFull=!1,200===e.code&&(t.storeList=e.data.list)})).catch((function(e){t.loadingFull=!1}));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),changePagination:function(e){var t=e.page,r=e.limit;this.listQuery.page_size=r,this.listQuery.page_index=t,this.getList()},exportOrder:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,n,a,o,i,s,c,u,f;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.chooseList.length?this.$request(l({id:this.chooseList.map((function(e){return e.id}))}),(function(e){var t=e.list;Promise.all([r.e("chunk-5bdd67a2"),r.e("chunk-2c21b5a5")]).then(r.bind(null,"4bf8d")).then((function(e){e.export_json_to_excel({header:Object.keys(t[0]),data:t.map((function(e){return Object.keys(t[0]).map((function(t){return e[t]}))})),filename:"".concat(Object(d["formatter"])(new Date,"yyyy-MM-dd"),"订单"),bookType:"xlsx"})}))})):(t={},n=this.listQuery,a=n.order_no,o=n.page_index,i=n.page_size,s=n.search_name,c=n.time,u=n.store_id,f=n.activity_id,t={order_no:a,page_index:o,page_size:i,search_name:s,store_id:u,start_time:c.length>0?c[0]:"",end_time:c.length>0?c[1]:"",activity_id:f},this.$request(l(t),(function(e){var t=e.list;Promise.all([r.e("chunk-5bdd67a2"),r.e("chunk-2c21b5a5")]).then(r.bind(null,"4bf8d")).then((function(e){e.export_json_to_excel({header:Object.keys(t[0]),data:t.map((function(e){return Object.keys(t[0]).map((function(t){return e[t]}))})),filename:"".concat(Object(d["formatter"])(new Date,"yyyy-MM-dd"),"体验店订单"),bookType:"xlsx"})}))})));case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),orderMulSelect:function(e){this.chooseList=e},activityList:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loadingFull=!0,e.next=3,Object(f["a"])().then((function(e){r.loadingFull=!1,200===e.code&&(r.activitys=e.data,e.data.map((function(e){1===e.is_ing&&(r.listQuery.activity_id=e.id)}))),t&&t()})).catch((function(e){r.loadingFull=!1,t&&t()}));case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}},_=p,m=(r("52a6"),r("2877")),h=Object(m["a"])(_,n,a,!1,null,"98ba73aa",null);t["default"]=h.exports},"44f1":function(e,t,r){"use strict";r.d(t,"c",(function(){return n})),r.d(t,"d",(function(){return a})),r.d(t,"e",(function(){return o})),r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return s}));r("ac6a");function n(e){switch(+e){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(e){switch(+e){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(e){switch(+e){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 i(e){var t;switch(e){case 0:t="销售未实名认证";break;case 1:t="等待邀请人审核";break;case 2:t="等待上级审核";break;case 3:t="等待用户确认";break;case 4:t="邀请人审核驳回";break;case 5:t="上级审核驳回";break;case 6:t="授权成功";break;default:t=e}return t}function s(e){if(!e&&0!==e)return{name:"级别待定",color:"#909399"};var t;switch(e){case 3:t={name:"代理公司",color:"#f0a637"};break;case 2:t={name:"销售经理",color:"#67c23a"};break;case 1:t={name:"销售主管",color:"#1fd3c2"};break;default:t={name:"公司",color:"#409eff"}}return t}},"52a6":function(e,t,r){"use strict";r("a12f")},a12f:function(e,t,r){}}]);