registration.vue 113 KB

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