registration.vue 69 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947
  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. <a-button type="link" @click="keyupInfoSelect()">身份证件号码检索</a-button>
  25. <a-row>
  26. <a-col :span="6">
  27. <a-form-model-item required label="身份证件号码" prop="cardNo" :labelCol="{ span:8 }" :wrapperCol="{ span: 14 }" >
  28. <!-- <a-radio-group v-model="model.cardNo" button-style="solid" slot-scope="text, record">-->
  29. <a-input v-model="model.cardNo" placeholder="请输入身份证件号码" @keyup="keyupInfo()" ></a-input>
  30. <!-- </a-radio-group>--><a-icon slot="prefix" type="user" :style="{ color: 'rgba(0,0,0,.25)' }"/>
  31. </a-form-model-item>
  32. </a-col>
  33. <a-col :span="6">
  34. <a-form-model-item label="身份证姓名" :labelCol="{ span:8 }" :wrapperCol="{ span: 14 }" prop="cardName" >
  35. <!-- <a-radio-group v-model="model.cardName" button-style="solid" prop="cardNo">-->
  36. <a-input v-model="model.cardName" placeholder="身份证姓名" ></a-input>
  37. <!-- </a-radio-group>-->
  38. </a-form-model-item>
  39. </a-col>
  40. <!-- <a-col :span="8" >-->
  41. <!-- <a-form-item label="证件期限(开始日期)" v-bind="labelCol2" prop="cardStartTime">-->
  42. <!-- <j-date :show-time="true" prop="cardStartTime" date-format="YYYY-MM-DD" placeholder="请选择开始时间" class="query-group-cust" v-model="model.cardStartTime"></j-date>-->
  43. <!-- </a-form-item>-->
  44. <!-- </a-col>-->
  45. <a-col :span="12" prop="cardDate">
  46. <a-form-item label="身份证证件有效期" :labelCol="{ span:6 }" :wrapperCol="{ span: 16 }" prop="cardDate">
  47. <j-date :show-time="true" date-format="YYYY-MM-DD" placeholder="请选择开始时间" class="query-group-cust"
  48. v-model="model.cardStartTime" prop="cardDate"></j-date>
  49. <span class="query-group-split-cust"></span>
  50. <j-date :show-time="true" date-format="YYYY-MM-DD" placeholder="请选择结束时间" class="query-group-cust"
  51. v-model="model.cardEndTime" prop="cardDate"></j-date>
  52. </a-form-item>
  53. </a-col>
  54. </a-row>
  55. </div>
  56. </a-form-model>
  57. </div>
  58. </a-card>
  59. <!-- 入网信息登记表单-->
  60. <a-card style="margin-bottom:10px" v-if="current==0">
  61. <div>
  62. <a-form-model
  63. ref="form"
  64. :label-col="labelCol"
  65. :wrapper-col="wrapperCol"
  66. :model="model"
  67. :rules="rules"
  68. >
  69. <div>
  70. <!-- <a-divider orientation="left">填写营业厅入网提示卡-->
  71. <!-- </a-divider>-->
  72. <a-row>
  73. <a-col :span="7">
  74. <a-form-model-item label="拨测联系电话" :labelCol="{ span:8 }" :wrapperCol="{ span: 12 }" prop="modelPhone">
  75. <!-- <a-radio-group v-model="model.phone" button-style="solid">-->
  76. <a-input v-model="model.phone" placeholder="请输入拨测联系电话"
  77. @keyup="keyupInfoPhone(model.phone)"></a-input>
  78. <!-- </a-radio-group>-->
  79. </a-form-model-item>
  80. </a-col>
  81. <a-col :span="7">
  82. <a-form-model-item label="联电归属地" prop="modelAddress" :labelCol="{ span:8 }" :wrapperCol="{ span: 12 }">
  83. <!-- <a-radio-group v-model="model.address" button-style="solid">-->
  84. <a-input v-model="model.address" placeholder="请输入联电归属地"></a-input>
  85. <!-- </a-radio-group>-->
  86. </a-form-model-item>
  87. </a-col>
  88. <!-- <a-col :span="8">-->
  89. <!-- <a-form-model-item label="现用号码使用年限" prop="userOpenState" v-bind="labelCol2">-->
  90. <!-- <a-radio-group v-model="model.useLife" button-style="solid">-->
  91. <!-- <a-input v-model="model.useLife" placeholder="请输入使用年限"></a-input>-->
  92. <!-- </a-radio-group>-->
  93. <!-- </a-form-model-item>-->
  94. <!-- </a-col>-->
  95. <!-- <a-col :span="8">-->
  96. <!-- <a-form-model-item label="运营商类型" prop="userOpenState" v-bind="labelCol2">-->
  97. <!-- <a-radio-group v-model="model.phonePurpose" button-style="solid">-->
  98. <!-- <a-input v-model="model.phonePurpose" placeholder="请输入运营商类型"></a-input>-->
  99. <!-- </a-radio-group>-->
  100. <!-- </a-form-model-item>-->
  101. <!-- </a-col>-->
  102. <a-col :span="10">
  103. <a-form-model-item label="运营商类型" v-bind="labelCol2" prop="operatorType">
  104. <a-radio-group v-model="model.operatorType" button-style="solid">
  105. <a-radio value="1">移动</a-radio>
  106. <span v-if="this.model.yidong>5 " style="color: red">[{{ this.model.yidong }}]</span><span
  107. v-if="this.model.yidong<5 " style="color: green">[{{ this.model.yidong }}]</span>
  108. <a-radio value="2">联通</a-radio>
  109. <span v-if="this.model.liantong>5 " style="color: red">[{{ this.model.liantong }}]</span><span
  110. v-if="this.model.liantong<5 " style="color: green">[{{ this.model.liantong }}]</span>
  111. <a-radio value="3">电信</a-radio>
  112. <span v-if="this.model.dianxin>5 " style="color: red">[{{ this.model.dianxin }}]</span><span
  113. v-if="this.model.dianxin<5 " style="color: green">[{{ this.model.dianxin }}]</span>
  114. <a-radio value="4">其他</a-radio>
  115. <span v-if="this.model.qita>5 " style="color: red">[{{ this.model.qita }}]</span><span
  116. v-if="this.model.qita<5 " style="color: green">[{{ this.model.qita }}]</span>
  117. </a-radio-group>
  118. </a-form-model-item>
  119. </a-col>
  120. </a-row>
  121. <a-row>
  122. <a-col :span="7">
  123. <a-form-model-item label="新办号码用途" prop="phonePurpose" :labelCol="{ span:8 }" :wrapperCol="{ span: 12 }">
  124. <!-- <a-radio-group v-model="model.phonePurpose" button-style="solid">-->
  125. <a-input v-model="model.phonePurpose" placeholder="请输入用途"></a-input>
  126. <!-- </a-radio-group>-->
  127. </a-form-model-item>
  128. </a-col>
  129. <a-col :span="7">
  130. <a-form-item label="客户所属行业" prop="industry" :labelCol="{ span:8 }" :wrapperCol="{ span: 12 }">
  131. <j-dict-select-tag placeholder="请选择客户所属行业" v-model="model.industry" dictCode="custom_industry" />
  132. </a-form-item>
  133. </a-col>
  134. <a-col :span="8">
  135. <a-form-model-item label="客户现用号码" prop="modelOperator" :labelCol="{ span:9 }"
  136. :wrapperCol="{ span: 15 }">
  137. <a-radio-group v-model="model.operator" button-style="solid">
  138. <a-radio value="1">本地运营商</a-radio>
  139. <a-radio value="2">异地运营商</a-radio>
  140. </a-radio-group>
  141. </a-form-model-item>
  142. </a-col>
  143. </a-row>
  144. <a-row>
  145. </a-row>
  146. <a-row>
  147. <a-col :span="15">
  148. <a-form-model-item label="拨测结果" prop="calltestResultsName" :labelCol="{ span: 3 }" :wrapperCol="{ span: 15 }">
  149. <a-radio-group v-model="model.calltestResults" button-style="solid">
  150. <a-radio value="1">关机</a-radio>
  151. <a-radio value="2">未接通</a-radio>
  152. <a-radio value="3">可接通不知晓入网事宜</a-radio>
  153. <a-radio value="4">可接通认可办理</a-radio>
  154. </a-radio-group>
  155. <a-button type="link" style="color: red" v-if="this.model.calltestResults==='1' ">拨测号码关机!</a-button>
  156. </a-form-model-item>
  157. </a-col>
  158. </a-row>
  159. </div>
  160. </a-form-model>
  161. </div>
  162. </a-card>
  163. <a-card style="margin-bottom:10px" v-if="current==1">
  164. <div>
  165. <a-form-model
  166. ref="form"
  167. :label-col="labelCol"
  168. :wrapper-col="wrapperCol"
  169. :model="model"
  170. :rules="rules"
  171. >
  172. <div style="overflow: auto">
  173. <a-list size="large" bordered>
  174. <template>
  175. <a-list-item class="box">
  176. <a-col :span="12" >
  177. <div>
  178. <div style="float:left;margin: 20px 3px;"><div class="redInfo" >*</div>1、客户名下无电信号码</div>
  179. <div style="float:right;margin: 20px 10px;" >
  180. <a-radio-group v-model="model.isDxNumber" button-style="solid">
  181. <a-radio :value="1">是</a-radio>
  182. <a-radio :value="2">否</a-radio>
  183. </a-radio-group>
  184. </div>
  185. </div>
  186. </a-col>
  187. <a-col :span="12">
  188. <div style="clear: both"></div>
  189. <a-input v-model="model.isDxNumberNote" placeholder="请输入排查结果备注信息" style="margin: 3px 3px;width: 400px;float: right"></a-input>
  190. </a-col>
  191. </a-list-item>
  192. <a-list-item class="box">
  193. <a-col :span="12">
  194. <div>
  195. <div style="float:left;margin: 20px 3px;"><div class="redInfo" >*</div>2、申请号码办理征信类、融合宽带业务</div>
  196. <div style="float:right;margin: 20px 10px;" >
  197. <a-radio-group v-model="model.isBroadband" button-style="solid">
  198. <a-radio :value="1">是</a-radio>
  199. <a-radio :value="2">否</a-radio>
  200. </a-radio-group>
  201. </div>
  202. </div>
  203. </a-col>
  204. <a-col :span="12">
  205. <div style="clear: both"></div>
  206. <a-input v-model="model.isBroadbandNote" placeholder="请输入排查结果备注信息" style="margin: 3px 3px;width: 400px;float: right"></a-input>
  207. </a-col>
  208. </a-list-item>
  209. <a-list-item class="box">
  210. <a-col span="12">
  211. <div>
  212. <div style="float:left;margin: 20px 3px;"><div class="redInfo" >*</div>3、 申请号码使用用途异常</div>
  213. <div style="float:right;margin: 20px 10px;" >
  214. <a-radio-group v-model="model.isUseTo" button-style="solid">
  215. <a-radio :value="1">是</a-radio>
  216. <a-radio :value="2">否</a-radio>
  217. </a-radio-group>
  218. </div>
  219. </div>
  220. </a-col>
  221. <a-col :span="12">
  222. <div style="clear: both"></div>
  223. <a-input v-model="model.isUseToNote" placeholder="请输入排查结果备注信息" style="margin: 3px 3px;width: 400px;float: right"></a-input>
  224. </a-col>
  225. </a-list-item>
  226. <a-list-item class="box">
  227. <a-col :span="12">
  228. <div>
  229. <div style="float:left;margin: 20px 3px;"><div class="redInfo" >*</div>4、客户名下号码存在异常高频率充值、退费</div>
  230. <div style="float:right;margin: 20px 10px;" >
  231. <a-radio-group v-model="model.isRefund" button-style="solid">
  232. <a-radio :value="1">是</a-radio>
  233. <a-radio :value="2">否</a-radio>
  234. </a-radio-group>
  235. </div>
  236. </div>
  237. </a-col>
  238. <a-col :span="12">
  239. <div style="clear: both"></div>
  240. <a-input v-model="model.isRefundNote" placeholder="请输入排查结果备注信息" style="margin: 3px 3px;width: 400px;float: right"></a-input>
  241. </a-col>
  242. </a-list-item>
  243. <a-list-item class="box">
  244. <a-col span="12">
  245. <div>
  246. <div style="float:left;margin: 20px 3px;"><div class="redInfo" >*</div>5、客户名下已有号码(含已注销号码)存在各类关停</div>
  247. <div style="float:right;margin: 20px 10px;" >
  248. <a-radio-group v-model="model.isShutDown" button-style="solid">
  249. <a-radio :value="1">是</a-radio>
  250. <a-radio :value="2">否</a-radio>
  251. </a-radio-group>
  252. </div>
  253. </div>
  254. </a-col>
  255. <a-col :span="12">
  256. <div style="clear: both"></div>
  257. <a-input v-model="model.isShutDownNote" placeholder="请输入排查结果备注信息" style="margin: 3px 3px;width: 400px;float: right"></a-input>
  258. </a-col>
  259. </a-list-item>
  260. <a-list-item class="box">
  261. <a-col span="12">
  262. <div>
  263. <div style="float:left;margin: 20px 3px;"><div class="redInfo" >*</div>6、客户名下在用号码无使用记录,仍要求新办号码</div>
  264. <div style="float:right;margin: 20px 10px;" >
  265. <a-radio-group v-model="model.isNewly" button-style="solid">
  266. <a-radio :value="1">是</a-radio>
  267. <a-radio :value="2">否</a-radio>
  268. </a-radio-group>
  269. </div>
  270. </div>
  271. </a-col>
  272. <a-col :span="12">
  273. <div style="clear: both"></div>
  274. <a-input v-model="model.isNewlyNote" placeholder="请输入排查结果备注信息" style="margin: 3px 3px;width: 400px;float: right"></a-input>
  275. </a-col>
  276. </a-list-item>
  277. <a-list-item class="box">
  278. <a-col span="12">
  279. <div>
  280. <div style="float:left;margin: 20px 3px;"><div class="redInfo" >*</div>7、在多个渠道多频次入网的异常情况</div>
  281. <div style="float:right;margin: 20px 10px;" >
  282. <a-radio-group v-model="model.isChannel" button-style="solid">
  283. <a-radio :value="1">是</a-radio>
  284. <a-radio :value="2">否</a-radio>
  285. </a-radio-group>
  286. </div>
  287. </div>
  288. </a-col>
  289. <a-col :span="12">
  290. <div style="clear: both"></div>
  291. <a-input v-model="model.isChannelNote" placeholder="请输入排查结果备注信息" style="margin: 3px 3px;width: 400px;float: right"></a-input>
  292. </a-col>
  293. </a-list-item>
  294. <a-list-item class="box">
  295. <a-col span="12">
  296. <div>
  297. <div style="float:left;margin: 20px 3px;"><div class="redInfo" >*</div>8、黑名单到期客户新入网的高危疑似涉诈号码</div>
  298. <div style="float:right;margin: 20px 10px;" >
  299. <a-radio-group v-model="model.isInvolvingFraud" button-style="solid">
  300. <a-radio :value="1">是</a-radio>
  301. <a-radio :value="2">否</a-radio>
  302. </a-radio-group>
  303. </div>
  304. </div>
  305. </a-col>
  306. <a-col :span="12">
  307. <div style="clear: both"></div>
  308. <a-input v-model="model.isInvolvingFraudNote" placeholder="请输入排查结果备注信息" style="margin: 3px 3px;width: 400px;float: right"></a-input>
  309. </a-col>
  310. </a-list-item>
  311. </template>
  312. </a-list>
  313. </div>
  314. </a-form-model>
  315. </div>
  316. </a-card>
  317. <a-card style="margin-bottom:10px" v-if="current==2 && !this.showInfo">
  318. <div>
  319. <a-form-model
  320. ref="form"
  321. :label-col="labelCol"
  322. :wrapper-col="wrapperCol"
  323. :model="model"
  324. :rules="rules"
  325. >
  326. <div>
  327. <a-list size="large" bordered>
  328. <a-list-item>
  329. <a-col :span="14">
  330. <a-form-model-item label="新办手机号码" :labelCol="{ span:7 }" :wrapperCol="{ span: 8 }" prop="modelPhone">
  331. <!-- <a-radio-group v-model="model.newPhone" button-style="solid">-->
  332. <a-input v-model="model.newPhone" placeholder="新办手机号码"></a-input>
  333. <!-- </a-radio-group>-->
  334. </a-form-model-item>
  335. </a-col>
  336. </a-list-item>
  337. <a-list-item>
  338. <a-col :span="16">
  339. <a-form-model-item label="是否将高危号码上报蓝、紫名单或不可复开关停" v-bind="labelCol1ProMaxPlus" prop="modelPhone">
  340. <a-checkbox-group v-model="model.numberResults" style="width: 100%">
  341. <a-row>
  342. <template v-for="(des) in this.optionsWithDisabled">
  343. <a-col :span="8">
  344. <a-checkbox :value="des.value">{{ des.text }}</a-checkbox>
  345. </a-col>
  346. </template>
  347. </a-row>
  348. </a-checkbox-group>
  349. </a-form-model-item>
  350. </a-col>
  351. </a-list-item>
  352. </a-list>
  353. </div>
  354. </a-form-model>
  355. </div>
  356. </a-card>
  357. <a-card style="margin-bottom:10px" v-if="current==2 && this.showInfo ">
  358. <div>
  359. <a-form-model
  360. ref="form"
  361. :label-col="labelCol"
  362. :wrapper-col="wrapperCol"
  363. :model="model"
  364. :rules="rules"
  365. >
  366. <div id="showInfo">
  367. <a-col :span="24">
  368. <div>身份证件号码 : 【 {{ this.model.cardNo }} 】 身份证姓名:【 {{ this.model.cardName }} 】 身份证证件有效期【
  369. {{ this.model.cardStartTime }}~{{ this.model.cardEndTime }}】
  370. </div>
  371. <div>拨测联系电话: 【 {{ this.model.phone }} 】 拨测结果: 【 {{ this.calltestResultsName }}】</div>
  372. <div>营业厅地址: 【 {{ this.companyName }}--{{ this.hallName }} 】 工作地址:
  373. 【{{ this.model.wordAddress }}】现住地址(到村/小区) 【{{ this.model.currentAddress }}】
  374. </div>
  375. </a-col>
  376. <a-col :span="24" style="margin-top: 30px">
  377. <div v-for="value in newDatas" style="color: red">
  378. {{ value }}
  379. </div>
  380. </a-col>
  381. </div>
  382. </a-form-model>
  383. </div>
  384. </a-card>
  385. <!--附加信息-->
  386. <a-card style="margin-bottom:10px" v-show="current==0">
  387. <div>
  388. <a-form-model
  389. ref="form"
  390. :label-col="labelCol"
  391. :wrapper-col="wrapperCol"
  392. :model="model"
  393. :rules="rules"
  394. >
  395. <div>
  396. <!-- <a-divider orientation="left">附加信息-->
  397. <!-- </a-divider>-->
  398. <a-row>
  399. <a-col :span="12">
  400. <a-row>
  401. <a-col>
  402. <a-form-model-item label="营业厅地址" prop="sysBusinessHallAndSysCompany" v-bind="labelCol2">
  403. <a-col :span="10">
  404. <a-select placeholder="请选择分公司" v-model="model.company">
  405. <a-select-option v-for="(item,index) in sysCompany" :key="item.id" :value="item.id"
  406. @click="change(item.id)">{{ item.name }}
  407. </a-select-option>
  408. </a-select>
  409. </a-col>
  410. <a-col :span="10">
  411. <a-select placeholder="请选择营业厅地址" v-model="model.sysBusinessHall">
  412. <a-select-option v-for="item in sysBusinessHallList" :key="item.id" :value="item.id"
  413. @click="searchKeyWordsysBusinessHall('中国电信'+item.name,'businessAddress')">
  414. {{ item.name }}
  415. </a-select-option>
  416. </a-select>
  417. </a-col>
  418. <!-- <a-radio-group v-model="model.businessAddress" button-style="solid">-->
  419. <!-- <a-input v-model="model.businessAddress" placeholder="请输入营业厅地址" @keyup="searchKeyWord('model.businessAddress')" ></a-input>-->
  420. <!-- <div class="map_search_result" v-show="this.showsearchResultBusinessAddress" >-->
  421. <!-- <ul>-->
  422. <!-- <li click="markerResult(item,'businessAddress')" v-for="(item,index) in poiList" :key="index">{{item.name}}</li>-->
  423. <!-- </ul>-->
  424. <!-- </div>-->
  425. <!-- </a-radio-group>-->
  426. </a-form-model-item>
  427. </a-col>
  428. </a-row>
  429. <a-row>
  430. <a-col>
  431. <a-form-model-item label="工作地址" prop="workAddress" :labelCol="{ span:7}" :wrapperCol="{ span: 7}">
  432. <!-- <a-radio-group v-model="model.wordAddress" button-style="solid">-->
  433. <a-input v-model="model.wordAddress" placeholder="请输入工作地址"
  434. @keyup="searchKeyWord('model.wordAddress')"></a-input>
  435. <div class="map_search_result" v-show="this.showsearchResult">
  436. <ul style=" border-radius: 5px ;border: 0.5px solid #f1f1f1;padding: 0px; background-color: #f1f1f1;">
  437. <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">
  438. {{ item.name }}
  439. </li>
  440. </ul>
  441. </div>
  442. <!-- </a-radio-group>-->
  443. </a-form-model-item>
  444. </a-col>
  445. </a-row>
  446. <a-row>
  447. <a-col>
  448. <a-form-model-item label="现住地址(到村/小区)" prop="currentAddress" :labelCol="{ span:7}" :wrapperCol="{ span: 7}">
  449. <!-- <a-radio-group v-model="model.currentAddress" button-style="solid">-->
  450. <a-input v-model="model.currentAddress" placeholder="请输入现住地址"
  451. @keyup="searchKeyWord('model.currentAddress')"></a-input>
  452. <div class="map_search_result" v-show="this.showsearchcurrentAddress">
  453. <ul style=" border-radius: 5px ;border: 0.5px solid #f1f1f1;padding: 0px; background-color: #f1f1f1;">
  454. <li style=" border-radius: 5px;list-style: none;border: 0px solid;padding: 0px; "@click="markerResult(item,'currentAddress')" v-for="(item,index) in poiList"
  455. :key="index">{{ item.name }}
  456. </li>
  457. </ul>
  458. </div>
  459. <!-- </a-radio-group>-->
  460. </a-form-model-item>
  461. </a-col>
  462. </a-row>
  463. <a-row>
  464. <a-col :span="24">
  465. <a-form-model-item label="" prop="userOpenState" v-bind="labelCol2" :labelCol="{span:3}"
  466. :wrapperCol="{span:24}">
  467. <a-radio-group v-model="model.judgmentResearch" button-style="solid">
  468. <a-radio value="1" style="color: red ;margin-left: 30px">智能判研-异常</a-radio>
  469. <a-radio value="4">智能判研-正常</a-radio>
  470. <a-radio value="3" style="color: red">人工判研-异常</a-radio>
  471. <a-radio value="2">人工判研-正常</a-radio>
  472. </a-radio-group>
  473. </a-form-model-item>
  474. </a-col>
  475. </a-row>
  476. </a-col>
  477. <a-col :span="9">
  478. <div>
  479. <div id="container" :style="{width: '600px', height: '300px'}"></div>
  480. </div>
  481. </a-col>
  482. </a-row>
  483. </div>
  484. </a-form-model>
  485. </div>
  486. </a-card>
  487. <a-card style="position: relative;bottom: 0;width: 100%">
  488. <div style="text-align: center">
  489. <a-button v-if="current < steps.length - 1 && !this.showInfo" type="primary" @click="nextSteps">下一步</a-button>
  490. <a-button
  491. v-if="current == steps.length - 1 && !this.showInfo"
  492. @click="submitBusiness"
  493. type="primary"
  494. >
  495. 提交
  496. </a-button>
  497. <a-button v-if="current > 0 && !this.showInfo" style="margin-left: 8px" @click="prevSteps">上一步</a-button>
  498. <a-button @click="continueOperation" type="primary" v-if="current==2 && this.showInfo ">
  499. 继续操作
  500. </a-button>
  501. <a-button v-if="current==2 && this.showInfo " style="margin-left: 8px" @click="terminatingOperation">终止操作
  502. </a-button>
  503. </div>
  504. </a-card>
  505. </div>
  506. </template>
  507. <script>
  508. import Popup from './PopupSubTable.vue';
  509. import {httpAction, postAction, getAction} from "@api/manage";
  510. import {JeecgListMixin} from '@/mixins/JeecgListMixin'
  511. import AMapLoader from '@amap/amap-jsapi-loader'
  512. import {reactive} from 'vue';
  513. import axios from 'axios';
  514. window._AMapSecurityConfig = {
  515. securityJsCode: 'f762c44f71422cd56f90acc2a8e75144' //填写你的安全密钥
  516. };
  517. export default {
  518. name: "registration",
  519. inject: ['closeCurrent'],
  520. mixins: [JeecgListMixin],
  521. data() {
  522. return {
  523. validatorRules:{
  524. },
  525. calltestResultsName: '',
  526. companyName: '',
  527. hallName: '',
  528. sysCompany: [],
  529. sysBusinessHallList: "",
  530. cities: "",
  531. formValidate: {
  532. province: '',
  533. city: ''
  534. },
  535. ruleValidate: '',
  536. countryName: "",
  537. cityName: "",
  538. country: '',
  539. lnglats: [],
  540. map: null,
  541. lnglatMaps: new Map(),
  542. zoom: 18,
  543. center: [118.02, 24.48],
  544. searchOption: {
  545. // 限制搜索城市的范围
  546. citylimit: false,
  547. },
  548. optionsWithDisabled:
  549. [{
  550. text: '非高危',
  551. value: '1',
  552. }, {
  553. text: '已报关停',
  554. value: '3',
  555. }, {
  556. text: '已报蓝紫名单',
  557. value: '2',
  558. }],
  559. defaultValue: "",
  560. content: "",
  561. inputValue: "",
  562. mapResultList: [],
  563. searchResult: {
  564. address: "",
  565. latitude: "",
  566. longitude: "",
  567. name: "",
  568. type: "",
  569. country: "",
  570. province: "",
  571. city: "",
  572. area: "",
  573. township: "",
  574. street: "",
  575. neighborhood: "",
  576. locationName: "",
  577. },
  578. events: {
  579. click(e) {
  580. _this.center = [e.lnglat.lng, e.lnglat.lat];
  581. _this.form.lon = e.lnglat.lng;
  582. _this.form.lat = e.lnglat.lat;
  583. _this.getAddress(_this.center);
  584. _this.defaultValue = "";
  585. },
  586. },
  587. addIng: false,
  588. url: {
  589. "querySizeByCardNo": "/businessReminderCard/querySizeByCardNo",
  590. "list": "",
  591. "add": "/businessReminderCard/add",
  592. "editById": "/businessReminderCard/editById",
  593. "queryById": "/businessReminderCard/queryById",
  594. "queryByCardNo": "/businessReminderCard/queryByCardNo",
  595. "getCompany": "/sysCompany/list",
  596. },
  597. labelCol: {span: 2},
  598. wrapperCol: {span: 23},
  599. // 1列
  600. labelCol1: {
  601. labelCol: {
  602. xs: {span: 24},
  603. sm: {span: 2},
  604. },
  605. wrapperCol: {
  606. xs: {span: 24},
  607. sm: {span: 21},
  608. }
  609. },
  610. labelCol1Pro: {
  611. labelCol: {
  612. span: 8
  613. },
  614. wrapperCol: {
  615. span: 15
  616. }
  617. },
  618. labelCol1Pro1A3: {
  619. labelCol: {
  620. span: 14
  621. },
  622. wrapperCol: {
  623. span: 10
  624. }
  625. },
  626. labelCol1ProA3: {
  627. labelCol: {
  628. span: 8
  629. },
  630. wrapperCol: {
  631. span: 15
  632. }
  633. },
  634. labelCol1Results: {
  635. labelCol: {
  636. span: 5
  637. },
  638. wrapperCol: {
  639. span: 15
  640. }
  641. },
  642. labelCol1ProMax: {
  643. labelCol: {
  644. span: 8
  645. },
  646. wrapperCol: {
  647. span: 15
  648. }
  649. },labelCol1ProMax5A6: {
  650. labelCol: {
  651. span: 14
  652. },
  653. wrapperCol: {
  654. span: 5
  655. }
  656. },
  657. labelCol1ProMaxA6: {
  658. labelCol: {
  659. span: 14
  660. },
  661. wrapperCol: {
  662. span: 5
  663. }
  664. },
  665. labelCol1ProMax4A8: {
  666. labelCol: {
  667. span: 12
  668. },
  669. wrapperCol: {
  670. span: 5
  671. }
  672. }, labelCol1ProMaxA8: {
  673. labelCol: {
  674. span: 13
  675. },
  676. wrapperCol: {
  677. span: 5
  678. }
  679. },
  680. labelCol1ProMax2A7: {
  681. labelCol: {
  682. span: 11
  683. },
  684. wrapperCol: {
  685. span: 5
  686. }
  687. },
  688. labelCol1ProMaxPlus: {
  689. labelCol: {
  690. span: 12
  691. },
  692. wrapperCol: {
  693. span: 12
  694. }
  695. },
  696. // 2列
  697. labelCol2: {
  698. labelCol: {
  699. span: 7
  700. },
  701. wrapperCol: {
  702. span: 16
  703. }
  704. }, labelColDate: {
  705. labelCol: {
  706. span: 7
  707. },
  708. wrapperCol: {
  709. span: 14
  710. }
  711. },
  712. addressCol: {
  713. labelCol: {
  714. span: 8
  715. },
  716. wrapperCol: {
  717. span: 16
  718. }
  719. },
  720. //校验的规则
  721. rules: {
  722. cardNo: [
  723. { required: true, message: '请输入身份证号码!' },
  724. { validator: this.validatePhone }
  725. ],
  726. cardName: [{
  727. required: true, message: '请输姓名!'
  728. }],
  729. cardDate: [
  730. {required: true, message: '请输入身份证证件有效期...'}
  731. ],
  732. modelPhone: [
  733. {
  734. required: true,
  735. message: '请输入电话号码',
  736. trigger: 'blur'
  737. }],
  738. modelAddress:[
  739. {
  740. required: true,
  741. message: '请输入联电归属地!',
  742. trigger: 'blur'
  743. }
  744. ],
  745. operatorType:[
  746. {
  747. required: true,
  748. message: '请选择运营商类型',
  749. trigger: 'blur'
  750. }
  751. ],
  752. phonePurpose:[
  753. {
  754. required: true,
  755. message: '请选择新办号码用途',
  756. trigger: 'blur'
  757. }
  758. ],
  759. industry:[
  760. {
  761. required: true,
  762. message: '请选择客户所属行业',
  763. trigger: 'blur'
  764. }
  765. ],
  766. modelOperator:[
  767. {
  768. required: true,
  769. message: '请选择客户现用号码!',
  770. trigger: 'blur'
  771. }
  772. ],
  773. calltestResultsName:[
  774. {
  775. required: true,
  776. message: '请选择拨测结果!',
  777. trigger: 'blur'
  778. }
  779. ],
  780. sysBusinessHallAndSysCompany:[
  781. {
  782. required: true,
  783. message: '请选择营业厅地址!',
  784. trigger: 'blur'
  785. }
  786. ],
  787. workAddress:[
  788. {
  789. required: true,
  790. message: '请输入工作地址!',
  791. trigger: 'blur'
  792. }
  793. ],
  794. currentAddress:[
  795. {
  796. required: true,
  797. message: '请输入现居住地址!',
  798. trigger: 'blur'
  799. }
  800. ],
  801. isDxNumber:[
  802. {
  803. required: true,
  804. message: '请选择客户名下无电信号码!',
  805. trigger: 'blur'
  806. }
  807. ],
  808. judgmentResearch:[
  809. {
  810. required: true,
  811. message: '请选择判研结果结果!',
  812. trigger: 'blur'
  813. }
  814. ]
  815. },
  816. poiList: '',
  817. isSizeNumberResults: '',
  818. showsearchResult: false,
  819. showsearchResultBusinessAddress: true,
  820. showsearchcurrentAddress: false,
  821. addressG: '',
  822. lnglat: {},
  823. distance: '20',
  824. distance1: '',
  825. distance2: '',
  826. distance3: '',
  827. showInfo: false,
  828. newDatas: [],
  829. //表单信息
  830. model: {
  831. sysBusinessHall: '',
  832. company: '',
  833. industry: '',
  834. judgmentResearch: '',
  835. isShutDownNote: '',
  836. isShutDown: '',
  837. isRefundNote: '',
  838. isRefund: '',
  839. isUseToNote: '',
  840. isUseTo: '',
  841. isBroadbandNote: '',
  842. isBroadband: '',
  843. isDxNumberNote: '',
  844. isDxNumber: '',
  845. calltestResults: '',
  846. operatorType: '',
  847. yidong: 0,
  848. liantong: 0,
  849. dianxin: 0,
  850. qita: 0,
  851. operator: '',
  852. currentAddress: '',
  853. phonePurpose: '',
  854. useLife: '',
  855. address: '',
  856. isNewly: '',
  857. isNewlyNote: '',
  858. isChannel: '',
  859. isChannelNote: '',
  860. isInvolvingFraud: '',
  861. isInvolvingFraudNote: '',
  862. numberResults: [],
  863. id: null,
  864. phone: null,
  865. cardNo: '',
  866. cardName: '',
  867. cardStartTime: '',
  868. cardEndTime: '',
  869. idCardAddress: '',
  870. wordAddress: '',
  871. positionInformation: '',
  872. businessAddress: '',
  873. newPhone: ''
  874. },
  875. current: 0,
  876. //步骤条
  877. steps: [
  878. {
  879. title: '入网提示卡',
  880. content: 'First-content',
  881. },
  882. {
  883. title: '排查',
  884. content: 'First-content',
  885. },
  886. {
  887. title: '后期处理',
  888. content: 'First-content',
  889. },
  890. ],
  891. }
  892. },
  893. created() {
  894. this.model.id = this.$route.query.id;
  895. },
  896. mounted() {
  897. this.queryById();
  898. //DOM初始化完成进行地图初始化
  899. this.initMap();
  900. this.getSysCompany();
  901. },
  902. methods: {
  903. validateMobile(rule, value, callback) {
  904. let reg = /^1(3|4|5|7|8)\d{9}$/
  905. if (!reg.test(value)) {
  906. callback('请输入正确手机号')
  907. } else {
  908. callback()
  909. }
  910. },
  911. // 校验手机号
  912. validatePhone(rule,value,callback){
  913. if (value.length === 15 || value.length === 18) {
  914. 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)) {
  915. callback();
  916. } else {
  917. callback("您的身份证格式不正确!");
  918. }
  919. }
  920. },
  921. //校验姓名
  922. getPhoneTypeSize() {
  923. let data = {
  924. "cardNo": this.model.cardNo
  925. };
  926. getAction(this.url.querySizeByCardNo, data).then((res) => {
  927. if (res.success) {
  928. let result = res.result;
  929. if (result != null) {
  930. this.model.yidong = result.yidong;
  931. this.model.dianxin = result.dianxin;
  932. this.model.liantong = result.liantong;
  933. this.model.qita = result.qita;
  934. }
  935. }
  936. })
  937. },
  938. getSysCompany() {
  939. let data = {
  940. "cardNo": this.model.cardNo
  941. };
  942. getAction(this.url.getCompany, data).then((res) => {
  943. if (res.success) {
  944. let result = res.result;
  945. console.log(result + "result");
  946. if (result != null) {
  947. this.sysCompany = result;
  948. }
  949. }
  950. })
  951. },
  952. change(val) {
  953. for (var i = 0; i < this.sysCompany.length; i++) {
  954. if (val == this.sysCompany[i].id) {
  955. this.sysBusinessHallList = this.sysCompany[i].sysBusinessHallList;
  956. }
  957. }
  958. },
  959. //新增标记
  960. showLocation(data) {
  961. let marker = new AMap.Marker({
  962. position: new AMap.LngLat(data[0], data[1]) //参数为经纬度
  963. })
  964. this.map.clearMap()// 清除所有覆盖物(点标志)
  965. this.map.add(marker)// 添加点标志
  966. this.showInfoWindow(marker);//自定义信息窗体
  967. },
  968. //自定义信息窗体
  969. showInfoWindow(marker) {
  970. let infoWindow = new AMap.InfoWindow({
  971. isCustom: true, //是否自定义信息窗体
  972. content: `<div style="background-color: white;padding: 0 5px; border-radius: 5px;border: 1px solid #cccccc;"> 地址:${this.model.wordAddress}</div>`,
  973. closeWhenClickMap: true,
  974. zIndex: 999,
  975. offset: new AMap.Pixel(16, -35)
  976. });
  977. infoWindow.open(this.map, marker.getPosition());
  978. },
  979. /** 初始化搜索 */
  980. mapSearchInit() {
  981. let autoOptions = {
  982. input: "tipInput",
  983. }
  984. let autoCompleteComponent = new AMap.Autocomplete(autoOptions);
  985. this.autoCompleteComponent = autoCompleteComponent;
  986. // 注册placeSearch组件
  987. this.placeSearchComponent = new AMap.PlaceSearch()
  988. },
  989. searchKeyWordsysBusinessHall(data, nameType) {
  990. let that = this
  991. that.placeSearchComponent.search(data, function (status, result) {
  992. if (status === 'complete' && result.info === "OK") {
  993. that.showsearchResultBusinessAddress = true
  994. that.showsearchResult = false
  995. that.showsearchcurrentAddress = false
  996. that.poiList = result.poiList.pois
  997. that.markerResult(that.poiList[0], nameType)
  998. } else {
  999. that.showsearchResultBusinessAddress = false
  1000. that.showsearchResult = false
  1001. that.showsearchcurrentAddress = false
  1002. that.poiList = []
  1003. //that.$message.warning("没有查到结果");
  1004. }
  1005. })
  1006. },
  1007. //根据输入内容查询
  1008. searchKeyWord(data) {
  1009. let that = this
  1010. if (data === 'model.wordAddress') {
  1011. this.showsearchResult = true;
  1012. that.placeSearchComponent.search(that.model.wordAddress, function (status, result) {
  1013. if (status === 'complete' && result.info === "OK") {
  1014. that.showsearchResultBusinessAddress = false
  1015. that.showsearchResult = true
  1016. that.showsearchcurrentAddress = false
  1017. that.poiList = result.poiList.pois
  1018. } else {
  1019. that.showsearchResult = false
  1020. that.showsearchResultBusinessAddress = false;
  1021. that.showsearchcurrentAddress = false
  1022. that.poiList = []
  1023. //that.$message.warning("没有查到结果");
  1024. }
  1025. })
  1026. }
  1027. if (data === 'model.businessAddress') {
  1028. this.showsearchResultBusinessAddress = true;
  1029. that.placeSearchComponent.search(that.model.businessAddress, function (status, result) {
  1030. if (status === 'complete' && result.info === "OK") {
  1031. that.showsearchResultBusinessAddress = true
  1032. that.showsearchResult = false
  1033. that.showsearchcurrentAddress = false
  1034. that.poiList = result.poiList.pois
  1035. } else {
  1036. that.showsearchResultBusinessAddress = false
  1037. that.showsearchResult = false
  1038. that.showsearchcurrentAddress = false
  1039. that.poiList = []
  1040. //that.$message.warning("没有查到结果");
  1041. }
  1042. })
  1043. }
  1044. if (data === 'model.currentAddress') {
  1045. this.showsearchcurrentAddress = true;
  1046. that.placeSearchComponent.search(that.model.currentAddress, function (status, result) {
  1047. if (status === 'complete' && result.info === "OK") {
  1048. that.showsearchcurrentAddress = true
  1049. that.showsearchResult = false
  1050. that.showsearchResultBusinessAddress = false
  1051. that.poiList = result.poiList.pois
  1052. } else {
  1053. that.showsearchcurrentAddress = false
  1054. that.showsearchResultBusinessAddress = false
  1055. that.showsearchResult = false
  1056. that.poiList = []
  1057. //that.$message.warning("没有查到结果");
  1058. }
  1059. })
  1060. }
  1061. },
  1062. getdiscount(lat1, lng1, lat2, lng2) {
  1063. // console.log(paramObj)
  1064. var lng1 = lng1
  1065. var lat1 = lat1
  1066. var lng2 = lng2
  1067. var lat2 = lat2
  1068. var radLat1 = lat1 * Math.PI / 180.0;
  1069. var radLat2 = lat2 * Math.PI / 180.0;
  1070. var a = radLat1 - radLat2;
  1071. var b = lng1 * Math.PI / 180.0 - lng2 * Math.PI / 180.0;
  1072. var s = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) +
  1073. Math.cos(radLat1) * Math.cos(radLat2) * Math.pow(Math.sin(b / 2), 2)));
  1074. s = s * 6378.137;// EARTH_RADIUS;
  1075. s = Math.round(s * 10000) / 10000;
  1076. s = s * 1000
  1077. if (isNaN(s)) {
  1078. return 0 + 'm';
  1079. }
  1080. if (s > 1000) {
  1081. // 大于1000米时
  1082. s = Math.floor(s / 1000 * 100) / 100;
  1083. s = s + 'km'
  1084. } else {
  1085. // 小于1000米直接返回
  1086. s = s + 'm'
  1087. }
  1088. this.distance = s;
  1089. return s;
  1090. },
  1091. space(lat1, lng1, lat2, lng2) {
  1092. console.log(lat1, lng1, lat2, lng2)
  1093. var radLat1 = lat1 * Math.PI / 180.0;
  1094. var radLat2 = lat2 * Math.PI / 180.0;
  1095. var a = radLat1 - radLat2;
  1096. var b = lng1 * Math.PI / 180.0 - lng2 * Math.PI / 180.0;
  1097. var s = 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) +
  1098. Math.cos(radLat1) * Math.cos(radLat2) * Math.pow(Math.sin(b / 2), 2)));
  1099. s = s * 6378.137;
  1100. s = Math.round(s * 10000) / 10000;
  1101. return s // 单位千米
  1102. },
  1103. carGPSIP(data) {
  1104. var map = new AMap.Map("container", {resizeEnable: true});//初始化地图
  1105. //信息窗口实例
  1106. var infoWindow = new AMap.InfoWindow({offset: new AMap.Pixel(0, -30)});
  1107. //遍历生成多个标记点
  1108. data.forEach((val, key) => {
  1109. console.log("属性:" + key + ",值:" + data.get(key));
  1110. console.log("wordAddressname".indexOf("name"));
  1111. console.log(key.includes("name"));
  1112. if (!key.includes("name")) {
  1113. var marker = new AMap.Marker({
  1114. position: data.get(key),//不同标记点的经纬度
  1115. map: map
  1116. });
  1117. marker.content = data.get(key + 'name');
  1118. marker.on('click', markerClick);
  1119. marker.emit('click', {target: marker});//默认初始化不出现信息窗体,打开初始化就出现信息窗体
  1120. }
  1121. })
  1122. function markerClick(e) {
  1123. infoWindow.setContent(e.target.content);
  1124. infoWindow.open(map, e.target.getPosition());
  1125. }
  1126. map.setFitView();
  1127. },
  1128. //选择搜索的内容
  1129. markerResult(data, nameType) {
  1130. if (nameType === 'wordAddress') {
  1131. this.model.wordAddress = data.name;
  1132. }
  1133. if (nameType === 'businessAddress') {
  1134. this.model.businessAddress = data.name;
  1135. }
  1136. if (nameType === 'currentAddress') {
  1137. this.model.currentAddress = data.name;
  1138. }
  1139. this.lnglatMaps;
  1140. console.log(data)
  1141. this.showsearchResult = false;
  1142. this.showsearchResultBusinessAddress = false;
  1143. this.showsearchcurrentAddress = false;
  1144. //this.model.wordAddress = data.name; //地点名称
  1145. var marker = new AMap.Marker({
  1146. position: [Number(data.location.lng), Number(data.location.lat)],//地点名称 坐标
  1147. });
  1148. //this.map.clearMap()// 清除所有覆盖物(点标志)
  1149. //this.map.add(marker)// 添加点标志
  1150. //this.showInfoWindow(marker);
  1151. this.lnglatMaps.set(nameType, [Number(data.location.lng), Number(data.location.lat)]);
  1152. this.lnglatMaps.set(nameType + 'name', data.name);
  1153. if (this.lnglatMaps.size > 6) {
  1154. this.lnglatMaps.clear();
  1155. }
  1156. //this.lnglats.push( [Number(data.location.lng),Number(data.location.lat)]); //添加坐标
  1157. // if (this.model.wordAddress ===null || this.model.businessAddress===null || this.model.currentAddress===null){
  1158. // return;
  1159. // }
  1160. // if (this.lnglatMaps.size===4){
  1161. this.carGPSIP(this.lnglatMaps);//各个点分别显示坐标
  1162. //}
  1163. setTimeout(() => {
  1164. this.map.setCenter(data.location);
  1165. this.map.setZoom(15);
  1166. }, 50)
  1167. let thisPosition = {
  1168. mapAddress: this.model.wordAddress,
  1169. lng: data.location.lng,
  1170. lat: data.location.lat
  1171. };
  1172. var map = new Map();
  1173. map.set("lng", data.location.lng);
  1174. map.set("lat", data.location.lat);
  1175. this.mapResultList.push(map);
  1176. console.log(data.location.lng + data.location.lat + "thisPosition")
  1177. this.$emit("select", thisPosition)
  1178. if (this.lnglatMaps.size === 6) {
  1179. var currentAddressD = this.lnglatMaps.get("currentAddress");
  1180. var wordAddressD = this.lnglatMaps.get("wordAddress");
  1181. var businessAddressD = this.lnglatMaps.get("businessAddress");
  1182. this.distance1 = this.space(currentAddressD[1], currentAddressD[0], businessAddressD[1], businessAddressD[0]);//现住地址 营业厅地址
  1183. this.distance2 = this.space(wordAddressD[1], wordAddressD[0], businessAddressD[1], businessAddressD[0]);//工作地址 营业厅地址
  1184. this.distance3 = this.space(currentAddressD[1], currentAddressD[0], wordAddressD[1], wordAddressD[0]);//现住地址 工作地址
  1185. if (parseFloat(this.distance1) > parseFloat(this.distance) || parseFloat(this.distance2) > parseFloat(this.distance) || parseFloat(this.distance3) > parseFloat(this.distance)) {
  1186. this.model.judgmentResearch = "1";
  1187. } else {
  1188. this.model.judgmentResearch = "4";
  1189. }
  1190. }
  1191. },
  1192. // 获取详细地址
  1193. getAddress(center) {
  1194. let _this = this;
  1195. let geocoder = new AMap.Geocoder({});
  1196. geocoder.getAddress(center, function (status, result) {
  1197. if (status === "complete" && result.info === "OK") {
  1198. let obj = result.regeocode.addressComponent;
  1199. let locationName =
  1200. obj.province +
  1201. obj.city +
  1202. obj.district +
  1203. obj.township +
  1204. obj.street +
  1205. obj.streetNumber;
  1206. _this.form.address = locationName;
  1207. }
  1208. });
  1209. },
  1210. initMap() {
  1211. AMapLoader.load({
  1212. key: "8e513e3c374bdb2dd0095cd337b02ee6", // 申请好的Web端开发者Key,首次调用 load 时必填
  1213. version: "2.0", // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15
  1214. plugins: [
  1215. 'AMap.ToolBar',
  1216. 'AMap.Scale',
  1217. 'AMap.Geolocation',
  1218. 'AMap.PlaceSearch',
  1219. 'AMap.AutoComplete',
  1220. 'AMap.Geocoder',
  1221. 'AMap.CitySearch',
  1222. 'AMap.RangingTool' // 这个就是测距插件
  1223. ],
  1224. resizeEnable: true,
  1225. }).then((AMap) => {
  1226. const that = this;
  1227. that.map = new AMap.Map("container", { //设置地图容器id
  1228. viewMode: "3D", //是否为3D地图模式
  1229. zoom: 12, //初始化地图级别
  1230. });
  1231. that.handleClick(AMap)//地图选点
  1232. that.map.addControl(new AMap.Scale()) // 在图面添加比例尺控件,展示地图在当前层级和纬度下的比例尺
  1233. that.map.addControl(new AMap.ToolBar()) //在图面添加鹰眼控件,在地图右下角显示地图的缩略图
  1234. that.geocoder = new AMap.Geocoder()
  1235. that.mapSearchInit()
  1236. }).catch(e => {
  1237. console.log(e);
  1238. })
  1239. },
  1240. //点击地图获取地理位置
  1241. handleClick() {
  1242. this.map.on('click', (e) => {
  1243. let lng = e.lnglat.lng
  1244. let lat = e.lnglat.lat
  1245. let marker = new AMap.Marker({
  1246. position: new AMap.LngLat(lng, lat)
  1247. })
  1248. this.map.clearMap()// 清除所有覆盖物(点标志)
  1249. this.map.add(marker)// 添加点标志
  1250. let lnglat = [lng, lat]
  1251. let that = this
  1252. that.geocoder.getAddress(lnglat, function (status, result) {
  1253. if (status === 'complete' && result.regeocode) {
  1254. that.address = result.regeocode.formattedAddress;
  1255. that.showInfoWindow(marker);//自定义信息窗体
  1256. let thisPosition = {
  1257. address: that.address,
  1258. lng: lng,
  1259. lat: lat
  1260. };
  1261. that.$emit("select", thisPosition) //返回给父组件
  1262. } else {
  1263. this.$message.error('根据经纬度查询地址失败')
  1264. }
  1265. })
  1266. })
  1267. },
  1268. //获取当前定位
  1269. getCurrentLocation() {
  1270. const that = this;
  1271. that.geolocation = new AMap.Geolocation({
  1272. timeout: 3000, //超过3秒后停止定位,默认:5s
  1273. enableHighAccuracy: true,
  1274. zoomToAccuracy: true, //定位成功后是否自动调整地图视野到定位点
  1275. });
  1276. that.geolocation.getCurrentPosition(function (status, result) {
  1277. //备注:getCurrentPosition方法会调用超时或失败:
  1278. //Get geolocation time out:浏览器定位超时,包括原生的超时,可以适当增加超时属性的设定值以减少这一现象。
  1279. //另外还有个别浏览器(如google Chrome浏览器等)本身的定位接口是黑洞,通过其请求定位完全没有回应,也会超时返回失败。
  1280. //Get geolocation failed:定位失败,Chrome、火狐以及部分套壳浏览器接入的定位服务在国外,有较大限制,失败率高。
  1281. console.log(status, result);
  1282. if (status == 'complete') {
  1283. that.onComplete(result)
  1284. } else {
  1285. that.onError(result) //失败后可使用getCityInfo获取非精准定位(具体到省市)
  1286. }
  1287. });
  1288. },
  1289. //解析定位结果
  1290. onComplete(data) {
  1291. console.log('定位结果:' + data.position) //经纬度信息
  1292. let lnglat = data.position;
  1293. let marker = new AMap.Marker({ //创建标记
  1294. position: new AMap.LngLat(lnglat[0], lnglat[1])
  1295. })
  1296. this.map.clearMap()// 清除所有覆盖物(点标志)
  1297. this.map.add(marker)// 添加点标志
  1298. let that = this
  1299. //经纬度转换为中文地址详情
  1300. that.geocoder.getAddress(lnglat, function (status, result) {
  1301. if (status === 'complete' && result.regeocode) {
  1302. that.address = result.regeocode.formattedAddress;
  1303. that.showInfoWindow(marker);//自定义信息窗体
  1304. } else {
  1305. this.$message.error('根据经纬度查询地址失败')
  1306. }
  1307. })
  1308. },
  1309. //解析定位错误信息
  1310. onError(data) {
  1311. this.getLngLatLocation()
  1312. },
  1313. //在获取具体定位失败时调用的代码:(非精准定位!!!)
  1314. getLngLatLocation() {
  1315. const that = this;
  1316. that.geolocation.getCityInfo(function (status, result) {
  1317. if (status === 'complete') {
  1318. let data = result.position
  1319. that.address = result.province + result.city;
  1320. that.showLocation(data)
  1321. } else {
  1322. this.$message.error('获取地址失败')
  1323. }
  1324. })
  1325. },
  1326. keyupInfoSelect() {
  1327. if (this.model.cardNo === '') {
  1328. return;
  1329. }
  1330. this.closeCurrent();
  1331. this.$router.push({path: '/network/PopupSub', query: {cardNo: this.model.cardNo}});
  1332. },
  1333. keyupInfoPhone(phone) {
  1334. let data = {
  1335. "number": phone
  1336. };
  1337. if (phone.length === 11) {
  1338. let data = {
  1339. "mobile": phone
  1340. };
  1341. getAction("businessReminderCard/queryByMobile", data).then((res) => {
  1342. console.log(res)
  1343. if (res != null) {
  1344. this.model.address = res;
  1345. }
  1346. })
  1347. }
  1348. },
  1349. keyupInfo() {
  1350. //身份证输入查询
  1351. if (this.model.cardNo.length === 15 || this.model.cardNo.length === 18) {
  1352. let that = this;
  1353. let data = {
  1354. "cardNo": this.model.cardNo
  1355. }
  1356. this.getPhoneTypeSize();
  1357. getAction(that.url.queryByCardNo, data).then((res) => {
  1358. if (res.success) {
  1359. let result = res.result;
  1360. let view = this.model;
  1361. if (result != null) {
  1362. for (var i in result) {
  1363. Object.keys(view).forEach(function (key) {
  1364. view[key] = result[i][key];
  1365. })
  1366. this.isSizeNumberResults = result[i]["isSizeNumberResults"];
  1367. }
  1368. if (result[i]["isSizeNumberResults"] === 'is') {
  1369. this.$confirm({
  1370. title: "确认是否继续...",
  1371. content: '该用户有多个不友好研判结果',
  1372. onOk: function () {
  1373. },
  1374. onCancel: function () {
  1375. Object.keys(view).forEach(function (key) {
  1376. view[key] = '';
  1377. })
  1378. }
  1379. });
  1380. }
  1381. }
  1382. // this.$refs.modalDetail.detail( );
  1383. // this.$refs.modalDetail.title = "详情";
  1384. }
  1385. })
  1386. }
  1387. for (var item of this.sysCompany) {
  1388. if (item.id === this.model.company) {
  1389. this.companyName = item.name
  1390. for (var it of item.sysBusinessHallList) {
  1391. if (it.id === this.model.sysBusinessHall) {
  1392. this.hallName = it.name
  1393. }
  1394. }
  1395. }
  1396. }
  1397. this.searchKeyWordsysBusinessHall(this.model.wordAddress,'wordAddress');
  1398. this.searchKeyWordsysBusinessHall('中国电信'+this.hallName,'businessAddress');
  1399. this.searchKeyWordsysBusinessHall(this.model.currentAddress,'currentAddress');
  1400. },
  1401. /**获取详情*/
  1402. queryById() {
  1403. let that = this;
  1404. let data = {
  1405. "id": that.model.id
  1406. }
  1407. getAction(that.url.queryById, data).then((res) => {
  1408. if (res.success) {
  1409. let result = res.result;
  1410. if (result != null) {
  1411. for (var i in result) {
  1412. that.model[i] = result[i] == null ? null : result[i].toString();
  1413. }
  1414. }
  1415. }
  1416. })
  1417. },
  1418. /**下一步骤*/
  1419. nextSteps() {
  1420. // if (this.current===0){
  1421. // const newDatas = [];
  1422. // let message = '';
  1423. // const h = this.$createElement
  1424. // if (this.model.cardNo==='' || this.model.cardNo===null){
  1425. // newDatas.push(h('p', null, '<身份证件号码> 不可为空... '))
  1426. //
  1427. // }
  1428. // if (this.model.cardName==='' || this.model.cardName===null){
  1429. // newDatas.push(h('p', null, '<身份证件姓名> 不可为空... '))
  1430. //
  1431. // }
  1432. // // if (this.model.idCardAddress==='' || this.model.idCardAddress===null){
  1433. // // newDatas.push(h('p', null, '<身份证件地址> 不可为空...... '))
  1434. // // message=message+ '<身份证件地址> 不可为空... '+<br/>
  1435. // // }
  1436. // if (this.model.cardStartTime===''|| this.model.cardStartTime===null){
  1437. // newDatas.push(h('p', null, '<身份证件开始时间> 不可为空... '))
  1438. // }
  1439. // if (this.model.cardEndTime==='' || this.model.cardEndTime===null){
  1440. // newDatas.push(h('p', null, '<身份证件截止日期> 不可为空... '))
  1441. // }
  1442. // if (this.model.phone==='' ||this.model.phone===null){
  1443. // newDatas.push(h('p', null, '<拨测联系电话> 不可为空... '))
  1444. // }
  1445. // if (this.model.address===''|| this.model.address===null){
  1446. // newDatas.push(h('p', null, '<联电归属地> 不可为空... '))
  1447. // }
  1448. // // if (this.model.useLife==='' || this.model.useLife===null){
  1449. // // newDatas.push(h('p', null, '<号码使用年限> 不可为空... '))
  1450. // // }
  1451. // if (this.model.phonePurpose==='' || this.model.phonePurpose===null){
  1452. // newDatas.push(h('p', null, '<号码使用用途> 不可为空... '))
  1453. // }
  1454. // // if (this.model.idCardAddress==='' ||this.model.idCardAddress=== null){
  1455. // // newDatas.push(h('p', null, '<证件地址(到村/小区)> 不可为空... '))
  1456. // // }
  1457. // if (this.model.currentAddress==='' || this.model.currentAddress===null){
  1458. // newDatas.push(h('p', null, '<现住地址(到村/小区)> 不可为空... '))
  1459. // }
  1460. // if (this.model.operator==='' || this.model.operator===null){
  1461. // newDatas.push(h('p', null, '<客户现用号码> 不可为空... '))
  1462. // }
  1463. // if (this.model.operatorType==='' || this.model.operatorType===null){
  1464. // newDatas.push(h('p', null, '<运营商类型> 不可为空... '))
  1465. // }
  1466. // if (this.model.calltestResults==='' ||this.model.calltestResults===null){
  1467. // newDatas.push(h('p', null, '<拨测结果> 不可为空... '))
  1468. // }
  1469. // // if (this.model.positionInformation==='' || this.model.positionInformation===null){
  1470. // // newDatas.push(h('p', null, '<位置信息> 不可为空... '))
  1471. // // }
  1472. // if (this.model.wordAddress===''|| this.model.wordAddress===null){
  1473. // newDatas.push(h('p', null, '<工作地址> 不可为空... '))
  1474. // }
  1475. // if (this.model.businessAddress===''|| this.model.businessAddress===null){
  1476. // newDatas.push(h('p', null, '<营业厅地址> 不可为空... '))
  1477. // }
  1478. // if (newDatas.length!==0){
  1479. // this.$confirm({
  1480. // title: "入网提示卡页签有未输入值...",
  1481. // content: h('div', null, newDatas),
  1482. // // message: h('div', null, newDatas),
  1483. // onOk: function () {
  1484. //
  1485. // },
  1486. // onCancel:function (){
  1487. //
  1488. // }
  1489. // });
  1490. // return;
  1491. // }
  1492. // }
  1493. if (this.current === 1) {
  1494. let that = this;
  1495. console.info(this.model.calltestResults);
  1496. that.addIng == false
  1497. let data = this.getData();
  1498. let id = that.model.id;
  1499. let i = 1;
  1500. let dataMessage = '';
  1501. const h = this.$createElement
  1502. this.newDatas = [];
  1503. if (this.model.calltestResults === 1 || this.model.calltestResults === '1') {
  1504. this.calltestResultsName = '关机';
  1505. }
  1506. if (this.model.calltestResults === 2 || this.model.calltestResults === '2') {
  1507. this.calltestResultsName = '未接通';
  1508. }
  1509. if (this.model.calltestResults === 3 || this.model.calltestResults === '3') {
  1510. this.calltestResultsName = '可接通不知晓入网事宜';
  1511. }
  1512. if (this.model.calltestResults === 4 || this.model.calltestResults === '4') {
  1513. this.calltestResultsName = '可接通认可办理';
  1514. }
  1515. //集合遍历
  1516. var company = '';
  1517. var hall = '';
  1518. for (var item of this.sysCompany) {
  1519. if (item.id === this.model.company) {
  1520. this.companyName = item.name
  1521. for (var it of item.sysBusinessHallList) {
  1522. if (it.id === this.model.sysBusinessHall) {
  1523. this.hallName = it.name
  1524. }
  1525. }
  1526. }
  1527. }
  1528. this.newDatas.push('异常信息提醒:')
  1529. if (data["calltestResults"] === '2') {
  1530. this.newDatas.push(i++ + '、该用户拨测号码未接通 请确认是否继续操作 。 ')
  1531. }
  1532. if ( data["judgmentResearch"] === '3' ) {
  1533. this.newDatas.push(i++ + '、该用户附件地址人工判研异常 。 ')
  1534. }
  1535. if (data["calltestResults"] === '1') {
  1536. this.newDatas.push(i++ + '、该用户拨测号码关机 请确认是否继续操作 。 ')
  1537. }
  1538. if (this.isSizeNumberResults === 'is') {
  1539. this.newDatas.push(i++ + ' 、该用户有多个不友好研判结果 请确认是否继续操作 。 ')
  1540. }
  1541. if (data["judgmentResearch"] === '1' ) {
  1542. if (parseFloat(this.distance1) > parseFloat(this.distance)) {
  1543. this.newDatas.push(i++ + ' 、该用户现住地址(到村/小区),营业厅地址 距离过远 请确认是否继续操作 。 ')
  1544. }
  1545. if (parseFloat(this.distance2) > parseFloat(this.distance)) {
  1546. this.newDatas.push(i++ + ' 、该用户 工作地址 , 营业厅地址 距离过远 请确认是否继续操作 。 ')
  1547. }
  1548. if (parseFloat(this.distance3) > parseFloat(this.distance)) {
  1549. this.newDatas.push(i++ + ' 、该用户现住地址(到村/小区),工作地址距离过远 请确认是否继续操作 。 ')
  1550. }
  1551. }
  1552. if (this.newDatas.length === 1) {
  1553. //newDatas.push(h('p', null, i++ +'、 暂无风险提示 请继续操作。 '))
  1554. } else {
  1555. this.showInfo = true;
  1556. //document.getElementById('showInfo').innerHTML = h('div', null, this.newDatas)
  1557. // this.$confirm({
  1558. // okText: '继续操作',
  1559. // cancelText: '终止操作',
  1560. // title: "确认是否继续",
  1561. // content: h('div', null, newDatas),
  1562. // onOk: function () {
  1563. //
  1564. // } ,
  1565. // onCancel:function (){
  1566. // data['status']="0";//中断提交
  1567. // that.submit(data,id)
  1568. // }
  1569. // });
  1570. }
  1571. }
  1572. if (this.current < this.steps.length) {
  1573. this.current = this.current + 1;
  1574. }
  1575. },
  1576. /**上一步骤*/
  1577. prevSteps() {
  1578. if (this.current != 0) {
  1579. this.current = this.current - 1;
  1580. }
  1581. },
  1582. getData() {
  1583. var arr = '';
  1584. if (this.model.numberResults === "undefined") {
  1585. arr = this.model.numberResults.join(",");
  1586. }
  1587. let data = {
  1588. "sysBusinessHall": this.model.sysBusinessHall,
  1589. "company": this.model.company,
  1590. //用户id
  1591. "id": this.model.id,
  1592. //联电归属地
  1593. "address": this.model.address,
  1594. //拨测联系电话
  1595. "phone": this.model.phone,
  1596. //拨测结果
  1597. "calltestResults": this.model.calltestResults,
  1598. //证件地址
  1599. "idCardAddress": this.model.idCardAddress,
  1600. //现住地址
  1601. "currentAddress": this.model.currentAddress,
  1602. //现用号码运营商
  1603. "operator": this.model.operator,
  1604. //现用号码运营商类型
  1605. "operatorType": this.model.operatorType,
  1606. //现用号码运营商类型备注
  1607. "operatorTypeNote": this.model.operatorTypeNote,
  1608. //现用号码使用年限
  1609. "useLife": this.model.useLife,
  1610. //现用号码使用用途
  1611. "phonePurpose": this.model.phonePurpose,
  1612. //客户名下无电信号码
  1613. "isDxNumber": this.model.isDxNumber,
  1614. //客户名下无电信号码备注
  1615. "isDxNumberNote": this.model.isDxNumberNote,
  1616. //申请号码办理征信类、融合宽带业务
  1617. "isBroadband": this.model.isBroadband,
  1618. //申请号码办理征信类、融合宽带业务备注
  1619. "isBroadbandNote": this.model.isBroadbandNote,
  1620. //申请号码使用用途异常
  1621. "isUseTo": this.model.isUseTo,
  1622. //申请号码使用用途异常备注
  1623. "isUseToNote": this.model.isUseToNote,
  1624. //客户名下号码存在异常高频率充值、退费
  1625. "isRefund": this.model.isRefund,
  1626. //客户名下号码存在异常高频率充值、退费备注
  1627. "isRefundNote": this.model.isRefundNote,
  1628. //客户名下已有号码(含已注销号码)存在各类关停
  1629. "isShutDown": this.model.isShutDown,
  1630. //客户名下已有号码(含已注销号码)存在各类关停备注
  1631. "isShutDownNote": this.model.isShutDownNote,
  1632. //客户名下在用号码无使用记录,仍要求新办号码
  1633. "isNewly": this.model.isNewly,
  1634. //客户名下在用号码无使用记录,仍要求新办号码备注
  1635. "isNewlyNote": this.model.isNewlyNote,
  1636. //在多个渠道多频次入网的异常情况
  1637. "isChannel": this.model.isChannel,
  1638. //在多个渠道多频次入网的异常情况备注
  1639. "isChannelNote": this.model.isChannelNote,
  1640. //黑名单到期客户新入网的高危疑似涉诈号码
  1641. "isInvolvingFraud": this.model.isInvolvingFraud,
  1642. //黑名单到期客户新入网的高危疑似涉诈号码备注
  1643. "isInvolvingFraudNote": this.model.isInvolvingFraudNote,
  1644. //是否将高危号码上报蓝、紫名单或不可复开关停
  1645. "numberResults": arr,
  1646. "cardNo": this.model.cardNo,
  1647. "cardName": this.model.cardName,
  1648. "cardStartTime": this.model.cardStartTime,
  1649. "endStartTime": this.model.endStartTime,
  1650. "wordAddress": this.model.wordAddress,
  1651. "businessAddress": this.model.businessAddress,
  1652. "positionInformation": this.model.positionInformation,
  1653. "status": '',
  1654. "judgmentResearch":this.model.judgmentResearch
  1655. };
  1656. return data;
  1657. },
  1658. submit(data, id) {
  1659. let mes = '提交成功';
  1660. if (data["status"] === '0') {
  1661. mes = "终止操作 数据保存成功! "
  1662. }
  1663. if (id == null) {
  1664. postAction("/businessReminderCard/add", data).then((res) => {
  1665. if (res.success) {
  1666. this.clearModel()
  1667. this.$message.success(mes, 7);
  1668. this.addIng == true
  1669. } else {
  1670. this.$message.error("提交失败");
  1671. this.addIng == true;
  1672. }
  1673. })
  1674. } else {
  1675. postAction("/businessReminderCard/editById", data).then((res) => {
  1676. if (res.success) {
  1677. this.clearModel()
  1678. this.$message.success(mes, 7);
  1679. this.addIng == true
  1680. this.$router.go(-1);
  1681. this.closeCurrent();
  1682. } else {
  1683. this.$message.error("修改失败");
  1684. this.addIng == true;
  1685. }
  1686. })
  1687. }
  1688. },
  1689. //继续操作
  1690. continueOperation() {
  1691. this.showInfo = false;
  1692. },
  1693. //终止操作
  1694. terminatingOperation() {
  1695. let data = this.getData();
  1696. data['status'] = "0";//中断提交
  1697. this.showInfo = false;
  1698. this.submit(data, this.model.id)
  1699. },
  1700. /**新增*/
  1701. submitBusiness() {
  1702. let that = this;
  1703. that.addIng == false
  1704. let data = this.getData();
  1705. let id = that.model.id;
  1706. let i = 1;
  1707. let dataMessage = '';
  1708. const h = this.$createElement
  1709. const newDatas = [];
  1710. data['status'] = "1";//确认提交
  1711. this.submit(data, id)
  1712. // if( data["calltestResults"] ==='2'){
  1713. // newDatas.push(h('p', null, i++ +'、该用户拨测号码未接通 请确认风险 。 '))
  1714. //
  1715. // }if(this.isSizeNumberResults==='is' ){
  1716. // newDatas.push(h('p', null, i++ +' 、该用户有多个不友好研判结果 请确认风险 。 '))
  1717. //
  1718. // }if(this.isSizeNumberResults==='is' ){
  1719. // newDatas.push(h('p', null, i++ +' 、该用户现住地址(到村/小区),工作地址,营业厅地址距离过远 请确认风险 。 '))
  1720. //
  1721. // }else{
  1722. // newDatas.push(h('p', null, i++ +' 暂无风险提示 请继续。 '))
  1723. // }
  1724. //
  1725. // this.$confirm({
  1726. // title: "确认是否继续提交",
  1727. // content: h('div', null, newDatas),
  1728. // onOk: function () {
  1729. // if (id == null){
  1730. // postAction("/businessReminderCard/add", data).then((res) => {
  1731. // if (res.success) {
  1732. // that.clearModel()
  1733. // that.$message.success("提交成功", 7);
  1734. // that.addIng == true
  1735. // } else {
  1736. // that.$message.error("提交失败");
  1737. // that.addIng == true;
  1738. // }
  1739. // })
  1740. // }else {
  1741. // postAction("/businessReminderCard/editById", data).then((res) => {
  1742. // if (res.success) {
  1743. // that.clearModel()
  1744. // this.$message.success("修改成功", 7);
  1745. // that.addIng == true
  1746. // this.$router.go(-1);
  1747. // this.closeCurrent();
  1748. // } else {
  1749. // this.$message.error("修改失败");
  1750. // that.addIng == true;
  1751. // }
  1752. // })
  1753. //
  1754. // }
  1755. // }
  1756. // });
  1757. },
  1758. /**充值表单*/
  1759. clearModel() {
  1760. this.model = {}
  1761. this.current = 0;
  1762. },
  1763. },
  1764. }
  1765. </script>
  1766. <style scoped>
  1767. .is-error {
  1768. border-color: red
  1769. }
  1770. .box {
  1771. margin: 0;
  1772. padding: 0;
  1773. }
  1774. .redInfo {
  1775. display: inline-block;
  1776. margin-right: 4px;
  1777. color: #f5222d;
  1778. font-size: 14px;
  1779. font-family: SimSun, sans-serif;
  1780. line-height: 1;
  1781. content: '*';
  1782. }
  1783. </style>