2 lines
8.0 KiB
JavaScript
2 lines
8.0 KiB
JavaScript
import{G as Y,H as Z,y as ee,w as te,D as oe,C as le,L as ae,M as ue,N as ne}from"./element-plus.25ac1d37.js";import{_ as re}from"./index.vue_vue_type_script_setup_true_lang.5a7e3ebe.js";import{_ as pe}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{f as ie,a as se}from"./index.2456ddbc.js";import{u as de}from"./usePaging.f6660143.js";import{u as me}from"./useDictOptions.37bb8f6d.js";import{c as ce,p as R,d as _e}from"./paymentrequest.e6b347c9.js";import"./lodash.86334a69.js";import{d as fe}from"./procurement_contract.aaea7df8.js";import{_ as ve}from"./edit.vue_vue_type_script_setup_true_name_projectEdit_lang.1d2201f8.js";import ye from"./detail.4a02dbfd.js";import{d as U,a0 as S,s as I,r as B,ai as Ee,o as a,c as w,V as e,M as o,O as v,u as r,L as p,S as N,W as D,a8 as k,a as T,k as be,T as f,n as j}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.8071f294.js";import"./index.vue_vue_type_script_setup_true_lang.6e4b2cdf.js";import"./subcontracting_contract.ac3e564b.js";import"./index.vue_vue_type_script_setup_true_lang.58c39fa2.js";import"./paymentplan.65e26d7d.js";import"./projecttype.8510929b.js";import"./custom.c0ef026d.js";const we=f("\u67E5\u8BE2"),Fe=f("\u91CD\u7F6E"),he=f(" \u65B0\u589E "),Ce=f(" \u5220\u9664 "),Be={class:"mt-4"},De=f(" \u7F16\u8F91 "),ke=f(" \u5220\u9664 "),ge=f(" \u8BE6\u60C5 "),Ve={class:"flex justify-end mt-4"},xe=U({name:"projectLists"}),kt=U({...xe,setup($e){S([]);const g=I(),F=I(),V=B([]),h=B(!1),x=B(!1),i=S({payment_natrue:"",pay_type:"",contract_id:"",supplier_id:""}),$=B([]),M=n=>{$.value=n.map(({id:l})=>l)},{dictData:c}=me("pay_period,pay_type,payment_natrue,invoice_status"),{pager:y,getLists:C,resetParams:O,resetPage:q}=de({fetchFun:ce,params:i}),G=async()=>{var n;h.value=!0,await j(),(n=F.value)==null||n.open("add")},H=async n=>{var s,d;console.log(n.id);let l=await R({id:n.id});h.value=!0,await j(),(s=F.value)==null||s.open("edit"),(d=F.value)==null||d.setFormData(l)},A=async n=>{await ie.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await _e({id:n}),C()},W=async n=>{var s,d;let l=await R({id:n.id});x.value=!0,await j(),(s=g.value)==null||s.open(),(d=g.value)==null||d.setFormData(l)};return(()=>{fe({project_id:"",supplier_id:"",contract_no:"",all:1}).then(n=>{V.value=n.lists})})(),C(),(n,l)=>{const s=Y,d=Z,E=ee,_=te,z=oe,P=le,J=se,u=ae,L=pe,K=ue,Q=re,b=Ee("perms"),X=ne;return a(),w("div",null,[e(P,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[e(z,{class:"mb-[-16px]",model:i,inline:""},{default:o(()=>[e(E,{label:"\u4ED8\u6B3E\u6027\u8D28",prop:"payment_natrue"},{default:o(()=>[e(d,{class:"flex-1",modelValue:i.payment_natrue,"onUpdate:modelValue":l[0]||(l[0]=t=>i.payment_natrue=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u4ED8\u6B3E\u6027\u8D28"},{default:o(()=>[(a(!0),w(D,null,k(r(c).payment_natrue,(t,m)=>(a(),p(s,{key:m,label:t.name,value:parseInt(t.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(E,{label:"\u4ED8\u6B3E\u65B9\u5F0F",prop:"pay_type"},{default:o(()=>[e(d,{class:"flex-1",modelValue:i.pay_type,"onUpdate:modelValue":l[1]||(l[1]=t=>i.pay_type=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u4ED8\u6B3E\u65B9\u5F0F"},{default:o(()=>[(a(!0),w(D,null,k(r(c).pay_type,(t,m)=>(a(),p(s,{key:m,label:t.name,value:parseInt(t.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(E,{label:"\u5408\u540C",prop:"contract_id"},{default:o(()=>[e(d,{class:"flex-1",modelValue:i.contract_id,"onUpdate:modelValue":l[2]||(l[2]=t=>i.contract_id=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5408\u540C"},{default:o(()=>[(a(!0),w(D,null,k(V.value,(t,m)=>(a(),p(s,{key:m,label:t.contract_name,value:parseInt(t.id)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(E,{label:"\u4F9B\u5E94\u5546",prop:"supplier_id"},{default:o(()=>[e(d,{class:"flex-1",modelValue:i.contract_id,"onUpdate:modelValue":l[3]||(l[3]=t=>i.contract_id=t),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5408\u540C"},{default:o(()=>[(a(!0),w(D,null,k(V.value,(t,m)=>(a(),p(s,{key:m,label:t.contract_name,value:parseInt(t.id)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(E,null,{default:o(()=>[e(_,{type:"primary",onClick:r(q)},{default:o(()=>[we]),_:1},8,["onClick"]),e(_,{onClick:r(O)},{default:o(()=>[Fe]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),v((a(),p(P,{class:"!border-none",shadow:"never"},{default:o(()=>[v((a(),p(_,{type:"primary",onClick:G},{icon:o(()=>[e(J,{name:"el-icon-Plus"})]),default:o(()=>[he]),_:1})),[[b,["refund.refund/add"]]]),v((a(),p(_,{disabled:!$.value.length,onClick:l[4]||(l[4]=t=>A($.value))},{default:o(()=>[Ce]),_:1},8,["disabled"])),[[b,["refund.refund/delete"]]]),T("div",Be,[e(K,{data:r(y).lists,onSelectionChange:M},{default:o(()=>[e(u,{type:"selection",width:"55"}),e(u,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(u,{label:"\u5904\u7406\u6D41\u7A0B",prop:"project_name","show-overflow-tooltip":""}),e(u,{label:"\u6D41\u7A0B\u6B65\u9AA4",prop:"project_name","show-overflow-tooltip":""}),e(u,{label:"\u9000\u6B3E\u5355\u53F7",prop:"project_name","show-overflow-tooltip":""}),e(u,{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"supplier_na","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","show-overflow-tooltip":""},{default:o(({row:t})=>[e(L,{options:r(c).pay_type,value:t.pay_type},null,8,["options","value"])]),_:1}),e(u,{label:"\u4ED8\u6B3E\u6027\u8D28",prop:"payment_natrue","show-overflow-tooltip":""},{default:o(({row:t})=>[e(L,{options:r(c).payment_natrue,value:t.payment_natrue},null,8,["options","value"])]),_:1}),e(u,{label:"\u671F\u6B21",prop:"period","show-overflow-tooltip":""},{default:o(({row:t})=>[e(L,{options:r(c).pay_period,value:t.period},null,8,["options","value"])]),_:1}),e(u,{label:"\u7533\u8BF7\u4EBA",prop:"applier","show-overflow-tooltip":""}),e(u,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(u,{label:"\u64CD\u4F5C",width:"150",fixed:"right"},{default:o(({row:t})=>[v((a(),p(_,{type:"primary",link:"",onClick:m=>H(t)},{default:o(()=>[De]),_:2},1032,["onClick"])),[[b,["refund.refund/edit"]]]),v((a(),p(_,{type:"danger",link:"",onClick:m=>A(t.id)},{default:o(()=>[ke]),_:2},1032,["onClick"])),[[b,["refund.refund/delete"]]]),v((a(),p(_,{link:"",onClick:m=>W(t)},{default:o(()=>[ge]),_:2},1032,["onClick"])),[[b,["refund.refund/detail"]]])]),_:1})]),_:1},8,["data"])]),T("div",Ve,[e(Q,{modelValue:r(y),"onUpdate:modelValue":l[5]||(l[5]=t=>be(y)?y.value=t:null),onChange:r(C)},null,8,["modelValue","onChange"])])]),_:1})),[[X,r(y).loading]]),h.value?(a(),p(ve,{key:0,ref_key:"editRef",ref:F,"dict-data":r(c),onSuccess:r(C),onClose:l[6]||(l[6]=t=>h.value=!1)},null,8,["dict-data","onSuccess"])):N("",!0),x.value?(a(),p(ye,{key:1,ref_key:"detailRef",ref:g,"dict-data":r(c),onClose:l[7]||(l[7]=t=>x.value=!1)},null,8,["dict-data"])):N("",!0)])}}});export{kt as default};
|