engineering/public/admin/assets/index.4bd07562.js
2024-01-06 17:30:02 +08:00

2 lines
6.7 KiB
JavaScript

import{G as Y,H as Z,y as ee,w as te,D as oe,C as ae,L as le,M as ne,N as ie}from"./element-plus.e49c119c.js";import{_ as re}from"./index.vue_vue_type_script_setup_true_lang.8c9f8a22.js";import{_ as se}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{f as ue,a as pe}from"./index.0aba8d1b.js";import{u as de}from"./usePaging.f6660143.js";import{u as ce}from"./useDictOptions.f0a47c79.js";import{p as me,a as R,d as _e}from"./paymentplan.0ea2a435.js";import{d as fe}from"./procurement_contract.cdadac75.js";import"./lodash.86334a69.js";import{_ as ve}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.affd4bd5.js";import{_ as we}from"./detail.vue_vue_type_style_index_0_lang.af7c7664.js";import{d as U,a0 as S,s as N,r as y,ai as Ce,o as i,c as V,V as e,M as o,O as f,u as r,L as s,S as T,W as j,a8 as A,a as I,k as he,T as c,n as x}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.8497a500.js";import"./lodash-es.49f4af13.js";import"./dayjs.5571e62a.js";import"./axios.9ce976cc.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.156d1593.js";import"./color.4188bfef.js";import"./clone.a0efef30.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ca37accd.js";import"./ms.a9ae1d6d.js";import"./nprogress.30953505.js";import"./vue-clipboard3.4e4a29c9.js";import"./clipboard.1a812829.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.4e8ca2f8.js";import"./index.vue_vue_type_script_setup_true_lang.874688d8.js";import"./subcontracting_contract.855c6c1a.js";import"./index.vue_vue_type_script_setup_true_lang.11847145.js";import"./projecttype.7bdf04aa.js";import"./custom.ec06ae29.js";const be=c("\u67E5\u8BE2"),Ee=c("\u91CD\u7F6E"),ye=c(" \u65B0\u589E "),ke=c(" \u5220\u9664 "),Fe={class:"mt-4"},De=c(" \u7F16\u8F91 "),ge=c(" \u5220\u9664 "),Be=c(" \u8BE6\u60C5 "),Ve={class:"flex justify-end mt-4"},xe=U({name:"projectLists"}),Dt=U({...xe,setup($e){S([]);const k=N(),C=N(),h=y(!1),F=y(!1),D=y([]),m=S({contract_id:"",supplier_id:""}),g=y([]),M=l=>{g.value=l.map(({id:a})=>a)},{dictData:b}=ce("pay_status,pay_period"),{pager:v,getLists:E,resetParams:O,resetPage:q}=de({fetchFun:me,params:m}),G=async()=>{var l;h.value=!0,await x(),(l=C.value)==null||l.open("add")},H=async l=>{var u,p;console.log(l.id);let a=await R({id:l.id});h.value=!0,await x(),(u=C.value)==null||u.open("edit"),(p=C.value)==null||p.setFormData(a)},$=async l=>{await ue.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await _e({id:l}),E()},W=async l=>{var u,p;let a=await R({id:l.id});F.value=!0,await x(),(u=k.value)==null||u.open(),(p=k.value)==null||p.setFormData(a)};return(()=>{fe({project_id:"",supplier_id:"",contract_no:"",all:1}).then(l=>{D.value=l.lists})})(),E(),(l,a)=>{const u=Y,p=Z,B=ee,d=te,z=oe,L=ae,J=pe,n=le,P=se,K=ne,Q=re,w=Ce("perms"),X=ie;return i(),V("div",null,[e(L,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(z,{class:"mb-[-16px]",model:m,inline:""},{default:o(()=>[e(B,{label:"\u5408\u540C",prop:"contract_id"},{default:o(()=>[e(p,{class:"flex-1",modelValue:m.contract_id,"onUpdate:modelValue":a[0]||(a[0]=t=>m.contract_id=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5408\u540C"},{default:o(()=>[(i(!0),V(j,null,A(D.value,(t,_)=>(i(),s(u,{key:_,label:t.contract_name,value:parseInt(t.id)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(B,{label:"\u4F9B\u5E94\u5546",prop:"supplier_id"},{default:o(()=>[e(p,{class:"flex-1",modelValue:m.contract_id,"onUpdate:modelValue":a[1]||(a[1]=t=>m.contract_id=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5408\u540C"},{default:o(()=>[(i(!0),V(j,null,A(D.value,(t,_)=>(i(),s(u,{key:_,label:t.contract_name,value:parseInt(t.id)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(B,null,{default:o(()=>[e(d,{type:"primary",onClick:r(q)},{default:o(()=>[be]),_:1},8,["onClick"]),e(d,{onClick:r(O)},{default:o(()=>[Ee]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((i(),s(L,{class:"!border-none",shadow:"never"},{default:o(()=>[f((i(),s(d,{type:"primary",onClick:G},{icon:o(()=>[e(J,{name:"el-icon-Plus"})]),default:o(()=>[ye]),_:1})),[[w,["refund.refund/add"]]]),f((i(),s(d,{disabled:!g.value.length,onClick:a[2]||(a[2]=t=>$(g.value))},{default:o(()=>[ke]),_:1},8,["disabled"])),[[w,["refund.refund/delete"]]]),I("div",Fe,[e(K,{data:r(v).lists,onSelectionChange:M},{default:o(()=>[e(n,{type:"selection",width:"55"}),e(n,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(n,{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"supplier_name","show-overflow-tooltip":""}),e(n,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(n,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no","show-overflow-tooltip":""}),e(n,{label:"\u8BA1\u5212\u4ED8\u6B3E\u65E5\u671F",prop:"pay_date","show-overflow-tooltip":""}),e(n,{label:"\u91D1\u989D",prop:"amount","show-overflow-tooltip":""}),e(n,{label:"\u671F\u6B21",prop:"period","show-overflow-tooltip":""},{default:o(({row:t})=>[e(P,{options:r(b).pay_period,value:t.period},null,8,["options","value"])]),_:1}),e(n,{label:"\u72B6\u6001",prop:"period","show-overflow-tooltip":""},{default:o(({row:t})=>[e(P,{options:r(b).pay_status,value:t.status},null,8,["options","value"])]),_:1}),e(n,{label:"\u5DF2\u4ED8\u6B3E",prop:"refunder","show-overflow-tooltip":""}),e(n,{label:"\u672A\u4ED8\u6B3E",prop:"refunder","show-overflow-tooltip":""}),e(n,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(n,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:o(({row:t})=>[f((i(),s(d,{type:"primary",link:"",onClick:_=>H(t)},{default:o(()=>[De]),_:2},1032,["onClick"])),[[w,["refund.refund/edit"]]]),f((i(),s(d,{type:"danger",link:"",onClick:_=>$(t.id)},{default:o(()=>[ge]),_:2},1032,["onClick"])),[[w,["refund.refund/delete"]]]),f((i(),s(d,{link:"",onClick:_=>W(t)},{default:o(()=>[Be]),_:2},1032,["onClick"])),[[w,["refund.refund/detail"]]])]),_:1})]),_:1},8,["data"])]),I("div",Ve,[e(Q,{modelValue:r(v),"onUpdate:modelValue":a[3]||(a[3]=t=>he(v)?v.value=t:null),onChange:r(E)},null,8,["modelValue","onChange"])])]),_:1})),[[X,r(v).loading]]),h.value?(i(),s(ve,{key:0,ref_key:"editRef",ref:C,"dict-data":r(b),onSuccess:r(E),onClose:a[4]||(a[4]=t=>h.value=!1)},null,8,["dict-data","onSuccess"])):T("",!0),F.value?(i(),s(we,{key:1,ref_key:"detailRef",ref:k,"dict-data":r(b),onClose:a[5]||(a[5]=t=>F.value=!1)},null,8,["dict-data"])):T("",!0)])}}});export{Dt as default};