1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-44e26057"],{"0716":function(t,e,a){},"0f56":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-row",{staticClass:"ivu-mt",attrs:{gutter:10,align:"middle"}},[t._l(t.cardLists,(function(e,n){return a("el-col",{key:n,staticClass:"ivu-mb mb10",attrs:{xl:6,lg:6,md:12,sm:24,xs:24}},[a("div",{staticClass:"card_box"},[a("div",{staticClass:"card_box_cir",class:{one:n%5==0,two:n%5==1,three:n%5==2,four:n%5==3,five:n%5==4}},[a("div",{staticClass:"card_box_cir1",class:{one1:n%5==0,two1:n%5==1,three1:n%5==2,four1:n%5==3,five1:n%5==4}},[a("i",{class:e.className,staticStyle:{"font-size":"24px"}})])]),t._v(" "),a("div",{staticClass:"card_box_txt"},[a("span",{staticClass:"sp1",domProps:{textContent:t._s(e.count||0)}}),t._v(" "),a("span",{staticClass:"sp2",domProps:{textContent:t._s(e.name)}})])])])})),t._v(" "),a("div",{staticClass:"ivu-mb mb10"})],2)},r=[],i={name:"Index",props:{cardLists:Array}},o=i,s=(a("b254"),a("2877")),l=Object(s["a"])(o,n,r,!1,null,"4e260701",null);e["a"]=l.exports},"30dc":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.fileVisible?a("el-dialog",{attrs:{title:"导出订单列表",visible:t.fileVisible,width:"900px"},on:{"update:visible":function(e){t.fileVisible=e}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","highlight-current-row":""}},[a("el-table-column",{attrs:{label:"文件名",prop:"name","min-width":"200"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作者ID",prop:"admin_id","min-width":"80"}}),t._v(" "),a("el-table-column",{attrs:{label:"生成时间",prop:"create_time","min-width":"180"}}),t._v(" "),a("el-table-column",{attrs:{label:"类型","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("exportOrderTypeFilter")(e.row.type)))])]}}],null,!1,1077759765)}),t._v(" "),a("el-table-column",{attrs:{label:"状态","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(t._f("exportOrderStatusFilter")(e.row.status)))])]}}],null,!1,359322133)}),t._v(" "),a("el-table-column",{key:"8",attrs:{label:"操作","min-width":"100",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.status?a("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(a){return t.downLoad(e.row.path)}}},[t._v("下载")]):t._e()]}}],null,!1,921379384)})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[10,20,30],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)]):t._e()],1)},r=[],i=a("f8b7"),o=(a("bbcc"),a("5f87"),{name:"FileList",data:function(){return{fileVisible:!1,loading:!1,tableData:{data:[],total:0},tableFrom:{page:1,limit:10}}},methods:{exportFileList:function(){var t=this;this.loading=!0,Object(i["g"])(this.tableFrom).then((function(e){t.fileVisible=!0,t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.loading=!1})).catch((function(e){t.$message.error(e.message),t.listLoading=!1}))},downLoad:function(t){window.open(t)},pageChange:function(t){this.tableFrom.page=t,this.exportFileList()},pageChangeLog:function(t){this.tableFromLog.page=t,this.exportFileList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.exportFileList()}}}),s=o,l=(a("5d27"),a("2877")),c=Object(l["a"])(s,n,r,!1,null,"4e37739c",null);e["a"]=c.exports},"3bc4":function(t,e,a){"use strict";var n=a("62b5"),r=a.n(n);r.a},"5d27":function(t,e,a){"use strict";var n=a("0716"),r=a.n(n);r.a},"62b5":function(t,e,a){},b254:function(t,e,a){"use strict";var n=a("d870"),r=a.n(n);r.a},d870:function(t,e,a){},e08e:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("div",{staticClass:"container"},[a("el-form",{attrs:{size:"small","label-width":"100px"}},[a("el-form-item",{staticClass:"width100",attrs:{label:"核销时间:"}},[a("el-radio-group",{staticClass:"mr20",attrs:{type:"button",size:"small",clearable:""},on:{change:function(e){return t.selectChange(t.tableFrom.date)}},model:{value:t.tableFrom.date,callback:function(e){t.$set(t.tableFrom,"date",e)},expression:"tableFrom.date"}},t._l(t.fromList.fromTxt,(function(e,n){return a("el-radio-button",{key:n,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),t._v(" "),a("el-date-picker",{staticStyle:{width:"250px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间",clearable:""},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),a("el-form-item",{staticClass:"width100",attrs:{label:"订单号:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入订单号/收货人/联系方式",size:"small",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keywords,callback:function(e){t.$set(t.tableFrom,"keywords",e)},expression:"tableFrom.keywords"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1),t._v(" "),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.exportOrder}},[t._v("生成列表")]),t._v(" "),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.getExportFileList}},[t._v("导出已生成列表")])],1),t._v(" "),a("el-form-item",{staticClass:"width100",attrs:{label:"用户信息:"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入用户信息/联系电话",size:"small"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.username,callback:function(e){t.$set(t.tableFrom,"username",e)},expression:"tableFrom.username"}},[a("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search",size:"small"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1)],1),t._v(" "),a("cards-data",{attrs:{"card-lists":t.cardLists}})],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","highlight-current-row":""}},[a("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left",inline:""}},[a("el-form-item",{attrs:{label:"商品总价:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.total_price)))])]),t._v(" "),a("el-form-item",{attrs:{label:"下单时间:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.create_time)))])]),t._v(" "),a("el-form-item",{attrs:{label:"用户备注:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.mark)))])]),t._v(" "),a("el-form-item",{attrs:{label:"商家备注:"}},[a("span",[t._v(t._s(t._f("filterEmpty")(e.row.remark)))])])],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"订单编号","min-width":"170"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticStyle:{display:"block"},domProps:{textContent:t._s(e.row.order_sn)}}),t._v(" "),a("span",{directives:[{name:"show",rawName:"v-show",value:e.row.is_del>0,expression:"scope.row.is_del > 0"}],staticStyle:{color:"#ED4014",display:"block"}},[t._v("用户已删除")])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"订单类型","min-width":"170"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(0==e.row.order_type?"普通订单":"核销订单"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"real_name",label:"收货人","min-width":"130"}}),t._v(" "),a("el-table-column",{attrs:{label:"商品信息","min-width":"330"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.orderProduct,(function(e,n){return a("div",{key:n,staticClass:"tabBox acea-row row-middle"},[a("div",{staticClass:"demo-image__preview"},[a("el-image",{attrs:{src:e.cart_info.product.image,"preview-src-list":[e.cart_info.product.image]}})],1),t._v(" "),a("span",{staticClass:"tabBox_tit"},[t._v(t._s(e.cart_info.product.store_name+" | ")+t._s(e.cart_info.productAttr.sku))]),t._v(" "),a("span",{staticClass:"tabBox_pice"},[t._v(t._s("¥"+e.cart_info.productAttr.price+" x "+e.product_num))])])}))}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"pay_price",label:"实际支付","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"pay_price",label:"核销员","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.paid?a("span",[t._v(t._s(e.row.verifyService?e.row.verifyService.nickname:"管理员核销"))]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"serviceScore",label:"核销状态","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.status>=2?"已核销":"未核销"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"verify_time",label:"核销时间","min-width":"150"}})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),a("file-list",{ref:"exportList"})],1)},r=[],i=a("f8b7"),o=a("30dc"),s=a("0f56"),l={components:{cardsData:s["a"],fileList:o["a"]},data:function(){return{orderId:0,tableData:{data:[],total:0},listLoading:!0,tableFrom:{order_sn:"",status:"",date:"",page:1,limit:20,type:"4",order_type:"1",username:"",keywords:""},orderChartType:{},timeVal:[],fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},selectionList:[],ids:"",tableFromLog:{page:1,limit:10},tableDataLog:{data:[],total:0},LogLoading:!1,dialogVisible:!1,fileVisible:!1,cardLists:[],orderDatalist:null,headeNum:[{type:1,name:"全部",count:10},{type:2,name:"普通订单",count:3},{type:3,name:"直播订单",count:1},{type:4,name:"核销订单",count:2},{type:5,name:"拼团订单",count:0},{type:6,name:"秒杀订单",count:6},{type:7,name:"砍价订单",count:5}]}},mounted:function(){this.headerList(),this.getList(1)},methods:{exportOrder:function(){var t=this;Object(i["i"])({status:this.tableFrom.status,date:this.tableFrom.date,take_order:1}).then((function(e){var a=t.$createElement;t.$msgbox({title:"提示",message:a("p",null,[a("span",null,'文件正在生成中,请稍后点击"'),a("span",{style:"color: teal"},"导出已生成列表"),a("span",null,'"查看~ ')]),confirmButtonText:"我知道了"}).then((function(t){}))})).catch((function(e){t.$message.error(e.message)}))},getExportFileList:function(){this.fileVisible=!0,this.$refs.exportList.exportFileList("order")},pageChangeLog:function(t){this.tableFromLog.page=t,this.getList("")},handleSizeChangeLog:function(t){this.tableFromLog.limit=t,this.getList("")},handleSelectionChange:function(t){this.selectionList=t;var e=[];this.selectionList.map((function(t){e.push(t.id)})),this.ids=e.join(",")},selectChange:function(t){this.timeVal=[],this.tableFrom.date=t,this.getList(1)},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.getList(1)},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(i["H"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.cardLists=t.data.stat,e.listLoading=!1})).catch((function(t){e.$message.error(t.message),e.listLoading=!1}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList("")},headerList:function(){var t=this;Object(i["G"])().then((function(e){t.orderChartType=e.data})).catch((function(e){t.$message.error(e.message)}))}}},c=l,u=(a("3bc4"),a("2877")),d=Object(u["a"])(c,n,r,!1,null,"18699682",null);e["default"]=d.exports},f8b7:function(t,e,a){"use strict";a.d(e,"u",(function(){return r})),a.d(e,"a",(function(){return i})),a.d(e,"y",(function(){return o})),a.d(e,"r",(function(){return s})),a.d(e,"s",(function(){return l})),a.d(e,"v",(function(){return c})),a.d(e,"x",(function(){return u})),a.d(e,"q",(function(){return d})),a.d(e,"w",(function(){return f})),a.d(e,"C",(function(){return m})),a.d(e,"A",(function(){return p})),a.d(e,"F",(function(){return b})),a.d(e,"E",(function(){return g})),a.d(e,"D",(function(){return h})),a.d(e,"z",(function(){return _})),a.d(e,"b",(function(){return v})),a.d(e,"j",(function(){return y})),a.d(e,"B",(function(){return x})),a.d(e,"i",(function(){return w})),a.d(e,"h",(function(){return k})),a.d(e,"g",(function(){return L})),a.d(e,"f",(function(){return C})),a.d(e,"p",(function(){return F})),a.d(e,"t",(function(){return z})),a.d(e,"G",(function(){return S})),a.d(e,"H",(function(){return D})),a.d(e,"n",(function(){return O})),a.d(e,"m",(function(){return V})),a.d(e,"k",(function(){return E})),a.d(e,"l",(function(){return $})),a.d(e,"o",(function(){return j})),a.d(e,"e",(function(){return T})),a.d(e,"c",(function(){return B})),a.d(e,"d",(function(){return N}));var n=a("0c6d");function r(t){return n["a"].get("store/order/lst",t)}function i(){return n["a"].get("store/order/chart")}function o(t,e){return n["a"].post("store/order/update/".concat(t),e)}function s(t){return n["a"].get("store/order/delivery/".concat(t,"/form"))}function l(t){return n["a"].get("store/order/detail/".concat(t))}function c(t,e){return n["a"].get("store/order/log/".concat(t),e)}function u(t){return n["a"].get("store/order/remark/".concat(t,"/form"))}function d(t){return n["a"].post("store/order/delete/".concat(t))}function f(t){return n["a"].get("store/order/printer/".concat(t))}function m(t){return n["a"].get("store/refundorder/lst",t)}function p(t){return n["a"].get("store/refundorder/detail/".concat(t))}function b(t){return n["a"].get("store/refundorder/status/".concat(t,"/form"))}function g(t){return n["a"].get("store/refundorder/mark/".concat(t,"/form"))}function h(t){return n["a"].get("store/refundorder/log/".concat(t))}function _(t){return n["a"].get("store/refundorder/delete/".concat(t))}function v(t){return n["a"].post("store/refundorder/refund/".concat(t))}function y(t){return n["a"].get("store/order/express/".concat(t))}function x(t){return n["a"].get("store/refundorder/express/".concat(t))}function w(t){return n["a"].get("store/order/excel",t)}function k(t){return n["a"].get("store/order/delivery_export",t)}function L(t){return n["a"].get("excel/lst",t)}function C(t){return n["a"].get("excel/download/".concat(t))}function F(t){return n["a"].post("store/order/verify/".concat(t))}function z(){return n["a"].get("store/order/filtter")}function S(){return n["a"].get("store/order/takechart")}function D(t){return n["a"].get("store/order/takelst",t)}function O(t){return n["a"].get("store/receipt/lst",t)}function V(t){return n["a"].get("store/receipt/set_recipt",t)}function E(t){return n["a"].post("store/receipt/save_recipt",t)}function $(t){return n["a"].get("store/receipt/detail/".concat(t))}function j(t,e){return n["a"].post("store/receipt/update/".concat(t),e)}function T(t){return n["a"].get("store/import/lst",t)}function B(t,e){return n["a"].get("store/import/detail/".concat(t),e)}function N(t){return n["a"].get("store/import/excel/".concat(t))}}}]);
|