add.vue 125 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241
  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. imageUrl:v.imageUrl
  1735. }
  1736. })
  1737. }
  1738. })
  1739. },
  1740. getNumber(){
  1741. getApplicationNum().then(res=>{
  1742. if(res.code==200){
  1743. this.datainfo.loanApplicationNumber=res.data;
  1744. var obj={
  1745. loanApplicationNumber:this.datainfo.loanApplicationNumber
  1746. }
  1747. this.option.formData=JSON.parse(JSON.stringify(obj))
  1748. }
  1749. })
  1750. },
  1751. getHeightFn(){
  1752. let query = uni.createSelectorQuery().in(this);
  1753. var s=uni.getSystemInfoSync().statusBarHeight;
  1754. //需要给黄色区域设置一个id标识,在这里是demo
  1755. query.select('.navtop').boundingClientRect(data => {
  1756. // #ifdef H5
  1757. this.listTop =s ? Number(data.height)*2:(Number(data.height)-20)*2//赋值,待会要用
  1758. // #endif
  1759. // #ifndef H5
  1760. this.listTop = Number(data.height)*2//赋值,待会要用
  1761. // #endif
  1762. }).exec();
  1763. },
  1764. getDbclFn(){
  1765. this.$tab.navigateTo("/work/pages/prove/dbcltips")
  1766. },
  1767. getBack(){
  1768. // 暂存
  1769. uni.navigateBack({
  1770. delta:1
  1771. })
  1772. },
  1773. getGiveupFn(){
  1774. var that=this;
  1775. uni.showModal({
  1776. title: '放弃编辑',
  1777. content: "是否确认放弃编辑",
  1778. cancelText: '取消',
  1779. confirmText: '确认',
  1780. success: function(res) {
  1781. if (res.confirm) {
  1782. that.$tab.reLaunch('/pages/index/index')
  1783. } else if (res.cancel) {
  1784. }
  1785. }
  1786. });
  1787. },
  1788. getPreFn(){
  1789. uni.pageScrollTo({
  1790. scrollTop: 0,
  1791. duration: 0
  1792. })
  1793. this.stepval=Number(this.stepval)-1
  1794. },
  1795. getNextFn(){
  1796. // 暂不判断必填写完否
  1797. uni.pageScrollTo({
  1798. scrollTop: 0,
  1799. duration: 0
  1800. })
  1801. this.stepval=Number(this.stepval)+1
  1802. },
  1803. getPreview(url) {
  1804. var newArr=[];
  1805. newArr.push(url)
  1806. uni.previewImage({
  1807. urls: newArr,
  1808. current:0,
  1809. success: function(data) {
  1810. },
  1811. fail: function(err) {
  1812. }
  1813. });
  1814. },
  1815. showImg(){
  1816. this.ftype='fwb'
  1817. // this.lookflag=true
  1818. },
  1819. getClose(){
  1820. this.ftype=''
  1821. },
  1822. getTalbFn(){
  1823. var obj={
  1824. id:this.categoryId,
  1825. name:this.datainfo.categoryType,
  1826. }
  1827. this.$tab.navigateTo('/work/pages/business/talbclass?data='+encodeURIComponent(JSON.stringify(obj)))
  1828. },
  1829. // 添加股东
  1830. getAddGdFn(){
  1831. var obj = {cardz:'',cardf:'',zxurl:[],zhizhao:[],shareholderName:"",shareholderIdCard:'',}
  1832. this.gdlist.push(obj);
  1833. },
  1834. // 添加反担保人
  1835. getAddFdbFn(){
  1836. var obj = {type:1,guaranteeName:'',guaranteeIdCard:'',guaranteePhone:'',guaranteeInfoFjList:[]}
  1837. this.fdarlist.push(obj);
  1838. },
  1839. //添加反担保企业
  1840. getAddQiFn(){
  1841. var obj = {type:2,guaranteeName:'',guaranteeIdCard:'',guaranteeInfoFjList:[]}
  1842. this.fdaqylist.push(obj);
  1843. },
  1844. // 删除股东
  1845. getdelGdFn(idx,ite){
  1846. var that=this;
  1847. uni.showModal({
  1848. title: '确认删除',
  1849. content: "是否确认删除",
  1850. cancelText: '取消',
  1851. confirmText: '确认',
  1852. success: function(res) {
  1853. if (res.confirm) {
  1854. if(ite.shareholderFjId){
  1855. var id=ite.shareholderFjId;
  1856. that.gdFjdelIdList.push(id)
  1857. }
  1858. that.gdlist.splice(idx,1);
  1859. } else if (res.cancel) {
  1860. }
  1861. }
  1862. });
  1863. },
  1864. // 删除反担保人
  1865. getdelFdbFn(idx,ite){
  1866. var that=this;
  1867. uni.showModal({
  1868. title: '确认删除',
  1869. content: "是否确认删除",
  1870. cancelText: '取消',
  1871. confirmText: '确认',
  1872. success: function(res) {
  1873. if (res.confirm) {
  1874. if(ite.guaranteeInfoId){
  1875. var id=ite.guaranteeInfoId;
  1876. that.fdbdeldIdList.push(id)
  1877. }
  1878. that.fdarlist.splice(idx,1);
  1879. } else if (res.cancel) {
  1880. }
  1881. }
  1882. });
  1883. },
  1884. // 删除反担保企业
  1885. getdelQyFn(idx,ite){
  1886. var that=this;
  1887. uni.showModal({
  1888. title: '确认删除',
  1889. content: "是否确认删除",
  1890. cancelText: '取消',
  1891. confirmText: '确认',
  1892. success: function(res) {
  1893. if (res.confirm) {
  1894. if(ite.guaranteeInfoId){
  1895. var id=ite.guaranteeInfoId;
  1896. that.fdbdeldIdList.push(id)
  1897. }
  1898. that.fdaqylist.splice(idx,1);
  1899. } else if (res.cancel) {
  1900. }
  1901. }
  1902. });
  1903. },
  1904. statusFormats(ite,list,type){//多选匹配
  1905. if(ite){
  1906. var actions = [];
  1907. list.forEach(s => {
  1908. if(ite.indexOf(s.value)>-1){
  1909. actions.push(s.label);
  1910. }
  1911. })
  1912. return actions.join(',')
  1913. }else{
  1914. return ''
  1915. }
  1916. },
  1917. statusFormat(ite,list,type) {
  1918. var aite=selectValueKey(list, ite);
  1919. if(type=='qy'){
  1920. this.qyidx=aite.key
  1921. }else if(type=='dblx'){
  1922. this.dblxidx=aite.key
  1923. }else if(type=='yhlx'){
  1924. this.yhlxidx=aite.key
  1925. }else if(type=='ywdk'){
  1926. this.ywidx=aite.key
  1927. }else if(type=='msqy'){
  1928. this.sfidx=aite.key
  1929. }else if(type=='frhyzk'){
  1930. this.frhyzkidx=aite.key
  1931. this.frhyzk=aite.actions;
  1932. }
  1933. return aite.actions;
  1934. },
  1935. bindDateChangea(e){
  1936. // 企业信息
  1937. var val=e.detail.value;
  1938. var qylist=JSON.parse(JSON.stringify(this.qylist))
  1939. this.datainfo.enterpriseName=qylist[val].label;
  1940. this.datainfo.enterpriseId=qylist[val].value;
  1941. var imgurl=qylist[val].imageUrl;
  1942. // 企业执照
  1943. var obj={
  1944. url:imgurl,
  1945. type:'gsyyzhz',
  1946. bigType:'a',
  1947. name:'公司营业执照'
  1948. }
  1949. // 查找修改
  1950. const index = this.filelist.findIndex(text => text.type == 'gsyyzhz'&&text.bigType == 'a');
  1951. if(index!=-1){
  1952. var fjid=this.filelist[index].fjId;
  1953. if(fjid){
  1954. this.fjdelIdList.push(fjid)
  1955. }
  1956. this.filelist.splice(index,1,obj)
  1957. }else{
  1958. this.filelist.push(obj)
  1959. }
  1960. },
  1961. bindDateChangeb(e){
  1962. // 用户类型
  1963. var val=e.detail.value;
  1964. this.yhlx=this.yhlxlist[val].label;
  1965. this.datainfo.customerType=this.yhlxlist[val].value;
  1966. },
  1967. bindDateChangec(e){
  1968. // 有无贷款
  1969. var val=e.detail.value;
  1970. this.datainfo.isLoan=this.ywList[val].value;
  1971. },
  1972. getDelfzpo(type){
  1973. if(type=='front'){
  1974. this.datainfo.spouseFront="";
  1975. this.datainfo.spouseName="";
  1976. this.datainfo.spouseIdCard="";
  1977. }else{
  1978. this.datainfo.spouseBack="";
  1979. }
  1980. },
  1981. getDelfdbfzpo(type,idx){
  1982. var obj=this.fdarlist[idx];
  1983. const index = obj.findIndex(text => text.type === type);
  1984. if(type=='fdbrsfzrmx'){
  1985. obj.guaranteeName="";
  1986. obj.guaranteeIdCard="";
  1987. }
  1988. this.fdarlist[idx].fjlist.splice(index,1)
  1989. },
  1990. bindDateChanged(e){
  1991. // 婚姻状态
  1992. var val=e.detail.value;
  1993. var value=this.hyztlist[val].value;
  1994. var list=this.btfiles;
  1995. if(this.datainfo.corporationMaritalStatus!=value){
  1996. this.frhyzk=this.hyztlist[val].label;
  1997. this.datainfo.corporationMaritalStatus=this.hyztlist[val].value;
  1998. if(value==3){//离异
  1999. // 删除结婚证
  2000. var obj={tit:'法人离婚证',type:'frlhz'}
  2001. const index = list.findIndex(text => text.type === "frjhz");
  2002. if(index!=-1){
  2003. this.btfiles.splice(index,1,obj)
  2004. }else{
  2005. this.btfiles.push(obj)
  2006. }
  2007. }else if(value==1){//已婚
  2008. // 删除离婚证
  2009. var obj={tit:'法人结婚证',type:'frjhz'}
  2010. const index = list.findIndex(text => text.type === "frlhz");
  2011. if(index!=-1){
  2012. this.btfiles.splice(index,1,obj)
  2013. }else{
  2014. this.btfiles.push(obj)
  2015. }
  2016. }else{
  2017. // 未婚
  2018. const index = this.btfiles.findIndex(text => text.type === "frlhz");
  2019. if(index!=-1){
  2020. this.btfiles.splice(index,1)
  2021. }
  2022. const indexa = this.btfiles.findIndex(text => text.type === "frjhz");
  2023. if(indexa!=-1){
  2024. this.btfiles.splice(indexa,1)
  2025. }
  2026. }
  2027. }
  2028. },
  2029. bindDateChangee(e){
  2030. // 担保类型
  2031. var val=e.detail.value;
  2032. this.dblx=this.dblxlist[val].label;
  2033. this.datainfo.guaranteeType=this.dblxlist[val].value;
  2034. var value=this.dblxlist[val].value;
  2035. var list=this.btfiles;
  2036. var sqlist=this.sqlist;
  2037. },
  2038. // 反担保企业
  2039. bindDateChangeg(e){
  2040. var val=e.detail.value;
  2041. var data=this.qygdlist[val]
  2042. this.datainfo.guaranteeShareholderName=data.shareholderName;
  2043. var obj={
  2044. name:'企业营业执照',
  2045. // oldName:oldName,
  2046. url:data.shareholderBusinessUrl,
  2047. type:'fdbqyyyzz',
  2048. bigType:'a',
  2049. }
  2050. let indices = this.filelist.filter((ite, index) => ite.type!== "fdbqyyyzz")||[]
  2051. indices.push(obj)
  2052. this.filelist=indices
  2053. this.datainfo.loanApplicationFjList=JSON.parse(JSON.stringify(this.filelist))
  2054. },
  2055. // 免税
  2056. bindDateChangef(e){
  2057. var val=e.detail.value;
  2058. // this.dblx=this.sfList[val].text;
  2059. this.datainfo.isDuty=this.sfList[val].value;
  2060. },
  2061. getZanFn(type){
  2062. var that=this;
  2063. if(this.loadflag){
  2064. return
  2065. }
  2066. var params=JSON.parse(JSON.stringify(this.datainfo));
  2067. var gdlist=this.gdlist;
  2068. var shFjList=[]
  2069. Object.keys(gdlist).some((key) => {
  2070. var fjurl={
  2071. shareholderFrontUrl:gdlist[key].cardz,
  2072. shareholderBackUrl:gdlist[key].cardf,
  2073. shareholderZxUrl:gdlist[key].zxurl.join(','),
  2074. shareholderBusinessUrl:gdlist[key].zhizhao.join(','),
  2075. shareholderName:gdlist[key].shareholderName,
  2076. shareholderIdCard:gdlist[key].shareholderIdCard,
  2077. shareholderFjId:gdlist[key].shareholderFjId,
  2078. shareholderZxUrlPdf:gdlist[key].shareholderZxUrlPdf,
  2079. loanApplicationNumber:gdlist[key].loanApplicationNumber,
  2080. }
  2081. shFjList.push(fjurl)
  2082. })
  2083. params.shareholderFjList=JSON.parse(JSON.stringify(shFjList))
  2084. var flist=JSON.parse(JSON.stringify(this.filelist));
  2085. var sbfjlist=this.sbfjlist;
  2086. sbfjlist.forEach(ite=>{
  2087. if(ite.fjlist&&ite.fjlist.length){
  2088. ite.fjlist.forEach(itet=>{
  2089. flist.push(itet)
  2090. })
  2091. }
  2092. })
  2093. if(this.fjRemarkFj&&this.fjRemarkFj.length>0){
  2094. flist=flist.concat(this.fjRemarkFj)
  2095. }
  2096. params.loanApplicationFjList=JSON.parse(JSON.stringify(flist))
  2097. params.loanApplicationFjIdList=JSON.parse(JSON.stringify(this.fjdelIdList))
  2098. params.shareholderFjIdList=JSON.parse(JSON.stringify(this.gdFjdelIdList))
  2099. var fdarlist=JSON.parse(JSON.stringify(this.fdarlist))
  2100. var fdaqylist=JSON.parse(JSON.stringify(this.fdaqylist))
  2101. var guaranteeInfoList=[];
  2102. guaranteeInfoList=fdarlist.concat(fdaqylist)
  2103. var fdbFjList=[]
  2104. Object.keys(guaranteeInfoList).some((key) => {
  2105. var fjurl=guaranteeInfoList[key];
  2106. var fdbfjlist=fjurl.guaranteeInfoFjList
  2107. fjurl.loanApplicationNumber=this.datainfo.loanApplicationNumber;
  2108. fjurl.loanApplicationId=this.datainfo.loanApplicationId;
  2109. if((!fdbfjlist||fdbfjlist.length<1)&&fjurl.type==1&&fjurl.guaranteeInfoId&&!fjurl.guaranteePhone){
  2110. this.fdbdeldIdList.push(fjurl.guaranteeInfoId)
  2111. }
  2112. if((!fdbfjlist||fdbfjlist.length<1)&&fjurl.type==2&&fjurl.guaranteeInfoId){
  2113. this.fdbdeldIdList.push(fjurl.guaranteeInfoId)
  2114. }
  2115. if(fjurl.type==1&&(fdbfjlist&&fdbfjlist.length||fjurl.guaranteePhone)){
  2116. fdbFjList.push(fjurl)
  2117. }else if(fjurl.type==2&&fdbfjlist&&fdbfjlist.length){
  2118. fdbFjList.push(fjurl)
  2119. }
  2120. })
  2121. params.guaranteeInfoList=JSON.parse(JSON.stringify(fdbFjList))
  2122. params.guaranteeInfoFjIdList=JSON.parse(JSON.stringify(this.fdbdelxIdList))
  2123. params.guaranteeInfoIdList=JSON.parse(JSON.stringify(this.fdbdeldIdList))
  2124. console.log(this.fjdelIdList,this.gdFjdelIdList,123,this.fdbdelxIdList,this.fdbdeldIdList)
  2125. uni.showLoading({
  2126. title: '加载中'
  2127. });
  2128. this.loadflag=true;
  2129. getApplicationZc(params).then(res=>{
  2130. uni.hideLoading();
  2131. this.loadflag=false;
  2132. if(res.code==200){
  2133. this.ischange=false;
  2134. // 刷新列表
  2135. setTimeout(function(){
  2136. if(that.ptype=='add'){
  2137. that.$toast('暂存成功')
  2138. setTimeout(function(){
  2139. that.$tab.reLaunch('/pages/index/index')
  2140. },1200)
  2141. }else{
  2142. that.$toast('暂存成功,请稍后重新刷新')
  2143. uni.$emit('refreshywlist')
  2144. setTimeout(function(){
  2145. uni.navigateBack({
  2146. delta:2
  2147. })
  2148. },1200)
  2149. // if(type&&type=='back'){
  2150. // uni.navigateBack({
  2151. // delta:1
  2152. // })
  2153. // }
  2154. }
  2155. },1200)
  2156. }
  2157. }).catch(error => {
  2158. uni.hideLoading();
  2159. this.loadflag=false;
  2160. })
  2161. },
  2162. getDetail(){
  2163. getApplicationDet(this.id).then(res=>{
  2164. if(res.code==200){
  2165. this.datainfo=res.data;
  2166. this.isdetail=true;
  2167. if(res.data&&res.data.applicationType==1){
  2168. var obj={tit:'当期财务报表',type:'dqcwbb'};
  2169. this.sqbtfiles.push(obj)
  2170. }
  2171. var data=res.data;
  2172. var obj={
  2173. loanApplicationNumber:res.data.loanApplicationNumber
  2174. }
  2175. this.option.formData=JSON.parse(JSON.stringify(obj))
  2176. if(data.loanApplicationFjList){
  2177. // 筛除自动生成的附件
  2178. var filterlist=JSON.parse(JSON.stringify(data.loanApplicationFjList))
  2179. var fjRemarkFj=[]
  2180. this.filelist=filterlist.filter((ite) => {
  2181. if(ite.remark==1){
  2182. fjRemarkFj.push(ite)
  2183. }
  2184. return ite.remark!=1;
  2185. })
  2186. this.fjRemarkFj=JSON.parse(JSON.stringify(fjRemarkFj));
  2187. // console.log(fjRemarkFj,1)
  2188. // this.filelist=JSON.parse(JSON.stringify(data.loanApplicationFjList))
  2189. }
  2190. if(data.declareFj){
  2191. var declareFj=data.declareFj;
  2192. Object.keys(declareFj).some((key) => {
  2193. declareFj[key]=declareFj[key].filter((ite) => {
  2194. return ite.remark!=1
  2195. })
  2196. })
  2197. this.declareFj=JSON.parse(JSON.stringify(declareFj));
  2198. // this.declareFj=data.declareFj;
  2199. }
  2200. if(data.shareholderFjList){
  2201. var shFjList=[]
  2202. var gdlist=data.shareholderFjList;
  2203. Object.keys(gdlist).some((key) => {
  2204. var fjurl={
  2205. shareholderFjId:gdlist[key].shareholderFjId,
  2206. cardz:gdlist[key].shareholderFrontUrl,
  2207. cardf:gdlist[key].shareholderBackUrl,
  2208. zxurl:[],
  2209. zhizhao:[],
  2210. shareholderName:gdlist[key].shareholderName,
  2211. shareholderIdCard:gdlist[key].shareholderIdCard,
  2212. shareholderZxUrlPdf:gdlist[key].shareholderZxUrlPdf,
  2213. loanApplicationNumber:gdlist[key].loanApplicationNumber,
  2214. }
  2215. if(gdlist[key].shareholderZxUrl){
  2216. fjurl.zxurl=gdlist[key].shareholderZxUrl.split(',')
  2217. }
  2218. if(gdlist[key].shareholderBusinessUrl){
  2219. fjurl.zhizhao=gdlist[key].shareholderBusinessUrl.split(',')
  2220. }
  2221. shFjList.push(fjurl)
  2222. })
  2223. this.gdlist=JSON.parse(JSON.stringify(shFjList))
  2224. }
  2225. // 反担保附件
  2226. if(data.guaranteeInfoList&&data.guaranteeInfoList.length>0){
  2227. var fdarlist=[],fdaqylist=[];
  2228. var gInfoList=data.guaranteeInfoList;
  2229. Object.keys(gInfoList).some((key) => {
  2230. var obj=gInfoList[key];
  2231. var fdblist=gInfoList[key].guaranteeInfoFjList;
  2232. fdblist=fdblist.filter((ite) => {
  2233. return ite.remark!=1
  2234. })
  2235. obj.guaranteeInfoFjList=JSON.parse(JSON.stringify(fdblist))
  2236. if(obj.type==1){
  2237. fdarlist.push(obj)
  2238. }else if(obj.type==2){
  2239. fdaqylist.push(obj)
  2240. }
  2241. })
  2242. if(fdarlist&&fdarlist.length){
  2243. this.fdarlist=JSON.parse(JSON.stringify(fdarlist))
  2244. }
  2245. if(fdaqylist&&fdaqylist.length){
  2246. this.fdaqylist=JSON.parse(JSON.stringify(fdaqylist))
  2247. }
  2248. }
  2249. this.getSbjListFn()
  2250. this.getGdFjlist()
  2251. }
  2252. })
  2253. },
  2254. getSubmit(){
  2255. var that=this;
  2256. if(this.loadflag){
  2257. return
  2258. }
  2259. // 判断附件是否完整
  2260. var params=JSON.parse(JSON.stringify(this.datainfo));
  2261. if(!params.enterpriseName){
  2262. this.$toast("请选择企业名称")
  2263. return
  2264. }
  2265. if(!params.categoryType){
  2266. this.$toast("请选择行业类型")
  2267. return
  2268. }
  2269. if(!params.customerType){
  2270. this.$toast("请选择用户类型")
  2271. return
  2272. }
  2273. if(!params.corporationFront){
  2274. this.$toast("请上传法人身份证人像面")
  2275. return
  2276. }
  2277. if(!params.corporationBack){
  2278. this.$toast("请上传法人身份证国徽面")
  2279. return
  2280. }
  2281. if(!params.isLoan){
  2282. this.$toast("请选择有无贷款")
  2283. return
  2284. }
  2285. if(!this.frhyzk){
  2286. this.$toast("请选择婚姻状态")
  2287. return
  2288. }
  2289. if(params.corporationMaritalStatus==1){
  2290. if(!params.spouseFront){
  2291. this.$toast("请上传配偶身份证人像面")
  2292. return
  2293. }
  2294. if(!params.spouseBack){
  2295. this.$toast("请上传配偶身份证国徽面")
  2296. return
  2297. }
  2298. }
  2299. if(!params.corporationPhone){
  2300. // 验证手机号
  2301. this.$toast("请输入法人手机号")
  2302. return
  2303. }
  2304. let regphone = /^1[3|4|5|6|7|8|9][0-9]\d{8}$/
  2305. if (params.corporationPhone && !regphone.test(params.corporationPhone)) {
  2306. that.$toast("请输入正确的法人手机号")
  2307. return
  2308. }
  2309. var gdlist=this.gdlist;
  2310. var shFjList=[]
  2311. var a=0;
  2312. Object.keys(gdlist).some((key) => {
  2313. var str="请上传股东"+(Number(key)+1)
  2314. if(gdlist[key].zhizhao<1 && !gdlist[key].cardz){
  2315. a=1;
  2316. that.$toast(str+'营业执照或者身份证')
  2317. return true;
  2318. }else{
  2319. if(gdlist[key].cardz){
  2320. if(!gdlist[key].cardf){
  2321. a=1;
  2322. that.$toast(str+'身份证国徽面')
  2323. return true;
  2324. }
  2325. }
  2326. }
  2327. // if(!gdlist[key].cardz){
  2328. // a=1;
  2329. // that.$toast(str+"身份证人像面")
  2330. // return true;
  2331. // }else if(!gdlist[key].cardf){
  2332. // a=1;
  2333. // that.$toast(str+'身份证国徽面')
  2334. // return true;
  2335. // }
  2336. if(gdlist[key].zxurl<1){
  2337. a=1;
  2338. that.$toast(str+'征信报告')
  2339. return true;
  2340. }
  2341. var fjurl={
  2342. shareholderFrontUrl:gdlist[key].cardz,
  2343. shareholderBackUrl:gdlist[key].cardf,
  2344. shareholderZxUrl:gdlist[key].zxurl.join(','),
  2345. shareholderBusinessUrl:gdlist[key].zhizhao.join(','),
  2346. shareholderName:gdlist[key].shareholderName,
  2347. shareholderIdCard:gdlist[key].shareholderIdCard,
  2348. shareholderFjId:gdlist[key].shareholderFjId,
  2349. shareholderZxUrlPdf:gdlist[key].shareholderZxUrlPdf,
  2350. loanApplicationNumber:gdlist[key].loanApplicationNumber,
  2351. }
  2352. shFjList.push(fjurl)
  2353. })
  2354. params.shareholderFjList=JSON.parse(JSON.stringify(shFjList))
  2355. if(a==1){
  2356. return
  2357. }
  2358. if(!params.guaranteeType){
  2359. this.$toast("请选择担保类型")
  2360. return
  2361. }
  2362. var flist=JSON.parse(JSON.stringify(this.filelist));
  2363. var btfiles=JSON.parse(JSON.stringify(this.btfiles));
  2364. var sqbtfiles=JSON.parse(JSON.stringify(this.sqbtfiles));
  2365. var fdarlist=JSON.parse(JSON.stringify(this.fdarlist))
  2366. var fbdfiles=JSON.parse(JSON.stringify(this.fbdfiles))
  2367. var fdaqylist=JSON.parse(JSON.stringify(this.fdaqylist))
  2368. var fdbqyfiles=JSON.parse(JSON.stringify(this.fdbqyfiles))
  2369. var guaranteeInfoList=[]
  2370. if(params.guaranteeType.indexOf('1')>-1){//抵押担保
  2371. var obj={tit:'企业固定资产证明',type:'qygdzczm'}
  2372. sqbtfiles.push(obj)
  2373. }
  2374. // 反担保人担保
  2375. var d=0,da=0;
  2376. Object.keys(fdarlist).some((key) => {
  2377. fdarlist[key].loanApplicationNumber=that.datainfo.loanApplicationNumber
  2378. fdarlist[key].loanApplicationId=that.datainfo.loanApplicationId
  2379. var str="请上传反担保人"+(Number(key)+1)
  2380. var flist=fdarlist[key].guaranteeInfoFjList;
  2381. var guaranteePhone=fdarlist[key].guaranteePhone;
  2382. if(flist&&flist.length){
  2383. da=1;
  2384. guaranteeInfoList.push(fdarlist[key])
  2385. if(params.guaranteeType.indexOf('2')>-1){
  2386. if(!guaranteePhone){
  2387. that.$toast(str+'手机号')
  2388. d=1;
  2389. return true;
  2390. }
  2391. // 验证手机号
  2392. if (guaranteePhone && !regphone.test(guaranteePhone)) {
  2393. that.$toast("请输入正确的反担保人"+(Number(key)+1)+"手机号")
  2394. d=1;
  2395. return true;
  2396. }
  2397. Object.keys(fbdfiles).some((fkey)=>{
  2398. if (flist.find(l => l.type == fbdfiles[fkey].type)) {
  2399. return false
  2400. }else{
  2401. d=1;
  2402. that.$toast(str+fbdfiles[fkey].tit)
  2403. return true;
  2404. }
  2405. })
  2406. }
  2407. }else{
  2408. if(fdarlist[key].guaranteeInfoId&&!guaranteePhone){
  2409. this.fdbdeldIdList.push(fdarlist[key].guaranteeInfoId)
  2410. }
  2411. if(guaranteePhone){
  2412. guaranteeInfoList.push(fdarlist[key])
  2413. }
  2414. }
  2415. if(d==1){
  2416. return true
  2417. }
  2418. })
  2419. if(da==0&&params.guaranteeType.indexOf('2')>-1){
  2420. that.$toast('请上传反担保人身份证人面像')
  2421. return true
  2422. }
  2423. if(d==1){
  2424. return
  2425. }
  2426. // 反担保企业
  2427. var e=0,ea=0;
  2428. Object.keys(fdaqylist).some((key) => {
  2429. fdaqylist[key].loanApplicationNumber=that.datainfo.loanApplicationNumber
  2430. fdaqylist[key].loanApplicationId=that.datainfo.loanApplicationId
  2431. var str="请上传反担保企业"+(Number(key)+1)
  2432. var flist=fdaqylist[key].guaranteeInfoFjList;
  2433. if(flist&&flist.length){
  2434. ea=1;
  2435. guaranteeInfoList.push(fdaqylist[key])
  2436. if(params.guaranteeType.indexOf('4')>-1){//企业保证
  2437. Object.keys(fdbqyfiles).some((fkey)=>{
  2438. if (flist.find(l => l.type == fdbqyfiles[fkey].type)) {
  2439. return false
  2440. }else{
  2441. e=1;
  2442. that.$toast(str+fdbqyfiles[fkey].tit)
  2443. return true;
  2444. }
  2445. })
  2446. }
  2447. }else{
  2448. if(fdaqylist[key].guaranteeInfoId){
  2449. this.fdbdeldIdList.push(fdaqylist[key].guaranteeInfoId)
  2450. }
  2451. }
  2452. if(e==1){
  2453. return true
  2454. }
  2455. })
  2456. if(ea==0&&params.guaranteeType.indexOf('4')>-1){
  2457. that.$toast('请上传反担保企业营业执照')
  2458. return
  2459. }
  2460. if(e==1){
  2461. return
  2462. }
  2463. // console.log(guaranteeInfoList)
  2464. // return
  2465. // if(params.guaranteeType.indexOf('2')>-1){//反担保人担保
  2466. // // 选择担保人担保
  2467. // if(!params.guaranteePhone){
  2468. // // 验证手机号
  2469. // this.$toast("请输入反担保人手机号")
  2470. // return
  2471. // }
  2472. // if (params.guaranteePhone && !regphone.test(params.guaranteePhone)) {
  2473. // that.$toast("请输入正确的反担保人手机号")
  2474. // return
  2475. // }
  2476. // if(!params.guaranteeFront){
  2477. // this.$toast("请上传反担保人身份证人像面")
  2478. // return
  2479. // }
  2480. // if(!params.guaranteeBack){
  2481. // this.$toast("请上传反担保人身份证国徽面")
  2482. // return
  2483. // }
  2484. // }
  2485. if(params.guaranteeType.indexOf('3')>-1){//企业保证
  2486. var obj={tit:'反担保抵(质)押复印件',type:'fdbdyfyj'}
  2487. sqbtfiles.push(obj)
  2488. }
  2489. // if(params.guaranteeType.indexOf('4')>-1){//企业保证
  2490. // var obj={tit:'反担保企业营业执照',type:'fdbqyyyzz'}
  2491. // var objb={tit:'反担保企业征信',type:'fdbqyzx'}
  2492. // btfiles.push(obj)
  2493. // btfiles.push(objb)
  2494. // }
  2495. var b=0;
  2496. Object.keys(btfiles).some((key) => {
  2497. if (flist.find(l => l.type == btfiles[key].type)) {
  2498. return false
  2499. }else{
  2500. b=1;
  2501. that.$toast('请上传'+btfiles[key].tit)
  2502. return true;
  2503. }
  2504. })
  2505. if(b==1){
  2506. return
  2507. }
  2508. if(!params.isDuty){
  2509. this.$toast("请选择是否免税企业")
  2510. return
  2511. }
  2512. var sbfjlist=this.sbfjlist;
  2513. var sbArr=[]
  2514. var c=0;
  2515. Object.keys(sqbtfiles).some((key) => {
  2516. if (sbfjlist.find(l => (l.val == sqbtfiles[key].type) && l.fjlist.length>0)) {
  2517. return false
  2518. }else{
  2519. c=1;
  2520. that.$toast('请上传'+sqbtfiles[key].tit)
  2521. return true;
  2522. }
  2523. })
  2524. if(c==1){
  2525. return
  2526. }
  2527. sbfjlist.forEach(ite=>{
  2528. if(ite.fjlist&&ite.fjlist.length){
  2529. ite.fjlist.forEach(itet=>{
  2530. flist.push(itet)
  2531. })
  2532. }
  2533. })
  2534. if(this.fjRemarkFj&&this.fjRemarkFj.length>0){
  2535. flist=flist.concat(this.fjRemarkFj)
  2536. }
  2537. params.loanApplicationFjList=JSON.parse(JSON.stringify(flist))
  2538. params.loanApplicationFjIdList=JSON.parse(JSON.stringify(this.fjdelIdList))
  2539. params.shareholderFjIdList=JSON.parse(JSON.stringify(this.gdFjdelIdList))
  2540. params.guaranteeInfoList=JSON.parse(JSON.stringify(guaranteeInfoList))
  2541. params.guaranteeInfoFjIdList=JSON.parse(JSON.stringify(this.fdbdelxIdList))
  2542. params.guaranteeInfoIdList=JSON.parse(JSON.stringify(this.fdbdeldIdList))
  2543. console.log(this.fjdelIdList,this.gdFjdelIdList,222,this.fdbdelxIdList,this.fdbdeldIdList)
  2544. uni.showLoading({
  2545. title: '加载中'
  2546. });
  2547. this.loadflag=true;
  2548. if(this.ptype=='add'){
  2549. getApplicationAdd(params).then(res=>{
  2550. uni.hideLoading();
  2551. this.loadflag=false;
  2552. if(res.code==200){
  2553. that.ischange=false;
  2554. that.$toast("新增成功,请稍后重新刷新")
  2555. setTimeout(function(){
  2556. that.$tab.redirectTo('/work/pages/success')
  2557. },1200)
  2558. }
  2559. }).catch(error => {
  2560. uni.hideLoading();
  2561. this.loadflag=false;
  2562. })
  2563. }else{
  2564. getApplicationEdit(params).then(res=>{
  2565. uni.hideLoading();
  2566. this.loadflag=false;
  2567. if(res.code==200){
  2568. that.ischange=false;
  2569. that.$toast("修改成功,请稍后重新刷新")
  2570. setTimeout(function(){
  2571. uni.$emit('refreshywlist')
  2572. uni.navigateBack({
  2573. delta:2
  2574. })
  2575. },1200)
  2576. }
  2577. }).catch(error => {
  2578. uni.hideLoading();
  2579. this.loadflag=false;
  2580. })
  2581. }
  2582. //
  2583. // this.$tab.navigateTo('/work/pages/success')
  2584. },
  2585. getaddImage(e){
  2586. let that = this;
  2587. let file =[],count=9
  2588. // if(e=='zj'){
  2589. // file = that.zjfile;
  2590. // count=9
  2591. // }else{
  2592. // file = that.mjfile;
  2593. // count=9
  2594. // }
  2595. uni.chooseImage({
  2596. count: 1,
  2597. success:function(res){
  2598. let img= res.tempFilePaths;
  2599. if(img.length + file.length > count){
  2600. uni.showToast({
  2601. title: '最多上传'+count+'张图片',
  2602. icon: 'none',
  2603. duration: 2000
  2604. })
  2605. }else{
  2606. let imglen = res.tempFilePaths.length;
  2607. var fuwufile = [];
  2608. uploadmore('/common/upload',img,0,0,0,imglen,fuwufile,function(rs){
  2609. if(e=='zj'){
  2610. that.zjfile = that.zjfile.concat(rs);
  2611. that.datainfo.identificationPhoto=that.zjfile.join(',')
  2612. }
  2613. })
  2614. }
  2615. }
  2616. });
  2617. },
  2618. // 人像面
  2619. ponuploadEnd(item,fileVal,bigType){
  2620. var newobj={}
  2621. var responseText=JSON.parse(item.responseText)
  2622. if(responseText.code==200){
  2623. var url=responseText.fileName
  2624. var urlOnline=responseText.urlOnline
  2625. if(fileVal=='frsfzrmx'){
  2626. this.datainfo.corporationFront=url;
  2627. // 获取姓名 身份证号
  2628. this.getocrIdCard(urlOnline,fileVal)
  2629. }else if(fileVal=='frsfzghm'){
  2630. this.datainfo.corporationBack=url
  2631. }else if(fileVal=='frsfzpormx'){
  2632. this.datainfo.spouseFront=url
  2633. this.getocrIdCard(urlOnline,fileVal)
  2634. }else if(fileVal=='frsfzpoghm'){
  2635. this.datainfo.spouseBack=url
  2636. // }else if(fileVal=='fdbrsfzrmx'){
  2637. // this.getocrIdCard(urlOnline,fileVal)
  2638. // this.datainfo.guaranteeFront=url
  2639. // }else if(fileVal=='fdbrsfzghm'){
  2640. // this.datainfo.guaranteeBack=url
  2641. }
  2642. }else{
  2643. this.$toast(responseText.msg)
  2644. }
  2645. },
  2646. getDocumentList(){
  2647. var params={
  2648. explainType:2
  2649. }
  2650. getDocumentList(params).then(res=>{
  2651. if(res.code==200){
  2652. var list=res.rows;
  2653. if(list&&list.length){
  2654. var content=list[0].explainContent;
  2655. this.content=this.formatRichText(content);
  2656. // 图片
  2657. if(list[0].explainImage){
  2658. this.xwimgList=list[0].explainImage.split(',')
  2659. }
  2660. }
  2661. }
  2662. })
  2663. },
  2664. //解析富文本方法
  2665. formatRichText(html) {
  2666. let newContent = html.replace(/<img[^>]*>/gi, function(match, capture) {
  2667. match = match.replace(/style="[^"]+"/gi, '').replace(/style='[^']+'/gi, '').replace(/style=""/gi, '');
  2668. match = match.replace(/width="[^"]+"/gi, '').replace(/width='[^']+'/gi, '');
  2669. match = match.replace(/height="[^"]+"/gi, '').replace(/height='[^']+'/gi, '');
  2670. return match;
  2671. });
  2672. newContent = newContent.replace(/style="[^"]+"/gi, function(match, capture) {
  2673. match = match.replace(/width:[^;]+;/gi, 'max-width:100%;').replace(/width:[^;]+;/gi, 'max-width:100%;');
  2674. return match;
  2675. });
  2676. newContent = newContent.replace(/<br[^>]*\/>/gi, '');
  2677. newContent = newContent.replace(/\<img src="/gi,
  2678. '<img style="max-width:100%;height:auto;display:block;margin:10rpx auto;" src="' +baseUrlimg);
  2679. return newContent;
  2680. },
  2681. getOcrBusinessLicense(url,fileName,idx){
  2682. var that=this;
  2683. var obj=this.gdlist[idx];
  2684. var params={
  2685. image:url,
  2686. }
  2687. getOcrBusinessLicense(params).then(res=>{
  2688. if(res.code==200){
  2689. var params=JSON.parse(JSON.stringify(res.data))
  2690. obj.shareholderName=params.enterpriseName;
  2691. obj.shareholderIdCard=params.creditCode;
  2692. obj.zhizhao[0]=fileName
  2693. this.gdlist.splice(idx,1,obj)
  2694. this.$toast('营业执照上传成功')
  2695. }
  2696. })
  2697. },
  2698. // 反担保企业识别
  2699. getOcrBusinessLicensefdb(newobj,url,idx){
  2700. var that=this;
  2701. var params={
  2702. image:url,
  2703. }
  2704. getOcrBusinessLicense(params).then(res=>{
  2705. if(res.code==200){
  2706. var params=JSON.parse(JSON.stringify(res.data))
  2707. var obj=this.fdaqylist[idx];
  2708. obj.guaranteeName=params.enterpriseName;
  2709. obj.guaranteeIdCard=params.creditCode;
  2710. if(obj.guaranteeInfoFjList&&obj.guaranteeInfoFjList.length){
  2711. var fdblist=obj.guaranteeInfoFjList
  2712. that.fdbdelxIdList.push(fdblist[0].guaranteeInfoFjId)
  2713. }
  2714. obj.guaranteeInfoFjList[0]=JSON.parse(JSON.stringify(newobj))
  2715. // obj.guaranteeInfoFjList.push(newobj)
  2716. this.fdaqylist.splice(idx,1,obj)
  2717. this.$toast('营业执照上传成功')
  2718. }
  2719. })
  2720. },
  2721. getocrIdCard(url,type,idx){
  2722. var that=this;
  2723. var burl=url;
  2724. var params={
  2725. image:url,
  2726. idCardSide:'front'
  2727. }
  2728. getOcrIdCard(params).then(res=>{
  2729. if(res.code==200){
  2730. var data=res.data;
  2731. if(type=='frsfzrmx'){
  2732. that.datainfo.corporationName=data.realName
  2733. that.datainfo.corporationIdCard=data.idCard
  2734. }else if(type=='frsfzpormx'){
  2735. that.datainfo.spouseName=data.realName
  2736. that.datainfo.spouseIdCard=data.idCard
  2737. }else if(type=='fdbrsfzrmx'){
  2738. var obj=this.fdarlist[idx];
  2739. obj.guaranteeName=data.realName;
  2740. obj.guaranteeIdCard=data.idCard;
  2741. this.fdarlist.splice(idx,1,obj)
  2742. }
  2743. }
  2744. }).catch(error => {
  2745. if(type=='fdbrsfzrmx'){
  2746. var obj=this.fdarlist[idx].guaranteeInfoFjList;
  2747. const index = obj.findIndex(text => text.type === "fdbrsfzrmx");
  2748. if(index!=-1){
  2749. this.fdarlist[idx].guaranteeInfoFjList.splice(index,1)
  2750. }
  2751. }else if(type=='frsfzrmx'){
  2752. this.datainfo.corporationFront=''
  2753. }else if(type=='frsfzpormx'){
  2754. this.datainfo.spouseFront=''
  2755. }
  2756. })
  2757. },
  2758. onuploadEnd(item,fileVal,bigType) {
  2759. var newobj={}
  2760. var responseText=JSON.parse(item.responseText)
  2761. if(responseText.code==200){
  2762. newobj.name=responseText.newFileName;
  2763. newobj.oldName=responseText.originalFilename;
  2764. newobj.url=responseText.fileName;
  2765. newobj.type=fileVal;
  2766. newobj.bigType=bigType;
  2767. this.filelist.push(newobj)
  2768. this.datainfo.loanApplicationFjList=JSON.parse(JSON.stringify(this.filelist))
  2769. if(fileVal=='fdbqyyyzz'){
  2770. this.datainfo.guaranteeShareholderName='';
  2771. }
  2772. }else{
  2773. this.$toast(responseText.msg)
  2774. }
  2775. },
  2776. // 股东附件上传 fileVal 为索引
  2777. gdonuploadEnd(item,fileVal,bigType){
  2778. var idx=Number(fileVal);
  2779. var type=bigType;
  2780. var obj=this.gdlist[idx];
  2781. var responseText=JSON.parse(item.responseText);
  2782. if(responseText.code==200){
  2783. if(type=='cardz'){
  2784. obj.cardz=responseText.fileName
  2785. }else if(type=='cardf'){
  2786. obj.cardf=responseText.fileName
  2787. }else if(type=='zx'){
  2788. obj.zxurl.push(responseText.fileName)
  2789. // obj.zxurl[0]=responseText.fileName
  2790. }else if(type=='zhz'){
  2791. // obj.zhizhao.push(responseText.fileName)
  2792. // obj.zhizhao[0]=responseText.fileName
  2793. this.getOcrBusinessLicense(responseText.urlOnline,responseText.fileName,idx)
  2794. return
  2795. }
  2796. console.log(this.gdlist,3)
  2797. this.gdlist.splice(idx,1,obj)
  2798. // this.datainfo.shareholderFjList=JSON.parse(JSON.stringify(this.gdlist))
  2799. }else{
  2800. this.$toast(responseText.msg)
  2801. }
  2802. },
  2803. // 反担保附件上传bigType 为索引
  2804. fdbuploadEnd(item,fileVal,bigType){
  2805. var idx=Number(bigType);
  2806. var obj=this.fdarlist[idx].guaranteeInfoFjList;
  2807. var responseText=JSON.parse(item.responseText);
  2808. if(responseText.code==200){
  2809. var urlOnline=responseText.urlOnline
  2810. // 附件赋值
  2811. var newobj={};
  2812. newobj.name=responseText.newFileName;
  2813. newobj.oldName=responseText.originalFilename;
  2814. newobj.url=responseText.fileName;
  2815. newobj.type=fileVal;
  2816. if(fileVal=='fdbrsfzrmx'||fileVal=='fdbrsfzghm'){//身份证
  2817. // 找索引
  2818. const index = obj.findIndex(text => text.type === fileVal);
  2819. if(index!=-1){
  2820. this.fdarlist[idx].guaranteeInfoFjList.splice(index,1,newobj)
  2821. }else{
  2822. this.fdarlist[idx].guaranteeInfoFjList.push(newobj)
  2823. }
  2824. if(fileVal=='fdbrsfzrmx'){
  2825. this.getocrIdCard(urlOnline,fileVal,idx)
  2826. }
  2827. return
  2828. }
  2829. this.fdarlist[idx].guaranteeInfoFjList.push(newobj)
  2830. }else{
  2831. this.$toast(responseText.msg)
  2832. }
  2833. },
  2834. // 反担保企业附件上传bigType 为索引
  2835. fdbqyuploadEnd(item,fileVal,bigType){
  2836. var idx=Number(bigType);
  2837. var obj=this.fdaqylist[idx].guaranteeInfoFjList;
  2838. var responseText=JSON.parse(item.responseText);
  2839. if(responseText.code==200){
  2840. var urlOnline=responseText.urlOnline
  2841. // 附件赋值
  2842. var newobj={};
  2843. newobj.name=responseText.newFileName;
  2844. newobj.oldName=responseText.originalFilename;
  2845. newobj.url=responseText.fileName;
  2846. newobj.type=fileVal;
  2847. if(fileVal=='fdbqyyyzz'){
  2848. this.getOcrBusinessLicensefdb(newobj,urlOnline,idx)
  2849. return
  2850. }
  2851. this.fdaqylist[idx].guaranteeInfoFjList.push(newobj)
  2852. }else{
  2853. this.$toast(responseText.msg)
  2854. }
  2855. },
  2856. // 申请附件上传
  2857. fjonuploadEnd(item,fileVal,bigType,idx){
  2858. var newobj={};
  2859. var sbfjlist=this.sbfjlist[idx].fjlist;
  2860. var responseText=JSON.parse(item.responseText)
  2861. if(responseText.code==200){
  2862. newobj.name=responseText.newFileName;
  2863. newobj.oldName=responseText.originalFilename;
  2864. newobj.url=responseText.fileName;
  2865. newobj.type=fileVal;
  2866. newobj.bigType=bigType;
  2867. this.sbfjlist[idx].fjlist.push(newobj)
  2868. }else{
  2869. this.$toast(responseText.msg)
  2870. }
  2871. },
  2872. getDelsbFj(idx,fidx){
  2873. var that=this;
  2874. var obj=this.sbfjlist[idx];
  2875. uni.showModal({
  2876. title: '确认删除',
  2877. content: "是否确认删除",
  2878. cancelText: '取消',
  2879. confirmText: '确认',
  2880. success: function(res) {
  2881. if (res.confirm) {
  2882. var fjlist=obj.fjlist[fidx]
  2883. if(fjlist.fjId){
  2884. that.fjdelIdList.push(fjlist.fjId)
  2885. }
  2886. obj.fjlist.splice(fidx,1)
  2887. that.sbfjlist.splice(idx,1,obj)
  2888. } else if (res.cancel) {
  2889. }
  2890. }
  2891. });
  2892. },
  2893. // 删除反担保
  2894. getfdbDelFj(idx,fidx,type){
  2895. var that=this;
  2896. uni.showModal({
  2897. title: '确认删除',
  2898. content: "是否确认删除",
  2899. cancelText: '取消',
  2900. confirmText: '确认',
  2901. success: function(res) {
  2902. if (res.confirm) {
  2903. if(type==1){//反担保人
  2904. var obj=JSON.parse(JSON.stringify(that.fdarlist[fidx]));
  2905. var fdblist=obj.guaranteeInfoFjList[idx];
  2906. if(fdblist.guaranteeInfoFjId){
  2907. that.fdbdelxIdList.push(fdblist.guaranteeInfoFjId)
  2908. }
  2909. obj.guaranteeInfoFjList.splice(idx,1)
  2910. that.fdarlist.splice(fidx,1,obj)
  2911. }else if(type==2) {//反担保企业
  2912. var obj=JSON.parse(JSON.stringify(that.fdaqylist[fidx]));
  2913. var fdblist=obj.guaranteeInfoFjList[idx];
  2914. if(fdblist.guaranteeInfoFjId){
  2915. that.fdbdelxIdList.push(fdblist.guaranteeInfoFjId)
  2916. }
  2917. obj.guaranteeInfoFjList.splice(idx,1)
  2918. that.fdaqylist.splice(fidx,1,obj)
  2919. }
  2920. } else if (res.cancel) {
  2921. }
  2922. }
  2923. });
  2924. },
  2925. getDelgdFj(idx,zxidx){
  2926. var obj=this.gdlist[idx];
  2927. var that=this;
  2928. uni.showModal({
  2929. title: '确认删除',
  2930. content: "是否确认删除",
  2931. cancelText: '取消',
  2932. confirmText: '确认',
  2933. success: function(res) {
  2934. if (res.confirm) {
  2935. obj.zxurl.splice(zxidx,1)
  2936. that.gdlist.splice(idx,1,obj)
  2937. } else if (res.cancel) {
  2938. }
  2939. }
  2940. });
  2941. },
  2942. getDelgdyy(idx,zxidx){
  2943. var obj=this.gdlist[idx];
  2944. var that=this;
  2945. uni.showModal({
  2946. title: '确认删除',
  2947. content: "是否确认删除",
  2948. cancelText: '取消',
  2949. confirmText: '确认',
  2950. success: function(res) {
  2951. if (res.confirm) {
  2952. obj.zhizhao.splice(zxidx,1)
  2953. that.gdlist.splice(idx,1,obj)
  2954. } else if (res.cancel) {
  2955. }
  2956. }
  2957. });
  2958. },
  2959. getDelFj(idx){
  2960. var that=this;
  2961. uni.showModal({
  2962. title: '确认删除',
  2963. content: "是否确认删除",
  2964. cancelText: '取消',
  2965. confirmText: '确认',
  2966. success: function(res) {
  2967. if (res.confirm) {
  2968. var ite=that.filelist[idx];
  2969. if(ite.fjId){
  2970. that.fjdelIdList.push(ite.fjId)
  2971. }
  2972. that.filelist.splice(idx,1)
  2973. that.datainfo.loanApplicationFjList=JSON.parse(JSON.stringify(that.filelist))
  2974. } else if (res.cancel) {
  2975. }
  2976. }
  2977. });
  2978. },
  2979. getDownloader(path,name){
  2980. // console.log(path,name)
  2981. // #ifdef APP-PLUS
  2982. self.getFilePermissions(function(res){
  2983. if(res==1){
  2984. uni.showLoading({
  2985. title: '加载中'
  2986. });
  2987. var url = baseUrl + path;
  2988. let dtask = plus.downloader.createDownload(url, {
  2989. filename: 'file://storage/emulated/0/'+baseName+'/' + name
  2990. }, (d, status) => {
  2991. //d为下载的文件对象
  2992. if (status == 200) {
  2993. uni.hideLoading();
  2994. uni.showToast({
  2995. icon: 'none',
  2996. mask: true,
  2997. title: '已保存到文件夹:/'+baseName+'/'+ name, //保存路径
  2998. duration: 3000,
  2999. });
  3000. //下载成功,d.filename是文件在保存在本地的相对路径,使用下面的API可转为平台绝对路径
  3001. let fileSaveUrl = plus.io.convertLocalFileSystemURL(d.filename);
  3002. setTimeout(() => {
  3003. plus.runtime.openFile(d.filename); //选择软件打开文件
  3004. }, 1500)
  3005. } else {
  3006. //下载失败
  3007. uni.hideLoading();
  3008. plus.downloader.clear(); //清除下载任务
  3009. uni.showToast({
  3010. icon: 'none',
  3011. mask: true,
  3012. title: '下载失败,请稍后重试',
  3013. });
  3014. }
  3015. })
  3016. dtask.start();
  3017. }else{
  3018. uni.hideLoading();
  3019. uni.showToast({
  3020. title: '无法获取权限,文件下载将出错!',
  3021. icon: 'none',
  3022. })
  3023. }
  3024. })
  3025. // #endif
  3026. },
  3027. getExportMb(ite){
  3028. var that=this;
  3029. var params=JSON.parse(JSON.stringify(this.datainfo));
  3030. if(ite.val=='wtdbsqs'){
  3031. params.type=1;
  3032. }else{
  3033. params.type=11;
  3034. }
  3035. params.bigType='b';
  3036. params.fileType=ite.val;
  3037. getExportMb(params).then(res=>{
  3038. if(res.code==200){
  3039. var data=res.data;
  3040. var url=data.path;
  3041. var name=data.fileName;
  3042. that.getDownloader(url,name)
  3043. }
  3044. })
  3045. },
  3046. getDown(e){
  3047. uni.showLoading({
  3048. title: '加载中'
  3049. });
  3050. var url=baseUrl+e;
  3051. let index1 = e.lastIndexOf("."); // 得到一个索引值
  3052. let index2 = e.length;
  3053. let type = e.substring(index1, index2);
  3054. if ((type.indexOf('jpg') > -1 || type.indexOf('jpeg') > -1 || type.indexOf('png') > -1)) {
  3055. uni.previewImage({
  3056. current: 0,
  3057. urls: [url],
  3058. // background: '#ffffff'
  3059. });
  3060. uni.hideLoading();
  3061. } else {
  3062. uni.downloadFile({
  3063. url: url,//文件的下载路径
  3064. success(result) {
  3065. uni.hideLoading()
  3066. var filePath = result.tempFilePath;
  3067. uni.openDocument({
  3068. filePath: filePath,
  3069. showMenu: true,
  3070. success: function (res) {
  3071. // console.log('打开文档成功');
  3072. }
  3073. });
  3074. },
  3075. fail(res) {uni.hideLoading()}
  3076. })
  3077. }
  3078. },
  3079. }
  3080. }
  3081. </script>
  3082. <style lang="scss" scoped>
  3083. .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;}
  3084. .addbox .bgf /deep/ .uni-forms-item:last-child{border-bottom: none;}
  3085. .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;}
  3086. .addbox /deep/ .uni-easyinput{flex: 1;text-align: left;font-size: 30rpx;color: #222327;}
  3087. .addbox /deep/ .uni-easyinput__content-textarea{min-height: 40rpx;font-size: 30rpx;}
  3088. .addbox /deep/ .uni-easyinput__placeholder-class{font-size: 30rpx;color: #AAAAAA;}
  3089. .addbox /deep/ .uni-input-input{font-size: 30rpx;}
  3090. .addbox /deep/ .uni-easyinput__content-input{padding-left: 0 !important;}
  3091. .addbox /deep/ .uni-textarea-textarea{font-size: 30rpx;}
  3092. .addbox /deep/ .is-disabled{color: #222327;background-color: #ffffff !important;}
  3093. .isborder{border-bottom: 2rpx solid #E6E6E6;}
  3094. .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;
  3095. position: absolute;left: -240rpx;top:50%;transform: translateY(-50%);
  3096. text{color: #AAAAAA;font-size: 26rpx;font-weight: normal;display: block;
  3097. &.del{
  3098. color: #FF6969;margin-top: 6rpx;text-align: center;padding: 4rpx 0;
  3099. }
  3100. }
  3101. }
  3102. .navtop{
  3103. position: fixed;left:0;right: 0;top: 0;z-index: 2;
  3104. }
  3105. .topl{width: 60rpx;height: 60rpx;display: flex;align-items: center;justify-content: center;
  3106. .backimg{width: 40rpx;height: 30rpx;}
  3107. }
  3108. .edit{font-weight: 500;font-size: 26rpx;color: #FFFFFF;display: flex;align-items: center;
  3109. image{width: 24rpx;height: 26rpx;margin-right: 10rpx;}
  3110. .img{width: 24rpx;height: 26rpx;margin-right: 10rpx;}
  3111. .txt{font-weight: 500;font-size: 26rpx;color: #FFFFFF;}
  3112. }
  3113. .editcir{box-shadow: 0px 0px 20rpx 0px rgba(0,169,240,0.6);
  3114. 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;
  3115. .img{margin-bottom: 8rpx;margin-right: 0;}
  3116. }
  3117. .addbox{padding: 140rpx 0 136rpx;
  3118. .addtit{font-weight: bold;padding: 18rpx 34rpx;font-size: 26rpx;color: #666666;
  3119. text{color: #DF0303;margin-right: 8rpx;}
  3120. .ywimg{width: 30rpx;height: 30rpx;margin-left: 16rpx;}
  3121. &.tips{font-weight: 500;font-size: 24rpx;color: #FF6969;}
  3122. }
  3123. .lbtabp{
  3124. display: flex;align-items: center;
  3125. view{flex: 1;font-size: 30rpx;color: #222327;}
  3126. .rimg{flex: 0 0 auto;width: 16rpx;height: 26rpx;flex: 0 0 auto;margin-left: 18rpx;}
  3127. }
  3128. .ywicon{font-weight: 400;font-size: 26rpx;color: $com-cd3;padding-right: 14rpx;
  3129. image{width: 26rpx;height: 26rpx;margin-right: 8rpx;}
  3130. }
  3131. // 上传样式
  3132. .phobox{display: flex;flex-wrap: wrap;justify-content: space-between;
  3133. .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;
  3134. .photop{width: 200rpx;height: 126rpx;position: relative;
  3135. .bgimg{width: 100%;height: 100%;}
  3136. .addimg{width: 34rpx;height: 30rpx;position: absolute;left: 50%;margin-left: -17rpx;top: 50%;margin-top: -15rpx;z-index: 1;}
  3137. .delimg{position: absolute;width: 24rpx;height: 24rpx;right: -12rpx;top: -12rpx;}
  3138. .bgimga{width: 100%;height: 100%;position: absolute;left:0;right: 0;top:0;bottom: 0;}
  3139. }
  3140. // .pupdata{position: absolute;left: 0;right: 0;top:0;bottom: 0;opacity: 0;}
  3141. .photit{font-weight: 500;font-size: 20rpx;color: #AAAAAA;margin-top: 18rpx;max-width:200rpx;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;
  3142. &.atit{position: absolute;left: 50%;transform: translate(-50%);bottom: 4rpx;word-break: keep-all;max-width: none;}
  3143. }
  3144. }
  3145. .frdelimg{
  3146. position: absolute;width: 32rpx;height: 32rpx;right: -16rpx;top: -16rpx;
  3147. image{width: 24rpx;height: 24rpx;}
  3148. }
  3149. }
  3150. .addgdbox{padding: 34rpx 10rpx 36rpx;}
  3151. // 附件
  3152. .fjbox{padding: 24rpx 0;
  3153. min-height: 150rpx;box-sizing: border-box;
  3154. // &:last-child{border-bottom: none;border-bottom: 2rpx solid #E6E6E6;}
  3155. .fjtop{
  3156. &.chek{
  3157. .chtit{flex: 1;font-size: 30rpx;color: #222327;text-align: right;}
  3158. .rimg{flex: 0 0 auto;width: 16rpx;height: 26rpx;flex: 0 0 auto;margin-left: 18rpx;}
  3159. }
  3160. .ftit{font-weight: bold;font-size: 32rpx;color: #161616;flex: 1;padding:28rpx 0;
  3161. text{color: #DF0303;margin-right: 8rpx;}
  3162. .mtxt{color: #AAAAAA;font-size: 26rpx;}
  3163. }
  3164. .fbtns{font-weight: 500;font-size: 26rpx;padding-right: 12rpx;margin-left: 36rpx;display: flex;align-items: center;height: 100rpx;justify-content: center;
  3165. image{width: 22rpx;height: 22rpx;margin-right: 10rpx;
  3166. &.downimg{width: 20rpx;}
  3167. }
  3168. }
  3169. }
  3170. }
  3171. // 18
  3172. .fjlists {display: flex;align-items: flex-start;justify-content: space-between;margin-bottom: 12rpx;
  3173. // image{flex: 0 0 auto;}
  3174. .imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;flex: 0 0 auto;
  3175. image{width: 26rpx;height: 24rpx;}
  3176. }
  3177. .tit{font-size: 26rpx;color: #222327;font-weight: 500;margin-top: 4rpx;word-break: break-all;}
  3178. .delimg{width: 40rpx;height:40rpx;margin-left: 16rpx;display: flex;align-items: center;justify-content: center;flex: 0 0 auto;
  3179. image{width: 24rpx;height: 24rpx;}
  3180. }
  3181. }
  3182. }
  3183. .addbtns{z-index: 4;
  3184. width: 100%;height: 100rpx;position: fixed;left: 0;right: 0;bottom: 0;display: flex;
  3185. .addlbtn{background-color: #ffffff;font-weight: 500;justify-content: center;
  3186. display: flex;align-items: center;width: 232rpx;flex: 0 0 auto;height: 100rpx;
  3187. .addlbtna{width: 32rpx;height: 32rpx;margin-right: 12rpx;display: block;}
  3188. .addlbtnb{font-size: 30rpx;color: $com-cd3;}
  3189. }
  3190. }
  3191. .addrbtn{flex: 1;height: 100rpx;font-weight: bold;font-size: 30rpx;display: flex;align-items: center;justify-content: center;
  3192. color: #FFFFFF;text-align: center;line-height: 100rpx;
  3193. &.bga{background: #29E18A;}
  3194. &.bgb{background: $com-cd3;}
  3195. }
  3196. // 标准
  3197. .looimg{width: 100%;height: 400rpx;position: fixed;left: 0;right: 0;top: 50%;margin-top: -200rpx;z-index: 10;}
  3198. .fdbdel{font-weight: bold;font-size: 30rpx;color: #FF5B5B;height: 100rpx;
  3199. background: #FFEEEE;border-radius: 10rpx;
  3200. image{width: 26rpx;height:30rpx;margin-right: 12rpx;}
  3201. }
  3202. .fdbadd{font-weight: bold;font-size: 26rpx;color: #0AC86E;padding: 16rpx 28rpx;flex:0 0 auto;
  3203. image{width:22rpx;height: 24rpx;margin-right: 10rpx;flex:0 0 auto;}
  3204. }
  3205. </style>