<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>
|