luoyb
2021-02-05 755cd8a5a7f5be8e3e6d119fd68e24a1be590e0a
src/views/user/Informationinput.vue
@@ -1747,7 +1747,7 @@
      </div>
    </el-dialog>
    <el-dialog title="备注信息" :visible.sync="dialogshowArr[13].show" width="50%">
      <el-form :model="remarkInfoForm" :rules="rules" label-position="right" label-width="140px">
      <el-form ref="remarkInfoForm" :model="remarkInfoForm" :rules="rules" label-position="right" label-width="140px">
        <el-row>
          <el-col :span="12">
            <el-form-item label="姓名" prop="empName">
@@ -1791,8 +1791,8 @@
        </el-row>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="putRemarkInfo()">保 存</el-button>
        <el-button type="primary" @click="putRemarkInfoContinue()">保存并继续新增</el-button>
        <el-button type="primary" @click="putRemarkInfo('remarkInfoForm')">保 存</el-button>
        <el-button type="primary" @click="putRemarkInfoContinue('remarkInfoForm')">保存并继续新增</el-button>
        <el-button @click="dialogIsShow()">取 消</el-button>
      </div>
    </el-dialog>
@@ -4432,7 +4432,9 @@
      this.queryParams.delFlag = 2
      this.search()
    },
    putRemarkInfo() {
    putRemarkInfo(formName) {
      this.$refs[formName].validate((valid) => {
        if (valid) {
      if (this.isAdd) {
        this.$post('hr/empRemarkInfo', { ...this.remarkInfoForm }).then(() => {
          this.buttonLoading = false
@@ -4455,8 +4457,12 @@
        })
      }
      this.dialogIsShow()
        }
      })
    },
    putRemarkInfoContinue() {
    putRemarkInfoContinue(formName) {
      this.$refs[formName].validate((valid) => {
        if (valid) {
      if (this.isAdd) {
        this.$post('hr/empRemarkInfo', { ...this.remarkInfoForm }).then(() => {
          this.buttonLoading = false
@@ -4468,6 +4474,8 @@
          this.selectRemarkInfo()
        })
      }
        }
      })
    },
    cleanRemarkInfo() {
      this.remarkInfoForm.remarkId = ''
@@ -4562,12 +4570,13 @@
            this.inputForName = 'remarkInfoForm'
            break
        }
        console.log(this[this.inputForName])
        this[this.inputForName].empId = data.empId
        this[this.inputForName].empName = data.empName
        this[this.inputForName].empNumb = data.empNumb
        this[this.inputForName].certificateNumb = data.certificateNumb
        this[this.inputForName].deptId = data.deptId
        this[this.inputForName].deptName = data.deptName
        this[this.inputForName].JobId = data.jobId
        this[this.inputForName].jobName = data.jobName
        this[this.inputForName].sex = data.sex === '0' ? '男' : '女'
      }
@@ -4605,16 +4614,6 @@
          this.empBaseInfoForm.age = userinfo.age
          this.empBaseInfoForm.birthdate = userinfo.birth
          this.empBaseInfoForm.sex = userinfo.sex
          break
        case 1:
          this.workExperienceForm.age = userinfo.age
          this.workExperienceForm.birthdate = userinfo.birth
          this.workExperienceForm.sex = userinfo.sex
          break
        case 2:
          this.physicalExamForm.age = userinfo.age
          this.physicalExamForm.birthdate = userinfo.birth
          this.physicalExamForm.sex = userinfo.sex
          break
      }
    }