registration.vue 119 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143
  1. <template>
  2. <div :spinning="addIng">
  3. <!-- <div slot="title">
  4. <span style="float: left;position: relative;top: 4px">入网信息登记</span>
  5. </div>-->
  6. <!-- 步骤条-->
  7. <a-card style="margin-bottom:10px">
  8. <!-- v-model:current="current"-->
  9. <a-steps :current="current" size="default">
  10. <a-step v-for="item in steps" :key="item.title" :title="item.title"/>
  11. </a-steps>
  12. </a-card>
  13. <!--身份信息-->
  14. <a-card style="margin-bottom:10px" v-if="current==0">
  15. <div>
  16. <a-form-model
  17. ref="form"
  18. :label-col="labelCol"
  19. :wrapper-col="wrapperCol"
  20. :model="model"
  21. :rules="rules"
  22. >
  23. <div>
  24. <!-- <registation-Modal ref="registationModel" @ok="modalFormOk2"></registation-Modal> :row-class-name="tableRowClassName"-->
  25. <div>
  26. <!-- <a-button type="primary" @click="showModal">研判结果异常展示</a-button> :transformCellText="dataShow" -->
  27. <a-modal v-model:open="open" title="研判结果异常展示" @ok="handleOk" @cancel="onCance" :width="1000">
  28. <a-table :columns="columns" :data-source="dataList" :scroll="{ x: 1500, y: 300 }" :rowClassName="cellStyle" >
  29. <template #bodyCell="{ column }">
  30. <template v-if="column.key === 'operation'">
  31. </template>
  32. </template>
  33. <template v-slot:age="text, record">
  34. <div v-if="parseInt(text)<=23 || parseInt(text)>=60" style="color: red">{{ text }}</div>
  35. <div v-if="parseInt(text)>23 && parseInt(text)<60" >{{ text }}</div>
  36. </template>
  37. <template v-slot:cardStartTimeAndEnd="text, record">
  38. <div v-if="text==='是'" >{{ text }}</div>
  39. <div v-if="text==='否'" style="color: red">{{ text }}</div>
  40. </template>
  41. <template v-slot:judgmentResearchAddress="text, record">
  42. <div v-if="text==='异常'" style="color: red" >{{ text }}</div>
  43. <div v-if="text==='正常'" >{{ text }}</div>
  44. </template>
  45. <template v-slot:judgmentResearch="text, record">
  46. <div v-if="text==='异常'" style="color: red" >{{ text }}</div>
  47. <div v-if="text==='正常'" >{{ text }}</div>
  48. </template>
  49. <template v-slot:calltestResults="text, record">
  50. <div v-if="text==='关机'" style="color: red" >{{ text }}</div>
  51. <div v-if="text==='未接通'" style="color: red" >{{ text }}</div>
  52. <div v-if="text==='可接通不知晓入网事宜'" style="color: red" >{{ text }}</div>
  53. <div v-if="text==='可接通认可办理'" >{{ text }}</div>
  54. </template>
  55. <template v-slot:numberResults="text, record">
  56. <div v-if="text==='非高危'" >{{ text }}</div>
  57. <div v-else style="color: red" >{{ text }}</div>
  58. </template>
  59. </a-table>
  60. </a-modal>
  61. </div>
  62. <!-- <a-button type="link" @click="keyupInfoSelect()">身份证件号码检索</a-button>-->
  63. <a-row>
  64. <a-col :span="6">
  65. <a-form-model-item required label="身份证件号码" prop="cardNo" :labelCol="{ span:8 }" :wrapperCol="{ span: 14 }" >
  66. <!-- <a-radio-group v-model="model.cardNo" button-style="solid" slot-scope="text, record">-->
  67. <a-input v-model="model.cardNo" placeholder="请输入身份证件号码" @keyup="keyupInfo('')" id="cardNo" :disabled="isDisabled" @blur="showCheck0('cardNo')"></a-input>
  68. <!-- </a-radio-group>--><a-icon slot="prefix" type="user" :style="{ color: 'rgba(0,0,0,.25)' }"/>
  69. </a-form-model-item>
  70. </a-col>
  71. <a-col :span="6">
  72. <a-form-model-item label="身份证姓名" prop="industry" :labelCol="{ span:8 }" :wrapperCol="{ span: 14 }" >
  73. <!-- <a-radio-group v-model="model.cardName" button-style="solid" prop="cardNo">-->
  74. <a-input v-model="model.cardName" placeholder="身份证姓名" id="cardName" @blur="showCheck0('cardName')" :disabled="isDisabled"></a-input>
  75. <!-- </a-radio-group>-->
  76. </a-form-model-item>
  77. </a-col>
  78. <!-- <a-col :span="8" >-->
  79. <!-- <a-form-item label="证件期限(开始日期)" v-bind="labelCol2" prop="cardStartTime">-->
  80. <!-- <j-date :show-time="true" prop="cardStartTime" date-format="YYYY-MM-DD" placeholder="请选择开始时间" class="query-group-cust" v-model="model.cardStartTime"></j-date>-->
  81. <!-- </a-form-item>-->
  82. <!-- </a-col>-->
  83. <a-col :span="6">
  84. <a-form-model-item label="身份证地址" prop="industry" :labelCol="{ span:8 }" :wrapperCol="{ span: 14 }" >
  85. <!-- <a-radio-group v-model="model.cardName" button-style="solid" prop="cardNo">-->
  86. <a-input v-model="model.idCardAddress" placeholder="身份证地址" id="idCardAddress" @blur="showCheck0('idCardAddress')" :disabled="isDisabled"></a-input>
  87. <!-- </a-radio-group>-->
  88. </a-form-model-item>
  89. </a-col>
  90. <a-col :span="6" >
  91. <!-- <a-form-item label="身份证证件有效期" prop="industry" @click="showCheck0('cardStartTime')" :labelCol="{ span:6 }" :wrapperCol="{ span: 16 }" style="margin: 0px 0px">-->
  92. <!-- <j-date :show-time="true" date-format="YYYY-MM-DD" placeholder="请选择开始时间" class="query-group-cust"-->
  93. <!-- v-model="model.cardStartTime" id ="cardStartTime" @change="showCheck0('cardStartTime')"></j-date>-->
  94. <!-- <span class="query-group-split-cust"></span>-->
  95. <!-- <j-date :show-time="true" date-format="YYYY-MM-DD" placeholder="请选择结束时间" class="query-group-cust"-->
  96. <!-- v-model="model.cardEndTime" id="cardEndTime" @change="showCheck0('cardEndTime')"></j-date>-->
  97. <!-- <div v-if="cardDateNull" style="color: red">请选择身份证证件有效期</div>-->
  98. <!-- </a-form-item>-->
  99. <a-form-model-item label="身份证是否在有效期" prop="modelOperator" :labelCol="{ span:12 }"
  100. :wrapperCol="{ span: 11 }" style="margin: 0px 0px">
  101. <a-radio-group v-model="model.cardStartTimeAndEnd" button-style="solid" id="cardStartTimeAndEnd" @change="showCheck0('cardStartTimeAndEnd')" :disabled="isDisabled">
  102. <a-radio value="1" >是</a-radio>
  103. <a-radio value="2" >否</a-radio>
  104. </a-radio-group>
  105. <div v-if="cardStartTimeAndEndShow" style="color: red">身份证是否在有效期</div>
  106. </a-form-model-item>
  107. </a-col>
  108. </a-row>
  109. </div>
  110. </a-form-model>
  111. </div>
  112. </a-card>
  113. <!-- 入网信息登记表单-->
  114. <a-card style="margin-bottom:10px" v-if="current==0">
  115. <div>
  116. <a-form-model
  117. ref="form"
  118. :label-col="labelCol"
  119. :wrapper-col="wrapperCol"
  120. :model="model"
  121. :rules="rules"
  122. >
  123. <div>
  124. <!-- <a-divider orientation="left">填写营业厅入网提示卡-->
  125. <!-- </a-divider>-->
  126. <a-row>
  127. <a-col :span="7">
  128. <a-form-model-item label="拨测联系电话" :labelCol="{ span:8 }" :wrapperCol="{ span: 12 }" prop="phone">
  129. <!-- <a-radio-group v-model="model.phone" button-style="solid">-->
  130. <a-input v-model="model.phone" placeholder="请输入拨测联系电话"
  131. @keyup="keyupInfoPhone(model.phone)" @blur="showCheck0('phone')" id="phone" :disabled="isDisabled"></a-input>
  132. <!-- </a-radio-group>-->
  133. </a-form-model-item>
  134. </a-col>
  135. <a-col :span="7">
  136. <a-form-model-item label="联电归属地" prop="industry" :labelCol="{ span:8 }" :wrapperCol="{ span: 12 }">
  137. <!-- <a-radio-group v-model="model.address" button-style="solid">-->
  138. <a-input v-model="model.address" placeholder="请输入联电归属地" id="address" @blur="showCheck0('address')" :disabled="isDisabled"></a-input>
  139. <!-- </a-radio-group>-->
  140. </a-form-model-item>
  141. </a-col>
  142. <!-- <a-col :span="8">-->
  143. <!-- <a-form-model-item label="现用号码使用年限" prop="userOpenState" v-bind="labelCol2">-->
  144. <!-- <a-radio-group v-model="model.useLife" button-style="solid">-->
  145. <!-- <a-input v-model="model.useLife" placeholder="请输入使用年限"></a-input>-->
  146. <!-- </a-radio-group>-->
  147. <!-- </a-form-model-item>-->
  148. <!-- </a-col>-->
  149. <!-- <a-col :span="8">-->
  150. <!-- <a-form-model-item label="运营商类型" prop="userOpenState" v-bind="labelCol2">-->
  151. <!-- <a-radio-group v-model="model.phonePurpose" button-style="solid">-->
  152. <!-- <a-input v-model="model.phonePurpose" placeholder="请输入运营商类型"></a-input>-->
  153. <!-- </a-radio-group>-->
  154. <!-- </a-form-model-item>-->
  155. <!-- </a-col>-->
  156. <a-col :span="10">
  157. <a-form-model-item label="运营商类型" :labelCol="{ span:9 }"
  158. :wrapperCol="{ span: 13}" prop="operatorType" style="margin: 0px 0px">
  159. <a-radio-group v-model="model.operatorType" button-style="solid" @change="showCheck0('operatorType')" :disabled="isDisabled">
  160. <a-radio value="1">移动</a-radio>
  161. <!-- <span v-if="this.model.yidong>5 " style="color: red">[{{ this.model.yidong }}]</span><span-->
  162. <!-- v-if="this.model.yidong<5 " style="color: green">[{{ this.model.yidong }}]</span>-->
  163. <a-input-number id="inputNumberyidong" v-model="model.yidong" style="width: 45px" :min="0" :max="100" :disabled="isDisabled"/>
  164. <a-radio value="2" >联通</a-radio>
  165. <!-- <span v-if="this.model.liantong>5 " style="color: red">[{{ this.model.liantong }}]</span><span-->
  166. <!-- v-if="this.model.liantong<5 " style="color: green">[{{ this.model.liantong }}]</span>-->
  167. <a-input-number id="inputNumberliantong" v-model="model.liantong" style="width: 45px;height: 30px" :min="0" :max="100" :disabled="isDisabled"/>
  168. <br>
  169. <a-radio value="3" >电信</a-radio>
  170. <!-- <span v-if="this.model.dianxin>5 " style="color: red">[{{ this.model.dianxin }}]</span><span-->
  171. <!-- v-if="this.model.dianxin<5 " style="color: green">[{{ this.model.dianxin }}]</span>-->
  172. <a-input-number id="inputNumberdianxin" v-model="model.dianxin" style="width: 45px" :min="0" :max="100" :disabled="isDisabled"/>
  173. <a-radio value="4" >其他</a-radio>
  174. <a-input-number id="inputNumberqita" v-model="model.qita" style="width: 45px" :min="0" :max="100" :disabled="isDisabled" />
  175. <!-- <span v-if="this.model.qita>5 " style="color: red">[{{ this.model.qita }}]</span><span-->
  176. <!-- v-if="this.model.qita<5 " style="color: green">[{{ this.model.qita }}]</span>-->
  177. </a-radio-group>
  178. <div v-if="operatorTypeNull" style="color: red">请选择运营商类型</div>
  179. </a-form-model-item>
  180. </a-col>
  181. </a-row>
  182. <a-row>
  183. <a-col :span="7">
  184. <a-form-model-item label="新办号码用途" prop="phonePurpose" :labelCol="{ span:8 }" :wrapperCol="{ span: 12 }">
  185. <!-- <a-radio-group v-model="model.phonePurpose" button-style="solid">-->
  186. <a-input v-model="model.phonePurpose" placeholder="请输入用途" id="phonePurpose" @blur="showCheck0('phonePurpose')" :disabled="isDisabled"></a-input>
  187. <!-- </a-radio-group>-->
  188. </a-form-model-item>
  189. </a-col>
  190. <a-col :span="7">
  191. <a-form-model-item label="客户所属行业" prop="industry" :labelCol="{ span:8 }" :wrapperCol="{ span: 12 }"style="margin: 0px 0px" >
  192. <!-- <j-dict-select-tag placeholder="请选择客户所属行业" v-model="model.industry" dictCode="custom_industry" id="industry" @change="showCheck0('industry')" />-->
  193. <div @click="handleSearch('')">
  194. <a-auto-complete
  195. style="width: 180px"
  196. placeholder="输入搜索关键字"
  197. option-label-prop="value"
  198. @select="handleSelect"
  199. @search="handleSearch"
  200. v-model="model.industry"
  201. :defaultActiveFirstOption="false"
  202. :allowClear="true" :disabled="isDisabled">
  203. <a-spin v-if="fetching" class="auto-spin" slot="notFoundContent" size="small" />
  204. <template slot="dataSource">
  205. <a-select-option v-for="(item, index) in getDataSysDictItem" :key="index" :value="item.value" @click="clickhandleSearch(item.value)" :disabled="isDisabled" >
  206. <a-row type="flex" justify="space-between" align="middle" @change="showCheck0('industry')">
  207. <a-col>{{ item.value }}</a-col>
  208. </a-row>
  209. </a-select-option>
  210. </template>
  211. </a-auto-complete>
  212. </div>
  213. <a-input v-if="industryNullQiTa" v-model="industryQiTa" placeholder="请填写客户所属行业(其它)" id="" @keyup="showCheck0('industryQiTa')" :disabled="isDisabled"></a-input>
  214. <div v-if="industryNull" style="color: red" >请选择客户所属行业</div>
  215. </a-form-model-item>
  216. </a-col>
  217. <a-col :span="9">
  218. <a-form-model-item label="客户现用号码一证通查结果" prop="modelOperator" :labelCol="{ span:10 }"
  219. :wrapperCol="{ span: 13}" style="margin: 0px 0px">
  220. <a-radio-group v-model="model.operator" button-style="solid" id="operator" @change="showCheck0('operator')" v-bind:disabled="isDisabled">
  221. <a-radio value="1" >本地运营商</a-radio>
  222. <a-radio value="2" >异地运营商</a-radio>
  223. </a-radio-group>
  224. <div v-if="operatorNull" style="color: red">请选择客户现用号码一证通查结果</div>
  225. </a-form-model-item>
  226. </a-col>
  227. </a-row>
  228. <a-row>
  229. </a-row>
  230. <a-row>
  231. <a-col :span="15">
  232. <a-form-model-item label="拨测结果" prop="calltestResultsName" :labelCol="{ span: 3 }" :wrapperCol="{ span: 15 }" style="margin: 0px 0px">
  233. <a-radio-group v-model="model.calltestResults" button-style="solid" @change="showCheck0('calltestResults')" :disabled="isDisabled">
  234. <a-radio value="1" style="color: red">关机</a-radio>
  235. <a-radio value="2" style="color: red">未接通</a-radio>
  236. <a-radio value="3" style="color: red">可接通不知晓入网事宜</a-radio>
  237. <a-radio value="4" >可接通认可办理</a-radio>
  238. </a-radio-group>
  239. <a-button type="link" style="color: red" v-if="this.model.calltestResults==='1' ">拨测号码关机!</a-button>
  240. <div v-if="calltestResultsNull" style="color: red">请选择拨测结果</div>
  241. </a-form-model-item>
  242. </a-col>
  243. </a-row>
  244. </div>
  245. </a-form-model>
  246. </div>
  247. </a-card>
  248. <a-card style="margin-bottom:10px" v-if="current==1">
  249. <div>
  250. <a-form-model
  251. ref="form"
  252. :label-col="labelCol"
  253. :wrapper-col="wrapperCol"
  254. :model="model"
  255. :rules="rules"
  256. >
  257. <div style="overflow: auto">
  258. <a-list size="large" bordered>
  259. <template>
  260. <a-list-item class="box">
  261. <a-col :span="12" >
  262. <div>
  263. <div style="float:left;margin: 20px 3px;" id="isDxNumber"><div class="redInfo" >*</div>1、客户名下无电信号码</div>
  264. <div style="float:right;margin: 20px 10px;" >
  265. <a-radio-group v-model="model.isDxNumber" button-style="solid" @change="showCheck1('isDxNumber')" :disabled="isDisabled">
  266. <a-radio :value="1">是</a-radio>
  267. <a-radio :value="2">否</a-radio>
  268. </a-radio-group>
  269. </div>
  270. </div>
  271. </a-col>
  272. <a-col :span="12">
  273. <div style="clear: both"></div>
  274. <a-input v-model="model.isDxNumberNote" placeholder="请输入排查结果备注信息" style="margin: 3px 3px;width: 400px;float: right" :disabled="isDisabled"></a-input>
  275. </a-col>
  276. </a-list-item>
  277. <a-list-item class="box">
  278. <a-col :span="12">
  279. <div>
  280. <div style="float:left;margin: 20px 3px;" id="isBroadband"><div class="redInfo" >*</div>2、申请号码办理征信类、融合宽带业务</div>
  281. <div style="float:right;margin: 20px 10px;" >
  282. <a-radio-group v-model="model.isBroadband" button-style="solid" @change="showCheck1('isBroadband')" :disabled="isDisabled">
  283. <a-radio :value="1">是</a-radio>
  284. <a-radio :value="2">否</a-radio>
  285. </a-radio-group>
  286. </div>
  287. </div>
  288. </a-col>
  289. <a-col :span="12">
  290. <div style="clear: both"></div>
  291. <a-input v-model="model.isBroadbandNote" placeholder="请输入排查结果备注信息" style="margin: 3px 3px;width: 400px;float: right" :disabled="isDisabled"></a-input>
  292. </a-col>
  293. </a-list-item>
  294. <a-list-item class="box">
  295. <a-col span="12">
  296. <div>
  297. <div style="float:left;margin: 20px 3px;" id="isUseTo"><div class="redInfo" >*</div>3、 申请号码使用用途异常</div>
  298. <div style="float:right;margin: 20px 10px;" >
  299. <a-radio-group v-model="model.isUseTo" button-style="solid" @change="showCheck1('isUseTo')" :disabled="isDisabled">
  300. <a-radio :value="1">是</a-radio>
  301. <a-radio :value="2">否</a-radio>
  302. </a-radio-group>
  303. </div>
  304. </div>
  305. </a-col>
  306. <a-col :span="12">
  307. <div style="clear: both"></div>
  308. <a-input v-model="model.isUseToNote" placeholder="请输入排查结果备注信息" style="margin: 3px 3px;width: 400px;float: right" :disabled="isDisabled"></a-input>
  309. </a-col>
  310. </a-list-item>
  311. <a-list-item class="box">
  312. <a-col :span="12">
  313. <div>
  314. <div style="float:left;margin: 20px 3px;" id="isRefund"><div class="redInfo" >*</div>4、客户名下号码存在异常高频率充值、退费</div>
  315. <div style="float:right;margin: 20px 10px;" >
  316. <a-radio-group v-model="model.isRefund" button-style="solid" @change="showCheck1('isRefund')" :disabled="isDisabled">
  317. <a-radio :value="1">是</a-radio>
  318. <a-radio :value="2">否</a-radio>
  319. </a-radio-group>
  320. </div>
  321. </div>
  322. </a-col>
  323. <a-col :span="12">
  324. <div style="clear: both"></div>
  325. <a-input v-model="model.isRefundNote" placeholder="请输入排查结果备注信息" style="margin: 3px 3px;width: 400px;float: right" :disabled="isDisabled"></a-input>
  326. </a-col>
  327. </a-list-item>
  328. <a-list-item class="box">
  329. <a-col span="12">
  330. <div>
  331. <div style="float:left;margin: 20px 3px;" id="isShutDown"><div class="redInfo" >*</div>5、客户名下已有号码(含已注销号码)存在各类关停</div>
  332. <div style="float:right;margin: 20px 10px;" >
  333. <a-radio-group v-model="model.isShutDown" button-style="solid" @change="showCheck1('isShutDown')" :disabled="isDisabled">
  334. <a-radio :value="1">是</a-radio>
  335. <a-radio :value="2">否</a-radio>
  336. </a-radio-group>
  337. </div>
  338. </div>
  339. </a-col>
  340. <a-col :span="12">
  341. <div style="clear: both"></div>
  342. <a-input v-model="model.isShutDownNote" placeholder="请输入排查结果备注信息" style="margin: 3px 3px;width: 400px;float: right" :disabled="isDisabled"></a-input>
  343. </a-col>
  344. </a-list-item>
  345. <a-list-item class="box">
  346. <a-col span="12">
  347. <div>
  348. <div style="float:left;margin: 20px 3px;" id="isNewly"><div class="redInfo" >*</div>6、客户名下在用号码无使用记录,仍要求新办号码</div>
  349. <div style="float:right;margin: 20px 10px;" >
  350. <a-radio-group v-model="model.isNewly" button-style="solid" @change="showCheck1('isNewly')" :disabled="isDisabled">
  351. <a-radio :value="1">是</a-radio>
  352. <a-radio :value="2">否</a-radio>
  353. </a-radio-group>
  354. </div>
  355. </div>
  356. </a-col>
  357. <a-col :span="12">
  358. <div style="clear: both"></div>
  359. <a-input v-model="model.isNewlyNote" placeholder="请输入排查结果备注信息" style="margin: 3px 3px;width: 400px;float: right" :disabled="isDisabled"></a-input>
  360. </a-col>
  361. </a-list-item>
  362. <a-list-item class="box">
  363. <a-col span="12">
  364. <div>
  365. <div style="float:left;margin: 20px 3px;" id="isChannel"><div class="redInfo" >*</div>7、在多个渠道多频次入网的异常情况</div>
  366. <div style="float:right;margin: 20px 10px;" >
  367. <a-radio-group v-model="model.isChannel" button-style="solid" @change="showCheck1('isChannel')" :disabled="isDisabled">
  368. <a-radio :value="1">是</a-radio>
  369. <a-radio :value="2">否</a-radio>
  370. </a-radio-group>
  371. </div>
  372. </div>
  373. </a-col>
  374. <a-col :span="12">
  375. <div style="clear: both"></div>
  376. <a-input v-model="model.isChannelNote" placeholder="请输入排查结果备注信息" style="margin: 3px 3px;width: 400px;float: right" :disabled="isDisabled"></a-input>
  377. </a-col>
  378. </a-list-item>
  379. <a-list-item class="box">
  380. <a-col span="12">
  381. <div>
  382. <div style="float:left;margin: 20px 3px;" id="isInvolvingFraud"><div class="redInfo" >*</div>8、黑名单到期客户新入网的高危疑似涉诈号码</div>
  383. <div style="float:right;margin: 20px 10px;" >
  384. <a-radio-group v-model="model.isInvolvingFraud" button-style="solid" @change="showCheck1('isInvolvingFraud')" :disabled="isDisabled">
  385. <a-radio :value="1">是</a-radio>
  386. <a-radio :value="2">否</a-radio>
  387. </a-radio-group>
  388. </div>
  389. </div>
  390. </a-col>
  391. <a-col :span="12">
  392. <div style="clear: both"></div>
  393. <a-input v-model="model.isInvolvingFraudNote" placeholder="请输入排查结果备注信息" style="margin: 3px 3px;width: 400px;float: right" :disabled="isDisabled"></a-input>
  394. </a-col>
  395. </a-list-item>
  396. </template>
  397. </a-list>
  398. </div>
  399. </a-form-model>
  400. </div>
  401. </a-card>
  402. <a-card style="margin-bottom:10px" v-if="current==2 && !this.showInfo">
  403. <div>
  404. <a-form-model
  405. ref="form"
  406. :label-col="labelCol"
  407. :wrapper-col="wrapperCol"
  408. :model="model"
  409. :rules="rules"
  410. >
  411. <div>
  412. <a-list size="large" bordered>
  413. <a-list-item>
  414. <a-col :span="10">
  415. <div v-if="size>=1">
  416. <a-form-model-item label="新办手机号码" :labelCol="{ span:10 }" :wrapperCol="{ span:12 }" prop="phone" >
  417. <!-- <a-radio-group v-model="model.newPhone" button-style="solid">-->
  418. <a-input v-model="model.newPhone" placeholder="新办手机号码" @blur="check3('newPhone')" id="newPhone" :disabled="isDisabled"></a-input>
  419. <!-- </a-radio-group>-->
  420. </a-form-model-item>
  421. </div>
  422. <div v-show="size>=2">
  423. <a-form-model-item label="新办手机号码2" :labelCol="{ span:10 }" :wrapperCol="{ span:12 }" prop="phone" >
  424. <!-- <a-radio-group v-model="model.newPhone" button-style="solid">-->
  425. <a-input v-model="model.newPhone2" placeholder="新办手机号码" @blur="check3('newPhone2')" id="newPhone2" :disabled="isDisabled"></a-input>
  426. <!-- </a-radio-group>-->
  427. </a-form-model-item>
  428. </div>
  429. <div v-show="size>=3">
  430. <a-form-model-item label="新办手机号码3" :labelCol="{ span:10 }" :wrapperCol="{ span:12 }" prop="phone" >
  431. <!-- <a-radio-group v-model="model.newPhone" button-style="solid">-->
  432. <a-input v-model="model.newPhone3" placeholder="新办手机号码" @blur="check3('newPhone3')" id="newPhone3":disabled="isDisabled"></a-input>
  433. <!-- </a-radio-group>-->
  434. </a-form-model-item>
  435. </div>
  436. <div v-show="size>=4">
  437. <a-form-model-item label="新办手机号码4" :labelCol="{ span:10 }" :wrapperCol="{ span:12 }" prop="phone" >
  438. <!-- <a-radio-group v-model="model.newPhone" button-style="solid">-->
  439. <a-input v-model="model.newPhone4" placeholder="新办手机号码" @blur="check3('newPhone4')" id="newPhone4" :disabled="isDisabled"></a-input>
  440. <!-- </a-radio-group>-->
  441. </a-form-model-item>
  442. </div>
  443. <div v-show="size>=5">
  444. <a-form-model-item label="新办手机号码5" :labelCol="{ span:10 }" :wrapperCol="{ span:12 }" prop="phone" >
  445. <!-- <a-radio-group v-model="model.newPhone" button-style="solid">-->
  446. <a-input v-model="model.newPhone5" placeholder="新办手机号码" @blur="check3('newPhone5')" id="newPhone5" :disabled="isDisabled"></a-input>
  447. <!-- </a-radio-group>-->
  448. </a-form-model-item>
  449. </div>
  450. </a-col>
  451. <a-col :span="2" >
  452. <a-button type="link" danger @click="addPhone()" :disabled="isDisabled">(+)</a-button>
  453. <a-button type="link" danger @click="delPhone()" :disabled="isDisabled">(-)</a-button>
  454. </a-col>
  455. <a-col :span="18">
  456. </a-col>
  457. </a-list-item>
  458. <a-list-item>
  459. <a-col :span="16">
  460. <a-form-model-item id="numberResults" label=" 是否将高危号码上报蓝、紫名单或不可复开关停" v-bind="labelCol1ProMaxPlus" prop="industry">
  461. <a-checkbox-group v-model="model.numberResults" style="width: 100%">
  462. <a-row>
  463. <template v-for="(des) in this.optionsWithDisabled">
  464. <a-col :span="8">
  465. <a-checkbox :value="des.value" name="numberResults" @change="check3('numberResults'+des.value)" @click="checkboxT(des.value)" :disabled="disabledList.includes(des.value)">{{ des.text }}</a-checkbox>
  466. </a-col>
  467. </template>
  468. </a-row>
  469. </a-checkbox-group>
  470. <div v-if="numberResults" style="color: red">请选择是否将高危号码上报蓝、紫名单或不可复开关停</div>
  471. </a-form-model-item>
  472. </a-col>
  473. </a-list-item>
  474. </a-list>
  475. </div>
  476. </a-form-model>
  477. </div>
  478. </a-card>
  479. <a-card style="margin-bottom:10px" v-if="current==2 && this.showInfo ">
  480. <div>
  481. <a-form-model
  482. ref="form"
  483. :label-col="labelCol"
  484. :wrapper-col="wrapperCol"
  485. :model="model"
  486. :rules="rules"
  487. >
  488. <a-result
  489. status="success"
  490. title="无风险请继续操作!"
  491. sub-title="success." v-if="riskShow"
  492. >
  493. <template #extra>
  494. </template>
  495. </a-result>
  496. <div id="showInfo" v-if="!riskShow">
  497. <!-- <a-col :span="24">-->
  498. <!-- <div>身份证件号码 : 【 {{ this.model.cardNo }} 】 身份证姓名:【 {{ this.model.cardName }} 】 身份证证件有效期【-->
  499. <!-- {{ this.model.cardStartTime }}~{{ this.model.cardEndTime }}】-->
  500. <!-- </div>-->
  501. <!-- <div>拨测联系电话: 【 {{ this.model.phone }} 】 拨测结果: 【 {{ this.calltestResultsName }}】</div>-->
  502. <!-- <div>营业厅地址: 【 {{ this.companyName }}&#45;&#45;{{ this.hallName }} 】 工作地址:-->
  503. <!-- 【{{ this.model.wordAddress }}】现住地址(到村/小区) 【{{ this.model.currentAddress }}】-->
  504. <!-- </div>-->
  505. <!-- </a-col>-->
  506. <a-col :span="24" >
  507. <div v-for="value in newDatas" style="color: red">
  508. {{ value }}
  509. </div>
  510. </a-col>
  511. <div style="height: 80px;"></div>
  512. <a-table :columns="columns2" :data-source="dataRisk" bordered >
  513. <template #bodyCell="{ column, text }">
  514. <template v-if="column.dataIndex === 'name'">
  515. <a>{{ text }}</a>
  516. </template>
  517. </template>
  518. <template v-slot:text="text, record">
  519. <div style="color: red">{{ text }}</div>
  520. </template>
  521. <!-- <template #title>Header</template>-->
  522. <!-- <template #footer>Footer</template>-->
  523. </a-table>
  524. </div>
  525. </a-form-model>
  526. </div>
  527. </a-card>
  528. <!--附加信息-->
  529. <a-card style="margin-bottom:10px" v-show="current==0">
  530. <div>
  531. <a-form-model
  532. ref="form"
  533. :label-col="labelCol"
  534. :wrapper-col="wrapperCol"
  535. :model="model"
  536. :rules="rules"
  537. >
  538. <div>
  539. <!-- <a-divider orientation="left">附加信息-->
  540. <!-- </a-divider>-->
  541. <a-row>
  542. <a-col :span="12">
  543. <a-row>
  544. <a-col>
  545. <a-form-model-item label="营业厅地址" prop="sysBusinessHallAndSysCompany" v-bind="labelCol2">
  546. <a-col :span="10">
  547. <a-select placeholder="请选择分公司" v-model="model.company" id="company" :disabled="isDisabled">
  548. <a-select-option v-for="(item,index) in sysCompany" :key="item.id" :value="item.id"
  549. @click="change(item.id)">{{ item.name }}
  550. </a-select-option>
  551. </a-select>
  552. </a-col>
  553. <a-col :span="10">
  554. <a-select placeholder="请选择营业厅地址" v-model="model.sysBusinessHall" style="margin: 0px 0px;width: 200px" :disabled="isDisabled">
  555. <a-select-option v-for="item in sysBusinessHallList" :key="item.id" :value="item.id"
  556. @click="searchKeyWordsysBusinessHall('中国电信'+item.name,'businessAddress')">
  557. {{ item.name }}
  558. </a-select-option>
  559. </a-select>
  560. </a-col>
  561. <br>
  562. <div v-if="sysBusinessHallNull" style="color: red;margin: 0px 0px" >请选择营业厅地址</div>
  563. </a-form-model-item>
  564. </a-col>
  565. </a-row>
  566. <a-row>
  567. <a-col>
  568. <a-form-model-item label="工作地址" prop="industry" :labelCol="{ span:7}" :wrapperCol="{ span: 7}">
  569. <!-- <a-radio-group v-model="model.wordAddress" button-style="solid">-->
  570. <a-input v-model="model.wordAddress" placeholder="请输入工作地址"
  571. @keyup="searchKeyWord('model.wordAddress')" id="wordAddress" @blur="showCheck0('wordAddress')" :disabled="isDisabled"></a-input>
  572. <div class="map_search_result" v-show="this.showsearchResult">
  573. <ul style=" border-radius: 5px ;border: 0.5px solid #f1f1f1;padding: 0px; background-color: #f1f1f1;">
  574. <li style=" border-radius: 5px;list-style: none;border: 0px solid;padding: 0px; " @click="markerResult(item,'wordAddress')" v-for="(item,index) in poiList" :key="index">
  575. {{ item.name }}
  576. </li>
  577. </ul>
  578. </div>
  579. <!-- </a-radio-group>-->
  580. </a-form-model-item>
  581. </a-col>
  582. </a-row>
  583. <a-row>
  584. <a-col>
  585. <a-form-model-item label="现住地址(到村/小区)" prop="industry" :labelCol="{ span:7}" :wrapperCol="{ span: 7}">
  586. <!-- <a-radio-group v-model="model.currentAddress" button-style="solid">-->
  587. <a-input v-model="model.currentAddress" placeholder="请输入现住地址"
  588. @keyup="searchKeyWord('model.currentAddress')" id="currentAddress" @blur="showCheck0('currentAddress')" :disabled="isDisabled"></a-input>
  589. <div class="map_search_result" v-show="this.showsearchcurrentAddress">
  590. <ul style=" border-radius: 5px ;border: 0.5px solid #f1f1f1;padding: 0px; background-color: #f1f1f1;">
  591. <li style=" border-radius: 5px;list-style: none;border: 0px solid;padding: 0px; "@click="markerResult(item,'currentAddress')" v-for="(item,index) in poiList"
  592. :key="index">{{ item.name }}
  593. </li>
  594. </ul>
  595. </div>
  596. <!-- </a-radio-group>-->
  597. </a-form-model-item>
  598. </a-col>
  599. </a-row>
  600. <a-row>
  601. <a-col :span="24">
  602. <a-form-model-item label="智能地址研判" prop="userOpenState" :labelCol="{span:7}"
  603. :wrapperCol="{span:12}">
  604. <a-radio-group v-model="model.judgmentResearch" button-style="solid" @change="showCheck0('judgmentResearch')" :disabled="isDisabled">
  605. <a-radio value="1" style="color: red ">智能判研-异常</a-radio>
  606. <a-radio value="2">智能判研-正常</a-radio>
  607. </a-radio-group>
  608. <div v-if="judgmentResearchNull" style="color: red;margin-left: 40px">请选择地址研判</div>
  609. </a-form-model-item>
  610. </a-col>
  611. </a-row>
  612. <a-row>
  613. <a-col :span="24">
  614. <a-form-model-item label="人工地址判研" prop="userOpenState" :labelCol="{span:7}"
  615. :wrapperCol="{span:12}">
  616. <a-radio-group v-model="model.judgmentResearchAddress" button-style="solid" @change="showCheck0('judgmentResearchAddress')" :disabled="isDisabled">
  617. <a-radio value="1" style="color: red">人工判研-异常</a-radio>
  618. <a-radio value="2">人工判研-正常</a-radio>
  619. </a-radio-group>
  620. <div v-if="judgmentResearchAddressShow" style="color: red;margin-left: 40px">请选择判研结果</div>
  621. </a-form-model-item>
  622. </a-col>
  623. </a-row>
  624. </a-col>
  625. <a-col :span="9">
  626. <div>
  627. <div id="container" :style="{width: '600px', height: '300px'}"></div>
  628. </div>
  629. </a-col>
  630. </a-row>
  631. </div>
  632. </a-form-model>
  633. </div>
  634. </a-card>
  635. <a-card style="position: relative;bottom: 0;width: 100%">
  636. <div style="text-align: center">
  637. <a-button v-if=" !this.showInfo" style="margin-right: 8px" @click="terminatingOperation" :disabled="isDisabled">终止</a-button>
  638. <a-button v-if="current < steps.length - 1 && !this.showInfo" type="primary" @click="nextSteps">下一步</a-button>
  639. <a-button
  640. v-if="current == steps.length - 1 && !this.showInfo"
  641. @click="submitBusiness"
  642. type="primary" :disabled="isDisabled"
  643. >
  644. 提交
  645. </a-button>
  646. <a-button v-if="current > 0 && !this.showInfo" style="margin-left: 8px" @click="prevSteps">上一步</a-button>
  647. <a-button v-if="current==2 && this.showInfo" style="margin-left: 8px;margin-right: 8px" @click="terminatingPrevSteps">上一步</a-button>
  648. <a-button @click="continueOperation" type="primary" v-if="current==2 && this.showInfo ">
  649. 继续操作
  650. </a-button>
  651. <a-button v-if="current==2 && this.showInfo " style="margin-left: 8px" @click="terminatingOperation" :disabled="isDisabled">终止操作
  652. </a-button>
  653. </div>
  654. </a-card>
  655. </div>
  656. </template>
  657. <script>
  658. import Popup from './PopupSubTable.vue';
  659. import {httpAction, postAction, getAction} from "@api/manage";
  660. import {JeecgListMixin} from '@/mixins/JeecgListMixin'
  661. import AMapLoader from '@amap/amap-jsapi-loader'
  662. import {reactive} from 'vue';
  663. import axios from 'axios';
  664. //import registationModel from './model/registationModel.vue'
  665. window._AMapSecurityConfig = {
  666. securityJsCode: 'f762c44f71422cd56f90acc2a8e75144' //填写你的安全密钥 f762c44f71422cd56f90acc2a8e75144
  667. };
  668. export default {
  669. name: "registration",
  670. inject: ['closeCurrent'],
  671. mixins: [JeecgListMixin],
  672. data() {
  673. return {
  674. riskShow:true,
  675. columns:[{ title: '身份证件号码', width: 180, dataIndex: 'cardNo', key: 'cardNo' },
  676. { title: '身份证姓名', width: 150, dataIndex: 'cardName', key: 'cardName' , scopedSlots: {customRender: 'cardName'} },
  677. { title: '年龄', width: 150, dataIndex: 'age', key: 'age' , scopedSlots: {customRender: 'age'} },
  678. { title: '证件是否在期', dataIndex: 'cardStartTimeAndEnd', key: '1', width: 150 , scopedSlots: {customRender: 'cardStartTimeAndEnd'}},
  679. { title: '创建人', dataIndex: 'createBy', key: 'createBy', width: 150 },
  680. { title: '创建日期', dataIndex: 'createTime', key: 'createTime', width: 150 },
  681. { title: '工作地址', dataIndex: 'wordAddress', key: 'wordAddress', width: 150 },
  682. { title: '营业厅地址', dataIndex: 'sysBusinessHall', key: 'sysBusinessHall', width: 150 },
  683. { title: '现住地址', dataIndex: 'currentAddress', key: 'currentAddress', width: 150 },
  684. { title: '智能地址研判', dataIndex: 'judgmentResearch', key: 'judgmentResearch' , width: 150 , scopedSlots: {customRender: 'judgmentResearch'}},
  685. { title: '人工地址判研', dataIndex: 'judgmentResearchAddress', key: 'judgmentResearchAddress', width: 150 , scopedSlots: {customRender: 'judgmentResearchAddress'}},
  686. { title: '拨测结果', dataIndex: 'calltestResults', key: 'calltestResults', width: 150 , scopedSlots: {customRender: 'calltestResults'}},
  687. { title: '拨测联系电话', dataIndex: 'phone', key: 'phone', width: 150 },
  688. { title: '一证通查结果', dataIndex: 'operator', key: 'operator', width: 150 },
  689. { title: '运营商类型', dataIndex: 'operatorType', key: 'operatorType' ,width: 150},
  690. { title: '现用号码使用用途', dataIndex: 'phonePurpose', key: 'phonePurpose',width: 150 },
  691. { title: '新办手机号', dataIndex: 'newPhone', key: 'newPhone' ,width: 250},
  692. { title: '后续处理', width: 150, dataIndex: 'numberResults', key: 'numberResults', scopedSlots: {customRender: 'numberResults'}},
  693. ],
  694. columns2:[
  695. {
  696. title: '触发风险条目',
  697. dataIndex: 'name',
  698. },
  699. {
  700. title: '触发风险原因',
  701. className: 'text',
  702. dataIndex: 'text',
  703. scopedSlots: {customRender: 'text'}
  704. }
  705. ],
  706. dataRisk:[],
  707. open:false,
  708. disabledList:[],
  709. fetching: false,
  710. randomId: '',
  711. getSysDictItem: [],
  712. getDataSysDictItem:[],
  713. cardDateNull: false,
  714. industryNull: false,
  715. industryNullQiTa:false,
  716. operatorTypeNull: false,
  717. operatorNull: false,
  718. calltestResultsNull: false,
  719. sysBusinessHallNull: false,
  720. judgmentResearchNull: false,
  721. judgmentResearchAddressShow: false,
  722. color: {
  723. cardNoColor: 'black'
  724. },
  725. validatorRules: {},
  726. calltestResultsName: '',
  727. companyName: '',
  728. hallName: '',
  729. sysCompany: [],
  730. sysBusinessHallList: "",
  731. cities: "",
  732. formValidate: {
  733. province: '',
  734. city: ''
  735. },
  736. size:1,
  737. ruleValidate: '',
  738. countryName: "",
  739. cityName: "",
  740. country: '',
  741. lnglats: [],
  742. map: null,
  743. lnglatMaps: new Map(),
  744. zoom: 18,
  745. center: [118.02, 24.48],
  746. searchOption: {
  747. // 限制搜索城市的范围
  748. citylimit: false,
  749. },
  750. optionsWithDisabled:
  751. [{
  752. text: '非高危',
  753. value: '1',
  754. }, {
  755. text: '已报关停',
  756. value: '2',
  757. }, {
  758. text: '已报蓝名单',
  759. value: '3',
  760. },{
  761. text: '已报紫名单',
  762. value: '4',
  763. }],
  764. defaultValue: "",
  765. content: "",
  766. inputValue: "",
  767. mapResultList: [],
  768. searchResult: {
  769. address: "",
  770. latitude: "",
  771. longitude: "",
  772. name: "",
  773. type: "",
  774. country: "",
  775. province: "",
  776. city: "",
  777. area: "",
  778. township: "",
  779. street: "",
  780. neighborhood: "",
  781. locationName: "",
  782. },
  783. events: {
  784. click(e) {
  785. _this.center = [e.lnglat.lng, e.lnglat.lat];
  786. _this.form.lon = e.lnglat.lng;
  787. _this.form.lat = e.lnglat.lat;
  788. _this.getAddress(_this.center);
  789. _this.defaultValue = "";
  790. },
  791. },
  792. addIng: false,
  793. url: {
  794. "querySizeByCardNo": "/businessReminderCard/querySizeByCardNo",
  795. "getSysDictItem": "/sys/dict/getDictItems",
  796. "list": "",
  797. "add": "/businessReminderCard/add",
  798. "editById": "/businessReminderCard/editById",
  799. "queryById": "/businessReminderCard/queryById",
  800. "queryByCardNo": "/businessReminderCard/queryByCardNo",
  801. "getCompany": "/sysCompany/list",
  802. },
  803. labelCol: {span: 2},
  804. wrapperCol: {span: 23},
  805. // 1列
  806. labelCol1: {
  807. labelCol: {
  808. xs: {span: 24},
  809. sm: {span: 2},
  810. },
  811. wrapperCol: {
  812. xs: {span: 24},
  813. sm: {span: 21},
  814. }
  815. },
  816. labelCol1Pro: {
  817. labelCol: {
  818. span: 8
  819. },
  820. wrapperCol: {
  821. span: 15
  822. }
  823. },
  824. labelCol1Pro1A3: {
  825. labelCol: {
  826. span: 14
  827. },
  828. wrapperCol: {
  829. span: 10
  830. }
  831. },
  832. labelCol1ProA3: {
  833. labelCol: {
  834. span: 8
  835. },
  836. wrapperCol: {
  837. span: 15
  838. }
  839. },
  840. labelCol1Results: {
  841. labelCol: {
  842. span: 5
  843. },
  844. wrapperCol: {
  845. span: 15
  846. }
  847. },
  848. labelCol1ProMax: {
  849. labelCol: {
  850. span: 8
  851. },
  852. wrapperCol: {
  853. span: 15
  854. }
  855. }, labelCol1ProMax5A6: {
  856. labelCol: {
  857. span: 14
  858. },
  859. wrapperCol: {
  860. span: 5
  861. }
  862. },
  863. labelCol1ProMaxA6: {
  864. labelCol: {
  865. span: 14
  866. },
  867. wrapperCol: {
  868. span: 5
  869. }
  870. },
  871. labelCol1ProMax4A8: {
  872. labelCol: {
  873. span: 12
  874. },
  875. wrapperCol: {
  876. span: 5
  877. }
  878. }, labelCol1ProMaxA8: {
  879. labelCol: {
  880. span: 13
  881. },
  882. wrapperCol: {
  883. span: 5
  884. }
  885. },
  886. labelCol1ProMax2A7: {
  887. labelCol: {
  888. span: 11
  889. },
  890. wrapperCol: {
  891. span: 5
  892. }
  893. },
  894. labelCol1ProMaxPlus: {
  895. labelCol: {
  896. span: 12
  897. },
  898. wrapperCol: {
  899. span: 12
  900. }
  901. },
  902. // 2列
  903. labelCol2: {
  904. labelCol: {
  905. span: 7
  906. },
  907. wrapperCol: {
  908. span: 16
  909. }
  910. }, labelColDate: {
  911. labelCol: {
  912. span: 7
  913. },
  914. wrapperCol: {
  915. span: 14
  916. }
  917. },
  918. addressCol: {
  919. labelCol: {
  920. span: 8
  921. },
  922. wrapperCol: {
  923. span: 16
  924. }
  925. },
  926. //校验的规则
  927. rules: {
  928. cardNo: [
  929. {required: true, message: '请输入身份证号码!'},
  930. {validator: this.validateCardNo}
  931. ],
  932. cardName: [{
  933. required: true, message: '请输姓名!'
  934. }],
  935. cardDate: [
  936. {required: true, message: '请输入身份证证件有效期...'}
  937. ],
  938. phone: [
  939. {required: true, message: '请输入电话!', trigger: 'blur'}, {validator: this.isPhone}
  940. ],
  941. modelAddress: [
  942. {required: true, message: '请输入联电归属地!', trigger: 'blur'}
  943. ],
  944. operatorType: [
  945. {
  946. required: true,
  947. message: '请选择运营商类型',
  948. trigger: 'blur'
  949. }
  950. ],
  951. phonePurpose: [
  952. {
  953. required: true,
  954. message: '请选择新办号码用途',
  955. trigger: 'blur'
  956. }
  957. ],
  958. industry: [
  959. {
  960. required: true,
  961. message: '',
  962. trigger: 'blur'
  963. }
  964. ],
  965. modelOperator: [
  966. {
  967. required: true,
  968. message: '请选择客户现用号码!',
  969. trigger: 'blur'
  970. }
  971. ],
  972. calltestResultsName: [
  973. {
  974. required: true,
  975. message: '请选择拨测结果!',
  976. trigger: 'blur'
  977. }
  978. ],
  979. sysBusinessHallAndSysCompany: [
  980. {
  981. required: true,
  982. message: '请选择营业厅地址!',
  983. trigger: 'blur'
  984. }
  985. ],
  986. workAddress: [
  987. {
  988. required: true,
  989. message: '请输入工作地址!',
  990. trigger: 'blur'
  991. }
  992. ],
  993. currentAddress: [
  994. {
  995. required: true,
  996. message: '请输入现居住地址!',
  997. trigger: 'blur'
  998. }
  999. ],
  1000. isDxNumber: [
  1001. {
  1002. required: true,
  1003. message: '请选择客户名下无电信号码!',
  1004. trigger: 'blur'
  1005. }
  1006. ],
  1007. judgmentResearch: [
  1008. {
  1009. required: true,
  1010. message: '请选择判研结果结果!',
  1011. trigger: 'blur'
  1012. }
  1013. ]
  1014. },
  1015. poiList: '',
  1016. isSizeNumberResults: '',
  1017. showsearchResult: false,
  1018. showsearchResultBusinessAddress: true,
  1019. showsearchcurrentAddress: false,
  1020. numberResults: false,
  1021. addressG: '',
  1022. lnglat: {},
  1023. distance: '20',
  1024. distance1: '',
  1025. distance2: '',
  1026. distance3: '',
  1027. showInfo: false,
  1028. newDatas: [],
  1029. cardStartTimeAndEnd: '',
  1030. cardStartTimeAndEndShow: false,
  1031. industryQiTa:'',
  1032. isDisabled:false,
  1033. spin:false,
  1034. //表单信息
  1035. model: {
  1036. cardStartTimeAndEnd: '',
  1037. value: 0,
  1038. sysBusinessHall: '',
  1039. company: '',
  1040. industry: '',
  1041. judgmentResearch: '',
  1042. judgmentResearchAddress: '',
  1043. isShutDownNote: '',
  1044. isShutDown: '',
  1045. isRefundNote: '',
  1046. isRefund: '',
  1047. isUseToNote: '',
  1048. isUseTo: '',
  1049. isBroadbandNote: '',
  1050. isBroadband: '',
  1051. isDxNumberNote: '',
  1052. isDxNumber: '',
  1053. calltestResults: '',
  1054. operatorType: '',
  1055. yidong: 0,
  1056. liantong: 0,
  1057. dianxin: 0,
  1058. qita: 0,
  1059. operator: '',
  1060. currentAddress: '',
  1061. phonePurpose: '',
  1062. useLife: '',
  1063. address: '',
  1064. isNewly: '',
  1065. isNewlyNote: '',
  1066. isChannel: '',
  1067. isChannelNote: '',
  1068. isInvolvingFraud: '',
  1069. isInvolvingFraudNote: '',
  1070. numberResults: [],
  1071. id: null,
  1072. phone: null,
  1073. cardNo: '',
  1074. cardName: '',
  1075. cardStartTime: '',
  1076. cardEndTime: '',
  1077. idCardAddress: '',
  1078. wordAddress: '',
  1079. positionInformation: '',
  1080. businessAddress: '',
  1081. newPhone: '',
  1082. newPhone2: '',
  1083. newPhone3: '',
  1084. newPhone4: '',
  1085. newPhone5: ''
  1086. },
  1087. dataList:[],
  1088. current: 0,
  1089. //步骤条
  1090. steps: [
  1091. {
  1092. title: '入网提示卡',
  1093. content: 'First-content',
  1094. },
  1095. {
  1096. title: '排查',
  1097. content: 'First-content',
  1098. },
  1099. {
  1100. title: '后期处理',
  1101. content: 'First-content',
  1102. },
  1103. ],
  1104. }
  1105. },
  1106. created() {
  1107. this.model.id = this.$route.query.id;
  1108. this.model.cardNo = this.$route.query.cardNo;
  1109. if ( this.$route.query.isDisabled!=null && this.$route.query.isDisabled==='true' ){
  1110. this.isDisabled = true;
  1111. }
  1112. },
  1113. mounted() {
  1114. this.getSysCompany();
  1115. //DOM初始化完成进行地图初始化
  1116. this.initMap();
  1117. this.getSysDictItems()
  1118. this.queryById();
  1119. this.disabledListAdd()
  1120. },
  1121. methods: {
  1122. // dataShow(text, column, record, index ){
  1123. // if (text.record.calltestResults === '未接通' ) {
  1124. // return text.record.calltestResults= '未接通22'
  1125. // }
  1126. // },
  1127. //改变表格某一列或者某一个单元格文本颜色
  1128. cellStyle(record,index){
  1129. // if (record.calltestResults === '未接通' || record.calltestResults == '2'|| record.calltestResults == '3') {
  1130. // return 'red'
  1131. // }
  1132. },
  1133. resultData(result,newPhones){
  1134. for (let i = 0; i < result.length; i++){
  1135. if(result[i].cardStartTimeAndEnd!==null && result[i].cardStartTimeAndEnd!==''){
  1136. if (result[i].cardStartTimeAndEnd==="1"){
  1137. this.dataList[i].cardStartTimeAndEnd='是'
  1138. }
  1139. if (result[i].cardStartTimeAndEnd==="2"){
  1140. this.dataList[i].cardStartTimeAndEnd='否'
  1141. }
  1142. }
  1143. if(result[i].cardNo!==null && result[i].cardNo!==''){
  1144. var birthday = result[i].cardNo.substring(6, 14);
  1145. var year = birthday.substring(0, 4);
  1146. // 计算年龄
  1147. var currentYear = new Date().getFullYear();
  1148. var age = currentYear - parseInt(year);
  1149. if (age>=60){
  1150. age=age+'岁(老年人)'
  1151. }
  1152. if (age<=23){
  1153. age=age+'岁(在校生)'
  1154. }
  1155. this.dataList[i].age=age;
  1156. }
  1157. if (result[i].sysBusinessHall!==null &&result[i].sysBusinessHall!=='' ){
  1158. for (var item of this.sysCompany) {
  1159. if (item.id === this.model.company) {
  1160. this.companyName = item.name;
  1161. for (var it of item.sysBusinessHallList) {
  1162. if (it.id === this.model.sysBusinessHall) {
  1163. this.dataList[i].sysBusinessHall= this.companyName+ this.hallName
  1164. }
  1165. }
  1166. }
  1167. }
  1168. }
  1169. //智能地址研判
  1170. if (result[i].judgmentResearch!==null && result[i].judgmentResearch!==''){
  1171. if (result[i].judgmentResearch==="1"){
  1172. this.dataList[i].judgmentResearch='异常'
  1173. }
  1174. if (result[i].judgmentResearch==="2"){
  1175. this.dataList[i].judgmentResearch='正常'
  1176. }
  1177. }
  1178. //人工地址判研
  1179. if (result[i].judgmentResearchAddress!==null && result[i].judgmentResearchAddress!==''){
  1180. if (result[i].judgmentResearchAddress==="1"){
  1181. this.dataList[i].judgmentResearchAddress='异常'
  1182. }
  1183. if (result[i].judgmentResearchAddress==="2"){
  1184. this.dataList[i].judgmentResearchAddress='正常'
  1185. }
  1186. }
  1187. //拨测结果
  1188. if (result[i].calltestResults!==null && result[i].calltestResults!==''){
  1189. if (result[i].calltestResults==="1"){
  1190. this.dataList[i].calltestResults='关机'
  1191. }
  1192. if (result[i].calltestResults==="2"){
  1193. this.dataList[i].calltestResults='未接通'
  1194. }
  1195. if (result[i].calltestResults==="3"){
  1196. this.dataList[i].calltestResults='可接通不知晓入网事宜'
  1197. }
  1198. if (result[i].calltestResults==="4"){
  1199. this.dataList[i].calltestResults='可接通认可办理'
  1200. }
  1201. }
  1202. //运营商
  1203. if (result[i].operatorType!==null && result[i].operatorType!==''){
  1204. if (result[i].operatorType==="1"){
  1205. this.dataList[i].operatorType='移动'
  1206. }
  1207. if (result[i].operatorType==="2"){
  1208. this.dataList[i].operatorType='联调'
  1209. }if (result[i].operatorType==="3"){
  1210. this.dataList[i].operatorType='电信'
  1211. }if (result[i].operatorType==="4"){
  1212. this.dataList[i].operatorType='其它'
  1213. }
  1214. }
  1215. //一证通查结果
  1216. if (result[i].operator!==null && result[i].operator!==''){
  1217. if (result[i].operator==="1"){
  1218. this.dataList[i].operator='本地运营商'
  1219. }
  1220. if (result[i].operator==="2"){
  1221. this.dataList[i].operator='异地运营商'
  1222. }
  1223. }
  1224. let newPhonesStr='';
  1225. for (var item of newPhones) {
  1226. if (item.match(RegExp('newPhone1+')) && item.replace('newPhone1+', '') !== '') {
  1227. newPhonesStr = newPhonesStr+item.replace('newPhone1+', '')+" "
  1228. }
  1229. if (item.match(RegExp('newPhone2+')) && item.replace('newPhone2+', '') !== '') {
  1230. newPhonesStr = newPhonesStr+item.replace('newPhone2+', '')+" "
  1231. }
  1232. if (item.match(RegExp('newPhone3+')) && item.replace('newPhone3+', '') !== '') {
  1233. newPhonesStr = newPhonesStr+item.replace('newPhone3+', '')+" "
  1234. }
  1235. if (item.match(RegExp('newPhone4+')) && item.replace('newPhone4+', '') !== '') {
  1236. newPhonesStr = newPhonesStr+item.replace('newPhone4+', '')+" "
  1237. }
  1238. if (item.match(RegExp('newPhone5+')) && item.replace('newPhone5+', '') !== '') {
  1239. newPhonesStr = newPhonesStr+item.replace('newPhone5+', '')+" "
  1240. }
  1241. }
  1242. result[i].newPhone=newPhonesStr;
  1243. if (result[i].numberResults!==null && result[i].numberResults!==''){
  1244. var numberResultsList = result[i]["numberResults"].split(',');
  1245. var numberResultsListStr ='';
  1246. for (var item of numberResultsList) {
  1247. if (item==='1'){
  1248. numberResultsListStr=numberResultsListStr+'非高危'
  1249. }
  1250. if (item==='2'){
  1251. numberResultsListStr=numberResultsListStr+'已报关停'
  1252. }
  1253. if (item==='3'){
  1254. numberResultsListStr=numberResultsListStr+'已报蓝名单 '
  1255. }
  1256. if (item==='4'){
  1257. numberResultsListStr=numberResultsListStr+' 已报紫名单'
  1258. }
  1259. }
  1260. result[i].numberResults=numberResultsListStr
  1261. }
  1262. }
  1263. },
  1264. showModal(){
  1265. this.open = true;
  1266. },
  1267. handleOk(){
  1268. this.open = false;
  1269. },
  1270. modalFormOk2() {
  1271. // 新增/修改 成功时,重载列表
  1272. this.loadData2()
  1273. },
  1274. handleEdit2 (record) {
  1275. this.$refs.registationModel.edit(record)
  1276. this.$refs.registationModel.title = "新增";
  1277. this.$refs.registationModel.disableSubmit = false;
  1278. },
  1279. // 复选框禁用
  1280. checkboxT(row, index) {
  1281. //setTimeout(()=>console.log())
  1282. if (row==="1"){
  1283. this.disabledList.push("2");
  1284. this.disabledList.push("3");
  1285. this.disabledList.push("4");
  1286. }
  1287. if (row==="2"){
  1288. this.disabledList.push("1");
  1289. this.disabledList.push("3");
  1290. this.disabledList.push("4");
  1291. }
  1292. if (row==="3" ){
  1293. this.disabledList.push("1");
  1294. this.disabledList.push("2");
  1295. }
  1296. if (row==="4" ){
  1297. this.disabledList.push("1");
  1298. this.disabledList.push("2");
  1299. }
  1300. for (let i = 0; i < this.model.numberResults.length; i++){
  1301. if (row=== this.model.numberResults[i]){
  1302. //在取消选择
  1303. if (this.model.numberResults.length===1){
  1304. this.disabledList=[];
  1305. }
  1306. }
  1307. }
  1308. },
  1309. disabledListAdd() {
  1310. if (!this.isDisabled) {
  1311. for (let i = 0; i < this.model.numberResults.length; i++) {
  1312. if (this.model.numberResults[i]==="1"){
  1313. this.disabledList.push("2");
  1314. this.disabledList.push("3");
  1315. this.disabledList.push("4");
  1316. }
  1317. if (this.model.numberResults[i]==="2"){
  1318. this.disabledList.push("1");
  1319. this.disabledList.push("3");
  1320. this.disabledList.push("4");
  1321. }
  1322. if (this.model.numberResults[i]==="3" ){
  1323. this.disabledList.push("1");
  1324. this.disabledList.push("2");
  1325. }
  1326. if (this.model.numberResults[i]==="4" ){
  1327. this.disabledList.push("1");
  1328. this.disabledList.push("2");
  1329. }
  1330. }
  1331. }
  1332. if(this.isDisabled){
  1333. this.disabledList.push("1");
  1334. this.disabledList.push("2");
  1335. this.disabledList.push("3");
  1336. this.disabledList.push("4");
  1337. }
  1338. },
  1339. addPhone(){
  1340. this.size=this.size+1;
  1341. },
  1342. delPhone(){
  1343. if (this.size!==1){
  1344. this.size=this.size-1;
  1345. }
  1346. },
  1347. // 特定范围随机数
  1348. genRandom(min, max) {
  1349. return (Math.random() * (max - min + 1) | 0) + min
  1350. },
  1351. clickhandleSearch(data){
  1352. // this.model.industry=data;
  1353. if (data!==null && data!==''){
  1354. this.industryNull=false;
  1355. }
  1356. if (data!=='其它'){
  1357. this.model.industryQiTa='';
  1358. }
  1359. if (data==='其它'){
  1360. this.industryNullQiTa=true
  1361. this.industryNull=true;
  1362. }else{
  1363. this.industryNullQiTa=false
  1364. }
  1365. },
  1366. handleSearch(val) {
  1367. this.fetching = false
  1368. this.getDataSysDictItem=this.getSysDictItem;
  1369. var getDataSysDictItem =[]
  1370. if (val !== '') {
  1371. for (var i in this.getDataSysDictItem) {
  1372. if (this.getDataSysDictItem[i].text.match(RegExp(val))){
  1373. getDataSysDictItem.push(this.getDataSysDictItem[i])
  1374. }
  1375. }
  1376. this.getDataSysDictItem =getDataSysDictItem
  1377. }
  1378. },
  1379. handleSelect(val, option) {
  1380. console.log(val, option, 1000)
  1381. },
  1382. // 显示上传页面
  1383. handSubmit(record) {
  1384. let that = this;
  1385. let model = {
  1386. id: record.id,
  1387. }
  1388. postAction(this.url.editCheck, model)
  1389. .then((res) => {
  1390. if (res.success) {
  1391. that.$message.success(res.message)
  1392. that.loadData(that.ipagination.current);
  1393. } else {
  1394. that.$message.warning(res.message)
  1395. }
  1396. }).finally(() => {
  1397. })
  1398. },
  1399. //查询字典表
  1400. getSysDictItems() {
  1401. getAction(this.url.getSysDictItem + '/sys_dict_item,item_text,item_text,dict_id="1689217057012424706"').then((res) => {
  1402. if (res.success) {
  1403. let result = res.result;
  1404. if (result != null) {
  1405. this.getSysDictItem = result;
  1406. this.getDataSysDictItem=result;
  1407. }
  1408. }
  1409. })
  1410. },
  1411. validateMobile(rule, value, callback) {
  1412. let reg = /^1(3|4|5|7|8)\d{9}$/
  1413. if (!reg.test(value)) {
  1414. callback('请输入正确手机号')
  1415. } else {
  1416. callback()
  1417. }
  1418. },
  1419. // 校验身份证
  1420. validateCardNo(rule,value,callback){
  1421. if (!value || new RegExp(/(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)|(^[1-9]\d{7}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}$)/).test(value)) {
  1422. callback();
  1423. } else {
  1424. callback("您的身份证格式不正确!");
  1425. }
  1426. },
  1427. //校验姓名
  1428. validateName(rule,value,callback){
  1429. if (!value || new RegExp(/(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)|(^[1-9]\d{7}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}$)/).test(value)) {
  1430. callback();
  1431. } else {
  1432. callback("您的身份证格式不正确!");
  1433. }
  1434. },
  1435. isPhone(rule,value,callback){
  1436. 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)){
  1437. callback();
  1438. }else{
  1439. callback("您的手机号码格式不正确!");
  1440. }
  1441. },
  1442. getPhoneTypeSize() {
  1443. let data = {
  1444. "cardNo": this.model.cardNo
  1445. };
  1446. getAction(this.url.querySizeByCardNo, data).then((res) => {
  1447. if (res.success) {
  1448. let result = res.result;
  1449. if (result != null) {
  1450. this.model.yidong = result.yidong;
  1451. this.model.dianxin = result.dianxin;
  1452. this.model.liantong = result.liantong;
  1453. this.model.qita = result.qita;
  1454. }
  1455. }
  1456. })
  1457. },
  1458. getSysCompany() {
  1459. let data = {
  1460. "cardNo": this.model.cardNo
  1461. };
  1462. getAction(this.url.getCompany, data).then((res) => {
  1463. if (res.success) {
  1464. let result = res.result;
  1465. console.log(result + "result");
  1466. if (result != null) {
  1467. this.sysCompany = result;
  1468. }
  1469. }
  1470. })
  1471. },
  1472. change(val) {
  1473. for (var i = 0; i < this.sysCompany.length; i++) {
  1474. if (val == this.sysCompany[i].id) {
  1475. this.sysBusinessHallList = this.sysCompany[i].sysBusinessHallList;
  1476. }
  1477. }
  1478. },
  1479. //新增标记
  1480. showLocation(data) {
  1481. let marker = new AMap.Marker({
  1482. position: new AMap.LngLat(data[0], data[1]) //参数为经纬度
  1483. })
  1484. this.map.clearMap()// 清除所有覆盖物(点标志)
  1485. this.map.add(marker)// 添加点标志
  1486. this.showInfoWindow(marker);//自定义信息窗体
  1487. },
  1488. //自定义信息窗体
  1489. showInfoWindow(marker) {
  1490. let infoWindow = new AMap.InfoWindow({
  1491. isCustom: true, //是否自定义信息窗体
  1492. content: `<div style="background-color: white;padding: 0 5px; border-radius: 5px;border: 1px solid #cccccc;"> 地址:${this.model.wordAddress}</div>`,
  1493. closeWhenClickMap: true,
  1494. zIndex: 999,
  1495. offset: new AMap.Pixel(16, -35)
  1496. });
  1497. infoWindow.open(this.map, marker.getPosition());
  1498. },
  1499. /** 初始化搜索 */
  1500. mapSearchInit() {
  1501. let autoOptions = {
  1502. input: "tipInput",
  1503. }
  1504. let autoCompleteComponent = new AMap.Autocomplete(autoOptions);
  1505. this.autoCompleteComponent = autoCompleteComponent;
  1506. // 注册placeSearch组件
  1507. this.placeSearchComponent = new AMap.PlaceSearch()
  1508. },
  1509. searchKeyWordsysBusinessHall(data, nameType) {
  1510. if (nameType==='businessAddress'){
  1511. this.showCheck0('sysBusinessHall');
  1512. }
  1513. let that = this
  1514. that.placeSearchComponent.search(data, function (status, result) {
  1515. if (status === 'complete' && result.info === "OK") {
  1516. that.showsearchResultBusinessAddress = true
  1517. that.showsearchResult = false
  1518. that.showsearchcurrentAddress = false
  1519. that.poiList = result.poiList.pois
  1520. that.markerResult(that.poiList[0], nameType)
  1521. } else {
  1522. that.showsearchResultBusinessAddress = false
  1523. that.showsearchResult = false
  1524. that.showsearchcurrentAddress = false
  1525. that.poiList = []
  1526. //that.$message.warning("没有查到结果");
  1527. }
  1528. })
  1529. },
  1530. //根据输入内容查询
  1531. searchKeyWord(data) {
  1532. let that = this
  1533. if (data === 'model.wordAddress') {
  1534. this.showsearchResult = true;
  1535. that.placeSearchComponent.search(that.model.wordAddress, function (status, result) {
  1536. if (status === 'complete' && result.info === "OK") {
  1537. that.showsearchResultBusinessAddress = false
  1538. that.showsearchResult = true
  1539. that.showsearchcurrentAddress = false
  1540. that.poiList = result.poiList.pois
  1541. } else {
  1542. that.showsearchResult = false
  1543. that.showsearchResultBusinessAddress = false;
  1544. that.showsearchcurrentAddress = false
  1545. that.poiList = []
  1546. //that.$message.warning("没有查到结果");
  1547. }
  1548. })
  1549. }
  1550. if (data === 'model.businessAddress') {
  1551. this.showsearchResultBusinessAddress = true;
  1552. that.placeSearchComponent.search(that.model.businessAddress, function (status, result) {
  1553. if (status === 'complete' && result.info === "OK") {
  1554. that.showsearchResultBusinessAddress = true
  1555. that.showsearchResult = false
  1556. that.showsearchcurrentAddress = false
  1557. that.poiList = result.poiList.pois
  1558. } else {
  1559. that.showsearchResultBusinessAddress = false
  1560. that.showsearchResult = false
  1561. that.showsearchcurrentAddress = false
  1562. that.poiList = []
  1563. //that.$message.warning("没有查到结果");
  1564. }
  1565. })
  1566. }
  1567. if (data === 'model.currentAddress') {
  1568. this.showsearchcurrentAddress = true;
  1569. that.placeSearchComponent.search(that.model.currentAddress, function (status, result) {
  1570. if (status === 'complete' && result.info === "OK") {
  1571. that.showsearchcurrentAddress = true
  1572. that.showsearchResult = false
  1573. that.showsearchResultBusinessAddress = false
  1574. that.poiList = result.poiList.pois
  1575. } else {
  1576. that.showsearchcurrentAddress = false
  1577. that.showsearchResultBusinessAddress = false
  1578. that.showsearchResult = false
  1579. that.poiList = []
  1580. //that.$message.warning("没有查到结果");
  1581. }
  1582. })
  1583. }
  1584. },
  1585. getdiscount(lat1, lng1, lat2, lng2) {
  1586. // console.log(paramObj)
  1587. var lng1 = lng1
  1588. var lat1 = lat1
  1589. var lng2 = lng2
  1590. var lat2 = lat2
  1591. var radLat1 = lat1 * Math.PI / 180.0;
  1592. var radLat2 = lat2 * Math.PI / 180.0;
  1593. var a = radLat1 - radLat2;
  1594. var b = lng1 * Math.PI / 180.0 - lng2 * Math.PI / 180.0;
  1595. var s = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) +
  1596. Math.cos(radLat1) * Math.cos(radLat2) * Math.pow(Math.sin(b / 2), 2)));
  1597. s = s * 6378.137;// EARTH_RADIUS;
  1598. s = Math.round(s * 10000) / 10000;
  1599. s = s * 1000
  1600. if (isNaN(s)) {
  1601. return 0 + 'm';
  1602. }
  1603. if (s > 1000) {
  1604. // 大于1000米时
  1605. s = Math.floor(s / 1000 * 100) / 100;
  1606. s = s + 'km'
  1607. } else {
  1608. // 小于1000米直接返回
  1609. s = s + 'm'
  1610. }
  1611. this.distance = s;
  1612. return s;
  1613. },
  1614. space(lat1, lng1, lat2, lng2) {
  1615. console.log(lat1, lng1, lat2, lng2)
  1616. var radLat1 = lat1 * Math.PI / 180.0;
  1617. var radLat2 = lat2 * Math.PI / 180.0;
  1618. var a = radLat1 - radLat2;
  1619. var b = lng1 * Math.PI / 180.0 - lng2 * Math.PI / 180.0;
  1620. var s = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) +
  1621. Math.cos(radLat1) * Math.cos(radLat2) * Math.pow(Math.sin(b / 2), 2)));
  1622. s = s * 6378.137;
  1623. s = Math.round(s * 10000) / 10000;
  1624. return s // 单位千米
  1625. },
  1626. carGPSIP(data) {
  1627. var map = new AMap.Map("container", {resizeEnable: true});//初始化地图
  1628. //信息窗口实例
  1629. var infoWindow = new AMap.InfoWindow({offset: new AMap.Pixel(0, -30)});
  1630. //遍历生成多个标记点
  1631. data.forEach((val, key) => {
  1632. console.log("属性:" + key + ",值:" + data.get(key));
  1633. console.log("wordAddressname".indexOf("name"));
  1634. console.log(key.includes("name"));
  1635. if (!key.includes("name")) {
  1636. var marker = new AMap.Marker({
  1637. position: data.get(key),//不同标记点的经纬度
  1638. map: map
  1639. });
  1640. marker.content = data.get(key + 'name');
  1641. marker.on('click', markerClick);
  1642. marker.emit('click', {target: marker});//默认初始化不出现信息窗体,打开初始化就出现信息窗体
  1643. }
  1644. })
  1645. function markerClick(e) {
  1646. infoWindow.setContent(e.target.content);
  1647. infoWindow.open(map, e.target.getPosition());
  1648. }
  1649. map.setFitView();
  1650. },
  1651. //选择搜索的内容
  1652. markerResult(data, nameType) {
  1653. if (nameType === 'wordAddress') {
  1654. this.model.wordAddress = data.name;
  1655. }
  1656. if (nameType === 'businessAddress') {
  1657. this.model.businessAddress = data.name;
  1658. }
  1659. if (nameType === 'currentAddress') {
  1660. this.model.currentAddress = data.name;
  1661. }
  1662. this.lnglatMaps;
  1663. console.log(data)
  1664. this.showsearchResult = false;
  1665. this.showsearchResultBusinessAddress = false;
  1666. this.showsearchcurrentAddress = false;
  1667. //this.model.wordAddress = data.name; //地点名称
  1668. var marker = new AMap.Marker({
  1669. position: [Number(data.location.lng), Number(data.location.lat)],//地点名称 坐标
  1670. });
  1671. //this.map.clearMap()// 清除所有覆盖物(点标志)
  1672. //this.map.add(marker)// 添加点标志
  1673. //this.showInfoWindow(marker);
  1674. this.lnglatMaps.set(nameType, [Number(data.location.lng), Number(data.location.lat)]);
  1675. this.lnglatMaps.set(nameType + 'name', data.name);
  1676. if (this.lnglatMaps.size > 6) {
  1677. this.lnglatMaps.clear();
  1678. }
  1679. //this.lnglats.push( [Number(data.location.lng),Number(data.location.lat)]); //添加坐标
  1680. // if (this.model.wordAddress ===null || this.model.businessAddress===null || this.model.currentAddress===null){
  1681. // return;
  1682. // }
  1683. // if (this.lnglatMaps.size===4){
  1684. this.carGPSIP(this.lnglatMaps);//各个点分别显示坐标
  1685. //}
  1686. setTimeout(() => {
  1687. this.map.setCenter(data.location);
  1688. this.map.setZoom(15);
  1689. }, 50)
  1690. let thisPosition = {
  1691. mapAddress: this.model.wordAddress,
  1692. lng: data.location.lng,
  1693. lat: data.location.lat
  1694. };
  1695. var map = new Map();
  1696. map.set("lng", data.location.lng);
  1697. map.set("lat", data.location.lat);
  1698. this.mapResultList.push(map);
  1699. console.log(data.location.lng + data.location.lat + "thisPosition")
  1700. this.$emit("select", thisPosition)
  1701. if (this.lnglatMaps.size === 6) {
  1702. var currentAddressD = this.lnglatMaps.get("currentAddress");
  1703. var wordAddressD = this.lnglatMaps.get("wordAddress");
  1704. var businessAddressD = this.lnglatMaps.get("businessAddress");
  1705. this.distance1 = this.space(currentAddressD[1], currentAddressD[0], businessAddressD[1], businessAddressD[0]);//现住地址 营业厅地址
  1706. this.distance2 = this.space(wordAddressD[1], wordAddressD[0], businessAddressD[1], businessAddressD[0]);//工作地址 营业厅地址
  1707. this.distance3 = this.space(currentAddressD[1], currentAddressD[0], wordAddressD[1], wordAddressD[0]);//现住地址 工作地址
  1708. if (parseFloat(this.distance1) > parseFloat(this.distance) || parseFloat(this.distance2) > parseFloat(this.distance) || parseFloat(this.distance3) > parseFloat(this.distance)) {
  1709. this.model.judgmentResearch = "1";
  1710. } else {
  1711. this.model.judgmentResearch = "2";
  1712. }
  1713. }
  1714. },
  1715. // 获取详细地址
  1716. getAddress(center) {
  1717. let _this = this;
  1718. let geocoder = new AMap.Geocoder({});
  1719. geocoder.getAddress(center, function (status, result) {
  1720. if (status === "complete" && result.info === "OK") {
  1721. let obj = result.regeocode.addressComponent;
  1722. let locationName =
  1723. obj.province +
  1724. obj.city +
  1725. obj.district +
  1726. obj.township +
  1727. obj.street +
  1728. obj.streetNumber;
  1729. _this.form.address = locationName;
  1730. }
  1731. });
  1732. },
  1733. initMap() {
  1734. AMapLoader.load({
  1735. // key: "8e513e3c374bdb2dd0095cd337b02ee6" 密钥 f762c44f71422cd56f90acc2a8e75144
  1736. // key : 3f95d73e380b9e4a2767c306a4b59f81 密钥 c4ab681cb7c3256184ae3557dc5beabb
  1737. key: "8e513e3c374bdb2dd0095cd337b02ee6", // 申请好的Web端开发者Key,首次调用 load 时必填
  1738. version: "2.0", // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
  1739. plugins: [
  1740. 'AMap.ToolBar',
  1741. 'AMap.Scale',
  1742. 'AMap.Geolocation',
  1743. 'AMap.PlaceSearch',
  1744. 'AMap.AutoComplete',
  1745. 'AMap.Geocoder',
  1746. 'AMap.CitySearch',
  1747. 'AMap.RangingTool' // 这个就是测距插件
  1748. ],
  1749. resizeEnable: true,
  1750. }).then((AMap) => {
  1751. const that = this;
  1752. that.map = new AMap.Map("container", { //设置地图容器id
  1753. viewMode: "3D", //是否为3D地图模式
  1754. zoom: 12, //初始化地图级别
  1755. });
  1756. that.handleClick(AMap)//地图选点
  1757. that.map.addControl(new AMap.Scale()) // 在图面添加比例尺控件,展示地图在当前层级和纬度下的比例尺
  1758. that.map.addControl(new AMap.ToolBar()) //在图面添加鹰眼控件,在地图右下角显示地图的缩略图
  1759. that.geocoder = new AMap.Geocoder()
  1760. that.mapSearchInit()
  1761. }).catch(e => {
  1762. console.log(e);
  1763. })
  1764. },
  1765. //点击地图获取地理位置
  1766. handleClick() {
  1767. this.map.on('click', (e) => {
  1768. let lng = e.lnglat.lng
  1769. let lat = e.lnglat.lat
  1770. let marker = new AMap.Marker({
  1771. position: new AMap.LngLat(lng, lat)
  1772. })
  1773. this.map.clearMap()// 清除所有覆盖物(点标志)
  1774. this.map.add(marker)// 添加点标志
  1775. let lnglat = [lng, lat]
  1776. let that = this
  1777. that.geocoder.getAddress(lnglat, function (status, result) {
  1778. if (status === 'complete' && result.regeocode) {
  1779. that.address = result.regeocode.formattedAddress;
  1780. that.showInfoWindow(marker);//自定义信息窗体
  1781. let thisPosition = {
  1782. address: that.address,
  1783. lng: lng,
  1784. lat: lat
  1785. };
  1786. that.$emit("select", thisPosition) //返回给父组件
  1787. } else {
  1788. this.$message.error('根据经纬度查询地址失败')
  1789. }
  1790. })
  1791. })
  1792. },
  1793. //获取当前定位
  1794. getCurrentLocation() {
  1795. const that = this;
  1796. that.geolocation = new AMap.Geolocation({
  1797. timeout: 3000, //超过3秒后停止定位,默认:5s
  1798. enableHighAccuracy: true,
  1799. zoomToAccuracy: true, //定位成功后是否自动调整地图视野到定位点
  1800. });
  1801. that.geolocation.getCurrentPosition(function (status, result) {
  1802. //备注:getCurrentPosition方法会调用超时或失败:
  1803. //Get geolocation time out:浏览器定位超时,包括原生的超时,可以适当增加超时属性的设定值以减少这一现象。
  1804. //另外还有个别浏览器(如google Chrome浏览器等)本身的定位接口是黑洞,通过其请求定位完全没有回应,也会超时返回失败。
  1805. //Get geolocation failed:定位失败,Chrome、火狐以及部分套壳浏览器接入的定位服务在国外,有较大限制,失败率高。
  1806. console.log(status, result);
  1807. if (status == 'complete') {
  1808. that.onComplete(result)
  1809. } else {
  1810. that.onError(result) //失败后可使用getCityInfo获取非精准定位(具体到省市)
  1811. }
  1812. });
  1813. },
  1814. //解析定位结果
  1815. onComplete(data) {
  1816. console.log('定位结果:' + data.position) //经纬度信息
  1817. let lnglat = data.position;
  1818. let marker = new AMap.Marker({ //创建标记
  1819. position: new AMap.LngLat(lnglat[0], lnglat[1])
  1820. })
  1821. this.map.clearMap()// 清除所有覆盖物(点标志)
  1822. this.map.add(marker)// 添加点标志
  1823. let that = this
  1824. //经纬度转换为中文地址详情
  1825. that.geocoder.getAddress(lnglat, function (status, result) {
  1826. if (status === 'complete' && result.regeocode) {
  1827. that.address = result.regeocode.formattedAddress;
  1828. that.showInfoWindow(marker);//自定义信息窗体
  1829. } else {
  1830. this.$message.error('根据经纬度查询地址失败')
  1831. }
  1832. })
  1833. },
  1834. //解析定位错误信息
  1835. onError(data) {
  1836. this.getLngLatLocation()
  1837. },
  1838. //在获取具体定位失败时调用的代码:(非精准定位!!!)
  1839. getLngLatLocation() {
  1840. const that = this;
  1841. that.geolocation.getCityInfo(function (status, result) {
  1842. if (status === 'complete') {
  1843. let data = result.position
  1844. that.address = result.province + result.city;
  1845. that.showLocation(data)
  1846. } else {
  1847. this.$message.error('获取地址失败')
  1848. }
  1849. })
  1850. },
  1851. keyupInfoSelect() {
  1852. if (this.model.cardNo === '' ||this.model.cardNo===undefined ) {
  1853. return;
  1854. }
  1855. this.closeCurrent();
  1856. this.$router.push({path: '/network/PopupSub', query: {cardNo: this.model.cardNo}});
  1857. },
  1858. keyupInfoPhone(phone) {
  1859. let data = {
  1860. "number": phone
  1861. };
  1862. if (phone.length === 11) {
  1863. let data = {
  1864. "mobile": phone
  1865. };
  1866. getAction("businessReminderCard/queryByMobile", data).then((res) => {
  1867. console.log(res)
  1868. if (res != null) {
  1869. this.model.address = res;
  1870. }
  1871. })
  1872. }
  1873. },
  1874. onCance () {
  1875. var view =this.model;
  1876. Object.keys(view).forEach(function (key) {
  1877. view[key] = ''
  1878. });
  1879. this.industryQiTa='';
  1880. },
  1881. keyupInfo(info) {
  1882. this.spin=true ;
  1883. // this.handleEdit2()
  1884. //身份证输入查询
  1885. if (this.model.cardNo.length === 15 || this.model.cardNo.length === 18) {
  1886. let that = this;
  1887. let data = {
  1888. "cardNo": this.model.cardNo,
  1889. "id": this.model.id
  1890. }
  1891. var newPhones;
  1892. //this.getPhoneTypeSize();
  1893. getAction(that.url.queryByCardNo, data).then((res) => {
  1894. if (res.success) {
  1895. let result = res.result;
  1896. let view = this.model;
  1897. if (result != null) {
  1898. var i=0;
  1899. Object.keys(view).forEach(function (key) {
  1900. if (key==='company'){
  1901. that.change(result[0][key]);
  1902. }
  1903. view[key] = result[0][key];
  1904. if (key==='newPhone'){
  1905. if ( result[0][key]!==null && result[0][key]!==''){
  1906. newPhones = result[0][key].split(',');
  1907. }
  1908. }
  1909. if (key==='industry'){
  1910. var a=0;
  1911. for (var s in that.getDataSysDictItem) {
  1912. if (that.getDataSysDictItem[s].text.match(RegExp(result[0][key]))){
  1913. a++;
  1914. }
  1915. }
  1916. if (a===0){
  1917. view.industry='其它';
  1918. that.industryQiTa= result[0][key];
  1919. that.industryNullQiTa=true;
  1920. }
  1921. }
  1922. })
  1923. for (var item of newPhones) {
  1924. if (item.match(RegExp('newPhone1+')) && item.replace('newPhone1+','')!==''){
  1925. this.model.newPhone=item.replace('newPhone1+','')
  1926. }
  1927. if (item.match(RegExp('newPhone2+'))&& item.replace('newPhone2+','')!==''){
  1928. that.size=2;
  1929. this.model.newPhone2=item.replace('newPhone2+','')
  1930. }
  1931. if (item.match(RegExp('newPhone3+'))&& item.replace('newPhone3+','')!==''){
  1932. that.size=3;
  1933. this.model.newPhone3=item.replace('newPhone3+','')
  1934. }
  1935. if (item.match(RegExp('newPhone4+'))&& item.replace('newPhone4+','')!==''){
  1936. that.size=4;
  1937. this.model.newPhone4=item.replace('newPhone4+','')
  1938. }
  1939. if (item.match(RegExp('newPhone5+'))&& item.replace('newPhone5+','')!==''){
  1940. that.size=5;
  1941. this.model.newPhone5=item.replace('newPhone5+','')
  1942. }
  1943. }
  1944. for (var item of this.sysCompany) {
  1945. if (item.id === this.model.company) {
  1946. this.companyName = item.name;
  1947. this.change(item.id);
  1948. for (var it of item.sysBusinessHallList) {
  1949. if (it.id === this.model.sysBusinessHall) {
  1950. this.hallName = it.name;
  1951. this.model.sysBusinessHall=it.id
  1952. }
  1953. }
  1954. }
  1955. }
  1956. this.isSizeNumberResults = result[0]["isSizeNumberResults"];
  1957. if (this.model.wordAddress!=='' && this.model.wordAddress!==null){
  1958. this.searchKeyWordsysBusinessHall(this.model.wordAddress,'wordAddress');
  1959. }
  1960. if (this.hallName!=='' && this.hallName!==null){
  1961. this.searchKeyWordsysBusinessHall('中国电信'+this.hallName,'businessAddress');
  1962. }
  1963. if (this.model.currentAddress!=='' && this.model.currentAddress!==null){
  1964. this.searchKeyWordsysBusinessHall(this.model.currentAddress,'currentAddress');
  1965. }
  1966. if (info===''){
  1967. this.model.id=null;
  1968. }
  1969. this.dataList=result;
  1970. if (info===''){
  1971. this.resultData(result,newPhones);
  1972. if (result[0]["isSizeNumberResults"] === 'is') {
  1973. this.showModal()
  1974. }
  1975. }
  1976. this.disabledListAdd()
  1977. this.showCheck0('all');
  1978. // this.$confirm({
  1979. // title: "确认是否继续...",
  1980. // content: '该用户有多个不友好研判结果',
  1981. // onOk: function () {
  1982. //
  1983. // },
  1984. // onCancel: function () {
  1985. // Object.keys(view).forEach(function (key) {
  1986. // view[key] = '';
  1987. // })
  1988. // }
  1989. // });
  1990. // }
  1991. }
  1992. // this.$refs.modalDetail.detail( );
  1993. // this.$refs.modalDetail.title = "详情";
  1994. }
  1995. })
  1996. }
  1997. this.spin=false ;
  1998. },
  1999. /**获取详情*/
  2000. queryById() {
  2001. this.model.id = this.$route.query.id;
  2002. this.model.cardNo = this.$route.query.cardNo;
  2003. if ( this.$route.query.isDisabled!=null && this.$route.query.isDisabled==='true' ){
  2004. this.isDisabled = true;
  2005. }
  2006. this.getSysCompany();
  2007. this.keyupInfo('update');
  2008. this.change(this.model.company)
  2009. },
  2010. showCheck0(data){
  2011. var info = true;
  2012. if (data==='all' || data==='cardNo'){ if (this.model.cardNo==='' || this.model.cardNo===null){
  2013. document.getElementById('cardNo').style.borderColor = "red";
  2014. info=false;
  2015. }else {
  2016. document.getElementById('cardNo').style.borderColor = "#d9d9d9";
  2017. } }
  2018. if (data==='all' || data==='idCardAddress'){ if (this.model.idCardAddress==='' || this.model.idCardAddress===null){
  2019. document.getElementById('idCardAddress').style.borderColor = "red";
  2020. info=false;
  2021. }else {
  2022. document.getElementById('idCardAddress').style.borderColor = "#d9d9d9";
  2023. } }
  2024. if (data==='all' || data==="cardName"){ if (this.model.cardName==='' || this.model.cardName===null){
  2025. document.getElementById('cardName').style.borderColor = "red";
  2026. info=false;
  2027. }else {
  2028. document.getElementById('cardName').style.borderColor = "#d9d9d9";
  2029. }}
  2030. if (data==='all' || data==="phone"){ if (this.model.phone==='' || this.model.phone===null){
  2031. document.getElementById('phone').style.borderColor = "red";
  2032. info=false;
  2033. }else {
  2034. document.getElementById('phone').style.borderColor = "#d9d9d9";
  2035. } }
  2036. if (data==='all' || data==="address"){ if (this.model.address===''|| this.model.address===null){
  2037. document.getElementById('address').style.borderColor = "red";
  2038. info=false;
  2039. }else {
  2040. document.getElementById('address').style.borderColor = "#d9d9d9";
  2041. } }
  2042. if (data==='all' || data==="phonePurpose"){ if (this.model.phonePurpose==='' || this.model.phonePurpose===null){
  2043. document.getElementById('phonePurpose').style.borderColor = "red";
  2044. info=false;
  2045. }else {
  2046. document.getElementById('phonePurpose').style.borderColor = "#d9d9d9";
  2047. } }
  2048. if (data==='all' || data==="industry"){ if (this.model.industry==='' || this.model.industry===null){
  2049. this.industryNull=true
  2050. info=false;
  2051. }else {
  2052. this.industryNull=false
  2053. }}
  2054. if (this.model.industry==='' || this.model.industry===null || this.model.industry==='其它'){
  2055. {
  2056. if (data === 'all' || data === "industryQiTa") {
  2057. if (this.industryQiTa === '' || this.industryQiTa === null) {
  2058. this.industryNull = true
  2059. info = false;
  2060. } else {
  2061. this.industryNull = false
  2062. }
  2063. }
  2064. }
  2065. }
  2066. if (data==='all' || data==="wordAddress"){ if (this.model.wordAddress===''|| this.model.wordAddress===null){
  2067. document.getElementById('wordAddress').style.borderColor = "red";
  2068. info=false;
  2069. }else {
  2070. document.getElementById('wordAddress').style.borderColor = "#d9d9d9";
  2071. }}
  2072. if (data==='all' || data==="currentAddress"){ if (this.model.currentAddress===''|| this.model.currentAddress===null){
  2073. document.getElementById('currentAddress').style.borderColor = "red";
  2074. info=false;
  2075. }else {
  2076. document.getElementById('currentAddress').style.borderColor = "#d9d9d9";
  2077. }}
  2078. if (data==='all' || data==="calltestResults"){ if (this.model.calltestResults===''|| this.model.calltestResults===null){
  2079. this.calltestResultsNull=true;
  2080. info=false;
  2081. }else {
  2082. this.calltestResultsNull=false;
  2083. } }
  2084. if (data==='all' || data==="judgmentResearchAddress"){ if (this.model.judgmentResearchAddress===''|| this.model.judgmentResearchAddress===null){
  2085. this.judgmentResearchAddressShow=true;
  2086. info=false;
  2087. }else {
  2088. this.judgmentResearchAddressShow=false;
  2089. } }
  2090. if (data==='all' || data==="cardStartTimeAndEnd"){ if (this.model.cardStartTimeAndEnd===''|| this.model.cardStartTimeAndEnd===null){
  2091. this.cardStartTimeAndEndShow=true;
  2092. info=false;
  2093. }else {
  2094. this.cardStartTimeAndEndShow=false;
  2095. } }
  2096. if (data==='all' || data==="judgmentResearch"){
  2097. if (this.model.judgmentResearch===''|| this.model.judgmentResearch===null){
  2098. this.judgmentResearchNull=true;
  2099. info=false;
  2100. }else {
  2101. this.judgmentResearchNull=false;
  2102. }
  2103. }
  2104. if (data==='all' || data==="operator"){ if (this.model.operator==='' || this.model.operator===null){
  2105. this.operatorNull=true;
  2106. info=false;
  2107. }else {
  2108. this.operatorNull=false;
  2109. }
  2110. }
  2111. if (data==='all' || data==="company"||data==='all' || data==="operatorType" ){
  2112. if (this.model.operatorType==='' || this.model.operatorType===null){
  2113. this.operatorTypeNull=true;
  2114. info=false;
  2115. }else {
  2116. this.operatorTypeNull=false;
  2117. }
  2118. }
  2119. if (data==='all' || data==="sysBusinessHall"){ if (this.model.sysBusinessHall==='' ||this.model.sysBusinessHall===null){
  2120. this.sysBusinessHallNull=true;
  2121. info=false;
  2122. }else {
  2123. this.sysBusinessHallNull=false;
  2124. } }
  2125. if (data==='all' || data==="cardStartTime" || data==='all' || data==="cardEndTime"){ if (this.model.cardStartTime===''|| this.model.cardStartTime===null){
  2126. this.cardDateNull=true;
  2127. info=false;
  2128. }else {
  2129. this.cardDateNull=false;
  2130. }
  2131. if (this.model.cardEndTime==='' || this.model.cardEndTime===null){
  2132. this.cardDateNull=true;
  2133. info=false;
  2134. }else {
  2135. this.cardDateNull=false;
  2136. } }
  2137. return info;
  2138. },
  2139. showCheck1(data){
  2140. var info =true;
  2141. if (data==='isInvolvingFraud' || data==='all'){
  2142. if (this.model.isInvolvingFraud==='' || this.model.isInvolvingFraud===null){
  2143. document.getElementById('isInvolvingFraud').style.color = "red";
  2144. info=false;
  2145. }else {
  2146. document.getElementById('isInvolvingFraud').style.color = "black";
  2147. }
  2148. }
  2149. if (data==='isChannel' || data==='all'){
  2150. if (this.model.isChannel==='' || this.model.isChannel===null){
  2151. document.getElementById('isChannel').style.color = "red";
  2152. info=false;
  2153. }else {
  2154. document.getElementById('isChannel').style.color = "black";
  2155. }
  2156. }
  2157. if (data==='isNewly' || data==='all'){
  2158. if (this.model.isNewly==='' || this.model.isNewly===null){
  2159. document.getElementById('isNewly').style.color = "red";
  2160. info=false;
  2161. }else {
  2162. document.getElementById('isNewly').style.color = "black";
  2163. }
  2164. }
  2165. if (data==='isShutDown' || data==='all'){
  2166. if (this.model.isShutDown==='' || this.model.isShutDown===null){
  2167. document.getElementById('isShutDown').style.color = "red";
  2168. info=false;
  2169. }else {
  2170. document.getElementById('isShutDown').style.color = "black";
  2171. }
  2172. }
  2173. if (data==='isRefund' || data==='all'){
  2174. if (this.model.isRefund==='' || this.model.isRefund===null){
  2175. document.getElementById('isRefund').style.color = "red";
  2176. info=false;
  2177. }else {
  2178. document.getElementById('isRefund').style.color = "black";
  2179. }
  2180. }
  2181. if (data==='isUseTo' || data==='all'){
  2182. if (this.model.isUseTo==='' || this.model.isUseTo===null){
  2183. document.getElementById('isUseTo').style.color = "red";
  2184. info=false;
  2185. }else {
  2186. document.getElementById('isUseTo').style.color = "black";
  2187. }
  2188. }
  2189. if (data==='isBroadband' || data==='all'){
  2190. if (this.model.isBroadband==='' || this.model.isBroadband===null){
  2191. document.getElementById('isBroadband').style.color = "red";
  2192. info=false;
  2193. }else {
  2194. document.getElementById('isBroadband').style.color = "black";
  2195. }
  2196. }
  2197. if (data==='isDxNumber' || data==='all'){
  2198. if (this.model.isDxNumber==='' || this.model.isDxNumber===null){
  2199. document.getElementById('isDxNumber').style.color = "red";
  2200. info=false;
  2201. }else {
  2202. document.getElementById('isDxNumber').style.color = "black";
  2203. }
  2204. }
  2205. return info;
  2206. },
  2207. getDataRisk(data){
  2208. this.dataList=[];
  2209. var getDataList=this.dataList;
  2210. var dataLists =[];
  2211. dataLists.push(data);
  2212. if(dataLists[0].cardStartTimeAndEnd!==null && dataLists[0].cardStartTimeAndEnd!==''){
  2213. if (dataLists[0].cardStartTimeAndEnd==="1"){
  2214. dataLists[0].cardStartTimeAndEnd='是'
  2215. }
  2216. if (dataLists[0].cardStartTimeAndEnd==="2"){
  2217. dataLists[0].cardStartTimeAndEnd='否'
  2218. }
  2219. }
  2220. if (dataLists[0].sysBusinessHall!==null &&dataLists[0].sysBusinessHall!=='' ){
  2221. for (var item of this.sysCompany) {
  2222. if (item.id === this.model.company) {
  2223. this.companyName = item.name;
  2224. for (var it of item.sysBusinessHallList) {
  2225. if (it.id === this.model.sysBusinessHall) {
  2226. dataLists[0].sysBusinessHall= this.companyName+ this.hallName
  2227. }
  2228. }
  2229. }
  2230. }
  2231. }
  2232. //智能地址研判
  2233. if (dataLists[0].judgmentResearch!==null && dataLists[0].judgmentResearch!==''){
  2234. if (dataLists[0].judgmentResearch==="1"){
  2235. dataLists[0].judgmentResearch='智能地址研判-异常'
  2236. }
  2237. if (dataLists[0].judgmentResearch==="2"){
  2238. dataLists[0].judgmentResearch='智能地址研判-正常'
  2239. }
  2240. }
  2241. //人工地址判研
  2242. if (dataLists[0].judgmentResearchAddress!==null && dataLists[0].judgmentResearchAddress!==''){
  2243. if (dataLists[0].judgmentResearchAddress==="1"){
  2244. dataLists[0].judgmentResearchAddress='人工地址判研-异常'
  2245. }
  2246. if (dataLists[0].judgmentResearchAddress==="2"){
  2247. dataLists[0].judgmentResearchAddress='人工地址判研-正常'
  2248. }
  2249. }
  2250. //拨测结果
  2251. if (dataLists[0].calltestResults!==null && dataLists[0].calltestResults!==''){
  2252. if (dataLists[0].calltestResults==="1"){
  2253. dataLists[0].calltestResults='关机'
  2254. }
  2255. if (dataLists[0].calltestResults==="2"){
  2256. dataLists[0].calltestResults='未接通'
  2257. }
  2258. if (dataLists[0].calltestResults==="3"){
  2259. dataLists[0].calltestResults='可接通不知晓入网事宜'
  2260. }
  2261. if (dataLists[0].calltestResults==="4"){
  2262. dataLists[0].calltestResults='可接通认可办理'
  2263. }
  2264. }
  2265. //运营商
  2266. if (dataLists[0].operatorType!==null && dataLists[0].operatorType!==''){
  2267. if (dataLists[0].operatorType==="1"){
  2268. dataLists[0].operatorType='移动'
  2269. }
  2270. if (dataLists[0].operatorType==="2"){
  2271. dataLists[0].operatorType='联调'
  2272. }if (dataLists[0].operatorType==="3"){
  2273. dataLists[0].operatorType='电信'
  2274. }if (dataLists[0].operatorType==="4"){
  2275. dataLists[0].operatorType='其它'
  2276. }
  2277. }
  2278. //一证通查结果
  2279. if (dataLists[0].operator!==null && dataLists[0].operator!==''){
  2280. if (dataLists[0].operator==="1"){
  2281. dataLists[0].operator='本地运营商'
  2282. }
  2283. if (dataLists[0].operator==="2"){
  2284. dataLists[0].operator='异地运营商'
  2285. }
  2286. }
  2287. // if ( dataLists[0]['newPhone']!==null && dataLists[0]['newPhone']!==''){
  2288. // var newPhones = dataLists[0]['newPhone'].split(',');
  2289. // let newPhonesStr='';
  2290. // for (var item of newPhones) {
  2291. // if (item.match(RegExp('newPhone1+')) && item.replace('newPhone1+', '') !== '') {
  2292. // newPhonesStr = newPhonesStr+item.replace('newPhone1+', '')+" "
  2293. // }
  2294. // if (item.match(RegExp('newPhone2+')) && item.replace('newPhone2+', '') !== '') {
  2295. // newPhonesStr = newPhonesStr+item.replace('newPhone2+', '')+" "
  2296. // }
  2297. // if (item.match(RegExp('newPhone3+')) && item.replace('newPhone3+', '') !== '') {
  2298. // newPhonesStr = newPhonesStr+item.replace('newPhone3+', '')+" "
  2299. // }
  2300. // if (item.match(RegExp('newPhone4+')) && item.replace('newPhone4+', '') !== '') {
  2301. // newPhonesStr = newPhonesStr+item.replace('newPhone4+', '')+" "
  2302. // }
  2303. // if (item.match(RegExp('newPhone5+')) && item.replace('newPhone5+', '') !== '') {
  2304. // newPhonesStr = newPhonesStr+item.replace('newPhone5+', '')+" "
  2305. // }
  2306. // }
  2307. // dataLists[0].newPhone=newPhonesStr;
  2308. // }
  2309. // if (dataLists[0].numberResults!==null && dataLists[0].numberResults!==''){
  2310. // var numberResultsList = dataLists[0]["numberResults"].split(',');
  2311. // var numberResultsListStr ='';
  2312. // for (var item of numberResultsList) {
  2313. // if (item==='1'){
  2314. // numberResultsListStr=numberResultsListStr+'非高危'
  2315. // }
  2316. // if (item==='2'){
  2317. // numberResultsListStr=numberResultsListStr+'已报关停'
  2318. // }
  2319. // if (item==='3'){
  2320. // numberResultsListStr=numberResultsListStr+'已报蓝名单 '
  2321. // }
  2322. // if (item==='4'){
  2323. // numberResultsListStr=numberResultsListStr+' 已报紫名单'
  2324. // }
  2325. // }
  2326. // dataLists[0].numberResults=numberResultsListStr
  2327. // }
  2328. var that =this
  2329. that.dataRisk=[];
  2330. that.riskShow=true
  2331. Object.keys(dataLists[0]).forEach(function (key) {
  2332. var map ={};
  2333. if (key==='cardNo'){
  2334. var birthday = dataLists[0]['cardNo'].substring(6, 14);
  2335. var year = birthday.substring(0, 4);
  2336. // 计算年龄
  2337. var currentYear = new Date().getFullYear();
  2338. var age = currentYear - parseInt(year);
  2339. if (age>=60){
  2340. age=age+'(老年人)'
  2341. map.name ='【入网提示卡】客户年龄: ' ;
  2342. map.text = age ;
  2343. that.dataRisk.push(map)
  2344. }
  2345. if (age<=23){
  2346. age=age+'(可能是在校生)'
  2347. map.name ='【入网提示卡】客户年龄: ' ;
  2348. map.text = age ;
  2349. that.dataRisk.push(map)
  2350. }
  2351. }
  2352. //身份证是否到期
  2353. if (key==='cardStartTimeAndEnd'){
  2354. if (dataLists[0]['cardStartTimeAndEnd']==='否'){
  2355. map.name ='【入网提示卡】 身份证号码:【'+dataLists[0]['cardNo']+'】 是否在有效期' ;
  2356. map.text = dataLists[0]['cardStartTimeAndEnd'];
  2357. that.dataRisk.push(map)
  2358. }
  2359. }
  2360. //拨测结果
  2361. if (key==='calltestResults'){
  2362. if ( dataLists[0][key]!=='可接通认可办理'){
  2363. map.name ='【入网提示卡】 电话号码【'+dataLists[0]['phone'] +'】 - 拨测结果';
  2364. map.text = dataLists[0][key];
  2365. that.dataRisk.push(map)
  2366. }
  2367. }
  2368. //地址 人工判研
  2369. if (key==='judgmentResearchAddress'){
  2370. if (dataLists[0]['judgmentResearchAddress']==='人工地址判研-异常'){
  2371. map.name ='【入网提示卡】营业厅地址:【'+ that.companyName +'--'+ that.hallName +'】 工作地址:【'+dataLists[0]['wordAddress'] +'】 现住地址:【'+ dataLists[0]['currentAddress']+'】' ;
  2372. map.text = dataLists[0]['judgmentResearchAddress'];
  2373. that.dataRisk.push(map)
  2374. }
  2375. }
  2376. //地址 智能
  2377. if (key==='judgmentResearch'){
  2378. if (dataLists[0]['judgmentResearch']==='智能地址研判-异常'){
  2379. map.name ='【入网提示卡】 营业厅地址:【'+ that.companyName +'--'+ that.hallName +'】 工作地址:【'+dataLists[0]['wordAddress'] +'】 现住地址:【'+ dataLists[0]['currentAddress']+'】' ;
  2380. map.text = dataLists[0]['judgmentResearch'];
  2381. that.dataRisk.push(map)
  2382. }
  2383. }
  2384. //第二页 排除填写
  2385. if (key==='isDxNumber'){
  2386. if (dataLists[0]['isDxNumber']===2){
  2387. map.name ='【排查】客户名下无电信号码:' ;
  2388. map.text = '否';
  2389. that.dataRisk.push(map)
  2390. }
  2391. }
  2392. if (key==='isBroadband'){
  2393. if (dataLists[0]['isBroadband']===2){
  2394. map.name ='【排查】申请号码办理征信类、融合宽带业务:' ;
  2395. map.text = '否';
  2396. that.dataRisk.push(map)
  2397. }
  2398. }
  2399. if (key==='isUseTo'){
  2400. if (dataLists[0]['isUseTo']===1){
  2401. map.name ='【排查】申请号码使用用途异常:' ;
  2402. map.text = '是';
  2403. that.dataRisk.push(map)
  2404. }
  2405. }
  2406. if (key==='isRefund'){
  2407. if (dataLists[0]['isRefund']===1){
  2408. map.name ='【排查】客户名下号码存在异常高频率充值、退费:' ;
  2409. map.text = '是';
  2410. that.dataRisk.push(map)
  2411. }
  2412. }
  2413. if (key==='isShutDown'){
  2414. if (dataLists[0]['isShutDown']===1){
  2415. map.name ='【排查】客户名下已有号码(含已注销号码)存在各类关停:' ;
  2416. map.text = '是';
  2417. that.dataRisk.push(map)
  2418. }
  2419. }
  2420. if (key==='isNewly'){
  2421. if (dataLists[0]['isNewly']===1){
  2422. map.name ='【排查】客户名下在用号码无使用记录,仍要求新办号码:' ;
  2423. map.text = '是';
  2424. that.dataRisk.push(map)
  2425. }
  2426. }
  2427. if (key==='isChannel'){
  2428. if (dataLists[0]['isChannel']===1){
  2429. map.name ='【排查】在多个渠道多频次入网的异常情况:' ;
  2430. map.text = '是';
  2431. that.dataRisk.push(map)
  2432. }
  2433. }
  2434. if (key==='isInvolvingFraud'){
  2435. if (dataLists[0]['isInvolvingFraud']===1){
  2436. map.name = '【排查】黑名单到期客户新入网的高危疑似涉诈号码:' ;
  2437. map.text = '是';
  2438. that.dataRisk.push(map)
  2439. }
  2440. }
  2441. });
  2442. if (that.dataRisk.length>0) {
  2443. //是否有风险
  2444. that.riskShow=false;//有风险
  2445. }
  2446. },
  2447. /**下一步骤*/
  2448. nextSteps() {
  2449. if (this.current===0){
  2450. var info= this.showCheck0('all');
  2451. if (info===false){
  2452. return
  2453. }
  2454. }
  2455. if (this.current === 1) {
  2456. var info = this.showCheck1('all');
  2457. if (info === false) {
  2458. return
  2459. }
  2460. let that = this;
  2461. console.info(this.model.calltestResults);
  2462. that.addIng == false
  2463. let data = this.getData('next');
  2464. let id = that.model.id;
  2465. let i = 1;
  2466. let dataMessage = '';
  2467. const h = this.$createElement
  2468. this.newDatas = [];
  2469. if (this.model.calltestResults === 1 || this.model.calltestResults === '1') {
  2470. this.calltestResultsName = '关机';
  2471. }
  2472. if (this.model.calltestResults === 2 || this.model.calltestResults === '2') {
  2473. this.calltestResultsName = '未接通';
  2474. }
  2475. if (this.model.calltestResults === 3 || this.model.calltestResults === '3') {
  2476. this.calltestResultsName = '可接通不知晓入网事宜';
  2477. }
  2478. if (this.model.calltestResults === 4 || this.model.calltestResults === '4') {
  2479. this.calltestResultsName = '可接通认可办理';
  2480. }
  2481. //集合遍历
  2482. var company = '';
  2483. var hall = '';
  2484. for (var item of this.sysCompany) {
  2485. if (item.id === this.model.company) {
  2486. this.companyName = item.name
  2487. for (var it of item.sysBusinessHallList) {
  2488. if (it.id === this.model.sysBusinessHall) {
  2489. this.hallName = it.name
  2490. }
  2491. }
  2492. }
  2493. }
  2494. this.newDatas.push('异常信息提醒:')
  2495. this.newDatas.push('该用户以下填写信息可能触发风险请确认是否继续操作!!!')
  2496. // if (data["calltestResults"] === '2') {
  2497. // this.newDatas.push(i++ + '、该用户拨测号码未接通 请确认是否继续操作 。 ')
  2498. //
  2499. // }
  2500. // if ( data["judgmentResearch"] === '3' ) {
  2501. // this.newDatas.push(i++ + '、该用户附件地址人工判研异常 。 ')
  2502. // }
  2503. // if (data["calltestResults"] === '1') {
  2504. // this.newDatas.push(i++ + '、该用户拨测号码关机 请确认是否继续操作 。 ')
  2505. //
  2506. // }
  2507. // if (this.isSizeNumberResults === 'is') {
  2508. // this.newDatas.push(i++ + ' 、该用户有多个不友好研判结果 请确认是否继续操作 。 ')
  2509. //
  2510. // }
  2511. // if (data["judgmentResearch"] === '1' ) {
  2512. // if (parseFloat(this.distance1) > parseFloat(this.distance)) {
  2513. // this.newDatas.push(i++ + ' 、该用户现住地址(到村/小区),营业厅地址 距离过远 请确认是否继续操作 。 ')
  2514. // }
  2515. // if (parseFloat(this.distance2) > parseFloat(this.distance)) {
  2516. // this.newDatas.push(i++ + ' 、该用户 工作地址 , 营业厅地址 距离过远 请确认是否继续操作 。 ')
  2517. // }
  2518. // if (parseFloat(this.distance3) > parseFloat(this.distance)) {
  2519. // this.newDatas.push(i++ + ' 、该用户现住地址(到村/小区),工作地址距离过远 请确认是否继续操作 。 ')
  2520. // }
  2521. // }
  2522. this.getDataRisk(data)
  2523. // if (this.newDatas.length === 1) {
  2524. //newDatas.push(h('p', null, i++ +'、 暂无风险提示 请继续操作。 '))
  2525. //} else {
  2526. //是否显示继续操作页面
  2527. this.showInfo = true;
  2528. //document.getElementById('showInfo').innerHTML = h('div', null, this.newDatas)
  2529. // this.$confirm({
  2530. // okText: '继续操作',
  2531. // cancelText: '终止操作',
  2532. // title: "确认是否继续",
  2533. // content: h('div', null, newDatas),
  2534. // onOk: function () {
  2535. //
  2536. // } ,
  2537. // onCancel:function (){
  2538. // data['status']="0";//中断提交
  2539. // that.submit(data,id)
  2540. // }
  2541. // });
  2542. }
  2543. if (this.current < this.steps.length) {
  2544. this.current = this.current + 1;
  2545. }
  2546. },
  2547. /**上一步骤*/
  2548. prevSteps() {
  2549. if (this.current != 0) {
  2550. this.current = this.current - 1;
  2551. }
  2552. },
  2553. /**终止操作页面上一步骤*/
  2554. terminatingPrevSteps() {
  2555. this.showInfo=false;
  2556. if (this.current != 0) {
  2557. this.current = 1;
  2558. }
  2559. },
  2560. getData(info) {
  2561. var arr = '';
  2562. if (this.model.numberResults instanceof Array){
  2563. }
  2564. if (this.model.numberResults instanceof String){
  2565. }
  2566. if (this.model.numberResults !== undefined && this.model.numberResults !== "undefined" && this.model.numberResults !==''&& this.model.numberResults !==null && this.model.numberResults.length!==0 ) {
  2567. arr = this.model.numberResults+'';
  2568. }
  2569. if (info==='submit'){
  2570. if (this.industryQiTa!=='' || this.industryQiTa!==null){
  2571. if (this.model.industry==='其它'){
  2572. this.model.industry = this.industryQiTa;
  2573. }
  2574. }
  2575. }
  2576. if (info==='submit'){
  2577. if (this.size===2){
  2578. this.model.newPhone ='newPhone1+'+this.model.newPhone+',newPhone2+'+this.model.newPhone2;
  2579. }
  2580. if (this.size===3){
  2581. this.model.newPhone ='newPhone1+'+this.model.newPhone+',newPhone2+'+this.model.newPhone2+',newPhone3+'+this.model.newPhone3;
  2582. }
  2583. if (this.size===4){
  2584. this.model.newPhone ='newPhone1+'+this.model.newPhone+',newPhone2+'+this.model.newPhone2+',newPhone3+'+this.model.newPhone3+',newPhone4+'+this.model.newPhone4;
  2585. }
  2586. if (this.size===5){
  2587. this.model.newPhone ='newPhone1+'+this.model.newPhone+',newPhone2+'+this.model.newPhone2+',newPhone3+'+this.model.newPhone3+',newPhone4+'+this.model.newPhone4+',newPhone5+'+this.model.newPhone5;
  2588. }
  2589. }
  2590. let data = {
  2591. "sysBusinessHall": this.model.sysBusinessHall,
  2592. "company": this.model.company,
  2593. //用户id
  2594. "id": this.model.id,
  2595. "yidong": this.model.yidong,
  2596. "dianxin": this.model.dianxin,
  2597. "liantong": this.model.liantong,
  2598. "qita": this.model.qita,
  2599. //联电归属地
  2600. "address": this.model.address,
  2601. //拨测联系电话
  2602. "phone": this.model.phone,
  2603. //拨测结果
  2604. "calltestResults": this.model.calltestResults,
  2605. //证件地址
  2606. "idCardAddress": this.model.idCardAddress,
  2607. //现住地址
  2608. "currentAddress": this.model.currentAddress,
  2609. //现用号码运营商
  2610. "operator": this.model.operator,
  2611. //现用号码运营商类型
  2612. "operatorType": this.model.operatorType,
  2613. //现用号码运营商类型备注
  2614. "operatorTypeNote": this.model.operatorTypeNote,
  2615. //现用号码使用年限
  2616. "useLife": this.model.useLife,
  2617. //现用号码使用用途
  2618. "phonePurpose": this.model.phonePurpose,
  2619. //是否将高危号码上报蓝、紫名单或不可复开关停
  2620. "numberResults": arr ,
  2621. "cardStartTimeAndEnd":this.model.cardStartTimeAndEnd,
  2622. "judgmentResearchAddress":this.model.judgmentResearchAddress,
  2623. "cardNo": this.model.cardNo,
  2624. "cardName": this.model.cardName,
  2625. "cardStartTime": this.model.cardStartTime,
  2626. "cardEndTime": this.model.cardEndTime,
  2627. "wordAddress": this.model.wordAddress,
  2628. //"businessAddress": this.model.businessAddress,
  2629. "positionInformation": this.model.positionInformation,
  2630. "status": '',
  2631. "judgmentResearch":this.model.judgmentResearch,
  2632. "industry":this.model.industry,
  2633. "newPhone": this.model.newPhone,
  2634. //客户名下无电信号码
  2635. "isDxNumber": this.model.isDxNumber,
  2636. //客户名下无电信号码备注
  2637. "isDxNumberNote": this.model.isDxNumberNote,
  2638. //申请号码办理征信类、融合宽带业务
  2639. "isBroadband": this.model.isBroadband,
  2640. //申请号码办理征信类、融合宽带业务备注
  2641. "isBroadbandNote": this.model.isBroadbandNote,
  2642. //申请号码使用用途异常
  2643. "isUseTo": this.model.isUseTo,
  2644. //申请号码使用用途异常备注
  2645. "isUseToNote": this.model.isUseToNote,
  2646. //客户名下号码存在异常高频率充值、退费
  2647. "isRefund": this.model.isRefund,
  2648. //客户名下号码存在异常高频率充值、退费备注
  2649. "isRefundNote": this.model.isRefundNote,
  2650. //客户名下已有号码(含已注销号码)存在各类关停
  2651. "isShutDown": this.model.isShutDown,
  2652. //客户名下已有号码(含已注销号码)存在各类关停备注
  2653. "isShutDownNote": this.model.isShutDownNote,
  2654. //客户名下在用号码无使用记录,仍要求新办号码
  2655. "isNewly": this.model.isNewly,
  2656. //客户名下在用号码无使用记录,仍要求新办号码备注
  2657. "isNewlyNote": this.model.isNewlyNote,
  2658. //在多个渠道多频次入网的异常情况
  2659. "isChannel": this.model.isChannel,
  2660. //在多个渠道多频次入网的异常情况备注
  2661. "isChannelNote": this.model.isChannelNote,
  2662. //黑名单到期客户新入网的高危疑似涉诈号码
  2663. "isInvolvingFraud": this.model.isInvolvingFraud,
  2664. //黑名单到期客户新入网的高危疑似涉诈号码备注
  2665. "isInvolvingFraudNote": this.model.isInvolvingFraudNote,
  2666. };
  2667. return data;
  2668. },
  2669. submit(data, id) {
  2670. let mes = '提交成功';
  2671. if (data["status"] === '0') {
  2672. mes = "终止操作 数据保存成功! "
  2673. }
  2674. if (this.model.cardNo==='' || this.model.cardNo===null || this.model.cardNo===undefined){
  2675. this.clearModel()
  2676. this.$message.success('身份证信息为空,暂不保持', 7);
  2677. this.addIng == true;
  2678. return
  2679. }
  2680. if (id == null) {
  2681. postAction("/businessReminderCard/add", data).then((res) => {
  2682. if (res.success) {
  2683. this.clearModel()
  2684. this.$message.success(mes, 3);
  2685. this.addIng == true
  2686. location.reload();
  2687. // this.onCance ()
  2688. //this.closeCurrent();
  2689. //this.$router.replace({ path: this.$route.path })
  2690. } else {
  2691. this.$message.error("提交失败");
  2692. location.reload();
  2693. // this.onCance ()
  2694. // this.closeCurrent();
  2695. // this.$router.replace({ path: this.$route.path })
  2696. }
  2697. })
  2698. } else {
  2699. //data['newBusinessAddress']=this.model.sysBusinessHall; 更新人营业厅地址从用户获取
  2700. postAction("/businessReminderCard/editById", data).then((res) => {
  2701. if (res.success) {
  2702. this.clearModel()
  2703. this.$message.success('修改成功', 7);
  2704. this.addIng == true
  2705. this.$router.go(-1);
  2706. this.closeCurrent();
  2707. } else {
  2708. this.$message.error("修改失败");
  2709. this.addIng == true;
  2710. }
  2711. })
  2712. }
  2713. },
  2714. //继续操作
  2715. continueOperation() {
  2716. this.showInfo = false;
  2717. },
  2718. //终止操作
  2719. terminatingOperation() {
  2720. let data = this.getData('submit');
  2721. data['status'] = "0";//中断提交
  2722. this.showInfo = false;
  2723. this.submit(data, this.model.id)
  2724. },
  2725. check3(data){
  2726. var info = true;
  2727. if (data==='all' || data==='newPhone'){
  2728. if (this.model.newPhone==='' || this.model.newPhone===null){
  2729. document.getElementById('newPhone').style.borderColor = "red";
  2730. info=false;
  2731. }else {
  2732. document.getElementById('newPhone').style.borderColor = "#d9d9d9";
  2733. }
  2734. }
  2735. if (data==='all' || data==='newPhone2'){
  2736. if (this.size>=2){
  2737. if (this.model.newPhone==='' || this.model.newPhone===null){
  2738. document.getElementById('newPhone').style.borderColor = "red";
  2739. info=false;
  2740. }else {
  2741. document.getElementById('newPhone').style.borderColor = "#d9d9d9";
  2742. }
  2743. }
  2744. }
  2745. if (data==='all' || data==='newPhone3'){
  2746. if (this.size>=3){
  2747. if (this.model.newPhone3==='' || this.model.newPhone3===null){
  2748. document.getElementById('newPhone3').style.borderColor = "red";
  2749. info=false;
  2750. }else {
  2751. document.getElementById('newPhone3').style.borderColor = "#d9d9d9";
  2752. }
  2753. }
  2754. }
  2755. if (data==='all' || data==='newPhone4'){
  2756. if (this.size>=4){
  2757. if (this.model.newPhone4==='' || this.model.newPhone4===null){
  2758. document.getElementById('newPhone4').style.borderColor = "red";
  2759. info=false;
  2760. }else {
  2761. document.getElementById('newPhone4').style.borderColor = "#d9d9d9";
  2762. }
  2763. }
  2764. }
  2765. if (data==='all' || data==='newPhone5'){
  2766. if (this.size>=5){
  2767. if (this.model.newPhone5==='' || this.model.newPhone5===null){
  2768. document.getElementById('newPhone5').style.borderColor = "red";
  2769. info=false;
  2770. }else {
  2771. document.getElementById('newPhone5').style.borderColor = "#d9d9d9";
  2772. }
  2773. }
  2774. }
  2775. var reg = RegExp(/numberResults/);
  2776. if (data==='all' || reg.exec(data)) {
  2777. if (data==='all'){
  2778. if (this.model.numberResults === '' || this.model.numberResults === null || this.model.numberResults.length === 0) {
  2779. this.numberResults=true;
  2780. info=false;
  2781. } else {
  2782. this.numberResults=false;
  2783. }
  2784. }else {
  2785. if (this.model.numberResults === '' || this.model.numberResults === null || this.model.numberResults.length === 0) {
  2786. this.numberResults=false;
  2787. }
  2788. }
  2789. if(reg.exec(data)){
  2790. for (let i = 0; i < this.model.numberResults.length; i++){
  2791. if (data==='numberResults'+this.model.numberResults[i]){
  2792. //在取消选择
  2793. if (this.model.numberResults.length===1){
  2794. this.numberResults=true;
  2795. info=false;
  2796. }else {
  2797. this.numberResults=false;
  2798. }
  2799. }
  2800. }
  2801. }
  2802. }
  2803. return info;
  2804. },
  2805. /**新增*/
  2806. submitBusiness() {
  2807. var info = true;
  2808. info=this.check3('all');
  2809. if (info===false){
  2810. return
  2811. }
  2812. let that = this;
  2813. that.addIng == false
  2814. let data = this.getData('submit');
  2815. let id = that.model.id;
  2816. let i = 1;
  2817. let dataMessage = '';
  2818. const h = this.$createElement
  2819. const newDatas = [];
  2820. data['status'] = "1";//确认提交
  2821. this.submit(data, id)
  2822. // if( data["calltestResults"] ==='2'){
  2823. // newDatas.push(h('p', null, i++ +'、该用户拨测号码未接通 请确认风险 。 '))
  2824. //
  2825. // }if(this.isSizeNumberResults==='is' ){
  2826. // newDatas.push(h('p', null, i++ +' 、该用户有多个不友好研判结果 请确认风险 。 '))
  2827. //
  2828. // }if(this.isSizeNumberResults==='is' ){
  2829. // newDatas.push(h('p', null, i++ +' 、该用户现住地址(到村/小区),工作地址,营业厅地址距离过远 请确认风险 。 '))
  2830. //
  2831. // }else{
  2832. // newDatas.push(h('p', null, i++ +' 暂无风险提示 请继续。 '))
  2833. // }
  2834. //
  2835. // this.$confirm({
  2836. // title: "确认是否继续提交",
  2837. // content: h('div', null, newDatas),
  2838. // onOk: function () {
  2839. // if (id == null){
  2840. // postAction("/businessReminderCard/add", data).then((res) => {
  2841. // if (res.success) {
  2842. // that.clearModel()
  2843. // that.$message.success("提交成功", 7);
  2844. // that.addIng == true
  2845. // } else {
  2846. // that.$message.error("提交失败");
  2847. // that.addIng == true;
  2848. // }
  2849. // })
  2850. // }else {
  2851. // postAction("/businessReminderCard/editById", data).then((res) => {
  2852. // if (res.success) {
  2853. // that.clearModel()
  2854. // this.$message.success("修改成功", 7);
  2855. // that.addIng == true
  2856. // this.$router.go(-1);
  2857. // this.closeCurrent();
  2858. // } else {
  2859. // this.$message.error("修改失败");
  2860. // that.addIng == true;
  2861. // }
  2862. // })
  2863. //
  2864. // }
  2865. // }
  2866. // });
  2867. },
  2868. /**充值表单*/
  2869. clearModel() {
  2870. this.model = {}
  2871. this.current = 0;
  2872. },
  2873. },
  2874. }
  2875. </script>
  2876. <style scoped>
  2877. .is-error {
  2878. border-color: red
  2879. }
  2880. .example {
  2881. text-align: center;
  2882. background: rgba(0, 0, 0, 0.05);
  2883. border-radius: 4px;
  2884. margin-bottom: 20px;
  2885. padding: 30px 50px;
  2886. margin: 20px 0;
  2887. }
  2888. .box {
  2889. margin: 0;
  2890. padding: 0;
  2891. }
  2892. .redInfo {
  2893. display: inline-block;
  2894. margin-right: 4px;
  2895. color: #f5222d;
  2896. font-size: 14px;
  2897. font-family: SimSun, sans-serif;
  2898. line-height: 1;
  2899. content: '*';
  2900. }
  2901. /deep/.ant-table-tbody .red{
  2902. color: red !important;
  2903. }
  2904. </style>