sf_web_dist/js/prepayment-log.CYfmrPVZ.js
2025-08-05 14:53:04 +08:00

2 lines
2.2 KiB
JavaScript

import{ag as e,r as a,m as t,e as o,w as l,N as r,g as p,an as n,O as s,aX as g}from"./index.B4nP-7hR.js";import{_ as i}from"./index.Ct36SObr.js";import c from"./settlement-log.Cq5mRQuM.js";/* empty css */import"./el-col.BbPtes2w.js";const d={__name:"prepayment-log",props:{showPrePaymentLogDialog:{type:Boolean,default:!1},currentRow:{type:Object,default:{}}},emits:["update:showPrePaymentLogDialog"],setup(d,{emit:m}){const u=d,h=e({columns:[{label:"ID",prop:"productName",align:"center"},{label:"加减前预付",prop:"productName",align:"center"},{label:"加减",prop:"productType",align:"center"},{label:"加减后预付",prop:"productType",align:"center"},{label:"来源",prop:"productType",align:"center"},{label:"备注",prop:"productType",align:"center"},{label:"添加时间",prop:"productType",align:"center"}],searchFields:[{prop:"created_at",label:"添加时间",type:"date",dateType:"datetimerange",value:[]}],tableData:[],total:0,page:1,per_page:10,loading:!1,showSettlementLogDialog:!1});e({mode:"single",type:["1","2"]});const w=a(),y=m,_=()=>{y("update:showPrePaymentLogDialog",!1)},b=()=>{},D=()=>{h.showSettlementLogDialog=!0,h.currentRow=u.currentRow};return(e,a)=>{const m=n,u=i,y=g;return o(),t(y,{"model-value":d.showPrePaymentLogDialog,title:"预付款日志",width:"70vw","before-close":_,ref_key:"channelRef",ref:w},{default:l(()=>[r(u,{type:"export",columns:p(h).columns,searchFields:p(h).searchFields,"onUpdate:searchFields":a[0]||(a[0]=e=>p(h).searchFields=e),data:p(h).tableData,per_page:p(h).per_page,"onUpdate:per_page":a[1]||(a[1]=e=>p(h).per_page=e),page:p(h).page,"onUpdate:page":a[2]||(a[2]=e=>p(h).page=e),total:p(h).total,onGetTableData:b,loading:p(h).loading,showSelection:!1,showRightRefreshSlot:!1},{"search-btns":l(()=>[r(m,{type:"primary",onClick:D},{default:l(()=>a[4]||(a[4]=[s("结算日志")])),_:1,__:[4]})]),_:1},8,["columns","searchFields","data","per_page","page","total","loading"]),r(c,{showSettlementLogDialog:p(h).showSettlementLogDialog,"onUpdate:showSettlementLogDialog":a[3]||(a[3]=e=>p(h).showSettlementLogDialog=e),currentRow:d.currentRow},null,8,["showSettlementLogDialog","currentRow"])]),_:1},8,["model-value"])}}};export{d as default};