yz_08
2021-02-09 cfa332bcf65caa1ba8549e552e3f809df95733f7
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,42 +4432,50 @@
      this.queryParams.delFlag = 2
      this.search()
    },
    putRemarkInfo() {
      if (this.isAdd) {
        this.$post('hr/empRemarkInfo', { ...this.remarkInfoForm }).then(() => {
          this.buttonLoading = false
          this.$message({
            message: this.$t('tips.createSuccess'),
            type: 'success'
          })
          this.cleanRemarkInfo()
          this.selectRemarkInfo()
        })
      } else {
        this.$put('hr/empRemarkInfo', { ...this.remarkInfoForm }).then(() => {
          this.$message({
            message: this.$t('tips.updateSuccess'),
            type: 'success'
          })
          this.$emit('success')
          this.cleanRemarkInfo()
          this.selectRemarkInfo()
        })
      }
      this.dialogIsShow()
    putRemarkInfo(formName) {
      this.$refs[formName].validate((valid) => {
        if (valid) {
          if (this.isAdd) {
            this.$post('hr/empRemarkInfo', { ...this.remarkInfoForm }).then(() => {
              this.buttonLoading = false
              this.$message({
                message: this.$t('tips.createSuccess'),
                type: 'success'
              })
              this.cleanRemarkInfo()
              this.selectRemarkInfo()
            })
          } else {
            this.$put('hr/empRemarkInfo', { ...this.remarkInfoForm }).then(() => {
              this.$message({
                message: this.$t('tips.updateSuccess'),
                type: 'success'
              })
              this.$emit('success')
              this.cleanRemarkInfo()
              this.selectRemarkInfo()
            })
          }
          this.dialogIsShow()
        }
      })
    },
    putRemarkInfoContinue() {
      if (this.isAdd) {
        this.$post('hr/empRemarkInfo', { ...this.remarkInfoForm }).then(() => {
          this.buttonLoading = false
          this.$message({
            message: this.$t('tips.createSuccess'),
            type: 'success'
          })
          this.cleanRemarkInfo()
          this.selectRemarkInfo()
        })
      }
    putRemarkInfoContinue(formName) {
      this.$refs[formName].validate((valid) => {
        if (valid) {
          if (this.isAdd) {
            this.$post('hr/empRemarkInfo', { ...this.remarkInfoForm }).then(() => {
              this.buttonLoading = false
              this.$message({
                message: this.$t('tips.createSuccess'),
                type: 'success'
              })
              this.cleanRemarkInfo()
              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' ? '男' : '女'
      }
@@ -4606,16 +4615,6 @@
          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
      }
    }
  }
@@ -4644,10 +4643,6 @@
  margin-top: 2%;
}
.el-select {
  width: 100%;
}
.commonBtn {
  background-color: rgb(163, 44, 48);
  color: white;
@@ -4663,25 +4658,26 @@
  color: rgb(163, 44, 48);
}
.el-date-editor.el-input,
.el-date-editor.el-input__inner {
  width: 100%;
}
.info-card {
  margin-top: 20px;
}
.el-header,
.el-footer {
</style>
<style lang="scss" scoped>
.el-select {
  width: 100%;
}
.el-autocomplete{
  width: 100%;
}
.el-header,.el-footer {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  line-height: 60px;
}
</style>
<style lang="scss" scoped>
.el-autocomplete {
.el-date-editor.el-input,
.el-date-editor.el-input__inner {
  width: 100%;
}
</style>