diff --git a/src/assets/love.jpg b/src/assets/love.jpg new file mode 100644 index 00000000..661311a8 Binary files /dev/null and b/src/assets/love.jpg differ diff --git a/src/assets/todoRight.png b/src/assets/todoRight.png new file mode 100644 index 00000000..a2b8d6d8 Binary files /dev/null and b/src/assets/todoRight.png differ diff --git a/src/router/index.js b/src/router/index.js index c0f88934..cc7ddd25 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -182,7 +182,23 @@ const routes = [ meta: { title:'新人培训' } - } + }, + { + path: '/maintenanceList', + name: 'vehicleMaintenanceList', + component:()=>import('@/views/vehicle-maintenance/vehicle-maintenance-list.vue'), + meta: { + title:'车辆维保' + } + }, + { + path: '/maintenanceApplication', + name: 'maintenanceApplication', + component:()=>import('@/views/vehicle-maintenance/maintenance-application.vue'), + meta: { + title:'维保申请' + } + }, ] const router = new VueRouter({ diff --git a/src/styles/approval.scss b/src/styles/approval.scss new file mode 100644 index 00000000..edd9863e --- /dev/null +++ b/src/styles/approval.scss @@ -0,0 +1,118 @@ +@import "@/styles/mixin.scss"; +.refresh{ + min-height: 100%; + background-color: #F4F5F7; +} +.wrap{ + @include wh(100%,100%); + box-sizing: border-box; +} +.navBar{ + margin-bottom: 46px; +} +.tab_wrap { + @include fontWeightSize(500, 14px); + @include flexColAround(); + padding: 2px 0 10px 0; + background: #2C395F; + div { + padding-top: 8px; + color: #FFFFFF; + } + .alpha{ + opacity: 0.5; + } + .numTip{ + display: inline-block; + @include wh(15px,15px); + @include bgcolorOpa(#F95B45,0.9); + border-radius: 4px; + text-align: center; + line-height: 15px; + margin-left: 5px; + opacity: 1; /* 保持透明度为1 */ + } + .active { + position: relative; + opacity: 1; + } + .active:after { + content: ''; + display: block; + @include wh(18px,2px); + opacity: .8; + background: #FFFFFF; + position: absolute; + border-radius: 2px; + margin-top: 3px; + left: 50%; + opacity: 1; + transform: translateX(-50%); + } +} +::v-deep .van-pull-refresh{ + height: calc(100% - 86px) ; +} +.listWrap{ + width: 100%; + height: 100%; + overflow-y: auto; + .listItem{ + width: 100%; + box-sizing: border-box; + padding: 14px 25px 13px 29px; + background-color: #FFFFFF; + margin-bottom: 10px; + .line1{ + @include flexColBet(); + .viewBtn{ + @include wh(48px,18px); + text-align: center; + line-height: 18px; + background: #354D93; + border-radius: 3px; + color: #FFFFFF; + } + } + + } +} +.bgEmptyImg{ + @include flexTwoCenter; + height: 90% ; + background-color: #FAFAFA; + img{ + width: 100%; + } +} +.greColor{ + color:#38AD00 ; + font-weight: 500; +} +.redColor{ + color:#FF5D2E ; + font-weight: 500; +} +.commonImg{ + @include widHeiMar(13px,13px,4px); +} +.rightArrImg{ + @include wh(6px,9px); + margin-left: 6px; +} +.yelColor{ + color: #E69B0B; + font-weight: 600; +} +.greColor{ + color: #56B628; + font-weight: 600; +} +.oraColor{ + color: #FF5D2E; + font-weight: 600; +} +.garyColor{ + color: #9C9C9C; + font-weight: 600; +} \ No newline at end of file diff --git a/src/styles/mixin.scss b/src/styles/mixin.scss index 7961da32..0e8c2954 100644 --- a/src/styles/mixin.scss +++ b/src/styles/mixin.scss @@ -75,4 +75,12 @@ box-sizing: border-box; padding: $tb $lr; border-radius: $rad; +} +@mixin sizing4Padding($t,$r,$b,$l){ + box-sizing: border-box; + padding: $t $r $b $l; +} +@mixin sizing4Radius($t,$r,$b,$l,$radius){ + @include sizing4Padding($t,$r,$b,$l); + border-radius: $radius; } \ No newline at end of file diff --git a/src/utils/approval.js b/src/utils/approval.js new file mode 100644 index 00000000..055b31e0 --- /dev/null +++ b/src/utils/approval.js @@ -0,0 +1,42 @@ + +const getStatus=(i)=>{ + switch (i){ + case 0://待提交 + case 1://待审核 + return require('@/assets/waitSubmit.png') + case 2://审核通过 + case 7://已打款 + return require('@/assets/dakuan.png') + case 3://审核不通过 + return require('@/assets/unpass.png') + case 4://报销失败 + return require('@/assets/unSubmit.png') + case 6://代打款 + return require('@/assets/waitDakuan.png') + default: + return require('@/assets/waitSubmit.png') + } +} +const getStatusColor=(i)=>{ + switch (i){ + case 0://待提交 + case 1://待审核 + return 'yelColor' + case 2://审核通过 + case 6://代打款 + case 7://已打款 + return 'greColor' + case 3://审核不通过 + return 'oraColor' + case 4://报销失败 + return 'garyColor' + default: + return 'yelColor' + } +} + +module.exports = { + getStatus, + getStatusColor +} + diff --git a/src/utils/common.js b/src/utils/common.js index 1e2d12ef..383dc57f 100644 --- a/src/utils/common.js +++ b/src/utils/common.js @@ -49,4 +49,4 @@ module.exports = { leftCopy, timeFormat, formatDate1 -} +} \ No newline at end of file diff --git a/src/views/caseList/caseAuditList.vue b/src/views/caseList/caseAuditList.vue index f1bdcedb..276ede42 100644 --- a/src/views/caseList/caseAuditList.vue +++ b/src/views/caseList/caseAuditList.vue @@ -198,7 +198,22 @@ export default { diff --git a/src/views/index/toDoList.vue b/src/views/index/toDoList.vue index 402ffe2f..45384cbd 100644 --- a/src/views/index/toDoList.vue +++ b/src/views/index/toDoList.vue @@ -1,8 +1,25 @@ + + \ No newline at end of file diff --git a/src/views/vehicle-maintenance/vehicle-maintenance-list.vue b/src/views/vehicle-maintenance/vehicle-maintenance-list.vue new file mode 100644 index 00000000..f18208df --- /dev/null +++ b/src/views/vehicle-maintenance/vehicle-maintenance-list.vue @@ -0,0 +1,141 @@ + + + + + \ No newline at end of file