jiangping
2025-07-15 8c1672bc781f07cba264d610fef12c10a4d8a43b
前端
已修改3个文件
69 ■■■■ 文件已修改
admin/src/api/business/identityInfo.js 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/src/components/business/OperaIdentityDetailWindow.vue 58 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/src/components/business/OperaMemberDetailWindow.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
admin/src/api/business/identityInfo.js
@@ -16,6 +16,9 @@
export function create (data) {
  return request.post('/business/identityInfo/create', data)
}
export function approveDo (data) {
  return request.post('/business/identityInfo/create', data)
}
// 修改
export function updateById (data) {
admin/src/components/business/OperaIdentityDetailWindow.vue
@@ -7,7 +7,7 @@
    :confirm-working="isWorking"
    @close="close"
    @confirm="confirm">
    <div style="width: 100%; position: sticky;padding: 12px 16px; top: 0px; left: 0; z-index: 999; background-color: white">
    <div style="width: calc(100% - 32px); position: sticky;padding: 12px 16px; top: 0px; left: 0; z-index: 999; background-color: white">
      <div style="display: flex;background: #e4ecfe;padding: 20px">
        <div style="width: 60px;">
          <div class="home_title" v-if="info">
@@ -21,8 +21,7 @@
        <div style="width: calc(100% - 60px);">
          <div class="home_title" v-if="info">
            <div class="left">
              <span class="m10">昵称:{{info.nickName }}</span>
              <span class="mr10 bluebtn" :title="'姓名:'+(info.name||'未设置姓名')"  >({{(info.name||'未设置姓名') }})</span>
              <span class="m10">昵称:{{info.nickName }}  <span class="ml10 bluebtn" :title="'姓名:'+(info.name||'未设置姓名')"  >({{(info.name||'未设置姓名') }})</span></span>
              <el-tag type="primary" class="mr10 tag1">发单方</el-tag>
              <el-tag type="success" class="mr10 tag1" v-if="info.workerIdentity == 2 || info.driverIdentity == 2 || info.chefIdentity == 2">接单方</el-tag>
            </div>
@@ -41,7 +40,7 @@
              <span class="m10" v-if="item.type ==0">用工认证</span>
              <span class="m10" v-if="item.type ==1">货运认证</span>
              <span class="m10" v-if="item.type ==2">供餐认证</span>
              <el-tag type="primary" class="ml10 tag2" v-if="item.auditStatus == 1">认证中</el-tag>
              <el-tag type="primary" class="ml10 tag2" v-if="item.auditStatus == 1">申请中</el-tag>
              <el-tag type="success" class="ml10 tag2" v-if="item.auditStatus == 2">认证通过</el-tag>
              <el-tag type="danger" class="ml10 tag2" v-if="item.auditStatus == 3">认证失败</el-tag>
          </div>
@@ -50,6 +49,7 @@
              <span class="label"> 认证类型:</span> <span class="txt">{{item.authType == 0? '个人':'企业' }}</span>
              <span class="label"> 联系人:</span> <span class="txt">{{item.linkName || '' }}</span>
              <span class="label"> 联系方式:</span> <span class="txt">{{item.telephone || '' }}</span>
              <span class="label"> 申请时间:</span> <span class="txt">{{item.createTime || '' }}</span>
            </div>
            <template v-if="item.authType ==1">
              <div class="line">
@@ -72,6 +72,15 @@
              <span class="label"> 审核人:</span> <span class="txt">{{item.editorName}} </span><span class="label">{{item.auditTime || '' }} </span>
              <div  style="margin-top: 20px"> <span class="label">  审核信息:</span> <span class="txt">{{item.auditRemark || '' }}</span></div>
          </div>
            <div class="line bottom"  v-if="item.auditStatus == 1"  >
              <el-form :model="form" ref="form" :rules="rules">
                <el-form-item label="认证审核说明" style="font-size: 14px" prop="auditRemark">
                  <el-input  type="textarea" rows="5" v-model="form.auditRemark" placeholder="请输入认证审核备注" v-trim/>
                </el-form-item>
              </el-form>
              <el-button @click="checkDo(2)" type="primary" class="status-red">同意</el-button>
              <el-button  @click="checkDo(3)" type="danger" >拒绝</el-button>
            </div>
          </div>
        </div>
    </div>
@@ -82,7 +91,7 @@
import GlobalWindow from '@/components/common/GlobalWindow'
import BaseOpera from '@/components/base/BaseOpera'
import { getById } from '@/api/business/member'
import { fetchList as renzhengList} from '@/api/business/identityInfo'
import { fetchList as renzhengList,approveDo } from '@/api/business/identityInfo'
export default {
  components: {
    GlobalWindow
@@ -90,6 +99,11 @@
  extends: BaseOpera,
  data () {
    return {
      form: {
        id: null,
        auditRemark: null
      },
      rules: { auditRemark: [{ required: true, message: '请输入认证审核备注' }] },
      id: '',
      memberId: '',
      visible: false,
@@ -129,6 +143,7 @@
      this.tableData1 = {}
      this.tableData2 = []
      this.id = row.id
      this.form.id = this.id
      this.memberId = row.memberId
      this.searchForm = {
        type: 0,
@@ -151,6 +166,30 @@
    },
    close () {
    },
    checkDo (status) {
      this.$refs.form.validate((valid) => {
        if (!valid) {
          return
        }
        this.$dialog.actionConfirm('操作确认', '您确认【' + (status == 3 ? '拒绝' : '同意') + '】该申请吗?')
          .then(() => {
            this.dealing = true
            approveDo({
              id: this.dataId,
              auditStatus: status,
              auditRemark: this.form.auditRemark
            })
              .then(res => {
                this.$tip.apiSuccess('处理成功')
                this.getData()
                this.isShowProblem = false
              })
              .finally(() => {
                this.dealing = false
              })
          })
      })
    },
    getRenzhengList () {
      this.loading = true
@@ -176,6 +215,15 @@
<style lang="scss" scoped>
@import '@/assets/style/variables.scss';
.bottom{
  text-align: center;
  display: block;
  height: auto;
  background-color: #e4ecfe;
  width: calc(100% - 32px);
  z-index: 999;
  padding: 16px;
}
.renzheng{
  margin: 0px 0px 50px 20px;
  width: calc(100% - 60px);
admin/src/components/business/OperaMemberDetailWindow.vue
@@ -7,7 +7,7 @@
    :confirm-working="isWorking"
    @close="close"
    @confirm="confirm">
    <div style="width: 100%; position: sticky;padding: 12px 16px; top: 0px; left: 0; z-index: 999; background-color: white">
    <div style="width: calc(100% - 32px); position: sticky;padding: 12px 16px; top: 0px; left: 0; z-index: 999; background-color: white">
      <div style="display: flex;background: #e4ecfe;padding: 20px">
        <div style="width: 60px;">
          <div class="home_title" v-if="info">
@@ -21,8 +21,7 @@
        <div style="width: calc(100% - 60px);">
          <div class="home_title" v-if="info">
            <div class="left">
              <span class="m10">昵称:{{info.nickName }}</span>
              <span class="mr10 bluebtn" :title="'姓名:'+(info.name||'未设置姓名')"  >({{(info.name||'未设置姓名') }})</span>
              <span class="m10">昵称:{{info.nickName }}  <span class="ml10 bluebtn" :title="'姓名:'+(info.name||'未设置姓名')"  >({{(info.name||'未设置姓名') }})</span></span>
              <el-tag type="primary" class="mr10 tag1">发单方</el-tag>
              <el-tag type="success" class="mr10 tag1" v-if="info.workerIdentity == 2 || info.driverIdentity == 2 || info.chefIdentity == 2">接单方</el-tag>
            </div>
@@ -141,7 +140,7 @@
              <span class="m10" v-if="item.type ==0">用工认证</span>
              <span class="m10" v-if="item.type ==1">货运认证</span>
              <span class="m10" v-if="item.type ==2">供餐认证</span>
              <el-tag type="primary" class="ml10 tag2" v-if="item.auditStatus == 1">认证中</el-tag>
              <el-tag type="primary" class="ml10 tag2" v-if="item.auditStatus == 1">申请中</el-tag>
              <el-tag type="success" class="ml10 tag2" v-if="item.auditStatus == 2">认证通过</el-tag>
              <el-tag type="danger" class="ml10 tag2" v-if="item.auditStatus == 3">认证失败</el-tag>
          </div>
@@ -150,6 +149,7 @@
              <span class="label"> 认证类型:</span> <span class="txt">{{item.authType == 0? '个人':'企业' }}</span>
              <span class="label"> 联系人:</span> <span class="txt">{{item.linkName || '' }}</span>
              <span class="label"> 联系方式:</span> <span class="txt">{{item.telephone || '' }}</span>
              <span class="label"> 申请时间:</span> <span class="txt">{{item.createTime || '' }}</span>
            </div>
            <template v-if="item.authType ==1">
              <div class="line">