engineering/public/admin/assets/index.b258f1c2.js
2024-03-04 15:04:21 +08:00

2 lines
7.7 KiB
JavaScript

import{I as Q,y as X,G as Z,H as ee,w as te,D as oe,C as ae,L as le,M as ne,N as ue}from"./element-plus.258bf9e7.js";import{_ as ie}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{_ as re}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{b as se,f as pe,a as me}from"./index.ec401e3b.js";import{u as de}from"./usePaging.f6660143.js";import{u as ce}from"./useDictOptions.c644f395.js";import{d as _e,a as $,e as fe}from"./administrative.3d66a323.js";import{_ as ve}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.899997ce.js";import Ce from"./detail.e4e07ad7.js";import{d as U,a0 as L,s as S,r as k,ai as Fe,o as i,c as P,V as e,M as a,O as _,u as r,L as m,S as R,W as we,a8 as ye,a as g,U as be,k as De,T as c,n as B}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"./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.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.9492d03b.js";import"./index.vue_vue_type_script_setup_true_lang.ad39d63c.js";import"./suppler_list.25198ddd.js";import"./department.1c914e1a.js";import"./organization.f0387125.js";import"./custom.13e75d58.js";const Ee=c("\u67E5\u8BE2"),he=c("\u91CD\u7F6E"),ke=c(" \u65B0\u589E "),ge=c(" \u5220\u9664 "),Be={class:"mt-4"},Ve=c(" \u7F16\u8F91 "),xe=c(" \u5220\u9664 "),Ae=c(" \u8BE6\u60C5 "),$e={class:"flex justify-end mt-4"},Le=U({name:"projectLists"}),gt=U({...Le,setup(Se){const N=L([]),b=S(),C=S(),F=k(!1),D=k(!1),s=L({contract_no:"",contract_name:"",procurement_type:"",asset_apply_no:""}),E=k([]),T=n=>{E.value=n.map(({id:o})=>o)},{dictData:h}=ce("procurement_type,pay_type,account_period,pay_period"),{pager:f,getLists:w,resetParams:M,resetPage:Y}=de({fetchFun:_e,params:s}),I=async()=>{var n;F.value=!0,await B(),(n=C.value)==null||n.open("add")},j=async n=>{var p,u;console.log(n.id);let o=await $({id:n.id});F.value=!0,await B(),(p=C.value)==null||p.open("edit"),(u=C.value)==null||u.setFormData(o)},V=async n=>{await pe.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await fe({id:n}),w()},O=async n=>{var p,u;let o=await $({id:n.id});D.value=!0,await B(),(p=b.value)==null||p.open(),(u=b.value)==null||u.setFormData(o)};return w(),(n,o)=>{const p=Q,u=X,x=Z,q=ee,d=te,G=oe,A=ae,H=me,l=le,W=re,z=ne,J=ie,v=Fe("perms"),K=ue;return i(),P("div",null,[e(A,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(G,{class:"mb-[-16px]",model:s,inline:""},{default:a(()=>[e(u,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no"},{default:a(()=>[e(p,{class:"w-[280px]",modelValue:s.contract_no,"onUpdate:modelValue":o[0]||(o[0]=t=>s.contract_no=t),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(p,{class:"w-[280px]",modelValue:s.contract_name,"onUpdate:modelValue":o[1]||(o[1]=t=>s.contract_name=t),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(p,{class:"w-[280px]",modelValue:s.asset_apply_no,"onUpdate:modelValue":o[2]||(o[2]=t=>s.asset_apply_no=t),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(q,{class:"w-[280px]",modelValue:s.procurement_type,"onUpdate:modelValue":o[3]||(o[3]=t=>s.procurement_type=t),clearable:"",placeholder:"\u9879\u76EE"},{default:a(()=>[e(x,{label:"\u5168\u90E8",value:""}),(i(!0),P(we,null,ye(N,(t,y)=>(i(),m(x,{key:y,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(u,null,{default:a(()=>[e(d,{type:"primary",onClick:r(Y)},{default:a(()=>[Ee]),_:1},8,["onClick"]),e(d,{onClick:r(M)},{default:a(()=>[he]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((i(),m(A,{class:"!border-none",shadow:"never"},{default:a(()=>[_((i(),m(d,{type:"primary",onClick:I},{icon:a(()=>[e(H,{name:"el-icon-Plus"})]),default:a(()=>[ke]),_:1})),[[v,["administrativeContracts.administrativeContracts/add"]]]),_((i(),m(d,{disabled:!E.value.length,onClick:o[4]||(o[4]=t=>V(E.value))},{default:a(()=>[ge]),_:1},8,["disabled"])),[[v,["administrativeContracts.administrativeContracts/delete"]]]),g("div",Be,[e(z,{data:r(f).lists,onSelectionChange:T},{default:a(()=>[e(l,{type:"selection",width:"55"}),e(l,{label:"\u5E8F\u53F7",type:"index",width:"55"}),e(l,{label:"\u6D41\u7A0B\u6B65\u9AA4",prop:"custom_name","show-overflow-tooltip":""}),e(l,{label:"\u6D41\u7A0B\u7F16\u53F7",prop:"custom_name","show-overflow-tooltip":""}),e(l,{label:"\u5408\u540C\u540D\u79F0",prop:"contract_name","show-overflow-tooltip":""}),e(l,{label:"\u5408\u540C\u7F16\u53F7",prop:"contract_no","show-overflow-tooltip":""}),e(l,{label:"\u4F9B\u5E94\u5546\u540D\u79F0",prop:"supplier_name","show-overflow-tooltip":""}),e(l,{label:"\u4F9B\u5E94\u5546\u7F16\u7801",prop:"supplier_code","show-overflow-tooltip":""}),e(l,{label:"\u5408\u540C\u91D1\u989D",prop:"amount","show-overflow-tooltip":""}),e(l,{label:"\u8D44\u4EA7\u7533\u8BF7\u5355\u53F7",prop:"amount_including_tax","show-overflow-tooltip":""}),e(l,{label:"\u91C7\u8D2D\u5206\u7C7B",prop:"procurement_type"},{default:a(({row:t})=>[e(W,{options:r(h).procurement_type,value:t.procurement_type},null,8,["options","value"])]),_:1}),e(l,{label:"\u7B7E\u7EA6\u65E5\u671F",prop:"signing_date"},{default:a(({row:t})=>[g("span",null,be(t.signing_date?r(se)(t.signing_date,"YYYY-MM-DD "):""),1)]),_:1}),e(l,{label:"\u5DF2\u4ED8\u6B3E",prop:"retention_money_rate","show-overflow-tooltip":""}),e(l,{label:"\u672A\u4ED8\u6B3E",prop:"retention_money","show-overflow-tooltip":""}),e(l,{label:"\u5DF2\u5F00\u7968",prop:"retention_money_rate","show-overflow-tooltip":""}),e(l,{label:"\u672A\u5F00\u7968",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:t})=>[_((i(),m(d,{type:"primary",link:"",onClick:y=>j(t)},{default:a(()=>[Ve]),_:2},1032,["onClick"])),[[v,["administrativeContracts.administrativeContracts/edit"]]]),_((i(),m(d,{type:"danger",link:"",onClick:y=>V(t.id)},{default:a(()=>[xe]),_:2},1032,["onClick"])),[[v,["administrativeContracts.administrativeContracts/delete"]]]),_((i(),m(d,{link:"",onClick:y=>O(t)},{default:a(()=>[Ae]),_:2},1032,["onClick"])),[[v,["administrativeContracts.administrativeContracts/detail"]]])]),_:1})]),_:1},8,["data"])]),g("div",$e,[e(J,{modelValue:r(f),"onUpdate:modelValue":o[5]||(o[5]=t=>De(f)?f.value=t:null),onChange:r(w)},null,8,["modelValue","onChange"])])]),_:1})),[[K,r(f).loading]]),F.value?(i(),m(ve,{key:0,ref_key:"editRef",ref:C,"dict-data":r(h),onSuccess:r(w),onClose:o[6]||(o[6]=t=>F.value=!1)},null,8,["dict-data","onSuccess"])):R("",!0),D.value?(i(),m(Ce,{key:1,ref_key:"detailRef",ref:b,"dict-data":r(h),onClose:o[7]||(o[7]=t=>D.value=!1)},null,8,["dict-data"])):R("",!0)])}}});export{gt as default};