add.vue 123 KB

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