engineering/public/admin/assets/costbudget.d684fcd5.js
2024-02-27 10:28:16 +08:00

2 lines
8.5 KiB
JavaScript

import{J as j,y as q,w as I,D as J,C as O,L as z,M as G,N as H}from"./element-plus.517d4382.js";import{_ as K}from"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{f as W,a as X}from"./index.8b1962e9.js";import{u as Z}from"./usePaging.f6660143.js";import{u as oo}from"./useDictOptions.b5854a9e.js";import{e as eo,a as to,f as lo}from"./cost_budget.f56437aa.js";import"./lodash.1d82ee7c.js";import uo from"./editcost.8d695974.js";import{d as k,s as ao,r as B,a0 as y,ai as io,o as s,c as so,V as o,M as t,O as f,u as i,L as m,S as ro,a as A,k as no,T as d,n as g}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"./index.fc916ebb.js";/* empty css */import"./index.vue_vue_type_script_setup_true_lang.72fae613.js";import"./cost_subject.956fa2c4.js";import"./department.b8dec04d.js";import"./organization.5e75830a.js";const po=d("\u67E5\u8BE2"),mo=d("\u91CD\u7F6E"),co=d(" \u65B0\u589E "),wo=d(" \u5220\u9664 "),fo={class:"mt-4"},_o=d(" \u7F16\u8F91 "),ho=d(" \u5220\u9664 "),vo={class:"flex justify-end mt-4"},bo=k({name:"customLists"}),ce=k({...bo,setup(Fo){const _=ao(),h=B(!1);y([{name:"\u5168\u90E8\u5BA2\u6237",count:1e3},{name:"\u516C\u6D77\u5BA2\u6237",count:1e3},{name:"\u79C1\u6709\u5BA2\u6237",count:1e3},{name:"\u4ECA\u65E5\u65B0\u589E",count:1e3},{name:"\u4ECA\u65E5\u5206\u914D\u516C\u6D77\u5BA2\u6237",count:1e3},{name:"\u4ECA\u65E5\u5E94\u8054\u7CFB",count:1e3},{name:"\u4ECA\u65E5\u672A\u8054\u7CFB",count:1e3},{name:"\u4ECA\u65E5\u5DF2\u8054\u7CFB",count:1e3}]);const r=y({years:"",document_preparation_time:""}),F=B([]),V=a=>{F.value=a.map(({id:l})=>l)},{dictData:D}=oo(""),{pager:c,getLists:v,resetParams:Y,resetPage:x}=Z({fetchFun:eo,params:r}),P=async()=>{var a;h.value=!0,await g(),(a=_.value)==null||a.open("add")},$=async a=>{var w,n;let l=await to({id:a.id});h.value=!0,await g(),(w=_.value)==null||w.open("edit"),(n=_.value)==null||n.setFormData(l)},E=async a=>{await W.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await lo({id:a}),v()};return v(),(a,l)=>{const w=j,n=q,p=I,L=J,C=O,M=X,e=z,N=Q,S=G,T=K,b=io("perms"),R=H;return s(),so("div",null,[o(C,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[o(L,{class:"mb-[-16px]",model:r,inline:""},{default:t(()=>[o(n,{label:"\u5E74\u4EFD",prop:"years"},{default:t(()=>[o(w,{modelValue:r.years,"onUpdate:modelValue":l[0]||(l[0]=u=>r.years=u),clearable:"",type:"year","value-format":"YYYY",placeholder:"\u9009\u62E9\u5E74\u4EFD"},null,8,["modelValue"])]),_:1}),o(n,{label:"\u5236\u5355\u65F6\u95F4",prop:"document_preparation_time"},{default:t(()=>[o(w,{class:"",modelValue:r.document_preparation_time,"onUpdate:modelValue":l[1]||(l[1]=u=>r.document_preparation_time=u),clearable:"",type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"\u9009\u62E9\u5236\u5355\u65F6\u95F4"},null,8,["modelValue"])]),_:1}),o(n,null,{default:t(()=>[o(p,{type:"primary",onClick:i(x)},{default:t(()=>[po]),_:1},8,["onClick"]),o(p,{onClick:i(Y)},{default:t(()=>[mo]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((s(),m(C,{class:"!border-none",shadow:"never"},{default:t(()=>[f((s(),m(p,{type:"primary",onClick:P},{icon:t(()=>[o(M,{name:"el-icon-Plus"})]),default:t(()=>[co]),_:1})),[[b,["costbudget.costbudget/add"]]]),f((s(),m(p,{disabled:!F.value.length,onClick:l[2]||(l[2]=u=>E(F.value))},{default:t(()=>[wo]),_:1},8,["disabled"])),[[b,["costbudget.costbudget/delete"]]]),A("div",fo,[o(S,{data:i(c).lists,onSelectionChange:V},{default:t(()=>[o(e,{type:"selection",width:"55"}),o(e,{label:"\u5E8F\u53F7",type:"index",width:"55"}),o(e,{label:"\u67E5\u770B",prop:"name","show-overflow-tooltip":""}),o(e,{label:"\u5BA2\u6237\u5C5E\u6027",prop:"custom_type"},{default:t(({row:u})=>[o(N,{options:i(D).custom_type,value:u.custom_type},null,8,["options","value"])]),_:1}),o(e,{label:"\u6D41\u7A0B\u7F16\u53F7",prop:"province_name","show-overflow-tooltip":""}),o(e,{label:"\u5236\u5355\u65F6\u95F4",prop:"document_preparation_time","show-overflow-tooltip":""}),o(e,{label:"\u5E74\u4EFD",prop:"years","show-overflow-tooltip":""}),o(e,{label:"\u603B\u5408\u8BA1",prop:"total","show-overflow-tooltip":""}),o(e,{label:"\u603B\u5DF2\u53D1\u751F",prop:"master_notes","show-overflow-tooltip":""}),o(e,{label:"\u8D1F\u8D23\u4EBA","show-overflow-tooltip":""}),o(e,{label:"\u603B\u5269\u4F59",prop:"create_time","show-overflow-tooltip":""}),o(e,{label:"\u5907\u6CE8","show-overflow-tooltip":""}),o(e,{label:"1\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"1\u6708\u5DF2\u53D1\u751F","show-overflow-tooltip":"",width:"100"}),o(e,{label:"1\u6708\u5269\u4F59","show-overflow-tooltip":""}),o(e,{label:"2\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"2\u6708\u5DF2\u53D1\u751F","show-overflow-tooltip":"",width:"100"}),o(e,{label:"2\u6708\u5269\u4F59","show-overflow-tooltip":""}),o(e,{label:"3\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"3\u6708\u5DF2\u53D1\u751F","show-overflow-tooltip":"",width:"100"}),o(e,{label:"3\u6708\u5269\u4F59","show-overflow-tooltip":""}),o(e,{label:"4\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"4\u6708\u5DF2\u53D1\u751F","show-overflow-tooltip":"",width:"100"}),o(e,{label:"4\u6708\u5269\u4F59","show-overflow-tooltip":""}),o(e,{label:"5\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"5\u6708\u5DF2\u53D1\u751F","show-overflow-tooltip":"",width:"100"}),o(e,{label:"5\u6708\u5269\u4F59","show-overflow-tooltip":""}),o(e,{label:"6\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"6\u6708\u5DF2\u53D1\u751F","show-overflow-tooltip":"",width:"100"}),o(e,{label:"6\u6708\u5269\u4F59","show-overflow-tooltip":""}),o(e,{label:"7\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"7\u6708\u5DF2\u53D1\u751F","show-overflow-tooltip":"",width:"100"}),o(e,{label:"7\u6708\u5269\u4F59","show-overflow-tooltip":""}),o(e,{label:"8\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"8\u6708\u5DF2\u53D1\u751F","show-overflow-tooltip":"",width:"100"}),o(e,{label:"8\u6708\u5269\u4F59","show-overflow-tooltip":""}),o(e,{label:"9\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"9\u6708\u5DF2\u53D1\u751F","show-overflow-tooltip":"",width:"100"}),o(e,{label:"9\u6708\u5269\u4F59","show-overflow-tooltip":""}),o(e,{label:"10\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"10\u6708\u5DF2\u53D1\u751F","show-overflow-tooltip":"",width:"100"}),o(e,{label:"10\u6708\u5269\u4F59","show-overflow-tooltip":""}),o(e,{label:"11\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"11\u6708\u5DF2\u53D1\u751F","show-overflow-tooltip":"",width:"100"}),o(e,{label:"11\u6708\u5269\u4F59","show-overflow-tooltip":""}),o(e,{label:"12\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"12\u6708\u5DF2\u53D1\u751F","show-overflow-tooltip":"",width:"100"}),o(e,{label:"12\u6708\u5269\u4F59","show-overflow-tooltip":""}),o(e,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:u})=>[f((s(),m(p,{type:"primary",link:"",onClick:U=>$(u)},{default:t(()=>[_o]),_:2},1032,["onClick"])),[[b,["costbudget.costbudget/edit"]]]),f((s(),m(p,{type:"danger",link:"",onClick:U=>E(u.id)},{default:t(()=>[ho]),_:2},1032,["onClick"])),[[b,["costbudget.costbudget/delete"]]])]),_:1})]),_:1},8,["data"])]),A("div",vo,[o(T,{modelValue:i(c),"onUpdate:modelValue":l[3]||(l[3]=u=>no(c)?c.value=u:null),onChange:i(v)},null,8,["modelValue","onChange"])])]),_:1})),[[R,i(c).loading]]),h.value?(s(),m(uo,{key:0,ref_key:"editRef",ref:_,"dict-data":i(D),onSuccess:i(v),onClose:l[4]||(l[4]=u=>h.value=!1)},null,8,["dict-data","onSuccess"])):ro("",!0)])}}});export{ce as default};