registrationUpdate.vue 116 KB

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