BAOLH
2026-11-10 4d730af0447c686133130d0116a0fa3dd82c2dca
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<template>
  <div class="app-container">
    <!--工具栏-->
    <div class="head-container">
      <div>
        <!-- <el-date-picker
          v-model="query.outStartTime"
          type="daterange"
          clearable
          class="date-item"
          value-format="yyyy-MM-dd HH:mm:ss"
          placeholder="选择日期时间"
          range-separator=" : "
          start-placeholder="开始时间"
          end-placeholder="开始时间"
        />
        <el-date-picker
          v-model="query.outEndTime"
          type="daterange"
          clearable
          class="date-item"
          value-format="yyyy-MM-dd HH:mm:ss"
          placeholder="选择日期时间"
          range-separator=" : "
          start-placeholder="结束时间"
          end-placeholder="结束时间"
        /> -->
        <el-date-picker
          v-model="query.acceptanceTimeRange"
          type="monthrange"
          range-separator=":"
          start-placeholder="开始月份"
          end-placeholder="结束月份"
          value-format="yyyy-MM-01 00:00:00"
          clearable
          class="date-item"
          style="width: 370px !important;"
        />
        <rrOperation />
      </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="110px">
          <el-form-item label="审批说明">
            <el-input v-model="form.approvalDescription" type="textarea" rows="3" style="width: 340px;" disabled />
          </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" :data="crud.data" row-key="id" size="small" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
        <el-table-column type="selection" width="55" />
        <el-table-column prop="acceptanceTime" label="时间" width="100" show-overflow-tooltip>
          <template slot-scope="scope">
            {{ parseTime(scope.row.acceptanceTime, '{y}-{m}-{d}') }}
          </template>
        </el-table-column>
        <el-table-column prop="produceCommission" label="制作提成" min-width="140" show-overflow-tooltip>
          <template slot-scope="scope">
            <el-tag type="success">{{ scope.row.produceCommission }}</el-tag>
          </template>
        </el-table-column>
        <el-table-column prop="produceDeduction" label="制作扣除" min-width="140" show-overflow-tooltip>
          <template slot-scope="scope">
            <el-tag type="danger">{{ scope.row.produceDeduction }}</el-tag>
          </template>
        </el-table-column>
        <el-table-column prop="gachaCoefficient" label="抽卡系数" width="80" show-overflow-tooltip />
        <el-table-column prop="commissionPrice" label="提成单价" width="80" show-overflow-tooltip />
        <el-table-column prop="excessProduceMinutes" label="超额时长" width="80" show-overflow-tooltip />
        <el-table-column prop="reviewCommission" label="审核提成" min-width="140" show-overflow-tooltip>
          <template slot-scope="scope">
            <el-tag type="success">{{ scope.row.reviewCommission }}</el-tag>
          </template>
        </el-table-column>
        <el-table-column prop="reviewDeduction" label="审核扣除" min-width="140" show-overflow-tooltip>
          <template slot-scope="scope">
            <el-tag type="danger">{{ scope.row.reviewDeduction }}</el-tag>
          </template>
        </el-table-column>
      </el-table>
      <!--分页组件-->
      <pagination />
    </div>
  </div>
</template>
 
<script>
import CRUD, { presenter, header, form, crud } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
import { mapGetters } from 'vuex'
import crudOperation from '@crud/CRUD.operation'
import pagination from '@crud/Pagination'
 
const defaultForm = { id: null, userId: null, projectId: null, taskId: null, taskUserId: null, acceptanceTime: null, taskSeconds: null, pointsConsumed: null, issueCount: null, rejectCount: null, settlementStatus: null, taskType: null, costHours: null, produceCommission: null, produceDeduction: null, reviewCommission: null, reviewDeduction: null, gachaCoefficient: null, commissionPrice: null, excessProduceMinutes: null, createBy: null, createTime: null, updateBy: null, updateTime: null }
export default {
  name: 'PersonalCommission',
  components: { pagination, crudOperation, rrOperation },
  mixins: [presenter(), header(), form(defaultForm), crud()],
  cruds() {
    return CRUD({ title: '我的提成', url: 'api/animationSettlement/personal', idField: 'id', sort: '', optShow: { add: false, edit: false, del: false, download: false }})
  },
  // 数据字典
  dicts: [],
  data() {
    return {
      permission: {
        add: ['admin', 'animationSettlement:add'],
        edit: ['admin', 'animationSettlement:edit'],
        del: ['admin', 'animationSettlement:del'],
        download: ['admin', 'animationSettlement:download']
      },
      rules: {}
    }
  },
  computed: {
    ...mapGetters(['user'])
  },
  methods: {
  }
}
</script>
 
<style scoped>
.form-item {
  width: 100%;
  display: flex;
  margin-bottom: 20px;
}
.form-item-label {
  width: 20%;
  display: flex;
  padding-left: 20px;
}
.form-item-value {
  width: 80%;
  display: flex;
  padding-left: 25px;
  padding-right: 25px;
}
</style>