userStatistics.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783
  1. <template>
  2. <div>
  3. <a-card :bordered="false">
  4. <div>
  5. <!-- <a-tabs v-has="'user:userStatistics:tab'" :active-key="currentTab" default-active-key="all"-->
  6. <!-- @change="tabChange">-->
  7. <!-- <a-tab-pane key="all" :tab="tabAll"></a-tab-pane>-->
  8. <!-- <a-tab-pane key="undo" :tab="tabUndo"></a-tab-pane>-->
  9. <!-- <a-tab-pane key="uncheck" :tab="tabUncheck"></a-tab-pane>-->
  10. <!-- <a-tab-pane key="checked" :tab="tabChecked"></a-tab-pane>-->
  11. <!-- </a-tabs>-->
  12. <!-- <a-tabs v-has="'admin:userStatistics:tab'" :active-key="currentTab" default-active-key="all"-->
  13. <!-- @change="tabChange">-->
  14. <!-- <a-tab-pane key="all" :tab="tabAll"></a-tab-pane>-->
  15. <!-- <a-tab-pane key="undo" :tab="tabUndo"></a-tab-pane>-->
  16. <!-- <a-tab-pane key="uncheck" :tab="tabUncheck"></a-tab-pane>-->
  17. <!-- <a-tab-pane key="checked" :tab="tabChecked"></a-tab-pane>-->
  18. <!-- <a-tab-pane key="del" :tab="tabDelCheck"></a-tab-pane>-->
  19. <!-- </a-tabs>-->
  20. </div>
  21. <!-- 查询区域 -->
  22. <div class="table-page-search-wrapper">
  23. <a-form layout="inline" @keyup.enter.native="searchQuery">
  24. <a-row :gutter="24">
  25. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  26. <a-form-item label="客户名称">
  27. <j-input placeholder="请输入客户名称" v-model="queryParam.cardName"></j-input>
  28. </a-form-item>
  29. </a-col>
  30. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  31. <a-form-item label="证件编号">
  32. <j-input placeholder="请输入证件编号" v-model="queryParam.cardNo"></j-input>
  33. </a-form-item>
  34. </a-col>
  35. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  36. <a-form-item label="创建人营业厅地址">
  37. <j-input placeholder="请输入营业厅地址" v-model="queryParam.businessAddress"></j-input>
  38. </a-form-item>
  39. </a-col>
  40. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  41. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  42. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  43. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
  44. <a @click="handleToggleSearch" style="margin-left: 8px">
  45. {{ toggleSearchStatus ? '收起' : '展开' }}
  46. <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
  47. </a>
  48. </span>
  49. </a-col>
  50. </a-row>
  51. <template v-if="toggleSearchStatus">
  52. <a-row :gutter="24">
  53. <a-col :span="6">
  54. <a-form-model-item label=" 判研结果 " :labelCol="{ span:5}" :wrapperCol="{ span: 8 }">
  55. <a-select placeholder="请选择判研结果" v-model="queryParam.numberResults" >
  56. <a-select-option v-for="item in optionsWithDisabled" :value="item.value">
  57. {{ item.text }}
  58. </a-select-option>
  59. </a-select>
  60. </a-form-model-item>
  61. </a-col>
  62. <a-col :span="6">
  63. <a-form-item label=" 办理电话 " :labelCol="{ span:5}" :wrapperCol="{ span: 8 }">
  64. <j-input placeholder="请输入办理电话" v-model="queryParam.newPhone"></j-input>
  65. </a-form-item>
  66. </a-col>
  67. <a-col :span="6">
  68. <a-form-item label=" 创建人 " :labelCol="{ span:5}" :wrapperCol="{ span: 8 }">
  69. <j-input placeholder="请输入创建人" v-model="queryParam.createBy"></j-input>
  70. </a-form-item>
  71. </a-col>
  72. </a-row>
  73. <a-row>
  74. <a-col :span="11" >
  75. <a-form-item label="创建时间" prop="industry" :labelCol="{ span:9}" :wrapperCol="{ span: 10 }">
  76. <j-date :show-time="true" date-format="YYYY-MM-DD" placeholder="请选择开始时间" class="query-group-cust"
  77. id ="cardStartTime" v-model="queryParam.createDateStart" ></j-date>
  78. <span class="query-group-split-cust"></span>
  79. <j-date :show-time="true" date-format="YYYY-MM-DD" placeholder="请选择结束时间" class="query-group-cust"
  80. id="cardEndTime" v-model="queryParam.createDateEnd" ></j-date>
  81. </a-form-item>
  82. </a-col>
  83. </a-row>
  84. </template>
  85. </a-form>
  86. </div>
  87. <!-- 操作按钮区域 -->
  88. <div class="table-operator">
  89. <a-button type="primary" icon="download" @click="handleExportXls('入网统计')">导出</a-button>
  90. <!-- 高级查询区域 -->
  91. <a-dropdown v-if="selectedRowKeys.length > 0">
  92. <a-menu slot="overlay">
  93. <a-menu-item key="1" @click="batchDel" v-has="'access:check:list:delete'">
  94. <a-icon type="delete"/>
  95. 删除
  96. </a-menu-item>
  97. </a-menu>
  98. <!-- <a-button style="margin-left: 8px"> 批量操作-->
  99. <!-- <a-icon type="down"/>-->
  100. <!-- </a-button>-->
  101. </a-dropdown>
  102. </div>
  103. <!-- table区域-begin -->
  104. <div>
  105. <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
  106. <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a
  107. style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
  108. <a style="margin-left: 24px" @click="onClearSelected">清空</a>
  109. </div>
  110. <a-table
  111. ref="table"
  112. size="middle"
  113. :scroll="{x:true}"
  114. bordered
  115. rowKey="id"
  116. :columns="columns"
  117. :dataSource="dataSource"
  118. :pagination="ipagination"
  119. :loading="loading"
  120. :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
  121. class="j-table-force-nowrap"
  122. @change="handleTableChange">
  123. <template slot="action" slot-scope="text, record">
  124. <div>
  125. <span v-has="'userStatistics:list:update'" v-show=" currentTab != 'del'">
  126. <a @click="showImproveAndUpload(record)">修改</a>
  127. <a-divider type="vertical"/>
  128. </span>
  129. <span v-has="'userStatistics:list:update:admin'" v-show=" currentTab != 'del'">
  130. <a @click="showImproveAndUploadAdmin(record)">修改</a>
  131. <a-divider type="vertical"/>
  132. </span>
  133. <span v-has="'userStatistics:list:notice'" v-show=" currentTab != 'del'">
  134. <a @click="noticeDeal(record)">通知</a>
  135. <a-divider type="vertical"/>
  136. </span>
  137. <span v-has="'userStatistics:list:restore:id'" v-show=" currentTab == 'del'">
  138. <a @click="restoreById(record)">恢复</a>
  139. <a-divider type="vertical"/>
  140. </span>
  141. <span v-has="'userStatistics:list:remove:id'" v-show=" currentTab == 'del'">
  142. <a @click="removeById(record)">彻底删除</a>
  143. <a-divider type="vertical"/>
  144. </span>
  145. <!-- <a-dropdown v-show =" currentTab != 'del'">-->
  146. <!-- <a class="ant-dropdown-link">更多-->
  147. <!-- <a-icon type="down"/>-->
  148. <!-- </a>-->
  149. <!-- <a-menu slot="overlay">-->
  150. <!-- <a-menu-item v-has="'del:userStatistics:list:row:delete'">-->
  151. <!-- <a @click="delFlagById(record)">删除</a>-->
  152. <!-- </a-menu-item>-->
  153. <!-- </a-menu>-->
  154. <!-- </a-dropdown>-->
  155. </div>
  156. </template>
  157. <template v-slot:createBy="text, record">
  158. <a @click="showByCreateBy(record)">{{text}}</a>
  159. </template>
  160. <template v-slot:sysBusinessHall="text, record">
  161. <div>{{getSysCompany(text)}}</div>
  162. </template>
  163. <template v-slot:cardNo="text, record">
  164. <a @click="showByCardNo(record)">{{text}}</a>
  165. </template>
  166. <template v-slot:cardName="text, record">
  167. <a @click="showByCardName(record)">{{text}}</a>
  168. </template>
  169. <template v-slot:phone="text, record">
  170. <a @click="showByPhone(record)">{{text}}</a>
  171. </template>
  172. <template v-slot:numberResults="text, record">
  173. <a-badge :status="text | statusTypeFilter" :text="text | statusFilter"/>
  174. </template>
  175. <template v-slot:newPhone="text, record">
  176. <div>{{newPhone(text)}}</div>
  177. </template>
  178. <template v-slot:newBusinessAddress="text, record">
  179. <div>{{getSysCompany(text)}}</div>
  180. </template>
  181. <template v-slot:rowIndex="text,records,index">
  182. {{ (ipagination.current - 1) * ipagination.pageSize + Number(index) + 1 }}
  183. </template>
  184. </a-table>
  185. </div>
  186. </a-card>
  187. </div>
  188. </template>
  189. <script>
  190. import {getAction, postAction,deleteAction} from "@api/manage";
  191. import {JeecgListMixin} from '@/mixins/JeecgListMixin'
  192. import '@/assets/less/TableExpand.less'
  193. export default {
  194. name: "userStatistics",
  195. mixins: [JeecgListMixin],
  196. inject: ['closeCurrent'],
  197. data() {
  198. return {
  199. optionsWithDisabled:
  200. [{
  201. text: '非高危',
  202. value: '1',
  203. }, {
  204. text: '已报关停',
  205. value: '2',
  206. }, {
  207. text: '已报蓝名单',
  208. value: '3',
  209. },{
  210. text: '已报紫名单',
  211. value: '4',
  212. }],
  213. company:'',
  214. sysCompany: [],
  215. ipagination:{
  216. current: 1,
  217. pageSize: 10,
  218. pageSizeOptions: ['10', '20', '30','300'],
  219. showTotal: (total, range) => {
  220. return range[0] + "-" + range[1] + " 共" + total + "条"
  221. },
  222. showQuickJumper: true,
  223. showSizeChanger: true,
  224. total: 0
  225. },
  226. numberResults: null,
  227. /**统计标签*/
  228. currentTab: 'all',
  229. tabAll: '全部(0)',
  230. tabUndo: '非高危(0)',
  231. tabUncheck: '已报蓝紫名单(0)',
  232. tabChecked: '已报关停(0)',
  233. tabDelCheck: "已删除(0)",
  234. allCount: 0,
  235. tabUndoCount: 0,
  236. tabUncheckCount: 0,
  237. tabCheckedCount: 0,
  238. delCount: 0,
  239. /* table选中keys*/
  240. selectedRowKeys: [],
  241. /* table选中records*/
  242. selectionRows: [],
  243. /* 查询条件-请不要在queryParam中声明非字符串值的属性 */
  244. queryParam: {},
  245. url: {
  246. getCompany: "/sysCompany/list",
  247. typeCount: "/businessReminderCard/type/count",
  248. list: "/businessReminderCard/list",
  249. delete: "/businessReminderCard/delete/flagById",
  250. removeById: "/businessReminderCard/deleteById",
  251. restoreById: "/businessReminderCard/restoreById",
  252. notice: "/smsCheck/customerInfo/notice",
  253. exportXlsUrl: "/businessReminderCard/exportXls",
  254. },
  255. /**表单
  256. * 入网用户统计:身份证号/姓名/办理电话/创建人/创建人所属营业厅/更新人/更新人营业厅/研判结果/
  257. * */
  258. columns: [
  259. {
  260. title: '#',
  261. dataIndex: '',
  262. key: 'rowIndex',
  263. width: 60,
  264. align: "center",
  265. scopedSlots: {customRender: 'rowIndex'}
  266. },
  267. {
  268. title: '证件编号',
  269. align: "center",
  270. sorter: true,
  271. dataIndex: 'cardNo',
  272. scopedSlots: {customRender: 'cardNo'}
  273. }, {
  274. title: '客户名称',
  275. align: "center",
  276. sorter: true,
  277. dataIndex: 'cardName'
  278. // scopedSlots: {customRender: 'cardName'}
  279. }, {
  280. title: '创建人',
  281. align: "center",
  282. sorter: true,
  283. dataIndex: 'createBy'
  284. // scopedSlots: {customRender: 'createBy'}
  285. }, {
  286. title: '创建时间',
  287. align: "center",
  288. sorter: true,
  289. dataIndex: 'createTime'
  290. }, {
  291. title: '创建人营业厅地址',
  292. align: "center",
  293. sorter: true,
  294. dataIndex: 'businessAddress'
  295. //scopedSlots: {customRender: 'sysBusinessHall'}
  296. }, {
  297. title: '更新人',
  298. align: "center",
  299. sorter: true,
  300. dataIndex: 'updateBy'
  301. }, {
  302. title: '更新人营业厅',
  303. align: "center",
  304. sorter: true,
  305. dataIndex: 'newBusinessAddress'
  306. //scopedSlots: {customRender: 'newBusinessAddress'}
  307. // },
  308. // {
  309. // title: '拨测联系电话',
  310. // align: "center",
  311. // sorter: true,
  312. // dataIndex: 'phone',
  313. // scopedSlots: {customRender: 'phone'}
  314. // /* customRender: function (text, record, index) {
  315. // return "<span style='color: #1890FF'>{{text}}</span>"
  316. // }*/
  317. // },
  318. // {
  319. // title: '拨测结果',
  320. // align: "center",
  321. // sorter: true,
  322. // dataIndex: 'calltestResults',
  323. // customRender: function (text, record, index) {
  324. // if (text === '1') {
  325. // return '关机';
  326. // } else if (text === '2') {
  327. // return '未接通';
  328. // } else if (text === '3') {
  329. // return '可接通不知晓入网事宜';
  330. // } else if (text === '4') {
  331. // return '可接通认可办理';
  332. // }
  333. // return '';
  334. // }
  335. // },
  336. // {
  337. // title: '现用号码运营商',
  338. // align: "center",
  339. // dataIndex: 'operator',
  340. // customRender: function (text, record, index) {
  341. // if (text === '1') {
  342. // return '本地运营商';
  343. // } else if (text === '2') {
  344. // return '异地运营商';
  345. // }
  346. // return ''
  347. // }
  348. // },
  349. // {
  350. // title: '现用号码运营商类型',
  351. // align: "center",
  352. // dataIndex: 'operatorType',
  353. // customRender: function (text, record, index) {
  354. // if (text === '1') {
  355. // return '移动';
  356. // } else if (text === '2') {
  357. // return '联通';
  358. // } else if (text === '3') {
  359. // return '电信';
  360. // } else if (text === '4') {
  361. // return '其他';
  362. // }
  363. // return ''
  364. // }
  365. // },
  366. // {
  367. // title: '现用号码使用年限',
  368. // align: "center",
  369. // sorter: true,
  370. // dataIndex: 'useLife'
  371. // },
  372. // {
  373. // title: '客户名下有无电信号码',
  374. // align: "center",
  375. // dataIndex: 'isDxNumber',
  376. // customRender: function (text, record, index) {
  377. // if (text == '1') {
  378. // return '有';
  379. // } else if (text == '2') {
  380. // return '无';
  381. // }
  382. // return '';
  383. // }
  384. // },
  385. // {
  386. // title: '创建人',
  387. // align: "center",
  388. // dataIndex: 'createBy'
  389. // },
  390. // {
  391. // title: '创建时间',
  392. // align: "center",
  393. // sorter: true,
  394. // dataIndex: 'createTime'
  395. // },
  396. // {
  397. // title: '更新人',
  398. // align: "center",
  399. // dataIndex: 'updateBy'
  400. // },
  401. // {
  402. // title: '更新使时间',
  403. // align: "center",
  404. // sorter: true,
  405. // dataIndex: 'updateTime'
  406. // },
  407. }, {
  408. title: '办理电话',
  409. align: "center",
  410. sorter: true,
  411. width: 200,
  412. dataIndex: 'newPhone',
  413. scopedSlots: {customRender: 'newPhone'}
  414. },
  415. {
  416. title: '研判结果',
  417. align: "center",
  418. sorter: true,
  419. dataIndex: 'numberResults',
  420. scopedSlots: {customRender: 'numberResults'}
  421. /*customRender: function (text, record, index) {
  422. if (text == '1') {
  423. return '非高危';
  424. } else if (text == '2') {
  425. return '已报蓝紫名单';
  426. } else if (text == '3') {
  427. return '已报关停';
  428. }
  429. return '';
  430. }*/
  431. },
  432. {
  433. title: '操作',
  434. dataIndex: 'action',
  435. align: "center",
  436. scopedSlots: {customRender: 'action'}
  437. }
  438. ],
  439. }
  440. },
  441. filters: {
  442. statusTypeFilter(type) {
  443. const statusTypeMap = {
  444. '1': 'success',
  445. '2': 'processing',
  446. '3': 'warning',
  447. '4': 'warning',
  448. '3,4': 'warning',
  449. '4,3': 'warning',
  450. }
  451. return statusTypeMap[type]
  452. },
  453. statusFilter(status) {
  454. const statusMap = {
  455. '1': '非高危',
  456. '2': '已报关停',
  457. '3': '已报蓝名单',
  458. '4': '已报紫名单',
  459. '3,4':'已报蓝/紫名单',
  460. '4,3':'已报蓝/紫名单',
  461. }
  462. return statusMap[status]
  463. }
  464. },
  465. created() {
  466. /**获取研判结果统计数*/
  467. this.typeCount();
  468. this.getSysCompanyData();
  469. },
  470. methods: {
  471. getSysCompanyData(){
  472. let data = {
  473. };
  474. getAction(this.url.getCompany, data).then((res) => {
  475. if (res.success) {
  476. let result = res.result;
  477. console.log(result + "result");
  478. if (result != null) {
  479. this.sysCompany = result;
  480. }
  481. }
  482. })
  483. },
  484. getSysCompany(id) {
  485. for (var item of this.sysCompany) {
  486. for (var it of item.sysBusinessHallList) {
  487. if (it.id === id) {
  488. return it.name
  489. }
  490. }
  491. }
  492. },
  493. newPhone(newPhones){
  494. var phone='';
  495. newPhones = newPhones.split(',');
  496. for (var item of newPhones) {
  497. if (item.match(RegExp('newPhone1+')) && item.replace('newPhone1+','')!==''){
  498. phone=item.replace('newPhone1+','')
  499. }
  500. if (item.match(RegExp('newPhone2+'))&& item.replace('newPhone2+','')!==''){
  501. phone+=item.replace('newPhone2+',' ')
  502. }
  503. if (item.match(RegExp('newPhone3+'))&& item.replace('newPhone3+','')!==''){
  504. phone+=item.replace('newPhone3+',' ')
  505. }
  506. if (item.match(RegExp('newPhone4+'))&& item.replace('newPhone4+','')!==''){
  507. phone+=item.replace('newPhone4+',' ')
  508. }
  509. if (item.match(RegExp('newPhone5+'))&& item.replace('newPhone5+','')!==''){
  510. phone+=item.replace('newPhone5+',' ')
  511. }
  512. }
  513. return phone
  514. },
  515. showByCreateBy(record){
  516. let queryParam = {
  517. "createBy":record.createBy,
  518. "cardNo":this.queryParam.cardNo,
  519. "cardName":this.queryParam.cardName,
  520. "newPhone":this.queryParam.newPhone,
  521. "createDateStart":this.queryParam.createDateStart,
  522. "createDateEnd":this.queryParam.createDateEnd,
  523. "sysBusinessHall":this.queryParam.sysBusinessHall
  524. }
  525. this.loadData(null,queryParam);
  526. this.selectedRowKeys = [];
  527. this.selectionRows = [];
  528. },
  529. showByBusinessAddresse(record){
  530. let queryParam = {
  531. "businessAddress":record.businessAddress,
  532. "cardNo":this.queryParam.cardNo,
  533. "cardName":this.queryParam.cardName,
  534. "newPhone":this.queryParam.newPhone,
  535. "createDateStart":this.queryParam.createDateStart,
  536. "createDateEnd":this.queryParam.createDateEnd
  537. }
  538. this.loadData(null,queryParam);
  539. this.selectedRowKeys = [];
  540. this.selectionRows = [];
  541. },
  542. showByPhone(record){
  543. let queryParam = {
  544. "phone":record.phone,
  545. "cardNo":this.queryParam.cardNo,
  546. "cardName":this.queryParam.cardName,
  547. "newPhone":this.queryParam.newPhone,
  548. "createDateStart":this.queryParam.createDateStart,
  549. "createDateEnd":this.queryParam.createDateEnd,
  550. "sysBusinessHall":this.queryParam.sysBusinessHall
  551. }
  552. this.loadData(null,queryParam);
  553. this.selectedRowKeys = [];
  554. this.selectionRows = [];
  555. },
  556. showByCardNo(record){
  557. // let queryParam = {
  558. // "cardNo":record.cardNo,
  559. // "cardName":this.queryParam.cardName
  560. // }
  561. // this.loadData(null,queryParam);
  562. // this.selectedRowKeys = [];
  563. // this.selectionRows = [];
  564. // this.$router.go({
  565. // path:'/networkAccess/registration',
  566. // query: {
  567. // close:true
  568. // }
  569. // })
  570. this.$router.push({path: '/networkAccess/registrationSelect', query: {id: record.id,cardNo: record.cardNo,isDisabled:true}});
  571. },
  572. showByCardName(record){
  573. let queryParam = {
  574. "cardNo":this.queryParam.cardNo,
  575. "cardName":record.cardName,
  576. "newPhone":this.queryParam.newPhone,
  577. "createDateStart":this.queryParam.createDateStart,
  578. "createDateEnd":this.queryParam.createDateEnd,
  579. "sysBusinessHall":this.queryParam.sysBusinessHall
  580. }
  581. this.loadData(null,queryParam);
  582. this.selectedRowKeys = [];
  583. this.selectionRows = [];
  584. },
  585. /**标签监听*/
  586. tabChange(key) {
  587. this.url.list = "/businessReminderCard/list"
  588. if (key == "all") {
  589. this.numberResults = null;
  590. this.queryParam.numberResults_MultiString = this.numberResults;
  591. this.currentTab = 'all';
  592. } else if (key == "undo") {
  593. this.numberResults = "1";
  594. this.queryParam.numberResults_MultiString = this.numberResults;
  595. this.currentTab = 'undo';
  596. } else if (key == "uncheck") {
  597. this.numberResults = "2";
  598. this.queryParam.numberResults_MultiString = this.numberResults;
  599. this.currentTab = 'uncheck';
  600. } else if (key == "checked") {
  601. this.numberResults = "3";
  602. this.queryParam.numberResults_MultiString = this.numberResults;
  603. this.currentTab = 'checked';
  604. } else if (key == "del") {
  605. this.numberResults = null
  606. this.url.list = '/businessReminderCard/delete/list'
  607. this.queryParam.numberResults_MultiString = this.numberResults;
  608. this.currentTab = 'del';
  609. }
  610. this.loadData(1);
  611. },
  612. searchQuery() {
  613. this.loadData(1);
  614. this.selectedRowKeys = [];
  615. this.selectionRows = [];
  616. //this.loadTabNumber(this.task.id);
  617. },
  618. /**统计数量*/
  619. typeCount() {
  620. let that = this;
  621. let url = that.url.typeCount;
  622. getAction(url, {}).then(res => {
  623. if (res.success) {
  624. let result = res.result;
  625. that.tabAll = '全部(' + result.count + ')';
  626. console.log(that.tabAll)
  627. that.tabUndo = '非高危(' + result.unCount + ')';
  628. that.tabUncheck = '已报蓝紫名单(' + result.uncheckCount + ')';
  629. that.tabChecked = '已报关停(' + result.closeCount + ')';
  630. that.tabDelCheck = '已删除(' + result.delCount + ')';
  631. } else {
  632. }
  633. }).finally(() => {
  634. })
  635. },
  636. getDate(){
  637. var today = new Date();
  638. var dd = String(today.getDate()).padStart(2, '0');
  639. var mm = String(today.getMonth() + 1).padStart(2, '0');
  640. var yyyy = today.getFullYear();
  641. today = yyyy+'-'+ mm+'-' +dd;
  642. return today;
  643. },
  644. /**修改*/
  645. showImproveAndUpload(record) {
  646. if (!record.createTime.match(RegExp(this.getDate()))){
  647. this.$message.warning('此输入非天创建 禁止修改', 3);
  648. return
  649. }
  650. this.$router.push({path: '/networkAccess/registrationUpdate', query: {id: record.id,cardNo: record.cardNo}});
  651. },
  652. showImproveAndUploadAdmin(record) {
  653. this.$router.push({path: '/networkAccess/registrationHide', query: {id: record.id}});
  654. },
  655. /**详情*/
  656. showCheckDetail(record) {
  657. let id = record.id;
  658. this.$router.push({path: '/networkAccess/registrationDetails', query: {id: record.id}});
  659. },
  660. /**删除*/
  661. delFlagById(record){
  662. let id = record.id;
  663. let that = this;
  664. let url = that.url.delete;
  665. deleteAction(url, {id: id}).then(res => {
  666. if (res.success) {
  667. this.typeCount();
  668. this.$message.success("删除成功", 7);
  669. this.loadData(1);
  670. } else {
  671. this.$message.error("删除失败", 7);
  672. }
  673. });
  674. },
  675. /**彻底删除*/
  676. removeById(record) {
  677. let id = record.id;
  678. let that = this;
  679. let url = that.url.removeById;
  680. getAction(url, {id: id}).then(res => {
  681. if (res.success) {
  682. this.typeCount();
  683. this.$message.success("删除成功", 7);
  684. this.loadData(1);
  685. } else {
  686. this.$message.error("删除失败", 7);
  687. }
  688. });
  689. },
  690. /**恢复*/
  691. restoreById(record) {
  692. let id = record.id;
  693. let that = this;
  694. let url = that.url.restoreById;
  695. getAction(url, {id: id}).then(res => {
  696. if (res.success) {
  697. this.typeCount();
  698. this.$message.success("恢复成功", 7);
  699. this.loadData(1);
  700. } else {
  701. this.$message.error("恢复失败", 7);
  702. }
  703. });
  704. },
  705. /**通知*/
  706. noticeDeal(record) {
  707. let that = this;
  708. that.$message.info('已通知业务员,对入网信息进行修改!');
  709. }
  710. },
  711. }
  712. </script>
  713. <style scoped>
  714. </style>