registrationSelect.vue 122 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289
  1. <template>
  2. <div :spinning="addIng">
  3. <!-- <div slot="title">
  4. <span style="float: left;position: relative;top: 4px">入网信息登记</span>
  5. </div>-->
  6. <!-- 步骤条-->
  7. <a-card style="margin-bottom:10px">
  8. <!-- v-model:current="current"-->
  9. <a-steps :current="current" size="default">
  10. <a-step v-for="item in steps" :key="item.title" :title="item.title"/>
  11. </a-steps>
  12. </a-card>
  13. <!--身份信息-->
  14. <a-card style="margin-bottom:10px" v-if="current==0">
  15. <div>
  16. <a-form-model
  17. ref="form"
  18. :label-col="labelCol"
  19. :wrapper-col="wrapperCol"
  20. :model="model"
  21. :rules="rules"
  22. >
  23. <div>
  24. <!-- <registation-Modal ref="registationModel" @ok="modalFormOk2"></registation-Modal> :row-class-name="tableRowClassName"-->
  25. <div>
  26. <!-- <a-button type="primary" @click="showModal">研判结果异常展示</a-button> :transformCellText="dataShow" -->
  27. <a-modal v-model:open="open" title="研判结果异常展示" @ok="handleOk" :width="1000">
  28. <template slot="footer" >
  29. <a-button type="primary" style="display:block;margin:0 auto"
  30. @click="handleOk" >已阅</a-button>
  31. </template>
  32. <a-table :columns="columns" :data-source="dataList" :scroll="{ x: 1500, y: 300 }" :rowClassName="cellStyle" >
  33. <template #bodyCell="{ column }">
  34. <template v-if="column.key === 'operation'">
  35. </template>
  36. </template>
  37. <template v-slot:age="text, record">
  38. <div v-if="parseInt(text)<=23 || parseInt(text)>=60" style="color: red">{{ text }}</div>
  39. <div v-if="parseInt(text)>23 && parseInt(text)<60" >{{ text }}</div>
  40. </template>
  41. <template v-slot:cardStartTimeAndEnd="text, record">
  42. <div v-if="text==='是'" >{{ text }}</div>
  43. <div v-if="text==='否'" style="color: red">{{ text }}</div>
  44. </template>
  45. <template v-slot:judgmentResearchAddress="text, record">
  46. <div v-if="text==='异常'" style="color: red" >{{ text }}</div>
  47. <div v-if="text==='正常'" >{{ text }}</div>
  48. </template>
  49. <template v-slot:judgmentResearch="text, record">
  50. <div v-if="text==='异常'" style="color: red" >{{ text }}</div>
  51. <div v-if="text==='正常'" >{{ text }}</div>
  52. </template>
  53. <template v-slot:calltestResults="text, record">
  54. <div v-if="text==='关机'" style="color: red" >{{ text }}</div>
  55. <div v-if="text==='未接通'" style="color: red" >{{ text }}</div>
  56. <div v-if="text==='可接通不知晓入网事宜'" style="color: red" >{{ text }}</div>
  57. <div v-if="text==='可接通认可办理'" >{{ text }}</div>
  58. </template>
  59. <template v-slot:numberResults="text, record">
  60. <div v-if="text==='非高危'" >{{ text }}</div>
  61. <div v-else style="color: red" >{{ text }}</div>
  62. </template>
  63. </a-table>
  64. </a-modal>
  65. </div>
  66. <!-- <a-button type="link" @click="keyupInfoSelect()">证件编号检索</a-button>-->
  67. <a-row>
  68. <a-col :span="6">
  69. <a-form-model-item required label="证件编号" prop="cardNo" :labelCol="{ span:8 }" :wrapperCol="{ span: 14 }" >
  70. <!-- <a-radio-group v-model="model.cardNo" button-style="solid" slot-scope="text, record">-->
  71. <a-input v-model="model.cardNo" placeholder="请输入证件编号" @keyup="keyupInfo('')" id="cardNo" :disabled="isDisabled" @blur="showCheck0('cardNo')"></a-input>
  72. <!-- </a-radio-group>--><a-icon slot="prefix" type="user" :style="{ color: 'rgba(0,0,0,.25)' }"/>
  73. </a-form-model-item>
  74. </a-col>
  75. <a-col :span="6">
  76. <a-form-model-item label="客户名称" prop="industry" :labelCol="{ span:8 }" :wrapperCol="{ span: 14 }" >
  77. <!-- <a-radio-group v-model="model.cardName" button-style="solid" prop="cardNo">-->
  78. <a-input v-model="model.cardName" placeholder="客户名称" id="cardName" @blur="showCheck0('cardName')" :disabled="isDisabled"></a-input>
  79. <!-- </a-radio-group>-->
  80. </a-form-model-item>
  81. </a-col>
  82. <!-- <a-col :span="8" >-->
  83. <!-- <a-form-item label="证件期限(开始日期)" v-bind="labelCol2" prop="cardStartTime">-->
  84. <!-- <j-date :show-time="true" prop="cardStartTime" date-format="YYYY-MM-DD" placeholder="请选择开始时间" class="query-group-cust" v-model="model.cardStartTime"></j-date>-->
  85. <!-- </a-form-item>-->
  86. <!-- </a-col>-->
  87. <a-col :span="6">
  88. <div>
  89. <div style="float:left;margin: 10px 3px;"> <div class="redInfo" v-if="showIdCardAddress">*</div> 证件地址:</div>
  90. <!-- <a-radio-group v-model="model.cardName" button-style="solid" prop="cardNo">-->
  91. <div style="float:left;margin: 5px 0px;">
  92. <a-input v-model="model.idCardAddress" placeholder="证件地址" id="idCardAddress" @blur="showCheck0('idCardAddress')" :disabled="isDisabled"></a-input>
  93. </div>
  94. <!-- </a-radio-group>-->
  95. </div>
  96. </a-col>
  97. <a-col :span="6" >
  98. <!-- <a-form-item label="身份证证件有效期" prop="industry" @click="showCheck0('cardStartTime')" :labelCol="{ span:6 }" :wrapperCol="{ span: 16 }" style="margin: 0px 0px">-->
  99. <!-- <j-date :show-time="true" date-format="YYYY-MM-DD" placeholder="请选择开始时间" class="query-group-cust"-->
  100. <!-- v-model="model.cardStartTime" id ="cardStartTime" @change="showCheck0('cardStartTime')"></j-date>-->
  101. <!-- <span class="query-group-split-cust"></span>-->
  102. <!-- <j-date :show-time="true" date-format="YYYY-MM-DD" placeholder="请选择结束时间" class="query-group-cust"-->
  103. <!-- v-model="model.cardEndTime" id="cardEndTime" @change="showCheck0('cardEndTime')"></j-date>-->
  104. <!-- <div v-if="cardDateNull" style="color: red">请选择身份证证件有效期</div>-->
  105. <!-- </a-form-item>-->
  106. <a-form-model-item label="身份证是否在有效期" prop="modelOperator" :labelCol="{ span:12 }"
  107. :wrapperCol="{ span: 11 }" style="margin: 0px 0px">
  108. <a-radio-group v-model="model.cardStartTimeAndEnd" button-style="solid" id="cardStartTimeAndEnd" @change="showCheck0('cardStartTimeAndEnd')" :disabled="isDisabled">
  109. <a-radio value="1" >是</a-radio>
  110. <a-radio value="2" >否</a-radio>
  111. </a-radio-group>
  112. <div v-if="cardStartTimeAndEndShow" style="color: red">身份证是否在有效期</div>
  113. </a-form-model-item>
  114. </a-col>
  115. </a-row>
  116. </div>
  117. </a-form-model>
  118. </div>
  119. </a-card>
  120. <!-- 入网信息登记表单-->
  121. <a-card style="margin-bottom:10px" v-if="current==0">
  122. <div>
  123. <a-form-model
  124. ref="form"
  125. :label-col="labelCol"
  126. :wrapper-col="wrapperCol"
  127. :model="model"
  128. :rules="rules"
  129. >
  130. <div>
  131. <!-- <a-divider orientation="left">填写营业厅入网提示卡-->
  132. <!-- </a-divider>-->
  133. <a-row>
  134. <a-col :span="7">
  135. <a-form-model-item label="拨测联系电话" :labelCol="{ span:8 }" :wrapperCol="{ span: 12 }" prop="phone">
  136. <!-- <a-radio-group v-model="model.phone" button-style="solid">-->
  137. <a-input v-model="model.phone" placeholder="请输入拨测联系电话"
  138. @keyup="keyupInfoPhone(model.phone)" @blur="showCheck0('phone')" id="phone" :disabled="isDisabled"></a-input>
  139. <!-- </a-radio-group>-->
  140. </a-form-model-item>
  141. </a-col>
  142. <a-col :span="7">
  143. <a-form-model-item label="联电归属地" prop="industry" :labelCol="{ span:8 }" :wrapperCol="{ span: 12 }">
  144. <!-- <a-radio-group v-model="model.address" button-style="solid">-->
  145. <a-input v-model="model.address" placeholder="请输入联电归属地" id="address" @blur="showCheck0('address')" :disabled="isDisabled"></a-input>
  146. <!-- </a-radio-group>-->
  147. </a-form-model-item>
  148. </a-col>
  149. <!-- <a-col :span="8">-->
  150. <!-- <a-form-model-item label="现用号码使用年限" prop="userOpenState" v-bind="labelCol2">-->
  151. <!-- <a-radio-group v-model="model.useLife" button-style="solid">-->
  152. <!-- <a-input v-model="model.useLife" placeholder="请输入使用年限"></a-input>-->
  153. <!-- </a-radio-group>-->
  154. <!-- </a-form-model-item>-->
  155. <!-- </a-col>-->
  156. <!-- <a-col :span="8">-->
  157. <!-- <a-form-model-item label="运营商类型" prop="userOpenState" v-bind="labelCol2">-->
  158. <!-- <a-radio-group v-model="model.phonePurpose" button-style="solid">-->
  159. <!-- <a-input v-model="model.phonePurpose" placeholder="请输入运营商类型"></a-input>-->
  160. <!-- </a-radio-group>-->
  161. <!-- </a-form-model-item>-->
  162. <!-- </a-col>-->
  163. <a-col :span="10">
  164. <a-form-model-item label="客户现用号码一证通查结果" :labelCol="{ span:9 }"
  165. :wrapperCol="{ span: 13}" prop="operatorType" style="margin: 0px 0px">
  166. <a-radio-group v-model="model.operatorType" button-style="solid" @change="showCheck0('operatorType')" :disabled="isDisabled">
  167. <a-radio value="1">移动</a-radio>
  168. <!-- <span v-if="this.model.yidong>5 " style="color: red">[{{ this.model.yidong }}]</span><span-->
  169. <!-- v-if="this.model.yidong<5 " style="color: green">[{{ this.model.yidong }}]</span>-->
  170. <a-input-number id="inputNumberyidong" v-model="model.yidong" style="width: 45px" :min="0" :max="100" :disabled="isDisabled"/>
  171. <a-radio value="2" >联通</a-radio>
  172. <!-- <span v-if="this.model.liantong>5 " style="color: red">[{{ this.model.liantong }}]</span><span-->
  173. <!-- v-if="this.model.liantong<5 " style="color: green">[{{ this.model.liantong }}]</span>-->
  174. <a-input-number id="inputNumberliantong" v-model="model.liantong" style="width: 45px;height: 30px" :min="0" :max="100" :disabled="isDisabled"/>
  175. <br>
  176. <a-radio value="3" >电信</a-radio>
  177. <!-- <span v-if="this.model.dianxin>5 " style="color: red">[{{ this.model.dianxin }}]</span><span-->
  178. <!-- v-if="this.model.dianxin<5 " style="color: green">[{{ this.model.dianxin }}]</span>-->
  179. <a-input-number id="inputNumberdianxin" v-model="model.dianxin" style="width: 45px" :min="0" :max="100" :disabled="isDisabled"/>
  180. <a-radio value="4" >其他</a-radio>
  181. <a-input-number id="inputNumberqita" v-model="model.qita" style="width: 45px" :min="0" :max="100" :disabled="isDisabled" />
  182. <!-- <span v-if="this.model.qita>5 " style="color: red">[{{ this.model.qita }}]</span><span-->
  183. <!-- v-if="this.model.qita<5 " style="color: green">[{{ this.model.qita }}]</span>-->
  184. </a-radio-group>
  185. <div v-if="operatorTypeNull" style="color: red">请选择客户现用号码一证通查结果</div>
  186. </a-form-model-item>
  187. </a-col>
  188. </a-row>
  189. <a-row>
  190. <a-col :span="7">
  191. <a-form-model-item label="新办号码用途" prop="phonePurpose" :labelCol="{ span:8 }" :wrapperCol="{ span: 12 }">
  192. <!-- <a-radio-group v-model="model.phonePurpose" button-style="solid">-->
  193. <a-input v-model="model.phonePurpose" placeholder="请输入用途" id="phonePurpose" @blur="showCheck0('phonePurpose')" :disabled="isDisabled"></a-input>
  194. <!-- </a-radio-group>-->
  195. </a-form-model-item>
  196. </a-col>
  197. <a-col :span="7">
  198. <a-form-model-item label="客户所属行业" prop="industry" :labelCol="{ span:8 }" :wrapperCol="{ span: 12 }"style="margin: 0px 0px" >
  199. <!-- <j-dict-select-tag placeholder="请选择客户所属行业" v-model="model.industry" dictCode="custom_industry" id="industry" @change="showCheck0('industry')" />-->
  200. <div @click="handleSearch('')">
  201. <a-auto-complete
  202. style="width: 180px"
  203. placeholder="输入搜索关键字"
  204. option-label-prop="value"
  205. @select="handleSelect"
  206. @search="handleSearch"
  207. v-model="model.industry"
  208. :defaultActiveFirstOption="false"
  209. :allowClear="true" :disabled="isDisabled">
  210. <a-spin v-if="fetching" class="auto-spin" slot="notFoundContent" size="small" />
  211. <template slot="dataSource">
  212. <a-select-option v-for="(item, index) in getDataSysDictItem" :key="index" :value="item.value" @click="clickhandleSearch(item.value)" :disabled="isDisabled" >
  213. <a-row type="flex" justify="space-between" align="middle" @change="showCheck0('industry')">
  214. <a-col>{{ item.value }}</a-col>
  215. </a-row>
  216. </a-select-option>
  217. </template>
  218. </a-auto-complete>
  219. </div>
  220. <a-input v-if="industryNullQiTa" v-model="industryQiTa" placeholder="请填写客户所属行业(其它)" id="" @keyup="showCheck0('industryQiTa')" :disabled="isDisabled"></a-input>
  221. <div v-if="industryNull" style="color: red" >请选择客户所属行业</div>
  222. </a-form-model-item>
  223. </a-col>
  224. <!-- <a-col :span="9">-->
  225. <!-- <a-form-model-item label="客户现用号码一证通查结果" prop="modelOperator" :labelCol="{ span:10 }"-->
  226. <!-- :wrapperCol="{ span: 13}" style="margin: 0px 0px">-->
  227. <!-- <a-radio-group v-model="model.operator" button-style="solid" id="operator" @change="showCheck0('operator')" v-bind:disabled="isDisabled">-->
  228. <!-- <a-radio value="1" >本地运营商</a-radio>-->
  229. <!-- <a-radio value="2" >异地运营商</a-radio>-->
  230. <!-- </a-radio-group>-->
  231. <!-- <div v-if="operatorNull" style="color: red">请选择客户现用号码一证通查结果</div>-->
  232. <!-- </a-form-model-item>-->
  233. <!-- </a-col>-->
  234. </a-row>
  235. <a-row>
  236. </a-row>
  237. <a-row>
  238. <a-col :span="15">
  239. <a-form-model-item label="拨测结果" prop="calltestResultsName" :labelCol="{ span: 3 }" :wrapperCol="{ span: 15 }" style="margin: 0px 0px">
  240. <a-radio-group v-model="model.calltestResults" button-style="solid" @change="showCheck0('calltestResults')" :disabled="isDisabled">
  241. <a-radio value="1" style="color: red">关机</a-radio>
  242. <a-radio value="2" style="color: red">未接通</a-radio>
  243. <a-radio value="3" style="color: red">可接通不知晓入网事宜</a-radio>
  244. <a-radio value="4" >可接通认可办理</a-radio>
  245. </a-radio-group>
  246. <a-button type="link" style="color: red" v-if="this.model.calltestResults==='1' ">拨测号码关机!</a-button>
  247. <div v-if="calltestResultsNull" style="color: red">请选择拨测结果</div>
  248. </a-form-model-item>
  249. </a-col>
  250. </a-row>
  251. </div>
  252. </a-form-model>
  253. </div>
  254. </a-card>
  255. <a-card style="margin-bottom:10px" v-if="current==1">
  256. <div>
  257. <a-form-model
  258. ref="form"
  259. :label-col="labelCol"
  260. :wrapper-col="wrapperCol"
  261. :model="model"
  262. :rules="rules"
  263. >
  264. <div style="overflow: auto">
  265. <a-list size="large" bordered>
  266. <template>
  267. <a-list-item class="box">
  268. <a-col :span="12" >
  269. <div>
  270. <div style="float:left;margin: 20px 3px;" id="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">
  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">
  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">
  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">
  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">
  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">
  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">
  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">
  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">
  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">
  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. <div style="height: 80px;"></div>
  543. <a-table :columns="columns2" :data-source="dataRisk" bordered >
  544. <template #bodyCell="{ column, text }">
  545. <template v-if="column.dataIndex === 'name'">
  546. <a>{{ text }}</a>
  547. </template>
  548. </template>
  549. <template v-slot:text="text, record">
  550. <div style="color: red">{{ text }}</div>
  551. </template>
  552. <!-- <template #title>Header</template>-->
  553. <!-- <template #footer>Footer</template>-->
  554. </a-table>
  555. </div>
  556. <a-col :span="24" v-if="showDataLog">
  557. <div >
  558. <h1 style="text-align:center;color: #2eabff">修改记录</h1>
  559. </div>
  560. </a-col>
  561. <a-table :columns="columns3" :data-source="dataLog" bordered v-if="showDataLog" >
  562. <template #bodyCell="{ column, text }">
  563. <template v-if="column.dataIndex === 'name'">
  564. <a>{{ text }}</a>
  565. </template>
  566. </template>
  567. </a-table>
  568. </a-form-model>
  569. </div>
  570. </a-card>
  571. <!--附加信息-->
  572. <a-card style="margin-bottom:10px" v-show="current==0">
  573. <div>
  574. <a-form-model
  575. ref="form"
  576. :label-col="labelCol"
  577. :wrapper-col="wrapperCol"
  578. :model="model"
  579. :rules="rules"
  580. >
  581. <div>
  582. <!-- <a-divider orientation="left">附加信息-->
  583. <!-- </a-divider>-->
  584. <a-row>
  585. <a-col :span="12">
  586. <a-row>
  587. <a-col>
  588. <a-form-model-item label="营业厅地址" prop="sysBusinessHallAndSysCompany" v-bind="labelCol2">
  589. <a-col :span="10">
  590. <a-select placeholder="请选择分公司" v-model="model.company" id="company" :disabled="isDisabled">
  591. <a-select-option v-for="(item,index) in sysCompany" :key="item.id" :value="item.id"
  592. @click="change(item.id)">{{ item.name }}
  593. </a-select-option>
  594. </a-select>
  595. </a-col>
  596. <a-col :span="10">
  597. <a-select placeholder="请选择营业厅地址" v-model="model.sysBusinessHall" style="margin: 0px 0px;width: 200px" :disabled="isDisabled">
  598. <a-select-option v-for="item in sysBusinessHallList" :key="item.id" :value="item.id"
  599. @click="searchKeyWordsysBusinessHall('中国电信'+item.name +'coordinate'+ item.coordinate,'businessAddress')">
  600. {{ item.name }}
  601. </a-select-option>
  602. </a-select>
  603. </a-col>
  604. <br>
  605. <div v-if="sysBusinessHallNull" style="color: red;margin: 0px 0px" >请选择营业厅地址</div>
  606. </a-form-model-item>
  607. </a-col>
  608. </a-row>
  609. <a-row>
  610. <a-col>
  611. <a-form-model-item label="工作地址" prop="industry" :labelCol="{ span:7}" :wrapperCol="{ span: 7}">
  612. <!-- <a-radio-group v-model="model.wordAddress" button-style="solid">-->
  613. <a-input v-model="model.wordAddress" placeholder="请输入工作地址"
  614. @keyup="searchKeyWord('model.wordAddress')" id="wordAddress" @blur="showCheck0('wordAddress')" :disabled="isDisabled"></a-input>
  615. <div class="map_search_result" v-show="this.showsearchResult">
  616. <ul style=" border-radius: 5px ;border: 0.5px solid #f1f1f1;padding: 0px; background-color: #f1f1f1;">
  617. <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">
  618. {{ item.name }}
  619. </li>
  620. </ul>
  621. </div>
  622. <!-- </a-radio-group>-->
  623. </a-form-model-item>
  624. </a-col>
  625. </a-row>
  626. <a-row>
  627. <a-col>
  628. <a-form-model-item label="现住地址(到村/小区)" prop="industry" :labelCol="{ span:7}" :wrapperCol="{ span: 7}">
  629. <!-- <a-radio-group v-model="model.currentAddress" button-style="solid">-->
  630. <a-input v-model="model.currentAddress" placeholder="请输入现住地址"
  631. @keyup="searchKeyWord('model.currentAddress')" id="currentAddress" @blur="showCheck0('currentAddress')" :disabled="isDisabled"></a-input>
  632. <div class="map_search_result" v-show="this.showsearchcurrentAddress">
  633. <ul style=" border-radius: 5px ;border: 0.5px solid #f1f1f1;padding: 0px; background-color: #f1f1f1;">
  634. <li style=" border-radius: 5px;list-style: none;border: 0px solid;padding: 0px; "@click="markerResult(item,'currentAddress')" v-for="(item,index) in poiList"
  635. :key="index">{{ item.name }}
  636. </li>
  637. </ul>
  638. </div>
  639. <!-- </a-radio-group>-->
  640. </a-form-model-item>
  641. </a-col>
  642. </a-row>
  643. <a-row>
  644. <a-col :span="24">
  645. <a-form-model-item label="智能地址研判" prop="userOpenState" :labelCol="{span:7}"
  646. :wrapperCol="{span:12}">
  647. <a-radio-group v-model="model.judgmentResearch" button-style="solid" @change="showCheck0('judgmentResearch')" :disabled="isDisabled">
  648. <a-radio value="1" style="color: red ">智能判研-异常</a-radio>
  649. <a-radio value="2">智能判研-正常</a-radio>
  650. </a-radio-group>
  651. <div v-if="judgmentResearchNull" style="color: red;margin-left: 40px">请选择地址研判</div>
  652. </a-form-model-item>
  653. </a-col>
  654. </a-row>
  655. <a-row>
  656. <a-col :span="24">
  657. <a-form-model-item label="人工地址判研" prop="userOpenState" :labelCol="{span:7}"
  658. :wrapperCol="{span:12}">
  659. <a-radio-group v-model="model.judgmentResearchAddress" button-style="solid" @change="showCheck0('judgmentResearchAddress')" :disabled="isDisabled">
  660. <a-radio value="1" style="color: red">人工判研-异常</a-radio>
  661. <a-radio value="2">人工判研-正常</a-radio>
  662. </a-radio-group>
  663. <div v-if="judgmentResearchAddressShow" style="color: red;margin-left: 40px">请选择判研结果</div>
  664. </a-form-model-item>
  665. </a-col>
  666. </a-row>
  667. </a-col>
  668. <a-col :span="9">
  669. <div>
  670. <div id="container" :style="{width: '600px', height: '300px'}"></div>
  671. </div>
  672. </a-col>
  673. </a-row>
  674. </div>
  675. </a-form-model>
  676. </div>
  677. </a-card>
  678. <a-card style="position: relative;bottom: 0;width: 100%">
  679. <div style="text-align: center">
  680. <a-button v-if=" !this.showInfo" style="margin-right: 8px" @click="terminatingOperation" :disabled="isDisabled">终止</a-button>
  681. <a-button v-if="current < steps.length - 1 && !this.showInfo" type="primary" @click="nextSteps">下一步</a-button>
  682. <a-button
  683. v-if="current == steps.length - 1 && !this.showInfo"
  684. @click="submitBusiness"
  685. type="primary" :disabled="isDisabled"
  686. >
  687. 提交
  688. </a-button>
  689. <a-button v-if="current > 0 && !this.showInfo" style="margin-left: 8px" @click="prevSteps">上一步</a-button>
  690. <a-button v-if="current==2 && this.showInfo" style="margin-left: 8px;margin-right: 8px" @click="terminatingPrevSteps">上一步</a-button>
  691. <a-button @click="continueOperation" type="primary" v-if="current==2 && this.showInfo ">
  692. 继续操作
  693. </a-button>
  694. <a-button v-if="current==2 && this.showInfo " style="margin-left: 8px" @click="terminatingOperation" :disabled="isDisabled">终止操作
  695. </a-button>
  696. </div>
  697. </a-card>
  698. </div>
  699. </template>
  700. <script>
  701. import Popup from './PopupSubTable.vue';
  702. import {httpAction, postAction, getAction} from "@api/manage";
  703. import {JeecgListMixin} from '@/mixins/JeecgListMixin'
  704. import AMapLoader from '@amap/amap-jsapi-loader'
  705. import {reactive} from 'vue';
  706. import axios from 'axios';
  707. //import registationModel from './model/registationModel.vue'
  708. window._AMapSecurityConfig = {
  709. securityJsCode: 'f762c44f71422cd56f90acc2a8e75144' //填写你的安全密钥
  710. };
  711. export default {
  712. name: "registration",
  713. inject: ['closeCurrent'],
  714. mixins: [JeecgListMixin],
  715. data() {
  716. return {
  717. array:[], //创建一个数组
  718. form:{
  719. value:[] //接收每个input框的值
  720. },
  721. riskShow:true,
  722. columns:[{ title: '证件编号', width: 180, dataIndex: 'cardNo', key: 'cardNo' },
  723. { title: '客户名称', width: 150, dataIndex: 'cardName', key: 'cardName' , scopedSlots: {customRender: 'cardName'} },
  724. { title: '年龄', width: 150, dataIndex: 'age', key: 'age' , scopedSlots: {customRender: 'age'} },
  725. { title: '证件是否在期', dataIndex: 'cardStartTimeAndEnd', key: '1', width: 150 , scopedSlots: {customRender: 'cardStartTimeAndEnd'}},
  726. { title: '创建人', dataIndex: 'createBy', key: 'createBy', width: 150 },
  727. { title: '创建日期', dataIndex: 'createTime', key: 'createTime', width: 150 },
  728. { title: '工作地址', dataIndex: 'wordAddress', key: 'wordAddress', width: 150 },
  729. { title: '营业厅地址', dataIndex: 'sysBusinessHall', key: 'sysBusinessHall', width: 150 },
  730. { title: '现住地址', dataIndex: 'currentAddress', key: 'currentAddress', width: 150 },
  731. { title: '智能地址研判', dataIndex: 'judgmentResearch', key: 'judgmentResearch' , width: 150 , scopedSlots: {customRender: 'judgmentResearch'}},
  732. { title: '人工地址判研', dataIndex: 'judgmentResearchAddress', key: 'judgmentResearchAddress', width: 150 , scopedSlots: {customRender: 'judgmentResearchAddress'}},
  733. { title: '拨测结果', dataIndex: 'calltestResults', key: 'calltestResults', width: 150 , scopedSlots: {customRender: 'calltestResults'}},
  734. { title: '拨测联系电话', dataIndex: 'phone', key: 'phone', width: 150 },
  735. { title: '一证通查结果', dataIndex: 'operator', key: 'operator', width: 150 },
  736. { title: '运营商类型', dataIndex: 'operatorType', key: 'operatorType' ,width: 150},
  737. { title: '现用号码使用用途', dataIndex: 'phonePurpose', key: 'phonePurpose',width: 150 },
  738. { title: '新办号码', dataIndex: 'newPhone', key: 'newPhone' ,width: 250},
  739. { title: '后续处理', width: 150, dataIndex: 'numberResults', key: 'numberResults', scopedSlots: {customRender: 'numberResults'}},
  740. ],
  741. columns2:[
  742. {
  743. title: '触发风险条目',
  744. dataIndex: 'name',
  745. },
  746. {
  747. title: '触发风险原因',
  748. className: 'text',
  749. dataIndex: 'text',
  750. scopedSlots: {customRender: 'text'}
  751. }
  752. ],
  753. //在详情中后期处理carf增加变更日志(默认不站开) 第一行创建人等 第二行 修改人 修改时间 修改人区局 修改人营业厅
  754. columns3:[
  755. {
  756. title: '创建人',
  757. dataIndex: 'createBy',
  758. },
  759. {
  760. title: '修改人',
  761. dataIndex: 'updateBy'
  762. },
  763. {
  764. title: '修改时间',
  765. dataIndex: 'updateTime'
  766. },
  767. {
  768. title: '修改人区局',
  769. dataIndex: 'sysCompany'
  770. },
  771. {
  772. title: '修改人营业厅',
  773. dataIndex: 'sysBusinessHall'
  774. }
  775. ],
  776. dataRisk:[],
  777. dataLog:[],
  778. showDataLog:true,
  779. open:false,
  780. disabledList:[],
  781. fetching: false,
  782. randomId: '',
  783. getSysDictItem: [],
  784. getDataSysDictItem:[],
  785. cardDateNull: false,
  786. industryNull: false,
  787. industryNullQiTa:false,
  788. operatorTypeNull: false,
  789. operatorNull: false,
  790. calltestResultsNull: false,
  791. sysBusinessHallNull: false,
  792. judgmentResearchNull: false,
  793. judgmentResearchAddressShow: false,
  794. color: {
  795. cardNoColor: 'black'
  796. },
  797. validatorRules: {},
  798. calltestResultsName: '',
  799. companyName: '',
  800. hallName: '',
  801. coordinate:'',
  802. sysCompany: [],
  803. sysBusinessHallList: "",
  804. cities: "",
  805. formValidate: {
  806. province: '',
  807. city: ''
  808. },
  809. size:1,
  810. ruleValidate: '',
  811. countryName: "",
  812. cityName: "",
  813. country: '',
  814. lnglats: [],
  815. map: null,
  816. lnglatMaps: new Map(),
  817. zoom: 18,
  818. center: [118.02, 24.48],
  819. searchOption: {
  820. // 限制搜索城市的范围
  821. citylimit: false,
  822. },
  823. optionsWithDisabled:
  824. [{
  825. text: '非高危',
  826. value: '1',
  827. }, {
  828. text: '上报关停',
  829. value: '2',
  830. }, {
  831. text: '上报蓝名单',
  832. value: '3',
  833. },{
  834. text: '上报紫名单',
  835. value: '4',
  836. }],
  837. defaultValue: "",
  838. content: "",
  839. inputValue: "",
  840. mapResultList: [],
  841. searchResult: {
  842. address: "",
  843. latitude: "",
  844. longitude: "",
  845. name: "",
  846. type: "",
  847. country: "",
  848. province: "",
  849. city: "",
  850. area: "",
  851. township: "",
  852. street: "",
  853. neighborhood: "",
  854. locationName: "",
  855. },
  856. events: {
  857. click(e) {
  858. _this.center = [e.lnglat.lng, e.lnglat.lat];
  859. _this.form.lon = e.lnglat.lng;
  860. _this.form.lat = e.lnglat.lat;
  861. _this.getAddress(_this.center);
  862. _this.defaultValue = "";
  863. },
  864. },
  865. addIng: false,
  866. url: {
  867. "querySizeByCardNo": "/businessReminderCard/querySizeByCardNo",
  868. "getSysDictItem": "/sys/dict/getDictItems",
  869. "list": "",
  870. "add": "/businessReminderCard/add",
  871. "editById": "/businessReminderCard/editById",
  872. "queryById": "/businessReminderCard/queryById",
  873. "queryByCardNo": "/businessReminderCard/queryByCardNo",
  874. "getCompany": "/sysCompany/list",
  875. "getLog": "/businessReminderCard/getBusinessReminderCardLogs",
  876. },
  877. labelCol: {span: 2},
  878. wrapperCol: {span: 23},
  879. // 1列
  880. labelCol1: {
  881. labelCol: {
  882. xs: {span: 24},
  883. sm: {span: 2},
  884. },
  885. wrapperCol: {
  886. xs: {span: 24},
  887. sm: {span: 21},
  888. }
  889. },
  890. labelCol1Pro: {
  891. labelCol: {
  892. span: 8
  893. },
  894. wrapperCol: {
  895. span: 15
  896. }
  897. },
  898. labelCol1Pro1A3: {
  899. labelCol: {
  900. span: 14
  901. },
  902. wrapperCol: {
  903. span: 10
  904. }
  905. },
  906. labelCol1ProA3: {
  907. labelCol: {
  908. span: 8
  909. },
  910. wrapperCol: {
  911. span: 15
  912. }
  913. },
  914. labelCol1Results: {
  915. labelCol: {
  916. span: 5
  917. },
  918. wrapperCol: {
  919. span: 15
  920. }
  921. },
  922. labelCol1ProMax: {
  923. labelCol: {
  924. span: 8
  925. },
  926. wrapperCol: {
  927. span: 15
  928. }
  929. }, labelCol1ProMax5A6: {
  930. labelCol: {
  931. span: 14
  932. },
  933. wrapperCol: {
  934. span: 5
  935. }
  936. },
  937. labelCol1ProMaxA6: {
  938. labelCol: {
  939. span: 14
  940. },
  941. wrapperCol: {
  942. span: 5
  943. }
  944. },
  945. labelCol1ProMax4A8: {
  946. labelCol: {
  947. span: 12
  948. },
  949. wrapperCol: {
  950. span: 5
  951. }
  952. }, labelCol1ProMaxA8: {
  953. labelCol: {
  954. span: 13
  955. },
  956. wrapperCol: {
  957. span: 5
  958. }
  959. },
  960. labelCol1ProMax2A7: {
  961. labelCol: {
  962. span: 11
  963. },
  964. wrapperCol: {
  965. span: 5
  966. }
  967. },
  968. labelCol1ProMaxPlus: {
  969. labelCol: {
  970. span: 12
  971. },
  972. wrapperCol: {
  973. span: 12
  974. }
  975. },
  976. // 2列
  977. labelCol2: {
  978. labelCol: {
  979. span: 7
  980. },
  981. wrapperCol: {
  982. span: 16
  983. }
  984. }, labelColDate: {
  985. labelCol: {
  986. span: 7
  987. },
  988. wrapperCol: {
  989. span: 14
  990. }
  991. },
  992. addressCol: {
  993. labelCol: {
  994. span: 8
  995. },
  996. wrapperCol: {
  997. span: 16
  998. }
  999. },
  1000. //校验的规则
  1001. rules: {
  1002. cardNo: [
  1003. {required: true, message: '请输入证件号码!'},
  1004. {validator: this.validateCardNo}
  1005. ],
  1006. cardName: [{
  1007. required: true, message: '请输姓名!'
  1008. }],
  1009. cardDate: [
  1010. {required: true, message: '请输入身份证证件有效期...'}
  1011. ],
  1012. phone: [
  1013. {required: true, message: '请输入电话!', trigger: 'blur'}, {validator: this.isPhone}
  1014. ],
  1015. modelAddress: [
  1016. {required: true, message: '请输入联电归属地!', trigger: 'blur'}
  1017. ],
  1018. operatorType: [
  1019. {
  1020. required: true,
  1021. message: '请选择运营商类型',
  1022. trigger: 'blur'
  1023. }
  1024. ],
  1025. phonePurpose: [
  1026. {
  1027. required: true,
  1028. message: '请选择新办号码用途',
  1029. trigger: 'blur'
  1030. }
  1031. ],
  1032. industry: [
  1033. {
  1034. required: true,
  1035. message: '',
  1036. trigger: 'blur'
  1037. }
  1038. ],
  1039. modelOperator: [
  1040. {
  1041. required: true,
  1042. message: '请选择客户现用号码!',
  1043. trigger: 'blur'
  1044. }
  1045. ],
  1046. calltestResultsName: [
  1047. {
  1048. required: true,
  1049. message: '请选择拨测结果!',
  1050. trigger: 'blur'
  1051. }
  1052. ],
  1053. sysBusinessHallAndSysCompany: [
  1054. {
  1055. required: true,
  1056. message: '请选择营业厅地址!',
  1057. trigger: 'blur'
  1058. }
  1059. ],
  1060. workAddress: [
  1061. {
  1062. required: true,
  1063. message: '请输入工作地址!',
  1064. trigger: 'blur'
  1065. }
  1066. ],
  1067. currentAddress: [
  1068. {
  1069. required: true,
  1070. message: '请输入现居住地址!',
  1071. trigger: 'blur'
  1072. }
  1073. ],
  1074. isDxNumber: [
  1075. {
  1076. required: true,
  1077. message: '请选择客户名下无电信号码!',
  1078. trigger: 'blur'
  1079. }
  1080. ],
  1081. judgmentResearch: [
  1082. {
  1083. required: true,
  1084. message: '请选择判研结果结果!',
  1085. trigger: 'blur'
  1086. }
  1087. ]
  1088. },
  1089. poiList: '',
  1090. isSizeNumberResults: '',
  1091. showsearchResult: false,
  1092. showsearchResultBusinessAddress: true,
  1093. showsearchcurrentAddress: false,
  1094. numberResults: false,
  1095. addressG: '',
  1096. lnglat: {},
  1097. distance: '20',
  1098. distance1: '',
  1099. distance2: '',
  1100. distance3: '',
  1101. showInfo: false,
  1102. newDatas: [],
  1103. cardStartTimeAndEnd: '',
  1104. cardStartTimeAndEndShow: false,
  1105. industryQiTa:'',
  1106. isDisabled:false,
  1107. spin:false,
  1108. showIdCardAddress:false,
  1109. //表单信息
  1110. model: {
  1111. cardStartTimeAndEnd: '',
  1112. value: 0,
  1113. sysBusinessHall: '',
  1114. company: '',
  1115. industry: '',
  1116. judgmentResearch: '',
  1117. judgmentResearchAddress: '',
  1118. isShutDownNote: '',
  1119. isShutDown: '',
  1120. isRefundNote: '',
  1121. isRefund: '',
  1122. isUseToNote: '',
  1123. isUseTo: '',
  1124. isBroadbandNote: '',
  1125. isBroadband: '',
  1126. isDxNumberNote: '',
  1127. isDxNumber: '',
  1128. //客户直接要求办理移动号码入网
  1129. directRequirements:'',
  1130. directRequirementsNode:'',
  1131. //客户主动申请一次性办理超过一个号码
  1132. passOne:'',
  1133. passOneNode:'',
  1134. //所办金额不符合客户消费能力
  1135. nonConformance:'',
  1136. nonConformanceNode:'',
  1137. calltestResults: '',
  1138. operatorType: '',
  1139. yidong: 0,
  1140. liantong: 0,
  1141. dianxin: 0,
  1142. qita: 0,
  1143. operator: '',
  1144. currentAddress: '',
  1145. phonePurpose: '',
  1146. useLife: '',
  1147. address: '',
  1148. isNewly: '',
  1149. isNewlyNote: '',
  1150. isChannel: '',
  1151. isChannelNote: '',
  1152. isInvolvingFraud: '',
  1153. isInvolvingFraudNote: '',
  1154. numberResults: [],
  1155. id: null,
  1156. phone: null,
  1157. cardNo: '',
  1158. cardName: '',
  1159. cardStartTime: '',
  1160. cardEndTime: '',
  1161. idCardAddress: '',
  1162. wordAddress: '',
  1163. positionInformation: '',
  1164. businessAddress: '',
  1165. newPhone: '',
  1166. newPhone2: '',
  1167. newPhone3: '',
  1168. newPhone4: '',
  1169. newPhone5: ''
  1170. },
  1171. dataList:[],
  1172. current: 0,
  1173. //步骤条
  1174. steps: [
  1175. {
  1176. title: '入网提示卡',
  1177. content: 'First-content',
  1178. },
  1179. {
  1180. title: '排查',
  1181. content: 'First-content',
  1182. },
  1183. {
  1184. title: '后期处理',
  1185. content: 'First-content',
  1186. },
  1187. ],
  1188. }
  1189. },
  1190. created() {
  1191. this.getSysCompany();
  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){
  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. if (age>=60){
  1247. age=age+'岁(老年人)'
  1248. }
  1249. if (age<=23){
  1250. age=age+'岁(在校生)'
  1251. }
  1252. this.dataList[i].age=age;
  1253. }
  1254. }
  1255. if (result[i].sysBusinessHall!==null &&result[i].sysBusinessHall!=='' ){
  1256. for (var item of this.sysCompany) {
  1257. if (item.id === this.model.company) {
  1258. this.companyName = item.name;
  1259. for (var it of item.sysBusinessHallList) {
  1260. if (it.id === this.model.sysBusinessHall) {
  1261. this.dataList[i].sysBusinessHall= this.companyName+ this.hallName
  1262. }
  1263. }
  1264. }
  1265. }
  1266. }
  1267. //智能地址研判
  1268. if (result[i].judgmentResearch!==null && result[i].judgmentResearch!==''){
  1269. if (result[i].judgmentResearch==="1"){
  1270. this.dataList[i].judgmentResearch='异常'
  1271. }
  1272. if (result[i].judgmentResearch==="2"){
  1273. this.dataList[i].judgmentResearch='正常'
  1274. }
  1275. }
  1276. //人工地址判研
  1277. if (result[i].judgmentResearchAddress!==null && result[i].judgmentResearchAddress!==''){
  1278. if (result[i].judgmentResearchAddress==="1"){
  1279. this.dataList[i].judgmentResearchAddress='异常'
  1280. }
  1281. if (result[i].judgmentResearchAddress==="2"){
  1282. this.dataList[i].judgmentResearchAddress='正常'
  1283. }
  1284. }
  1285. //拨测结果
  1286. if (result[i].calltestResults!==null && result[i].calltestResults!==''){
  1287. if (result[i].calltestResults==="1"){
  1288. this.dataList[i].calltestResults='关机'
  1289. }
  1290. if (result[i].calltestResults==="2"){
  1291. this.dataList[i].calltestResults='未接通'
  1292. }
  1293. if (result[i].calltestResults==="3"){
  1294. this.dataList[i].calltestResults='可接通不知晓入网事宜'
  1295. }
  1296. if (result[i].calltestResults==="4"){
  1297. this.dataList[i].calltestResults='可接通认可办理'
  1298. }
  1299. }
  1300. //运营商
  1301. if (result[i].operatorType!==null && result[i].operatorType!==''){
  1302. if (result[i].operatorType==="1"){
  1303. this.dataList[i].operatorType='移动'
  1304. }
  1305. if (result[i].operatorType==="2"){
  1306. this.dataList[i].operatorType='联调'
  1307. }if (result[i].operatorType==="3"){
  1308. this.dataList[i].operatorType='电信'
  1309. }if (result[i].operatorType==="4"){
  1310. this.dataList[i].operatorType='其它'
  1311. }
  1312. }
  1313. //一证通查结果
  1314. if (result[i].operator!==null && result[i].operator!==''){
  1315. if (result[i].operator==="1"){
  1316. this.dataList[i].operator='本地运营商'
  1317. }
  1318. if (result[i].operator==="2"){
  1319. this.dataList[i].operator='异地运营商'
  1320. }
  1321. }
  1322. let newPhonesStr='';
  1323. for (var item of newPhones) {
  1324. newPhonesStr+=item+' '
  1325. }
  1326. result[i].newPhone=newPhonesStr;
  1327. if (result[i].numberResults!==null && result[i].numberResults!==''){
  1328. var numberResultsList = result[i]["numberResults"].split(',');
  1329. var numberResultsListStr ='';
  1330. for (var item of numberResultsList) {
  1331. if (item==='1'){
  1332. numberResultsListStr=numberResultsListStr+'非高危'
  1333. }
  1334. if (item==='2'){
  1335. numberResultsListStr=numberResultsListStr+'上报关停'
  1336. }
  1337. if (item==='3'){
  1338. numberResultsListStr=numberResultsListStr+'上报蓝名单 '
  1339. }
  1340. if (item==='4'){
  1341. numberResultsListStr=numberResultsListStr+' 上报紫名单'
  1342. }
  1343. }
  1344. result[i].numberResults=numberResultsListStr
  1345. }
  1346. }
  1347. },
  1348. showModal(){
  1349. this.open = true;
  1350. },
  1351. handleOk(){
  1352. this.open = false;
  1353. },
  1354. modalFormOk2() {
  1355. // 新增/修改 成功时,重载列表
  1356. this.loadData2()
  1357. },
  1358. handleEdit2 (record) {
  1359. this.$refs.registationModel.edit(record)
  1360. this.$refs.registationModel.title = "新增";
  1361. this.$refs.registationModel.disableSubmit = false;
  1362. },
  1363. // 复选框禁用
  1364. checkboxT(row, index) {
  1365. //setTimeout(()=>console.log())
  1366. if (row==="1"){
  1367. this.disabledList.push("2");
  1368. this.disabledList.push("3");
  1369. this.disabledList.push("4");
  1370. }
  1371. if (row==="2"){
  1372. this.disabledList.push("1");
  1373. this.disabledList.push("3");
  1374. this.disabledList.push("4");
  1375. }
  1376. if (row==="3" ){
  1377. this.disabledList.push("1");
  1378. this.disabledList.push("2");
  1379. }
  1380. if (row==="4" ){
  1381. this.disabledList.push("1");
  1382. this.disabledList.push("2");
  1383. }
  1384. for (let i = 0; i < this.model.numberResults.length; i++){
  1385. if (row=== this.model.numberResults[i]){
  1386. //在取消选择
  1387. if (this.model.numberResults.length===1){
  1388. this.disabledList=[];
  1389. }
  1390. }
  1391. }
  1392. },
  1393. disabledListAdd() {
  1394. if (!this.isDisabled) {
  1395. for (let i = 0; i < this.model.numberResults.length; i++) {
  1396. if (this.model.numberResults[i]==="1"){
  1397. this.disabledList.push("2");
  1398. this.disabledList.push("3");
  1399. this.disabledList.push("4");
  1400. }
  1401. if (this.model.numberResults[i]==="2"){
  1402. this.disabledList.push("1");
  1403. this.disabledList.push("3");
  1404. this.disabledList.push("4");
  1405. }
  1406. if (this.model.numberResults[i]==="3" ){
  1407. this.disabledList.push("1");
  1408. this.disabledList.push("2");
  1409. }
  1410. if (this.model.numberResults[i]==="4" ){
  1411. this.disabledList.push("1");
  1412. this.disabledList.push("2");
  1413. }
  1414. }
  1415. }
  1416. if(this.isDisabled){
  1417. this.disabledList.push("1");
  1418. this.disabledList.push("2");
  1419. this.disabledList.push("3");
  1420. this.disabledList.push("4");
  1421. }
  1422. },
  1423. // 特定范围随机数
  1424. genRandom(min, max) {
  1425. return (Math.random() * (max - min + 1) | 0) + min
  1426. },
  1427. clickhandleSearch(data){
  1428. // this.model.industry=data;
  1429. if (data!==null && data!==''){
  1430. this.industryNull=false;
  1431. }
  1432. if (data==='其它'){
  1433. this.industryNullQiTa=true
  1434. this.industryNull=true;
  1435. }else{
  1436. this.industryNullQiTa=false
  1437. }
  1438. },
  1439. handleSearch(val) {
  1440. this.fetching = false
  1441. this.getDataSysDictItem=this.getSysDictItem;
  1442. var getDataSysDictItem =[]
  1443. if (val !== '') {
  1444. for (var i in this.getDataSysDictItem) {
  1445. if (this.getDataSysDictItem[i].text.match(RegExp(val))){
  1446. getDataSysDictItem.push(this.getDataSysDictItem[i])
  1447. }
  1448. }
  1449. this.getDataSysDictItem =getDataSysDictItem
  1450. }
  1451. },
  1452. handleSelect(val, option) {
  1453. console.log(val, option, 1000)
  1454. },
  1455. // 显示上传页面
  1456. handSubmit(record) {
  1457. let that = this;
  1458. let model = {
  1459. id: record.id,
  1460. }
  1461. postAction(this.url.editCheck, model)
  1462. .then((res) => {
  1463. if (res.success) {
  1464. that.$message.success(res.message)
  1465. that.loadData(that.ipagination.current);
  1466. } else {
  1467. that.$message.warning(res.message)
  1468. }
  1469. }).finally(() => {
  1470. })
  1471. },
  1472. //查询字典表
  1473. getSysDictItems() {
  1474. getAction(this.url.getSysDictItem + '/sys_dict_item,item_text,item_text,dict_id="1689217057012424706"').then((res) => {
  1475. if (res.success) {
  1476. let result = res.result;
  1477. if (result != null) {
  1478. this.getSysDictItem = result;
  1479. this.getDataSysDictItem=result;
  1480. }
  1481. }
  1482. })
  1483. },
  1484. validateMobile(rule, value, callback) {
  1485. let reg = /^1(3|4|5|7|8)\d{9}$/
  1486. if (!reg.test(value)) {
  1487. callback('请输入正确手机号')
  1488. } else {
  1489. callback()
  1490. }
  1491. },
  1492. // 校验身份证
  1493. validateCardNo(rule,value,callback){
  1494. if(value.length ===16 || value.length ===18){
  1495. 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)) {
  1496. // 若是将证件地址改为必输
  1497. this.showIdCardAddress=true;
  1498. callback();
  1499. } else {
  1500. this.showIdCardAddress=false;
  1501. callback("您的身份证格式不正确!");
  1502. }
  1503. }
  1504. },
  1505. //校验姓名
  1506. validateName(rule,value,callback){
  1507. 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)) {
  1508. callback();
  1509. } else {
  1510. callback("您的身份证格式不正确!");
  1511. }
  1512. },
  1513. isPhone(rule,value,callback){
  1514. 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)){
  1515. callback();
  1516. }else{
  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. } else {
  1817. this.model.judgmentResearch = "2";
  1818. }
  1819. }
  1820. },
  1821. // 获取详细地址
  1822. getAddress(center) {
  1823. let _this = this;
  1824. let geocoder = new AMap.Geocoder({});
  1825. geocoder.getAddress(center, function (status, result) {
  1826. if (status === "complete" && result.info === "OK") {
  1827. let obj = result.regeocode.addressComponent;
  1828. let locationName =
  1829. obj.province +
  1830. obj.city +
  1831. obj.district +
  1832. obj.township +
  1833. obj.street +
  1834. obj.streetNumber;
  1835. _this.form.address = locationName;
  1836. }
  1837. });
  1838. },
  1839. initMap() {
  1840. AMapLoader.load({
  1841. // key: "8e513e3c374bdb2dd0095cd337b02ee6" 密钥 f762c44f71422cd56f90acc2a8e75144
  1842. // key : 3f95d73e380b9e4a2767c306a4b59f81 密钥 c4ab681cb7c3256184ae3557dc5beabb
  1843. key: "8e513e3c374bdb2dd0095cd337b02ee6", // 申请好的Web端开发者Key,首次调用 load 时必填
  1844. version: "2.0", // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
  1845. plugins: [
  1846. 'AMap.ToolBar',
  1847. 'AMap.Scale',
  1848. 'AMap.Geolocation',
  1849. 'AMap.PlaceSearch',
  1850. 'AMap.AutoComplete',
  1851. 'AMap.Geocoder',
  1852. 'AMap.CitySearch',
  1853. 'AMap.RangingTool' // 这个就是测距插件
  1854. ],
  1855. resizeEnable: true,
  1856. }).then((AMap) => {
  1857. const that = this;
  1858. that.map = new AMap.Map("container", { //设置地图容器id
  1859. viewMode: "3D", //是否为3D地图模式
  1860. zoom: 12, //初始化地图级别
  1861. });
  1862. that.handleClick(AMap)//地图选点
  1863. that.map.addControl(new AMap.Scale()) // 在图面添加比例尺控件,展示地图在当前层级和纬度下的比例尺
  1864. that.map.addControl(new AMap.ToolBar()) //在图面添加鹰眼控件,在地图右下角显示地图的缩略图
  1865. that.geocoder = new AMap.Geocoder()
  1866. that.mapSearchInit()
  1867. }).catch(e => {
  1868. console.log(e);
  1869. })
  1870. },
  1871. //点击地图获取地理位置
  1872. handleClick() {
  1873. this.map.on('click', (e) => {
  1874. let lng = e.lnglat.lng
  1875. let lat = e.lnglat.lat
  1876. let marker = new AMap.Marker({
  1877. position: new AMap.LngLat(lng, lat)
  1878. })
  1879. this.map.clearMap()// 清除所有覆盖物(点标志)
  1880. this.map.add(marker)// 添加点标志
  1881. let lnglat = [lng, lat]
  1882. let that = this
  1883. that.geocoder.getAddress(lnglat, function (status, result) {
  1884. if (status === 'complete' && result.regeocode) {
  1885. that.address = result.regeocode.formattedAddress;
  1886. that.showInfoWindow(marker);//自定义信息窗体
  1887. let thisPosition = {
  1888. address: that.address,
  1889. lng: lng,
  1890. lat: lat
  1891. };
  1892. that.$emit("select", thisPosition) //返回给父组件
  1893. } else {
  1894. this.$message.error('根据经纬度查询地址失败')
  1895. }
  1896. })
  1897. })
  1898. },
  1899. //获取当前定位
  1900. getCurrentLocation() {
  1901. const that = this;
  1902. that.geolocation = new AMap.Geolocation({
  1903. timeout: 3000, //超过3秒后停止定位,默认:5s
  1904. enableHighAccuracy: true,
  1905. zoomToAccuracy: true, //定位成功后是否自动调整地图视野到定位点
  1906. });
  1907. that.geolocation.getCurrentPosition(function (status, result) {
  1908. //备注:getCurrentPosition方法会调用超时或失败:
  1909. //Get geolocation time out:浏览器定位超时,包括原生的超时,可以适当增加超时属性的设定值以减少这一现象。
  1910. //另外还有个别浏览器(如google Chrome浏览器等)本身的定位接口是黑洞,通过其请求定位完全没有回应,也会超时返回失败。
  1911. //Get geolocation failed:定位失败,Chrome、火狐以及部分套壳浏览器接入的定位服务在国外,有较大限制,失败率高。
  1912. console.log(status, result);
  1913. if (status == 'complete') {
  1914. that.onComplete(result)
  1915. } else {
  1916. that.onError(result) //失败后可使用getCityInfo获取非精准定位(具体到省市)
  1917. }
  1918. });
  1919. },
  1920. //解析定位结果
  1921. onComplete(data) {
  1922. console.log('定位结果:' + data.position) //经纬度信息
  1923. let lnglat = data.position;
  1924. let marker = new AMap.Marker({ //创建标记
  1925. position: new AMap.LngLat(lnglat[0], lnglat[1])
  1926. })
  1927. this.map.clearMap()// 清除所有覆盖物(点标志)
  1928. this.map.add(marker)// 添加点标志
  1929. let that = this
  1930. //经纬度转换为中文地址详情
  1931. that.geocoder.getAddress(lnglat, function (status, result) {
  1932. if (status === 'complete' && result.regeocode) {
  1933. that.address = result.regeocode.formattedAddress;
  1934. that.showInfoWindow(marker);//自定义信息窗体
  1935. } else {
  1936. this.$message.error('根据经纬度查询地址失败')
  1937. }
  1938. })
  1939. },
  1940. //解析定位错误信息
  1941. onError(data) {
  1942. this.getLngLatLocation()
  1943. },
  1944. //在获取具体定位失败时调用的代码:(非精准定位!!!)
  1945. getLngLatLocation() {
  1946. const that = this;
  1947. that.geolocation.getCityInfo(function (status, result) {
  1948. if (status === 'complete') {
  1949. let data = result.position
  1950. that.address = result.province + result.city;
  1951. that.showLocation(data)
  1952. } else {
  1953. this.$message.error('获取地址失败')
  1954. }
  1955. })
  1956. },
  1957. keyupInfoSelect() {
  1958. if (this.model.cardNo === '' ||this.model.cardNo===undefined ) {
  1959. return;
  1960. }
  1961. this.closeCurrent();
  1962. this.$router.push({path: '/network/PopupSub', query: {cardNo: this.model.cardNo}});
  1963. },
  1964. keyupInfoPhone(phone) {
  1965. let data = {
  1966. "number": phone
  1967. };
  1968. if (phone.length === 11) {
  1969. let data = {
  1970. "mobile": phone
  1971. };
  1972. getAction("businessReminderCard/queryByMobile", data).then((res) => {
  1973. console.log(res)
  1974. if (res != null) {
  1975. this.model.address = res;
  1976. }
  1977. })
  1978. }
  1979. },
  1980. onCance () {
  1981. var view =this.model;
  1982. Object.keys(view).forEach(function (key) {
  1983. view[key] = ''
  1984. });
  1985. this.industryQiTa='';
  1986. },
  1987. keyupInfo(info) {
  1988. let data = {
  1989. "cardNo": this.model.cardNo
  1990. };
  1991. getAction(this.url.getCompany, data).then((res) => {
  1992. if (res.success) {
  1993. let result = res.result;
  1994. console.log(result + "result");
  1995. if (result != null) {
  1996. this.sysCompany = result;
  1997. }
  1998. this.spin=true ;
  1999. // this.handleEdit2()
  2000. //身份证输入查询
  2001. if (this.model.cardNo.length === 15 || this.model.cardNo.length === 18) {
  2002. let that = this;
  2003. let data = {
  2004. "cardNo": this.model.cardNo,
  2005. "id": this.model.id
  2006. }
  2007. var newPhones;
  2008. //this.getSysCompany();
  2009. getAction(that.url.queryByCardNo, data).then((res) => {
  2010. if (res.success) {
  2011. let result = res.result;
  2012. let view = this.model;
  2013. if (result != null) {
  2014. var i=0;
  2015. Object.keys(view).forEach(function (key) {
  2016. if (key==='company'){
  2017. that.change(result[0][key]);
  2018. }
  2019. view[key] = result[0][key];
  2020. if (key==='newPhone'){
  2021. if ( result[0][key]!==null && result[0][key]!==''){
  2022. newPhones = result[0][key].split(',');
  2023. }
  2024. }
  2025. if (key==='industry'){
  2026. var a=0;
  2027. for (var s in that.getDataSysDictItem) {
  2028. if (that.getDataSysDictItem[s].text.match(RegExp(result[0][key]))){
  2029. a++;
  2030. }
  2031. }
  2032. if (a===0){
  2033. view.industry='其它';
  2034. that.industryQiTa= result[0][key];
  2035. that.industryNullQiTa=true;
  2036. }
  2037. }
  2038. })
  2039. for (var item of newPhones) {
  2040. this.form.value.push(item)
  2041. this.array.push(1)
  2042. }
  2043. for (var item of this.sysCompany) {
  2044. if (item.id === this.model.company) {
  2045. this.companyName = item.name;
  2046. this.change(item.id);
  2047. for (var it of item.sysBusinessHallList) {
  2048. if (it.id === this.model.sysBusinessHall) {
  2049. this.hallName = it.name;
  2050. this.coordinate=it.coordinate;
  2051. this.model.sysBusinessHall=it.id
  2052. }
  2053. }
  2054. }
  2055. }
  2056. this.isSizeNumberResults = result[0]["isSizeNumberResults"];
  2057. if (this.model.wordAddress!=='' && this.model.wordAddress!==null){
  2058. this.searchKeyWordsysBusinessHall(this.model.wordAddress,'wordAddress');
  2059. }
  2060. if (this.hallName!=='' && this.hallName!==null){
  2061. this.searchKeyWordsysBusinessHall('中国电信'+this.hallName+'coordinate'+ this.coordinate,'businessAddress');
  2062. }
  2063. if (this.model.currentAddress!=='' && this.model.currentAddress!==null){
  2064. this.searchKeyWordsysBusinessHall(this.model.currentAddress,'currentAddress');
  2065. }
  2066. if (info===''){
  2067. this.model.id=null;
  2068. }
  2069. this.dataList=result;
  2070. if (info===''){
  2071. this.resultData(result,newPhones);
  2072. this.showModal()
  2073. }
  2074. this.disabledListAdd()
  2075. this.showCheck0('all');
  2076. // if (result[0]["isSizeNumberResults"] === 'is') {
  2077. // this.$confirm({
  2078. // title: "确认是否继续...",
  2079. // content: '该用户有多个不友好研判结果',
  2080. // onOk: function () {
  2081. //
  2082. // },
  2083. // onCancel: function () {
  2084. // Object.keys(view).forEach(function (key) {
  2085. // view[key] = '';
  2086. // })
  2087. // }
  2088. // });
  2089. // }
  2090. }
  2091. // this.$refs.modalDetail.detail( );
  2092. // this.$refs.modalDetail.title = "详情";
  2093. }
  2094. })
  2095. }
  2096. this.spin=false ;
  2097. }
  2098. })
  2099. },
  2100. /**获取详情*/
  2101. queryById() {
  2102. this.model.id = this.$route.query.id;
  2103. this.model.cardNo = this.$route.query.cardNo;
  2104. if ( this.$route.query.isDisabled!=null && this.$route.query.isDisabled==='true' ){
  2105. this.isDisabled = true;
  2106. }
  2107. this.change(this.model.company)
  2108. this.keyupInfo('update');
  2109. //查询日志
  2110. let data = {
  2111. "businessReminderCardId": this.model.id
  2112. };
  2113. getAction(this.url.getLog, data).then((res) => {
  2114. if (res.success) {
  2115. this.dataLog=res.result
  2116. if (this.dataLog.length===0){
  2117. this.showDataLog=false
  2118. }
  2119. }
  2120. })
  2121. this.change(this.model.company)
  2122. },
  2123. showCheck0(data){
  2124. var info = true;
  2125. if (data==='all' || data==='cardNo'){ if (this.model.cardNo==='' || this.model.cardNo===null){
  2126. document.getElementById('cardNo').style.borderColor = "red";
  2127. info=false;
  2128. }else {
  2129. document.getElementById('cardNo').style.borderColor = "#d9d9d9";
  2130. } }
  2131. if (data==='all' || data==='idCardAddress') {
  2132. if (this.model.idCardAddress === '' || this.model.idCardAddress === null) {
  2133. if (this.showIdCardAddress) {
  2134. if (this.model.idCardAddress === '' || this.model.idCardAddress === null) {
  2135. document.getElementById('idCardAddress').style.borderColor = "red";
  2136. info = false;
  2137. } else {
  2138. document.getElementById('idCardAddress').style.borderColor = "#d9d9d9";
  2139. }
  2140. }
  2141. }
  2142. }
  2143. if (data==='all' || data==="cardName"){ if (this.model.cardName==='' || this.model.cardName===null){
  2144. document.getElementById('cardName').style.borderColor = "red";
  2145. info=false;
  2146. }else {
  2147. document.getElementById('cardName').style.borderColor = "#d9d9d9";
  2148. }}
  2149. if (data==='all' || data==="phone"){ if (this.model.phone==='' || this.model.phone===null){
  2150. document.getElementById('phone').style.borderColor = "red";
  2151. info=false;
  2152. }else {
  2153. document.getElementById('phone').style.borderColor = "#d9d9d9";
  2154. } }
  2155. if (data==='all' || data==="address"){ if (this.model.address===''|| this.model.address===null){
  2156. document.getElementById('address').style.borderColor = "red";
  2157. info=false;
  2158. }else {
  2159. document.getElementById('address').style.borderColor = "#d9d9d9";
  2160. } }
  2161. if (data==='all' || data==="phonePurpose"){ if (this.model.phonePurpose==='' || this.model.phonePurpose===null){
  2162. document.getElementById('phonePurpose').style.borderColor = "red";
  2163. info=false;
  2164. }else {
  2165. document.getElementById('phonePurpose').style.borderColor = "#d9d9d9";
  2166. } }
  2167. if (data==='all' || data==="industry"){ if (this.model.industry==='' || this.model.industry===null){
  2168. this.industryNull=true
  2169. info=false;
  2170. }else {
  2171. this.industryNull=false
  2172. }}
  2173. if (this.model.industry==='' || this.model.industry===null || this.model.industry==='其它'){
  2174. {
  2175. if (data === 'all' || data === "industryQiTa") {
  2176. if (this.industryQiTa === '' || this.industryQiTa === null) {
  2177. this.industryNull = true
  2178. info = false;
  2179. } else {
  2180. this.industryNull = false
  2181. }
  2182. }
  2183. }
  2184. }
  2185. if (data==='all' || data==="wordAddress"){ if (this.model.wordAddress===''|| this.model.wordAddress===null){
  2186. document.getElementById('wordAddress').style.borderColor = "red";
  2187. info=false;
  2188. }else {
  2189. document.getElementById('wordAddress').style.borderColor = "#d9d9d9";
  2190. }}
  2191. if (data==='all' || data==="currentAddress"){ if (this.model.currentAddress===''|| this.model.currentAddress===null){
  2192. document.getElementById('currentAddress').style.borderColor = "red";
  2193. info=false;
  2194. }else {
  2195. document.getElementById('currentAddress').style.borderColor = "#d9d9d9";
  2196. }}
  2197. if (data==='all' || data==="calltestResults"){ if (this.model.calltestResults===''|| this.model.calltestResults===null){
  2198. this.calltestResultsNull=true;
  2199. info=false;
  2200. }else {
  2201. this.calltestResultsNull=false;
  2202. } }
  2203. if (data==='all' || data==="judgmentResearchAddress"){ if (this.model.judgmentResearchAddress===''|| this.model.judgmentResearchAddress===null){
  2204. this.judgmentResearchAddressShow=true;
  2205. info=false;
  2206. }else {
  2207. this.judgmentResearchAddressShow=false;
  2208. } }
  2209. if (data==='all' || data==="cardStartTimeAndEnd"){ if (this.model.cardStartTimeAndEnd===''|| this.model.cardStartTimeAndEnd===null){
  2210. this.cardStartTimeAndEndShow=true;
  2211. info=false;
  2212. }else {
  2213. this.cardStartTimeAndEndShow=false;
  2214. } }
  2215. // if (data==='all' || data==="judgmentResearch"){
  2216. // if (this.model.judgmentResearch===''|| this.model.judgmentResearch===null){
  2217. // this.judgmentResearchNull=true;
  2218. // info=false;
  2219. // }else {
  2220. // this.judgmentResearchNull=false;
  2221. // }
  2222. // }
  2223. // if (data==='all' || data==="operator"){ if (this.model.operator==='' || this.model.operator===null){
  2224. // this.operatorNull=true;
  2225. // info=false;
  2226. // }else {
  2227. // this.operatorNull=false;
  2228. // }
  2229. // }
  2230. if (data==='all' || data==="company"||data==='all' || data==="operatorType" ){
  2231. if (this.model.operatorType==='' || this.model.operatorType===null){
  2232. this.operatorTypeNull=true;
  2233. info=false;
  2234. }else {
  2235. this.operatorTypeNull=false;
  2236. }
  2237. }
  2238. if (data==='all' || data==="sysBusinessHall"){ if (this.model.sysBusinessHall==='' ||this.model.sysBusinessHall===null){
  2239. this.sysBusinessHallNull=true;
  2240. info=false;
  2241. }else {
  2242. this.sysBusinessHallNull=false;
  2243. } }
  2244. return info;
  2245. },
  2246. showCheck1(data){
  2247. var info =true;
  2248. if (data==='isInvolvingFraud' || data==='all'){
  2249. if (this.model.isInvolvingFraud==='' || this.model.isInvolvingFraud===null){
  2250. document.getElementById('isInvolvingFraud').style.color = "red";
  2251. info=false;
  2252. }else {
  2253. document.getElementById('isInvolvingFraud').style.color = "black";
  2254. }
  2255. }
  2256. if (data==='directRequirements' || data==='all'){
  2257. if (this.model.directRequirements==='' || this.model.directRequirements===null){
  2258. document.getElementById('directRequirements').style.color = "red";
  2259. info=false;
  2260. }else {
  2261. document.getElementById('directRequirements').style.color = "black";
  2262. }
  2263. }
  2264. if (data==='passOne' || data==='all'){
  2265. if (this.model.passOne==='' || this.model.passOne===null){
  2266. document.getElementById('passOne').style.color = "red";
  2267. info=false;
  2268. }else {
  2269. document.getElementById('passOne').style.color = "black";
  2270. }
  2271. }
  2272. if (data==='nonConformance' || data==='all'){
  2273. if (this.model.nonConformance==='' || this.model.nonConformance===null){
  2274. document.getElementById('nonConformance').style.color = "red";
  2275. info=false;
  2276. }else {
  2277. document.getElementById('nonConformance').style.color = "black";
  2278. }
  2279. }
  2280. if (data==='isChannel' || data==='all'){
  2281. if (this.model.isChannel==='' || this.model.isChannel===null){
  2282. document.getElementById('isChannel').style.color = "red";
  2283. info=false;
  2284. }else {
  2285. document.getElementById('isChannel').style.color = "black";
  2286. }
  2287. }
  2288. if (data==='isNewly' || data==='all'){
  2289. if (this.model.isNewly==='' || this.model.isNewly===null){
  2290. document.getElementById('isNewly').style.color = "red";
  2291. info=false;
  2292. }else {
  2293. document.getElementById('isNewly').style.color = "black";
  2294. }
  2295. }
  2296. if (data==='isShutDown' || data==='all'){
  2297. if (this.model.isShutDown==='' || this.model.isShutDown===null){
  2298. document.getElementById('isShutDown').style.color = "red";
  2299. info=false;
  2300. }else {
  2301. document.getElementById('isShutDown').style.color = "black";
  2302. }
  2303. }
  2304. if (data==='isRefund' || data==='all'){
  2305. if (this.model.isRefund==='' || this.model.isRefund===null){
  2306. document.getElementById('isRefund').style.color = "red";
  2307. info=false;
  2308. }else {
  2309. document.getElementById('isRefund').style.color = "black";
  2310. }
  2311. }
  2312. if (data==='isUseTo' || data==='all'){
  2313. if (this.model.isUseTo==='' || this.model.isUseTo===null){
  2314. document.getElementById('isUseTo').style.color = "red";
  2315. info=false;
  2316. }else {
  2317. document.getElementById('isUseTo').style.color = "black";
  2318. }
  2319. }
  2320. if (data==='isBroadband' || data==='all'){
  2321. if (this.model.isBroadband==='' || this.model.isBroadband===null){
  2322. document.getElementById('isBroadband').style.color = "red";
  2323. info=false;
  2324. }else {
  2325. document.getElementById('isBroadband').style.color = "black";
  2326. }
  2327. }
  2328. if (data==='isDxNumber' || data==='all'){
  2329. if (this.model.isDxNumber==='' || this.model.isDxNumber===null){
  2330. document.getElementById('isDxNumber').style.color = "red";
  2331. info=false;
  2332. }else {
  2333. document.getElementById('isDxNumber').style.color = "black";
  2334. }
  2335. }
  2336. return info;
  2337. },
  2338. getDataRisk(data){
  2339. this.dataList=[];
  2340. var getDataList=this.dataList;
  2341. var dataLists =[];
  2342. dataLists.push(data);
  2343. if(dataLists[0].cardStartTimeAndEnd!==null && dataLists[0].cardStartTimeAndEnd!==''){
  2344. if (dataLists[0].cardStartTimeAndEnd==="1"){
  2345. dataLists[0].cardStartTimeAndEnd='是'
  2346. }
  2347. if (dataLists[0].cardStartTimeAndEnd==="2"){
  2348. dataLists[0].cardStartTimeAndEnd='否'
  2349. }
  2350. }
  2351. if (dataLists[0].sysBusinessHall!==null &&dataLists[0].sysBusinessHall!=='' ){
  2352. for (var item of this.sysCompany) {
  2353. if (item.id === this.model.company) {
  2354. this.companyName = item.name;
  2355. for (var it of item.sysBusinessHallList) {
  2356. if (it.id === this.model.sysBusinessHall) {
  2357. dataLists[0].sysBusinessHall= this.companyName+ this.hallName
  2358. }
  2359. }
  2360. }
  2361. }
  2362. }
  2363. //智能地址研判
  2364. if (dataLists[0].judgmentResearch!==null && dataLists[0].judgmentResearch!==''){
  2365. if (dataLists[0].judgmentResearch==="1"){
  2366. dataLists[0].judgmentResearch='智能地址研判-异常'
  2367. }
  2368. if (dataLists[0].judgmentResearch==="2"){
  2369. dataLists[0].judgmentResearch='智能地址研判-正常'
  2370. }
  2371. }
  2372. //人工地址判研
  2373. if (dataLists[0].judgmentResearchAddress!==null && dataLists[0].judgmentResearchAddress!==''){
  2374. if (dataLists[0].judgmentResearchAddress==="1"){
  2375. dataLists[0].judgmentResearchAddress='人工地址判研-异常'
  2376. }
  2377. if (dataLists[0].judgmentResearchAddress==="2"){
  2378. dataLists[0].judgmentResearchAddress='人工地址判研-正常'
  2379. }
  2380. }
  2381. //拨测结果
  2382. if (dataLists[0].calltestResults!==null && dataLists[0].calltestResults!==''){
  2383. if (dataLists[0].calltestResults==="1"){
  2384. dataLists[0].calltestResults='关机'
  2385. }
  2386. if (dataLists[0].calltestResults==="2"){
  2387. dataLists[0].calltestResults='未接通'
  2388. }
  2389. if (dataLists[0].calltestResults==="3"){
  2390. dataLists[0].calltestResults='可接通不知晓入网事宜'
  2391. }
  2392. if (dataLists[0].calltestResults==="4"){
  2393. dataLists[0].calltestResults='可接通认可办理'
  2394. }
  2395. }
  2396. //运营商
  2397. if (dataLists[0].operatorType!==null && dataLists[0].operatorType!==''){
  2398. if (dataLists[0].operatorType==="1"){
  2399. dataLists[0].operatorType='移动'
  2400. }
  2401. if (dataLists[0].operatorType==="2"){
  2402. dataLists[0].operatorType='联调'
  2403. }if (dataLists[0].operatorType==="3"){
  2404. dataLists[0].operatorType='电信'
  2405. }if (dataLists[0].operatorType==="4"){
  2406. dataLists[0].operatorType='其它'
  2407. }
  2408. }
  2409. //一证通查结果
  2410. if (dataLists[0].operator!==null && dataLists[0].operator!==''){
  2411. if (dataLists[0].operator==="1"){
  2412. dataLists[0].operator='本地运营商'
  2413. }
  2414. if (dataLists[0].operator==="2"){
  2415. dataLists[0].operator='异地运营商'
  2416. }
  2417. }
  2418. // if ( dataLists[0]['newPhone']!==null && dataLists[0]['newPhone']!==''){
  2419. // var newPhones = dataLists[0]['newPhone'].split(',');
  2420. // let newPhonesStr='';
  2421. // for (var item of newPhones) {
  2422. // if (item.match(RegExp('newPhone1+')) && item.replace('newPhone1+', '') !== '') {
  2423. // newPhonesStr = newPhonesStr+item.replace('newPhone1+', '')+" "
  2424. // }
  2425. // if (item.match(RegExp('newPhone2+')) && item.replace('newPhone2+', '') !== '') {
  2426. // newPhonesStr = newPhonesStr+item.replace('newPhone2+', '')+" "
  2427. // }
  2428. // if (item.match(RegExp('newPhone3+')) && item.replace('newPhone3+', '') !== '') {
  2429. // newPhonesStr = newPhonesStr+item.replace('newPhone3+', '')+" "
  2430. // }
  2431. // if (item.match(RegExp('newPhone4+')) && item.replace('newPhone4+', '') !== '') {
  2432. // newPhonesStr = newPhonesStr+item.replace('newPhone4+', '')+" "
  2433. // }
  2434. // if (item.match(RegExp('newPhone5+')) && item.replace('newPhone5+', '') !== '') {
  2435. // newPhonesStr = newPhonesStr+item.replace('newPhone5+', '')+" "
  2436. // }
  2437. // }
  2438. // dataLists[0].newPhone=newPhonesStr;
  2439. // }
  2440. // if (dataLists[0].numberResults!==null && dataLists[0].numberResults!==''){
  2441. // var numberResultsList = dataLists[0]["numberResults"].split(',');
  2442. // var numberResultsListStr ='';
  2443. // for (var item of numberResultsList) {
  2444. // if (item==='1'){
  2445. // numberResultsListStr=numberResultsListStr+'非高危'
  2446. // }
  2447. // if (item==='2'){
  2448. // numberResultsListStr=numberResultsListStr+'上报关停'
  2449. // }
  2450. // if (item==='3'){
  2451. // numberResultsListStr=numberResultsListStr+'上报蓝名单 '
  2452. // }
  2453. // if (item==='4'){
  2454. // numberResultsListStr=numberResultsListStr+' 上报紫名单'
  2455. // }
  2456. // }
  2457. // dataLists[0].numberResults=numberResultsListStr
  2458. // }
  2459. var that =this
  2460. that.dataRisk=[];
  2461. that.riskShow=true
  2462. Object.keys(dataLists[0]).forEach(function (key) {
  2463. var map ={};
  2464. if (key==='cardNo'){
  2465. var birthday = dataLists[0]['cardNo'].substring(6, 14);
  2466. var year = birthday.substring(0, 4);
  2467. // 计算年龄
  2468. var currentYear = new Date().getFullYear();
  2469. var age = currentYear - parseInt(year);
  2470. if (age>=60){
  2471. age=age+'(老年人)'
  2472. map.name ='【入网提示卡】客户年龄: ' ;
  2473. map.text = age ;
  2474. that.dataRisk.push(map)
  2475. }
  2476. if (age<=23){
  2477. age=age+'(可能是在校生)'
  2478. map.name ='【入网提示卡】客户年龄: ' ;
  2479. map.text = age ;
  2480. that.dataRisk.push(map)
  2481. }
  2482. }
  2483. //身份证是否到期
  2484. if (key==='cardStartTimeAndEnd'){
  2485. if (dataLists[0]['cardStartTimeAndEnd']==='否'){
  2486. map.name ='【入网提示卡】 证件编号:【'+dataLists[0]['cardNo']+'】 是否在有效期' ;
  2487. map.text = dataLists[0]['cardStartTimeAndEnd'];
  2488. that.dataRisk.push(map)
  2489. }
  2490. }
  2491. //拨测结果
  2492. if (key==='calltestResults'){
  2493. if ( dataLists[0][key]!=='可接通认可办理'){
  2494. map.name ='【入网提示卡】 电话号码【'+dataLists[0]['phone'] +'】 - 拨测结果';
  2495. map.text = dataLists[0][key];
  2496. that.dataRisk.push(map)
  2497. }
  2498. }
  2499. //地址 人工判研
  2500. if (key==='judgmentResearchAddress'){
  2501. if (dataLists[0]['judgmentResearchAddress']==='人工地址判研-异常'){
  2502. map.name ='【入网提示卡】营业厅地址:【'+ that.companyName +'--'+ that.hallName +'】 工作地址:【'+dataLists[0]['wordAddress'] +'】 现住地址:【'+ dataLists[0]['currentAddress']+'】' ;
  2503. map.text = dataLists[0]['judgmentResearchAddress'];
  2504. that.dataRisk.push(map)
  2505. }
  2506. }
  2507. //地址 智能
  2508. if (key==='judgmentResearch'){
  2509. if (dataLists[0]['judgmentResearch']==='智能地址研判-异常'){
  2510. map.name ='【入网提示卡】 营业厅地址:【'+ that.companyName +'--'+ that.hallName +'】 工作地址:【'+dataLists[0]['wordAddress'] +'】 现住地址:【'+ dataLists[0]['currentAddress']+'】' ;
  2511. map.text = dataLists[0]['judgmentResearch'];
  2512. that.dataRisk.push(map)
  2513. }
  2514. }
  2515. //第二页 排除填写
  2516. if (key==='directRequirements'){
  2517. if (dataLists[0]['directRequirements']===1){
  2518. map.name ='【排查】客户进厅直接要求办理移动号码入网:' ;
  2519. map.text = '是';
  2520. that.dataRisk.push(map)
  2521. }
  2522. }
  2523. if (key==='passOne'){
  2524. if (dataLists[0]['passOne']===1){
  2525. map.name ='【排查】客户主动申请一次性办理超过一个号码:' ;
  2526. map.text = '是';
  2527. that.dataRisk.push(map)
  2528. }
  2529. }
  2530. if (key==='nonConformance'){
  2531. if (dataLists[0]['nonConformance']===1){
  2532. map.name ='【排查】所办号码月缴费金额不符合客户消费能力:' ;
  2533. map.text = '是';
  2534. that.dataRisk.push(map)
  2535. }
  2536. }
  2537. if (key==='isDxNumber'){
  2538. if (dataLists[0]['isDxNumber']===2){
  2539. map.name ='【排查】客户名下无电信号码:' ;
  2540. map.text = '否';
  2541. that.dataRisk.push(map)
  2542. }
  2543. }
  2544. if (key==='isBroadband'){
  2545. if (dataLists[0]['isBroadband']===2){
  2546. map.name ='【排查】申请号码办理征信类、融合宽带业务:' ;
  2547. map.text = '否';
  2548. that.dataRisk.push(map)
  2549. }
  2550. }
  2551. if (key==='isUseTo'){
  2552. if (dataLists[0]['isUseTo']===1){
  2553. map.name ='【排查】申请号码使用用途异常:' ;
  2554. map.text = '是';
  2555. that.dataRisk.push(map)
  2556. }
  2557. }
  2558. if (key==='isRefund'){
  2559. if (dataLists[0]['isRefund']===1){
  2560. map.name ='【排查】客户名下号码存在异常高频率充值、退费:' ;
  2561. map.text = '是';
  2562. that.dataRisk.push(map)
  2563. }
  2564. }
  2565. if (key==='isShutDown'){
  2566. if (dataLists[0]['isShutDown']===1){
  2567. map.name ='【排查】客户名下已有号码(含已注销号码)存在各类关停:' ;
  2568. map.text = '是';
  2569. that.dataRisk.push(map)
  2570. }
  2571. }
  2572. if (key==='isNewly'){
  2573. if (dataLists[0]['isNewly']===1){
  2574. map.name ='【排查】客户名下在用号码无使用记录,仍要求新办号码:' ;
  2575. map.text = '是';
  2576. that.dataRisk.push(map)
  2577. }
  2578. }
  2579. if (key==='isChannel'){
  2580. if (dataLists[0]['isChannel']===1){
  2581. map.name ='【排查】在多个渠道多频次入网的异常情况:' ;
  2582. map.text = '是';
  2583. that.dataRisk.push(map)
  2584. }
  2585. }
  2586. if (key==='isInvolvingFraud'){
  2587. if (dataLists[0]['isInvolvingFraud']===1){
  2588. map.name = '【排查】黑名单到期客户新入网的高危疑似涉诈号码:' ;
  2589. map.text = '是';
  2590. that.dataRisk.push(map)
  2591. }
  2592. }
  2593. });
  2594. if (that.dataRisk.length>0) {
  2595. //是否有风险
  2596. that.riskShow=false;//有风险
  2597. }
  2598. },
  2599. /**下一步骤*/
  2600. nextSteps() {
  2601. if (this.current===0){
  2602. var info= this.showCheck0('all');
  2603. if (info===false){
  2604. return
  2605. }
  2606. }
  2607. if (this.current === 1) {
  2608. var info = this.showCheck1('all');
  2609. if (info === false) {
  2610. return
  2611. }
  2612. let that = this;
  2613. console.info(this.model.calltestResults);
  2614. that.addIng == false
  2615. let data = this.getData('next');
  2616. let id = that.model.id;
  2617. let i = 1;
  2618. let dataMessage = '';
  2619. const h = this.$createElement
  2620. this.newDatas = [];
  2621. if (this.model.calltestResults === 1 || this.model.calltestResults === '1') {
  2622. this.calltestResultsName = '关机';
  2623. }
  2624. if (this.model.calltestResults === 2 || this.model.calltestResults === '2') {
  2625. this.calltestResultsName = '未接通';
  2626. }
  2627. if (this.model.calltestResults === 3 || this.model.calltestResults === '3') {
  2628. this.calltestResultsName = '可接通不知晓入网事宜';
  2629. }
  2630. if (this.model.calltestResults === 4 || this.model.calltestResults === '4') {
  2631. this.calltestResultsName = '可接通认可办理';
  2632. }
  2633. //集合遍历
  2634. var company = '';
  2635. var hall = '';
  2636. for (var item of this.sysCompany) {
  2637. if (item.id === this.model.company) {
  2638. this.companyName = item.name
  2639. for (var it of item.sysBusinessHallList) {
  2640. if (it.id === this.model.sysBusinessHall) {
  2641. this.hallName = it.name
  2642. }
  2643. }
  2644. }
  2645. }
  2646. this.newDatas.push('异常信息提醒:')
  2647. this.newDatas.push('该用户以下填写信息可能触发风险请确认是否继续操作!!!')
  2648. // if (data["calltestResults"] === '2') {
  2649. // this.newDatas.push(i++ + '、该用户拨测号码未接通 请确认是否继续操作 。 ')
  2650. //
  2651. // }
  2652. // if ( data["judgmentResearch"] === '3' ) {
  2653. // this.newDatas.push(i++ + '、该用户附件地址人工判研异常 。 ')
  2654. // }
  2655. // if (data["calltestResults"] === '1') {
  2656. // this.newDatas.push(i++ + '、该用户拨测号码关机 请确认是否继续操作 。 ')
  2657. //
  2658. // }
  2659. // if (this.isSizeNumberResults === 'is') {
  2660. // this.newDatas.push(i++ + ' 、该用户有多个不友好研判结果 请确认是否继续操作 。 ')
  2661. //
  2662. // }
  2663. // if (data["judgmentResearch"] === '1' ) {
  2664. // if (parseFloat(this.distance1) > parseFloat(this.distance)) {
  2665. // this.newDatas.push(i++ + ' 、该用户现住地址(到村/小区),营业厅地址 距离过远 请确认是否继续操作 。 ')
  2666. // }
  2667. // if (parseFloat(this.distance2) > parseFloat(this.distance)) {
  2668. // this.newDatas.push(i++ + ' 、该用户 工作地址 , 营业厅地址 距离过远 请确认是否继续操作 。 ')
  2669. // }
  2670. // if (parseFloat(this.distance3) > parseFloat(this.distance)) {
  2671. // this.newDatas.push(i++ + ' 、该用户现住地址(到村/小区),工作地址距离过远 请确认是否继续操作 。 ')
  2672. // }
  2673. // }
  2674. this.getDataRisk(data)
  2675. // if (this.newDatas.length === 1) {
  2676. //newDatas.push(h('p', null, i++ +'、 暂无风险提示 请继续操作。 '))
  2677. //} else {
  2678. //是否显示继续操作页面
  2679. this.showInfo = true;
  2680. //document.getElementById('showInfo').innerHTML = h('div', null, this.newDatas)
  2681. // this.$confirm({
  2682. // okText: '继续操作',
  2683. // cancelText: '终止操作',
  2684. // title: "确认是否继续",
  2685. // content: h('div', null, newDatas),
  2686. // onOk: function () {
  2687. //
  2688. // } ,
  2689. // onCancel:function (){
  2690. // data['status']="0";//中断提交
  2691. // that.submit(data,id)
  2692. // }
  2693. // });
  2694. }
  2695. if (this.current < this.steps.length) {
  2696. this.current = this.current + 1;
  2697. }
  2698. },
  2699. /**上一步骤*/
  2700. prevSteps() {
  2701. if (this.current != 0) {
  2702. this.current = this.current - 1;
  2703. }
  2704. },
  2705. /**终止操作页面上一步骤*/
  2706. terminatingPrevSteps() {
  2707. this.showInfo=false;
  2708. if (this.current != 0) {
  2709. this.current = 1;
  2710. }
  2711. },
  2712. getData(info) {
  2713. var arr = '';
  2714. if (this.model.numberResults instanceof Array){
  2715. }
  2716. if (this.model.numberResults instanceof String){
  2717. }
  2718. if (this.model.numberResults !== undefined && this.model.numberResults !== "undefined" && this.model.numberResults !==''&& this.model.numberResults !==null && this.model.numberResults.length!==0 ) {
  2719. arr = this.model.numberResults+'';
  2720. }
  2721. if (info==='submit'){
  2722. if (this.industryQiTa!=='' || this.industryQiTa!==null){
  2723. if (this.model.industry==='其它'){
  2724. this.model.industry = this.industryQiTa;
  2725. }
  2726. }
  2727. }
  2728. if (info==='submit'){
  2729. if (this.form.value.length>0) {
  2730. this.model.newPhone=this.form.value.join(',');
  2731. }else {
  2732. return this.$message.warning('新办号码至少选择一项!!!', 3);
  2733. }
  2734. }
  2735. let data = {
  2736. "sysBusinessHall": this.model.sysBusinessHall,
  2737. "company": this.model.company,
  2738. //用户id
  2739. "id": this.model.id,
  2740. "yidong": this.model.yidong,
  2741. "dianxin": this.model.dianxin,
  2742. "liantong": this.model.liantong,
  2743. "qita": this.model.qita,
  2744. //联电归属地
  2745. "address": this.model.address,
  2746. //拨测联系电话
  2747. "phone": this.model.phone,
  2748. //拨测结果
  2749. "calltestResults": this.model.calltestResults,
  2750. //证件地址
  2751. "idCardAddress": this.model.idCardAddress,
  2752. //现住地址
  2753. "currentAddress": this.model.currentAddress,
  2754. //现用号码运营商
  2755. "operator": this.model.operator,
  2756. //现用号码运营商类型
  2757. "operatorType": this.model.operatorType,
  2758. //现用号码运营商类型备注
  2759. "operatorTypeNote": this.model.operatorTypeNote,
  2760. //现用号码使用年限
  2761. "useLife": this.model.useLife,
  2762. //现用号码使用用途
  2763. "phonePurpose": this.model.phonePurpose,
  2764. //是否将高危号码上报蓝、紫名单或不可复开关停
  2765. "numberResults": arr ,
  2766. "cardStartTimeAndEnd":this.model.cardStartTimeAndEnd,
  2767. "judgmentResearchAddress":this.model.judgmentResearchAddress,
  2768. "cardNo": this.model.cardNo,
  2769. "cardName": this.model.cardName,
  2770. "cardStartTime": this.model.cardStartTime,
  2771. "cardEndTime": this.model.cardEndTime,
  2772. "wordAddress": this.model.wordAddress,
  2773. "businessAddress": this.model.businessAddress,
  2774. "positionInformation": this.model.positionInformation,
  2775. "status": '',
  2776. "judgmentResearch":this.model.judgmentResearch,
  2777. "industry":this.model.industry,
  2778. "newPhone": this.model.newPhone,
  2779. //客户名下无电信号码
  2780. "isDxNumber": this.model.isDxNumber,
  2781. //客户名下无电信号码备注
  2782. "isDxNumberNote": this.model.isDxNumberNote,
  2783. //客户直接要求办理移动号码入网
  2784. "directRequirements":this.model.directRequirements,
  2785. "directRequirementsNode":this.model.directRequirementsNode,
  2786. //客户主动申请一次性办理超过一个号码
  2787. "passOne":this.model.passOne,
  2788. "passOneNode":this.model.passOneNode,
  2789. //所办金额不符合客户消费能力
  2790. "nonConformance":this.model.nonConformance,
  2791. "nonConformanceNode":this.model.nonConformanceNode,
  2792. //申请号码办理征信类、融合宽带业务
  2793. "isBroadband": this.model.isBroadband,
  2794. //申请号码办理征信类、融合宽带业务备注
  2795. "isBroadbandNote": this.model.isBroadbandNote,
  2796. //申请号码使用用途异常
  2797. "isUseTo": this.model.isUseTo,
  2798. //申请号码使用用途异常备注
  2799. "isUseToNote": this.model.isUseToNote,
  2800. //客户名下号码存在异常高频率充值、退费
  2801. "isRefund": this.model.isRefund,
  2802. //客户名下号码存在异常高频率充值、退费备注
  2803. "isRefundNote": this.model.isRefundNote,
  2804. //客户名下已有号码(含已注销号码)存在各类关停
  2805. "isShutDown": this.model.isShutDown,
  2806. //客户名下已有号码(含已注销号码)存在各类关停备注
  2807. "isShutDownNote": this.model.isShutDownNote,
  2808. //客户名下在用号码无使用记录,仍要求新办号码
  2809. "isNewly": this.model.isNewly,
  2810. //客户名下在用号码无使用记录,仍要求新办号码备注
  2811. "isNewlyNote": this.model.isNewlyNote,
  2812. //在多个渠道多频次入网的异常情况
  2813. "isChannel": this.model.isChannel,
  2814. //在多个渠道多频次入网的异常情况备注
  2815. "isChannelNote": this.model.isChannelNote,
  2816. //黑名单到期客户新入网的高危疑似涉诈号码
  2817. "isInvolvingFraud": this.model.isInvolvingFraud,
  2818. //黑名单到期客户新入网的高危疑似涉诈号码备注
  2819. "isInvolvingFraudNote": this.model.isInvolvingFraudNote,
  2820. };
  2821. return data;
  2822. },
  2823. submit(data, id) {
  2824. let mes = '提交成功';
  2825. if (data["status"] === '0') {
  2826. mes = "终止操作 数据保存成功! "
  2827. }
  2828. if (this.model.cardNo==='' || this.model.cardNo===null || this.model.cardNo===undefined){
  2829. this.clearModel()
  2830. this.$message.success('证件信息为空,暂不保存', 3);
  2831. this.addIng == true;
  2832. return
  2833. }
  2834. if (id == null) {
  2835. postAction("/businessReminderCard/add", data).then((res) => {
  2836. if (res.success) {
  2837. this.clearModel()
  2838. this.$message.success(mes, 3);
  2839. this.addIng == true
  2840. location.reload();
  2841. // this.onCance ()
  2842. //this.closeCurrent();
  2843. //this.$router.replace({ path: this.$route.path })
  2844. } else {
  2845. this.$message.error("提交失败");
  2846. location.reload();
  2847. // this.onCance ()
  2848. // this.closeCurrent();
  2849. // this.$router.replace({ path: this.$route.path })
  2850. }
  2851. })
  2852. } else {
  2853. data['newBusinessAddress']=this.model.sysBusinessHall;
  2854. postAction("/businessReminderCard/editById", data).then((res) => {
  2855. if (res.success) {
  2856. this.clearModel()
  2857. this.$message.success('修改成功', 7);
  2858. this.addIng == true
  2859. this.$router.go(-1);
  2860. this.closeCurrent();
  2861. } else {
  2862. this.$message.error("修改失败");
  2863. this.addIng == true;
  2864. }
  2865. })
  2866. }
  2867. },
  2868. //继续操作
  2869. continueOperation() {
  2870. this.showInfo = false;
  2871. },
  2872. //终止操作
  2873. terminatingOperation() {
  2874. let data = this.getData('submit');
  2875. data['status'] = "0";//中断提交
  2876. this.showInfo = false;
  2877. this.submit(data, this.model.id)
  2878. },
  2879. check3(data){
  2880. var info = true;
  2881. if (data==='all' || data==='newPhone5'){
  2882. if (this.size>=5){
  2883. if (this.model.newPhone5==='' || this.model.newPhone5===null){
  2884. document.getElementById('newPhone5').style.borderColor = "red";
  2885. info=false;
  2886. }else {
  2887. document.getElementById('newPhone5').style.borderColor = "#d9d9d9";
  2888. }
  2889. }
  2890. }
  2891. var reg = RegExp(/numberResults/);
  2892. if (data==='all' || reg.exec(data)) {
  2893. if (data==='all'){
  2894. if (this.model.numberResults === '' || this.model.numberResults === null || this.model.numberResults.length === 0) {
  2895. this.numberResults=true;
  2896. info=false;
  2897. } else {
  2898. this.numberResults=false;
  2899. }
  2900. }else {
  2901. if (this.model.numberResults === '' || this.model.numberResults === null || this.model.numberResults.length === 0) {
  2902. this.numberResults=false;
  2903. }
  2904. }
  2905. if(reg.exec(data)){
  2906. for (let i = 0; i < this.model.numberResults.length; i++){
  2907. if (data==='numberResults'+this.model.numberResults[i]){
  2908. //在取消选择
  2909. if (this.model.numberResults.length===1){
  2910. this.numberResults=true;
  2911. info=false;
  2912. }else {
  2913. this.numberResults=false;
  2914. }
  2915. }
  2916. }
  2917. }
  2918. }
  2919. return info;
  2920. },
  2921. /**新增*/
  2922. submitBusiness() {
  2923. var info = true;
  2924. info=this.check3('all');
  2925. if (info===false){
  2926. return
  2927. }
  2928. let that = this;
  2929. that.addIng == false
  2930. let data = this.getData('submit');
  2931. let id = that.model.id;
  2932. let i = 1;
  2933. let dataMessage = '';
  2934. const h = this.$createElement
  2935. const newDatas = [];
  2936. data['status'] = "1";//确认提交
  2937. this.submit(data, id)
  2938. // if( data["calltestResults"] ==='2'){
  2939. // newDatas.push(h('p', null, i++ +'、该用户拨测号码未接通 请确认风险 。 '))
  2940. //
  2941. // }if(this.isSizeNumberResults==='is' ){
  2942. // newDatas.push(h('p', null, i++ +' 、该用户有多个不友好研判结果 请确认风险 。 '))
  2943. //
  2944. // }if(this.isSizeNumberResults==='is' ){
  2945. // newDatas.push(h('p', null, i++ +' 、该用户现住地址(到村/小区),工作地址,营业厅地址距离过远 请确认风险 。 '))
  2946. //
  2947. // }else{
  2948. // newDatas.push(h('p', null, i++ +' 暂无风险提示 请继续。 '))
  2949. // }
  2950. //
  2951. // this.$confirm({
  2952. // title: "确认是否继续提交",
  2953. // content: h('div', null, newDatas),
  2954. // onOk: function () {
  2955. // if (id == null){
  2956. // postAction("/businessReminderCard/add", data).then((res) => {
  2957. // if (res.success) {
  2958. // that.clearModel()
  2959. // that.$message.success("提交成功", 7);
  2960. // that.addIng == true
  2961. // } else {
  2962. // that.$message.error("提交失败");
  2963. // that.addIng == true;
  2964. // }
  2965. // })
  2966. // }else {
  2967. // postAction("/businessReminderCard/editById", data).then((res) => {
  2968. // if (res.success) {
  2969. // that.clearModel()
  2970. // this.$message.success("修改成功", 7);
  2971. // that.addIng == true
  2972. // this.$router.go(-1);
  2973. // this.closeCurrent();
  2974. // } else {
  2975. // this.$message.error("修改失败");
  2976. // that.addIng == true;
  2977. // }
  2978. // })
  2979. //
  2980. // }
  2981. // }
  2982. // });
  2983. },
  2984. /**充值表单*/
  2985. clearModel() {
  2986. this.model = {}
  2987. this.current = 0;
  2988. },
  2989. },
  2990. }
  2991. </script>
  2992. <style scoped>
  2993. .is-error {
  2994. border-color: red
  2995. }
  2996. .example {
  2997. text-align: center;
  2998. background: rgba(0, 0, 0, 0.05);
  2999. border-radius: 4px;
  3000. margin-bottom: 20px;
  3001. padding: 30px 50px;
  3002. margin: 20px 0;
  3003. }
  3004. .box {
  3005. margin: 0;
  3006. padding: 0;
  3007. }
  3008. .redInfo {
  3009. display: inline-block;
  3010. margin-right: 4px;
  3011. color: #f5222d;
  3012. font-size: 14px;
  3013. font-family: SimSun, sans-serif;
  3014. line-height: 1;
  3015. content: '*';
  3016. }
  3017. /deep/.ant-table-tbody .red{
  3018. color: red !important;
  3019. }
  3020. </style>