|
@@ -1,9 +1,9 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="container">
|
|
<view class="container">
|
|
|
- <view class="top_bg"></view>
|
|
|
|
|
|
|
+ <view class="top_bg" @click="permission = !permission"></view>
|
|
|
|
|
|
|
|
<!-- 状态统计区域 -->
|
|
<!-- 状态统计区域 -->
|
|
|
- <view class="top_types">
|
|
|
|
|
|
|
+ <view class="top_types" v-if="!permission">
|
|
|
<view class="types_box">
|
|
<view class="types_box">
|
|
|
<view class="box_num">100</view>
|
|
<view class="box_num">100</view>
|
|
|
<view class="box_info">待接单</view>
|
|
<view class="box_info">待接单</view>
|
|
@@ -23,8 +23,41 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
+ <view class="top_types2" v-else>
|
|
|
|
|
+ <view class="top">
|
|
|
|
|
+ <uni-segmented-control :current="current" :values="items" @clickItem="onClickItem" styleType="text" activeColor="#6FB6B8"></uni-segmented-control>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="bottom">
|
|
|
|
|
+ <view class="bottom_box">
|
|
|
|
|
+ <view class="box_num">100</view>
|
|
|
|
|
+ <view class="box_info">工单数</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
|
|
+ <view class="bottom_box">
|
|
|
|
|
+ <view class="box_num">10</view>
|
|
|
|
|
+ <view class="box_info">处理中</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="bottom_box">
|
|
|
|
|
+ <view class="box_num">50</view>
|
|
|
|
|
+ <view class="box_info">已完成</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="bottom_box">
|
|
|
|
|
+ <view class="box_num">60</view>
|
|
|
|
|
+ <view class="box_info">已超时</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="bottom_box">
|
|
|
|
|
+ <view class="box_num">60</view>
|
|
|
|
|
+ <view class="box_info">已完成</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="bottom_box">
|
|
|
|
|
+ <view class="box_num">60</view>
|
|
|
|
|
+ <view class="box_info">已关单</view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
<!-- 订单列表区域 -->
|
|
<!-- 订单列表区域 -->
|
|
|
- <view class="body">
|
|
|
|
|
|
|
+ <view class="body" :class="{ body2: permission }">
|
|
|
<!-- 每一个订单区域 -->
|
|
<!-- 每一个订单区域 -->
|
|
|
<view class="body_item" v-for="item in dataList" :key="item.id">
|
|
<view class="body_item" v-for="item in dataList" :key="item.id">
|
|
|
<!-- 工单编号 -->
|
|
<!-- 工单编号 -->
|
|
@@ -43,6 +76,9 @@
|
|
|
<view class="time_type color_type" v-if="item.type === 2">维修中</view>
|
|
<view class="time_type color_type" v-if="item.type === 2">维修中</view>
|
|
|
|
|
|
|
|
<view class="time_type color_type2" v-if="item.type === 3">待审核</view>
|
|
<view class="time_type color_type2" v-if="item.type === 3">待审核</view>
|
|
|
|
|
+ <view class="time_type color_type3" v-if="item.type === 4">已完成</view>
|
|
|
|
|
+ <view class="time_type" v-if="item.type === 5">待确认</view>
|
|
|
|
|
+ <view class="time_type color_type4" v-if="item.type === 6">已关单</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<!-- 报修姓名 -->
|
|
<!-- 报修姓名 -->
|
|
@@ -91,7 +127,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<!-- 维修师傅 -->
|
|
<!-- 维修师傅 -->
|
|
|
- <view class="item_time" v-if="item.type === 2 || item.type === 3">
|
|
|
|
|
|
|
+ <view class="item_time" v-if="item.type === 2 || item.type === 3 || item.type === 4 || item.type === 6">
|
|
|
<view class="time_msg">
|
|
<view class="time_msg">
|
|
|
维修师傅:
|
|
维修师傅:
|
|
|
<text>{{ item.workerName }}</text>
|
|
<text>{{ item.workerName }}</text>
|
|
@@ -99,7 +135,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<!-- 师傅电话 -->
|
|
<!-- 师傅电话 -->
|
|
|
- <view class="item_box" v-if="item.type === 2 || item.type === 3">
|
|
|
|
|
|
|
+ <view class="item_box" v-if="item.type === 2 || item.type === 3 || item.type === 4 || item.type === 6">
|
|
|
<view class="box_key">师傅电话:</view>
|
|
<view class="box_key">师傅电话:</view>
|
|
|
<view class="box_value phone">
|
|
<view class="box_value phone">
|
|
|
{{ item.workerPhone }}
|
|
{{ item.workerPhone }}
|
|
@@ -108,7 +144,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<!-- 维修费用 -->
|
|
<!-- 维修费用 -->
|
|
|
- <view class="item_box" v-if="item.type === 3">
|
|
|
|
|
|
|
+ <view class="item_box" v-if="item.type === 3 || item.type === 4">
|
|
|
<view class="box_key">维修费用:</view>
|
|
<view class="box_key">维修费用:</view>
|
|
|
<view class="box_value2 phone" @click="checkFeeDetail">
|
|
<view class="box_value2 phone" @click="checkFeeDetail">
|
|
|
{{ item.money }}元
|
|
{{ item.money }}元
|
|
@@ -117,15 +153,20 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<!-- 按钮区域 -->
|
|
<!-- 按钮区域 -->
|
|
|
- <view class="item_btn" v-if="item.type !== 3">
|
|
|
|
|
- <img v-if="item.type !== 3" src="../../static/images/repairsImg/close.png" @click="handleClose" />
|
|
|
|
|
- <img class="img" src="../../static/images/repairsImg/help.png" v-if="item.type === 1" />
|
|
|
|
|
|
|
+ <view class="item_btn">
|
|
|
|
|
+ <img v-if="item.type < 3" src="../../static/images/repairsImg/close.png" @click="handleClose" />
|
|
|
|
|
+ <img class="img" src="../../static/images/repairsImg/help.png" v-if="item.type === 1 && !permission" @click="handleHelp" />
|
|
|
|
|
+ <view class="btn_box type" v-if="item.type < 3 && permission">延时</view>
|
|
|
<view class="btn_box type" v-if="item.type === 1">接单</view>
|
|
<view class="btn_box type" v-if="item.type === 1">接单</view>
|
|
|
- <view class="btn_box type2" v-if="item.type === 1">转单</view>
|
|
|
|
|
|
|
+ <view class="btn_box type2" v-if="item.type === 1 && !permission" @click="handleTransferOrder">转单</view>
|
|
|
|
|
+ <view class="btn_box type2" v-if="item.type === 1 && permission">派单</view>
|
|
|
<view class="btn_box type" v-if="item.type === 2" @click="handleOffer">报价</view>
|
|
<view class="btn_box type" v-if="item.type === 2" @click="handleOffer">报价</view>
|
|
|
<view class="btn_box type2" v-if="item.type === 2" @click="handleFinish">维修完成</view>
|
|
<view class="btn_box type2" v-if="item.type === 2" @click="handleFinish">维修完成</view>
|
|
|
|
|
+
|
|
|
|
|
+ <view class="btn_box type" v-if="item.type === 3 && permission">审核</view>
|
|
|
|
|
+ <view class="btn_box type" v-if="item.type === 5">改价</view>
|
|
|
|
|
+ <view class="btn_box type2" v-if="item.type === 5">留言</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="item_btn2" v-else></view>
|
|
|
|
|
|
|
|
|
|
<!-- 关闭按钮弹窗 -->
|
|
<!-- 关闭按钮弹窗 -->
|
|
|
<uni-popup ref="popup_close" :is-mask-click="false">
|
|
<uni-popup ref="popup_close" :is-mask-click="false">
|
|
@@ -148,9 +189,13 @@
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ permission: true,
|
|
|
|
|
+ items: ['团队工单', '个人工单'],
|
|
|
|
|
+ current: 0,
|
|
|
activeIndex: 1,
|
|
activeIndex: 1,
|
|
|
// type为 1 是 待接单,type为 2 是维修中,
|
|
// type为 1 是 待接单,type为 2 是维修中,
|
|
|
- // type为 3 是 待审核
|
|
|
|
|
|
|
+ // type为 3 是 待审核,type为 4 是已完成,
|
|
|
|
|
+ // type为 5 是 待确认,type为 6 是已关单,
|
|
|
dataList: [
|
|
dataList: [
|
|
|
{
|
|
{
|
|
|
id: 1,
|
|
id: 1,
|
|
@@ -198,6 +243,57 @@ export default {
|
|
|
workerName: '老张',
|
|
workerName: '老张',
|
|
|
workerPhone: '13659585689',
|
|
workerPhone: '13659585689',
|
|
|
money: 50
|
|
money: 50
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ id: 4,
|
|
|
|
|
+ order: '956262219626262',
|
|
|
|
|
+ overtime: false,
|
|
|
|
|
+ time: '2023.07.05 09:25:26',
|
|
|
|
|
+ type: 4,
|
|
|
|
|
+ name: '李四',
|
|
|
|
|
+ phone: '13659585689',
|
|
|
|
|
+ area: '行政楼',
|
|
|
|
|
+ address: '3楼309',
|
|
|
|
|
+ goods: '电脑',
|
|
|
|
|
+ description: '电脑坏了',
|
|
|
|
|
+ img: '',
|
|
|
|
|
+ workerName: '老张',
|
|
|
|
|
+ workerPhone: '13659585689',
|
|
|
|
|
+ money: 50
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ id: 5,
|
|
|
|
|
+ order: '956262219626262',
|
|
|
|
|
+ overtime: false,
|
|
|
|
|
+ time: '2023.07.05 09:25:26',
|
|
|
|
|
+ type: 5,
|
|
|
|
|
+ name: '李四',
|
|
|
|
|
+ phone: '13659585689',
|
|
|
|
|
+ area: '行政楼',
|
|
|
|
|
+ address: '3楼309',
|
|
|
|
|
+ goods: '电脑',
|
|
|
|
|
+ description: '电脑坏了',
|
|
|
|
|
+ img: '',
|
|
|
|
|
+ workerName: '老张',
|
|
|
|
|
+ workerPhone: '13659585689',
|
|
|
|
|
+ money: 50
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ id: 6,
|
|
|
|
|
+ order: '956262219626262',
|
|
|
|
|
+ overtime: false,
|
|
|
|
|
+ time: '2023.07.05 09:25:26',
|
|
|
|
|
+ type: 6,
|
|
|
|
|
+ name: '李四',
|
|
|
|
|
+ phone: '13659585689',
|
|
|
|
|
+ area: '行政楼',
|
|
|
|
|
+ address: '3楼309',
|
|
|
|
|
+ goods: '电脑',
|
|
|
|
|
+ description: '电脑坏了',
|
|
|
|
|
+ img: '',
|
|
|
|
|
+ workerName: '老张',
|
|
|
|
|
+ workerPhone: '13659585689',
|
|
|
|
|
+ money: 50
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
}
|
|
}
|
|
@@ -218,6 +314,22 @@ export default {
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
url: '/pagesRepairs/repairRecord/repairRecord'
|
|
url: '/pagesRepairs/repairRecord/repairRecord'
|
|
|
})
|
|
})
|
|
|
|
|
+ },
|
|
|
|
|
+ handleTransferOrder() {
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url: '/pagesRepairs/transferOrder/transferOrder'
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ handleHelp() {
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url: '/pagesRepairs/help/help'
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ onClickItem(e) {
|
|
|
|
|
+ if (this.current != e.currentIndex) {
|
|
|
|
|
+ this.current = e.currentIndex
|
|
|
|
|
+ console.log(this.current)
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -261,6 +373,46 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ .top_types2 {
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+ margin: auto;
|
|
|
|
|
+ margin-top: -100rpx;
|
|
|
|
|
+ padding: 0 30rpx;
|
|
|
|
|
+ width: 690rpx;
|
|
|
|
|
+ height: 402rpx;
|
|
|
|
|
+ border-radius: 10rpx;
|
|
|
|
|
+ box-shadow: 0px 0px 4rpx rgba(0, 0, 0, 0.25);
|
|
|
|
|
+ background-color: #fff;
|
|
|
|
|
+
|
|
|
|
|
+ .top {
|
|
|
|
|
+ height: 112rpx;
|
|
|
|
|
+ border-bottom: 1rpx solid #e6e6e6;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .bottom {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-wrap: wrap;
|
|
|
|
|
+ justify-content: space-evenly;
|
|
|
|
|
+ height: 290rpx;
|
|
|
|
|
+
|
|
|
|
|
+ .bottom_box {
|
|
|
|
|
+ width: 25%;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-direction: column;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ .box_num {
|
|
|
|
|
+ font-size: 46rpx;
|
|
|
|
|
+ color: #ff5733;
|
|
|
|
|
+ }
|
|
|
|
|
+ .box_info {
|
|
|
|
|
+ margin-top: 10rpx;
|
|
|
|
|
+ font-size: 34rpx;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
.body {
|
|
.body {
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
padding: 0 30rpx 30rpx 30rpx;
|
|
padding: 0 30rpx 30rpx 30rpx;
|
|
@@ -328,6 +480,12 @@ export default {
|
|
|
.color_type2 {
|
|
.color_type2 {
|
|
|
color: #d43030;
|
|
color: #d43030;
|
|
|
}
|
|
}
|
|
|
|
|
+ .color_type3 {
|
|
|
|
|
+ color: #6fb6b8;
|
|
|
|
|
+ }
|
|
|
|
|
+ .color_type4 {
|
|
|
|
|
+ color: #a6a6a6;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.item_box {
|
|
.item_box {
|
|
@@ -391,10 +549,12 @@ export default {
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
justify-content: flex-end;
|
|
justify-content: flex-end;
|
|
|
padding: 0 30rpx;
|
|
padding: 0 30rpx;
|
|
|
- height: 153rpx;
|
|
|
|
|
|
|
+ line-height: 153rpx;
|
|
|
|
|
|
|
|
img {
|
|
img {
|
|
|
margin-right: auto;
|
|
margin-right: auto;
|
|
|
|
|
+ margin-top: 45rpx;
|
|
|
|
|
+ margin-bottom: 40rpx;
|
|
|
width: 56rpx;
|
|
width: 56rpx;
|
|
|
height: 56rpx;
|
|
height: 56rpx;
|
|
|
}
|
|
}
|
|
@@ -402,6 +562,8 @@ export default {
|
|
|
.img {
|
|
.img {
|
|
|
margin-right: auto;
|
|
margin-right: auto;
|
|
|
margin-left: -55rpx;
|
|
margin-left: -55rpx;
|
|
|
|
|
+ margin-top: 45rpx;
|
|
|
|
|
+ margin-bottom: 40rpx;
|
|
|
width: 62rpx;
|
|
width: 62rpx;
|
|
|
height: 62rpx;
|
|
height: 62rpx;
|
|
|
}
|
|
}
|
|
@@ -411,6 +573,8 @@ export default {
|
|
|
justify-content: center;
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
margin-left: 16rpx;
|
|
margin-left: 16rpx;
|
|
|
|
|
+ margin-top: 45rpx;
|
|
|
|
|
+ margin-bottom: 40rpx;
|
|
|
width: 174rpx;
|
|
width: 174rpx;
|
|
|
height: 68rpx;
|
|
height: 68rpx;
|
|
|
font-size: 28rpx;
|
|
font-size: 28rpx;
|
|
@@ -429,10 +593,6 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- .item_btn2 {
|
|
|
|
|
- height: 50rpx;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
.popup_close {
|
|
.popup_close {
|
|
|
width: 690rpx;
|
|
width: 690rpx;
|
|
|
border-radius: 19rpx;
|
|
border-radius: 19rpx;
|
|
@@ -485,5 +645,9 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ .body2 {
|
|
|
|
|
+ height: calc(100vh - 555rpx);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|