index.384d251b.js 1.3 KB

1
  1. import{w as x,aN as A,ax as n,a0 as q}from"./index.js";const E=t=>t?A(t).format("YYYY-MM-DD"):"";function I(t,d,l,_){const c=x(null);function m(a){var f;const{result:i,deleteProps:r}=t?t(a):{result:{},deleteProps:[]},e={...a,...i};if(l){const{formItems:u}=l;u.forEach(g=>{const{field:s,type_field:p,otherOptions:v={},type:P}=g,{startProp:R,endProp:h}=v;(R||h)&&e[s]&&(e[R]=P==="date_picker"?E(e[s][0]):e[s][0],e[h]=P==="date_picker"?E(e[s][1]):e[s][1],delete e[s]),p&&(e[e[p]]=e[s],delete e[s],delete e[p])})}r.forEach(u=>delete e[u]),(f=c.value)==null||f.getPageData(e)}function D(a){var r;const{result:i}=t?t(a):{result:{}};(r=c.value)==null||r.getPageData(_?{}:i),d&&d()}return{pageContentRef:c,handleSearchClick:m,handleResetClick:D}}const{VITE_PROXY_DOMAIN_REAL:L,VITE_PROXY_USER_REAL:y,VITE_WORKORDER_REAL:O}=q(),Y=y+"/admin/",o=O,S=t=>n.request("post",`${o}/cxinv/FinancialProducts/create`,{data:t}),T=t=>n.request("post",`${o}/cxinv/FinancialProducts/list`,{data:t}),V=t=>n.request("post",`${o}/cxinv/FinancialProducts/info`,{data:t}),w=t=>n.request("post",`${o}/cxinv/FinancialProducts/status`,{data:t}),F=t=>n.request("post",`${o}/user/TaxCategory/list`,{data:t}),M=t=>n.request("post",`${Y}companylist`,{data:{noRela:!0,...t}});export{V as a,M as b,w as c,F as d,S as e,T as h,I as u};