registration.vue 117 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113
  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" @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')"></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')"></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')">
  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"></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')"></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')">
  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" />
  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" />
  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" />
  173. <a-radio value="4" >其他</a-radio>
  174. <a-input-number id="inputNumberqita" v-model="model.qita" style="width: 45px" :min="0" :max="100" />
  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')"></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">
  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)" >
  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')"></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')">
  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')">
  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')">
  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"></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')">
  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"></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')">
  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"></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')">
  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"></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')">
  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"></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')">
  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"></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')">
  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"></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')">
  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"></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"></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"></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"></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"></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"></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()">(+)</a-button>
  453. <a-button type="link" danger @click="delPhone()">(-)</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">
  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">
  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')"></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')"></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')">
  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')">
  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">终止</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"
  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">终止操作
  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: 'c4ab681cb7c3256184ae3557dc5beabb' //填写你的安全密钥
  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. isDisable:false,
  1033. //表单信息
  1034. model: {
  1035. cardStartTimeAndEnd: '',
  1036. value: 0,
  1037. sysBusinessHall: '',
  1038. company: '',
  1039. industry: '',
  1040. judgmentResearch: '',
  1041. judgmentResearchAddress: '',
  1042. isShutDownNote: '',
  1043. isShutDown: '',
  1044. isRefundNote: '',
  1045. isRefund: '',
  1046. isUseToNote: '',
  1047. isUseTo: '',
  1048. isBroadbandNote: '',
  1049. isBroadband: '',
  1050. isDxNumberNote: '',
  1051. isDxNumber: '',
  1052. calltestResults: '',
  1053. operatorType: '',
  1054. yidong: 0,
  1055. liantong: 0,
  1056. dianxin: 0,
  1057. qita: 0,
  1058. operator: '',
  1059. currentAddress: '',
  1060. phonePurpose: '',
  1061. useLife: '',
  1062. address: '',
  1063. isNewly: '',
  1064. isNewlyNote: '',
  1065. isChannel: '',
  1066. isChannelNote: '',
  1067. isInvolvingFraud: '',
  1068. isInvolvingFraudNote: '',
  1069. numberResults: [],
  1070. id: null,
  1071. phone: null,
  1072. cardNo: '',
  1073. cardName: '',
  1074. cardStartTime: '',
  1075. cardEndTime: '',
  1076. idCardAddress: '',
  1077. wordAddress: '',
  1078. positionInformation: '',
  1079. businessAddress: '',
  1080. newPhone: '',
  1081. newPhone2: '',
  1082. newPhone3: '',
  1083. newPhone4: '',
  1084. newPhone5: ''
  1085. },
  1086. dataList:[],
  1087. current: 0,
  1088. //步骤条
  1089. steps: [
  1090. {
  1091. title: '入网提示卡',
  1092. content: 'First-content',
  1093. },
  1094. {
  1095. title: '排查',
  1096. content: 'First-content',
  1097. },
  1098. {
  1099. title: '后期处理',
  1100. content: 'First-content',
  1101. },
  1102. ],
  1103. }
  1104. },
  1105. created() {
  1106. this.model.id = this.$route.query.id;
  1107. this.model.cardNo = this.$route.query.cardNo;
  1108. },
  1109. mounted() {
  1110. this.getSysCompany();
  1111. //DOM初始化完成进行地图初始化
  1112. this.initMap();
  1113. this.getSysDictItems()
  1114. this.queryById();
  1115. //this.getDataList()
  1116. },
  1117. methods: {
  1118. // dataShow(text, column, record, index ){
  1119. // if (text.record.calltestResults === '未接通' ) {
  1120. // return text.record.calltestResults= '未接通22'
  1121. // }
  1122. // },
  1123. //改变表格某一列或者某一个单元格文本颜色
  1124. cellStyle(record,index){
  1125. // if (record.calltestResults === '未接通' || record.calltestResults == '2'|| record.calltestResults == '3') {
  1126. // return 'red'
  1127. // }
  1128. },
  1129. resultData(result,newPhones){
  1130. for (let i = 0; i < result.length; i++){
  1131. if(result[i].cardStartTimeAndEnd!==null && result[i].cardStartTimeAndEnd!==''){
  1132. if (result[i].cardStartTimeAndEnd==="1"){
  1133. this.dataList[i].cardStartTimeAndEnd='是'
  1134. }
  1135. if (result[i].cardStartTimeAndEnd==="2"){
  1136. this.dataList[i].cardStartTimeAndEnd='否'
  1137. }
  1138. }
  1139. if(result[i].cardNo!==null && result[i].cardNo!==''){
  1140. var birthday = result[i].cardNo.substring(6, 14);
  1141. var year = birthday.substring(0, 4);
  1142. // 计算年龄
  1143. var currentYear = new Date().getFullYear();
  1144. var age = currentYear - parseInt(year);
  1145. if (age>=60){
  1146. age=age+'岁(老年人)'
  1147. }
  1148. if (age<=23){
  1149. age=age+'岁(在校生)'
  1150. }
  1151. this.dataList[i].age=age;
  1152. }
  1153. if (result[i].sysBusinessHall!==null &&result[i].sysBusinessHall!=='' ){
  1154. for (var item of this.sysCompany) {
  1155. if (item.id === this.model.company) {
  1156. this.companyName = item.name;
  1157. for (var it of item.sysBusinessHallList) {
  1158. if (it.id === this.model.sysBusinessHall) {
  1159. this.dataList[i].sysBusinessHall= this.companyName+ this.hallName
  1160. }
  1161. }
  1162. }
  1163. }
  1164. }
  1165. //智能地址研判
  1166. if (result[i].judgmentResearch!==null && result[i].judgmentResearch!==''){
  1167. if (result[i].judgmentResearch==="1"){
  1168. this.dataList[i].judgmentResearch='异常'
  1169. }
  1170. if (result[i].judgmentResearch==="2"){
  1171. this.dataList[i].judgmentResearch='正常'
  1172. }
  1173. }
  1174. //人工地址判研
  1175. if (result[i].judgmentResearchAddress!==null && result[i].judgmentResearchAddress!==''){
  1176. if (result[i].judgmentResearchAddress==="1"){
  1177. this.dataList[i].judgmentResearchAddress='异常'
  1178. }
  1179. if (result[i].judgmentResearchAddress==="2"){
  1180. this.dataList[i].judgmentResearchAddress='正常'
  1181. }
  1182. }
  1183. //拨测结果
  1184. if (result[i].calltestResults!==null && result[i].calltestResults!==''){
  1185. if (result[i].calltestResults==="1"){
  1186. this.dataList[i].calltestResults='关机'
  1187. }
  1188. if (result[i].calltestResults==="2"){
  1189. this.dataList[i].calltestResults='未接通'
  1190. }
  1191. if (result[i].calltestResults==="3"){
  1192. this.dataList[i].calltestResults='可接通不知晓入网事宜'
  1193. }
  1194. if (result[i].calltestResults==="4"){
  1195. this.dataList[i].calltestResults='可接通认可办理'
  1196. }
  1197. }
  1198. //运营商
  1199. if (result[i].operatorType!==null && result[i].operatorType!==''){
  1200. if (result[i].operatorType==="1"){
  1201. this.dataList[i].operatorType='移动'
  1202. }
  1203. if (result[i].operatorType==="2"){
  1204. this.dataList[i].operatorType='联调'
  1205. }if (result[i].operatorType==="3"){
  1206. this.dataList[i].operatorType='电信'
  1207. }if (result[i].operatorType==="4"){
  1208. this.dataList[i].operatorType='其它'
  1209. }
  1210. }
  1211. //一证通查结果
  1212. if (result[i].operator!==null && result[i].operator!==''){
  1213. if (result[i].operator==="1"){
  1214. this.dataList[i].operator='本地运营商'
  1215. }
  1216. if (result[i].operator==="2"){
  1217. this.dataList[i].operator='异地运营商'
  1218. }
  1219. }
  1220. let newPhonesStr='';
  1221. for (var item of newPhones) {
  1222. if (item.match(RegExp('newPhone1+')) && item.replace('newPhone1+', '') !== '') {
  1223. newPhonesStr = newPhonesStr+item.replace('newPhone1+', '')+" "
  1224. }
  1225. if (item.match(RegExp('newPhone2+')) && item.replace('newPhone2+', '') !== '') {
  1226. newPhonesStr = newPhonesStr+item.replace('newPhone2+', '')+" "
  1227. }
  1228. if (item.match(RegExp('newPhone3+')) && item.replace('newPhone3+', '') !== '') {
  1229. newPhonesStr = newPhonesStr+item.replace('newPhone3+', '')+" "
  1230. }
  1231. if (item.match(RegExp('newPhone4+')) && item.replace('newPhone4+', '') !== '') {
  1232. newPhonesStr = newPhonesStr+item.replace('newPhone4+', '')+" "
  1233. }
  1234. if (item.match(RegExp('newPhone5+')) && item.replace('newPhone5+', '') !== '') {
  1235. newPhonesStr = newPhonesStr+item.replace('newPhone5+', '')+" "
  1236. }
  1237. }
  1238. result[i].newPhone=newPhonesStr;
  1239. if (result[i].numberResults!==null && result[i].numberResults!==''){
  1240. var numberResultsList = result[i]["numberResults"].split(',');
  1241. var numberResultsListStr ='';
  1242. for (var item of numberResultsList) {
  1243. if (item==='1'){
  1244. numberResultsListStr=numberResultsListStr+'非高危'
  1245. }
  1246. if (item==='2'){
  1247. numberResultsListStr=numberResultsListStr+'已报关停'
  1248. }
  1249. if (item==='3'){
  1250. numberResultsListStr=numberResultsListStr+'已报蓝名单 '
  1251. }
  1252. if (item==='4'){
  1253. numberResultsListStr=numberResultsListStr+' 已报紫名单'
  1254. }
  1255. }
  1256. result[i].numberResults=numberResultsListStr
  1257. }
  1258. }
  1259. },
  1260. showModal(){
  1261. this.open = true;
  1262. },
  1263. handleOk(){
  1264. this.open = false;
  1265. },
  1266. modalFormOk2() {
  1267. // 新增/修改 成功时,重载列表
  1268. this.loadData2()
  1269. },
  1270. handleEdit2 (record) {
  1271. this.$refs.registationModel.edit(record)
  1272. this.$refs.registationModel.title = "新增";
  1273. this.$refs.registationModel.disableSubmit = false;
  1274. },
  1275. // 复选框禁用
  1276. checkboxT(row, index) {
  1277. //setTimeout(()=>console.log())
  1278. if (row==="1"){
  1279. this.disabledList.push("2");
  1280. this.disabledList.push("3");
  1281. this.disabledList.push("4");
  1282. }
  1283. if (row==="2"){
  1284. this.disabledList.push("1");
  1285. this.disabledList.push("3");
  1286. this.disabledList.push("4");
  1287. }
  1288. if (row==="3" ){
  1289. this.disabledList.push("1");
  1290. this.disabledList.push("2");
  1291. }
  1292. if (row==="4" ){
  1293. this.disabledList.push("1");
  1294. this.disabledList.push("2");
  1295. }
  1296. for (let i = 0; i < this.model.numberResults.length; i++){
  1297. if (row=== this.model.numberResults[i]){
  1298. //在取消选择
  1299. if (this.model.numberResults.length===1){
  1300. this.disabledList=[];
  1301. }
  1302. }
  1303. }
  1304. },
  1305. disabledListAdd() {
  1306. for (let i = 0; i < this.model.numberResults.length; i++) {
  1307. if (this.model.numberResults[i]==="1"){
  1308. this.disabledList.push("2");
  1309. this.disabledList.push("3");
  1310. this.disabledList.push("4");
  1311. }
  1312. if (this.model.numberResults[i]==="2"){
  1313. this.disabledList.push("1");
  1314. this.disabledList.push("3");
  1315. this.disabledList.push("4");
  1316. }
  1317. if (this.model.numberResults[i]==="3" ){
  1318. this.disabledList.push("1");
  1319. this.disabledList.push("2");
  1320. }
  1321. if (this.model.numberResults[i]==="4" ){
  1322. this.disabledList.push("1");
  1323. this.disabledList.push("2");
  1324. }
  1325. }
  1326. },
  1327. addPhone(){
  1328. this.size=this.size+1;
  1329. },
  1330. delPhone(){
  1331. if (this.size!==1){
  1332. this.size=this.size-1;
  1333. }
  1334. },
  1335. // 特定范围随机数
  1336. genRandom(min, max) {
  1337. return (Math.random() * (max - min + 1) | 0) + min
  1338. },
  1339. clickhandleSearch(data){
  1340. // this.model.industry=data;
  1341. if (data!==null && data!==''){
  1342. this.industryNull=false;
  1343. }
  1344. if (data==='其它'){
  1345. this.industryNullQiTa=true
  1346. this.industryNull=true;
  1347. }else{
  1348. this.industryNullQiTa=false
  1349. }
  1350. },
  1351. handleSearch(val) {
  1352. this.fetching = false
  1353. this.getDataSysDictItem=this.getSysDictItem;
  1354. var getDataSysDictItem =[]
  1355. if (val !== '') {
  1356. for (var i in this.getDataSysDictItem) {
  1357. if (this.getDataSysDictItem[i].text.match(RegExp(val))){
  1358. getDataSysDictItem.push(this.getDataSysDictItem[i])
  1359. }
  1360. }
  1361. this.getDataSysDictItem =getDataSysDictItem
  1362. }
  1363. },
  1364. handleSelect(val, option) {
  1365. console.log(val, option, 1000)
  1366. },
  1367. // 显示上传页面
  1368. handSubmit(record) {
  1369. let that = this;
  1370. let model = {
  1371. id: record.id,
  1372. }
  1373. postAction(this.url.editCheck, model)
  1374. .then((res) => {
  1375. if (res.success) {
  1376. that.$message.success(res.message)
  1377. that.loadData(that.ipagination.current);
  1378. } else {
  1379. that.$message.warning(res.message)
  1380. }
  1381. }).finally(() => {
  1382. })
  1383. },
  1384. //查询字典表
  1385. getSysDictItems() {
  1386. getAction(this.url.getSysDictItem + '/sys_dict_item,item_text,item_text,dict_id="1689217057012424706"').then((res) => {
  1387. if (res.success) {
  1388. let result = res.result;
  1389. if (result != null) {
  1390. this.getSysDictItem = result;
  1391. this.getDataSysDictItem=result;
  1392. }
  1393. }
  1394. })
  1395. },
  1396. validateMobile(rule, value, callback) {
  1397. let reg = /^1(3|4|5|7|8)\d{9}$/
  1398. if (!reg.test(value)) {
  1399. callback('请输入正确手机号')
  1400. } else {
  1401. callback()
  1402. }
  1403. },
  1404. // 校验身份证
  1405. validateCardNo(rule,value,callback){
  1406. 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)) {
  1407. callback();
  1408. } else {
  1409. callback("您的身份证格式不正确!");
  1410. }
  1411. },
  1412. //校验姓名
  1413. validateName(rule,value,callback){
  1414. 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)) {
  1415. callback();
  1416. } else {
  1417. callback("您的身份证格式不正确!");
  1418. }
  1419. },
  1420. isPhone(rule,value,callback){
  1421. 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)){
  1422. callback();
  1423. }else{
  1424. callback("您的手机号码格式不正确!");
  1425. }
  1426. },
  1427. getPhoneTypeSize() {
  1428. let data = {
  1429. "cardNo": this.model.cardNo
  1430. };
  1431. getAction(this.url.querySizeByCardNo, data).then((res) => {
  1432. if (res.success) {
  1433. let result = res.result;
  1434. if (result != null) {
  1435. this.model.yidong = result.yidong;
  1436. this.model.dianxin = result.dianxin;
  1437. this.model.liantong = result.liantong;
  1438. this.model.qita = result.qita;
  1439. }
  1440. }
  1441. })
  1442. },
  1443. getSysCompany() {
  1444. let data = {
  1445. "cardNo": this.model.cardNo
  1446. };
  1447. getAction(this.url.getCompany, data).then((res) => {
  1448. if (res.success) {
  1449. let result = res.result;
  1450. console.log(result + "result");
  1451. if (result != null) {
  1452. this.sysCompany = result;
  1453. }
  1454. }
  1455. })
  1456. },
  1457. change(val) {
  1458. for (var i = 0; i < this.sysCompany.length; i++) {
  1459. if (val == this.sysCompany[i].id) {
  1460. this.sysBusinessHallList = this.sysCompany[i].sysBusinessHallList;
  1461. }
  1462. }
  1463. },
  1464. //新增标记
  1465. showLocation(data) {
  1466. let marker = new AMap.Marker({
  1467. position: new AMap.LngLat(data[0], data[1]) //参数为经纬度
  1468. })
  1469. this.map.clearMap()// 清除所有覆盖物(点标志)
  1470. this.map.add(marker)// 添加点标志
  1471. this.showInfoWindow(marker);//自定义信息窗体
  1472. },
  1473. //自定义信息窗体
  1474. showInfoWindow(marker) {
  1475. let infoWindow = new AMap.InfoWindow({
  1476. isCustom: true, //是否自定义信息窗体
  1477. content: `<div style="background-color: white;padding: 0 5px; border-radius: 5px;border: 1px solid #cccccc;"> 地址:${this.model.wordAddress}</div>`,
  1478. closeWhenClickMap: true,
  1479. zIndex: 999,
  1480. offset: new AMap.Pixel(16, -35)
  1481. });
  1482. infoWindow.open(this.map, marker.getPosition());
  1483. },
  1484. /** 初始化搜索 */
  1485. mapSearchInit() {
  1486. let autoOptions = {
  1487. input: "tipInput",
  1488. }
  1489. let autoCompleteComponent = new AMap.Autocomplete(autoOptions);
  1490. this.autoCompleteComponent = autoCompleteComponent;
  1491. // 注册placeSearch组件
  1492. this.placeSearchComponent = new AMap.PlaceSearch()
  1493. },
  1494. searchKeyWordsysBusinessHall(data, nameType) {
  1495. if (nameType==='businessAddress'){
  1496. this.showCheck0('sysBusinessHall');
  1497. }
  1498. let that = this
  1499. that.placeSearchComponent.search(data, function (status, result) {
  1500. if (status === 'complete' && result.info === "OK") {
  1501. that.showsearchResultBusinessAddress = true
  1502. that.showsearchResult = false
  1503. that.showsearchcurrentAddress = false
  1504. that.poiList = result.poiList.pois
  1505. that.markerResult(that.poiList[0], nameType)
  1506. } else {
  1507. that.showsearchResultBusinessAddress = false
  1508. that.showsearchResult = false
  1509. that.showsearchcurrentAddress = false
  1510. that.poiList = []
  1511. //that.$message.warning("没有查到结果");
  1512. }
  1513. })
  1514. },
  1515. //根据输入内容查询
  1516. searchKeyWord(data) {
  1517. let that = this
  1518. if (data === 'model.wordAddress') {
  1519. this.showsearchResult = true;
  1520. that.placeSearchComponent.search(that.model.wordAddress, function (status, result) {
  1521. if (status === 'complete' && result.info === "OK") {
  1522. that.showsearchResultBusinessAddress = false
  1523. that.showsearchResult = true
  1524. that.showsearchcurrentAddress = false
  1525. that.poiList = result.poiList.pois
  1526. } else {
  1527. that.showsearchResult = false
  1528. that.showsearchResultBusinessAddress = false;
  1529. that.showsearchcurrentAddress = false
  1530. that.poiList = []
  1531. //that.$message.warning("没有查到结果");
  1532. }
  1533. })
  1534. }
  1535. if (data === 'model.businessAddress') {
  1536. this.showsearchResultBusinessAddress = true;
  1537. that.placeSearchComponent.search(that.model.businessAddress, function (status, result) {
  1538. if (status === 'complete' && result.info === "OK") {
  1539. that.showsearchResultBusinessAddress = true
  1540. that.showsearchResult = false
  1541. that.showsearchcurrentAddress = false
  1542. that.poiList = result.poiList.pois
  1543. } else {
  1544. that.showsearchResultBusinessAddress = false
  1545. that.showsearchResult = false
  1546. that.showsearchcurrentAddress = false
  1547. that.poiList = []
  1548. //that.$message.warning("没有查到结果");
  1549. }
  1550. })
  1551. }
  1552. if (data === 'model.currentAddress') {
  1553. this.showsearchcurrentAddress = true;
  1554. that.placeSearchComponent.search(that.model.currentAddress, function (status, result) {
  1555. if (status === 'complete' && result.info === "OK") {
  1556. that.showsearchcurrentAddress = true
  1557. that.showsearchResult = false
  1558. that.showsearchResultBusinessAddress = false
  1559. that.poiList = result.poiList.pois
  1560. } else {
  1561. that.showsearchcurrentAddress = false
  1562. that.showsearchResultBusinessAddress = false
  1563. that.showsearchResult = false
  1564. that.poiList = []
  1565. //that.$message.warning("没有查到结果");
  1566. }
  1567. })
  1568. }
  1569. },
  1570. getdiscount(lat1, lng1, lat2, lng2) {
  1571. // console.log(paramObj)
  1572. var lng1 = lng1
  1573. var lat1 = lat1
  1574. var lng2 = lng2
  1575. var lat2 = lat2
  1576. var radLat1 = lat1 * Math.PI / 180.0;
  1577. var radLat2 = lat2 * Math.PI / 180.0;
  1578. var a = radLat1 - radLat2;
  1579. var b = lng1 * Math.PI / 180.0 - lng2 * Math.PI / 180.0;
  1580. var s = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) +
  1581. Math.cos(radLat1) * Math.cos(radLat2) * Math.pow(Math.sin(b / 2), 2)));
  1582. s = s * 6378.137;// EARTH_RADIUS;
  1583. s = Math.round(s * 10000) / 10000;
  1584. s = s * 1000
  1585. if (isNaN(s)) {
  1586. return 0 + 'm';
  1587. }
  1588. if (s > 1000) {
  1589. // 大于1000米时
  1590. s = Math.floor(s / 1000 * 100) / 100;
  1591. s = s + 'km'
  1592. } else {
  1593. // 小于1000米直接返回
  1594. s = s + 'm'
  1595. }
  1596. this.distance = s;
  1597. return s;
  1598. },
  1599. space(lat1, lng1, lat2, lng2) {
  1600. console.log(lat1, lng1, lat2, lng2)
  1601. var radLat1 = lat1 * Math.PI / 180.0;
  1602. var radLat2 = lat2 * Math.PI / 180.0;
  1603. var a = radLat1 - radLat2;
  1604. var b = lng1 * Math.PI / 180.0 - lng2 * Math.PI / 180.0;
  1605. var s = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) +
  1606. Math.cos(radLat1) * Math.cos(radLat2) * Math.pow(Math.sin(b / 2), 2)));
  1607. s = s * 6378.137;
  1608. s = Math.round(s * 10000) / 10000;
  1609. return s // 单位千米
  1610. },
  1611. carGPSIP(data) {
  1612. var map = new AMap.Map("container", {resizeEnable: true});//初始化地图
  1613. //信息窗口实例
  1614. var infoWindow = new AMap.InfoWindow({offset: new AMap.Pixel(0, -30)});
  1615. //遍历生成多个标记点
  1616. data.forEach((val, key) => {
  1617. console.log("属性:" + key + ",值:" + data.get(key));
  1618. console.log("wordAddressname".indexOf("name"));
  1619. console.log(key.includes("name"));
  1620. if (!key.includes("name")) {
  1621. var marker = new AMap.Marker({
  1622. position: data.get(key),//不同标记点的经纬度
  1623. map: map
  1624. });
  1625. marker.content = data.get(key + 'name');
  1626. marker.on('click', markerClick);
  1627. marker.emit('click', {target: marker});//默认初始化不出现信息窗体,打开初始化就出现信息窗体
  1628. }
  1629. })
  1630. function markerClick(e) {
  1631. infoWindow.setContent(e.target.content);
  1632. infoWindow.open(map, e.target.getPosition());
  1633. }
  1634. map.setFitView();
  1635. },
  1636. //选择搜索的内容
  1637. markerResult(data, nameType) {
  1638. if (nameType === 'wordAddress') {
  1639. this.model.wordAddress = data.name;
  1640. }
  1641. if (nameType === 'businessAddress') {
  1642. this.model.businessAddress = data.name;
  1643. }
  1644. if (nameType === 'currentAddress') {
  1645. this.model.currentAddress = data.name;
  1646. }
  1647. this.lnglatMaps;
  1648. console.log(data)
  1649. this.showsearchResult = false;
  1650. this.showsearchResultBusinessAddress = false;
  1651. this.showsearchcurrentAddress = false;
  1652. //this.model.wordAddress = data.name; //地点名称
  1653. var marker = new AMap.Marker({
  1654. position: [Number(data.location.lng), Number(data.location.lat)],//地点名称 坐标
  1655. });
  1656. //this.map.clearMap()// 清除所有覆盖物(点标志)
  1657. //this.map.add(marker)// 添加点标志
  1658. //this.showInfoWindow(marker);
  1659. this.lnglatMaps.set(nameType, [Number(data.location.lng), Number(data.location.lat)]);
  1660. this.lnglatMaps.set(nameType + 'name', data.name);
  1661. if (this.lnglatMaps.size > 6) {
  1662. this.lnglatMaps.clear();
  1663. }
  1664. //this.lnglats.push( [Number(data.location.lng),Number(data.location.lat)]); //添加坐标
  1665. // if (this.model.wordAddress ===null || this.model.businessAddress===null || this.model.currentAddress===null){
  1666. // return;
  1667. // }
  1668. // if (this.lnglatMaps.size===4){
  1669. this.carGPSIP(this.lnglatMaps);//各个点分别显示坐标
  1670. //}
  1671. setTimeout(() => {
  1672. this.map.setCenter(data.location);
  1673. this.map.setZoom(15);
  1674. }, 50)
  1675. let thisPosition = {
  1676. mapAddress: this.model.wordAddress,
  1677. lng: data.location.lng,
  1678. lat: data.location.lat
  1679. };
  1680. var map = new Map();
  1681. map.set("lng", data.location.lng);
  1682. map.set("lat", data.location.lat);
  1683. this.mapResultList.push(map);
  1684. console.log(data.location.lng + data.location.lat + "thisPosition")
  1685. this.$emit("select", thisPosition)
  1686. if (this.lnglatMaps.size === 6) {
  1687. var currentAddressD = this.lnglatMaps.get("currentAddress");
  1688. var wordAddressD = this.lnglatMaps.get("wordAddress");
  1689. var businessAddressD = this.lnglatMaps.get("businessAddress");
  1690. this.distance1 = this.space(currentAddressD[1], currentAddressD[0], businessAddressD[1], businessAddressD[0]);//现住地址 营业厅地址
  1691. this.distance2 = this.space(wordAddressD[1], wordAddressD[0], businessAddressD[1], businessAddressD[0]);//工作地址 营业厅地址
  1692. this.distance3 = this.space(currentAddressD[1], currentAddressD[0], wordAddressD[1], wordAddressD[0]);//现住地址 工作地址
  1693. if (parseFloat(this.distance1) > parseFloat(this.distance) || parseFloat(this.distance2) > parseFloat(this.distance) || parseFloat(this.distance3) > parseFloat(this.distance)) {
  1694. this.model.judgmentResearch = "1";
  1695. } else {
  1696. this.model.judgmentResearch = "4";
  1697. }
  1698. }
  1699. },
  1700. // 获取详细地址
  1701. getAddress(center) {
  1702. let _this = this;
  1703. let geocoder = new AMap.Geocoder({});
  1704. geocoder.getAddress(center, function (status, result) {
  1705. if (status === "complete" && result.info === "OK") {
  1706. let obj = result.regeocode.addressComponent;
  1707. let locationName =
  1708. obj.province +
  1709. obj.city +
  1710. obj.district +
  1711. obj.township +
  1712. obj.street +
  1713. obj.streetNumber;
  1714. _this.form.address = locationName;
  1715. }
  1716. });
  1717. },
  1718. initMap() {
  1719. AMapLoader.load({
  1720. // key: "8e513e3c374bdb2dd0095cd337b02ee6" 密钥 f762c44f71422cd56f90acc2a8e75144
  1721. // key : 3f95d73e380b9e4a2767c306a4b59f81 密钥 c4ab681cb7c3256184ae3557dc5beabb
  1722. key: "3f95d73e380b9e4a2767c306a4b59f81", // 申请好的Web端开发者Key,首次调用 load 时必填
  1723. version: "2.0", // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
  1724. plugins: [
  1725. 'AMap.ToolBar',
  1726. 'AMap.Scale',
  1727. 'AMap.Geolocation',
  1728. 'AMap.PlaceSearch',
  1729. 'AMap.AutoComplete',
  1730. 'AMap.Geocoder',
  1731. 'AMap.CitySearch',
  1732. 'AMap.RangingTool' // 这个就是测距插件
  1733. ],
  1734. resizeEnable: true,
  1735. }).then((AMap) => {
  1736. const that = this;
  1737. that.map = new AMap.Map("container", { //设置地图容器id
  1738. viewMode: "3D", //是否为3D地图模式
  1739. zoom: 12, //初始化地图级别
  1740. });
  1741. that.handleClick(AMap)//地图选点
  1742. that.map.addControl(new AMap.Scale()) // 在图面添加比例尺控件,展示地图在当前层级和纬度下的比例尺
  1743. that.map.addControl(new AMap.ToolBar()) //在图面添加鹰眼控件,在地图右下角显示地图的缩略图
  1744. that.geocoder = new AMap.Geocoder()
  1745. that.mapSearchInit()
  1746. }).catch(e => {
  1747. console.log(e);
  1748. })
  1749. },
  1750. //点击地图获取地理位置
  1751. handleClick() {
  1752. this.map.on('click', (e) => {
  1753. let lng = e.lnglat.lng
  1754. let lat = e.lnglat.lat
  1755. let marker = new AMap.Marker({
  1756. position: new AMap.LngLat(lng, lat)
  1757. })
  1758. this.map.clearMap()// 清除所有覆盖物(点标志)
  1759. this.map.add(marker)// 添加点标志
  1760. let lnglat = [lng, lat]
  1761. let that = this
  1762. that.geocoder.getAddress(lnglat, function (status, result) {
  1763. if (status === 'complete' && result.regeocode) {
  1764. that.address = result.regeocode.formattedAddress;
  1765. that.showInfoWindow(marker);//自定义信息窗体
  1766. let thisPosition = {
  1767. address: that.address,
  1768. lng: lng,
  1769. lat: lat
  1770. };
  1771. that.$emit("select", thisPosition) //返回给父组件
  1772. } else {
  1773. this.$message.error('根据经纬度查询地址失败')
  1774. }
  1775. })
  1776. })
  1777. },
  1778. //获取当前定位
  1779. getCurrentLocation() {
  1780. const that = this;
  1781. that.geolocation = new AMap.Geolocation({
  1782. timeout: 3000, //超过3秒后停止定位,默认:5s
  1783. enableHighAccuracy: true,
  1784. zoomToAccuracy: true, //定位成功后是否自动调整地图视野到定位点
  1785. });
  1786. that.geolocation.getCurrentPosition(function (status, result) {
  1787. //备注:getCurrentPosition方法会调用超时或失败:
  1788. //Get geolocation time out:浏览器定位超时,包括原生的超时,可以适当增加超时属性的设定值以减少这一现象。
  1789. //另外还有个别浏览器(如google Chrome浏览器等)本身的定位接口是黑洞,通过其请求定位完全没有回应,也会超时返回失败。
  1790. //Get geolocation failed:定位失败,Chrome、火狐以及部分套壳浏览器接入的定位服务在国外,有较大限制,失败率高。
  1791. console.log(status, result);
  1792. if (status == 'complete') {
  1793. that.onComplete(result)
  1794. } else {
  1795. that.onError(result) //失败后可使用getCityInfo获取非精准定位(具体到省市)
  1796. }
  1797. });
  1798. },
  1799. //解析定位结果
  1800. onComplete(data) {
  1801. console.log('定位结果:' + data.position) //经纬度信息
  1802. let lnglat = data.position;
  1803. let marker = new AMap.Marker({ //创建标记
  1804. position: new AMap.LngLat(lnglat[0], lnglat[1])
  1805. })
  1806. this.map.clearMap()// 清除所有覆盖物(点标志)
  1807. this.map.add(marker)// 添加点标志
  1808. let that = this
  1809. //经纬度转换为中文地址详情
  1810. that.geocoder.getAddress(lnglat, function (status, result) {
  1811. if (status === 'complete' && result.regeocode) {
  1812. that.address = result.regeocode.formattedAddress;
  1813. that.showInfoWindow(marker);//自定义信息窗体
  1814. } else {
  1815. this.$message.error('根据经纬度查询地址失败')
  1816. }
  1817. })
  1818. },
  1819. //解析定位错误信息
  1820. onError(data) {
  1821. this.getLngLatLocation()
  1822. },
  1823. //在获取具体定位失败时调用的代码:(非精准定位!!!)
  1824. getLngLatLocation() {
  1825. const that = this;
  1826. that.geolocation.getCityInfo(function (status, result) {
  1827. if (status === 'complete') {
  1828. let data = result.position
  1829. that.address = result.province + result.city;
  1830. that.showLocation(data)
  1831. } else {
  1832. this.$message.error('获取地址失败')
  1833. }
  1834. })
  1835. },
  1836. keyupInfoSelect() {
  1837. if (this.model.cardNo === '' ||this.model.cardNo===undefined ) {
  1838. return;
  1839. }
  1840. this.closeCurrent();
  1841. this.$router.push({path: '/network/PopupSub', query: {cardNo: this.model.cardNo}});
  1842. },
  1843. keyupInfoPhone(phone) {
  1844. let data = {
  1845. "number": phone
  1846. };
  1847. if (phone.length === 11) {
  1848. let data = {
  1849. "mobile": phone
  1850. };
  1851. getAction("businessReminderCard/queryByMobile", data).then((res) => {
  1852. console.log(res)
  1853. if (res != null) {
  1854. this.model.address = res;
  1855. }
  1856. })
  1857. }
  1858. },
  1859. onCance () {
  1860. var view =this.model;
  1861. Object.keys(view).forEach(function (key) {
  1862. view[key] = ''
  1863. });
  1864. this.industryQiTa='';
  1865. },
  1866. keyupInfo(info) {
  1867. // this.handleEdit2()
  1868. //身份证输入查询
  1869. if (this.model.cardNo.length === 15 || this.model.cardNo.length === 18) {
  1870. let that = this;
  1871. let data = {
  1872. "cardNo": this.model.cardNo,
  1873. "id": this.model.id
  1874. }
  1875. var newPhones;
  1876. //this.getPhoneTypeSize();
  1877. getAction(that.url.queryByCardNo, data).then((res) => {
  1878. if (res.success) {
  1879. let result = res.result;
  1880. let view = this.model;
  1881. if (result != null) {
  1882. var i=0;
  1883. Object.keys(view).forEach(function (key) {
  1884. if (key==='company'){
  1885. that.change(result[0][key]);
  1886. }
  1887. view[key] = result[0][key];
  1888. if (key==='newPhone'){
  1889. if ( result[0][key]!==null && result[0][key]!==''){
  1890. newPhones = result[0][key].split(',');
  1891. }
  1892. }
  1893. if (key==='industry'){
  1894. var a=0;
  1895. for (var s in that.getDataSysDictItem) {
  1896. if (that.getDataSysDictItem[s].text.match(RegExp(result[0][key]))){
  1897. a++;
  1898. }
  1899. }
  1900. if (a===0){
  1901. view.industry='其它';
  1902. that.industryQiTa= result[0][key];
  1903. that.industryNullQiTa=true;
  1904. }
  1905. }
  1906. })
  1907. for (var item of newPhones) {
  1908. if (item.match(RegExp('newPhone1+')) && item.replace('newPhone1+','')!==''){
  1909. this.model.newPhone=item.replace('newPhone1+','')
  1910. }
  1911. if (item.match(RegExp('newPhone2+'))&& item.replace('newPhone2+','')!==''){
  1912. that.size=2;
  1913. this.model.newPhone2=item.replace('newPhone2+','')
  1914. }
  1915. if (item.match(RegExp('newPhone3+'))&& item.replace('newPhone3+','')!==''){
  1916. that.size=3;
  1917. this.model.newPhone3=item.replace('newPhone3+','')
  1918. }
  1919. if (item.match(RegExp('newPhone4+'))&& item.replace('newPhone4+','')!==''){
  1920. that.size=4;
  1921. this.model.newPhone4=item.replace('newPhone4+','')
  1922. }
  1923. if (item.match(RegExp('newPhone5+'))&& item.replace('newPhone5+','')!==''){
  1924. that.size=5;
  1925. this.model.newPhone5=item.replace('newPhone5+','')
  1926. }
  1927. }
  1928. for (var item of this.sysCompany) {
  1929. if (item.id === this.model.company) {
  1930. this.companyName = item.name;
  1931. this.change(item.id);
  1932. for (var it of item.sysBusinessHallList) {
  1933. if (it.id === this.model.sysBusinessHall) {
  1934. this.hallName = it.name;
  1935. this.model.sysBusinessHall=it.id
  1936. }
  1937. }
  1938. }
  1939. }
  1940. this.isSizeNumberResults = result[0]["isSizeNumberResults"];
  1941. // if (this.model.wordAddress!=='' && this.model.wordAddress!==null){
  1942. // this.searchKeyWordsysBusinessHall(this.model.wordAddress,'wordAddress');
  1943. // }
  1944. //
  1945. // if (this.hallName!=='' && this.hallName!==null){
  1946. // this.searchKeyWordsysBusinessHall('中国电信'+this.hallName,'businessAddress');
  1947. // }
  1948. // if (this.model.currentAddress!=='' && this.model.currentAddress!==null){
  1949. // this.searchKeyWordsysBusinessHall(this.model.currentAddress,'currentAddress');
  1950. // }
  1951. if (info===''){
  1952. this.model.id=null;
  1953. }
  1954. this.dataList=result;
  1955. if (info===''){
  1956. this.resultData(result,newPhones);
  1957. this.showModal()
  1958. }
  1959. this.disabledListAdd()
  1960. this.showCheck0('all');
  1961. // if (result[0]["isSizeNumberResults"] === 'is') {
  1962. // this.$confirm({
  1963. // title: "确认是否继续...",
  1964. // content: '该用户有多个不友好研判结果',
  1965. // onOk: function () {
  1966. //
  1967. // },
  1968. // onCancel: function () {
  1969. // Object.keys(view).forEach(function (key) {
  1970. // view[key] = '';
  1971. // })
  1972. // }
  1973. // });
  1974. // }
  1975. }
  1976. // this.$refs.modalDetail.detail( );
  1977. // this.$refs.modalDetail.title = "详情";
  1978. }
  1979. })
  1980. }
  1981. },
  1982. /**获取详情*/
  1983. queryById() {
  1984. this.model.id = this.$route.query.id;
  1985. this.model.cardNo = this.$route.query.cardNo;
  1986. this.isDisable = this.$route.query.isDisable;
  1987. this.getSysCompany();
  1988. this.keyupInfo('update');
  1989. this.change(this.model.company)
  1990. },
  1991. showCheck0(data){
  1992. var info = true;
  1993. if (data==='all' || data==='cardNo'){ if (this.model.cardNo==='' || this.model.cardNo===null){
  1994. document.getElementById('cardNo').style.borderColor = "red";
  1995. info=false;
  1996. }else {
  1997. document.getElementById('cardNo').style.borderColor = "#d9d9d9";
  1998. } }
  1999. if (data==='all' || data==='idCardAddress'){ if (this.model.idCardAddress==='' || this.model.idCardAddress===null){
  2000. document.getElementById('idCardAddress').style.borderColor = "red";
  2001. info=false;
  2002. }else {
  2003. document.getElementById('idCardAddress').style.borderColor = "#d9d9d9";
  2004. } }
  2005. if (data==='all' || data==="cardName"){ if (this.model.cardName==='' || this.model.cardName===null){
  2006. document.getElementById('cardName').style.borderColor = "red";
  2007. info=false;
  2008. }else {
  2009. document.getElementById('cardName').style.borderColor = "#d9d9d9";
  2010. }}
  2011. if (data==='all' || data==="phone"){ if (this.model.phone==='' || this.model.phone===null){
  2012. document.getElementById('phone').style.borderColor = "red";
  2013. info=false;
  2014. }else {
  2015. document.getElementById('phone').style.borderColor = "#d9d9d9";
  2016. } }
  2017. if (data==='all' || data==="address"){ if (this.model.address===''|| this.model.address===null){
  2018. document.getElementById('address').style.borderColor = "red";
  2019. info=false;
  2020. }else {
  2021. document.getElementById('address').style.borderColor = "#d9d9d9";
  2022. } }
  2023. if (data==='all' || data==="phonePurpose"){ if (this.model.phonePurpose==='' || this.model.phonePurpose===null){
  2024. document.getElementById('phonePurpose').style.borderColor = "red";
  2025. info=false;
  2026. }else {
  2027. document.getElementById('phonePurpose').style.borderColor = "#d9d9d9";
  2028. } }
  2029. if (data==='all' || data==="industry"){ if (this.model.industry==='' || this.model.industry===null){
  2030. this.industryNull=true
  2031. info=false;
  2032. }else {
  2033. this.industryNull=false
  2034. }}
  2035. if (this.model.industry==='' || this.model.industry===null || this.model.industry==='其它'){
  2036. {
  2037. if (data === 'all' || data === "industryQiTa") {
  2038. if (this.industryQiTa === '' || this.industryQiTa === null) {
  2039. this.industryNull = true
  2040. info = false;
  2041. } else {
  2042. this.industryNull = false
  2043. }
  2044. }
  2045. }
  2046. }
  2047. if (data==='all' || data==="wordAddress"){ if (this.model.wordAddress===''|| this.model.wordAddress===null){
  2048. document.getElementById('wordAddress').style.borderColor = "red";
  2049. info=false;
  2050. }else {
  2051. document.getElementById('wordAddress').style.borderColor = "#d9d9d9";
  2052. }}
  2053. if (data==='all' || data==="currentAddress"){ if (this.model.currentAddress===''|| this.model.currentAddress===null){
  2054. document.getElementById('currentAddress').style.borderColor = "red";
  2055. info=false;
  2056. }else {
  2057. document.getElementById('currentAddress').style.borderColor = "#d9d9d9";
  2058. }}
  2059. if (data==='all' || data==="calltestResults"){ if (this.model.calltestResults===''|| this.model.calltestResults===null){
  2060. this.calltestResultsNull=true;
  2061. info=false;
  2062. }else {
  2063. this.calltestResultsNull=false;
  2064. } }
  2065. if (data==='all' || data==="judgmentResearchAddress"){ if (this.model.judgmentResearchAddress===''|| this.model.judgmentResearchAddress===null){
  2066. this.judgmentResearchAddressShow=true;
  2067. info=false;
  2068. }else {
  2069. this.judgmentResearchAddressShow=false;
  2070. } }
  2071. if (data==='all' || data==="cardStartTimeAndEnd"){ if (this.model.cardStartTimeAndEnd===''|| this.model.cardStartTimeAndEnd===null){
  2072. this.cardStartTimeAndEndShow=true;
  2073. info=false;
  2074. }else {
  2075. this.cardStartTimeAndEndShow=false;
  2076. } }
  2077. if (data==='all' || data==="judgmentResearch"){
  2078. if (this.model.judgmentResearch===''|| this.model.judgmentResearch===null){
  2079. this.judgmentResearchNull=true;
  2080. info=false;
  2081. }else {
  2082. this.judgmentResearchNull=false;
  2083. }
  2084. }
  2085. if (data==='all' || data==="operator"){ if (this.model.operator==='' || this.model.operator===null){
  2086. this.operatorNull=true;
  2087. info=false;
  2088. }else {
  2089. this.operatorNull=false;
  2090. }
  2091. }
  2092. if (data==='all' || data==="company"||data==='all' || data==="operatorType" ){
  2093. if (this.model.operatorType==='' || this.model.operatorType===null){
  2094. this.operatorTypeNull=true;
  2095. info=false;
  2096. }else {
  2097. this.operatorTypeNull=false;
  2098. }
  2099. }
  2100. if (data==='all' || data==="sysBusinessHall"){ if (this.model.sysBusinessHall==='' ||this.model.sysBusinessHall===null){
  2101. this.sysBusinessHallNull=true;
  2102. info=false;
  2103. }else {
  2104. this.sysBusinessHallNull=false;
  2105. } }
  2106. if (data==='all' || data==="cardStartTime" || data==='all' || data==="cardEndTime"){ if (this.model.cardStartTime===''|| this.model.cardStartTime===null){
  2107. this.cardDateNull=true;
  2108. info=false;
  2109. }else {
  2110. this.cardDateNull=false;
  2111. }
  2112. if (this.model.cardEndTime==='' || this.model.cardEndTime===null){
  2113. this.cardDateNull=true;
  2114. info=false;
  2115. }else {
  2116. this.cardDateNull=false;
  2117. } }
  2118. return info;
  2119. },
  2120. showCheck1(data){
  2121. var info =true;
  2122. if (data==='isInvolvingFraud' || data==='all'){
  2123. if (this.model.isInvolvingFraud==='' || this.model.isInvolvingFraud===null){
  2124. document.getElementById('isInvolvingFraud').style.color = "red";
  2125. info=false;
  2126. }else {
  2127. document.getElementById('isInvolvingFraud').style.color = "black";
  2128. }
  2129. }
  2130. if (data==='isChannel' || data==='all'){
  2131. if (this.model.isChannel==='' || this.model.isChannel===null){
  2132. document.getElementById('isChannel').style.color = "red";
  2133. info=false;
  2134. }else {
  2135. document.getElementById('isChannel').style.color = "black";
  2136. }
  2137. }
  2138. if (data==='isNewly' || data==='all'){
  2139. if (this.model.isNewly==='' || this.model.isNewly===null){
  2140. document.getElementById('isNewly').style.color = "red";
  2141. info=false;
  2142. }else {
  2143. document.getElementById('isNewly').style.color = "black";
  2144. }
  2145. }
  2146. if (data==='isShutDown' || data==='all'){
  2147. if (this.model.isShutDown==='' || this.model.isShutDown===null){
  2148. document.getElementById('isShutDown').style.color = "red";
  2149. info=false;
  2150. }else {
  2151. document.getElementById('isShutDown').style.color = "black";
  2152. }
  2153. }
  2154. if (data==='isRefund' || data==='all'){
  2155. if (this.model.isRefund==='' || this.model.isRefund===null){
  2156. document.getElementById('isRefund').style.color = "red";
  2157. info=false;
  2158. }else {
  2159. document.getElementById('isRefund').style.color = "black";
  2160. }
  2161. }
  2162. if (data==='isUseTo' || data==='all'){
  2163. if (this.model.isUseTo==='' || this.model.isUseTo===null){
  2164. document.getElementById('isUseTo').style.color = "red";
  2165. info=false;
  2166. }else {
  2167. document.getElementById('isUseTo').style.color = "black";
  2168. }
  2169. }
  2170. if (data==='isBroadband' || data==='all'){
  2171. if (this.model.isBroadband==='' || this.model.isBroadband===null){
  2172. document.getElementById('isBroadband').style.color = "red";
  2173. info=false;
  2174. }else {
  2175. document.getElementById('isBroadband').style.color = "black";
  2176. }
  2177. }
  2178. if (data==='isDxNumber' || data==='all'){
  2179. if (this.model.isDxNumber==='' || this.model.isDxNumber===null){
  2180. document.getElementById('isDxNumber').style.color = "red";
  2181. info=false;
  2182. }else {
  2183. document.getElementById('isDxNumber').style.color = "black";
  2184. }
  2185. }
  2186. return info;
  2187. },
  2188. getDataRisk(data){
  2189. this.dataList=[];
  2190. var getDataList=this.dataList;
  2191. var dataLists =[];
  2192. dataLists.push(data);
  2193. if(dataLists[0].cardStartTimeAndEnd!==null && dataLists[0].cardStartTimeAndEnd!==''){
  2194. if (dataLists[0].cardStartTimeAndEnd==="1"){
  2195. dataLists[0].cardStartTimeAndEnd='是'
  2196. }
  2197. if (dataLists[0].cardStartTimeAndEnd==="2"){
  2198. dataLists[0].cardStartTimeAndEnd='否'
  2199. }
  2200. }
  2201. if (dataLists[0].sysBusinessHall!==null &&dataLists[0].sysBusinessHall!=='' ){
  2202. for (var item of this.sysCompany) {
  2203. if (item.id === this.model.company) {
  2204. this.companyName = item.name;
  2205. for (var it of item.sysBusinessHallList) {
  2206. if (it.id === this.model.sysBusinessHall) {
  2207. dataLists[0].sysBusinessHall= this.companyName+ this.hallName
  2208. }
  2209. }
  2210. }
  2211. }
  2212. }
  2213. //智能地址研判
  2214. if (dataLists[0].judgmentResearch!==null && dataLists[0].judgmentResearch!==''){
  2215. if (dataLists[0].judgmentResearch==="1"){
  2216. dataLists[0].judgmentResearch='智能地址研判-异常'
  2217. }
  2218. if (dataLists[0].judgmentResearch==="2"){
  2219. dataLists[0].judgmentResearch='智能地址研判-正常'
  2220. }
  2221. }
  2222. //人工地址判研
  2223. if (dataLists[0].judgmentResearchAddress!==null && dataLists[0].judgmentResearchAddress!==''){
  2224. if (dataLists[0].judgmentResearchAddress==="1"){
  2225. dataLists[0].judgmentResearchAddress='人工地址判研-异常'
  2226. }
  2227. if (dataLists[0].judgmentResearchAddress==="2"){
  2228. dataLists[0].judgmentResearchAddress='人工地址判研-正常'
  2229. }
  2230. }
  2231. //拨测结果
  2232. if (dataLists[0].calltestResults!==null && dataLists[0].calltestResults!==''){
  2233. if (dataLists[0].calltestResults==="1"){
  2234. dataLists[0].calltestResults='关机'
  2235. }
  2236. if (dataLists[0].calltestResults==="2"){
  2237. dataLists[0].calltestResults='未接通'
  2238. }
  2239. if (dataLists[0].calltestResults==="3"){
  2240. dataLists[0].calltestResults='可接通不知晓入网事宜'
  2241. }
  2242. if (dataLists[0].calltestResults==="4"){
  2243. dataLists[0].calltestResults='可接通认可办理'
  2244. }
  2245. }
  2246. //运营商
  2247. if (dataLists[0].operatorType!==null && dataLists[0].operatorType!==''){
  2248. if (dataLists[0].operatorType==="1"){
  2249. dataLists[0].operatorType='移动'
  2250. }
  2251. if (dataLists[0].operatorType==="2"){
  2252. dataLists[0].operatorType='联调'
  2253. }if (dataLists[0].operatorType==="3"){
  2254. dataLists[0].operatorType='电信'
  2255. }if (dataLists[0].operatorType==="4"){
  2256. dataLists[0].operatorType='其它'
  2257. }
  2258. }
  2259. //一证通查结果
  2260. if (dataLists[0].operator!==null && dataLists[0].operator!==''){
  2261. if (dataLists[0].operator==="1"){
  2262. dataLists[0].operator='本地运营商'
  2263. }
  2264. if (dataLists[0].operator==="2"){
  2265. dataLists[0].operator='异地运营商'
  2266. }
  2267. }
  2268. // if ( dataLists[0]['newPhone']!==null && dataLists[0]['newPhone']!==''){
  2269. // var newPhones = dataLists[0]['newPhone'].split(',');
  2270. // let newPhonesStr='';
  2271. // for (var item of newPhones) {
  2272. // if (item.match(RegExp('newPhone1+')) && item.replace('newPhone1+', '') !== '') {
  2273. // newPhonesStr = newPhonesStr+item.replace('newPhone1+', '')+" "
  2274. // }
  2275. // if (item.match(RegExp('newPhone2+')) && item.replace('newPhone2+', '') !== '') {
  2276. // newPhonesStr = newPhonesStr+item.replace('newPhone2+', '')+" "
  2277. // }
  2278. // if (item.match(RegExp('newPhone3+')) && item.replace('newPhone3+', '') !== '') {
  2279. // newPhonesStr = newPhonesStr+item.replace('newPhone3+', '')+" "
  2280. // }
  2281. // if (item.match(RegExp('newPhone4+')) && item.replace('newPhone4+', '') !== '') {
  2282. // newPhonesStr = newPhonesStr+item.replace('newPhone4+', '')+" "
  2283. // }
  2284. // if (item.match(RegExp('newPhone5+')) && item.replace('newPhone5+', '') !== '') {
  2285. // newPhonesStr = newPhonesStr+item.replace('newPhone5+', '')+" "
  2286. // }
  2287. // }
  2288. // dataLists[0].newPhone=newPhonesStr;
  2289. // }
  2290. // if (dataLists[0].numberResults!==null && dataLists[0].numberResults!==''){
  2291. // var numberResultsList = dataLists[0]["numberResults"].split(',');
  2292. // var numberResultsListStr ='';
  2293. // for (var item of numberResultsList) {
  2294. // if (item==='1'){
  2295. // numberResultsListStr=numberResultsListStr+'非高危'
  2296. // }
  2297. // if (item==='2'){
  2298. // numberResultsListStr=numberResultsListStr+'已报关停'
  2299. // }
  2300. // if (item==='3'){
  2301. // numberResultsListStr=numberResultsListStr+'已报蓝名单 '
  2302. // }
  2303. // if (item==='4'){
  2304. // numberResultsListStr=numberResultsListStr+' 已报紫名单'
  2305. // }
  2306. // }
  2307. // dataLists[0].numberResults=numberResultsListStr
  2308. // }
  2309. var that =this
  2310. that.dataRisk=[];
  2311. Object.keys(dataLists[0]).forEach(function (key) {
  2312. var map ={};
  2313. if (key==='cardNo'){
  2314. var birthday = dataLists[0]['cardNo'].substring(6, 14);
  2315. var year = birthday.substring(0, 4);
  2316. // 计算年龄
  2317. var currentYear = new Date().getFullYear();
  2318. var age = currentYear - parseInt(year);
  2319. if (age>=60){
  2320. age=age+'(老年人)'
  2321. map.name ='【入网提示卡】客户年龄: ' ;
  2322. map.text = age ;
  2323. that.dataRisk.push(map)
  2324. }
  2325. if (age<=23){
  2326. age=age+'(可能是在校生)'
  2327. map.name ='【入网提示卡】客户年龄: ' ;
  2328. map.text = age ;
  2329. that.dataRisk.push(map)
  2330. }
  2331. }
  2332. //身份证是否到期
  2333. if (key==='cardStartTimeAndEnd'){
  2334. if (dataLists[0]['cardStartTimeAndEnd']==='否'){
  2335. map.name ='【入网提示卡】 身份证号码:【'+dataLists[0]['cardNo']+'】 是否在有效期' ;
  2336. map.text = dataLists[0]['cardStartTimeAndEnd'];
  2337. that.dataRisk.push(map)
  2338. }
  2339. }
  2340. //拨测结果
  2341. if (key==='calltestResults'){
  2342. if ( dataLists[0][key]!=='可接通认可办理'){
  2343. map.name ='【入网提示卡】 电话号码【'+dataLists[0]['phone'] +'】 - 拨测结果';
  2344. map.text = dataLists[0][key];
  2345. that.dataRisk.push(map)
  2346. }
  2347. }
  2348. //地址 人工判研
  2349. if (key==='judgmentResearchAddress'){
  2350. if (dataLists[0]['judgmentResearchAddress']==='人工地址判研-异常'){
  2351. map.name ='【入网提示卡】营业厅地址:【'+ that.companyName +'--'+ that.hallName +'】 工作地址:【'+dataLists[0]['wordAddress'] +'】 现住地址:【'+ dataLists[0]['currentAddress']+'】' ;
  2352. map.text = dataLists[0]['judgmentResearchAddress'];
  2353. that.dataRisk.push(map)
  2354. }
  2355. }
  2356. //地址 智能
  2357. if (key==='judgmentResearch'){
  2358. if (dataLists[0]['judgmentResearch']==='智能地址研判-异常'){
  2359. map.name ='【入网提示卡】 营业厅地址:【'+ that.companyName +'--'+ that.hallName +'】 工作地址:【'+dataLists[0]['wordAddress'] +'】 现住地址:【'+ dataLists[0]['currentAddress']+'】' ;
  2360. map.text = dataLists[0]['judgmentResearch'];
  2361. that.dataRisk.push(map)
  2362. }
  2363. }
  2364. //第二页 排除填写
  2365. if (key==='isDxNumber'){
  2366. if (dataLists[0]['isDxNumber']===2){
  2367. map.name ='【排查】客户名下无电信号码:' ;
  2368. map.text = '否';
  2369. that.dataRisk.push(map)
  2370. }
  2371. }
  2372. if (key==='isBroadband'){
  2373. if (dataLists[0]['isBroadband']===2){
  2374. map.name ='【排查】申请号码办理征信类、融合宽带业务:' ;
  2375. map.text = '否';
  2376. that.dataRisk.push(map)
  2377. }
  2378. }
  2379. if (key==='isUseTo'){
  2380. if (dataLists[0]['isUseTo']===1){
  2381. map.name ='【排查】申请号码使用用途异常:' ;
  2382. map.text = '是';
  2383. that.dataRisk.push(map)
  2384. }
  2385. }
  2386. if (key==='isRefund'){
  2387. if (dataLists[0]['isRefund']===1){
  2388. map.name ='【排查】客户名下号码存在异常高频率充值、退费:' ;
  2389. map.text = '是';
  2390. that.dataRisk.push(map)
  2391. }
  2392. }
  2393. if (key==='isShutDown'){
  2394. if (dataLists[0]['isShutDown']===1){
  2395. map.name ='【排查】客户名下已有号码(含已注销号码)存在各类关停:' ;
  2396. map.text = '是';
  2397. that.dataRisk.push(map)
  2398. }
  2399. }
  2400. if (key==='isNewly'){
  2401. if (dataLists[0]['isNewly']===1){
  2402. map.name ='【排查】客户名下在用号码无使用记录,仍要求新办号码:' ;
  2403. map.text = '是';
  2404. that.dataRisk.push(map)
  2405. }
  2406. }
  2407. if (key==='isChannel'){
  2408. if (dataLists[0]['isChannel']===1){
  2409. map.name ='【排查】在多个渠道多频次入网的异常情况:' ;
  2410. map.text = '是';
  2411. that.dataRisk.push(map)
  2412. }
  2413. }
  2414. if (key==='isInvolvingFraud'){
  2415. if (dataLists[0]['isInvolvingFraud']===1){
  2416. map.name = '【排查】黑名单到期客户新入网的高危疑似涉诈号码:' ;
  2417. map.text = '是';
  2418. that.dataRisk.push(map)
  2419. }
  2420. }
  2421. });
  2422. if (that.dataRisk.length>1) {
  2423. //是否有风险
  2424. that.riskShow=false;//有风险
  2425. }
  2426. },
  2427. /**下一步骤*/
  2428. nextSteps() {
  2429. if (this.current===0){
  2430. var info= this.showCheck0('all');
  2431. if (info===false){
  2432. return
  2433. }
  2434. }
  2435. if (this.current === 1) {
  2436. var info = this.showCheck1('all');
  2437. if (info === false) {
  2438. return
  2439. }
  2440. let that = this;
  2441. console.info(this.model.calltestResults);
  2442. that.addIng == false
  2443. let data = this.getData('next');
  2444. let id = that.model.id;
  2445. let i = 1;
  2446. let dataMessage = '';
  2447. const h = this.$createElement
  2448. this.newDatas = [];
  2449. if (this.model.calltestResults === 1 || this.model.calltestResults === '1') {
  2450. this.calltestResultsName = '关机';
  2451. }
  2452. if (this.model.calltestResults === 2 || this.model.calltestResults === '2') {
  2453. this.calltestResultsName = '未接通';
  2454. }
  2455. if (this.model.calltestResults === 3 || this.model.calltestResults === '3') {
  2456. this.calltestResultsName = '可接通不知晓入网事宜';
  2457. }
  2458. if (this.model.calltestResults === 4 || this.model.calltestResults === '4') {
  2459. this.calltestResultsName = '可接通认可办理';
  2460. }
  2461. //集合遍历
  2462. var company = '';
  2463. var hall = '';
  2464. for (var item of this.sysCompany) {
  2465. if (item.id === this.model.company) {
  2466. this.companyName = item.name
  2467. for (var it of item.sysBusinessHallList) {
  2468. if (it.id === this.model.sysBusinessHall) {
  2469. this.hallName = it.name
  2470. }
  2471. }
  2472. }
  2473. }
  2474. this.newDatas.push('异常信息提醒:')
  2475. this.newDatas.push('该用户以下填写信息可能触发风险请确认是否继续操作!!!')
  2476. // if (data["calltestResults"] === '2') {
  2477. // this.newDatas.push(i++ + '、该用户拨测号码未接通 请确认是否继续操作 。 ')
  2478. //
  2479. // }
  2480. // if ( data["judgmentResearch"] === '3' ) {
  2481. // this.newDatas.push(i++ + '、该用户附件地址人工判研异常 。 ')
  2482. // }
  2483. // if (data["calltestResults"] === '1') {
  2484. // this.newDatas.push(i++ + '、该用户拨测号码关机 请确认是否继续操作 。 ')
  2485. //
  2486. // }
  2487. // if (this.isSizeNumberResults === 'is') {
  2488. // this.newDatas.push(i++ + ' 、该用户有多个不友好研判结果 请确认是否继续操作 。 ')
  2489. //
  2490. // }
  2491. // if (data["judgmentResearch"] === '1' ) {
  2492. // if (parseFloat(this.distance1) > parseFloat(this.distance)) {
  2493. // this.newDatas.push(i++ + ' 、该用户现住地址(到村/小区),营业厅地址 距离过远 请确认是否继续操作 。 ')
  2494. // }
  2495. // if (parseFloat(this.distance2) > parseFloat(this.distance)) {
  2496. // this.newDatas.push(i++ + ' 、该用户 工作地址 , 营业厅地址 距离过远 请确认是否继续操作 。 ')
  2497. // }
  2498. // if (parseFloat(this.distance3) > parseFloat(this.distance)) {
  2499. // this.newDatas.push(i++ + ' 、该用户现住地址(到村/小区),工作地址距离过远 请确认是否继续操作 。 ')
  2500. // }
  2501. // }
  2502. this.getDataRisk(data)
  2503. // if (this.newDatas.length === 1) {
  2504. //newDatas.push(h('p', null, i++ +'、 暂无风险提示 请继续操作。 '))
  2505. //} else {
  2506. //是否显示继续操作页面
  2507. this.showInfo = true;
  2508. //document.getElementById('showInfo').innerHTML = h('div', null, this.newDatas)
  2509. // this.$confirm({
  2510. // okText: '继续操作',
  2511. // cancelText: '终止操作',
  2512. // title: "确认是否继续",
  2513. // content: h('div', null, newDatas),
  2514. // onOk: function () {
  2515. //
  2516. // } ,
  2517. // onCancel:function (){
  2518. // data['status']="0";//中断提交
  2519. // that.submit(data,id)
  2520. // }
  2521. // });
  2522. }
  2523. if (this.current < this.steps.length) {
  2524. this.current = this.current + 1;
  2525. }
  2526. },
  2527. /**上一步骤*/
  2528. prevSteps() {
  2529. if (this.current != 0) {
  2530. this.current = this.current - 1;
  2531. }
  2532. },
  2533. /**终止操作页面上一步骤*/
  2534. terminatingPrevSteps() {
  2535. this.showInfo=false;
  2536. if (this.current != 0) {
  2537. this.current = 1;
  2538. }
  2539. },
  2540. getData(info) {
  2541. var arr = '';
  2542. if (this.model.numberResults instanceof Array){
  2543. }
  2544. if (this.model.numberResults instanceof String){
  2545. }
  2546. if (this.model.numberResults !== undefined && this.model.numberResults !== "undefined" && this.model.numberResults !==''&& this.model.numberResults !==null && this.model.numberResults.length!==0 ) {
  2547. arr = this.model.numberResults+'';
  2548. }
  2549. if (this.industryQiTa!=='' || this.industryQiTa!==null){
  2550. this.model.industry = this.industryQiTa;
  2551. }
  2552. if (info==='submit'){
  2553. if (this.size===2){
  2554. this.model.newPhone ='newPhone1+'+this.model.newPhone+',newPhone2+'+this.model.newPhone2;
  2555. }
  2556. if (this.size===3){
  2557. this.model.newPhone ='newPhone1+'+this.model.newPhone+',newPhone2+'+this.model.newPhone2+',newPhone3+'+this.model.newPhone3;
  2558. }
  2559. if (this.size===4){
  2560. this.model.newPhone ='newPhone1+'+this.model.newPhone+',newPhone2+'+this.model.newPhone2+',newPhone3+'+this.model.newPhone3+',newPhone4+'+this.model.newPhone4;
  2561. }
  2562. if (this.size===5){
  2563. this.model.newPhone ='newPhone1+'+this.model.newPhone+',newPhone2+'+this.model.newPhone2+',newPhone3+'+this.model.newPhone3+',newPhone4+'+this.model.newPhone4+',newPhone5+'+this.model.newPhone5;
  2564. }
  2565. }
  2566. let data = {
  2567. "sysBusinessHall": this.model.sysBusinessHall,
  2568. "company": this.model.company,
  2569. //用户id
  2570. "id": this.model.id,
  2571. "yidong": this.model.yidong,
  2572. "dianxin": this.model.dianxin,
  2573. "liantong": this.model.liantong,
  2574. "qita": this.model.qita,
  2575. //联电归属地
  2576. "address": this.model.address,
  2577. //拨测联系电话
  2578. "phone": this.model.phone,
  2579. //拨测结果
  2580. "calltestResults": this.model.calltestResults,
  2581. //证件地址
  2582. "idCardAddress": this.model.idCardAddress,
  2583. //现住地址
  2584. "currentAddress": this.model.currentAddress,
  2585. //现用号码运营商
  2586. "operator": this.model.operator,
  2587. //现用号码运营商类型
  2588. "operatorType": this.model.operatorType,
  2589. //现用号码运营商类型备注
  2590. "operatorTypeNote": this.model.operatorTypeNote,
  2591. //现用号码使用年限
  2592. "useLife": this.model.useLife,
  2593. //现用号码使用用途
  2594. "phonePurpose": this.model.phonePurpose,
  2595. //是否将高危号码上报蓝、紫名单或不可复开关停
  2596. "numberResults": arr ,
  2597. "cardStartTimeAndEnd":this.model.cardStartTimeAndEnd,
  2598. "judgmentResearchAddress":this.model.judgmentResearchAddress,
  2599. "cardNo": this.model.cardNo,
  2600. "cardName": this.model.cardName,
  2601. "cardStartTime": this.model.cardStartTime,
  2602. "cardEndTime": this.model.cardEndTime,
  2603. "wordAddress": this.model.wordAddress,
  2604. "businessAddress": this.model.businessAddress,
  2605. "positionInformation": this.model.positionInformation,
  2606. "status": '',
  2607. "judgmentResearch":this.model.judgmentResearch,
  2608. "industry":this.model.industry,
  2609. "newPhone": this.model.newPhone,
  2610. //客户名下无电信号码
  2611. "isDxNumber": this.model.isDxNumber,
  2612. //客户名下无电信号码备注
  2613. "isDxNumberNote": this.model.isDxNumberNote,
  2614. //申请号码办理征信类、融合宽带业务
  2615. "isBroadband": this.model.isBroadband,
  2616. //申请号码办理征信类、融合宽带业务备注
  2617. "isBroadbandNote": this.model.isBroadbandNote,
  2618. //申请号码使用用途异常
  2619. "isUseTo": this.model.isUseTo,
  2620. //申请号码使用用途异常备注
  2621. "isUseToNote": this.model.isUseToNote,
  2622. //客户名下号码存在异常高频率充值、退费
  2623. "isRefund": this.model.isRefund,
  2624. //客户名下号码存在异常高频率充值、退费备注
  2625. "isRefundNote": this.model.isRefundNote,
  2626. //客户名下已有号码(含已注销号码)存在各类关停
  2627. "isShutDown": this.model.isShutDown,
  2628. //客户名下已有号码(含已注销号码)存在各类关停备注
  2629. "isShutDownNote": this.model.isShutDownNote,
  2630. //客户名下在用号码无使用记录,仍要求新办号码
  2631. "isNewly": this.model.isNewly,
  2632. //客户名下在用号码无使用记录,仍要求新办号码备注
  2633. "isNewlyNote": this.model.isNewlyNote,
  2634. //在多个渠道多频次入网的异常情况
  2635. "isChannel": this.model.isChannel,
  2636. //在多个渠道多频次入网的异常情况备注
  2637. "isChannelNote": this.model.isChannelNote,
  2638. //黑名单到期客户新入网的高危疑似涉诈号码
  2639. "isInvolvingFraud": this.model.isInvolvingFraud,
  2640. //黑名单到期客户新入网的高危疑似涉诈号码备注
  2641. "isInvolvingFraudNote": this.model.isInvolvingFraudNote,
  2642. };
  2643. return data;
  2644. },
  2645. submit(data, id) {
  2646. let mes = '提交成功';
  2647. if (data["status"] === '0') {
  2648. mes = "终止操作 数据保存成功! "
  2649. }
  2650. if (this.model.cardNo==='' || this.model.cardNo===null || this.model.cardNo===undefined){
  2651. this.clearModel()
  2652. this.$message.success('身份证信息为空,暂不保持', 7);
  2653. this.addIng == true;
  2654. return
  2655. }
  2656. if (id == null) {
  2657. postAction("/businessReminderCard/add", data).then((res) => {
  2658. if (res.success) {
  2659. this.clearModel()
  2660. this.$message.success(mes, 3);
  2661. this.addIng == true
  2662. location.reload();
  2663. // this.onCance ()
  2664. //this.closeCurrent();
  2665. //this.$router.replace({ path: this.$route.path })
  2666. } else {
  2667. this.$message.error("提交失败");
  2668. location.reload();
  2669. // this.onCance ()
  2670. // this.closeCurrent();
  2671. // this.$router.replace({ path: this.$route.path })
  2672. }
  2673. })
  2674. } else {
  2675. data['newBusinessAddress']=this.model.businessAddress;
  2676. postAction("/businessReminderCard/editById", data).then((res) => {
  2677. if (res.success) {
  2678. this.clearModel()
  2679. this.$message.success(mes, 7);
  2680. this.addIng == true
  2681. this.$router.go(-1);
  2682. this.closeCurrent();
  2683. } else {
  2684. this.$message.error("修改失败");
  2685. this.addIng == true;
  2686. }
  2687. })
  2688. }
  2689. },
  2690. //继续操作
  2691. continueOperation() {
  2692. this.showInfo = false;
  2693. },
  2694. //终止操作
  2695. terminatingOperation() {
  2696. let data = this.getData('submit');
  2697. data['status'] = "0";//中断提交
  2698. this.showInfo = false;
  2699. this.submit(data, this.model.id)
  2700. },
  2701. check3(data){
  2702. var info = true;
  2703. if (data==='all' || data==='newPhone'){
  2704. if (this.model.newPhone==='' || this.model.newPhone===null){
  2705. document.getElementById('newPhone').style.borderColor = "red";
  2706. info=false;
  2707. }else {
  2708. document.getElementById('newPhone').style.borderColor = "#d9d9d9";
  2709. }
  2710. }
  2711. if (data==='all' || data==='newPhone2'){
  2712. if (this.size>=2){
  2713. if (this.model.newPhone==='' || this.model.newPhone===null){
  2714. document.getElementById('newPhone').style.borderColor = "red";
  2715. info=false;
  2716. }else {
  2717. document.getElementById('newPhone').style.borderColor = "#d9d9d9";
  2718. }
  2719. }
  2720. }
  2721. if (data==='all' || data==='newPhone3'){
  2722. if (this.size>=3){
  2723. if (this.model.newPhone3==='' || this.model.newPhone3===null){
  2724. document.getElementById('newPhone3').style.borderColor = "red";
  2725. info=false;
  2726. }else {
  2727. document.getElementById('newPhone3').style.borderColor = "#d9d9d9";
  2728. }
  2729. }
  2730. }
  2731. if (data==='all' || data==='newPhone4'){
  2732. if (this.size>=4){
  2733. if (this.model.newPhone4==='' || this.model.newPhone4===null){
  2734. document.getElementById('newPhone4').style.borderColor = "red";
  2735. info=false;
  2736. }else {
  2737. document.getElementById('newPhone4').style.borderColor = "#d9d9d9";
  2738. }
  2739. }
  2740. }
  2741. if (data==='all' || data==='newPhone5'){
  2742. if (this.size>=5){
  2743. if (this.model.newPhone5==='' || this.model.newPhone5===null){
  2744. document.getElementById('newPhone5').style.borderColor = "red";
  2745. info=false;
  2746. }else {
  2747. document.getElementById('newPhone5').style.borderColor = "#d9d9d9";
  2748. }
  2749. }
  2750. }
  2751. var reg = RegExp(/numberResults/);
  2752. if (data==='all' || reg.exec(data)) {
  2753. if (data==='all'){
  2754. if (this.model.numberResults === '' || this.model.numberResults === null || this.model.numberResults.length === 0) {
  2755. this.numberResults=true;
  2756. info=false;
  2757. } else {
  2758. this.numberResults=false;
  2759. }
  2760. }else {
  2761. if (this.model.numberResults === '' || this.model.numberResults === null || this.model.numberResults.length === 0) {
  2762. this.numberResults=false;
  2763. }
  2764. }
  2765. if(reg.exec(data)){
  2766. for (let i = 0; i < this.model.numberResults.length; i++){
  2767. if (data==='numberResults'+this.model.numberResults[i]){
  2768. //在取消选择
  2769. if (this.model.numberResults.length===1){
  2770. this.numberResults=true;
  2771. info=false;
  2772. }else {
  2773. this.numberResults=false;
  2774. }
  2775. }
  2776. }
  2777. }
  2778. }
  2779. return info;
  2780. },
  2781. /**新增*/
  2782. submitBusiness() {
  2783. var info = true;
  2784. info=this.check3('all');
  2785. if (info===false){
  2786. return
  2787. }
  2788. let that = this;
  2789. that.addIng == false
  2790. let data = this.getData('submit');
  2791. let id = that.model.id;
  2792. let i = 1;
  2793. let dataMessage = '';
  2794. const h = this.$createElement
  2795. const newDatas = [];
  2796. data['status'] = "1";//确认提交
  2797. this.submit(data, id)
  2798. // if( data["calltestResults"] ==='2'){
  2799. // newDatas.push(h('p', null, i++ +'、该用户拨测号码未接通 请确认风险 。 '))
  2800. //
  2801. // }if(this.isSizeNumberResults==='is' ){
  2802. // newDatas.push(h('p', null, i++ +' 、该用户有多个不友好研判结果 请确认风险 。 '))
  2803. //
  2804. // }if(this.isSizeNumberResults==='is' ){
  2805. // newDatas.push(h('p', null, i++ +' 、该用户现住地址(到村/小区),工作地址,营业厅地址距离过远 请确认风险 。 '))
  2806. //
  2807. // }else{
  2808. // newDatas.push(h('p', null, i++ +' 暂无风险提示 请继续。 '))
  2809. // }
  2810. //
  2811. // this.$confirm({
  2812. // title: "确认是否继续提交",
  2813. // content: h('div', null, newDatas),
  2814. // onOk: function () {
  2815. // if (id == null){
  2816. // postAction("/businessReminderCard/add", data).then((res) => {
  2817. // if (res.success) {
  2818. // that.clearModel()
  2819. // that.$message.success("提交成功", 7);
  2820. // that.addIng == true
  2821. // } else {
  2822. // that.$message.error("提交失败");
  2823. // that.addIng == true;
  2824. // }
  2825. // })
  2826. // }else {
  2827. // postAction("/businessReminderCard/editById", data).then((res) => {
  2828. // if (res.success) {
  2829. // that.clearModel()
  2830. // this.$message.success("修改成功", 7);
  2831. // that.addIng == true
  2832. // this.$router.go(-1);
  2833. // this.closeCurrent();
  2834. // } else {
  2835. // this.$message.error("修改失败");
  2836. // that.addIng == true;
  2837. // }
  2838. // })
  2839. //
  2840. // }
  2841. // }
  2842. // });
  2843. },
  2844. /**充值表单*/
  2845. clearModel() {
  2846. this.model = {}
  2847. this.current = 0;
  2848. },
  2849. },
  2850. }
  2851. </script>
  2852. <style scoped>
  2853. .is-error {
  2854. border-color: red
  2855. }
  2856. .box {
  2857. margin: 0;
  2858. padding: 0;
  2859. }
  2860. .redInfo {
  2861. display: inline-block;
  2862. margin-right: 4px;
  2863. color: #f5222d;
  2864. font-size: 14px;
  2865. font-family: SimSun, sans-serif;
  2866. line-height: 1;
  2867. content: '*';
  2868. }
  2869. /deep/.ant-table-tbody .red{
  2870. color: red !important;
  2871. }
  2872. </style>