BAOLH
2026-11-03 a1afc13f67a0345387065d39a6828d6573c3d364
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
<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="projectName" label="项目名" min-width="140" show-overflow-tooltip>
          <template slot-scope="scope">
            <el-tag>{{ scope.row.projectName }}</el-tag>
          </template>
        </el-table-column>
        <el-table-column prop="name" label="漫剧名" min-width="140" show-overflow-tooltip>
          <template slot-scope="scope">
            <el-tag>{{ scope.row.name }}</el-tag>
          </template>
        </el-table-column>
        <el-table-column prop="settlementStatus" label="结算状态" width="100" show-overflow-tooltip>
          <template slot-scope="scope">
            <el-tag :type="scope.row.settlementStatus === '0' ? 'danger' : 'success'">{{ dict.label[dictAnimeSettlementStatus][scope.row.settlementStatus] }}</el-tag>
          </template>
        </el-table-column>
        <el-table-column prop="acceptanceTime" label="结算时间" width="120" show-overflow-tooltip>
          <template slot-scope="scope">
            {{ parseTime(scope.row.acceptanceTime, '{y}-{m}-{d}') }}
          </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'
import constant from '@/utils/constant'
 
const defaultForm = { id: null, projectId: null, projectName: null, parent: null, name: null, tagList: null, userIdList: null, containUserList: null, performanceType: null, planStartTime: null, planEndTime: null, planHours: null, sumPlanHours: null, consumedHours: null, performanceHours: null, taskStatus: null, description: null, acceptanceTime: null, settlementStatus: null }
export default {
  name: 'AnimeManege',
  components: { pagination, crudOperation, rrOperation },
  mixins: [presenter(), header(), form(defaultForm), crud()],
  cruds() {
    return CRUD({ title: '漫剧管理', url: 'api/animationSettlement/anime', idField: 'id', sort: '', optShow: { add: false, edit: false, del: false, download: false }})
  },
  // 数据字典
  dicts: [constant.ANIME_SETTLEMENT_STATUS],
  data() {
    return {
      permission: {
        add: ['admin', 'animationSettlement:add'],
        edit: ['admin', 'animationSettlement:edit'],
        del: ['admin', 'animationSettlement:del'],
        download: ['admin', 'animationSettlement:download']
      },
      rules: {},
      dictAnimeSettlementStatus: constant.ANIME_SETTLEMENT_STATUS
    }
  },
  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>