"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[8606],{18606:function(e,t,a){a.r(t),a.d(t,{default:function(){return f}});var l=a(66252),i=a(3577);const r={class:"allOrder_page generalModel_page"},s={class:"generalModel_table_search"},n={class:"generalModel_state"},o={class:"generalModel_state_item"},c=(0,l._)("span",{class:"icon iconfont range_picker_icon icon-rili"},null,-1),d={class:"generalModel_search"},g=(0,l._)("span",{class:"icon iconfont icon-sousuo"},null,-1),u=[g],h={class:"generalModel_table_content",ref:"historyTable"},p={key:0,class:"operate_list"},m={class:"operate_item"};function _(e,t,a,g,_,k){const y=(0,l.up)("a-range-picker"),P=(0,l.up)("a-table");return(0,l.wg)(),(0,l.iD)("div",r,[(0,l._)("div",s,[(0,l._)("div",n,[(0,l._)("div",o,[(0,l._)("span",null,(0,i.zw)(e.$t("allOrder.Time"))+":",1),(0,l.Wm)(y,{class:"range_picker",value:e.rangePickerValue,"onUpdate:value":t[0]||(t[0]=t=>e.rangePickerValue=t),placeholder:[e.$t("HistoryPage.StartDate"),e.$t("HistoryPage.EndDate")],"show-time":{format:"HH:mm:ss"},format:"YYYY-MM-DD HH:mm:ss",valueFormat:"YYYY-MM-DD HH:mm:ss"},{suffixIcon:(0,l.w5)((()=>[c])),_:1},8,["value","placeholder"])])]),(0,l._)("div",d,[(0,l._)("div",{class:"generalModel_search_item",onClick:t[1]||(t[1]=t=>e.searchAllOrderList())},u)])]),(0,l._)("div",h,[(0,l.Wm)(P,{columns:e.columns,"data-source":e.collectionList,scroll:{y:e.historyTableHeight},onChange:e.changePage,pagination:{showSizeChanger:!0,current:e.currentPage,pageSize:e.pageSize,total:e.total,showQuickJumper:!0,bordered:!1}},{bodyCell:(0,l.w5)((({column:t,text:a,record:r,index:s})=>[t?.Operations?((0,l.wg)(),(0,l.iD)("div",p,[(0,l._)("div",m,(0,i.zw)(e.$t("HistoryPage.Delete")),1)])):(0,l.kq)("",!0)])),_:1},8,["columns","data-source","scroll","onChange","pagination"])],512)])}var k=a(2262),y=a(74961),P=a(8552),v=(0,l.aZ)({components:{},setup(){let e=(0,k.iH)({});const{t:t}=(0,P.QT)(),a=(0,l.Fl)((()=>[{title:(0,P.QT)().t("allOrder.Serial"),align:"center",ellipsis:!0,dataIndex:"orderNo",key:"orderNo"},{title:(0,P.QT)().t("allOrder.Title"),align:"center",ellipsis:!0,dataIndex:"title",key:"title"},{title:(0,P.QT)().t("allOrder.Money"),align:"center",ellipsis:!0,dataIndex:"totalFee",key:"totalFee"},{title:(0,P.QT)().t("allOrder.Payment"),align:"center",ellipsis:!0,dataIndex:"paymentType",key:"paymentType"},{title:(0,P.QT)().t("allOrder.State"),align:"center",ellipsis:!0,dataIndex:"orderStatus",key:"orderStatus"}]));let i=(0,k.iH)([]),r=(0,k.iH)([]),s=(0,k.iH)([]),n={},o=(0,k.iH)({value:"income"}),c=(0,k.iH)([{label:"Income",value:"income"},{label:"Expend",value:"expend"}]);return{columns:a,dataList:i,renameData:e,rangePickerValue:r,collectionList:s,userInfo:n,currentState:o,state:c,t:t}},data(){return{currentPage:1,pageSize:10,total:0,historyTableHeight:0,searchCollectionName:""}},mounted(){this.getAllOrderList(),(0,l.Y3)((()=>{let e=this.$refs.historyTable;this.historyTableHeight=e.clientHeight-130}))},methods:{init(){this.currentPage=1,this.pageSize=10,this.getAllOrderList()},changePage(e){this.currentPage=e.current,this.pageSize=e.pageSize,this.getAllOrderList()},searchAllOrderList(){this.currentPage=1,this.getAllOrderList()},getAllOrderList(){let e=this.rangePickerValue[0]?this.rangePickerValue[0]:"",t=this.rangePickerValue[1]?this.rangePickerValue[1]:"",a={endTime:t,isIncome:"income"==this.currentState.value,page:this.currentPage,size:this.pageSize,startTime:e};y.V.axiosPost(y.V.httpUrls.orderInfoList,a).then((e=>{this.currentPage>1&&0==e.content.length?(this.currentPage=1,this.getAllOrderList()):(this.collectionList=e.content,this.total=e.total)}))}}}),H=a(83744);const T=(0,H.Z)(v,[["render",_]]);var f=T}}]);