2 lines
5.3 KiB
JavaScript
2 lines
5.3 KiB
JavaScript
import{Y as O,_ as q,$ as z,D as J,C as Q,Q as W,R as G,w as H,F as K,I as X,L as Z,M as ee,J as le,N as oe}from"./element-plus.eb2e53ea.js";import{_ as ae}from"./index.vue_vue_type_script_setup_true_lang.f75f9565.js";import{u as te}from"./usePaging.d25ebf19.js";import{c as ue,d as ne}from"./store_finance_flow.ab04bfc0.js";import{h as re}from"./goodsList.92f50107.js";import{d as h,a0 as se,r as d,o as v,c as k,a as E,W as e,O as l,V as B,a7 as ie,M as V,T as _,P as pe,u as w,j as me}from"./@vue.c3e77981.js";import"./@vueuse.a48d0173.js";import"./@element-plus.12c58ce2.js";import"./lodash-es.2b5acb28.js";import"./dayjs.16ed1fda.js";import"./axios.a8078129.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.01e2b43c.js";import"./lodash.a2abcd4b.js";import"./vue-router.995b143f.js";import"./pinia.b5130627.js";import"./css-color-function.975e80a5.js";import"./color.d986aa86.js";import"./clone.704d8332.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.ded7f805.js";import"./vue-clipboard3.987889a8.js";import"./clipboard.af74a91f.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.js";const de={class:"mt-4"},_e={class:"flex mt-4 justify-end"},fe=h({name:"manageProjectLists"}),Ze=h({...fe,setup(ce){const u=se({keyword:"",start_time:"",end_time:"",order:"",staff_id:""}),n=d(null),{pager:s,getLists:F,resetParams:y,resetPage:D}=te({fetchFun:ne,params:u}),i=d(!1);d("");const p=d({}),x=async()=>{await ue({id:p.value.id,remark:p.value.remark}),i.value=!1},A=()=>{n.value.length&&(u.start_time=n.value[0],u.end_time=n.value[1]),D()},L=f=>{p.value=f,i.value=!0},P=()=>{n.value=[],y()},b=d([]);return(async()=>{let f=await re({page_no:1,page_size:100});b.value=f.lists})(),F(),(f,a)=>{const R=O,r=J,c=q,g=Q,S=W,U=G,m=H,Y=z,M=K,C=X,t=Z,N=ee,T=ae,$=le,j=oe;return v(),k(B,null,[E("div",null,[e(C,{class:"!border-none mb-4",shadow:"never"},{default:l(()=>[e(M,{class:"mb-[-16px]",model:u,"label-width":"80px"},{default:l(()=>[e(Y,null,{default:l(()=>[e(c,{span:6},{default:l(()=>[e(r,{label:"\u65F6\u95F4\u7B5B\u9009"},{default:l(()=>[e(R,{modelValue:n.value,"onUpdate:modelValue":a[0]||(a[0]=o=>n.value=o),type:"daterange","range-separator":"-","start-placeholder":"\u5F00\u59CB\u65F6\u95F4","end-placeholder":"\u7ED3\u675F\u65F6\u95F4","value-format":"YYYY-MM-DD",clearable:!1},null,8,["modelValue"])]),_:1})]),_:1}),e(c,{span:6},{default:l(()=>[e(r,{label:"\u8BA2\u5355\u641C\u7D22"},{default:l(()=>[e(g,{modelValue:u.keyword,"onUpdate:modelValue":a[1]||(a[1]=o=>u.keyword=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4EA4\u6613\u5355\u53F7"},null,8,["modelValue"])]),_:1})]),_:1}),e(c,{span:6},{default:l(()=>[e(r,{label:"\u5E97\u5458"},{default:l(()=>[e(U,{class:"flex-1",modelValue:u.staff_id,"onUpdate:modelValue":a[2]||(a[2]=o=>u.staff_id=o),placeholder:"\u8BF7\u9009\u62E9\u5E97\u5458"},{default:l(()=>[(v(!0),k(B,null,ie(b.value,(o,I)=>(v(),V(S,{label:o.staff_name,value:o.id},null,8,["label","value"]))),256))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(c,{span:6},{default:l(()=>[e(r,null,{default:l(()=>[e(m,{type:"primary",onClick:A},{default:l(()=>[_("\u67E5\u8BE2")]),_:1}),e(m,{onClick:P},{default:l(()=>[_("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),pe((v(),V(C,{class:"!border-none",shadow:"never"},{default:l(()=>[E("div",de,[e(N,{data:w(s).lists},{default:l(()=>[e(t,{label:"\u4EA4\u6613\u5355\u53F7",prop:"financial_record_sn","show-overflow-tooltip":""}),e(t,{label:"\u5173\u8054\u8BA2\u5355",prop:"order_sn","show-overflow-tooltip":""}),e(t,{label:"\u4EA4\u6613\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),e(t,{label:"\u4EA4\u6613\u91D1\u989D",prop:"number","show-overflow-tooltip":""}),e(t,{label:"\u4EA4\u6613\u4EBA",prop:"nickname","show-overflow-tooltip":""}),e(t,{label:"\u5173\u8054\u5E97\u5458",prop:"staff_name","show-overflow-tooltip":""}),e(t,{label:"\u4EA4\u6613\u7C7B\u578B",prop:"financial_type_name","show-overflow-tooltip":""}),e(t,{label:"\u652F\u4ED8\u65B9\u5F0F",prop:"pay_type_name","show-overflow-tooltip":""}),e(t,{label:"\u64CD\u4F5C",width:"170",fixed:"right"},{default:l(({row:o})=>[e(m,{onClick:I=>L(o),link:"",type:"primary"},{default:l(()=>[_("\u5907\u6CE8")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),E("div",_e,[e(T,{modelValue:w(s),"onUpdate:modelValue":a[3]||(a[3]=o=>me(s)?s.value=o:null),onChange:w(F)},null,8,["modelValue","onChange"])])]),_:1})),[[j,w(s).loading]])]),e($,{title:"\u6DFB\u52A0\u5907\u6CE8",modelValue:i.value,"onUpdate:modelValue":a[6]||(a[6]=o=>i.value=o),width:"550px"},{default:l(()=>[e(r,null,{default:l(()=>[e(g,{modelValue:p.value.remark,"onUpdate:modelValue":a[4]||(a[4]=o=>p.value.remark=o),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8\u5185\u5BB9"},null,8,["modelValue"])]),_:1}),e(r,null,{default:l(()=>[e(m,{type:"primary",onClick:x},{default:l(()=>[_("\u786E\u5B9A")]),_:1}),e(m,{onClick:a[5]||(a[5]=o=>i.value=!1)},{default:l(()=>[_("\u53D6\u6D88")]),_:1})]),_:1})]),_:1},8,["modelValue"])],64)}}});export{Ze as default};
|