TaskUploadData.vue 95 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765
  1. <template>
  2. <div class='liClass'>
  3. <a-page-header
  4. style="background-color: #FFFFFF;margin-bottom:10px"
  5. title="上传资料"
  6. :sub-title="notes"
  7. @back="goBack"
  8. ></a-page-header>
  9. <a-form-model
  10. ref="form"
  11. :model="infoModel"
  12. :rules="rules"
  13. >
  14. <a-card style="margin-bottom:10px;color: #000000d9;font-size: 15px;line-height: 2.5;">
  15. <div>
  16. <span>1.请选择所上传资料的卡类型</span>
  17. </div>
  18. <a-radio-group style="position: relative;left: 30px"
  19. @change="controlChange" v-model:value="infoModel.blockType">
  20. <a-radio :value="'model'">正式卡</a-radio>
  21. <a-radio :value="'test'">测试卡</a-radio>
  22. </a-radio-group>
  23. <div v-if="infoModel.blockType != 'test'">
  24. <span style="display: block">2.是否突破价格管控</span>
  25. <a-radio-group style="position: relative;left: 30px;"
  26. @change="controlChange" v-model:value="infoModel.control">
  27. <a-radio :value="'controlY'">是</a-radio>
  28. <a-radio :value="'controlN'">否</a-radio>
  29. </a-radio-group>
  30. </div>
  31. </a-card>
  32. <a-card style="margin-bottom:10px;color: #000000d9;font-size: 15px;line-height: 2.5;">
  33. <a-row>
  34. <a-col :span="6">
  35. <a-form-model-item label="客户编号" prop="customerNo" v-bind="labelCol4">
  36. <a-input class="cornflowerblue" v-model="infoModel.customerNo" placeholder="客户编号"
  37. :disabled='true'></a-input>
  38. </a-form-model-item>
  39. </a-col>
  40. <a-col :span="6">
  41. <a-form-model-item label="用户发展员工" prop="staffNo" v-bind="labelCol4">
  42. <a-input class="cornflowerblue" :disabled='true' v-model="infoModel.staffNo"
  43. placeholder="用户发展员工"></a-input>
  44. </a-form-model-item>
  45. </a-col>
  46. <a-col :span="6">
  47. <a-form-model-item label="发展员工姓名" prop="staffNo" v-bind="labelCol4">
  48. <a-input class="cornflowerblue" v-model="infoModel.staffName" placeholder="发展员工姓名"
  49. :disabled='true'></a-input>
  50. </a-form-model-item>
  51. </a-col>
  52. <a-col :span="6">
  53. <a-form-model-item label="入网时间" prop="networkAccessTime" v-bind="labelCol4">
  54. <a-input class="cornflowerblue" v-model="infoModel.networkAccessTime" placeholder="入网时间"
  55. :disabled='true'></a-input>
  56. </a-form-model-item>
  57. </a-col>
  58. <a-col :span="6">
  59. <a-form-item label="用户状态" v-bind="labelCol4" prop="userState">
  60. <j-dict-select-tag placeholder="请选择用户状态" v-model="infoModel.userState" dictCode="user_status_2"/>
  61. </a-form-item>
  62. </a-col>
  63. <a-col :span="6">
  64. <a-form-model-item label="客户名称(全)" prop="customerName" v-bind="labelCol4">
  65. <a-input v-model="infoModel.customerName" placeholder="客户名称/使用人名称"></a-input>
  66. </a-form-model-item>
  67. </a-col>
  68. <a-col :span="6">
  69. <a-form-model-item label="服务号码(全)" prop="smsNumber" v-bind="labelCol4">
  70. <a-input v-model="infoModel.smsNumber" placeholder="请输入服务号码(全)"></a-input>
  71. </a-form-model-item>
  72. </a-col>
  73. <a-col :span="6">
  74. <a-form-model-item label="客户经理" prop="manage" v-bind="labelCol4">
  75. <a-input v-model="infoModel.manage" placeholder="客户经理"></a-input>
  76. </a-form-model-item>
  77. </a-col>
  78. <a-col :span="6">
  79. <a-form-model-item label="客户经理手机号" prop="managePhone" v-bind="labelCol4">
  80. <a-input v-model="infoModel.managePhone" placeholder="客户经理手机号"></a-input>
  81. </a-form-model-item>
  82. </a-col>
  83. <a-col :span="6">
  84. <a-form-model-item label="使用场景" prop="scene" v-bind="labelCol4">
  85. <a-input v-model="infoModel.scene" placeholder="例-车联网-乘用车-智能后视镜"></a-input>
  86. </a-form-model-item>
  87. </a-col>
  88. <!-- <a-col :span="6">-->
  89. <!-- <a-form-model-item label="资料是否完整" prop="isAll" v-bind="labelCol4">-->
  90. <!-- <a-radio-group v-model="infoModel.isAll" button-style="solid">-->
  91. <!-- <a-radio-button value="0">否</a-radio-button>-->
  92. <!-- <a-radio-button value="1">是</a-radio-button>-->
  93. <!-- </a-radio-group>-->
  94. <!-- </a-form-model-item>-->
  95. <!-- </a-col>-->
  96. <!-- <a-col :span="6">-->
  97. <!-- <a-form-model-item label="是否完成整改" prop="isComplete" v-bind="labelCol4">-->
  98. <!-- <a-radio-group v-model="infoModel.isComplete" button-style="solid">-->
  99. <!-- <a-radio-button value="0">否</a-radio-button>-->
  100. <!-- <a-radio-button value="1">是</a-radio-button>-->
  101. <!-- </a-radio-group>-->
  102. <!-- </a-form-model-item>-->
  103. <!-- </a-col>-->
  104. <!-- <a-col :span="7"-->
  105. <!-- v-if='infoModel.contractDateIs==="" || infoModel.contractDateIs===null || infoModel.contractDateIs==="1" '>-->
  106. <!-- <a-form-model-item label="合同到期时间是否长期" prop="contractDateIs" v-bind="labelCol7">-->
  107. <!-- <a-radio-group v-model="infoModel.contractDateIs" button-style="solid"-->
  108. <!-- :disabled="infoModel.infoResult==='1'?true:false">-->
  109. <!-- <a-radio-button value="0">否</a-radio-button>-->
  110. <!-- <a-radio-button value="1">是</a-radio-button>-->
  111. <!-- </a-radio-group>-->
  112. <!-- </a-form-model-item>-->
  113. <!-- </a-col>-->
  114. <!-- <a-col :span="7" v-if='infoModel.contractDateIs==="0" '>-->
  115. <!-- <a-form-model-item label="合同到期时间" prop="contractDate" v-bind="labelCol4">-->
  116. <!-- <a-date-picker style="min-width:50px; width: 64% " v-model="infoModel.contractDate"-->
  117. <!-- format="YYYY-MM-DD"-->
  118. <!-- showTime valueFormat="YYYY-MM-DD"/>-->
  119. <!-- <a-button @click="backDate('contractDate')">长期</a-button>-->
  120. <!-- </a-form-model-item>-->
  121. <!-- </a-col>-->
  122. <a-col :span="10" >
  123. <a-form-model-item label="合同到期时间" prop="contractDateIs" v-bind="labelColContractDate">
  124. <a-radio-group v-model:value="infoModel.contractDateIs" size="large">
  125. <a-radio :value="'0'">
  126. <a-date-picker style="min-width:50px"
  127. :disabled="infoModel.contractDateIs== '1'?true:false"
  128. v-model="infoModel.contractDate"
  129. format="YYYY-MM-DD"
  130. showTime valueFormat="YYYY-MM-DD"/>
  131. </a-radio>
  132. <a-radio :value="'1'" @click="contractDateClick('contractDate')">长期</a-radio>
  133. </a-radio-group>
  134. </a-form-model-item>
  135. </a-col>
  136. <!-- <a-col :span="7"-->
  137. <!-- v-if='infoModel.businessLicenseDateIs==="" || infoModel.businessLicenseDateIs===null || infoModel.businessLicenseDateIs==="1" '>-->
  138. <!-- <a-form-model-item label="营业执照有效期是否长期" prop="businessLicenseDateIs" v-bind="labelCol7">-->
  139. <!-- <a-radio-group :disabled="infoModel.infoResult==='1'?true:false" v-model="infoModel.businessLicenseDateIs"-->
  140. <!-- button-style="solid">-->
  141. <!-- <a-radio-button value="0">否</a-radio-button>-->
  142. <!-- <a-radio-button value="1">是</a-radio-button>-->
  143. <!-- </a-radio-group>-->
  144. <!-- </a-form-model-item>-->
  145. <!-- </a-col>-->
  146. <!-- <a-col :span="7" v-if='infoModel.businessLicenseDateIs==="0"'>-->
  147. <!-- <a-form-model-item label="营业执照到期时间" prop="businessLicenseDate" v-bind="labelCol4">-->
  148. <!-- <a-date-picker style="min-width:50px; width: 64% " v-model="infoModel.businessLicenseDate"-->
  149. <!-- format="YYYY-MM-DD"-->
  150. <!-- showTime valueFormat="YYYY-MM-DD"/>-->
  151. <!-- <a-button @click="backDate('businessLicenseDate')">长期</a-button>-->
  152. <!-- </a-form-model-item>-->
  153. <!-- </a-col>-->
  154. <a-col :span="10" >
  155. <a-form-model-item label="营业执照有效期" prop="businessLicenseDateIs" v-bind="labelColContractDate">
  156. <a-radio-group v-model:value="infoModel.businessLicenseDateIs" size="large">
  157. <a-radio :value="'0'">
  158. <a-date-picker style="min-width:50px"
  159. :disabled="infoModel.businessLicenseDateIs== '1'?true:false"
  160. v-model="infoModel.businessLicenseDate"
  161. format="YYYY-MM-DD"
  162. showTime valueFormat="YYYY-MM-DD"/>
  163. </a-radio>
  164. <a-radio :value="'1'" @click="contractDateClick('businessLicenseDate')">长期</a-radio>
  165. </a-radio-group>
  166. </a-form-model-item>
  167. </a-col>
  168. </a-row>
  169. <a-row>
  170. <a-col :span="24">
  171. <a-form-model-item label="用户编号" v-bind="labelCol8">
  172. <!-- <a-input v-model="infoModel.userNo" placeholder="用户编号" :disabled='true'></a-input>-->
  173. <a-textarea class="cornflowerblue" v-model="infoModel.userNo" auto-size :disabled='true'/>
  174. </a-form-model-item>
  175. </a-col>
  176. </a-row>
  177. </a-card>
  178. </a-form-model>
  179. <!-- 步骤条-->
  180. <a-card style="margin-bottom:10px;width: 15%;float: left">
  181. <!-- v-model:current="current"-->
  182. <a-steps direction="vertical" :current="steps.current" size="small" @change="stepsClick">
  183. <a-step v-for="item in steps.stepsNow" :key="item.title" :title="item.title" :status="item.status"/>
  184. </a-steps>
  185. <a-button @click="addIsStaging" style="width: 100%" type="warn">暂存</a-button>
  186. <a-button @click="submitAuditLot" style="width: 100%;position: relative;top: 10px" type="primary">提交申请</a-button>
  187. </a-card>
  188. <!-- 测试卡申请单-->
  189. <a-card v-if="steps.currentId === 'testCard'" style="margin-bottom:10px; float: left;width: 83% ">
  190. <div slot="title">
  191. <span style="float: left;position: relative;top: 4px">测试卡申请单</span>
  192. <!-- 操作按钮-->
  193. </div>
  194. <div class="a-card-25">
  195. <a-alert
  196. message="注意事项(必看)"
  197. type="warning"
  198. style="height: 100vh"
  199. >
  200. <div slot="description" class="markdown" style="position: relative;top:30px">
  201. <ul>
  202. <li>1)测试卡申请单是否加盖公章</li>
  203. <li>2)测试卡申请单中经办人、责任人身份证是否一致</li>
  204. </ul>
  205. </div>
  206. </a-alert>
  207. </div>
  208. <div class="a-card-70">
  209. <div>
  210. <a-form-model-item style="left: -2%;" label="上传资料备注:" v-bind="labelCol1Note">
  211. <a-textarea class="a-textarea-line-30"
  212. v-model="infoModel.testCardRemark"
  213. @change="textareaChange('testCard','testCardRemark')"
  214. placeholder="如没有上传资料备注,需要说明原因"
  215. />
  216. <!-- :auto-size="{ minRows: 3, maxRows: 5 }"-->
  217. </a-form-model-item>
  218. </div>
  219. <a-upload
  220. name="file"
  221. :multiple="true"
  222. :action="importMinioUploadAction"
  223. :customRequest="e => selfUploadContract(e, 'testCard')"
  224. :headers="tokenHeader"
  225. :showUploadList="false"
  226. :beforeUpload="importBeforeUpload"
  227. @change="importHandleChange"
  228. class="a-upload-line-30"
  229. >
  230. <a-button>
  231. <a-icon type="upload"/>
  232. 上传文件
  233. </a-button>
  234. </a-upload>
  235. <div style="height: 70%">
  236. <div class="thumb-example">
  237. <!-- swiper1 -->
  238. <swiper
  239. class="swiper gallery-top"
  240. :options="swiperOptionTop"
  241. ref="swiperTop"
  242. >
  243. <swiper-slide class="slide-1" v-for="(item, index) in infoModel.testCard" :key="item.id">
  244. <iframe
  245. v-if="item.urlBase"
  246. frameborder="1"
  247. :src="item.urlBase"
  248. ref="ifr"
  249. width="70%"
  250. height="500px"
  251. scrolling="auto">
  252. </iframe>
  253. <img style="width: 70%;height: 70%;border: 1px solid;"
  254. v-if="!item.urlBase" :src="noDataPng" border="1">
  255. <div>
  256. <a-button v-if="item.urlBase"
  257. style="display: block;margin-top: 1px;border-color: red;color: red;float: left"
  258. danger @click="removeFile(item,'testCard')">移除
  259. </a-button>
  260. <a-button
  261. style="display: block;position: relative;left:20px;margin-top: 10px;border-color: #1890FF;color: #1890FF"
  262. v-if=" item.urlBase"
  263. @click="jumpUrl(item.urlBase)">预览
  264. </a-button>
  265. </div>
  266. </swiper-slide>
  267. <div
  268. class="swiper-button-next swiper-button-white"
  269. slot="button-next"
  270. ></div>
  271. <div
  272. class="swiper-button-prev swiper-button-white"
  273. slot="button-prev"
  274. ></div>
  275. </swiper>
  276. <!-- swiper2 Thumbs -->
  277. <swiper
  278. class="swiper gallery-thumbs"
  279. :options="swiperOptionThumbs"
  280. ref="swiperThumbs"
  281. >
  282. <swiper-slide
  283. class="slide"
  284. style="width:100px;height:100px;"
  285. v-for="(item, index) in infoModel.testCard"
  286. :key="item.id"
  287. >
  288. <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
  289. <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
  290. </div>
  291. <img style="width: 100%;height: 96px"
  292. v-if="!item.urlBase" :src="noDataPng" border="1">
  293. </swiper-slide>
  294. <!-- 点我上传文件按钮-->
  295. <div class="clearfix">
  296. <a-upload
  297. listType="picture-card"
  298. name="file"
  299. :multiple="false"
  300. :action="importMinioUploadAction"
  301. :customRequest="e=>selfUploadContract(e,'testCard')"
  302. :headers="tokenHeader"
  303. :showUploadList="false"
  304. :beforeUpload="importBeforeUpload"
  305. @change="importHandleChange"
  306. >
  307. <div>
  308. <a-icon type="plus"/>
  309. <div class="ant-upload-text">点我上传合同</div>
  310. </div>
  311. </a-upload>
  312. </div>
  313. <div class="swiper-button-next swiper-button-white" slot="button-next">
  314. <div>
  315. <!-- <img src="../../../../assets/images/nextImg.png" alt=""/>-->
  316. </div>
  317. </div>
  318. <div class="swiper-button-prev swiper-button-white" slot="button-prev">
  319. <div>
  320. <!-- <img src="../../../../assets/images/prevImg.png" alt=""/>-->
  321. </div>
  322. </div>
  323. </swiper>
  324. </div>
  325. </div>
  326. </div>
  327. </a-card>
  328. <!-- 合同要求-->
  329. <a-card v-if="steps.currentId === 'contract'" style="margin-bottom:10px; float: left;width: 83%;left: 2%; ">
  330. <div slot="title">
  331. <span style="float: left;position: relative;top: 4px">合同要求</span>
  332. </div>
  333. <div class="a-card-25">
  334. <a-alert
  335. message="注意事项(必看)"
  336. type="warning"
  337. style="height: 110vh"
  338. >
  339. <div slot="description" class="markdown" style="position: relative;top:0px">
  340. <ul>
  341. <li>1)是否在有效期</li>
  342. <li>2)是否明确场景,如车联网,水表等,且与风险评估表一致</li>
  343. <li>3)是否明确开通功能,如语音,短信,流量等</li>
  344. <li>4)是否明确功能限制,如定向、机卡绑定、卡片限定、限额管控、黑名单限制等</li>
  345. <li>5)是否明确白名单数量,具体号码,地址等</li>
  346. <li>6)是否明确禁止二次销售</li>
  347. <li>7)是否明确防范垃圾短信和骚扰电话条款</li>
  348. <li>8)是否无低级错误,如缺少签字,日期等</li>
  349. <li>9)合同签署是否是法人,是否有授权书</li>
  350. </ul>
  351. </div>
  352. </a-alert>
  353. </div>
  354. <div class="a-card-70">
  355. <div>
  356. <a-form-model-item style="left: -2%" label="上传资料备注:" v-bind="labelCol1Note">
  357. <a-textarea class="a-textarea-line-30"
  358. v-model="infoModel.contractRemark"
  359. @change="textareaChange('contract','contractRemark')"
  360. placeholder="如没有上传资料备注,需要说明原因"
  361. />
  362. <!-- :auto-size="{ minRows: 3, maxRows: 5 }"-->
  363. </a-form-model-item>
  364. </div>
  365. <a-upload
  366. name="file"
  367. :multiple="true"
  368. :action="importMinioUploadAction"
  369. :customRequest="e => selfUploadContract(e, 'contract')"
  370. :headers="tokenHeader"
  371. :showUploadList="false"
  372. :beforeUpload="importBeforeUpload"
  373. @change="importHandleChange"
  374. class="a-upload-line-30"
  375. >
  376. <a-button>
  377. <a-icon type="upload"/>
  378. 上传文件
  379. </a-button>
  380. </a-upload>
  381. <div style="height: 70%">
  382. <div class="thumb-example">
  383. <!-- swiper1 -->
  384. <swiper
  385. class="swiper gallery-top"
  386. :options="swiperOptionTop"
  387. ref="swiperTop"
  388. >
  389. <swiper-slide class="slide-1" v-for="(item, index) in infoModel.contract" :key="item.id">
  390. <iframe
  391. v-if="item.urlBase"
  392. frameborder="1"
  393. :src="item.urlBase"
  394. ref="ifr"
  395. width="70%"
  396. height="500px"
  397. scrolling="auto">
  398. </iframe>
  399. <img style="width: 70%;height: 70%;border: 1px solid;"
  400. v-if="!item.urlBase" :src="noDataPng" border="1">
  401. <div>
  402. <a-button v-if="item.urlBase"
  403. style="display: block;margin-top: 1px;border-color: red;color: red;float: left"
  404. danger @click="removeFile(item,'contract')">移除
  405. </a-button>
  406. <a-button
  407. style="display: block;position: relative;left:20px;margin-top: 10px;border-color: #1890FF;color: #1890FF"
  408. v-if=" item.urlBase"
  409. @click="jumpUrl(item.urlBase)">预览
  410. </a-button>
  411. </div>
  412. </swiper-slide>
  413. </swiper>
  414. <!-- swiper2 Thumbs -->
  415. <swiper
  416. class="swiper gallery-thumbs"
  417. :options="swiperOptionThumbs"
  418. ref="swiperThumbs"
  419. >
  420. <swiper-slide
  421. class="slide"
  422. style="width:100px;height:100px;"
  423. v-for="(item, index) in infoModel.contract"
  424. :key="item.id"
  425. >
  426. <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
  427. <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
  428. </div>
  429. <img style="width: 100%;height: 96px"
  430. v-if="!item.urlBase" :src="noDataPng" border="1">
  431. </swiper-slide>
  432. <!-- 点我上传文件按钮-->
  433. <div class="clearfix">
  434. <a-upload
  435. listType="picture-card"
  436. name="file"
  437. :multiple="false"
  438. :action="importMinioUploadAction"
  439. :customRequest="e =>selfUploadContract(e, 'contract')"
  440. :headers="tokenHeader"
  441. :showUploadList="false"
  442. :beforeUpload="importBeforeUpload"
  443. @change="importHandleChange"
  444. >
  445. <div>
  446. <a-icon type="plus"/>
  447. <div class="ant-upload-text">点我上传合同</div>
  448. </div>
  449. </a-upload>
  450. </div>
  451. <div class="swiper-button-next swiper-button-white" slot="button-next">
  452. <div>
  453. <!-- <img src="../../../../assets/images/nextImg.png" alt=""/>-->
  454. </div>
  455. </div>
  456. <div class="swiper-button-prev swiper-button-white" slot="button-prev">
  457. <div>
  458. <!-- <img src="../../../../assets/images/prevImg.png" alt=""/>-->
  459. </div>
  460. </div>
  461. </swiper>
  462. </div>
  463. </div>
  464. </div>
  465. </a-card>
  466. <!-- 责任人和经办人授权书-->
  467. <a-card v-if="steps.currentId === 'handlingContract'" style="margin-bottom:10px; float: left;width: 83%;left: 2%; ">
  468. <div slot="title">
  469. <span style="float: left;position: relative;top: 4px">责任人和经办人授权书</span>
  470. </div>
  471. <div class="a-card-25">
  472. <a-alert
  473. message="注意事项(必看)"
  474. type="warning"
  475. style="height: 100vh"
  476. >
  477. <div slot="description" class="markdown" style="position: relative;top:30px">
  478. <ul>
  479. <li>1)经办人和责任人授权书齐全并且加盖公章</li>
  480. <li>2)经办人和责任人与授权书一致</li>
  481. </ul>
  482. </div>
  483. </a-alert>
  484. </div>
  485. <div class="a-card-70">
  486. <div>
  487. <a-form-model-item style="left: -2%;" label="上传资料备注:" v-bind="labelCol1Note">
  488. <a-textarea class="a-textarea-line-30"
  489. v-model="infoModel.handlingContractRemark"
  490. @change="textareaChange('handlingContract','handlingContractRemark')"
  491. placeholder="如没有上传资料备注,需要说明原因"
  492. />
  493. </a-form-model-item>
  494. </div>
  495. <a-upload
  496. name="file"
  497. :multiple="true"
  498. :action="importMinioUploadAction"
  499. :customRequest="e => selfUploadContract(e, 'handlingContract')"
  500. :headers="tokenHeader"
  501. :showUploadList="false"
  502. :beforeUpload="importBeforeUpload"
  503. @change="importHandleChange"
  504. class="a-upload-line-30"
  505. >
  506. <a-button>
  507. <a-icon type="upload"/>
  508. 上传文件
  509. </a-button>
  510. </a-upload>
  511. <div style="height: 70%">
  512. <div class="thumb-example">
  513. <!-- swiper1 -->
  514. <swiper
  515. class="swiper gallery-top"
  516. :options="swiperOptionTop"
  517. ref="swiperTop"
  518. >
  519. <swiper-slide class="slide-1" v-for="(item, index) in infoModel.handlingContract" :key="item.id">
  520. <iframe
  521. v-if="item.urlBase"
  522. frameborder="1"
  523. :src="item.urlBase"
  524. ref="ifr"
  525. width="70%"
  526. height="500px"
  527. scrolling="auto">
  528. </iframe>
  529. <img style="width: 70%;height: 70%;border: 1px solid;"
  530. v-if="!item.urlBase" :src="noDataPng" border="1">
  531. <div>
  532. <a-button v-if="item.urlBase"
  533. style="display: block;margin-top: 1px;border-color: red;color: red;float: left"
  534. danger @click="removeFile(item,'handlingContract')">移除
  535. </a-button>
  536. <a-button
  537. style="display: block;position: relative;left:20px;margin-top: 10px;border-color: #1890FF;color: #1890FF"
  538. v-if=" item.urlBase"
  539. @click="jumpUrl(item.urlBase)">预览
  540. </a-button>
  541. </div>
  542. </swiper-slide>
  543. <div
  544. class="swiper-button-next swiper-button-white"
  545. slot="button-next"
  546. ></div>
  547. <div
  548. class="swiper-button-prev swiper-button-white"
  549. slot="button-prev"
  550. ></div>
  551. </swiper>
  552. <!-- swiper2 Thumbs -->
  553. <swiper
  554. class="swiper gallery-thumbs"
  555. :options="swiperOptionThumbs"
  556. ref="swiperThumbs"
  557. >
  558. <swiper-slide
  559. class="slide"
  560. style="width:100px;height:100px;"
  561. v-for="(item, index) in infoModel.handlingContract"
  562. :key="item.id"
  563. >
  564. <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
  565. <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
  566. </div>
  567. <img style="width: 100%;height: 96px"
  568. v-if="!item.urlBase" :src="noDataPng" border="1">
  569. </swiper-slide>
  570. <!-- 点我上传文件按钮-->
  571. <div class="clearfix">
  572. <a-upload
  573. listType="picture-card"
  574. name="file"
  575. :multiple="false"
  576. :action="importMinioUploadAction"
  577. :customRequest="e=>selfUploadContract(e,'handlingContract')"
  578. :headers="tokenHeader"
  579. :showUploadList="false"
  580. :beforeUpload="importBeforeUpload"
  581. @change="importHandleChange"
  582. >
  583. <div>
  584. <a-icon type="plus"/>
  585. <div class="ant-upload-text">点我上传合同</div>
  586. </div>
  587. </a-upload>
  588. </div>
  589. <div class="swiper-button-next swiper-button-white" slot="button-next">
  590. <div>
  591. <!-- <img src="../../../../assets/images/nextImg.png" alt=""/>-->
  592. </div>
  593. </div>
  594. <div class="swiper-button-prev swiper-button-white" slot="button-prev">
  595. <div>
  596. <!-- <img src="../../../../assets/images/prevImg.png" alt=""/>-->
  597. </div>
  598. </div>
  599. </swiper>
  600. </div>
  601. </div>
  602. </div>
  603. </a-card>
  604. <!-- 责任人和经办人身份证-->
  605. <a-card v-if="steps.currentId === 'handlingCard'" style="margin-bottom:10px; float: left;width: 83%;left: 2%; ">
  606. <div slot="title">
  607. <span style="float: left;position: relative;top: 4px">责任人和经办人身份证</span>
  608. </div>
  609. <div class="a-card-25">
  610. <a-alert
  611. message="注意事项(必看)"
  612. type="warning"
  613. style="height: 100vh"
  614. >
  615. <div slot="description" class="markdown" style="position: relative;top:30px">
  616. <ul>
  617. <li>1)经办人和责任人身份证复印件加盖公章</li>
  618. </ul>
  619. </div>
  620. </a-alert>
  621. </div>
  622. <div class="a-card-70">
  623. <div>
  624. <a-form-model-item style="left: -2%;" label="上传资料备注:" v-bind="labelCol1Note">
  625. <a-textarea class="a-textarea-line-30"
  626. v-model="infoModel.handlingCardRemark"
  627. @change="textareaChange('handlingCard','handlingCardRemark')"
  628. placeholder="如没有上传资料备注,需要说明原因"
  629. />
  630. <!-- :auto-size="{ minRows: 3, maxRows: 5 }"-->
  631. </a-form-model-item>
  632. </div>
  633. <a-upload
  634. name="file"
  635. :multiple="true"
  636. :action="importMinioUploadAction"
  637. :customRequest="e => selfUploadContract(e, 'handlingCard')"
  638. :headers="tokenHeader"
  639. :showUploadList="false"
  640. :beforeUpload="importBeforeUpload"
  641. @change="importHandleChange"
  642. class="a-upload-line-30"
  643. >
  644. <a-button>
  645. <a-icon type="upload"/>
  646. 上传文件
  647. </a-button>
  648. </a-upload>
  649. <div style="height: 70%">
  650. <div class="thumb-example">
  651. <!-- swiper1 -->
  652. <swiper
  653. class="swiper gallery-top"
  654. :options="swiperOptionTop"
  655. ref="swiperTop"
  656. >
  657. <swiper-slide class="slide-1" v-for="(item, index) in infoModel.handlingCard" :key="item.id">
  658. <iframe
  659. v-if="item.urlBase"
  660. frameborder="1"
  661. :src="item.urlBase"
  662. ref="ifr"
  663. width="70%"
  664. height="500px"
  665. scrolling="auto">
  666. </iframe>
  667. <img style="width: 70%;height: 70%;border: 1px solid;"
  668. v-if="!item.urlBase" :src="noDataPng" border="1">
  669. <div>
  670. <a-button v-if="item.urlBase"
  671. style="display: block;margin-top: 1px;border-color: red;color: red;float: left"
  672. danger @click="removeFile(item,'handlingCard')">移除
  673. </a-button>
  674. <a-button
  675. style="display: block;position: relative;left:20px;margin-top: 10px;border-color: #1890FF;color: #1890FF"
  676. v-if=" item.urlBase"
  677. @click="jumpUrl(item.urlBase)">预览
  678. </a-button>
  679. </div>
  680. </swiper-slide>
  681. <div
  682. class="swiper-button-next swiper-button-white"
  683. slot="button-next"
  684. ></div>
  685. <div
  686. class="swiper-button-prev swiper-button-white"
  687. slot="button-prev"
  688. ></div>
  689. </swiper>
  690. <!-- swiper2 Thumbs -->
  691. <swiper
  692. class="swiper gallery-thumbs"
  693. :options="swiperOptionThumbs"
  694. ref="swiperThumbs"
  695. >
  696. <swiper-slide
  697. class="slide"
  698. style="width:100px;height:100px;"
  699. v-for="(item, index) in infoModel.handlingCard"
  700. :key="item.id"
  701. >
  702. <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
  703. <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
  704. </div>
  705. <img style="width: 100%;height: 96px"
  706. v-if="!item.urlBase" :src="noDataPng" border="1">
  707. </swiper-slide>
  708. <!-- 点我上传文件按钮-->
  709. <div class="clearfix">
  710. <a-upload
  711. listType="picture-card"
  712. name="file"
  713. :multiple="false"
  714. :action="importMinioUploadAction"
  715. :customRequest="e=>selfUploadContract(e,'handlingCard')"
  716. :headers="tokenHeader"
  717. :showUploadList="false"
  718. :beforeUpload="importBeforeUpload"
  719. @change="importHandleChange"
  720. >
  721. <div>
  722. <a-icon type="plus"/>
  723. <div class="ant-upload-text">点我上传合同</div>
  724. </div>
  725. </a-upload>
  726. </div>
  727. <div class="swiper-button-next swiper-button-white" slot="button-next">
  728. <div>
  729. <!-- <img src="../../../../assets/images/nextImg.png" alt=""/>-->
  730. </div>
  731. </div>
  732. <div class="swiper-button-prev swiper-button-white" slot="button-prev">
  733. <div>
  734. <!-- <img src="../../../../assets/images/prevImg.png" alt=""/>-->
  735. </div>
  736. </div>
  737. </swiper>
  738. </div>
  739. </div>
  740. </div>
  741. </a-card>
  742. <!-- 客户证件扫描-->
  743. <a-card v-if="steps.currentId === 'customerCardScanning'"
  744. style="margin-bottom:10px; float: left;width: 83%;left: 2%; ">
  745. <div slot="title">
  746. <span style="float: left;position: relative;top: 4px">客户证件扫描</span>
  747. <!-- 操作按钮-->
  748. </div>
  749. <div class="a-card-25">
  750. <a-alert
  751. message="注意事项(必看)"
  752. type="warning"
  753. style="height: 100vh"
  754. >
  755. <div slot="description" class="markdown" style="position: relative;top:30px">
  756. <ul>
  757. <li>1)客户证件复印件加盖公章</li>
  758. </ul>
  759. </div>
  760. </a-alert>
  761. </div>
  762. <div class="a-card-70">
  763. <div>
  764. <a-form-model-item style="left: -2%;" label="上传资料备注:" v-bind="labelCol1Note">
  765. <a-textarea class="a-textarea-line-30"
  766. v-model="infoModel.customerCardScanningRemark"
  767. @change="textareaChange('customerCardScanning','customerCardScanningRemark')"
  768. placeholder="如没有上传资料备注,需要说明原因"
  769. />
  770. <!-- :auto-size="{ minRows: 3, maxRows: 5 }"-->
  771. </a-form-model-item>
  772. </div>
  773. <a-upload
  774. name="file"
  775. :multiple="true"
  776. :action="importMinioUploadAction"
  777. :customRequest="e => selfUploadContract(e, 'customerCardScanning')"
  778. :headers="tokenHeader"
  779. :showUploadList="false"
  780. :beforeUpload="importBeforeUpload"
  781. @change="importHandleChange"
  782. class="a-upload-line-30"
  783. >
  784. <a-button>
  785. <a-icon type="upload"/>
  786. 上传文件
  787. </a-button>
  788. </a-upload>
  789. <div style="height: 70%">
  790. <div class="thumb-example">
  791. <!-- swiper1 -->
  792. <swiper
  793. class="swiper gallery-top"
  794. :options="swiperOptionTop"
  795. ref="swiperTop"
  796. >
  797. <swiper-slide class="slide-1" v-for="(item, index) in infoModel.customerCardScanning" :key="item.id">
  798. <iframe
  799. v-if="item.urlBase"
  800. frameborder="1"
  801. :src="item.urlBase"
  802. ref="ifr"
  803. width="70%"
  804. height="500px"
  805. scrolling="auto">
  806. </iframe>
  807. <img style="width: 70%;height: 70%;border: 1px solid;"
  808. v-if="!item.urlBase" :src="noDataPng" border="1">
  809. <div>
  810. <a-button v-if="item.urlBase"
  811. style="display: block;margin-top: 1px;border-color: red;color: red;float: left"
  812. danger @click="removeFile(item,'customerCardScanning')">移除
  813. </a-button>
  814. <a-button
  815. style="display: block;position: relative;left:20px;margin-top: 10px;border-color: #1890FF;color: #1890FF"
  816. v-if=" item.urlBase"
  817. @click="jumpUrl(item.urlBase)">预览
  818. </a-button>
  819. </div>
  820. </swiper-slide>
  821. <div
  822. class="swiper-button-next swiper-button-white"
  823. slot="button-next"
  824. ></div>
  825. <div
  826. class="swiper-button-prev swiper-button-white"
  827. slot="button-prev"
  828. ></div>
  829. </swiper>
  830. <!-- swiper2 Thumbs -->
  831. <swiper
  832. class="swiper gallery-thumbs"
  833. :options="swiperOptionThumbs"
  834. ref="swiperThumbs"
  835. >
  836. <swiper-slide
  837. class="slide"
  838. style="width:100px;height:100px;"
  839. v-for="(item, index) in infoModel.customerCardScanning"
  840. :key="item.id"
  841. >
  842. <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
  843. <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
  844. </div>
  845. <img style="width: 100%;height: 96px"
  846. v-if="!item.urlBase" :src="noDataPng" border="1">
  847. </swiper-slide>
  848. <!-- 点我上传文件按钮-->
  849. <div v-if="lotState.customerIdState != 1" class="clearfix">
  850. <a-upload
  851. listType="picture-card"
  852. name="file"
  853. :multiple="false"
  854. :action="importMinioUploadAction"
  855. :customRequest="e=>selfUploadContract(e,'customerCardScanning')"
  856. :headers="tokenHeader"
  857. :showUploadList="false"
  858. :beforeUpload="importBeforeUpload"
  859. @change="importHandleChange"
  860. >
  861. <div>
  862. <a-icon type="plus"/>
  863. <div class="ant-upload-text">点我上传合同</div>
  864. </div>
  865. </a-upload>
  866. </div>
  867. <div class="swiper-button-next swiper-button-white" slot="button-next">
  868. <div>
  869. <!-- <img src="../../../../assets/images/nextImg.png" alt=""/>-->
  870. </div>
  871. </div>
  872. <div class="swiper-button-prev swiper-button-white" slot="button-prev">
  873. <div>
  874. <!-- <img src="../../../../assets/images/prevImg.png" alt=""/>-->
  875. </div>
  876. </div>
  877. </swiper>
  878. </div>
  879. </div>
  880. </div>
  881. </a-card>
  882. <!-- 风险评估表-->
  883. <a-card v-if="steps.currentId === 'riskTable'" style="margin-bottom:10px; float: left;width: 83%;left: 2%; ">
  884. <div slot="title">
  885. <span style="float: left;position: relative;top: 4px">风险评估表</span>
  886. </div>
  887. <div class="a-card-25">
  888. <a-alert
  889. message="注意事项(必看)"
  890. type="warning"
  891. style="height: 100vh"
  892. >
  893. <div slot="description" class="markdown" style="position: relative;top:30px">
  894. <ul>
  895. <li>1)是否进行入网风险评估</li>
  896. <li>2)安全管理能力是否填写最小必要数据</li>
  897. <li>3)是否明确使用场景(与产品形态表一致),如车联网、水表等</li>
  898. <li>4)是否明确开通功能,如语音,短信,流量等</li>
  899. <li>5)是否明确功能限制情况,如定向,机卡绑定,卡片绑定,限额管控,黑名单限制等</li>
  900. <li>6)是否无低级错误,如缺少签字、日期等</li>
  901. <li>7)风险评估表中卡类型需写清三要素:网络制式、商业级或消费级、贴片机或插卡机</li>
  902. <li>8)现场考察部分截图是否清晰</li>
  903. <li>9)合同、入网评估表、系统受理是否一致</li>
  904. </ul>
  905. </div>
  906. </a-alert>
  907. </div>
  908. <div class="a-card-70">
  909. <div>
  910. <a-form-model-item style="left: -2%;" label="上传资料备注:" v-bind="labelCol1Note">
  911. <a-textarea class="a-textarea-line-30"
  912. v-model="infoModel.riskTableRemark"
  913. @change="textareaChange('riskTable','riskTableRemark')"
  914. placeholder="如没有上传资料备注,需要说明原因"
  915. />
  916. <!-- :auto-size="{ minRows: 3, maxRows: 5 }"-->
  917. </a-form-model-item>
  918. </div>
  919. <a-upload
  920. name="file"
  921. :multiple="true"
  922. :action="importMinioUploadAction"
  923. :customRequest="e => selfUploadContract(e, 'riskTable')"
  924. :headers="tokenHeader"
  925. :showUploadList="false"
  926. :beforeUpload="importBeforeUpload"
  927. @change="importHandleChange"
  928. class="a-upload-line-30"
  929. >
  930. <a-button>
  931. <a-icon type="upload"/>
  932. 上传文件
  933. </a-button>
  934. </a-upload>
  935. <div style="height: 70%">
  936. <div class="thumb-example">
  937. <!-- swiper1 -->
  938. <swiper
  939. class="swiper gallery-top"
  940. :options="swiperOptionTop"
  941. ref="swiperTop"
  942. >
  943. <swiper-slide class="slide-1" v-for="(item, index) in infoModel.riskTable" :key="item.id">
  944. <iframe
  945. v-if="item.urlBase"
  946. frameborder="1"
  947. :src="item.urlBase"
  948. ref="ifr"
  949. width="70%"
  950. height="500px"
  951. scrolling="auto">
  952. </iframe>
  953. <img style="width: 70%;height: 70%;border: 1px solid;"
  954. v-if="!item.urlBase" :src="noDataPng" border="1">
  955. <div>
  956. <a-button v-if="item.urlBase"
  957. style="display: block;margin-top: 1px;border-color: red;color: red;float: left"
  958. danger @click="removeFile(item,'riskTable')">移除
  959. </a-button>
  960. <a-button
  961. style="display: block;position: relative;left:20px;margin-top: 10px;border-color: #1890FF;color: #1890FF"
  962. v-if=" item.urlBase"
  963. @click="jumpUrl(item.urlBase)">预览
  964. </a-button>
  965. </div>
  966. </swiper-slide>
  967. <div
  968. class="swiper-button-next swiper-button-white"
  969. slot="button-next"
  970. ></div>
  971. <div
  972. class="swiper-button-prev swiper-button-white"
  973. slot="button-prev"
  974. ></div>
  975. </swiper>
  976. <!-- swiper2 Thumbs -->
  977. <swiper
  978. class="swiper gallery-thumbs"
  979. :options="swiperOptionThumbs"
  980. ref="swiperThumbs"
  981. >
  982. <swiper-slide
  983. class="slide"
  984. style="width:100px;height:100px;"
  985. v-for="(item, index) in infoModel.riskTable"
  986. :key="item.id"
  987. >
  988. <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
  989. <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
  990. </div>
  991. <img style="width: 100%;height: 96px"
  992. v-if="!item.urlBase" :src="noDataPng" border="1">
  993. </swiper-slide>
  994. <!-- 点我上传文件按钮-->
  995. <div class="clearfix">
  996. <a-upload
  997. listType="picture-card"
  998. name="file"
  999. :multiple="false"
  1000. :action="importMinioUploadAction"
  1001. :customRequest="e=>selfUploadContract(e,'riskTable')"
  1002. :headers="tokenHeader"
  1003. :showUploadList="false"
  1004. :beforeUpload="importBeforeUpload"
  1005. @change="importHandleChange"
  1006. >
  1007. <div>
  1008. <a-icon type="plus"/>
  1009. <div class="ant-upload-text">点我上传合同</div>
  1010. </div>
  1011. </a-upload>
  1012. </div>
  1013. <div class="swiper-button-next swiper-button-white" slot="button-next">
  1014. <div>
  1015. <!-- <img src="../../../../assets/images/nextImg.png" alt=""/>-->
  1016. </div>
  1017. </div>
  1018. <div class="swiper-button-prev swiper-button-white" slot="button-prev">
  1019. <div>
  1020. <!-- <img src="../../../../assets/images/prevImg.png" alt=""/>-->
  1021. </div>
  1022. </div>
  1023. </swiper>
  1024. </div>
  1025. </div>
  1026. </div>
  1027. </a-card>
  1028. <!-- 价格审批表-->
  1029. <a-card v-if="steps.currentId === 'priceTable'" style="margin-bottom:10px; float: left;width: 83%;left: 2%; ">
  1030. <div slot="title">
  1031. <span style="float: left;position: relative;top: 4px">价格审批表</span>
  1032. <!-- 操作按钮-->
  1033. </div>
  1034. <div class="a-card-25">
  1035. <a-alert
  1036. message="注意事项(必看)"
  1037. type="warning"
  1038. style="height: 100vh"
  1039. >
  1040. <div slot="description" class="markdown" style="position: relative;top:30px">
  1041. <ul>
  1042. <li>1)最终审批价格不低于1元/户/月(对2020年1月1日前签署合同的存量客户,若存量价格审批表中只约定了保底流量无功能费的,按存量审批表执行)</li>
  1043. <li>2)不参与打折,最低优惠至1元/户/月(2020年1月1日前签署合同的存量客户,池功能费可以按照池成员流量价格授权同步享受折扣)</li>
  1044. <li>3)同客户同项目测试卡数量不得超100张,最高不得超500张。</li>
  1045. <li>4)物联网开卡时提供公免卡审批表,开卡张数和公免额度与审批表一致。物联网公免卡的审批人员和流程同大网公免卡一致。</li>
  1046. <li>5)累计限免有效期原则上不得大于15个月</li>
  1047. </ul>
  1048. </div>
  1049. </a-alert>
  1050. </div>
  1051. <div class="a-card-70">
  1052. <div>
  1053. <a-form-model-item style="left: -2%;" label="上传资料备注:" v-bind="labelCol1Note">
  1054. <a-textarea class="a-textarea-line-30"
  1055. v-model="infoModel.priceTableRemark"
  1056. @change="textareaChange('priceTable','priceTableRemark')"
  1057. placeholder="如没有上传资料备注,需要说明原因"
  1058. />
  1059. <!-- :auto-size="{ minRows: 3, maxRows: 5 }"-->
  1060. </a-form-model-item>
  1061. </div>
  1062. <a-upload
  1063. name="file"
  1064. :multiple="true"
  1065. :action="importMinioUploadAction"
  1066. :customRequest="e => selfUploadContract(e, 'priceTable')"
  1067. :headers="tokenHeader"
  1068. :showUploadList="false"
  1069. :beforeUpload="importBeforeUpload"
  1070. @change="importHandleChange"
  1071. class="a-upload-line-30"
  1072. >
  1073. <a-button>
  1074. <a-icon type="upload"/>
  1075. 上传文件
  1076. </a-button>
  1077. </a-upload>
  1078. <div style="height: 70%">
  1079. <div class="thumb-example">
  1080. <!-- swiper1 -->
  1081. <swiper
  1082. class="swiper gallery-top"
  1083. :options="swiperOptionTop"
  1084. ref="swiperTop"
  1085. >
  1086. <swiper-slide class="slide-1" v-for="(item, index) in infoModel.priceTable" :key="item.id">
  1087. <iframe
  1088. v-if="item.urlBase"
  1089. frameborder="1"
  1090. :src="item.urlBase"
  1091. ref="ifr"
  1092. width="70%"
  1093. height="500px"
  1094. scrolling="auto">
  1095. </iframe>
  1096. <img style="width: 70%;height: 70%;border: 1px solid;"
  1097. v-if="!item.urlBase" :src="noDataPng" border="1">
  1098. <div>
  1099. <a-button v-if="item.urlBase "
  1100. style="display: block;margin-top: 1px;border-color: red;color: red;float: left"
  1101. danger @click="removeFile(item,'priceTable')">移除
  1102. </a-button>
  1103. <a-button
  1104. style="display: block;position: relative;left:20px;margin-top: 10px;border-color: #1890FF;color: #1890FF"
  1105. v-if=" item.urlBase"
  1106. @click="jumpUrl(item.urlBase)">预览
  1107. </a-button>
  1108. </div>
  1109. </swiper-slide>
  1110. <div
  1111. class="swiper-button-next swiper-button-white"
  1112. slot="button-next"
  1113. ></div>
  1114. <div
  1115. class="swiper-button-prev swiper-button-white"
  1116. slot="button-prev"
  1117. ></div>
  1118. </swiper>
  1119. <!-- swiper2 Thumbs -->
  1120. <swiper
  1121. class="swiper gallery-thumbs"
  1122. :options="swiperOptionThumbs"
  1123. ref="swiperThumbs"
  1124. >
  1125. <swiper-slide
  1126. class="slide"
  1127. style="width:100px;height:100px;"
  1128. v-for="(item, index) in infoModel.priceTable"
  1129. :key="item.id"
  1130. >
  1131. <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
  1132. <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
  1133. </div>
  1134. <img style="width: 100%;height: 96px"
  1135. v-if="!item.urlBase" :src="noDataPng" border="1">
  1136. </swiper-slide>
  1137. <!-- 点我上传文件按钮-->
  1138. <div class="clearfix">
  1139. <a-upload
  1140. listType="picture-card"
  1141. name="file"
  1142. :multiple="false"
  1143. :action="importMinioUploadAction"
  1144. :customRequest="e=>selfUploadContract(e,'priceTable')"
  1145. :headers="tokenHeader"
  1146. :showUploadList="false"
  1147. :beforeUpload="importBeforeUpload"
  1148. @change="importHandleChange"
  1149. >
  1150. <div>
  1151. <a-icon type="plus"/>
  1152. <div class="ant-upload-text">点我上传合同</div>
  1153. </div>
  1154. </a-upload>
  1155. </div>
  1156. <div class="swiper-button-next swiper-button-white" slot="button-next">
  1157. <div>
  1158. <!-- <img src="../../../../assets/images/nextImg.png" alt=""/>-->
  1159. </div>
  1160. </div>
  1161. <div class="swiper-button-prev swiper-button-white" slot="button-prev">
  1162. <div>
  1163. <!-- <img src="../../../../assets/images/prevImg.png" alt=""/>-->
  1164. </div>
  1165. </div>
  1166. </swiper>
  1167. </div>
  1168. </div>
  1169. </div>
  1170. </a-card>
  1171. <!--承诺涵-其他材料(非必填)-->
  1172. <a-card v-if="steps.currentId === 'commitment'" style="margin-bottom:10px; float: left;width: 83%;left: 2%; ">
  1173. <div slot="title">
  1174. <span style="float: left;position: relative;top: 4px">其他材料(非必填)</span>
  1175. </div>
  1176. <div class="a-card-25">
  1177. <a-alert
  1178. message="注意事项(必看)"
  1179. type="warning"
  1180. style="height: 100vh"
  1181. >
  1182. <div slot="description" class="markdown" style="position: relative;top:30px">
  1183. <ul>
  1184. <li>1)如有其他材料(非必填)请进行上传</li>
  1185. </ul>
  1186. </div>
  1187. </a-alert>
  1188. </div>
  1189. <div class="a-card-70">
  1190. <div>
  1191. <a-form-model-item style="left: -2%;" label="上传资料备注:" v-bind="labelCol1Note">
  1192. <a-textarea class="a-textarea-line-30"
  1193. v-model="infoModel.commitmentRemark"
  1194. @change="textareaChange('commitment','commitmentRemark')"
  1195. placeholder="如没有上传资料备注,需要说明原因"
  1196. />
  1197. <!-- :auto-size="{ minRows: 3, maxRows: 5 }"-->
  1198. </a-form-model-item>
  1199. </div>
  1200. <a-upload
  1201. name="file"
  1202. :multiple="true"
  1203. :action="importMinioUploadAction"
  1204. :customRequest="e => selfUploadContract(e, 'commitment')"
  1205. :headers="tokenHeader"
  1206. :showUploadList="false"
  1207. :beforeUpload="importBeforeUpload"
  1208. @change="importHandleChange"
  1209. class="a-upload-line-30"
  1210. >
  1211. <a-button>
  1212. <a-icon type="upload"/>
  1213. 上传文件
  1214. </a-button>
  1215. </a-upload>
  1216. <div style="height: 70%">
  1217. <div class="thumb-example">
  1218. <!-- swiper1 -->
  1219. <swiper
  1220. class="swiper gallery-top"
  1221. :options="swiperOptionTop"
  1222. ref="swiperTop"
  1223. >
  1224. <swiper-slide class="slide-1" v-for="(item, index) in infoModel.commitment" :key="item.id">
  1225. <iframe
  1226. v-if="item.urlBase"
  1227. frameborder="1"
  1228. :src="item.urlBase"
  1229. ref="ifr"
  1230. width="70%"
  1231. height="500px"
  1232. scrolling="auto">
  1233. </iframe>
  1234. <img style="width: 70%;height: 70%;border: 1px solid;"
  1235. v-if="!item.urlBase" :src="noDataPng" border="1">
  1236. <div>
  1237. <a-button v-if="item.urlBase"
  1238. style="display: block;margin-top: 1px;border-color: red;color: red;float: left"
  1239. danger @click="removeFile(item,'commitment')">移除
  1240. </a-button>
  1241. <a-button
  1242. style="display: block;position: relative;left:20px;margin-top: 10px;border-color: #1890FF;color: #1890FF"
  1243. v-if=" item.urlBase"
  1244. @click="jumpUrl(item.urlBase)">预览
  1245. </a-button>
  1246. </div>
  1247. </swiper-slide>
  1248. <div
  1249. class="swiper-button-next swiper-button-white"
  1250. slot="button-next"
  1251. ></div>
  1252. <div
  1253. class="swiper-button-prev swiper-button-white"
  1254. slot="button-prev"
  1255. ></div>
  1256. </swiper>
  1257. <!-- swiper2 Thumbs -->
  1258. <swiper
  1259. class="swiper gallery-thumbs"
  1260. :options="swiperOptionThumbs"
  1261. ref="swiperThumbs"
  1262. >
  1263. <swiper-slide
  1264. class="slide"
  1265. style="width:100px;height:100px;"
  1266. v-for="(item, index) in infoModel.commitment"
  1267. :key="item.id"
  1268. >
  1269. <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
  1270. <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
  1271. </div>
  1272. <img style="width: 100%;height: 96px"
  1273. v-if="!item.urlBase" :src="noDataPng" border="1">
  1274. </swiper-slide>
  1275. <!-- 点我上传文件按钮-->
  1276. <div class="clearfix">
  1277. <a-upload
  1278. listType="picture-card"
  1279. name="file"
  1280. :multiple="false"
  1281. :action="importMinioUploadAction"
  1282. :customRequest="e=>selfUploadContract(e,'commitment')"
  1283. :headers="tokenHeader"
  1284. :showUploadList="false"
  1285. :beforeUpload="importBeforeUpload"
  1286. @change="importHandleChange"
  1287. >
  1288. <div>
  1289. <a-icon type="plus"/>
  1290. <div class="ant-upload-text">点我上传其它材料</div>
  1291. </div>
  1292. </a-upload>
  1293. </div>
  1294. <div class="swiper-button-next swiper-button-white" slot="button-next">
  1295. <div>
  1296. <!-- <img src="../../../../assets/images/nextImg.png" alt=""/>-->
  1297. </div>
  1298. </div>
  1299. <div class="swiper-button-prev swiper-button-white" slot="button-prev">
  1300. <div>
  1301. <!-- <img src="../../../../assets/images/prevImg.png" alt=""/>-->
  1302. </div>
  1303. </div>
  1304. </swiper>
  1305. </div>
  1306. </div>
  1307. </div>
  1308. </a-card>
  1309. <!-- 文件存储车弹窗-->
  1310. <a-card v-if='isPhoneshow' ref="floatButton"
  1311. class="float-infoPhone">
  1312. <div class="thumb-example1">
  1313. <!-- swiper1 -->
  1314. <swiper
  1315. class="swiper gallery-top1"
  1316. :options="swiperOptionTop"
  1317. ref="swiperTop"
  1318. >
  1319. </swiper>
  1320. <!-- swiper2 Thumbs -->
  1321. <swiper
  1322. class="swiper gallery-thumbs"
  1323. :options="swiperOptionThumbs"
  1324. ref="swiperThumbs"
  1325. >
  1326. <swiper-slide v-for="(item, index) in phoneList" :key="item.id"
  1327. class="slide"
  1328. style="width:290px;height:200px;">
  1329. <div v-if="item.urlBase" style="width:290px;height: 96px;background: rgb(68,142,247);color: white">
  1330. <iframe
  1331. v-if="item.urlBase"
  1332. frameborder="1"
  1333. :src="item.urlBase"
  1334. ref="ifr"
  1335. @preview="handlePreview"
  1336. @change="handleChange"
  1337. scrolling="auto">
  1338. </iframe>
  1339. <div style="display:flex ;justify-content:center;height:100%;">
  1340. <a-button @click='selfUploadContractView(item)'>使用</a-button>
  1341. <a-button style='margin-left: 10px' @click="jumpUrl(item.urlBase)">预览</a-button>
  1342. </div>
  1343. </div>
  1344. <a-modal :visible="previewVisible" :footer="null" @cancel="handleCancel">
  1345. <img alt="example" style="width: 100%" :src="previewImage"/>
  1346. </a-modal>
  1347. </swiper-slide>
  1348. <div class="swiper-button-next swiper-button-white" slot="button-next">
  1349. <div>
  1350. </div>
  1351. </div>
  1352. <div class="swiper-button-prev swiper-button-white" slot="button-prev">
  1353. <div>
  1354. </div>
  1355. </div>
  1356. </swiper>
  1357. </div>
  1358. </a-card>
  1359. <!-- 文件存储车图标-->
  1360. <div @click='showPhone(true,true)'
  1361. ref="floatButton"
  1362. class="float-info floating-button"
  1363. :style="{'width': 70 + 'px', 'height': 70 + 'px', 'left': 94+'%' , 'top': 84 + '%'}"
  1364. >
  1365. <a-badge :count=fileShoppingNumber>
  1366. <img style="width: 89%;height: 81%;position: relative;top: 10%" :src="fileShopping" border="1">
  1367. </a-badge>
  1368. </div>
  1369. <!-- <a-icon type="folder-add" :style="{ fontSize: '30px', color: '#08c' }"/>-->
  1370. </div>
  1371. </template>
  1372. <script>
  1373. import {JeecgListMixin} from '@/mixins/JeecgListMixin'
  1374. import {getAction, httpAction, postAction} from '@api/manage'
  1375. import {snippetsOutlined, StarFilled, StarTwoTone} from '@ant-design/icons-vue';
  1376. /*无数据图片*/
  1377. import fileShopping from '@/assets/file_shopping.png'
  1378. /*无数据图片*/
  1379. import noDataPng from '@/assets/nodata.png'
  1380. let Base64 = require('js-base64').Base64
  1381. function getBase64(file) {
  1382. return new Promise((resolve, reject) => {
  1383. const reader = new FileReader();
  1384. reader.readAsDataURL(file);
  1385. reader.onload = () => resolve(reader.result);
  1386. reader.onerror = error => reject(error);
  1387. });
  1388. }
  1389. export default {
  1390. name: "TaskUploadData",
  1391. mixins: [JeecgListMixin],
  1392. inject: ['closeCurrent'],
  1393. components: {noDataPng, fileShopping},
  1394. data() {
  1395. return {
  1396. // 购物车图标数
  1397. fileShoppingNumber: 0,
  1398. btnStyle: {
  1399. "fontSize": 'small',
  1400. "top": '60vh',
  1401. "left": '90vw'
  1402. },
  1403. rules: {
  1404. scene: [
  1405. {required: true, message: '必须输入'},
  1406. ],
  1407. smsNumber: [
  1408. {required: true, message: '必须输入'},
  1409. ],
  1410. customerName: [
  1411. {required: true, message: '必须输入'},
  1412. ],
  1413. isComplete: [
  1414. {required: true, message: '必须输入'},
  1415. ],
  1416. manage: [
  1417. {required: true, message: '必须输入'},
  1418. ],
  1419. isAll: [
  1420. {required: true, message: '必须输入'},
  1421. ],
  1422. contractDate: [
  1423. {required: true, message: '必须输入'},
  1424. ],
  1425. businessLicenseDate: [
  1426. {required: true, message: '必须输入'},
  1427. ],
  1428. businessLicenseDateIs: [
  1429. {required: true, message: '必须输入'},
  1430. ],
  1431. installationAddress: [
  1432. {required: true, message: '必须输入'},
  1433. ],
  1434. floorName: [
  1435. {required: true, message: '必须输入'},
  1436. ],
  1437. firstActivationDate: [
  1438. {required: true, message: '必须输入'},
  1439. ],
  1440. customerNo: [
  1441. {required: true, message: '必须输入'},
  1442. ],
  1443. userNo: [
  1444. {required: true, message: '必须输入'},
  1445. ],
  1446. networkAccessTime: [
  1447. {required: true, message: '必须输入'},
  1448. ],
  1449. userState: [
  1450. {required: true, message: '必须输入'},
  1451. ],
  1452. contractDateIs: [
  1453. {required: true, message: '必须输入'},
  1454. ],
  1455. staffNo: [
  1456. {required: true, message: '必须输入'},
  1457. ],
  1458. codeNumber: [
  1459. {required: true, message: '必须输入'},
  1460. ],
  1461. accountCode: [
  1462. {required: true, message: '必须输入'},
  1463. ],
  1464. floorCode: [
  1465. {required: true, message: '必须输入'},
  1466. ],
  1467. userCode: [
  1468. {required: true, message: '必须输入'},
  1469. ],
  1470. managePhone: [
  1471. {required: true, message: '请输入客户经理手机号!', trigger: 'blur'}, {validator: this.isPhone}
  1472. ],
  1473. },
  1474. labelCol6: {
  1475. labelCol: {
  1476. xs: {span: 24},
  1477. sm: {span: 10},
  1478. },
  1479. wrapperCol: {
  1480. xs: {span: 24},
  1481. sm: {span: 12},
  1482. }
  1483. },
  1484. labelColContractDate: {
  1485. labelCol: {
  1486. xs: {span: 24},
  1487. sm: {span: 9},
  1488. },
  1489. wrapperCol: {
  1490. xs: {span: 24},
  1491. sm: {span: 15},
  1492. }
  1493. },
  1494. labelCol4: {
  1495. labelCol: {
  1496. xs: {span: 24},
  1497. sm: {span: 10},
  1498. },
  1499. wrapperCol: {
  1500. xs: {span: 24},
  1501. sm: {span: 12},
  1502. }
  1503. },
  1504. labelCol8: {
  1505. labelCol: {
  1506. xs: {span: 24},
  1507. sm: {span: 2},
  1508. },
  1509. wrapperCol: {
  1510. xs: {span: 24},
  1511. sm: {span: 22},
  1512. }
  1513. },
  1514. labelCol5: {
  1515. labelCol: {
  1516. xs: {span: 24},
  1517. sm: {span: 9},
  1518. },
  1519. wrapperCol: {
  1520. xs: {span: 24},
  1521. sm: {span: 4},
  1522. }
  1523. },
  1524. labelCol7: {
  1525. labelCol: {
  1526. xs: {span: 24},
  1527. sm: {span: 12},
  1528. },
  1529. wrapperCol: {
  1530. xs: {span: 24},
  1531. sm: {span: 12},
  1532. }
  1533. },
  1534. labelCol1Note: {
  1535. labelCol: {
  1536. xs: {span: 24},
  1537. sm: {span: 4},
  1538. },
  1539. wrapperCol: {
  1540. xs: {span: 24},
  1541. sm: {span: 20},
  1542. }
  1543. },
  1544. //是否整改
  1545. rectificationIs: false,
  1546. noDataPng: noDataPng,
  1547. fileShopping: fileShopping,
  1548. //加载状态
  1549. taskId: "",
  1550. loading: false,
  1551. notes: "",
  1552. infoModel: {
  1553. staffName: "",
  1554. businessLicenseDateIs: "0",
  1555. contractDateIs: '0',
  1556. blockType: "model",
  1557. control: "controlN",
  1558. //合同文件
  1559. isAll: "",
  1560. contractDate: "",
  1561. businessLicenseDate: "",
  1562. dataId: "",
  1563. logId: "",
  1564. infoId: "",
  1565. isComplete: "",
  1566. scene: "",
  1567. manage: "",
  1568. managePhone: "",
  1569. smsNumber: "",
  1570. customerNo: "",
  1571. userNo: "",
  1572. networkAccessTime: "",
  1573. customerName: "",
  1574. userState: "",
  1575. staffNo: "",
  1576. testCard: [{}],
  1577. testCardRemark: '',
  1578. contract: [{}],
  1579. contractRemark: '',
  1580. handlingContract: [{}],
  1581. handlingContractRemark: '',
  1582. handlingCard: [{}],
  1583. handlingCardRemark: '',
  1584. customerCardScanning: [{}],
  1585. customerCardScanningRemark: '',
  1586. riskTable: [{}],
  1587. riskTableRemark: '',
  1588. priceTable: [{}],
  1589. priceTableRemark: '',
  1590. commitment: [{}],
  1591. commitmentRemark: '',
  1592. },
  1593. //弹窗
  1594. previewImage: "",
  1595. previewVisible: false,
  1596. isPhoneshow: false,
  1597. phoneList: '',
  1598. url: {
  1599. "getTask": "/smsTurck/customerData/query/getTask",
  1600. "getInfoDataById": "/smsCheck/customerInfo/queryById",
  1601. "getInfoDataByInfoId": "/smsLot/customerData/queryDataLogByInfoId",
  1602. updateFile: "/smsCheck/customerData/updateFile",
  1603. minioUpload: "/smsCheck/customerData/uploadMinio",
  1604. //list: "/smsCheck/customerData/list",
  1605. addOrEdit: "/smsLot/customerData/edit/info",
  1606. lotInfo: "/smsLot/customerData/query/infoId",
  1607. checkDataId: "/smsLot/customerData/query/check/dataId",
  1608. },
  1609. //步骤条数据
  1610. //current: 0,
  1611. steps: {
  1612. // 当前所在第几部
  1613. current: 0,
  1614. currentId: "",
  1615. stepsNow: {},
  1616. stepsControlY: [
  1617. {
  1618. title: '合同',
  1619. content: 'First-content',
  1620. status: "wait",
  1621. id: 'contract'
  1622. },
  1623. {
  1624. title: '责任人和经办人授权书',
  1625. content: 'First-content',
  1626. status: "wait",
  1627. id: "handlingContract"
  1628. },
  1629. {
  1630. title: '责任人和经办人身份证',
  1631. content: 'First-content',
  1632. status: "wait",
  1633. id: "handlingCard"
  1634. },
  1635. {
  1636. title: '客户证件扫描',
  1637. content: 'First-content',
  1638. status: "wait",
  1639. id: "customerCardScanning"
  1640. },
  1641. {
  1642. title: '风险评估表',
  1643. content: 'First-content',
  1644. status: "wait",
  1645. id: 'riskTable'
  1646. },
  1647. {
  1648. title: '价格审批表',
  1649. content: 'First-content',
  1650. status: "wait",
  1651. id: 'priceTable'
  1652. },
  1653. {
  1654. title: '承诺涵(其他材料(非必填))',
  1655. content: 'First-content',
  1656. id: "commitment",
  1657. status: "wait"
  1658. }
  1659. ],
  1660. stepsControlN: [
  1661. {
  1662. title: '合同',
  1663. content: 'First-content',
  1664. status: "wait",
  1665. id: 'contract'
  1666. },
  1667. {
  1668. title: '责任人和经办人授权书',
  1669. content: 'First-content',
  1670. status: "wait",
  1671. id: "handlingContract"
  1672. },
  1673. {
  1674. title: '责任人和经办人身份证',
  1675. content: 'First-content',
  1676. status: "wait",
  1677. id: "handlingCard"
  1678. },
  1679. {
  1680. title: '客户证件扫描',
  1681. content: 'First-content',
  1682. status: "wait",
  1683. id: "customerCardScanning"
  1684. },
  1685. {
  1686. title: '风险评估表',
  1687. content: 'First-content',
  1688. status: "wait",
  1689. id: 'riskTable'
  1690. },
  1691. {
  1692. title: '承诺涵(其他材料(非必填))',
  1693. content: 'First-content',
  1694. id: "commitment",
  1695. status: "wait"
  1696. }
  1697. ],
  1698. stepsTest: [
  1699. {
  1700. title: '测试卡申请单',
  1701. content: 'First-content',
  1702. status: "wait",
  1703. id: 'testCard'
  1704. },
  1705. {
  1706. title: '责任人和经办人授权书',
  1707. content: 'First-content',
  1708. status: "wait",
  1709. id: "handlingContract"
  1710. },
  1711. {
  1712. title: '责任人和经办人身份证',
  1713. content: 'First-content',
  1714. status: "wait",
  1715. id: "handlingCard"
  1716. },
  1717. {
  1718. title: '客户证件扫描',
  1719. content: 'First-content',
  1720. status: "wait",
  1721. id: "customerCardScanning"
  1722. },
  1723. {
  1724. title: '承诺涵(其他材料(非必填))',
  1725. content: 'First-content',
  1726. id: "commitment",
  1727. status: "wait"
  1728. }
  1729. ],
  1730. },
  1731. //测试卡步骤条
  1732. next: "",
  1733. prev: "",
  1734. //客户信息ID
  1735. infoId: "",
  1736. lotData: {
  1737. //卡片是否展示
  1738. isShow: {
  1739. commitmentShow: false,
  1740. },
  1741. //正式卡/测试卡
  1742. blockType: "model",
  1743. //价格管控
  1744. control: "controlN",
  1745. //合同文件
  1746. contractFiles: [],
  1747. //责任人和经办人授权书
  1748. empowerFiles: [],
  1749. //责任人和经办人身份证
  1750. idCardFiles: [],
  1751. //客户证件扫描
  1752. scanningFiles: [],
  1753. //风险评估表
  1754. riskFiles: [],
  1755. //价格审批表
  1756. priceFiles: [],
  1757. //测试卡申请单
  1758. testCardApplication: [],
  1759. //其他材料(非必填)
  1760. commitmentFiles: [],
  1761. },
  1762. //整改稽核备注
  1763. lotNote: {
  1764. //合同
  1765. contractNote: null,
  1766. //测试卡申请单
  1767. testCardApplicationNote: null,
  1768. //责任人经办人授权书
  1769. empowerNote: null,
  1770. //责任人经办人身份证
  1771. idCardNote: null,
  1772. //客户证件
  1773. customerIdNote: null,
  1774. //风险评估表稽核结果
  1775. riskNote: null,
  1776. //价格审批表
  1777. priceApprovalNote: null,
  1778. //其他材料(非必填)
  1779. commitmentNote: null,
  1780. },
  1781. //整改稽核结果
  1782. lotState: {
  1783. //合同
  1784. contractState: null,
  1785. //测试卡申请单
  1786. testCardApplicationState: null,
  1787. //责任人经办人授权书
  1788. empowerState: null,
  1789. //责任人经办人身份证
  1790. idCardState: null,
  1791. //客户证件
  1792. customerIdState: null,
  1793. //风险评估表稽核结果
  1794. riskState: null,
  1795. //价格审批表
  1796. priceApprovalState: null,
  1797. //其他材料(非必填)
  1798. commitmentState: null,
  1799. },
  1800. //缩略与大图数据源
  1801. swiperId: 0 + 1,
  1802. swiperImg: [{}],
  1803. //轮播配置
  1804. swiperOptionTop: {
  1805. zoom: true,
  1806. loop: false,
  1807. loopedSlides: 5, // looped slides should be the same
  1808. spaceBetween: 10,
  1809. observer: true, //修改swiper自己或子元素时,自动初始化swiper
  1810. observeParents: true, //修改swiper的父元素时,自动初始化swiper
  1811. // autoplay: { //自动轮播
  1812. // delay: 2000,
  1813. // disableOnInteraction: false
  1814. // },
  1815. navigation: {
  1816. nextEl: '.swiper-button-next',
  1817. prevEl: '.swiper-button-prev'
  1818. }
  1819. },
  1820. swiperOptionThumbs: {
  1821. loop: false,
  1822. loopedSlides: 5, // looped slides should be the same
  1823. spaceBetween: 10,
  1824. centeredSlides: true,
  1825. slidesPerView: 'auto',
  1826. touchRatio: 0.2,
  1827. slideToClickedSlide: true,
  1828. navigation: {
  1829. nextEl: '.swiper-button-next',
  1830. prevEl: '.swiper-button-prev'
  1831. }
  1832. }
  1833. };
  1834. },
  1835. created() {
  1836. let control = this.lotData.control;
  1837. let blockType = this.infoModel.blockType;
  1838. this.infoModel.infoId = this.$route.query.id;
  1839. //是否突破价格管控
  1840. // if (control == "controlN") {
  1841. // this.steps.stepsNow = this.steps.stepsControlN;
  1842. // } else {
  1843. // this.steps.stepsNow = this.steps.stepsControlY;
  1844. // }
  1845. //是否突破价格管控
  1846. if (control == "controlN" && blockType == "model") {
  1847. this.steps.stepsNow = this.steps.stepsControlN;
  1848. } else if (control == "controlY" && blockType == "model") {
  1849. this.steps.stepsNow = this.steps.stepsControlY;
  1850. } else if (blockType == "test") {
  1851. this.steps.stepsNow = this.steps.stepsTest;
  1852. }
  1853. this.steps.currentId = this.steps.stepsNow[0].id;
  1854. this.infoId = this.$route.query.id;
  1855. //是否需要整改
  1856. this.lotInfoById(this.infoId)
  1857. this.getInfoDataById(this.infoId)
  1858. },
  1859. computed: {
  1860. importMinioUploadAction() {
  1861. return window._CONFIG['domianURL'] + this.url.minioUpload;
  1862. },
  1863. },
  1864. props: {
  1865. poster: {
  1866. type: String,
  1867. required: false,
  1868. default: ""
  1869. },
  1870. controls: {
  1871. type: Boolean,
  1872. required: false,
  1873. default: true
  1874. },
  1875. control: {
  1876. type: Boolean,
  1877. required: false,
  1878. default: false
  1879. },
  1880. },
  1881. watch: {
  1882. // 监听操作
  1883. videoData(val, oldVal) {
  1884. const {currentTime, duration} = val;
  1885. if (currentTime && duration && currentTime < duration) {
  1886. this.hintOperate();
  1887. }
  1888. }
  1889. },
  1890. mounted() {
  1891. // 实现swiper双向控制
  1892. this.$nextTick(() => {
  1893. const swiperTop = this.$refs.swiperTop.swiper
  1894. const swiperThumbs = this.$refs.swiperThumbs.swiper
  1895. swiperTop.controller.control = swiperThumbs
  1896. swiperThumbs.controller.control = swiperTop
  1897. })
  1898. this.infoId = this.$route.query.id;
  1899. this.getTask(this.infoId);
  1900. let control = this.lotData.control;
  1901. //是否突破价格管控
  1902. if (control == "controlN") {
  1903. this.steps.stepsNow = this.steps.stepsControlN;
  1904. } else {
  1905. this.steps.stepsNow = this.steps.stepsControlY;
  1906. }
  1907. },
  1908. methods: {
  1909. jumpUrl(url) {
  1910. var a = document.createElement("a");
  1911. a.setAttribute("href", url);
  1912. a.setAttribute("target", "_blank");
  1913. a.click();
  1914. },
  1915. handleCancel() {
  1916. this.previewVisible = false;
  1917. },
  1918. async handlePreview(file) {
  1919. if (!file.url && !file.preview) {
  1920. file.preview = await getBase64(file.originFileObj);
  1921. }
  1922. this.previewImage = file.url || file.preview || file.urlBase;
  1923. this.previewVisible = true;
  1924. },
  1925. handleChange({fileList}) {
  1926. this.fileList = fileList;
  1927. },
  1928. showPhone(isShow, msg) {
  1929. var data = {
  1930. customerNo: this.infoModel.customerNo,
  1931. stepsId: this.steps.stepsNow[this.steps.current].id,
  1932. //1:行短稽核 2:物联网业务稽核 3.复开审批 4.中继线稽核
  1933. type: '2'
  1934. }
  1935. getAction('/smsCheck/customerInfo/phone/customerPhone', data).then((res) => {
  1936. if (res.success) {
  1937. this.phoneList = JSON.parse(res.result);
  1938. if (this.phoneList !== null && this.phoneList.length !== 0) {
  1939. this.fileShoppingNumber = this.phoneList.length
  1940. if (this.isPhoneshow === false && isShow) {
  1941. this.isPhoneshow = true;
  1942. } else {
  1943. this.isPhoneshow = false;
  1944. }
  1945. } else {
  1946. this.fileShoppingNumber = 0;
  1947. if (msg) {
  1948. this.$message.warning("此类无历史上传");
  1949. }
  1950. }
  1951. } else {
  1952. this.fileShoppingNumber = 0;
  1953. }
  1954. })
  1955. },
  1956. backDate(name) {
  1957. if (name === 'contractDate') {
  1958. this.infoModel.contractDateIs = "1"
  1959. this.infoModel.contractDate = ""
  1960. }
  1961. if (name === 'businessLicenseDate') {
  1962. this.infoModel.businessLicenseDateIs = "1"
  1963. this.infoModel.businessLicenseDate = ""
  1964. }
  1965. },
  1966. isPhone(rule, value, callback) {
  1967. if (!value || new RegExp(/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/).test(value)) {
  1968. callback();
  1969. } else {
  1970. callback("您的手机号码格式不正确!");
  1971. }
  1972. },
  1973. contractDateClick(name) {
  1974. if (name =='contractDate'){
  1975. this.infoModel.contractDateIs = "1"
  1976. this.infoModel.contractDate = ""
  1977. }
  1978. if (name =='businessLicenseDate'){
  1979. this.infoModel.businessLicenseDateIs = "1"
  1980. this.infoModel.businessLicenseDate = ""
  1981. }
  1982. },
  1983. /*提交*/
  1984. submitAuditLot() {
  1985. this.uploading = true;
  1986. var info = "yes";
  1987. this.$refs.form.validate(valid => {
  1988. // 验证通过
  1989. if (!valid) {
  1990. info = "infoNo";
  1991. this.uploading = false;
  1992. }
  1993. }
  1994. )
  1995. var text = "";
  1996. for (var i in this.steps.stepsNow) {
  1997. if (this.steps.stepsNow[i].status !== "finish" && this.steps.stepsNow[i].id !=='commitment') {
  1998. // text+= '111<br/> ';
  1999. var str = this.steps.stepsNow[i].title;
  2000. text += str + "资料或备注都未上传!!!" + '<br/><br/>';
  2001. //this.$message.warn( this.steps.stepsNow[i].title +"资料或备注都未上传!!!");
  2002. info = "no";
  2003. }
  2004. }
  2005. var stringToHTML = function (str) {
  2006. var dom = document.createElement('div');
  2007. dom.innerHTML = str;
  2008. return dom;
  2009. };
  2010. console.log(stringToHTML('<h1>Hello world!</h1><p>How are you today?</p>'));
  2011. if (info === "no") {
  2012. this.$warning({
  2013. title: '提示',
  2014. dangerouslyUseHTMLString: true,
  2015. content: (h) => {
  2016. return h('div', {
  2017. domProps: {
  2018. innerHTML: text
  2019. },
  2020. }, []);
  2021. }
  2022. })
  2023. return
  2024. }
  2025. if (info === "infoNo") {
  2026. this.$warning({
  2027. title: '提示',
  2028. dangerouslyUseHTMLString: true,
  2029. content: (h) => {
  2030. return h('div', {
  2031. domProps: {
  2032. innerHTML: '基本信息未填写完整!!!'
  2033. },
  2034. }, []);
  2035. }
  2036. })
  2037. return
  2038. }
  2039. var that = this;
  2040. var data = that.infoModel;
  2041. //data =this.dataListToStr(data);
  2042. postAction("/smsLot/customerData/add", data).then((res) => {
  2043. if (res.success) {
  2044. this.uploading = false;
  2045. this.$message.success("提交成功", 3);
  2046. this.addIng == true
  2047. this.$router.push({path: '/lot/check/task/check', query: {id: that.taskId}});
  2048. this.closeCurrent();
  2049. } else {
  2050. this.uploading = false;
  2051. if (res.message !== null) {
  2052. this.$message.error(res.message);
  2053. } else {
  2054. this.$message.error("提交失败");
  2055. }
  2056. }
  2057. }).finally(() => {
  2058. this.uploading = false;
  2059. })
  2060. },
  2061. getTask(infoId) {
  2062. var that = this;
  2063. var data = {
  2064. "infoId": infoId,
  2065. }
  2066. postAction(this.url.getTask, data).then((res) => {
  2067. if (res.success) {
  2068. that.taskId = res.result.taskId;
  2069. }
  2070. })
  2071. },
  2072. addIsStaging() {
  2073. this.uploading = true;
  2074. var that = this;
  2075. var data = that.infoModel;
  2076. //data =this.dataListToStr(data);
  2077. postAction("/smsLot/customerData/addIsStaging", data).then((res) => {
  2078. if (res.success) {
  2079. this.uploading = false;
  2080. this.$message.success("提交成功", 3);
  2081. this.addIng == true
  2082. this.$router.push({path: '/lot/check/task/check', query: {id: that.taskId}});
  2083. this.closeCurrent();
  2084. } else {
  2085. this.uploading = false;
  2086. if (res.message !== null) {
  2087. this.$message.error(res.message);
  2088. } else {
  2089. this.$message.error("提交失败");
  2090. }
  2091. }
  2092. }).finally(() => {
  2093. this.uploading = false;
  2094. })
  2095. },
  2096. /**备注坚听*/
  2097. textareaChange(name, nameRemark) {
  2098. if (this.infoModel[nameRemark].length > 0) {
  2099. this.steps.stepsNow[this.steps.current].status = "finish"
  2100. } else if (this.infoModel[name].length > 0 && this.infoModel[name][0].urlBase) {
  2101. this.steps.stepsNow[this.steps.current].status = "finish"
  2102. } else {
  2103. this.steps.stepsNow[this.steps.current].status = "wait"
  2104. }
  2105. },
  2106. stepsClick(current) {
  2107. this.steps.current = current;
  2108. this.steps.currentId = this.steps.stepsNow[current].id
  2109. for (var i in this.steps.stepsNow) {
  2110. if (this.steps.stepsNow[i].status != "finish") {
  2111. this.steps.stepsNow[i].status = "wait"
  2112. }
  2113. if (this.steps.stepsNow[i].status === "finish") {
  2114. this.steps.stepsNow[i].status === "finish"
  2115. }
  2116. }
  2117. if (this.steps.stepsNow[current].status !== "finish") {
  2118. this.steps.stepsNow[current].status = "process"
  2119. }
  2120. this.showPhone(false, false);
  2121. },
  2122. getInfoDataById(id) {
  2123. var that = this;
  2124. if (id) {
  2125. var data = {
  2126. "id": id,
  2127. }
  2128. getAction(this.url.getInfoDataById, data).then((res) => {
  2129. if (res.success) {
  2130. let result = res.result;
  2131. //用户状态
  2132. that.infoModel.userState = result.userState;
  2133. //用户发展员工
  2134. that.infoModel.staffNo = result.staffNo;
  2135. that.infoModel.customerNo = result.customerNo;
  2136. that.infoModel.userNo = result.userNo;
  2137. that.infoModel.networkAccessTime = result.networkAccessTime;
  2138. that.infoModel.firstActivationDate = result.firstActivationDate;
  2139. that.infoModel.userCode = result.userCode;
  2140. that.infoModel.accountCode = result.accountCode;
  2141. that.infoModel.staffName = result.staffName;
  2142. that.notes = result.notes;
  2143. this.showPhone();
  2144. }
  2145. })
  2146. }
  2147. },
  2148. /**获取物联网文件数据*/
  2149. lotInfoById(id) {
  2150. let that = this;
  2151. let url = this.url.getInfoDataByInfoId;
  2152. let params = {
  2153. infoId: id
  2154. }
  2155. getAction(url, params).then(res => {
  2156. if (res.success) {
  2157. let data = res.result;
  2158. if (data == null || !data) {
  2159. return;
  2160. }
  2161. let result = res.result;
  2162. that.infoModel = result;
  2163. that.lotDataValue(data);
  2164. that.infoModel.testCard = JSON.parse(result.testCard);
  2165. that.infoModel.contract = JSON.parse(result.contract);
  2166. that.steps.current = 0;
  2167. that.steps.currentId = that.steps.stepsNow[0].id
  2168. that.infoModel.handlingContract = JSON.parse(result.handlingContract);
  2169. that.infoModel.handlingCard = JSON.parse(result.handlingCard);
  2170. that.infoModel.customerCardScanning = JSON.parse(result.customerCardScanning);
  2171. that.infoModel.riskTable = JSON.parse(result.riskTable);
  2172. that.infoModel.priceTable = JSON.parse(result.priceTable);
  2173. that.infoModel.commitment = JSON.parse(result.commitment);
  2174. for (var i in that.steps.stepsNow) {
  2175. for (var j in result[that.steps.stepsNow[i].id]) {
  2176. if (result[that.steps.stepsNow[i].id][0].urlBase !== undefined) {
  2177. that.steps.stepsNow[i].status = "finish"
  2178. }
  2179. if (result[that.steps.stepsNow[i].id + 'Remark'][0] !== undefined) {
  2180. that.steps.stepsNow[i].status = "finish"
  2181. }
  2182. }
  2183. }
  2184. }
  2185. }).finally(() => {
  2186. })
  2187. },
  2188. lotDataValue(data) {
  2189. let that = this;
  2190. if (data.control === '' || data.control === null) {
  2191. that.infoModel.control = 'controlN'
  2192. }
  2193. if (data.blockType === '' || data.blockType === null) {
  2194. that.infoModel.blockType = 'model'
  2195. }
  2196. //为整改
  2197. that.rectificationIs = true;
  2198. //是否突破价格管控 0:未突破;1:突破
  2199. that.lotData.control = data.control;
  2200. //卡类型 0测试卡;1正式卡,
  2201. that.lotData.blockType = data.blockType;
  2202. //判断步骤类型
  2203. let control = that.infoModel.control;
  2204. let blockType = that.infoModel.blockType;
  2205. if (control === 'controlN' && blockType === 'model') {
  2206. this.steps.stepsNow = this.steps.stepsControlN;
  2207. } else if (control === 'controlY' && blockType === 'model') {
  2208. this.steps.stepsNow = this.steps.stepsControlY;
  2209. } else if (blockType === 'test') {
  2210. this.steps.stepsNow = this.steps.stepsTest;
  2211. } else {
  2212. this.steps.stepsNow = this.steps.stepsControlN;
  2213. }
  2214. if (that.lotData.blockType == "model") {
  2215. that.swiperImg = that.lotData.contractFiles
  2216. } else if (that.lotData.blockType == 'test') {
  2217. that.swiperImg = that.lotData.testCardApplication
  2218. }
  2219. //稽核结果
  2220. //that.lotCheckById(that.infoId);
  2221. },
  2222. /**包装轮播数据*/
  2223. packageArr(data) {
  2224. let id = 0;
  2225. let newArr = []
  2226. if (data == null) {
  2227. newArr.push({})
  2228. return newArr;
  2229. }
  2230. let splice = data.split(",");
  2231. for (var i in splice) {
  2232. id = id + 1;
  2233. let filePath = splice[i];
  2234. if (filePath == "") {
  2235. break;
  2236. }
  2237. let fileName = filePath.split("/");
  2238. fileName = fileName[fileName.length - 1];
  2239. let swipData = {
  2240. id: id,
  2241. urlBase: window._CONFIG['onlinePreviewDomainURL'] + '?url='
  2242. + encodeURIComponent(
  2243. Base64.encode(
  2244. (filePath)
  2245. )),
  2246. url: filePath,
  2247. fileName: fileName
  2248. }
  2249. newArr.push(swipData);
  2250. }
  2251. return newArr;
  2252. },
  2253. /**卡类型及价格管控监听事件*/
  2254. controlChange(a, event) {
  2255. let blockType = this.infoModel.blockType;
  2256. let control = this.infoModel.control;
  2257. //是否突破价格管控
  2258. if (control == "controlN" && blockType == "model") {
  2259. this.steps.stepsNow = this.steps.stepsControlN;
  2260. } else if (control == "controlY" && blockType == "model") {
  2261. this.steps.stepsNow = this.steps.stepsControlY;
  2262. } else if (blockType == "test") {
  2263. this.steps.stepsNow = this.steps.stepsTest;
  2264. }
  2265. this.current = 0;
  2266. this.steps.current = 0;
  2267. this.steps.currentId = this.steps.stepsNow[0].id
  2268. for (var i in this.steps.stepsNow) {
  2269. for (var j in this.infoModel[this.steps.stepsNow[i].id]) {
  2270. if (this.infoModel[this.steps.stepsNow[i].id][0].urlBase !== undefined) {
  2271. this.steps.stepsNow[i].status = "finish"
  2272. }
  2273. if (this.infoModel[this.steps.stepsNow[i].id + 'Remark'][0] !== undefined) {
  2274. this.steps.stepsNow[i].status = "finish"
  2275. }
  2276. }
  2277. }
  2278. // this.currentFileType(this.current);
  2279. },
  2280. /**移除文件*/
  2281. removeFile(fileData, fileAttribute) {
  2282. let that = this.infoModel;
  2283. //处理轮播数据
  2284. let swiperImg = that[fileAttribute];
  2285. if (swiperImg) {
  2286. let number = swiperImg.indexOf(fileData);
  2287. swiperImg.splice(number, 1)
  2288. if (swiperImg.length == 0) {
  2289. swiperImg.push({})
  2290. let textId = fileAttribute + "Remark";
  2291. if (this.infoModel[textId].trim() > 0) {
  2292. this.steps.stepsNow[this.steps.current].status = "finish"
  2293. } else {
  2294. this.steps.stepsNow[this.steps.current].status = "wait"
  2295. }
  2296. } else {
  2297. this.steps.stepsNow[this.steps.current].status = "finish"
  2298. }
  2299. that[fileAttribute] = swiperImg
  2300. }
  2301. },
  2302. /**分割数组*/
  2303. spliceArr(data, fileData) {
  2304. let indexOf = data.indexOf(fileData);
  2305. return data.splice(indexOf, 1)
  2306. },
  2307. /**自定义的上传文件方法*/
  2308. /**自定义的上传文件方法*/
  2309. selfUploadContract(data, fileAttribute) {
  2310. var that = this;
  2311. if (data.file) {
  2312. let formData = new FormData();
  2313. formData.append('file', data.file)
  2314. postAction(this.url.minioUpload, formData).then((res) => {
  2315. if (res.success) {
  2316. that.swiperId = that.swiperId + 1;
  2317. console.log(that.swiperId)
  2318. //文件链接
  2319. let filePath = res.message;
  2320. let swipData = {
  2321. id: that.swiperId,
  2322. urlBase: window._CONFIG['onlinePreviewDomainURL'] + '?url='
  2323. + encodeURIComponent(
  2324. Base64.encode(
  2325. (filePath)
  2326. )),
  2327. url: filePath,
  2328. fileName: data.file.name
  2329. }
  2330. if (that.infoModel[fileAttribute][0].urlBase) {
  2331. that.infoModel[fileAttribute].push(swipData)
  2332. } else {
  2333. that.infoModel[fileAttribute] = []
  2334. //数据发生变化
  2335. that.infoModel[fileAttribute][0] = swipData;
  2336. }
  2337. // 改变步骤条状态
  2338. if (that.infoModel[fileAttribute].length > 0) {
  2339. that.steps.stepsNow[that.steps.current].status = "finish"
  2340. } else {
  2341. that.steps.stepsNow[that.steps.current].status = "wait"
  2342. }
  2343. }
  2344. })
  2345. }
  2346. },
  2347. /**文件上传成功后回调*/
  2348. importHandleChange(info) {
  2349. },
  2350. selfUploadContractView(item) {
  2351. this.idCurrent = this.steps.stepsNow[this.steps.current].id;
  2352. var fileAttribute = this.steps.stepsNow[this.steps.current].id;
  2353. var that = this;
  2354. that.swiperId = that.swiperId + 1;
  2355. console.log(that.swiperId)
  2356. //文件链接
  2357. let swipData = item;
  2358. if (that.infoModel[fileAttribute][0].urlBase) {
  2359. that.infoModel[fileAttribute].push(swipData)
  2360. } else {
  2361. that.infoModel[fileAttribute] = []
  2362. //数据发生变化
  2363. that.infoModel[fileAttribute][0] = swipData;
  2364. }
  2365. // 改变步骤条状态
  2366. if (that.infoModel[fileAttribute].length > 0) {
  2367. that.steps.stepsNow[that.steps.current].status = "finish"
  2368. } else {
  2369. that.steps.stepsNow[that.steps.current].status = "wait"
  2370. }
  2371. this.$message.success(that.steps.stepsNow[that.steps.current].title + "上传成功");
  2372. },
  2373. /**文件格式限制*/
  2374. importBeforeUpload(file) {
  2375. var fileType = file.type;
  2376. if (fileType === 'image') {
  2377. if (fileType.indexOf('image') < 0) {
  2378. this.$message.warning('请上传图片');
  2379. return false;
  2380. }
  2381. } else if (fileType === 'file') {
  2382. if (fileType.indexOf('image') >= 0) {
  2383. this.$message.warning('请上传文件');
  2384. return false;
  2385. }
  2386. }
  2387. return true
  2388. },
  2389. /**返回上一菜单*/
  2390. goBack() {
  2391. this.$router.go(-1);
  2392. this.closeCurrent();
  2393. },
  2394. /**下一步点击事件*/
  2395. nextSteps() {
  2396. if (this.swiperImg.length == 0) {
  2397. this.$message.warn("请先上传文件!")
  2398. return;
  2399. }
  2400. if (this.swiperImg.length == 1) {
  2401. if (!this.swiperImg[0].urlBase) {
  2402. this.$message.warn("请先上传文件!")
  2403. return;
  2404. }
  2405. }
  2406. if (this.current < this.steps.length) {
  2407. this.current = this.current + 1;
  2408. //其他材料(非必填)
  2409. if (this.steps[this.current].id == "commitment") {
  2410. this.lotData.isShow.commitmentShow = true;
  2411. } else {
  2412. this.lotData.isShow.commitmentShow = false;
  2413. }
  2414. this.currentFileType(this.current);
  2415. }
  2416. },
  2417. /**上一步骤*/
  2418. prevSteps() {
  2419. if (this.current != 0) {
  2420. this.current = this.current - 1;
  2421. //其他材料(非必填)
  2422. if (this.steps[this.current].id == "commitment") {
  2423. this.lotData.isShow.commitmentShow = true;
  2424. } else {
  2425. this.lotData.isShow.commitmentShow = false;
  2426. }
  2427. // this.currentFileType(this.current);
  2428. }
  2429. },
  2430. /**步骤文件类型对应*/
  2431. currentFileType(current) {
  2432. let that = this;
  2433. this.swiperImg = {}
  2434. //卡类型
  2435. let blockType = that.lotData.blockType;
  2436. //其他材料(非必填)-承诺涵
  2437. if (that.lotData.isShow.commitmentShow) {
  2438. that.swiperImg = that.lotData.commitmentFiles;
  2439. } else {
  2440. switch (current) {
  2441. case 0:
  2442. if (blockType == "test") {
  2443. that.swiperImg = that.lotData.testCardApplication
  2444. } else {
  2445. that.swiperImg = that.lotData.contractFiles
  2446. }
  2447. break;
  2448. case 1:
  2449. that.swiperImg = that.lotData.empowerFiles
  2450. break;
  2451. case 2:
  2452. that.swiperImg = that.lotData.idCardFiles
  2453. break;
  2454. case 3:
  2455. that.swiperImg = that.lotData.scanningFiles
  2456. break;
  2457. case 4:
  2458. that.swiperImg = that.lotData.riskFiles
  2459. break;
  2460. case 5:
  2461. that.swiperImg = that.lotData.priceFiles
  2462. break;
  2463. }
  2464. }
  2465. //拒绝下标为空 影响轮播样式
  2466. if (that.swiperImg.length == 0) {
  2467. that.swiperImg.push({})
  2468. }
  2469. },
  2470. urlBaseJoin(dataArray, name) {
  2471. let newDataArr = [];
  2472. for (var i in dataArray) {
  2473. let dataArrayElementElement = dataArray[i][name];
  2474. newDataArr.push(dataArrayElementElement);
  2475. }
  2476. return newDataArr.toString();
  2477. }
  2478. }
  2479. }
  2480. ;
  2481. </script>
  2482. <style lang="less" scoped>
  2483. h3 {
  2484. margin: 20px 0 0 10px;
  2485. }
  2486. .thumb-example {
  2487. //width: 864px;
  2488. margin-top: 20px;
  2489. // background: #000;
  2490. }
  2491. .thumb-example1 {
  2492. width: 1200px;
  2493. margin-top: 20px;
  2494. // background: #000;
  2495. }
  2496. .swiper-slide {
  2497. background-size: cover;
  2498. background-position: center;
  2499. }
  2500. .gallery-top {
  2501. // height: 80% !important;
  2502. /*height: 600px;*/
  2503. width: 100%;
  2504. left: 15%;
  2505. margin-bottom: 50px
  2506. }
  2507. .gallery-top1 {
  2508. // height: 80% !important;
  2509. /*height: 600px;*/
  2510. width: 100%;
  2511. left: 15%;
  2512. }
  2513. .gallery-thumbs {
  2514. height: 20% !important;
  2515. box-sizing: border-box;
  2516. padding: 10px 0px;
  2517. /* width: 864px;*/
  2518. margin-left: 2px;
  2519. .swiper-button-next {
  2520. right: 0px;
  2521. }
  2522. .swiper-button-prev {
  2523. left: 0px;
  2524. }
  2525. .swiper-button-next,
  2526. .swiper-button-prev {
  2527. background: #fff;
  2528. width: 45px;
  2529. text-align: center;
  2530. height: 101px;
  2531. top: 26%;
  2532. div {
  2533. margin-top: 30px;
  2534. background: rgb(207, 205, 205);
  2535. height: 45px;
  2536. border-radius: 50%;
  2537. img {
  2538. margin: 7px 0 0 2px;
  2539. width: 30px;
  2540. }
  2541. }
  2542. }
  2543. .swiper-button-next:hover div {
  2544. background: rgb(189, 186, 186);
  2545. }
  2546. .swiper-button-prev:hover div {
  2547. background: rgb(189, 186, 186);
  2548. }
  2549. }
  2550. .gallery-thumbs .swiper-slide {
  2551. width: 20%;
  2552. height: 80px;
  2553. // opacity: 0.4;
  2554. }
  2555. .gallery-thumbs .swiper-slide-active {
  2556. border: 2px solid red;
  2557. }
  2558. .markdown ul > li {
  2559. color: #000000d9;
  2560. font-size: 15px;
  2561. line-height: 3;
  2562. padding-left: 4px;
  2563. list-style-type: circle;
  2564. }
  2565. .liClass ul li {
  2566. //margin-top:-20px;/*设置有序列表项之间的间隔*/
  2567. font-size: 13px;
  2568. }
  2569. .float-info {
  2570. box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1);
  2571. transition: all 0.3s;
  2572. position: fixed;
  2573. bottom: 50px;
  2574. right: 30px;
  2575. width: 55px;
  2576. height: 55px;
  2577. display: flex;
  2578. flex-flow: column;
  2579. justify-content: center;
  2580. align-items: center;
  2581. z-index: 999;
  2582. background: #1890FF;
  2583. border-radius: 50%;
  2584. cursor: pointer;
  2585. }
  2586. .float-infoPhone {
  2587. margin-bottom: 10px;
  2588. float: left;
  2589. right: 11%;
  2590. box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.1);
  2591. transition: all 0.3s;
  2592. position: fixed;
  2593. bottom: 3%;
  2594. display: flex;
  2595. flex-flow: column;
  2596. justify-content: center;
  2597. align-items: center;
  2598. z-index: 999;
  2599. //background: #b3d4fc;
  2600. cursor: pointer;
  2601. }
  2602. .a-upload-line-30 {
  2603. line-height: 30px;
  2604. left: 15%;
  2605. position: relative
  2606. }
  2607. .a-textarea-line-30 {
  2608. height: 77px;
  2609. width: 80vh
  2610. }
  2611. .a-card-70 {
  2612. width: 72%;
  2613. float: left;
  2614. left: 2%;
  2615. position: relative
  2616. }
  2617. .a-card-25 {
  2618. float: left;
  2619. width: 25%
  2620. }
  2621. .floating-button {
  2622. position: fixed;
  2623. bottom: 20px;
  2624. right: 20px;
  2625. z-index: 1000;
  2626. border-radius: 50%;
  2627. color: #fff;
  2628. font-size: 24px;
  2629. width: 50px;
  2630. height: 50px;
  2631. text-align: center;
  2632. line-height: 50px;
  2633. transition: all 0.2s ease;
  2634. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  2635. cursor: pointer;
  2636. }
  2637. .floating-button:hover {
  2638. box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  2639. transform: translateY(-5px);
  2640. }
  2641. .floating-button:active {
  2642. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  2643. transform: translateY(2px);
  2644. }
  2645. .cornflowerblue {
  2646. color: cornflowerblue;
  2647. }
  2648. </style>