registration.vue 128 KB

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