Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

2 Zeilen
5.4KB

  1. var H=Object.defineProperty,Q=Object.defineProperties;var Y=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var Z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable;var j=(n,a,e)=>a in n?H(n,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[a]=e,y=(n,a)=>{for(var e in a||(a={}))Z.call(a,e)&&j(n,e,a[e]);if(E)for(var e of E(a))ee.call(a,e)&&j(n,e,a[e]);return n},P=(n,a)=>Q(n,Y(a));var V=(n,a,e)=>new Promise((A,p)=>{var x=u=>{try{h(e.next(u))}catch(r){p(r)}},g=u=>{try{h(e.throw(u))}catch(r){p(r)}},h=u=>u.done?A(u.value):Promise.resolve(u.value).then(x,g);h((e=e.apply(n,a)).next())});import{_ as ae,d as le,u as te,r as s,f as c,g as S,h as oe,l as i,m as o,p as v,L as ie,i as k,j as $,G as ne,a8 as pe,R as F,X as se,q as ce}from"./index.81c9c707.js";import"./appBasicInfo.0e2efafb.js";import"./appSafeInfo.bd5a3651.js";import"./appResourceInfo.6ced15a4.js";import re from"./applicationInfo.8e3957de.js";import"./uploadAction.3ca1cc2d.js";import"./index.61c7dd4d.js";const ue=["onClick"],de=["onClick"];const fe={class:"applyBottomBtn flexCenter marginTop"},_e=le({name:"applications"}),me=Object.assign(_e,{props:{isInnovateWholeProvinceShare:{type:Boolean,default:!1},isFirst:{type:Number,default:void 0},coreBusiness:{type:Array,default:()=>[]}},setup(n,{expose:a}){const e=te(),{proxy:A}=ce(),p=s({applicationList:[]}),x=s(),g={includeApplication:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u5305\u542B\u5E94\u7528",trigger:"blur"}],applicationList:[{required:!0,message:"\u8BF7\u6DFB\u52A0\u5E94\u7528",trigger:"blur"}]},h=[{type:"index",label:"\u5E8F\u53F7",width:60},{label:"\u5E94\u7528\u540D\u79F0",key:"applicationName",prop:"applicationName",render:l=>{var t;return pe("span",l.applicationName||((t=l.relatedExistsApplication)==null?void 0:t.applicationName)||"")}},{label:"\u64CD\u4F5C",slot:"action"}],u=l=>{A.$messageBox.confirm("\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u9879\u5417?","\u63D0\u793A\uFF01",{type:"warning"}).then(()=>{p.value.applicationList.splice(l,1)})},r=s(!1),ve=s(["1","2","3"]),w=s({}),he=s(),xe=s(),we=s(),d=s(),C=s(!1),I=s(),M=(l,t)=>V(this,null,function*(){C.value=!0,I.value=l,w.value=t,r.value=!0,yield F(),d.value.clearValidate()}),q=()=>V(this,null,function*(){C.value=!1,w.value={},r.value=!0,yield F(),d.value.clearValidate()}),R=()=>{se.confirm("\u786E\u5B9A\u8981\u5173\u95ED\u5E94\u7528\u7F16\u8F91\u9875\u9762\u5417\uFF1F").then(()=>{B()}).catch(()=>{})},B=()=>{d.value.formData={},d.value.clearValidate(),r.value=!1},N=()=>{C.value?p.value.applicationList[I.value]=y({},d.value.formData):p.value.applicationList.push(y({},d.value.formData)),B()},U=()=>{const l=[];l.push(new Promise((t,m)=>{d.value.validForm(f=>{f&&t()})})),Promise.all([...l]).then(()=>{N()})},T=l=>{x.value.validate(t=>{l(t)})},W=l=>{var m;const t=e.query.isDraft?"applicationList":"projectApplications";p.value={includeApplication:l.includeApplication,applicationList:(m=l[t])!=null&&m.length?l[t].map(f=>P(y({},f),{relatedExistsApplication:f.relatedExistsApplication?{applicationCode:f.relatedExistsApplicationCode,applicationName:f.relatedExistsApplication}:void 0})):[]}},z=()=>{p.value.applicationList=[]};return a({validForm:T,formData:p,applicationData:w,setFormData:W}),(l,t)=>{const m=c("el-radio"),f=c("el-radio-group"),D=c("el-form-item"),L=c("el-col"),b=c("el-button"),G=c("table-list"),J=c("el-row"),K=c("el-form"),be=c("el-collapse-item"),ye=c("el-collapse"),O=c("el-drawer");return S(),oe(ne,null,[i(K,{ref_key:"formRef",ref:x,model:p.value,rules:g,"label-position":"right","label-width":"180px","label-suffix":":","scroll-to-error":""},{default:o(()=>[i(J,{gutter:40},{default:o(()=>[i(L,{span:12},{default:o(()=>[i(D,{label:"\u662F\u5426\u5305\u542B\u5E94\u7528","label-width":"atuo",prop:"includeApplication"},{default:o(()=>[i(f,{modelValue:p.value.includeApplication,"onUpdate:modelValue":t[0]||(t[0]=_=>p.value.includeApplication=_),onChange:z},{default:o(()=>[i(m,{label:1},{default:o(()=>[v("\u662F")]),_:1}),i(m,{label:0},{default:o(()=>[v("\u5426")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),p.value.includeApplication===1?(S(),ie(L,{key:0,span:24},{default:o(()=>[i(D,{label:"\u5305\u542B\u7684\u5E94\u7528",prop:"applicationList"},{default:o(()=>[i(b,{type:"primary",plain:"",class:"w-full mb-10",icon:"Plus",onClick:q},{default:o(()=>[v("\u6DFB\u52A0\u5E94\u7528")]),_:1}),i(G,{class:"w-full",pagination:!1,data:p.value.applicationList,column:h},{action:o(({scope:_})=>[k("a",{onClick:X=>M(_.$index,_.row)},"\u7F16\u8F91",8,ue),k("a",{class:"text-red-400",onClick:X=>u(_.$index)},"\u5220\u9664",8,de)]),_:1},8,["data"])]),_:1})]),_:1})):$("v-if",!0)]),_:1})]),_:1},8,["model"]),i(O,{modelValue:r.value,"onUpdate:modelValue":t[2]||(t[2]=_=>r.value=_),title:"\u6DFB\u52A0\u5E94\u7528","before-close":R,size:1e3},{footer:o(()=>[k("div",fe,[i(b,{onClick:R},{default:o(()=>[v(" \u5173\u95ED ")]),_:1}),i(b,{type:"primary",plain:"",onClick:N},{default:o(()=>[v(" \u6682\u5B58 ")]),_:1}),i(b,{type:"primary",onClick:U},{default:o(()=>[v(" \u786E\u5B9A ")]),_:1})])]),default:o(()=>[$("v-if",!0),i(re,{ref_key:"applicationInfoRef",ref:d,data:w.value,"is-first":n.isFirst,"core-business":n.coreBusiness,"drawer-visible":r.value},null,8,["data","is-first","core-business","drawer-visible"])]),_:1},8,["modelValue"])],64)}}}),Ee=ae(me,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/declareManage/projectDeclare/declarePage/components/applications.vue"]]);export{Ee as default};