..
孔祥富
2021-03-11 5514f99ee34746a33bce390c33a0ff1788e2a5c4
src/views/user/archivesEdit.vue
@@ -578,7 +578,7 @@
                <el-table-column show-overflow-tooltip="true" prop="jobContent" label="主要工作内容" />
                <el-table-column show-overflow-tooltip="true" fixed="right" label="操作" width="120">
                  <template slot-scope="scope">
                    <span class="table-button" @click="editWorkExperience(scope.row)">编辑</span>
                    <span class="table-button" @click="editWorkExperience(scope.row,1)">编辑</span>
                    <span class="table-button" @click="singleDelete(scope.row, 'workExperienceDataselection')">删除</span>
                  </template>
                </el-table-column>
@@ -618,7 +618,7 @@
                </el-table-column>
                <el-table-column show-overflow-tooltip="true" fixed="right" label="操作" width="120">
                  <template slot-scope="scope">
                    <span class="table-button" @click="editPhysicalExam(scope.row)">编辑</span>
                    <span class="table-button" @click="editPhysicalExam(scope.row,2)">编辑</span>
                    <span class="table-button" @click="singleDelete(scope.row, 'physicalExamDataselection')">删除</span>
                  </template>
                </el-table-column>
@@ -668,7 +668,7 @@
                </el-table-column>
                <el-table-column show-overflow-tooltip="true" fixed="right" label="操作" width="120">
                  <template slot-scope="scope">
                    <span class="table-button" @click="editContractInfo(scope.row)">编辑</span>
                    <span class="table-button" @click="editContractInfo(scope.row,3)">编辑</span>
                    <span class="table-button" @click="singleDelete(scope.row, 'contractInfoDataselection')">删除</span>
                  </template>
                </el-table-column>
@@ -750,7 +750,7 @@
                </el-table-column>
                <el-table-column show-overflow-tooltip="true" fixed="right" label="操作" width="120">
                  <template slot-scope="scope">
                    <span class="table-button" @click="editLeaveInfo(scope.row)">编辑</span>
                    <span class="table-button" @click="editLeaveInfo(scope.row,5)">编辑</span>
                    <span class="table-button" @click="singleDelete(scope.row, 'onleaveInfoDataselection')">删除</span>
                  </template>
                </el-table-column>
@@ -798,7 +798,7 @@
                </el-table-column>
                <el-table-column show-overflow-tooltip="true" fixed="right" label="操作" width="120">
                  <template slot-scope="scope">
                    <span class="table-button" @click="editResign(scope.row)">编辑</span>
                    <span class="table-button" @click="editResign(scope.row,5)">编辑</span>
                    <span class="table-button" @click="singleDelete(scope.row, 'onresignDataselection')">删除</span>
                  </template>
                </el-table-column>
@@ -843,7 +843,7 @@
                </el-table-column>
                <el-table-column show-overflow-tooltip="true" fixed="right" label="操作" width="120">
                  <template slot-scope="scope">
                    <span class="table-button" @click="editDimissionAttend(scope.row)">编辑</span>
                    <span class="table-button" @click="editDimissionAttend(scope.row,6)">编辑</span>
                    <span class="table-button" @click="singleDelete(scope.row, 'dimissionAttendDataselection')">删除</span>
                  </template>
                </el-table-column>
@@ -927,7 +927,7 @@
                </el-table-column>
                <el-table-column show-overflow-tooltip="true" fixed="right" label="操作" width="120">
                  <template slot-scope="scope">
                    <span class="table-button" @click="editUnemployment(scope.row)">编辑</span>
                    <span class="table-button" @click="editUnemployment(scope.row,7)">编辑</span>
                    <span class="table-button" @click="singleDelete(scope.row, 'unemploymentDataselection')">删除</span>
                  </template>
                </el-table-column>
@@ -973,7 +973,7 @@
                </el-table-column>
                <el-table-column show-overflow-tooltip="true" fixed="right" label="操作" width="120">
                  <template slot-scope="scope">
                    <span class="table-button" @click="editInsurance(scope.row)">编辑</span>
                    <span class="table-button" @click="editInsurance(scope.row,8)">编辑</span>
                    <span class="table-button" @click="singleDelete(scope.row, 'oninsuranceDataselection')">删除</span>
                  </template>
                </el-table-column>
@@ -1021,7 +1021,7 @@
                </el-table-column>
                <el-table-column show-overflow-tooltip="true" fixed="right" label="操作" width="120">
                  <template slot-scope="scope">
                    <span class="table-button" @click="editAccidentCases(scope.row)">编辑</span>
                    <span class="table-button" @click="editAccidentCases(scope.row,9)">编辑</span>
                    <span class="table-button" @click="singleDelete(scope.row, 'accidentCasesDataselection')">删除</span>
                  </template>
                </el-table-column>
@@ -1077,7 +1077,7 @@
                </el-table-column>
                <el-table-column show-overflow-tooltip="true" fixed="right" label="操作" width="120">
                  <template slot-scope="scope">
                    <span class="table-button" @click="editOccupational(scope.row)">编辑</span>
                    <span class="table-button" @click="editOccupational(scope.row,10)">编辑</span>
                    <span class="table-button" @click="singleDelete(scope.row, 'occupationalDataselection')">删除</span>
                  </template>
                </el-table-column>
@@ -1133,7 +1133,7 @@
                </el-table-column>
                <el-table-column show-overflow-tooltip="true" fixed="right" label="操作" width="120">
                  <template slot-scope="scope">
                    <span class="table-button" @click="editLaborTrouble(scope.row)">编辑</span>
                    <span class="table-button" @click="editLaborTrouble(scope.row,11)">编辑</span>
                    <span class="table-button" @click="singleDelete(scope.row, 'laborTroubleDataselection')">删除</span>
                  </template>
                </el-table-column>
@@ -1182,7 +1182,7 @@
                </el-table-column>
                <el-table-column show-overflow-tooltip="true" fixed="right" label="操作" width="120">
                  <template slot-scope="scope">
                    <span class="table-button" @click="editBadRecord(scope.row)">编辑</span>
                    <span class="table-button" @click="editBadRecord(scope.row,12)">编辑</span>
                    <span class="table-button" @click="singleDelete(scope.row, 'onbadRecordDataselection')">删除</span>
                  </template>
                </el-table-column>
@@ -1234,7 +1234,7 @@
                    <!--                    @click="singleDelete(scope.row, 'onremarkInfoDataselection')"-->
                    <!--                  >删除-->
                    <!--                  </el-button>-->
                    <span class="table-button" @click="editRemarkInfo(scope.row)">编辑</span>
                    <span class="table-button" @click="editRemarkInfo(scope.row,13)">编辑</span>
                    <span class="table-button" @click="singleDelete(scope.row, 'onremarkInfoDataselection')">删除</span>
                  </template>
                </el-table-column>
@@ -1506,7 +1506,7 @@
        </el-form>
        <div slot="footer" class="dialog-footer">
          <el-button type="primary" @click="putWorkExperience('workExperienceForm')">保 存</el-button>
          <el-button @click="dialogIsShow()">取 消</el-button>
        </div>
      </el-dialog>
      <el-dialog title="体检信息" append-to-body :visible.sync="dialogshowArr[2].show" width="50%">
@@ -1610,7 +1610,7 @@
        </el-form>
        <div slot="footer" class="dialog-footer">
          <el-button type="primary" @click="putPhysicalExam('physicalExamForm')">保 存</el-button>
          <el-button @click="dialogIsShow()">取 消</el-button>
        </div>
      </el-dialog>
      <el-dialog title="合同信息" append-to-body :visible.sync="dialogshowArr[3].show" width="50%">
@@ -1699,7 +1699,7 @@
        </el-form>
        <div slot="footer" class="dialog-footer">
          <el-button type="primary" @click="putContractInfo('contractInfoForm')">保 存</el-button>
          <el-button @click="dialogIsShow()">取 消</el-button>
        </div>
      </el-dialog>
      <el-dialog title="离职当月考勤" append-to-body :visible.sync="dialogshowArr[4].show" width="50%">
@@ -1781,7 +1781,7 @@
        </el-form>
        <div slot="footer" class="dialog-footer">
          <el-button type="primary" @click="putDimissionAttend('dimissionAttendForm')">保 存</el-button>
          <el-button @click="dialogIsShow()">取 消</el-button>
        </div>
      </el-dialog>
      <el-dialog title="请假记录" append-to-body :visible.sync="dialogshowArr[5].show" width="50%">
@@ -1882,7 +1882,7 @@
        </el-form>
        <div slot="footer" class="dialog-footer">
          <el-button type="primary" @click="putLeaveInfo('leaveInfoForm')">保 存</el-button>
          <el-button @click="dialogIsShow()">取 消</el-button>
        </div>
      </el-dialog>
      <el-dialog title="辞职申请" append-to-body :visible.sync="dialogshowArr[6].show" width="50%">
@@ -1948,7 +1948,7 @@
        </el-form>
        <div slot="footer" class="dialog-footer">
          <el-button type="primary" @click="putResign('resignForm')">保 存</el-button>
          <el-button @click="dialogIsShow()">取 消</el-button>
        </div>
      </el-dialog>
      <el-dialog title="失业金领取" append-to-body :visible.sync="dialogshowArr[7].show" width="50%">
@@ -2020,7 +2020,7 @@
        </el-form>
        <div slot="footer" class="dialog-footer">
          <el-button type="primary" @click="putUnemployment('unemploymentForm')">保 存</el-button>
          <el-button @click="dialogIsShow()">取 消</el-button>
        </div>
      </el-dialog>
      <el-dialog title="社保申请" append-to-body :visible.sync="dialogshowArr[8].show" width="50%">
@@ -2118,7 +2118,7 @@
        </el-form>
        <div slot="footer" class="dialog-footer">
          <el-button type="primary" @click="putInsurance('insuranceForm')">保 存</el-button>
          <el-button @click="dialogIsShow()">取 消</el-button>
        </div>
      </el-dialog>
      <el-dialog title="意外险案件" append-to-body :visible.sync="dialogshowArr[9].show" width="50%">
@@ -2270,7 +2270,7 @@
        </el-form>
        <div slot="footer" class="dialog-footer">
          <el-button type="primary" @click="putAccidentCases('accidentCasesForm')">保 存</el-button>
          <el-button @click="dialogIsShow()">取 消</el-button>
        </div>
      </el-dialog>
      <el-dialog title="工伤案件" append-to-body :visible.sync="dialogshowArr[10].show" width="50%">
@@ -2467,7 +2467,7 @@
        </el-form>
        <div slot="footer" class="dialog-footer">
          <el-button type="primary" @click="putOccupational('occupationalForm')">保 存</el-button>
          <el-button @click="dialogIsShow()">取 消</el-button>
        </div>
      </el-dialog>
      <el-dialog title="劳资案件" append-to-body :visible.sync="dialogshowArr[11].show" width="50%">
@@ -2574,7 +2574,7 @@
        </el-form>
        <div slot="footer" class="dialog-footer">
          <el-button type="primary" @click="putLaborTrouble('laborTroubleForm')">保 存</el-button>
          <el-button @click="dialogIsShow()">取 消</el-button>
        </div>
      </el-dialog>
      <el-dialog title="不良记录" append-to-body :visible.sync="dialogshowArr[12].show" width="50%">
@@ -2646,7 +2646,7 @@
        </el-form>
        <div slot="footer" class="dialog-footer">
          <el-button type="primary" @click="putBadRecord('badRecordForm')">保 存</el-button>
          <el-button @click="dialogIsShow()">取 消</el-button>
        </div>
      </el-dialog>
      <el-dialog title="备注信息" append-to-body :visible.sync="dialogshowArr[13].show" width="50%">
@@ -2708,7 +2708,7 @@
        </el-form>
        <div slot="footer" class="dialog-footer">
          <el-button type="primary" @click="putRemarkInfo('remarkInfoForm')">保 存</el-button>
          <el-button @click="dialogIsShow()">取 消</el-button>
        </div>
      </el-dialog>
    </el-dialog>
@@ -4191,6 +4191,10 @@
      this.readon = true
    },
    gzupdate1() {
      const empBaseInfoForm = this.empBaseInfoForm
      if (empBaseInfoForm.imagePath.indexOf('data:image/jpeg') === -1) {
        this.empBaseInfoForm.imagePath = ''
      }
      this.$put('hr/empBaseInfo', { ...this.empBaseInfoForm }).then(() => {
        this.$message({
          message: this.$t('tips.updateSuccess'),
@@ -4985,6 +4989,7 @@
      this.remarkInfoForm.version = ''
    },
    dialogIsShow() {
      debugger
      this.workExperienceModal = false
      this.isAdd = true
      this.dialogshowArr[this.thisShowIndex].show = !this.dialogshowArr[this.thisShowIndex]
@@ -5062,6 +5067,7 @@
      this.workExperienceForm.modifier = row.modifier
      this.workExperienceForm.delFlag = row.delFlag
      this.workExperienceForm.version = row.version
      this.thisShowIndex = 1
      this.dialogshowArr[1].show = true
    },
    editPhysicalExam(row) {
@@ -5091,7 +5097,7 @@
      this.physicalExamForm.modifier = row.modifier
      this.physicalExamForm.delFlag = row.delFlag
      this.physicalExamForm.version = row.version
      this.thisShowIndex = 2
      this.dialogshowArr[2].show = true
    },
    editContractInfo(row) {
@@ -5120,7 +5126,7 @@
      this.contractInfoForm.modifier = row.modifier
      this.contractInfoForm.delFlag = row.delFlag
      this.contractInfoForm.version = row.version
      this.thisShowIndex = 3
      this.dialogshowArr[3].show = true
    },
    editDimissionAttend(row) {
@@ -5148,6 +5154,7 @@
      this.dimissionAttendForm.delFlag = row.delFlag
      this.dimissionAttendForm.version = row.version
      this.dimissionAttendForm.remark = row.remark
      this.thisShowIndex = 4
      this.dialogshowArr[4].show = true
    },
    editLeaveInfo(row) {
@@ -5176,7 +5183,7 @@
      this.leaveInfoForm.delFlag = row.delFlag
      this.leaveInfoForm.version = row.version
      this.leaveInfoForm.remark = row.remark
      this.thisShowIndex = 5
      this.dialogshowArr[5].show = true
    },
    editResign(row) {
@@ -5202,7 +5209,7 @@
      this.resignForm.delFlag = row.delFlag
      this.resignForm.version = row.version
      this.resignForm.remark = row.remark
      this.thisShowIndex = 6
      this.dialogshowArr[6].show = true
    },
    editUnemployment(row) {
@@ -5229,7 +5236,7 @@
      this.unemploymentForm.modifier = row.modifier
      this.unemploymentForm.delFlag = row.delFlag
      this.unemploymentForm.version = row.version
      this.thisShowIndex = 7
      this.dialogshowArr[7].show = true
    },
    editInsurance(row) {
@@ -5257,7 +5264,7 @@
      this.insuranceForm.delFlag = row.delFlag
      this.insuranceForm.version = row.version
      this.insuranceForm.remark = row.remark
      this.thisShowIndex = 8
      this.dialogshowArr[8].show = true
    },
    editAccidentCases(row) {
@@ -5298,7 +5305,7 @@
      this.accidentCasesForm.modifier = row.modifier
      this.accidentCasesForm.delFlag = row.delFlag
      this.accidentCasesForm.version = row.version
      this.thisShowIndex = 9
      this.dialogshowArr[9].show = true
    },
    editOccupational(row) {
@@ -5348,7 +5355,7 @@
      this.occupationalForm.delFlag = row.delFlag
      this.occupationalForm.version = row.version
      this.occupationalForm.remark = row.remark
      this.thisShowIndex = 10
      this.dialogshowArr[10].show = true
    },
    editLaborTrouble(row) {
@@ -5378,7 +5385,7 @@
      this.laborTroubleForm.delFlag = row.delFlag
      this.laborTroubleForm.version = row.version
      this.laborTroubleForm.remark = row.remark
      this.thisShowIndex = 11
      this.dialogshowArr[11].show = true
    },
    editBadRecord(row) {
@@ -5403,6 +5410,7 @@
      this.badRecordForm.delFlag = row.delFlag
      this.badRecordForm.version = row.version
      this.badRecordForm.remark = row.remark
      this.thisShowIndex = 12
      this.dialogshowArr[12].show = true
    },
    editRemarkInfo(row) {
@@ -5425,7 +5433,7 @@
      this.remarkInfoForm.modifier = row.modifier
      this.remarkInfoForm.delFlag = row.delFlag
      this.remarkInfoForm.version = row.version
      this.thisShowIndex = 13
      this.dialogshowArr[13].show = true
    },
    gzadd(index) {