2 lines
7.3 KiB
JavaScript
2 lines
7.3 KiB
JavaScript
import{I as Q,y as X,G as Y,H as Z,w as ee,D as te,C as oe,L as ae,M as le,N as ne}from"./element-plus.517d4382.js";import{_ as ue}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{f as ie,a as re}from"./index.8b1962e9.js";import{u as se}from"./usePaging.f6660143.js";import{u as pe}from"./useDictOptions.b5854a9e.js";import{d as me,a as $,e as de}from"./administrative.bb5712a1.js";import"./lodash.1d82ee7c.js";import{_ as ce}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.f6370c36.js";import _e from"./detail.c1d4548e.js";import{d as T,a0 as L,s as P,r as E,ai as fe,o as i,c as R,V as e,M as a,O as _,u as p,L as m,S,W as ve,a8 as Ce,a as N,k as we,T as c,n as k}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"./vue-router.87ebc608.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"./department.b8dec04d.js";import"./organization.5e75830a.js";import"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import"./custom.99349afc.js";const Fe=c("\u67E5\u8BE2"),De=c("\u91CD\u7F6E"),be=c(" \u65B0\u589E "),ye=c(" \u5220\u9664 "),he={class:"mt-4"},Ee=c(" \u7F16\u8F91 "),ke=c(" \u5220\u9664 "),Ve=c(" \u8BE6\u60C5 "),ge={class:"flex justify-end mt-4"},xe=T({name:"projectLists"}),Dt=T({...xe,setup(Be){const U=L([]),b=P(),C=P(),w=E(!1),y=E(!1),r=L({contract_no:"",contract_name:"",procurement_type:"",asset_apply_no:""}),h=E([]),A=n=>{h.value=n.map(({id:t})=>t)},{dictData:V}=pe("procurement_contract_type,pay_type,account_period,pay_period,procurement_type"),{pager:f,getLists:F,resetParams:I,resetPage:j}=se({fetchFun:me,params:r}),M=async()=>{var n;w.value=!0,await k(),(n=C.value)==null||n.open("add")},O=async n=>{var s,u;console.log(n.id);let t=await $({id:n.id});w.value=!0,await k(),(s=C.value)==null||s.open("edit"),(u=C.value)==null||u.setFormData(t)},g=async n=>{await ie.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await de({id:n}),F()},q=async n=>{var s,u;let t=await $({id:n.id});y.value=!0,await k(),(s=b.value)==null||s.open(),(u=b.value)==null||u.setFormData(t)};return F(),(n,t)=>{const s=Q,u=X,x=Y,G=Z,d=ee,H=te,B=oe,W=re,l=ae,z=le,J=ue,v=fe("perms"),K=ne;return i(),R("div",null,[e(B,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(H,{class:"mb-[-16px]",model:r,inline:""},{default:a(()=>[e(u,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no"},{default:a(()=>[e(s,{class:"w-[280px]",modelValue:r.contract_no,"onUpdate:modelValue":t[0]||(t[0]=o=>r.contract_no=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u5408\u540C\u540D\u79F0",prop:"contract_name"},{default:a(()=>[e(s,{class:"w-[280px]",modelValue:r.contract_name,"onUpdate:modelValue":t[1]||(t[1]=o=>r.contract_name=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u8D44\u4EA7\u7533\u8BF7\u5355\u53F7",prop:"asset_apply_no"},{default:a(()=>[e(s,{class:"w-[280px]",modelValue:r.asset_apply_no,"onUpdate:modelValue":t[2]||(t[2]=o=>r.asset_apply_no=o),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5408\u540C\u7F16\u53F7"},null,8,["modelValue"])]),_:1}),e(u,{label:"\u91C7\u8D2D\u5206\u7C7B",prop:"procurement_type"},{default:a(()=>[e(G,{class:"w-[280px]",modelValue:r.procurement_type,"onUpdate:modelValue":t[3]||(t[3]=o=>r.procurement_type=o),clearable:"",placeholder:"\u9879\u76EE"},{default:a(()=>[e(x,{label:"\u5168\u90E8",value:""}),(i(!0),R(ve,null,Ce(U,(o,D)=>(i(),m(x,{key:D,label:o.name,value:o.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(u,null,{default:a(()=>[e(d,{type:"primary",onClick:p(j)},{default:a(()=>[Fe]),_:1},8,["onClick"]),e(d,{onClick:p(I)},{default:a(()=>[De]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((i(),m(B,{class:"!border-none",shadow:"never"},{default:a(()=>[_((i(),m(d,{type:"primary",onClick:M},{icon:a(()=>[e(W,{name:"el-icon-Plus"})]),default:a(()=>[be]),_:1})),[[v,["administrativeContracts.administrativeContracts/add"]]]),_((i(),m(d,{disabled:!h.value.length,onClick:t[4]||(t[4]=o=>g(h.value))},{default:a(()=>[ye]),_:1},8,["disabled"])),[[v,["administrativeContracts.administrativeContracts/delete"]]]),N("div",he,[e(z,{data:p(f).lists,onSelectionChange:A},{default:a(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(l,{label:" \u7EC4\u7EC7\u540D\u79F0",prop:"custom_name","show-overflow-tooltip":""}),e(l,{label:" \u90E8\u95E8\u540D\u79F0",prop:"custom_name","show-overflow-tooltip":""}),e(l,{label:"\u8D26\u6237\u7F16\u7801",prop:"custom_name","show-overflow-tooltip":""}),e(l,{label:" \u5F00\u6237\u94F6\u884C",prop:"contract_name","show-overflow-tooltip":""}),e(l,{label:"\u5F00\u6237\u540D\u79F0",prop:"contract_no","show-overflow-tooltip":""}),e(l,{label:"\u8D26\u53F7",prop:"supplier_name","show-overflow-tooltip":""}),e(l,{label:"\u5F00\u6237\u65E5\u671F",prop:"supplier_code","show-overflow-tooltip":""}),e(l,{label:"\u671F\u521D\u91D1\u989D",prop:"amount","show-overflow-tooltip":""}),e(l,{label:"\u5165\u8D26\u91D1\u989D",prop:"amount_including_tax","show-overflow-tooltip":""}),e(l,{label:"\u51FA\u8D26\u91D1\u989D",prop:"retention_money_rate","show-overflow-tooltip":""}),e(l,{label:"\u8D26\u6237\u4F59\u989D",prop:"retention_money","show-overflow-tooltip":""}),e(l,{label:"\u8D26\u6237\u8D44\u91D1\u4F59\u989D",prop:"retention_money_rate","show-overflow-tooltip":""}),e(l,{label:"\u6C47\u7968\u8D26\u6237\u4F59\u989D",prop:"retention_money","show-overflow-tooltip":""}),e(l,{label:"\u5907\u6CE8",prop:"remark","show-overflow-tooltip":""}),e(l,{label:"\u64CD\u4F5C",width:"160",fixed:"right"},{default:a(({row:o})=>[_((i(),m(d,{type:"primary",link:"",onClick:D=>O(o)},{default:a(()=>[Ee]),_:2},1032,["onClick"])),[[v,["administrativeContracts.administrativeContracts/edit"]]]),_((i(),m(d,{type:"danger",link:"",onClick:D=>g(o.id)},{default:a(()=>[ke]),_:2},1032,["onClick"])),[[v,["administrativeContracts.administrativeContracts/delete"]]]),_((i(),m(d,{link:"",onClick:D=>q(o)},{default:a(()=>[Ve]),_:2},1032,["onClick"])),[[v,["administrativeContracts.administrativeContracts/detail"]]])]),_:1})]),_:1},8,["data"])]),N("div",ge,[e(J,{modelValue:p(f),"onUpdate:modelValue":t[5]||(t[5]=o=>we(f)?f.value=o:null),onChange:p(F)},null,8,["modelValue","onChange"])])]),_:1})),[[K,p(f).loading]]),w.value?(i(),m(ce,{key:0,ref_key:"editRef",ref:C,"dict-data":p(V),onSuccess:p(F),onClose:t[6]||(t[6]=o=>w.value=!1)},null,8,["dict-data","onSuccess"])):S("",!0),y.value?(i(),m(_e,{key:1,ref_key:"detailRef",ref:b,"dict-data":p(V),onClose:t[7]||(t[7]=o=>y.value=!1)},null,8,["dict-data"])):S("",!0)])}}});export{Dt as default};
|