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
8.1 KiB
1 lines
8.1 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-343630f6"],{"0b65":function(t,e,n){"use strict";e["a"]={shortcuts:[{text:"今天",onClick:function(t){var e=new Date,n=new Date;n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),t.$emit("pick",[n,e])}},{text:"昨天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.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",[n,e])}},{text:"最近7天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-6048e5),t.$emit("pick",[n,e])}},{text:"最近30天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-2592e6),t.$emit("pick",[n,e])}},{text:"本月",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),t.$emit("pick",[n,e])}},{text:"本年",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),0,1))),t.$emit("pick",[n,e])}}]}},b9aa:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("div",{staticClass:"selCard mb14"},[n("el-form",{ref:"searchForm",attrs:{model:t.tableFrom,size:"small","label-width":"85px",inline:""}},[n("el-form-item",{attrs:{label:"时间选择:"}},[n("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(" "),n("el-form-item",{attrs:{label:"商户名称:",prop:"mer_id"}},[n("el-select",{staticClass:"selWidth",attrs:{clearable:"",filterable:"",placeholder:"请选择"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.mer_id,callback:function(e){t.$set(t.tableFrom,"mer_id",e)},expression:"tableFrom.mer_id"}},t._l(t.merSelect,(function(t){return n("el-option",{key:t.mer_id,attrs:{label:t.mer_name,value:t.mer_id}})})),1)],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.getList(1)}}},[t._v("搜索")]),t._v(" "),n("el-button",{attrs:{size:"small"},on:{click:function(e){return t.searchReset()}}},[t._v("重置")])],1)],1)],1),t._v(" "),t.cardLists.length>0?n("cards-data",{attrs:{"card-lists":t.cardLists}}):t._e(),t._v(" "),n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"deliveryCharge mb20"},[n("span",{staticStyle:{display:"inline-block","margin-right":"10px"}},[t._v(t._s(2==t.delivery_type?"UU充值余额":"达达充值余额")+":"+t._s(t.balance)+"元")]),t._v(" "),n("a",{attrs:{href:2==t.delivery_type?"https://shangjia.uupt.com/index.html#/home/login":"https://newopen.imdada.cn/#/?_k=x9d8mi"}},[n("el-button",{staticClass:"mr10",attrs:{type:"primary",size:"small"}},[t._v("去充值")])],1)]),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.tableData.data,size:"small"}},[n("el-table-column",{attrs:{label:"序号","min-width":"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.$index+(t.tableFrom.page-1)*t.tableFrom.limit+1))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"merchant.mer_name",label:"商户名称","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{prop:"pay_price",label:"充值金额","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{prop:"create_time",label:"充值时间","min-width":"100"}})],1),t._v(" "),n("div",{staticClass:"block"},[n("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)],1)},r=[],i=n("f8b7"),l=n("c4c8"),o=n("8593"),c=n("0b65"),s=n("0f56"),u={components:{cardsData:s["a"]},data:function(){return{pickerOptions:c["a"],tableData:{data:[],total:0},delivery_balance:"",listLoading:!0,loading:!0,tableFrom:{keyword:"",date:"",mer_id:"",page:1,limit:20},merSelect:[],timeVal:[],cardLists:[],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"}]},delivery_type:1,balance:0}},mounted:function(){this.getList(1),this.getMerSelect(),this.getCardList(),this.getConfigData(),this.getBalance()},methods:{searchReset:function(){this.timeVal=[],this.tableFrom.date="",this.$refs.searchForm.resetFields(),this.getList(1)},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.getList(1)},getMerSelect:function(){var t=this;Object(l["Q"])().then((function(e){t.merSelect=e.data})).catch((function(e){t.$message.error(e.message)}))},getCardList:function(){var t=this;Object(i["q"])(this.tableFrom).then((function(e){t.cardLists=e.data})).catch((function(e){t.$message.error(e.message)}))},getConfigData:function(){var t=this;Object(o["p"])().then((function(e){t.delivery_type=e.data.delivery_type})).catch((function(e){t.$message.error(e.message)}))},getBalance:function(){var t=this;Object(i["p"])().then((function(e){t.balance=e.data.deliverBalance})).catch((function(e){t.$message.error(e.message)}))},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(i["r"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.delivery_balance=t.data.delivery_balance,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("")}}},d=u,m=(n("bfb2"),n("2877")),f=Object(m["a"])(d,a,r,!1,null,"2cc6f2f3",null);e["default"]=f.exports},bfb2:function(t,e,n){"use strict";n("e127")},e127:function(t,e,n){},f8b7:function(t,e,n){"use strict";n.d(e,"m",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return l})),n.d(e,"o",(function(){return o})),n.d(e,"k",(function(){return c})),n.d(e,"l",(function(){return s})),n.d(e,"n",(function(){return u})),n.d(e,"s",(function(){return d})),n.d(e,"i",(function(){return m})),n.d(e,"j",(function(){return f})),n.d(e,"g",(function(){return g})),n.d(e,"h",(function(){return h})),n.d(e,"f",(function(){return p})),n.d(e,"u",(function(){return b})),n.d(e,"v",(function(){return v})),n.d(e,"t",(function(){return y})),n.d(e,"e",(function(){return _})),n.d(e,"d",(function(){return w})),n.d(e,"c",(function(){return D})),n.d(e,"r",(function(){return k})),n.d(e,"q",(function(){return x})),n.d(e,"p",(function(){return F}));var a=n("0c6d");function r(t){return a["a"].get("order/lst",t)}function i(){return a["a"].get("order/chart")}function l(t){return a["a"].get("order/title",t)}function o(t){return a["a"].get("store/order/update/".concat(t,"/form"))}function c(t){return a["a"].get("store/order/delivery/".concat(t,"/form"))}function s(t){return a["a"].get("order/detail/".concat(t))}function u(t,e){return a["a"].get("order/status/".concat(t),e)}function d(t){return a["a"].get("order/refund/lst",t)}function m(t){return a["a"].get("order/children/".concat(t))}function f(t){return a["a"].get("order/express/".concat(t))}function g(t){return a["a"].get("order/excel",t)}function h(t){return a["a"].get("order/refund/excel",t)}function p(t){return a["a"].get("excel/lst",t)}function b(){return a["a"].get("order/takechart")}function v(t){return a["a"].get("order/takelst",t)}function y(t){return a["a"].get("order/take_title",t)}function _(){return a["a"].get("excel/type")}function w(t){return a["a"].get("delivery/order/lst",t)}function D(t){return a["a"].get("delivery/order/cancel/".concat(t,"/form"))}function k(t){return a["a"].get("delivery/station/payLst",t)}function x(){return a["a"].get("delivery/title")}function F(){return a["a"].get("delivery/belence")}}}]); |