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">户口簿信息</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. export default{
  1297. components:{stepBar,popUp,bartreePickerfixed},
  1298. data(){
  1299. return{
  1300. //附件
  1301. option: {
  1302. // 上传服务器地址,需要替换为你的接口地址
  1303. url: baseUrl+'/common/uploadNew', // 该地址非真实路径,需替换为你项目自己的接口地址
  1304. // 上传附件的key
  1305. name: 'file',
  1306. // 根据你接口需求自定义请求头,默认不要写content-type,让浏览器自适配
  1307. header: {
  1308. // 示例参数可删除
  1309. 'Authorization': 'Bearer ' + getToken(),
  1310. },
  1311. // 根据你接口需求自定义body参数
  1312. formData: {
  1313. loanApplicationNumber:'',
  1314. }
  1315. },
  1316. gdformats: 'png,jpg,jpeg',
  1317. // 选择文件后是否立即自动上传,true=选择后立即上传
  1318. instantly: true,
  1319. // 必传宽高且宽高应与slot宽高保持一致
  1320. width: '',
  1321. height: '100rpx',
  1322. pwidth:'200rpx',
  1323. pheight:'126rpx',
  1324. // 限制允许上传的格式,空串=不限制,默认为空
  1325. formats: 'doc,docx,xls,xlsx,ppt,txt,pdf,zip,rar,word,png,jpg,jpeg',
  1326. // 文件上传大小限制
  1327. size: 100,
  1328. // 文件数量限制 默认10
  1329. count: 5,
  1330. // 文件回显列表
  1331. files: new Map(),
  1332. // 微信小程序Map对象for循环不显示,所以转成普通数组,不要问为什么,我也不知道
  1333. wxFiles: [],
  1334. // 是否打印日志
  1335. debug: false,
  1336. filelist:[],
  1337. gdfilelist:[],//股东附件列表
  1338. backimg:require("@/work/static/images/back.png"),
  1339. feditimg:require("@/work/static/images/fedit.png"),
  1340. hrimg:require('@/work/static/images/hrimg.png'),
  1341. ywicon:require('@/work/static/images/busin/ywicon.png'),
  1342. delimg:require('@/work/static/images/del.png'),
  1343. lookico:require('@/work/static/images/busin/lookico.png'),
  1344. phoicon:require('@/work/static/images/busin/phoicon.png'),
  1345. zico:require('@/work/static/images/busin/zico.png'),
  1346. cardz:require('@/work/static/images/busin/cardz.png'),
  1347. cardf:require('@/work/static/images/busin/cardf.png'),
  1348. addgd:require('@/work/static/images/busin/addgd.png'),
  1349. jhico:require('@/work/static/images/busin/jhico.png'),
  1350. hkico:require('@/work/static/images/busin/hkico.png'),
  1351. zancio:require('@/work/static/images/zancio.png'),
  1352. downimg:require('@/work/static/images/down.png'),
  1353. upimg:require('@/work/static/images/fup.png'),
  1354. filico:require('@/work/static/images/filico.png'),
  1355. fdelimg:require('@/work/static/images/del.png'),
  1356. fdel:require('@/work/static/images/fdel.png'),
  1357. fadd:require('@/work/static/images/fadd.png'),
  1358. steps:[{tit:'申请额度',status:0},{tit:'企业信息',status:1},{tit:'法人信息',status:2},{tit:'反担保人信息',status:3},{tit:'添加附件',status:4},],
  1359. stepval:1,
  1360. datainfo:{
  1361. // qymcid:1,
  1362. // hylx:'',
  1363. // hylxid:'',
  1364. // iszcy:'0',
  1365. // "loanApplicationId": 1,//贷款申请id
  1366. "loanApplicationNumber": "",//贷款申请编号
  1367. 'applicationType':'',//申请类型 1:企业 2:个人
  1368. "applicationAmount": '',//申请额度(万元)
  1369. "applicationBank": "",//申请银行
  1370. "usagePeriod": "",//使用期限(月)
  1371. "purposeFunds": "",//资金用途
  1372. "repaymentSource": "",//还款来源
  1373. "enterpriseName": "",//企业名称
  1374. "enterpriseId":"",//企业信息id
  1375. "categoryType": "",//行业类型
  1376. "isMake": "Y",//是否是制造业
  1377. "isNew": "Y",//是否是精特新
  1378. "isSmall": "Y",//是否是小微企业
  1379. "isDuty": "",//是否是免税企业
  1380. "companyIntroduction": "",//公司简介
  1381. "customerType": "",//用户类型
  1382. "corporationFront": "",//法人身份证正面
  1383. "corporationBack": "",//法人身份证反面
  1384. "corporationName": "",// 法人姓名
  1385. "corporationIdCard": "",//法人身份证号
  1386. "corporationPhone": "",// 法人手机号
  1387. "familyPopulation": "",//家庭人口数
  1388. "corporationJob": "",//法人职业
  1389. "isLoan": "",//有无贷款
  1390. "receivablePay": "",//应收应付款
  1391. "businessSituation": "",//经营情况
  1392. "businessEfficiency": "",//经营效益
  1393. "corporationMaritalStatus": "",//法人婚姻状态
  1394. "spouseFront": "",//配偶身份证正面
  1395. "spouseBack": "",//配偶身份证反面
  1396. "spouseName": "",//配偶姓名
  1397. "spouseIdCard": "",//配偶身份证号
  1398. "spousePhone": "",//配偶手机号
  1399. "guaranteeType": "",//担保类型
  1400. "guaranteeFront": "",//反担保人身份证正面
  1401. "guaranteeBack": "",//反担保人身份证反面
  1402. "guaranteeName": "",//反担保人姓名
  1403. "guaranteeIdCard": "",//反担保人身份证号
  1404. "guaranteePhone": "",//反担保人手机号
  1405. // "guaranteeMaritalStatus": "",//反担保人婚姻状态
  1406. // "guaranteeSpouseFront": "",//反担保人配偶身份证正面
  1407. // "guaranteeSpouseBack": "",//反担保人配偶身份证反面
  1408. // "guaranteeSpouseName": "",//反担保人配偶姓名
  1409. // "guaranteeSpouseIdCard": "",//反担保人配偶身份证号
  1410. // "guaranteeSpousePhone": "",//反担保人配偶手机号
  1411. // "userId": '',//申请人用户ID
  1412. // "idCard": "",//申请人身份证号码
  1413. // "applicationTime": "",//申请时间
  1414. // "fileTime": "",//归档时间
  1415. // "loanSchedule": "",//贷款申请进度(业务进度表查询进度列表):1:申报提交2:业务审核/分配 3:担保初审 4:尽职调查 5:初审风险合规 6:评审会 7:合同签约 8:放款合规风险审核 9:放款通知 10:归档
  1416. // "loanScheduleName": '',//贷款申请进度名称(中文字)
  1417. // "auditSchedule": "",//审核进度1:担保初审 2:A角色审核 3:B角色审核 4:风险审核 5:尽职调查 6:上会评审
  1418. // "auditType": "",//审核状态 1:待审核 2:已通过 3:未通过
  1419. // "loanApplicationType": "",//贷款申请状态 1:暂存 2:正常 3:回收站 4:归档
  1420. // "aUserId": "",//A角色用户ID
  1421. // "aUserName": "",//A角色用户名称
  1422. // "bUserId": '',//B角色用户ID
  1423. // "bUserName": '',//B角色用户名称
  1424. "shareholderFjList": [],//全体股东信息附件
  1425. "loanApplicationFjList": [],//相关附件
  1426. "loanApplicationFjIdList": [],//fj删除id集合
  1427. "shareholderFjIdList": [],//股东fj表股东整体删除id集合
  1428. "basicFj":{},//基础附件
  1429. "declareFj":{},//申报附件
  1430. "fileFj":{},//文件出具
  1431. "otherFj":{},//其他附件
  1432. },
  1433. qymc:'',
  1434. msqy:'',
  1435. qyidx:0,
  1436. ywidx:0,
  1437. categoryId:'',//行业的id
  1438. rules:{
  1439. },
  1440. gdlist:[{cardz:'',cardf:'',zxurl:[],zhizhao:[],shareholderName:"",shareholderIdCard:''}],
  1441. qylist:[],//企业列表
  1442. fdarlist:[{type:1,guaranteeName:'',guaranteeIdCard:'',guaranteePhone:'',guaranteeInfoFjList:[]}],
  1443. fdaqylist:[{type:2,guaranteeName:'',guaranteeIdCard:'',guaranteeInfoFjList:[]}],
  1444. fdbrobj:{},//反担保人附件
  1445. fdbqyobj:{},//反担保企业附件
  1446. fdbdelxIdList:[],//反担保删除小id集合
  1447. fdbdeldIdList:[],//反担保删除大id集合
  1448. sfList:[{text: '是',value: 'Y'},{text: '否',value: 'N'}],
  1449. ywList:[{label: '有',value: 'Y'},{label: '无',value: 'N'}],
  1450. actcolor:'#00A9F0',
  1451. sqtype:'qy',//个人gr ,企业 qy,
  1452. hyztlist:[],//婚姻状态
  1453. yhlxlist:[],//用户类型
  1454. dblxlist:[],//担保类型
  1455. lookflag:false,
  1456. listTop:70,
  1457. userId:this.$store.state.user.userId,
  1458. categoryId:"",//行业类型id;
  1459. jcfjlist:[],//基础附件
  1460. sbfjlist:[],//申报附件
  1461. wjfjlist:[],//文件出具
  1462. jcfjobj:{},//基础附件
  1463. shareholderFjList:[],//全体股东信息附件
  1464. loanApplicationFjList:[],//相关附件
  1465. ftype:'',//弹窗type
  1466. baseUrl:'',
  1467. dblx:'',
  1468. yhlx:'',
  1469. frhyzk:'',//婚姻状况
  1470. dblxidx:0,
  1471. yhlxidx:0,
  1472. sfidx:0,
  1473. frhyzkidx:0,
  1474. btfiles:[
  1475. {tit:'公司章程',type:'gszc'},
  1476. {tit:'开户许可证',type:'khxkz'},{tit:'申请企业征信报告',type:'sqqyzxbg'},{tit:'企业法人征信报告',type:'qyfrzxbg'},{tit:'实际控股人征信报告',type:'sjkgrzxbg'},
  1477. // {tit:'户口簿首页',type:'frhkbsy'},
  1478. ],
  1479. sqbtfiles:[
  1480. {tit:'上一年度财务报表',type:'syndcwbb'},{tit:'主要账户银行流水',type:'zyzhyhls'},{tit:'购销合同',type:'gxht'},
  1481. {tit:'当前从事项目情况证明',type:'dqcsxmqkzm'},{tit:'企业基本注册信息查询单',type:'qyjbzcxxcxd'},{tit:'水电费发票(一年)',type:'sdffpyn'},{tit:'人员工资表',type:'rggzb'},{tit:'纳税申报表',type:'nssbb'},
  1482. ],
  1483. fbdfiles:[
  1484. {tit:'身份证人像面',type:'fdbrsfzrmx'},{tit:'身份证国徽面',type:'fdbrsfzghm'}
  1485. ],
  1486. fdbqyfiles:[
  1487. {tit:'营业执照',type:'fdbqyyyzz'},{tit:'征信',type:'fdbqyzx'},
  1488. ],
  1489. content:'',//小微企业富文本
  1490. xwimgList:[],//小微企业图片
  1491. ptype:'add',
  1492. id:'',//申请id
  1493. declareFj:{},//
  1494. //{tit:'关联企业征信报告',type:'glqyzxbg'},
  1495. // {tit:'法人结婚证',type:'frjhz'},{tit:'法人离婚证',type:'frlhz'},
  1496. // {tit:'法人配偶身份证人像面',type:'frsfzpormx'},{tit:'法人配偶身份证国徽面',type:'frsfzpoghm'},
  1497. //担保类型为反担保人担保{tit:'反担保人身份证人像面',type:'fdbrsfzrmx'},{tit:'反担保人身份证国徽面',type:'fdbrsfzghm'},
  1498. //担保类型为抵押{tit:'企业固定资产证明',type:'qygdzczm'},
  1499. ischange:false,
  1500. isdetail:false,
  1501. qygdlist:[],//企业股东列表
  1502. dfdwpicker: {
  1503. title: '选择担保类型',
  1504. layer: null,
  1505. titflag:true,
  1506. data: []
  1507. },
  1508. loadflag:false,
  1509. fjdelIdList:[],//fj删除id集合
  1510. gdFjdelIdList:[],//股东fj表股东整体删除id集合
  1511. fjRemarkFj:[],//附件pdf
  1512. }
  1513. },
  1514. onUnload(){
  1515. uni.$off('refreshtalb')
  1516. },
  1517. watch:{
  1518. datainfo:{
  1519. handler(newVal, oldVal) {
  1520. if(this.isdetail){
  1521. this.isdetail=false
  1522. }else{
  1523. this.ischange=true
  1524. }
  1525. },
  1526. deep: true
  1527. },
  1528. },
  1529. onBackPress(e) {
  1530. var that=this;
  1531. var datainfo=that.datainfo;
  1532. if(this.ischange&&(!datainfo.loanSchedule||datainfo.loanSchedule<3)){
  1533. var a=0;
  1534. showConfirm('内容已做修改,是否暂存').then(res => {
  1535. if (res.confirm) {
  1536. this.getZanFn('back')
  1537. }else{
  1538. this.ischange=false;
  1539. uni.navigateBack({
  1540. delta:1
  1541. })
  1542. return false
  1543. }
  1544. })
  1545. return true
  1546. }else{
  1547. return false
  1548. uni.navigateBack({
  1549. delta:1
  1550. })
  1551. }
  1552. },
  1553. onLoad(e) {
  1554. // this.getIdCardDet()
  1555. // return
  1556. this.baseUrl=baseUrl
  1557. var data=JSON.parse(decodeURIComponent(e.data))
  1558. if(data.type){
  1559. this.ptype=data.type;
  1560. this.id=data.id;
  1561. if(Number(data.val)<4){
  1562. this.stepval=Number(data.val)+1
  1563. }
  1564. this.getDetail()
  1565. }else{
  1566. this.datainfo.applicationAmount=data.applicationAmount;
  1567. this.datainfo.applicationBank=data.applicationBank;
  1568. this.datainfo.usagePeriod=data.usagePeriod;
  1569. this.datainfo.purposeFunds=data.purposeFunds;
  1570. this.datainfo.repaymentSource=data.repaymentSource;
  1571. this.datainfo.applicationType=data.applicationType;
  1572. if(data.applicationType==1){
  1573. var obj={tit:'当期财务报表',type:'dqcwbb'};
  1574. this.sqbtfiles.push(obj)
  1575. }
  1576. this.getNumber();
  1577. this.getSbjListFn()
  1578. }
  1579. uni.$on('refreshtalb', (e) => {
  1580. this.datainfo.categoryType=e.categoryName
  1581. this.categoryId=e.categoryId
  1582. })
  1583. this.init()
  1584. this.getQylist()
  1585. this.getDocumentList()
  1586. },
  1587. mounted() {
  1588. this.getHeightFn()
  1589. // var obj={
  1590. // loanApplicationNumber:this.datainfo.loanApplicationNumber
  1591. // }
  1592. // this.option.formData=JSON.parse(JSON.stringify(obj))
  1593. // this.$refs['lsjUpload'].setData('formData.loanApplicationNumber','RZDB202404251759453241637');
  1594. },
  1595. methods:{
  1596. checkPermi, checkRole,
  1597. getRecorddwFn(){
  1598. this.$refs.treePickerzrdw._show();
  1599. },
  1600. selectChangezrdw(e){
  1601. var val=e;
  1602. var newArr=[],newVal=[];
  1603. var a=0;
  1604. e.forEach((ite,idx)=>{
  1605. newArr[idx]=ite.deptName
  1606. newVal[idx]=ite.deptId
  1607. if(ite.deptId==4){
  1608. a=1
  1609. }
  1610. })
  1611. this.dblx=newArr.join(',')
  1612. this.datainfo.guaranteeType=newVal.join(',');
  1613. if(a==1){
  1614. this.getGdFjlist()
  1615. }
  1616. },
  1617. getIdCardDet(){
  1618. getIdCardDet(this.userId).then(res=>{
  1619. if(res.code==200){
  1620. }
  1621. })
  1622. },
  1623. init(){
  1624. // 用户类型
  1625. getDictionaryFn('customer_type').then(res=>{
  1626. if(res.code==200){
  1627. this.yhlxlist = res.data.map(v => {
  1628. return {
  1629. label: v.dictLabel,
  1630. value: v.dictValue
  1631. }
  1632. })
  1633. }
  1634. })
  1635. // 婚姻状况
  1636. getDictionaryFn('marital_status').then(res=>{
  1637. if(res.code==200){
  1638. this.hyztlist = res.data.map(v => {
  1639. return {
  1640. label: v.dictLabel,
  1641. value: v.dictValue
  1642. }
  1643. })
  1644. }
  1645. })
  1646. // 担保类型
  1647. getDictionaryFn('guarantee_type').then(res=>{
  1648. if(res.code==200){
  1649. this.dblxlist = res.data.map(v => {
  1650. return {
  1651. label: v.dictLabel,
  1652. value: v.dictValue,
  1653. }
  1654. })
  1655. }
  1656. })
  1657. // 基础附件
  1658. getDictionaryFn('application_fj_jc').then(res=>{
  1659. if(res.code==200){
  1660. var obj={}
  1661. var data=res.data;
  1662. data.forEach(v=>{
  1663. obj[v.dictValue]=v.dictLabel
  1664. })
  1665. this.jcfjobj=obj
  1666. }
  1667. })
  1668. // 反担保人
  1669. getDictionaryFn('counter_guarantor').then(res=>{
  1670. if(res.code==200){
  1671. var obj={}
  1672. var data=res.data;
  1673. data.forEach(v=>{
  1674. obj[v.dictValue]=v.dictLabel
  1675. })
  1676. this.fdbrobj=obj
  1677. }
  1678. })
  1679. // 反担保企业附件
  1680. getDictionaryFn('counter_attachment').then(res=>{
  1681. if(res.code==200){
  1682. var obj={}
  1683. var data=res.data;
  1684. data.forEach(v=>{
  1685. obj[v.dictValue]=v.dictLabel
  1686. })
  1687. this.fdbqyobj=obj
  1688. }
  1689. })
  1690. },
  1691. getSbjListFn(){
  1692. // 申报附件
  1693. getDictionaryFn('application_fj_sb').then(res=>{
  1694. if(res.code==200){
  1695. var declareFj=this.declareFj;
  1696. this.sbfjlist = res.data.map(v => {
  1697. return {
  1698. label: v.dictLabel,
  1699. val: v.dictValue,
  1700. fjlist:declareFj[v.dictValue]||[]
  1701. }
  1702. })
  1703. let signArr = JSON.parse(JSON.stringify(this.filelist));
  1704. signArr = signArr.filter(s => {
  1705. // if (res.data.find(l => l.dictValue == s.type && l.title == s.title)) return false
  1706. if (res.data.find(l => l.dictValue == s.type)) return false
  1707. else return true;
  1708. })
  1709. this.filelist = signArr;
  1710. }
  1711. })
  1712. },
  1713. getGdFjlist(){
  1714. // var params={
  1715. // loanApplicationNumber:this.datainfo.loanApplicationNumber
  1716. // }
  1717. // getGdlistNoPage(params).then(res=>{
  1718. // if(res.code==200){
  1719. // this.qygdlist=res.data
  1720. // }
  1721. // })
  1722. },
  1723. getQylist(){
  1724. // 需要userid
  1725. var params={
  1726. userId:this.userId
  1727. }
  1728. getQyListNoPage(params).then(res=>{
  1729. if(res.code==200){
  1730. this.qylist = res.rows.map(v => {
  1731. return {
  1732. label: v.enterpriseName,
  1733. value: v.enterpriseId
  1734. }
  1735. })
  1736. }
  1737. })
  1738. },
  1739. getNumber(){
  1740. getApplicationNum().then(res=>{
  1741. if(res.code==200){
  1742. this.datainfo.loanApplicationNumber=res.data;
  1743. var obj={
  1744. loanApplicationNumber:this.datainfo.loanApplicationNumber
  1745. }
  1746. this.option.formData=JSON.parse(JSON.stringify(obj))
  1747. }
  1748. })
  1749. },
  1750. getHeightFn(){
  1751. let query = uni.createSelectorQuery().in(this);
  1752. var s=uni.getSystemInfoSync().statusBarHeight;
  1753. //需要给黄色区域设置一个id标识,在这里是demo
  1754. query.select('.navtop').boundingClientRect(data => {
  1755. // #ifdef H5
  1756. this.listTop =s ? Number(data.height)*2:(Number(data.height)-20)*2//赋值,待会要用
  1757. // #endif
  1758. // #ifndef H5
  1759. this.listTop = Number(data.height)*2//赋值,待会要用
  1760. // #endif
  1761. }).exec();
  1762. },
  1763. getDbclFn(){
  1764. this.$tab.navigateTo("/work/pages/prove/dbcltips")
  1765. },
  1766. getBack(){
  1767. // 暂存
  1768. uni.navigateBack({
  1769. delta:1
  1770. })
  1771. },
  1772. getGiveupFn(){
  1773. var that=this;
  1774. uni.showModal({
  1775. title: '放弃编辑',
  1776. content: "是否确认放弃编辑",
  1777. cancelText: '取消',
  1778. confirmText: '确认',
  1779. success: function(res) {
  1780. if (res.confirm) {
  1781. that.$tab.reLaunch('/pages/index/index')
  1782. } else if (res.cancel) {
  1783. }
  1784. }
  1785. });
  1786. },
  1787. getPreFn(){
  1788. uni.pageScrollTo({
  1789. scrollTop: 0,
  1790. duration: 0
  1791. })
  1792. this.stepval=Number(this.stepval)-1
  1793. },
  1794. getNextFn(){
  1795. // 暂不判断必填写完否
  1796. uni.pageScrollTo({
  1797. scrollTop: 0,
  1798. duration: 0
  1799. })
  1800. this.stepval=Number(this.stepval)+1
  1801. },
  1802. getPreview(url) {
  1803. var newArr=[];
  1804. newArr.push(url)
  1805. uni.previewImage({
  1806. urls: newArr,
  1807. current:0,
  1808. success: function(data) {
  1809. },
  1810. fail: function(err) {
  1811. }
  1812. });
  1813. },
  1814. showImg(){
  1815. this.ftype='fwb'
  1816. // this.lookflag=true
  1817. },
  1818. getClose(){
  1819. this.ftype=''
  1820. },
  1821. getTalbFn(){
  1822. var obj={
  1823. id:this.categoryId,
  1824. name:this.datainfo.categoryType,
  1825. }
  1826. this.$tab.navigateTo('/work/pages/business/talbclass?data='+encodeURIComponent(JSON.stringify(obj)))
  1827. },
  1828. // 添加股东
  1829. getAddGdFn(){
  1830. var obj = {cardz:'',cardf:'',zxurl:[],zhizhao:[],shareholderName:"",shareholderIdCard:'',}
  1831. this.gdlist.push(obj);
  1832. },
  1833. // 添加反担保人
  1834. getAddFdbFn(){
  1835. var obj = {type:1,guaranteeName:'',guaranteeIdCard:'',guaranteePhone:'',guaranteeInfoFjList:[]}
  1836. this.fdarlist.push(obj);
  1837. },
  1838. //添加反担保企业
  1839. getAddQiFn(){
  1840. var obj = {type:2,guaranteeName:'',guaranteeIdCard:'',guaranteeInfoFjList:[]}
  1841. this.fdaqylist.push(obj);
  1842. },
  1843. // 删除股东
  1844. getdelGdFn(idx,ite){
  1845. var that=this;
  1846. uni.showModal({
  1847. title: '确认删除',
  1848. content: "是否确认删除",
  1849. cancelText: '取消',
  1850. confirmText: '确认',
  1851. success: function(res) {
  1852. if (res.confirm) {
  1853. if(ite.shareholderFjId){
  1854. var id=ite.shareholderFjId;
  1855. that.gdFjdelIdList.push(id)
  1856. }
  1857. that.gdlist.splice(idx,1);
  1858. } else if (res.cancel) {
  1859. }
  1860. }
  1861. });
  1862. },
  1863. // 删除反担保人
  1864. getdelFdbFn(idx,ite){
  1865. var that=this;
  1866. uni.showModal({
  1867. title: '确认删除',
  1868. content: "是否确认删除",
  1869. cancelText: '取消',
  1870. confirmText: '确认',
  1871. success: function(res) {
  1872. if (res.confirm) {
  1873. if(ite.guaranteeInfoId){
  1874. var id=ite.guaranteeInfoId;
  1875. that.fdbdeldIdList.push(id)
  1876. }
  1877. that.fdarlist.splice(idx,1);
  1878. } else if (res.cancel) {
  1879. }
  1880. }
  1881. });
  1882. },
  1883. // 删除反担保企业
  1884. getdelQyFn(idx,ite){
  1885. var that=this;
  1886. uni.showModal({
  1887. title: '确认删除',
  1888. content: "是否确认删除",
  1889. cancelText: '取消',
  1890. confirmText: '确认',
  1891. success: function(res) {
  1892. if (res.confirm) {
  1893. if(ite.guaranteeInfoId){
  1894. var id=ite.guaranteeInfoId;
  1895. that.fdbdeldIdList.push(id)
  1896. }
  1897. that.fdaqylist.splice(idx,1);
  1898. } else if (res.cancel) {
  1899. }
  1900. }
  1901. });
  1902. },
  1903. statusFormats(ite,list,type){//多选匹配
  1904. if(ite){
  1905. var actions = [];
  1906. list.forEach(s => {
  1907. if(ite.indexOf(s.value)>-1){
  1908. actions.push(s.label);
  1909. }
  1910. })
  1911. return actions.join(',')
  1912. }else{
  1913. return ''
  1914. }
  1915. },
  1916. statusFormat(ite,list,type) {
  1917. var aite=selectValueKey(list, ite);
  1918. if(type=='qy'){
  1919. this.qyidx=aite.key
  1920. }else if(type=='dblx'){
  1921. this.dblxidx=aite.key
  1922. }else if(type=='yhlx'){
  1923. this.yhlxidx=aite.key
  1924. }else if(type=='ywdk'){
  1925. this.ywidx=aite.key
  1926. }else if(type=='msqy'){
  1927. this.sfidx=aite.key
  1928. }else if(type=='frhyzk'){
  1929. this.frhyzkidx=aite.key
  1930. this.frhyzk=aite.actions;
  1931. }
  1932. return aite.actions;
  1933. },
  1934. bindDateChangea(e){
  1935. // 企业信息
  1936. var val=e.detail.value;
  1937. this.datainfo.enterpriseName=this.qylist[val].label;
  1938. this.datainfo.enterpriseId=this.qylist[val].value;
  1939. },
  1940. bindDateChangeb(e){
  1941. // 用户类型
  1942. var val=e.detail.value;
  1943. this.yhlx=this.yhlxlist[val].label;
  1944. this.datainfo.customerType=this.yhlxlist[val].value;
  1945. },
  1946. bindDateChangec(e){
  1947. // 有无贷款
  1948. var val=e.detail.value;
  1949. this.datainfo.isLoan=this.ywList[val].value;
  1950. },
  1951. getDelfzpo(type){
  1952. if(type=='front'){
  1953. this.datainfo.spouseFront="";
  1954. this.datainfo.spouseName="";
  1955. this.datainfo.spouseIdCard="";
  1956. }else{
  1957. this.datainfo.spouseBack="";
  1958. }
  1959. },
  1960. getDelfdbfzpo(type,idx){
  1961. var obj=this.fdarlist[idx];
  1962. const index = obj.findIndex(text => text.type === type);
  1963. if(type=='fdbrsfzrmx'){
  1964. obj.guaranteeName="";
  1965. obj.guaranteeIdCard="";
  1966. }
  1967. this.fdarlist[idx].fjlist.splice(index,1)
  1968. },
  1969. bindDateChanged(e){
  1970. // 婚姻状态
  1971. var val=e.detail.value;
  1972. var value=this.hyztlist[val].value;
  1973. var list=this.btfiles;
  1974. if(this.datainfo.corporationMaritalStatus!=value){
  1975. this.frhyzk=this.hyztlist[val].label;
  1976. this.datainfo.corporationMaritalStatus=this.hyztlist[val].value;
  1977. if(value==3){//离异
  1978. // 删除结婚证
  1979. var obj={tit:'法人离婚证',type:'frlhz'}
  1980. const index = list.findIndex(text => text.type === "frjhz");
  1981. if(index!=-1){
  1982. this.btfiles.splice(index,1,obj)
  1983. }else{
  1984. this.btfiles.push(obj)
  1985. }
  1986. }else if(value==1){//已婚
  1987. // 删除离婚证
  1988. var obj={tit:'法人结婚证',type:'frjhz'}
  1989. const index = list.findIndex(text => text.type === "frlhz");
  1990. if(index!=-1){
  1991. this.btfiles.splice(index,1,obj)
  1992. }else{
  1993. this.btfiles.push(obj)
  1994. }
  1995. }else{
  1996. // 未婚
  1997. const index = this.btfiles.findIndex(text => text.type === "frlhz");
  1998. if(index!=-1){
  1999. this.btfiles.splice(index,1)
  2000. }
  2001. const indexa = this.btfiles.findIndex(text => text.type === "frjhz");
  2002. if(indexa!=-1){
  2003. this.btfiles.splice(indexa,1)
  2004. }
  2005. }
  2006. }
  2007. },
  2008. bindDateChangee(e){
  2009. // 担保类型
  2010. var val=e.detail.value;
  2011. this.dblx=this.dblxlist[val].label;
  2012. this.datainfo.guaranteeType=this.dblxlist[val].value;
  2013. var value=this.dblxlist[val].value;
  2014. var list=this.btfiles;
  2015. var sqlist=this.sqlist;
  2016. },
  2017. // 反担保企业
  2018. bindDateChangeg(e){
  2019. var val=e.detail.value;
  2020. var data=this.qygdlist[val]
  2021. this.datainfo.guaranteeShareholderName=data.shareholderName;
  2022. var obj={
  2023. name:'企业营业执照',
  2024. // oldName:oldName,
  2025. url:data.shareholderBusinessUrl,
  2026. type:'fdbqyyyzz',
  2027. bigType:'a',
  2028. }
  2029. let indices = this.filelist.filter((ite, index) => ite.type!== "fdbqyyyzz")||[]
  2030. indices.push(obj)
  2031. this.filelist=indices
  2032. this.datainfo.loanApplicationFjList=JSON.parse(JSON.stringify(this.filelist))
  2033. },
  2034. // 免税
  2035. bindDateChangef(e){
  2036. var val=e.detail.value;
  2037. // this.dblx=this.sfList[val].text;
  2038. this.datainfo.isDuty=this.sfList[val].value;
  2039. },
  2040. getZanFn(type){
  2041. var that=this;
  2042. if(this.loadflag){
  2043. return
  2044. }
  2045. var params=JSON.parse(JSON.stringify(this.datainfo));
  2046. var gdlist=this.gdlist;
  2047. var shFjList=[]
  2048. Object.keys(gdlist).some((key) => {
  2049. var fjurl={
  2050. shareholderFrontUrl:gdlist[key].cardz,
  2051. shareholderBackUrl:gdlist[key].cardf,
  2052. shareholderZxUrl:gdlist[key].zxurl.join(','),
  2053. shareholderBusinessUrl:gdlist[key].zhizhao.join(','),
  2054. shareholderName:gdlist[key].shareholderName,
  2055. shareholderIdCard:gdlist[key].shareholderIdCard,
  2056. shareholderFjId:gdlist[key].shareholderFjId,
  2057. shareholderZxUrlPdf:gdlist[key].shareholderZxUrlPdf,
  2058. loanApplicationNumber:gdlist[key].loanApplicationNumber,
  2059. }
  2060. shFjList.push(fjurl)
  2061. })
  2062. params.shareholderFjList=JSON.parse(JSON.stringify(shFjList))
  2063. var flist=JSON.parse(JSON.stringify(this.filelist));
  2064. var sbfjlist=this.sbfjlist;
  2065. sbfjlist.forEach(ite=>{
  2066. if(ite.fjlist&&ite.fjlist.length){
  2067. ite.fjlist.forEach(itet=>{
  2068. flist.push(itet)
  2069. })
  2070. }
  2071. })
  2072. if(this.fjRemarkFj&&this.fjRemarkFj.length>0){
  2073. flist=flist.concat(this.fjRemarkFj)
  2074. }
  2075. params.loanApplicationFjList=JSON.parse(JSON.stringify(flist))
  2076. params.loanApplicationFjIdList=JSON.parse(JSON.stringify(this.fjdelIdList))
  2077. params.shareholderFjIdList=JSON.parse(JSON.stringify(this.gdFjdelIdList))
  2078. var fdarlist=JSON.parse(JSON.stringify(this.fdarlist))
  2079. var fdaqylist=JSON.parse(JSON.stringify(this.fdaqylist))
  2080. var guaranteeInfoList=[];
  2081. guaranteeInfoList=fdarlist.concat(fdaqylist)
  2082. var fdbFjList=[]
  2083. Object.keys(guaranteeInfoList).some((key) => {
  2084. var fjurl=guaranteeInfoList[key];
  2085. var fdbfjlist=fjurl.guaranteeInfoFjList
  2086. fjurl.loanApplicationNumber=this.datainfo.loanApplicationNumber;
  2087. fjurl.loanApplicationId=this.datainfo.loanApplicationId;
  2088. if((!fdbfjlist||fdbfjlist.length<1)&&fjurl.type==1&&fjurl.guaranteeInfoId&&!fjurl.guaranteePhone){
  2089. this.fdbdeldIdList.push(fjurl.guaranteeInfoId)
  2090. }
  2091. if((!fdbfjlist||fdbfjlist.length<1)&&fjurl.type==2&&fjurl.guaranteeInfoId){
  2092. this.fdbdeldIdList.push(fjurl.guaranteeInfoId)
  2093. }
  2094. if(fjurl.type==1&&(fdbfjlist&&fdbfjlist.length||fjurl.guaranteePhone)){
  2095. fdbFjList.push(fjurl)
  2096. }else if(fjurl.type==2&&fdbfjlist&&fdbfjlist.length){
  2097. fdbFjList.push(fjurl)
  2098. }
  2099. })
  2100. params.guaranteeInfoList=JSON.parse(JSON.stringify(fdbFjList))
  2101. params.guaranteeInfoFjIdList=JSON.parse(JSON.stringify(this.fdbdelxIdList))
  2102. params.guaranteeInfoIdList=JSON.parse(JSON.stringify(this.fdbdeldIdList))
  2103. console.log(this.fjdelIdList,this.gdFjdelIdList,123,this.fdbdelxIdList,this.fdbdeldIdList)
  2104. uni.showLoading({
  2105. title: '加载中'
  2106. });
  2107. this.loadflag=true;
  2108. getApplicationZc(params).then(res=>{
  2109. uni.hideLoading();
  2110. this.loadflag=false;
  2111. if(res.code==200){
  2112. this.ischange=false;
  2113. // 刷新列表
  2114. setTimeout(function(){
  2115. if(that.ptype=='add'){
  2116. that.$toast('暂存成功')
  2117. setTimeout(function(){
  2118. that.$tab.reLaunch('/pages/index/index')
  2119. },1200)
  2120. }else{
  2121. that.$toast('暂存成功,请稍后重新刷新')
  2122. uni.$emit('refreshywlist')
  2123. setTimeout(function(){
  2124. uni.navigateBack({
  2125. delta:2
  2126. })
  2127. },1200)
  2128. // if(type&&type=='back'){
  2129. // uni.navigateBack({
  2130. // delta:1
  2131. // })
  2132. // }
  2133. }
  2134. },1200)
  2135. }
  2136. }).catch(error => {
  2137. uni.hideLoading();
  2138. this.loadflag=false;
  2139. })
  2140. },
  2141. getDetail(){
  2142. getApplicationDet(this.id).then(res=>{
  2143. if(res.code==200){
  2144. this.datainfo=res.data;
  2145. this.isdetail=true;
  2146. if(res.data&&res.data.applicationType==1){
  2147. var obj={tit:'当期财务报表',type:'dqcwbb'};
  2148. this.sqbtfiles.push(obj)
  2149. }
  2150. var data=res.data;
  2151. var obj={
  2152. loanApplicationNumber:res.data.loanApplicationNumber
  2153. }
  2154. this.option.formData=JSON.parse(JSON.stringify(obj))
  2155. if(data.loanApplicationFjList){
  2156. // 筛除自动生成的附件
  2157. var filterlist=JSON.parse(JSON.stringify(data.loanApplicationFjList))
  2158. var fjRemarkFj=[]
  2159. this.filelist=filterlist.filter((ite) => {
  2160. if(ite.remark==1){
  2161. fjRemarkFj.push(ite)
  2162. }
  2163. return ite.remark!=1;
  2164. })
  2165. this.fjRemarkFj=JSON.parse(JSON.stringify(fjRemarkFj));
  2166. // console.log(fjRemarkFj,1)
  2167. // this.filelist=JSON.parse(JSON.stringify(data.loanApplicationFjList))
  2168. }
  2169. if(data.declareFj){
  2170. var declareFj=data.declareFj;
  2171. Object.keys(declareFj).some((key) => {
  2172. declareFj[key]=declareFj[key].filter((ite) => {
  2173. return ite.remark!=1
  2174. })
  2175. })
  2176. this.declareFj=JSON.parse(JSON.stringify(declareFj));
  2177. // this.declareFj=data.declareFj;
  2178. }
  2179. if(data.shareholderFjList){
  2180. var shFjList=[]
  2181. var gdlist=data.shareholderFjList;
  2182. Object.keys(gdlist).some((key) => {
  2183. var fjurl={
  2184. shareholderFjId:gdlist[key].shareholderFjId,
  2185. cardz:gdlist[key].shareholderFrontUrl,
  2186. cardf:gdlist[key].shareholderBackUrl,
  2187. zxurl:[],
  2188. zhizhao:[],
  2189. shareholderName:gdlist[key].shareholderName,
  2190. shareholderIdCard:gdlist[key].shareholderIdCard,
  2191. shareholderZxUrlPdf:gdlist[key].shareholderZxUrlPdf,
  2192. loanApplicationNumber:gdlist[key].loanApplicationNumber,
  2193. }
  2194. if(gdlist[key].shareholderZxUrl){
  2195. fjurl.zxurl=gdlist[key].shareholderZxUrl.split(',')
  2196. }
  2197. if(gdlist[key].shareholderBusinessUrl){
  2198. fjurl.zhizhao=gdlist[key].shareholderBusinessUrl.split(',')
  2199. }
  2200. shFjList.push(fjurl)
  2201. })
  2202. this.gdlist=JSON.parse(JSON.stringify(shFjList))
  2203. }
  2204. // 反担保附件
  2205. if(data.guaranteeInfoList&&data.guaranteeInfoList.length>0){
  2206. var fdarlist=[],fdaqylist=[];
  2207. var gInfoList=data.guaranteeInfoList;
  2208. Object.keys(gInfoList).some((key) => {
  2209. var obj=gInfoList[key];
  2210. var fdblist=gInfoList[key].guaranteeInfoFjList;
  2211. fdblist=fdblist.filter((ite) => {
  2212. return ite.remark!=1
  2213. })
  2214. obj.guaranteeInfoFjList=JSON.parse(JSON.stringify(fdblist))
  2215. if(obj.type==1){
  2216. fdarlist.push(obj)
  2217. }else if(obj.type==2){
  2218. fdaqylist.push(obj)
  2219. }
  2220. })
  2221. if(fdarlist&&fdarlist.length){
  2222. this.fdarlist=JSON.parse(JSON.stringify(fdarlist))
  2223. }
  2224. if(fdaqylist&&fdaqylist.length){
  2225. this.fdaqylist=JSON.parse(JSON.stringify(fdaqylist))
  2226. }
  2227. }
  2228. this.getSbjListFn()
  2229. this.getGdFjlist()
  2230. }
  2231. })
  2232. },
  2233. getSubmit(){
  2234. var that=this;
  2235. if(this.loadflag){
  2236. return
  2237. }
  2238. // 判断附件是否完整
  2239. var params=JSON.parse(JSON.stringify(this.datainfo));
  2240. if(!params.enterpriseName){
  2241. this.$toast("请选择企业名称")
  2242. return
  2243. }
  2244. if(!params.categoryType){
  2245. this.$toast("请选择行业类型")
  2246. return
  2247. }
  2248. if(!params.customerType){
  2249. this.$toast("请选择用户类型")
  2250. return
  2251. }
  2252. if(!params.corporationFront){
  2253. this.$toast("请上传法人身份证人像面")
  2254. return
  2255. }
  2256. if(!params.corporationBack){
  2257. this.$toast("请上传法人身份证国徽面")
  2258. return
  2259. }
  2260. if(!params.isLoan){
  2261. this.$toast("请选择有无贷款")
  2262. return
  2263. }
  2264. if(!this.frhyzk){
  2265. this.$toast("请选择婚姻状态")
  2266. return
  2267. }
  2268. if(params.corporationMaritalStatus==1){
  2269. if(!params.spouseFront){
  2270. this.$toast("请上传配偶身份证人像面")
  2271. return
  2272. }
  2273. if(!params.spouseBack){
  2274. this.$toast("请上传配偶身份证国徽面")
  2275. return
  2276. }
  2277. }
  2278. if(!params.corporationPhone){
  2279. // 验证手机号
  2280. this.$toast("请输入法人手机号")
  2281. return
  2282. }
  2283. let regphone = /^1[3|4|5|6|7|8|9][0-9]\d{8}$/
  2284. if (params.corporationPhone && !regphone.test(params.corporationPhone)) {
  2285. that.$toast("请输入正确的法人手机号")
  2286. return
  2287. }
  2288. var gdlist=this.gdlist;
  2289. var shFjList=[]
  2290. var a=0;
  2291. Object.keys(gdlist).some((key) => {
  2292. var str="请上传股东"+(Number(key)+1)
  2293. if(gdlist[key].zhizhao<1 && !gdlist[key].cardz){
  2294. a=1;
  2295. that.$toast(str+'营业执照或者身份证')
  2296. return true;
  2297. }else{
  2298. if(gdlist[key].cardz){
  2299. if(!gdlist[key].cardf){
  2300. a=1;
  2301. that.$toast(str+'身份证国徽面')
  2302. return true;
  2303. }
  2304. }
  2305. }
  2306. // if(!gdlist[key].cardz){
  2307. // a=1;
  2308. // that.$toast(str+"身份证人像面")
  2309. // return true;
  2310. // }else if(!gdlist[key].cardf){
  2311. // a=1;
  2312. // that.$toast(str+'身份证国徽面')
  2313. // return true;
  2314. // }
  2315. if(gdlist[key].zxurl<1){
  2316. a=1;
  2317. that.$toast(str+'征信报告')
  2318. return true;
  2319. }
  2320. var fjurl={
  2321. shareholderFrontUrl:gdlist[key].cardz,
  2322. shareholderBackUrl:gdlist[key].cardf,
  2323. shareholderZxUrl:gdlist[key].zxurl.join(','),
  2324. shareholderBusinessUrl:gdlist[key].zhizhao.join(','),
  2325. shareholderName:gdlist[key].shareholderName,
  2326. shareholderIdCard:gdlist[key].shareholderIdCard,
  2327. shareholderFjId:gdlist[key].shareholderFjId,
  2328. shareholderZxUrlPdf:gdlist[key].shareholderZxUrlPdf,
  2329. loanApplicationNumber:gdlist[key].loanApplicationNumber,
  2330. }
  2331. shFjList.push(fjurl)
  2332. })
  2333. params.shareholderFjList=JSON.parse(JSON.stringify(shFjList))
  2334. if(a==1){
  2335. return
  2336. }
  2337. if(!params.guaranteeType){
  2338. this.$toast("请选择担保类型")
  2339. return
  2340. }
  2341. var flist=JSON.parse(JSON.stringify(this.filelist));
  2342. var btfiles=JSON.parse(JSON.stringify(this.btfiles));
  2343. var sqbtfiles=JSON.parse(JSON.stringify(this.sqbtfiles));
  2344. var fdarlist=JSON.parse(JSON.stringify(this.fdarlist))
  2345. var fbdfiles=JSON.parse(JSON.stringify(this.fbdfiles))
  2346. var fdaqylist=JSON.parse(JSON.stringify(this.fdaqylist))
  2347. var fdbqyfiles=JSON.parse(JSON.stringify(this.fdbqyfiles))
  2348. var guaranteeInfoList=[]
  2349. if(params.guaranteeType.indexOf('1')>-1){//抵押担保
  2350. var obj={tit:'企业固定资产证明',type:'qygdzczm'}
  2351. sqbtfiles.push(obj)
  2352. }
  2353. // 反担保人担保
  2354. var d=0,da=0;
  2355. Object.keys(fdarlist).some((key) => {
  2356. fdarlist[key].loanApplicationNumber=that.datainfo.loanApplicationNumber
  2357. fdarlist[key].loanApplicationId=that.datainfo.loanApplicationId
  2358. var str="请上传反担保人"+(Number(key)+1)
  2359. var flist=fdarlist[key].guaranteeInfoFjList;
  2360. var guaranteePhone=fdarlist[key].guaranteePhone;
  2361. if(flist&&flist.length){
  2362. da=1;
  2363. guaranteeInfoList.push(fdarlist[key])
  2364. if(params.guaranteeType.indexOf('2')>-1){
  2365. if(!guaranteePhone){
  2366. that.$toast(str+'手机号')
  2367. d=1;
  2368. return true;
  2369. }
  2370. // 验证手机号
  2371. if (guaranteePhone && !regphone.test(guaranteePhone)) {
  2372. that.$toast("请输入正确的反担保人"+(Number(key)+1)+"手机号")
  2373. d=1;
  2374. return true;
  2375. }
  2376. Object.keys(fbdfiles).some((fkey)=>{
  2377. if (flist.find(l => l.type == fbdfiles[fkey].type)) {
  2378. return false
  2379. }else{
  2380. d=1;
  2381. that.$toast(str+fbdfiles[fkey].tit)
  2382. return true;
  2383. }
  2384. })
  2385. }
  2386. }else{
  2387. if(fdarlist[key].guaranteeInfoId&&!guaranteePhone){
  2388. this.fdbdeldIdList.push(fdarlist[key].guaranteeInfoId)
  2389. }
  2390. if(guaranteePhone){
  2391. guaranteeInfoList.push(fdarlist[key])
  2392. }
  2393. }
  2394. if(d==1){
  2395. return true
  2396. }
  2397. })
  2398. if(da==0&&params.guaranteeType.indexOf('2')>-1){
  2399. that.$toast('请上传反担保人身份证人面像')
  2400. return true
  2401. }
  2402. if(d==1){
  2403. return
  2404. }
  2405. // 反担保企业
  2406. var e=0,ea=0;
  2407. Object.keys(fdaqylist).some((key) => {
  2408. fdaqylist[key].loanApplicationNumber=that.datainfo.loanApplicationNumber
  2409. fdaqylist[key].loanApplicationId=that.datainfo.loanApplicationId
  2410. var str="请上传反担保企业"+(Number(key)+1)
  2411. var flist=fdaqylist[key].guaranteeInfoFjList;
  2412. if(flist&&flist.length){
  2413. ea=1;
  2414. guaranteeInfoList.push(fdaqylist[key])
  2415. if(params.guaranteeType.indexOf('4')>-1){//企业保证
  2416. Object.keys(fdbqyfiles).some((fkey)=>{
  2417. if (flist.find(l => l.type == fdbqyfiles[fkey].type)) {
  2418. return false
  2419. }else{
  2420. e=1;
  2421. that.$toast(str+fdbqyfiles[fkey].tit)
  2422. return true;
  2423. }
  2424. })
  2425. }
  2426. }else{
  2427. if(fdaqylist[key].guaranteeInfoId){
  2428. this.fdbdeldIdList.push(fdaqylist[key].guaranteeInfoId)
  2429. }
  2430. }
  2431. if(e==1){
  2432. return true
  2433. }
  2434. })
  2435. if(ea==0&&params.guaranteeType.indexOf('4')>-1){
  2436. that.$toast('请上传反担保企业营业执照')
  2437. return
  2438. }
  2439. if(e==1){
  2440. return
  2441. }
  2442. // console.log(guaranteeInfoList)
  2443. // return
  2444. // if(params.guaranteeType.indexOf('2')>-1){//反担保人担保
  2445. // // 选择担保人担保
  2446. // if(!params.guaranteePhone){
  2447. // // 验证手机号
  2448. // this.$toast("请输入反担保人手机号")
  2449. // return
  2450. // }
  2451. // if (params.guaranteePhone && !regphone.test(params.guaranteePhone)) {
  2452. // that.$toast("请输入正确的反担保人手机号")
  2453. // return
  2454. // }
  2455. // if(!params.guaranteeFront){
  2456. // this.$toast("请上传反担保人身份证人像面")
  2457. // return
  2458. // }
  2459. // if(!params.guaranteeBack){
  2460. // this.$toast("请上传反担保人身份证国徽面")
  2461. // return
  2462. // }
  2463. // }
  2464. if(params.guaranteeType.indexOf('3')>-1){//企业保证
  2465. var obj={tit:'反担保抵(质)押复印件',type:'fdbdyfyj'}
  2466. sqbtfiles.push(obj)
  2467. }
  2468. // if(params.guaranteeType.indexOf('4')>-1){//企业保证
  2469. // var obj={tit:'反担保企业营业执照',type:'fdbqyyyzz'}
  2470. // var objb={tit:'反担保企业征信',type:'fdbqyzx'}
  2471. // btfiles.push(obj)
  2472. // btfiles.push(objb)
  2473. // }
  2474. var b=0;
  2475. Object.keys(btfiles).some((key) => {
  2476. if (flist.find(l => l.type == btfiles[key].type)) {
  2477. return false
  2478. }else{
  2479. b=1;
  2480. that.$toast('请上传'+btfiles[key].tit)
  2481. return true;
  2482. }
  2483. })
  2484. if(b==1){
  2485. return
  2486. }
  2487. if(!params.isDuty){
  2488. this.$toast("请选择是否免税企业")
  2489. return
  2490. }
  2491. var sbfjlist=this.sbfjlist;
  2492. var sbArr=[]
  2493. var c=0;
  2494. Object.keys(sqbtfiles).some((key) => {
  2495. if (sbfjlist.find(l => (l.val == sqbtfiles[key].type) && l.fjlist.length>0)) {
  2496. return false
  2497. }else{
  2498. c=1;
  2499. that.$toast('请上传'+sqbtfiles[key].tit)
  2500. return true;
  2501. }
  2502. })
  2503. if(c==1){
  2504. return
  2505. }
  2506. sbfjlist.forEach(ite=>{
  2507. if(ite.fjlist&&ite.fjlist.length){
  2508. ite.fjlist.forEach(itet=>{
  2509. flist.push(itet)
  2510. })
  2511. }
  2512. })
  2513. if(this.fjRemarkFj&&this.fjRemarkFj.length>0){
  2514. flist=flist.concat(this.fjRemarkFj)
  2515. }
  2516. params.loanApplicationFjList=JSON.parse(JSON.stringify(flist))
  2517. params.loanApplicationFjIdList=JSON.parse(JSON.stringify(this.fjdelIdList))
  2518. params.shareholderFjIdList=JSON.parse(JSON.stringify(this.gdFjdelIdList))
  2519. params.guaranteeInfoList=JSON.parse(JSON.stringify(guaranteeInfoList))
  2520. params.guaranteeInfoFjIdList=JSON.parse(JSON.stringify(this.fdbdelxIdList))
  2521. params.guaranteeInfoIdList=JSON.parse(JSON.stringify(this.fdbdeldIdList))
  2522. console.log(this.fjdelIdList,this.gdFjdelIdList,222,this.fdbdelxIdList,this.fdbdeldIdList)
  2523. uni.showLoading({
  2524. title: '加载中'
  2525. });
  2526. this.loadflag=true;
  2527. if(this.ptype=='add'){
  2528. getApplicationAdd(params).then(res=>{
  2529. uni.hideLoading();
  2530. this.loadflag=false;
  2531. if(res.code==200){
  2532. that.ischange=false;
  2533. that.$toast("新增成功,请稍后重新刷新")
  2534. setTimeout(function(){
  2535. that.$tab.redirectTo('/work/pages/success')
  2536. },1200)
  2537. }
  2538. }).catch(error => {
  2539. uni.hideLoading();
  2540. this.loadflag=false;
  2541. })
  2542. }else{
  2543. getApplicationEdit(params).then(res=>{
  2544. uni.hideLoading();
  2545. this.loadflag=false;
  2546. if(res.code==200){
  2547. that.ischange=false;
  2548. that.$toast("修改成功,请稍后重新刷新")
  2549. setTimeout(function(){
  2550. uni.$emit('refreshywlist')
  2551. uni.navigateBack({
  2552. delta:2
  2553. })
  2554. },1200)
  2555. }
  2556. }).catch(error => {
  2557. uni.hideLoading();
  2558. this.loadflag=false;
  2559. })
  2560. }
  2561. //
  2562. // this.$tab.navigateTo('/work/pages/success')
  2563. },
  2564. getaddImage(e){
  2565. let that = this;
  2566. let file =[],count=9
  2567. // if(e=='zj'){
  2568. // file = that.zjfile;
  2569. // count=9
  2570. // }else{
  2571. // file = that.mjfile;
  2572. // count=9
  2573. // }
  2574. uni.chooseImage({
  2575. count: 1,
  2576. success:function(res){
  2577. let img= res.tempFilePaths;
  2578. if(img.length + file.length > count){
  2579. uni.showToast({
  2580. title: '最多上传'+count+'张图片',
  2581. icon: 'none',
  2582. duration: 2000
  2583. })
  2584. }else{
  2585. let imglen = res.tempFilePaths.length;
  2586. var fuwufile = [];
  2587. uploadmore('/common/upload',img,0,0,0,imglen,fuwufile,function(rs){
  2588. if(e=='zj'){
  2589. that.zjfile = that.zjfile.concat(rs);
  2590. that.datainfo.identificationPhoto=that.zjfile.join(',')
  2591. }
  2592. })
  2593. }
  2594. }
  2595. });
  2596. },
  2597. // 人像面
  2598. ponuploadEnd(item,fileVal,bigType){
  2599. var newobj={}
  2600. var responseText=JSON.parse(item.responseText)
  2601. var url=responseText.fileName
  2602. var urlOnline=responseText.urlOnline
  2603. if(fileVal=='frsfzrmx'){
  2604. this.datainfo.corporationFront=url;
  2605. // 获取姓名 身份证号
  2606. this.getocrIdCard(urlOnline,fileVal)
  2607. }else if(fileVal=='frsfzghm'){
  2608. this.datainfo.corporationBack=url
  2609. }else if(fileVal=='frsfzpormx'){
  2610. this.datainfo.spouseFront=url
  2611. this.getocrIdCard(urlOnline,fileVal)
  2612. }else if(fileVal=='frsfzpoghm'){
  2613. this.datainfo.spouseBack=url
  2614. // }else if(fileVal=='fdbrsfzrmx'){
  2615. // this.getocrIdCard(urlOnline,fileVal)
  2616. // this.datainfo.guaranteeFront=url
  2617. // }else if(fileVal=='fdbrsfzghm'){
  2618. // this.datainfo.guaranteeBack=url
  2619. }
  2620. },
  2621. getDocumentList(){
  2622. var params={
  2623. explainType:2
  2624. }
  2625. getDocumentList(params).then(res=>{
  2626. if(res.code==200){
  2627. var list=res.rows;
  2628. if(list&&list.length){
  2629. var content=list[0].explainContent;
  2630. this.content=this.formatRichText(content);
  2631. // 图片
  2632. if(list[0].explainImage){
  2633. this.xwimgList=list[0].explainImage.split(',')
  2634. }
  2635. }
  2636. }
  2637. })
  2638. },
  2639. //解析富文本方法
  2640. formatRichText(html) {
  2641. let newContent = html.replace(/<img[^>]*>/gi, function(match, capture) {
  2642. match = match.replace(/style="[^"]+"/gi, '').replace(/style='[^']+'/gi, '').replace(/style=""/gi, '');
  2643. match = match.replace(/width="[^"]+"/gi, '').replace(/width='[^']+'/gi, '');
  2644. match = match.replace(/height="[^"]+"/gi, '').replace(/height='[^']+'/gi, '');
  2645. return match;
  2646. });
  2647. newContent = newContent.replace(/style="[^"]+"/gi, function(match, capture) {
  2648. match = match.replace(/width:[^;]+;/gi, 'max-width:100%;').replace(/width:[^;]+;/gi, 'max-width:100%;');
  2649. return match;
  2650. });
  2651. newContent = newContent.replace(/<br[^>]*\/>/gi, '');
  2652. newContent = newContent.replace(/\<img src="/gi,
  2653. '<img style="max-width:100%;height:auto;display:block;margin:10rpx auto;" src="' +baseUrlimg);
  2654. return newContent;
  2655. },
  2656. getOcrBusinessLicense(url,fileName,idx){
  2657. var that=this;
  2658. var obj=this.gdlist[idx];
  2659. var params={
  2660. image:url,
  2661. }
  2662. getOcrBusinessLicense(params).then(res=>{
  2663. if(res.code==200){
  2664. var params=JSON.parse(JSON.stringify(res.data))
  2665. obj.shareholderName=params.enterpriseName;
  2666. obj.shareholderIdCard=params.creditCode;
  2667. obj.zhizhao[0]=fileName
  2668. this.gdlist.splice(idx,1,obj)
  2669. this.$toast('营业执照上传成功')
  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;word-break: break-all;}
  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>