registrationUpdate.vue 125 KB

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