2 lines
7.2 KiB
JavaScript
2 lines
7.2 KiB
JavaScript
import{J as Q,G as j,H as G,L as H,M as J,N as K,Q as Z,O as z,C as W,w as X,D as ee,B as le}from"./element-plus.2acb577d.js";import{_ as oe}from"./index.vue_vue_type_script_setup_true_lang.a280d02d.js";import{u as te}from"./usePaging.23706826.js";import{u as ue}from"./useDictOptions.4fbfb4d7.js";import ae from"./detail.eb9e9bd6.js";import{h as ne,p as ie,q as se,r as pe}from"./oa_financial.d5633b25.js";import{d as U,r as C,Z as re,o as F,c as me,U as l,L as t,u,R as p,M as de,K as v,a as g,S as Y,Q as D,i as A,n as fe}from"./@vue.821a47ec.js";import"./lodash-es.df44a280.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.81e2759c.js";import"./@element-plus.dabbc398.js";import"./dayjs.d2a77ee0.js";import"./axios.9e996410.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./index.81df6f20.js";import"./lodash.6bfd3540.js";import"./vue-router.4c04f9b6.js";import"./pinia.fefed778.js";import"./css-color-function.8ff67959.js";import"./color.bfa08e9a.js";import"./clone.660f80c4.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.dcb32030.js";import"./vue-clipboard3.e681583f.js";import"./clipboard.3ad9b20b.js";import"./echarts.42bea269.js";import"./tslib.60310f1a.js";import"./zrender.2cb48b70.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8864a4be.js";import"./index.vue_vue_type_style_index_0_lang.9e5f7fb0.js";import"./index.vue_vue_type_script_setup_true_lang.61cb6e34.js";import"./index.f292cd50.js";const Fe={class:"mt-4"},_e={class:"flex mt-4 justify-end"},ve=U({name:"oaSealCateLists"}),tl=U({...ve,setup(ce){const b=C(null),E=C(!1),r=C(!1),m=re({title:"",status:""}),$=C([]),I=i=>{$.value=i.map(({id:e})=>e)};ue("");const{pager:c,getLists:_,resetParams:M,resetPage:S}=te({fetchFun:pe,params:m}),L=async i=>{var d,a;let e=await ne({id:i});E.value=!0,await fe(),(d=b.value)==null||d.open(),(a=b.value)==null||a.setFormData(e)},P=i=>{s.value=i,r.value=!0};let s=C({});const N=async()=>{let{id:i,code:e,open_time:d,delivery:a}=s.value;await ie({id:i,code:e,open_time:d,delivery:a}),r.value=!1,_()},V=async i=>{await se({id:i}),_()};return _(),(i,e)=>{const d=Q,a=W,k=j,R=G,f=X,B=ee,w=H,n=J,h=K,T=oe,x=le,q=Z,O=z;return F(),me("div",null,[l(w,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[l(B,{class:"mb-[-16px]",model:u(m),inline:""},{default:t(()=>[l(a,{label:"\u5F00\u59CB\u65F6\u95F4",prop:"uid"},{default:t(()=>[l(d,{class:"flex-1 !flex",modelValue:u(m).start_time,"onUpdate:modelValue":e[0]||(e[0]=o=>u(m).start_time=o),clearable:"",type:"date","value-format":"YYYY-MM-DD",placeholder:"\u9009\u62E9\u5F00\u59CB\u65F6\u95F4"},null,8,["modelValue"])]),_:1}),l(a,{label:"\u7ED3\u675F\u65F6\u95F4",prop:"uid"},{default:t(()=>[l(d,{class:"flex-1 !flex",modelValue:u(m).end_time,"onUpdate:modelValue":e[1]||(e[1]=o=>u(m).end_time=o),clearable:"",type:"date","value-format":"YYYY-MM-DD",placeholder:"\u9009\u62E9\u7ED3\u675F\u65F6\u95F4"},null,8,["modelValue"])]),_:1}),l(a,{label:"\u72B6\u6001",prop:"status",class:"w-[160px]"},{default:t(()=>[l(R,{modelValue:u(m).status,"onUpdate:modelValue":e[2]||(e[2]=o=>u(m).status=o),placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",class:"flex-1"},{default:t(()=>[l(k,{label:"\u5BA1\u6279\u901A\u8FC7\uFF0C\u5F85\u5F00\u5177",value:"1"}),l(k,{label:"\u5BA1\u6279\u901A\u8FC7\uFF0C\u5DF2\u5F00\u5177",value:"2"}),l(k,{label:"\u5DF2\u4F5C\u5E9F",value:"3"})]),_:1},8,["modelValue"])]),_:1}),l(a,null,{default:t(()=>[l(f,{type:"primary",onClick:u(S)},{default:t(()=>e[12]||(e[12]=[p("\u67E5\u8BE2")])),_:1},8,["onClick"]),l(f,{onClick:u(M)},{default:t(()=>e[13]||(e[13]=[p("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),de((F(),v(w,{class:"!border-none",shadow:"never"},{default:t(()=>[g("div",Fe,[l(h,{data:u(c).lists,onSelectionChange:I},{default:t(()=>[l(n,{label:"\u5F00\u7968\u62AC\u5934",prop:"invoice_title","show-overflow-tooltip":""}),l(n,{label:"\u5F00\u7968\u91D1\u989D(\u5143)",prop:"amount","show-overflow-tooltip":""}),l(n,{label:"\u5F00\u7968\u7C7B\u578B",prop:"invoice_type_text","show-overflow-tooltip":""}),l(n,{label:"\u53D1\u7968\u72B6\u6001",prop:"check_status_text","show-overflow-tooltip":""}),l(n,{label:"\u7533\u8BF7\u4EBA",prop:"user_name","show-overflow-tooltip":""}),l(n,{label:"\u6240\u5C5E\u90E8\u95E8",prop:"dept_name","show-overflow-tooltip":""},{default:t(({row:o})=>[p(Y(o.dept_name||"\u5168\u516C\u53F8"),1)]),_:1}),l(n,{label:"\u7533\u8BF7\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),l(n,{label:"\u5F00\u7968\u4EBA",prop:"open_admin_name","show-overflow-tooltip":""}),l(n,{label:"\u5F00\u7968\u65F6\u95F4",prop:"open_time","show-overflow-tooltip":""}),l(n,{label:"\u53D1\u7968\u53F7\u7801",prop:"code","show-overflow-tooltip":""}),l(n,{label:"\u64CD\u4F5C",width:"300",fixed:"right"},{default:t(({row:o})=>[l(f,{type:"primary",link:"",onClick:y=>L(o.id)},{default:t(()=>e[14]||(e[14]=[p(" \u8BE6\u60C5 ")])),_:2},1032,["onClick"]),o.check_status!=10?(F(),v(f,{key:0,type:"primary",link:"",onClick:y=>P(o)},{default:t(()=>[p(Y(o.code?"\u4FEE\u6539\u5F00\u7968\u4FE1\u606F":"\u6807\u8BB0\u4E3A\u5F00\u7968"),1)]),_:2},1032,["onClick"])):D("",!0),o.check_status==5?(F(),v(f,{key:1,type:"primary",link:"",onClick:y=>V(o.id)},{default:t(()=>e[15]||(e[15]=[p(" \u53D1\u7968\u4F5C\u5E9F ")])),_:2},1032,["onClick"])):D("",!0),o.check_status==10?(F(),v(f,{key:2,type:"primary",link:"",onClick:y=>V(o.id)},{default:t(()=>e[16]||(e[16]=[p(" \u53CD\u4F5C\u5E9F ")])),_:2},1032,["onClick"])):D("",!0)]),_:1})]),_:1},8,["data"])]),g("div",_e,[l(T,{modelValue:u(c),"onUpdate:modelValue":e[3]||(e[3]=o=>A(c)?c.value=o:null),onChange:u(_)},null,8,["modelValue","onChange"])])]),_:1})),[[O,u(c).loading]]),u(E)?(F(),v(ae,{key:0,ref_key:"detailRef",ref:b,onSuccess:e[4]||(e[4]=o=>(E.value=!1,u(_)())),onClose:e[5]||(e[5]=o=>(E.value=!1,u(_)()))},null,512)):D("",!0),u(r)?(F(),v(q,{key:1,modelValue:u(r),"onUpdate:modelValue":e[10]||(e[10]=o=>A(r)?r.value=o:null),width:"550px",title:"\u5F00\u5177\u53D1\u7968",onClose:e[11]||(e[11]=o=>r.value=!1)},{default:t(()=>[l(B,{ref:"formRef",model:u(s),"label-width":"120px"},{default:t(()=>[l(a,{label:"\u53D1\u7968\u53F7\u7801",prop:"code"},{default:t(()=>[l(x,{modelValue:u(s).code,"onUpdate:modelValue":e[6]||(e[6]=o=>u(s).code=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u53D1\u7968\u53F7\u7801"},null,8,["modelValue"])]),_:1}),l(a,{label:"\u53D1\u7968\u5F00\u5177\u65F6\u95F4",prop:"open_time"},{default:t(()=>[l(d,{class:"flex-1 !flex",modelValue:u(s).open_time,"onUpdate:modelValue":e[7]||(e[7]=o=>u(s).open_time=o),clearable:"",type:"date","value-format":"YYYY-MM-DD",placeholder:"\u9009\u62E9\u53D1\u7968\u5F00\u5177\u65F6\u95F4"},null,8,["modelValue"])]),_:1}),l(a,{label:"\u5FEB\u9012\u5355\u53F7",prop:"delivery"},{default:t(()=>[l(x,{modelValue:u(s).delivery,"onUpdate:modelValue":e[8]||(e[8]=o=>u(s).delivery=o),clearable:"",placeholder:"\u8BF7\u8F93\u5FEB\u9012\u5355\u53F7"},null,8,["modelValue"])]),_:1}),l(a,null,{default:t(()=>[l(f,{type:"primary",onClick:N},{default:t(()=>e[17]||(e[17]=[p("\u786E\u5B9A")])),_:1}),l(f,{onClick:e[9]||(e[9]=o=>r.value=!1)},{default:t(()=>e[18]||(e[18]=[p("\u53D6\u6D88")])),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])):D("",!0)])}}});export{tl as default};
|