engineering/public/admin/assets/index.d5b9a488.js
2024-02-27 10:28:16 +08:00

2 lines
7.0 KiB
JavaScript

import{G as ee,H as te,y as oe,w as ae,D as le,C as re,L as ne,M as ue,N as se}from"./element-plus.517d4382.js";import{_ as ie}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as pe,a as me}from"./index.8b1962e9.js";import{_ as de}from"./index.vue_vue_type_style_index_0_lang.9f4b6930.js";import{u as ce}from"./usePaging.f6660143.js";import{u as _e}from"./useDictOptions.b5854a9e.js";import{c as P,a as S,b as fe}from"./remittance.aceb913b.js";import"./lodash.1d82ee7c.js";import{_ as ve}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.4d03b65a.js";import we from"./detail.02d93742.js";import{u as Ee}from"./vue-router.87ebc608.js";import{d as U,a0 as j,s as I,r as F,ai as he,o as r,c as g,V as e,M as a,O as v,u as n,L as s,S as N,n as V,W as T,a8 as q,a as z,k as be,T as c}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.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.b17dae19.js";import"./index.vue_vue_type_script_setup_true_lang.b3047aa5.js";import"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./contract.2d0c2079.js";import"./index.vue_vue_type_style_index_0_lang.c7aef442.js";import"./common.9d529cba.js";import"./index.011c79f0.js";import"./approve.bbbe5096.js";import"./flow.34e13ba8.js";import"./custom.99349afc.js";import"./flowSet.6da79e1c.js";const Ce=c("\u67E5\u8BE2"),ye=c("\u91CD\u7F6E"),Be=c(" \u65B0\u589E "),ke=c(" \u5220\u9664 "),De={class:"mt-4"},Fe=c(" \u7F16\u8F91 "),ge=c(" \u5220\u9664 "),Ve=c(" \u8BE6\u60C5 "),xe={class:"flex justify-end mt-4"},$e=U({name:"projectLists"}),xt=U({...$e,setup(Le){var R;j([]);const y=I(),E=I(),h=F(!1),B=F(!1),m=j({period:"",return_status:""}),k=F([]),M=u=>{k.value=u.map(({id:t})=>t)},{dictData:b}=_e("return_status,pay_period,contract_type"),{pager:_,getLists:C,resetParams:O,resetPage:G}=ce({fetchFun:S,params:m}),H=async()=>{var u;h.value=!0,await V(),(u=E.value)==null||u.open("add")},W=async u=>{var i,p;console.log(u.id);let t=await P({id:u.id});h.value=!0,await V(),(i=E.value)==null||i.open("edit"),(p=E.value)==null||p.setFormData(t)},x=async u=>{await pe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await fe({id:u}),C()},$=async u=>{var i,p;let t=await P({id:u.id});B.value=!0,await V(),(i=y.value)==null||i.open(),(p=y.value)==null||p.setFormData(t)},L=Ee();return(R=L.query)!=null&&R.listId&&$({id:L.query.listId}),C(),(u,t)=>{const i=ee,p=te,D=oe,d=ae,J=de,K=le,A=re,Q=me,l=ne,X=ue,Y=ie,w=he("perms"),Z=se;return r(),g("div",null,[e(A,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(K,{class:"mb-[-16px]",model:m,inline:""},{default:a(()=>[e(D,{label:"\u671F\u6B21",prop:"project_name"},{default:a(()=>[e(p,{class:"flex-1",modelValue:m.period,"onUpdate:modelValue":t[0]||(t[0]=o=>m.period=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u671F\u6B21"},{default:a(()=>[(r(!0),g(T,null,q(n(b).pay_period,(o,f)=>(r(),s(i,{key:f,label:o.name,value:parseInt(o.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(D,{label:"\u56DE\u6B3E\u72B6\u6001",prop:"return_status"},{default:a(()=>[e(p,{class:"flex-1",modelValue:m.return_status,"onUpdate:modelValue":t[1]||(t[1]=o=>m.return_status=o),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u56DE\u6B3E\u72B6\u6001"},{default:a(()=>[(r(!0),g(T,null,q(n(b).return_status,(o,f)=>(r(),s(i,{key:f,label:o.name,value:parseInt(o.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(D,null,{default:a(()=>[e(d,{type:"primary",onClick:n(G)},{default:a(()=>[Ce]),_:1},8,["onClick"]),e(d,{onClick:n(O)},{default:a(()=>[ye]),_:1},8,["onClick"]),e(J,{class:"ml-2.5","fetch-fun":n(S),params:m,"page-size":n(_).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),v((r(),s(A,{class:"!border-none",shadow:"never"},{default:a(()=>[v((r(),s(d,{type:"primary",onClick:H},{icon:a(()=>[e(Q,{name:"el-icon-Plus"})]),default:a(()=>[Be]),_:1})),[[w,["remittance.remittance/add"]]]),v((r(),s(d,{disabled:!k.value.length,onClick:t[2]||(t[2]=o=>x(k.value))},{default:a(()=>[ke]),_:1},8,["disabled"])),[[w,["remittance.remittance/delete"]]]),z("div",De,[e(X,{data:n(_).lists,onSelectionChange:M},{default:a(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(l,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_code","show-overflow-tooltip":""}),e(l,{label:"\u5408\u540C\u7C7B\u578B",prop:"contract_type","show-overflow-tooltip":""}),e(l,{label:"\u5BA2\u6237\u540D\u79F0",prop:"custom_name","show-overflow-tooltip":""}),e(l,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(l,{label:"\u9879\u76EE\u7F16\u7801",prop:"project_code","show-overflow-tooltip":""}),e(l,{label:"\u671F\u6B21",prop:"period","show-overflow-tooltip":""}),e(l,{label:"\u8BA1\u5212\u56DE\u6B3E\u65E5\u671F",prop:"return_date","show-overflow-tooltip":""}),e(l,{label:"\u72B6\u6001",prop:"return_status","show-overflow-tooltip":""}),e(l,{label:"\u91D1\u989D",prop:"amount","show-overflow-tooltip":""}),e(l,{label:"\u5DF2\u56DE\u6B3E",prop:"has_return_amount","show-overflow-tooltip":""}),e(l,{label:"\u672A\u56DE\u6B3E",prop:"not_return_amount","show-overflow-tooltip":""}),e(l,{label:"\u56DE\u6B3E\u8D23\u4EFB\u4EBA",prop:"return_duty","show-overflow-tooltip":""}),e(l,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:a(({row:o})=>[v((r(),s(d,{type:"primary",link:"",onClick:f=>W(o)},{default:a(()=>[Fe]),_:2},1032,["onClick"])),[[w,["remittance.remittance/edit"]]]),v((r(),s(d,{type:"danger",link:"",onClick:f=>x(o.id)},{default:a(()=>[ge]),_:2},1032,["onClick"])),[[w,["remittance.remittance/delete"]]]),v((r(),s(d,{link:"",onClick:f=>$(o)},{default:a(()=>[Ve]),_:2},1032,["onClick"])),[[w,["remittance.remittance/detail"]]])]),_:1})]),_:1},8,["data"])]),z("div",xe,[e(Y,{modelValue:n(_),"onUpdate:modelValue":t[3]||(t[3]=o=>be(_)?_.value=o:null),onChange:n(C)},null,8,["modelValue","onChange"])])]),_:1})),[[Z,n(_).loading]]),h.value?(r(),s(ve,{key:0,ref_key:"editRef",ref:E,"dict-data":n(b),onSuccess:n(C),onClose:t[4]||(t[4]=o=>h.value=!1)},null,8,["dict-data","onSuccess"])):N("",!0),B.value?(r(),s(we,{key:1,ref_key:"detailRef",ref:y,"dict-data":n(b),onClose:t[5]||(t[5]=o=>B.value=!1)},null,8,["dict-data"])):N("",!0)])}}});export{xt as default};