From fcd8d7f55ab468e538a91ce168d5f3be144e140e Mon Sep 17 00:00:00 2001
From: luoyb <412940104@qq.com>
Date: 星期五, 21 六月 2024 21:21:05 +0800
Subject: [PATCH] feat: 员工档案编辑时入职类型丢失问题解决

---
 src/views/user/archivesChange.vue |   55 +++++++++++++++++++++++++++++++++----------------------
 1 files changed, 33 insertions(+), 22 deletions(-)

diff --git a/src/views/user/archivesChange.vue b/src/views/user/archivesChange.vue
index 4286a70..8517a3b 100644
--- a/src/views/user/archivesChange.vue
+++ b/src/views/user/archivesChange.vue
@@ -153,7 +153,7 @@
               <div class="item-node" />
               <div>
                 <a href="javascript:void(0)" :class="item=='lzaj'?'light':''" @click="goAnchor('lzaj')">
-                  劳资案件
+                  仲裁案件
                 </a>
               </div>
             </li>
@@ -924,18 +924,22 @@
                   </template>
                 </el-table-column>
                 <el-table-column v-if="fsnumShow" show-overflow-tooltip prop="accidentId" label="" />
-                <el-table-column show-overflow-tooltip prop="injuredTime" label="受伤日期" width="100" />
-                <el-table-column show-overflow-tooltip prop="injuredAddress" label="受伤地点" width="100" />
+                <el-table-column show-overflow-tooltip prop="injuredTime" label="受伤日期" width="110">
+                  <template slot-scope="scope">
+                    <span class="table-button" @click="editAccidentCases(scope.row,9)">{{ scope.row.injuredTime }}</span>
+                  </template>
+                </el-table-column>
+                <el-table-column show-overflow-tooltip prop="injuredAddress" label="受伤地点" width="200" />
                 <el-table-column show-overflow-tooltip prop="injuredPart" label="受伤部位" width="80" />
-                <el-table-column show-overflow-tooltip prop="injuredDescribe" label="受伤经过描述" width="120" />
-                <el-table-column show-overflow-tooltip prop="injuredDiacrisis" label="意外险诊断" width="100" />
-                <el-table-column show-overflow-tooltip prop="hospitalName" label="就诊医院" width="100" />
-                <el-table-column show-overflow-tooltip prop="treatmentName" label="就诊科室" width="100" />
+                <el-table-column show-overflow-tooltip prop="injuredDescribe" label="受伤经过描述" width="300" />
+                <el-table-column show-overflow-tooltip prop="injuredDiacrisis" label="意外险诊断" width="150" />
+                <!--                <el-table-column show-overflow-tooltip prop="hospitalName" label="就诊医院" width="100" />-->
+                <!--                <el-table-column show-overflow-tooltip prop="treatmentName" label="就诊科室" width="100" />-->
                 <el-table-column show-overflow-tooltip prop="hospitalizatioFlag" label="是否住院" width="80" :formatter="hospitalizatioFlagFormat" />
-                <el-table-column show-overflow-tooltip prop="bedNumb" label="床号" width="60" />
+                <!--                <el-table-column show-overflow-tooltip prop="bedNumb" label="床号" width="60" />-->
                 <el-table-column show-overflow-tooltip prop="reprotTime" label="报案时间" width="100" />
-                <el-table-column show-overflow-tooltip prop="submitTime" label="递交资料时间" width="120" />
-                <el-table-column show-overflow-tooltip prop="sbumitBy" label="递交人" width="100" />
+                <!--                <el-table-column show-overflow-tooltip prop="submitTime" label="递交资料时间" width="120" />-->
+                <!--                <el-table-column show-overflow-tooltip prop="sbumitBy" label="递交人" width="100" />-->
                 <el-table-column show-overflow-tooltip prop="expensesFee" label="医疗总费用" width="100" />
                 <el-table-column show-overflow-tooltip prop="innsureFee" label="保险赔付费用" width="120" />
                 <el-table-column show-overflow-tooltip prop="settleStatus" label="是否结案" width="120" :formatter="settleStatusFormat" />
@@ -971,7 +975,11 @@
                   </template>
                 </el-table-column>
                 <el-table-column v-if="fsnumShow" show-overflow-tooltip prop="occupationalId" label="" />
-                <el-table-column show-overflow-tooltip prop="injuredTime" label="受伤日期" width="120" />
+                <el-table-column show-overflow-tooltip prop="injuredTime" label="受伤日期" width="110">
+                  <template slot-scope="scope">
+                    <span class="table-button" @click="editOccupational(scope.row)">{{ scope.row.injuredTime }}</span>
+                  </template>
+                </el-table-column>
                 <el-table-column show-overflow-tooltip prop="injuredAddress" label="受伤地点" width="100" />
                 <el-table-column show-overflow-tooltip prop="injuredPart" label="受伤部位" width="100" />
                 <el-table-column show-overflow-tooltip prop="injuredDescribe" label="受伤经过描述" width="140" />
@@ -998,7 +1006,7 @@
           </div>
           <div ref="lzaj" class="lzaj">
             <div class="jbxxTitle">
-              劳资案件
+              仲裁案件
             </div>
 
             <div class="jbxxCon">
@@ -1994,7 +2002,6 @@
         <el-form
           ref="accidentCasesForm"
           :model="accidentCasesForm"
-          :rules="accidentCasesRules"
           label-position="right"
           label-width="120px"
         >
@@ -2134,19 +2141,20 @@
                   />
                 </el-select>
               </el-form-item>
+              <el-form-item label="备注">
+                <el-input v-model="accidentCasesForm.remark" />
+              </el-form-item>
             </el-col>
           </el-row>
         </el-form>
         <div slot="footer" class="dialog-footer">
-          <el-button type="primary" @click="putAccidentCases('accidentCasesForm')">保 存</el-button>
-
+          <el-button v-if="dialogshowArr[9].read" type="primary" @click="putAccidentCases('accidentCasesForm')">保 存</el-button>
         </div>
       </el-dialog>
       <el-dialog title="工伤案件" append-to-body :visible.sync="dialogshowArr[10].show" width="50%">
         <el-form
           ref="occupationalForm"
           :model="occupationalForm"
-          :rules="occupationalRules"
           label-position="right"
           label-width="140px"
         >
@@ -2335,11 +2343,11 @@
           </el-row>
         </el-form>
         <div slot="footer" class="dialog-footer">
-          <el-button type="primary" @click="putOccupational('occupationalForm')">保 存</el-button>
+          <el-button v-if="dialogshowArr[10].read" type="primary" @click="putOccupational('occupationalForm')">保 存</el-button>
 
         </div>
       </el-dialog>
-      <el-dialog title="劳资案件" append-to-body :visible.sync="dialogshowArr[11].show" width="50%">
+      <el-dialog title="仲裁案件" append-to-body :visible.sync="dialogshowArr[11].show" width="50%">
         <el-form
           ref="laborTroubleForm"
           :model="laborTroubleForm"
@@ -2671,10 +2679,12 @@
           show: false
         },
         {
-          show: false
+          show: false,
+          read: false
         },
         {
-          show: false
+          show: false,
+          read: false
         },
         {
           show: false
@@ -3165,7 +3175,6 @@
         creator: '',
         modifyTime: '',
         modifier: '',
-
         empStatus: 0,
         version: ''
       },
@@ -4016,7 +4025,7 @@
       this.initunemploymentData() // 失业金领取
       this.initinsuranceData() // 社保申请
       this.initremarkInfoData() // 备注
-      this.initlaborTroubleData() // 劳资案件
+      this.initlaborTroubleData() // 仲裁案件
       this.initoccupationalData() // 工伤案件
       this.initbadRecordData() // 不良记录
       this.initaccidentCasesData() // 意外险案件
@@ -5202,6 +5211,7 @@
       this.accidentCasesForm.version = row.version
       this.thisShowIndex = 9
       this.dialogshowArr[9].show = true
+      this.dialogshowArr[9].read = false
     },
     editOccupational(row) {
       this.isAdd = false
@@ -5252,6 +5262,7 @@
       this.occupationalForm.remark = row.remark
       this.thisShowIndex = 10
       this.dialogshowArr[10].show = true
+      this.dialogshowArr[10].read = false
     },
     editLaborTrouble(row) {
       this.isAdd = false

--
Gitblit v1.8.0