add.vue 124 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197
  1. <template>
  2. <view class="addbox" :style="'padding-top:'+listTop+'rpx;'">
  3. <!-- 步骤条 -->
  4. <view class="navtop">
  5. <uni-nav-bar color="#ffffff" leftWidth="160rpx" rightWidth="160rpx" title="业务申报" :background-color="actcolor" :border="false"
  6. statusBar='true'>
  7. <block slot="left">
  8. <view class="topl" v-if="ftype" @click="getBack">
  9. <image class="backimg" :src="backimg" ></image>
  10. </view>
  11. <cover-view class="topl" v-else @click="getBack">
  12. <cover-image class="backimg" :src="backimg" @click.stop="getBack"></cover-image>
  13. </cover-view>
  14. </block>
  15. <!-- #ifndef MP-WEIXIN -->
  16. <block slot="right">
  17. <view class="edit" v-if="ftype" @click="getGiveupFn">
  18. <image :src="feditimg"></image>
  19. 放弃编辑
  20. </view>
  21. <cover-view class="edit" v-else @click="getGiveupFn">
  22. <cover-image :src="feditimg" @click.stop="getGiveupFn" class="img"></cover-image>
  23. <cover-view @click.stop="getGiveupFn" class="txt">放弃编辑</cover-view>
  24. </cover-view>
  25. </block>
  26. <!-- #endif -->
  27. </uni-nav-bar>
  28. <!-- 头部 -->
  29. <step-bar :steps="steps" :fixeda='false' :stepval="stepval"></step-bar>
  30. </view>
  31. <uni-forms ref="form" :model="datainfo" :rules="rules">
  32. <view class="bgf plr12 mt12">
  33. <uni-forms-item label="项目编号" name="loanApplicationNumber">
  34. <view class="lbtabp">
  35. <view :class="datainfo.loanApplicationNumber?'':'coa'">{{datainfo.loanApplicationNumber}}</view>
  36. </view>
  37. </uni-forms-item>
  38. </view>
  39. <!-- 企业信息 -->
  40. <view v-show="stepval==1">
  41. <!-- 企业信息 -->
  42. <view class="addtit mt3"><text>*</text>企业信息</view>
  43. <view class="bgf plr12">
  44. <picker range-key='label' :value="qyidx" :range="qylist" class="isborder" @change='bindDateChangea'>
  45. <uni-forms-item label="企业名称" name="enterpriseName">
  46. <view class="lbtabp">
  47. <view class="chtit" :class="datainfo.enterpriseName?'':'coa'">{{datainfo.enterpriseName||"请选择已添加的企业"}}</view>
  48. <image :src="hrimg" class="rimg"></image>
  49. </view>
  50. </uni-forms-item>
  51. </picker>
  52. <uni-forms-item label="行业类型" name="categoryType">
  53. <view class="lbtabp" @click="getTalbFn">
  54. <view :class="datainfo.categoryType?'':'coa'">{{datainfo.categoryType||"请选择行业类型"}}</view>
  55. <image :src="hrimg" class="rimg"></image>
  56. </view>
  57. </uni-forms-item>
  58. <uni-forms-item label="是否是制造业" name="isMake">
  59. <view class="checkbox">
  60. <uni-data-checkbox :selectedColor="actcolor" selectedTextColor='#222327' v-model="datainfo.isMake" :localdata="sfList" />
  61. </view>
  62. </uni-forms-item>
  63. <uni-forms-item label="是否专精特新" name="isNew">
  64. <view class="checkbox">
  65. <uni-data-checkbox :selectedColor="actcolor" selectedTextColor='#222327' v-model="datainfo.isNew" :localdata="sfList" />
  66. </view>
  67. </uni-forms-item>
  68. <uni-forms-item label="是否小微企业" name="isSmall">
  69. <view class="flexc">
  70. <view class="checkbox flex1">
  71. <uni-data-checkbox :selectedColor="actcolor" selectedTextColor='#222327' v-model="datainfo.isSmall" :localdata="sfList" />
  72. </view>
  73. <view class="ywicon flexc" @click="showImg"><image :src="ywicon"></image>划分标准</view>
  74. </view>
  75. </uni-forms-item>
  76. <uni-forms-item label="公司简介" name="companyIntroduction">
  77. <uni-easyinput type="textarea" autoHeight v-model="datainfo.companyIntroduction" :inputBorder='false' placeholder="请输入公司简介" />
  78. </uni-forms-item>
  79. <uni-forms-item label="公司简介" name="iszcy">
  80. <view class="phobox">
  81. <view class="phoboxa" v-if="jcfjobj.gszc">
  82. <!-- fileName 给label 0 -->
  83. <lsj-upload ref="lsjUpload" childId="upload1" :fileName="jcfjobj.gsjj" fileVal='gsjj' bigType="a" :width="pwidth" :height="pheight" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  84. @progress="" @uploadEnd="onuploadEnd" >
  85. <view class="photop" >
  86. <image :src="zico" class="bgimg"></image>
  87. <image :src="phoicon" class="addimg"></image>
  88. </view>
  89. </lsj-upload>
  90. <view class="photit atit">公司简介附件与输入信息填一个即可。</view>
  91. </view>
  92. <block v-for="(ite,idx) in filelist" :key='idx'>
  93. <view class="phoboxa" v-if="ite.type=='gsjj'&&ite.bigType=='a'">
  94. <view class="photop" @click="getDown(ite.url)">
  95. <image :src="lookico" class="bgimg"></image>
  96. <image :src="phoicon" class="addimg"></image>
  97. <image :src="delimg" class="delimg" @click.stop="getDelFj(idx)"></image>
  98. </view>
  99. <view class="photit">{{ite.name}}</view>
  100. </view>
  101. </block>
  102. </view>
  103. </uni-forms-item>
  104. <uni-forms-item label="公司章程" name="iszcy">
  105. <view class="phobox">
  106. <view class="phoboxa" v-if="jcfjobj.gszc">
  107. <!-- fileName 给label 0 -->
  108. <lsj-upload ref="lsjUpload" childId="upload1" :fileName="jcfjobj.gszc" fileVal='gszc' bigType="a" :width="pwidth" :height="pheight" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  109. @progress="" @uploadEnd="onuploadEnd" >
  110. <view class="photop" >
  111. <image :src="zico" class="bgimg"></image>
  112. <image :src="phoicon" class="addimg"></image>
  113. </view>
  114. </lsj-upload>
  115. <view class="photit atit">上传公司章程并盖市监局备案章</view>
  116. </view>
  117. <block v-for="(ite,idx) in filelist" :key='idx'>
  118. <view class="phoboxa" v-if="ite.type=='gszc'&&ite.bigType=='a'">
  119. <view class="photop" @click="getDown(ite.url)">
  120. <image :src="lookico" class="bgimg"></image>
  121. <image :src="phoicon" class="addimg"></image>
  122. <image :src="delimg" class="delimg" @click.stop="getDelFj(idx)"></image>
  123. </view>
  124. <view class="photit">{{ite.name}}</view>
  125. </view>
  126. </block>
  127. </view>
  128. </uni-forms-item>
  129. <uni-forms-item label="开户许可证" name="iszcy">
  130. <view class="phobox">
  131. <view class="phoboxa" v-if="jcfjobj.khxkz">
  132. <lsj-upload ref="lsjUpload" childId="upload1" :fileName="jcfjobj.khxkz" fileVal='khxkz' bigType="a" :width="pwidth" :height="pheight" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  133. @progress="" @uploadEnd="onuploadEnd" >
  134. <view class="photop" >
  135. <image :src="zico" class="bgimg"></image>
  136. <image :src="phoicon" class="addimg"></image>
  137. </view>
  138. </lsj-upload>
  139. <view class="photit">上传开户许可证</view>
  140. </view>
  141. <block v-for="(ite,idx) in filelist" :key='idx'>
  142. <view class="phoboxa" v-if="ite.type=='khxkz'&&ite.bigType=='a'">
  143. <view class="photop" @click="getDown(ite.url)">
  144. <image :src="lookico" class="bgimg"></image>
  145. <image :src="phoicon" class="addimg"></image>
  146. <image :src="delimg" class="delimg" @click.stop="getDelFj(idx)"></image>
  147. </view>
  148. <view class="photit">{{ite.name}}</view>
  149. </view>
  150. </block>
  151. </view>
  152. </uni-forms-item>
  153. <!-- <uni-forms-item label="企业名称" name="email">
  154. <uni-easyinput v-model="datainfo.email" :inputBorder='false' placeholder="自动识别" />
  155. </uni-forms-item> -->
  156. </view>
  157. <!-- 全体股东身份信息 -->
  158. <view class="addtit mt3"><text>*</text>全体股东身份信息<text style="color: red; font-size: 12px;">(身份证信息与营业执照两者只需上传一个)</text></view>
  159. <view class="bgf plr12">
  160. <block v-for="(ite,idx) in gdlist" :key="idx">
  161. <uni-forms-item name="iszcy">
  162. <view class="labtxt">股东{{(Number(idx)+1)}}身份证
  163. <text class="del" @click="getdelGdFn(idx,ite)">删除</text>
  164. </view>
  165. <view class="phobox" style="display: flex;flex-wrap: wrap;justify-content: space-between;">
  166. <view class="phoboxa">
  167. <lsj-upload ref="lsjUpload" childId="upload1" :fileName="'股东'+(Number(idx)+1)+'身份证'" :fileVal='idx' bigType="cardz" :width="pwidth" :height="pheight" :formats="gdformats" :option="option" :size="size" :debug="debug" :instantly="instantly"
  168. @progress="" @uploadEnd="gdonuploadEnd" >
  169. <view class="photop">
  170. <image v-if="ite.cardz" :src="baseUrl+ite.cardz" class="bgimg"></image>
  171. <image v-else :src="cardz" class="bgimg"></image>
  172. <image :src="phoicon" class="addimg"></image>
  173. </view>
  174. </lsj-upload>
  175. <view class="photit">上传人像面</view>
  176. </view>
  177. <view class="phoboxa" >
  178. <lsj-upload ref="lsjUpload" childId="upload1" :fileName="'股东'+(Number(idx)+1)+'身份证'" :fileVal='idx' bigType="cardf" :width="pwidth" :height="pheight" :option="option" :size="size" :formats="gdformats" :debug="debug" :instantly="instantly"
  179. @progress="" @uploadEnd="gdonuploadEnd" >
  180. <view class="photop">
  181. <image v-if="ite.cardf" :src="baseUrl+ite.cardf" class="bgimg"></image>
  182. <image v-else :src="cardf" class="bgimg"></image>
  183. <image :src="phoicon" class="addimg"></image>
  184. </view>
  185. </lsj-upload>
  186. <view class="photit">上传国徽面</view>
  187. </view>
  188. </view>
  189. </uni-forms-item>
  190. <uni-forms-item name="iszcy">
  191. <view class="labtxt">股东{{(Number(idx)+1)}}营业执照
  192. <text>(上传一张)</text>
  193. <text class="del" @click="getdelGdFn(idx,ite)">删除</text>
  194. </view>
  195. <view class="phobox">
  196. <view class="phoboxa">
  197. <lsj-upload ref="lsjUpload" childId="upload1" :fileName="'股东'+(Number(idx)+1)+'营业执照'" :fileVal='idx' bigType="zhz" :width="pwidth" :height="pheight" :option="option" :size="size" :formats="gdformats" :debug="debug" :instantly="instantly"
  198. @progress="" @uploadEnd="gdonuploadEnd" >
  199. <view class="photop" >
  200. <image :src="zico" class="bgimg"></image>
  201. <image :src="phoicon" class="addimg"></image>
  202. </view>
  203. </lsj-upload>
  204. <view class="photit">上传实际控股人营业执照</view>
  205. </view>
  206. <block v-if="ite.zhizhao&&ite.zhizhao.length">
  207. <view class="phoboxa" v-for="(zxite,zxidx) in ite.zhizhao" :key="zxidx">
  208. <view class="photop" @click="getDown(zxite)">
  209. <image :src="lookico" class="bgimg"></image>
  210. <image :src="phoicon" class="addimg"></image>
  211. <image :src="delimg" class="delimg" @click.stop="getDelgdyy(idx,zxidx)"></image>
  212. </view>
  213. <!-- <view class="photit">{{zxite.name}}</view> -->
  214. </view>
  215. </block>
  216. </view>
  217. </uni-forms-item>
  218. </block>
  219. <view class="addgdbox">
  220. <view class="rzbtnadd" @click="getAddGdFn">
  221. <image :src="addgd"></image>添加股东
  222. </view>
  223. </view>
  224. </view>
  225. <!-- * 企业征信(由中国人民银行提供) -->
  226. <view class="addtit mt3"><text>*</text>企业征信(由中国人民银行提供)</view>
  227. <view class="bgf plr12">
  228. <uni-forms-item label="申请企业" name="iszcy">
  229. <view class="phobox">
  230. <view class="phoboxa" v-if="jcfjobj.sqqyzxbg">
  231. <lsj-upload ref="lsjUpload" childId="upload1" :fileName="jcfjobj.sqqyzxbg" fileVal='sqqyzxbg' bigType="a" :width="pwidth" :height="pheight" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  232. @progress="" @uploadEnd="onuploadEnd" >
  233. <view class="photop" >
  234. <image :src="zico" class="bgimg"></image>
  235. <image :src="phoicon" class="addimg"></image>
  236. </view>
  237. </lsj-upload>
  238. <view class="photit atit">上传申请企业征信报告</view>
  239. </view>
  240. <block v-for="(ite,idx) in filelist" :key='idx'>
  241. <view class="phoboxa" v-if="ite.type=='sqqyzxbg'&&ite.bigType=='a'">
  242. <view class="photop" @click="getDown(ite.url)">
  243. <image :src="lookico" class="bgimg"></image>
  244. <image :src="phoicon" class="addimg"></image>
  245. <image :src="delimg" class="delimg" @click.stop="getDelFj(idx)"></image>
  246. </view>
  247. <view class="photit">{{ite.name}}</view>
  248. </view>
  249. </block>
  250. </view>
  251. </uni-forms-item>
  252. <uni-forms-item label="关联企业" name="iszcy">
  253. <view class="phobox">
  254. <view class="phoboxa" v-if="jcfjobj.glqyzxbg">
  255. <lsj-upload ref="lsjUpload" childId="upload1" :fileName="jcfjobj.glqyzxbg" fileVal='glqyzxbg' bigType="a" :width="pwidth" :height="pheight" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  256. @progress="" @uploadEnd="onuploadEnd" >
  257. <view class="photop" >
  258. <image :src="zico" class="bgimg"></image>
  259. <image :src="phoicon" class="addimg"></image>
  260. </view>
  261. </lsj-upload>
  262. <view class="photit atit">上传关联企业征信报告</view>
  263. </view>
  264. <block v-for="(ite,idx) in filelist" :key='idx'>
  265. <view class="phoboxa" v-if="ite.type=='glqyzxbg'&&ite.bigType=='a'">
  266. <view class="photop" @click="getDown(ite.url)">
  267. <image :src="lookico" class="bgimg"></image>
  268. <image :src="phoicon" class="addimg"></image>
  269. <image :src="delimg" class="delimg" @click.stop="getDelFj(idx)"></image>
  270. </view>
  271. <view class="photit">{{ite.name}}</view>
  272. </view>
  273. </block>
  274. </view>
  275. </uni-forms-item>
  276. </view>
  277. <!-- * 企业法人征信-->
  278. <view class="addtit mt3"><text>*</text>企业法人征信</view>
  279. <view class="bgf plr12">
  280. <uni-forms-item label="企业法人" name="iszcy">
  281. <view class="phobox">
  282. <view class="phoboxa" v-if="jcfjobj.qyfrzxbg">
  283. <lsj-upload ref="lsjUpload" childId="upload1" :fileName="jcfjobj.qyfrzxbg" fileVal='qyfrzxbg' bigType="a" :width="pwidth" :height="pheight" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  284. @progress="" @uploadEnd="onuploadEnd" >
  285. <view class="photop" >
  286. <image :src="zico" class="bgimg"></image>
  287. <image :src="phoicon" class="addimg"></image>
  288. </view>
  289. </lsj-upload>
  290. <view class="photit atit">上传企业法人征信报告</view>
  291. </view>
  292. <block v-for="(ite,idx) in filelist" :key='idx'>
  293. <view class="phoboxa" v-if="ite.type=='qyfrzxbg'&&ite.bigType=='a'">
  294. <view class="photop" @click="getDown(ite.url)">
  295. <image :src="lookico" class="bgimg"></image>
  296. <image :src="phoicon" class="addimg"></image>
  297. <image :src="delimg" class="delimg" @click.stop="getDelFj(idx)"></image>
  298. </view>
  299. <view class="photit">{{ite.name}}</view>
  300. </view>
  301. </block>
  302. </view>
  303. </uni-forms-item>
  304. </view>
  305. <!-- * 实际控股人夫妻双方征信-->
  306. <view class="addtit mt3"><text>*</text>实际控股人夫妻双方征信</view>
  307. <view class="bgf plr12">
  308. <uni-forms-item label="实际控股人" name="iszcy">
  309. <view class="phobox">
  310. <view class="phoboxa" v-if="jcfjobj.sjkgrzxbg">
  311. <lsj-upload ref="lsjUpload" childId="upload1" :fileName="jcfjobj.sjkgrzxbg" fileVal='sjkgrzxbg' bigType="a" :width="pwidth" :height="pheight" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  312. @progress="" @uploadEnd="onuploadEnd" >
  313. <view class="photop" >
  314. <image :src="zico" class="bgimg"></image>
  315. <image :src="phoicon" class="addimg"></image>
  316. </view>
  317. </lsj-upload>
  318. <view class="photit atit">上传实际控股人征信报告</view>
  319. </view>
  320. <block v-for="(ite,idx) in filelist" :key='idx'>
  321. <view class="phoboxa" v-if="ite.type=='sjkgrzxbg'&&ite.bigType=='a'">
  322. <view class="photop" @click="getDown(ite.url)">
  323. <image :src="lookico" class="bgimg"></image>
  324. <image :src="phoicon" class="addimg"></image>
  325. <image :src="delimg" class="delimg" @click.stop="getDelFj(idx)"></image>
  326. </view>
  327. <view class="photit">{{ite.name}}</view>
  328. </view>
  329. </block>
  330. </view>
  331. </uni-forms-item>
  332. <uni-forms-item label="配偶征信" name="iszcy">
  333. <view class="phobox">
  334. <view class="phoboxa" v-if="jcfjobj.sjkgrpozxbg">
  335. <lsj-upload ref="lsjUpload" childId="upload1" :fileName="jcfjobj.sjkgrpozxbg" fileVal='sjkgrpozxbg' bigType="a" :width="pwidth" :height="pheight" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  336. @progress="" @uploadEnd="onuploadEnd" >
  337. <view class="photop" >
  338. <image :src="zico" class="bgimg"></image>
  339. <image :src="phoicon" class="addimg"></image>
  340. </view>
  341. </lsj-upload>
  342. <view class="photit atit">上传实际控股人配偶征信报告</view>
  343. </view>
  344. <block v-for="(ite,idx) in filelist" :key='idx'>
  345. <view class="phoboxa" v-if="ite.type=='sjkgrpozxbg'&&ite.bigType=='a'">
  346. <view class="photop" @click="getDown(ite.url)">
  347. <image :src="lookico" class="bgimg"></image>
  348. <image :src="phoicon" class="addimg"></image>
  349. <image :src="delimg" class="delimg" @click.stop="getDelFj(idx)"></image>
  350. </view>
  351. <view class="photit">{{ite.name}}</view>
  352. </view>
  353. </block>
  354. </view>
  355. </uni-forms-item>
  356. </view>
  357. <!-- * 各股东个人征信(请与上面所填股东对应) -->
  358. <view class="addtit mt3"><text>*</text>各股东个人征信(请与上面所填股东对应)</view>
  359. <view class="bgf plr12">
  360. <block v-for="(ite,idx) in gdlist" :key="idx">
  361. <uni-forms-item :label="'股东'+(Number(idx)+1)+'征信'" name="iszcy">
  362. <view class="phobox">
  363. <view class="phoboxa">
  364. <lsj-upload ref="lsjUpload" childId="upload1" :fileName="'股东'+(Number(idx)+1)+'征信'" :fileVal='idx' bigType="zx" :width="pwidth" :height="pheight" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  365. @progress="" @uploadEnd="gdonuploadEnd" >
  366. <view class="photop" >
  367. <image :src="zico" class="bgimg"></image>
  368. <image :src="phoicon" class="addimg"></image>
  369. </view>
  370. </lsj-upload>
  371. <view class="photit">上传实际控股人征信报告</view>
  372. </view>
  373. <block v-if="ite.zxurl&&ite.zxurl.length">
  374. <view class="phoboxa" v-for="(zxite,zxidx) in ite.zxurl" :key="zxidx">
  375. <view class="photop" @click="getDown(zxite)">
  376. <image :src="lookico" class="bgimg"></image>
  377. <image :src="phoicon" class="addimg"></image>
  378. <image :src="delimg" class="delimg" @click.stop="getDelgdFj(idx,zxidx)"></image>
  379. </view>
  380. <!-- <view class="photit">{{zxite.name}}</view> -->
  381. </view>
  382. </block>
  383. </view>
  384. </uni-forms-item>
  385. </block>
  386. </view>
  387. </view>
  388. <!-- 法人信息 -->
  389. <view v-show="stepval==2">
  390. <!-- 用户类型 -->
  391. <view class="addtit mt3"><text>*</text>用户类型</view>
  392. <view class="bgf plr12">
  393. <picker range-key='label' :value="yhlxidx" :range="yhlxlist" class="" @change='bindDateChangeb'>
  394. <uni-forms-item label="用户类型" name="customerType">
  395. <view class="lbtabp">
  396. <view v-if="datainfo.customerType&&!yhlx">{{statusFormat(datainfo.customerType,yhlxlist,'yhlx')}}</view>
  397. <view v-else :class="yhlx?'':'coa'">{{yhlx||"请选择用户类型"}}</view>
  398. <image :src="hrimg" class="rimg"></image>
  399. </view>
  400. </uni-forms-item>
  401. </picker>
  402. </view>
  403. <!-- 法定代表人基本信息 -->
  404. <view class="addtit mt3"><text>*</text>法定代表人基本信息</view>
  405. <view class="bgf plr12">
  406. <uni-forms-item label="身份证" name="iszcy">
  407. <view class="phobox">
  408. <view class="phoboxa" v-if="jcfjobj.frsfzrmx">
  409. <lsj-upload ref="lsjUpload" childId="upload1" :fileName="jcfjobj.frsfzrmx" fileVal='frsfzrmx' bigType="a" :width="pwidth" :height="pheight" :option="option" :size="size" :formats="gdformats" :debug="debug" :instantly="instantly"
  410. @progress="" @uploadEnd="ponuploadEnd" >
  411. <view class="photop">
  412. <image :src="cardz" class="bgimg"></image>
  413. <image v-if="datainfo.corporationFront" :src="baseUrl+datainfo.corporationFront" class="bgimga"></image>
  414. <image :src="phoicon" class="addimg"></image>
  415. </view>
  416. </lsj-upload>
  417. <view class="photit atit">上传人像面</view>
  418. </view>
  419. <view class="phoboxa" v-if="jcfjobj.frsfzghm">
  420. <lsj-upload ref="lsjUpload" childId="upload1" :fileName="jcfjobj.frsfzghm" fileVal='frsfzghm' bigType="a" :width="pwidth" :height="pheight" :option="option" :size="size" :formats="gdformats" :debug="debug" :instantly="instantly"
  421. @progress="" @uploadEnd="ponuploadEnd" >
  422. <view class="photop">
  423. <view class="photop">
  424. <image :src="cardf" class="bgimg"></image>
  425. <image v-if="datainfo.corporationBack" :src="baseUrl+datainfo.corporationBack" class="bgimga"></image>
  426. <image :src="phoicon" class="addimg"></image>
  427. </view>
  428. </view>
  429. </lsj-upload>
  430. <view class="photit">上传国徽面</view>
  431. </view>
  432. </view>
  433. </uni-forms-item>
  434. <uni-forms-item label="姓名" name="corporationName">
  435. <uni-easyinput v-model="datainfo.corporationName" disabled :inputBorder='false' placeholder="自动识别" />
  436. </uni-forms-item>
  437. <!-- disabled -->
  438. <uni-forms-item label="身份证号" name="corporationIdCard">
  439. <uni-easyinput v-model="datainfo.corporationIdCard" disabled :inputBorder='false' placeholder="自动识别" />
  440. </uni-forms-item>
  441. <uni-forms-item label="手机号码" name="corporationPhone">
  442. <uni-easyinput v-model="datainfo.corporationPhone" type="number" :inputBorder='false' placeholder="请输入手机号码" />
  443. </uni-forms-item>
  444. <!-- 家庭人口选填-->
  445. <uni-forms-item label="家庭人口" name="familyPopulation">
  446. <uni-easyinput v-model="datainfo.familyPopulation" type="number" :inputBorder='false' placeholder="请输入家庭人口" />
  447. </uni-forms-item>
  448. <uni-forms-item label="法人职业" name="corporationJob">
  449. <uni-easyinput v-model="datainfo.corporationJob" :inputBorder='false' placeholder="请输入法人职业" />
  450. </uni-forms-item>
  451. <picker range-key='label' :value="ywidx" class="isborder" :range="ywList" @change='bindDateChangec'>
  452. <uni-forms-item label="有无贷款" name="qymc">
  453. <view class="lbtabp">
  454. <view v-if="datainfo.isLoan">{{datainfo.isLoan=='Y'?'有':'无'}}</view>
  455. <view v-else class="coa">请选择有/无</view>
  456. <image :src="hrimg" class="rimg"></image>
  457. </view>
  458. </uni-forms-item>
  459. </picker>
  460. <!-- <uni-forms-item label="应收应付款" name="email">
  461. <uni-easyinput v-model="datainfo.email" type="number" :inputBorder='false' placeholder="请输入应收应付款" />
  462. </uni-forms-item> -->
  463. <!-- <uni-forms-item label="经营情况" name="iszcy">
  464. <uni-easyinput type="textarea" autoHeight v-model="datainfo.email" :inputBorder='false' placeholder="请描述近几年经营情况" />
  465. </uni-forms-item> -->
  466. <!-- <uni-forms-item label="经营效益" name="email">
  467. <uni-easyinput v-model="datainfo.email" type="number" :inputBorder='false' placeholder="请输入经营效益" />
  468. </uni-forms-item> -->
  469. </view>
  470. <!-- * 家庭婚姻信息 -->
  471. <view class="addtit mt3"><text>*</text>家庭婚姻信息</view>
  472. <view class="bgf plr12">
  473. <picker range-key='label' :value="frhyzkidx" :range="hyztlist" class="isborder" @change='bindDateChanged'>
  474. <uni-forms-item label="婚姻状态" name="corporationMaritalStatus">
  475. <view class="lbtabp">
  476. <view v-if="datainfo.corporationMaritalStatus&&!frhyzk">{{statusFormat(datainfo.corporationMaritalStatus,hyztlist,'frhyzk')}}</view>
  477. <view v-else :class="frhyzk?'':'coa'">{{frhyzk||"请选择婚姻状态"}}</view>
  478. <image :src="hrimg" class="rimg"></image>
  479. </view>
  480. </uni-forms-item>
  481. </picker>
  482. <uni-forms-item label="配偶身份证" name="iszcy">
  483. <view class="phobox">
  484. <view class="phoboxa" v-if="jcfjobj.frsfzpormx">
  485. <lsj-upload ref="lsjUpload" childId="upload1" :fileName="jcfjobj.frsfzpormx" fileVal='frsfzpormx' bigType="a" :width="pwidth" :height="pheight" :option="option" :size="size" :formats="gdformats" :debug="debug" :instantly="instantly"
  486. @progress="" @uploadEnd="ponuploadEnd" >
  487. <view class="photop">
  488. <image :src="cardz" class="bgimg"></image>
  489. <image v-if="datainfo.spouseFront" :src="baseUrl+datainfo.spouseFront" class="bgimga"></image>
  490. <image :src="phoicon" class="addimg"></image>
  491. </view>
  492. </lsj-upload>
  493. <!-- 删除 -->
  494. <view class="frdelimg" v-if="datainfo.spouseFront" @click.stop="getDelfzpo('front')">
  495. <image :src="fdelimg"></image>
  496. </view>
  497. <view class="photit atit">上传人像面</view>
  498. </view>
  499. <view class="phoboxa" v-if="jcfjobj.frsfzpoghm">
  500. <lsj-upload ref="lsjUpload" childId="upload1" :fileName="jcfjobj.frsfzpoghm" fileVal='frsfzpoghm' bigType="a" :width="pwidth" :height="pheight" :option="option" :size="size" :formats="gdformats" :debug="debug" :instantly="instantly"
  501. @progress="" @uploadEnd="ponuploadEnd" >
  502. <view class="photop">
  503. <view class="photop">
  504. <image :src="cardf" class="bgimg"></image>
  505. <image v-if="datainfo.spouseBack" :src="baseUrl+datainfo.spouseBack" class="bgimga"></image>
  506. <image :src="phoicon" class="addimg"></image>
  507. </view>
  508. </view>
  509. </lsj-upload>
  510. <!-- 删除 -->
  511. <view class="frdelimg" v-if="datainfo.spouseBack" @click.stop="getDelfzpo('back')">
  512. <image :src="fdelimg"></image>
  513. </view>
  514. <view class="photit">上传国徽面</view>
  515. </view>
  516. </view>
  517. </uni-forms-item>
  518. <uni-forms-item label="配偶姓名" name="spouseName">
  519. <uni-easyinput v-model="datainfo.spouseName" disabled :inputBorder='false' placeholder="自动识别" />
  520. </uni-forms-item>
  521. <uni-forms-item label="配偶身份证号" name="spouseIdCard">
  522. <uni-easyinput v-model="datainfo.spouseIdCard" disabled :inputBorder='false' placeholder="自动识别" />
  523. </uni-forms-item>
  524. </view>
  525. <!-- * 企业法人征信-->
  526. <view class="addtit mt3"><text>*</text>婚姻证明</view>
  527. <view class="bgf plr12">
  528. <!-- 离婚状态上传 -->
  529. <uni-forms-item label="离婚证" name="iszcy" v-show="datainfo.corporationMaritalStatus==3">
  530. <view class="phobox">
  531. <view class="phoboxa" v-if="jcfjobj.frlhz">
  532. <lsj-upload ref="lsjUpload" childId="upload1" :fileName="jcfjobj.frlhz" fileVal='frlhz' bigType="a" :width="pwidth" :height="pheight" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  533. @progress="" @uploadEnd="onuploadEnd" >
  534. <view class="photop" >
  535. <image :src="jhico" class="bgimg"></image>
  536. <image :src="phoicon" class="addimg"></image>
  537. </view>
  538. </lsj-upload>
  539. <view class="photit atit">上传离婚证</view>
  540. </view>
  541. <block v-for="(ite,idx) in filelist" :key='idx'>
  542. <view class="phoboxa" v-if="ite.type=='frlhz'&&ite.bigType=='a'">
  543. <view class="photop" @click="getDown(ite.url)">
  544. <image :src="lookico" class="bgimg"></image>
  545. <image :src="phoicon" class="addimg"></image>
  546. <image :src="delimg" class="delimg" @click.stop="getDelFj(idx)"></image>
  547. </view>
  548. <view class="photit">{{ite.name}}</view>
  549. </view>
  550. </block>
  551. </view>
  552. </uni-forms-item>
  553. <uni-forms-item label="结婚证" name="iszcy" v-show="datainfo.corporationMaritalStatus!=3">
  554. <view class="phobox">
  555. <view class="phoboxa" v-if="jcfjobj.frjhz">
  556. <lsj-upload ref="lsjUpload" childId="upload1" :fileName="jcfjobj.frjhz" fileVal='frjhz' bigType="a" :width="pwidth" :height="pheight" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  557. @progress="" @uploadEnd="onuploadEnd" >
  558. <view class="photop" >
  559. <image :src="jhico" class="bgimg"></image>
  560. <image :src="phoicon" class="addimg"></image>
  561. </view>
  562. </lsj-upload>
  563. <view class="photit atit">上传结婚证</view>
  564. </view>
  565. <block v-for="(ite,idx) in filelist" :key='idx'>
  566. <view class="phoboxa" v-if="ite.type=='frjhz'&&ite.bigType=='a'">
  567. <view class="photop" @click="getDown(ite.url)">
  568. <image :src="lookico" class="bgimg"></image>
  569. <image :src="phoicon" class="addimg"></image>
  570. <image :src="delimg" class="delimg" @click.stop="getDelFj(idx)"></image>
  571. </view>
  572. <view class="photit">{{ite.name}}</view>
  573. </view>
  574. </block>
  575. </view>
  576. </uni-forms-item>
  577. </view>
  578. <!-- * 户口簿信息-->
  579. <view class="addtit mt3"><text>*</text>户口簿信息</view>
  580. <view class="bgf plr12">
  581. <uni-forms-item label="户口簿首页" name="iszcy">
  582. <view class="phobox">
  583. <view class="phoboxa" v-if="jcfjobj.frhkbsy">
  584. <lsj-upload ref="lsjUpload" childId="frhkbsy" :fileName="jcfjobj.frhkbsy" fileVal='frhkbsy' bigType="a" :width="pwidth" :height="pheight" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  585. @progress="" @uploadEnd="onuploadEnd" >
  586. <view class="photop" >
  587. <image :src="hkico" class="bgimg"></image>
  588. <!-- <block v-for="(ite,idx) in filelist" :key='idx'>
  589. <image v-if="ite.type=='frhkbsy'&&ite.bigType=='a'" :src="baseUrl+ite.url" class="bgimga"></image>
  590. </block> -->
  591. <image :src="phoicon" class="addimg"></image>
  592. </view>
  593. </lsj-upload>
  594. <view class="photit atit">上传户口簿第一页</view>
  595. </view>
  596. <block v-for="(ite,idx) in filelist" :key='idx'>
  597. <view class="phoboxa" v-if="ite.type=='frhkbsy'&&ite.bigType=='a'">
  598. <view class="photop" @click="getDown(ite.url)">
  599. <image :src="lookico" class="bgimg"></image>
  600. <image :src="phoicon" class="addimg"></image>
  601. <image :src="delimg" class="delimg" @click.stop="getDelFj(idx)"></image>
  602. </view>
  603. <view class="photit">{{ite.name}}</view>
  604. </view>
  605. </block>
  606. </view>
  607. </uni-forms-item>
  608. <uni-forms-item label="户口簿单页" name="iszcy">
  609. <view class="phobox">
  610. <view class="phoboxa" v-if="jcfjobj.frhkbbry">
  611. <!-- 法人户口簿每一页 -->
  612. <lsj-upload ref="lsjUpload" childId="upload1" :fileName="jcfjobj.frhkbbry" fileVal='frhkbbry' bigType="a" :width="pwidth" :height="pheight" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  613. @progress="" @uploadEnd="onuploadEnd" >
  614. <view class="photop" >
  615. <image :src="hkico" class="bgimg"></image>
  616. <image :src="phoicon" class="addimg"></image>
  617. </view>
  618. </lsj-upload>
  619. <view class="photit atit">上传户口簿每一页</view>
  620. </view>
  621. <block v-for="(ite,idx) in filelist" :key='idx'>
  622. <view class="phoboxa" v-if="ite.type=='frhkbbry'&&ite.bigType=='a'">
  623. <view class="photop" @click="getDown(ite.url)">
  624. <image :src="lookico" class="bgimg"></image>
  625. <image :src="phoicon" class="addimg"></image>
  626. <image :src="delimg" class="delimg" @click.stop="getDelFj(idx)"></image>
  627. </view>
  628. <view class="photit">{{ite.name}}</view>
  629. </view>
  630. </block>
  631. <!-- <view class="phoboxa">
  632. <view class="photop">
  633. <image :src="hkico" class="bgimg"></image>
  634. <image :src="phoicon" class="addimg"></image>
  635. </view>
  636. <view class="photit atit">上传户口簿配偶页</view>
  637. </view> -->
  638. </view>
  639. </uni-forms-item>
  640. </view>
  641. </view>
  642. <!-- 反担保人信息 -->
  643. <view v-show="stepval==3">
  644. <!-- 担保类型 -->
  645. <view class="addtit mt3"><text>*</text>担保类型</view>
  646. <view class="bgf plr12">
  647. <uni-forms-item label="担保类型" name="guaranteeType">
  648. <view class="lbtabp" @click="getRecorddwFn">
  649. <view v-if="datainfo.guaranteeType&&!dblx">{{statusFormats(datainfo.guaranteeType,dblxlist,'dblx')}}</view>
  650. <view v-else :class="dblx?'':'coa'">{{dblx||"请选择担保类型"}}</view>
  651. <image :src="hrimg" class="rimg"></image>
  652. </view>
  653. </uni-forms-item>
  654. <!-- <picker range-key='label' :value="dblxidx" :range="dblxlist" class="" @change='bindDateChangee'>
  655. <uni-forms-item label="担保类型" name="guaranteeType">
  656. <view class="lbtabp">
  657. <view v-if="datainfo.guaranteeType&&!dblx">{{statusFormat(datainfo.guaranteeType,dblxlist,'dblx')}}</view>
  658. <view v-else :class="dblx?'':'coa'">{{dblx||"请选择担保类型"}}</view>
  659. <image :src="hrimg" class="rimg"></image>
  660. </view>
  661. </uni-forms-item>
  662. </picker> -->
  663. </view>
  664. <!-- 反担保人基本信息 v-if="datainfo.guaranteeType==2"-->
  665. <view v-for="(fite,fidx) in fdarlist" :key="fidx">
  666. <view class="flexcj">
  667. <view class="addtit mt3"><text>*</text>反担保人{{(Number(fidx)+1)}}基本信息</view>
  668. <view class="fdbadd flexcc" @click="getAddFdbFn"><image :src="fadd"></image>添加反担保人</view>
  669. </view>
  670. <view class="bgf plr12">
  671. <uni-forms-item label="身份证" name="iszcy">
  672. <view class="phobox">
  673. <view class="phoboxa" v-if="fdbrobj.fdbrsfzrmx">
  674. <lsj-upload ref="lsjUpload" childId="upload1" :fileName="fdbrobj.fdbrsfzrmx" fileVal='fdbrsfzrmx' :bigType='fidx' :width="pwidth" :height="pheight" :option="option" :size="size" :formats="gdformats" :debug="debug" :instantly="instantly"
  675. @progress="" @uploadEnd="fdbuploadEnd" >
  676. <view class="photop">
  677. <image :src="cardz" class="bgimg"></image>
  678. <block v-for="(ite,idx) in fite.guaranteeInfoFjList" :key='idx'>
  679. <image v-if="ite.type=='fdbrsfzrmx'&&ite.remark!=1" :src="baseUrl+ite.url" class="bgimga"></image>
  680. </block>
  681. <image :src="phoicon" class="addimg"></image>
  682. </view>
  683. </lsj-upload>
  684. <!-- <view class="frdelimg" v-if="datainfo.guaranteeFront" @click.stop="getDelfdbfzpo('fdbrsfzrmx',fidx)">
  685. <image :src="fdelimg"></image>
  686. </view> -->
  687. <view class="photit atit">上传人像面</view>
  688. </view>
  689. <view class="phoboxa" v-if="fdbrobj.fdbrsfzghm">
  690. <lsj-upload ref="lsjUpload" childId="upload1" :fileName="fdbrobj.fdbrsfzghm" fileVal='fdbrsfzghm' :bigType='fidx' :width="pwidth" :height="pheight" :option="option" :size="size" :formats="gdformats" :debug="debug" :instantly="instantly"
  691. @progress="" @uploadEnd="fdbuploadEnd" >
  692. <view class="photop">
  693. <image :src="cardz" class="bgimg"></image>
  694. <block v-for="(ite,idx) in fite.guaranteeInfoFjList" :key='idx'>
  695. <image v-if="ite.type=='fdbrsfzghm'&&ite.remark!=1" :src="baseUrl+ite.url" class="bgimga"></image>
  696. </block>
  697. <image :src="phoicon" class="addimg"></image>
  698. </view>
  699. </lsj-upload>
  700. <!-- <view class="frdelimg" v-if="datainfo.guaranteeBack" @click.stop="getDelfdbfzpo('fdbrsfzghm',fidx)">
  701. <image :src="fdelimg"></image>
  702. </view> -->
  703. <view class="photit">上传国徽面</view>
  704. </view>
  705. </view>
  706. </uni-forms-item>
  707. <uni-forms-item label="姓名" name="guaranteeName">
  708. <uni-easyinput v-model="fite.guaranteeName" disabled :inputBorder='false' placeholder="自动识别" />
  709. </uni-forms-item>
  710. <uni-forms-item label="身份证号" name="guaranteeIdCard">
  711. <uni-easyinput v-model="fite.guaranteeIdCard" disabled :inputBorder='false' placeholder="自动识别" />
  712. </uni-forms-item>
  713. <uni-forms-item label="手机号码" name="guaranteePhone">
  714. <uni-easyinput v-model="fite.guaranteePhone" type="number" :inputBorder='false' placeholder="请输入手机号码" />
  715. </uni-forms-item>
  716. </view>
  717. <!-- * 反担保人信用担保证明-->
  718. <view class="addtit mt3">反担保人{{(Number(fidx)+1)}}信用担保证明</view>
  719. <view class="bgf plr12">
  720. <uni-forms-item name="iszcy">
  721. <view class="labtxt">个人工作证明
  722. <text>(选填)</text>
  723. </view>
  724. <view class="phobox" style="display: flex;flex-wrap: wrap;justify-content: space-between;">
  725. <view class="phoboxa" v-if="fdbrobj.fdbrgrgzzm">
  726. <lsj-upload ref="lsjUpload" childId="upload1" :fileName="fdbrobj.fdbrgrgzzm" fileVal='fdbrgrgzzm' :bigType='fidx' :width="pwidth" :height="pheight" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  727. @progress="" @uploadEnd="fdbuploadEnd" >
  728. <view class="photop" >
  729. <image :src="zico" class="bgimg"></image>
  730. <image :src="phoicon" class="addimg"></image>
  731. </view>
  732. </lsj-upload>
  733. <view class="photit atit">公职人员上传个人工作证明</view>
  734. </view>
  735. <block v-for="(ite,idx) in fite.guaranteeInfoFjList" :key='idx'>
  736. <view class="phoboxa" v-if="ite.type=='fdbrgrgzzm'&&ite.remark!=1">
  737. <view class="photop" @click="getDown(ite.url)">
  738. <image :src="lookico" class="bgimg"></image>
  739. <image :src="phoicon" class="addimg"></image>
  740. <image :src="delimg" class="delimg" @click.stop="getfdbDelFj(idx,fidx,1)"></image>
  741. </view>
  742. <view class="photit">{{ite.name}}</view>
  743. </view>
  744. </block>
  745. </view>
  746. </uni-forms-item>
  747. <uni-forms-item label="身份证复印件" name="iszcy">
  748. <view class="phobox">
  749. <view class="phoboxa" v-if="fdbrobj.fdbrsfzfyj">
  750. <lsj-upload ref="lsjUpload" childId="upload1" :fileName="fdbrobj.fdbrsfzfyj" fileVal='fdbrsfzfyj' :bigType='fidx' :width="pwidth" :height="pheight" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  751. @progress="" @uploadEnd="fdbuploadEnd" >
  752. <view class="photop" >
  753. <image :src="cardz" class="bgimg"></image>
  754. <image :src="phoicon" class="addimg"></image>
  755. </view>
  756. </lsj-upload>
  757. <view class="photit atit">上传身份证复印件</view>
  758. </view>
  759. <block v-for="(ite,idx) in fite.guaranteeInfoFjList" :key='idx'>
  760. <view class="phoboxa" v-if="ite.type=='fdbrsfzfyj'&&ite.remark!=1">
  761. <view class="photop" @click="getDown(ite.url)">
  762. <image :src="lookico" class="bgimg"></image>
  763. <image :src="phoicon" class="addimg"></image>
  764. <image :src="delimg" class="delimg" @click.stop="getfdbDelFj(idx,fidx,1)"></image>
  765. </view>
  766. <view class="photit">{{ite.name}}</view>
  767. </view>
  768. </block>
  769. </view>
  770. </uni-forms-item>
  771. <uni-forms-item label="个人征信报告" name="iszcy">
  772. <view class="phobox">
  773. <view class="phoboxa" v-if="fdbrobj.fdbrgrzxbg">
  774. <lsj-upload ref="lsjUpload" childId="upload1" :fileName="fdbrobj.fdbrgrzxbg" fileVal='fdbrgrzxbg' :bigType='fidx' :width="pwidth" :height="pheight" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  775. @progress="" @uploadEnd="fdbuploadEnd" >
  776. <view class="photop" >
  777. <image :src="zico" class="bgimg"></image>
  778. <image :src="phoicon" class="addimg"></image>
  779. </view>
  780. </lsj-upload>
  781. <view class="photit atit">上传个人征信报告</view>
  782. </view>
  783. <block v-for="(ite,idx) in fite.guaranteeInfoFjList" :key='idx'>
  784. <view class="phoboxa" v-if="ite.type=='fdbrgrzxbg'&&ite.remark!=1">
  785. <view class="photop" @click="getDown(ite.url)">
  786. <image :src="lookico" class="bgimg"></image>
  787. <image :src="phoicon" class="addimg"></image>
  788. <image :src="delimg" class="delimg" @click.stop="getfdbDelFj(idx,fidx,1)"></image>
  789. </view>
  790. <view class="photit">{{ite.name}}</view>
  791. </view>
  792. </block>
  793. </view>
  794. </uni-forms-item>
  795. <view class="ptb15" v-if="fdarlist.length>1">
  796. <view class="fdbdel flexcc" @click="getdelFdbFn(fidx,fite)"><image :src="fdel"></image>删除反担保人信息</view>
  797. </view>
  798. </view>
  799. </view>
  800. <!-- 企业反担保 -->
  801. <block v-for="(fite,fidx) in fdaqylist" :key="fidx">
  802. <view class="flexcj">
  803. <view class="addtit mt3">企业{{(Number(fidx)+1)}}反担保证明</view>
  804. <view class="fdbadd flexcc" @click="getAddQiFn"><image :src="fadd"></image>添加反担企业</view>
  805. </view>
  806. <view class="bgf plr12">
  807. <!-- <picker range-key='shareholderName' :value="qyidx" :range="qygdlist" class="isborder" @change='bindDateChangeg'>
  808. <uni-forms-item label="企业名称" name="guaranteeShareholderName">
  809. <view class="lbtabp">
  810. <view class="chtit" :class="datainfo.guaranteeShareholderName?'':'coa'">{{datainfo.guaranteeShareholderName||"请选择关联企业"}}</view>
  811. <image :src="hrimg" class="rimg"></image>
  812. </view>
  813. </uni-forms-item>
  814. </picker> -->
  815. <uni-forms-item name="iszcy">
  816. <view class="labtxt">营业执照
  817. <text>(上传一张)</text>
  818. </view>
  819. <view class="phobox" style="display: flex;flex-wrap: wrap;justify-content: space-between;">
  820. <view class="phoboxa" v-if="fdbqyobj.fdbqyyyzz">
  821. <lsj-upload ref="lsjUpload" childId="upload1" :fileName="fdbqyobj.fdbqyyyzz" fileVal='fdbqyyyzz' :bigType='fidx' :width="pwidth" :height="pheight" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  822. @progress="" @uploadEnd="fdbqyuploadEnd" >
  823. <view class="photop" >
  824. <image :src="zico" class="bgimg"></image>
  825. <image :src="phoicon" class="addimg"></image>
  826. </view>
  827. </lsj-upload>
  828. <view class="photit atit">上传企业营业执照</view>
  829. </view>
  830. <block v-for="(ite,idx) in fite.guaranteeInfoFjList" :key='idx'>
  831. <view class="phoboxa" v-if="ite.type=='fdbqyyyzz'&&ite.remark!=1">
  832. <view class="photop" @click="getDown(ite.url)">
  833. <image :src="lookico" class="bgimg"></image>
  834. <image :src="phoicon" class="addimg"></image>
  835. <image :src="delimg" class="delimg" @click.stop="getfdbDelFj(idx,fidx,2)"></image>
  836. </view>
  837. <view class="photit">{{ite.name}}</view>
  838. </view>
  839. </block>
  840. </view>
  841. </uni-forms-item>
  842. <uni-forms-item label="企业征信" name="iszcy">
  843. <view class="phobox">
  844. <view class="phoboxa" v-if="fdbqyobj.fdbqyzx">
  845. <lsj-upload ref="lsjUpload" childId="upload1" :fileName="fdbqyobj.fdbqyzx" fileVal='fdbqyzx' :bigType='fidx' :width="pwidth" :height="pheight" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  846. @progress="" @uploadEnd="fdbqyuploadEnd" >
  847. <view class="photop" >
  848. <image :src="cardz" class="bgimg"></image>
  849. <image :src="phoicon" class="addimg"></image>
  850. </view>
  851. </lsj-upload>
  852. <view class="photit atit">上传企业征信</view>
  853. </view>
  854. <block v-for="(ite,idx) in fite.guaranteeInfoFjList" :key='idx'>
  855. <view class="phoboxa" v-if="ite.type=='fdbqyzx'&&ite.remark!=1">
  856. <view class="photop" @click="getDown(ite.url)">
  857. <image :src="lookico" class="bgimg"></image>
  858. <image :src="phoicon" class="addimg"></image>
  859. <image :src="delimg" class="delimg" @click.stop="getfdbDelFj(idx,fidx,2)"></image>
  860. </view>
  861. <view class="photit">{{ite.name}}</view>
  862. </view>
  863. </block>
  864. </view>
  865. </uni-forms-item>
  866. <view class="ptb15" v-if="fdaqylist.length>1">
  867. <view class="fdbdel flexcc" @click="getdelQyFn(fidx,fite)"><image :src="fdel"></image>删除反担保企业</view>
  868. </view>
  869. </view>
  870. </block>
  871. </view>
  872. <!-- 添加附件 -->
  873. <view v-show="stepval==4">
  874. <!-- 附件信息 -->
  875. <view class="addtit mt3">
  876. <view @click="getDbclFn" class="flexc">附件信息<image :src="ywicon" class="ywimg"></image></view>
  877. </view>
  878. <block v-for="(ite,idx) in sbfjlist" :key="ite.val">
  879. <!-- 委托担保申请书 <text>*</text>-->
  880. <!-- ||ite.val=='gdhyjy' 股东会决议 -->
  881. <view class="bgf plr12 mb12" v-if="ite.val=='wtdbsqs'">
  882. <view class="fjbox">
  883. <view class="fjtop flext">
  884. <view class="ftit">{{ite.label}}<text class="mtxt">(须面签)</text></view>
  885. <view class="fbtns cof64" @click="getExportMb(ite)">
  886. <image :src="downimg" class="downimg"></image>下载模板
  887. </view>
  888. <lsj-upload ref="lsjUpload" :fileName="ite.label" :fjidx='idx' :fileVal='ite.val' bigType="b" childId="upload1" :width="width" :height="height" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  889. @progress="" @uploadEnd="fjonuploadEnd" >
  890. <view class="fbtns co0a" :style="{width: width,height: height}">
  891. <image :src="upimg"></image>
  892. <view>{{'上传附件'}}</view>
  893. </view>
  894. </lsj-upload>
  895. </view>
  896. <view class="mt8" v-if="ite.fjlist&&ite.fjlist.length">
  897. <view class="fjlists" v-for="(fite,fidx) in ite.fjlist">
  898. <view class="flext" @click="getDown(fite.url)">
  899. <view class="imgl"><image :src="filico" ></image></view>
  900. <view class="tit">{{fite.name}}</view>
  901. </view>
  902. <view class="delimg flex0" @click.stop="getDelsbFj(idx,fidx)">
  903. <image :src="fdelimg"></image>
  904. </view>
  905. </view>
  906. </view>
  907. </view>
  908. </view>
  909. <view class="bgf plr12" v-if="ite.val=='syndcwbb'||ite.val=='syndsjbg'">
  910. <view class="fjbox" :class="ite.val!='syndsjbg'?'isborder':''">
  911. <view class="fjtop flext">
  912. <view class="ftit"><text v-if="ite.val=='syndcwbb'">*</text>{{ite.label}}</view>
  913. <lsj-upload ref="lsjUpload" :fileName="ite.label" :fjidx='idx' :fileVal='ite.val' bigType="b" childId="upload1" :width="width" :height="height" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  914. @progress="" @uploadEnd="fjonuploadEnd" >
  915. <view class="fbtns co0a" :style="{width: width,height: height}">
  916. <image :src="upimg"></image><view>上传附件</view>
  917. </view>
  918. </lsj-upload>
  919. </view>
  920. <view class="mt8" v-if="ite.fjlist&&ite.fjlist.length">
  921. <view class="fjlists" v-for="(fite,fidx) in ite.fjlist">
  922. <view class="flext" @click="getDown(fite.url)">
  923. <view class="imgl"><image :src="filico" ></image></view>
  924. <view class="tit">{{fite.name}}</view>
  925. </view>
  926. <!-- 删除 -->
  927. <view class="delimg flex0" @click.stop="getDelsbFj(idx,fidx)">
  928. <image :src="fdelimg"></image>
  929. </view>
  930. </view>
  931. </view>
  932. </view>
  933. </view>
  934. <!-- {{ite.fjlist&&ite.fjlist.length?'重新上传':'上传附件'}} -->
  935. <view class="bgf plr12" v-if="ite.val=='dqcwbb'">
  936. <view class="fjbox isborder">
  937. <view class="fjtop flext">
  938. <view class="ftit"><text v-if="datainfo.applicationType==1">*</text>{{ite.label}}</view>
  939. <lsj-upload ref="lsjUpload" :fileName="ite.label" :fjidx='idx' :fileVal='ite.val' bigType="b" childId="upload1" :width="width" :height="height" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  940. @progress="" @uploadEnd="fjonuploadEnd" >
  941. <view class="fbtns co0a" :style="{width: width,height: height}">
  942. <image :src="upimg"></image><view>上传附件</view>
  943. </view>
  944. </lsj-upload>
  945. </view>
  946. <view class="mt8" v-if="ite.fjlist&&ite.fjlist.length">
  947. <view class="fjlists" v-for="(fite,fidx) in ite.fjlist">
  948. <view class="flext" @click="getDown(fite.url)">
  949. <view class="imgl"><image :src="filico" ></image></view>
  950. <view class="tit">{{fite.name}}</view>
  951. </view>
  952. <!-- 删除 -->
  953. <view class="delimg flex0" @click.stop="getDelsbFj(idx,fidx)">
  954. <image :src="fdelimg"></image>
  955. </view>
  956. </view>
  957. </view>
  958. </view>
  959. </view>
  960. <view class="bgf plr12 mt12" v-if="ite.val=='nszm'">
  961. <view class="fjbox isborder">
  962. <picker range-key='text' :value="sfidx" :range="sfList" @change='bindDateChangef'>
  963. <view class="fjtop flexc chek">
  964. <view class="ftit"><text>*</text>是否免税企业</view>
  965. <view v-if="datainfo.isDuty">{{datainfo.isDuty=='Y'?'是':'否'}}</view>
  966. <view v-else class="coa">请选择是/否</view>
  967. <!-- <view :class="datainfo.isDuty?'':'coa'">{{msqy||"请选择是/否"}}</view> -->
  968. <image :src="hrimg" class="rimg"></image>
  969. </view>
  970. </picker>
  971. </view>
  972. <view class="fjbox isborder">
  973. <view class="fjtop flext">
  974. <view class="ftit">{{ite.label}}</view>
  975. <lsj-upload ref="lsjUpload" :fileName="ite.label" :fjidx='idx' :fileVal='ite.val' bigType="b" childId="upload1" :width="width" :height="height" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  976. @progress="" @uploadEnd="fjonuploadEnd" >
  977. <view class="fbtns co0a" :style="{width: width,height: height}">
  978. <image :src="upimg"></image><view>上传附件</view>
  979. </view>
  980. </lsj-upload>
  981. </view>
  982. <view class="mt8" v-if="ite.fjlist&&ite.fjlist.length">
  983. <view class="fjlists" v-for="(fite,fidx) in ite.fjlist">
  984. <view class="flext" @click="getDown(fite.url)">
  985. <view class="imgl"><image :src="filico" ></image></view>
  986. <view class="tit">{{fite.name}}</view>
  987. </view>
  988. <!-- 删除 -->
  989. <view class="delimg flex0" @click.stop="getDelsbFj(idx,fidx)">
  990. <image :src="fdelimg"></image>
  991. </view>
  992. </view>
  993. </view>
  994. </view>
  995. </view>
  996. <view class="bgf plr12 " v-if="ite.val=='jsyyhdzd'">
  997. <view class="fjbox">
  998. <view class="fjtop flext">
  999. <view class="ftit">{{ite.label}}</view>
  1000. <lsj-upload ref="lsjUpload" :fileName="ite.label" :fjidx='idx' :fileVal='ite.val' bigType="b" childId="upload1" :width="width" :height="height" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  1001. @progress="" @uploadEnd="fjonuploadEnd" >
  1002. <view class="fbtns co0a" :style="{width: width,height: height}">
  1003. <image :src="upimg"></image><view>上传附件</view>
  1004. </view>
  1005. </lsj-upload>
  1006. </view>
  1007. <view class="mt8" v-if="ite.fjlist&&ite.fjlist.length">
  1008. <view class="fjlists" v-for="(fite,fidx) in ite.fjlist">
  1009. <view class="flext" @click="getDown(fite.url)">
  1010. <view class="imgl"><image :src="filico" ></image></view>
  1011. <view class="tit">{{fite.name}}</view>
  1012. </view>
  1013. <!-- 删除 -->
  1014. <view class="delimg flex0" @click.stop="getDelsbFj(idx,fidx)">
  1015. <image :src="fdelimg"></image>
  1016. </view>
  1017. </view>
  1018. </view>
  1019. </view>
  1020. </view>
  1021. <!-- 主要账户银行流水 -->
  1022. <view class="mt12" v-if="ite.val=='zyzhyhls'">
  1023. <view class="bgf plr12 " >
  1024. <view class="fjbox">
  1025. <view class="fjtop flext">
  1026. <view class="ftit"><text>*</text>{{ite.label}}</view>
  1027. <lsj-upload ref="lsjUpload" :fileName="ite.label" :fjidx='idx' :fileVal='ite.val' bigType="b" childId="upload1" :width="width" :height="height" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  1028. @progress="" @uploadEnd="fjonuploadEnd" >
  1029. <view class="fbtns co0a" :style="{width: width,height: height}">
  1030. <image :src="upimg"></image><view>上传附件</view>
  1031. </view>
  1032. </lsj-upload>
  1033. </view>
  1034. <view class="mt8" v-if="ite.fjlist&&ite.fjlist.length">
  1035. <view class="fjlists" v-for="(fite,fidx) in ite.fjlist">
  1036. <view class="flext" @click="getDown(fite.url)">
  1037. <view class="imgl"><image :src="filico" ></image></view>
  1038. <view class="tit">{{fite.name}}</view>
  1039. </view>
  1040. <!-- 删除 -->
  1041. <view class="delimg flex0" @click.stop="getDelsbFj(idx,fidx)">
  1042. <image :src="fdelimg"></image>
  1043. </view>
  1044. </view>
  1045. </view>
  1046. </view>
  1047. </view>
  1048. <view class="addtit tips">提供能够反映企业资金流向的法人或控股股东不低于半年的个人 主要账户银行流水</view>
  1049. </view>
  1050. <view class="bgf plr12 " :class="ite.val=='gxht'?'isborder':''" v-if="ite.val=='gxht'|| ite.val=='dqcsxmqkzm'">
  1051. <view class="fjbox">
  1052. <view class="fjtop flext">
  1053. <view class="ftit"><text>*</text>{{ite.label}}</view>
  1054. <lsj-upload ref="lsjUpload" :fileName="ite.label" :fjidx='idx' :fileVal='ite.val' bigType="b" childId="upload1" :width="width" :height="height" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  1055. @progress="" @uploadEnd="fjonuploadEnd" >
  1056. <view class="fbtns co0a" :style="{width: width,height: height}">
  1057. <image :src="upimg"></image><view>上传附件</view>
  1058. </view>
  1059. </lsj-upload>
  1060. </view>
  1061. <view class="mt8" v-if="ite.fjlist&&ite.fjlist.length">
  1062. <view class="fjlists" v-for="(fite,fidx) in ite.fjlist">
  1063. <view class="flext" @click="getDown(fite.url)">
  1064. <view class="imgl"><image :src="filico" ></image></view>
  1065. <view class="tit">{{fite.name}}</view>
  1066. </view>
  1067. <!-- 删除 -->
  1068. <view class="delimg flex0" @click.stop="getDelsbFj(idx,fidx)">
  1069. <image :src="fdelimg"></image>
  1070. </view>
  1071. </view>
  1072. </view>
  1073. </view>
  1074. </view>
  1075. <!-- 企业基本注册信息查询单 -->
  1076. <view class="bgf plr12 mt12 mb12" v-if="ite.val=='qyjbzcxxcxd'">
  1077. <view class="fjbox">
  1078. <view class="fjtop flext">
  1079. <view class="ftit"><text>*</text>{{ite.label}}</view>
  1080. <lsj-upload ref="lsjUpload" :fileName="ite.label" :fjidx='idx' :fileVal='ite.val' bigType="b" childId="upload1" :width="width" :height="height" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  1081. @progress="" @uploadEnd="fjonuploadEnd" >
  1082. <view class="fbtns co0a" :style="{width: width,height: height}">
  1083. <image :src="upimg"></image><view>上传附件</view>
  1084. </view>
  1085. </lsj-upload>
  1086. </view>
  1087. <view class="mt8" v-if="ite.fjlist&&ite.fjlist.length">
  1088. <view class="fjlists" v-for="(fite,fidx) in ite.fjlist">
  1089. <view class="flext" @click="getDown(fite.url)">
  1090. <view class="imgl"><image :src="filico" ></image></view>
  1091. <view class="tit">{{fite.name}}</view>
  1092. </view>
  1093. <!-- 删除 -->
  1094. <view class="delimg flex0" @click.stop="getDelsbFj(idx,fidx)">
  1095. <image :src="fdelimg"></image>
  1096. </view>
  1097. </view>
  1098. </view>
  1099. </view>
  1100. </view>
  1101. <!-- 企业固定资产证明 -->
  1102. <view class="bgf plr12 " v-if="ite.val=='qygdzczm'||ite.val=='frzczmfc'||ite.val=='frzczmdc'||ite.val=='frzczmcl'">
  1103. <view class="fjbox" :class="ite.val!='frzczmcl'?'isborder':''">
  1104. <view class="fjtop flext">
  1105. <view class="ftit">{{ite.label}}</view>
  1106. <lsj-upload ref="lsjUpload" :fileName="ite.label" :fjidx='idx' :fileVal='ite.val' bigType="b" childId="upload1" :width="width" :height="height" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  1107. @progress="" @uploadEnd="fjonuploadEnd" >
  1108. <view class="fbtns co0a" :style="{width: width,height: height}">
  1109. <image :src="upimg"></image><view>上传附件</view>
  1110. </view>
  1111. </lsj-upload>
  1112. </view>
  1113. <view class="mt8" v-if="ite.fjlist&&ite.fjlist.length">
  1114. <view class="fjlists" v-for="(fite,fidx) in ite.fjlist">
  1115. <view class="flext" @click="getDown(fite.url)">
  1116. <view class="imgl"><image :src="filico" ></image></view>
  1117. <view class="tit">{{fite.name}}</view>
  1118. </view>
  1119. <!-- 删除 -->
  1120. <view class="delimg flex0" @click.stop="getDelsbFj(idx,fidx)">
  1121. <image :src="fdelimg"></image>
  1122. </view>
  1123. </view>
  1124. </view>
  1125. </view>
  1126. </view>
  1127. <!-- 反担保抵(质)押物复印件 -->
  1128. <view class="mt12" v-if="ite.val=='fdbdyfyj'">
  1129. <view class="bgf plr12 " >
  1130. <view class="fjbox">
  1131. <view class="fjtop flext">
  1132. <view class="ftit">{{ite.label}}</view>
  1133. <lsj-upload ref="lsjUpload" :fileName="ite.label" :fjidx='idx' :fileVal='ite.val' bigType="b" childId="upload1" :width="width" :height="height" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  1134. @progress="" @uploadEnd="fjonuploadEnd" >
  1135. <view class="fbtns co0a" :style="{width: width,height: height}">
  1136. <image :src="upimg"></image><view>上传附件</view>
  1137. </view>
  1138. </lsj-upload>
  1139. </view>
  1140. <view class="mt8" v-if="ite.fjlist&&ite.fjlist.length">
  1141. <view class="fjlists" v-for="(fite,fidx) in ite.fjlist">
  1142. <view class="flext" @click="getDown(fite.url)">
  1143. <view class="imgl"><image :src="filico" ></image></view>
  1144. <view class="tit">{{fite.name}}</view>
  1145. </view>
  1146. <!-- 删除 -->
  1147. <view class="delimg flex0" @click.stop="getDelsbFj(idx,fidx)">
  1148. <image :src="fdelimg"></image>
  1149. </view>
  1150. </view>
  1151. </view>
  1152. </view>
  1153. </view>
  1154. <view class="addtit tips">机械设备需提供发票原件;若上传附件,后期则需提供证明</view>
  1155. </view>
  1156. <!-- 代理相关品牌授权书 -->
  1157. <view class="bgf plr12 " v-if="ite.val=='dlxgcpsqs'||ite.val=='dlxgppht'">
  1158. <view class="fjbox isborder">
  1159. <view class="fjtop flext">
  1160. <view class="ftit">{{ite.label}}</view>
  1161. <lsj-upload ref="lsjUpload" :fileName="ite.label" :fjidx='idx' :fileVal='ite.val' bigType="b" childId="upload1" :width="width" :height="height" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  1162. @progress="" @uploadEnd="fjonuploadEnd" >
  1163. <view class="fbtns co0a" :style="{width: width,height: height}">
  1164. <image :src="upimg"></image><view>上传附件</view>
  1165. </view>
  1166. </lsj-upload>
  1167. </view>
  1168. <view class="mt8" v-if="ite.fjlist&&ite.fjlist.length">
  1169. <view class="fjlists" v-for="(fite,fidx) in ite.fjlist">
  1170. <view class="flext" @click="getDown(fite.url)">
  1171. <view class="imgl"><image :src="filico" ></image></view>
  1172. <view class="tit">{{fite.name}}</view>
  1173. </view>
  1174. <!-- 删除 -->
  1175. <view class="delimg flex0" @click.stop="getDelsbFj(idx,fidx)">
  1176. <image :src="fdelimg"></image>
  1177. </view>
  1178. </view>
  1179. </view>
  1180. </view>
  1181. </view>
  1182. <!-- 反担保抵(质)押物复印件 -->
  1183. <view v-if="ite.val=='scjyxkzgy'">
  1184. <view class="bgf plr12 " >
  1185. <view class="fjbox">
  1186. <view class="fjtop flext">
  1187. <view class="ftit">{{ite.label}}</view>
  1188. <lsj-upload ref="lsjUpload" :fileName="ite.label" :fjidx='idx' :fileVal='ite.val' bigType="b" childId="upload1" :width="width" :height="height" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  1189. @progress="" @uploadEnd="fjonuploadEnd" >
  1190. <view class="fbtns co0a" :style="{width: width,height: height}">
  1191. <image :src="upimg"></image><view>上传附件</view>
  1192. </view>
  1193. </lsj-upload>
  1194. </view>
  1195. <view class="mt8" v-if="ite.fjlist&&ite.fjlist.length">
  1196. <view class="fjlists" v-for="(fite,fidx) in ite.fjlist">
  1197. <view class="flext" @click="getDown(fite.url)">
  1198. <view class="imgl"><image :src="filico" ></image></view>
  1199. <view class="tit">{{fite.name}}</view>
  1200. </view>
  1201. <!-- 删除 -->
  1202. <view class="delimg flex0" @click.stop="getDelsbFj(idx,fidx)">
  1203. <image :src="fdelimg"></image>
  1204. </view>
  1205. </view>
  1206. </view>
  1207. </view>
  1208. </view>
  1209. <view class="addtit tips">例如:塑料包装行业《印刷经营许可证》、食品卫生行业《卫生 许可证》、环保达标认定表原件(工业)</view>
  1210. </view>
  1211. <!-- 纳税申报表 -->
  1212. <view class="bgf plr12 mb12" v-if="ite.val=='sdffpyn'||ite.val=='rggzb'||ite.val=='nssbb'">
  1213. <view class="fjbox">
  1214. <view class="fjtop flext">
  1215. <view class="ftit"><text>*</text>{{ite.label}}</view>
  1216. <lsj-upload ref="lsjUpload" :fileName="ite.label" :fjidx='idx' :fileVal='ite.val' bigType="b" childId="upload1" :width="width" :height="height" :option="option" :size="size" :formats="formats" :debug="debug" :instantly="instantly"
  1217. @progress="" @uploadEnd="fjonuploadEnd" >
  1218. <view class="fbtns co0a" :style="{width: width,height: height}">
  1219. <image :src="upimg"></image><view>上传附件</view>
  1220. </view>
  1221. </lsj-upload>
  1222. </view>
  1223. <view class="mt8" v-if="ite.fjlist&&ite.fjlist.length">
  1224. <view class="fjlists" v-for="(fite,fidx) in ite.fjlist">
  1225. <view class="flext" @click="getDown(fite.url)">
  1226. <view class="imgl"><image :src="filico" ></image></view>
  1227. <view class="tit">{{fite.name}}</view>
  1228. </view>
  1229. <!-- 删除 -->
  1230. <view class="delimg flex0" @click.stop="getDelsbFj(idx,fidx)">
  1231. <image :src="fdelimg"></image>
  1232. </view>
  1233. </view>
  1234. </view>
  1235. </view>
  1236. </view>
  1237. </block>
  1238. </view>
  1239. </uni-forms>
  1240. <!-- btnd -->
  1241. <view class="addbtns" v-if="ftype">
  1242. <view class="addlbtn" @click="getZanFn" v-if="!datainfo.loanSchedule||datainfo.loanSchedule<3">
  1243. <image :src="zancio" class="addlbtna"></image>
  1244. <view class="addlbtnb">暂存</view>
  1245. </view>
  1246. <view class="addrbtn bga" @click="getPreFn" v-if="stepval>1">上一步</view>
  1247. <view class="addrbtn bgb" @click="getNextFn" v-if="stepval<4">下一步</view>
  1248. <view class="addrbtn bgb" @click="getSubmit" v-if="stepval==4">提交</view>
  1249. </view>
  1250. <cover-view class="addbtns" v-else>
  1251. <cover-view class="addlbtn" @click="getZanFn" v-if="!datainfo.loanSchedule||datainfo.loanSchedule<3">
  1252. <cover-image :src="zancio" class="addlbtna" @click.stop="getZanFn"></cover-image>
  1253. <cover-view class="addlbtnb" @click.stop="getZanFn">暂存</cover-view>
  1254. </cover-view>
  1255. <cover-view class="addrbtn bga" @click="getPreFn" v-if="stepval>1">上一步</cover-view>
  1256. <cover-view class="addrbtn bgb" @click="getNextFn" v-if="stepval<4">下一步</cover-view>
  1257. <cover-view class="addrbtn bgb" @click="getSubmit" v-if="stepval==4">提交</cover-view>
  1258. </cover-view>
  1259. <block v-if="lookflag">
  1260. <view class="bgbox" @click="lookflag=false" ></view>
  1261. <image :src="lookico" class="looimg" @click="getPreview(lookico)"></image>
  1262. </block>
  1263. <!-- 放弃编辑 -->
  1264. <!-- #ifdef MP-WEIXIN -->
  1265. <view class="edit editcir" v-if="ftype" @click="getGiveupFn">
  1266. <image :src="feditimg"></image>
  1267. 放弃编辑
  1268. </view>
  1269. <cover-view class="edit editcir" v-else @click="getGiveupFn">
  1270. <cover-image :src="feditimg" @click.stop="getGiveupFn" class="img"></cover-image>
  1271. <cover-view @click.stop="getGiveupFn" class="txt">放弃编辑</cover-view>
  1272. </cover-view>
  1273. <!-- #endif -->
  1274. <!-- 选择担保类型 -->
  1275. <bartree-pickerfixed ref="treePickerzrdw" deptType='1' :multiple='true' @select-change="selectChangezrdw" title="选择担保类型"
  1276. :localdata="dblxlist" :checkVal='datainfo.guaranteeType' valueKey="value" textKey="label" childrenKey="children"></bartree-pickerfixed>
  1277. <!--附件 remark==1 后台生成的pdf,自己删除 -->
  1278. <pop-up :type='ftype' :xwimgList="xwimgList" :content="content" @getClose='getClose'></pop-up>
  1279. </view>
  1280. </template>
  1281. <script>
  1282. import config from '@/config'
  1283. const baseUrl = config.baseUrl
  1284. const baseUrlimg=config.baseUrlimg
  1285. const baseName = config.baseName
  1286. import self from '@/utils/location.js';
  1287. import popUp from "@/work/components/popup/popup.vue"
  1288. import stepBar from "@/components/toptab/stepbar.vue"
  1289. import { getToken } from '@/utils/auth'
  1290. import {getApplicationNum,getApplicationZc,getApplicationAdd,getApplicationDet,getApplicationEdit,getExportMb,getDocumentList,getGdlistNoPage} from "@/api/mine/work.js"
  1291. import {getQyListNoPage,getOcrIdCard,getIdCardDet,getOcrBusinessLicense} from "@/api/mine/card.js"
  1292. import {uploadmore,selectValueKey,showConfirm} from '@/utils/common.js'
  1293. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  1294. import {getDictionaryFn} from "@/api/mine/register.js"
  1295. import bartreePickerfixed from "@/components/ba-tree-picker/ba-tree-pickerfixed.vue"
  1296. // 340622185605234521
  1297. export default{
  1298. components:{stepBar,popUp,bartreePickerfixed},
  1299. data(){
  1300. return{
  1301. //附件
  1302. option: {
  1303. // 上传服务器地址,需要替换为你的接口地址
  1304. url: baseUrl+'/common/uploadNew', // 该地址非真实路径,需替换为你项目自己的接口地址
  1305. // 上传附件的key
  1306. name: 'file',
  1307. // 根据你接口需求自定义请求头,默认不要写content-type,让浏览器自适配
  1308. header: {
  1309. // 示例参数可删除
  1310. 'Authorization': 'Bearer ' + getToken(),
  1311. },
  1312. // 根据你接口需求自定义body参数
  1313. formData: {
  1314. loanApplicationNumber:'',
  1315. }
  1316. },
  1317. gdformats: 'png,jpg,jpeg',
  1318. // 选择文件后是否立即自动上传,true=选择后立即上传
  1319. instantly: true,
  1320. // 必传宽高且宽高应与slot宽高保持一致
  1321. width: '',
  1322. height: '100rpx',
  1323. pwidth:'200rpx',
  1324. pheight:'126rpx',
  1325. // 限制允许上传的格式,空串=不限制,默认为空
  1326. formats: 'doc,docx,xls,xlsx,ppt,txt,pdf,zip,rar,word,png,jpg,jpeg',
  1327. // 文件上传大小限制
  1328. size: 100,
  1329. // 文件数量限制 默认10
  1330. count: 5,
  1331. // 文件回显列表
  1332. files: new Map(),
  1333. // 微信小程序Map对象for循环不显示,所以转成普通数组,不要问为什么,我也不知道
  1334. wxFiles: [],
  1335. // 是否打印日志
  1336. debug: false,
  1337. filelist:[],
  1338. gdfilelist:[],//股东附件列表
  1339. backimg:require("@/work/static/images/back.png"),
  1340. feditimg:require("@/work/static/images/fedit.png"),
  1341. hrimg:require('@/work/static/images/hrimg.png'),
  1342. ywicon:require('@/work/static/images/busin/ywicon.png'),
  1343. delimg:require('@/work/static/images/del.png'),
  1344. lookico:require('@/work/static/images/busin/lookico.png'),
  1345. phoicon:require('@/work/static/images/busin/phoicon.png'),
  1346. zico:require('@/work/static/images/busin/zico.png'),
  1347. cardz:require('@/work/static/images/busin/cardz.png'),
  1348. cardf:require('@/work/static/images/busin/cardf.png'),
  1349. addgd:require('@/work/static/images/busin/addgd.png'),
  1350. jhico:require('@/work/static/images/busin/jhico.png'),
  1351. hkico:require('@/work/static/images/busin/hkico.png'),
  1352. zancio:require('@/work/static/images/zancio.png'),
  1353. downimg:require('@/work/static/images/down.png'),
  1354. upimg:require('@/work/static/images/fup.png'),
  1355. filico:require('@/work/static/images/filico.png'),
  1356. fdelimg:require('@/work/static/images/del.png'),
  1357. fdel:require('@/work/static/images/fdel.png'),
  1358. fadd:require('@/work/static/images/fadd.png'),
  1359. steps:[{tit:'申请额度',status:0},{tit:'企业信息',status:1},{tit:'法人信息',status:2},{tit:'反担保人信息',status:3},{tit:'添加附件',status:4},],
  1360. stepval:1,
  1361. datainfo:{
  1362. // qymcid:1,
  1363. // hylx:'',
  1364. // hylxid:'',
  1365. // iszcy:'0',
  1366. // "loanApplicationId": 1,//贷款申请id
  1367. "loanApplicationNumber": "",//贷款申请编号
  1368. 'applicationType':'',//申请类型 1:企业 2:个人
  1369. "applicationAmount": '',//申请额度(万元)
  1370. "applicationBank": "",//申请银行
  1371. "usagePeriod": "",//使用期限(月)
  1372. "purposeFunds": "",//资金用途
  1373. "repaymentSource": "",//还款来源
  1374. "enterpriseName": "",//企业名称
  1375. "enterpriseId":"",//企业信息id
  1376. "categoryType": "",//行业类型
  1377. "isMake": "Y",//是否是制造业
  1378. "isNew": "Y",//是否是精特新
  1379. "isSmall": "Y",//是否是小微企业
  1380. "isDuty": "",//是否是免税企业
  1381. "companyIntroduction": "",//公司简介
  1382. "customerType": "",//用户类型
  1383. "corporationFront": "",//法人身份证正面
  1384. "corporationBack": "",//法人身份证反面
  1385. "corporationName": "",// 法人姓名
  1386. "corporationIdCard": "",//法人身份证号
  1387. "corporationPhone": "",// 法人手机号
  1388. "familyPopulation": "",//家庭人口数
  1389. "corporationJob": "",//法人职业
  1390. "isLoan": "",//有无贷款
  1391. "receivablePay": "",//应收应付款
  1392. "businessSituation": "",//经营情况
  1393. "businessEfficiency": "",//经营效益
  1394. "corporationMaritalStatus": "",//法人婚姻状态
  1395. "spouseFront": "",//配偶身份证正面
  1396. "spouseBack": "",//配偶身份证反面
  1397. "spouseName": "",//配偶姓名
  1398. "spouseIdCard": "",//配偶身份证号
  1399. "spousePhone": "",//配偶手机号
  1400. "guaranteeType": "",//担保类型
  1401. "guaranteeFront": "",//反担保人身份证正面
  1402. "guaranteeBack": "",//反担保人身份证反面
  1403. "guaranteeName": "",//反担保人姓名
  1404. "guaranteeIdCard": "",//反担保人身份证号
  1405. "guaranteePhone": "",//反担保人手机号
  1406. // "guaranteeMaritalStatus": "",//反担保人婚姻状态
  1407. // "guaranteeSpouseFront": "",//反担保人配偶身份证正面
  1408. // "guaranteeSpouseBack": "",//反担保人配偶身份证反面
  1409. // "guaranteeSpouseName": "",//反担保人配偶姓名
  1410. // "guaranteeSpouseIdCard": "",//反担保人配偶身份证号
  1411. // "guaranteeSpousePhone": "",//反担保人配偶手机号
  1412. // "userId": '',//申请人用户ID
  1413. // "idCard": "",//申请人身份证号码
  1414. // "applicationTime": "",//申请时间
  1415. // "fileTime": "",//归档时间
  1416. // "loanSchedule": "",//贷款申请进度(业务进度表查询进度列表):1:申报提交2:业务审核/分配 3:担保初审 4:尽职调查 5:初审风险合规 6:评审会 7:合同签约 8:放款合规风险审核 9:放款通知 10:归档
  1417. // "loanScheduleName": '',//贷款申请进度名称(中文字)
  1418. // "auditSchedule": "",//审核进度1:担保初审 2:A角色审核 3:B角色审核 4:风险审核 5:尽职调查 6:上会评审
  1419. // "auditType": "",//审核状态 1:待审核 2:已通过 3:未通过
  1420. // "loanApplicationType": "",//贷款申请状态 1:暂存 2:正常 3:回收站 4:归档
  1421. // "aUserId": "",//A角色用户ID
  1422. // "aUserName": "",//A角色用户名称
  1423. // "bUserId": '',//B角色用户ID
  1424. // "bUserName": '',//B角色用户名称
  1425. "shareholderFjList": [],//全体股东信息附件
  1426. "loanApplicationFjList": [],//相关附件
  1427. "loanApplicationFjIdList": [],//fj删除id集合
  1428. "shareholderFjIdList": [],//股东fj表股东整体删除id集合
  1429. "basicFj":{},//基础附件
  1430. "declareFj":{},//申报附件
  1431. "fileFj":{},//文件出具
  1432. "otherFj":{},//其他附件
  1433. },
  1434. qymc:'',
  1435. msqy:'',
  1436. qyidx:0,
  1437. ywidx:0,
  1438. categoryId:'',//行业的id
  1439. rules:{
  1440. },
  1441. gdlist:[{cardz:'',cardf:'',zxurl:[],zhizhao:[],shareholderName:"",shareholderIdCard:''}],
  1442. qylist:[],//企业列表
  1443. fdarlist:[{type:1,guaranteeName:'',guaranteeIdCard:'',guaranteePhone:'',guaranteeInfoFjList:[]}],
  1444. fdaqylist:[{type:2,guaranteeName:'',guaranteeIdCard:'',guaranteeInfoFjList:[]}],
  1445. fdbrobj:{},//反担保人附件
  1446. fdbqyobj:{},//反担保企业附件
  1447. fdbdelxIdList:[],//反担保删除小id集合
  1448. fdbdeldIdList:[],//反担保删除大id集合
  1449. sfList:[{text: '是',value: 'Y'},{text: '否',value: 'N'}],
  1450. ywList:[{label: '有',value: 'Y'},{label: '无',value: 'N'}],
  1451. actcolor:'#00A9F0',
  1452. sqtype:'qy',//个人gr ,企业 qy,
  1453. hyztlist:[],//婚姻状态
  1454. yhlxlist:[],//用户类型
  1455. dblxlist:[],//担保类型
  1456. lookflag:false,
  1457. listTop:70,
  1458. userId:this.$store.state.user.userId,
  1459. categoryId:"",//行业类型id;
  1460. jcfjlist:[],//基础附件
  1461. sbfjlist:[],//申报附件
  1462. wjfjlist:[],//文件出具
  1463. jcfjobj:{},//基础附件
  1464. shareholderFjList:[],//全体股东信息附件
  1465. loanApplicationFjList:[],//相关附件
  1466. ftype:'',//弹窗type
  1467. baseUrl:'',
  1468. dblx:'',
  1469. yhlx:'',
  1470. frhyzk:'',//婚姻状况
  1471. dblxidx:0,
  1472. yhlxidx:0,
  1473. sfidx:0,
  1474. frhyzkidx:0,
  1475. btfiles:[
  1476. {tit:'公司章程',type:'gszc'},
  1477. {tit:'开户许可证',type:'khxkz'},{tit:'申请企业征信报告',type:'sqqyzxbg'},{tit:'企业法人征信报告',type:'qyfrzxbg'},{tit:'实际控股人征信报告',type:'sjkgrzxbg'},
  1478. {tit:'户口簿首页',type:'frhkbsy'},
  1479. ],
  1480. sqbtfiles:[
  1481. {tit:'上一年度财务报表',type:'syndcwbb'},{tit:'主要账户银行流水',type:'zyzhyhls'},{tit:'购销合同',type:'gxht'},
  1482. {tit:'当前从事项目情况证明',type:'dqcsxmqkzm'},{tit:'企业基本注册信息查询单',type:'qyjbzcxxcxd'},{tit:'水电费发票(一年)',type:'sdffpyn'},{tit:'人员工资表',type:'rggzb'},{tit:'纳税申报表',type:'nssbb'},
  1483. ],
  1484. fbdfiles:[
  1485. {tit:'身份证人像面',type:'fdbrsfzrmx'},{tit:'身份证国徽面',type:'fdbrsfzghm'}
  1486. ],
  1487. fdbqyfiles:[
  1488. {tit:'营业执照',type:'fdbqyyyzz'},{tit:'征信',type:'fdbqyzx'},
  1489. ],
  1490. content:'',//小微企业富文本
  1491. xwimgList:[],//小微企业图片
  1492. ptype:'add',
  1493. id:'',//申请id
  1494. declareFj:{},//
  1495. //{tit:'关联企业征信报告',type:'glqyzxbg'},
  1496. // {tit:'法人结婚证',type:'frjhz'},{tit:'法人离婚证',type:'frlhz'},
  1497. // {tit:'法人配偶身份证人像面',type:'frsfzpormx'},{tit:'法人配偶身份证国徽面',type:'frsfzpoghm'},
  1498. //担保类型为反担保人担保{tit:'反担保人身份证人像面',type:'fdbrsfzrmx'},{tit:'反担保人身份证国徽面',type:'fdbrsfzghm'},
  1499. //担保类型为抵押{tit:'企业固定资产证明',type:'qygdzczm'},
  1500. ischange:false,
  1501. isdetail:false,
  1502. qygdlist:[],//企业股东列表
  1503. dfdwpicker: {
  1504. title: '选择担保类型',
  1505. layer: null,
  1506. titflag:true,
  1507. data: []
  1508. },
  1509. loadflag:false,
  1510. fjdelIdList:[],//fj删除id集合
  1511. gdFjdelIdList:[],//股东fj表股东整体删除id集合
  1512. fjRemarkFj:[],//附件pdf
  1513. }
  1514. },
  1515. onUnload(){
  1516. uni.$off('refreshtalb')
  1517. },
  1518. watch:{
  1519. datainfo:{
  1520. handler(newVal, oldVal) {
  1521. if(this.isdetail){
  1522. this.isdetail=false
  1523. }else{
  1524. this.ischange=true
  1525. }
  1526. },
  1527. deep: true
  1528. },
  1529. },
  1530. onBackPress(e) {
  1531. var that=this;
  1532. var datainfo=that.datainfo;
  1533. if(this.ischange&&(!datainfo.loanSchedule||datainfo.loanSchedule<3)){
  1534. var a=0;
  1535. showConfirm('内容已做修改,是否暂存').then(res => {
  1536. if (res.confirm) {
  1537. this.getZanFn('back')
  1538. }else{
  1539. this.ischange=false;
  1540. uni.navigateBack({
  1541. delta:1
  1542. })
  1543. return false
  1544. }
  1545. })
  1546. return true
  1547. }else{
  1548. return false
  1549. uni.navigateBack({
  1550. delta:1
  1551. })
  1552. }
  1553. },
  1554. onLoad(e) {
  1555. // this.getIdCardDet()
  1556. // return
  1557. this.baseUrl=baseUrl
  1558. var data=JSON.parse(decodeURIComponent(e.data))
  1559. if(data.type){
  1560. this.ptype=data.type;
  1561. this.id=data.id;
  1562. if(Number(data.val)<4){
  1563. this.stepval=Number(data.val)+1
  1564. }
  1565. this.getDetail()
  1566. }else{
  1567. this.datainfo.applicationAmount=data.applicationAmount;
  1568. this.datainfo.applicationBank=data.applicationBank;
  1569. this.datainfo.usagePeriod=data.usagePeriod;
  1570. this.datainfo.purposeFunds=data.purposeFunds;
  1571. this.datainfo.repaymentSource=data.repaymentSource;
  1572. this.datainfo.applicationType=data.applicationType;
  1573. if(data.applicationType==1){
  1574. var obj={tit:'当期财务报表',type:'dqcwbb'};
  1575. this.sqbtfiles.push(obj)
  1576. }
  1577. this.getNumber();
  1578. this.getSbjListFn()
  1579. }
  1580. uni.$on('refreshtalb', (e) => {
  1581. this.datainfo.categoryType=e.categoryName
  1582. this.categoryId=e.categoryId
  1583. })
  1584. this.init()
  1585. this.getQylist()
  1586. this.getDocumentList()
  1587. },
  1588. mounted() {
  1589. this.getHeightFn()
  1590. // var obj={
  1591. // loanApplicationNumber:this.datainfo.loanApplicationNumber
  1592. // }
  1593. // this.option.formData=JSON.parse(JSON.stringify(obj))
  1594. // this.$refs['lsjUpload'].setData('formData.loanApplicationNumber','RZDB202404251759453241637');
  1595. },
  1596. methods:{
  1597. checkPermi, checkRole,
  1598. getRecorddwFn(){
  1599. this.$refs.treePickerzrdw._show();
  1600. },
  1601. selectChangezrdw(e){
  1602. var val=e;
  1603. var newArr=[],newVal=[];
  1604. var a=0;
  1605. e.forEach((ite,idx)=>{
  1606. newArr[idx]=ite.deptName
  1607. newVal[idx]=ite.deptId
  1608. if(ite.deptId==4){
  1609. a=1
  1610. }
  1611. })
  1612. this.dblx=newArr.join(',')
  1613. this.datainfo.guaranteeType=newVal.join(',');
  1614. if(a==1){
  1615. this.getGdFjlist()
  1616. }
  1617. },
  1618. getIdCardDet(){
  1619. getIdCardDet(this.userId).then(res=>{
  1620. if(res.code==200){
  1621. }
  1622. })
  1623. },
  1624. init(){
  1625. // 用户类型
  1626. getDictionaryFn('customer_type').then(res=>{
  1627. if(res.code==200){
  1628. this.yhlxlist = res.data.map(v => {
  1629. return {
  1630. label: v.dictLabel,
  1631. value: v.dictValue
  1632. }
  1633. })
  1634. }
  1635. })
  1636. // 婚姻状况
  1637. getDictionaryFn('marital_status').then(res=>{
  1638. if(res.code==200){
  1639. this.hyztlist = res.data.map(v => {
  1640. return {
  1641. label: v.dictLabel,
  1642. value: v.dictValue
  1643. }
  1644. })
  1645. }
  1646. })
  1647. // 担保类型
  1648. getDictionaryFn('guarantee_type').then(res=>{
  1649. if(res.code==200){
  1650. this.dblxlist = res.data.map(v => {
  1651. return {
  1652. label: v.dictLabel,
  1653. value: v.dictValue,
  1654. }
  1655. })
  1656. }
  1657. })
  1658. // 基础附件
  1659. getDictionaryFn('application_fj_jc').then(res=>{
  1660. if(res.code==200){
  1661. var obj={}
  1662. var data=res.data;
  1663. data.forEach(v=>{
  1664. obj[v.dictValue]=v.dictLabel
  1665. })
  1666. this.jcfjobj=obj
  1667. }
  1668. })
  1669. // 反担保人
  1670. getDictionaryFn('counter_guarantor').then(res=>{
  1671. if(res.code==200){
  1672. var obj={}
  1673. var data=res.data;
  1674. data.forEach(v=>{
  1675. obj[v.dictValue]=v.dictLabel
  1676. })
  1677. this.fdbrobj=obj
  1678. }
  1679. })
  1680. // 反担保企业附件
  1681. getDictionaryFn('counter_attachment').then(res=>{
  1682. if(res.code==200){
  1683. var obj={}
  1684. var data=res.data;
  1685. data.forEach(v=>{
  1686. obj[v.dictValue]=v.dictLabel
  1687. })
  1688. this.fdbqyobj=obj
  1689. }
  1690. })
  1691. },
  1692. getSbjListFn(){
  1693. // 申报附件
  1694. getDictionaryFn('application_fj_sb').then(res=>{
  1695. if(res.code==200){
  1696. var declareFj=this.declareFj;
  1697. this.sbfjlist = res.data.map(v => {
  1698. return {
  1699. label: v.dictLabel,
  1700. val: v.dictValue,
  1701. fjlist:declareFj[v.dictValue]||[]
  1702. }
  1703. })
  1704. let signArr = JSON.parse(JSON.stringify(this.filelist));
  1705. signArr = signArr.filter(s => {
  1706. // if (res.data.find(l => l.dictValue == s.type && l.title == s.title)) return false
  1707. if (res.data.find(l => l.dictValue == s.type)) return false
  1708. else return true;
  1709. })
  1710. this.filelist = signArr;
  1711. }
  1712. })
  1713. },
  1714. getGdFjlist(){
  1715. // var params={
  1716. // loanApplicationNumber:this.datainfo.loanApplicationNumber
  1717. // }
  1718. // getGdlistNoPage(params).then(res=>{
  1719. // if(res.code==200){
  1720. // this.qygdlist=res.data
  1721. // }
  1722. // })
  1723. },
  1724. getQylist(){
  1725. // 需要userid
  1726. var params={
  1727. userId:this.userId
  1728. }
  1729. getQyListNoPage(params).then(res=>{
  1730. if(res.code==200){
  1731. this.qylist = res.rows.map(v => {
  1732. return {
  1733. label: v.enterpriseName,
  1734. value: v.enterpriseId
  1735. }
  1736. })
  1737. }
  1738. })
  1739. },
  1740. getNumber(){
  1741. getApplicationNum().then(res=>{
  1742. if(res.code==200){
  1743. this.datainfo.loanApplicationNumber=res.data;
  1744. var obj={
  1745. loanApplicationNumber:this.datainfo.loanApplicationNumber
  1746. }
  1747. this.option.formData=JSON.parse(JSON.stringify(obj))
  1748. }
  1749. })
  1750. },
  1751. getHeightFn(){
  1752. let query = uni.createSelectorQuery().in(this);
  1753. var s=uni.getSystemInfoSync().statusBarHeight;
  1754. //需要给黄色区域设置一个id标识,在这里是demo
  1755. query.select('.navtop').boundingClientRect(data => {
  1756. // #ifdef H5
  1757. this.listTop =s ? Number(data.height)*2:(Number(data.height)-20)*2//赋值,待会要用
  1758. // #endif
  1759. // #ifndef H5
  1760. this.listTop = Number(data.height)*2//赋值,待会要用
  1761. // #endif
  1762. }).exec();
  1763. },
  1764. getDbclFn(){
  1765. this.$tab.navigateTo("/work/pages/prove/dbcltips")
  1766. },
  1767. getBack(){
  1768. // 暂存
  1769. uni.navigateBack({
  1770. delta:1
  1771. })
  1772. },
  1773. getGiveupFn(){
  1774. var that=this;
  1775. uni.showModal({
  1776. title: '放弃编辑',
  1777. content: "是否确认放弃编辑",
  1778. cancelText: '取消',
  1779. confirmText: '确认',
  1780. success: function(res) {
  1781. if (res.confirm) {
  1782. that.$tab.reLaunch('/pages/index/index')
  1783. } else if (res.cancel) {
  1784. }
  1785. }
  1786. });
  1787. },
  1788. getPreFn(){
  1789. uni.pageScrollTo({
  1790. scrollTop: 0,
  1791. duration: 0
  1792. })
  1793. this.stepval=Number(this.stepval)-1
  1794. },
  1795. getNextFn(){
  1796. // 暂不判断必填写完否
  1797. uni.pageScrollTo({
  1798. scrollTop: 0,
  1799. duration: 0
  1800. })
  1801. this.stepval=Number(this.stepval)+1
  1802. },
  1803. getPreview(url) {
  1804. var newArr=[];
  1805. newArr.push(url)
  1806. uni.previewImage({
  1807. urls: newArr,
  1808. current:0,
  1809. success: function(data) {
  1810. },
  1811. fail: function(err) {
  1812. }
  1813. });
  1814. },
  1815. showImg(){
  1816. this.ftype='fwb'
  1817. // this.lookflag=true
  1818. },
  1819. getClose(){
  1820. this.ftype=''
  1821. },
  1822. getTalbFn(){
  1823. var obj={
  1824. id:this.categoryId,
  1825. name:this.datainfo.categoryType,
  1826. }
  1827. this.$tab.navigateTo('/work/pages/business/talbclass?data='+encodeURIComponent(JSON.stringify(obj)))
  1828. },
  1829. // 添加股东
  1830. getAddGdFn(){
  1831. var obj = {cardz:'',cardf:'',zxurl:[],zhizhao:[],shareholderName:"",shareholderIdCard:'',}
  1832. this.gdlist.push(obj);
  1833. },
  1834. // 添加反担保人
  1835. getAddFdbFn(){
  1836. var obj = {type:1,guaranteeName:'',guaranteeIdCard:'',guaranteePhone:'',guaranteeInfoFjList:[]}
  1837. this.fdarlist.push(obj);
  1838. },
  1839. //添加反担保企业
  1840. getAddQiFn(){
  1841. var obj = {type:2,guaranteeName:'',guaranteeIdCard:'',guaranteeInfoFjList:[]}
  1842. this.fdaqylist.push(obj);
  1843. },
  1844. // 删除股东
  1845. getdelGdFn(idx,ite){
  1846. var that=this;
  1847. uni.showModal({
  1848. title: '确认删除',
  1849. content: "是否确认删除",
  1850. cancelText: '取消',
  1851. confirmText: '确认',
  1852. success: function(res) {
  1853. if (res.confirm) {
  1854. if(ite.shareholderFjId){
  1855. var id=ite.shareholderFjId;
  1856. that.gdFjdelIdList.push(id)
  1857. }
  1858. that.gdlist.splice(idx,1);
  1859. } else if (res.cancel) {
  1860. }
  1861. }
  1862. });
  1863. },
  1864. // 删除反担保人
  1865. getdelFdbFn(idx,ite){
  1866. var that=this;
  1867. uni.showModal({
  1868. title: '确认删除',
  1869. content: "是否确认删除",
  1870. cancelText: '取消',
  1871. confirmText: '确认',
  1872. success: function(res) {
  1873. if (res.confirm) {
  1874. if(ite.guaranteeInfoId){
  1875. var id=ite.guaranteeInfoId;
  1876. that.fdbdeldIdList.push(id)
  1877. }
  1878. that.fdarlist.splice(idx,1);
  1879. } else if (res.cancel) {
  1880. }
  1881. }
  1882. });
  1883. },
  1884. // 删除反担保企业
  1885. getdelQyFn(idx,ite){
  1886. var that=this;
  1887. uni.showModal({
  1888. title: '确认删除',
  1889. content: "是否确认删除",
  1890. cancelText: '取消',
  1891. confirmText: '确认',
  1892. success: function(res) {
  1893. if (res.confirm) {
  1894. if(ite.guaranteeInfoId){
  1895. var id=ite.guaranteeInfoId;
  1896. that.fdbdeldIdList.push(id)
  1897. }
  1898. that.fdaqylist.splice(idx,1);
  1899. } else if (res.cancel) {
  1900. }
  1901. }
  1902. });
  1903. },
  1904. statusFormats(ite,list,type){//多选匹配
  1905. if(ite){
  1906. var actions = [];
  1907. list.forEach(s => {
  1908. if(ite.indexOf(s.value)>-1){
  1909. actions.push(s.label);
  1910. }
  1911. })
  1912. return actions.join(',')
  1913. }else{
  1914. return ''
  1915. }
  1916. },
  1917. statusFormat(ite,list,type) {
  1918. var aite=selectValueKey(list, ite);
  1919. if(type=='qy'){
  1920. this.qyidx=aite.key
  1921. }else if(type=='dblx'){
  1922. this.dblxidx=aite.key
  1923. }else if(type=='yhlx'){
  1924. this.yhlxidx=aite.key
  1925. }else if(type=='ywdk'){
  1926. this.ywidx=aite.key
  1927. }else if(type=='msqy'){
  1928. this.sfidx=aite.key
  1929. }else if(type=='frhyzk'){
  1930. this.frhyzkidx=aite.key
  1931. this.frhyzk=aite.actions;
  1932. }
  1933. return aite.actions;
  1934. },
  1935. bindDateChangea(e){
  1936. // 企业信息
  1937. var val=e.detail.value;
  1938. this.datainfo.enterpriseName=this.qylist[val].label;
  1939. this.datainfo.enterpriseId=this.qylist[val].value;
  1940. },
  1941. bindDateChangeb(e){
  1942. // 用户类型
  1943. var val=e.detail.value;
  1944. this.yhlx=this.yhlxlist[val].label;
  1945. this.datainfo.customerType=this.yhlxlist[val].value;
  1946. },
  1947. bindDateChangec(e){
  1948. // 有无贷款
  1949. var val=e.detail.value;
  1950. this.datainfo.isLoan=this.ywList[val].value;
  1951. },
  1952. getDelfzpo(type){
  1953. if(type=='front'){
  1954. this.datainfo.spouseFront="";
  1955. this.datainfo.spouseName="";
  1956. this.datainfo.spouseIdCard="";
  1957. }else{
  1958. this.datainfo.spouseBack="";
  1959. }
  1960. },
  1961. getDelfdbfzpo(type,idx){
  1962. var obj=this.fdarlist[idx];
  1963. const index = obj.findIndex(text => text.type === type);
  1964. if(type=='fdbrsfzrmx'){
  1965. obj.guaranteeName="";
  1966. obj.guaranteeIdCard="";
  1967. }
  1968. this.fdarlist[idx].fjlist.splice(index,1)
  1969. },
  1970. bindDateChanged(e){
  1971. // 婚姻状态
  1972. var val=e.detail.value;
  1973. var value=this.hyztlist[val].value;
  1974. var list=this.btfiles;
  1975. if(this.datainfo.corporationMaritalStatus!=value){
  1976. this.frhyzk=this.hyztlist[val].label;
  1977. this.datainfo.corporationMaritalStatus=this.hyztlist[val].value;
  1978. if(value==3){//离异
  1979. // 删除结婚证
  1980. var obj={tit:'法人离婚证',type:'frlhz'}
  1981. const index = list.findIndex(text => text.type === "frjhz");
  1982. if(index!=-1){
  1983. this.btfiles.splice(index,1,obj)
  1984. }else{
  1985. this.btfiles.push(obj)
  1986. }
  1987. }else if(value==1){//已婚
  1988. // 删除离婚证
  1989. var obj={tit:'法人结婚证',type:'frjhz'}
  1990. const index = list.findIndex(text => text.type === "frlhz");
  1991. if(index!=-1){
  1992. this.btfiles.splice(index,1,obj)
  1993. }else{
  1994. this.btfiles.push(obj)
  1995. }
  1996. }else{
  1997. // 未婚
  1998. const index = this.btfiles.findIndex(text => text.type === "frlhz");
  1999. if(index!=-1){
  2000. this.btfiles.splice(index,1)
  2001. }
  2002. const indexa = this.btfiles.findIndex(text => text.type === "frjhz");
  2003. if(indexa!=-1){
  2004. this.btfiles.splice(indexa,1)
  2005. }
  2006. }
  2007. }
  2008. },
  2009. bindDateChangee(e){
  2010. // 担保类型
  2011. var val=e.detail.value;
  2012. this.dblx=this.dblxlist[val].label;
  2013. this.datainfo.guaranteeType=this.dblxlist[val].value;
  2014. var value=this.dblxlist[val].value;
  2015. var list=this.btfiles;
  2016. var sqlist=this.sqlist;
  2017. },
  2018. // 反担保企业
  2019. bindDateChangeg(e){
  2020. var val=e.detail.value;
  2021. var data=this.qygdlist[val]
  2022. this.datainfo.guaranteeShareholderName=data.shareholderName;
  2023. var obj={
  2024. name:'企业营业执照',
  2025. // oldName:oldName,
  2026. url:data.shareholderBusinessUrl,
  2027. type:'fdbqyyyzz',
  2028. bigType:'a',
  2029. }
  2030. let indices = this.filelist.filter((ite, index) => ite.type!== "fdbqyyyzz")||[]
  2031. indices.push(obj)
  2032. this.filelist=indices
  2033. this.datainfo.loanApplicationFjList=JSON.parse(JSON.stringify(this.filelist))
  2034. },
  2035. // 免税
  2036. bindDateChangef(e){
  2037. var val=e.detail.value;
  2038. // this.dblx=this.sfList[val].text;
  2039. this.datainfo.isDuty=this.sfList[val].value;
  2040. },
  2041. getZanFn(type){
  2042. var that=this;
  2043. if(this.loadflag){
  2044. return
  2045. }
  2046. var params=JSON.parse(JSON.stringify(this.datainfo));
  2047. var gdlist=this.gdlist;
  2048. var shFjList=[]
  2049. Object.keys(gdlist).some((key) => {
  2050. var fjurl={
  2051. shareholderFrontUrl:gdlist[key].cardz,
  2052. shareholderBackUrl:gdlist[key].cardf,
  2053. shareholderZxUrl:gdlist[key].zxurl.join(','),
  2054. shareholderBusinessUrl:gdlist[key].zhizhao.join(','),
  2055. shareholderName:gdlist[key].shareholderName,
  2056. shareholderIdCard:gdlist[key].shareholderIdCard,
  2057. shareholderFjId:gdlist[key].shareholderFjId,
  2058. shareholderZxUrlPdf:gdlist[key].shareholderZxUrlPdf,
  2059. loanApplicationNumber:gdlist[key].loanApplicationNumber,
  2060. }
  2061. shFjList.push(fjurl)
  2062. })
  2063. params.shareholderFjList=JSON.parse(JSON.stringify(shFjList))
  2064. var flist=JSON.parse(JSON.stringify(this.filelist));
  2065. var sbfjlist=this.sbfjlist;
  2066. sbfjlist.forEach(ite=>{
  2067. if(ite.fjlist&&ite.fjlist.length){
  2068. ite.fjlist.forEach(itet=>{
  2069. flist.push(itet)
  2070. })
  2071. }
  2072. })
  2073. if(this.fjRemarkFj&&this.fjRemarkFj.length>0){
  2074. flist=flist.concat(this.fjRemarkFj)
  2075. }
  2076. params.loanApplicationFjList=JSON.parse(JSON.stringify(flist))
  2077. params.loanApplicationFjIdList=JSON.parse(JSON.stringify(this.fjdelIdList))
  2078. params.shareholderFjIdList=JSON.parse(JSON.stringify(this.gdFjdelIdList))
  2079. var fdarlist=JSON.parse(JSON.stringify(this.fdarlist))
  2080. var fdaqylist=JSON.parse(JSON.stringify(this.fdaqylist))
  2081. var guaranteeInfoList=[];
  2082. guaranteeInfoList=fdarlist.concat(fdaqylist)
  2083. var fdbFjList=[]
  2084. Object.keys(guaranteeInfoList).some((key) => {
  2085. var fjurl=guaranteeInfoList[key];
  2086. var fdbfjlist=fjurl.guaranteeInfoFjList
  2087. fjurl.loanApplicationNumber=this.datainfo.loanApplicationNumber;
  2088. fjurl.loanApplicationId=this.datainfo.loanApplicationId;
  2089. if((!fdbfjlist||fdbfjlist.length<1)&&fjurl.type==1&&fjurl.guaranteeInfoId&&!fjurl.guaranteePhone){
  2090. this.fdbdeldIdList.push(fjurl.guaranteeInfoId)
  2091. }
  2092. if((!fdbfjlist||fdbfjlist.length<1)&&fjurl.type==2&&fjurl.guaranteeInfoId){
  2093. this.fdbdeldIdList.push(fjurl.guaranteeInfoId)
  2094. }
  2095. if(fjurl.type==1&&(fdbfjlist&&fdbfjlist.length||fjurl.guaranteePhone)){
  2096. fdbFjList.push(fjurl)
  2097. }else if(fjurl.type==2&&fdbfjlist&&fdbfjlist.length){
  2098. fdbFjList.push(fjurl)
  2099. }
  2100. })
  2101. params.guaranteeInfoList=JSON.parse(JSON.stringify(fdbFjList))
  2102. params.guaranteeInfoFjIdList=JSON.parse(JSON.stringify(this.fdbdelxIdList))
  2103. params.guaranteeInfoIdList=JSON.parse(JSON.stringify(this.fdbdeldIdList))
  2104. console.log(this.fjdelIdList,this.gdFjdelIdList,123,this.fdbdelxIdList,this.fdbdeldIdList)
  2105. uni.showLoading({
  2106. title: '加载中'
  2107. });
  2108. this.loadflag=true;
  2109. getApplicationZc(params).then(res=>{
  2110. uni.hideLoading();
  2111. this.loadflag=false;
  2112. if(res.code==200){
  2113. this.ischange=false;
  2114. // 刷新列表
  2115. setTimeout(function(){
  2116. if(that.ptype=='add'){
  2117. that.$toast('暂存成功')
  2118. setTimeout(function(){
  2119. that.$tab.reLaunch('/pages/index/index')
  2120. },1200)
  2121. }else{
  2122. that.$toast('暂存成功,请稍后重新刷新')
  2123. uni.$emit('refreshywlist')
  2124. setTimeout(function(){
  2125. uni.navigateBack({
  2126. delta:2
  2127. })
  2128. },1200)
  2129. // if(type&&type=='back'){
  2130. // uni.navigateBack({
  2131. // delta:1
  2132. // })
  2133. // }
  2134. }
  2135. },1200)
  2136. }
  2137. }).catch(error => {
  2138. uni.hideLoading();
  2139. this.loadflag=false;
  2140. })
  2141. },
  2142. getDetail(){
  2143. getApplicationDet(this.id).then(res=>{
  2144. if(res.code==200){
  2145. this.datainfo=res.data;
  2146. this.isdetail=true;
  2147. if(res.data&&res.data.applicationType==1){
  2148. var obj={tit:'当期财务报表',type:'dqcwbb'};
  2149. this.sqbtfiles.push(obj)
  2150. }
  2151. var data=res.data;
  2152. var obj={
  2153. loanApplicationNumber:res.data.loanApplicationNumber
  2154. }
  2155. this.option.formData=JSON.parse(JSON.stringify(obj))
  2156. if(data.loanApplicationFjList){
  2157. // 筛除自动生成的附件
  2158. var filterlist=JSON.parse(JSON.stringify(data.loanApplicationFjList))
  2159. var fjRemarkFj=[]
  2160. this.filelist=filterlist.filter((ite) => {
  2161. if(ite.remark==1){
  2162. fjRemarkFj.push(ite)
  2163. }
  2164. return ite.remark!=1;
  2165. })
  2166. this.fjRemarkFj=JSON.parse(JSON.stringify(fjRemarkFj));
  2167. // console.log(fjRemarkFj,1)
  2168. // this.filelist=JSON.parse(JSON.stringify(data.loanApplicationFjList))
  2169. }
  2170. if(data.declareFj){
  2171. var declareFj=data.declareFj;
  2172. Object.keys(declareFj).some((key) => {
  2173. declareFj[key]=declareFj[key].filter((ite) => {
  2174. return ite.remark!=1
  2175. })
  2176. })
  2177. this.declareFj=JSON.parse(JSON.stringify(declareFj));
  2178. // this.declareFj=data.declareFj;
  2179. }
  2180. if(data.shareholderFjList){
  2181. var shFjList=[]
  2182. var gdlist=data.shareholderFjList;
  2183. Object.keys(gdlist).some((key) => {
  2184. var fjurl={
  2185. shareholderFjId:gdlist[key].shareholderFjId,
  2186. cardz:gdlist[key].shareholderFrontUrl,
  2187. cardf:gdlist[key].shareholderBackUrl,
  2188. zxurl:[],
  2189. zhizhao:[],
  2190. shareholderName:gdlist[key].shareholderName,
  2191. shareholderIdCard:gdlist[key].shareholderIdCard,
  2192. shareholderZxUrlPdf:gdlist[key].shareholderZxUrlPdf,
  2193. loanApplicationNumber:gdlist[key].loanApplicationNumber,
  2194. }
  2195. if(gdlist[key].shareholderZxUrl){
  2196. fjurl.zxurl=gdlist[key].shareholderZxUrl.split(',')
  2197. }
  2198. if(gdlist[key].shareholderBusinessUrl){
  2199. fjurl.zhizhao=gdlist[key].shareholderBusinessUrl.split(',')
  2200. }
  2201. shFjList.push(fjurl)
  2202. })
  2203. this.gdlist=JSON.parse(JSON.stringify(shFjList))
  2204. }
  2205. // 反担保附件
  2206. if(data.guaranteeInfoList&&data.guaranteeInfoList.length>0){
  2207. var fdarlist=[],fdaqylist=[];
  2208. var gInfoList=data.guaranteeInfoList;
  2209. Object.keys(gInfoList).some((key) => {
  2210. var obj=gInfoList[key];
  2211. var fdblist=gInfoList[key].guaranteeInfoFjList;
  2212. fdblist=fdblist.filter((ite) => {
  2213. return ite.remark!=1
  2214. })
  2215. obj.guaranteeInfoFjList=JSON.parse(JSON.stringify(fdblist))
  2216. if(obj.type==1){
  2217. fdarlist.push(obj)
  2218. }else if(obj.type==2){
  2219. fdaqylist.push(obj)
  2220. }
  2221. })
  2222. if(fdarlist&&fdarlist.length){
  2223. this.fdarlist=JSON.parse(JSON.stringify(fdarlist))
  2224. }
  2225. if(fdaqylist&&fdaqylist.length){
  2226. this.fdaqylist=JSON.parse(JSON.stringify(fdaqylist))
  2227. }
  2228. }
  2229. this.getSbjListFn()
  2230. this.getGdFjlist()
  2231. }
  2232. })
  2233. },
  2234. getSubmit(){
  2235. var that=this;
  2236. if(this.loadflag){
  2237. return
  2238. }
  2239. // 判断附件是否完整
  2240. var params=JSON.parse(JSON.stringify(this.datainfo));
  2241. if(!params.enterpriseName){
  2242. this.$toast("请选择企业名称")
  2243. return
  2244. }
  2245. if(!params.categoryType){
  2246. this.$toast("请选择行业类型")
  2247. return
  2248. }
  2249. if(!params.customerType){
  2250. this.$toast("请选择用户类型")
  2251. return
  2252. }
  2253. if(!params.corporationFront){
  2254. this.$toast("请上传法人身份证人像面")
  2255. return
  2256. }
  2257. if(!params.corporationBack){
  2258. this.$toast("请上传法人身份证国徽面")
  2259. return
  2260. }
  2261. if(!params.isLoan){
  2262. this.$toast("请选择有无贷款")
  2263. return
  2264. }
  2265. if(!this.frhyzk){
  2266. this.$toast("请选择婚姻状态")
  2267. return
  2268. }
  2269. if(params.corporationMaritalStatus==1){
  2270. if(!params.spouseFront){
  2271. this.$toast("请上传配偶身份证人像面")
  2272. return
  2273. }
  2274. if(!params.spouseBack){
  2275. this.$toast("请上传配偶身份证国徽面")
  2276. return
  2277. }
  2278. }
  2279. if(!params.corporationPhone){
  2280. // 验证手机号
  2281. this.$toast("请输入法人手机号")
  2282. return
  2283. }
  2284. let regphone = /^1[3|4|5|6|7|8|9][0-9]\d{8}$/
  2285. if (params.corporationPhone && !regphone.test(params.corporationPhone)) {
  2286. that.$toast("请输入正确的法人手机号")
  2287. return
  2288. }
  2289. var gdlist=this.gdlist;
  2290. var shFjList=[]
  2291. var a=0;
  2292. Object.keys(gdlist).some((key) => {
  2293. var str="请上传股东"+(Number(key)+1)
  2294. if(gdlist[key].zhizhao<1 && !gdlist[key].cardz){
  2295. a=1;
  2296. that.$toast(str+'营业执照或者身份证')
  2297. return true;
  2298. }else{
  2299. if(gdlist[key].cardz){
  2300. if(!gdlist[key].cardf){
  2301. a=1;
  2302. that.$toast(str+'身份证国徽面')
  2303. return true;
  2304. }
  2305. }
  2306. }
  2307. // if(!gdlist[key].cardz){
  2308. // a=1;
  2309. // that.$toast(str+"身份证人像面")
  2310. // return true;
  2311. // }else if(!gdlist[key].cardf){
  2312. // a=1;
  2313. // that.$toast(str+'身份证国徽面')
  2314. // return true;
  2315. // }
  2316. if(gdlist[key].zxurl<1){
  2317. a=1;
  2318. that.$toast(str+'征信报告')
  2319. return true;
  2320. }
  2321. var fjurl={
  2322. shareholderFrontUrl:gdlist[key].cardz,
  2323. shareholderBackUrl:gdlist[key].cardf,
  2324. shareholderZxUrl:gdlist[key].zxurl.join(','),
  2325. shareholderBusinessUrl:gdlist[key].zhizhao.join(','),
  2326. shareholderName:gdlist[key].shareholderName,
  2327. shareholderIdCard:gdlist[key].shareholderIdCard,
  2328. shareholderFjId:gdlist[key].shareholderFjId,
  2329. shareholderZxUrlPdf:gdlist[key].shareholderZxUrlPdf,
  2330. loanApplicationNumber:gdlist[key].loanApplicationNumber,
  2331. }
  2332. shFjList.push(fjurl)
  2333. })
  2334. params.shareholderFjList=JSON.parse(JSON.stringify(shFjList))
  2335. if(a==1){
  2336. return
  2337. }
  2338. if(!params.guaranteeType){
  2339. this.$toast("请选择担保类型")
  2340. return
  2341. }
  2342. var flist=JSON.parse(JSON.stringify(this.filelist));
  2343. var btfiles=JSON.parse(JSON.stringify(this.btfiles));
  2344. var sqbtfiles=JSON.parse(JSON.stringify(this.sqbtfiles));
  2345. var fdarlist=JSON.parse(JSON.stringify(this.fdarlist))
  2346. var fbdfiles=JSON.parse(JSON.stringify(this.fbdfiles))
  2347. var fdaqylist=JSON.parse(JSON.stringify(this.fdaqylist))
  2348. var fdbqyfiles=JSON.parse(JSON.stringify(this.fdbqyfiles))
  2349. var guaranteeInfoList=[]
  2350. if(params.guaranteeType.indexOf('1')>-1){//抵押担保
  2351. var obj={tit:'企业固定资产证明',type:'qygdzczm'}
  2352. sqbtfiles.push(obj)
  2353. }
  2354. // 反担保人担保
  2355. var d=0,da=0;
  2356. Object.keys(fdarlist).some((key) => {
  2357. fdarlist[key].loanApplicationNumber=that.datainfo.loanApplicationNumber
  2358. fdarlist[key].loanApplicationId=that.datainfo.loanApplicationId
  2359. var str="请上传反担保人"+(Number(key)+1)
  2360. var flist=fdarlist[key].guaranteeInfoFjList;
  2361. var guaranteePhone=fdarlist[key].guaranteePhone;
  2362. if(flist&&flist.length){
  2363. da=1;
  2364. guaranteeInfoList.push(fdarlist[key])
  2365. if(params.guaranteeType.indexOf('2')>-1){
  2366. if(!guaranteePhone){
  2367. that.$toast(str+'手机号')
  2368. d=1;
  2369. return true;
  2370. }
  2371. // 验证手机号
  2372. if (guaranteePhone && !regphone.test(guaranteePhone)) {
  2373. that.$toast("请输入正确的反担保人"+(Number(key)+1)+"手机号")
  2374. d=1;
  2375. return true;
  2376. }
  2377. Object.keys(fbdfiles).some((fkey)=>{
  2378. if (flist.find(l => l.type == fbdfiles[fkey].type)) {
  2379. return false
  2380. }else{
  2381. d=1;
  2382. that.$toast(str+fbdfiles[fkey].tit)
  2383. return true;
  2384. }
  2385. })
  2386. }
  2387. }else{
  2388. if(fdarlist[key].guaranteeInfoId&&!guaranteePhone){
  2389. this.fdbdeldIdList.push(fdarlist[key].guaranteeInfoId)
  2390. }
  2391. if(guaranteePhone){
  2392. guaranteeInfoList.push(fdarlist[key])
  2393. }
  2394. }
  2395. if(d==1){
  2396. return true
  2397. }
  2398. })
  2399. if(da==0&&params.guaranteeType.indexOf('2')>-1){
  2400. that.$toast('请上传反担保人身份证人面像')
  2401. return true
  2402. }
  2403. if(d==1){
  2404. return
  2405. }
  2406. // 反担保企业
  2407. var e=0,ea=0;
  2408. Object.keys(fdaqylist).some((key) => {
  2409. fdaqylist[key].loanApplicationNumber=that.datainfo.loanApplicationNumber
  2410. fdaqylist[key].loanApplicationId=that.datainfo.loanApplicationId
  2411. var str="请上传反担保企业"+(Number(key)+1)
  2412. var flist=fdaqylist[key].guaranteeInfoFjList;
  2413. if(flist&&flist.length){
  2414. ea=1;
  2415. guaranteeInfoList.push(fdaqylist[key])
  2416. if(params.guaranteeType.indexOf('4')>-1){//企业保证
  2417. Object.keys(fdbqyfiles).some((fkey)=>{
  2418. if (flist.find(l => l.type == fdbqyfiles[fkey].type)) {
  2419. return false
  2420. }else{
  2421. e=1;
  2422. that.$toast(str+fdbqyfiles[fkey].tit)
  2423. return true;
  2424. }
  2425. })
  2426. }
  2427. }else{
  2428. if(fdaqylist[key].guaranteeInfoId){
  2429. this.fdbdeldIdList.push(fdaqylist[key].guaranteeInfoId)
  2430. }
  2431. }
  2432. if(e==1){
  2433. return true
  2434. }
  2435. })
  2436. if(ea==0&&params.guaranteeType.indexOf('4')>-1){
  2437. that.$toast('请上传反担保企业营业执照')
  2438. return
  2439. }
  2440. if(e==1){
  2441. return
  2442. }
  2443. // console.log(guaranteeInfoList)
  2444. // return
  2445. // if(params.guaranteeType.indexOf('2')>-1){//反担保人担保
  2446. // // 选择担保人担保
  2447. // if(!params.guaranteePhone){
  2448. // // 验证手机号
  2449. // this.$toast("请输入反担保人手机号")
  2450. // return
  2451. // }
  2452. // if (params.guaranteePhone && !regphone.test(params.guaranteePhone)) {
  2453. // that.$toast("请输入正确的反担保人手机号")
  2454. // return
  2455. // }
  2456. // if(!params.guaranteeFront){
  2457. // this.$toast("请上传反担保人身份证人像面")
  2458. // return
  2459. // }
  2460. // if(!params.guaranteeBack){
  2461. // this.$toast("请上传反担保人身份证国徽面")
  2462. // return
  2463. // }
  2464. // }
  2465. if(params.guaranteeType.indexOf('3')>-1){//企业保证
  2466. var obj={tit:'反担保抵(质)押复印件',type:'fdbdyfyj'}
  2467. sqbtfiles.push(obj)
  2468. }
  2469. // if(params.guaranteeType.indexOf('4')>-1){//企业保证
  2470. // var obj={tit:'反担保企业营业执照',type:'fdbqyyyzz'}
  2471. // var objb={tit:'反担保企业征信',type:'fdbqyzx'}
  2472. // btfiles.push(obj)
  2473. // btfiles.push(objb)
  2474. // }
  2475. var b=0;
  2476. Object.keys(btfiles).some((key) => {
  2477. if (flist.find(l => l.type == btfiles[key].type)) {
  2478. return false
  2479. }else{
  2480. b=1;
  2481. that.$toast('请上传'+btfiles[key].tit)
  2482. return true;
  2483. }
  2484. })
  2485. if(b==1){
  2486. return
  2487. }
  2488. if(!params.isDuty){
  2489. this.$toast("请选择是否免税企业")
  2490. return
  2491. }
  2492. var sbfjlist=this.sbfjlist;
  2493. var sbArr=[]
  2494. var c=0;
  2495. Object.keys(sqbtfiles).some((key) => {
  2496. if (sbfjlist.find(l => (l.val == sqbtfiles[key].type) && l.fjlist.length>0)) {
  2497. return false
  2498. }else{
  2499. c=1;
  2500. that.$toast('请上传'+sqbtfiles[key].tit)
  2501. return true;
  2502. }
  2503. })
  2504. if(c==1){
  2505. return
  2506. }
  2507. sbfjlist.forEach(ite=>{
  2508. if(ite.fjlist&&ite.fjlist.length){
  2509. ite.fjlist.forEach(itet=>{
  2510. flist.push(itet)
  2511. })
  2512. }
  2513. })
  2514. if(this.fjRemarkFj&&this.fjRemarkFj.length>0){
  2515. flist=flist.concat(this.fjRemarkFj)
  2516. }
  2517. params.loanApplicationFjList=JSON.parse(JSON.stringify(flist))
  2518. params.loanApplicationFjIdList=JSON.parse(JSON.stringify(this.fjdelIdList))
  2519. params.shareholderFjIdList=JSON.parse(JSON.stringify(this.gdFjdelIdList))
  2520. params.guaranteeInfoList=JSON.parse(JSON.stringify(guaranteeInfoList))
  2521. params.guaranteeInfoFjIdList=JSON.parse(JSON.stringify(this.fdbdelxIdList))
  2522. params.guaranteeInfoIdList=JSON.parse(JSON.stringify(this.fdbdeldIdList))
  2523. console.log(this.fjdelIdList,this.gdFjdelIdList,222,this.fdbdelxIdList,this.fdbdeldIdList)
  2524. uni.showLoading({
  2525. title: '加载中'
  2526. });
  2527. this.loadflag=true;
  2528. if(this.ptype=='add'){
  2529. getApplicationAdd(params).then(res=>{
  2530. uni.hideLoading();
  2531. this.loadflag=false;
  2532. if(res.code==200){
  2533. that.ischange=false;
  2534. that.$toast("新增成功,请稍后重新刷新")
  2535. setTimeout(function(){
  2536. that.$tab.redirectTo('/work/pages/success')
  2537. },1200)
  2538. }
  2539. }).catch(error => {
  2540. uni.hideLoading();
  2541. this.loadflag=false;
  2542. })
  2543. }else{
  2544. getApplicationEdit(params).then(res=>{
  2545. uni.hideLoading();
  2546. this.loadflag=false;
  2547. if(res.code==200){
  2548. that.ischange=false;
  2549. that.$toast("修改成功,请稍后重新刷新")
  2550. setTimeout(function(){
  2551. uni.$emit('refreshywlist')
  2552. uni.navigateBack({
  2553. delta:2
  2554. })
  2555. },1200)
  2556. }
  2557. }).catch(error => {
  2558. uni.hideLoading();
  2559. this.loadflag=false;
  2560. })
  2561. }
  2562. //
  2563. // this.$tab.navigateTo('/work/pages/success')
  2564. },
  2565. getaddImage(e){
  2566. let that = this;
  2567. let file =[],count=9
  2568. // if(e=='zj'){
  2569. // file = that.zjfile;
  2570. // count=9
  2571. // }else{
  2572. // file = that.mjfile;
  2573. // count=9
  2574. // }
  2575. uni.chooseImage({
  2576. count: 1,
  2577. success:function(res){
  2578. let img= res.tempFilePaths;
  2579. if(img.length + file.length > count){
  2580. uni.showToast({
  2581. title: '最多上传'+count+'张图片',
  2582. icon: 'none',
  2583. duration: 2000
  2584. })
  2585. }else{
  2586. let imglen = res.tempFilePaths.length;
  2587. var fuwufile = [];
  2588. uploadmore('/common/upload',img,0,0,0,imglen,fuwufile,function(rs){
  2589. if(e=='zj'){
  2590. that.zjfile = that.zjfile.concat(rs);
  2591. that.datainfo.identificationPhoto=that.zjfile.join(',')
  2592. }
  2593. })
  2594. }
  2595. }
  2596. });
  2597. },
  2598. // 人像面
  2599. ponuploadEnd(item,fileVal,bigType){
  2600. var newobj={}
  2601. var responseText=JSON.parse(item.responseText)
  2602. var url=responseText.fileName
  2603. var urlOnline=responseText.urlOnline
  2604. if(fileVal=='frsfzrmx'){
  2605. this.datainfo.corporationFront=url;
  2606. // 获取姓名 身份证号
  2607. this.getocrIdCard(urlOnline,fileVal)
  2608. }else if(fileVal=='frsfzghm'){
  2609. this.datainfo.corporationBack=url
  2610. }else if(fileVal=='frsfzpormx'){
  2611. this.datainfo.spouseFront=url
  2612. this.getocrIdCard(urlOnline,fileVal)
  2613. }else if(fileVal=='frsfzpoghm'){
  2614. this.datainfo.spouseBack=url
  2615. // }else if(fileVal=='fdbrsfzrmx'){
  2616. // this.getocrIdCard(urlOnline,fileVal)
  2617. // this.datainfo.guaranteeFront=url
  2618. // }else if(fileVal=='fdbrsfzghm'){
  2619. // this.datainfo.guaranteeBack=url
  2620. }
  2621. },
  2622. getDocumentList(){
  2623. var params={
  2624. explainType:2
  2625. }
  2626. getDocumentList(params).then(res=>{
  2627. if(res.code==200){
  2628. var list=res.rows;
  2629. if(list&&list.length){
  2630. var content=list[0].explainContent;
  2631. this.content=this.formatRichText(content);
  2632. // 图片
  2633. if(list[0].explainImage){
  2634. this.xwimgList=list[0].explainImage.split(',')
  2635. }
  2636. }
  2637. }
  2638. })
  2639. },
  2640. //解析富文本方法
  2641. formatRichText(html) {
  2642. let newContent = html.replace(/<img[^>]*>/gi, function(match, capture) {
  2643. match = match.replace(/style="[^"]+"/gi, '').replace(/style='[^']+'/gi, '').replace(/style=""/gi, '');
  2644. match = match.replace(/width="[^"]+"/gi, '').replace(/width='[^']+'/gi, '');
  2645. match = match.replace(/height="[^"]+"/gi, '').replace(/height='[^']+'/gi, '');
  2646. return match;
  2647. });
  2648. newContent = newContent.replace(/style="[^"]+"/gi, function(match, capture) {
  2649. match = match.replace(/width:[^;]+;/gi, 'max-width:100%;').replace(/width:[^;]+;/gi, 'max-width:100%;');
  2650. return match;
  2651. });
  2652. newContent = newContent.replace(/<br[^>]*\/>/gi, '');
  2653. newContent = newContent.replace(/\<img src="/gi,
  2654. '<img style="max-width:100%;height:auto;display:block;margin:10rpx auto;" src="' +baseUrlimg);
  2655. return newContent;
  2656. },
  2657. getOcrBusinessLicense(url,fileName,idx){
  2658. var that=this;
  2659. var obj=this.gdlist[idx];
  2660. var params={
  2661. image:url,
  2662. }
  2663. getOcrBusinessLicense(params).then(res=>{
  2664. if(res.code==200){
  2665. var params=JSON.parse(JSON.stringify(res.data))
  2666. obj.shareholderName=params.enterpriseName;
  2667. obj.shareholderIdCard=params.creditCode;
  2668. obj.zhizhao[0]=fileName
  2669. this.gdlist.splice(idx,1,obj)
  2670. }
  2671. })
  2672. },
  2673. // 反担保企业识别
  2674. getOcrBusinessLicensefdb(newobj,url,idx){
  2675. var that=this;
  2676. var params={
  2677. image:url,
  2678. }
  2679. getOcrBusinessLicense(params).then(res=>{
  2680. if(res.code==200){
  2681. var params=JSON.parse(JSON.stringify(res.data))
  2682. var obj=this.fdaqylist[idx];
  2683. obj.guaranteeName=params.enterpriseName;
  2684. obj.guaranteeIdCard=params.creditCode;
  2685. if(obj.guaranteeInfoFjList&&obj.guaranteeInfoFjList.length){
  2686. var fdblist=obj.guaranteeInfoFjList
  2687. that.fdbdelxIdList.push(fdblist[0].guaranteeInfoFjId)
  2688. }
  2689. obj.guaranteeInfoFjList[0]=JSON.parse(JSON.stringify(newobj))
  2690. // obj.guaranteeInfoFjList.push(newobj)
  2691. this.fdaqylist.splice(idx,1,obj)
  2692. this.$toast('营业执照上传成功')
  2693. }
  2694. })
  2695. },
  2696. getocrIdCard(url,type,idx){
  2697. var that=this;
  2698. var burl=url;
  2699. var params={
  2700. image:url,
  2701. idCardSide:'front'
  2702. }
  2703. getOcrIdCard(params).then(res=>{
  2704. if(res.code==200){
  2705. var data=res.data;
  2706. if(type=='frsfzrmx'){
  2707. that.datainfo.corporationName=data.realName
  2708. that.datainfo.corporationIdCard=data.idCard
  2709. }else if(type=='frsfzpormx'){
  2710. that.datainfo.spouseName=data.realName
  2711. that.datainfo.spouseIdCard=data.idCard
  2712. }else if(type=='fdbrsfzrmx'){
  2713. var obj=this.fdarlist[idx];
  2714. obj.guaranteeName=data.realName;
  2715. obj.guaranteeIdCard=data.idCard;
  2716. this.fdarlist.splice(idx,1,obj)
  2717. }
  2718. }
  2719. }).catch(error => {
  2720. if(type=='fdbrsfzrmx'){
  2721. var obj=this.fdarlist[idx].guaranteeInfoFjList;
  2722. const index = obj.findIndex(text => text.type === "fdbrsfzrmx");
  2723. if(index!=-1){
  2724. this.fdarlist[idx].guaranteeInfoFjList.splice(index,1)
  2725. }
  2726. }else if(type=='frsfzrmx'){
  2727. this.datainfo.corporationFront=''
  2728. }else if(type=='frsfzpormx'){
  2729. this.datainfo.spouseFront=''
  2730. }
  2731. })
  2732. },
  2733. onuploadEnd(item,fileVal,bigType) {
  2734. var newobj={}
  2735. var responseText=JSON.parse(item.responseText)
  2736. newobj.name=responseText.newFileName;
  2737. newobj.oldName=responseText.originalFilename;
  2738. newobj.url=responseText.fileName;
  2739. newobj.type=fileVal;
  2740. newobj.bigType=bigType;
  2741. this.filelist.push(newobj)
  2742. this.datainfo.loanApplicationFjList=JSON.parse(JSON.stringify(this.filelist))
  2743. if(fileVal=='fdbqyyyzz'){
  2744. this.datainfo.guaranteeShareholderName='';
  2745. }
  2746. },
  2747. // 股东附件上传 fileVal 为索引
  2748. gdonuploadEnd(item,fileVal,bigType){
  2749. var idx=Number(fileVal);
  2750. var type=bigType;
  2751. var obj=this.gdlist[idx];
  2752. var responseText=JSON.parse(item.responseText);
  2753. if(type=='cardz'){
  2754. obj.cardz=responseText.fileName
  2755. }else if(type=='cardf'){
  2756. obj.cardf=responseText.fileName
  2757. }else if(type=='zx'){
  2758. obj.zxurl.push(responseText.fileName)
  2759. // obj.zxurl[0]=responseText.fileName
  2760. }else if(type=='zhz'){
  2761. // obj.zhizhao.push(responseText.fileName)
  2762. // obj.zhizhao[0]=responseText.fileName
  2763. this.getOcrBusinessLicense(responseText.urlOnline,responseText.fileName,idx)
  2764. return
  2765. }
  2766. console.log(this.gdlist,3)
  2767. this.gdlist.splice(idx,1,obj)
  2768. // this.datainfo.shareholderFjList=JSON.parse(JSON.stringify(this.gdlist))
  2769. },
  2770. // 反担保附件上传bigType 为索引
  2771. fdbuploadEnd(item,fileVal,bigType){
  2772. var idx=Number(bigType);
  2773. var obj=this.fdarlist[idx].guaranteeInfoFjList;
  2774. var responseText=JSON.parse(item.responseText);
  2775. var urlOnline=responseText.urlOnline
  2776. // 附件赋值
  2777. var newobj={};
  2778. newobj.name=responseText.newFileName;
  2779. newobj.oldName=responseText.originalFilename;
  2780. newobj.url=responseText.fileName;
  2781. newobj.type=fileVal;
  2782. if(fileVal=='fdbrsfzrmx'||fileVal=='fdbrsfzghm'){//身份证
  2783. // 找索引
  2784. const index = obj.findIndex(text => text.type === fileVal);
  2785. if(index!=-1){
  2786. this.fdarlist[idx].guaranteeInfoFjList.splice(index,1,newobj)
  2787. }else{
  2788. this.fdarlist[idx].guaranteeInfoFjList.push(newobj)
  2789. }
  2790. if(fileVal=='fdbrsfzrmx'){
  2791. this.getocrIdCard(urlOnline,fileVal,idx)
  2792. }
  2793. return
  2794. }
  2795. this.fdarlist[idx].guaranteeInfoFjList.push(newobj)
  2796. },
  2797. // 反担保企业附件上传bigType 为索引
  2798. fdbqyuploadEnd(item,fileVal,bigType){
  2799. var idx=Number(bigType);
  2800. var obj=this.fdaqylist[idx].guaranteeInfoFjList;
  2801. var responseText=JSON.parse(item.responseText);
  2802. var urlOnline=responseText.urlOnline
  2803. // 附件赋值
  2804. var newobj={};
  2805. newobj.name=responseText.newFileName;
  2806. newobj.oldName=responseText.originalFilename;
  2807. newobj.url=responseText.fileName;
  2808. newobj.type=fileVal;
  2809. if(fileVal=='fdbqyyyzz'){
  2810. this.getOcrBusinessLicensefdb(newobj,urlOnline,idx)
  2811. return
  2812. }
  2813. this.fdaqylist[idx].guaranteeInfoFjList.push(newobj)
  2814. },
  2815. // 申请附件上传
  2816. fjonuploadEnd(item,fileVal,bigType,idx){
  2817. var newobj={};
  2818. var sbfjlist=this.sbfjlist[idx].fjlist;
  2819. var responseText=JSON.parse(item.responseText)
  2820. newobj.name=responseText.newFileName;
  2821. newobj.oldName=responseText.originalFilename;
  2822. newobj.url=responseText.fileName;
  2823. newobj.type=fileVal;
  2824. newobj.bigType=bigType;
  2825. this.sbfjlist[idx].fjlist.push(newobj)
  2826. },
  2827. getDelsbFj(idx,fidx){
  2828. var that=this;
  2829. var obj=this.sbfjlist[idx];
  2830. uni.showModal({
  2831. title: '确认删除',
  2832. content: "是否确认删除",
  2833. cancelText: '取消',
  2834. confirmText: '确认',
  2835. success: function(res) {
  2836. if (res.confirm) {
  2837. var fjlist=obj.fjlist[fidx]
  2838. if(fjlist.fjId){
  2839. that.fjdelIdList.push(fjlist.fjId)
  2840. }
  2841. obj.fjlist.splice(fidx,1)
  2842. that.sbfjlist.splice(idx,1,obj)
  2843. } else if (res.cancel) {
  2844. }
  2845. }
  2846. });
  2847. },
  2848. // 删除反担保
  2849. getfdbDelFj(idx,fidx,type){
  2850. var that=this;
  2851. uni.showModal({
  2852. title: '确认删除',
  2853. content: "是否确认删除",
  2854. cancelText: '取消',
  2855. confirmText: '确认',
  2856. success: function(res) {
  2857. if (res.confirm) {
  2858. if(type==1){//反担保人
  2859. var obj=JSON.parse(JSON.stringify(that.fdarlist[fidx]));
  2860. var fdblist=obj.guaranteeInfoFjList[idx];
  2861. if(fdblist.guaranteeInfoFjId){
  2862. that.fdbdelxIdList.push(fdblist.guaranteeInfoFjId)
  2863. }
  2864. obj.guaranteeInfoFjList.splice(idx,1)
  2865. that.fdarlist.splice(fidx,1,obj)
  2866. }else if(type==2) {//反担保企业
  2867. var obj=JSON.parse(JSON.stringify(that.fdaqylist[fidx]));
  2868. var fdblist=obj.guaranteeInfoFjList[idx];
  2869. if(fdblist.guaranteeInfoFjId){
  2870. that.fdbdelxIdList.push(fdblist.guaranteeInfoFjId)
  2871. }
  2872. obj.guaranteeInfoFjList.splice(idx,1)
  2873. that.fdaqylist.splice(fidx,1,obj)
  2874. }
  2875. } else if (res.cancel) {
  2876. }
  2877. }
  2878. });
  2879. },
  2880. getDelgdFj(idx,zxidx){
  2881. var obj=this.gdlist[idx];
  2882. var that=this;
  2883. uni.showModal({
  2884. title: '确认删除',
  2885. content: "是否确认删除",
  2886. cancelText: '取消',
  2887. confirmText: '确认',
  2888. success: function(res) {
  2889. if (res.confirm) {
  2890. obj.zxurl.splice(zxidx,1)
  2891. that.gdlist.splice(idx,1,obj)
  2892. } else if (res.cancel) {
  2893. }
  2894. }
  2895. });
  2896. },
  2897. getDelgdyy(idx,zxidx){
  2898. var obj=this.gdlist[idx];
  2899. var that=this;
  2900. uni.showModal({
  2901. title: '确认删除',
  2902. content: "是否确认删除",
  2903. cancelText: '取消',
  2904. confirmText: '确认',
  2905. success: function(res) {
  2906. if (res.confirm) {
  2907. obj.zhizhao.splice(zxidx,1)
  2908. that.gdlist.splice(idx,1,obj)
  2909. } else if (res.cancel) {
  2910. }
  2911. }
  2912. });
  2913. },
  2914. getDelFj(idx){
  2915. var that=this;
  2916. uni.showModal({
  2917. title: '确认删除',
  2918. content: "是否确认删除",
  2919. cancelText: '取消',
  2920. confirmText: '确认',
  2921. success: function(res) {
  2922. if (res.confirm) {
  2923. var ite=that.filelist[idx];
  2924. if(ite.fjId){
  2925. that.fjdelIdList.push(ite.fjId)
  2926. }
  2927. that.filelist.splice(idx,1)
  2928. that.datainfo.loanApplicationFjList=JSON.parse(JSON.stringify(that.filelist))
  2929. } else if (res.cancel) {
  2930. }
  2931. }
  2932. });
  2933. },
  2934. getDownloader(path,name){
  2935. // console.log(path,name)
  2936. // #ifdef APP-PLUS
  2937. self.getFilePermissions(function(res){
  2938. if(res==1){
  2939. uni.showLoading({
  2940. title: '加载中'
  2941. });
  2942. var url = baseUrl + path;
  2943. let dtask = plus.downloader.createDownload(url, {
  2944. filename: 'file://storage/emulated/0/'+baseName+'/' + name
  2945. }, (d, status) => {
  2946. //d为下载的文件对象
  2947. if (status == 200) {
  2948. uni.hideLoading();
  2949. uni.showToast({
  2950. icon: 'none',
  2951. mask: true,
  2952. title: '已保存到文件夹:/'+baseName+'/'+ name, //保存路径
  2953. duration: 3000,
  2954. });
  2955. //下载成功,d.filename是文件在保存在本地的相对路径,使用下面的API可转为平台绝对路径
  2956. let fileSaveUrl = plus.io.convertLocalFileSystemURL(d.filename);
  2957. setTimeout(() => {
  2958. plus.runtime.openFile(d.filename); //选择软件打开文件
  2959. }, 1500)
  2960. } else {
  2961. //下载失败
  2962. uni.hideLoading();
  2963. plus.downloader.clear(); //清除下载任务
  2964. uni.showToast({
  2965. icon: 'none',
  2966. mask: true,
  2967. title: '下载失败,请稍后重试',
  2968. });
  2969. }
  2970. })
  2971. dtask.start();
  2972. }else{
  2973. uni.hideLoading();
  2974. uni.showToast({
  2975. title: '无法获取权限,文件下载将出错!',
  2976. icon: 'none',
  2977. })
  2978. }
  2979. })
  2980. // #endif
  2981. },
  2982. getExportMb(ite){
  2983. var that=this;
  2984. var params=JSON.parse(JSON.stringify(this.datainfo));
  2985. if(ite.val=='wtdbsqs'){
  2986. params.type=1;
  2987. }else{
  2988. params.type=11;
  2989. }
  2990. params.bigType='b';
  2991. params.fileType=ite.val;
  2992. getExportMb(params).then(res=>{
  2993. if(res.code==200){
  2994. var data=res.data;
  2995. var url=data.path;
  2996. var name=data.fileName;
  2997. that.getDownloader(url,name)
  2998. }
  2999. })
  3000. },
  3001. getDown(e){
  3002. uni.showLoading({
  3003. title: '加载中'
  3004. });
  3005. var url=baseUrl+e;
  3006. let index1 = e.lastIndexOf("."); // 得到一个索引值
  3007. let index2 = e.length;
  3008. let type = e.substring(index1, index2);
  3009. if ((type.indexOf('jpg') > -1 || type.indexOf('jpeg') > -1 || type.indexOf('png') > -1)) {
  3010. uni.previewImage({
  3011. current: 0,
  3012. urls: [url],
  3013. // background: '#ffffff'
  3014. });
  3015. uni.hideLoading();
  3016. } else {
  3017. uni.downloadFile({
  3018. url: url,//文件的下载路径
  3019. success(result) {
  3020. uni.hideLoading()
  3021. var filePath = result.tempFilePath;
  3022. uni.openDocument({
  3023. filePath: filePath,
  3024. showMenu: true,
  3025. success: function (res) {
  3026. // console.log('打开文档成功');
  3027. }
  3028. });
  3029. },
  3030. fail(res) {uni.hideLoading()}
  3031. })
  3032. }
  3033. },
  3034. }
  3035. }
  3036. </script>
  3037. <style lang="scss" scoped>
  3038. .addbox /deep/ .uni-forms-item{min-height: 112rpx;box-sizing: border-box;display: flex;align-items: center;margin-bottom: 0;border-bottom: 2rpx solid #E6E6E6;padding:18rpx 0;position: relative;}
  3039. .addbox .bgf /deep/ .uni-forms-item:last-child{border-bottom: none;}
  3040. .addbox /deep/ .uni-forms-item__label{font-weight: bold;font-size: 32rpx;color: #161616;flex: 0 0 auto;width: auto !important;padding-left: 12rpx;min-width: 240rpx;box-sizing: border-box;}
  3041. .addbox /deep/ .uni-easyinput{flex: 1;text-align: left;font-size: 30rpx;color: #222327;}
  3042. .addbox /deep/ .uni-easyinput__content-textarea{min-height: 40rpx;font-size: 30rpx;}
  3043. .addbox /deep/ .uni-easyinput__placeholder-class{font-size: 30rpx;color: #AAAAAA;}
  3044. .addbox /deep/ .uni-input-input{font-size: 30rpx;}
  3045. .addbox /deep/ .uni-easyinput__content-input{padding-left: 0 !important;}
  3046. .addbox /deep/ .uni-textarea-textarea{font-size: 30rpx;}
  3047. .addbox /deep/ .is-disabled{color: #222327;background-color: #ffffff !important;}
  3048. .isborder{border-bottom: 2rpx solid #E6E6E6;}
  3049. .labtxt{font-weight: bold;font-size: 32rpx;color: #161616;flex: 0 0 auto;width: auto !important;padding-left: 12rpx;width: 240rpx;box-sizing: border-box;
  3050. position: absolute;left: -240rpx;top:50%;transform: translateY(-50%);
  3051. text{color: #AAAAAA;font-size: 26rpx;font-weight: normal;display: block;
  3052. &.del{
  3053. color: #FF6969;margin-top: 6rpx;text-align: center;padding: 4rpx 0;
  3054. }
  3055. }
  3056. }
  3057. .navtop{
  3058. position: fixed;left:0;right: 0;top: 0;z-index: 2;
  3059. }
  3060. .topl{width: 60rpx;height: 60rpx;display: flex;align-items: center;justify-content: center;
  3061. .backimg{width: 40rpx;height: 30rpx;}
  3062. }
  3063. .edit{font-weight: 500;font-size: 26rpx;color: #FFFFFF;display: flex;align-items: center;
  3064. image{width: 24rpx;height: 26rpx;margin-right: 10rpx;}
  3065. .img{width: 24rpx;height: 26rpx;margin-right: 10rpx;}
  3066. .txt{font-weight: 500;font-size: 26rpx;color: #FFFFFF;}
  3067. }
  3068. .editcir{box-shadow: 0px 0px 20rpx 0px rgba(0,169,240,0.6);
  3069. width: 120rpx;height: 120rpx;border-radius: 50%;position: fixed;right:0;bottom:140rpx;background-color: $com-cd3;flex-direction: column;align-items: center;justify-content: center;
  3070. .img{margin-bottom: 8rpx;margin-right: 0;}
  3071. }
  3072. .addbox{padding: 140rpx 0 136rpx;
  3073. .addtit{font-weight: bold;padding: 18rpx 34rpx;font-size: 26rpx;color: #666666;
  3074. text{color: #DF0303;margin-right: 8rpx;}
  3075. .ywimg{width: 30rpx;height: 30rpx;margin-left: 16rpx;}
  3076. &.tips{font-weight: 500;font-size: 24rpx;color: #FF6969;}
  3077. }
  3078. .lbtabp{
  3079. display: flex;align-items: center;
  3080. view{flex: 1;font-size: 30rpx;color: #222327;}
  3081. .rimg{flex: 0 0 auto;width: 16rpx;height: 26rpx;flex: 0 0 auto;margin-left: 18rpx;}
  3082. }
  3083. .ywicon{font-weight: 400;font-size: 26rpx;color: $com-cd3;padding-right: 14rpx;
  3084. image{width: 26rpx;height: 26rpx;margin-right: 8rpx;}
  3085. }
  3086. // 上传样式
  3087. .phobox{display: flex;flex-wrap: wrap;justify-content: space-between;
  3088. .phoboxa{display: flex;flex-direction: column;align-items: center;margin: 10rpx 26rpx 0 0;padding-bottom: 4rpx;position: relative;min-height: 176rpx;box-sizing: border-box;
  3089. .photop{width: 200rpx;height: 126rpx;position: relative;
  3090. .bgimg{width: 100%;height: 100%;}
  3091. .addimg{width: 34rpx;height: 30rpx;position: absolute;left: 50%;margin-left: -17rpx;top: 50%;margin-top: -15rpx;z-index: 1;}
  3092. .delimg{position: absolute;width: 24rpx;height: 24rpx;right: -12rpx;top: -12rpx;}
  3093. .bgimga{width: 100%;height: 100%;position: absolute;left:0;right: 0;top:0;bottom: 0;}
  3094. }
  3095. // .pupdata{position: absolute;left: 0;right: 0;top:0;bottom: 0;opacity: 0;}
  3096. .photit{font-weight: 500;font-size: 20rpx;color: #AAAAAA;margin-top: 18rpx;max-width:200rpx;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;
  3097. &.atit{position: absolute;left: 50%;transform: translate(-50%);bottom: 4rpx;word-break: keep-all;max-width: none;}
  3098. }
  3099. }
  3100. .frdelimg{
  3101. position: absolute;width: 32rpx;height: 32rpx;right: -16rpx;top: -16rpx;
  3102. image{width: 24rpx;height: 24rpx;}
  3103. }
  3104. }
  3105. .addgdbox{padding: 34rpx 10rpx 36rpx;}
  3106. // 附件
  3107. .fjbox{padding: 24rpx 0;
  3108. min-height: 150rpx;box-sizing: border-box;
  3109. // &:last-child{border-bottom: none;border-bottom: 2rpx solid #E6E6E6;}
  3110. .fjtop{
  3111. &.chek{
  3112. .chtit{flex: 1;font-size: 30rpx;color: #222327;text-align: right;}
  3113. .rimg{flex: 0 0 auto;width: 16rpx;height: 26rpx;flex: 0 0 auto;margin-left: 18rpx;}
  3114. }
  3115. .ftit{font-weight: bold;font-size: 32rpx;color: #161616;flex: 1;padding:28rpx 0;
  3116. text{color: #DF0303;margin-right: 8rpx;}
  3117. .mtxt{color: #AAAAAA;font-size: 26rpx;}
  3118. }
  3119. .fbtns{font-weight: 500;font-size: 26rpx;padding-right: 12rpx;margin-left: 36rpx;display: flex;align-items: center;height: 100rpx;justify-content: center;
  3120. image{width: 22rpx;height: 22rpx;margin-right: 10rpx;
  3121. &.downimg{width: 20rpx;}
  3122. }
  3123. }
  3124. }
  3125. }
  3126. // 18
  3127. .fjlists {display: flex;align-items: flex-start;justify-content: space-between;margin-bottom: 12rpx;
  3128. // image{flex: 0 0 auto;}
  3129. .imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;flex: 0 0 auto;
  3130. image{width: 26rpx;height: 24rpx;}
  3131. }
  3132. .tit{font-size: 26rpx;color: #222327;font-weight: 500;margin-top: 4rpx;}
  3133. .delimg{width: 40rpx;height:40rpx;margin-left: 16rpx;display: flex;align-items: center;justify-content: center;flex: 0 0 auto;
  3134. image{width: 24rpx;height: 24rpx;}
  3135. }
  3136. }
  3137. }
  3138. .addbtns{z-index: 4;
  3139. width: 100%;height: 100rpx;position: fixed;left: 0;right: 0;bottom: 0;display: flex;
  3140. .addlbtn{background-color: #ffffff;font-weight: 500;justify-content: center;
  3141. display: flex;align-items: center;width: 232rpx;flex: 0 0 auto;height: 100rpx;
  3142. .addlbtna{width: 32rpx;height: 32rpx;margin-right: 12rpx;display: block;}
  3143. .addlbtnb{font-size: 30rpx;color: $com-cd3;}
  3144. }
  3145. }
  3146. .addrbtn{flex: 1;height: 100rpx;font-weight: bold;font-size: 30rpx;display: flex;align-items: center;justify-content: center;
  3147. color: #FFFFFF;text-align: center;line-height: 100rpx;
  3148. &.bga{background: #29E18A;}
  3149. &.bgb{background: $com-cd3;}
  3150. }
  3151. // 标准
  3152. .looimg{width: 100%;height: 400rpx;position: fixed;left: 0;right: 0;top: 50%;margin-top: -200rpx;z-index: 10;}
  3153. .fdbdel{font-weight: bold;font-size: 30rpx;color: #FF5B5B;height: 100rpx;
  3154. background: #FFEEEE;border-radius: 10rpx;
  3155. image{width: 26rpx;height:30rpx;margin-right: 12rpx;}
  3156. }
  3157. .fdbadd{font-weight: bold;font-size: 26rpx;color: #0AC86E;padding: 16rpx 28rpx;flex:0 0 auto;
  3158. image{width:22rpx;height: 24rpx;margin-right: 10rpx;flex:0 0 auto;}
  3159. }
  3160. </style>