| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a9292726"],{adc9:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"app-list-content"},[t("x-crud",{staticClass:"liu-crud-wrap",on:{load:e.onLoad},scopedSlots:e._u([{key:"slot-tabs",fn:function(){return[t("el-tabs",{staticClass:"liu-tabs",attrs:{type:"border-card"},model:{value:e.tabIndex,callback:function(t){e.tabIndex=t},expression:"tabIndex"}},e._l(e.tabsData,(function(e,a){return t("el-tab-pane",{key:a,attrs:{label:""+e.text,name:e.key}})})),1)]},proxy:!0},{key:"table-column-payTime",fn:function({scope:a}){return["0000-00-00 00:00:00"!=a.row.payTime?t("span",[e._v(" "+e._s(a.row.payTime)+" ")]):t("span",[e._v("-")])]}},{key:"table-column-onlinePay",fn:function({scope:a}){return[1==a.row.onlinePay?t("span",[e._v("-")]):t("span",{staticStyle:{color:"#409EFF"}},[e._v("是")])]}},{key:"table-column-payWay",fn:function({scope:a}){return[0==a.row.payWay?t("span",[e._v("微信")]):e._e(),1==a.row.payWay?t("span",[e._v("支付宝")]):e._e(),2==a.row.payWay?t("span",[e._v("余额")]):e._e(),3==a.row.payWay?t("span",[e._v("欠账")]):e._e(),4==a.row.payWay?t("span",[e._v("现金")]):e._e(),5==a.row.payWay?t("span",[e._v("银行卡")]):e._e(),11==a.row.payWay?t("span",[e._v("抵扣")]):e._e()]}},{key:"table-column-status",fn:function({scope:a}){return[1==a.row.status?t("span",[e._v("待付款")]):e._e(),2==a.row.status?t("span",[e._v("已付款")]):e._e(),3==a.row.status?t("span",[e._v("已取消")]):e._e()]}},{key:"slot-search-list",fn:function({scope:a}){return[t("el-select",{staticStyle:{width:"200px","margin-right":"10px"},attrs:{filterable:"",remote:"","reserve-keyword":"",placeholder:"搜索客户",clearable:"","remote-method":e.searchCustomInfo,loading:e.loading,size:"middle"},on:{change:e.getCurrentCp},model:{value:e.currentCustomName,callback:function(t){e.currentCustomName=t},expression:"currentCustomName"}},e._l(e.customInfoList,(function(e){return t("el-option",{key:e.id,attrs:{label:`${e.name}(${e.id})`,value:e.id}})})),1),t("span",{staticStyle:{"margin-left":"9px","font-size":"28px"}},[e._v("结账时间:")]),t("el-date-picker",{staticClass:"custom-date-picker",staticStyle:{"margin-right":"8px"},attrs:{type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","value-format":"yyyy-MM-dd","end-placeholder":"结束日期","picker-options":e.pickerOptions,size:"middle"},on:{change:e.getSearchDate},model:{value:e.currentDateList,callback:function(t){e.currentDateList=t},expression:"currentDateList"}}),t("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",size:"middle"},on:{click:function(t){return e.exportData()}}},[e._v("导出数据")])]}},{key:"slot-column-option",fn:function({scope:a}){return[t("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(t){return e.getDetail(a.row)}}},[e._v("详情")])]}}])})],1)},s=[],n=(a("5880"),{components:{},data(){return{app:null,tabIndex:"0",tabsData:[{text:"全部",key:"0",val:0}],customInfoList:[],loading:!1,currentCustomName:"",customId:0,pickerOptions:{shortcuts:[{text:"最近一周",onClick(e){const t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近一个月",onClick(e){const t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"最近三个月",onClick(e){const t=new Date,a=new Date;a.setTime(a.getTime()-7776e6),e.$emit("pick",[a,t])}}]},startTime:"",endTime:"",searchTime:"",currentDateList:[]}},methods:{onLoad({ctx:e,app:t}){this.app=t,this.$route.query.customId&&(this.customId=this.$route.query.customId,this.currentCustomName=this.$route.query.customName?this.$route.query.customName:""),e.service(this.$service.checkout).set("table",{columns:[{prop:"id",label:"ID",align:"center",width:80},{prop:"addTime",label:"创建时间",align:"center",width:150},{prop:"payTime",label:"结账时间",align:"center",width:150},{prop:"orderSn",label:"编号",align:"center",width:140},{prop:"customId",label:"客户ID",align:"center",width:90},{prop:"customName",label:"客户名称",align:"center",width:150},{prop:"customMobile",label:"手机号",align:"center",width:110},{prop:"onlinePay",label:"线上付款",align:"center",width:90},{prop:"payWay",label:"支付方式",align:"center",width:90},{prop:"payRemark",label:"支付说明",align:"center",width:90},{prop:"status",label:"状态",align:"center",width:90},{prop:"num",label:"订单数",align:"center",width:90},{prop:"prePrice",label:"总金额",align:"center",width:110},{prop:"actPrice",label:"实付金额",align:"center",width:110}],op:{visible:!0,props:{width:110,align:"center",fixed:"right",label:"操作"},layout:["slot-column-option"]}}).set("dict",{search:{keyWord:"name"}}).set("search",{key:{placeholder:"..."}}).set("layout",[["slot-tabs"],["slot-search-list"],["data-table"],["flex1","pagination"]]).done(),this.refreshData()},getDetail(e){this.$message.error("开发中")},getCurrentCp(e){this.customId=e,this.refreshData()},refreshData(){this.app.refresh({searchTime:this.searchTime,startTime:this.startTime,endTime:this.endTime,customId:this.customId})},exportData(){this.$service.customDebtChange.getList({searchTime:this.searchTime,startTime:this.startTime,endTime:this.endTime,customId:this.customId,pageSize:9999999,export:1}).then(e=>{e.file&&(window.location.href=e.file)})},searchCustomInfo(e){let t=this;""!==e?(this.loading=!0,this.$service.custom.list({name:e,type:0}).then(e=>{t.loading=!1,t.customInfoList=e.list})):this.customInfoList=[]},getSearchDate(){this.$util.isEmpty(this.currentDateList)?(this.searchTime="",this.startTime="",this.endTime=""):(this.searchTime="custom",this.startTime=this.currentDateList[0],this.endTime=this.currentDateList[1]),this.refreshData()}}}),r=n,o=(a("efc5"),a("1805")),c=Object(o["a"])(r,i,s,!1,null,"a3ae1c76",null);t["default"]=c.exports},b640:function(e,t,a){},efc5:function(e,t,a){"use strict";a("b640")}}]);
|