add.vue 123 KB

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