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

2 lines
8.0 KiB
JavaScript

import{G as ee,H as te,y as oe,w as ae,D as le,C as ue,L as ne,M as re,N as ie}from"./element-plus.517d4382.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as se,a as de}from"./index.8b1962e9.js";import{_ as me}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{p as T,c as U,d as fe}from"./paymentrequest.928d1cc7.js";import{d as ve}from"./procurement_contract.97fa9110.js";import{_ as ye}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.720e3aaf.js";import Ee from"./detail.ab652071.js";import{u as be}from"./vue-router.87ebc608.js";import{d as A,r as D,s as j,a0 as we,ai as Fe,o as l,c as b,V as e,M as a,O as v,u as r,L as i,S as q,n as L,W as k,a8 as B,a as z,k as he,T as _}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"./lodash.1d82ee7c.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.6f6d98ba.js";import"./suppler_list.28d1ed14.js";import"./index.vue_vue_type_script_setup_true_lang.5c2d4339.js";import"./subcontracting.vue_vue_type_script_setup_true_lang.e8d5c8d5.js";import"./subcontracting_contract.66a1e173.js";import"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./paymentplan.9d16f23f.js";import"./index.vue_vue_type_script_setup_true_lang.80968ed7.js";import"./bank_account.ef6a10d2.js";import"./projecttype.80aa89f5.js";import"./index.011c79f0.js";import"./approve.bbbe5096.js";import"./flow.34e13ba8.js";import"./custom.99349afc.js";import"./flowSet.6da79e1c.js";const Ce=_("\u67E5\u8BE2"),De=_("\u91CD\u7F6E"),ke=_(" \u65B0\u589E "),Be=_(" \u5220\u9664 "),ge={class:"mt-4"},Ve=_(" \u7F16\u8F91 "),xe=_(" \u5220\u9664 "),$e=_(" \u8BE6\u60C5 "),Le={class:"flex justify-end mt-4"},Ie=A({name:"projectLists"}),Ut=A({...Ie,setup(Pe){var S;const I=be(),g=D([]),V=j(),w=j(),F=D(!1),x=D(!1),p=we({payment_natrue:"",pay_type:"",contract_id:"",supplier_id:""}),$=D([]),M=n=>{$.value=n.map(({id:o})=>o)},{dictData:h}=_e("pay_period,pay_type,payment_natrue,invoice_status"),{pager:f,getLists:C,resetParams:O,resetPage:G}=ce({fetchFun:U,params:p}),H=async()=>{var n;F.value=!0,await L(),(n=w.value)==null||n.open("add")},W=async n=>{var s,d;let o=await T({id:n.id});F.value=!0,await L(),(s=w.value)==null||s.open("edit"),(d=w.value)==null||d.setFormData(o)},P=async n=>{await se.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await fe({id:n}),C()},R=async n=>{var s,d;let o=await T({id:n.id});x.value=!0,await L(),(s=V.value)==null||s.open(),(d=V.value)==null||d.setFormData(o)};return(()=>{ve({project_id:"",supplier_id:"",contract_no:"",all:1}).then(n=>{g.value=n.lists})})(),(S=I.query)!=null&&S.listId&&R({id:I.query.listId}),C(),(n,o)=>{const s=ee,d=te,y=oe,c=ae,J=me,K=le,N=ue,Q=de,u=ne,X=re,Y=pe,E=Fe("perms"),Z=ie;return l(),b("div",null,[e(N,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(K,{class:"mb-[-16px]",model:p,inline:""},{default:a(()=>[e(y,{label:"\u4ED8\u6B3E\u6027\u8D28",prop:"payment_natrue"},{default:a(()=>[e(d,{class:"flex-1",modelValue:p.payment_natrue,"onUpdate:modelValue":o[0]||(o[0]=t=>p.payment_natrue=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u4ED8\u6B3E\u6027\u8D28"},{default:a(()=>[(l(!0),b(k,null,B(r(h).payment_natrue,(t,m)=>(l(),i(s,{key:m,label:t.name,value:parseInt(t.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(y,{label:"\u4ED8\u6B3E\u65B9\u5F0F",prop:"pay_type"},{default:a(()=>[e(d,{class:"flex-1",modelValue:p.pay_type,"onUpdate:modelValue":o[1]||(o[1]=t=>p.pay_type=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u4ED8\u6B3E\u65B9\u5F0F"},{default:a(()=>[(l(!0),b(k,null,B(r(h).pay_type,(t,m)=>(l(),i(s,{key:m,label:t.name,value:parseInt(t.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(y,{label:"\u5408\u540C",prop:"contract_id"},{default:a(()=>[e(d,{class:"flex-1",modelValue:p.contract_id,"onUpdate:modelValue":o[2]||(o[2]=t=>p.contract_id=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5408\u540C"},{default:a(()=>[(l(!0),b(k,null,B(g.value,(t,m)=>(l(),i(s,{key:m,label:t.contract_name,value:parseInt(t.id)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(y,{label:"\u4F9B\u5E94\u5546",prop:"supplier_id"},{default:a(()=>[e(d,{class:"flex-1",modelValue:p.contract_id,"onUpdate:modelValue":o[3]||(o[3]=t=>p.contract_id=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5408\u540C"},{default:a(()=>[(l(!0),b(k,null,B(g.value,(t,m)=>(l(),i(s,{key:m,label:t.contract_name,value:parseInt(t.id)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(y,null,{default:a(()=>[e(c,{type:"primary",onClick:r(G)},{default:a(()=>[Ce]),_:1},8,["onClick"]),e(c,{onClick:r(O)},{default:a(()=>[De]),_:1},8,["onClick"]),e(J,{class:"ml-2.5","fetch-fun":r(U),params:p,"page-size":r(f).size},null,8,["fetch-fun","params","page-size"])]),_:1})]),_:1},8,["model"])]),_:1}),v((l(),i(N,{class:"!border-none",shadow:"never"},{default:a(()=>[v((l(),i(c,{type:"primary",onClick:H},{icon:a(()=>[e(Q,{name:"el-icon-Plus"})]),default:a(()=>[ke]),_:1})),[[E,["refund.refund/add"]]]),v((l(),i(c,{disabled:!$.value.length,onClick:o[4]||(o[4]=t=>P($.value))},{default:a(()=>[Be]),_:1},8,["disabled"])),[[E,["refund.refund/delete"]]]),z("div",ge,[e(X,{data:r(f).lists,onSelectionChange:M},{default:a(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(u,{label:"\u4ED8\u6B3E\u5355\u53F7",prop:"payment_apply_code","show-overflow-tooltip":""}),e(u,{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"supplier_name","show-overflow-tooltip":""}),e(u,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(u,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no","show-overflow-tooltip":""}),e(u,{label:"\u4ED8\u6B3E\u65E5\u671F",prop:"pay_date","show-overflow-tooltip":""}),e(u,{label:"\u4ED8\u6B3E\u91D1\u989D",prop:"amount","show-overflow-tooltip":""}),e(u,{label:"\u4ED8\u6B3E\u65B9\u5F0F",prop:"pay_type_text","show-overflow-tooltip":""}),e(u,{label:"\u4ED8\u6B3E\u6027\u8D28",prop:"payment_nature_text","show-overflow-tooltip":""}),e(u,{label:"\u671F\u6B21",prop:"period","show-overflow-tooltip":""}),e(u,{label:"\u7533\u8BF7\u4EBA",prop:"apply_user","show-overflow-tooltip":""}),e(u,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:a(({row:t})=>[v((l(),i(c,{type:"primary",link:"",onClick:m=>W(t)},{default:a(()=>[Ve]),_:2},1032,["onClick"])),[[E,["refund.refund/edit"]]]),v((l(),i(c,{type:"danger",link:"",onClick:m=>P(t.id)},{default:a(()=>[xe]),_:2},1032,["onClick"])),[[E,["refund.refund/delete"]]]),v((l(),i(c,{link:"",onClick:m=>R(t)},{default:a(()=>[$e]),_:2},1032,["onClick"])),[[E,["refund.refund/detail"]]])]),_:1})]),_:1},8,["data"])]),z("div",Le,[e(Y,{modelValue:r(f),"onUpdate:modelValue":o[5]||(o[5]=t=>he(f)?f.value=t:null),onChange:r(C)},null,8,["modelValue","onChange"])])]),_:1})),[[Z,r(f).loading]]),F.value?(l(),i(ye,{key:0,ref_key:"editRef",ref:w,"dict-data":r(h),onSuccess:r(C),onClose:o[6]||(o[6]=t=>F.value=!1)},null,8,["dict-data","onSuccess"])):q("",!0),x.value?(l(),i(Ee,{key:1,ref_key:"detailRef",ref:V,"dict-data":r(h),onClose:o[7]||(o[7]=t=>x.value=!1)},null,8,["dict-data"])):q("",!0)])}}});export{Ut as default};