Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

2 wiersze
8.9KB

  1. var E=(s,J,v)=>new Promise((M,j)=>{var L=r=>{try{w(v.next(r))}catch(p){j(p)}},T=r=>{try{w(v.throw(r))}catch(p){j(p)}},w=r=>r.done?M(r.value):Promise.resolve(r.value).then(L,T);w((v=v.apply(s,J)).next())});import{_ as ee,d as ae,G as le,D as X,u as te,r as q,L as Y,o as oe,e as _,f as o,I as u,l,k as i,h as K,m as Z,g,F as P,J as U,i as D,j as F}from"./index.11dc4694.js";import{c as z}from"./index.f58f6803.js";const ne={class:"text-right w-full mb-8"},ie={key:0},pe=["onClick"],ue={class:"text-right w-full mb-8"},se=["onClick"],de=ae({name:"projectCollectionEnterBasicInfo"}),ce=Object.assign(de,{props:{detail:{type:Object},basicInfoData:{type:Object},isSupplemented:{type:Boolean,default:!1}},setup(s,{expose:J}){const v=le(X.userStore).userInfo,M=te(),j=s,{accountAppNameOption:L,domainBrainAccountOptions:T}=X.dictStore.globalDicts||{},w=q(),r=q(),p=q({applications:[]}),H=[{label:"\u5E8F\u53F7",type:"index",width:60},{label:"\u5173\u8054IRS\u5E94\u7528\u540D\u79F0",slot:"application",key:"application"},{label:"IRS\u5E94\u7528\u7F16\u7801",slot:"applicationCode",key:"applicationCode"},{label:"\u4E00\u672C\u8D26\u91CD\u5927\u5E94\u7528\u540D\u79F0",slot:"baseAccountAppName",key:"baseAccountAppName"},{label:'"\u9886\u57DF\u5927\u8111"\u4E00\u672C\u8D26\u540D\u79F0',slot:"baseBrainName",key:"baseBrainName"},{label:"\u64CD\u4F5C",slot:"action",key:"action"}],Q=()=>E(this,null,function*(){var t;if(!((t=N.value)!=null&&t.length)){const x=yield z({areaCode:v.value.regionCode});N.value=x.data}p.value.applications.push({application:void 0})}),W=t=>{p.value.applications.splice(t,1)},N=q([]),b=q();return J({formRef:w,formData:p}),Y(()=>j.basicInfoData,t=>{var x;(t==null?void 0:t.baseProjIsConfidentiality)==="02"||(t==null?void 0:t.baseProjSetProg)==="00"?r.value={}:r.value={applications:[{required:!0,message:"\u8BF7\u81F3\u5C11\u5173\u8054\u4E00\u4E2A\u5E94\u7528"}]},(x=w.value)==null||x.clearValidate()},{deep:!0,immediate:!0}),oe(()=>E(this,null,function*(){if(!M.query.id){const t=yield z({areaCode:v.value.regionCode});N.value=t.data}})),Y(()=>j.detail,t=>E(this,null,function*(){var x,R,f,y;if(t){j.isSupplemented&&(b.value=((R=(x=t.apply.baseProjSysCode)==null?void 0:x.split("\uFF1B"))==null?void 0:R.map((C,m)=>{var h,B,S,A,k,$,V;return{application:((h=N.value)==null?void 0:h.find(I=>I.applicationCode===C))||{applicationCode:C,applicationName:((S=(B=t.apply)==null?void 0:B.baseProjSys)==null?void 0:S.split("\uFF1B")[m])||""},baseAccountAppName:((k=(A=t.apply)==null?void 0:A.baseAccountAppName)==null?void 0:k.split("\uFF1B")[m])||"",baseBrainName:((V=($=t.apply)==null?void 0:$.baseBrainName)==null?void 0:V.split("\uFF1B")[m])||""}}))||[],console.log(b.value));const c=yield z({areaCode:v.value.regionCode});N.value=c.data,p.value={applications:((y=(f=t.apply.baseProjSysCode)==null?void 0:f.split("\uFF1B"))==null?void 0:y.map((C,m)=>{var h,B,S,A,k,$,V;return{application:((h=N.value)==null?void 0:h.find(I=>I.applicationCode===C))||{applicationCode:C,applicationName:((S=(B=t.apply)==null?void 0:B.baseProjSys)==null?void 0:S.split("\uFF1B")[m])||""},baseAccountAppName:((k=(A=t.apply)==null?void 0:A.baseAccountAppName)==null?void 0:k.split("\uFF1B")[m])||"",baseBrainName:((V=($=t.apply)==null?void 0:$.baseBrainName)==null?void 0:V.split("\uFF1B")[m])||""}}))||[]}}})),(t,x)=>{const R=_("el-button"),f=_("el-option"),y=_("el-select"),c=_("el-form-item"),C=_("el-input"),m=_("table-list"),h=_("el-col"),B=_("el-row"),S=_("el-form");return o(),u(S,{ref_key:"formRef",ref:w,model:p.value,rules:r.value,"label-position":"top","label-suffix":":","scroll-to-error":"","validate-on-rule-change":!1},{default:l(()=>[i(B,{gutter:40},{default:l(()=>[i(h,{span:24},{default:l(()=>{var A,k,$,V,I;return[((k=(A=s.basicInfoData)==null?void 0:A.baseConstructionType)==null?void 0:k.includes("01"))&&!((($=s.basicInfoData)==null?void 0:$.baseProjType)==="01"&&(((V=s.basicInfoData)==null?void 0:V.baseProjSetProg)==="01"||((I=s.basicInfoData)==null?void 0:I.baseProjSetProg)==="02"))?(o(),u(c,{key:"applications1",label:"\u5173\u8054IRS\u5E94\u7528\u540D\u79F0",prop:"applications"},{default:l(()=>{var O;return[K("p",ne,[i(R,{type:"primary",disabled:!!((O=b.value)!=null&&O.length)&&s.isSupplemented,onClick:Q},{default:l(()=>[Z("\u6DFB\u52A0\u5173\u8054\u5E94\u7528")]),_:1},8,["disabled"])]),i(m,{pagination:!1,style:{width:"100%"},column:H,data:p.value.applications,"empty-temp":!1},{application:l(({scope:e})=>[e.$index>=0?(o(),u(c,{key:0,prop:`applications[${e.$index}].application`,rules:[{required:!0,message:" "}]},{default:l(()=>{var a,n;return[i(y,{modelValue:p.value.applications[e.$index].application,"onUpdate:modelValue":d=>p.value.applications[e.$index].application=d,class:"w-full",placeholder:"\u8BF7\u9009\u62E9","value-key":"applicationCode",filterable:"",disabled:((n=(a=b.value)==null?void 0:a[e.$index])==null?void 0:n.application)&&s.isSupplemented},{default:l(()=>[(o(!0),g(P,null,U(N.value,(d,G)=>(o(),u(f,{key:G,label:d.applicationName,value:d},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])]}),_:2},1032,["prop"])):D("v-if",!0)]),applicationCode:l(({scope:e})=>[i(c,null,{default:l(()=>{var a;return[i(C,{disabled:"","model-value":(a=e.row.application)==null?void 0:a.applicationCode},null,8,["model-value"])]}),_:2},1024)]),baseAccountAppName:l(({scope:e})=>[e.$index>=0?(o(),u(c,{key:0,prop:`applications[${e.$index}].baseAccountAppName`},{default:l(()=>{var a;return[i(y,{modelValue:e.row.baseAccountAppName,"onUpdate:modelValue":n=>e.row.baseAccountAppName=n,disabled:((a=b.value)==null?void 0:a[e.$index].baseAccountAppName)&&s.isSupplemented},{default:l(()=>[(o(!0),g(P,null,U(F(L),(n,d)=>(o(),u(f,{key:d,label:n,value:n},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])]}),_:2},1032,["prop"])):D("v-if",!0)]),baseBrainName:l(({scope:e})=>[e.$index>=0?(o(),u(c,{key:0,prop:`applications[${e.$index}].baseBrainName`},{default:l(()=>{var a;return[i(y,{modelValue:e.row.baseBrainName,"onUpdate:modelValue":n=>e.row.baseBrainName=n,disabled:((a=b.value)==null?void 0:a[e.$index].baseBrainName)&&s.isSupplemented},{default:l(()=>[(o(!0),g(P,null,U(F(T),(n,d)=>(o(),u(f,{key:d,label:n,value:n},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])]}),_:2},1032,["prop"])):D("v-if",!0)]),action:l(({scope:e})=>{var a;return[((a=b.value)==null?void 0:a.length)&&s.isSupplemented?(o(),g("span",ie,"-")):(o(),g("a",{key:1,class:"text-danger",onClick:n=>W(e.$index)},"\u5220\u9664",8,pe))]}),_:1},8,["data"])]}),_:1})):(o(),u(c,{key:"applications2",label:"\u5173\u8054IRS\u5E94\u7528\u540D\u79F0"},{default:l(()=>{var O;return[K("p",ue,[i(R,{type:"primary",disabled:!!((O=b.value)!=null&&O.length)&&s.isSupplemented,onClick:Q},{default:l(()=>[Z("\u6DFB\u52A0\u5173\u8054\u5E94\u7528")]),_:1},8,["disabled"])]),i(m,{pagination:!1,style:{width:"100%"},column:H,data:p.value.applications,"empty-temp":!1},{application:l(({scope:e})=>[e.$index>=0?(o(),u(c,{key:0,prop:`applications[${e.$index}].application`,rules:[{required:!0,message:" "}]},{default:l(()=>{var a,n;return[i(y,{modelValue:p.value.applications[e.$index].application,"onUpdate:modelValue":d=>p.value.applications[e.$index].application=d,class:"w-full",placeholder:"\u8BF7\u9009\u62E9","value-key":"applicationCode",filterable:"",disabled:((n=(a=b.value)==null?void 0:a[e.$index])==null?void 0:n.application)&&s.isSupplemented},{default:l(()=>[(o(!0),g(P,null,U(N.value,(d,G)=>(o(),u(f,{key:G,label:d.applicationName,value:d},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","disabled"])]}),_:2},1032,["prop"])):D("v-if",!0)]),applicationCode:l(({scope:e})=>[i(c,null,{default:l(()=>{var a;return[i(C,{disabled:"","model-value":(a=e.row.application)==null?void 0:a.applicationCode},null,8,["model-value"])]}),_:2},1024)]),baseAccountAppName:l(({scope:e})=>[e.$index>=0?(o(),u(c,{key:0,prop:`applications[${e.$index}].baseAccountAppName`},{default:l(()=>[i(y,{modelValue:e.row.baseAccountAppName,"onUpdate:modelValue":a=>e.row.baseAccountAppName=a},{default:l(()=>[(o(!0),g(P,null,U(F(L),(a,n)=>(o(),u(f,{key:n,label:a,value:a},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])):D("v-if",!0)]),baseBrainName:l(({scope:e})=>[e.$index>=0?(o(),u(c,{key:0,prop:`applications[${e.$index}].baseBrainName`},{default:l(()=>[i(y,{modelValue:e.row.baseBrainName,"onUpdate:modelValue":a=>e.row.baseBrainName=a},{default:l(()=>[(o(!0),g(P,null,U(F(T),(a,n)=>(o(),u(f,{key:n,label:a,value:a},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:2},1032,["prop"])):D("v-if",!0)]),action:l(({scope:e})=>[K("a",{class:"text-danger",onClick:a=>W(e.$index)},"\u5220\u9664",8,se)]),_:1},8,["data"])]}),_:1}))]}),_:1})]),_:1})]),_:1},8,["model","rules"])}}}),fe=ee(ce,[["__file","/Users/chenlixin/Documents/work/NDKJ/MyProject/ls-project-v2.0/src/pages/projectCollection/projectCollectionEnter/components/applicationInfo.vue"]]);export{fe as default};