123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903 |
- <template>
- <div id="stamp">
- <search-box-new
- ref="searchBox"
- :formData="formData"
- :formList="formList"
- @search="search"
- @init="init"
- :shType="shType"
- >
- <template slot="customize">
- <el-button size="small" type="success" @click="moreActive"
- >批量导出</el-button
- >
- </template></search-box-new
- >
- <table-list
- :tableSets="tableSet"
- :tableData="tableData"
- :navText="navText"
- @addClick="addClick"
- :loading="loading"
- @editInfo="editInfo"
- >
- <template slot="btn" slot-scope="props">
- <el-button
- type="text"
- @click="addClick(props.scope.row, 0)"
- :disabled="
- !(
- props.scope.row.changeStatus === 2 || props.scope.row.status === 2
- )
- "
- >审核</el-button
- >
- <el-button type="text" @click="openRecord(props.scope.row)"
- >审核记录</el-button
- >
- </template>
- </table-list>
- <pagination
- :total="total"
- :pageSize="formData.pageSize"
- :currentPage="formData.pageNum"
- @handleSizeChange="handleSizeChange"
- @handleCurrentChange="handleCurrentChange"
- />
- <el-dialog
- @closed="loadingClose"
- :visible.sync="dialogVisible"
- width="900px"
- :show-close="false"
- :close-on-click-modal="false"
- >
- <div slot="title" class="hearders">
- <div class="leftTitle">资料审核</div>
- <div class="rightBoxs">
- <img src="@/assets/images/Close@2x.png" alt="" @click="close" />
- </div>
- </div>
- <div slot="title" class="topStys">
- <div class="btnsTys">学员编码:{{ listData.userAccount }}</div>
- <div class="btnsTys">学员姓名:{{ listData.realname }}</div>
- <div class="btnsTys">学员身份证号码:{{ listData.idCard }}</div>
- <div class="btnsTys">绑定手机号码:{{ listData.telphone }}</div>
- <div style="clear: both"></div>
- </div>
- <div class="heightstybox gdt">
- <ul>
- <li class="dissty" v-for="(item, index) in listInfos" :key="index">
- <div style="width: 60px; color: red; align-self: flex-start">
- {{ item.status === 1 ? "有变更" : "" }}
- </div>
- <div class="stys">{{ item.fieldName }}:</div>
- <div v-if="item.fieldKey === 'commitment_seal'" style="width: 100%">
- <el-image
- v-if="item.value"
- style="width: 100%"
- :src="$methodsTools.splitImgHost(item.value)"
- :preview-src-list="[$methodsTools.splitImgHost(item.value)]"
- >
- </el-image>
- <p v-else>暂无上传图片</p>
- </div>
- </li>
- <li class="dissty" style="border-bottom: none">
- <div class="stys">审核结果反馈:</div>
- <el-input
- v-model="listData.text"
- type="textarea"
- :rows="5"
- ></el-input>
- </li>
- </ul>
- </div>
- <span slot="footer" class="dialog-footer">
- <el-button @click="close">取 消</el-button>
- <el-button :loading="disabledBtn" @click="submitTable(1)" type="success"
- >审核通过</el-button
- >
- <el-button :loading="disabledBtn" @click="submitTable(3)" type="danger"
- >审核不通过</el-button
- >
- </span>
- </el-dialog>
- <el-dialog
- :visible.sync="dialogVisibleRecord"
- width="900px"
- :show-close="false"
- :close-on-click-modal="false"
- >
- <div slot="title" class="hearders">
- <div class="leftTitle">资料审核</div>
- <div class="rightBoxs">
- <img
- src="@/assets/images/Close@2x.png"
- alt=""
- @click="dialogVisibleRecord = false"
- />
- </div>
- </div>
- <div slot="title" class="topStys">
- <div class="btnsTys">
- 学员编码:{{ recordList[activeIndex].userAccount }}
- </div>
- <div class="btnsTys">
- 学员姓名:{{ recordList[activeIndex].realname }}
- </div>
- <div class="btnsTys">
- 学员身份证号码:{{ recordList[activeIndex].idCard }}
- </div>
- <div class="btnsTys">
- 绑定手机号码:{{ recordList[activeIndex].telphone }}
- </div>
- <div style="clear: both"></div>
- </div>
- <el-row :gutter="20">
- <el-col :span="6">
- <ul class="max_heightAuto">
- <li
- class="lsTYs"
- v-for="(item, index) in recordList"
- :key="index"
- :class="index === activeIndex ? 'active' : ''"
- @click="changeIndex(index)"
- >
- {{ $methodsTools.onlyForma(item.auditTime) }}
- </li>
- </ul>
- </el-col>
- <el-col :span="18">
- <transition>
- <div class="heightstybox gdt" v-if="showIS">
- <ul>
- <li>
- <div class="float_lefts">
- 审核人:{{ recordList[activeIndex].createByName }}
- </div>
- <div class="float_lefts">
- {{
- recordList[activeIndex].status === 1
- ? "审核通过"
- : recordList[activeIndex].status === 2
- ? "待审核"
- : recordList[activeIndex].status === 3
- ? "审核不通过"
- : "无审核状态"
- }}
- </div>
- <div style="clear: both"></div>
- </li>
- <li
- class="dissty"
- v-for="(item, index) in recordList[activeIndex]
- .keyValueArrays"
- :key="index"
- >
- <div class="stys">{{ item.fieldName }}:</div>
- <div
- v-if="item.fieldKey === 'commitment_seal'"
- style="width: 100%"
- >
- <el-image
- v-if="item.value"
- style="width: 100%"
- :src="$methodsTools.splitImgHost(item.value)"
- :preview-src-list="[
- $methodsTools.splitImgHost(item.value),
- ]"
- >
- </el-image>
- <p v-else>暂无上传图片</p>
- </div>
- </li>
- <li class="dissty" style="border-bottom: none">
- <div class="stys">审核结果反馈:</div>
- <div>
- {{ recordList[activeIndex].text }}
- </div>
- </li>
- </ul>
- </div>
- </transition>
- </el-col>
- </el-row>
- <span slot="footer" class="dialog-footer">
- <el-button @click="dialogVisibleRecord = false">取 消</el-button>
- </span>
- </el-dialog>
- <el-dialog
- :visible.sync="dialogDR"
- width="660px"
- :show-close="false"
- :close-on-click-modal="false"
- >
- <div slot="title" class="hearders">
- <div class="leftTitle">批量导出</div>
- <div class="rightBoxs">
- <img
- src="@/assets/images/Close@2x.png"
- alt=""
- @click="dialogDR = false"
- />
- </div>
- </div>
- <div>
- <div class="swq">
- <img
- style="width: 182px; height: 168px"
- src="@/assets/images/dc.png"
- alt=""
- />
- </div>
- <div style="padding: 40px">
- <el-row>
- <el-col :span="12"
- ><div style="text-align: end; padding-right: 14px">
- 填写资料审核状态:
- </div></el-col
- >
- <el-col :span="12">
- <el-radio-group v-model="activeDCIndex">
- <el-radio
- style="display: block; margin-bottom: 16px"
- v-for="(items, indexs) in DCLIST"
- :key="indexs"
- :label="items.value"
- >{{ items.label }}</el-radio
- >
- </el-radio-group>
- </el-col>
- </el-row>
- </div>
- </div>
- <span slot="footer" class="dialog-footer">
- <el-button @click="dialogDR = false">取消</el-button>
- <el-button type="primary" @click="exputs">确定</el-button>
- </span>
- </el-dialog>
- </div>
- </template>
- <script>
- import * as baseUrls from "@/utils/request.js";
- import searchBoxNew from "@/components/searchBoxNew";
- import tableList from "@/components/tableList";
- import pagination from "@/components/pagination";
- export default {
- name: "Stamp",
- components: { searchBoxNew, tableList, pagination },
- data() {
- return {
- dialogDR: false,
- disabledBtn: false,
- dialogVisibleRecord: false,
- shType: true,
- loading: false, //当前表单加载是否加载动画
- navText: {
- title: "盖章资料审核",
- index: 0,
- ch: "条",
- num: true,
- border: true,
- choice: true,
- addHide: true,
- backFatherBtn: {
- status: false,
- title: "未定义",
- },
- },
- //搜索
- formList: [
- {
- prop: "educationTypeId",
- placeholder: "教育类型",
- scope: "educationType",
- },
- {
- prop: "businessId",
- placeholder: "业务层次",
- scope: "businessLevel",
- edu: "educationTypeId",
- },
- {
- prop: "schoolId",
- placeholder: "院校",
- scope: "schoolList",
- edu: "educationTypeId",
- },
- {
- prop: "majorId",
- placeholder: "专业",
- scope: "Professional",
- edu: "educationTypeId",
- },
- {
- prop: "changeStatus",
- placeholder: "变更状态",
- scope: "select",
- options: [
- {
- label: "正常",
- value: 1,
- },
- {
- label: "有变更",
- value: 2,
- },
- ],
- },
- {
- prop1: "searchStartTime",
- prop2: "searchEndTime",
- placeholder1: "查询开始时间",
- placeholder2: "查询结束时间",
- scope: "moreDataPicker",
- Diszing: true,
- },
- {
- prop: "realname",
- placeholder: "请输入学员姓名",
- },
- ],
- formData: {
- status: "",
- pageSize: 10,
- pageNum: 1,
- },
- showIS: true,
- // 表单
- tableSet: [
- {
- label: "填写资料审核状态",
- hidden: true,
- scope: "isOKs",
- },
- {
- label: "学员编码",
- prop: "userAccount",
- hidden: true,
- },
- {
- label: "学员姓名",
- prop: "realname",
- hidden: true,
- },
- {
- label: "学员身份证",
- prop: "idCard",
- hidden: true,
- },
- {
- label: "绑定手机号",
- prop: "telphone",
- hidden: true,
- },
- {
- label: "所购商品",
- hidden: true,
- scope: "getShops",
- },
- {
- label: "盖章资料审核状态",
- prop: "status",
- hidden: true,
- scope: "isOptions",
- options: [
- {
- label: "通过",
- value: 1,
- },
- {
- label: "待审核",
- value: 2,
- },
- {
- label: "不通过",
- value: 3,
- },
- ],
- },
- {
- label: "盖章资料变更状态",
- prop: "changeStatus",
- hidden: true,
- scope: "isOptions",
- options: [
- {
- label: "正常",
- value: 1,
- },
- {
- label: "有变更",
- value: 2,
- style: "color:red",
- },
- ],
- },
- {
- label: "第一次提交资料时间",
- prop: "oneTime",
- hidden: true,
- scope: "aTimeList",
- },
- {
- label: "最后一次提交资料时间",
- prop: "lastTime",
- hidden: true,
- scope: "aTimeList",
- },
- {
- label: "最后一次审核人",
- prop: "createByName",
- hidden: true,
- },
- {
- label: "最后一次审核时间",
- prop: "auditTime",
- hidden: true,
- scope: "aTimeList",
- },
- ],
- tableData: [], //表单数据
- total: 0, //一共多少条
- // 弹窗数据
- listData: {},
- statusPop: -1,
- dialogVisible: false,
- listInfos: [],
- recordList: [{ keyValueArrays: [] }], //记录列表
- activeIndex: 0,
- activeDCIndex: 0, //导出按钮索引
- DCLIST: [
- { label: "全部", value: 0 },
- { label: "待审核", value: 2 },
- { label: "审核通过", value: 1 },
- { label: "审核不通过", value: 3 },
- ], //导出按钮列表
- };
- },
- mounted() {
- this.search();
- },
- activated() {
- this.search();
- },
- methods: {
- exputs(data) {
- if (!data.businessId) {
- this.$message.warning("请选择业务层次");
- return;
- }
- this.$modal.loading("正在导出数据,请稍后...");
- this.$api
- .inquirebaseprofileStampexport(data)
- .then((res) => {
- if (res.code === 200) {
- let url = baseUrls.baseURL + "common/download?fileName=" + res.msg;
- let link = document.createElement("a");
- let fileName = "导出数据" + ".xlsx";
- document.body.appendChild(link);
- link.href = url;
- link.dowmload = fileName;
- link.click();
- link.remove();
- this.$message.success("批量导出成功");
- this.dialogDR = false;
- }
- })
- .catch((err) => {
- let { message } = err;
- if (message.includes("timeout")) {
- this.$message.error(
- "数据体量过大,无法正常导出,请调整导出的日期范围,缩小数据体量"
- );
- }
- })
- .finally(() => {
- this.$modal.closeLoading();
- });
- },
- moreActive() {
- let data = {
- changeStatus: this.formData.changeStatus || "",
- status: this.formData.status || 0,
- educationTypeId: this.formData.educationTypeId || "",
- businessId: this.formData.businessId || "",
- majorId: this.formData.majorId || "",
- schoolId: this.formData.schoolId || "",
- realname: this.formData.realname || "",
- searchStartTime: this.formData.searchStartTime / 1000 || "",
- searchEndTime: this.formData.searchEndTime / 1000 || "",
- };
- this.exputs(data);
- },
- changeIndex(v) {
- if (this.activeIndex === v) {
- return;
- }
- this.showIS = false;
- this.activeIndex = v;
- setTimeout(() => {
- this.showIS = true;
- }, 50);
- },
- openRecord(v) {
- this.$api
- .inquirebaseprofileStamplistRecord({
- userId: v.userId,
- goodsId: v.goodsId,
- })
- .then((res) => {
- if (!res.rows.length) {
- this.$message.warning("该条数据无审核记录");
- return;
- }
- res.rows.forEach((item) => {
- item.keyValue = JSON.parse(item.keyValue);
- var arst = [];
- for (let k in item.keyValue) {
- if (item.keyValue[k].fieldName) {
- arst.push(item.keyValue[k]);
- }
- }
- item.keyValueArrays = arst;
- });
- this.activeIndex = 0;
- this.recordList = res.rows;
- this.dialogVisibleRecord = true;
- });
- },
- pdStatus(int) {
- if (
- int === "recent_photos" ||
- int === "idcard_face_photo" ||
- int === "idcard_national_photo" ||
- int === "commitment_electr_signature"
- ) {
- return true;
- }
- },
- //1通过 3不通过
- submitTable(int) {
- this.disabledBtn = true;
- var data = JSON.parse(JSON.stringify(this.listData));
- for (let k in data.keyValue) {
- data.keyValue[k].status = 0;
- }
- data.keyValue = JSON.stringify(data.keyValue);
- data.status = int;
- data.changeStatus = 1;
- this.$api
- .editbaseprofileStampss(data)
- .then((res) => {
- this.$message.success("提交成功");
- this.search();
- this.dialogVisible = false;
- })
- .catch(() => {
- this.disabledBtn = false;
- });
- },
- loadingClose() {
- this.disabledBtn = false;
- },
- editInfo(v) {
- this.addClick(v, 0);
- },
- search(int) {
- this.loading = true;
- if (int === 1) {
- this.formData.pageNum = 1;
- }
- if (int === 2) {
- this.formData = {
- status: "",
- pageSize: 10,
- pageNum: 1,
- };
- }
- var data = JSON.parse(JSON.stringify(this.formData));
- if (this.formData.searchStartTime) {
- data.searchStartTime = data.searchStartTime / 1000;
- }
- if (this.formData.searchEndTime) {
- data.searchEndTime = data.searchEndTime / 1000;
- }
- this.$api
- .inquirebaseprofileStamp(data)
- .then((res) => {
- this.tableData = res.rows;
- this.total = res.total;
- this.navText.index = res.total;
- })
- .finally(() => {
- this.loading = false;
- });
- },
- init() {
- this.search(2);
- },
- del(v) {
- this.$alert(
- "确定删除此内容?<br />内容删除后将无法恢复,请慎重考虑",
- "提示",
- {
- dangerouslyUseHTMLString: true,
- }
- )
- .then(() => {
- var data = {
- natureId: v.natureId,
- status: -1,
- };
- this.$api.editpaynature(data).then((res) => {
- this.$message.success("删除成功");
- this.search();
- });
- })
- .catch(() => {
- this.$message({
- type: "info",
- message: "已取消删除",
- });
- });
- },
- addClick(v, int) {
- if (v === undefined) {
- this.listData = {};
- } else {
- this.$api.obtainbaseprofile(v.id).then((res) => {
- res.data.keyValue = JSON.parse(res.data.keyValue);
- this.listData = res.data;
- var arst = [];
- for (let k in res.data.keyValue) {
- if (res.data.keyValue[k].fieldName) {
- arst.push(res.data.keyValue[k]);
- }
- }
- this.listInfos = arst;
- });
- }
- this.dialogVisible = true;
- },
- submit() {
- this.disabledBtn = true;
- return;
- if (this.statusPop === 1) {
- this.$api
- .apppaynature(this.listData)
- .then((res) => {
- this.$message.success("新增成功");
- this.dialogVisible = false;
- this.search();
- })
- .catch(() => {
- this.disabledBtn = false;
- });
- }
- if (this.statusPop === 0) {
- this.$api
- .editpaynature(this.listData)
- .then((res) => {
- this.$message.success("修改成功");
- this.dialogVisible = false;
- this.search();
- })
- .catch(() => {
- this.disabledBtn = false;
- });
- }
- },
- close() {
- this.dialogVisible = false;
- },
- handleSizeChange(v) {
- this.formData.pageSize = v;
- this.formData.pageNum = 1;
- this.search();
- },
- handleCurrentChange(v) {
- this.formData.pageNum = v;
- this.search();
- },
- },
- };
- </script>
- <style lang="less" scoped>
- // 进入前和结束后的状态
- .v-enter,
- .v-leave-to {
- opacity: 0;
- // transform: translateX(80px);
- }
- // 进入和离开的动画时间段
- .v-enter-active,
- .v-leave-active {
- transition: all 0.5s ease;
- }
- .gdt {
- /* 设置滚动条的样式 */
- &::-webkit-scrollbar {
- width: 8px;
- }
- /* 滚动槽 */
- &::-webkit-scrollbar-track {
- -webkit-box-shadow: inset 6px rgba(0, 0, 0, 0.3);
- border-radius: 10px;
- }
- /* 滚动条滑块 */
- &::-webkit-scrollbar-thumb {
- border-radius: 10px;
- background: rgba(0, 0, 0, 0.1);
- -webkit-box-shadow: inset 06px rgba(0, 0, 0, 0.5);
- }
- &::-webkit-scrollbar-thumb:window-inactive {
- background: rgba(182, 182, 182, 0.4);
- }
- }
- .max_heightAuto {
- padding: 0px 10px;
- max-height: 560px;
- overflow-y: auto;
- }
- .float_lefts {
- float: left;
- padding: 0px 10px;
- border-radius: 12px;
- background-color: #eee;
- height: 35px;
- line-height: 35px;
- margin-right: 10px;
- }
- .lsTYs {
- height: 40px;
- border-top: 1px solid #999;
- border-left: 1px solid #999;
- border-right: 1px solid #999;
- line-height: 40px;
- cursor: pointer;
- text-align: center;
- &:last-child {
- border-bottom: 1px solid #999 !important;
- }
- }
- .active {
- color: blue;
- }
- .heightstybox {
- padding: 20px;
- height: 600px;
- overflow-y: auto;
- }
- .dissty {
- display: flex;
- align-items: center;
- padding: 20px;
- border-bottom: 1px dotted #999;
- }
- .stys {
- flex-shrink: 0;
- align-self: flex-start;
- width: 200px;
- padding-left: 50px;
- }
- .topStys {
- padding: 20px;
- background-color: rgb(215, 215, 215);
- display: flex;
- align-items: center;
- overflow-x: auto;
- .btnsTys {
- flex-shrink: 0;
- margin-right: 16px;
- padding: 0px 7px;
- background-color: #fff;
- border-radius: 4px;
- font-size: 14px;
- height: 40px;
- line-height: 40px;
- }
- }
- /deep/.el-button {
- border-radius: 8px;
- }
- /deep/ .el-dialog__body {
- padding: 10px 0px;
- }
- /deep/.el-dialog {
- border-radius: 8px;
- .el-dialog__header {
- padding: 0;
- .hearders {
- height: 40px;
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 0px 18px 0px 20px;
- border-bottom: 1px solid #e2e2e2;
- .leftTitle {
- font-size: 14px;
- font-weight: bold;
- color: #2f4378;
- }
- .rightBoxs {
- display: flex;
- align-items: center;
- img {
- width: 14px;
- height: 14px;
- margin-left: 13px;
- cursor: pointer;
- }
- }
- }
- }
- .el-dialog__footer {
- padding: 0;
- .dialog-footer {
- padding: 0px 40px;
- height: 70px;
- border-top: 1px solid #e2e2e2;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- }
- }
- .swq {
- text-align: center;
- border-bottom: 1px solid #eee;
- }
- .imgBox {
- width: 100%;
- // height: 210px;
- border: 1px solid #e2e2e2;
- border-radius: 8px;
- padding: 8px 8px 3px;
- display: flex;
- flex-direction: column;
- align-items: center;
- .imgLabel {
- flex: 1;
- width: 100%;
- border: 1px dotted #e2e2e2;
- color: #999;
- font-size: 14px;
- cursor: pointer;
- border-radius: 8px;
- .msPhoto {
- display: flex;
- justify-content: center;
- align-items: center;
- max-width: 100%;
- max-height: 270px;
- img {
- max-width: 100%;
- max-height: 270px;
- }
- }
- .imgbbx {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- width: 100%;
- height: 100%;
- i {
- font-weight: bold;
- margin: 14px 0;
- font-size: 24px;
- }
- }
- }
- p {
- margin: 5px 0px;
- }
- }
- </style>
|