|
|
|
@ -44,10 +44,10 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<!-- 自定义 footer-->
|
|
|
|
<!-- 自定义 footer-->
|
|
|
|
<template v-slot:footer>
|
|
|
|
<template v-slot:footer>
|
|
|
|
<el-button v-if="item.reportStatus === 0" type="primary" size="small" :icon="Edit" circle @click="editOrAddReport(item.id)"/>
|
|
|
|
<u-button v-if="item.reportStatus === 0" type="primary" icon="edit-pen" @click="editOrAddReport(item.id)"/>
|
|
|
|
<el-button v-if="item.reportStatus === 0" type="success" size="small" :icon="Check" circle @click="updateReport(item.id,1,'提交')"/>
|
|
|
|
<u-button v-if="item.reportStatus === 0" type="success" icon="share-square" @click="updateReport(item.id,1,'提交')"/>
|
|
|
|
<el-button v-if="item.reportStatus === 0" type="danger" size="small" :icon="Delete" circle @click="deleteReport(item.id)"/>
|
|
|
|
<u-button v-if="item.reportStatus === 0" type="error" icon="trash" @click="deleteReport(item.id)"/>
|
|
|
|
<el-button v-if="item.reportStatus >= 1" type="primary" size="small" :icon="View" circle @click="handleView(item.id)"/>
|
|
|
|
<u-button v-if="item.reportStatus >= 1" type="primary" icon="view" @click="handleView(item.id)"/>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</uni-list-item>
|
|
|
|
</uni-list-item>
|
|
|
|
</uni-list>
|
|
|
|
</uni-list>
|
|
|
|
@ -84,10 +84,10 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<!-- 自定义 footer-->
|
|
|
|
<!-- 自定义 footer-->
|
|
|
|
<template v-slot:footer>
|
|
|
|
<template v-slot:footer>
|
|
|
|
<el-button v-if="item.reportStatus < 2" type="primary" size="small" :icon="Edit" circle @click="addReplaceReport(item.id)"/>
|
|
|
|
<u-button v-if="item.reportStatus < 2" type="primary" icon="edit-pen" @click="addReplaceReport(item.id)"/>
|
|
|
|
<el-button v-if="item.reportStatus === 0" type="success" size="small" :icon="Promotion" circle @click="updateReport(item.id,1,'提交')"/>
|
|
|
|
<u-button v-if="item.reportStatus === 0" type="success" icon="share-square" @click="updateReport(item.id,1,'提交')"/>
|
|
|
|
<el-button v-if="item.reportStatus === 1" type="success" size="small" :icon="Check" circle @click="updateReport(item.id,2,'通过')"/>
|
|
|
|
<u-button v-if="item.reportStatus === 1" type="success" icon="checkmark" @click="updateReport(item.id,2,'通过')"/>
|
|
|
|
<el-button v-if="item.reportStatus < 2" type="danger" size="small" :icon="Delete" circle @click="deleteReport(item.id)"/>
|
|
|
|
<u-button v-if="item.reportStatus < 2" type="error" icon="trash" @click="deleteReport(item.id)"/>
|
|
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</uni-list-item>
|
|
|
|
</uni-list-item>
|
|
|
|
@ -107,7 +107,7 @@
|
|
|
|
</uni-forms-item>
|
|
|
|
</uni-forms-item>
|
|
|
|
</uni-forms>
|
|
|
|
</uni-forms>
|
|
|
|
<uni-list :border="true">
|
|
|
|
<uni-list :border="true">
|
|
|
|
<uni-list-item v-for="(item, index) in otherReportList" key="index">
|
|
|
|
<uni-list-item v-for="(item, index) in otherReportList" :key="index">
|
|
|
|
<!-- 自定义 header -->
|
|
|
|
<!-- 自定义 header -->
|
|
|
|
<template v-slot:header>
|
|
|
|
<template v-slot:header>
|
|
|
|
<div onclick="">
|
|
|
|
<div onclick="">
|
|
|
|
@ -123,11 +123,11 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<!-- 自定义 footer-->
|
|
|
|
<!-- 自定义 footer-->
|
|
|
|
<template v-slot:footer>
|
|
|
|
<template v-slot:footer>
|
|
|
|
<el-button v-if="item.reportStatus === 0" type="primary" size="small" :icon="Edit" circle @click="addReplaceReport(item.id)"/>
|
|
|
|
<u-button v-if="item.reportStatus === 0" type="primary" icon="edit-pen" @click="addReplaceReport(item.id)"/>
|
|
|
|
<el-button v-if="item.reportStatus === 0" type="success" size="small" :icon="Promotion" circle @click="updateReport(item.id,1,'提交')"/>
|
|
|
|
<u-button v-if="item.reportStatus === 0" type="success" icon="share-square" @click="updateReport(item.id,1,'提交')"/>
|
|
|
|
<el-button v-if="item.reportStatus === 1" type="success" size="small" :icon="Check" circle @click="updateReport(item.id,2,'通过')"/>
|
|
|
|
<u-button v-if="item.reportStatus === 1" type="success" icon="checkmark" @click="updateReport(item.id,2,'通过')"/>
|
|
|
|
<el-button v-if="item.reportStatus === 1" type="warning" size="small" :icon="Close" circle @click="updateReport(item.id,3,'驳回')"/>
|
|
|
|
<u-button v-if="item.reportStatus === 1" type="warning" icon="close" @click="updateReport(item.id,3,'驳回')"/>
|
|
|
|
<el-button v-if="item.reportStatus < 2" type="danger" size="small" :icon="Delete" circle @click="deleteReport(item.id)"/>
|
|
|
|
<u-button v-if="item.reportStatus < 2" type="error" icon="trash" @click="deleteReport(item.id)"/>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</uni-list-item>
|
|
|
|
</uni-list-item>
|
|
|
|
</uni-list>
|
|
|
|
</uni-list>
|
|
|
|
@ -139,7 +139,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { getMyList, getOtherList, updateStatus,deleteByReportId } from "@/api/mes/report";
|
|
|
|
import { getMyList, getOtherList, updateStatus,deleteByReportId } from "@/api/mes/report";
|
|
|
|
import { Check, Delete, Edit,Promotion,Close,View } from '@element-plus/icons-vue'
|
|
|
|
|
|
|
|
import tab from "@/plugins/tab";
|
|
|
|
import tab from "@/plugins/tab";
|
|
|
|
import modal from "@/plugins/modal";
|
|
|
|
import modal from "@/plugins/modal";
|
|
|
|
import auth from "@/plugins/auth";
|
|
|
|
import auth from "@/plugins/auth";
|
|
|
|
@ -148,16 +147,9 @@ import { getCurrentDate, timestampToTime } from "@/utils/dateUtil";
|
|
|
|
import { processTypes } from "@/api/system/dict/data";
|
|
|
|
import { processTypes } from "@/api/system/dict/data";
|
|
|
|
import { getOtherPersonalUser } from "@/api/mes/organization";
|
|
|
|
import { getOtherPersonalUser } from "@/api/mes/organization";
|
|
|
|
import WorkReport from "@/pages/workReport.vue";
|
|
|
|
import WorkReport from "@/pages/workReport.vue";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
components: { WorkReport },
|
|
|
|
components: { WorkReport },
|
|
|
|
computed: {
|
|
|
|
|
|
|
|
Delete() { return Delete },
|
|
|
|
|
|
|
|
Promotion() { return Promotion },
|
|
|
|
|
|
|
|
Close() { return Close },
|
|
|
|
|
|
|
|
Edit() { return Edit },
|
|
|
|
|
|
|
|
Check() { return Check },
|
|
|
|
|
|
|
|
View() { return View }
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
currentPaneName: '',
|
|
|
|
currentPaneName: '',
|
|
|
|
@ -369,4 +361,14 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.u-button {
|
|
|
|
|
|
|
|
width: 50rpx;
|
|
|
|
|
|
|
|
height: 50rpx;
|
|
|
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
|
|
margin-right: 10rpx;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
:deep(.u-icon__icon) {
|
|
|
|
|
|
|
|
font-size: 30rpx !important;
|
|
|
|
|
|
|
|
margin: 0 !important;
|
|
|
|
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
|