You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
12 KiB
1 lines
12 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1111fbac"],{"0b65":function(t,e,a){"use strict";e["a"]={shortcuts:[{text:"今天",onClick:function(t){var e=new Date,a=new Date;a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),t.$emit("pick",[a,e])}},{text:"昨天",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.$emit("pick",[a,e])}},{text:"最近7天",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"最近30天",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"本月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),t.$emit("pick",[a,e])}},{text:"本年",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),0,1))),t.$emit("pick",[a,e])}}]}},"28ea":function(t,e,a){"use strict";a("5208")},5208:function(t,e,a){},e08e:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("div",{staticClass:"selCard mb14"},[a("el-form",{ref:"searchForm",attrs:{size:"small",model:t.tableFrom,"label-width":"85px",inline:""}},[a("el-form-item",{attrs:{label:"核销时间:"}},[a("el-date-picker",{staticStyle:{width:"280px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间","picker-options":t.pickerOptions,clearable:""},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"订单号:",prop:"keywords"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入订单号/收货人/联系方式",clearable:""},nativeOn:{keyup:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.getList(1),t.getCardList()}},model:{value:t.tableFrom.keywords,callback:function(e){t.$set(t.tableFrom,"keywords",e)},expression:"tableFrom.keywords"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"商户类别:",prop:"is_trader"}},[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",placeholder:"请选择"},on:{change:function(e){t.getList(1),t.getCardList()}},model:{value:t.tableFrom.is_trader,callback:function(e){t.$set(t.tableFrom,"is_trader",e)},expression:"tableFrom.is_trader"}},[a("el-option",{attrs:{label:"自营",value:"1"}}),t._v(" "),a("el-option",{attrs:{label:"非自营",value:"0"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"用户信息:",prop:"username"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入用户信息/联系电话"},nativeOn:{keyup:function(e){if(!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.getList(1),t.getCardList()}},model:{value:t.tableFrom.username,callback:function(e){t.$set(t.tableFrom,"username",e)},expression:"tableFrom.username"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){t.getList(1),t.getCardList()}}},[t._v("搜索")]),t._v(" "),a("el-button",{attrs:{size:"small"},on:{click:function(e){return t.searchReset()}}},[t._v("重置")])],1)],1)],1),t._v(" "),t.cardLists.length>0?a("cards-data",{attrs:{"card-lists":t.cardLists}}):t._e(),t._v(" "),a("el-card",{staticClass:"box-card"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"table",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.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":"180"},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":"100"},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:{label:"商户名称","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.merchant?a("span",[t._v(t._s(e.row.merchant.mer_name))]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"mer_name",label:"商户类别","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.merchant?a("span",{staticClass:"spBlock"},[t._v(t._s(e.row.merchant.is_trader?"自营":"非自营"))]):t._e()]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"real_name",label:"收货人","min-width":"100"}}),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,r){return a("div",{key:r,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:"serviceScore",label:"核销员","min-width":"80"},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:{background:"","page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, 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)},n=[],i=a("f8b7"),o=a("30dc"),s=a("0f56"),l=a("0b65"),c={components:{cardsData:s["a"],fileList:o["a"]},data:function(){return{pickerOptions:l["a"],orderId:0,tableData:{data:[],total:0},listLoading:!0,tableFrom:{order_sn:"",status:"",date:"",page:1,limit:20,order_type:"1",username:"",keywords:"",is_trader:""},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}},mounted:function(){this.headerList(),this.getCardList(),this.getList("")},methods:{searchReset:function(){this.timeVal=[],this.tableFrom.date="",this.$refs.searchForm.resetFields(),this.getList(1)},exportOrder:function(){var t=this;Object(i["g"])({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("")},printOrder:function(t){var e=this;orderPrintApi(t).then((function(t){e.$message.success(t.message)})).catch((function(t){e.$message.error(t.message)}))},selectChange:function(t){this.timeVal=[],this.tableFrom.date=t,this.tableFrom.page=1,this.getCardList(),this.getList(1)},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getCardList(),this.getList(1)},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(i["v"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.$message.error(t.message),e.listLoading=!1}))},getCardList:function(){var t=this;Object(i["t"])(this.tableFrom).then((function(e){t.cardLists=e.data})).catch((function(e){t.$message.error(e.message)}))},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["u"])().then((function(e){t.orderChartType=e.data})).catch((function(e){t.$message.error(e.message)}))}}},u=c,d=(a("28ea"),a("2877")),m=Object(d["a"])(u,r,n,!1,null,"42a7365c",null);e["default"]=m.exports},f8b7:function(t,e,a){"use strict";a.d(e,"m",(function(){return n})),a.d(e,"b",(function(){return i})),a.d(e,"a",(function(){return o})),a.d(e,"o",(function(){return s})),a.d(e,"k",(function(){return l})),a.d(e,"l",(function(){return c})),a.d(e,"n",(function(){return u})),a.d(e,"s",(function(){return d})),a.d(e,"i",(function(){return m})),a.d(e,"j",(function(){return f})),a.d(e,"g",(function(){return p})),a.d(e,"h",(function(){return g})),a.d(e,"f",(function(){return h})),a.d(e,"u",(function(){return b})),a.d(e,"v",(function(){return _})),a.d(e,"t",(function(){return v})),a.d(e,"e",(function(){return w})),a.d(e,"d",(function(){return y})),a.d(e,"c",(function(){return k})),a.d(e,"r",(function(){return L})),a.d(e,"q",(function(){return x})),a.d(e,"p",(function(){return C}));var r=a("0c6d");function n(t){return r["a"].get("order/lst",t)}function i(){return r["a"].get("order/chart")}function o(t){return r["a"].get("order/title",t)}function s(t){return r["a"].get("store/order/update/".concat(t,"/form"))}function l(t){return r["a"].get("store/order/delivery/".concat(t,"/form"))}function c(t){return r["a"].get("order/detail/".concat(t))}function u(t,e){return r["a"].get("order/status/".concat(t),e)}function d(t){return r["a"].get("order/refund/lst",t)}function m(t){return r["a"].get("order/children/".concat(t))}function f(t){return r["a"].get("order/express/".concat(t))}function p(t){return r["a"].get("order/excel",t)}function g(t){return r["a"].get("order/refund/excel",t)}function h(t){return r["a"].get("excel/lst",t)}function b(){return r["a"].get("order/takechart")}function _(t){return r["a"].get("order/takelst",t)}function v(t){return r["a"].get("order/take_title",t)}function w(){return r["a"].get("excel/type")}function y(t){return r["a"].get("delivery/order/lst",t)}function k(t){return r["a"].get("delivery/order/cancel/".concat(t,"/form"))}function L(t){return r["a"].get("delivery/station/payLst",t)}function x(){return r["a"].get("delivery/title")}function C(){return r["a"].get("delivery/belence")}}}]); |