qushaowei
2024-07-12 336dcb70c156c947530eab0f0a96ee17de477929
src/views/eam/OperationCertificateApplyList.vue
@@ -37,22 +37,22 @@
              />
            </a-form-item>
          </a-col>
          <template v-if="toggleSearchStatus">
            <a-col
              :xl="6"
              :lg="7"
              :md="8"
              :sm="24"
            >
              <a-form-item label="审核状态">
                <j-dict-select-tag
                  placeholder="请选择审核状态"
                  v-model="queryParam.auditStatus"
                  dictCode="certificate_apply_status"
                />
              </a-form-item>
            </a-col>
          </template>
          <!-- <template v-if="toggleSearchStatus"> -->
          <a-col
            :xl="6"
            :lg="7"
            :md="8"
            :sm="24"
          >
            <a-form-item label="审核状态">
              <j-dict-select-tag
                placeholder="请选择审核状态"
                v-model="queryParam.auditStatus"
                dictCode="certificate_apply_status"
              />
            </a-form-item>
          </a-col>
          <!-- </template> -->
          <a-col
            :xl="6"
            :lg="7"
@@ -74,13 +74,13 @@
                icon="reload"
                style="margin-left: 8px"
              >重置</a-button>
              <a
              <!-- <a
                @click="handleToggleSearch"
                style="margin-left: 8px"
              >
                {{ toggleSearchStatus ? '收起' : '展开' }}
                <a-icon :type="toggleSearchStatus ? 'up' : 'down'" />
              </a>
              </a> -->
            </span>
          </a-col>
        </a-row>
@@ -100,7 +100,7 @@
        icon="download"
        @click="handleExportXls('操作证申请表')"
      >导出</a-button>
      <a-upload
      <!-- <a-upload
        name="file"
        :showUploadList="false"
        :multiple="false"
@@ -112,7 +112,7 @@
          type="primary"
          icon="import"
        >导入</a-button>
      </a-upload>
      </a-upload> -->
      <a-button
        @click="handleAchievement"
        type="primary"
@@ -159,50 +159,6 @@
        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
        @change="handleTableChange"
      >
        <template
          slot="htmlSlot"
          slot-scope="text"
        >
          <div v-html="text"></div>
        </template>
        <template
          slot="imgSlot"
          slot-scope="text,record"
        >
          <span
            v-if="!text"
            style="font-size: 12px;font-style: italic;"
          >无图片</span>
          <img
            v-else
            :src="getImgView(text)"
            :preview="record.id"
            height="25px"
            alt=""
            style="max-width:80px;font-size: 12px;font-style: italic;"
          />
        </template>
        <template
          slot="fileSlot"
          slot-scope="text"
        >
          <span
            v-if="!text"
            style="font-size: 12px;font-style: italic;"
          >无文件</span>
          <a-button
            v-else
            :ghost="true"
            type="primary"
            icon="download"
            size="small"
            @click="downloadFile(text)"
          >
            下载
          </a-button>
        </template>
        <span
          slot="action"
          slot-scope="text, record"
@@ -251,20 +207,6 @@
            @click="handleFinish(record)"
            v-has="'OperationCertificateApply:equipmentAdmin'"
          >审核</a>
          <!-- <a-popconfirm
            v-if="record.auditStatus == 'submitted'"
            title="确认通过审批吗?"
            @confirm="() =>handleCommit(record, 'approved')"
          >
            <a>审批</a>
          </a-popconfirm>
          <a-popconfirm
            v-if="record.auditStatus == 'approved'"
            title="确认通过审核吗?"
            @confirm="() =>handleCommit(record, 'audited')"
          >
            <a>审核</a>
          </a-popconfirm> -->
          <a-divider
            type="vertical"
            v-if="record.auditStatus == 'created' || record.auditStatus == 'submitted' || record.auditStatus == 'approved'"
@@ -387,9 +329,9 @@
          dataIndex: 'handlePerson_dictText'
        },
        {
          title: '备注',
          title: '办理时间',
          align: "center",
          dataIndex: 'remark'
          dataIndex: 'createTime'
        },
        {
          title: '操作',
@@ -409,11 +351,11 @@
        approve: "/eam/operationCertificateApply/approve"
      },
      dictOptions: {},
      superFieldList: [],
      // superFieldList: [],
    }
  },
  created() {
    this.getSuperFieldList();
    // this.getSuperFieldList();
  },
  computed: {
    importExcelUrl: function () {
@@ -421,19 +363,19 @@
    }
  },
  methods: {
    initDictConfig() {
    },
    getSuperFieldList() {
      let fieldList = [];
      fieldList.push({ type: 'string', value: 'num', text: '申请单编号', dictCode: '' })
      fieldList.push({ type: 'string', value: 'type', text: '类型', dictCode: 'apply_type' })
      fieldList.push({ type: 'sel_depart', value: 'departId', text: '所在单位' })
      fieldList.push({ type: 'string', value: 'contactNumber', text: '申请单位联系电话', dictCode: '' })
      fieldList.push({ type: 'string', value: 'applicant', text: '申请人', dictCode: "sys_user,realname,id" })
      fieldList.push({ type: 'string', value: 'auditStatus', text: '审核状态', dictCode: 'certificate_apply_status' })
      fieldList.push({ type: 'string', value: 'remark', text: '备注', dictCode: '' })
      this.superFieldList = fieldList
    },
    // initDictConfig() {
    // },
    // getSuperFieldList() {
    //   let fieldList = [];
    //   fieldList.push({ type: 'string', value: 'num', text: '申请单编号', dictCode: '' })
    //   fieldList.push({ type: 'string', value: 'type', text: '类型', dictCode: 'apply_type' })
    //   fieldList.push({ type: 'sel_depart', value: 'departId', text: '所在单位' })
    //   fieldList.push({ type: 'string', value: 'contactNumber', text: '申请单位联系电话', dictCode: '' })
    //   fieldList.push({ type: 'string', value: 'applicant', text: '申请人', dictCode: "sys_user,realname,id" })
    //   fieldList.push({ type: 'string', value: 'auditStatus', text: '审核状态', dictCode: 'certificate_apply_status' })
    //   fieldList.push({ type: 'string', value: 'remark', text: '备注', dictCode: '' })
    //   this.superFieldList = fieldList
    // },
    handleCommit(record, type) {
      if (type == 'commit') {
        record.auditStatus = 'submitted'