2 lines
6.6 KiB
JavaScript
2 lines
6.6 KiB
JavaScript
import{I as W,y as X,w as Y,D as Z,C as ee,L as oe,M as te,N as ae}from"./element-plus.258bf9e7.js";import{_ as le}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as re,a as ne}from"./index.ec401e3b.js";import{_ as ie}from"./index.vue_vue_type_style_index_0_lang.e91ff55f.js";import{u as se}from"./usePaging.f6660143.js";import{u as ue}from"./useDictOptions.c644f395.js";import{c as R,a as L,b as pe}from"./recordsPayment.151d9a50.js";import"./lodash.1d82ee7c.js";import{_ as ce}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.48d84466.js";import me from"./detail.ac4a4c70.js";import{u as de}from"./vue-router.87ebc608.js";import{d as T,a0 as j,s as I,r as k,ai as _e,o as s,c as fe,V as e,M as t,O as f,u as n,L as p,S as N,n as E,a as S,k as ve,T as d}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.9492d03b.js";import"./index.vue_vue_type_script_setup_true_lang.fa76c14a.js";import"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./contract.4f8a540d.js";import"./index.vue_vue_type_script_setup_true_lang.511787a8.js";import"./bank_account.f2682814.js";import"./remittance.3fda3ff0.js";import"./projecttype.f974a874.js";import"./index.a91b9a2c.js";import"./approve.4bfa22cd.js";import"./flow.825559ec.js";import"./custom.13e75d58.js";import"./flowSet.6e7dc427.js";const ye=d("\u67E5\u8BE2"),we=d("\u91CD\u7F6E"),he=d(" \u65B0\u589E "),Ce=d(" \u5220\u9664 "),Fe={class:"mt-4"},be=d(" \u7F16\u8F91 "),ke=d(" \u5220\u9664 "),Ee=d(" \u8BE6\u60C5 "),De={class:"flex justify-end mt-4"},ge=T({name:"projectLists"}),Po=T({...ge,setup(Be){var V;j([]);const C=I(),y=I(),w=k(!1),F=k(!1),c=j({contract_no:"",contract_name:""}),b=k([]),A=l=>{b.value=l.map(({id:o})=>o)},{dictData:D}=ue("isaccrued,pay_type,invoice_status,pay_period,collection_type"),{pager:_,getLists:h,resetParams:q,resetPage:z}=se({fetchFun:L,params:c}),U=async()=>{var l;w.value=!0,await E(),(l=y.value)==null||l.open("add")},M=async l=>{var u,i;console.log(l.id);let o=await R({id:l.id});w.value=!0,await E(),(u=y.value)==null||u.open("edit"),(i=y.value)==null||i.setFormData(o)},g=async l=>{await re.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await pe({id:l}),h()},B=async l=>{var u,i;let o=await R({id:l.id});F.value=!0,await E(),(u=C.value)==null||u.open(),(i=C.value)==null||i.setFormData(o)},P=de();return(V=P.query)!=null&&V.listId&&B({id:P.query.listId}),h(),(l,o)=>{const u=W,i=X,m=Y,O=ie,G=Z,x=ee,H=ne,a=oe,J=te,K=le,v=_e("perms"),Q=ae;return s(),fe("div",null,[e(x,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(G,{class:"mb-[-16px]",model:c,inline:""},{default:t(()=>[e(i,{label:"\u5408\u540C\u7F16\u53F7",prop:"project_name"},{default:t(()=>[e(u,{class:"w-[280px]",modelValue:c.contract_no,"onUpdate:modelValue":o[0]||(o[0]=r=>c.contract_no=r),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(i,{label:"\u5408\u540C\u540D\u79F0",prop:"project_role_name"},{default:t(()=>[e(u,{class:"w-[280px]",modelValue:c.contract_name,"onUpdate:modelValue":o[1]||(o[1]=r=>c.contract_name=r),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u540D\u79F0"},null,8,["modelValue"])]),_:1}),e(i,null,{default:t(()=>[e(m,{type:"primary",onClick:n(z)},{default:t(()=>[ye]),_:1},8,["onClick"]),e(m,{onClick:n(q)},{default:t(()=>[we]),_:1},8,["onClick"]),e(O,{class:"ml-2.5","fetch-fun":n(L),params:c,"page-size":n(_).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),f((s(),p(x,{class:"!border-none",shadow:"never"},{default:t(()=>[f((s(),p(m,{type:"primary",onClick:U},{icon:t(()=>[e(H,{name:"el-icon-Plus"})]),default:t(()=>[he]),_:1})),[[v,["recordsPayment.recordsPayment/add"]]]),f((s(),p(m,{disabled:!b.value.length,onClick:o[2]||(o[2]=r=>g(b.value))},{default:t(()=>[Ce]),_:1},8,["disabled"])),[[v,["recordsPayment.recordsPayment/delete"]]]),S("div",Fe,[e(J,{data:n(_).lists,onSelectionChange:A},{default:t(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(a,{label:"\u5BA2\u6237\u540D\u79F0",prop:"custom_name","show-overflow-tooltip":""}),e(a,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(a,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_code","show-overflow-tooltip":""}),e(a,{label:"\u65E5\u671F",prop:"return_date","show-overflow-tooltip":""}),e(a,{label:"\u671F\u6B21",prop:"period","show-overflow-tooltip":""}),e(a,{label:"\u91D1\u989D",prop:"amount","show-overflow-tooltip":""}),e(a,{label:"\u5F00\u7968\u72B6\u6001",prop:"invoice_status","show-overflow-tooltip":""}),e(a,{label:"\u4ED8\u6B3E\u65B9\u5F0F",prop:"pay_type","show-overflow-tooltip":""}),e(a,{label:"\u6536\u6B3E\u6027\u8D28",prop:"collection_type","show-overflow-tooltip":""}),e(a,{label:"\u6536\u6B3E\u4EBA",prop:"receiver","show-overflow-tooltip":""}),e(a,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:t(({row:r})=>[f((s(),p(m,{type:"primary",link:"",onClick:$=>M(r)},{default:t(()=>[be]),_:2},1032,["onClick"])),[[v,["recordsPayment.recordsPayment/edit"]]]),f((s(),p(m,{type:"danger",link:"",onClick:$=>g(r.id)},{default:t(()=>[ke]),_:2},1032,["onClick"])),[[v,["recordsPayment.recordsPayment/delete"]]]),f((s(),p(m,{link:"",onClick:$=>B(r)},{default:t(()=>[Ee]),_:2},1032,["onClick"])),[[v,["recordsPayment.recordsPayment/detail"]]])]),_:1})]),_:1},8,["data"])]),S("div",De,[e(K,{modelValue:n(_),"onUpdate:modelValue":o[3]||(o[3]=r=>ve(_)?_.value=r:null),onChange:n(h)},null,8,["modelValue","onChange"])])]),_:1})),[[Q,n(_).loading]]),w.value?(s(),p(ce,{key:0,ref_key:"editRef",ref:y,"dict-data":n(D),onSuccess:n(h),onClose:o[4]||(o[4]=r=>w.value=!1)},null,8,["dict-data","onSuccess"])):N("",!0),F.value?(s(),p(me,{key:1,ref_key:"detailRef",ref:C,"dict-data":n(D),onClose:o[5]||(o[5]=r=>F.value=!1)},null,8,["dict-data"])):N("",!0)])}}});export{Po as default};
|