2 lines
7.7 KiB
JavaScript
2 lines
7.7 KiB
JavaScript
import{D as Q,B as X,y as Z,A as ee,w as te,L as oe,C as ae,S as le,T as ne,U as ue}from"./element-plus.0c562719.js";import{_ as ie}from"./index.vue_vue_type_script_setup_true_lang.1ae1e14d.js";import{_ as re}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{h as se,f as pe,a as me}from"./index.a53ef25c.js";import{u as de}from"./usePaging.f6660143.js";import{u as ce}from"./useDictOptions.0fa8a4dd.js";import{d as _e,a as $,e as fe}from"./administrative.eb8e7edb.js";import{_ as ve}from"./edit.vue_vue_type_script_setup_true_name_procurementContractEdit_lang.b7377fe6.js";import Ce from"./detail.7dddacb2.js";import{d as R,a0 as S,s as L,r as k,ai as Fe,o as i,c as U,V as e,M as a,O as _,u as r,L as m,S as P,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.9bff6341.js";import"./dayjs.b71ea374.js";import"./axios.a47df6c5.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.cf6c933b.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.7fa42df6.js";import"./color.33bf1982.js";import"./clone.a41dca03.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.2a4540f4.js";import"./ms.a9ae1d6d.js";import"./nprogress.efca4817.js";import"./vue-clipboard3.24161810.js";import"./clipboard.c8fd8745.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.d693a0d8.js";import"./index.79ed28eb.js";import"./index.vue_vue_type_script_setup_true_lang.80288654.js";import"./suppler_list.168518ca.js";import"./department.8f384b16.js";import"./organization.6b7be2f2.js";import"./custom.21b2ce65.js";const he=c("\u67E5\u8BE2"),Ee=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"},Se=R({name:"projectLists"}),gt=R({...Se,setup(Le){const T=S([]),b=L(),C=L(),F=k(!1),D=k(!1),s=S({contract_no:"",contract_name:"",procurement_type:"",asset_apply_no:""}),h=k([]),N=n=>{h.value=n.map(({id:o})=>o)},{dictData:E}=ce("procurement_type,pay_type,account_period,pay_period"),{pager:f,getLists:w,resetParams:Y,resetPage:M}=de({fetchFun:_e,params:s}),j=async()=>{var n;F.value=!0,await B(),(n=C.value)==null||n.open("add")},I=async n=>{var p,u;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,W=oe,A=ae,z=me,l=le,G=re,H=ne,J=ie,v=Fe("perms"),K=ue;return i(),U("div",null,[e(A,{class:"!border-none mb-4",shadow:"never"},{default:a(()=>[e(W,{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),U(we,null,ye(T,(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(M)},{default:a(()=>[he]),_:1},8,["onClick"]),e(d,{onClick:r(Y)},{default:a(()=>[Ee]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),_((i(),m(A,{class:"!border-none",shadow:"never"},{default:a(()=>[_((i(),m(d,{type:"primary",onClick:j},{icon:a(()=>[e(z,{name:"el-icon-Plus"})]),default:a(()=>[ke]),_:1})),[[v,["administrativeContracts.administrativeContracts/add"]]]),_((i(),m(d,{disabled:!h.value.length,onClick:o[4]||(o[4]=t=>V(h.value))},{default:a(()=>[ge]),_:1},8,["disabled"])),[[v,["administrativeContracts.administrativeContracts/delete"]]]),g("div",Be,[e(H,{data:r(f).lists,onSelectionChange:N},{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(G,{options:r(E).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=>I(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(E),onSuccess:r(w),onClose:o[6]||(o[6]=t=>F.value=!1)},null,8,["dict-data","onSuccess"])):P("",!0),D.value?(i(),m(Ce,{key:1,ref_key:"detailRef",ref:b,"dict-data":r(E),onClose:o[7]||(o[7]=t=>D.value=!1)},null,8,["dict-data"])):P("",!0)])}}});export{gt as default};
|