engineering/public/admin/assets/Projectbudget.9889874c.js
2024-03-04 15:04:21 +08:00

2 lines
8.5 KiB
JavaScript

import{I as E,y as F,G as x,H as z,P as B,Q as C,J as O,w as q,K as M,D as R,C as L}from"./element-plus.258bf9e7.js";import{_ as P}from"./index.ec401e3b.js";import{o as a,c as n,V as l,M as i,W as b,a8 as _,T as u,L as V,U as y}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";const j={components:{},props:[],data(){return{formData:{field101:void 0,field104:void 0,field109:void 0,field105:void 0,field108:void 0,field118:void 0,field122:void 0,field119:void 0,field120:void 0,field123:void 0,field124:null,field125:void 0,field127:void 0,field126:void 0,field128:void 0,field129:null},rules:{field101:[{required:!0,message:"\u8BF7\u8F93\u5165\u7EC4\u7EC7\u540D\u79F0",trigger:"blur"}],field104:[{required:!0,message:"\u8BF7\u9009\u62E9\u90E8\u95E8\u540D\u79F0",trigger:"change"}],field109:[{required:!0,message:"\u70B9\u6559\u9009\u62E9\u9879\u76EE",trigger:"blur"}],field105:[{required:!0,message:"\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6",trigger:"blur"}],field108:[{required:!0,message:"\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6",trigger:"blur"}],field118:[{required:!0,message:"\u6982\u7B97\u6765\u6E90\u4E0D\u80FD\u4E3A\u7A7A",trigger:"change"}],field122:[],field119:[],field120:[],field123:[],field124:[],field125:[],field127:[],field126:[],field128:[]},field129Action:"https://jsonplaceholder.typicode.com/posts/",field129fileList:[],field104Options:[{label:"\u9009\u9879\u4E00",value:1},{label:"\u9009\u9879\u4E8C",value:2}],field118Options:[{label:"\u81EA\u5DF1\u6982\u7B97",value:1},{label:"\u5BA2\u6237\u63D0\u4F9B",value:2}],field125Options:[{label:"\u4E13\u7968",value:1},{label:"\u666E\u901A",value:2},{label:"\u6536\u636E",value:3}]}},computed:{},watch:{},created(){},mounted(){},methods:{submitForm(){this.$refs.elForm.validate(m=>{})},resetForm(){this.$refs.elForm.resetFields()},field129BeforeUpload(m){let o=m.size/1024/1024<2;return o||this.$message.error("\u6587\u4EF6\u5927\u5C0F\u8D85\u8FC7 2MB"),o}}},I=u("\u70B9\u51FB\u4E0A\u4F20"),S=u("\u63D0\u4EA4"),A=u("\u91CD\u7F6E");function G(m,o,N,T,d,p){const r=E,t=F,g=x,w=z,D=B,c=C,U=O,s=q,v=M,h=R,k=L;return a(),n("div",null,[l(k,null,{default:i(()=>[l(h,{ref:"elForm",model:d.formData,rules:d.rules,size:"medium","label-width":"100px","label-position":"left"},{default:i(()=>[l(t,{label:"\u7EC4\u7EC7\u540D\u79F0",prop:"field101"},{default:i(()=>[l(r,{modelValue:d.formData.field101,"onUpdate:modelValue":o[0]||(o[0]=e=>d.formData.field101=e),placeholder:"\u8BF7\u8F93\u5165\u7EC4\u7EC7\u540D\u79F0",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),l(t,{label:"\u90E8\u95E8\u540D\u79F0",prop:"field104"},{default:i(()=>[l(w,{modelValue:d.formData.field104,"onUpdate:modelValue":o[1]||(o[1]=e=>d.formData.field104=e),placeholder:"\u8BF7\u9009\u62E9\u90E8\u95E8\u540D\u79F0",clearable:"",style:{width:"100%"}},{default:i(()=>[(a(!0),n(b,null,_(d.field104Options,(e,f)=>(a(),V(g,{key:f,label:e.label,value:e.value,disabled:e.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(t,{label:"\u9879\u76EE\u540D\u79F0",prop:"field109"},{default:i(()=>[l(r,{modelValue:d.formData.field109,"onUpdate:modelValue":o[2]||(o[2]=e=>d.formData.field109=e),placeholder:"\u70B9\u6559\u9009\u62E9\u9879\u76EE",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),l(t,{label:"\u9879\u76EE\u7F16\u7801",prop:"field105"},{default:i(()=>[l(r,{modelValue:d.formData.field105,"onUpdate:modelValue":o[3]||(o[3]=e=>d.formData.field105=e),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),l(t,{label:"\u5BA2\u6237\u540D\u79F0",prop:"field108"},{default:i(()=>[l(r,{modelValue:d.formData.field108,"onUpdate:modelValue":o[4]||(o[4]=e=>d.formData.field108=e),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),l(t,{label:"\u6982\u7B97\u6765\u6E90",prop:"field118"},{default:i(()=>[l(c,{modelValue:d.formData.field118,"onUpdate:modelValue":o[5]||(o[5]=e=>d.formData.field118=e),size:"medium"},{default:i(()=>[(a(!0),n(b,null,_(d.field118Options,(e,f)=>(a(),V(D,{key:f,label:e.value,disabled:e.disabled},{default:i(()=>[u(y(e.label),1)]),_:2},1032,["label","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(t,{label:"\u9700\u6C42\u540D\u79F0",prop:"field122"},{default:i(()=>[l(r,{modelValue:d.formData.field122,"onUpdate:modelValue":o[6]||(o[6]=e=>d.formData.field122=e),placeholder:"\u70B9\u6559\u9009\u62E9\u9700\u6C42\u540D\u79F0",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),l(t,{label:"\u8054\u7CFB\u4EBA",prop:"field119"},{default:i(()=>[l(r,{modelValue:d.formData.field119,"onUpdate:modelValue":o[7]||(o[7]=e=>d.formData.field119=e),placeholder:"\u70B9\u6559\u9009\u62E9\u8054\u7CFB\u4EBA",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),l(t,{label:"\u8054\u7CFB\u7535\u8BDD",prop:"field120"},{default:i(()=>[l(r,{modelValue:d.formData.field120,"onUpdate:modelValue":o[8]||(o[8]=e=>d.formData.field120=e),placeholder:"\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),l(t,{label:"\u5236\u5355\u4EBA",prop:"field123"},{default:i(()=>[l(r,{modelValue:d.formData.field123,"onUpdate:modelValue":o[9]||(o[9]=e=>d.formData.field123=e),placeholder:"\u8BF7\u8F93\u5165\u5236\u5355\u4EBA",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),l(t,{label:"\u62A5\u4EF7\u65E5\u671F",prop:"field124"},{default:i(()=>[l(U,{modelValue:d.formData.field124,"onUpdate:modelValue":o[10]||(o[10]=e=>d.formData.field124=e),format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u62A5\u4EF7\u65E5\u671F",clearable:""},null,8,["modelValue"])]),_:1}),l(t,{label:"\u53D1\u7968\u7C7B\u578B",prop:"field125"},{default:i(()=>[l(c,{modelValue:d.formData.field125,"onUpdate:modelValue":o[11]||(o[11]=e=>d.formData.field125=e),size:"medium"},{default:i(()=>[(a(!0),n(b,null,_(d.field125Options,(e,f)=>(a(),V(D,{key:f,label:e.value,disabled:e.disabled},{default:i(()=>[u(y(e.label),1)]),_:2},1032,["label","disabled"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(t,{label:"\u6280\u672F\u4EBA\u5458",prop:"field127"},{default:i(()=>[l(r,{modelValue:d.formData.field127,"onUpdate:modelValue":o[12]||(o[12]=e=>d.formData.field127=e),placeholder:"\u70B9\u6559\u9009\u62E9\u6280\u672F\u4EBA\u5458",disabled:!0,clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),l(t,{label:"\u6982\u7B97\u91D1\u989D(\u4E07)",prop:"field126"},{default:i(()=>[l(r,{modelValue:d.formData.field126,"onUpdate:modelValue":o[13]||(o[13]=e=>d.formData.field126=e),placeholder:"\u70B9\u6559\u9009\u62E9\u6982\u7B97\u91D1\u989D(\u4E07)",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1}),l(t,{label:"\u9700\u6C42",prop:"field128"},{default:i(()=>[l(r,{modelValue:d.formData.field128,"onUpdate:modelValue":o[14]||(o[14]=e=>d.formData.field128=e),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u9700\u6C42",autosize:{minRows:4,maxRows:4},style:{width:"100%"}},null,8,["modelValue"])]),_:1}),l(t,{label:"\u9644\u4EF6",prop:"field129"},{default:i(()=>[l(v,{ref:"field129","file-list":d.field129fileList,action:d.field129Action,"before-upload":p.field129BeforeUpload},{default:i(()=>[l(s,{size:"small",type:"primary",icon:"el-icon-upload"},{default:i(()=>[I]),_:1})]),_:1},8,["file-list","action","before-upload"])]),_:1}),l(t,{size:"large"},{default:i(()=>[l(s,{type:"primary",onClick:p.submitForm},{default:i(()=>[S]),_:1},8,["onClick"]),l(s,{onClick:p.resetForm},{default:i(()=>[A]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model","rules"])]),_:1})])}const he=P(j,[["render",G]]);export{he as default};