index.vue 30 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054
  1. <template>
  2. <div id="dataConfig">
  3. <input v-show="false" id="file" type="file" @change="exportFunc" />
  4. <search-box-new
  5. ref="searchBox"
  6. :formData="formData"
  7. :formList="formList"
  8. @search="search"
  9. @init="init"
  10. :shType="shType"
  11. >
  12. <template slot="customize" v-if="false">
  13. <el-button size="small" type="success" @click="moreActive"
  14. >批量导出</el-button
  15. >
  16. </template>
  17. </search-box-new>
  18. <table-list
  19. :tableSets="tableSet"
  20. :tableData="tableData"
  21. :navText="navText"
  22. @addClick="addClick"
  23. :loading="loading"
  24. @editInfo="editInfo"
  25. >
  26. <template slot="customize" v-if="formData.status == 1">
  27. <el-button size="small" type="success" @click="studentLeadInfo"
  28. >学员资料导入</el-button
  29. ><el-button size="small" type="success" @click="studentExport"
  30. >学员资料导出</el-button
  31. >
  32. </template>
  33. <template slot="btn" slot-scope="props">
  34. <el-button
  35. type="text"
  36. @click="addClick(props.scope.row, 0)"
  37. :disabled="
  38. !(
  39. props.scope.row.changeStatus === 2 || props.scope.row.status === 2
  40. )
  41. "
  42. >审核</el-button
  43. >
  44. <el-button type="text" @click="openRecord(props.scope.row)"
  45. >审核记录</el-button
  46. >
  47. </template>
  48. </table-list>
  49. <pagination
  50. :total="total"
  51. :pageSize="formData.pageSize"
  52. :currentPage="formData.pageNum"
  53. @handleSizeChange="handleSizeChange"
  54. @handleCurrentChange="handleCurrentChange"
  55. />
  56. <el-dialog
  57. @closed="loadingClose"
  58. :visible.sync="dialogVisible"
  59. width="1000px"
  60. :show-close="false"
  61. :close-on-click-modal="false"
  62. >
  63. <div slot="title" class="hearders">
  64. <div class="leftTitle">资料审核</div>
  65. <div class="rightBoxs">
  66. <img src="@/assets/images/Close@2x.png" alt="" @click="close" />
  67. </div>
  68. </div>
  69. <div slot="title" class="topStys">
  70. <div class="btnsTys">学员编码:{{ listData.userAccount }}</div>
  71. <div class="btnsTys">学员姓名:{{ listData.realname }}</div>
  72. <div class="btnsTys">学员身份证号码:{{ listData.idCard }}</div>
  73. <div class="btnsTys">绑定手机号码:{{ listData.telphone }}</div>
  74. <div style="clear: both"></div>
  75. </div>
  76. <div class="heightstybox gdt">
  77. <ul>
  78. <li class="dissty" v-for="(item, index) in listInfos" :key="index">
  79. <div
  80. style="
  81. width: 50px;
  82. color: red;
  83. align-self: flex-start;
  84. flex-shrink: 0;
  85. "
  86. >
  87. {{ item.status === 1 ? "有变更" : "" }}
  88. </div>
  89. <div class="stys">{{ item.fieldName }}:</div>
  90. <div v-if="pdStatus(item.fieldKey)">
  91. <div
  92. v-if="item.fieldKey === 'recent_photos'"
  93. style="width: 145px; height: 160px"
  94. >
  95. <el-image
  96. v-if="item.value"
  97. style="width: 100%; height: 100%"
  98. :src="$methodsTools.splitImgHost(item.value)"
  99. :preview-src-list="[$methodsTools.splitImgHost(item.value)]"
  100. >
  101. </el-image>
  102. <p v-else>暂无上传图片</p>
  103. </div>
  104. <div v-else-if="item.fieldKey === 'commitment_electr_signature'">
  105. <div>
  106. 本人自愿做出如下承诺:本人己仔细阅读《广东
  107. 省住房和城乡建设厅关于推进住房和城乡建设领域施
  108. 工现场专业人员职业培训工作的通知》
  109. 全部内容并知晓和理解,本人的学历证书、身份证、工作年限、相片等所有资料完全真实、符合报名条件、资格审查要求和相关规定,本人在报名、审查、培训、测试等有关的事项中会严格道守相关规定和要求,如有虛假或与实际规定不符等情况造成的一切后果由本人承担。
  110. 特此承诺!
  111. </div>
  112. <div
  113. style="width: 300px; height: 150px; border: 1px solid #999"
  114. v-if="item.value"
  115. >
  116. <el-image
  117. style="width: 100%; height: 100%"
  118. :src="$methodsTools.splitImgHost(item.value)"
  119. :preview-src-list="[$methodsTools.splitImgHost(item.value)]"
  120. >
  121. </el-image>
  122. </div>
  123. <p v-else>暂无上传图片</p>
  124. </div>
  125. <div v-else style="width: 224px; height: 160px">
  126. <el-image
  127. v-if="item.value"
  128. style="width: 100%; height: 100%"
  129. :src="$methodsTools.splitImgHost(item.value)"
  130. :preview-src-list="[$methodsTools.splitImgHost(item.value)]"
  131. >
  132. </el-image>
  133. <p v-else>暂无上传图片</p>
  134. </div>
  135. </div>
  136. <div v-else>{{ item.value }}</div>
  137. </li>
  138. <li class="dissty" style="border-bottom: none">
  139. <div class="stys">审核结果反馈:</div>
  140. <el-input
  141. v-model="listData.text"
  142. type="textarea"
  143. :rows="5"
  144. ></el-input>
  145. </li>
  146. </ul>
  147. </div>
  148. <span slot="footer" class="dialog-footer">
  149. <el-button @click="close">取 消</el-button>
  150. <el-button :loading="disabledBtn" @click="submitTable(1)" type="success"
  151. >审核通过</el-button
  152. >
  153. <el-button :loading="disabledBtn" @click="submitTable(3)" type="danger"
  154. >审核不通过</el-button
  155. >
  156. </span>
  157. </el-dialog>
  158. <el-dialog
  159. :visible.sync="dialogVisibleRecord"
  160. width="1000px"
  161. :show-close="false"
  162. :close-on-click-modal="false"
  163. >
  164. <div slot="title" class="hearders">
  165. <div class="leftTitle">资料审核</div>
  166. <div class="rightBoxs">
  167. <img
  168. src="@/assets/images/Close@2x.png"
  169. alt=""
  170. @click="dialogVisibleRecord = false"
  171. />
  172. </div>
  173. </div>
  174. <div slot="title" class="topStys">
  175. <div class="btnsTys">
  176. 学员编码:{{ recordList[activeIndex].userAccount }}
  177. </div>
  178. <div class="btnsTys">
  179. 学员姓名:{{ recordList[activeIndex].realname }}
  180. </div>
  181. <div class="btnsTys">
  182. 学员身份证号码:{{ recordList[activeIndex].idCard }}
  183. </div>
  184. <div class="btnsTys">
  185. 绑定手机号码:{{ recordList[activeIndex].telphone }}
  186. </div>
  187. <div style="clear: both"></div>
  188. </div>
  189. <el-row :gutter="20">
  190. <el-col :span="6">
  191. <ul class="max_heightAuto">
  192. <li
  193. class="lsTYs"
  194. v-for="(item, index) in recordList"
  195. :key="index"
  196. :class="index === activeIndex ? 'active' : ''"
  197. @click="changeIndex(index)"
  198. >
  199. {{ $methodsTools.onlyForma(item.auditTime) }}
  200. </li>
  201. </ul>
  202. </el-col>
  203. <el-col :span="18">
  204. <transition>
  205. <div class="heightstybox gdt" v-if="showIS">
  206. <ul>
  207. <li>
  208. <div class="float_lefts">
  209. 审核人:{{ recordList[activeIndex].createByName }}
  210. </div>
  211. <div class="float_lefts">
  212. {{
  213. recordList[activeIndex].status === 1
  214. ? "审核通过"
  215. : recordList[activeIndex].status === 2
  216. ? "待审核"
  217. : recordList[activeIndex].status === 3
  218. ? "审核不通过"
  219. : "无审核状态"
  220. }}
  221. </div>
  222. <div style="clear: both"></div>
  223. </li>
  224. <li
  225. class="dissty"
  226. v-for="(item, index) in recordList[activeIndex]
  227. .keyValueArrays"
  228. :key="index"
  229. >
  230. <div class="stys">{{ item.fieldName }}:</div>
  231. <div v-if="pdStatus(item.fieldKey)">
  232. <div
  233. v-if="item.fieldKey === 'recent_photos'"
  234. style="width: 145px; height: 160px"
  235. >
  236. <el-image
  237. v-if="item.value"
  238. style="width: 100%; height: 100%"
  239. :src="$methodsTools.splitImgHost(item.value)"
  240. :preview-src-list="[
  241. $methodsTools.splitImgHost(item.value),
  242. ]"
  243. >
  244. </el-image>
  245. <p v-else>暂无上传图片</p>
  246. </div>
  247. <div
  248. v-else-if="
  249. item.fieldKey === 'commitment_electr_signature'
  250. "
  251. >
  252. <div>
  253. 本人自愿做出如下承诺:本人己仔细阅读《广东
  254. 省住房和城乡建设厅关于推进住房和城乡建设领域施
  255. 工现场专业人员职业培训工作的通知》
  256. 全部内容并知晓和理解,本人的学历证书、身份证、工作年限、相片等所有资料完全真实、符合报名条件、资格审查要求和相关规定,本人在报名、审查、培训、测试等有关的事项中会严格道守相关规定和要求,如有虛假或与实际规定不符等情况造成的一切后果由本人承担。
  257. 特此承诺!
  258. </div>
  259. <div
  260. style="
  261. width: 300px;
  262. height: 150px;
  263. border: 1px solid #999;
  264. "
  265. v-if="item.value"
  266. >
  267. <el-image
  268. style="width: 100%; height: 100%"
  269. :src="$methodsTools.splitImgHost(item.value)"
  270. :preview-src-list="[
  271. $methodsTools.splitImgHost(item.value),
  272. ]"
  273. >
  274. </el-image>
  275. </div>
  276. <p v-else>暂无上传图片</p>
  277. </div>
  278. <div v-else style="width: 224px; height: 160px">
  279. <el-image
  280. v-if="item.value"
  281. style="width: 100%; height: 100%"
  282. :src="$methodsTools.splitImgHost(item.value)"
  283. :preview-src-list="[
  284. $methodsTools.splitImgHost(item.value),
  285. ]"
  286. >
  287. </el-image>
  288. <p v-else>暂无上传图片</p>
  289. </div>
  290. </div>
  291. <div v-else>{{ item.value }}</div>
  292. </li>
  293. <li class="dissty" style="border-bottom: none">
  294. <div class="stys">审核结果反馈:</div>
  295. <div>
  296. {{ recordList[activeIndex].text }}
  297. </div>
  298. </li>
  299. </ul>
  300. </div>
  301. </transition>
  302. </el-col>
  303. </el-row>
  304. <span slot="footer" class="dialog-footer">
  305. <el-button @click="dialogVisibleRecord = false">取 消</el-button>
  306. </span>
  307. </el-dialog>
  308. <el-dialog
  309. :visible.sync="dialogDR"
  310. width="660px"
  311. :show-close="false"
  312. :close-on-click-modal="false"
  313. >
  314. <div slot="title" class="hearders">
  315. <div class="leftTitle">批量导出</div>
  316. <div class="rightBoxs">
  317. <img
  318. src="@/assets/images/Close@2x.png"
  319. alt=""
  320. @click="dialogDR = false"
  321. />
  322. </div>
  323. </div>
  324. <div>
  325. <div class="swq">
  326. <img
  327. style="width: 182px; height: 168px"
  328. src="@/assets/images/dc.png"
  329. alt=""
  330. />
  331. </div>
  332. <div style="padding: 40px">
  333. <el-row>
  334. <el-col :span="12"
  335. ><div style="text-align: end; padding-right: 14px">
  336. 填写资料审核状态:
  337. </div></el-col
  338. >
  339. <el-col :span="12">
  340. <el-radio-group v-model="activeDCIndex">
  341. <el-radio
  342. style="display: block; margin-bottom: 16px"
  343. v-for="(items, indexs) in DCLIST"
  344. :key="indexs"
  345. :label="items.value"
  346. >{{ items.label }}</el-radio
  347. >
  348. </el-radio-group>
  349. </el-col>
  350. </el-row>
  351. </div>
  352. </div>
  353. <span slot="footer" class="dialog-footer">
  354. <el-button @click="dialogDR = false">取消</el-button>
  355. <el-button type="primary" @click="exputs">确定</el-button>
  356. </span>
  357. </el-dialog>
  358. </div>
  359. </template>
  360. <script>
  361. import * as baseUrls from "@/utils/request.js";
  362. import searchBoxNew from "@/components/searchBoxNew";
  363. import tableList from "@/components/tableList";
  364. import pagination from "@/components/pagination";
  365. export default {
  366. name: "DataConfig",
  367. components: { searchBoxNew, tableList, pagination },
  368. data() {
  369. return {
  370. dialogDR: false,
  371. disabledBtn: false,
  372. dialogVisibleRecord: false,
  373. shType: true,
  374. loading: false, //当前表单加载是否加载动画
  375. navText: {
  376. title: "填写资料审核",
  377. index: 0,
  378. ch: "条",
  379. num: true,
  380. border: true,
  381. choice: true,
  382. addHide: true,
  383. backFatherBtn: {
  384. status: false,
  385. title: "未定义",
  386. },
  387. },
  388. //搜索
  389. formList: [
  390. {
  391. prop: "changeStatus",
  392. placeholder: "变更状态",
  393. scope: "select",
  394. options: [
  395. {
  396. label: "正常",
  397. value: 1,
  398. },
  399. {
  400. label: "有变更",
  401. value: 2,
  402. },
  403. ],
  404. },
  405. {
  406. prop1: "applyStartTime",
  407. prop2: "applyEndTime",
  408. placeholder1: "报名开始时间",
  409. placeholder2: "报名结束时间",
  410. scope: "moreDataPicker",
  411. Diszing: true,
  412. },
  413. {
  414. prop: "companyName",
  415. placeholder: "请输入公司名称",
  416. },
  417. {
  418. prop: "realname",
  419. placeholder: "请输入学员姓名",
  420. },
  421. ],
  422. formData: {
  423. status: "",
  424. pageSize: 10,
  425. pageNum: 1,
  426. },
  427. showIS: true,
  428. // 表单
  429. tableSet: [
  430. {
  431. label: "学员编码",
  432. prop: "userAccount",
  433. hidden: true,
  434. },
  435. {
  436. label: "学员姓名",
  437. prop: "realname",
  438. hidden: true,
  439. },
  440. {
  441. label: "学员身份证",
  442. prop: "idCard",
  443. hidden: true,
  444. },
  445. {
  446. label: "绑定手机号",
  447. prop: "telphone",
  448. hidden: true,
  449. },
  450. {
  451. label: "公司名称",
  452. prop: "companyName",
  453. hidden: true,
  454. },
  455. {
  456. label: "所购商品",
  457. hidden: true,
  458. scope: "getShops",
  459. },
  460. {
  461. label: "填写资料审核状态",
  462. prop: "status",
  463. hidden: true,
  464. scope: "isOptions",
  465. options: [
  466. {
  467. label: "通过",
  468. value: 1,
  469. },
  470. {
  471. label: "待审核",
  472. value: 2,
  473. },
  474. {
  475. label: "不通过",
  476. value: 3,
  477. },
  478. ],
  479. },
  480. {
  481. label: "填写资料变更状态",
  482. prop: "changeStatus",
  483. hidden: true,
  484. scope: "isOptions",
  485. options: [
  486. {
  487. label: "正常",
  488. value: 1,
  489. },
  490. {
  491. label: "有变更",
  492. value: 2,
  493. style: "color:red",
  494. },
  495. ],
  496. },
  497. {
  498. label: "报名时间",
  499. prop: "applyTime",
  500. hidden: true,
  501. scope: "aTimeList",
  502. },
  503. {
  504. label: "第一次提交资料时间",
  505. prop: "oneTime",
  506. hidden: true,
  507. scope: "aTimeList",
  508. },
  509. {
  510. label: "最后一次提交资料时间",
  511. prop: "lastTime",
  512. hidden: true,
  513. scope: "aTimeList",
  514. },
  515. {
  516. label: "最后一次审核人",
  517. prop: "createByName",
  518. hidden: true,
  519. },
  520. {
  521. label: "最后一次审核时间",
  522. prop: "auditTime",
  523. hidden: true,
  524. scope: "aTimeList",
  525. },
  526. ],
  527. tableData: [], //表单数据
  528. total: 0, //一共多少条
  529. // 弹窗数据
  530. listData: {},
  531. statusPop: -1,
  532. dialogVisible: false,
  533. //表单验证
  534. rules: {
  535. natureName: [
  536. { required: true, message: "请输入收费性质名称", trigger: "blur" },
  537. ],
  538. status: [{ required: true, message: "请选择状态", trigger: "change" }],
  539. },
  540. listInfos: [],
  541. recordList: [{ keyValueArrays: [] }], //记录列表
  542. activeIndex: 0,
  543. activeDCIndex: 0, //导出按钮索引
  544. DCLIST: [
  545. { label: "全部", value: 0 },
  546. { label: "待审核", value: 2 },
  547. { label: "审核通过", value: 1 },
  548. { label: "审核不通过", value: 3 },
  549. ], //导出按钮列表
  550. };
  551. },
  552. async mounted() {
  553. await this.moRenBus()
  554. this.search();
  555. },
  556. async activated() {
  557. await this.moRenBus()
  558. this.search();
  559. },
  560. methods: {
  561. /**
  562. * 默认选择考前培训-施工七大员
  563. */
  564. moRenBus() {
  565. return new Promise((resolve, reject) => {
  566. this.$api.inquireCourseEducationType({ status: 1 }).then((res) => {
  567. for (let i = 0; i < res.rows.length; i++) {
  568. if (res.rows[i].educationName === "考前培训") {
  569. this.$api
  570. .inquirebusinessList({ status: 1, educationId: res.rows[i].id })
  571. .then((result) => {
  572. for (let j = 0; j < result.rows.length; j++) {
  573. if (
  574. result.rows[j].projectName === "施工现场专业人员" &&
  575. result.rows[j].businessName === "七大员"
  576. ) {
  577. this.$set(
  578. this.formData,
  579. "educationTypeId",
  580. res.rows[i].id
  581. );
  582. this.$set(this.formData, "businessId", result.rows[j].id);
  583. resolve();
  584. break;
  585. }
  586. }
  587. });
  588. break;
  589. }
  590. }
  591. });
  592. });
  593. },
  594. exputs(data) {
  595. // if (!data.businessId) {
  596. // this.$message.warning("请选择业务层次");
  597. // return;
  598. // }
  599. this.$modal.loading("正在导出数据,请稍后...");
  600. this.$api
  601. .inquirebaseprofileExport(data)
  602. .then(async (res) => {
  603. for (let k in res.data) {
  604. if (res.data[k].code === 200) {
  605. await this.dowmFunc(res, k);
  606. } else {
  607. this.$message.error("code值错误:", res.data[k].code);
  608. }
  609. }
  610. })
  611. .catch((err) => {
  612. let { message } = err;
  613. if (message.includes("timeout")) {
  614. this.$message.error(
  615. "数据体量过大,无法正常导出,请调整导出的日期范围,缩小数据体量"
  616. );
  617. }
  618. })
  619. .finally(() => {
  620. this.$modal.closeLoading();
  621. });
  622. },
  623. dowmFunc(res, k) {
  624. return new Promise((resolve, reject) => {
  625. let url =
  626. baseUrls.baseURL + "common/download?fileName=" + res.data[k].msg;
  627. let link = document.createElement("a");
  628. let fileName = "导入模板" + ".xlsx";
  629. document.body.appendChild(link);
  630. link.href = url;
  631. link.dowmload = fileName;
  632. link.click();
  633. link.remove();
  634. setTimeout(() => {
  635. resolve();
  636. }, 200);
  637. });
  638. },
  639. studentLeadInfo() {
  640. document.getElementById("file").click();
  641. },
  642. //学员资料导入
  643. exportFunc(e) {
  644. let formData = new FormData();
  645. formData.append("file", e.target.files[0]);
  646. this.$api
  647. .systemapplyuserprofile(formData)
  648. .then((res) => {
  649. this.search(2);
  650. })
  651. .finally(() => {
  652. e.target.value = "";
  653. });
  654. },
  655. studentExport() {
  656. let data = {
  657. changeStatus: this.formData.changeStatus || "",
  658. companyName: this.formData.companyName || "",
  659. status:
  660. this.formData.status && this.formData.status !== 0
  661. ? [this.formData.status]
  662. : [],
  663. educationTypeId: this.formData.educationTypeId || "",
  664. businessId: this.formData.businessId || "",
  665. realname: this.formData.realname || "",
  666. applyStartTime: this.formData.applyStartTime / 1000 || "",
  667. applyEndTime: this.formData.applyEndTime / 1000 || "",
  668. };
  669. this.$api.systemapplyuserprofileexport(data).then((res) => {
  670. let url = baseUrls.baseURL + "common/download?fileName=" + res.msg;
  671. let link = document.createElement("a");
  672. let fileName = "导入模板" + ".xlsx";
  673. document.body.appendChild(link);
  674. link.href = url;
  675. link.dowmload = fileName;
  676. link.click();
  677. link.remove();
  678. });
  679. },
  680. moreActive() {
  681. let data = {
  682. changeStatus: this.formData.changeStatus || "",
  683. companyName: this.formData.companyName || "",
  684. status: this.formData.status || 0,
  685. educationTypeId: this.formData.educationTypeId || "",
  686. businessId: this.formData.businessId || "",
  687. realname: this.formData.realname || "",
  688. applyStartTime: this.formData.applyStartTime / 1000 || "",
  689. applyEndTime: this.formData.applyEndTime / 1000 || "",
  690. };
  691. this.exputs(data);
  692. },
  693. changeIndex(v) {
  694. if (this.activeIndex === v) {
  695. return;
  696. }
  697. this.showIS = false;
  698. this.activeIndex = v;
  699. setTimeout(() => {
  700. this.showIS = true;
  701. }, 50);
  702. },
  703. openRecord(v) {
  704. this.$api
  705. .inquirebaseprofilelistRecord({ userId: v.userId, goodsId: v.goodsId })
  706. .then((res) => {
  707. if (!res.rows.length) {
  708. this.$message.warning("该条数据无审核记录");
  709. return;
  710. }
  711. res.rows.forEach((item) => {
  712. item.keyValue = JSON.parse(item.keyValue);
  713. var arst = [];
  714. for (let k in item.keyValue) {
  715. if (item.keyValue[k].fieldName) {
  716. arst.push(item.keyValue[k]);
  717. }
  718. }
  719. item.keyValueArrays = arst;
  720. });
  721. this.activeIndex = 0;
  722. this.recordList = res.rows;
  723. this.dialogVisibleRecord = true;
  724. });
  725. },
  726. pdStatus(int) {
  727. if (
  728. int === "recent_photos" ||
  729. int === "idcard_face_photo" ||
  730. int === "idcard_national_photo" ||
  731. int === "commitment_electr_signature" ||
  732. int === "commitment_seal"
  733. ) {
  734. return true;
  735. }
  736. },
  737. //1通过 3不通过
  738. submitTable(int) {
  739. this.disabledBtn = true;
  740. var data = JSON.parse(JSON.stringify(this.listData));
  741. for (let k in data.keyValue) {
  742. data.keyValue[k].status = 0;
  743. }
  744. data.keyValue = JSON.stringify(data.keyValue);
  745. data.status = int;
  746. data.changeStatus = 1;
  747. this.$api
  748. .editbaseprofilesss(data)
  749. .then((res) => {
  750. this.$message.success("提交成功");
  751. this.search();
  752. this.dialogVisible = false;
  753. })
  754. .catch(() => {
  755. this.disabledBtn = false;
  756. });
  757. },
  758. loadingClose() {
  759. this.disabledBtn = false;
  760. },
  761. editInfo(v) {
  762. this.addClick(v, 0);
  763. },
  764. search(int) {
  765. this.loading = true;
  766. if (int === 1) {
  767. this.formData.pageNum = 1;
  768. }
  769. if (int === 2) {
  770. this.formData = {
  771. status: "",
  772. pageSize: 10,
  773. pageNum: 1,
  774. educationTypeId:this.formData.educationTypeId,
  775. businessId:this.formData.businessId,
  776. };
  777. }
  778. var data = JSON.parse(JSON.stringify(this.formData));
  779. console.log(this.formData,'data')
  780. if (this.formData.applyStartTime) {
  781. data.applyStartTime = data.applyStartTime / 1000;
  782. }
  783. if (this.formData.applyEndTime) {
  784. data.applyEndTime = data.applyEndTime / 1000;
  785. }
  786. this.$api
  787. .inquirebaseprofile(data)
  788. .then((res) => {
  789. this.tableData = res.rows;
  790. this.total = res.total;
  791. this.navText.index = res.total;
  792. })
  793. .finally(() => {
  794. this.loading = false;
  795. });
  796. },
  797. init() {
  798. this.search(2);
  799. },
  800. del(v) {
  801. this.$alert(
  802. "确定删除此内容?<br />内容删除后将无法恢复,请慎重考虑",
  803. "提示",
  804. {
  805. dangerouslyUseHTMLString: true,
  806. }
  807. )
  808. .then(() => {
  809. var data = {
  810. natureId: v.natureId,
  811. status: -1,
  812. };
  813. this.$api.editpaynature(data).then((res) => {
  814. this.$message.success("删除成功");
  815. this.search();
  816. });
  817. })
  818. .catch(() => {
  819. this.$message({
  820. type: "info",
  821. message: "已取消删除",
  822. });
  823. });
  824. },
  825. addClick(v, int) {
  826. if (v === undefined) {
  827. this.listData = {};
  828. } else {
  829. this.$api.obtainbaseprofile(v.id).then((res) => {
  830. res.data.keyValue = JSON.parse(res.data.keyValue);
  831. this.listData = res.data;
  832. var arst = [];
  833. for (let k in res.data.keyValue) {
  834. if (res.data.keyValue[k].fieldName) {
  835. arst.push(res.data.keyValue[k]);
  836. }
  837. }
  838. this.listInfos = arst;
  839. });
  840. }
  841. this.dialogVisible = true;
  842. },
  843. close() {
  844. this.dialogVisible = false;
  845. },
  846. handleSizeChange(v) {
  847. this.formData.pageSize = v;
  848. this.formData.pageNum = 1;
  849. this.search();
  850. },
  851. handleCurrentChange(v) {
  852. this.formData.pageNum = v;
  853. this.search();
  854. },
  855. },
  856. };
  857. </script>
  858. <style lang="less" scoped>
  859. // 进入前和结束后的状态
  860. .v-enter,
  861. .v-leave-to {
  862. opacity: 0;
  863. // transform: translateX(80px);
  864. }
  865. // 进入和离开的动画时间段
  866. .v-enter-active,
  867. .v-leave-active {
  868. transition: all 0.5s ease;
  869. }
  870. .gdt {
  871. /* 设置滚动条的样式 */
  872. &::-webkit-scrollbar {
  873. width: 8px;
  874. }
  875. /* 滚动槽 */
  876. &::-webkit-scrollbar-track {
  877. box-shadow: inset 6px rgba(0, 0, 0, 0.3);
  878. border-radius: 10px;
  879. }
  880. /* 滚动条滑块 */
  881. &::-webkit-scrollbar-thumb {
  882. border-radius: 10px;
  883. background: rgba(0, 0, 0, 0.1);
  884. box-shadow: inset 6px rgba(0, 0, 0, 0.5);
  885. }
  886. &::-webkit-scrollbar-thumb:window-inactive {
  887. background: rgba(182, 182, 182, 0.4);
  888. }
  889. }
  890. .max_heightAuto {
  891. padding: 0px 10px;
  892. max-height: 560px;
  893. overflow-y: auto;
  894. }
  895. .float_lefts {
  896. float: left;
  897. padding: 0px 10px;
  898. border-radius: 12px;
  899. background-color: #eee;
  900. height: 35px;
  901. line-height: 35px;
  902. margin-right: 10px;
  903. }
  904. .lsTYs {
  905. height: 40px;
  906. border-top: 1px solid #999;
  907. border-left: 1px solid #999;
  908. border-right: 1px solid #999;
  909. line-height: 39px;
  910. cursor: pointer;
  911. text-align: center;
  912. &:last-child {
  913. border-bottom: 1px solid #999 !important;
  914. }
  915. }
  916. .swq {
  917. text-align: center;
  918. border-bottom: 1px solid #eee;
  919. }
  920. .active {
  921. color: blue;
  922. }
  923. .heightstybox {
  924. padding: 20px;
  925. height: 600px;
  926. overflow-y: auto;
  927. }
  928. .dissty {
  929. display: flex;
  930. align-items: center;
  931. padding: 20px;
  932. border-bottom: 1px dotted #999;
  933. }
  934. .stys {
  935. flex-shrink: 0;
  936. align-self: flex-start;
  937. width: 200px;
  938. padding-left: 50px;
  939. }
  940. .topStys {
  941. padding: 20px;
  942. background-color: rgb(215, 215, 215);
  943. display: flex;
  944. align-items: center;
  945. overflow-x: auto;
  946. .btnsTys {
  947. flex-shrink: 0;
  948. margin-right: 16px;
  949. padding: 0px 7px;
  950. background-color: #fff;
  951. border-radius: 4px;
  952. font-size: 14px;
  953. height: 40px;
  954. line-height: 40px;
  955. }
  956. }
  957. /deep/.el-button {
  958. border-radius: 8px;
  959. }
  960. /deep/ .el-dialog__body {
  961. padding: 10px 0px;
  962. }
  963. /deep/.el-dialog {
  964. border-radius: 8px;
  965. .el-dialog__header {
  966. padding: 0;
  967. .hearders {
  968. height: 40px;
  969. display: flex;
  970. align-items: center;
  971. justify-content: space-between;
  972. padding: 0px 18px 0px 20px;
  973. border-bottom: 1px solid #e2e2e2;
  974. .leftTitle {
  975. font-size: 14px;
  976. font-weight: bold;
  977. color: #2f4378;
  978. }
  979. .rightBoxs {
  980. display: flex;
  981. align-items: center;
  982. img {
  983. width: 14px;
  984. height: 14px;
  985. margin-left: 13px;
  986. cursor: pointer;
  987. }
  988. }
  989. }
  990. }
  991. .el-dialog__footer {
  992. padding: 0;
  993. .dialog-footer {
  994. padding: 0px 40px;
  995. height: 70px;
  996. border-top: 1px solid #e2e2e2;
  997. display: flex;
  998. align-items: center;
  999. justify-content: center;
  1000. }
  1001. }
  1002. }
  1003. .imgBox {
  1004. width: 100%;
  1005. // height: 210px;
  1006. border: 1px solid #e2e2e2;
  1007. border-radius: 8px;
  1008. padding: 8px 8px 3px;
  1009. display: flex;
  1010. flex-direction: column;
  1011. align-items: center;
  1012. .imgLabel {
  1013. flex: 1;
  1014. width: 100%;
  1015. border: 1px dotted #e2e2e2;
  1016. color: #999;
  1017. font-size: 14px;
  1018. cursor: pointer;
  1019. border-radius: 8px;
  1020. .msPhoto {
  1021. display: flex;
  1022. justify-content: center;
  1023. align-items: center;
  1024. max-width: 100%;
  1025. max-height: 270px;
  1026. img {
  1027. max-width: 100%;
  1028. max-height: 270px;
  1029. }
  1030. }
  1031. .imgbbx {
  1032. display: flex;
  1033. flex-direction: column;
  1034. align-items: center;
  1035. justify-content: center;
  1036. width: 100%;
  1037. height: 100%;
  1038. i {
  1039. font-weight: bold;
  1040. margin: 14px 0;
  1041. font-size: 24px;
  1042. }
  1043. }
  1044. }
  1045. p {
  1046. margin: 5px 0px;
  1047. }
  1048. }
  1049. </style>