|
@@ -6,7 +6,62 @@
|
|
|
</div>
|
|
|
<div slot="extra">
|
|
|
</div>
|
|
|
-
|
|
|
+ <a-row type="flex" :gutter="20">
|
|
|
+ <a-col :span="6">
|
|
|
+ <div class="target">
|
|
|
+ <div class="target-title" @click="$router.push('/preparation/verify')">
|
|
|
+ 待审核 <a-icon type="caret-left" />
|
|
|
+ </div>
|
|
|
+ <div class="target-main">
|
|
|
+ <a-icon class="icon" type="project" />
|
|
|
+ <div><div><span>{{ preparationNum.waitVerifyNum }}</span> 个</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <img src="@/assets/red2.png" alt="" width="100%" height="17px">
|
|
|
+ </div>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="6">
|
|
|
+ <div class="target">
|
|
|
+ <div class="target-title" @click="$router.push('/preparation/mine?status='+ JSON.stringify([3,6,9,12,18]))">
|
|
|
+ 被拒工单 <a-icon type="caret-left" />
|
|
|
+ </div>
|
|
|
+ <div class="target-main">
|
|
|
+ <a-icon class="icon" type="stop" style="background:#029BFF" />
|
|
|
+ <div><div><span>{{ preparationNum.refusedNum }}</span> 个</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <img src="@/assets/blue.png" alt="" width="100%" height="17px">
|
|
|
+ </div>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="6">
|
|
|
+ <div class="target">
|
|
|
+ <div class="target-title" @click="$router.push('/preparation/mine?status='+JSON.stringify([4,7,10,13,17]))">
|
|
|
+ 回退工单 <a-icon type="caret-left" />
|
|
|
+ </div>
|
|
|
+ <div class="target-main">
|
|
|
+ <a-icon class="icon" type="apartment" style="background:#FFB22B" />
|
|
|
+ <div><div><span>{{ preparationNum.backNum }}</span> 个</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <img src="@/assets/yellow.png" alt="" width="100%" height="17px">
|
|
|
+ </div>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="6">
|
|
|
+ <div class="target">
|
|
|
+ <div class="target-title" @click="$router.push('/preparation/mine?status='+JSON.stringify([14]))">
|
|
|
+ 执行工单 <a-icon type="caret-left" />
|
|
|
+ </div>
|
|
|
+ <div class="target-main">
|
|
|
+ <a-icon class="icon" type="clock-circle" style="background:#7460EE" />
|
|
|
+ <div>
|
|
|
+ <div><span>{{ preparationNum.workingNum }}</span> 个</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <img src="@/assets/violet.png" alt="" width="100%" height="17px">
|
|
|
+ </div>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ <br>
|
|
|
<a-card :bordered="false" v-show="dataFlag">
|
|
|
<div v-show="visible">
|
|
|
<div class="table-page-search-wrapper">
|
|
@@ -105,7 +160,7 @@ import SuplierAuditForm from '@/views/purchase/supplier/modules/AuditForm'
|
|
|
import DetailAuditScrap from '@/views/sb/scrap/modules/DetailAuditScrap'
|
|
|
import DetailScrap from '@/views/sb/scrap/modules/Detail'
|
|
|
import DetailPreparationModal from '@/views/preparation/preparation/modules/Detail'
|
|
|
-import { fetchPreparation } from '@/api/preparation/preparation'
|
|
|
+import { fetchPreparation, getPreparationNum } from '@/api/preparation/preparation'
|
|
|
import cookie from 'vue-cookie'
|
|
|
|
|
|
export default {
|
|
@@ -206,6 +261,7 @@ export default {
|
|
|
...parameter,
|
|
|
...this.queryParam
|
|
|
}
|
|
|
+
|
|
|
return getWorkplaceBacklogUserPage(parameter)
|
|
|
.then(res => {
|
|
|
return res.data
|
|
@@ -230,7 +286,8 @@ export default {
|
|
|
sbOilTaskShow: false,
|
|
|
sbOilAuditShow: false,
|
|
|
sbAllocateTaskAuditShow: false,
|
|
|
- loading: true
|
|
|
+ loading: true,
|
|
|
+ preparationNum: {}
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -245,6 +302,7 @@ export default {
|
|
|
created () {
|
|
|
this.user = this.userInfo
|
|
|
this.avatar = this.BaseTool.Constant.FILE_URL + this.userInfo.avatar
|
|
|
+ this.getPrep()
|
|
|
this.getDict()
|
|
|
this.tableOption()
|
|
|
this.toCalendar()
|
|
@@ -256,6 +314,12 @@ export default {
|
|
|
// this.initRadar()
|
|
|
},
|
|
|
methods: {
|
|
|
+ getPrep () {
|
|
|
+ getPreparationNum().then(res => {
|
|
|
+ console.log(res, 12321312)
|
|
|
+ this.preparationNum = res.data
|
|
|
+ })
|
|
|
+ },
|
|
|
tableOption () {
|
|
|
this.options = {
|
|
|
alert: false,
|
|
@@ -450,22 +514,24 @@ export default {
|
|
|
this.$refs.table.refresh()
|
|
|
},
|
|
|
toCalendar () {
|
|
|
- let repairTips = cookie.get('repairTips')
|
|
|
+ const repairTips = cookie.get('repairTips')
|
|
|
if (repairTips === '1') {
|
|
|
getCalendarNotice().then(res => {
|
|
|
const router = this.$router
|
|
|
cookie.set('repairTips', 2, 7)
|
|
|
if (res.data !== null && res.data.length > 0) {
|
|
|
- let infoStr = ''
|
|
|
- res.data.forEach(res => {
|
|
|
- infoStr += res.calendarDate
|
|
|
- infoStr += ' : '
|
|
|
- infoStr += res.num
|
|
|
- infoStr += '\t'
|
|
|
- })
|
|
|
this.$confirm({
|
|
|
title: '提示',
|
|
|
- content: '近一周工单任务如下:<br>' + infoStr,
|
|
|
+ content: () => {
|
|
|
+ return (<div>
|
|
|
+ 近一周工单任务如下: <br />
|
|
|
+ {
|
|
|
+ res.data.map(item => {
|
|
|
+ return <div>{item.calendarDate + ' : ' + item.num }</div>
|
|
|
+ })
|
|
|
+ }
|
|
|
+ </div>)
|
|
|
+ },
|
|
|
okText: '去查看',
|
|
|
icon: 'info-circle',
|
|
|
onOk () {
|
|
@@ -521,5 +587,55 @@ export default {
|
|
|
display: none;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+.target{
|
|
|
+ height: 150px;
|
|
|
+ background: #FFFFFF;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ position: relative;
|
|
|
+ box-shadow: 0px 2px 6px 0px rgba(15,6,14,0.1);
|
|
|
+ .target-title{
|
|
|
+ text-align: right;
|
|
|
+ position: absolute;
|
|
|
+ font-weight: 700;
|
|
|
+ top: 15px;
|
|
|
+ right:0;
|
|
|
+ font-size: 20px;
|
|
|
+ &:hover{
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ i{
|
|
|
+ font-size: 20px;
|
|
|
+ color:#FF0000;
|
|
|
+ transform: scale(2);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ &>img{
|
|
|
+ position: absolute;
|
|
|
+ bottom: 0;
|
|
|
+ }
|
|
|
+ .target-main{
|
|
|
+ padding:0 20px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ div{
|
|
|
+ padding: 0 20px;
|
|
|
+ color: #333333;
|
|
|
+ font-size:16px;
|
|
|
+ span{
|
|
|
+ font-size: 30px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .icon{
|
|
|
+ color:#FFFFFF;
|
|
|
+ background:#FF0000;
|
|
|
+ width: 80px;
|
|
|
+ height: 80px;
|
|
|
+ line-height: 88px;
|
|
|
+ text-align: center;
|
|
|
+ border-radius: 50%;
|
|
|
+ font-size: 40px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|