From 4e6b24f719a8a44eb8efd9c47e846cf86137e205 Mon Sep 17 00:00:00 2001
From: luoyb <412940104@qq.com>
Date: 星期五, 12 三月 2021 11:55:35 +0800
Subject: [PATCH] fix(bug修复): 添加员工时部门选择框提示要选择部门

---
 src/views/user/Informationinput.vue |  241 ++++++++++++++++++++++++++++++------------------
 1 files changed, 151 insertions(+), 90 deletions(-)

diff --git a/src/views/user/Informationinput.vue b/src/views/user/Informationinput.vue
index a0b87c0..9ad4b6d 100644
--- a/src/views/user/Informationinput.vue
+++ b/src/views/user/Informationinput.vue
@@ -64,6 +64,7 @@
           :cell-style="{padding:'7px 0','text-align':'center'}"
           :header-cell-style="{'height':'5.3vh','background-color':'#e6e6e6','text-align':'center'}"
           style="width: 100%;"
+          @sort-change="changeSort"
         >
           <el-table-column type="selection" width="50" />
           <el-table-column label="操作" width="80">
@@ -99,10 +100,10 @@
           <!--              />-->
           <!--            </template>-->
           <!--          </el-table-column>-->
-          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="60" />
-          <el-table-column show-overflow-tooltip prop="allDeptName" label="部门(护卫点)" width="300" />
+          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="80" sortable="custom" :sort-orders="['ascending', 'descending']" />
+          <el-table-column show-overflow-tooltip prop="allDeptName" label="部门(护卫点)" width="300" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="50" />
-          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="60" />
+          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="80" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" width="180" />
           <el-table-column show-overflow-tooltip prop="empType" label="员工类别" width="80" :formatter="empTypeFormat" />
           <el-table-column show-overflow-tooltip prop="sex" label="性别" width="50" :formatter="sexFormat" />
@@ -110,7 +111,7 @@
           <el-table-column show-overflow-tooltip prop="marriage" label="婚姻状况" width="80" :formatter="marriageFormat" />
           <el-table-column show-overflow-tooltip prop="politics" label="政治面貌" width="80" :formatter="politicsFormat" />
           <el-table-column show-overflow-tooltip prop="education" label="学历" width="50" :formatter="educationFormat" />
-          <el-table-column prop="entryDate" show-overflow-tooltip label="入职日期" width="80" />
+          <el-table-column prop="entryDate" show-overflow-tooltip label="入职日期" width="120" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column
             prop="insuranceType"
             show-overflow-tooltip
@@ -132,6 +133,7 @@
           stripe
           border
           style="width: 100%;"
+          @sort-change="changeSort"
         >
           <el-table-column type="selection" width="55" />
           <el-table-column label="操作" width="100">
@@ -148,11 +150,11 @@
               </span>
             </template>
           </el-table-column>
-          <el-table-column prop="empNumb" label="编号" width="100" />
-          <el-table-column prop="empName" label="姓名" width="100" />
+          <el-table-column prop="empNumb" label="编号" width="100" sortable="custom" :sort-orders="['ascending', 'descending']" />
+          <el-table-column prop="empName" label="姓名" width="100" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column prop="certificateNumb" show-overflow-tooltip label="身份证号码" width="180" />
           <el-table-column prop="workUnit" show-overflow-tooltip label="工作单位" width="160" />
-          <el-table-column prop="beginDate" label="开始日期" width="140" />
+          <el-table-column prop="beginDate" label="开始日期" width="140" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column prop="endDate" label="结束日期" width="140" />
           <el-table-column prop="jobContent" show-overflow-tooltip label="主要工作内容" min-width="120" />
         </el-table>
@@ -165,6 +167,7 @@
           stripe
           border
           style="width: 100%;"
+          @sort-change="changeSort"
         >
           <el-table-column type="selection" width="50" />
           <el-table-column label="操作" width="80">
@@ -182,13 +185,13 @@
               </span>
             </template>
           </el-table-column>
-          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="80" />
-          <el-table-column show-overflow-tooltip prop="allDeptName" label="部门(护卫点)" width="300" />
+          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="80" sortable="custom" :sort-orders="['ascending', 'descending']" />
+          <el-table-column show-overflow-tooltip prop="allDeptName" label="部门(护卫点)" width="300" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="80" />
-          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="80" />
+          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="80" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" width="160" />
           <el-table-column prop="hospital" show-overflow-tooltip label="体检医院" min-width="100" />
-          <el-table-column show-overflow-tooltip prop="physicalExamDate" label="体检日期" width="100" />
+          <el-table-column show-overflow-tooltip prop="physicalExamDate" label="体检日期" width="120" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column
             show-overflow-tooltip
             prop="physicalExamType"
@@ -212,6 +215,7 @@
           stripe
           border
           style="width: 100%;"
+          @sort-change="changeSort"
         >
           <el-table-column type="selection" width="55" />
           <el-table-column label="操作" width="100">
@@ -229,15 +233,15 @@
               </span>
             </template>
           </el-table-column>
-          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="100" />
-          <el-table-column show-overflow-tooltip prop="allDeptName" label="部门(护卫点)" width="300" />
+          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="100" sortable="custom" :sort-orders="['ascending', 'descending']" />
+          <el-table-column show-overflow-tooltip prop="allDeptName" label="部门(护卫点)" width="300" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="100" />
-          <el-table-column prop="empName" label="姓名" width="100" />
+          <el-table-column prop="empName" label="姓名" width="100" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" width="155" />
-          <el-table-column show-overflow-tooltip prop="signingDate" label="合同签订日期" width="120" />
-          <el-table-column show-overflow-tooltip prop="endDate" label="合同结束日期" width="120" />
+          <el-table-column show-overflow-tooltip prop="signingDate" label="合同签订日期" width="140" sortable="custom" :sort-orders="['ascending', 'descending']" />
+          <el-table-column show-overflow-tooltip prop="endDate" label="合同结束日期" width="140" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="contractPeriod" label="合同期限(年)" width="120" />
-          <el-table-column show-overflow-tooltip prop="contractStatus" label="合同状态" :formatter="contractStatusFormat" width="80" />
+          <el-table-column show-overflow-tooltip prop="contractStatus" label="合同状态" :formatter="contractStatusFormat" width="120" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="transactor" label="合同办理人" width="100" />
         </el-table>
         <el-table
@@ -249,6 +253,7 @@
           stripe
           border
           style="width: 100%;"
+          @sort-change="changeSort"
         >
           <el-table-column type="selection" width="50" />
           <el-table-column label="操作" width="80">
@@ -261,10 +266,10 @@
               </span>
             </template>
           </el-table-column>
-          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="80" />
-          <el-table-column show-overflow-tooltip prop="allDeptName" label="部门(护卫点)" width="300" />
+          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="80" sortable="custom" :sort-orders="['ascending', 'descending']" />
+          <el-table-column show-overflow-tooltip prop="allDeptName" label="部门(护卫点)" width="300" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="60" />
-          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="80" />
+          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="80" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" width="120" />
           <el-table-column show-overflow-tooltip prop="attendMonth" label="离职考勤月份" width="120" />
           <el-table-column show-overflow-tooltip prop="attendDays" label="出勤天数" width="100" />
@@ -284,6 +289,7 @@
           stripe
           border
           style="width: 100%;"
+          @sort-change="changeSort"
         >
           <el-table-column type="selection" width="50" />
           <el-table-column label="操作" width="80">
@@ -295,12 +301,12 @@
               </span>
             </template>
           </el-table-column>
-          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="80" />
-          <el-table-column show-overflow-tooltip prop="allDeptName" label="部门(护卫点)" width="300" />
+          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="80" sortable="custom" :sort-orders="['ascending', 'descending']" />
+          <el-table-column show-overflow-tooltip prop="allDeptName" label="部门(护卫点)" width="300" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="80" />
-          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="80" />
+          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="80" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" width="120" />
-          <el-table-column show-overflow-tooltip prop="beginTime" label="开始时间" width="110" />
+          <el-table-column show-overflow-tooltip prop="beginTime" label="开始时间" width="140" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="endTime" label="结束时间" width="110" />
           <el-table-column show-overflow-tooltip prop="leaveDay" label="请假天数" width="80" />
           <el-table-column show-overflow-tooltip prop="leaveType" label="请假类型" width="80" :formatter="leaveTypeFormat" />
@@ -317,6 +323,7 @@
           stripe
           border
           style="width: 100%;"
+          @sort-change="changeSort"
         >
           <el-table-column type="selection" width="50" />
           <el-table-column label="操作" width="80">
@@ -328,12 +335,12 @@
               </span>
             </template>
           </el-table-column>
-          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="80" />
-          <el-table-column show-overflow-tooltip prop="allDeptName" label="部门(护卫点)" width="300" />
+          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="80" sortable="custom" :sort-orders="['ascending', 'descending']" />
+          <el-table-column show-overflow-tooltip prop="allDeptName" label="部门(护卫点)" width="300" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="100" />
-          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="100" />
+          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="100" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" width="160" />
-          <el-table-column show-overflow-tooltip prop="applayDate" label="辞职申请日期" width="150" />
+          <el-table-column show-overflow-tooltip prop="applayDate" label="辞职申请日期" width="150" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="reason" label="辞职事由" width="150" />
           <el-table-column show-overflow-tooltip prop="reporter" label="汇报人" width="100" />
           <el-table-column show-overflow-tooltip prop="remark" label="备注" />
@@ -347,6 +354,7 @@
           stripe
           border
           style="width: 100%;"
+          @sort-change="changeSort"
         >
           <el-table-column type="selection" width="50" />
           <el-table-column label="操作" width="80">
@@ -358,12 +366,12 @@
               </span>
             </template>
           </el-table-column>
-          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="80" />
-          <el-table-column show-overflow-tooltip prop="allDeptName" label="部门(护卫点)" width="300" />
+          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="80" sortable="custom" :sort-orders="['ascending', 'descending']" />
+          <el-table-column show-overflow-tooltip prop="allDeptName" label="部门(护卫点)" width="300" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="100" />
-          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="100" />
+          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="100" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" width="150" />
-          <el-table-column show-overflow-tooltip prop="applayDate" label="失业金申请日期" width="150" />
+          <el-table-column show-overflow-tooltip prop="applayDate" label="失业金申请日期" width="150" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="applayReason" label="申报事由" />
           <el-table-column show-overflow-tooltip prop="reporter" label="汇报人" width="100" />
           <el-table-column show-overflow-tooltip prop="auditor" label="审核人" width="100" />
@@ -378,6 +386,7 @@
           stripe
           border
           style="width: 100%;"
+          @sort-change="changeSort"
         >
           <el-table-column type="selection" width="50" />
           <el-table-column label="操作" width="80">
@@ -389,12 +398,12 @@
               </span>
             </template>
           </el-table-column>
-          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="80" />
-          <el-table-column show-overflow-tooltip prop="allDeptName" label="部门(护卫点)" width="300" />
+          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="80" sortable="custom" :sort-orders="['ascending', 'descending']" />
+          <el-table-column show-overflow-tooltip prop="allDeptName" label="部门(护卫点)" width="300" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="100" />
-          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="100" />
+          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="100" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" width="120" />
-          <el-table-column show-overflow-tooltip prop="applayDate" label="社保申请日期" width="120" />
+          <el-table-column show-overflow-tooltip prop="applayDate" label="社保申请日期" width="140" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="proposer" label="申请人" width="80" />
           <el-table-column show-overflow-tooltip prop="insuranceGaers" label="社保档位" :formatter="insuranceGaersFormat" width="80" />
           <el-table-column prop="reportStatus " label="是否已报告" width="100" :formatter="reportStatusFormat" />
@@ -411,6 +420,7 @@
           stripe
           border
           style="width: 100%;"
+          @sort-change="changeSort"
         >
           <el-table-column type="selection" width="50" />
           <el-table-column label="操作" width="80">
@@ -422,12 +432,12 @@
               </span>
             </template>
           </el-table-column>
-          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="70" />
-          <el-table-column show-overflow-tooltip prop="allDeptName" label="部门(护卫点)" width="300" />
+          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="90" sortable="custom" :sort-orders="['ascending', 'descending']" />
+          <el-table-column show-overflow-tooltip prop="allDeptName" label="部门(护卫点)" width="300" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="80" />
-          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="60" />
+          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="80" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" width="120" />
-          <el-table-column show-overflow-tooltip prop="injuredTime" label="受伤日期" width="100" />
+          <el-table-column show-overflow-tooltip prop="injuredTime" label="受伤日期" width="120" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="injuredAddress" label="受伤地点" width="80" />
           <el-table-column show-overflow-tooltip prop="injuredPart" label="受伤部位" width="80" />
           <el-table-column show-overflow-tooltip prop="injuredDescribe" label="受伤经过描述" width="120" />
@@ -457,6 +467,7 @@
           stripe
           border
           style="width: 100%;"
+          @sort-change="changeSort"
         >
           <el-table-column type="selection" width="50" />
           <el-table-column label="操作" width="80">
@@ -468,12 +479,12 @@
               </span>
             </template>
           </el-table-column>
-          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="70" />
-          <el-table-column show-overflow-tooltip prop="allDeptName" label="部门(护卫点)" width="300" />
+          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="90" sortable="custom" :sort-orders="['ascending', 'descending']" />
+          <el-table-column show-overflow-tooltip prop="allDeptName" label="部门(护卫点)" width="300" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="60" />
-          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="60" />
+          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="80" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" width="120" />
-          <el-table-column show-overflow-tooltip prop="injuredTime" label="受伤日期" width="100" />
+          <el-table-column show-overflow-tooltip prop="injuredTime" label="受伤日期" width="130" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="injuredAddress" label="受伤地点" width="100" />
           <el-table-column show-overflow-tooltip prop="injuredPart" label="受伤部位" width="80" />
           <el-table-column show-overflow-tooltip prop="injuredDescribe" label="受伤经过描述" width="120" />
@@ -504,6 +515,7 @@
           stripe
           border
           style="width: 100%;"
+          @sort-change="changeSort"
         >
           <el-table-column type="selection" width="50" />
           <el-table-column label="操作" width="80">
@@ -515,12 +527,12 @@
               </span>
             </template>
           </el-table-column>
-          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="60" />
-          <el-table-column show-overflow-tooltip prop="allDeptName" label="部门(护卫点)" width="280" />
+          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="80" sortable="custom" :sort-orders="['ascending', 'descending']" />
+          <el-table-column show-overflow-tooltip prop="allDeptName" label="部门(护卫点)" width="280" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="60" />
-          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="80" />
+          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="80" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" width="120" />
-          <el-table-column show-overflow-tooltip prop="arbitrationDate" label="仲裁日期" width="100" />
+          <el-table-column show-overflow-tooltip prop="arbitrationDate" label="仲裁日期" width="120" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column
             show-overflow-tooltip
             prop="arbitrationType"
@@ -550,6 +562,7 @@
           stripe
           border
           style="width: 100%;"
+          @sort-change="changeSort"
         >
           <el-table-column type="selection" width="55" />
           <el-table-column label="操作" width="100">
@@ -566,12 +579,12 @@
               </span>
             </template>
           </el-table-column>
-          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="100" />
-          <el-table-column show-overflow-tooltip prop="allDeptName" label="部门(护卫点)" width="300" />
+          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="100" sortable="custom" :sort-orders="['ascending', 'descending']" />
+          <el-table-column show-overflow-tooltip prop="allDeptName" label="部门(护卫点)" width="300" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="120" />
-          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="120" />
+          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="120" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" min-width="120" />
-          <el-table-column show-overflow-tooltip prop="badDate" label="不良记录日期" width="150" />
+          <el-table-column show-overflow-tooltip prop="badDate" label="不良记录日期" width="150" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="badContent" label="不良记录描述" min-width="120" />
           <el-table-column show-overflow-tooltip prop="reporter" label="汇报人" width="120" />
           <el-table-column show-overflow-tooltip prop="remark" label="备注" />
@@ -585,6 +598,7 @@
           stripe
           border
           style="width: 100%;"
+          @sort-change="changeSort"
         >
           <el-table-column type="selection" width="50" />
           <el-table-column label="操作" width="80">
@@ -596,12 +610,12 @@
               </span>
             </template>
           </el-table-column>
-          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="100" />
-          <el-table-column show-overflow-tooltip prop="allDeptName" label="部门(护卫点)" width="300" />
+          <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="100" sortable="custom" :sort-orders="['ascending', 'descending']" />
+          <el-table-column show-overflow-tooltip prop="allDeptName" label="部门(护卫点)" width="300" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="120" />
-          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="120" />
+          <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="120" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" width="180" />
-          <el-table-column show-overflow-tooltip prop="remarkDate" label="备注日期" width="150" />
+          <el-table-column show-overflow-tooltip prop="remarkDate" label="备注日期" width="150" sortable="custom" :sort-orders="['ascending', 'descending']" />
           <el-table-column show-overflow-tooltip prop="remarkContent" label="备注信息" />
         </el-table>
         <pagination
@@ -786,7 +800,7 @@
                 <el-form-item label="姓名" prop="empName">
                   <el-input v-model="empBaseInfoForm.empName" />
                 </el-form-item>
-                <el-form-item label="部门(护卫点)" required message="请选择护卫点" prop="deptId">
+                <el-form-item label="部门(护卫点)" required message="请选择部门(护卫点)" prop="allDeptName">
                   <treeselect
                     v-model="empBaseInfoForm.deptId"
                     :multiple="false"
@@ -942,8 +956,8 @@
             <el-form-item label="编号" prop="empNumb">
               <el-input v-model="workExperienceForm.empNumb" />
             </el-form-item>
-            <el-form-item label="部门(护卫点)" prop="deptName">
-              <el-input v-model="workExperienceForm.deptName" />
+            <el-form-item label="部门(护卫点)" prop="allDeptName">
+              <el-input v-model="workExperienceForm.allDeptName" />
             </el-form-item>
             <el-form-item label="岗位" prop="jobName">
               <el-input v-model="workExperienceForm.jobName" />
@@ -1043,8 +1057,8 @@
             <el-form-item label="编号" prop="empNumb">
               <el-input v-model="physicalExamForm.empNumb" />
             </el-form-item>
-            <el-form-item label="部门(护卫点)" prop="deptName">
-              <el-input v-model="physicalExamForm.deptName" />
+            <el-form-item label="部门(护卫点)" prop="allDeptName">
+              <el-input v-model="physicalExamForm.allDeptName" />
             </el-form-item>
             <el-form-item label="岗位" prop="jobName">
               <el-input v-model="physicalExamForm.jobName" />
@@ -1156,8 +1170,8 @@
             <el-form-item label="编号" prop="empNumb">
               <el-input v-model="contractInfoForm.empNumb" />
             </el-form-item>
-            <el-form-item label="部门(护卫点)" prop="deptName">
-              <el-input v-model="contractInfoForm.deptName" />
+            <el-form-item label="部门(护卫点)" prop="allDeptName">
+              <el-input v-model="contractInfoForm.allDeptName" />
             </el-form-item>
             <el-form-item label="岗位" prop="jobName">
               <el-input v-model="contractInfoForm.jobName" />
@@ -1237,8 +1251,8 @@
             <el-form-item label="编号" prop="empNumb">
               <el-input v-model="dimissionAttendForm.empNumb" />
             </el-form-item>
-            <el-form-item label="部门(护卫点)" prop="deptName">
-              <el-input v-model="dimissionAttendForm.deptName" />
+            <el-form-item label="部门(护卫点)" prop="allDeptName">
+              <el-input v-model="dimissionAttendForm.allDeptName" />
             </el-form-item>
             <el-form-item label="岗位" prop="jobName">
               <el-input v-model="dimissionAttendForm.jobName" />
@@ -1321,8 +1335,8 @@
             <el-form-item label="编号" prop="empNumb">
               <el-input v-model="leaveInfoForm.empNumb" />
             </el-form-item>
-            <el-form-item label="部门(护卫点)" prop="deptName">
-              <el-input v-model="leaveInfoForm.deptName" />
+            <el-form-item label="部门(护卫点)" prop="allDeptName">
+              <el-input v-model="leaveInfoForm.allDeptName" />
             </el-form-item>
             <el-form-item label="岗位" prop="jobName">
               <el-input v-model="leaveInfoForm.jobName" />
@@ -1394,8 +1408,8 @@
             <el-form-item label="编号" prop="empNumb">
               <el-input v-model="resignForm.empNumb" />
             </el-form-item>
-            <el-form-item label="部门(护卫点)" prop="deptName">
-              <el-input v-model="resignForm.deptName" />
+            <el-form-item label="部门(护卫点)" prop="allDeptName">
+              <el-input v-model="resignForm.allDeptName" />
             </el-form-item>
             <el-form-item label="岗位" prop="jobName">
               <el-input v-model="resignForm.jobName" />
@@ -1463,8 +1477,8 @@
             <el-form-item label="编号" prop="empNumb">
               <el-input v-model="unemploymentForm.empNumb" />
             </el-form-item>
-            <el-form-item label="部门(护卫点)" prop="deptName">
-              <el-input v-model="unemploymentForm.deptName" />
+            <el-form-item label="部门(护卫点)" prop="allDeptName">
+              <el-input v-model="unemploymentForm.allDeptName" />
             </el-form-item>
             <el-form-item label="岗位" prop="jobName">
               <el-input v-model="unemploymentForm.jobName" />
@@ -1546,8 +1560,8 @@
             <el-form-item label="编号" prop="empNumb">
               <el-input v-model="insuranceForm.empNumb" />
             </el-form-item>
-            <el-form-item label="部门(护卫点)" prop="deptName">
-              <el-input v-model="insuranceForm.deptName" />
+            <el-form-item label="部门(护卫点)" prop="allDeptName">
+              <el-input v-model="insuranceForm.allDeptName" />
             </el-form-item>
             <el-form-item label="岗位" prop="jobName">
               <el-input v-model="insuranceForm.jobName" />
@@ -1621,8 +1635,8 @@
             <el-form-item label="编号" prop="empNumb">
               <el-input v-model="accidentCasesForm.empNumb" />
             </el-form-item>
-            <el-form-item label="部门(护卫点)" prop="deptName">
-              <el-input v-model="accidentCasesForm.deptName" />
+            <el-form-item label="部门(护卫点)" prop="allDeptName">
+              <el-input v-model="accidentCasesForm.allDeptName" />
             </el-form-item>
             <el-form-item label="岗位" prop="jobName">
               <el-input v-model="accidentCasesForm.jobName" />
@@ -1768,8 +1782,8 @@
             <el-form-item label="编号" prop="empNumb">
               <el-input v-model="occupationalForm.empNumb" />
             </el-form-item>
-            <el-form-item label="部门(护卫点)" prop="deptName">
-              <el-input v-model="occupationalForm.deptName" />
+            <el-form-item label="部门(护卫点)" prop="allDeptName">
+              <el-input v-model="occupationalForm.allDeptName" />
             </el-form-item>
             <el-form-item label="岗位" prop="jobName">
               <el-input v-model="occupationalForm.jobName" />
@@ -1969,8 +1983,8 @@
             <el-form-item label="编号" prop="empNumb">
               <el-input v-model="laborTroubleForm.empNumb" />
             </el-form-item>
-            <el-form-item label="部门(护卫点)" prop="deptName">
-              <el-input v-model="laborTroubleForm.deptName" />
+            <el-form-item label="部门(护卫点)" prop="allDeptName">
+              <el-input v-model="laborTroubleForm.allDeptName" />
             </el-form-item>
             <el-form-item label="岗位" prop="jobName">
               <el-input v-model="laborTroubleForm.jobName" />
@@ -2057,8 +2071,8 @@
             <el-form-item label="编号" prop="empNumb">
               <el-input v-model="badRecordForm.empNumb" />
             </el-form-item>
-            <el-form-item label="部门(护卫点)" prop="deptName">
-              <el-input v-model="badRecordForm.deptName" />
+            <el-form-item label="部门(护卫点)" prop="allDeptName">
+              <el-input v-model="badRecordForm.allDeptName" />
             </el-form-item>
             <el-form-item label="岗位" prop="jobName">
               <el-input v-model="badRecordForm.jobName" />
@@ -2123,8 +2137,8 @@
             <el-form-item label="编号" prop="empNumb">
               <el-input v-model="remarkInfoForm.empNumb" />
             </el-form-item>
-            <el-form-item label="部门(护卫点)" prop="deptName">
-              <el-input v-model="remarkInfoForm.deptName" />
+            <el-form-item label="部门(护卫点)" prop="allDeptName">
+              <el-input v-model="remarkInfoForm.allDeptName" />
             </el-form-item>
             <el-form-item label="岗位" prop="jobName">
               <el-input v-model="remarkInfoForm.jobName" />
@@ -2604,6 +2618,7 @@
         JobId: '',
         deptId: '',
         deptName: '',
+        allDeptName: '',
         jobName: '',
         remarkContent: '',
         remarkDate: '',
@@ -2625,6 +2640,7 @@
         certificateNumb: '',
         deptId: '',
         deptName: '',
+        allDeptName: '',
         JobId: '',
         jobName: '',
         arbitrationDate: '',
@@ -2653,6 +2669,7 @@
         certificateNumb: '',
         deptId: '',
         deptName: '',
+        allDeptName: '',
         JobId: '',
         jobName: '',
         injuredTime: '',
@@ -2701,6 +2718,7 @@
         certificateNumb: '',
         deptId: '',
         deptName: '',
+        allDeptName: '',
         JobId: '',
         jobName: '',
         injuredTime: '',
@@ -2740,6 +2758,7 @@
         certificateNumb: '',
         deptId: '',
         deptName: '',
+        allDeptName: '',
         JobId: '',
         jobName: '',
         applayDate: '',
@@ -2767,6 +2786,7 @@
         certificateNumb: '',
         deptId: '',
         deptName: '',
+        allDeptName: '',
         JobId: '',
         jobName: '',
         applayDate: '',
@@ -2792,6 +2812,7 @@
         certificateNumb: '',
         deptId: '',
         deptName: '',
+        allDeptName: '',
         JobId: '',
         jobName: '',
         applayDate: '',
@@ -2816,6 +2837,7 @@
         certificateNumb: '',
         deptId: '',
         deptName: '',
+        allDeptName: '',
         JobId: '',
         jobName: '',
         beginTime: '',
@@ -2843,6 +2865,7 @@
         sexName: '',
         deptId: '',
         deptName: '',
+        allDeptName: '',
         JobId: '',
         jobName: '',
         beginDate: '',
@@ -2869,6 +2892,7 @@
         sexName: '',
         deptId: '',
         deptName: '',
+        allDeptName: '',
         JobId: '',
         jobName: '',
         certificateNumb: '',
@@ -2898,6 +2922,7 @@
         sexName: '',
         deptId: '',
         deptName: '',
+        allDeptName: '',
         JobId: '',
         jobName: '',
         hospital: '',
@@ -2927,6 +2952,7 @@
         sexName: '',
         deptId: '',
         deptName: '',
+        allDeptName: '',
         JobId: '',
         jobName: '',
         workUnit: '',
@@ -2946,8 +2972,9 @@
         empId: '',
         customerId: '',
         archivesNumb: '',
-        deptId: '1',
+        deptId: null,
         deptName: '',
+        allDeptName: '',
         empNumb: '',
         empName: '',
         sex: '1',
@@ -3003,6 +3030,7 @@
         certificateNumb: '',
         deptId: '',
         deptName: '',
+        allDeptName: '',
         JobId: '',
         jobName: '',
         badDate: '',
@@ -4206,8 +4234,9 @@
       this.empBaseInfoForm.empId = ''
       this.empBaseInfoForm.customerId = ''
       this.empBaseInfoForm.archivesNumb = ''
-      this.empBaseInfoForm.deptId = ''
+      this.empBaseInfoForm.deptId = null
       this.empBaseInfoForm.deptName = ''
+      this.empBaseInfoForm.allDeptName = ''
       this.empBaseInfoForm.empNumb = ''
       this.empBaseInfoForm.empName = ''
       this.empBaseInfoForm.sex = ''
@@ -4260,6 +4289,7 @@
       this.empBaseInfoForm.archivesNumb = row.archivesNumb
       this.empBaseInfoForm.deptId = row.deptId
       this.empBaseInfoForm.deptName = row.deptName
+      this.empBaseInfoForm.allDeptName = row.allDeptName
       this.empBaseInfoForm.empNumb = row.empNumb
       this.empBaseInfoForm.empName = row.empName
       this.empBaseInfoForm.sex = row.sex
@@ -4408,6 +4438,7 @@
       this.workExperienceForm.archivesNumb = ''
       this.workExperienceForm.deptId = ''
       this.workExperienceForm.deptName = ''
+      this.workExperienceForm.allDeptName = ''
       this.workExperienceForm.empNumb = ''
       this.workExperienceForm.empName = ''
       this.workExperienceForm.sex = ''
@@ -4435,6 +4466,7 @@
       this.workExperienceForm.sexName = row.sex
       this.workExperienceForm.deptId = row.deptId
       this.workExperienceForm.deptName = row.deptName
+      this.workExperienceForm.allDeptName = row.allDeptName
       this.workExperienceForm.JobId = row.JobId
       this.workExperienceForm.jobName = row.jobName
       this.workExperienceForm.workUnit = row.workUnit
@@ -4505,6 +4537,7 @@
       this.physicalExamForm.archivesNumb = ''
       this.physicalExamForm.deptId = ''
       this.physicalExamForm.deptName = ''
+      this.physicalExamForm.allDeptName = ''
       this.physicalExamForm.empNumb = ''
       this.physicalExamForm.empName = ''
       this.physicalExamForm.sex = ''
@@ -4531,6 +4564,7 @@
       this.physicalExamForm.sex = row.sex
       this.physicalExamForm.deptId = row.deptId
       this.physicalExamForm.deptName = row.deptName
+      this.physicalExamForm.allDeptName = row.allDeptName
       this.physicalExamForm.JobId = row.JobId
       this.physicalExamForm.jobName = row.jobName
       this.physicalExamForm.hospital = row.hospital
@@ -4607,6 +4641,7 @@
       this.contractInfoForm.archivesNumb = ''
       this.contractInfoForm.deptId = ''
       this.contractInfoForm.deptName = ''
+      this.contractInfoForm.allDeptName = ''
       this.contractInfoForm.empNumb = ''
       this.contractInfoForm.empName = ''
       this.contractInfoForm.sex = ''
@@ -4639,6 +4674,7 @@
       this.contractInfoForm.sex = row.sex
       this.contractInfoForm.deptId = row.deptId
       this.contractInfoForm.deptName = row.deptName
+      this.contractInfoForm.allDeptName = row.allDeptName
       this.contractInfoForm.JobId = row.JobId
       this.contractInfoForm.jobName = row.jobName
       this.contractInfoForm.beginDate = row.beginDate
@@ -4713,6 +4749,7 @@
       this.dimissionAttendForm.archivesNumb = ''
       this.dimissionAttendForm.deptId = ''
       this.dimissionAttendForm.deptName = ''
+      this.dimissionAttendForm.allDeptName = ''
       this.dimissionAttendForm.empNumb = ''
       this.dimissionAttendForm.empName = ''
       this.dimissionAttendForm.sex = ''
@@ -4744,6 +4781,7 @@
       this.dimissionAttendForm.certificateNumb = row.certificateNumb
       this.dimissionAttendForm.deptId = row.deptId
       this.dimissionAttendForm.deptName = row.deptName
+      this.dimissionAttendForm.allDeptName = row.allDeptName
       this.dimissionAttendForm.JobId = row.JobId
       this.dimissionAttendForm.jobName = row.jobName
       this.dimissionAttendForm.attendMonth = row.attendMonth
@@ -4817,6 +4855,7 @@
       this.leaveInfoForm.archivesNumb = ''
       this.leaveInfoForm.deptId = ''
       this.leaveInfoForm.deptName = ''
+      this.leaveInfoForm.allDeptName = ''
       this.leaveInfoForm.empNumb = ''
       this.leaveInfoForm.empName = ''
       this.leaveInfoForm.sex = ''
@@ -4849,6 +4888,7 @@
       this.leaveInfoForm.certificateNumb = row.certificateNumb
       this.leaveInfoForm.deptId = row.deptId
       this.leaveInfoForm.deptName = row.deptName
+      this.leaveInfoForm.allDeptName = row.allDeptName
       this.leaveInfoForm.JobId = row.JobId
       this.leaveInfoForm.jobName = row.jobName
       this.leaveInfoForm.beginTime = row.beginTime
@@ -4923,6 +4963,7 @@
       this.resignForm.archivesNumb = ''
       this.resignForm.deptId = ''
       this.resignForm.deptName = ''
+      this.resignForm.allDeptName = ''
       this.resignForm.empNumb = ''
       this.resignForm.empName = ''
       this.resignForm.sex = ''
@@ -4952,6 +4993,7 @@
       this.resignForm.certificateNumb = row.certificateNumb
       this.resignForm.deptId = row.deptId
       this.resignForm.deptName = row.deptName
+      this.resignForm.allDeptName = row.allDeptName
       this.resignForm.JobId = row.JobId
       this.resignForm.jobName = row.jobName
       this.resignForm.applayDate = row.applayDate
@@ -5023,6 +5065,7 @@
       this.unemploymentForm.archivesNumb = ''
       this.unemploymentForm.deptId = ''
       this.unemploymentForm.deptName = ''
+      this.unemploymentForm.allDeptName = ''
       this.unemploymentForm.empNumb = ''
       this.unemploymentForm.empName = ''
       this.unemploymentForm.sex = ''
@@ -5053,6 +5096,7 @@
       this.unemploymentForm.certificateNumb = row.certificateNumb
       this.unemploymentForm.deptId = row.deptId
       this.unemploymentForm.deptName = row.deptName
+      this.unemploymentForm.allDeptName = row.allDeptName
       this.unemploymentForm.JobId = row.JobId
       this.unemploymentForm.jobName = row.jobName
       this.unemploymentForm.applayDate = row.applayDate
@@ -5125,6 +5169,7 @@
       this.insuranceForm.archivesNumb = ''
       this.insuranceForm.deptId = ''
       this.insuranceForm.deptName = ''
+      this.insuranceForm.allDeptName = ''
       this.insuranceForm.empNumb = ''
       this.insuranceForm.empName = ''
       this.insuranceForm.sex = ''
@@ -5157,6 +5202,7 @@
       this.insuranceForm.certificateNumb = row.certificateNumb
       this.insuranceForm.deptId = row.deptId
       this.insuranceForm.deptName = row.deptName
+      this.insuranceForm.allDeptName = row.allDeptName
       this.insuranceForm.JobId = row.JobId
       this.insuranceForm.jobName = row.jobName
       this.insuranceForm.applayDate = row.applayDate
@@ -5230,6 +5276,7 @@
       this.accidentCasesForm.archivesNumb = ''
       this.accidentCasesForm.deptId = ''
       this.accidentCasesForm.deptName = ''
+      this.accidentCasesForm.allDeptName = ''
       this.accidentCasesForm.empNumb = ''
       this.accidentCasesForm.empName = ''
       this.accidentCasesForm.sex = ''
@@ -5260,7 +5307,7 @@
       this.accidentCasesForm.creator = ''
       this.accidentCasesForm.modifyTime = ''
       this.accidentCasesForm.modifier = ''
-      this.accidentCasesForm.delFlag = ''
+      this.accidentCasesForm.delFlag = '2'
       this.accidentCasesForm.version = ''
     },
     editAccidentCases(row) {
@@ -5274,6 +5321,7 @@
       this.accidentCasesForm.certificateNumb = row.certificateNumb
       this.accidentCasesForm.deptId = row.deptId
       this.accidentCasesForm.deptName = row.deptName
+      this.accidentCasesForm.allDeptName = row.allDeptName
       this.accidentCasesForm.JobId = row.JobId
       this.accidentCasesForm.jobName = row.jobName
       this.accidentCasesForm.injuredTime = row.injuredTime
@@ -5360,6 +5408,7 @@
       this.occupationalForm.archivesNumb = ''
       this.occupationalForm.deptId = ''
       this.occupationalForm.deptName = ''
+      this.occupationalForm.allDeptName = ''
       this.occupationalForm.empNumb = ''
       this.occupationalForm.empName = ''
       this.occupationalForm.sex = ''
@@ -5398,7 +5447,7 @@
       this.occupationalForm.creator = ''
       this.occupationalForm.modifyTime = ''
       this.occupationalForm.modifier = ''
-      this.occupationalForm.delFlag = ''
+      this.occupationalForm.delFlag = '2'
       this.occupationalForm.version = ''
       this.occupationalForm.remark = ''
     },
@@ -5413,6 +5462,7 @@
       this.occupationalForm.certificateNumb = row.certificateNumb
       this.occupationalForm.deptId = row.deptId
       this.occupationalForm.deptName = row.deptName
+      this.occupationalForm.allDeptName = row.allDeptName
       this.occupationalForm.JobId = row.JobId
       this.occupationalForm.jobName = row.jobName
       this.occupationalForm.injuredTime = row.injuredTime
@@ -5510,6 +5560,7 @@
       this.laborTroubleForm.archivesNumb = ''
       this.laborTroubleForm.deptId = ''
       this.laborTroubleForm.deptName = ''
+      this.laborTroubleForm.allDeptName = ''
       this.laborTroubleForm.empNumb = ''
       this.laborTroubleForm.empName = ''
       this.laborTroubleForm.sex = ''
@@ -5528,7 +5579,7 @@
       this.laborTroubleForm.creator = ''
       this.laborTroubleForm.modifyTime = ''
       this.laborTroubleForm.modifier = ''
-      this.laborTroubleForm.delFlag = ''
+      this.laborTroubleForm.delFlag = '2'
       this.laborTroubleForm.version = ''
       this.laborTroubleForm.remark = ''
     },
@@ -5542,6 +5593,7 @@
       this.laborTroubleForm.certificateNumb = row.certificateNumb
       this.laborTroubleForm.deptId = row.deptId
       this.laborTroubleForm.deptName = row.deptName
+      this.laborTroubleForm.allDeptName = row.allDeptName
       this.laborTroubleForm.JobId = row.JobId
       this.laborTroubleForm.jobName = row.jobName
       this.laborTroubleForm.arbitrationDate = row.arbitrationDate
@@ -5572,6 +5624,7 @@
       this.badRecordForm.archivesNumb = ''
       this.badRecordForm.deptId = ''
       this.badRecordForm.deptName = ''
+      this.badRecordForm.allDeptName = ''
       this.badRecordForm.empNumb = ''
       this.badRecordForm.empName = ''
       this.badRecordForm.sex = ''
@@ -5586,7 +5639,7 @@
       this.badRecordForm.creator = ''
       this.badRecordForm.modifyTime = ''
       this.badRecordForm.modifier = ''
-      this.badRecordForm.delFlag = ''
+      this.badRecordForm.delFlag = '2'
       this.badRecordForm.version = ''
       this.badRecordForm.remark = ''
     },
@@ -5645,6 +5698,7 @@
       this.badRecordForm.certificateNumb = row.certificateNumb
       this.badRecordForm.deptId = row.deptId
       this.badRecordForm.deptName = row.deptName
+      this.badRecordForm.allDeptName = row.allDeptName
       this.badRecordForm.JobId = row.JobId
       this.badRecordForm.jobName = row.jobName
       this.badRecordForm.badDate = row.badDate
@@ -5715,6 +5769,7 @@
       this.remarkInfoForm.archivesNumb = ''
       this.remarkInfoForm.deptId = ''
       this.remarkInfoForm.deptName = ''
+      this.remarkInfoForm.allDeptName = ''
       this.remarkInfoForm.empNumb = ''
       this.remarkInfoForm.empName = ''
       this.remarkInfoForm.sex = ''
@@ -5728,7 +5783,7 @@
       this.remarkInfoForm.creator = ''
       this.remarkInfoForm.modifyTime = ''
       this.remarkInfoForm.modifier = ''
-      this.remarkInfoForm.delFlag = ''
+      this.remarkInfoForm.delFlag = '2'
       this.remarkInfoForm.version = ''
     },
     editRemarkInfo(row) {
@@ -5742,6 +5797,7 @@
       this.remarkInfoForm.JobId = row.JobId
       this.remarkInfoForm.deptId = row.deptId
       this.remarkInfoForm.deptName = row.deptName
+      this.remarkInfoForm.allDeptName = row.allDeptName
       this.remarkInfoForm.jobName = row.jobName
       this.remarkInfoForm.remarkContent = row.remarkContent
       this.remarkInfoForm.remarkDate = row.remarkDate
@@ -5872,6 +5928,11 @@
         case '5':
           return '(非深户)四险一档'
       }
+    },
+    changeSort(val) {
+      this.sort.field = val.prop
+      this.sort.order = val.order
+      this.search()
     }
   }
 }

--
Gitblit v1.8.0