移动端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

proposerLiteNew.vue 314 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678
  1. <template>
  2. <div class="app-container">
  3. <div id="info" style="display: none"></div>
  4. <!-- <van-nav-bar-->
  5. <!-- :title="(proposerStatus == 3 ? '添加' : '') + '用地建房申请'"-->
  6. <!-- left-arrow-->
  7. <!-- fixed-->
  8. <!-- placeholder-->
  9. <!-- @click-left="goBack()"-->
  10. <!-- z-index="998"-->
  11. <!-- >-->
  12. <!-- <template #right>-->
  13. <!-- <van-icon name="../../../static/images/icon/icon_flow.png" size="20" @click="goFlow"/>-->
  14. <!-- </template>-->
  15. <!-- </van-nav-bar>-->
  16. <div class="header_main">
  17. {{(proposerStatus == 3 ? '添加' : '') + '用地建房申请'}}
  18. <div class="return_btn" @click="onClickLeft"></div>
  19. <div class="add_btn" @click="goFlow"></div>
  20. </div>
  21. <van-steps :active="active" active-color="#38f" @click-step="onStepClicked">
  22. <van-step>申请</van-step>
  23. <van-step>开工</van-step>
  24. <van-step>验收</van-step>
  25. </van-steps>
  26. <div class="main" style="padding-bottom: 1rem;">
  27. <van-form ref="form">
  28. <template>
  29. <van-dialog v-model:show="mapShow" @cancel="mapZbQx" @confirm="mapZbQd()" show-cancel-button>
  30. <div style="width: 100%;height:45vh;position:relative;">
  31. <div style="width: 100%;height: 100%">
  32. <!--<iframe style="width: 100%;height: 50%" src="https://www.sea-meta.com/location.html"></iframe>-->
  33. <div id='uuidMap' style="width: 100%;height: 100%"></div>
  34. </div>
  35. </div>
  36. </van-dialog>
  37. </template>
  38. <template v-if="selectedTabName == 0 && formVisible.baseApplyFormVisible"> <!-- 申请 -->
  39. <div :class="active == 0 ? '' : 'noModify'">
  40. <p class="topTit">农村宅基地和建房(规划许可)申请表</p>
  41. <template v-if="formVisible.baseApplyForm.baseFormVisible"> <!-- 申请 基本信息 -->
  42. <div>
  43. <p class="main_title">申请户主信息</p>
  44. <div class="main_box">
  45. <van-field readonly v-model="applicationDetail.sqhhzxm" label="姓名" placeholder="姓名"
  46. input-align="right" @input="remoteTransfereeMethod" required
  47. :rules="[{ required: true }]"/>
  48. <van-popup v-model="showNhxx" position="bottom">
  49. <van-picker
  50. show-toolbar
  51. :columns="nhxxList"
  52. @confirm="getApplyerDetail"
  53. value-key="hzxm"
  54. @cancel="showNhxx = false"
  55. />
  56. </van-popup>
  57. <field-select
  58. v-model="applicationDetail.sqhhzxb"
  59. label="性别"
  60. value-key="dictLabel"
  61. data-key="dictValue"
  62. placeholder="选择性别"
  63. :rules="[{ required: true }]"
  64. required
  65. :readonly="true"
  66. remote-url="/open/zdzh/list/sys_user_sex"
  67. :on-remote-response="'data'"
  68. />
  69. <van-field required readonly v-model="applicationDetail.sqhhznl" label="年龄" placeholder="年龄"
  70. input-align="right" type="digit" :rules="[{ required: true }]"/>
  71. <van-field required :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  72. v-model="applicationDetail.sqhhzlxdh" label="联系电话" placeholder="联系电话" input-align="right"
  73. type="digit" :rules="[{pattern: /(^\d{7}(\d{4})?$)/}]"/>
  74. <van-field required readonly v-model="applicationDetail.sqhhzsfzh" label="身份证号" placeholder="身份证号"
  75. input-align="right"
  76. :rules="[{pattern: /^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/}]"
  77. @input="updateUserInfo"/>
  78. <van-field required :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  79. v-model="applicationDetail.sqhhzhkszd" label="户口所在地" placeholder="户口所在地"
  80. input-align="right" :rules="[{ required: true }]"/>
  81. <van-field required :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  82. v-model="applicationDetail.sqhjtzz" label="家庭住址" placeholder="家庭住址" input-align="right"
  83. :rules="[{ required: true }]"/>
  84. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.tHouseApplyProposer.familyAddress" label="家庭住址" placeholder="家庭住址" input-align="right" :rules="[{ required: true }]"/>-->
  85. <!-- <van-field required readonly v-model="applicationDetail.tHouseApplyProposer.members" label="家庭人口数" placeholder="家庭人口数" type="digit" input-align="right"/>-->
  86. <!-- <field-radio-->
  87. <!-- v-model="applicationDetail.tHouseApplyProposer.existHomestead"-->
  88. <!-- label="是否已有宅基地"-->
  89. <!-- value-key="dictLabel"-->
  90. <!-- data-key="dictValue"-->
  91. <!-- :rules="[{ required: true }]"-->
  92. <!-- required-->
  93. <!-- :readonly="!formEnabled.baseApplyForm.baseFormEnabled"-->
  94. <!-- :columns="yesNoOptions"-->
  95. <!-- @change="existHomesteadChange"-->
  96. <!-- />-->
  97. </div>
  98. </div>
  99. <div v-if="applicationDetail.sqrjtcyList">
  100. <p class="main_title">家庭成员信息</p>
  101. <!-- <van-collapse v-model="activeNames" v-if="!formEnabled.baseApplyForm.baseFormEnabled">-->
  102. <!-- <van-collapse-item class="collapse" v-for="(item , index) in applicationDetail.sqrjtcyList" :key="index" :name="index+1">-->
  103. <!-- <template #title>-->
  104. <!-- <van-row>-->
  105. <!-- <van-col span="8">{{item.xm}}</van-col>-->
  106. <!-- <van-col span="8">{{item.nl}}</van-col>-->
  107. <!-- <van-col span="8">{{item.yhzgx}}</van-col>-->
  108. <!-- <van-col span="8">{{item.familyStatusName}}</van-col>-->
  109. <!-- </van-row>-->
  110. <!-- </template>-->
  111. <!-- <van-field readonly v-model="item.xm" label="姓名" placeholder="姓名" input-align="right"/>-->
  112. <!-- <van-field readonly v-model="item.nl" label="年龄" placeholder="年龄" input-align="right"/>-->
  113. <!-- <field-select-->
  114. <!-- v-model="item.yhzgx"-->
  115. <!-- label="与户主关系"-->
  116. <!-- value-key="dictLabel"-->
  117. <!-- data-key="dictValue"-->
  118. <!-- placeholder="选择与户主关系"-->
  119. <!-- :rules="[{ required: true }]"-->
  120. <!-- required-->
  121. <!-- :readonly="!formEnabled.baseApplyForm.baseFormEnabled"-->
  122. <!-- remote-url="/open/zdzh/list/family_status"-->
  123. <!-- :on-remote-response="'data'"-->
  124. <!-- />-->
  125. <!-- <van-field readonly v-model="item.sfzh" label="身份证号" placeholder="身份证号" input-align="right"/>-->
  126. <!-- <van-field readonly v-model="item.hkszd" label="户口所在地" placeholder="户口所在地" input-align="right"/>-->
  127. <!-- </van-collapse-item>-->
  128. <!-- </van-collapse>-->
  129. <div>
  130. <van-tabs v-if="applicationDetail.sqrjtcyList && applicationDetail.sqrjtcyList.length > 0"
  131. v-model="familyMembersActive" ref="memberTabs">
  132. <van-tab :title="(index + 1) + '. ' + item.xm"
  133. v-for="(item , index) in applicationDetail.sqrjtcyList" :key="index" swipeable>
  134. <div class="familyList">
  135. <div class="main_box" style="margin-bottom: 20px">
  136. <van-button icon="minus" size="mini" type="danger" class="deleteFamily" native-type="button"
  137. v-if="index!=0" @click="deleteFamily(index)"/>
  138. <van-field required v-model="item.xm" label="姓名" placeholder="姓名" input-align="right"
  139. :rules="[{ required: true }]"/>
  140. <van-field required v-model="item.nl" label="年龄" placeholder="年龄" input-align="right"
  141. :rules="[{ required: true }]"/>
  142. <field-select
  143. v-model="item.yhzgx"
  144. label="与户主关系"
  145. value-key="dictLabel"
  146. data-key="dictValue"
  147. placeholder="选择与户主关系"
  148. :rules="[{ required: true }]"
  149. required
  150. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  151. remote-url="/open/zdzh/list/family_status"
  152. :on-remote-response="'data'"
  153. />
  154. <van-field required v-model="item.sfzh" label="身份证号" placeholder="身份证号" input-align="right"
  155. :rules="[{pattern: /^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/}]"
  156. @input="updateMemberInfo(index)"/>
  157. <van-field required v-model="item.hkszd" label="户口所在地" placeholder="户口所在地" input-align="right"
  158. :rules="[{ required: true }]"/>
  159. </div>
  160. </div>
  161. </van-tab>
  162. </van-tabs>
  163. </div>
  164. </div>
  165. <div v-if="applicationDetail.sfyyzjd === 'Y'">
  166. <p class="main_title">现宅基地及农房状况</p>
  167. <div class="main_box">
  168. <van-field
  169. readonly
  170. clickable
  171. name="picker"
  172. v-model="showZjddm"
  173. label="宅基地代码"
  174. @click="showZjdzk = true"
  175. input-align="right"
  176. right-icon="arrow-down"
  177. />
  178. <van-popup v-model="showZjdzk" position="bottom">
  179. <van-picker
  180. show-toolbar
  181. :columns="zjddmColumns"
  182. value-key="value"
  183. @confirm="onConfirmZjdxx"
  184. @cancel="showZjdzk = false"
  185. />
  186. </van-popup>
  187. </div>
  188. <div class="main_box">
  189. <van-field :rules="[{ required: true }]" required
  190. :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.xzjdmj"
  191. label="宅基地面积" placeholder="宅基地面积" input-align="right" type="number">
  192. <template #right-icon>㎡</template>
  193. </van-field>
  194. <van-field :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.xjzmj"
  195. label="建筑面积" placeholder="建筑面积㎡" input-align="right" type="number"
  196. :rules="[{ required: true }]" required>
  197. <template #right-icon>㎡</template>
  198. </van-field>
  199. <!-- <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.tHouseApplyCurrentSituation.buildingPerArea" label="人均建筑面积" placeholder="人均建筑面积" input-align="right" label-width="auto" type="number"><template #right-icon>㎡</template></van-field>-->
  200. <van-field :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.qszsh"
  201. label="权属证书号" placeholder="权属证书号" input-align="right"/>
  202. <field-select
  203. v-model="applicationDetail.xzjdczqk"
  204. label="处置情况"
  205. value-key="dictLabel"
  206. data-key="dictValue"
  207. placeholder="选择宅基地处置情况"
  208. :rules="[{ required: true }]"
  209. required
  210. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  211. remote-url="/open/zdzh/list/land_isposal"
  212. :on-remote-response="'data'"
  213. />
  214. <template v-if="applicationDetail.sfyyzjd ==='Y'">
  215. <van-field v-if="applicationDetail.xzjdczqk == '1'" :rules="[{ required: true }]"
  216. :required="applicationDetail.sfyyzjd ==='Y' && applicationDetail.xzjdczqk == '1'"
  217. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  218. v-model="applicationDetail.xzjdblmj" label="保留面积" placeholder="保留面积" input-align="right"
  219. type="number"/>
  220. <van-field v-else-if="applicationDetail.xzjdczqk == '3'" :rules="[{ required: true }]"
  221. :required="applicationDetail.sfyyzjd ==='Y' && applicationDetail.xzjdczqk == '3'"
  222. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  223. v-model="applicationDetail.xzjdzqtqk" label="处置情况" placeholder="处置情况"
  224. input-align="right"/>
  225. </template>
  226. <van-icon v-if="!zjdzdxxDetailedShow" class="zkshStyle" name="arrow-up" @click.native="zkshClick"/>
  227. <div v-if="zjdzdxxDetailedShow">
  228. <van-field :readonly="true" v-model="zjdzdxxDetailed.zdszd" label="东至" input-align="right"/>
  229. <van-field :readonly="true" v-model="zjdzdxxDetailed.zdszx" label="西至" input-align="right"/>
  230. <van-field :readonly="true" v-model="zjdzdxxDetailed.zdszn" label="南至" input-align="right"/>
  231. <van-field :readonly="true" v-model="zjdzdxxDetailed.zdszb" label="北至" input-align="right"/>
  232. <van-icon class="zkshStyle" name="arrow-down" @click.native="zkshClick"/>
  233. </div>
  234. </div>
  235. </div>
  236. <div v-if="applicationDetail">
  237. <p class="main_title">拟申请宅基地及建房情况</p>
  238. <div class="main_box">
  239. <van-field :rules="[{ required: true }]" required
  240. :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.nsqzjdmj"
  241. label="宅基地面积" placeholder="宅基地面积" input-align="right" type="number">
  242. <template #right-icon>㎡</template>
  243. </van-field>
  244. <van-field :rules="[{ required: true }]" required
  245. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  246. v-model="applicationDetail.nsqfjzdmj" label="房基占地面积" placeholder="房基占地面积"
  247. input-align="right" type="number">
  248. <template #right-icon>㎡</template>
  249. </van-field>
  250. <van-field :rules="[{ required: true }]" required
  251. :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.nsqzjddz"
  252. label="地址" placeholder="地址" input-align="right"/>
  253. <van-field :rules="[{ required: true }]" required
  254. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  255. v-model="applicationDetail.nsqzjdszd" label="东至" placeholder="东至" input-align="right"/>
  256. <van-field :rules="[{ required: true }]" required
  257. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  258. v-model="applicationDetail.nsqzjdszx" label="西至" placeholder="西至" input-align="right"/>
  259. <van-field :rules="[{ required: true }]" required
  260. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  261. v-model="applicationDetail.nsqzjdszn" label="南至" placeholder="南至" input-align="right"/>
  262. <van-field :rules="[{ required: true }]" required
  263. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  264. v-model="applicationDetail.nsqzjdszb" label="北至" placeholder="北至" input-align="right"/>
  265. <van-field :rules="[{ required: true }]" required
  266. :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.zfjzmj"
  267. label="住房建筑面积" placeholder="住房建筑面积" input-align="right" type="number">
  268. <template #right-icon>㎡</template>
  269. </van-field>
  270. <van-field :rules="[{ required: true }]" required
  271. :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.jzcs"
  272. label="建筑层数" placeholder="建筑层数" input-align="right" type="digit">
  273. <template #right-icon>层</template>
  274. </van-field>
  275. <van-field :rules="[{ required: true }]" required
  276. :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.jzgd"
  277. label="建筑高度" placeholder="建筑高度" input-align="right" type="number">
  278. <template #right-icon>m</template>
  279. </van-field>
  280. <field-radio
  281. v-model="applicationDetail.sfzqxlqlryj"
  282. label="是否征求相邻权利人意见"
  283. value-key="dictLabel"
  284. data-key="dictValue"
  285. :rules="[{ required: true }]"
  286. required
  287. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  288. :columns="[{dictLabel: '是', dictValue: '1'}, {dictLabel: '否', dictValue: '2'}]"
  289. @change="existHomesteadChange"
  290. />
  291. <!-- <field-select-->
  292. <!-- v-model="applicationDetail.tHouseApplyProposedSituation.housingStructure"-->
  293. <!-- label="房屋构造"-->
  294. <!-- value-key="dictLabel"-->
  295. <!-- data-key="dictValue"-->
  296. <!-- placeholder="选择房屋构造"-->
  297. <!-- :rules="[{ required: true }]"-->
  298. <!-- required-->
  299. <!-- :readonly="!formEnabled.baseApplyForm.baseFormEnabled"-->
  300. <!-- remote-url="/open/zdzh/list/housing_structure"-->
  301. <!-- :on-remote-response="'data'"-->
  302. <!-- />-->
  303. <field-select
  304. v-model="applicationDetail.jflx"
  305. label="建房类型"
  306. value-key="dictLabel"
  307. data-key="dictValue"
  308. placeholder="选择建房类型"
  309. :rules="[{ required: true }]"
  310. required
  311. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  312. remote-url="/open/zdzh/list/building_type"
  313. :on-remote-response="'data'"
  314. @confirm="onJflxChanged"
  315. />
  316. <!-- <field-radio-->
  317. <!-- v-model="applicationDetail.tHouseApplyProposedSituation.designPaper"-->
  318. <!-- label="设计图纸"-->
  319. <!-- value-key="dictLabel"-->
  320. <!-- data-key="dictValue"-->
  321. <!-- :rules="[{ required: true }]"-->
  322. <!-- required-->
  323. <!-- :readonly="!formEnabled.baseApplyForm.baseFormEnabled"-->
  324. <!-- remote-url="/open/zdzh/list/design_paper"-->
  325. <!-- :on-remote-response="'data'"-->
  326. <!-- />-->
  327. <!-- <field-select-->
  328. <!-- v-if="applicationDetail.tHouseApplyProposedSituation.designPaper == '2'"-->
  329. <!-- v-model="applicationDetail.tHouseApplyProposedSituation.houseTypeId"-->
  330. <!-- label="户型图"-->
  331. <!-- value-key="name"-->
  332. <!-- data-key="id"-->
  333. <!-- placeholder="选择户型图"-->
  334. <!-- :rules="[{ required: true }]"-->
  335. <!-- required-->
  336. <!-- :readonly="!formEnabled.baseApplyForm.baseFormEnabled"-->
  337. <!-- :remote-url="getHouseList"-->
  338. <!-- :on-remote-response="'rows'"-->
  339. <!-- />-->
  340. <field-select
  341. v-model="applicationDetail.nsqzjddldm"
  342. label="土地类型"
  343. value-key="dictLabel"
  344. data-key="dictValue"
  345. placeholder="选择土地类型"
  346. :rules="[{ required: true }]"
  347. required
  348. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  349. remote-url="/open/zdzh/list/geographic_type"
  350. :on-remote-response="'data'"
  351. />
  352. <field-select
  353. v-model="applicationDetail.sjtz"
  354. label="设计图纸"
  355. value-key="dictLabel"
  356. data-key="dictValue"
  357. placeholder="选择设计图纸"
  358. :rules="[{ required: true }]"
  359. required
  360. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  361. remote-url="/open/zdzh/list/design_paper"
  362. :on-remote-response="'data'"
  363. />
  364. <template v-if="applicationDetail.sjtz ==='2'">
  365. <van-field
  366. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  367. clickable
  368. required
  369. :rules="[{ required: applicationDetail.sjtz == '2' , message:'请选择选通用图' }]"
  370. label="选通用图"
  371. placeholder="选通用图"
  372. v-model="tytzName"
  373. @click="showTyt = true"
  374. input-align="right"
  375. right-icon="arrow-down"
  376. label-width="auto"
  377. />
  378. <van-popup v-model="showTyt" position="bottom">
  379. <van-picker
  380. show-toolbar
  381. :columns="tytzList"
  382. value-key="name"
  383. @confirm="onConfirmTytz"
  384. @cancel="showTyt = false"
  385. />
  386. </van-popup>
  387. </template>
  388. <!-- <template>-->
  389. <!-- <van-field v-if="applicationDetail.tHouseApplyProposedSituation.geographicType == '10'" :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.tHouseApplyProposedSituation.constructionLandArea" label="建设用地面积" placeholder="建设用地面积" input-align="right" type="number"><template #right-icon>㎡</template></van-field>-->
  390. <!-- <van-field v-else-if="applicationDetail.tHouseApplyProposedSituation.geographicType == '20'" :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.tHouseApplyProposedSituation.unusedLandArea" label="未利用地面积" placeholder="未利用地面积" input-align="right" type="number"><template #right-icon>㎡</template></van-field>-->
  391. <!-- <van-field v-else-if="applicationDetail.tHouseApplyProposedSituation.geographicType && applicationDetail.tHouseApplyProposedSituation.geographicType != '10' && applicationDetail.tHouseApplyProposedSituation.geographicType != '20'" :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.tHouseApplyProposedSituation.agriculturalLandArea" label="农用地面积" placeholder="农用地面积" input-align="right" type="number"><template #right-icon>㎡</template></van-field>-->
  392. <!-- </template>-->
  393. </div>
  394. <!-- <div class="mapBox">-->
  395. </div>
  396. <div v-if="applicationDetail">
  397. <p class="main_title">申请理由</p>
  398. <div class="main_box">
  399. <van-field
  400. rows="3"
  401. autosize
  402. type="textarea"
  403. placeholder="申请理由"
  404. input-align="left"
  405. v-model="applicationDetail.sqly"
  406. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  407. :rules="[{ required: true }]" required
  408. />
  409. <van-row>
  410. <van-col span="12">
  411. <van-field :rules="[{ required: true }]" required
  412. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  413. v-model="applicationDetail.sqhhzxm" label="申请人" placeholder="申请人" input-align="left"
  414. label-width="auto"/>
  415. </van-col>
  416. <van-col span="12">
  417. <field-date-picker
  418. v-model="applicationDetail.applyTime"
  419. label=""
  420. placeholder="选择日期"
  421. :rules="[{ required: true }]"
  422. formatter="yyyy-MM-dd"
  423. required
  424. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  425. />
  426. </van-col>
  427. </van-row>
  428. </div>
  429. </div>
  430. </template>
  431. <!-- 申请::现场踏勘 -->
  432. <template v-if="formVisible.baseApplyForm.townFormVisible">
  433. <div class="main_box examine_box">
  434. <van-row type="flex" justify="space-between" align="center">
  435. <van-col span="5">宅基地<br/>坐落平<br/>面位置图</van-col>
  436. <van-col span="19">
  437. <MultiImageUploadComp :value="applicationDetail.ydjfsp.zjdzlpmwzt"
  438. :uploadDisabled="!wztUpdate"
  439. :tableId="applicationDetail.ydjfsp.id"
  440. :tableName="spTableName"
  441. :fileType="0"
  442. :attach="true"
  443. @fileChanged="fileUpdate"/>
  444. <van-row>
  445. <van-col span="12">
  446. <van-field :rules="[{ required: true }]" required
  447. :readonly="!formEnabled.baseApplyForm.townFormEnabled"
  448. v-model="applicationDetail.ydjfsp.zckcryxm" label="踏勘人" placeholder="现场踏勘人员"
  449. input-align="left" label-width="auto"/>
  450. </van-col>
  451. <van-col span="12">
  452. <field-date-picker
  453. v-model="applicationDetail.ydjfsp.zckcsj"
  454. label=""
  455. placeholder="选择日期"
  456. :rules="[{ required: true }]"
  457. formatter="yyyy-MM-dd"
  458. required
  459. :readonly="!formEnabled.baseApplyForm.townFormEnabled"
  460. />
  461. </van-col>
  462. </van-row>
  463. <van-row>
  464. <van-col span="12">
  465. <van-field :rules="[{ required: true }]" required
  466. :readonly="!formEnabled.baseApplyForm.townFormEnabled"
  467. v-model="applicationDetail.ydjfsp.zjdzlpmwztztr" label="制图人" placeholder="制图人"
  468. input-align="left" label-width="auto"/>
  469. </van-col>
  470. <van-col span="12">
  471. <field-date-picker
  472. v-model="applicationDetail.ydjfsp.zjdzlpmwzxctksj"
  473. label=""
  474. placeholder="选择日期"
  475. :rules="[{ required: true }]"
  476. formatter="yyyy-MM-dd"
  477. required
  478. :readonly="!formEnabled.baseApplyForm.townFormEnabled"
  479. />
  480. </van-col>
  481. </van-row>
  482. </van-col>
  483. </van-row>
  484. <van-row type="flex" justify="space-between" align="center">
  485. <van-col span="5">备注</van-col>
  486. <van-col span="19">
  487. <van-field
  488. autosize
  489. placeholder="备注"
  490. input-align="left"
  491. v-model="applicationDetail.bz"
  492. :readonly="!formEnabled.baseApplyForm.townFormEnabled"
  493. />
  494. </van-col>
  495. </van-row>
  496. </div>
  497. </template>
  498. <!-- 申请::村级审核 -->
  499. <template v-if="formVisible.baseApplyForm.villageFormVisible">
  500. <div class="main_box examine_box">
  501. <van-row type="flex" justify="space-between" align="center">
  502. <van-col span="5">村集体<br/>经济组<br/>织或村<br/>民委员<br/>会意见
  503. </van-col>
  504. <van-col span="19">
  505. <van-field required :readonly="!formEnabled.baseApplyForm.villageFormEnabled"
  506. v-model="applicationDetail.cjxzscyj" rows="2" autosize type="textarea" placeholder="审批意见"
  507. :rules="[{ required: true }]"/>
  508. <van-cell title="负责人:" :rules="[{ required: true }]">
  509. <van-image
  510. width="100"
  511. height="50"
  512. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  513. v-if="applicationDetail.cjxzscr !='' && applicationDetail.cjxzscr !=null
  514. && applicationDetail.cjxzscr.endsWith('png')"
  515. :src="$store.getters.baseRoutingUrl+applicationDetail.cjxzscr"
  516. ></van-image>
  517. <div
  518. v-if="applicationDetail.cjxzscr !='' && applicationDetail.cjxzscr !=null && !applicationDetail.cjxzscr.endsWith('png')">
  519. {{applicationDetail.cjxzscr}}
  520. </div>
  521. </van-cell>
  522. <!-- <van-cell title="现场照片:">-->
  523. <!-- <house-location-plan-comp ref="pictureUploadApplyingTHouseApproveVillage" :uploadDisabled="formEnabled.baseApplyForm.villageFormEnabled" :jsonData="uploadImgVillage.fileList" :proposer-id="uploadImgVillage.proposerId" tableName="t_homeapply_ydjfsp"-->
  524. <!-- @uploadFileChanged="(x) => {this.uploadImgVillage.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImgVillage.removeFileList = x;}"-->
  525. <!-- />-->
  526. <!-- </van-cell>-->
  527. <!-- <van-cell title="定位当前位置:" v-if="formEnabled.baseApplyForm.villageFormEnabled">-->
  528. <!-- <van-button color="#7AC943" v-model="applicationDetail.tHouseApproveVillageOptions.theGeom" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommit('tHouseApproveVillage')">定位当前位置</van-button>-->
  529. <!-- </van-cell>-->
  530. <!-- <van-cell title="查看现场位置:" v-if="!formEnabled.baseApplyForm.villageFormEnabled">-->
  531. <!-- <van-button color="#7AC943" v-if="applicationDetail.tHouseApproveVillageOptions.theGeom !='' || applicationDetail.tHouseApproveVillageOptions.theGeom !=null" v-model="applicationDetail.tHouseApproveVillageOptions.theGeom" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommitLook('tHouseApproveVillage')">查看现场位置</van-button>-->
  532. <!-- </van-cell>-->
  533. <field-date-picker
  534. v-model="applicationDetail.cjxzscsj"
  535. label="审批日期"
  536. placeholder="选择日期"
  537. :rules="[{ required: true }]"
  538. formatter="yyyy-MM-dd"
  539. required
  540. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  541. />
  542. </van-col>
  543. </van-row>
  544. </div>
  545. </template>
  546. <template v-if="formVisible.baseApplyForm.nature_resourceFormVisible">
  547. <div class="main_box examine_box">
  548. <van-row type="flex" justify="space-between" align="center">
  549. <van-col span="5">{{applicationDetail.ydjfsp.zrzybmmc !=
  550. null?applicationDetail.ydjfsp.zrzybmmc:'自然资源部'}}意见
  551. </van-col>
  552. <van-col span="19">
  553. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveNatureOptions.landArea" label="用地面积" placeholder="请输入" input-align="right" :rules="[{ required: true }]"><template #right-icon>㎡</template></van-field>-->
  554. <!-- <field-select-->
  555. <!-- v-model="applicationDetail.tHouseApproveNatureOptions.rightsType"-->
  556. <!-- label="土地权属"-->
  557. <!-- value-key="dictLabel"-->
  558. <!-- data-key="dictValue"-->
  559. <!-- placeholder="请选择土地权属"-->
  560. <!-- :rules="[{ required: true }]"-->
  561. <!-- required-->
  562. <!-- :readonly="!formEnabled.baseApplyForm.townFormEnabled"-->
  563. <!-- remote-url="/open/zdzh/list/rights_type"-->
  564. <!-- :on-remote-response="'data'"-->
  565. <!-- />-->
  566. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveNatureOptions.east" label="东至" placeholder="请输入" input-align="right" :rules="[{ required: true }]"/>-->
  567. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveNatureOptions.west" label="西至" placeholder="请输入" input-align="right" :rules="[{ required: true }]"/>-->
  568. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveNatureOptions.south" label="南至" placeholder="请输入" input-align="right" :rules="[{ required: true }]"/>-->
  569. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveNatureOptions.north" label="北至" placeholder="请输入" input-align="right" :rules="[{ required: true }]"/>-->
  570. <!-- <div class="mapBox">-->
  571. <!-- <common-map ref="pointDarwNatureMap" style="height:200px;"-->
  572. <!-- :allowDraw="formEnabled.baseApplyForm.townFormEnabled"-->
  573. <!-- @drawReseted="onNatureMapDrawReseted"-->
  574. <!-- @drawFinished="onMapDrawFinished"-->
  575. <!-- >-->
  576. <!-- </common-map>-->
  577. <!-- </div>-->
  578. <van-field required :readonly="!formEnabled.baseApplyForm.nature_resourceFormEnabled"
  579. v-model="applicationDetail.ydjfsp.zrzybmscyj" rows="2" autosize type="textarea"
  580. placeholder="审查意见" :rules="[{ required: true }]"/>
  581. <van-cell title="负责人:" :rules="[{ required: true }]">
  582. <van-image
  583. width="100"
  584. height="50"
  585. :readonly="!formEnabled.baseApplyForm.nature_resourceFormEnabled"
  586. v-if="applicationDetail.ydjfsp.zrzybmscrxm !='' && applicationDetail.ydjfsp.zrzybmscrxm !=null
  587. && applicationDetail.ydjfsp.zrzybmscrxm.endsWith('png')"
  588. :src="$store.getters.baseRoutingUrl+applicationDetail.ydjfsp.zrzybmscrxm"
  589. ></van-image>
  590. <div v-if="applicationDetail.ydjfsp.zrzybmscrxm !='' && applicationDetail.ydjfsp.zrzybmscrxm !=null
  591. && !applicationDetail.ydjfsp.zrzybmscrxm.endsWith('png')">
  592. {{applicationDetail.ydjfsp.zrzybmscrxm}}
  593. </div>
  594. </van-cell>
  595. <!-- <van-cell title="现场照片:">-->
  596. <!-- <house-location-plan-comp ref="pictureUploadApplyingTHouseApproveNature" :uploadDisabled="!formEnabled.baseApplyForm.nature_resourceFormEnabled" :jsonData="uploadImgNature.fileList" :proposer-id="uploadImgNature.proposerId" tableName="t_house_approve_nature_options"-->
  597. <!-- @uploadFileChanged="(x) => {this.uploadImgNature.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImgNature.removeFileList = x;}"-->
  598. <!-- />-->
  599. <!-- </van-cell>-->
  600. <!-- <van-cell title="定位当前位置:" v-if="formEnabled.baseApplyForm.nature_resourceFormEnabled">-->
  601. <!-- <van-button color="#7AC943" v-model="applicationDetail.tHouseApproveNatureOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommit('tHouseApproveNature')">定位当前位置</van-button>-->
  602. <!-- </van-cell>-->
  603. <!-- <van-cell title="查看现场位置:" v-if="!formEnabled.baseApplyForm.nature_resourceFormEnabled">-->
  604. <!-- <van-button color="#7AC943" v-if="applicationDetail.tHouseApproveNatureOptions.theGeomPoint !='' || applicationDetail.tHouseApproveNatureOptions.theGeomPoint !=null" v-model="applicationDetail.tHouseApproveNatureOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommitLook('tHouseApproveNature')">查看现场位置</van-button>-->
  605. <!-- </van-cell>-->
  606. <field-date-picker
  607. v-model="applicationDetail.ydjfsp.zrzybmscsj"
  608. label="审批日期"
  609. placeholder="选择日期"
  610. :rules="[{ required: true }]"
  611. formatter="yyyy-MM-dd"
  612. required
  613. :readonly="!formEnabled.baseApplyForm.nature_resourceFormEnabled"
  614. />
  615. </van-col>
  616. </van-row>
  617. </div>
  618. </template>
  619. <!-- 申请::住建部门 -->
  620. <template v-if="formVisible.baseApplyForm.buildingFormVisible">
  621. <div class="main_box examine_box">
  622. <van-row type="flex" justify="space-between" align="center">
  623. <van-col span="5">{{applicationDetail.ydjfsp.zfcxjsbmmc !=
  624. null?applicationDetail.ydjfsp.zfcxjsbmmc:'住建部'}}意见
  625. </van-col>
  626. <van-col span="19">
  627. <!-- <field-select-->
  628. <!-- v-model="applicationDetail.tHouseApproveOtherOptions.buildingType"-->
  629. <!-- label="建筑类型"-->
  630. <!-- value-key="dictLabel"-->
  631. <!-- data-key="dictValue"-->
  632. <!-- placeholder="请选择建筑类型"-->
  633. <!-- :rules="[{ required: true }]"-->
  634. <!-- required-->
  635. <!-- :readonly="!formEnabled.baseApplyForm.townFormEnabled"-->
  636. <!-- remote-url="/open/zdzh/list/building_type"-->
  637. <!-- :on-remote-response="'data'"-->
  638. <!-- />-->
  639. <!-- <field-select-->
  640. <!-- v-model="applicationDetail.tHouseApproveOtherOptions.designPaper"-->
  641. <!-- label="图纸类型"-->
  642. <!-- value-key="dictLabel"-->
  643. <!-- data-key="dictValue"-->
  644. <!-- placeholder="请选择图纸类型"-->
  645. <!-- :rules="[{ required: true }]"-->
  646. <!-- required-->
  647. <!-- :readonly="!formEnabled.baseApplyForm.townFormEnabled"-->
  648. <!-- remote-url="/open/zdzh/list/design_paper"-->
  649. <!-- :on-remote-response="'data'"-->
  650. <!-- />-->
  651. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveOtherOptions.buildingLandArea" label="建筑占地面积" placeholder="请输入" input-align="right" type="number" :rules="[{ required: true }]"><template #right-icon>㎡</template></van-field>-->
  652. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveOtherOptions.buildingArea" label="建筑面积" placeholder="请输入" input-align="right" type="number" :rules="[{ required: true }]"><template #right-icon>㎡</template></van-field>-->
  653. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveOtherOptions.buildingFloors" label="建筑层数" placeholder="请输入" input-align="right" type="digit" :rules="[{ required: true }]"><template #right-icon>层</template></van-field>-->
  654. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveOtherOptions.buildingHight" label="建筑高度" placeholder="请输入" input-align="right" type="number" :rules="[{ required: true }]"><template #right-icon>m</template></van-field>-->
  655. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveOtherOptions.east" label="东至" placeholder="请输入" input-align="right" :rules="[{ required: true }]"/>-->
  656. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveOtherOptions.west" label="西至" placeholder="请输入" input-align="right" :rules="[{ required: true }]"/>-->
  657. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveOtherOptions.south" label="南至" placeholder="请输入" input-align="right" :rules="[{ required: true }]"/>-->
  658. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveOtherOptions.north" label="北至" placeholder="请输入" input-align="right" :rules="[{ required: true }]"/>-->
  659. <van-field required :readonly="!formEnabled.baseApplyForm.buildingFormEnabled"
  660. v-model="applicationDetail.ydjfsp.zfcxjsbmscyj" rows="2" autosize type="textarea"
  661. placeholder="审批意见" :rules="[{ required: true }]"/>
  662. <van-cell title="负责人:" :rules="[{ required: true }]">
  663. <van-image
  664. width="100"
  665. height="50"
  666. :readonly="!formEnabled.baseApplyForm.buildingFormEnabled"
  667. v-if="applicationDetail.ydjfsp.zfcxjsbmscrxm !='' && applicationDetail.ydjfsp.zfcxjsbmscrxm !=null
  668. && applicationDetail.ydjfsp.zfcxjsbmscrxm.endsWith('png')"
  669. :src="$store.getters.baseRoutingUrl+applicationDetail.ydjfsp.zfcxjsbmscrxm"
  670. ></van-image>
  671. <div v-if="applicationDetail.ydjfsp.zfcxjsbmscrxm !='' && applicationDetail.ydjfsp.zfcxjsbmscrxm !=null
  672. && !applicationDetail.ydjfsp.zfcxjsbmscrxm.endsWith('png')">
  673. {{applicationDetail.ydjfsp.zfcxjsbmscrxm}}
  674. </div>
  675. </van-cell>
  676. <!-- <van-cell title="现场照片:">-->
  677. <!-- <house-location-plan-comp ref="pictureUploadApplyingTHouseApproveOther" :uploadDisabled="!formEnabled.baseApplyForm.buildingFormEnabled" :jsonData="uploadImgOther.fileList" :proposer-id="uploadImgOther.proposerId" tableName="t_house_approve_other_options"-->
  678. <!-- @uploadFileChanged="(x) => {this.uploadImgOther.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImgOther.removeFileList = x;}"-->
  679. <!-- />-->
  680. <!-- </van-cell>-->
  681. <!-- <van-cell title="定位当前位置:" v-if="formEnabled.baseApplyForm.buildingFormEnabled">-->
  682. <!-- <van-button color="#7AC943" v-model="applicationDetail.tHouseApproveOtherOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommit('tHouseApproveOther')">定位当前位置</van-button>-->
  683. <!-- </van-cell>-->
  684. <!-- <van-cell title="查看现场位置:" v-if="!formEnabled.baseApplyForm.buildingFormEnabled">-->
  685. <!-- <van-button color="#7AC943" v-if="applicationDetail.tHouseApproveOtherOptions.theGeomPoint !='' || applicationDetail.tHouseApproveOtherOptions.theGeomPoint !=null" v-model="applicationDetail.tHouseApproveOtherOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommitLook('tHouseApproveOther')">查看现场位置</van-button>-->
  686. <!-- </van-cell>-->
  687. <field-date-picker
  688. v-model="applicationDetail.ydjfsp.zfcxjsbmscsj"
  689. label="审批日期"
  690. placeholder="选择日期"
  691. :rules="[{ required: true }]"
  692. formatter="yyyy-MM-dd"
  693. required
  694. :readonly="!formEnabled.baseApplyForm.buildingFormEnabled"
  695. />
  696. </van-col>
  697. </van-row>
  698. </div>
  699. </template>
  700. <!-- 申请::农业部门 -->
  701. <template v-if="formVisible.baseApplyForm.agricultureFormVisible">
  702. <div class="main_box examine_box">
  703. <van-row type="flex" justify="space-between" align="center">
  704. <van-col span="5">{{applicationDetail.ydjfsp.nyncbmmc !=
  705. null?applicationDetail.ydjfsp.nyncbmmc:'农业农村部'}}意见
  706. </van-col>
  707. <van-col span="19">
  708. <!-- <field-radio-->
  709. <!-- v-model="applicationDetail.tHouseApproveAgricultureOptions.isMembership"-->
  710. <!-- label="成员资格审查"-->
  711. <!-- value-key="dictLabel"-->
  712. <!-- data-key="dictValue"-->
  713. <!-- :rules="[{ required: true }]"-->
  714. <!-- required-->
  715. <!-- :readonly="!formEnabled.baseApplyForm.townFormEnabled"-->
  716. <!-- :columns="[{dictLabel: '通过', dictValue: '1'}, {dictLabel: '不通过', dictValue: '2'}]"-->
  717. <!-- />-->
  718. <!-- <field-radio-->
  719. <!-- v-model="applicationDetail.tHouseApproveAgricultureOptions.isOnehouse"-->
  720. <!-- label="一户一宅情况"-->
  721. <!-- value-key="dictLabel"-->
  722. <!-- data-key="dictValue"-->
  723. <!-- :rules="[{ required: true }]"-->
  724. <!-- required-->
  725. <!-- :readonly="!formEnabled.baseApplyForm.townFormEnabled"-->
  726. <!-- :columns="[{dictLabel: '符合', dictValue: '1'}, {dictLabel: '不符合', dictValue: '2'}]"-->
  727. <!-- />-->
  728. <!-- <field-radio-->
  729. <!-- v-model="applicationDetail.tHouseApproveAgricultureOptions.isReviewmaterials"-->
  730. <!-- label="村委审查资料"-->
  731. <!-- value-key="dictLabel"-->
  732. <!-- data-key="dictValue"-->
  733. <!-- :rules="[{ required: true }]"-->
  734. <!-- required-->
  735. <!-- :readonly="!formEnabled.baseApplyForm.townFormEnabled"-->
  736. <!-- :columns="[{dictLabel: '齐全', dictValue: '1'}, {dictLabel: '不齐全', dictValue: '2'}]"-->
  737. <!-- />-->
  738. <van-field required :readonly="!formEnabled.baseApplyForm.agricultureFormEnabled" rows="2"
  739. v-model="applicationDetail.ydjfsp.nyncbmscyj" autosize type="textarea" placeholder="审查意见"
  740. :rules="[{ required: true }]"/>
  741. <van-cell title="负责人:" :rules="[{ required: true }]">
  742. <van-image
  743. width="100"
  744. height="50"
  745. :readonly="!formEnabled.baseApplyForm.agricultureFormEnabled"
  746. v-if="applicationDetail.ydjfsp.nyncbmscrxm !='' && applicationDetail.ydjfsp.nyncbmscrxm !=null
  747. && applicationDetail.ydjfsp.nyncbmscrxm.endsWith('png')"
  748. :src="$store.getters.baseRoutingUrl+applicationDetail.ydjfsp.nyncbmscrxm"
  749. ></van-image>
  750. <div v-if="applicationDetail.ydjfsp.nyncbmscrxm !='' && applicationDetail.ydjfsp.nyncbmscrxm !=null
  751. && !applicationDetail.ydjfsp.nyncbmscrxm.endsWith('png')">
  752. {{applicationDetail.ydjfsp.nyncbmscrxm}}
  753. </div>
  754. </van-cell>
  755. <!-- <van-cell title="现场照片:">-->
  756. <!-- <house-location-plan-comp ref="pictureUploadApplyingTHouseApproveAgriculture" :uploadDisabled="!formEnabled.baseApplyForm.agricultureFormEnabled" :jsonData="uploadImgAgriculture.fileList" :proposer-id="uploadImgAgriculture.proposerId" tableName="t_house_approve_agriculture_options"-->
  757. <!-- @uploadFileChanged="(x) => {this.uploadImgAgriculture.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImgAgriculture.removeFileList = x;}"-->
  758. <!-- />-->
  759. <!-- </van-cell>-->
  760. <!-- <van-cell title="定位当前位置:" v-if="formEnabled.baseApplyForm.agricultureFormEnabled">-->
  761. <!-- <van-button color="#7AC943" v-model="applicationDetail.tHouseApproveAgricultureOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommit('tHouseApproveAgriculture')">定位当前位置</van-button>-->
  762. <!-- </van-cell>-->
  763. <!-- <van-cell title="查看现场位置:" v-if="!formEnabled.baseApplyForm.agricultureFormEnabled">-->
  764. <!-- <van-button color="#7AC943" v-if="applicationDetail.tHouseApproveAgricultureOptions.theGeomPoint !='' || applicationDetail.tHouseApproveAgricultureOptions.theGeomPoint !=null" v-model="applicationDetail.tHouseApproveAgricultureOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommitLook('tHouseApproveAgriculture')">查看现场位置</van-button>-->
  765. <!-- </van-cell>-->
  766. <field-date-picker
  767. v-model="applicationDetail.ydjfsp.nyncbmscsj"
  768. label="审批日期"
  769. placeholder="选择日期"
  770. :rules="[{ required: true }]"
  771. formatter="yyyy-MM-dd"
  772. required
  773. :readonly="!formEnabled.baseApplyForm.agricultureFormEnabled"
  774. />
  775. </van-col>
  776. </van-row>
  777. </div>
  778. </template>
  779. <!-- 申请::镇政府 -->
  780. <template v-if="formVisible.baseApplyForm.townFormVisible">
  781. <div class="main_box examine_box">
  782. <van-row type="flex" justify="space-between" align="center">
  783. <van-col span="5">乡镇<br/>政府<br/>审核<br/>批准<br/>意见</van-col>
  784. <van-col span="19">
  785. <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled"
  786. v-model="applicationDetail.ydjfsp.xzzfshpzyj" rows="2" autosize type="textarea"
  787. placeholder="审批意见" :rules="[{ required: true }]"/>
  788. <van-cell title="负责人:" :rules="[{ required: true }]">
  789. <van-image
  790. width="100"
  791. height="50"
  792. :readonly="!formEnabled.baseApplyForm.townFormEnabled"
  793. v-if="applicationDetail.ydjfsp.xzzfshpzrxm !='' && applicationDetail.ydjfsp.xzzfshpzrxm !=null
  794. && applicationDetail.ydjfsp.xzzfshpzrxm.endsWith('png')"
  795. :src="$store.getters.baseRoutingUrl+applicationDetail.ydjfsp.xzzfshpzrxm"
  796. ></van-image>
  797. <div v-if="applicationDetail.ydjfsp.xzzfshpzrxm !='' && applicationDetail.ydjfsp.xzzfshpzrxm !=null
  798. && !applicationDetail.ydjfsp.xzzfshpzrxm.endsWith('png')">
  799. {{applicationDetail.ydjfsp.xzzfshpzrxm}}
  800. </div>
  801. </van-cell>
  802. <!-- <van-cell title="现场照片:">-->
  803. <!-- <house-location-plan-comp ref="pictureUploadApplyingTHouseApproveTown" :uploadDisabled="!formEnabled.baseApplyForm.townFormEnabled" :jsonData="uploadImgTown.fileList" :proposer-id="uploadImgTown.proposerId" tableName="t_house_approve_town_options"-->
  804. <!-- @uploadFileChanged="(x) => {this.uploadImgTown.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImgTown.removeFileList = x;}"-->
  805. <!-- />-->
  806. <!-- </van-cell>-->
  807. <!-- <van-cell title="定位当前位置:" v-if="formEnabled.baseApplyForm.townFormEnabled">-->
  808. <!-- <van-button color="#7AC943" v-model="applicationDetail.tHouseApproveTownOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommit('tHouseApproveTown')">定位当前位置</van-button>-->
  809. <!-- </van-cell>-->
  810. <!-- <van-cell title="查看现场位置:" v-if="!formEnabled.baseApplyForm.townFormEnabled">-->
  811. <!-- <van-button color="#7AC943" v-if="applicationDetail.tHouseApproveTownOptions.theGeomPoint !='' || applicationDetail.tHouseApproveTownOptions.theGeomPoint !=null" v-model="applicationDetail.tHouseApproveTownOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommitLook('tHouseApproveTown')">查看现场位置</van-button>-->
  812. <!-- </van-cell>-->
  813. <field-date-picker
  814. v-model="applicationDetail.ydjfsp.xzzfshpzsj"
  815. label="审批日期"
  816. placeholder="选择日期"
  817. :rules="[{ required: true }]"
  818. formatter="yyyy-MM-dd"
  819. required
  820. :readonly="!formEnabled.baseApplyForm.townFormEnabled"
  821. />
  822. </van-col>
  823. </van-row>
  824. </div>
  825. </template>
  826. </div>
  827. </template>
  828. <template v-if="selectedTabName == 1 && formVisible.landscopeVisible"> <!-- 开工申请 -->
  829. <div :class="active == 1 ? '' : 'noModify'" v-if="formVisible.landscopeVisible">
  830. <p class="topTit">农村宅基地和建房(规划许可)审批表</p>
  831. <div class="main_box action-box">
  832. <van-cell>
  833. <template #right-icon>
  834. <field-date-picker
  835. v-model="applicationDetail.ydjfkg.kgrq"
  836. label="计划开工时间"
  837. placeholder="选择日期"
  838. :rules="[{ required: true }]"
  839. formatter="yyyy-MM-dd"
  840. required
  841. :readonly="!formEnabled.landscopeForm.baseFormEnabled"
  842. />
  843. </template>
  844. </van-cell>
  845. <van-cell>
  846. <template #right-icon>
  847. <field-date-picker
  848. v-model="applicationDetail.ydjfkg.jgrq"
  849. label="计划竣工时间"
  850. placeholder="选择日期"
  851. :rules="[{ required: true }]"
  852. formatter="yyyy-MM-dd"
  853. required
  854. :readonly="!formEnabled.landscopeForm.baseFormEnabled"
  855. />
  856. </template>
  857. </van-cell>
  858. </div>
  859. <template v-if="formVisible.baseApplyForm.baseFormVisible"> <!-- 申请 基本信息 -->
  860. <div>
  861. <p class="main_title">申请户主信息</p>
  862. <div class="main_box">
  863. <van-field :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.sqhhzxm"
  864. label="姓名" placeholder="姓名" input-align="right" required :rules="[{ required: true }]"/>
  865. <field-select
  866. v-model="applicationDetail.sqhhzxb"
  867. label="性别"
  868. value-key="dictLabel"
  869. data-key="dictValue"
  870. placeholder="选择性别"
  871. :rules="[{ required: true }]"
  872. required
  873. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  874. remote-url="/open/zdzh/list/sys_user_sex"
  875. :on-remote-response="'data'"
  876. />
  877. <van-field required :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  878. v-model="applicationDetail.sqhhznl" label="年龄" placeholder="年龄" input-align="right"
  879. type="digit" :rules="[{ required: true }]"/>
  880. <van-field required :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  881. v-model="applicationDetail.sqhhzlxdh" label="联系电话" placeholder="联系电话" input-align="right"
  882. type="digit" :rules="[{pattern: /(^\d{7}(\d{4})?$)/}]"/>
  883. <van-field required :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  884. v-model="applicationDetail.sqhhzsfzh" label="身份证号" placeholder="身份证号" input-align="right"
  885. :rules="[{pattern: /^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/}]"
  886. @input="updateUserInfo"/>
  887. <van-field required :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  888. v-model="applicationDetail.sqhhzhkszd" label="户口所在地" placeholder="户口所在地"
  889. input-align="right" :rules="[{ required: true }]"/>
  890. <van-field required :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  891. v-model="applicationDetail.sqhjtzz" label="家庭住址" placeholder="家庭住址" input-align="right"
  892. :rules="[{ required: true }]"/>
  893. </div>
  894. </div>
  895. <div v-if="applicationDetail.sqrjtcyList">
  896. <p class="main_title">家庭成员信息</p>
  897. <!-- <van-collapse v-model="activeNames" v-if="!formEnabled.baseApplyForm.baseFormEnabled">-->
  898. <!-- <van-collapse-item class="collapse" v-for="(item , index) in applicationDetail.sqrjtcyList" :key="index" :name="index+1">-->
  899. <!-- <template #title>-->
  900. <!-- <van-row>-->
  901. <!-- <van-col span="8">{{item.xm}}</van-col>-->
  902. <!-- <van-col span="8">{{item.nl}}</van-col>-->
  903. <!-- <van-col span="8">{{item.yhzgx}}</van-col>-->
  904. <!-- </van-row>-->
  905. <!-- </template>-->
  906. <!-- <van-field readonly v-model="item.xm" label="姓名" placeholder="姓名" input-align="right"/>-->
  907. <!-- <van-field readonly v-model="item.nl" label="年龄" placeholder="年龄" input-align="right"/>-->
  908. <!-- <field-select-->
  909. <!-- v-model="item.yhzgx"-->
  910. <!-- label="与户主关系"-->
  911. <!-- value-key="dictLabel"-->
  912. <!-- data-key="dictValue"-->
  913. <!-- placeholder="选择与户主关系"-->
  914. <!-- :rules="[{ required: true }]"-->
  915. <!-- required-->
  916. <!-- :readonly="!formEnabled.baseApplyForm.baseFormEnabled"-->
  917. <!-- remote-url="/open/zdzh/list/family_status"-->
  918. <!-- :on-remote-response="'data'"-->
  919. <!-- />-->
  920. <!-- <van-field readonly v-model="item.sfzh" label="身份证号" placeholder="身份证号" input-align="right"/>-->
  921. <!-- <van-field readonly v-model="item.hkszd" label="户口所在地" placeholder="户口所在地" input-align="right"/>-->
  922. <!-- </van-collapse-item>-->
  923. <!-- </van-collapse>-->
  924. <div>
  925. <van-tabs v-if="applicationDetail.sqrjtcyList && applicationDetail.sqrjtcyList.length > 0"
  926. v-model="familyMembersActive" ref="memberTabs">
  927. <van-tab :title="(index + 1) + '. ' + item.xm"
  928. v-for="(item , index) in applicationDetail.sqrjtcyList" :key="index" swipeable>
  929. <div class="familyList">
  930. <div class="main_box" style="margin-bottom: 20px">
  931. <van-field required v-model="item.xm" label="姓名" placeholder="姓名" input-align="right"
  932. :rules="[{ required: true }]"/>
  933. <van-field required v-model="item.nl" label="年龄" placeholder="年龄" input-align="right"
  934. :rules="[{ required: true }]"/>
  935. <field-select
  936. v-model="item.yhzgx"
  937. label="与户主关系"
  938. value-key="dictLabel"
  939. data-key="dictValue"
  940. placeholder="选择与户主关系"
  941. :rules="[{ required: true }]"
  942. required
  943. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  944. remote-url="/open/zdzh/list/family_status"
  945. :on-remote-response="'data'"
  946. />
  947. <van-field required v-model="item.sfzh" label="身份证号" placeholder="身份证号" input-align="right"
  948. :rules="[{pattern: /^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/}]"
  949. @input="updateMemberInfo(index)"/>
  950. <van-field required v-model="item.hkszd" label="户口所在地" placeholder="户口所在地" input-align="right"
  951. :rules="[{ required: true }]"/>
  952. </div>
  953. </div>
  954. </van-tab>
  955. </van-tabs>
  956. </div>
  957. </div>
  958. <div v-if="applicationDetail.sfyyzjd === 'Y'">
  959. <p class="main_title">现宅基地及农房状况</p>
  960. <div class="main_box">
  961. <van-field
  962. readonly
  963. clickable
  964. name="picker"
  965. v-model="showZjddm"
  966. label="宅基地代码"
  967. @click="showZjdzk = true"
  968. input-align="right"
  969. right-icon="arrow-down"
  970. />
  971. <van-popup v-model="showZjdzk" position="bottom">
  972. <van-picker
  973. show-toolbar
  974. :columns="zjddmColumns"
  975. value-key="value"
  976. @confirm="onConfirmZjdxx"
  977. @cancel="showZjdzk = false"
  978. />
  979. </van-popup>
  980. </div>
  981. <div class="main_box">
  982. <van-field :rules="[{ required: true }]" required
  983. :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.xzjdmj"
  984. label="宅基地面积" placeholder="宅基地面积" input-align="right" type="number">
  985. <template #right-icon>㎡</template>
  986. </van-field>
  987. <!-- <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.tHouseApplyCurrentSituation.landPerArea" label="人均宅基地面积" placeholder="人均宅基地面积" input-align="right" label-width="auto" type="number"><template #right-icon>㎡</template></van-field>-->
  988. <!-- <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.tHouseApplyCurrentSituation.landCertificateNo" label="不动产单元号" placeholder="不动产单元号" input-align="right"/>-->
  989. <van-field :rules="[{ required: true }]" required
  990. :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.xjzmj"
  991. label="建筑面积" placeholder="建筑面积㎡" input-align="right" type="number">
  992. <template #right-icon>㎡</template>
  993. </van-field>
  994. <!-- <van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.tHouseApplyCurrentSituation.buildingPerArea" label="人均建筑面积" placeholder="人均建筑面积" input-align="right" label-width="auto" type="number"><template #right-icon>㎡</template></van-field>-->
  995. <van-field :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.qszsh"
  996. label="权属证书号" placeholder="权属证书号" input-align="right"/>
  997. <field-select
  998. v-model="applicationDetail.xzjdczqk"
  999. label="处置情况"
  1000. value-key="dictLabel"
  1001. data-key="dictValue"
  1002. placeholder="选择宅基地处置情况"
  1003. :rules="[{ required: true }]"
  1004. required
  1005. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  1006. remote-url="/open/zdzh/list/land_isposal"
  1007. :on-remote-response="'data'"
  1008. />
  1009. <template v-if="applicationDetail.sfyyzjd ==='Y'">
  1010. <van-field v-if="applicationDetail.sfyyzjd == '1'" :rules="[{ required: true }]"
  1011. :required="applicationDetail.sfyyzjd ==='Y' && applicationDetail.landIsposal == '1'"
  1012. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  1013. v-model="applicationDetail.tHouseApplyCurrentSituation.reservedArea" label="保留面积"
  1014. placeholder="保留面积" input-align="right" type="number"/>
  1015. <van-field v-else-if="applicationDetail.xzjdczqk == '3'" :rules="[{ required: true }]"
  1016. :required="applicationDetail.sfyyzjd ==='Y' && applicationDetail.xzjdczqk == '3'"
  1017. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  1018. v-model="applicationDetail.xzjdqtqk" label="处置情况" placeholder="处置情况"
  1019. input-align="right"/>
  1020. </template>
  1021. <van-icon v-if="!zjdzdxxDetailedShow" class="zkshStyle" name="arrow-up" @click.native="zkshClick"/>
  1022. <div v-if="zjdzdxxDetailedShow">
  1023. <van-field :readonly="true" v-model="zjdzdxxDetailed.zdszd" label="东至" input-align="right"/>
  1024. <van-field :readonly="true" v-model="zjdzdxxDetailed.zdszx" label="西至" input-align="right"/>
  1025. <van-field :readonly="true" v-model="zjdzdxxDetailed.zdszn" label="南至" input-align="right"/>
  1026. <van-field :readonly="true" v-model="zjdzdxxDetailed.zdszb" label="北至" input-align="right"/>
  1027. <van-icon class="zkshStyle" name="arrow-down" @click.native="zkshClick"/>
  1028. </div>
  1029. </div>
  1030. </div>
  1031. <div v-if="applicationDetail">
  1032. <p class="main_title">拟申请宅基地及建房情况</p>
  1033. <div class="main_box">
  1034. <van-field :rules="[{ required: true }]" required
  1035. :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.nsqzjdmj"
  1036. label="宅基地面积" placeholder="宅基地面积" input-align="right" type="number">
  1037. <template #right-icon>㎡</template>
  1038. </van-field>
  1039. <van-field :rules="[{ required: true }]" required
  1040. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  1041. v-model="applicationDetail.nsqfjzdmj" label="房基占地面积" placeholder="房基占地面积"
  1042. input-align="right" type="number">
  1043. <template #right-icon>㎡</template>
  1044. </van-field>
  1045. <van-field :rules="[{ required: true }]" required
  1046. :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.nsqzjddz"
  1047. label="地址" placeholder="地址" input-align="right"/>
  1048. <van-field :rules="[{ required: true }]" required
  1049. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  1050. v-model="applicationDetail.nsqzjdszd" label="东至" placeholder="东至" input-align="right"/>
  1051. <van-field :rules="[{ required: true }]" required
  1052. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  1053. v-model="applicationDetail.nsqzjdszx" label="西至" placeholder="西至" input-align="right"/>
  1054. <van-field :rules="[{ required: true }]" required
  1055. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  1056. v-model="applicationDetail.nsqzjdszn" label="南至" placeholder="南至" input-align="right"/>
  1057. <van-field :rules="[{ required: true }]" required
  1058. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  1059. v-model="applicationDetail.nsqzjdszb" label="北至" placeholder="北至" input-align="right"/>
  1060. <van-field :rules="[{ required: true }]" required
  1061. :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.zfjzmj"
  1062. label="住房建筑面积" placeholder="住房建筑面积" input-align="right" type="number">
  1063. <template #right-icon>㎡</template>
  1064. </van-field>
  1065. <van-field :rules="[{ required: true }]" required
  1066. :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.jzcs"
  1067. label="建筑层数" placeholder="建筑层数" input-align="right" type="digit">
  1068. <template #right-icon>层</template>
  1069. </van-field>
  1070. <van-field :rules="[{ required: true }]" required
  1071. :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.jzgd"
  1072. label="建筑高度" placeholder="建筑高度" input-align="right" type="number">
  1073. <template #right-icon>m</template>
  1074. </van-field>
  1075. <field-radio
  1076. v-model="applicationDetail.sfzqxlqlryj"
  1077. label="是否征求相邻权利人意见"
  1078. value-key="dictLabel"
  1079. data-key="dictValue"
  1080. :rules="[{ required: true }]"
  1081. required
  1082. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  1083. :columns="[{dictLabel: '是', dictValue: '1'}, {dictLabel: '否', dictValue: '2'}]"
  1084. @change="existHomesteadChange"
  1085. />
  1086. <field-select
  1087. v-model="applicationDetail.jflx"
  1088. label="建房类型"
  1089. value-key="dictLabel"
  1090. data-key="dictValue"
  1091. placeholder="选择建房类型"
  1092. :rules="[{ required: true }]"
  1093. required
  1094. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  1095. remote-url="/open/zdzh/list/building_type"
  1096. :on-remote-response="'data'"
  1097. />
  1098. <field-select
  1099. v-model="applicationDetail.nsqzjddldm"
  1100. label="土地类型"
  1101. value-key="dictLabel"
  1102. data-key="dictValue"
  1103. placeholder="选择土地类型"
  1104. :rules="[{ required: true }]"
  1105. required
  1106. :readonly="!formEnabled.baseApplyForm.baseFormEnabled"
  1107. remote-url="/open/zdzh/list/geographic_type"
  1108. :on-remote-response="'data'"
  1109. />
  1110. <!-- <template>-->
  1111. <!-- <van-field v-if="applicationDetail.tHouseApplyProposedSituation.geographicType == '10'" :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.tHouseApplyProposedSituation.constructionLandArea" label="建设用地面积" placeholder="建设用地面积" input-align="right" type="number"><template #right-icon>㎡</template></van-field>-->
  1112. <!-- <van-field v-else-if="applicationDetail.tHouseApplyProposedSituation.geographicType == '20'" :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.tHouseApplyProposedSituation.unusedLandArea" label="未利用地面积" placeholder="未利用地面积" input-align="right" type="number"><template #right-icon>㎡</template></van-field>-->
  1113. <!-- <van-field v-else-if="applicationDetail.tHouseApplyProposedSituation.geographicType && applicationDetail.tHouseApplyProposedSituation.geographicType != '10' && applicationDetail.tHouseApplyProposedSituation.geographicType != '20'" :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.tHouseApplyProposedSituation.agriculturalLandArea" label="农用地面积" placeholder="农用地面积" input-align="right" type="number"><template #right-icon>㎡</template></van-field>-->
  1114. <!-- </template>-->
  1115. </div>
  1116. </div>
  1117. </template>
  1118. <!-- 申请::村级审核 -->
  1119. <!-- <template v-if="formVisible.baseApplyForm.villageFormVisible">-->
  1120. <!-- <div class="main_box examine_box">-->
  1121. <!-- <van-row type="flex" justify="space-between" align="center">-->
  1122. <!-- <van-col span="5">村集体<br/>经济组<br/>织或村<br/>民委员<br/>会意见-->
  1123. <!-- </van-col>-->
  1124. <!-- <van-col span="19">-->
  1125. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.villageFormEnabled" v-model="applicationDetail.tHouseApproveVillageOptions.villageOption" rows="2" autosize type="textarea" placeholder="审批意见" :rules="[{ required: true }]"/>-->
  1126. <!-- <van-field :rules="[{ required: true }]" v-if="applicationDetail.tHouseApproveVillageOptions.villageLeader !='' && applicationDetail.tHouseApproveVillageOptions.villageLeader !=null && !applicationDetail.tHouseApproveVillageOptions.villageLeader.endsWith('jpeg')"-->
  1127. <!-- required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" @click="formEnabled.baseApplyForm.villageFormEnabled && searchCommit('tHouseApproveVillageOptions.villageLeader')" v-model="applicationDetail.tHouseApproveVillageOptions.villageLeader" label="负责人" placeholder="负责人" input-align="right" label-width="auto"/>-->
  1128. <!-- <van-cell title="负责人:" v-if="applicationDetail.tHouseApproveVillageOptions.villageLeader =='' || applicationDetail.tHouseApproveVillageOptions.villageLeader ==null || applicationDetail.tHouseApproveVillageOptions.villageLeader.endsWith('jpeg')" :rules="[{ required: true }]">-->
  1129. <!-- <van-button :disabled="!formEnabled.baseApplyForm.villageFormEnabled" color="#7AC943" v-if="applicationDetail.tHouseApproveVillageOptions.villageLeader =='' || applicationDetail.tHouseApproveVillageOptions.villageLeader ==null || !applicationDetail.tHouseApproveVillageOptions.villageLeader.endsWith('jpeg')" v-model="applicationDetail.tHouseApproveVillageOptions.villageLeader" type="primary" style="float: right;width:100%;height:40px" @click="searchCommit('tHouseApproveVillageOptions.villageLeader')">签名确认</van-button>-->
  1130. <!-- <van-image-->
  1131. <!-- width="100"-->
  1132. <!-- height="50"-->
  1133. <!-- :readonly="!formEnabled.baseApplyForm.baseFormEnabled"-->
  1134. <!-- v-if="applicationDetail.tHouseApproveVillageOptions.villageLeader !='' && applicationDetail.tHouseApproveVillageOptions.villageLeader !=null-->
  1135. <!-- && applicationDetail.tHouseApproveVillageOptions.villageLeader.endsWith('jpeg')"-->
  1136. <!-- :src="$store.getters.baseRoutingUrl+applicationDetail.tHouseApproveVillageOptions.villageLeader"-->
  1137. <!-- @click="formEnabled.baseApplyForm.villageFormEnabled && searchCommit('tHouseApproveVillageOptions.villageLeader')"-->
  1138. <!-- ></van-image>-->
  1139. <!-- </van-cell>-->
  1140. <!-- <van-cell title="现场照片:">-->
  1141. <!-- <house-location-plan-comp ref="pictureUploadApplyingTHouseApproveVillage" :uploadDisabled="!formEnabled.baseApplyForm.villageFormEnabled" :jsonData="uploadImgVillage.fileList" :proposer-id="uploadImgVillage.proposerId" tableName="t_house_approve_village_options"-->
  1142. <!-- @uploadFileChanged="(x) => {this.uploadImgVillage.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImgVillage.removeFileList = x;}"-->
  1143. <!-- />-->
  1144. <!-- </van-cell>-->
  1145. <!-- <van-cell title="定位当前位置:" v-if="formEnabled.baseApplyForm.villageFormEnabled">-->
  1146. <!-- <van-button color="#7AC943" v-model="applicationDetail.tHouseApproveVillageOptions.theGeom" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommit('tHouseApproveVillage')">定位当前位置</van-button>-->
  1147. <!-- </van-cell>-->
  1148. <!-- <van-cell title="查看现场位置:" v-if="!formEnabled.baseApplyForm.villageFormEnabled">-->
  1149. <!-- <van-button color="#7AC943" v-if="applicationDetail.tHouseApproveVillageOptions.theGeom !='' || applicationDetail.tHouseApproveVillageOptions.theGeom !=null" v-model="applicationDetail.tHouseApproveVillageOptions.theGeom" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommitLook('tHouseApproveVillage')">查看现场位置</van-button>-->
  1150. <!-- </van-cell>-->
  1151. <!-- <field-date-picker-->
  1152. <!-- v-model="applicationDetail.tHouseApproveVillageOptions.villageTime"-->
  1153. <!-- label="审批日期"-->
  1154. <!-- placeholder="选择日期"-->
  1155. <!-- :rules="[{ required: true }]"-->
  1156. <!-- formatter="yyyy-MM-dd"-->
  1157. <!-- required-->
  1158. <!-- :readonly="!formEnabled.baseApplyForm.baseFormEnabled"-->
  1159. <!-- />-->
  1160. <!-- </van-col>-->
  1161. <!-- </van-row>-->
  1162. <!-- </div>-->
  1163. <!-- </template>-->
  1164. <common-map ref="pointDarwMap" style="height:200px;"
  1165. :allowDraw="formVisible.landscopeForm.nature_resourceFormEnabled"
  1166. @drawReseted="onMapDrawReseted"
  1167. @drawFinished="onMapDrawFinished"
  1168. >
  1169. </common-map>
  1170. <!-- &lt;!&ndash; 申请::自然资源部门 &ndash;&gt;-->
  1171. <!-- <template v-if="formVisible.baseApplyForm.nature_resourceFormVisible">-->
  1172. <!-- <div class="main_box examine_box">-->
  1173. <!-- <van-row type="flex" justify="space-between" align="center">-->
  1174. <!-- <van-col span="5">乡镇<br/>自然<br/>资源<br/>部门<br/>意见</van-col>-->
  1175. <!-- <van-col span="19">-->
  1176. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.nature_resourceFormEnabled" v-model="applicationDetail.tHouseApproveNatureOptions.approveOption" rows="2" autosize type="textarea" placeholder="审查意见" :rules="[{ required: true }]"/>-->
  1177. <!-- <van-field v-if="applicationDetail.tHouseApproveNatureOptions.approveLeader !='' && applicationDetail.tHouseApproveNatureOptions.approveLeader !=null && !applicationDetail.tHouseApproveNatureOptions.approveLeader.endsWith('jpeg')"-->
  1178. <!-- required :readonly="!formEnabled.baseApplyForm.nature_resourceFormEnabled" @click="formEnabled.baseApplyForm.nature_resourceFormEnabled && searchCommit(tHouseApproveNatureOptions)" :rules="[{ required: true }]" v-model="applicationDetail.tHouseApproveNatureOptions.approveLeader" label="负责人" placeholder="负责人" input-align="right" label-width="auto"/>-->
  1179. <!-- <van-cell title="负责人:" v-if="applicationDetail.tHouseApproveNatureOptions.approveLeader =='' || applicationDetail.tHouseApproveNatureOptions.approveLeader ==null || applicationDetail.tHouseApproveNatureOptions.approveLeader.endsWith('jpeg')" :rules="[{ required: true }]" >-->
  1180. <!-- <van-button :disabled="!formEnabled.baseApplyForm.nature_resourceFormEnabled" color="#7AC943" v-if="applicationDetail.tHouseApproveNatureOptions.approveLeader =='' || applicationDetail.tHouseApproveNatureOptions.approveLeader ==null || !applicationDetail.tHouseApproveNatureOptions.approveLeader.endsWith('jpeg')" v-model="applicationDetail.tHouseApproveNatureOptions.approveLeader" type="primary" style="float: right;width:100%;height:40px" @click="searchCommit('tHouseApproveNatureOptions.approveLeader')">签名确认</van-button>-->
  1181. <!-- <van-image-->
  1182. <!-- width="100"-->
  1183. <!-- height="50"-->
  1184. <!-- :readonly="!formEnabled.baseApplyForm.nature_resourceFormEnabled"-->
  1185. <!-- v-if="applicationDetail.tHouseApproveNatureOptions.approveLeader !='' && applicationDetail.tHouseApproveNatureOptions.approveLeader !=null-->
  1186. <!-- && applicationDetail.tHouseApproveNatureOptions.approveLeader.endsWith('jpeg')"-->
  1187. <!-- :src="$store.getters.baseRoutingUrl+applicationDetail.tHouseApproveNatureOptions.approveLeader"-->
  1188. <!-- @click="formEnabled.baseApplyForm.nature_resourceFormEnabled && searchCommit('tHouseApproveNatureOptions.approveLeader')"-->
  1189. <!-- ></van-image>-->
  1190. <!-- </van-cell>-->
  1191. <!-- <van-cell title="现场照片:">-->
  1192. <!-- <house-location-plan-comp ref="pictureUploadApplyingTHouseApproveNature" :uploadDisabled="!formEnabled.baseApplyForm.nature_resourceFormEnabled" :jsonData="uploadImgNature.fileList" :proposer-id="uploadImgNature.proposerId" tableName="t_house_approve_nature_options"-->
  1193. <!-- @uploadFileChanged="(x) => {this.uploadImgNature.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImgNature.removeFileList = x;}"-->
  1194. <!-- />-->
  1195. <!-- </van-cell>-->
  1196. <!-- <van-cell title="定位当前位置:" v-if="formEnabled.baseApplyForm.nature_resourceFormEnabled">-->
  1197. <!-- <van-button color="#7AC943" v-model="applicationDetail.tHouseApproveNatureOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommit('tHouseApproveNature')">定位当前位置</van-button>-->
  1198. <!-- </van-cell>-->
  1199. <!-- <van-cell title="查看现场位置:" v-if="!formEnabled.baseApplyForm.nature_resourceFormEnabled">-->
  1200. <!-- <van-button color="#7AC943" v-if="applicationDetail.tHouseApproveNatureOptions.theGeomPoint !='' || applicationDetail.tHouseApproveNatureOptions.theGeomPoint !=null" v-model="applicationDetail.tHouseApproveNatureOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommitLook('tHouseApproveNature')">查看现场位置</van-button>-->
  1201. <!-- </van-cell>-->
  1202. <!-- <field-date-picker-->
  1203. <!-- v-model="applicationDetail.tHouseApproveNatureOptions.approveTime"-->
  1204. <!-- label="审批日期"-->
  1205. <!-- placeholder="选择日期"-->
  1206. <!-- :rules="[{ required: true }]"-->
  1207. <!-- formatter="yyyy-MM-dd"-->
  1208. <!-- required-->
  1209. <!-- :readonly="!formEnabled.baseApplyForm.nature_resourceFormEnabled"-->
  1210. <!-- />-->
  1211. <!-- </van-col>-->
  1212. <!-- </van-row>-->
  1213. <!-- </div>-->
  1214. <!-- </template>-->
  1215. <!-- &lt;!&ndash; 申请::住建部门 &ndash;&gt;-->
  1216. <!-- <template v-if="formVisible.baseApplyForm.buildingFormVisible">-->
  1217. <!-- <div class="main_box examine_box">-->
  1218. <!-- <van-row type="flex" justify="space-between" align="center">-->
  1219. <!-- <van-col span="5">乡镇<br/>住建<br/>部门<br/>意见<br/></van-col>-->
  1220. <!-- <van-col span="19">-->
  1221. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.buildingFormEnabled" v-model="applicationDetail.tHouseApproveOtherOptions.approveOption" rows="2" autosize type="textarea" placeholder="审批意见" :rules="[{ required: true }]"/>-->
  1222. <!-- <van-field :rules="[{ required: true }]" v-if="applicationDetail.tHouseApproveOtherOptions.approveLeader !='' && applicationDetail.tHouseApproveOtherOptions.approveLeader !=null && !applicationDetail.tHouseApproveOtherOptions.approveLeader.endsWith('jpeg')"-->
  1223. <!-- @click="formEnabled.baseApplyForm.buildingFormEnabled && searchCommit('tHouseApproveOtherOptions.approveLeader')" required :readonly="!formEnabled.baseApplyForm.baseFormEnabled" v-model="applicationDetail.tHouseApproveOtherOptions.approveLeader" label="负责人" placeholder="负责人" input-align="right" label-width="auto"/>-->
  1224. <!-- <van-cell title="负责人:" v-if="applicationDetail.tHouseApproveOtherOptions.approveLeader =='' || applicationDetail.tHouseApproveOtherOptions.approveLeader ==null || applicationDetail.tHouseApproveOtherOptions.approveLeader.endsWith('jpeg')" :rules="[{ required: true }]">-->
  1225. <!-- <van-button :disabled="!formEnabled.baseApplyForm.buildingFormEnabled" color="#7AC943" v-if="applicationDetail.tHouseApproveOtherOptions.approveLeader =='' || applicationDetail.tHouseApproveOtherOptions.approveLeader ==null || !applicationDetail.tHouseApproveOtherOptions.approveLeader.endsWith('jpeg')" v-model="applicationDetail.tHouseApproveOtherOptions.approveLeader" type="primary" style="float: right;width:100%;height:40px" @click="searchCommit('tHouseApproveOtherOptions.approveLeader')">签名确认</van-button>-->
  1226. <!-- <van-image-->
  1227. <!-- width="100"-->
  1228. <!-- height="50"-->
  1229. <!-- :readonly="!formEnabled.baseApplyForm.buildingFormEnabled"-->
  1230. <!-- v-if="applicationDetail.tHouseApproveOtherOptions.approveLeader !='' && applicationDetail.tHouseApproveOtherOptions.approveLeader !=null-->
  1231. <!-- && applicationDetail.tHouseApproveOtherOptions.approveLeader.endsWith('jpeg')"-->
  1232. <!-- :src="$store.getters.baseRoutingUrl+applicationDetail.tHouseApproveOtherOptions.approveLeader"-->
  1233. <!-- @click="formEnabled.baseApplyForm.buildingFormEnabled && searchCommit('tHouseApproveOtherOptions.approveLeader')"-->
  1234. <!-- ></van-image>-->
  1235. <!-- </van-cell>-->
  1236. <!-- <van-cell title="现场照片:">-->
  1237. <!-- <house-location-plan-comp ref="pictureUploadApplyingTHouseApproveOther" :uploadDisabled="!formEnabled.baseApplyForm.buildingFormEnabled" :jsonData="uploadImgOther.fileList" :proposer-id="uploadImgOther.proposerId" tableName="t_house_approve_other_options"-->
  1238. <!-- @uploadFileChanged="(x) => {this.uploadImgOther.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImgOther.removeFileList = x;}"-->
  1239. <!-- />-->
  1240. <!-- </van-cell>-->
  1241. <!-- <van-cell title="定位当前位置:" v-if="formEnabled.baseApplyForm.buildingFormEnabled">-->
  1242. <!-- <van-button color="#7AC943" v-model="applicationDetail.tHouseApproveOtherOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommit('tHouseApproveOther')">定位当前位置</van-button>-->
  1243. <!-- </van-cell>-->
  1244. <!-- <van-cell title="查看现场位置:" v-if="!formEnabled.baseApplyForm.buildingFormEnabled">-->
  1245. <!-- <van-button color="#7AC943" v-if="applicationDetail.tHouseApproveOtherOptions.theGeomPoint !='' || applicationDetail.tHouseApproveOtherOptions.theGeomPoint !=null" v-model="applicationDetail.tHouseApproveOtherOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommitLook('tHouseApproveOther')">查看现场位置</van-button>-->
  1246. <!-- </van-cell>-->
  1247. <!-- <field-date-picker-->
  1248. <!-- v-model="applicationDetail.tHouseApproveOtherOptions.approveTime"-->
  1249. <!-- label="审批日期"-->
  1250. <!-- placeholder="选择日期"-->
  1251. <!-- :rules="[{ required: true }]"-->
  1252. <!-- formatter="yyyy-MM-dd"-->
  1253. <!-- required-->
  1254. <!-- :readonly="!formEnabled.baseApplyForm.buildingFormEnabled"-->
  1255. <!-- />-->
  1256. <!-- </van-col>-->
  1257. <!-- </van-row>-->
  1258. <!-- </div>-->
  1259. <!-- </template>-->
  1260. <!-- &lt;!&ndash; 申请::农业部门 &ndash;&gt;-->
  1261. <!-- <template v-if="formVisible.baseApplyForm.agricultureFormVisible">-->
  1262. <!-- <div class="main_box examine_box">-->
  1263. <!-- <van-row type="flex" justify="space-between" align="center">-->
  1264. <!-- <van-col span="5">乡镇<br/>农业<br/>农村<br/>部门<br/>审查<br/>意见</van-col>-->
  1265. <!-- <van-col span="19">-->
  1266. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.agricultureFormEnabled" rows="2" v-model="applicationDetail.tHouseApproveAgricultureOptions.approveOption" autosize type="textarea" placeholder="审查意见" :rules="[{ required: true }]"/>-->
  1267. <!-- <van-field :rules="[{ required: true }]" v-if="applicationDetail.tHouseApproveAgricultureOptions.approveLeader !='' && applicationDetail.tHouseApproveAgricultureOptions.approveLeader !=null && !applicationDetail.tHouseApproveAgricultureOptions.approveLeader.endsWith('jpeg')"-->
  1268. <!-- @click="formEnabled.baseApplyForm.agricultureFormEnabled && searchCommit('tHouseApproveOtherOptions.approveLeader')" required :readonly="!formEnabled.baseApplyForm.agricultureFormEnabled" v-model="applicationDetail.tHouseApproveAgricultureOptions.approveLeader" label="负责人" placeholder="负责人" input-align="right" label-width="auto"/>-->
  1269. <!-- <van-cell title="负责人:" v-if="applicationDetail.tHouseApproveAgricultureOptions.approveLeader =='' || applicationDetail.tHouseApproveAgricultureOptions.approveLeader ==null || applicationDetail.tHouseApproveAgricultureOptions.approveLeader.endsWith('jpeg')" :rules="[{ required: true }]">-->
  1270. <!-- <van-button :disabled="!formEnabled.baseApplyForm.agricultureFormEnabled" color="#7AC943" v-if="applicationDetail.tHouseApproveAgricultureOptions.approveLeader =='' || applicationDetail.tHouseApproveAgricultureOptions.approveLeader ==null || !applicationDetail.tHouseApproveAgricultureOptions.approveLeader.endsWith('jpeg')" v-model="applicationDetail.tHouseApproveAgricultureOptions.approveLeader" type="primary" style="float: right;width:100%;height:40px" @click="searchCommit('tHouseApproveAgricultureOptions.approveLeader')">签名确认</van-button>-->
  1271. <!-- <van-image-->
  1272. <!-- width="100"-->
  1273. <!-- height="50"-->
  1274. <!-- :readonly="!formEnabled.baseApplyForm.agricultureFormEnabled"-->
  1275. <!-- v-if="applicationDetail.tHouseApproveAgricultureOptions.approveLeader !='' && applicationDetail.tHouseApproveAgricultureOptions.approveLeader !=null-->
  1276. <!-- && applicationDetail.tHouseApproveAgricultureOptions.approveLeader.endsWith('jpeg')"-->
  1277. <!-- :src="$store.getters.baseRoutingUrl+applicationDetail.tHouseApproveAgricultureOptions.approveLeader"-->
  1278. <!-- @click="formEnabled.baseApplyForm.buildingFormEnabled && searchCommit('tHouseApproveAgricultureOptions.approveLeader')"-->
  1279. <!-- ></van-image>-->
  1280. <!-- </van-cell>-->
  1281. <!-- <van-cell title="现场照片:">-->
  1282. <!-- <house-location-plan-comp ref="pictureUploadApplyingTHouseApproveAgriculture" :uploadDisabled="!formEnabled.baseApplyForm.agricultureFormEnabled" :jsonData="uploadImgAgriculture.fileList" :proposer-id="uploadImgAgriculture.proposerId" tableName="t_house_approve_agriculture_options"-->
  1283. <!-- @uploadFileChanged="(x) => {this.uploadImgAgriculture.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImgAgriculture.removeFileList = x;}"-->
  1284. <!-- />-->
  1285. <!-- </van-cell>-->
  1286. <!-- <van-cell title="定位当前位置:" v-if="formEnabled.baseApplyForm.agricultureFormEnabled">-->
  1287. <!-- <van-button color="#7AC943" v-model="applicationDetail.tHouseApproveAgricultureOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommit('tHouseApproveAgriculture')">定位当前位置</van-button>-->
  1288. <!-- </van-cell>-->
  1289. <!-- <van-cell title="查看现场位置:" v-if="!formEnabled.baseApplyForm.agricultureFormEnabled">-->
  1290. <!-- <van-button color="#7AC943" v-if="applicationDetail.tHouseApproveAgricultureOptions.theGeomPoint !='' || applicationDetail.tHouseApproveAgricultureOptions.theGeomPoint !=null" v-model="applicationDetail.tHouseApproveAgricultureOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommitLook('tHouseApproveAgriculture')">查看现场位置</van-button>-->
  1291. <!-- </van-cell>-->
  1292. <!-- <field-date-picker-->
  1293. <!-- v-model="applicationDetail.tHouseApproveAgricultureOptions.approveTime"-->
  1294. <!-- label="审批日期"-->
  1295. <!-- placeholder="选择日期"-->
  1296. <!-- :rules="[{ required: true }]"-->
  1297. <!-- formatter="yyyy-MM-dd"-->
  1298. <!-- required-->
  1299. <!-- :readonly="!formEnabled.baseApplyForm.agricultureFormEnabled"-->
  1300. <!-- />-->
  1301. <!-- </van-col>-->
  1302. <!-- </van-row>-->
  1303. <!-- </div>-->
  1304. <!-- </template>-->
  1305. <!-- &lt;!&ndash; 申请::镇政府 &ndash;&gt;-->
  1306. <!-- <template v-if="formVisible.baseApplyForm.townFormVisible">-->
  1307. <!-- <div class="main_box examine_box" v-if="formVisible.baseApplyForm.townFormVisible">-->
  1308. <!-- <van-row type="flex" justify="space-between" align="center">-->
  1309. <!-- <van-col span="5">乡镇<br/>政府<br/>审核<br/>批准<br/>意见</van-col>-->
  1310. <!-- <van-col span="19">-->
  1311. <!-- <van-field required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveTownOptions.approveOption" rows="2" autosize type="textarea" placeholder="审批意见" :rules="[{ required: true }]"/>-->
  1312. <!-- <van-field :rules="[{ required: true }]" v-if="applicationDetail.tHouseApproveTownOptions.approveLeader !='' && applicationDetail.tHouseApproveTownOptions.approveLeader !=null && !applicationDetail.tHouseApproveTownOptions.approveLeader.endsWith('jpeg')"-->
  1313. <!-- @click="formEnabled.baseApplyForm.agricultureFormEnabled && searchCommit('tHouseApproveTownOptions.approveLeader')" required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveTownOptions.approveLeader" label="负责人:" placeholder="负责人" input-align="right" label-width="auto"/>-->
  1314. <!-- <van-cell title="负责人:" v-if="applicationDetail.tHouseApproveTownOptions.approveLeader =='' || applicationDetail.tHouseApproveTownOptions.approveLeader ==null || applicationDetail.tHouseApproveTownOptions.approveLeader.endsWith('jpeg')" :rules="[{ required: true }]">-->
  1315. <!-- <van-button :disabled="!formEnabled.baseApplyForm.townFormEnabled" color="#7AC943" v-if="applicationDetail.tHouseApproveTownOptions.approveLeader =='' || applicationDetail.tHouseApproveTownOptions.approveLeader ==null || !applicationDetail.tHouseApproveTownOptions.approveLeader.endsWith('jpeg')" v-model="applicationDetail.tHouseApproveTownOptions.approveLeader" type="primary" style="float: right;width:100%;height:40px" @click="searchCommit('tHouseApproveTownOptions.approveLeader')">签名确认</van-button>-->
  1316. <!-- <van-image-->
  1317. <!-- width="100"-->
  1318. <!-- height="50"-->
  1319. <!-- :readonly="!formEnabled.baseApplyForm.townFormEnabled"-->
  1320. <!-- v-if="applicationDetail.tHouseApproveTownOptions.approveLeader !='' && applicationDetail.tHouseApproveTownOptions.approveLeader !=null-->
  1321. <!-- && applicationDetail.tHouseApproveTownOptions.approveLeader.endsWith('jpeg')"-->
  1322. <!-- :src="$store.getters.baseRoutingUrl+applicationDetail.tHouseApproveTownOptions.approveLeader"-->
  1323. <!-- @click="formEnabled.baseApplyForm.townFormEnabled && searchCommit('tHouseApproveTownOptions.approveLeader')"-->
  1324. <!-- ></van-image>-->
  1325. <!-- </van-cell>-->
  1326. <!-- <van-cell title="现场照片:">-->
  1327. <!-- <house-location-plan-comp ref="pictureUploadApplyingTHouseApproveTown" :uploadDisabled="!formEnabled.baseApplyForm.townFormEnabled" :jsonData="uploadImgTown.fileList" :proposer-id="uploadImgTown.proposerId" tableName="t_house_approve_town_options"-->
  1328. <!-- @uploadFileChanged="(x) => {this.uploadImgTown.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImgTown.removeFileList = x;}"-->
  1329. <!-- />-->
  1330. <!-- </van-cell>-->
  1331. <!-- <van-cell title="定位当前位置:" v-if="formEnabled.baseApplyForm.townFormEnabled">-->
  1332. <!-- <van-button color="#7AC943" v-model="applicationDetail.tHouseApproveTownOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommit('tHouseApproveTown')">定位当前位置</van-button>-->
  1333. <!-- </van-cell>-->
  1334. <!-- <van-cell title="查看现场位置:" v-if="!formEnabled.baseApplyForm.townFormEnabled">-->
  1335. <!-- <van-button color="#7AC943" v-if="applicationDetail.tHouseApproveTownOptions.theGeomPoint !='' || applicationDetail.tHouseApproveTownOptions.theGeomPoint !=null" v-model="applicationDetail.tHouseApproveTownOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommitLook('tHouseApproveTown')">查看现场位置</van-button>-->
  1336. <!-- </van-cell>-->
  1337. <!-- <field-date-picker-->
  1338. <!-- v-model="applicationDetail.tHouseApproveTownOptions.approveTime"-->
  1339. <!-- label="审批日期"-->
  1340. <!-- placeholder="选择日期"-->
  1341. <!-- :rules="[{ required: true }]"-->
  1342. <!-- formatter="yyyy-MM-dd"-->
  1343. <!-- required-->
  1344. <!-- :readonly="!formEnabled.baseApplyForm.baseFormEnabled"-->
  1345. <!-- />-->
  1346. <!-- </van-col>-->
  1347. <!-- </van-row>-->
  1348. <!-- </div>-->
  1349. <!-- </template>-->
  1350. <!-- &lt;!&ndash; 申请::现场踏勘 &ndash;&gt;-->
  1351. <!-- <template v-if="formVisible.baseApplyForm.townFormVisible">-->
  1352. <!-- <div class="main_box examine_box" v-if="formVisible.baseApplyForm.townFormVisible">-->
  1353. <!-- <van-row type="flex" justify="space-between" align="center">-->
  1354. <!-- <van-col span="5">现场<br/>踏勘</van-col>-->
  1355. <!-- <van-col span="19">-->
  1356. <!-- <house-location-plan-comp ref="pictureUploadApplying" :uploadDisabled="!formEnabled.baseApplyForm.townFormEnabled" :jsonData="uploadImg.fileList" :proposer-id="uploadImg.proposerId" tableName="t_house_approve_locationplan_options"-->
  1357. <!-- @uploadFileChanged="(x) => {this.uploadImg.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImg.removeFileList = x;}"-->
  1358. <!-- />-->
  1359. <!-- <van-row>-->
  1360. <!-- <van-col span="12"><van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveLocationplanOptions.surveyPersonnel" label="踏勘" placeholder="现场踏勘人员" input-align="left" label-width="auto"/></van-col>-->
  1361. <!-- <van-col span="12">-->
  1362. <!-- <field-date-picker-->
  1363. <!-- v-model="applicationDetail.tHouseApproveLocationplanOptions.suveyTime"-->
  1364. <!-- label=""-->
  1365. <!-- placeholder="选择日期"-->
  1366. <!-- :rules="[{ required: true }]"-->
  1367. <!-- formatter="yyyy-MM-dd"-->
  1368. <!-- required-->
  1369. <!-- :readonly="!formEnabled.baseApplyForm.townFormEnabled"-->
  1370. <!-- />-->
  1371. <!-- </van-col>-->
  1372. <!-- </van-row>-->
  1373. <!-- <van-row>-->
  1374. <!-- <van-col span="12"><van-field :rules="[{ required: true }]" required :readonly="!formEnabled.baseApplyForm.townFormEnabled" v-model="applicationDetail.tHouseApproveLocationplanOptions.cartographer" label="制图" placeholder="制图人" input-align="left" label-width="auto"/></van-col>-->
  1375. <!-- <van-col span="12">-->
  1376. <!-- <field-date-picker-->
  1377. <!-- v-model="applicationDetail.tHouseApproveLocationplanOptions.cartographicTime"-->
  1378. <!-- label=""-->
  1379. <!-- placeholder="选择日期"-->
  1380. <!-- :rules="[{ required: true }]"-->
  1381. <!-- formatter="yyyy-MM-dd"-->
  1382. <!-- required-->
  1383. <!-- :readonly="!formEnabled.baseApplyForm.townFormEnabled"-->
  1384. <!-- />-->
  1385. <!-- </van-col>-->
  1386. <!-- </van-row>-->
  1387. <!-- </van-col>-->
  1388. <!-- </van-row>-->
  1389. <!-- </div>-->
  1390. <!-- </template>-->
  1391. </div>
  1392. </template>
  1393. <template v-if="selectedTabName == 2 && formVisible.acceptingVisible"> <!-- 验收申请 -->
  1394. <template v-if="formVisible.acceptingForm.baseFormVisible">
  1395. <div :class="active == 2 ? '' : 'noModify'">
  1396. <p class="topTit">农村宅基地和建房(规划许可)验收意见表</p>
  1397. <div class="main_box check-box">
  1398. <van-field required readonly v-model="applicationDetail.sqhhzxm" label="申请户主姓名" placeholder="申请户主姓名"
  1399. input-align="right" label-width="auto"/>
  1400. <van-field required readonly v-model="applicationDetail.sqhhzsfzh" label="身份证号" placeholder="身份证号"
  1401. input-align="right" label-width="auto"/>
  1402. <!-- <van-field required readonly v-model="applicationDetail.tHouseApplyEnd.location" label="用地建房位置" placeholder="用地建房位置" input-align="right" label-width="auto"/>-->
  1403. <van-field required readonly v-model="applicationDetail.ydjfys.xkzh" label="乡村建设规划许可证号"
  1404. placeholder="乡村建设规划许可证号" input-align="right" label-width="auto"/>
  1405. <van-field required readonly v-model="applicationDetail.ydjfys.pzsh" label="农村宅基地批准书号"
  1406. placeholder="农村宅基地批准书号" input-align="right" label-width="auto"/>
  1407. <field-date-picker
  1408. v-model="applicationDetail.ydjfys.kgrq"
  1409. label="开工日期"
  1410. placeholder="选择开工日期"
  1411. :rules="[{ required: true }]"
  1412. formatter="yyyy-MM-dd"
  1413. required
  1414. :readonly="!formEnabled.acceptingForm.baseFormEnabled"
  1415. />
  1416. <field-date-picker
  1417. v-model="applicationDetail.ydjfys.jgrq"
  1418. label="竣工日期"
  1419. placeholder="选择竣工日期"
  1420. :rules="[{ required: true }]"
  1421. formatter="yyyy-MM-dd"
  1422. required
  1423. :readonly="!formEnabled.acceptingForm.baseFormEnabled"
  1424. />
  1425. <!-- <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled" v-model="applicationDetail.tHouseApplyEnd.houseCertificateNo" label="权属证书号(不动产)" placeholder="权属证书号(不动产)" input-align="right" label-width="auto" :rules="[{ required: true }]"/>-->
  1426. <!-- <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled" v-model="applicationDetail.tHouseApplyEnd.landCertificateNo" label="权属证书号(宅基地)" placeholder="权属证书号(宅基地)" input-align="right" label-width="auto" :rules="[{ required: true }]"/>-->
  1427. <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled"
  1428. v-model="applicationDetail.ydjfys.pzzjdmj" label-width="auto" label="批准宅基地面积"
  1429. placeholder="批准宅基地面积" input-align="right" type="number" :rules="[{ required: true }]">
  1430. <template #right-icon>㎡</template>
  1431. </van-field>
  1432. <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled"
  1433. v-model="applicationDetail.ydjfys.syzjdmj" label="实用宅基地面积面积" placeholder="实用宅基地面积面积"
  1434. input-align="right" label-width="auto" type="number" :rules="[{ required: true }]">
  1435. <template #right-icon>㎡</template>
  1436. </van-field>
  1437. <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled"
  1438. v-model="applicationDetail.ydjfys.pzfjzdmj" label="批准房基占地面积" placeholder="批准房基占地面积"
  1439. input-align="right" label-width="auto" type="number" :rules="[{ required: true }]">
  1440. <template #right-icon>㎡</template>
  1441. </van-field>
  1442. <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled"
  1443. v-model="applicationDetail.ydjfys.sjfjzdmj" label="实际房基占地面积" placeholder="实际房基占地面积"
  1444. input-align="right" label-width="auto" type="number" :rules="[{ required: true }]">
  1445. <template #right-icon>㎡</template>
  1446. </van-field>
  1447. <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled"
  1448. v-model="applicationDetail.ydjfys.pjcg" label="批建高度" placeholder="批建高度" input-align="right"
  1449. label-width="auto" type="number" :rules="[{ required: true }]">
  1450. <template #right-icon>m</template>
  1451. </van-field>
  1452. <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled"
  1453. v-model="applicationDetail.ydjfys.pjcs" label="批建层数" placeholder="批建层数" input-align="right"
  1454. label-width="auto" type="digit" :rules="[{ required: true }]">
  1455. <template #right-icon>层</template>
  1456. </van-field>
  1457. <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled"
  1458. v-model="applicationDetail.ydjfys.jggd" label="竣工高度" placeholder="竣工高度" input-align="right"
  1459. label-width="auto" type="number" :rules="[{ required: true }]">
  1460. <template #right-icon>m</template>
  1461. </van-field>
  1462. <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled"
  1463. v-model="applicationDetail.ydjfys.jgcs" label="竣工层数" placeholder="竣工层数" input-align="right"
  1464. label-width="auto" type="digit" :rules="[{ required: true }]">
  1465. <template #right-icon>层</template>
  1466. </van-field>
  1467. <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled"
  1468. v-model="applicationDetail.ydjfys.zjzmj" label="总建筑面积" placeholder="总建筑面积"
  1469. input-align="right" type="number" :rules="[{ required: true }]">
  1470. <template #right-icon>㎡</template>
  1471. </van-field>
  1472. <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled"
  1473. v-model="applicationDetail.ydjfys.fwzjmj" label="其中: 房屋建筑面积" placeholder="房屋建筑面积"
  1474. input-align="right" label-width="auto" type="number" :rules="[{ required: true }]">
  1475. <template #right-icon>㎡</template>
  1476. </van-field>
  1477. <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled"
  1478. v-model="applicationDetail.ydjfys.ptfsssjzmj" label="配套附属设施建筑面积" placeholder="配套附属设施建筑面积"
  1479. input-align="right" label-width="auto" type="number" :rules="[{ required: true }]">
  1480. <template #right-icon>㎡</template>
  1481. </van-field>
  1482. <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled"
  1483. v-model="applicationDetail.ydjfys.zfzj" label="住房造价" placeholder="住房造价" input-align="right"
  1484. type="number" :rules="[{ required: true }]">
  1485. <template #right-icon>万元</template>
  1486. </van-field>
  1487. <field-select
  1488. v-model="applicationDetail.ydjfys.jglx"
  1489. label="结构类型"
  1490. value-key="dictLabel"
  1491. data-key="dictValue"
  1492. placeholder="选择结构类型"
  1493. :rules="[{ required: true }]"
  1494. required
  1495. :readonly="!formEnabled.acceptingForm.baseFormEnabled"
  1496. remote-url="/open/zdzh/list/design_paper"
  1497. :on-remote-response="'data'"
  1498. />
  1499. <van-field required :readonly="!formEnabled.acceptingForm.baseFormEnabled"
  1500. v-model="applicationDetail.ydjfys.wlmys" label="外立面颜色" placeholder="外立面颜色"
  1501. input-align="right" label-width="auto" :rules="[{ required: true }]"/>
  1502. <field-select
  1503. v-model="applicationDetail.ydjfys.cjhtzjdqk"
  1504. label="旧宅基地退还情况"
  1505. value-key="dictLabel"
  1506. data-key="dictValue"
  1507. placeholder="选择旧宅基地退还情况"
  1508. :rules="[{ required: true }]"
  1509. required
  1510. :readonly="!formEnabled.acceptingForm.baseFormEnabled"
  1511. remote-url="/open/zdzh/list/old_house_status"
  1512. :on-remote-response="'data'"
  1513. />
  1514. <field-radio
  1515. v-model="applicationDetail.ydjfys.sfxszfjsbzzc"
  1516. label="是否享受住房建设补助政策"
  1517. value-key="dictLabel"
  1518. data-key="dictValue"
  1519. :rules="[{ required: true }]"
  1520. required
  1521. :readonly="!formEnabled.acceptingForm.baseFormEnabled"
  1522. :columns="yesNoOptions"
  1523. />
  1524. <field-select
  1525. v-if="applicationDetail.ydjfys.sfxszfjsbzzc === '1'"
  1526. v-model="applicationDetail.ydjfys.zfjsbzzc"
  1527. label="住房建设补助政策"
  1528. value-key="dictLabel"
  1529. data-key="dictValue"
  1530. placeholder="选择住房建设补助政策"
  1531. :rules="[{ required: true }]"
  1532. required
  1533. :readonly="!formEnabled.acceptingForm.baseFormEnabled"
  1534. remote-url="/open/zdzh/list/house_subsidy_policy"
  1535. :on-remote-response="'data'"
  1536. />
  1537. <!-- <van-cell title="农房验收位置"></van-cell>-->
  1538. <!-- <div class="mapBox">-->
  1539. <!-- <common-map ref="pointDarwAcceptanceMap" style="height:200px;"-->
  1540. <!-- :allowDraw="formEnabled.acceptingForm.baseFormEnabled"-->
  1541. <!-- @drawReseted="onAcceptanceMapDrawReseted"-->
  1542. <!-- @drawFinished="onMapDrawFinished"-->
  1543. <!-- >-->
  1544. <!-- </common-map>-->
  1545. <!-- </div>-->
  1546. <!-- <van-field rows="3" :autosize="true" type="textarea" readonly label="备注" label-width="auto" placeholder="" input-align="left" value="1.村民旧宅基地属于应退未退的,不得发放本验收意见表。-->
  1547. <!--2.本验收意见表是向不动产登记部门申请办理不动产登记的要件之一,请妥善保管。"></van-field>-->
  1548. <div class="main_box examine_box">
  1549. <van-row type="flex" justify="space-between" align="center">
  1550. <van-col span="5">竣工<br/>平面<br/>简图<br/>
  1551. (标注<br/>长宽<br/>及四至)
  1552. </van-col>
  1553. <van-col span="19">
  1554. <MultiImageUploadComp :value="applicationDetail.ydjfys.jgpmjt"
  1555. :uploadDisabled="!this.formEnabled.acceptingForm.baseFormEnabled"
  1556. :tableId="applicationDetail.ydjfys.id"
  1557. :tableName="houseApplyUploadComp.tableName"
  1558. :fileType="0"
  1559. :attach="true"
  1560. @fileChanged="fileUpdatePmt"/>
  1561. <van-field required :readonly="!this.formEnabled.acceptingForm.baseFormEnabled"
  1562. v-model="applicationDetail.ydjfys.jgpmjtjbr" placeholder="经办人" label="经办人"
  1563. input-align="left" :rules="[{ required: true }]"/>
  1564. </van-col>
  1565. </van-row>
  1566. </div>
  1567. <div class="main_box examine_box" v-if="isYiLong()">
  1568. <van-row type="flex" justify="space-between" align="center">
  1569. <van-col span="5">住房<br/>竣工<br/>验收<br/>内容</van-col>
  1570. <van-col span="19">
  1571. <field-checkbox
  1572. v-model="applicationDetail.ydjfys.qtysnr.sfywcgcsjhhtyddgxnr"
  1573. label="1.是否已完成工程设计和合同约定的各项内容"
  1574. true-label="1"
  1575. false-label="0"
  1576. :rules="[{ required: true }]"
  1577. :readonly="!formEnabled.ysnrEnable"
  1578. label-width="5.6rem"
  1579. />
  1580. <field-checkbox
  1581. v-model="applicationDetail.ydjfys.qtysnr.clrdwgzfzlzcsfhhg"
  1582. label="2.承揽人对完工住房质量自查是否合格"
  1583. true-label="1"
  1584. false-label="0"
  1585. :rules="[{ required: true }]"
  1586. :readonly="!formEnabled.ysnrEnable"
  1587. label-width="5.6rem"
  1588. />
  1589. <field-checkbox
  1590. v-model="applicationDetail.ydjfys.qtysnr.sfysgjlzl"
  1591. label="3.是否有施工记录资料"
  1592. true-label="1"
  1593. false-label="0"
  1594. :rules="[{ required: true }]"
  1595. :readonly="!formEnabled.ysnrEnable"
  1596. label-width="5.6rem"
  1597. />
  1598. <field-checkbox
  1599. v-model="applicationDetail.ydjfys.qtysnr.jfcmhclrsfyjgtqsnczfzlbxs"
  1600. label="4.建房村民和承揽人是否已经共同签署农村住房质量保修书"
  1601. true-label="1"
  1602. false-label="0"
  1603. :rules="[{ required: true }]"
  1604. :readonly="!formEnabled.ysnrEnable"
  1605. label-width="5.6rem"
  1606. />
  1607. <field-checkbox
  1608. v-model="applicationDetail.ydjfys.qtysnr.zfcxjsxzzgbmhxzrmzfzlzgdwtsfqbzgwb"
  1609. label="5.住房城乡建设行政主管部门或乡(镇)人民政府责令整改的问题是否全部整改完毕"
  1610. true-label="1"
  1611. false-label="0"
  1612. :rules="[{ required: true }]"
  1613. :readonly="!formEnabled.ysnrEnable"
  1614. label-width="5.6rem"
  1615. />
  1616. <field-checkbox
  1617. v-model="applicationDetail.ydjfys.qtysnr.jzfmsfysjtjbyz"
  1618. label="6.建筑风貌是否与设计图基本一致"
  1619. true-label="1"
  1620. false-label="0"
  1621. :rules="[{ required: true }]"
  1622. :readonly="!formEnabled.ysnrEnable"
  1623. label-width="5.6rem"
  1624. />
  1625. <field-checkbox
  1626. v-model="applicationDetail.ydjfys.qtysnr.flfggddqtystjwcqk"
  1627. label="7.法律、法规规定的其他验收条件完成情况"
  1628. true-label="1"
  1629. false-label="0"
  1630. :rules="[{ required: true }]"
  1631. :readonly="!formEnabled.ysnrEnable"
  1632. label-width="5.6rem"
  1633. />
  1634. </van-col>
  1635. </van-row>
  1636. <div class="main_box examine_box">
  1637. <van-row type="flex" justify="space-between" align="center">
  1638. <van-col span="5">承揽人<br/>(姓名/<br/>单位/<br/>职务)</van-col>
  1639. <van-col span="19">
  1640. <van-field required :readonly="!formEnabled.ysnrEnable"
  1641. v-model="applicationDetail.ydjfys.qtysnr.clr" label="签字" placeholder="承揽人签字"
  1642. input-align="right" label-width="auto" :rules="[{ required: true }]"/>
  1643. <!-- </van-cell>-->
  1644. <field-date-picker
  1645. v-model="applicationDetail.ydjfys.qtysnr.clrsj"
  1646. label="签字日期"
  1647. placeholder="选择日期"
  1648. :rules="[{ required: true }]"
  1649. formatter="yyyy-MM-dd"
  1650. required
  1651. :readonly="!formEnabled.ysnrEnable"
  1652. />
  1653. </van-col>
  1654. </van-row>
  1655. </div>
  1656. <div class="main_box examine_box">
  1657. <van-row type="flex" justify="space-between" align="center">
  1658. <van-col span="5">第三服务方</van-col>
  1659. <van-col span="19">
  1660. <van-field required :readonly="!formEnabled.ysnrEnable"
  1661. v-model="applicationDetail.ydjfys.qtysnr.dsfwf" label="签字" placeholder="第三服务方签字"
  1662. input-align="right" label-width="auto" :rules="[{ required: true }]"/>
  1663. <!-- </van-cell>-->
  1664. <field-date-picker
  1665. v-model="applicationDetail.ydjfys.qtysnr.dsfwfsj"
  1666. label="签字日期"
  1667. placeholder="选择日期"
  1668. :rules="[{ required: true }]"
  1669. formatter="yyyy-MM-dd"
  1670. required
  1671. :readonly="!formEnabled.ysnrEnable"
  1672. />
  1673. </van-col>
  1674. </van-row>
  1675. </div>
  1676. <div class="main_box examine_box">
  1677. <van-row type="flex" justify="space-between" align="center">
  1678. <van-col span="5">专业技<br/>术人员)</van-col>
  1679. <van-col span="19">
  1680. <van-field required :readonly="!formEnabled.ysnrEnable"
  1681. v-model="applicationDetail.ydjfys.qtysnr.zyjsry" label="签字" placeholder="专业技术人员签字"
  1682. input-align="right" label-width="auto" :rules="[{ required: true }]"/>
  1683. <!-- </van-cell>-->
  1684. <field-date-picker
  1685. v-model="applicationDetail.ydjfys.qtysnr.zyjsrysj"
  1686. label="签字日期"
  1687. placeholder="选择日期"
  1688. :rules="[{ required: true }]"
  1689. formatter="yyyy-MM-dd"
  1690. required
  1691. :readonly="!formEnabled.ysnrEnable"
  1692. />
  1693. </van-col>
  1694. </van-row>
  1695. </div>
  1696. </div>
  1697. </div>
  1698. </div>
  1699. </template>
  1700. <template v-if="formVisible.acceptingForm.agricultureFormVisible">
  1701. <div class="main_box examine_box">
  1702. <van-row type="flex" justify="space-between" align="center">
  1703. <van-col span="5">{{applicationDetail.ydjfys.nyncbmmc !=
  1704. null?applicationDetail.ydjfsp.nyncbmmc:'农业农村部'}}意见
  1705. </van-col>
  1706. <van-col span="19">
  1707. <van-field required :readonly="!formEnabled.acceptingForm.agricultureFormEnabled" rows="2"
  1708. v-model="applicationDetail.ydjfys.nyncbmysyj" :autosize="true" type="textarea"
  1709. placeholder="乡镇农业农村部门意见" :rules="[{ required: true }]"/>
  1710. <van-cell title="负责人:" :rules="[{ required: true }]">
  1711. <van-image
  1712. width="100"
  1713. height="50"
  1714. :readonly="!formEnabled.acceptingForm.agricultureFormEnabled"
  1715. v-if="applicationDetail.ydjfys.nyncbmysjbrxm !='' && applicationDetail.ydjfys.nyncbmysjbrxm !=null
  1716. && applicationDetail.ydjfys.nyncbmysjbrxm.endsWith('png')"
  1717. :src="$store.getters.baseRoutingUrl+applicationDetail.ydjfys.nyncbmysjbrxm"
  1718. @click="formEnabled.acceptingForm.agricultureFormEnabled && searchCommit('ydjfys.nyncbmysjbrxm')"
  1719. ></van-image>
  1720. <div v-if="applicationDetail.ydjfys.nyncbmysjbrxm !='' && applicationDetail.ydjfys.nyncbmysjbrxm !=null
  1721. && !applicationDetail.ydjfys.nyncbmysjbrxm.endsWith('png')">
  1722. {{applicationDetail.ydjfys.nyncbmysjbrxm}}
  1723. </div>
  1724. </van-cell>
  1725. <!-- <van-cell title="现场照片:">-->
  1726. <!-- <house-location-plan-comp ref="tHouseApplyEndNongye" :uploadDisabled="!formEnabled.acceptingForm.agricultureFormEnabled" :jsonData="uploadImgEndNongyePlan.fileList" :proposer-id="uploadImgTown.proposerId" tableName="t_house_apply_end_nongye_options"-->
  1727. <!-- @uploadFileChanged="(x) => {this.uploadImgEndNongyePlan.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImgEndNongyePlan.removeFileList = x;}"-->
  1728. <!-- />-->
  1729. <!-- </van-cell>-->
  1730. <!-- <van-cell title="定位当前位置:" v-if="formEnabled.acceptingForm.agricultureFormEnabled">-->
  1731. <!-- <van-button color="#7AC943" v-model="applicationDetail.tHouseApplyEnd.nongyeGeom" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommit('tHouseApplyEndNongye')">定位当前位置</van-button>-->
  1732. <!-- </van-cell>-->
  1733. <!-- <van-cell title="查看现场位置:" v-if="!formEnabled.acceptingForm.agricultureFormEnabled">-->
  1734. <!-- <van-button color="#7AC943" v-if="applicationDetail.tHouseApplyEnd.nongyeGeom !='' || applicationDetail.tHouseApplyEnd.nongyeGeom !=null" v-model="applicationDetail.tHouseApplyEnd.nongyeGeom" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommitLook('tHouseApplyEndNongye')">查看现场位置</van-button>-->
  1735. <!-- </van-cell>-->
  1736. <field-date-picker
  1737. v-model="applicationDetail.ydjfys.nyncbmyssj"
  1738. label="审批日期"
  1739. placeholder="选择日期"
  1740. :rules="[{ required: true }]"
  1741. formatter="yyyy-MM-dd"
  1742. required
  1743. :readonly="!formEnabled.acceptingForm.agricultureFormEnabled"
  1744. />
  1745. </van-col>
  1746. </van-row>
  1747. <div id="showInfo"></div>
  1748. </div>
  1749. </template>
  1750. <template v-if="formVisible.acceptingForm.nature_resourceFormVisible">
  1751. <div class="main_box examine_box">
  1752. <van-row type="flex" justify="space-between" align="center">
  1753. <van-col span="5">{{applicationDetail.ydjfys.zrzybmmc !=
  1754. null?applicationDetail.ydjfsp.zrzybmmc:'自然资源部'}}意见
  1755. </van-col>
  1756. <van-col span="19">
  1757. <van-field required :readonly="!formEnabled.acceptingForm.nature_resourceFormEnabled" rows="2"
  1758. v-model="applicationDetail.ydjfys.zrzybmysyj" :autosize="true" type="textarea"
  1759. placeholder="乡镇自然资源部门意见" :rules="[{ required: true }]"/>
  1760. <van-cell title="负责人:" :rules="[{ required: true }]">
  1761. <van-image
  1762. width="100"
  1763. height="50"
  1764. :readonly="!formEnabled.acceptingForm.nature_resourceFormEnabled"
  1765. v-if="applicationDetail.ydjfys.zrzybmysjbrxm !='' && applicationDetail.ydjfys.zrzybmysjbrxm !=null
  1766. && applicationDetail.ydjfys.zrzybmysjbrxm.endsWith('png')"
  1767. :src="$store.getters.baseRoutingUrl+applicationDetail.ydjfys.zrzybmysjbrxm"
  1768. ></van-image>
  1769. <div v-if="applicationDetail.ydjfys.zrzybmysjbrxm !='' && applicationDetail.ydjfys.zrzybmysjbrxm !=null
  1770. && !applicationDetail.ydjfys.zrzybmysjbrxm.endsWith('png')">
  1771. {{applicationDetail.ydjfys.zrzybmysjbrxm}}
  1772. </div>
  1773. </van-cell>
  1774. <!-- <van-cell title="现场照片:">-->
  1775. <!-- <house-location-plan-comp ref="tHouseApplyEndNature" :uploadDisabled="!formEnabled.acceptingForm.nature_resourceFormEnabled" :jsonData="uploadImgEndNaturePlan.fileList" :proposer-id="uploadImgEndNaturePlan.proposerId" tableName="t_house_apply_end_nature_options"-->
  1776. <!-- @uploadFileChanged="(x) => {this.uploadImgEndNaturePlan.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImgEndNaturePlan.removeFileList = x;}"-->
  1777. <!-- />-->
  1778. <!-- </van-cell>-->
  1779. <!-- <van-cell title="定位当前位置:" v-if="formEnabled.acceptingForm.nature_resourceFormEnabled">-->
  1780. <!-- <van-button color="#7AC943" v-model="applicationDetail.tHouseApplyEnd.natureGeom" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommit('tHouseApplyEndNature')">定位当前位置</van-button>-->
  1781. <!-- </van-cell>-->
  1782. <!-- <van-cell title="查看现场位置:" v-if="!formEnabled.acceptingForm.nature_resourceFormEnabled">-->
  1783. <!-- <van-button color="#7AC943" v-if="applicationDetail.tHouseApplyEnd.natureGeom !='' || applicationDetail.tHouseApplyEnd.natureGeom !=null" v-model="applicationDetail.tHouseApplyEnd.natureGeom" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommitLook('tHouseApplyEndNature')">查看现场位置</van-button>-->
  1784. <!-- </van-cell>-->
  1785. <field-date-picker
  1786. v-model="applicationDetail.ydjfys.zrzybmyssj"
  1787. label="审批日期"
  1788. placeholder="选择日期"
  1789. :rules="[{ required: true }]"
  1790. formatter="yyyy-MM-dd"
  1791. required
  1792. :readonly="!formEnabled.acceptingForm.nature_resourceFormEnabled"
  1793. />
  1794. </van-col>
  1795. </van-row>
  1796. </div>
  1797. </template>
  1798. <template v-if="formVisible.acceptingForm.buildingFormVisible">
  1799. <div class="main_box examine_box">
  1800. <van-row type="flex" justify="space-between" align="center">
  1801. <van-col span="5">{{applicationDetail.ydjfys.zfcxjsbmmc !=
  1802. null?applicationDetail.ydjfsp.zfcxjsbmmc:'住建部'}}意见
  1803. </van-col>
  1804. <van-col span="19">
  1805. <van-field required :readonly="!formEnabled.acceptingForm.buildingFormEnabled"
  1806. v-model="applicationDetail.ydjfys.zfcxjsbmysyj" rows="2" autosize type="textarea"
  1807. placeholder="审批意见" :rules="[{ required: true }]"/>
  1808. <van-cell title="负责人:" :rules="[{ required: true }]">
  1809. <van-image
  1810. width="100"
  1811. height="50"
  1812. :readonly="!formEnabled.acceptingForm.buildingFormEnabled"
  1813. v-if="applicationDetail.ydjfys.zfcxjsbmysjbrxm !='' && applicationDetail.ydjfys.zfcxjsbmysjbrxm !=null
  1814. && applicationDetail.ydjfys.zfcxjsbmysjbrxm.endsWith('png')"
  1815. :src="$store.getters.baseRoutingUrl+applicationDetail.ydjfys.zfcxjsbmysjbrxm"
  1816. ></van-image>
  1817. <div v-if="applicationDetail.ydjfys.zfcxjsbmysjbrxm !='' && applicationDetail.ydjfys.zfcxjsbmysjbrxm !=null
  1818. && !applicationDetail.ydjfys.zfcxjsbmysjbrxm.endsWith('png')">
  1819. {{applicationDetail.ydjfys.zfcxjsbmysjbrxm}}
  1820. </div>
  1821. </van-cell>
  1822. <!-- <van-cell title="现场照片:">-->
  1823. <!-- <house-location-plan-comp ref="pictureUploadApplyingTHouseApproveOther" :uploadDisabled="!formEnabled.baseApplyForm.buildingFormEnabled" :jsonData="uploadImgOther.fileList" :proposer-id="uploadImgOther.proposerId" tableName="t_house_approve_other_options"-->
  1824. <!-- @uploadFileChanged="(x) => {this.uploadImgOther.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImgOther.removeFileList = x;}"-->
  1825. <!-- />-->
  1826. <!-- </van-cell>-->
  1827. <!-- <van-cell title="定位当前位置:" v-if="formEnabled.baseApplyForm.buildingFormEnabled">-->
  1828. <!-- <van-button color="#7AC943" v-model="applicationDetail.tHouseApproveOtherOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommit('tHouseApproveOther')">定位当前位置</van-button>-->
  1829. <!-- </van-cell>-->
  1830. <!-- <van-cell title="查看现场位置:" v-if="!formEnabled.baseApplyForm.buildingFormEnabled">-->
  1831. <!-- <van-button color="#7AC943" v-if="applicationDetail.tHouseApproveOtherOptions.theGeomPoint !='' || applicationDetail.tHouseApproveOtherOptions.theGeomPoint !=null" v-model="applicationDetail.tHouseApproveOtherOptions.theGeomPoint" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommitLook('tHouseApproveOther')">查看现场位置</van-button>-->
  1832. <!-- </van-cell>-->
  1833. <field-date-picker
  1834. v-model="applicationDetail.ydjfys.zfcxjsbmyssj"
  1835. label="审批日期"
  1836. placeholder="选择日期"
  1837. :rules="[{ required: true }]"
  1838. formatter="yyyy-MM-dd"
  1839. required
  1840. :readonly="!formEnabled.acceptingForm.buildingFormEnabled"
  1841. />
  1842. </van-col>
  1843. </van-row>
  1844. </div>
  1845. </template>
  1846. <template v-if="formVisible.acceptingForm.townFormVisible">
  1847. <div class="main_box examine_box">
  1848. <van-row type="flex" justify="space-between" align="center">
  1849. <van-col span="5">乡镇<br/>政府<br/>验收<br/>意见</van-col>
  1850. <van-col span="19">
  1851. <van-field required :readonly="!formEnabled.acceptingForm.townFormEnabled" rows="2"
  1852. v-model="applicationDetail.ydjfys.xzzfysyj" :autosize="true" type="textarea"
  1853. placeholder="乡镇政府验收意见" :rules="[{ required: true }]"/>
  1854. <van-cell title="负责人:" :rules="[{ required: true }]">
  1855. <van-image
  1856. width="100"
  1857. height="50"
  1858. :readonly="!formEnabled.acceptingForm.townFormEnabled"
  1859. v-if="applicationDetail.ydjfys.xzzfysjbrxm !='' && applicationDetail.ydjfys.xzzfysjbrxm !=null
  1860. && applicationDetail.ydjfys.xzzfysjbrxm.endsWith('png')"
  1861. :src="$store.getters.baseRoutingUrl+applicationDetail.ydjfys.xzzfysjbrxm"
  1862. ></van-image>
  1863. <div v-if="applicationDetail.ydjfys.xzzfysjbrxm !='' && applicationDetail.ydjfys.xzzfysjbrxm !=null
  1864. && !applicationDetail.ydjfys.xzzfysjbrxm.endsWith('png')">
  1865. {{applicationDetail.ydjfys.xzzfysjbrxm}}
  1866. </div>
  1867. </van-cell>
  1868. <!-- <van-cell title="现场照片:">-->
  1869. <!-- <house-location-plan-comp ref="tHouseApplyEndZhen" :uploadDisabled="!formEnabled.acceptingForm.townFormEnabled" :jsonData="uploadImgEndZhenPlan.fileList" :proposer-id="uploadImgEndZhenPlan.proposerId" tableName="t_house_apply_end_zhen_options"-->
  1870. <!-- @uploadFileChanged="(x) => {this.uploadImgEndZhenPlan.uploadFileList = x;}" @removeFileChanged="(x) => {this.uploadImgEndZhenPlan.removeFileList = x;}"-->
  1871. <!-- />-->
  1872. <!-- </van-cell>-->
  1873. <!-- <van-cell title="定位当前位置:" v-if="formEnabled.acceptingForm.townFormEnabled">-->
  1874. <!-- <van-button color="#7AC943" v-model="applicationDetail.tHouseApplyEnd.zhenGeom" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommit('tHouseApplyEndZhen')">定位当前位置</van-button>-->
  1875. <!-- </van-cell>-->
  1876. <!-- <van-cell title="查看现场位置:" v-if="!formEnabled.acceptingForm.townFormEnabled">-->
  1877. <!-- <van-button color="#7AC943" v-if="applicationDetail.tHouseApplyEnd.zhenGeom !='' || applicationDetail.tHouseApplyEnd.zhenGeom !=null" v-model="applicationDetail.tHouseApplyEnd.zhenGeom" type="primary" style="float: right;width:100%;height:40px" @click="dingweiCommitLook('tHouseApplyEndZhen')">查看现场位置</van-button>-->
  1878. <!-- </van-cell>-->
  1879. <field-date-picker
  1880. v-model="applicationDetail.ydjfys.xzzfyssj"
  1881. label="审批日期"
  1882. placeholder="选择日期"
  1883. :rules="[{ required: true }]"
  1884. formatter="yyyy-MM-dd"
  1885. required
  1886. :readonly="!formEnabled.acceptingForm.townFormEnabled"
  1887. />
  1888. </van-col>
  1889. </van-row>
  1890. </div>
  1891. <van-field rows="3" :autosize="true" type="textarea" label="备注" label-width="auto" placeholder="备注"
  1892. :readonly="!formEnabled.acceptingForm.townFormEnabled" v-model="applicationDetail.ydjfys.bz"
  1893. input-align="left"></van-field>
  1894. </template>
  1895. </template>
  1896. </van-form>
  1897. </div>
  1898. <!-- 底部按钮 -->
  1899. <van-goods-action style="z-index: 999;">
  1900. <van-goods-action-icon icon="label-o" text="附件" @click="openAttachment" color="#1D6FE9"/>
  1901. <template v-if="formVisible.editVisible">
  1902. <van-goods-action-button type="info" text="保存" @click="onSubmit('add')"
  1903. :disabled="!formEnabled.baseApplyEnabled" v-if="formEnabled.baseApplyEnabled"/>
  1904. <van-goods-action-button type="info" :text="formEnabled.baseApplyEnabled ? '保存并提交' : '提交'"
  1905. @click="onSubmit(formEnabled.baseApplyEnabled ? 'save_and_submit' : 'submit')"
  1906. :disabled="!formEnabled.submitEnabled"/>
  1907. </template>
  1908. <template v-else-if="formEnabled.landscopeEnabled">
  1909. <van-goods-action-button type="info" text="提交开工" @click="onSubmit('start_and_submit')"/>
  1910. </template>
  1911. <template v-else-if="formEnabled.acceptingEnabled">
  1912. <van-goods-action-button type="info" text="提交验收" @click="onSubmit('end')"/>
  1913. </template>
  1914. <template v-else-if="formVisible.auditVisible">
  1915. <van-goods-action-button type="info" text="同意" @click="onSubmit('agree')"/>
  1916. <van-goods-action-button type="danger" text="驳回" @click="onSubmit('reject')"/>
  1917. </template>
  1918. </van-goods-action>
  1919. <!-- 3组附件 -->
  1920. <van-popup
  1921. v-model="attachmentVisible"
  1922. closeable
  1923. position="top"
  1924. :style="{ height: '61.8%' }"
  1925. :close-on-click-overlay="proposerStatus == 1"
  1926. :lazy-render="false"
  1927. >
  1928. <van-tabs type="card" style="padding-top: 1.35rem;" color="#1D6FE9" :lazy-render="false"
  1929. v-model="attachmentActive" ref="attachmentDialog">
  1930. <van-tab title="申请" key="0">
  1931. <home-apply-upload-comp
  1932. :businessType="houseApplyUploadComp.businessType"
  1933. :houseApplyStatus="houseApplyUploadComp.homeApplyStatus"
  1934. :processKey="houseApplyUploadComp.processKey"
  1935. :proposerId="houseApplyUploadComp.proposerId"
  1936. :tableName="houseApplyUploadComp.tableName"
  1937. :readonly="houseApplyUploadComp.readonly"
  1938. :userName="sysFarmer.memberName"
  1939. :full="houseApplyUploadComp.full"
  1940. @uploadFinished="onUploadFinished"
  1941. >
  1942. </home-apply-upload-comp>
  1943. </van-tab>
  1944. <van-tab title="开工" key="1" :disabled="active < 1">
  1945. <home-apply-upload-comp
  1946. :business-type="houseApplyUploadCompStart.businessType"
  1947. :house-apply-status="houseApplyUploadCompStart.homeApplyStatus"
  1948. :process-key="houseApplyUploadCompStart.processKey"
  1949. :proposer-id="houseApplyUploadCompStart.proposerId"
  1950. :table-name="houseApplyUploadCompStart.tableName"
  1951. :readonly="houseApplyUploadCompStart.readonly"
  1952. :userName="sysFarmer.memberName"
  1953. :full="houseApplyUploadCompStart.full"
  1954. @uploadFinished="onUploadFinished"
  1955. >
  1956. </home-apply-upload-comp>
  1957. </van-tab>
  1958. <van-tab title="验收" key="2" :disabled="active < 2">
  1959. <home-apply-upload-comp
  1960. :business-type="houseApplyUploadCompEnd.businessType"
  1961. :house-apply-status="houseApplyUploadCompEnd.homeApplyStatus"
  1962. :process-key="houseApplyUploadCompEnd.processKey"
  1963. :proposer-id="houseApplyUploadCompEnd.proposerId"
  1964. :table-name="houseApplyUploadCompEnd.tableName"
  1965. :userName="sysFarmer.memberName"
  1966. :readonly="houseApplyUploadCompEnd.readonly"
  1967. :full="houseApplyUploadCompEnd.full"
  1968. @uploadFinished="onUploadFinished"
  1969. >
  1970. </home-apply-upload-comp>
  1971. </van-tab>
  1972. </van-tabs>
  1973. </van-popup>
  1974. <!-- 当前流程 -->
  1975. <van-popup
  1976. v-model="flowVisible"
  1977. position="top"
  1978. >
  1979. <div class="flow_main_box">
  1980. <van-row>
  1981. <van-col span="8"><p class="tit"
  1982. :style="{'background-color': applicationDetail.proposerActiveIndex >= 0 ? '' : '#ABABAB'}">
  1983. 01 申请</p></van-col>
  1984. <van-col span="8"><p class="tit"
  1985. :style="{'background-color': applicationDetail.startActiveIndex >= 0 ? '' : '#ABABAB'}">
  1986. 02 开工</p></van-col>
  1987. <van-col span="8"><p class="tit"
  1988. :style="{'background-color': applicationDetail.endActiveIndex >= 0 ? '' : '#ABABAB'}">03
  1989. 验收</p></van-col>
  1990. </van-row>
  1991. <van-row>
  1992. <van-col span="8">
  1993. <van-steps direction="vertical" active-color="#1D6FE9" :active="applicationDetail.proposerActiveIndex"
  1994. style="padding-left: 0.853333rem;">
  1995. <van-step v-for="(item,index) in applicationDetail.applyStepList" :key="index">{{item}}</van-step>
  1996. </van-steps>
  1997. </van-col>
  1998. <van-col span="8">
  1999. <van-steps direction="vertical" active-color="#1D6FE9" :active="applicationDetail.startActiveIndex"
  2000. style="padding-left: 0.853333rem;">
  2001. <van-step v-for="(item,index) in applicationDetail.startStepList" :key="index">{{item}}</van-step>
  2002. </van-steps>
  2003. </van-col>
  2004. <van-col span="8">
  2005. <van-steps direction="vertical" active-color="#1D6FE9" :active="applicationDetail.endActiveIndex"
  2006. style="padding-left: 0.853333rem;">
  2007. <van-step v-for="(item,index) in applicationDetail.endStepList" :key="index">{{item}}</van-step>
  2008. </van-steps>
  2009. </van-col>
  2010. </van-row>
  2011. </div>
  2012. </van-popup>
  2013. <van-popup v-model="showesign" position="bottom" closeable
  2014. close-icon="close">
  2015. <van-row style="margin:0 10%">
  2016. <p class="title" style="margin:20px 0;position:relative;padding-left:20px;font-size:0.5rem">电子签名</p>
  2017. </van-row>
  2018. <van-row style="margin: 0 5% 5% 5%;border:1px solid #BFBFBF;">
  2019. <vue-esign
  2020. ref="esign"
  2021. class="mySign"
  2022. :height="200"
  2023. :isCrop="isCrop"
  2024. :lineWidth="lineWidth"
  2025. :lineColor="lineColor"
  2026. :bgColor.sync="bgColor"
  2027. v-if="!resultImg"
  2028. />
  2029. <img :src="resultImg" alt="" width="100%" height="100%" v-if="resultImg"/>
  2030. </van-row>
  2031. <van-row type="flex" justify="center" style="margin-bottom:20px;">
  2032. <!--v-if="!formEnabled.acceptingForm.townFormEnabled"-->
  2033. <van-col span="6" style="text-align:center;">
  2034. <van-button type="primary" round size="small" @click="handleReset">清空画板</van-button>
  2035. </van-col>
  2036. <van-col span="6" style="text-align:center;">
  2037. <van-button type="primary" round size="small" @click="handleGenerate">保存提交</van-button>
  2038. </van-col>
  2039. </van-row>
  2040. </van-popup>
  2041. </div>
  2042. </template>
  2043. <script>
  2044. import HomeApplyUploadComp from "@/components/home/HomeApplyUploadComp";
  2045. import HouseLocationPlanComp from "@/components/house/HouseLocationPlanComp";
  2046. import FieldSelect from "@/components/form/FieldSelect";
  2047. import {
  2048. getHomeapplyydjfsqStatus,
  2049. listHomeapplytype,
  2050. getQueryLand,
  2051. saveHomeBaseInfo,
  2052. getHomeMembers,
  2053. allInformationWLHT,
  2054. checkDuplicateBuilding,
  2055. checkDuplicateBuildingQuery,
  2056. submitApplication,
  2057. submitStart,
  2058. updateStart,
  2059. submitCheck,
  2060. getWorkflow,
  2061. selectProposerNh,
  2062. attach
  2063. } from "@/api/sunVillage_info/homestead/application";
  2064. import {A_start} from "@/api/audit/aauditpipeline";
  2065. import {A_listAuditModel} from "@/api/audit/aauditmodel";
  2066. import CommonMap from "@/components/house/CommonMap";
  2067. import FieldDatePicker from "@/components/form/FieldDatePicker";
  2068. import FieldRadio from "@/components/form/FieldRadio";
  2069. import FieldCheckbox from "@/components/form/FieldCheckbox";
  2070. import MultiImageUploadComp from "@/components/house/MultiImageUploadComp"
  2071. import {formatDate} from "element-ui/src/utils/date-util.js";
  2072. import request from '@/utils/request'
  2073. import {Notify, Dialog} from "vant";
  2074. import {uploadFile} from "@/api/homesteadSurvey/zjdzd";
  2075. import {updateOpretion} from "@/api/onlineHome/homestead/application";
  2076. import {REGION} from '@/utils/global';
  2077. import Cookies from "js-cookie";
  2078. import axios from "axios";
  2079. // 意图
  2080. const PROPOSER_VIEW = 1;
  2081. const PROPOSER_EDIT = 2;
  2082. const PROPOSER_ADD = 3;
  2083. // 阶段
  2084. const PROPOSER_STAGE_BASE_APPLY = 0;
  2085. const PROPOSER_STAGE_START = 1;
  2086. const PROPOSER_STAGE_END = 2;
  2087. // 工作流名称
  2088. const PROPOSER_STAGE_BASE_APPLY_ACTIVITY = 'home_apply';
  2089. const PROPOSER_STAGE_START_ACTIVITY = 'home_start';
  2090. const PROPOSER_STAGE_END_ACTIVITY = 'home_check';
  2091. // 附件表名
  2092. const PROPOSER_STAGE_BASE_APPLY_TABLE = 't_homeapply_ydjfsq';
  2093. const PROPOSER_STAGE_START_TABLE = 't_homeapply_ydjfkg';
  2094. const PROPOSER_STAGE_END_TABLE = 't_homeapply_ydjfys';
  2095. // 其他
  2096. const PROPOSER_MODULE = 'home';
  2097. export default {
  2098. name: "homeApplication",
  2099. components: {
  2100. FieldCheckbox,
  2101. FieldRadio,
  2102. HomeApplyUploadComp,
  2103. FieldDatePicker,
  2104. CommonMap,
  2105. FieldSelect,
  2106. HouseLocationPlanComp,
  2107. MultiImageUploadComp
  2108. },
  2109. data() {
  2110. return {
  2111. // 当前流程步骤
  2112. active: 0,
  2113. // 申请ID
  2114. id: '',
  2115. // 表单数据
  2116. applicationDetail: {},
  2117. // 当前家庭成员展开
  2118. activeNames: ['1'],
  2119. showNhxx: false,
  2120. showTyt: false,
  2121. wztUpdate: false,
  2122. tytzName: null,
  2123. //农户信息集合
  2124. nhxxList: [],
  2125. zjddmColumns: [],
  2126. zjdzdxxList: [],
  2127. fileTypeList: [],
  2128. fileIdList: [],
  2129. zjdzdxxDetailed: {
  2130. zdszd: null,
  2131. zdszn: null,
  2132. zdszx: null,
  2133. zdszb: null
  2134. },
  2135. tytzList: [],
  2136. jflxColumns: [],
  2137. zjdzdxxDetailedShow: false,
  2138. deptId: null,
  2139. sysFarmer: {memberName: "", dept: null},
  2140. showZjddm: null,
  2141. region: null,
  2142. showZjdzk: false,
  2143. // 当前显示流程
  2144. selectedTabName: 0,
  2145. processKeyField: null,
  2146. spTableName:"t_homeapply_ydjfsp",
  2147. // 表单意图
  2148. proposerStatus: PROPOSER_VIEW,
  2149. // 显示控制
  2150. formVisible: {
  2151. baseApplyFormVisible: true,
  2152. editVisible: false,
  2153. baseApplyForm: {
  2154. baseFormVisible: true,
  2155. homesteadFormVisible: false,
  2156. groupFormVisible: false,
  2157. villageFormVisible: false,
  2158. townFormVisible: false,
  2159. agricultureFormVisible: false,
  2160. buildingFormVisible: false,
  2161. nature_resourceFormVisible: false,
  2162. homesteadForm: {
  2163. keepVisible: false, // 是否显示宅基地保留输入
  2164. otherVisible: false, // 是否显示宅基地其他输入
  2165. }
  2166. },
  2167. landscopeVisible: false,
  2168. landscopeForm: {
  2169. baseFormVisible: false,
  2170. nature_resourceFormVisible: false,
  2171. },
  2172. acceptingVisible: false,
  2173. acceptingForm: {
  2174. baseFormVisible: false,
  2175. townFormVisible: false,
  2176. agricultureFormVisible: false,
  2177. nature_resourceFormVisible: false,
  2178. buildingFormVisible: false,
  2179. },
  2180. auditVisible: false,
  2181. },
  2182. // 表单启用控制
  2183. formEnabled: {
  2184. baseApplyEnabled: false,
  2185. submitEnabled: false,
  2186. ysnrEnable: false,
  2187. baseApplyForm: {
  2188. baseFormEnabled: false,
  2189. homesteadFormEnabled: false,
  2190. groupFormEnabled: false,
  2191. villageFormEnabled: false,
  2192. townFormEnabled: false,
  2193. agricultureFormEnabled: false,
  2194. buildingFormEnabled: false,
  2195. nature_resourceFormEnabled: false,
  2196. },
  2197. landscopeEnabled: false,
  2198. landscopeForm: {
  2199. baseFormEnabled: false,
  2200. nature_resourceFormEnabled: false,
  2201. },
  2202. acceptingEnabled: false,
  2203. acceptingForm: {
  2204. baseFormEnabled: false,
  2205. townFormEnabled: false,
  2206. agricultureFormEnabled: false,
  2207. nature_resourceFormEnabled: false,
  2208. },
  2209. },
  2210. // 申请附件树
  2211. houseApplyUploadComp: {
  2212. businessType: PROPOSER_MODULE,
  2213. proposerId: null,
  2214. houseApplyStatus: null,
  2215. processKey: PROPOSER_STAGE_BASE_APPLY_ACTIVITY,
  2216. tableName: PROPOSER_STAGE_BASE_APPLY_TABLE,
  2217. attachmentList: [],
  2218. readonly: false,
  2219. full: false,
  2220. },
  2221. // 开工附件树
  2222. houseApplyUploadCompStart: {
  2223. businessType: PROPOSER_MODULE,
  2224. proposerId: null,
  2225. houseApplyStatus: null,
  2226. processKey: PROPOSER_STAGE_START_ACTIVITY,
  2227. tableName: PROPOSER_STAGE_START_TABLE,
  2228. attachmentList: [],
  2229. readonly: false,
  2230. full: false,
  2231. },
  2232. // 验收附件树
  2233. houseApplyUploadCompEnd: {
  2234. businessType: PROPOSER_MODULE,
  2235. proposerId: null,
  2236. houseApplyStatus: null,
  2237. processKey: PROPOSER_STAGE_END_ACTIVITY,
  2238. tableName: PROPOSER_STAGE_END_TABLE,
  2239. attachmentList: [],
  2240. readonly: false,
  2241. full: false,
  2242. },
  2243. currentUserRole: null,
  2244. // 当前位置信息
  2245. tGeoOrganizationLat: null,
  2246. tGeoOrganizationLng: null,
  2247. // 表单默认值
  2248. form: {
  2249. villagerOpinion: "经审查,材料真实有效,符合建房安全、无纠纷,同意申报。",
  2250. villageOption: "经审查,{sqhhzxm}宅基地和建房申请材料真实有效,拟用地{nsqzjddz}符合村庄规划,相邻人{isAdvice}无异议,同意其宅基地和建房申请。",
  2251. // applicationDetail.tHouseApplyProposer.memberName, applicationDetail.tHouseApplyProposedSituation.location, null
  2252. groupOption: "经讨论和公示无异议,{sqhhzxm}符合农村宅基地申请资格,同意{sqhhzxm}的农村宅基地和建房申请。",
  2253. // applicationDetail.tHouseApplyProposer.memberName, applicationDetail.tHouseApplyProposer.memberName
  2254. },
  2255. // 工作流
  2256. taskId: null,
  2257. instanceId: null,
  2258. // 村级领导审核
  2259. uploadImgVillage: {
  2260. proposerId: null,
  2261. fileList: '',
  2262. uploadFileList: [],
  2263. removeFileList: [],
  2264. },
  2265. // 自然资源领导审批
  2266. uploadImgNature: {
  2267. proposerId: null,
  2268. fileList: '',
  2269. uploadFileList: [],
  2270. removeFileList: [],
  2271. },
  2272. // 农村农业部领导审批
  2273. uploadImgAgriculture: {
  2274. proposerId: null,
  2275. fileList: '',
  2276. uploadFileList: [],
  2277. removeFileList: [],
  2278. },
  2279. // 其他部门领导审批
  2280. uploadImgOther: {
  2281. proposerId: null,
  2282. fileList: '',
  2283. uploadFileList: [],
  2284. removeFileList: [],
  2285. },
  2286. // 镇级领导审批
  2287. uploadImgTown: {
  2288. proposerId: null,
  2289. fileList: '',
  2290. uploadFileList: [],
  2291. removeFileList: [],
  2292. },
  2293. // 验收自然资源领导审批
  2294. uploadImgEndNaturePlan: {
  2295. proposerId: null,
  2296. fileList: '',
  2297. uploadFileList: [],
  2298. removeFileList: [],
  2299. },
  2300. // 验收农村农业部领导审批
  2301. uploadImgEndNongyePlan: {
  2302. proposerId: null,
  2303. fileList: '',
  2304. uploadFileList: [],
  2305. removeFileList: [],
  2306. },
  2307. // 验收其他部门领导审批
  2308. uploadImgEndBuildingPlan: {
  2309. proposerId: null,
  2310. fileList: '',
  2311. uploadFileList: [],
  2312. removeFileList: [],
  2313. },
  2314. // 验收镇级领导审批
  2315. uploadImgEndZhenPlan: {
  2316. proposerId: null,
  2317. fileList: '',
  2318. uploadFileList: [],
  2319. removeFileList: [],
  2320. },
  2321. // 申请镇政府审批平面图
  2322. uploadImg: {
  2323. proposerId: null,
  2324. fileList: '',
  2325. uploadFileList: [],
  2326. removeFileList: [],
  2327. },
  2328. // 验收镇政府审批平面图
  2329. uploadImgAccepting: {
  2330. proposerId: null,
  2331. fileList: '',
  2332. uploadFileList: [],
  2333. removeFileList: [],
  2334. },
  2335. // 地图绘制
  2336. drawInsert: null,
  2337. // 附件弹出框显示
  2338. attachmentVisible: false,
  2339. // 工作流弹出框显示
  2340. flowVisible: false,
  2341. // 是/否字典
  2342. yesNoOptions: [
  2343. {dictLabel: '是', dictValue: '1'},
  2344. {dictLabel: '否', dictValue: '0'},
  2345. ],
  2346. yhzgxOptions: [],
  2347. // 当前附件tab
  2348. attachmentActive: 0,
  2349. // 家庭成员tab
  2350. familyMembersActive: 0,
  2351. //电子签名
  2352. showesign: false,
  2353. //部门签字判断
  2354. onCliceQz: "",
  2355. lineWidth: 6, // 画笔的线条粗细
  2356. lineColor: "#000000", // 画笔的颜色
  2357. bgColor: "", // 画布的背景颜色
  2358. resultImg: "", // 最终画布生成的base64图片
  2359. isCrop: false, // 是否裁剪,在画布设定尺寸基础上裁掉四周空白部分
  2360. mapShow: false,
  2361. mapZbDw: "",
  2362. mapBcZb: "", //定位坐标
  2363. mapZbNow: "", //当前查看坐标
  2364. };
  2365. },
  2366. created() {
  2367. this.id = this.$route.query.id;
  2368. this.type = this.$route.query.type;
  2369. this.taskId = this.$route.query.taskId;
  2370. this.auditbatchNo = this.$route.query.auditbatchNo;
  2371. this.$set(this.applicationDetail, "fileList", this.fileIdList);
  2372. this.getDicts("family_status").then(response => {
  2373. let arr = [];
  2374. response.data.forEach(function (item) {
  2375. if (item.dictLabel !== '户主') {
  2376. arr.push(item)
  2377. }
  2378. })
  2379. this.yhzgxOptions = arr;
  2380. });
  2381. this.getDicts("building_type").then(response => {
  2382. this.jflxColumns = response.data;
  2383. });
  2384. if (this.type !== "add") {
  2385. getHomeapplyydjfsqStatus(this.id).then(response => {
  2386. this.region = response.data.region;
  2387. this.deptId = response.data.deptId;
  2388. console.info(response.data.deptId);
  2389. });
  2390. } else {
  2391. this.deptId = this.sysFarmer.deptId;
  2392. }
  2393. if (this.type === "todo" || this.type === "done") {
  2394. this.$set(this.sysFarmer, 'memberName', this.$store.getters.nickName);
  2395. } else {
  2396. if (Cookies.get('user')) {
  2397. this.sysFarmer = JSON.parse(Cookies.get('user'));
  2398. } else {
  2399. this.$router.push('/sunVillage_info/login_code')
  2400. }
  2401. }
  2402. this.getFormIntent();
  2403. this.getDetail();
  2404. // this.getLandCoord();
  2405. },
  2406. methods: {
  2407. guidProduct() {
  2408. return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
  2409. var r = Math.random() * 16 | 0,
  2410. v = c == 'x' ? r : (r & 0x3 | 0x8);
  2411. return v.toString(16);
  2412. });
  2413. },
  2414. isYiLong: function () {
  2415. return this.region === REGION.YI_LONG_XIAN;
  2416. },
  2417. // 打开工作流程
  2418. goFlow() {
  2419. this.flowVisible = true;
  2420. //window.location='flowChart?id='+this.id + '&processKey=WLHT';
  2421. },
  2422. // 初始化当前数据, 有ID则查询, 否则新增
  2423. getDetail() {
  2424. this.reset();
  2425. if (this.id) {
  2426. if (this.type === "edit") {
  2427. this.proposerStatus = PROPOSER_EDIT;
  2428. }
  2429. allInformationWLHT(this.id).then(response => {
  2430. listHomeapplytype({deptId: response.data.deptId, status: "0"}).then(res => {
  2431. this.tytzList = res.rows;
  2432. for (let i = 0; i < res.rows.length; i++) {
  2433. //_this.infoList[i].push({text: response.rows[i].name, value: response.rows[i].code});
  2434. if (res.rows[i].id === response.data.tyhxt) {
  2435. this.tytzName = res.rows[i].name;
  2436. }
  2437. }
  2438. });
  2439. this.init(response.data);
  2440. });
  2441. } else {
  2442. listHomeapplytype({deptId: this.sysFarmer.deptId, status: "0"}).then(response => {
  2443. let _this = this;
  2444. this.tytzList = response.rows;
  2445. this.init();
  2446. this.getApplyerDetail(this.sysFarmer);
  2447. });
  2448. }
  2449. },
  2450. // 绘制申请地图
  2451. pointDarw(data) {
  2452. this.$nextTick(() => {
  2453. let map = this.$refs.pointDarwMap;
  2454. if (data === null)
  2455. if (this.applicationDetail.ydjfkg != null) {
  2456. data = this.applicationDetail.ydjfkg.theGeomJson;
  2457. this.setMapData(map, data);
  2458. }
  2459. });
  2460. },
  2461. // 绘制验收地图
  2462. pointWrapAcceptance(data) {
  2463. this.$nextTick(() => {
  2464. let map = this.$refs.pointDarwAcceptanceMap;
  2465. if (data === null)
  2466. if (data === null) {
  2467. if (this.applicationDetail.tHouseApplyEnd && this.applicationDetail.tHouseApplyEnd.theGeom)
  2468. data = this.applicationDetail.tHouseApplyEnd.theGeom;
  2469. else {
  2470. if (this.applicationDetail.tHouseApproveNatureOptions && this.applicationDetail.tHouseApproveNatureOptions.theGeom)
  2471. data = this.applicationDetail.tHouseApproveNatureOptions.theGeom;
  2472. }
  2473. }
  2474. this.setMapData(map, data);
  2475. });
  2476. },
  2477. // 绘制开工地图
  2478. paintStartNatureMap(data) {
  2479. this.$nextTick(() => {
  2480. let map = this.$refs.startNatureMap;
  2481. // if(data === null)
  2482. // {
  2483. // if(this.applicationDetail.tHouseApproveNatureOptions && this.applicationDetail.tHouseApproveNatureOptions.theGeom)
  2484. // data = this.applicationDetail.tHouseApproveNatureOptions.theGeom;
  2485. // else {
  2486. // if(this.applicationDetail.theGeom)
  2487. // data = this.applicationDetail.theGeom;
  2488. // }
  2489. // }
  2490. // this.setMapData(map, data);
  2491. });
  2492. },
  2493. // 绘制自然资源部门地图
  2494. pointDarwNature(data) {
  2495. this.$nextTick(() => {
  2496. let map = this.$refs.pointDarwNatureMap;
  2497. if (data === null) {
  2498. if (this.applicationDetail.tHouseApproveNatureOptions && this.applicationDetail.tHouseApproveNatureOptions.theGeom)
  2499. data = this.applicationDetail.tHouseApproveNatureOptions.theGeom;
  2500. else {
  2501. if (this.applicationDetail.theGeom)
  2502. data = this.applicationDetail.theGeom;
  2503. }
  2504. }
  2505. this.setMapData(map, data);
  2506. });
  2507. },
  2508. // 通用设置地图数据函数
  2509. setMapData(map, data) {
  2510. //console.log(map, data ? true : false);
  2511. if (!map) return;
  2512. if (data) {
  2513. map.setLayer('pointDarwLayer', data);
  2514. } else {
  2515. this.getLandCoord((lng, lat) => {
  2516. map.setCoord(this.tGeoOrganizationLng, this.tGeoOrganizationLat);
  2517. });
  2518. }
  2519. },
  2520. // 点击流程步骤条, 切换流程表单页
  2521. onStepClicked(index) {
  2522. this.selectTab(index);
  2523. },
  2524. // 全局初始化
  2525. init(value) {
  2526. console.log(value);
  2527. const role = this.$store.getters.roles;
  2528. this.currentUserRole = role[0];
  2529. console.log("当前用户角色: " + role);
  2530. console.info(this.proposerStatus);
  2531. // 局部变量
  2532. let homeApplyStatus = value ? value.homeApplyStatus : -1;
  2533. let proposerId = value ? value.id : null;
  2534. let hasGroupLevel = false; //value.tHouseApplyProposer.hasOwnProperty('hasGroupLevel') ? value.tHouseApplyProposer.hasGroupLevel : this.isGroupLevel;
  2535. console.log("当前申请状态: " + homeApplyStatus);
  2536. this.formVisible.editVisible = false;
  2537. this.formVisible.baseApplyForm.groupFormVisible = false;
  2538. this.formVisible.baseApplyForm.villageFormVisible = false;
  2539. this.formVisible.baseApplyForm.townFormVisible = false;
  2540. this.formVisible.baseApplyForm.agricultureFormVisible = false;
  2541. this.formVisible.baseApplyForm.buildingFormVisible = false;
  2542. this.formVisible.baseApplyForm.nature_resourceFormVisible = false;
  2543. this.formVisible.landscopeVisible = false;
  2544. this.formVisible.landscopeForm.baseFormVisible = false;
  2545. this.formVisible.acceptingVisible = false;
  2546. this.formVisible.acceptingForm.baseFormVisible = false;
  2547. this.formVisible.acceptingForm.townFormVisible = false
  2548. this.formVisible.acceptingForm.agricultureFormVisible = false;
  2549. this.formVisible.acceptingForm.nature_resourceFormVisible = false;
  2550. this.formVisible.auditVisible = false;
  2551. this.formEnabled.baseApplyEnabled = false;
  2552. this.formEnabled.submitEnabled = false;
  2553. this.formEnabled.baseApplyForm.baseFormEnabled = false;
  2554. this.formEnabled.baseApplyForm.homesteadFormEnabled = false;
  2555. this.formEnabled.baseApplyForm.groupFormEnabled = false;
  2556. this.formEnabled.baseApplyForm.villageFormEnabled = false;
  2557. this.formEnabled.baseApplyForm.townFormEnabled = false;
  2558. this.formEnabled.baseApplyForm.agricultureFormEnabled = false;
  2559. this.formEnabled.baseApplyForm.buildingFormEnabled = false;
  2560. this.formEnabled.baseApplyForm.nature_resourceFormEnabled = false;
  2561. this.formEnabled.landscopeEnabled = false;
  2562. this.formEnabled.landscopeForm.baseFormEnabled = false;
  2563. this.formEnabled.acceptingEnabled = false;
  2564. this.formEnabled.acceptingForm.baseFormEnabled = false;
  2565. this.formEnabled.acceptingForm.townFormEnabled = false;
  2566. this.formEnabled.acceptingForm.agricultureFormEnabled = false;
  2567. this.formEnabled.acceptingForm.nature_resourceFormEnabled = false;
  2568. switch (this.proposerStatus) {
  2569. // 查看
  2570. case PROPOSER_VIEW:
  2571. this.formVisible.baseApplyForm.groupFormVisible = hasGroupLevel && this.isNotProposeStatus(homeApplyStatus, ["12", '13']);
  2572. this.formVisible.baseApplyForm.villageFormVisible = this.isNotProposeStatus(homeApplyStatus, ["11", "14"]);
  2573. this.formVisible.baseApplyForm.townFormVisible = this.isNotProposeStatus(homeApplyStatus, ["11", "12", "13", "14", "15", "17", "19", this.isInRoles(role, 'town_leader') ? -99 : '7', this.isInRoles(role, 'town_leader') ? -99 : '8']);
  2574. this.formVisible.baseApplyForm.agricultureFormVisible = this.isNotProposeStatus(homeApplyStatus, ["11", "12", "13", "14", "15", "17", this.isInRoles(role, ['town_leader', 'agriculture']) ? -99 : '7', this.isInRoles(role, ['town_leader', 'agriculture']) ? -99 : '8']);
  2575. this.formVisible.baseApplyForm.buildingFormVisible = this.isNotProposeStatus(homeApplyStatus, ["11", "12", "13", "14", "15", "17", this.isInRoles(role, ['town_leader', 'building']) ? -99 : '7', this.isInRoles(role, ['town_leader', 'building']) ? -99 : '8']);
  2576. this.formVisible.baseApplyForm.nature_resourceFormVisible = this.isNotProposeStatus(homeApplyStatus, ["11", "12", "13", "14", "15", "17", this.isInRoles(role, ['town_leader', 'nature_resource']) ? -99 : '7', this.isInRoles(role, ['town_leader', 'nature_resource']) ? -99 : '8']);
  2577. this.formVisible.landscopeVisible = this.isNotProposeStatus(homeApplyStatus, ["11", "12", "13", "14", "15", "17", "19", "1C", "1D", "1F"]);
  2578. this.formVisible.landscopeForm.baseFormVisible = this.isNotProposeStatus(homeApplyStatus, ["11", "12", "13", "14", "15", "17", "19", "1C", "1D", "1F"]);
  2579. this.formVisible.acceptingVisible = this.isProposeStatus(homeApplyStatus, ["71", "72", "74", "77", "79", "7C", "7F"]);
  2580. this.formVisible.acceptingForm.baseFormVisible = this.isProposeStatus(homeApplyStatus, ["71", "72", "74", "77", "79", "7C", "7F"]);
  2581. this.formVisible.acceptingForm.townFormVisible = this.isProposeStatus(homeApplyStatus, ["7C", "7F"]);
  2582. ;
  2583. this.formVisible.acceptingForm.agricultureFormVisible = this.isProposeStatus(homeApplyStatus, ["79", "7C", "7F"]);
  2584. this.formVisible.acceptingForm.nature_resourceFormVisible = this.isProposeStatus(homeApplyStatus, ["79", "7C", "7F"]);
  2585. this.formVisible.acceptingForm.buildingFormVisible = this.isProposeStatus(homeApplyStatus, ["79", "7C", "7F"]);
  2586. if (this.type == 'done') {
  2587. this.formVisible.editVisible = false;
  2588. }
  2589. console.info(value);
  2590. this.houseApplyUploadComp.full = true;
  2591. this.houseApplyUploadComp.readonly = true;
  2592. this.$set(this.houseApplyUploadComp, "proposerId", proposerId);
  2593. this.houseApplyUploadComp.homeApplyStatus = homeApplyStatus;
  2594. this.houseApplyUploadCompStart.full = true;
  2595. this.houseApplyUploadCompStart.readonly = true;
  2596. this.houseApplyUploadCompStart.proposerId = proposerId;
  2597. this.houseApplyUploadCompStart.houseApplyStatus = homeApplyStatus; // == '10' ? '12' : houseApplyStatus;
  2598. this.houseApplyUploadCompEnd.full = true;
  2599. this.houseApplyUploadCompEnd.readonly = true;
  2600. this.houseApplyUploadCompEnd.proposerId = proposerId;
  2601. this.houseApplyUploadCompEnd.houseApplyStatus = homeApplyStatus;
  2602. console.info(this.houseApplyUploadComp);
  2603. // // 初始化自然资源审批现场图
  2604. // this.uploadImgNature.fileList = value.tHouseApproveNatureOptions ? value.tHouseApproveNatureOptions.naturePlan : '';
  2605. // this.uploadImgNature.proposerId = value.tHouseApplyProposer.id;
  2606. // // 初始化农村农业部审批现场图
  2607. // this.uploadImgAgriculture.fileList = value.tHouseApproveAgricultureOptions ? value.tHouseApproveAgricultureOptions.agriculturePlan : '';
  2608. // this.uploadImgAgriculture.proposerId = value.tHouseApplyProposer.id;
  2609. // // 初始化其他部审批现场图
  2610. // this.uploadImgOther.fileList = value.tHouseApproveOtherOptions ? value.tHouseApproveOtherOptions.otherPlan : '';
  2611. // this.uploadImgOther.proposerId = value.tHouseApplyProposer.id;
  2612. // 初始化镇级审批现场图
  2613. // this.uploadImgTown.fileList = value.tHouseApproveTownOptions ? value.tHouseApproveTownOptions.townPlan : '';
  2614. // this.uploadImgTown.proposerId = value.tHouseApplyProposer.id;
  2615. // 初始化验收农村农业部审批现场图
  2616. // this.uploadImgEndNongyePlan.fileList = value.tHouseApplyEnd ? value.tHouseApplyEnd.nongyePlan : '';
  2617. // this.uploadImgEndNongyePlan.proposerId = value.tHouseApplyProposer.id;
  2618. // // 初始化验收自然资源部审批现场图
  2619. // this.uploadImgEndNaturePlan.fileList = value.tHouseApplyEnd ? value.tHouseApplyEnd.naturePlan : '';
  2620. // this.uploadImgEndNaturePlan.proposerId = value.tHouseApplyProposer.id;
  2621. // // 初始化验收其他部门审批现场图
  2622. // this.uploadImgEndBuildingPlan.fileList = value.tHouseApplyEnd ? value.tHouseApplyEnd.buildingPlan : '';
  2623. // this.uploadImgEndBuildingPlan.proposerId = value.tHouseApplyProposer.id;
  2624. // // 初始化验收镇级审批现场图
  2625. // this.uploadImgEndZhenPlan.fileList = value.tHouseApplyEnd ? value.tHouseApplyEnd.zhenPlan : '';
  2626. // this.uploadImgEndZhenPlan.proposerId = value.tHouseApplyProposer.id;
  2627. // 初始化申请平面图
  2628. this.uploadImg.fileList = value.ydjfsp ? value.ydjfsp.zjdzlpmwzt : '';
  2629. this.uploadImg.proposerId = this.applicationDetail.id;
  2630. // 初始化验收平面图
  2631. this.uploadImgAccepting.fileList = value.ydjfys ? value.ydjfys.jgpmjt : '';
  2632. this.uploadImgAccepting.proposerId = this.applicationDetail.id;
  2633. console.info(this.uploadImgAccepting);
  2634. //地图查看
  2635. this.applicationDetail = value;
  2636. this.pointDarw(null);
  2637. // this.pointDarwNature(null);
  2638. // this.pointWrapAcceptance(null);
  2639. // this.paintStartNatureMap(null);
  2640. // if(value.homeApplyStage == "1" ){
  2641. // if(this.applicationDetail.cjxzscyj !=null && this.applicationDetail.cjxzscyj !=''){
  2642. // this.formVisible.baseApplyForm.villageFormVisible = true;
  2643. // }
  2644. // console.info( this.formVisible.baseApplyForm.villageFormVisible);
  2645. // if(this.applicationDetail.ydjfsp != null && this.applicationDetail.ydjfsp.zfcxjsbmscyj !=null && this.applicationDetail.ydjfsp.zfcxjsbmscyj !=''){
  2646. // this.formVisible.baseApplyForm.buildingFormVisible = true;
  2647. // }
  2648. // if(this.applicationDetail.ydjfsp != null && this.applicationDetail.ydjfsp.nyncbmscyj !=null && this.applicationDetail.ydjfsp.nyncbmscyj !=''){
  2649. // this.formVisible.baseApplyForm.agricultureFormVisible = true;
  2650. // }
  2651. // if(this.applicationDetail.ydjfsp != null && this.applicationDetail.ydjfsp.zrzybmscyj !=null && this.applicationDetail.ydjfsp.zrzybmscyj !=''){
  2652. // this.formVisible.baseApplyForm.nature_resourceFormVisible = true;
  2653. // }
  2654. // if(this.applicationDetail.ydjfsp != null && this.applicationDetail.ydjfsp.xzzfshpzyj !=null && this.applicationDetail.ydjfsp.xzzfshpzyj !=''){
  2655. // this.formVisible.baseApplyForm.townFormVisible = true;
  2656. // }
  2657. // }
  2658. // if(value.homeApplyStage == "3" ){
  2659. // // if(this.applicationDetail.ydjfys.villageOption !=null && this.applicationDetail.ydjfys.villageOption !=''){
  2660. // // this.formVisible.baseApplyForm.villageFormVisible = true;
  2661. // // }
  2662. // // if(this.applicationDetail.tHouseApproveOtherOptions.approveOption !=null && this.applicationDetail.tHouseApproveOtherOptions.approveOption !=''){
  2663. // // this.formVisible.acceptingForm.baseFormVisible = false;
  2664. // // }
  2665. // if(this.applicationDetail.ydjfys.nyncbmysyj !=null && this.applicationDetail.ydjfys.nyncbmysyj !=''){
  2666. // this.formVisible.acceptingForm.agricultureFormVisible = true;
  2667. // }
  2668. // if(this.applicationDetail.ydjfys.zrzybmysyj !=null && this.applicationDetail.ydjfys.zrzybmysyj !=''){
  2669. // this.formVisible.acceptingForm.nature_resourceFormVisible = true;
  2670. // }
  2671. // if(this.applicationDetail.ydjfys.zfcxjsbmysyj !=null && this.applicationDetail.ydjfys.zfcxjsbmysyj !=''){
  2672. // this.formVisible.acceptingForm.buildingFormVisible = true;
  2673. // }
  2674. // if(this.applicationDetail.ydjfys.xzzfysyj !=null && this.applicationDetail.ydjfys.xzzfysyj !=''){
  2675. // this.formVisible.acceptingForm.townFormVisible = true
  2676. // }
  2677. // }
  2678. break;
  2679. // 编辑/审批
  2680. case PROPOSER_EDIT:
  2681. let handlerName = this.$store.getters.nickName;
  2682. let handlerTime = this.getDate();
  2683. this.applicationDetail = value;
  2684. if (this.type === "todo") {
  2685. if (this.isProposeStatus(homeApplyStatus, ["14"])) {
  2686. if (this.$route.query.electronicSignature != null) {
  2687. this.$set(this.applicationDetail, "cjxzscr", this.$route.query.electronicSignature);
  2688. } else {
  2689. this.$set(this.applicationDetail, "cjxzscr", this.$route.query.nickName);
  2690. }
  2691. } else if (this.isProposeStatus(homeApplyStatus, ["19"]) && this.isInRoles(role, ['nature_resource'])) {
  2692. if (this.$route.query.electronicSignature != null) {
  2693. this.$set(this.applicationDetail.ydjfsp, "zrzybmscrxm", this.$route.query.electronicSignature);
  2694. } else {
  2695. this.$set(this.applicationDetail.ydjfsp, "zrzybmscrxm", this.$route.query.nickName);
  2696. }
  2697. } else if (this.isProposeStatus(homeApplyStatus, ["19"]) && this.isInRoles(role, ['agriculture'])) {
  2698. if (this.$route.query.electronicSignature != null) {
  2699. this.$set(this.applicationDetail.ydjfsp, "nyncbmscrxm", this.$route.query.electronicSignature);
  2700. } else {
  2701. this.$set(this.applicationDetail.ydjfsp, "nyncbmscrxm", this.$route.query.nickName);
  2702. }
  2703. } else if (this.isProposeStatus(homeApplyStatus, ["19"]) && this.isInRoles(role, ['building'])) {
  2704. if (this.$route.query.electronicSignature != null) {
  2705. this.$set(this.applicationDetail.ydjfsp, "zfcxjsbmscrxm", this.$route.query.electronicSignature);
  2706. } else {
  2707. this.$set(this.applicationDetail.ydjfsp, "zfcxjsbmscrxm", this.$route.query.nickName);
  2708. }
  2709. } else if (this.isProposeStatus(homeApplyStatus, ["1C"]) && this.isInRoles(role, ['town_leader'])) {
  2710. if (this.$route.query.electronicSignature != null) {
  2711. this.$set(this.applicationDetail.ydjfsp, "xzzfshpzrxm", this.$route.query.electronicSignature);
  2712. } else {
  2713. this.$set(this.applicationDetail.ydjfsp, "xzzfshpzrxm", this.$route.query.nickName);
  2714. }
  2715. } else if (this.isProposeStatus(homeApplyStatus, ["79"]) && this.isInRoles(role, ['nature_resource'])) {
  2716. if (this.$route.query.electronicSignature != null) {
  2717. this.$set(this.applicationDetail.ydjfys, "zrzybmysjbrxm", this.$route.query.electronicSignature);
  2718. } else {
  2719. this.$set(this.applicationDetail.ydjfys, "zrzybmysjbrxm", this.$route.query.nickName);
  2720. }
  2721. } else if (this.isProposeStatus(homeApplyStatus, ["79"]) && this.isInRoles(role, ['agriculture'])) {
  2722. if (this.$route.query.electronicSignature != null) {
  2723. this.$set(this.applicationDetail.ydjfys, "nyncbmysjbrxm", this.$route.query.electronicSignature);
  2724. } else {
  2725. this.$set(this.applicationDetail.ydjfys, "nyncbmysjbrxm", this.$route.query.nickName);
  2726. }
  2727. } else if (this.isProposeStatus(homeApplyStatus, ["79"]) && this.isInRoles(role, ['building'])) {
  2728. if (this.$route.query.electronicSignature != null) {
  2729. this.$set(this.applicationDetail.ydjfys, "zfcxjsbmysjbrxm", this.$route.query.electronicSignature);
  2730. } else {
  2731. this.$set(this.applicationDetail.ydjfys, "zfcxjsbmysjbrxm", this.$route.query.nickName);
  2732. }
  2733. } else if (this.isProposeStatus(homeApplyStatus, ["7C"]) && this.isInRoles(role, ['town_leader'])) {
  2734. if (this.$route.query.electronicSignature != null) {
  2735. this.$set(this.applicationDetail.ydjfys, "xzzfysjbrxm", this.$route.query.electronicSignature);
  2736. } else {
  2737. this.$set(this.applicationDetail.ydjfys, "xzzfysjbrxm", this.$route.query.nickName);
  2738. }
  2739. }
  2740. }
  2741. if (this.isProposeStatus(homeApplyStatus, ["71", "72", "74", '77', "79", "7C"])) {
  2742. this.formEnabled.ysnrEnable = true;
  2743. }
  2744. this.formVisible.auditVisible = this.type === 'done' || this.type === 'todo';
  2745. // 申请-组级审批 初始化表单
  2746. if (hasGroupLevel) {
  2747. if (this.isProposeStatus(homeApplyStatus, ["32"])) {
  2748. let defaultGroupOption = this.form.groupOption
  2749. .replaceAll('{memberName}', this.applicationDetail.sqhhzxm)
  2750. ;
  2751. if (!value.tHouseApproveVillageOptions) {
  2752. this.$set(this.applicationDetail, 'tHouseApproveVillageOptions', {
  2753. groupLeader: handlerName,
  2754. groupTime: handlerTime,
  2755. groupOption: defaultGroupOption
  2756. });
  2757. } else {
  2758. if (!this.applicationDetail.tHouseApproveVillageOptions.groupLeader)
  2759. this.$set(this.applicationDetail.tHouseApproveVillageOptions, 'groupLeader', handlerName);
  2760. if (!this.applicationDetail.tHouseApproveVillageOptions.groupTime)
  2761. this.$set(this.applicationDetail.tHouseApproveVillageOptions, 'groupTime', handlerTime);
  2762. if (!this.applicationDetail.tHouseApproveVillageOptions.groupOption)
  2763. this.$set(this.applicationDetail.tHouseApproveVillageOptions, 'groupOption', defaultGroupOption);
  2764. }
  2765. }
  2766. }
  2767. // 申请-草稿
  2768. if (this.isProposeStatus(homeApplyStatus, ["11"])) {
  2769. this.formEnabled.baseApplyForm.baseFormEnabled = true;
  2770. this.formEnabled.baseApplyEnabled = true;
  2771. this.formEnabled.submitEnabled = true;
  2772. this.formVisible.editVisible = true;
  2773. }
  2774. // 申请-村级审核
  2775. else if (this.isProposeStatus(homeApplyStatus, ["14", "15", "17", "19"])) {
  2776. let neighbor = [];
  2777. if (this.applicationDetail.nsqzjdszd) neighbor.push(this.applicationDetail.nsqzjdszd);
  2778. if (this.applicationDetail.nsqzjdszx) neighbor.push(this.applicationDetail.nsqzjdszx);
  2779. if (this.applicationDetail.nsqzjdszn) neighbor.push(this.applicationDetail.nsqzjdszn);
  2780. if (this.applicationDetail.nsqzjdszb) neighbor.push(this.applicationDetail.nsqzjdszb);
  2781. neighbor = neighbor.join('、');
  2782. if (this.applicationDetail.cjxzscyj != null && this.applicationDetail.cjxzscyj !== "") {
  2783. this.$set(this.applicationDetail, 'cjxzscyj', this.applicationDetail.cjxzscyj);
  2784. this.$set(this.applicationDetail, 'cjxzscsj', this.applicationDetail.cjxzscsj);
  2785. } else {
  2786. let defaultVillageOption = this.form.villageOption
  2787. .replaceAll('{sqhhzxm}', this.applicationDetail.sqhhzxm)
  2788. .replaceAll('{nsqzjddz}', this.applicationDetail.nsqzjddz)
  2789. .replaceAll('{isAdvice}', neighbor);
  2790. this.$set(this.applicationDetail, 'cjxzscyj', defaultVillageOption);
  2791. this.$set(this.applicationDetail, 'cjxzscsj', handlerTime);
  2792. }
  2793. }
  2794. // 申请-镇级审批
  2795. // else if(this.isProposeStatus(homeApplyStatus, ["19"]))
  2796. // {
  2797. // // 自然资源部门
  2798. // if(!value.tHouseApproveNatureOptions)
  2799. // {
  2800. // this.$set(this.applicationDetail, "tHouseApproveNatureOptions", {
  2801. // landArea: null,
  2802. // rightsType: null,
  2803. // east: null, // 东至
  2804. // west: null, // 西至
  2805. // south: null, // 南至
  2806. // north: null, // 北至
  2807. // //approveLeader: handlerName,
  2808. // approveLeader: null,
  2809. // approveOption: null,
  2810. // approveTime: handlerTime,
  2811. // theGeom: value.tHouseApplyProposedSituation.theGeom,
  2812. // naturePlan: null, //现场拍照
  2813. // theGeomPoint: null, //现场坐标点
  2814. // });
  2815. // }
  2816. // else {
  2817. // if(!this.applicationDetail.tHouseApproveNatureOptions.approveLeader)
  2818. // // this.$set(this.applicationDetail.tHouseApproveNatureOptions, 'approveLeader', handlerName);
  2819. // if(!this.applicationDetail.tHouseApproveNatureOptions.approveTime)
  2820. // this.$set(this.applicationDetail.tHouseApproveNatureOptions, 'approveTime', handlerTime);
  2821. // }
  2822. // // 农村农业部门
  2823. // if(!value.tHouseApproveAgricultureOptions)
  2824. // {
  2825. // this.$set(this.applicationDetail, "tHouseApproveAgricultureOptions", {
  2826. // isMembership: null,
  2827. // isOnehouse: null,
  2828. // isReviewmaterials: null,
  2829. // //approveLeader: handlerName,
  2830. // approveLeader: null,
  2831. // approveOption: null,
  2832. // approveTime: handlerTime,
  2833. // agriculturePlan: null, //现场拍照
  2834. // theGeomPoint: null, //现场坐标点
  2835. // });
  2836. // }
  2837. // else {
  2838. // if(!this.applicationDetail.tHouseApproveAgricultureOptions.approveLeader)
  2839. // //this.$set(this.applicationDetail.tHouseApproveAgricultureOptions, 'approveLeader', handlerName);
  2840. // if(!this.applicationDetail.tHouseApproveAgricultureOptions.approveTime)
  2841. // this.$set(this.applicationDetail.tHouseApproveAgricultureOptions, 'approveTime', handlerTime);
  2842. // }
  2843. // // 住建部
  2844. // if(!value.tHouseApproveOtherOptions)
  2845. // {
  2846. // this.$set(this.applicationDetail, "tHouseApproveOtherOptions", {
  2847. // buildingType: null,
  2848. // buildingArea: null,
  2849. // buildingFloors: null,
  2850. // buildingHight: null,
  2851. // buildingLandArea: null,
  2852. // designPaper: "1",
  2853. // east: null, // 东至
  2854. // west: null, // 西至
  2855. // south: null, // 南至
  2856. // north: null, // 北至
  2857. // //approveLeader: handlerName,
  2858. // approveLeader: null,
  2859. // approveOption: null,
  2860. // approveTime: handlerTime,
  2861. // otherPlan: null, //现场拍照
  2862. // theGeomPoint: null, //现场坐标点
  2863. // });
  2864. // }
  2865. // else {
  2866. // if(!this.applicationDetail.tHouseApproveOtherOptions.approveLeader)
  2867. // // this.$set(this.applicationDetail.tHouseApproveOtherOptions, 'approveLeader', handlerName);
  2868. // if(!this.applicationDetail.tHouseApproveOtherOptions.approveTime)
  2869. // this.$set(this.applicationDetail.tHouseApproveOtherOptions, 'approveTime', handlerTime);
  2870. // }
  2871. // // 镇政府
  2872. // if(!value.tHouseApproveTownOptions)
  2873. // {
  2874. // this.$set(this.applicationDetail, 'tHouseApproveTownOptions', {
  2875. // //approveLeader: handlerName,
  2876. // approveLeader: null,
  2877. // approveTime: handlerTime,
  2878. // townPlan: null, //现场拍照
  2879. // theGeomPoint: null, //现场坐标点
  2880. // });
  2881. // }
  2882. // else {
  2883. // if(!this.applicationDetail.tHouseApproveTownOptions.approveLeader)
  2884. // // this.$set(this.applicationDetail.tHouseApproveTownOptions, 'approveLeader', handlerName);
  2885. // if(!this.applicationDetail.tHouseApproveTownOptions.approveTime)
  2886. // this.$set(this.applicationDetail.tHouseApproveTownOptions, 'approveTime', handlerTime);
  2887. // }
  2888. // // 勘察
  2889. // if(!value.tHouseApproveLocationplanOptions)
  2890. // {
  2891. // this.$set(this.applicationDetail, 'tHouseApproveLocationplanOptions', {
  2892. // locationPlan: null,
  2893. // cartographicUnit: null,
  2894. // surveyPersonnel: handlerName,
  2895. // suveyTime: handlerTime,
  2896. // cartographer: handlerName,
  2897. // cartographicTime: handlerTime,
  2898. // });
  2899. // }
  2900. // else {
  2901. // if(!this.applicationDetail.tHouseApproveLocationplanOptions.surveyPersonnel)
  2902. // this.$set(this.applicationDetail.tHouseApproveLocationplanOptions, 'surveyPersonnel', handlerName);
  2903. // if(!this.applicationDetail.tHouseApproveLocationplanOptions.suveyTime)
  2904. // this.$set(this.applicationDetail.tHouseApproveLocationplanOptions, 'suveyTime', handlerTime);
  2905. // if(!this.applicationDetail.tHouseApproveLocationplanOptions.cartographer)
  2906. // this.$set(this.applicationDetail.tHouseApproveLocationplanOptions, 'cartographer', handlerName);
  2907. // if(!this.applicationDetail.tHouseApproveLocationplanOptions.cartographicTime)
  2908. // this.$set(this.applicationDetail.tHouseApproveLocationplanOptions, 'cartographicTime', handlerTime);
  2909. // }
  2910. // console.info(this.formVisible.auditVisible);
  2911. // }
  2912. // 开工申请
  2913. else if (this.isProposeStatus(homeApplyStatus, ["10"])) {
  2914. if (!this.applicationDetail.tHouseApplyStart) {
  2915. this.$set(this.applicationDetail, 'tHouseApplyStart', {
  2916. startDate: null,
  2917. endDate: null,
  2918. });
  2919. }
  2920. } else if (this.isProposeStatus(homeApplyStatus, ["71"])) {
  2921. this.$set(this.formEnabled.acceptingForm, 'baseFormEnabled', false);
  2922. if (this.applicationDetail.ydjfys.sfxszfjsbzzc == null)
  2923. this.$set(this.applicationDetail.ydjfys, 'sfxszfjsbzzc', "N");
  2924. if (this.applicationDetail.ydjfys.qtysnr.clrsj == null)
  2925. this.$set(this.applicationDetail.ydjfys.qtysnr, 'clrsj', handlerTime);
  2926. if (this.applicationDetail.ydjfys.qtysnr.dsfwfsj == null)
  2927. this.$set(this.applicationDetail.ydjfys.qtysnr, 'dsfwfsj', handlerTime);
  2928. if (this.applicationDetail.ydjfys.qtysnr.zyjsrysj == null)
  2929. this.$set(this.applicationDetail.ydjfys.qtysnr, 'zyjsrysj', handlerTime);
  2930. }
  2931. // 开工二道场审批
  2932. else if (this.isProposeStatus(homeApplyStatus, ["39"])) {
  2933. if (this.isInRoles(role, ['nature_resource'])) {
  2934. this.formVisible.landscopeForm.nature_resourceFormEnabled = true;
  2935. console.info(this.formVisible.landscopeForm.nature_resourceFormEnabled);
  2936. }
  2937. }
  2938. // 验收镇级审批
  2939. else if (this.isProposeStatus(homeApplyStatus, ["79", "7C", "7F"])) {
  2940. if (this.isInRoles(role, ['town_leader'])) {
  2941. if (!this.applicationDetail.ydjfys.jgpmjtjbr) this.applicationDetail.ydjfys.jgpmjtjbr = handlerName;
  2942. if (!this.applicationDetail.ydjfys.xzzfysyj) //this.applicationDetail.tHouseApplyEnd.zhenName = handlerName;
  2943. if (!this.applicationDetail.ydjfys.xzzfyssj) this.applicationDetail.ydjfys.xzzfyssj = handlerTime;
  2944. }
  2945. if (this.isInRoles(role, ['agriculture'])) {
  2946. if (!this.applicationDetail.ydjfys.nyncbmysyj) //this.applicationDetail.tHouseApplyEnd.nongyeName = handlerName;
  2947. if (!this.applicationDetail.ydjfys.nyncbmyssj) this.applicationDetail.ydjfys.nyncbmyssj = handlerTime;
  2948. }
  2949. if (this.isInRoles(role, ['nature_resource'])) {
  2950. if (!this.applicationDetail.ydjfys.zrzybmysyj) //this.applicationDetail.tHouseApplyEnd.natureName = handlerName;
  2951. if (!this.applicationDetail.ydjfys.zrzybmyssj) this.applicationDetail.ydjfys.zrzybmyssj = handlerTime;
  2952. }
  2953. if (this.isInRoles(role, ['building'])) {
  2954. if (!this.applicationDetail.ydjfys.zfcxjsbmysyj) //this.applicationDetail.tHouseApplyEnd.natureName = handlerName;
  2955. if (!this.applicationDetail.ydjfys.zfcxjsbmyssj) this.applicationDetail.ydjfys.zfcxjsbmyssj = handlerTime;
  2956. }
  2957. if (0) {
  2958. if (!this.applicationDetail.ydjfys.buildingName) //this.applicationDetail.tHouseApplyEnd.buildingName = handlerName;
  2959. if (!this.applicationDetail.ydjfys.buildingTime) this.applicationDetail.tHouseApplyEnd.buildingTime = handlerTime;
  2960. }
  2961. // if(0) {
  2962. // if (!this.applicationDetail.ydjfys.isProjectFinished) this.applicationDetail.tHouseApplyEnd.isProjectFinished = 'Y';
  2963. // if (!this.applicationDetail.ydjfys.isQualifiedQuality) this.applicationDetail.tHouseApplyEnd.isQualifiedQuality = 'Y';
  2964. // if (!this.applicationDetail.ydjfys.hasBuildingRecord) this.applicationDetail.tHouseApplyEnd.hasBuildingRecord = 'Y';
  2965. // if (!this.applicationDetail.ydjfys.isSignWarranty) this.applicationDetail.tHouseApplyEnd.isSignWarranty = 'Y';
  2966. // if (!this.applicationDetail.ydjfys.isHandleProblem) this.applicationDetail.tHouseApplyEnd.isHandleProblem = 'Y';
  2967. // if (!this.applicationDetail.ydjfys.isDesignPaperSame) this.applicationDetail.tHouseApplyEnd.isDesignPaperSame = 'Y';
  2968. // if (!this.applicationDetail.ydjfys.isOtherAcceptanceFinished) this.applicationDetail.tHouseApplyEnd.isOtherAcceptanceFinished = 'Y';
  2969. // }
  2970. }
  2971. // 可见/隐藏
  2972. this.formVisible.baseApplyForm.groupFormVisible = hasGroupLevel && this.isNotProposeStatus(homeApplyStatus, ["1", "25"]);
  2973. this.formVisible.baseApplyForm.villageFormVisible = this.isNotProposeStatus(homeApplyStatus, ["11", "31", "71"]);
  2974. if (this.isNotProposeStatus(homeApplyStatus, ["11", "14", "15", "17", "31", "34", '71', '74'])) {
  2975. if (this.isInRoles(role, ['town_leader', 'agriculture'])) {
  2976. this.formVisible.baseApplyForm.agricultureFormVisible = true;
  2977. // this.applicationDetail.tHouseApproveAgricultureOptions.approveOption = null;
  2978. // this.applicationDetail.tHouseApproveAgricultureOptions.approveLeader = null;
  2979. this.applicationDetail.ydjfsp.nyncbmscsj = handlerTime;
  2980. }
  2981. if (this.isInRoles(role, ['town_leader', 'building'])) {
  2982. this.formVisible.baseApplyForm.buildingFormVisible = true;
  2983. // this.applicationDetail.tHouseApproveOtherOptions.approveOption = null;
  2984. // this.applicationDetail.tHouseApproveOtherOptions.approveLeader = null;
  2985. this.applicationDetail.ydjfsp.zfcxjsbmscsj = handlerTime;
  2986. }
  2987. if (this.isInRoles(role, ['town_leader', 'nature_resource'])) {
  2988. this.formVisible.baseApplyForm.nature_resourceFormVisible = true;
  2989. // this.applicationDetail.tHouseApproveNatureOptions.approveOption = null;
  2990. // this.applicationDetail.tHouseApproveNatureOptions.approveLeader = null;
  2991. this.applicationDetail.ydjfsp.zrzybmscsj = handlerTime;
  2992. }
  2993. if (this.isInRoles(role, ['town_leader'])) {
  2994. this.formVisible.baseApplyForm.townFormVisible = true;
  2995. // this.applicationDetail.tHouseApproveTownOptions.approveOption = null;
  2996. // this.applicationDetail.tHouseApproveTownOptions.approveLeader = null;
  2997. this.applicationDetail.ydjfsp.xzzfshpzsj = handlerTime;
  2998. this.applicationDetail.ydjfsp.zjdzlpmwzxctksj = handlerTime;
  2999. this.applicationDetail.ydjfsp.zckcsj = handlerTime;
  3000. this.wztUpdate = true;
  3001. }
  3002. }
  3003. this.formVisible.landscopeVisible = this.isNotProposeStatus(homeApplyStatus, ["12", "14", "15", "19", "1C", "1D", '1F',]);
  3004. this.formVisible.landscopeForm.baseFormVisible = this.isNotProposeStatus(homeApplyStatus, ["1", "32", "2", "3", "31", '4', '5', '6', '7', '8', '9', "25"]);
  3005. //this.formVisible.baseApplyForm.townFormVisible = this.landscopeVisible
  3006. this.formVisible.acceptingVisible = this.isProposeStatus(homeApplyStatus, ["71", "72", "74", "77", "79", "7C", "7F"]);
  3007. this.formVisible.acceptingForm.baseFormVisible = this.isProposeStatus(homeApplyStatus, ["71", "72", "74", "77", "79", "7C", "7F"]);
  3008. // selectProposerNh({hzzjhm:this.applicationDetail.sqhhzsfzh,deptId:value.deptId}).then(res => {
  3009. // if(res.rows.length > 0){
  3010. // this.getMemberCurrentSituation(res.rows[0].id);
  3011. // }
  3012. // });
  3013. (this.isProposeStatus(homeApplyStatus, ["79", "7C", "7F"]))
  3014. {
  3015. if (this.isInRoles(role, ['town_leader', 'agriculture'])) {
  3016. this.formVisible.acceptingForm.agricultureFormVisible = true;
  3017. }
  3018. if (this.isInRoles(role, ['town_leader', 'nature_resource'])) {
  3019. this.formVisible.acceptingForm.nature_resourceFormVisible = true;
  3020. }
  3021. if (this.isInRoles(role, ['town_leader', 'building'])) {
  3022. this.formVisible.acceptingForm.buildingFormVisible = true;
  3023. }
  3024. if (this.isInRoles(role, ['town_leader'])) {
  3025. this.formVisible.acceptingForm.townFormVisible = true;
  3026. }
  3027. }
  3028. // 禁用/启用
  3029. this.formEnabled.baseApplyForm.groupFormEnabled = hasGroupLevel && this.isProposeStatus(homeApplyStatus, ["12", '32', "72"]) && this.isInRoles(role, 'village_group_leader');
  3030. this.formEnabled.baseApplyForm.villageFormEnabled = this.isProposeStatus(homeApplyStatus, ["14", "34", "74"]) && this.isInRoles(role, 'village_leader');
  3031. // //驳回时审批意见及签名清空
  3032. // if(this.formEnabled.baseApplyForm.villageFormEnabled){
  3033. // this.applicationDetail.tHouseApproveVillageOptions.villageLeader = null;
  3034. // //this.applicationDetail.tHouseApproveVillageOptions.
  3035. // }
  3036. if (this.isProposeStatus(homeApplyStatus, ['19', "1C"])) {
  3037. if (this.isInRoles(role, ['agriculture'])) {
  3038. this.formEnabled.baseApplyForm.agricultureFormEnabled = true;
  3039. }
  3040. if (this.isInRoles(role, ['building'])) {
  3041. this.formEnabled.baseApplyForm.buildingFormEnabled = true;
  3042. }
  3043. if (this.isInRoles(role, ['nature_resource'])) {
  3044. this.formEnabled.baseApplyForm.nature_resourceFormEnabled = true;
  3045. }
  3046. if (this.isInRoles(role, ['town_leader'])) {
  3047. this.formEnabled.baseApplyForm.townFormEnabled = true;
  3048. }
  3049. }
  3050. this.formEnabled.landscopeEnabled = this.isProposeStatus(homeApplyStatus, ['31']);
  3051. this.formEnabled.landscopeForm.baseFormEnabled = this.isProposeStatus(homeApplyStatus, ['31']);
  3052. this.formEnabled.acceptingEnabled = this.isProposeStatus(homeApplyStatus, ['71']);
  3053. this.formEnabled.acceptingForm.baseFormEnabled = this.isProposeStatus(homeApplyStatus, ['71']);
  3054. if (this.isProposeStatus(homeApplyStatus, ['79', "7C"])) {
  3055. if (this.isInRoles(role, ['agriculture'])) {
  3056. this.formEnabled.acceptingForm.agricultureFormEnabled = true;
  3057. }
  3058. if (this.isInRoles(role, ['nature_resource'])) {
  3059. this.formEnabled.acceptingForm.nature_resourceFormEnabled = true;
  3060. }
  3061. if (this.isInRoles(role, ['building'])) {
  3062. this.formEnabled.acceptingForm.buildingFormEnabled = true;
  3063. }
  3064. if (this.isInRoles(role, ['town_leader'])) {
  3065. this.formEnabled.acceptingForm.townFormEnabled = true;
  3066. }
  3067. }
  3068. // this.applicationDetail.tHouseApplyProposer = value.tHouseApplyProposer;
  3069. // this.applicationDetail.tHouseApplyCurrentSituation = value.tHouseApplyCurrentSituation;
  3070. // this.applicationDetail.tHouseApplyProposedSituation = value.tHouseApplyProposedSituation;
  3071. //this.formEnabled.landscopeEnabled = value.startDraft;
  3072. //this.formVisible.baseApplyForm.townFormVisible = this.isLandscope(homeApplyStatus, ["12", "13", "14", "15", "16", "17", "28", "19", "18"]);
  3073. //this.formVisible.baseApplyForm.townFormVisible = this.isProposeStatus(houseApplyStatus, ["18", "20", "21", "22", "23", "24", "25", "30", "29", "26"]);
  3074. //this.applicationDetail.tHouseApplyProposer = this.isProposeStatus(houseApplyStatus, ["18", "20", "21", "22", "23", "24", "25", "30", "29", "26"]);
  3075. //this.formVisible.baseApplyForm.villageFormVisible = this.isProposeStatus(houseApplyStatus, ["18", "20", "21", "22", "23", "24", "25", "30", "29", "26"]);
  3076. //this.formVisible.acceptingVisible = this.isProposeStatus(houseApplyStatus, ["18", "20", "21", "22", "23", "24", "25", "30", "29", "26"]);
  3077. if (this.isLandscope()) {
  3078. this.houseApplyUploadComp.full = true;
  3079. this.houseApplyUploadCompStart.full = false;
  3080. this.houseApplyUploadCompEnd.full = false;
  3081. this.houseApplyUploadComp.readonly = homeApplyStatus != '11';
  3082. this.houseApplyUploadCompStart.readonly = false;
  3083. this.houseApplyUploadCompEnd.readonly = true;
  3084. } else if (this.isAccepting()) {
  3085. this.houseApplyUploadComp.full = true;
  3086. this.houseApplyUploadCompStart.full = true;
  3087. this.houseApplyUploadCompEnd.full = false;
  3088. this.houseApplyUploadComp.readonly = true;
  3089. this.houseApplyUploadCompStart.readonly = true;
  3090. this.houseApplyUploadCompEnd.readonly = false;
  3091. } else { // this.isBaseApply()
  3092. this.houseApplyUploadComp.full = false;
  3093. this.houseApplyUploadCompStart.full = false;
  3094. this.houseApplyUploadCompEnd.full = false;
  3095. this.houseApplyUploadComp.readonly = false;
  3096. this.houseApplyUploadCompStart.readonly = homeApplyStatus == '11' ? false : true;
  3097. this.houseApplyUploadCompEnd.readonly = true;
  3098. }
  3099. this.houseApplyUploadComp.proposerId = proposerId;
  3100. this.houseApplyUploadComp.homeApplyStatus = homeApplyStatus == '12' ? '10' : homeApplyStatus; // 申请通过是10 被驳回是12;
  3101. this.houseApplyUploadCompStart.proposerId = proposerId;
  3102. this.houseApplyUploadCompStart.homeApplyStatus = homeApplyStatus == '10' ? '12' : homeApplyStatus; // 申请通过是10 被驳回是12
  3103. this.houseApplyUploadCompEnd.proposerId = proposerId;
  3104. this.houseApplyUploadCompEnd.homeApplyStatus = homeApplyStatus;
  3105. // 初始化村级审核现场图
  3106. this.uploadImgVillage.fileList = value.tHouseApproveVillageOptions ? value.tHouseApproveVillageOptions.villagePlan : '';
  3107. this.uploadImgVillage.proposerId = value.id;
  3108. // 初始化自然资源审批现场图
  3109. this.uploadImgNature.fileList = value.tHouseApproveNatureOptions ? value.tHouseApproveNatureOptions.naturePlan : '';
  3110. this.uploadImgNature.proposerId = value.id;
  3111. // 初始化其他部审批现场图
  3112. this.uploadImgOther.fileList = value.tHouseApproveOtherOptions ? value.tHouseApproveOtherOptions.otherPlan : '';
  3113. this.uploadImgOther.proposerId = value.id;
  3114. // 初始化农村农业部审批现场图
  3115. this.uploadImgAgriculture.fileList = value.tHouseApproveAgricultureOptions ? value.tHouseApproveAgricultureOptions.agriculturePlan : '';
  3116. this.uploadImgAgriculture.proposerId = value.id;
  3117. // 初始化镇级审批现场图
  3118. this.uploadImgTown.fileList = value.tHouseApproveTownOptions ? value.tHouseApproveTownOptions.townPlan : '';
  3119. this.uploadImgTown.proposerId = value.id;
  3120. // 初始化验收农村农业部审批现场图
  3121. this.uploadImgEndNongyePlan.fileList = value.tHouseApplyEnd ? value.tHouseApplyEnd.nongyePlan : '';
  3122. this.uploadImgEndNongyePlan.proposerId = value.id;
  3123. // 初始化验收自然资源部审批现场图
  3124. this.uploadImgEndNaturePlan.fileList = value.tHouseApplyEnd ? value.tHouseApplyEnd.naturePlan : '';
  3125. this.uploadImgEndNaturePlan.proposerId = value.id;
  3126. // 初始化验收其他部门审批现场图
  3127. this.uploadImgEndBuildingPlan.fileList = value.tHouseApplyEnd ? value.tHouseApplyEnd.buildingPlan : '';
  3128. this.uploadImgEndBuildingPlan.proposerId = value.id;
  3129. // 初始化验收镇级审批现场图
  3130. this.uploadImgEndZhenPlan.fileList = value.tHouseApplyEnd ? value.tHouseApplyEnd.zhenPlan : '';
  3131. this.uploadImgEndZhenPlan.proposerId = value.id;
  3132. // 初始化申请平面图
  3133. this.applicationDetail.tHouseApproveLocationplanOptions = value.tHouseApproveLocationplanOptions;
  3134. this.uploadImg.fileList = value.ydjfsp ? value.ydjfsp.zjdzlpmwzt : '';
  3135. this.uploadImg.proposerId = this.applicationDetail.id;
  3136. this.uploadImgAccepting.fileList = value.ydjfys ? value.ydjfys.jgpmjt : '';
  3137. this.uploadImgAccepting.proposerId = this.applicationDetail.id;
  3138. console.info("-------------------------" + role + "-------------------------");
  3139. //地图编辑
  3140. this.pointDarw(null);
  3141. // this.pointDarwNature(null);
  3142. // this.pointWrapAcceptance(null);
  3143. // this.paintStartNatureMap(null);
  3144. break;
  3145. // 新建
  3146. case PROPOSER_ADD:
  3147. this.formEnabled.baseApplyEnabled = true;
  3148. this.formEnabled.baseApplyForm.baseFormEnabled = true;
  3149. this.formEnabled.submitEnabled = true;
  3150. this.formVisible.editVisible = true;
  3151. this.houseApplyUploadComp.full = false;
  3152. this.houseApplyUploadComp.readonly = false;
  3153. this.houseApplyUploadComp.homeApplyStatus = '11';
  3154. this.houseApplyUploadComp.proposerId = -1;
  3155. this.$nextTick(() => {
  3156. getWorkflow(this.sysFarmer.deptId).then((resp) => {
  3157. this.$set(this.applicationDetail, 'proposerActiveIndex', 0);
  3158. this.$set(this.applicationDetail, 'startActiveIndex', -1);
  3159. this.$set(this.applicationDetail, 'endActiveIndex', -1);
  3160. this.$set(this.applicationDetail, 'applyStepList', resp.data.applyStepList.name);
  3161. this.$set(this.applicationDetail, 'startStepList', resp.data.startStepList.name);
  3162. this.$set(this.applicationDetail, 'endStepList', resp.data.endStepList.name);
  3163. });
  3164. })
  3165. this.pointDarw();
  3166. //this.initData();
  3167. break;
  3168. }
  3169. // 通用设置
  3170. // if(this.type =='done' && this.applicationDetail.tHouseApplyEnd == null && this.applicationDetail.tHouseApplyEnd.taskId ==null){
  3171. if (this.type == 'done' && this.applicationDetail.ydjfys == null) {
  3172. if (this.isAccepting()) {
  3173. this.active = PROPOSER_STAGE_START;
  3174. this.selectedTabName = PROPOSER_STAGE_START;
  3175. this.processKeyField = PROPOSER_STAGE_START_ACTIVITY;
  3176. this.attachmentActive = PROPOSER_STAGE_START;
  3177. } else if (this.isLandscope()) {
  3178. this.active = PROPOSER_STAGE_START;
  3179. this.selectedTabName = PROPOSER_STAGE_START;
  3180. this.processKeyField = PROPOSER_STAGE_START_ACTIVITY;
  3181. this.attachmentActive = PROPOSER_STAGE_START;
  3182. } else { // this.isBaseApply()
  3183. this.active = PROPOSER_STAGE_BASE_APPLY;
  3184. this.selectedTabName = PROPOSER_STAGE_BASE_APPLY;
  3185. this.attachmentActive = PROPOSER_STAGE_BASE_APPLY;
  3186. // 编辑时且为申请通过状态 -> 填写开工
  3187. if (this.proposerStatus == PROPOSER_EDIT && homeApplyStatus == '10') {
  3188. this.active = PROPOSER_STAGE_START;
  3189. this.selectedTabName = PROPOSER_STAGE_START;
  3190. this.attachmentActive = PROPOSER_STAGE_START;
  3191. }
  3192. this.processKeyField = PROPOSER_STAGE_BASE_APPLY_ACTIVITY;
  3193. }
  3194. } else {
  3195. console.info(this.applicationDetail);
  3196. if (this.isLandscope()) {
  3197. this.active = PROPOSER_STAGE_START;
  3198. this.selectedTabName = PROPOSER_STAGE_START;
  3199. this.processKeyField = PROPOSER_STAGE_START_ACTIVITY;
  3200. this.attachmentActive = PROPOSER_STAGE_START;
  3201. } else if (this.isAccepting()) {
  3202. this.active = PROPOSER_STAGE_END;
  3203. this.selectedTabName = PROPOSER_STAGE_END;
  3204. // 编辑时且为申请通过状态 -> 查看验收草稿
  3205. if (this.proposerStatus == PROPOSER_VIEW && this.isProposeStatus(homeApplyStatus, ["3F"])) {
  3206. this.selectedTabName = PROPOSER_STAGE_START;
  3207. }
  3208. this.processKeyField = PROPOSER_STAGE_END_ACTIVITY;
  3209. this.attachmentActive = PROPOSER_STAGE_END;
  3210. } else { // this.isBaseApply()
  3211. this.active = PROPOSER_STAGE_BASE_APPLY;
  3212. this.selectedTabName = PROPOSER_STAGE_BASE_APPLY;
  3213. this.attachmentActive = PROPOSER_STAGE_BASE_APPLY;
  3214. // 编辑时且为申请通过状态 -> 填写开工
  3215. if (this.proposerStatus == PROPOSER_EDIT && homeApplyStatus == '1F') {
  3216. this.active = PROPOSER_STAGE_START;
  3217. this.selectedTabName = PROPOSER_STAGE_START;
  3218. this.attachmentActive = PROPOSER_STAGE_START;
  3219. }
  3220. this.processKeyField = PROPOSER_STAGE_BASE_APPLY_ACTIVITY;
  3221. }
  3222. }
  3223. },
  3224. onJflxChanged(val) {
  3225. let _this = this;
  3226. this.jflxColumns.map(function (item) {
  3227. if (item.dictValue === val) {
  3228. _this.$set(_this.applicationDetail, 'projectName', item.dictLabel);
  3229. _this.$set(_this.applicationDetail, 'jflx', item.dictValue);
  3230. }
  3231. });
  3232. },
  3233. // 获取query的意图
  3234. getFormIntent() {
  3235. console.log(this.type);
  3236. switch (this.type) {
  3237. case 'done':
  3238. case 'view':
  3239. this.proposerStatus = PROPOSER_VIEW;
  3240. break;
  3241. case 'add':
  3242. this.proposerStatus = PROPOSER_ADD;
  3243. break;
  3244. case 'modify':
  3245. case 'audit':
  3246. case 'todo':
  3247. this.proposerStatus = PROPOSER_EDIT;
  3248. break;
  3249. default:
  3250. this.proposerStatus = PROPOSER_VIEW;
  3251. break;
  3252. }
  3253. return this.proposerStatus;
  3254. },
  3255. // 获取日期, yyyy-MM-dd
  3256. getDate(d) {
  3257. return formatDate(d ? d : new Date(), 'yyyy-MM-dd');
  3258. },
  3259. // 初始化基础表单
  3260. reset() {
  3261. this.applicationDetail = {
  3262. sqhhzxm: "",
  3263. sqhhzxb: "",
  3264. sqhhznl: "" /* 年龄*/,
  3265. sqhhzlxdh: "",
  3266. sqhhzsfzh: "",
  3267. sqhhzhkszd: "",
  3268. sqhjtzz: "",
  3269. members: 0, // 家庭人口数
  3270. applyTime: this.getDate(),
  3271. sqly: "",
  3272. houseSource: "建房申请来源{农户自制,协管代办}", // 字典
  3273. homeApplyStatus: "", // 字典
  3274. auditStatus: "", // 字典
  3275. taskId: "",
  3276. taskName: "",
  3277. auditbatchNo: "",
  3278. processKey: "",
  3279. existHomestead: "N",
  3280. xzjdmj: null, //现宅基地面积
  3281. qszsh: null,//权属证书号
  3282. xjzmj: null,//现建筑面积
  3283. xzjdczqk: null,// 现宅基地处置情况
  3284. xzjdblmj: null, //现宅基地保留面积m²
  3285. xzjdqtqk: null,// 现宅基地其他情况
  3286. nsqzjddz: null, // 拟申请宅基地地址
  3287. nsqzjdmj: null, // 拟申请宅基地面积
  3288. nsqzjdszd: null, // 东至
  3289. nsqzjdszx: null, // 西至
  3290. nsqzjdszn: null, // 南至
  3291. nsqzjdszb: null, // 北至
  3292. nsqzjddldm: "10", // 地类
  3293. zfjzmj: null, // 建筑面积
  3294. jzcs: null, // 建筑层数
  3295. jzgd: null, // 建筑高度
  3296. sjtz: "1", // 设计图纸
  3297. sfzqxlqlryj: "1", // 是否征求相邻权利人意见
  3298. jflx: "4",
  3299. nsqfjzdmj: null, //房基占地面积
  3300. sqrjtcyList: [],
  3301. fileList: []
  3302. }
  3303. },
  3304. //是否有宅基地选项改变
  3305. existHomesteadChange(name) {
  3306. console.log(name);
  3307. this.applicationDetail.sfzqxlqlryj = name;
  3308. // if (name == 'Y'){
  3309. // if (!this.applicationDetail.tHouseApplyCurrentSituation){
  3310. // //现宅基地情况
  3311. // this.$set(this.applicationDetail, 'tHouseApplyCurrentSituation', {
  3312. // //宅基地面积
  3313. // landArea: null,
  3314. // //人均宅基地面积
  3315. // landPerArea: null,
  3316. // //不动产单元号
  3317. // landCertificateNo: null,
  3318. // //农民房屋幢号
  3319. // houseCertificateNo: null,
  3320. // //建筑面积
  3321. // buildingArea: null,
  3322. // //人均建筑面积
  3323. // buildingPerArea: null,
  3324. // //现宅基地处置情况 字典 land_isposal
  3325. // landIsposal: null
  3326. // });
  3327. // }
  3328. // }
  3329. // else
  3330. // this.$set(this.applicationDetail, 'tHouseApplyCurrentSituation', null);
  3331. },
  3332. //添加家庭成员
  3333. addFamily() {
  3334. this.applicationDetail.tHouseApplyProposer.members++;
  3335. this.applicationDetail.tHomeapplySqrjtcys.push({
  3336. //applyProposerId: this.applicationDetail.tHouseApplyFamilyMembers[0].applyProposerId,
  3337. memberName: null,
  3338. age: null,
  3339. familyStatusName: null,
  3340. idcard: null,
  3341. householdRegister: null,
  3342. });
  3343. this.$nextTick(() => {
  3344. this.$refs.memberTabs.scrollTo(this.applicationDetail.tHomeapplySqrjtcys.length - 1);
  3345. });
  3346. },
  3347. //删除家庭成员
  3348. deleteFamily(index) {
  3349. this.applicationDetail.tHouseApplyProposer.members--;
  3350. this.applicationDetail.tHomeapplySqrjtcys.splice(index, 1)
  3351. this.$nextTick(() => {
  3352. this.$refs.memberTabs.scrollTo(Math.max(index - 1, 0));
  3353. });
  3354. },
  3355. remoteTransfereeMethod(val) {
  3356. selectProposerNh({hzxm: val, deptId: this.sysFarmer.deptId}).then(res => {
  3357. this.nhxxList = res.rows;
  3358. this.showNhxx = true;
  3359. });
  3360. },
  3361. //返回上一步操作
  3362. goBack() {
  3363. // this.$router.push({path: '/sunVillage_info/homeApplication/applicationList'});
  3364. // this.$router.back(-1);
  3365. this.$router.push({name: this.$router.back(-1)});
  3366. },
  3367. // 当地图绘制完成时
  3368. onMapDrawFinished(data) {
  3369. console.info(data);
  3370. this.drawInsert = data;
  3371. },
  3372. // 当申请地图被重置时
  3373. onMapDrawReseted() {
  3374. this.drawInsert = null;
  3375. if (this.applicationDetail.ydjfkg.theGeomJson) {
  3376. let lastData = JSON.parse(this.applicationDetail.ydjfkg.theGeomJson);
  3377. if (lastData.hasOwnProperty('coordinates')) // 从后台获取的
  3378. this.drawInsert = lastData.coordinates;
  3379. }
  3380. },
  3381. // 全局提交
  3382. onSubmit(intent) {
  3383. console.log(this.applicationDetail, intent);
  3384. let chars = window.location.href.split("lat=")[1] || "";
  3385. if (chars != "" && chars != null && chars != undefined) {
  3386. this.mapBcZb = [window.location.href.split("lng=")[1] || "", (window.location.href.split("lat=")[1] || "").split("&lng=")[0] || ""];
  3387. this.mapZbQd();
  3388. }
  3389. switch (intent) {
  3390. case 'add':
  3391. case 'modify':
  3392. this.saveProposerApply();
  3393. break;
  3394. case 'submit':
  3395. this.submitApplyProposer();
  3396. break;
  3397. case 'save_and_submit':
  3398. this.saveProposerApply(true);
  3399. break;
  3400. case 'agree':
  3401. this.auditProposer(true);
  3402. break;
  3403. case 'reject':
  3404. this.$dialog.confirm({
  3405. message: '是否确认驳回此条申请',
  3406. }).then(() => {
  3407. this.auditProposer(false);
  3408. });
  3409. break;
  3410. case 'start':
  3411. this.startProposerApply();
  3412. break;
  3413. case 'start_and_submit':
  3414. this.startProposerApply(true);
  3415. break;
  3416. case 'end':
  3417. this.endProposerApply(true);
  3418. break;
  3419. default:
  3420. console.error('Unknown intent! ', intent);
  3421. break;
  3422. }
  3423. },
  3424. // 初次申请草稿的附件上传
  3425. onUploadFinished(fileIdList,fileTypeList) {
  3426. let _this = this;
  3427. this.fileIdList = [];
  3428. this.fileTypeList = [];
  3429. // setTimeout(() => {
  3430. fileIdList.forEach(function (item) {
  3431. _this.fileIdList.push(item.id);
  3432. _this.fileTypeList.push(item.fileType);
  3433. })
  3434. // }, 3000);
  3435. this.$set(this.applicationDetail, "fileList", this.fileIdList);
  3436. },
  3437. // 获取申请人信息
  3438. getApplyerDetail(val) {
  3439. getHomeMembers({idcard: val.idcard}).then(res => {
  3440. if (res.data) {
  3441. this.applicationDetail = res.data;
  3442. this.$set(this.applicationDetail, 'jflx', "4");
  3443. this.$set(this.applicationDetail, 'projectName', "分户新建");
  3444. this.$set(this.applicationDetail, 'nsqzjddldm', "10");
  3445. this.$set(this.applicationDetail, 'sfzqxlqlryj', "1");
  3446. this.$set(this.applicationDetail, 'xzjdczqk', "1");
  3447. this.$set(this.applicationDetail, 'suyqrdm', val.suyqrdm);
  3448. this.$set(this.applicationDetail, 'deptName', val.deptName);
  3449. this.$set(this.applicationDetail, 'createBy', val.memberName);
  3450. if (!this.applicationDetail.sfyyzjd)
  3451. this.applicationDetail.sfyyzjd = 'N';
  3452. this.applicationDetail.applyTime = this.getDate();
  3453. this.getMemberCurrentSituation(val.idcard);
  3454. console.info(this.applicationDetail.sqrjtcyList);
  3455. if (this.applicationDetail.sqrjtcyList.length > 0) {
  3456. for (let i = 0; i < this.applicationDetail.sqrjtcyList.length; i++) {
  3457. this.updateMemberInfo(i);
  3458. }
  3459. }
  3460. }
  3461. });
  3462. this.showNhxx = false;
  3463. },
  3464. // 检查字符串, 不符合返回true
  3465. checkString(value, regexp) {
  3466. let res = value === undefined || value === null || value === '' || value.toString().trim().length === 0;
  3467. if (res)
  3468. return true;
  3469. if (regexp)
  3470. res = !value.match(regexp);
  3471. return res;
  3472. },
  3473. // 保存申请(是否提交)
  3474. saveProposerApply(submit) {
  3475. this.$refs.form.validate().then(() => {
  3476. this.$toast.loading({
  3477. message: "数据处理中...",
  3478. forbidClick: true,
  3479. });
  3480. // setTimeout(() => {
  3481. let msg = this.validateBaseApplyFormBase();;
  3482. if (msg) {
  3483. this.$toast.clear();
  3484. this.notify(msg, 'danger');
  3485. return;
  3486. }
  3487. console.log("进行保存", this.applicationDetail);
  3488. this.$set(this.applicationDetail, 'applyUserId', this.sysFarmer.id);
  3489. this.$set(this.applicationDetail, 'auditStatus', "0");
  3490. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3491. if (submit) {
  3492. this.id = response.data;
  3493. this.submitApplyProposer();
  3494. } else {
  3495. if (response.code === 200) {
  3496. this.$toast.clear();
  3497. this.notify("保存成功", 'success');
  3498. this.goBack();
  3499. } else {
  3500. this.$toast.clear();
  3501. this.notify("保存失败,申请人没有资格权!", 'danger');
  3502. }
  3503. }
  3504. }).catch((e) => {
  3505. this.$toast.clear();
  3506. this.notify("保存失败!", 'danger');
  3507. }).finally(() => {
  3508. });
  3509. // }, 3000);
  3510. // //地图判断
  3511. // if (this.drawInsert != null) {
  3512. // this.applicationDetail.theGeom = JSON.stringify(this.drawInsert);
  3513. // }
  3514. // else
  3515. // {
  3516. // if(this.applicationDetail.sfyyzjd === 'Y' && this.applicationDetail.theGeom) // 新增时 && 已有宅基地时 && 重新画过图且被清理掉
  3517. // {
  3518. // this.applicationDetail.theGeom = this.convertGeom(this.applicationDetail.theGeom);
  3519. // }
  3520. // }
  3521. }).catch(e => {
  3522. let msg = this.validateBaseApplyFormBase();
  3523. if (msg) {
  3524. this.notify(msg, 'danger');
  3525. return;
  3526. }
  3527. });
  3528. },
  3529. // 判断状态是否符合
  3530. isProposeStatus(target, arr) {
  3531. if (!Array.isArray(arr))
  3532. arr = arr.split(',');
  3533. return arr.indexOf(target) !== -1;
  3534. },
  3535. // 判断状态是否不符合
  3536. isNotProposeStatus(target, arr) {
  3537. return !this.isProposeStatus(target, arr);
  3538. },
  3539. // 是否当前是申请流程
  3540. isBaseApply() {
  3541. return ["11", "12", "13", "14", "15", "17", "19", "1C", "1D", "1F"].indexOf(this.applicationDetail.homeApplyStatus) !== -1;
  3542. },
  3543. // 是否当前是开工流程
  3544. isLandscope() {
  3545. return ["31", "32", "34", "3C", "3F", "37", "39"].indexOf(this.applicationDetail.homeApplyStatus) !== -1;
  3546. },
  3547. // 是否当前是验收流程
  3548. isAccepting() {
  3549. return ["71", "72", "74", "77", "79", "7C", "7F"].indexOf(this.applicationDetail.homeApplyStatus) !== -1;
  3550. },
  3551. // 获取当前申请人的宅基地信息
  3552. getMemberCurrentSituation(item) {
  3553. let _this = this;
  3554. let farmerCode = this.applicationDetail.nhdm;
  3555. checkDuplicateBuilding({farmerCode: farmerCode}).then(resp => {
  3556. if (resp.data) {
  3557. this.notify(resp.msg, 'danger');
  3558. } else {
  3559. checkDuplicateBuildingQuery(item).then(resp => {
  3560. if (resp.data != null && resp.data != "") {
  3561. this.applicationDetail.sfyyzjd = "Y";
  3562. // 现宅基地及农房情况对象
  3563. if (resp.data.zjdzdxxList.length > 0) {
  3564. this.zjdzdxxList = resp.data.zjdzdxxList;
  3565. this.applicationDetail.xzjdmj = resp.data.zjdzdxxList[0].zdmj; //宅基地面积
  3566. this.applicationDetail.xjzmj = resp.data.zjdzdxxList[0].scjzmj;
  3567. this.applicationDetail.qszsh = resp.data.zjdzdxxList[0].zsh;
  3568. this.showZjddm = resp.data.zjdzdxxList[0].zjddm;
  3569. this.$set(this.zjdzdxxDetailed, 'zdszd', resp.data.zjdzdxxList[0].zdszd);
  3570. this.$set(this.zjdzdxxDetailed, 'zdszn', resp.data.zjdzdxxList[0].zdszn);
  3571. this.$set(this.zjdzdxxDetailed, 'zdszx', resp.data.zjdzdxxList[0].zdszx);
  3572. this.$set(this.zjdzdxxDetailed, 'zdszb', resp.data.zjdzdxxList[0].zdszb);
  3573. this.$set(this.applicationDetail, 'sfyyzjd', "Y");
  3574. resp.data.zjdzdxxList.forEach(function (item) {
  3575. _this.zjddmColumns.push({text: item.zjddm, value: item.zjddm});
  3576. })
  3577. } else {
  3578. this.$set(this.applicationDetail, 'sfyyzjd', "N");
  3579. }
  3580. // this.applicationDetail.tHouseApplyCurrentSituation.landPerArea= (resp.data.zdmj/(this.applicationDetail.tHouseApplyProposer.members +1)); //人均宅基地面积
  3581. // this.applicationDetail.tHouseApplyCurrentSituation.landCertificateNo= resp.data.bdcdyh; //不动产单元号
  3582. // this.applicationDetail.tHouseApplyCurrentSituation.buildingArea= resp.data.scjzmj; //建筑面积
  3583. // this.applicationDetail.tHouseApplyCurrentSituation.buildingPerArea= (resp.data.scjzmj/(this.applicationDetail.tHouseApplyProposer.members +1)); //人均建筑面积
  3584. // this.applicationDetail.tHouseApplyCurrentSituation.houseCertificateNo= resp.data.zrzh; //自然幢号
  3585. // this.applicationDetail.tHouseApplyCurrentSituation.landIsposal= null; // 现宅基地处置情况
  3586. // this.applicationDetail.tHouseApplyCurrentSituation.reservedArea= null; // 保留m²
  3587. // this.applicationDetail.tHouseApplyCurrentSituation.otherRemark= null; // 其他
  3588. // this.renderMapRegion(resp.data.theGeom);
  3589. } else {
  3590. // this.applicationDetail.sfyyzjd ="N";
  3591. // // 现宅基地及农房情况对象
  3592. // this.applicationDetail.tHouseApplyCurrentSituation.landArea = null; //宅基地面积
  3593. // this.applicationDetail.tHouseApplyCurrentSituation.landPerArea= null; //人均宅基地面积
  3594. // this.applicationDetail.tHouseApplyCurrentSituation.landCertificateNo= null; //权属证书号
  3595. // this.applicationDetail.tHouseApplyCurrentSituation.buildingPerArea= null; //人均建筑面积
  3596. // this.applicationDetail.tHouseApplyCurrentSituation.houseCertificateNo= null; //权属证书号
  3597. // this.applicationDetail.tHouseApplyCurrentSituation.landIsposal= null; // 现宅基地处置情况
  3598. // this.applicationDetail.tHouseApplyCurrentSituation.reservedArea= null; // 保留m²
  3599. // this.applicationDetail.tHouseApplyCurrentSituation.otherRemark= null; // 其他
  3600. // this.renderMapRegion(null);
  3601. }
  3602. });
  3603. }
  3604. });
  3605. },
  3606. // 绘制现有宅基地地图
  3607. renderMapRegion(json = null) { // json = theGeom
  3608. this.applicationDetail.tHouseApplyProposedSituation.theGeom = json;
  3609. if (json) {
  3610. let obj = JSON.parse(json);
  3611. this.drawInsert = obj.coordinates;
  3612. } else
  3613. this.drawInsert = null;
  3614. this.pointDarw(null);
  3615. },
  3616. // 提交申请
  3617. submitApplyProposer() {
  3618. if (this.applicationDetail.auditStatus == '2' && this.selectedTabName == 0) {
  3619. updateOpretion(this.id).then();
  3620. }
  3621. submitApplication(this.id).then((resp) => {
  3622. this.$toast.clear();
  3623. this.notify("提交成功", 'success');
  3624. this.goBack();
  3625. }).catch((e) => {
  3626. this.notify("提交失败!", 'danger');
  3627. }).finally(() => {
  3628. });
  3629. },
  3630. // 判断角色是否符合
  3631. isInRoles(myRoles, requireRoles) {
  3632. if (!Array.isArray(myRoles))
  3633. myRoles = myRoles.split(',');
  3634. if (!Array.isArray(requireRoles))
  3635. requireRoles = requireRoles.split(',');
  3636. for (let r of requireRoles) {
  3637. if (myRoles.indexOf(r) !== -1)
  3638. return true;
  3639. }
  3640. return false;
  3641. },
  3642. // 转换地图数据用于提交后台
  3643. convertGeom(json) {
  3644. let data = JSON.parse(json);
  3645. if (data.hasOwnProperty('coordinates'))
  3646. return JSON.stringify(data.coordinates);
  3647. return null;
  3648. },
  3649. zkshClick() {
  3650. if (this.zjdzdxxDetailedShow) {
  3651. this.zjdzdxxDetailedShow = false;
  3652. } else {
  3653. this.zjdzdxxDetailedShow = true;
  3654. }
  3655. },
  3656. // 审批(同意/驳回)
  3657. auditProposer(pass) {
  3658. let _this = this;
  3659. switch (this.processKeyField) {
  3660. case PROPOSER_STAGE_BASE_APPLY_ACTIVITY: {
  3661. let comment;
  3662. const role = this.$store.getters.roles[0];
  3663. let msg = "";
  3664. switch (role) {
  3665. case "agriculture":
  3666. msg = this.validateAgricultureForm(pass);
  3667. if (msg) {
  3668. break;
  3669. }
  3670. comment = this.applicationDetail.ydjfsp.nyncbmscyj;
  3671. // if(this.$refs.pictureUploadApplyingTHouseApproveAgriculture && this.$refs.pictureUploadApplyingTHouseApproveAgriculture.isValid()) {
  3672. // this.submitHouseApproveAgricultureOptions().then(item=>{
  3673. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3674. this.complete(pass, comment);
  3675. }).catch(resp => {
  3676. this.notify(msg, 'danger');
  3677. this.notify("保存失败!", 'danger');
  3678. });
  3679. // });
  3680. // } else {
  3681. // if (this.checkString(this.applicationDetail.tHouseApproveAgricultureOptions.agriculturePlan)) {
  3682. // msg = "农村农业部门现场拍照不能为空";
  3683. // break;
  3684. // }
  3685. // }
  3686. break;
  3687. case "building":
  3688. msg = this.validateBuildingForm(pass);
  3689. if (msg) {
  3690. break;
  3691. }
  3692. comment = this.applicationDetail.ydjfsp.zfcxjsbmscyj;
  3693. // if(this.$refs.pictureUploadApplyingTHouseApproveOther && this.$refs.pictureUploadApplyingTHouseApproveOther.isValid()) {
  3694. // this.submitHouseApproveOtherOptions().then(item=>{
  3695. // setTimeout(() => {
  3696. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3697. this.complete(pass, comment);
  3698. }).catch(resp => {
  3699. this.notify(msg, 'danger');
  3700. this.notify("保存失败!", 'danger');
  3701. });
  3702. // }, 500);
  3703. // });
  3704. // } else {
  3705. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.otherPlan)) {
  3706. // msg = "住建部门现场拍照不能为空";
  3707. // break;
  3708. // }
  3709. // }
  3710. break;
  3711. case "nature_resource":
  3712. msg = this.validateNatureForm(pass);
  3713. if (msg) {
  3714. break;
  3715. }
  3716. this.$set(this.applicationDetail, 'tHouseApproveTownOptions', null);
  3717. this.$set(this.applicationDetail, 'tHouseApproveOtherOptions', null);
  3718. this.$set(this.applicationDetail, 'tHouseApproveAgricultureOptions', null);
  3719. comment = this.applicationDetail.ydjfsp.zrzybmscyj;
  3720. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3721. this.complete(pass, comment);
  3722. }).catch(resp => {
  3723. this.notify(msg, 'danger');
  3724. this.notify("保存失败!", 'danger');
  3725. });
  3726. break;
  3727. case "town_leader":
  3728. // msg = this.validateAgricultureForm(pass);
  3729. // if (msg) {
  3730. // break;
  3731. // }
  3732. // msg = this.validateNatureForm();
  3733. // if (msg) {
  3734. // break;
  3735. // }
  3736. //
  3737. // msg = this.validateBuildingForm();
  3738. // if (msg) {
  3739. // break;
  3740. // }
  3741. msg = this.validateTownForm();
  3742. if (msg) {
  3743. break;
  3744. } else {
  3745. comment = this.applicationDetail.ydjfsp.zfcxjsbmscyj;
  3746. // this.submitHouseApproveAgricultureOptions().then(item=>{
  3747. // _this.submitHouseApproveNatureplanOptions().then(item2=>{
  3748. // _this.submitHouseApproveOtherOptions().then(item3=>{
  3749. // if(_this.$refs.pictureUploadApplyingTHouseApproveTown && _this.$refs.pictureUploadApplyingTHouseApproveTown.isValid()) {
  3750. // _this.submitHouseApproveTownOptions().then(item4=>{
  3751. // //地图判断
  3752. // if (_this.drawInsert != null) {
  3753. // _this.applicationDetail.tHouseApproveNatureOptions.theGeom = JSON.stringify(_this.drawInsert);
  3754. // }
  3755. // else {
  3756. // if(_this.applicationDetail.tHouseApproveNatureOptions && _this.applicationDetail.tHouseApproveNatureOptions.theGeom == null){
  3757. // _this.applicationDetail.tHouseApproveNatureOptions.theGeom = _this.convertGeom(_this.applicationDetail.tHouseApplyProposedSituation.theGeom);
  3758. // }
  3759. // }
  3760. if (!pass) {
  3761. comment = "驳回";
  3762. }
  3763. if (this.applicationDetail.ydjfsp.zjdzlpmwzt != null && this.applicationDetail.ydjfsp.zjdzlpmwzt !== "") {
  3764. // _this.submitHouseApproveLocationplanOptions(pass, comment).then(item5=>{
  3765. // _this.submitHouseApproveNatureplanOptions().then(item6=>{
  3766. setTimeout(() => {
  3767. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3768. this.complete(pass, comment);
  3769. }).catch(resp => {
  3770. this.notify(msg, 'danger');
  3771. this.notify("保存失败!", 'danger');
  3772. });
  3773. }, 500);
  3774. // });register/face/verified/allow
  3775. // });
  3776. } else {
  3777. this.notify("宅基地坐落平面位置图不能为空", 'danger');
  3778. this.$refs.form.validate().then(() => {
  3779. }).catch((e) => {
  3780. })
  3781. }
  3782. }
  3783. // });
  3784. // } else {
  3785. // if(!pass){
  3786. // comment = "驳回";
  3787. // }
  3788. // setTimeout(() => {
  3789. // saveHouseBaseInfo(_this.applicationDetail).then((response) => {
  3790. // _this.complete(pass, comment);
  3791. // }).catch(resp => {
  3792. // _this.notify(msg, 'danger');
  3793. // _this.notify("保存失败!", 'danger');
  3794. // });
  3795. // }, 500);
  3796. // }
  3797. // }
  3798. // });
  3799. // });
  3800. // });
  3801. break;
  3802. default:
  3803. if (this.checkString(this.applicationDetail.cjxzscyj))
  3804. msg = '村领导意见不能为空';
  3805. else
  3806. comment = this.applicationDetail.cjxzscyj;
  3807. if (this.checkString(this.applicationDetail.cjxzscr)) {
  3808. msg = "村级领导签名不能为空";
  3809. } else if (this.$refs.pictureUploadApplyingTHouseApproveVillage && this.$refs.pictureUploadApplyingTHouseApproveVillage.isValid()) {
  3810. this.submitHouseApproveVillageplanOptions(pass, comment);
  3811. return;
  3812. } else {
  3813. setTimeout(() => {
  3814. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3815. this.complete(pass, comment);
  3816. }).catch(resp => {
  3817. this.notify(msg, 'danger');
  3818. this.notify("保存失败!", 'danger');
  3819. });
  3820. }, 500);
  3821. }
  3822. //}
  3823. // if(this.selectedTabName ==0){
  3824. // if(this.currentUserRole == 'village_leader'){
  3825. // //村级审核人员签字
  3826. // //if(this.checkString(this.applicationDetail.tHouseApproveVillageOptions.villageLeader))
  3827. // this.applicationDetail.tHouseApproveVillageOptions.villageLeader = res.fileName;
  3828. // } else if(this.currentUserRole == 'task_executor'){
  3829. // //自然资源部门签字
  3830. // if(this.checkString(this.applicationDetail.tHouseApproveNatureOptions.approveLeader))
  3831. // return '自然资源部门签字不能为空';
  3832. // this.applicationDetail.tHouseApproveNatureOptions.approveLeader = res.fileName;
  3833. // } else if (this.currentUserRole == ''){
  3834. // //其他部门签字
  3835. // if(this.checkString(this.applicationDetail.tHouseApproveOtherOptions.approveLeader))
  3836. // return '其他部门签字不能为空';
  3837. // this.applicationDetail.tHouseApproveOtherOptions.approveLeader = res.fileName;
  3838. // } else if (this.currentUserRole == ''){
  3839. // //农村农业部门签字
  3840. // if(this.checkString(this.applicationDetail.tHouseApproveAgricultureOptions.approveLeader))
  3841. // return '农村农业部门签字不能为空';
  3842. // this.applicationDetail.tHouseApproveAgricultureOptions.approveLeader = res.fileName;
  3843. // } else if (this.currentUserRole == ''){
  3844. // //镇级领导签字 tHouseApproveTownOptions
  3845. // if(this.checkString(this.applicationDetail.tHouseApproveTownOptions.approveLeader))
  3846. // return '镇级领导签字不能为空';
  3847. // this.applicationDetail.tHouseApproveTownOptions.approveLeader = res.fileName;
  3848. // }
  3849. // this.showesign =false;
  3850. // } else if(this.selectedTabName ==1){
  3851. //
  3852. // } else if (this.selectedTabName ==2){
  3853. //
  3854. // }
  3855. break;
  3856. }
  3857. if (msg) {
  3858. this.notify(msg, 'danger');
  3859. this.$refs.form.validate().then(() => {
  3860. }).catch((e) => {
  3861. })
  3862. return;
  3863. }
  3864. }
  3865. break;
  3866. case PROPOSER_STAGE_START_ACTIVITY:
  3867. let _this = this;
  3868. const role = this.$store.getters.roles[0];
  3869. if (role === "nature_resource") {
  3870. if (this.drawInsert != null) {
  3871. this.applicationDetail.ydjfkg.theGeomJson = JSON.stringify(this.drawInsert);
  3872. } else {
  3873. if (this.applicationDetail.ydjfkg.theGeomJson == null) {
  3874. if (this.applicationDetail.ydjfkg.theGeom == null) {
  3875. this.notify("请在地图上标注宅基地位置!", 'danger');
  3876. break;
  3877. } else {
  3878. this.applicationDetail.ydjfkg.theGeomJson = this.convertGeom(this.applicationDetail.ydjfkg.theGeom);
  3879. }
  3880. }
  3881. }
  3882. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3883. this.complete(pass);
  3884. }).catch(resp => {
  3885. this.notify(msg, 'danger');
  3886. this.notify("保存失败!", 'danger');
  3887. });
  3888. } else {
  3889. if (this.applicationDetail.homeApplyStatus === "3C") {
  3890. if (this.fileTypeList.indexOf("14") === -1) {
  3891. this.notify("请上传开工乡镇受理会议纪要", 'danger');
  3892. }else{
  3893. this.complete(pass);
  3894. }
  3895. }else{
  3896. this.complete(pass);
  3897. }
  3898. }
  3899. break;
  3900. case PROPOSER_STAGE_END_ACTIVITY : {
  3901. let comment;
  3902. let msg = "";
  3903. const role = this.$store.getters.roles[0];
  3904. switch (role) {
  3905. case "agriculture":
  3906. msg = this.validateAcceptingFormTown(undefined, role);
  3907. if (msg) {
  3908. break;
  3909. }
  3910. comment = this.applicationDetail.ydjfys.nyncbmysyj;
  3911. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3912. this.complete(pass, comment);
  3913. }).catch(err => {
  3914. this.notify('保存失败', 'danger');
  3915. });
  3916. break;
  3917. case "nature_resource":
  3918. msg = this.validateAcceptingFormTown(undefined, role);
  3919. if (msg) {
  3920. break;
  3921. }
  3922. comment = this.applicationDetail.ydjfys.zfcxjsbmysyj;
  3923. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3924. this.complete(pass, comment);
  3925. }).catch(err => {
  3926. this.notify('保存失败', 'danger');
  3927. });
  3928. break;
  3929. case "building":
  3930. msg = this.validateAcceptingFormTown(undefined, role);
  3931. if (msg) {
  3932. break;
  3933. }
  3934. comment = this.applicationDetail.ydjfys.zrzybmysyj;
  3935. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3936. this.complete(pass, comment);
  3937. }).catch(err => {
  3938. this.notify('保存失败', 'danger');
  3939. });
  3940. break;
  3941. case "town_leader":
  3942. msg = this.validateAcceptingFormTown();
  3943. if (msg) {
  3944. break;
  3945. }
  3946. comment = this.applicationDetail.ydjfys.xzzfysyj;
  3947. if (this.applicationDetail.ydjfys.jgpmjt != null) {
  3948. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3949. this.complete(pass, comment);
  3950. }).catch(err => {
  3951. this.notify('保存失败', 'danger');
  3952. });
  3953. } else {
  3954. msg = "竣工平面简图不能为空";
  3955. }
  3956. break;
  3957. default:
  3958. comment = '同意';
  3959. if (this.applicationDetail.ydjfys.jgpmjt != null) {
  3960. saveHomeBaseInfo(this.applicationDetail).then((response) => {
  3961. this.complete(pass, comment);
  3962. }).catch(err => {
  3963. this.notify('保存失败', 'danger');
  3964. });
  3965. } else {
  3966. msg = "竣工平面简图不能为空";
  3967. }
  3968. break;
  3969. }
  3970. if (msg) {
  3971. this.notify(msg, 'danger');
  3972. this.$refs.form.validate().then(() => {
  3973. }).catch(e => {
  3974. });
  3975. return;
  3976. }
  3977. // //农村农业部
  3978. // if (this.$refs.tHouseApplyEndNongye && this.$refs.tHouseApplyEndNongye.isValid()) {
  3979. // this.submitHouseApproveEndNongyeOptions();
  3980. // return;
  3981. // }
  3982. // //自然资源部
  3983. // if (this.$refs.pictureUploadAccepting && this.$refs.pictureUploadAccepting.isValid()) {
  3984. // this.submitHouseApproveEndNatureOptions();
  3985. // return;
  3986. // }
  3987. // //乡镇领导部
  3988. // if (this.$refs.pictureUploadAccepting && this.$refs.pictureUploadAccepting.isValid()) {
  3989. // this.submitHouseApproveEndBZhenOptions();
  3990. // return;
  3991. // }
  3992. console.log(this.applicationDetail.tHouseApplyEnd);
  3993. }
  3994. break;
  3995. default:
  3996. break;
  3997. }
  3998. },
  3999. //村级领导审批现场图片
  4000. submitHouseApproveVillageplanOptions(pass, commentText) {
  4001. this.applicationDetail.tHouseApproveVillageOptions.villagePlan = null;
  4002. return this.$refs.pictureUploadApplyingTHouseApproveVillage.updatePlanFiles().then((x) => {
  4003. let list = [];
  4004. x.data.forEach((f) => {
  4005. let item = {
  4006. id: f.id,
  4007. fileName: f.fileName,
  4008. fileUrl: f.fileUrl,
  4009. fileType: f.fileType,
  4010. tableId: f.tableId,
  4011. tableName: f.tableName,
  4012. };
  4013. list.push(item);
  4014. });
  4015. this.applicationDetail.tHouseApproveVillageOptions.villagePlan = JSON.stringify(list);
  4016. if (this.checkString(this.applicationDetail.tHouseApproveVillageOptions.villagePlan)) {
  4017. return "村级现场拍照不能为空";
  4018. } else {
  4019. saveHouseBaseInfo(this.applicationDetail).then((response) => {
  4020. this.complete(pass, commentText);
  4021. }).catch(resp => {
  4022. this.notify("保存失败!", 'danger');
  4023. });
  4024. }
  4025. }).catch((x) => {
  4026. this.notify("村级上传现场照片失败!", 'danger');
  4027. });
  4028. },
  4029. //自然资源部门审批现场图片
  4030. submitHouseApproveNatureplanOptions() {
  4031. this.applicationDetail.tHouseApproveNatureOptions.naturePlan = null;
  4032. return this.$refs.pictureUploadApplyingTHouseApproveNature.updatePlanFiles().then((x) => {
  4033. let list = [];
  4034. x.data.forEach((f) => {
  4035. let item = {
  4036. id: f.id,
  4037. fileName: f.fileName,
  4038. fileUrl: f.fileUrl,
  4039. fileType: f.fileType,
  4040. tableId: f.tableId,
  4041. tableName: f.tableName,
  4042. };
  4043. list.push(item);
  4044. });
  4045. this.applicationDetail.tHouseApproveNatureOptions.naturePlan = JSON.stringify(list);
  4046. if (this.checkString(this.applicationDetail.tHouseApproveNatureOptions.naturePlan)) {
  4047. return "自然资源部门现场拍照不能为空";
  4048. }
  4049. }).catch((x) => {
  4050. this.notify("自然资源部门上传现场照片失败!", 'danger');
  4051. });
  4052. },
  4053. //农村农业部门审批现场图片
  4054. submitHouseApproveAgricultureOptions() {
  4055. this.applicationDetail.tHouseApproveAgricultureOptions.agriculturePlan = null;
  4056. return this.$refs.pictureUploadApplyingTHouseApproveAgriculture.updatePlanFiles().then((x) => {
  4057. let list = [];
  4058. x.data.forEach((f) => {
  4059. let item = {
  4060. id: f.id,
  4061. fileName: f.fileName,
  4062. fileUrl: f.fileUrl,
  4063. fileType: f.fileType,
  4064. tableId: f.tableId,
  4065. tableName: f.tableName,
  4066. };
  4067. list.push(item);
  4068. });
  4069. this.applicationDetail.tHouseApproveAgricultureOptions.agriculturePlan = JSON.stringify(list);
  4070. if (this.checkString(this.applicationDetail.tHouseApproveAgricultureOptions.agriculturePlan)) {
  4071. return "农村农业部现场拍照不能为空";
  4072. }
  4073. }).catch((x) => {
  4074. this.notify("农村农业部上传现场照片失败!", 'danger');
  4075. });
  4076. },
  4077. //其他部门审批现场图片
  4078. submitHouseApproveOtherOptions() {
  4079. this.applicationDetail.tHouseApproveOtherOptions.otherPlan = null;
  4080. return this.$refs.pictureUploadApplyingTHouseApproveOther.updatePlanFiles().then((x) => {
  4081. let list = [];
  4082. x.data.forEach((f) => {
  4083. let item = {
  4084. id: f.id,
  4085. fileName: f.fileName,
  4086. fileUrl: f.fileUrl,
  4087. fileType: f.fileType,
  4088. tableId: f.tableId,
  4089. tableName: f.tableName,
  4090. };
  4091. list.push(item);
  4092. });
  4093. this.applicationDetail.tHouseApproveOtherOptions.otherPlan = JSON.stringify(list);
  4094. if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.otherPlan)) {
  4095. return "其他部门现场拍照不能为空";
  4096. }
  4097. }).catch((x) => {
  4098. this.notify("其他部门上传现场照片失败!", 'danger');
  4099. });
  4100. },
  4101. //镇级领导审批现场图片
  4102. submitHouseApproveTownOptions() {
  4103. this.applicationDetail.tHouseApproveTownOptions.townPlan = null;
  4104. return this.$refs.pictureUploadApplyingTHouseApproveTown.updatePlanFiles().then((x) => {
  4105. let list = [];
  4106. x.data.forEach((f) => {
  4107. let item = {
  4108. id: f.id,
  4109. fileName: f.fileName,
  4110. fileUrl: f.fileUrl,
  4111. fileType: f.fileType,
  4112. tableId: f.tableId,
  4113. tableName: f.tableName,
  4114. };
  4115. list.push(item);
  4116. });
  4117. this.applicationDetail.tHouseApproveTownOptions.townPlan = JSON.stringify(list);
  4118. if (this.checkString(this.applicationDetail.tHouseApproveTownOptions.townPlan)) {
  4119. return "镇级领导现场拍照不能为空";
  4120. }
  4121. }).catch((x) => {
  4122. this.notify("镇级领导上传现场照片失败!", 'danger');
  4123. });
  4124. },
  4125. //验收农业部门审批现场图片
  4126. submitHouseApproveEndNongyeOptions() {
  4127. this.applicationDetail.tHouseApplyEnd.nongyePlan = null;
  4128. return this.$refs.tHouseApplyEndNongye.updatePlanFiles().then((x) => {
  4129. let list = [];
  4130. x.data.forEach((f) => {
  4131. let item = {
  4132. id: f.id,
  4133. fileName: f.fileName,
  4134. fileUrl: f.fileUrl,
  4135. fileType: f.fileType,
  4136. tableId: f.tableId,
  4137. tableName: f.tableName,
  4138. };
  4139. list.push(item);
  4140. });
  4141. this.applicationDetail.tHouseApplyEnd.nongyePlan = JSON.stringify(list);
  4142. if (this.checkString(this.applicationDetail.tHouseApplyEnd.nongyePlan)) {
  4143. return "农业部门现场拍照不能为空";
  4144. }
  4145. }).catch((x) => {
  4146. this.notify("农业部门上传现场照片失败!", 'danger');
  4147. });
  4148. },
  4149. //验收自然资源部门审批现场图片
  4150. submitHouseApproveEndNatureOptions() {
  4151. this.applicationDetail.tHouseApplyEnd.naturePlan = null;
  4152. return this.$refs.tHouseApplyEndNature.updatePlanFiles().then((x) => {
  4153. let list = [];
  4154. x.data.forEach((f) => {
  4155. let item = {
  4156. id: f.id,
  4157. fileName: f.fileName,
  4158. fileUrl: f.fileUrl,
  4159. fileType: f.fileType,
  4160. tableId: f.tableId,
  4161. tableName: f.tableName,
  4162. };
  4163. list.push(item);
  4164. });
  4165. this.applicationDetail.tHouseApplyEnd.naturePlan = JSON.stringify(list);
  4166. // if(this.checkString(this.applicationDetail.tHouseApplyEnd.naturePlan)){
  4167. // return "自然资源部门现场拍照不能为空";
  4168. // }
  4169. }).catch((x) => {
  4170. this.notify("自然资源部门上传现场照片失败!", 'danger');
  4171. });
  4172. },
  4173. //验收住建部门审批现场图片
  4174. submitHouseApproveEndBuildingOptions() {
  4175. this.applicationDetail.tHouseApplyEnd.buildingPlan = null;
  4176. this.$refs.tHouseApplyEndBuilding.updatePlanFiles().then((x) => {
  4177. let list = [];
  4178. x.data.forEach((f) => {
  4179. let item = {
  4180. id: f.id,
  4181. fileName: f.fileName,
  4182. fileUrl: f.fileUrl,
  4183. fileType: f.fileType,
  4184. tableId: f.tableId,
  4185. tableName: f.tableName,
  4186. };
  4187. list.push(item);
  4188. });
  4189. this.applicationDetail.tHouseApplyEnd.buildingPlan = JSON.stringify(list);
  4190. if (this.checkString(this.applicationDetail.tHouseApplyEnd.buildingPlan)) {
  4191. return "住建部门现场拍照不能为空";
  4192. }
  4193. }).catch((x) => {
  4194. this.notify("住建部门上传现场照片失败!", 'danger');
  4195. });
  4196. },
  4197. //验收镇政府审批现场图片
  4198. submitHouseApproveEndBZhenOptions() {
  4199. this.applicationDetail.tHouseApplyEnd.zhenPlan = null;
  4200. return this.$refs.tHouseApplyEndZhen.updatePlanFiles().then((x) => {
  4201. let list = [];
  4202. x.data.forEach((f) => {
  4203. let item = {
  4204. id: f.id,
  4205. fileName: f.fileName,
  4206. fileUrl: f.fileUrl,
  4207. fileType: f.fileType,
  4208. tableId: f.tableId,
  4209. tableName: f.tableName,
  4210. };
  4211. list.push(item);
  4212. });
  4213. this.applicationDetail.tHouseApplyEnd.zhenPlan = JSON.stringify(list);
  4214. if (this.checkString(this.applicationDetail.tHouseApplyEnd.zhenPlan)) {
  4215. return "镇政府现场拍照不能为空";
  4216. }
  4217. }).catch((x) => {
  4218. this.notify("镇政府上传现场照片失败!", 'danger');
  4219. });
  4220. },
  4221. // 带平面图附件上传的镇级申请审批
  4222. submitHouseApproveLocationplanOptions(pass, commentText) {
  4223. this.applicationDetail.ydjfsp.zjdzlpmwzt = null;
  4224. return this.$refs.pictureUploadApplying.updatePlanFiles().then((x) => {
  4225. let list = [];
  4226. x.data.forEach((f) => {
  4227. let item = {
  4228. id: f.id,
  4229. fileName: f.fileName,
  4230. fileUrl: f.fileUrl,
  4231. fileType: f.fileType,
  4232. tableId: f.tableId,
  4233. tableName: f.tableName,
  4234. };
  4235. list.push(item);
  4236. });
  4237. this.applicationDetail.ydjfsp.zjdzlpmwzt = list[0].fileUrl;
  4238. }).catch((x) => {
  4239. this.notify("上传宅基地坐落平面位置图失败!", 'danger');
  4240. });
  4241. },
  4242. fileUpdate(val) {
  4243. this.$set(this.applicationDetail.ydjfsp, 'zjdzlpmwzt', val);
  4244. },
  4245. fileUpdatePmt(val) {
  4246. this.$set(this.applicationDetail.ydjfys, 'jgpmjt',val);
  4247. },
  4248. // 带平面图附件上传的镇级验收审批
  4249. submitHouseApplyEndLocationplanOptions(pass, commentText) {
  4250. return this.$refs.pictureUploadAccepting.updatePlanFiles()
  4251. .then((x) => {
  4252. let list = [];
  4253. x.data.forEach((f) => {
  4254. let item = {
  4255. id: f.id,
  4256. fileName: f.fileName,
  4257. fileUrl: f.fileUrl,
  4258. fileType: f.fileType,
  4259. tableId: f.tableId,
  4260. tableName: f.tableName,
  4261. };
  4262. list.push(item);
  4263. });
  4264. this.applicationDetail.tHouseApplyEnd.locationPlan = JSON.stringify(list);
  4265. }).catch((x) => {
  4266. this.notify("上传宅基地坐落平面位置图失败!", 'danger');
  4267. });
  4268. },
  4269. // 审批工具函数(同意/驳回, 意见)
  4270. complete(pass, comment) {
  4271. if (!this.taskId || !this.auditbatchNo) {
  4272. console.error(this.taskId, this.auditbatchNo);
  4273. return false;
  4274. }
  4275. let data = {
  4276. taskId: this.taskId,
  4277. auditbatchNo: this.auditbatchNo,
  4278. pass: pass ? "true" : "false",
  4279. remark: comment ? comment : (pass ? '同意' : '驳回'),
  4280. };
  4281. request({
  4282. url: "/approval/audit/audit",
  4283. method: "post",
  4284. data: data,
  4285. }).then((response) => {
  4286. this.notify("操作成功", 'success');
  4287. this.$router.go(0);
  4288. this.goBack();
  4289. }).catch(e => {
  4290. this.notify("操作失败!", 'danger');
  4291. });
  4292. return true;
  4293. },
  4294. // 请求结果提示工具函数
  4295. notify(message, type) {
  4296. Notify.clear();
  4297. Notify({type: type || 'primary', message: message});
  4298. },
  4299. // 当自然资源部门地图绘制被重置时
  4300. onNatureMapDrawReseted() {
  4301. this.drawInsert = null;
  4302. if (this.applicationDetail.tHouseApproveNatureOptions.theGeom) {
  4303. let lastData = JSON.parse(this.applicationDetail.tHouseApproveNatureOptions.theGeom);
  4304. if (lastData.hasOwnProperty('coordinates')) // 从后台获取的
  4305. this.drawInsert = lastData.coordinates;
  4306. }
  4307. },
  4308. // 当验收地图绘制被重置时
  4309. onAcceptanceMapDrawReseted() {
  4310. this.drawInsert = null;
  4311. if (this.applicationDetail.tHouseApplyEnd.theGeom) {
  4312. let lastData = JSON.parse(this.applicationDetail.tHouseApplyEnd.theGeom);
  4313. if (lastData.hasOwnProperty('coordinates')) // 从后台获取的
  4314. this.drawInsert = lastData.coordinates;
  4315. }
  4316. },
  4317. // 打开附件树
  4318. openAttachment() {
  4319. this.attachmentVisible = true;
  4320. if (this.attachmentActive == this.active)
  4321. this.$nextTick(() => {
  4322. this.$refs.attachmentDialog.scrollTo(this.active);
  4323. });
  4324. },
  4325. // 选择步骤页面
  4326. selectTab(index) {
  4327. if (index <= this.active) {
  4328. this.selectedTabName = index;
  4329. this.pointDarw(null);
  4330. }
  4331. //console.log(index, this.active,this.selectedTabName);
  4332. },
  4333. // 保存开工(是否提交)
  4334. startProposerApply(submit) {
  4335. console.info(submit);
  4336. let msg = this.validateStartFormBase();
  4337. if (msg) {
  4338. this.notify(msg, 'danger');
  4339. return;
  4340. }
  4341. this.$set(this.applicationDetail, 'applyUserId', this.sysFarmer.id);
  4342. this.$toast.loading({
  4343. message: "数据处理中...",
  4344. forbidClick: true,
  4345. });
  4346. saveHomeBaseInfo(this.applicationDetail).then((resp) => {
  4347. if (submit) {
  4348. submitStart(this.applicationDetail.id).then(resp => {
  4349. this.$toast.clear();
  4350. this.notify("操作成功", 'success');
  4351. this.goBack();
  4352. }).catch((e) => {
  4353. this.$toast.clear();
  4354. this.notify("操作失败!", 'danger');
  4355. });
  4356. } else {
  4357. this.$toast.clear();
  4358. this.notify("保存成功", 'success');
  4359. this.goBack();
  4360. }
  4361. }).catch((e) => {
  4362. this.$toast.clear();
  4363. this.notify('保存失败', 'danger');
  4364. });
  4365. },
  4366. // 保存验收(是否提交)
  4367. endProposerApply(submit) {
  4368. // this.$refs.form.validate().then(() => {
  4369. let msg = this.validateAcceptingFormBase();
  4370. if (msg) {
  4371. this.notify(msg, 'danger');
  4372. return;
  4373. }
  4374. // if (this.drawInsert != null) {
  4375. // this.applicationDetail.tHouseApplyEnd.theGeom = JSON.stringify(this.drawInsert);
  4376. // }
  4377. // else {
  4378. // if(this.applicationDetail.tHouseApplyEnd.theGeom == null){
  4379. // this.applicationDetail.tHouseApplyEnd.theGeom = this.convertGeom(this.applicationDetail.tHouseApproveNatureOptions.theGeom);
  4380. // }
  4381. // }
  4382. if (this.applicationDetail.ydjfys.jgpmjt != null) {
  4383. this.$refs.form.validate().then(() => {
  4384. this.$toast.loading({
  4385. message: "数据处理中...",
  4386. forbidClick: true,
  4387. });
  4388. saveHomeBaseInfo(this.applicationDetail).then(resp => {
  4389. if (submit) {
  4390. submitCheck(this.applicationDetail.id).then(resp => {
  4391. this.$toast.clear();
  4392. this.notify("操作成功", 'success');
  4393. this.goBack();
  4394. }).catch(err => {
  4395. this.$toast.clear();
  4396. this.notify("操作失败!", 'danger');
  4397. });
  4398. } else {
  4399. this.$toast.clear();
  4400. this.notify("保存成功", 'success');
  4401. this.goBack();
  4402. }
  4403. }).catch(err => {
  4404. this.$toast.clear();
  4405. this.notify('保存失败', 'danger');
  4406. });
  4407. })
  4408. } else {
  4409. this.notify("竣工平面简图不能为空", 'danger');
  4410. }
  4411. // }).catch(e => {
  4412. // let msg = this.validateAcceptingFormBase();
  4413. // if (msg) {
  4414. // this.notify(msg, 'danger');
  4415. // return;
  4416. // }
  4417. // });
  4418. },
  4419. // 获取登录人位置坐标
  4420. getLandCoord(func) {
  4421. if (func
  4422. && this.tGeoOrganizationLng !== null && this.tGeoOrganizationLng !== ''
  4423. && this.tGeoOrganizationLat !== null && this.tGeoOrganizationLat !== '') {
  4424. this.$nextTick(() => {
  4425. func(this.tGeoOrganizationLng, this.tGeoOrganizationLat);
  4426. })
  4427. } else {
  4428. if(this.deptId !== null && this.deptId !== undefined){
  4429. getQueryLand(this.deptId).then((response) => {
  4430. if (response.code == 200) {
  4431. let InsertCode = response.data;
  4432. this.form.orgCode = InsertCode.orgCode;
  4433. this.tGeoOrganizationLat = InsertCode.lat;
  4434. this.tGeoOrganizationLng = InsertCode.lng;
  4435. if (func) {
  4436. func(this.tGeoOrganizationLng, this.tGeoOrganizationLat);
  4437. }
  4438. }
  4439. });
  4440. }
  4441. }
  4442. },
  4443. validateBaseApplyFormBase() {
  4444. if (this.checkString(this.applicationDetail.sqhhzxm)) {
  4445. return "申请户主姓名不能为空";
  4446. }
  4447. if (this.checkString(this.applicationDetail.sqhhzxb)) {
  4448. return "户主性别不能为空";
  4449. }
  4450. if (this.checkString(this.applicationDetail.sqhhznl)) {
  4451. return "户主年龄不能为空";
  4452. }
  4453. if (this.checkString(this.applicationDetail.sqhhzlxdh, /(^\d{7}(\d{4})?$)/)) {
  4454. return "请填写有效的联系电话";
  4455. }
  4456. if (this.checkString(this.applicationDetail.sqhhzsfzh, /^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/)) {
  4457. return "请填写有效的身份证号";
  4458. }
  4459. if (this.checkString(this.applicationDetail.sqhhzhkszd)) {
  4460. return "户口所在地不能为空";
  4461. }
  4462. // if (this.checkString(this.applicationDetail.tHouseApplyProposer.familyAddress)) {
  4463. // return "家庭住址不能为空";
  4464. // }
  4465. // if (this.checkString(this.applicationDetail.tHouseApplyProposer.members)) {
  4466. // return "家庭人口数不能为空";
  4467. // }
  4468. // if (this.checkString(this.applicationDetail.tHouseApplyProposer.existHomestead)) {
  4469. // return "是否已有宅基地不能为空";
  4470. // }
  4471. for (let i in this.applicationDetail.sqrjtcyList) {
  4472. let v = this.applicationDetail.sqrjtcyList[i];
  4473. console.info(v);
  4474. if (this.checkString(v.xm)) {
  4475. return "成员姓名不能为空";
  4476. }
  4477. if (this.checkString(v.nl)) {
  4478. return "年龄不能为空";
  4479. }
  4480. if (this.checkString(v.yhzgx)) {
  4481. return "与户主关系不能为空";
  4482. }
  4483. if (this.checkString(v.sfzh, /^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/)) {
  4484. return "请填写有效的家庭成员身份证";
  4485. }
  4486. if (this.checkString(v.hkszd)) {
  4487. return "户口所在地不能为空";
  4488. }
  4489. }
  4490. if (this.applicationDetail.sfyyzjd === 'Y') {
  4491. if (this.checkString(this.applicationDetail.xzjdmj)) {
  4492. return "宅基地面积不能为空";
  4493. }
  4494. // if (this.checkString(this.applicationDetail.tHouseApplyCurrentSituation.landPerArea)) {
  4495. // return "人均宅基地面积不能为空";
  4496. // }
  4497. if (this.checkString(this.applicationDetail.xjzmj)) {
  4498. return "建筑面积不能为空";
  4499. }
  4500. // if (this.checkString(this.applicationDetail.tHouseApplyCurrentSituation.buildingPerArea)) {
  4501. // return "人均建筑面积不能为空";
  4502. // }
  4503. // if (this.checkString(this.applicationDetail.tHouseApplyCurrentSituation.landCertificateNo)) {
  4504. // return "不动产单元号不能为空";
  4505. // }
  4506. if (this.checkString(this.applicationDetail.xzjdczqk)) {
  4507. return "处置情况不能为空";
  4508. }
  4509. if (this.applicationDetail.xzjdczqk == '1') {
  4510. if (this.checkString(this.applicationDetail.xzjdblmj)) {
  4511. return "保留面积不能为空";
  4512. }
  4513. } else if (this.applicationDetail.xzjdczqk == '3') {
  4514. if (this.checkString(this.applicationDetail.xzjdzqtqk)) {
  4515. return "处置情况不能为空";
  4516. }
  4517. }
  4518. }
  4519. if (this.checkString(this.applicationDetail.nsqzjdmj)) {
  4520. return "宅基地面积不能为空";
  4521. }
  4522. if (this.checkString(this.applicationDetail.nsqfjzdmj)) {
  4523. return "房基占地面积不能为空";
  4524. }
  4525. if (this.checkString(this.applicationDetail.nsqzjddz)) {
  4526. return "地址不能为空";
  4527. }
  4528. if (this.checkString(this.applicationDetail.nsqzjdszd)) {
  4529. return "东至不能为空";
  4530. }
  4531. if (this.checkString(this.applicationDetail.nsqzjdszx)) {
  4532. return "西至不能为空";
  4533. }
  4534. if (this.checkString(this.applicationDetail.nsqzjdszn)) {
  4535. return "南至不能为空";
  4536. }
  4537. if (this.checkString(this.applicationDetail.nsqzjdszb)) {
  4538. return "北至不能为空";
  4539. }
  4540. if (this.checkString(this.applicationDetail.zfjzmj)) {
  4541. return "住房建筑面积不能为空";
  4542. }
  4543. if (this.checkString(this.applicationDetail.jzcs)) {
  4544. return "建筑层数不能为空";
  4545. }
  4546. if (this.checkString(this.applicationDetail.jzgd)) {
  4547. return "建筑高度不能为空";
  4548. }
  4549. if (this.checkString(this.applicationDetail.sfzqxlqlryj)) {
  4550. return "征求相邻权利人意见不能为空";
  4551. }
  4552. // if (this.checkString(this.applicationDetail.tHouseApplyProposedSituation.housingStructure)) {
  4553. // return "房屋构造不能为空";
  4554. // }
  4555. if (this.checkString(this.applicationDetail.jflx)) {
  4556. return "建房类型不能为空";
  4557. }
  4558. if (this.checkString(this.applicationDetail.nsqzjddldm)) {
  4559. return "土地类型不能为空";
  4560. }
  4561. // if(this.applicationDetail.tHouseApplyProposedSituation.geographicType == '10')
  4562. // {
  4563. // if (this.checkString(this.applicationDetail.tHouseApplyProposedSituation.constructionLandArea)) {
  4564. // return "建设用地面积不能为空";
  4565. // }
  4566. // }
  4567. // else if(this.applicationDetail.tHouseApplyProposedSituation.geographicType == '20')
  4568. // {
  4569. // if (this.checkString(this.applicationDetail.tHouseApplyProposedSituation.unusedLandArea)) {
  4570. // return "未利用地不能为空";
  4571. // }
  4572. // }
  4573. // else
  4574. // {
  4575. // if (this.checkString(this.applicationDetail.tHouseApplyProposedSituation.agriculturalLandArea)) {
  4576. // return "农用地不能为空";
  4577. // }
  4578. // }
  4579. // if (this.checkString(this.applicationDetail.tHouseApplyProposedSituation.designPaper)) {
  4580. // return "设计图纸不能为空";
  4581. // }
  4582. // if(this.applicationDetail.tHouseApplyProposedSituation.designPaper == '2')
  4583. // {
  4584. // if (this.checkString(this.applicationDetail.tHouseApplyProposedSituation.houseTypeId)) {
  4585. // return "房屋户型不能为空";
  4586. // }
  4587. // }
  4588. if (this.checkString(this.applicationDetail.sqly)) {
  4589. return "申请理由不能为空";
  4590. }
  4591. if (this.fileTypeList.indexOf("1") === -1) {
  4592. return "请上传申请会议纪要";
  4593. }
  4594. if (this.fileTypeList.indexOf("2") === -1) {
  4595. return "请上传申请承诺书";
  4596. }
  4597. if (this.fileTypeList.indexOf("3") === -1) {
  4598. return "请上传身份材料";
  4599. }
  4600. return false;
  4601. },
  4602. onConfirmZjdxx(val) {
  4603. let _this = this;
  4604. this.zjdzdxxList.map(function (item) {
  4605. if (item.zjddm === val) {
  4606. _this.applicationDetail.xzjdmj = item.zdmj; //宅基地面积
  4607. _this.applicationDetail.xjzmj = item.scjzmj;
  4608. _this.applicationDetail.qszsh = item.zsh;
  4609. _this.$set(_this.zjdzdxxDetailed, 'zdszd', item.zdszd);
  4610. _this.$set(_this.zjdzdxxDetailed, 'zdszn', item.zdszn);
  4611. _this.$set(_this.zjdzdxxDetailed, 'zdszx', item.zdszx);
  4612. _this.$set(_this.zjdzdxxDetailed, 'zdszb', item.zdszb);
  4613. }
  4614. });
  4615. this.showZjdzk = false;
  4616. },
  4617. validateNatureForm() {
  4618. // if (this.checkString(this.applicationDetail.tHouseApproveNatureOptions.landArea)) {
  4619. // return "用地面积不能为空";
  4620. // }
  4621. // if (this.checkString(this.applicationDetail.tHouseApproveNatureOptions.rightsType)) {
  4622. // return "土地权属不能为空";
  4623. // }
  4624. // if (this.checkString(this.applicationDetail.tHouseApproveNatureOptions.east)) {
  4625. // return "北至不能为空";
  4626. // }
  4627. // if (this.checkString(this.applicationDetail.tHouseApproveNatureOptions.west)) {
  4628. // return "西至不能为空";
  4629. // }
  4630. // if (this.checkString(this.applicationDetail.tHouseApproveNatureOptions.south)) {
  4631. // return "南至不能为空";
  4632. // }
  4633. // if (this.checkString(this.applicationDetail.tHouseApproveNatureOptions.north)) {
  4634. // return "北至不能为空";
  4635. // }
  4636. if (this.checkString(this.applicationDetail.ydjfsp.zrzybmscyj)) {
  4637. return "自然资源部意见不能为空";
  4638. } else if (this.checkString(this.applicationDetail.ydjfsp.zrzybmscrxm)) {
  4639. return "自然资源签名不能为空";
  4640. }
  4641. return false;
  4642. },
  4643. validateAgricultureForm(pass) {
  4644. // if (this.checkString(this.applicationDetail.tHouseApproveAgricultureOptions.isMembership)) {
  4645. // return "成员资格审查不能为空";
  4646. // }
  4647. //
  4648. // if (this.checkString(this.applicationDetail.tHouseApproveAgricultureOptions.isOnehouse)) {
  4649. // return "一户一宅情况不能为空";
  4650. // }
  4651. //
  4652. // if (this.checkString(this.applicationDetail.tHouseApproveAgricultureOptions.isReviewmaterials)) {
  4653. // return "村委会审查材料不能为空";
  4654. // }
  4655. if (this.checkString(this.applicationDetail.ydjfsp.nyncbmscyj)) {
  4656. return "农业农村部意见不能为空";
  4657. }
  4658. if (this.checkString(this.applicationDetail.ydjfsp.nyncbmscrxm)) {
  4659. return "农村农业部门签名不能为空";
  4660. }
  4661. // if (this.checkString(this.applicationDetail.ydjfsp.theGeomPoint)) {
  4662. // return "农村农业部门现场定位不能为空";
  4663. // }
  4664. // 通过时检查打勾, 农业部门
  4665. if (pass) {
  4666. // if(this.applicationDetail.tHouseApproveAgricultureOptions.isMembership != '1')
  4667. // {
  4668. // return "同意申请时需通过成员资格审查";
  4669. // }
  4670. // if(this.applicationDetail.tHouseApproveAgricultureOptions.isOnehouse != '1')
  4671. // {
  4672. // return "同意申请时需符合一户一宅情况";
  4673. // }
  4674. // if(this.applicationDetail.tHouseApproveAgricultureOptions.isReviewmaterials != '1')
  4675. // {
  4676. // return "同意申请时需齐全村委会审查材料";
  4677. // }
  4678. }
  4679. return false;
  4680. },
  4681. validateBuildingForm() {
  4682. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.buildingType)) {
  4683. // return "建筑类型不能为空";
  4684. // }
  4685. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.buildingArea)) {
  4686. // return "建筑面积不能为空";
  4687. // }
  4688. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.buildingFloors)) {
  4689. // return "建筑层数不能为空";
  4690. // }
  4691. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.buildingHight)) {
  4692. // return "建筑高度不能为空";
  4693. // }
  4694. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.buildingLandArea)) {
  4695. // return "建筑占地面积不能为空";
  4696. // }
  4697. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions)) {
  4698. // return "图纸类型不能为空";
  4699. // }
  4700. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.east)) {
  4701. // return "东至不能为空";
  4702. // }
  4703. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.west)) {
  4704. // return "西至不能为空";
  4705. // }
  4706. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.south)) {
  4707. // return "南至不能为空";
  4708. // }
  4709. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.north)) {
  4710. // return "北至不能为空";
  4711. // }
  4712. if (this.checkString(this.applicationDetail.ydjfsp.zfcxjsbmscyj)) {
  4713. return "住建部意见不能为空";
  4714. }
  4715. if (this.checkString(this.applicationDetail.ydjfsp.zfcxjsbmscrxm)) {
  4716. return "住建部门签名不能为空";
  4717. }
  4718. // if (this.checkString(this.applicationDetail.tHouseApproveOtherOptions.theGeomPoint)) {
  4719. // return "住建部门现场定位不能为空";
  4720. // }
  4721. return false;
  4722. },
  4723. validateTownForm() {
  4724. if (this.checkString(this.applicationDetail.ydjfsp.zjdzlpmwzt)) {
  4725. return "宅基地坐落平面位置图不能为空";
  4726. }
  4727. if (this.checkString(this.applicationDetail.ydjfsp.zckcryxm)) {
  4728. return "踏勘人不能为空";
  4729. }
  4730. if (this.checkString(this.applicationDetail.ydjfsp.zjdzlpmwztztr)) {
  4731. return "制图人不能为空";
  4732. }
  4733. if (this.checkString(this.applicationDetail.ydjfsp.xzzfshpzyj)) {
  4734. return "镇政府审批意见不能为空";
  4735. }
  4736. if (this.checkString(this.applicationDetail.ydjfsp.xzzfshpzrxm)) {
  4737. return "镇政府审批签字不能为空";
  4738. }
  4739. if (this.applicationDetail.homeApplyStatus === "1C" || this.applicationDetail.homeApplyStatus === "7C") {
  4740. if (this.fileTypeList.indexOf("4") === -1) {
  4741. return "请上传归档文件";
  4742. }
  4743. }
  4744. // if (this.checkString(this.applicationDetail.tHouseApproveTownOptions.theGeomPoint)) {
  4745. // return "镇政府审批现场定位不能为空";
  4746. // }
  4747. return false;
  4748. },
  4749. validateAcceptingFormBase() {
  4750. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.houseCertificateNo)) {
  4751. // return "权属证书号(不动产)不能为空";
  4752. // }
  4753. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.landCertificateNo)) {
  4754. // return "权属证书号(宅基地)不能为空";
  4755. // }
  4756. if (this.checkString(this.applicationDetail.ydjfys.pjcg)) {
  4757. return "批建高度不能为空";
  4758. }
  4759. if (this.checkString(this.applicationDetail.ydjfys.pjcs)) {
  4760. return "批建层数不能为空";
  4761. }
  4762. if (this.checkString(this.applicationDetail.ydjfys.jggd)) {
  4763. return "竣工高度不能为空";
  4764. }
  4765. if (this.checkString(this.applicationDetail.ydjfys.jgcs)) {
  4766. return "竣工层数不能为空";
  4767. }
  4768. if (this.checkString(this.applicationDetail.ydjfys.pzzjdmj)) {
  4769. return "批准宅基地面积不能为空";
  4770. }
  4771. if (this.checkString(this.applicationDetail.ydjfys.syzjdmj)) {
  4772. return "实用宅基地面积不能为空";
  4773. }
  4774. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.buildingOtherArea)) {
  4775. // return "配套附属设施建筑面积不能为空";
  4776. // }
  4777. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.designPaper)) {
  4778. // return "建筑风貌不能为空";
  4779. // }
  4780. if (this.checkString(this.applicationDetail.ydjfys.cjhtzjdqk)) {
  4781. return "旧宅基地退还情况不能为空";
  4782. }
  4783. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.houseCost)) {
  4784. // return "住房造价不能为空";
  4785. // }
  4786. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.facadeColor)) {
  4787. // return "外立面颜色不能为空";
  4788. // }
  4789. if (this.checkString(this.applicationDetail.ydjfys.pzfjzdmj)) {
  4790. return "批准房基占地面积不能为空";
  4791. }
  4792. if (this.checkString(this.applicationDetail.ydjfys.sjfjzdmj)) {
  4793. return "实际房基占地面积不能为空";
  4794. }
  4795. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.isEnjoySubsidy)) {
  4796. // return "是否享受住房建设补助政策不能为空";
  4797. // }
  4798. // if (this.applicationDetail.tHouseApplyEnd.isEnjoySubsidy === 'Y' && this.checkString(this.applicationDetail.tHouseApplyEnd.enjoySubsidyContent)) {
  4799. // return "享受住房建设补助政策不能为空";
  4800. // }
  4801. if (this.fileTypeList.indexOf("9") === -1) {
  4802. return "请上传验收会议纪要";
  4803. } else if (this.fileTypeList.indexOf("10") === -1) {
  4804. return "请上传验收保证书";
  4805. }
  4806. return false;
  4807. },
  4808. validateAcceptingFormTown(pass, role) {
  4809. //
  4810. // if(0)
  4811. // {
  4812. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.isProjectFinished)) {
  4813. // return "是否已完成工程设计和合同约定的各项内容不能为空";
  4814. // }
  4815. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.isQualifiedQuality)) {
  4816. // return "承揽人对完工住房质量自查是否合格不能为空";
  4817. // }
  4818. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.hasBuildingRecord)) {
  4819. // return "是否有施工记录资料不能为空";
  4820. // }
  4821. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.isSignWarranty)) {
  4822. // return "建房村民和承揽人是否已经共同签署农村住房质量保修书不能为空";
  4823. // }
  4824. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.isHandleProblem)) {
  4825. // return "住房城乡建设行政主管部门或乡(镇)人民政府责令整改的问题是否全部整改完毕不能为空";
  4826. // }
  4827. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.isDesignPaperSame)) {
  4828. // return "建筑风貌是否与设计图基本一致不能为空";
  4829. // }
  4830. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.isOtherAcceptanceFinished)) {
  4831. // return "法律、法规规定的其他验收条件完成情况不能为空";
  4832. // }
  4833. // }
  4834. if (!role || role === 'agriculture') {
  4835. if (this.checkString(this.applicationDetail.ydjfys.nyncbmysyj)) {
  4836. return "乡镇农业农村部门意见不能为空";
  4837. }
  4838. if (this.checkString(this.applicationDetail.ydjfys.nyncbmysjbrxm)) {
  4839. return "乡镇农业农村部门经办人不能为空";
  4840. }
  4841. if (this.checkString(this.applicationDetail.ydjfys.nyncbmyssj)) {
  4842. return "乡镇农业农村部门经办时间不能为空";
  4843. }
  4844. }
  4845. if (!role || role === 'nature_resource') {
  4846. if (this.checkString(this.applicationDetail.ydjfys.zrzybmysyj)) {
  4847. return "乡镇自然资源部门意见不能为空";
  4848. }
  4849. if (this.checkString(this.applicationDetail.ydjfys.zrzybmysjbrxm)) {
  4850. return "乡镇自然资源部门经办人不能为空";
  4851. }
  4852. if (this.checkString(this.applicationDetail.ydjfys.zrzybmyssj)) {
  4853. return "乡镇自然资源部门经办时间不能为空";
  4854. }
  4855. }
  4856. if (!role || role === 'building') {
  4857. if (this.checkString(this.applicationDetail.ydjfys.zfcxjsbmysyj)) {
  4858. return "乡镇住建部门意见不能为空";
  4859. }
  4860. if (this.checkString(this.applicationDetail.ydjfys.zfcxjsbmysjbrxm)) {
  4861. return "乡镇住建部门验收负责人不能为空";
  4862. }
  4863. if (this.checkString(this.applicationDetail.ydjfys.zfcxjsbmyssj)) {
  4864. return "乡镇住建部门验收时间不能为空";
  4865. }
  4866. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.buildingGeom)) {
  4867. // return "住建部门现场定位不能为空";
  4868. // }
  4869. // if(this.$refs.tHouseApplyEndBuilding && this.$refs.tHouseApplyEndBuilding.isValid()) {
  4870. // this.submitHouseApproveEndBuildingOptions();
  4871. // } else {
  4872. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.buildingPlan)) {
  4873. // return "住建部门现场拍照不能为空";
  4874. // }
  4875. // }
  4876. }
  4877. if (!role) {
  4878. if (this.checkString(this.applicationDetail.ydjfys.jgpmjtjbr)) {
  4879. return "竣工平面简图经办人不能为空";
  4880. }
  4881. if (this.checkString(this.applicationDetail.ydjfys.xzzfysyj)) {
  4882. return "乡镇政府验收意见不能为空";
  4883. }
  4884. if (this.checkString(this.applicationDetail.ydjfys.xzzfysjbrxm)) {
  4885. return "乡镇政府验收负责人不能为空";
  4886. }
  4887. if (this.checkString(this.applicationDetail.ydjfys.xzzfyssj)) {
  4888. return "乡镇政府验收时间不能为空";
  4889. }
  4890. // if (this.checkString(this.applicationDetail.tHouseApplyEnd.zhenGeom)) {
  4891. // return "乡镇政府现场定位不能为空";
  4892. // }
  4893. }
  4894. // 通过时检查打勾, 农业部门
  4895. if (!role || role === 'town_leader') {
  4896. console.info(this.fileTypeList)
  4897. if (this.fileTypeList.indexOf("11") === -1) {
  4898. return "请上传归档文件";
  4899. }
  4900. // if(this.applicationDetail.tHouseApplyEnd.isProjectFinished != 'Y')
  4901. // {
  4902. // return "同意验收时需已完成工程设计和合同约定的各项内容";
  4903. // }
  4904. // if(this.applicationDetail.tHouseApplyEnd.isQualifiedQuality != 'Y')
  4905. // {
  4906. // return "同意验收时需承揽人对完工住房质量自查合格";
  4907. // }
  4908. // if(this.applicationDetail.tHouseApplyEnd.hasBuildingRecord != 'Y')
  4909. // {
  4910. // return "同意验收时需有施工记录资料";
  4911. // }
  4912. // if(this.applicationDetail.tHouseApplyEnd.isSignWarranty != 'Y')
  4913. // {
  4914. // return "同意验收时需建房村民和承揽人已经共同签署农村住房质量保修书";
  4915. // }
  4916. // if(this.applicationDetail.tHouseApplyEnd.isHandleProblem != 'Y')
  4917. // {
  4918. // return "同意验收时需住房城乡建设行政主管部门或乡(镇)人民政府责令整改的问题全部整改完毕";
  4919. // }
  4920. // if(this.applicationDetail.tHouseApplyEnd.isDesignPaperSame != 'Y')
  4921. // {
  4922. // return "同意验收时需建筑风貌是否与设计图基本一致";
  4923. // }
  4924. // if(this.applicationDetail.tHouseApplyEnd.isOtherAcceptanceFinished != 'Y')
  4925. // {
  4926. // return "同意验收时需法律、法规规定的其他验收条件完成情况";
  4927. // }
  4928. }
  4929. return false;
  4930. },
  4931. onConfirmTytz(val) {
  4932. this.$set(this.applicationDetail, 'tyhxt', val.id);
  4933. this.tytzName = val.name;
  4934. this.showTyt = false;
  4935. },
  4936. validateStartFormBase() {
  4937. if (this.checkString(this.applicationDetail.ydjfkg.kgrq)) {
  4938. return "计划开工时间不能为空";
  4939. }
  4940. if (this.checkString(this.applicationDetail.ydjfkg.jgrq)) {
  4941. return "计划竣工时间不能为空";
  4942. }
  4943. if (this.fileTypeList.indexOf("5") === -1) {
  4944. return "请上传开工证书";
  4945. } else if (this.fileTypeList.indexOf("6") === -1) {
  4946. return "请上传开工合同";
  4947. }
  4948. return false;
  4949. },
  4950. parseIDCard(idcard) {
  4951. if (!idcard)
  4952. return false;
  4953. if (idcard.length !== 18)
  4954. return false;
  4955. if (!/^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/.test(idcard))
  4956. return false;
  4957. let sex = (parseInt(idcard.substr(16, 1)) % 2) ^ 1;
  4958. let now = new Date().getFullYear();
  4959. let y = parseInt(idcard.substr(6, 4));
  4960. let age = Math.max(now - y, 0);
  4961. return [sex, age];
  4962. },
  4963. updateUserInfo() {
  4964. let res = this.parseIDCard(this.applicationDetail.tHouseApplyProposer.idcard);
  4965. if (res) {
  4966. this.applicationDetail.tHouseApplyProposer.sex = res[0];
  4967. this.applicationDetail.tHouseApplyProposer.age = res[1];
  4968. }
  4969. },
  4970. updateMemberInfo(index) {
  4971. let res = this.parseIDCard(this.applicationDetail.sqrjtcyList[index].sfzh);
  4972. if (res) {
  4973. this.$set(this.applicationDetail.sqrjtcyList[index], 'nl', res[1]);
  4974. }
  4975. },
  4976. searchCommit(data) {
  4977. this.showesign = true;
  4978. this.onCliceQz = data;
  4979. console.info(this.$store.getters.baseRoutingUrl);
  4980. console.log(this.currentUserRole);
  4981. console.log(this.$store.getters.baseRoutingUrl);
  4982. console.info(this.applicationDetail.ydjfys.zrzybmysjbrxm);
  4983. if (this.selectedTabName == 0) {
  4984. if (this.currentUserRole == 'village_leader' && this.onCliceQz == 'cjxzscr' && this.applicationDetail.cjxzscr != '' && this.applicationDetail.cjxzscr != null) {
  4985. //村级审核人员签字
  4986. //if(this.checkString(this.applicationDetail.tHouseApproveVillageOptions.villageLeader))
  4987. this.resultImg = this.$store.getters.baseRoutingUrl + this.applicationDetail.cjxzscr;
  4988. } else if ((this.currentUserRole == 'nature_resource') && this.onCliceQz == 'ydjfsp.zrzybmscrxm' && this.applicationDetail.ydjfsp.zrzybmscrxm != '' && this.applicationDetail.ydjfsp.zrzybmscrxm != null) {
  4989. //自然资源部门签字
  4990. this.resultImg = this.$store.getters.baseRoutingUrl + this.applicationDetail.ydjfsp.zrzybmscrxm;
  4991. } else if ((this.currentUserRole == 'town_leader' || this.currentUserRole == 'building') && this.onCliceQz == 'ydjfsp.zfcxjsbmscrxm' && this.applicationDetail.ydjfsp.zfcxjsbmscrxm != '' && this.applicationDetail.ydjfsp.zfcxjsbmscrxm != null) {
  4992. //住建部门签字
  4993. this.resultImg = this.$store.getters.baseRoutingUrl + this.applicationDetail.ydjfsp.zfcxjsbmscrxm;
  4994. } else if ((this.currentUserRole == 'town_leader' || this.currentUserRole == 'agriculture') && this.onCliceQz == 'ydjfsp.nyncbmscrxm' && this.applicationDetail.ydjfsp.nyncbmscrxm != '' && this.applicationDetail.ydjfsp.nyncbmscrxm != null) {
  4995. //农村农业部门签字
  4996. this.resultImg = this.$store.getters.baseRoutingUrl + this.applicationDetail.ydjfsp.nyncbmscrxm;
  4997. } else if (this.currentUserRole == 'town_leader' && this.onCliceQz == 'ydjfsp.xzzfshpzrxm' && this.applicationDetail.ydjfsp.xzzfshpzrxm != '' && this.applicationDetail.ydjfsp.xzzfshpzrxm != null) {
  4998. //镇级领导签字 tHouseApproveTownOptions
  4999. this.resultImg = this.$store.getters.baseRoutingUrl + this.applicationDetail.ydjfsp.xzzfshpzrxm;
  5000. } else {
  5001. this.resultImg = null
  5002. if (this.$refs.esign) {
  5003. this.$refs.esign.reset();
  5004. }
  5005. }
  5006. } else if (this.selectedTabName == 1) {
  5007. } else if (this.selectedTabName == 2) {
  5008. if ((this.currentUserRole == 'town_leader' || this.currentUserRole == 'agriculture') && this.onCliceQz == 'ydjfys.nyncbmysjbrxm' && this.applicationDetail.ydjfys.nyncbmysjbrxm != '' && this.applicationDetail.ydjfys.nyncbmysjbrxm != null) {
  5009. //农村农业部门签字
  5010. this.resultImg = this.$store.getters.baseRoutingUrl + this.applicationDetail.ydjfys.nyncbmysjbrxm;
  5011. } else if ((this.currentUserRole == 'nature_resource' || this.currentUserRole == 'town_leader') && this.onCliceQz == 'ydjfys.zrzybmysjbrxm' && this.applicationDetail.ydjfys.zrzybmysjbrxm != '' && this.applicationDetail.ydjfys.zrzybmysjbrxm != null) {
  5012. //自然资源部门签字
  5013. this.resultImg = this.$store.getters.baseRoutingUrl + this.applicationDetail.ydjfys.zrzybmysjbrxm;
  5014. } else if ((this.currentUserRole == 'building' || this.currentUserRole == 'town_leader') && this.onCliceQz == 'ydjfys.zfcxjsbmysjbrxm' && this.applicationDetail.ydjfys.zfcxjsbmysjbrxm != '' && this.applicationDetail.ydjfys.zfcxjsbmysjbrxm != null) {
  5015. //镇级领导部门签字
  5016. this.resultImg = this.$store.getters.baseRoutingUrl + this.applicationDetail.ydjfys.zfcxjsbmysjbrxm;
  5017. } else if ((this.currentUserRole == 'town_leader') && this.onCliceQz == 'ydjfys.xzzfysjbrxm' && this.applicationDetail.ydjfys.xzzfysjbrxm != '' && this.applicationDetail.ydjfys.xzzfysjbrxm != null) {
  5018. //镇级领导部门签字
  5019. this.resultImg = this.$store.getters.baseRoutingUrl + this.applicationDetail.ydjfys.xzzfysjbrxm;
  5020. } else {
  5021. this.resultImg = null
  5022. if (this.$refs.esign) {
  5023. this.$refs.esign.reset();
  5024. }
  5025. }
  5026. }
  5027. },
  5028. // 清空画板
  5029. handleReset() {
  5030. this.resultImg = null
  5031. if (this.$refs.esign) {
  5032. this.$refs.esign.reset();
  5033. }
  5034. },
  5035. // 生成签字图
  5036. handleGenerate() {
  5037. this.$refs.esign
  5038. .generate() // 使用生成器调用把签字的图片转换成为base64图片格式
  5039. .then((res) => {
  5040. this.resultImg = res;
  5041. })
  5042. .catch((err) => {
  5043. // 画布没有签字时会执行这里提示一下
  5044. this.$message({
  5045. type: "warning",
  5046. message: "请签名后再生成签字图片",
  5047. });
  5048. });
  5049. // 在这里向后端发请求把转换后的base64文件传给后端,后端接收以后再转换成图片做静态图片存储
  5050. // 当然也可以把base64转成流文件blob格式的,类似上传给后端这样,具体哪种方式看后端要求
  5051. setTimeout(() => {
  5052. // 这里要使用定时器稍微延后以后就能取到base64数据了,当然也可以再加一个确认按钮,如:确认使用这张base64签名图片
  5053. // 点击确认以后,在其回调函数中,再把base64的签名图片传给后端用于存储
  5054. const blobBin = atob(this.resultImg.split(',')[1])
  5055. let d = []
  5056. for (let i = 0; i < blobBin.length; i++) {
  5057. d.push(blobBin.charCodeAt(i))
  5058. }
  5059. const data2 = new FormData();
  5060. data2.append("file", new Blob([new Uint8Array(d)], {type: 'image/jpeg'}));
  5061. uploadFile(data2).then(res => {
  5062. console.log(res);
  5063. console.log(this.selectedTabName);
  5064. console.log(this.currentUserRole);
  5065. if (this.selectedTabName == 0) {
  5066. if (this.currentUserRole == 'village_leader' && this.onCliceQz == 'cjxzscr') {
  5067. //村级审核人员签字
  5068. //if(this.checkString(this.applicationDetail.tHouseApproveVillageOptions.villageLeader))
  5069. this.applicationDetail.cjxzscr = res.fileName;
  5070. } else if ((this.currentUserRole == 'nature_resource' || this.currentUserRole == 'town_leader') && this.onCliceQz == 'ydjfsp.zrzybmscrxm') {
  5071. //自然资源部门签字
  5072. this.applicationDetail.ydjfsp.zrzybmscrxm = res.fileName;
  5073. } else if ((this.currentUserRole == 'town_leader' || this.currentUserRole == 'building') && this.onCliceQz == 'ydjfsp.zfcxjsbmscrxm') {
  5074. //其他部门签字
  5075. this.applicationDetail.ydjfsp.zfcxjsbmscrxm = res.fileName;
  5076. } else if ((this.currentUserRole == 'town_leader' || this.currentUserRole == 'agriculture') && this.onCliceQz == 'ydjfsp.nyncbmscrxm') {
  5077. //农村农业部门签字
  5078. this.applicationDetail.ydjfsp.nyncbmscrxm = res.fileName;
  5079. } else if (this.currentUserRole == 'town_leader' && this.onCliceQz == 'ydjfsp.xzzfshpzrxm') {
  5080. //镇级领导签字 tHouseApproveTownOptions
  5081. this.applicationDetail.ydjfsp.xzzfshpzrxm = res.fileName;
  5082. }
  5083. this.showesign = false;
  5084. } else if (this.selectedTabName == 1) {
  5085. } else if (this.selectedTabName == 2) {
  5086. if ((this.currentUserRole == 'town_leader' || this.currentUserRole == 'agriculture') && this.onCliceQz == 'ydjfys.nyncbmysjbrxm') {
  5087. //农村农业部门签字
  5088. this.applicationDetail.ydjfys.nyncbmysjbrxm = res.fileName;
  5089. } else if ((this.currentUserRole == 'nature_resource' || this.currentUserRole == 'town_leader') && this.onCliceQz == 'ydjfys.zrzybmysjbrxm') {
  5090. //自然资源部门签字
  5091. this.applicationDetail.ydjfys.zrzybmysjbrxm = res.fileName;
  5092. } else if ((this.currentUserRole == 'building' || this.currentUserRole == 'town_leader') && this.onCliceQz == 'ydjfys.zfcxjsbmysjbrxm') {
  5093. //自然资源部门签字
  5094. this.applicationDetail.ydjfys.zfcxjsbmysjbrxm = res.fileName;
  5095. } else if ((this.currentUserRole == 'town_leader') && this.onCliceQz == 'ydjfys.xzzfysjbrxm') {
  5096. //镇级领导部门签字
  5097. this.applicationDetail.ydjfys.xzzfysjbrxm = res.fileName;
  5098. }
  5099. this.showesign = false;
  5100. }
  5101. })
  5102. }, 200);
  5103. },
  5104. //定位当前位置
  5105. dingweiCommit(data) {
  5106. //this.mapShow =true;
  5107. this.mapZbNow = data;
  5108. // saveHouseBaseInfo(this.applicationDetail).then((response) => {
  5109. // }).catch(resp => {
  5110. // this.notify("保存失败!", 'danger');
  5111. // });
  5112. console.log(document.cookie);
  5113. console.log(window.location.href);
  5114. let chars = window.location.href.split("lat=")[1] || "";
  5115. if (chars != "" && chars != null && chars != undefined) {
  5116. var urlZb = window.location.href.split("&lat=")[0];
  5117. window.location = `https://www.nongshen.net/static/tdtLocation/location.html?exiturl=${urlZb}`;
  5118. } else {
  5119. window.location = `https://www.nongshen.net/static/tdtLocation/location.html?exiturl=${window.location.href}`;
  5120. }
  5121. },
  5122. dingweiCommitLook(data) {
  5123. this.mapShow = true;
  5124. var zb;
  5125. //定位坐标点查看
  5126. if (data == 'tHomeapplyYdjfkg') {
  5127. zb = this.applicationDetail.ydjfkg.theGeomJson;
  5128. }
  5129. setTimeout(() => {
  5130. var zbCl = zb.replace("POINT(", "").replace(")", "").replace(" ", ",");
  5131. zbCl = JSON.stringify([zbCl]).replaceAll("\"", "");
  5132. var vector_drawing;
  5133. let projection = new ol.proj.Projection({
  5134. //地图投影类型
  5135. code: "EPSG:3857",
  5136. units: "degrees",
  5137. //extent:extent
  5138. });
  5139. let aerial = new ol.layer.Tile({
  5140. source: new ol.source.XYZ({
  5141. url: "http://t0.tianditu.gov.cn/img_w/wmts?" +
  5142. "SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles" +
  5143. "&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=cc4aba6e967096098249efa069733067",
  5144. }),
  5145. isGroup: true,
  5146. name: "卫星影像图",
  5147. });
  5148. let yingxzi = new ol.layer.Tile({
  5149. source: new ol.source.XYZ({
  5150. url: "https://t0.tianditu.gov.cn/DataServer?T=cia_w&x={x}&y={y}&l={z}&tk=cc4aba6e967096098249efa069733067",
  5151. }),
  5152. isGroup: true,
  5153. name: "天地图文字标注--卫星影像图",
  5154. });
  5155. //加载地图
  5156. let map = new ol.Map({
  5157. controls: ol.control.defaults({attribution: false, zoom: false, rotate: false}).extend([]), //隐藏放大缩小按钮
  5158. layers: [aerial, yingxzi],
  5159. projection: projection,
  5160. target: 'uuidMap',
  5161. logo: 'false',
  5162. view: new ol.View({
  5163. center: ol.proj.fromLonLat(JSON.parse(zbCl)),
  5164. //zoom: false,
  5165. zoom: 17.9,
  5166. minZoom: 0, //地图缩小限制
  5167. maxZoom: 18.3, //地图放大限制
  5168. }),
  5169. });
  5170. var newcenterFeature = new ol.Feature({
  5171. geometry: new ol.geom.Point(ol.proj.fromLonLat(JSON.parse(zbCl))), //几何信息
  5172. name: "到场点",
  5173. });
  5174. var sourceMapLook = new ol.source.Vector({wrapX: false});
  5175. vector_drawing = new ol.layer.Vector({
  5176. source: sourceMapLook,
  5177. });
  5178. map.addLayer(vector_drawing);
  5179. newcenterFeature.setStyle(createLabelStyle()); //设置要素样式
  5180. sourceMapLook.addFeature(newcenterFeature);
  5181. //矢量标注样式设置函数,设置image为图标ol.style.Icon
  5182. function createLabelStyle() {
  5183. return new ol.style.Style({
  5184. image: new ol.style.Icon({
  5185. //设置图标偏移
  5186. anchor: [0.5, 1],
  5187. //标注样式的起点位置
  5188. anchorOrigin: "top-right",
  5189. //X方向单位:分数
  5190. anchorXUnits: "fraction",
  5191. //Y方向单位:像素
  5192. anchorYUnits: "pixels",
  5193. //偏移起点位置的方向
  5194. offsetOrigin: "top-right",
  5195. //透明度
  5196. opacity: 0.9,
  5197. //图片路径
  5198. src: require("../../../assets/images/housesteadSurvey/mark.png"),
  5199. }),
  5200. zIndex: 9999,
  5201. });
  5202. }
  5203. }, 1000);
  5204. },
  5205. mapZbQx() {
  5206. },
  5207. mapZbQd() {
  5208. // //申请审批定位
  5209. // if(this.mapZbNow == 'tHouseApproveVillage' && this.formEnabled.baseApplyForm.villageFormEnabled){
  5210. // this.applicationDetail.tHouseApproveVillageOptions.theGeom = JSON.stringify(this.mapBcZb);
  5211. // }
  5212. // if (this.mapZbNow == 'tHouseApproveNature' && this.formEnabled.baseApplyForm.nature_resourceFormEnabled){
  5213. // this.applicationDetail.tHouseApproveNatureOptions.theGeomPoint = JSON.stringify(this.mapBcZb);
  5214. // }
  5215. // if(this.mapZbNow == 'tHouseApproveAgriculture' && this.formEnabled.baseApplyForm.agricultureFormEnabled){
  5216. // this.applicationDetail.tHouseApproveAgricultureOptions.theGeomPoint = JSON.stringify(this.mapBcZb);
  5217. // }
  5218. // if(this.mapZbNow == 'tHouseApproveOther' && this.formEnabled.baseApplyForm.buildingFormEnabled){
  5219. // this.applicationDetail.tHouseApproveOtherOptions.theGeomPoint = JSON.stringify(this.mapBcZb);
  5220. // }
  5221. // if(this.mapZbNow == 'tHouseApproveTown' && this.formEnabled.baseApplyForm.townFormEnabled){
  5222. // this.applicationDetail.tHouseApproveTownOptions.theGeomPoint = JSON.stringify(this.mapBcZb);
  5223. // }
  5224. // //验收申请定位
  5225. // if(this.mapZbNow == 'tHouseApplyEndNongye' && this.formEnabled.acceptingForm.agricultureFormEnabled){
  5226. // this.applicationDetail.tHouseApplyEnd.nongyeGeom = JSON.stringify(this.mapBcZb);
  5227. // }
  5228. // if(this.mapZbNow == 'tHouseApplyEndNature' && this.formEnabled.acceptingForm.nature_resourceFormEnabled){
  5229. // this.applicationDetail.tHouseApplyEnd.natureGeom = JSON.stringify(this.mapBcZb);
  5230. // }
  5231. // if(this.mapZbNow == 'tHouseApplyEndZhen' && this.formEnabled.acceptingForm.townFormEnabled){
  5232. // this.applicationDetail.tHouseApplyEnd.zhenGeom = JSON.stringify(this.mapBcZb);
  5233. // }
  5234. //申请审批定位
  5235. if (this.formEnabled.baseApplyForm.villageFormEnabled) {
  5236. this.applicationDetail.tHouseApproveVillageOptions.theGeom = JSON.stringify(this.mapBcZb);
  5237. }
  5238. if (this.formEnabled.baseApplyForm.nature_resourceFormEnabled) {
  5239. this.applicationDetail.tHouseApproveNatureOptions.theGeomPoint = JSON.stringify(this.mapBcZb);
  5240. }
  5241. if (this.formEnabled.baseApplyForm.agricultureFormEnabled) {
  5242. this.applicationDetail.tHouseApproveAgricultureOptions.theGeomPoint = JSON.stringify(this.mapBcZb);
  5243. }
  5244. if (this.formEnabled.baseApplyForm.buildingFormEnabled) {
  5245. this.applicationDetail.tHouseApproveOtherOptions.theGeomPoint = JSON.stringify(this.mapBcZb);
  5246. }
  5247. if (this.formEnabled.baseApplyForm.townFormEnabled) {
  5248. this.applicationDetail.tHouseApproveTownOptions.theGeomPoint = JSON.stringify(this.mapBcZb);
  5249. }
  5250. //验收申请定位
  5251. if (this.formEnabled.acceptingForm.agricultureFormEnabled) {
  5252. this.applicationDetail.tHouseApplyEnd.nongyeGeom = JSON.stringify(this.mapBcZb);
  5253. }
  5254. if (this.formEnabled.acceptingForm.nature_resourceFormEnabled) {
  5255. this.applicationDetail.tHouseApplyEnd.natureGeom = JSON.stringify(this.mapBcZb);
  5256. }
  5257. if (this.formEnabled.acceptingForm.townFormEnabled) {
  5258. this.applicationDetail.tHouseApplyEnd.zhenGeom = JSON.stringify(this.mapBcZb);
  5259. }
  5260. },
  5261. }
  5262. ,
  5263. watch: {
  5264. selectedTabName: function (newVal, oldVal) {
  5265. this.$nextTick(() => {
  5266. if (newVal == PROPOSER_STAGE_BASE_APPLY) {
  5267. this.pointDarw(null);
  5268. // this.pointDarwNature(null);
  5269. this.$refs.pointDarwMap && this.$refs.pointDarwMap.update();
  5270. this.$refs.pointDarwNatureMap && this.$refs.pointDarwNatureMap.update();
  5271. } else if (newVal == PROPOSER_STAGE_START) {
  5272. // this.paintStartNatureMap(null);
  5273. this.$refs.startNatureMap && this.$refs.startNatureMap.update();
  5274. } else if (newVal == PROPOSER_STAGE_END) {
  5275. // this.pointWrapAcceptance(null);
  5276. this.$refs.pointDarwAcceptanceMap && this.$refs.pointDarwAcceptanceMap.update();
  5277. }
  5278. })
  5279. }
  5280. ,
  5281. }
  5282. }
  5283. </script>
  5284. <style scoped lang="scss">
  5285. .app-container {
  5286. padding-bottom: 5%;
  5287. .header_main {
  5288. height: 116px;
  5289. background: url('../../../assets/images/sunVillage_info/list_head_green.png') no-repeat;
  5290. background-size: 100% 100%;
  5291. position: fixed;
  5292. top: 0;
  5293. left: 0;
  5294. width: 100%;
  5295. font-size: 36px;
  5296. line-height: 116px;
  5297. text-align: center;
  5298. color: #fff;
  5299. position: relative;
  5300. .return_btn {
  5301. width: 24px;
  5302. height: 43.2px;
  5303. background: url('../../../assets/images/sunVillage_info/list_icon_5.png') center center no-repeat;
  5304. background-size: 20px 36px;
  5305. position: absolute;
  5306. left: 38px;
  5307. top: 36px;
  5308. }
  5309. .add_btn {
  5310. width: 20PX;
  5311. height: 20PX;
  5312. background: url('../../../../static/images/icon/icon_flow.png') center center no-repeat;
  5313. background-size: 20PX 20PX;
  5314. position: absolute;
  5315. right: 38px;
  5316. top: 36px;
  5317. }
  5318. }
  5319. }
  5320. .examine_box {
  5321. background-color: #1D6FE9 !important;
  5322. padding: 0.18rem !important;
  5323. padding-left: 0 !important;
  5324. border-radius: 0.15rem !important;
  5325. margin-top: 0.3rem !important;
  5326. }
  5327. .examine_box .van-col:first-child {
  5328. color: #FFF !important;
  5329. font-size: 0.45rem !important;
  5330. text-align: center !important;
  5331. }
  5332. .examine_box .van-col:last-child {
  5333. background-color: #FFF !important;
  5334. border-radius: 0.15rem !important;
  5335. overflow: hidden !important;
  5336. .van-radio-group--horizontal {
  5337. padding: 0.2rem 0;
  5338. border-bottom: 1px solid #eee;
  5339. }
  5340. }
  5341. #mapWrap {
  5342. width: 96%;
  5343. margin: 0 auto;
  5344. border-bottom-left-radius: 12px;
  5345. border-bottom-right-radius: 12px;
  5346. overflow: hidden;
  5347. }
  5348. .mapBox {
  5349. position: relative;
  5350. .mapBox_button {
  5351. position: absolute;
  5352. top: 0.2rem;
  5353. right: 2%;
  5354. }
  5355. }
  5356. .van-steps {
  5357. padding: 2% 6% 0;
  5358. }
  5359. .topTit {
  5360. margin-top: 0.4rem;
  5361. font-size: 0.45rem;
  5362. background-color: #1D6FE9;
  5363. color: #FFFFFF;
  5364. line-height: 58px;
  5365. text-align: center;
  5366. padding: 15px 0;
  5367. box-shadow: 0px 3px 6px 0px rgba(15, 67, 145, 0.40);
  5368. }
  5369. .main_title {
  5370. font-size: 0.4rem;
  5371. color: #1D6FE9;
  5372. margin: 0.2rem 6%;
  5373. position: relative;
  5374. }
  5375. .main_box {
  5376. width: 96%;
  5377. margin: 0 auto;
  5378. border-radius: 6px;
  5379. box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.16);
  5380. overflow: hidden;
  5381. background-color: #FFF;
  5382. }
  5383. .collapse {
  5384. width: 96%;
  5385. margin: 0 auto;
  5386. border-radius: 6px;
  5387. box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.16);
  5388. overflow: hidden;
  5389. margin-bottom: 15px;
  5390. }
  5391. /deep/ .van-radio--horizontal {
  5392. margin-left: 20px;
  5393. margin-right: 0;
  5394. }
  5395. .file-box {
  5396. padding: 2% 5% 0;
  5397. }
  5398. .submitButton {
  5399. width: 80%;
  5400. margin: 0 auto;
  5401. border-radius: 14px;
  5402. }
  5403. .timeTit {
  5404. text-align: center;
  5405. font-size: 16px;
  5406. line-height: 27px;
  5407. }
  5408. .action-box {
  5409. padding: 15px 0 !important;
  5410. margin-top: 0.4rem;
  5411. }
  5412. .check-box {
  5413. margin-top: 0.4rem;
  5414. }
  5415. .addFamily {
  5416. position: absolute;
  5417. top: -2px;
  5418. right: 0;
  5419. border-radius: 50%;
  5420. display: inline-block;
  5421. width: 0.7rem;
  5422. height: 0.7rem;
  5423. }
  5424. .deleteFamily {
  5425. position: absolute;
  5426. top: -0.35rem;
  5427. right: 6%;
  5428. z-index: 9;
  5429. border-radius: 50%;
  5430. display: inline-block;
  5431. width: 0.7rem;
  5432. height: 0.7rem;
  5433. }
  5434. .familyList {
  5435. margin-top: 0.4rem;
  5436. position: relative;
  5437. }
  5438. .noModify {
  5439. .topTit {
  5440. background-color: #ABABAB;
  5441. box-shadow: 0px 3px 6px 0px rgba(171, 171, 171, 0.40);
  5442. }
  5443. .van-cell__title {
  5444. color: #B4B0B0;
  5445. }
  5446. }
  5447. .flow_main_box {
  5448. width: 96%;
  5449. margin: 0 auto;
  5450. border-radius: 6px;
  5451. box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.16);
  5452. overflow: hidden;
  5453. background-color: #FFF;
  5454. margin-top: 2%;
  5455. padding: 5% 1%;
  5456. .van-col {
  5457. text-align: center;
  5458. }
  5459. .tit {
  5460. background: #1d6fe9;
  5461. border-radius: 12px;
  5462. font-size: 0.4rem;
  5463. font-family: Source Han Sans CN, Source Han Sans CN-Regular;
  5464. font-weight: 400;
  5465. color: #ffffff;
  5466. line-height: 0.65rem;
  5467. letter-spacing: 0px;
  5468. width: 70%;
  5469. margin: 0 auto;
  5470. }
  5471. .van-step--vertical {
  5472. padding-right: 0;
  5473. text-align: left;
  5474. }
  5475. .van-step--vertical:not(:last-child)::after {
  5476. border: none;
  5477. }
  5478. .van-step--finish {
  5479. color: #1d6fe9;
  5480. }
  5481. }
  5482. .van-goods-action {
  5483. justify-content: center;
  5484. }
  5485. .van-goods-action-button--first {
  5486. border-radius: 0.053333rem;
  5487. }
  5488. .van-goods-action-button--last {
  5489. border-radius: 0.053333rem;
  5490. }
  5491. .van-goods-action-button {
  5492. margin-left: 0.1rem;
  5493. }
  5494. .fuTitle {
  5495. border-top: 1px solid #e9e9e9;
  5496. text-align: center;
  5497. padding: 10px 0px 0px 0px;
  5498. font-size: 18px;
  5499. color: #999;
  5500. }
  5501. .zkshStyle {
  5502. margin: 0 50%;
  5503. }
  5504. #mapDiv {
  5505. width: 100%;
  5506. height: 400px
  5507. }
  5508. input,
  5509. b,
  5510. p {
  5511. margin-left: 5px;
  5512. font-size: 14px
  5513. }
  5514. </style>