add.vue 124 KB

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