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

2 lines
6.2 KiB
JavaScript

import{J as $,y as R,w as j,D as U,C as q,L as I,M as J,N as O}from"./element-plus.258bf9e7.js";import{_ as z}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{_ as G}from"./index.vue_vue_type_script_setup_true_lang.e1e5e943.js";import{f as H,a as K}from"./index.ec401e3b.js";import{u as Q}from"./usePaging.f6660143.js";import{u as W}from"./useDictOptions.c644f395.js";import{d as X,e as Z}from"./cost_budget_adjust.966e7ad6.js";import"./lodash.1d82ee7c.js";import oo from"./edit.0e680c4c.js";import{d as D,s as eo,r as F,a0 as y,ai as to,o as r,c as uo,V as o,M as t,O as v,u as a,L as d,S as lo,a as A,k as ao,T as p,n as so}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.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.9cd3be2e.js";/* empty css */import"./index.vue_vue_type_script_setup_true_lang.c7120e3a.js";import"./cost_subject.bd75356b.js";import"./department.1c914e1a.js";import"./organization.f0387125.js";const io=p("\u67E5\u8BE2"),no=p("\u91CD\u7F6E"),ro=p(" \u65B0\u589E "),po=p(" \u5220\u9664 "),mo={class:"mt-4"},co=p(" > "),_o={class:"flex justify-end mt-4"},fo=D({name:"customLists"}),re=D({...fo,setup(wo){const b=eo(),_=F(!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 i=y({name:"",custom_type:"",phone:"",credit_rating:"",province:"",city:"",status:""}),f=F([]),g=s=>{f.value=s.map(({id:u})=>u)},{dictData:h}=W("custom_type,credit_rating"),{pager:n,getLists:m,resetParams:k,resetPage:V}=Q({fetchFun:X,params:i}),Y=async()=>{var s;_.value=!0,await so(),(s=b.value)==null||s.open("add")},x=async s=>{await H.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await Z({id:s}),m()};return m(),(s,u)=>{const E=$,w=R,c=j,P=U,B=q,L=K,e=I,M=G,N=J,S=z,C=to("perms"),T=O;return r(),uo("div",null,[o(B,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[o(P,{class:"mb-[-16px]",model:i,inline:""},{default:t(()=>[o(w,{label:"\u5E74\u4EFD",prop:"years"},{default:t(()=>[o(E,{modelValue:i.years,"onUpdate:modelValue":u[0]||(u[0]=l=>i.years=l),clearable:"",type:"year","value-format":"YYYY",placeholder:"\u9009\u62E9\u5E74\u4EFD"},null,8,["modelValue"])]),_:1}),o(w,{label:"\u5236\u5355\u65F6\u95F4",prop:"document_preparation_time"},{default:t(()=>[o(E,{class:"",modelValue:i.document_preparation_time,"onUpdate:modelValue":u[1]||(u[1]=l=>i.document_preparation_time=l),clearable:"",type:"date",format:"YYYY-MM-DD","value-format":"YYYY-MM-DD",placeholder:"\u9009\u62E9\u5236\u5355\u65F6\u95F4"},null,8,["modelValue"])]),_:1}),o(w,null,{default:t(()=>[o(c,{type:"primary",onClick:a(V)},{default:t(()=>[io]),_:1},8,["onClick"]),o(c,{onClick:a(k)},{default:t(()=>[no]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),v((r(),d(B,{class:"!border-none",shadow:"never"},{default:t(()=>[v((r(),d(c,{type:"primary",onClick:Y},{icon:t(()=>[o(L,{name:"el-icon-Plus"})]),default:t(()=>[ro]),_:1})),[[C,["costbudget.costbudget/add"]]]),v((r(),d(c,{disabled:!f.value.length,onClick:u[2]||(u[2]=l=>x(f.value))},{default:t(()=>[po]),_:1},8,["disabled"])),[[C,["costbudget.costbudget/delete"]]]),A("div",mo,[o(N,{data:a(n).lists,onSelectionChange:g},{default:t(()=>[o(e,{type:"selection",width:"55"}),o(e,{label:"\u5E8F\u53F7",type:"index",width:"55"}),o(e,{label:"\u5E8F\u53F7",prop:"name","show-overflow-tooltip":""}),o(e,{label:"\u6D41\u7A0B\u7F16\u53F7",prop:"custom_type"},{default:t(({row:l})=>[o(M,{options:a(h).custom_type,value:l.custom_type},null,8,["options","value"])]),_:1}),co,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:"1\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"2\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"3\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"4\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"5\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"6\u6708\u5408\u8BA1","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:"9\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"10\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"11\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"12\u6708\u5408\u8BA1","show-overflow-tooltip":""}),o(e,{label:"\u5907\u6CE8","show-overflow-tooltip":"",width:"100"}),o(e,{label:"\u9644\u4EF6","show-overflow-tooltip":""})]),_:1},8,["data"])]),A("div",_o,[o(S,{modelValue:a(n),"onUpdate:modelValue":u[3]||(u[3]=l=>ao(n)?n.value=l:null),onChange:a(m)},null,8,["modelValue","onChange"])])]),_:1})),[[T,a(n).loading]]),_.value?(r(),d(oo,{key:0,ref_key:"editRef",ref:b,"dict-data":a(h),onSuccess:a(m),onClose:u[4]||(u[4]=l=>_.value=!1)},null,8,["dict-data","onSuccess"])):lo("",!0)])}}});export{re as default};