yubo
2025-09-24 66547629f3d909090dab50197ac01ae51d3c5e60
src/views/remind/insurance5.vue
@@ -468,21 +468,6 @@
    // this.initJob()
  },
  methods: {
    exportExcel() {
      this.queryParams.baseKey = this.queryParams.vague
      this.queryParams.delFlag = 0
      this.queryParams.empStatus = 0
      var params = this.queryParams
      this.$download('hr/empBaseInfo/exportEmpAll', { ...params }, `基本信息_${new Date().getTime()}.xls`).then(() => {
        this.$message({
          message: '下载成功!',
          type: 'success'
        })
      })
    },
    editClose() {
      this.dialog.isVisible = false
    },
    // 翻页方法
    search() {
      this.queryParams.baseKey = ''
@@ -503,7 +488,7 @@
    },
    fetch(params = {}) {
      var that = this
      const that = this
      params.pageSize = this.pagination.size
      params.pageNum = this.pagination.num
      params.delFlag = 0
@@ -515,14 +500,6 @@
        that.total = data.total
        that.tableData = data.rows
      })
    },
    vagueSearch() {
      this.fetch({
        baseKey: this.queryParams.baseKey
      })
    },
    empStatusFormat(row, column) {
      return this.selectDictLabel(this.empStatusOptions, row.empStatus)
    },
    typeFormat(row, column) {
      return this.selectDictLabel(this.physicalExamTypeOptions, row.physicalExamType)
@@ -613,24 +590,6 @@
      }
    },
    // 图片预览
    handlePictureCardPreview(file) {
      this.empBaseInfoImageUrl = URL.createObjectURL(file.raw) // 获取URL
      // 判断图片大小
      if (file.size < 4400000) {
        // 判断图片格式是否为jpg,png,jepg,gif
        var fileName = file.name
        // var suffixIndex=fileName.lastIndexOf(".")
        // var suffix=fileName.substring(suffixIndex+1).toUpperCase()
        var suffix = fileName.substring(fileName.lastIndexOf('.') + 1).toUpperCase()
        if (suffix === 'JPG' || suffix === 'PNG') {
          this.preView(this.empBaseInfoImageUrl)
        } else {
          this.$message.error('只能上传jpg/png文件,且不超过4MB,请重新上传!')
        }
      } else {
        this.$message.error('图片大小超过4M,请重新上传')
      }
    },
    handleCheckAllChange(val) {
      this.checkedCities = val ? this.cityOptions : []
      this.isIndeterminate = false