启程易购后端代码
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.
 
 
 
 
 
 
qicheng_shop_backend/public/system/js/chunk-21cfb337.817cb491.js

1 lines
6.4 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-21cfb337"],{"0b65":function(e,t,a){"use strict";t["a"]={shortcuts:[{text:"今天",onClick:function(e){var t=new Date,a=new Date;a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),e.$emit("pick",[a,t])}},{text:"昨天",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),e.$emit("pick",[a,t])}},{text:"最近7天",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近30天",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"本月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),e.$emit("pick",[a,t])}},{text:"本年",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),0,1))),e.$emit("pick",[a,t])}}]}},"175b":function(e,t,a){"use strict";a("b970")},b970:function(e,t,a){},c7de:function(e,t,a){e.exports=a.p+"system/img/ren.c7bc0d99.png"},cef9:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"divBox"},[0==e.tableFrom.sys?a("div",{staticClass:"selCard mb14"},[a("el-form",{ref:"searchForm",attrs:{model:e.tableFrom,inline:"",size:"small","label-width":"85px"}},[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":e.pickerOptions},on:{change:e.onchangeTime},model:{value:e.timeVal,callback:function(t){e.timeVal=t},expression:"timeVal"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"购买类型:",prop:"type"}},[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",filterable:"",placeholder:"请选择"},on:{change:function(t){return e.getList(1)}},model:{value:e.tableFrom.type,callback:function(t){e.$set(e.tableFrom,"type",t)},expression:"tableFrom.type"}},e._l(e.purchaseList,(function(e){return a("el-option",{key:e.type,attrs:{label:e.name,value:e.type}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"商户名称:",prop:"mer_id"}},[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",filterable:"",placeholder:"请选择"},on:{change:function(t){e.getList(1),e.getCardList()}},model:{value:e.tableFrom.mer_id,callback:function(t){e.$set(e.tableFrom,"mer_id",t)},expression:"tableFrom.mer_id"}},e._l(e.merSelect,(function(e){return a("el-option",{key:e.mer_id,attrs:{label:e.mer_name,value:e.mer_id}})})),1)],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.getList(1)}}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{size:"small"},on:{click:function(t){return e.searchReset()}}},[e._v("重置")])],1)],1)],1):e._e(),e._v(" "),a("el-card",[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.tableData.data,size:"small"}},[a("el-table-column",{attrs:{label:"序号","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.$index+(e.tableFrom.page-1)*e.tableFrom.limit+1))])]}}])}),e._v(" "),0==e.tableFrom.sys?a("el-table-column",{key:"1",attrs:{prop:"merchant.mer_name",label:"商户名称","min-width":"150"}}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"购买记录","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.order_info&&0==e.tableFrom.sys?a("span",[e._v(e._s(t.row.order_info.price)+"元 / "+e._s(t.row.order_info.num)+"次")]):e._e(),e._v(" "),1==e.tableFrom.sys?a("span",[e._v(e._s(t.row.mark))]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"购买类型","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==e.tableFrom.sys?a("span",[e._v(e._s(e._f("purchaseType")(t.row.type)))]):0==e.tableFrom.sys?a("span",[e._v(e._s(1==t.row.type?"商品采集":"电子面单"))]):e._e()]}}])}),e._v(" "),1==e.tableFrom.sys?a("el-table-column",{key:"4",attrs:{prop:"add_time",label:"购买时间","min-width":"180"}}):e._e()],1),e._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{background:"","page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"total, prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1)],1)},i=[],l=a("90e7"),s=a("c4c8"),r=a("83d6"),o=a("0b65"),c={name:"serviceSetting",data:function(){return{pickerOptions:o["a"],smsAccount:"tangkai",imgUrl:a("c7de"),headeNum:[{type:1,title:"平台购买记录"},{type:0,title:"商户购买记录"}],purchaseList:[{name:"商品采集",type:1},{name:"电子面单",type:2}],merSelect:[],listLoading:!0,tableData:{data:[],total:0},timeVal:[],fullscreenLoading:!1,tableFrom:{page:1,limit:20,sys:"0",type:"",mer_id:"",date:""}}},mounted:function(){this.getList(""),this.getMerSelect()},methods:{searchReset:function(){this.timeVal=[],this.tableFrom.date="",this.$refs.searchForm.resetFields(),this.getList(1)},onchangeTime:function(e){this.timeVal=e,this.tableFrom.date=e?this.timeVal.join("-"):"",this.getList(1)},getList:function(e){var t=this;this.listLoading=!0,this.tableFrom.page=e||this.tableFrom.page,"1"==this.tableFrom.sys?Object(l["L"])(this.tableFrom).then((function(e){t.tableData.data=e.data.data,t.tableData.total=e.data.count,t.listLoading=!1})).catch((function(e){t.listLoading=!1,t.$message.error(e.message),t.$router.push(r["roterPre"]+"/setting/sms/sms_config/index")})):Object(l["K"])(this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.listLoading=!1})).catch((function(e){t.listLoading=!1,t.$message.error(e.message),t.$router.push(r["roterPre"]+"/setting/sms/sms_config/index")}))},pageChange:function(e){this.tableFrom.page=e,this.getList("")},handleSizeChange:function(e){this.tableFrom.limit=e,this.getList(1)},getMerSelect:function(){var e=this;Object(s["Q"])().then((function(t){e.merSelect=t.data})).catch((function(t){e.$message.error(t.message)}))}}},m=c,u=(a("175b"),a("2877")),d=Object(u["a"])(m,n,i,!1,null,"570c8cc2",null);t["default"]=d.exports}}]);