"use strict";(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[1454],{91454:function(e,t,a){a.r(t),a.d(t,{default:function(){return w}});var i=a(66252),r=a(49963),l=a(3577);const n=e=>((0,i.dD)("data-v-786b201d"),e=e(),(0,i.Cn)(),e),s={class:"allOrder_page generalModel_page"},o={class:"generalModel_table_search"},c={class:"generalModel_state"},d={class:"generalModel_state_item"},g=n((()=>(0,i._)("span",{class:"icon iconfont range_picker_icon icon-rili"},null,-1))),h={class:"generalModel_state_item"},u=["placeholder"],p={class:"generalModel_search"},m={class:"generalModel_table_content",ref:"historyTable"},_={key:0,class:"operate_list"},k={class:"operate_item"},y=["href"],v={key:1};function P(e,t,a,n,P,T){const b=(0,i.up)("a-range-picker"),H=(0,i.up)("a-table");return(0,i.wg)(),(0,i.iD)("div",s,[(0,i._)("div",o,[(0,i._)("div",c,[(0,i._)("div",d,[(0,i.Wm)(b,{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,i.w5)((()=>[g])),_:1},8,["value","placeholder"])]),(0,i._)("div",h,[(0,i.wy)((0,i._)("input",{type:"Number",placeholder:e.$t("Generate.jsContent3"),"onUpdate:modelValue":t[1]||(t[1]=t=>e.orderId=t)},null,8,u),[[r.nr,e.orderId]])])]),(0,i._)("div",p,[(0,i._)("div",{class:"gallery_btn",onClick:t[2]||(t[2]=t=>e.searchAllOrderList())},"Search")])]),(0,i._)("div",m,[(0,i.Wm)(H,{columns:e.columns,"data-source":e.collectionList,scroll:{y:e.historyTableHeight},onChange:e.changePage,pagination:{showSizeChanger:!1,current:e.currentPage,pageSize:e.pageSize,total:e.total,showQuickJumper:!0,bordered:!1,size:"small",position:["bottomCenter"]}},{bodyCell:(0,i.w5)((({column:e,text:t,record:a,index:r})=>[e?.Operations?((0,i.wg)(),(0,i.iD)("div",_,[(0,i._)("div",k,[t?((0,i.wg)(),(0,i.iD)("a",{key:0,href:t,target:"_blank"},"LINK",8,y)):((0,i.wg)(),(0,i.iD)("span",v,"\\"))])])):(0,i.kq)("",!0)])),itemRender:(0,i.w5)((({type:e,originalElement:t})=>[(0,i.Uk)((0,l.zw)(e),1)])),_:1},8,["columns","data-source","scroll","onChange","pagination"])],512)])}var T=a(2262),b=a(74961),H=a(8552),I=(0,i.aZ)({components:{},setup(){let e=(0,T.iH)({});const{t:t}=(0,H.QT)(),a=(0,i.Fl)((()=>[{title:(0,H.QT)().t("allOrder.Serial"),align:"center",ellipsis:!0,dataIndex:"id",key:"id"},{title:(0,H.QT)().t("allOrder.Time"),align:"center",ellipsis:!0,dataIndex:"createTime",key:"createTime"},{title:(0,H.QT)().t("allOrder.Money"),align:"center",ellipsis:!0,dataIndex:"amount",key:"amount"},{title:(0,H.QT)().t("allOrder.PaymentMethods"),align:"center",ellipsis:!0,dataIndex:"paymentMethod",key:"paymentMethod"},{title:(0,H.QT)().t("allOrder.State"),align:"center",ellipsis:!0,dataIndex:"state",key:"state"},{title:(0,H.QT)().t("allOrder.OrderType"),align:"center",ellipsis:!0,dataIndex:"orderType",key:"orderType"},{title:(0,H.QT)().t("allOrder.Receipt"),align:"center",ellipsis:!0,Operations:!0,dataIndex:"invoiceLink",key:"invoiceLink"}]));let r=(0,T.iH)([]),l=(0,T.iH)([]),n=(0,T.iH)(),s=(0,T.iH)([]),o={},c=(0,T.iH)({value:"income"}),d=(0,T.iH)([{label:"Income",value:"income"},{label:"Expend",value:"expend"}]),g=(0,T.iH)([]);const h=e=>{g.value=e};return{columns:a,dataList:r,renameData:e,rangePickerValue:l,orderId:n,collectionList:s,userInfo:o,currentState:c,state:d,t:t,selectedRowKey:g,onSelectChange:h}},data(){return{currentPage:1,pageSize:10,total:0,historyTableHeight:0,searchCollectionName:""}},mounted(){},methods:{init(e){this.currentPage=1,this.pageSize=10,this.orderId=e,(0,i.Y3)((()=>{let e=this.$refs.historyTable;this.historyTableHeight=e.clientHeight-100})),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,id:this.orderId};b.V.axiosPost(b.V.httpUrls.orderInfoList,a).then((e=>{this.currentPage>1&&0==e.content.length?(this.currentPage=1,this.getAllOrderList()):(e.content.forEach((e=>e.key=e.id)),this.collectionList=e.content,this.total=e.total)}))}}}),f=a(83744);const O=(0,f.Z)(I,[["render",P],["__scopeId","data-v-786b201d"]]);var w=O}}]);