From 54fd333b1cbced722ddccc8016cd1e4975aa31bf Mon Sep 17 00:00:00 2001
From: yaozc <unbelievers@yeah.net>
Date: Thu, 09 Mar 2023 03:30:21 +0000
Subject: [PATCH] BUG改修

---
 eladmin-web-master/src/api/projectCostOther.js                  |   27 ++
 eladmin-web-master/src/views/project/projectTask/index.vue      |    2 
 eladmin-web-master/src/views/project/projectCost/index.vue      |    2 
 eladmin-web-master/src/views/salary/salary/index.vue            |  305 +++------------------------
 eladmin-web-master/src/views/project/project/index.vue          |   63 ++++-
 eladmin-web-master/src/views/project/projectCostOther/index.vue |  217 +++++++++++++++++++
 6 files changed, 335 insertions(+), 281 deletions(-)

diff --git a/eladmin-web-master/src/api/projectCostOther.js b/eladmin-web-master/src/api/projectCostOther.js
new file mode 100644
index 0000000..12ecf2e
--- /dev/null
+++ b/eladmin-web-master/src/api/projectCostOther.js
@@ -0,0 +1,27 @@
+import request from '@/utils/request'
+
+export function add(data) {
+  return request({
+    url: 'api/projectCostOther',
+    method: 'post',
+    data
+  })
+}
+
+export function del(ids) {
+  return request({
+    url: 'api/projectCostOther/',
+    method: 'delete',
+    data: ids
+  })
+}
+
+export function edit(data) {
+  return request({
+    url: 'api/projectCostOther',
+    method: 'put',
+    data
+  })
+}
+
+export default { add, edit, del }
diff --git a/eladmin-web-master/src/views/project/project/index.vue b/eladmin-web-master/src/views/project/project/index.vue
index fa9dd92..8f22602 100644
--- a/eladmin-web-master/src/views/project/project/index.vue
+++ b/eladmin-web-master/src/views/project/project/index.vue
@@ -83,7 +83,20 @@
           style="margin-left: 4px !important;"
           @click="toSeeCost(crud.selections[0])"
         >
-          查看成本
+          人力成本
+        </el-button>
+        <el-button
+          slot="right"
+          v-permission="permission.seeCost"
+          class="filter-item"
+          size="mini"
+          type="primary"
+          icon="el-icon-view"
+          :disabled="crud.selections.length !== 1"
+          style="margin-left: 4px !important;"
+          @click="toSeeCostOther(crud.selections[0])"
+        >
+          其他成本
         </el-button>
       </crudOperation>
       <!--表单组件-->
@@ -256,19 +269,31 @@
             </span>
           </template>
         </el-table-column>
-        <el-table-column :show-overflow-tooltip="true" prop="totalLaborCost" label="计划项目总成本" width="110">
-          <template slot-scope="scope">
-            <span :style="{ color: scope.row.performancePrice * scope.row.totalTaskTime < scope.row.totalLaborCost ? 'red' : '' }">
-              {{ crud.toMoney(scope.row.totalLaborCost) }}
-            </span>
-          </template>
+        <el-table-column label="计划成本">
+          <el-table-column :show-overflow-tooltip="true" prop="totalLaborCost" label="人力成本" width="110">
+            <template slot-scope="scope">
+              <span :style="{ color: scope.row.performancePrice * scope.row.totalTaskTime < scope.row.totalLaborCost ? 'red' : '' }">
+                {{ crud.toMoney(scope.row.totalLaborCost) }}
+              </span>
+            </template>
+          </el-table-column>
+          <el-table-column :show-overflow-tooltip="true" prop="totalOtherCost" label="其他成本" width="110">
+            <template slot-scope="scope">
+              {{ crud.toMoney(scope.row.totalOtherCost) }}
+            </template>
+          </el-table-column>
         </el-table-column>
-        <el-table-column :show-overflow-tooltip="true" prop="actualLaborCost" label="实际项目总成本" width="110">
-          <template slot-scope="scope">
-            <span :style="{ color: scope.row.performancePrice * scope.row.actualTaskTime < scope.row.actualLaborCost ? 'red' : '' }">
-              {{ crud.toMoney(scope.row.actualLaborCost) }}
-            </span>
-          </template>
+        <el-table-column label="实际成本">
+          <el-table-column :show-overflow-tooltip="true" prop="actualLaborCost" label="人力成本" width="110">
+            <template slot-scope="scope">
+              <span :style="{ color: scope.row.performancePrice * scope.row.actualTaskTime < scope.row.actualLaborCost ? 'red' : '' }">
+                {{ crud.toMoney(scope.row.actualLaborCost) }}
+              </span>
+            </template>
+          </el-table-column>
+          <el-table-column :show-overflow-tooltip="true" prop="actualLaborCost" label="其他成本" width="110">
+            未实装
+          </el-table-column>
         </el-table-column>
         <el-table-column :show-overflow-tooltip="true" prop="liableUserName" label="责任人" width="100">
           <template slot-scope="scope">
@@ -592,7 +617,7 @@
         }
       })
     },
-    // 查看成本
+    // 查看人力成本
     toSeeCost(data) {
       // 跳转页面
       this.$router.push({
@@ -601,6 +626,16 @@
           projectId: data.id
         }
       })
+    },
+    // 查看其他成本
+    toSeeCostOther(data) {
+      // 跳转页面
+      this.$router.push({
+        name: 'ProjectCostOther',
+        params: {
+          projectId: data.id
+        }
+      })
     }
   }
 }
diff --git a/eladmin-web-master/src/views/project/projectCost/index.vue b/eladmin-web-master/src/views/project/projectCost/index.vue
index a63e686..233fc78 100644
--- a/eladmin-web-master/src/views/project/projectCost/index.vue
+++ b/eladmin-web-master/src/views/project/projectCost/index.vue
@@ -62,7 +62,7 @@
             </el-row>
           </el-form-item>
           <el-form-item label="项目成本" prop="projectCost">
-            <money-input :key="randomCost" v-model="form.projectCost" :width="340" :disabled="true" />
+            <money-input :key="randomCost" v-model="form.projectCost" :width="340" :disabled="disabledFlagByApprove" />
           </el-form-item>
           <el-form-item label="备注">
             <el-input v-model="form.remarks" :rows="3" type="textarea" style="width: 340px;" :disabled="disabledFlagByApprove" />
diff --git a/eladmin-web-master/src/views/project/projectCostOther/index.vue b/eladmin-web-master/src/views/project/projectCostOther/index.vue
new file mode 100644
index 0000000..3ca50d0
--- /dev/null
+++ b/eladmin-web-master/src/views/project/projectCostOther/index.vue
@@ -0,0 +1,217 @@
+<template>
+  <div class="app-container">
+    <!--工具栏-->
+    <div class="head-container">
+      <div v-if="crud.props.searchToggle">
+        <!-- 搜索 -->
+        <el-select v-model="query.projectId" clearable filterable placeholder="项目" style="width: 185px;" class="filter-item" @keyup.enter.native="crud.toQuery">
+          <el-option
+            v-for="item in projectList"
+            :key="item.id"
+            :label="item.name"
+            :value="item.id"
+          />
+        </el-select>
+        <rrOperation :crud="crud" />
+      </div>
+      <!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
+      <crudOperation :permission="permission" />
+      <!--表单组件-->
+      <el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="500px">
+        <el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px">
+          <el-form-item label="项目" prop="projectId">
+            <el-select v-model="form.projectId" clearable filterable placeholder="请选择" style="width: 370px;" :disabled="disabledFlagByApprove">
+              <el-option
+                v-for="item in projectList"
+                :key="item.id"
+                :label="item.name"
+                :value="item.id"
+                :disabled="item.approveStatus == approveStatusAcknowledged"
+              />
+            </el-select>
+          </el-form-item>
+          <el-form-item label="成本类型" prop="projectCostType">
+            <el-select v-model="form.projectCostType" clearable filterable placeholder="请选择" style="width: 370px;" :disabled="disabledFlagByApprove" @change="form.subProjectCostType = null">
+              <el-option
+                v-for="item in dict[projectCostType]"
+                :key="item.id"
+                :label="item.label"
+                :value="item.value"
+              />
+            </el-select>
+          </el-form-item>
+          <el-form-item v-if="form.projectCostType === '3'" label="子类型" prop="subProjectCostType">
+            <el-select v-model="form.subProjectCostType" clearable filterable placeholder="请选择" style="width: 370px;" :disabled="disabledFlagByApprove">
+              <el-option
+                v-for="item in subProjectCostTypeList"
+                :key="item.id"
+                :label="item.label"
+                :value="item.value"
+              />
+            </el-select>
+          </el-form-item>
+          <el-form-item label="项目成本" prop="projectCost">
+            <money-input :key="randomCost" v-model="form.projectCost" :width="370" :disabled="disabledFlagByApprove" />
+          </el-form-item>
+          <el-form-item label="备注">
+            <el-input v-model="form.remark" :rows="3" type="textarea" style="width: 370px;" :disabled="disabledFlagByApprove" />
+          </el-form-item>
+        </el-form>
+        <div slot="footer" class="dialog-footer">
+          <el-button type="text" @click="crud.cancelCU">取消</el-button>
+          <el-button :loading="crud.status.cu === 2" type="primary" @click="crud.submitCU">确认</el-button>
+        </div>
+      </el-dialog>
+      <!--表格渲染-->
+      <el-table ref="table" v-loading="crud.loading" show-summary :data="crud.data" size="small" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
+        <el-table-column type="selection" width="55" />
+        <el-table-column prop="projectId" label="项目" show-overflow-tooltip>
+          <template slot-scope="scope">
+            <el-tag>{{ scope.row.projectName }}</el-tag>
+          </template>
+        </el-table-column>
+        <el-table-column prop="projectCostType" label="项目成本类型">
+          <template slot-scope="scope">
+            <el-tag>{{ dict.label[projectCostType][scope.row.projectCostType] }}</el-tag>
+          </template>
+        </el-table-column>
+        <el-table-column prop="subProjectCostType" label="项目成本子类型" />
+        <el-table-column prop="projectCost" label="项目成本">
+          <template slot-scope="scope">
+            {{ crud.toMoney(scope.row.projectCost) }}
+          </template>
+        </el-table-column>
+        <el-table-column prop="remark" label="备注" />
+        <el-table-column v-if="checkPer(['admin','projectCostOther:edit','projectCostOther:del'])" label="操作" width="150px" align="center">
+          <template slot-scope="scope">
+            <udOperation
+              :data="scope.row"
+              :permission="permission"
+            />
+          </template>
+        </el-table-column>
+      </el-table>
+      <!--分页组件-->
+      <pagination />
+    </div>
+  </div>
+</template>
+
+<script>
+import crudProjectCostOther from '@/api/projectCostOther'
+import crudProject from '@/api/project/project'
+import CRUD, { presenter, header, form, crud } from '@crud/crud'
+import rrOperation from '@crud/RR.operation'
+import crudOperation from '@crud/CRUD.operation'
+import udOperation from '@crud/UD.operation'
+import pagination from '@crud/Pagination'
+import constant from '@/utils/constant'
+import moneyInput from '@/views/assembly/moneyInput/index.vue'
+
+const defaultForm = { id: null, projectId: null, projectCostType: null, subProjectCostType: null, projectCost: null, remark: null, createBy: null, createTime: null, updateBy: null, updateTime: null }
+export default {
+  name: 'ProjectCostOther',
+  components: { pagination, crudOperation, rrOperation, udOperation, moneyInput },
+  mixins: [presenter(), header(), form(defaultForm), crud()],
+  dicts: ['project_cost_type'],
+  cruds() {
+    return CRUD({ title: '项目其他成本', url: 'api/projectCostOther', idField: 'id', sort: 'id,desc', crudMethod: { ...crudProjectCostOther }})
+  },
+  data() {
+    return {
+      permission: {
+        add: ['admin', 'projectCostOther:add'],
+        edit: ['admin', 'projectCostOther:edit'],
+        del: ['admin', 'projectCostOther:del']
+      },
+      rules: {
+        projectId: [
+          { required: true, message: '项目不能为空', trigger: 'blur' }
+        ],
+        projectCostType: [
+          { required: true, message: '项目成本类型不能为空', trigger: 'blur' }
+        ],
+        projectCost: [
+          { required: true, message: '项目成本不能为空', trigger: 'blur' }
+        ]
+      },
+      queryTypeOptions: [
+        { key: 'projectId', display_name: '项目' }
+      ],
+      // 表单禁用标记(承认状态)
+      disabledFlagByApprove: false,
+      // 字典:任务分类
+      projectCostType: 'project_cost_type',
+      // 项目列表
+      projectList: [],
+      // 随机数
+      randomCost: 0,
+      // 承认状态:已承认
+      approveStatusAcknowledged: constant.APPROVE_STATUS_ACKNOWLEDGED,
+      // 子成本类型List
+      subProjectCostTypeList: [
+        {
+          id: 1,
+          label: '补贴',
+          value: '补贴'
+        },
+        {
+          id: 2,
+          label: '加油费',
+          value: '加油费'
+        },
+        {
+          id: 3,
+          label: '餐饮费',
+          value: '餐饮费'
+        },
+        {
+          id: 4,
+          label: '住宿费',
+          value: '住宿费'
+        }
+      ]
+    }
+  },
+  methods: {
+    // 钩子:在获取表格数据之前执行,false 则代表不获取数据
+    [CRUD.HOOK.beforeRefresh]() {
+      // 判断传参是否为空
+      if (this.$route.params.projectId != null && this.$route.params.projectId !== '' && this.crud.query.projectId === undefined) {
+        // 检索条件赋值
+        this.$set(this.crud.query, 'projectId', Number(this.$route.params.projectId))
+      }
+      // 获取项目列表
+      this.getProjectList()
+      return true
+    },
+    // 新增与编辑前做的操作
+    [CRUD.HOOK.afterToCU](crud, form) {
+      // 表单禁用标记(承认状态)
+      this.disabledFlagByApprove = false
+      // 循环项目列表
+      for (let i = 0; i < this.projectList.length; i++) {
+        // 判断是否为同一项目
+        if (this.form.projectId === this.projectList[i].id && this.projectList[i].approveStatus === constant.APPROVE_STATUS_ACKNOWLEDGED) {
+          // 表单禁用标记(承认状态)
+          this.disabledFlagByApprove = true
+        }
+      }
+      // 随机数
+      this.randomCost = Math.random()
+    },
+    // 获取项目列表
+    getProjectList() {
+      // 获取项目列表
+      crudProject.getAll().then(res => {
+        // 项目列表
+        this.projectList = res
+      })
+    }
+  }
+}
+</script>
+
+<style scoped>
+
+</style>
diff --git a/eladmin-web-master/src/views/project/projectTask/index.vue b/eladmin-web-master/src/views/project/projectTask/index.vue
index 4a23b97..4f2f2aa 100644
--- a/eladmin-web-master/src/views/project/projectTask/index.vue
+++ b/eladmin-web-master/src/views/project/projectTask/index.vue
@@ -137,7 +137,7 @@
 import pagination from '@crud/Pagination'
 import constant from '../../../utils/constant'
 
-const defaultForm = { id: null, projectId: null, name: null, taskClassification: null, description: null, planStartTime: null, planEndTime: null, planHours: null, planWorkload: null, planWorkloadUnit: null, remarks: null, createBy: null, createTime: null, updateBy: null, updateTime: null }
+const defaultForm = { id: null, projectId: null, name: null, taskClassification: null, performanceType: '1', description: null, planStartTime: null, planEndTime: null, planHours: null, planWorkload: null, planWorkloadUnit: null, remarks: null, createBy: null, createTime: null, updateBy: null, updateTime: null }
 export default {
   name: 'ProjectTask',
   components: { pagination, crudOperation, rrOperation, udOperation },
diff --git a/eladmin-web-master/src/views/salary/salary/index.vue b/eladmin-web-master/src/views/salary/salary/index.vue
index 080d984..e7b0fae 100644
--- a/eladmin-web-master/src/views/salary/salary/index.vue
+++ b/eladmin-web-master/src/views/salary/salary/index.vue
@@ -328,280 +328,55 @@
             {{ crud.toMoney(scope.row.levelWage) }}
           </template>
         </el-table-column>
-        <el-table-column label="基础工资">
-          <el-table-column :show-overflow-tooltip="true" prop="basicWageProportion" label="工资比例" width="100">
-            <template slot-scope="scope">
-              {{ scope.row.basicWageProportion }}%
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="basicWage" label="预计工资" width="100">
-            <template slot-scope="scope">
-              {{ crud.toMoney(scope.row.basicWage) }}
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="fullDays" label="全勤小时数" width="100">
-            <template slot-scope="scope">
-              {{ scope.row.fullDays }}小时
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="absenceDays" label="缺勤小时数" width="100">
-            <template slot-scope="scope">
-              {{ scope.row.absenceDays }}小时
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="actualBasicWage" label="实际工资" width="100">
-            <template slot-scope="scope">
-              {{ crud.toMoney(scope.row.actualBasicWage) }}
-            </template>
-          </el-table-column>
+        <el-table-column :show-overflow-tooltip="true" prop="actualBasicWage" label="基础工资" width="100">
+          <template slot-scope="scope">
+            {{ crud.toMoney(scope.row.actualBasicWage) }}
+          </template>
         </el-table-column>
-        <el-table-column label="绩效工资">
-          <el-table-column :show-overflow-tooltip="true" prop="achievementsWageProportion" label="工资比例" width="100">
-            <template slot-scope="scope">
-              {{ scope.row.achievementsWageProportion }}%
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="achievementsWage" label="预计工资" width="100">
-            <template slot-scope="scope">
-              {{ crud.toMoney(scope.row.achievementsWage) }}
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="needCompletedAchievementsHours" label="应完成工时" width="100">
-            <template slot-scope="scope">
-              {{ scope.row.needCompletedAchievementsHours }}小时
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="alreadyCompletedAchievementsHours" label="已完成工时" width="100">
-            <template slot-scope="scope">
-              {{ scope.row.alreadyCompletedAchievementsHours }}小时
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="actualAchievementsWage" label="实际工资" width="100">
-            <template slot-scope="scope">
-              {{ crud.toMoney(scope.row.actualAchievementsWage) }}
-            </template>
-          </el-table-column>
+        <el-table-column :show-overflow-tooltip="true" prop="actualAchievementsWage" label="绩效工资" width="100">
+          <template slot-scope="scope">
+            {{ crud.toMoney(scope.row.actualAchievementsWage) }}
+          </template>
         </el-table-column>
-        <el-table-column label="业绩工资">
-          <el-table-column :show-overflow-tooltip="true" prop="performanceWageProportion" label="工资比例" width="100">
-            <template slot-scope="scope">
-              {{ scope.row.performanceWageProportion }}%
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="performanceWage" label="预计工资" width="100">
-            <template slot-scope="scope">
-              {{ crud.toMoney(scope.row.performanceWage) }}
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="personalPerformanceProportion" label="个人业绩比例" width="100">
-            <template slot-scope="scope">
-              {{ scope.row.personalPerformanceProportion }}%
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="needCompletedPerformanceHours" label="应完成工时" width="100">
-            <template slot-scope="scope">
-              {{ scope.row.needCompletedPerformanceHours }}小时
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="alreadyCompletedPerformanceHours" label="已完成工时" width="100">
-            <template slot-scope="scope">
-              {{ scope.row.alreadyCompletedPerformanceHours }}小时
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="actualPerformanceWage" label="实际工资" width="100">
-            <template slot-scope="scope">
-              {{ crud.toMoney(scope.row.actualPerformanceWage) }}
-            </template>
-          </el-table-column>
+        <el-table-column :show-overflow-tooltip="true" prop="actualPerformanceWage" label="业绩工资" width="100">
+          <template slot-scope="scope">
+            {{ crud.toMoney(scope.row.actualPerformanceWage) }}
+          </template>
         </el-table-column>
-        <el-table-column label="团队工资">
-          <el-table-column :show-overflow-tooltip="true" prop="teamWageProportion" label="工资比例" width="100">
-            <template slot-scope="scope">
-              {{ scope.row.teamWageProportion }}%
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="teamWage" label="预计工资" width="100">
-            <template slot-scope="scope">
-              {{ crud.toMoney(scope.row.teamWage) }}
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="actualComplianceTeamHours" label="实达标工时" width="100">
-            <template slot-scope="scope">
-              {{ scope.row.actualComplianceTeamHours }}小时
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="alreadyCompletedTeamHours" label="已完成工时" width="100">
-            <template slot-scope="scope">
-              {{ scope.row.alreadyCompletedTeamHours }}小时
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="actualTeamWage" label="实际工资" width="100">
-            <template slot-scope="scope">
-              {{ crud.toMoney(scope.row.actualTeamWage) }}
-            </template>
-          </el-table-column>
+        <el-table-column :show-overflow-tooltip="true" prop="actualTeamWage" label="团队工资" width="100">
+          <template slot-scope="scope">
+            {{ crud.toMoney(scope.row.actualTeamWage) }}
+          </template>
         </el-table-column>
-        <el-table-column label="公积金">
-          <el-table-column :show-overflow-tooltip="true" prop="accumulationRadix" label="基数" width="100">
-            <template slot-scope="scope">
-              {{ crud.toMoney(scope.row.accumulationRadix) }}
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="accumulationPersonalProportion" label="个人缴纳比例" width="100">
-            <template slot-scope="scope">
-              {{ scope.row.accumulationPersonalProportion }}%
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="accumulationPersonalAmount" label="个人缴纳金额" width="100">
-            <template slot-scope="scope">
-              {{ crud.toMoney(scope.row.accumulationPersonalAmount) }}
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="accumulationCompanyProportion" label="公司缴纳比例" width="100">
-            <template slot-scope="scope">
-              {{ scope.row.accumulationCompanyProportion }}%
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="accumulationCompanyAmount" label="公司缴纳金额" width="100">
-            <template slot-scope="scope">
-              {{ crud.toMoney(scope.row.accumulationCompanyAmount) }}
-            </template>
-          </el-table-column>
+        <el-table-column :show-overflow-tooltip="true" prop="accumulationPersonalAmount" label="公积金·个人缴纳金额" width="100">
+          <template slot-scope="scope">
+            {{ crud.toMoney(scope.row.accumulationPersonalAmount) }}
+          </template>
         </el-table-column>
-        <el-table-column label="养老险">
-          <el-table-column :show-overflow-tooltip="true" prop="pensionRadix" label="基数" width="100">
-            <template slot-scope="scope">
-              {{ crud.toMoney(scope.row.pensionRadix) }}
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="pensionPersonalProportion" label="个人缴纳比例" width="100">
-            <template slot-scope="scope">
-              {{ scope.row.pensionPersonalProportion }}%
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="pensionPersonalAmount" label="个人缴纳金额" width="100">
-            <template slot-scope="scope">
-              {{ crud.toMoney(scope.row.pensionPersonalAmount) }}
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="pensionCompanyProportion" label="公司缴纳比例" width="100">
-            <template slot-scope="scope">
-              {{ scope.row.pensionCompanyProportion }}%
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="pensionCompanyAmount" label="公司缴纳金额" width="100">
-            <template slot-scope="scope">
-              {{ crud.toMoney(scope.row.pensionCompanyAmount) }}
-            </template>
-          </el-table-column>
+        <el-table-column :show-overflow-tooltip="true" prop="pensionPersonalAmount" label="养老险·个人缴纳金额" width="100">
+          <template slot-scope="scope">
+            {{ crud.toMoney(scope.row.pensionPersonalAmount) }}
+          </template>
         </el-table-column>
-        <el-table-column label="医疗险">
-          <el-table-column :show-overflow-tooltip="true" prop="medicalRadix" label="基数" width="100">
-            <template slot-scope="scope">
-              {{ crud.toMoney(scope.row.medicalRadix) }}
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="medicalPersonalProportion" label="个人缴纳比例" width="100">
-            <template slot-scope="scope">
-              {{ scope.row.medicalPersonalProportion }}%
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="medicalPersonalAmount" label="个人缴纳金额" width="100">
-            <template slot-scope="scope">
-              {{ crud.toMoney(scope.row.medicalPersonalAmount) }}
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="medicalCompanyProportion" label="公司缴纳比例" width="100">
-            <template slot-scope="scope">
-              {{ scope.row.medicalCompanyProportion }}%
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="medicalCompanyAmount" label="公司缴纳金额" width="100">
-            <template slot-scope="scope">
-              {{ crud.toMoney(scope.row.medicalCompanyAmount) }}
-            </template>
-          </el-table-column>
+        <el-table-column :show-overflow-tooltip="true" prop="medicalPersonalAmount" label="医疗险·个人缴纳金额" width="100">
+          <template slot-scope="scope">
+            {{ crud.toMoney(scope.row.medicalPersonalAmount) }}
+          </template>
         </el-table-column>
-        <el-table-column label="失业险">
-          <el-table-column :show-overflow-tooltip="true" prop="unemploymentRadix" label="基数" width="100">
-            <template slot-scope="scope">
-              {{ crud.toMoney(scope.row.unemploymentRadix) }}
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="unemploymentPersonalProportion" label="个人缴纳比例" width="100">
-            <template slot-scope="scope">
-              {{ scope.row.unemploymentPersonalProportion }}%
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="unemploymentPersonalAmount" label="个人缴纳金额" width="100">
-            <template slot-scope="scope">
-              {{ crud.toMoney(scope.row.unemploymentPersonalAmount) }}
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="unemploymentCompanyProportion" label="公司缴纳比例" width="100">
-            <template slot-scope="scope">
-              {{ scope.row.unemploymentCompanyProportion }}%
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="unemploymentCompanyAmount" label="公司缴纳金额" width="100">
-            <template slot-scope="scope">
-              {{ crud.toMoney(scope.row.unemploymentCompanyAmount) }}
-            </template>
-          </el-table-column>
+        <el-table-column :show-overflow-tooltip="true" prop="unemploymentPersonalAmount" label="失业险·个人缴纳金额" width="100">
+          <template slot-scope="scope">
+            {{ crud.toMoney(scope.row.unemploymentPersonalAmount) }}
+          </template>
         </el-table-column>
-        <el-table-column label="生育险">
-          <el-table-column :show-overflow-tooltip="true" prop="maternityRadix" label="基数" width="100">
-            <template slot-scope="scope">
-              {{ crud.toMoney(scope.row.maternityRadix) }}
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="maternityPersonalProportion" label="个人缴纳比例" width="100">
-            <template slot-scope="scope">
-              {{ scope.row.maternityPersonalProportion }}%
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="maternityPersonalAmount" label="个人缴纳金额" width="100">
-            <template slot-scope="scope">
-              {{ crud.toMoney(scope.row.maternityPersonalAmount) }}
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="maternityCompanyProportion" label="公司缴纳比例" width="100">
-            <template slot-scope="scope">
-              {{ scope.row.maternityCompanyProportion }}%
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="maternityCompanyAmount" label="公司缴纳金额" width="100">
-            <template slot-scope="scope">
-              {{ crud.toMoney(scope.row.maternityCompanyAmount) }}
-            </template>
-          </el-table-column>
+        <el-table-column :show-overflow-tooltip="true" prop="maternityPersonalAmount" label="生育险·个人缴纳金额" width="100">
+          <template slot-scope="scope">
+            {{ crud.toMoney(scope.row.maternityPersonalAmount) }}
+          </template>
         </el-table-column>
-        <el-table-column label="工伤险">
-          <el-table-column :show-overflow-tooltip="true" prop="industrialInjuryRadix" label="基数" width="100">
-            <template slot-scope="scope">
-              {{ crud.toMoney(scope.row.industrialInjuryRadix) }}
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="industrialInjuryPersonalProportion" label="个人缴纳比例" width="100">
-            <template slot-scope="scope">
-              {{ scope.row.industrialInjuryPersonalProportion }}%
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="industrialInjuryPersonalAmount" label="个人缴纳金额" width="100">
-            <template slot-scope="scope">
-              {{ crud.toMoney(scope.row.industrialInjuryPersonalAmount) }}
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="industrialInjuryCompanyProportion" label="公司缴纳比例" width="100">
-            <template slot-scope="scope">
-              {{ scope.row.industrialInjuryCompanyProportion }}%
-            </template>
-          </el-table-column>
-          <el-table-column :show-overflow-tooltip="true" prop="industrialInjuryCompanyAmount" label="公司缴纳金额" width="100">
-            <template slot-scope="scope">
-              {{ crud.toMoney(scope.row.industrialInjuryCompanyAmount) }}
-            </template>
-          </el-table-column>
+        <el-table-column :show-overflow-tooltip="true" prop="industrialInjuryPersonalAmount" label="工伤险·个人缴纳金额" width="100">
+          <template slot-scope="scope">
+            {{ crud.toMoney(scope.row.industrialInjuryPersonalAmount) }}
+          </template>
         </el-table-column>
         <el-table-column :show-overflow-tooltip="true" prop="preTaxAmount" label="税前金额" width="100">
           <template slot-scope="scope">

--
Gitblit v1.9.3