Selaa lähdekoodia

报修系统功能优化

xiaoxin 1 vuosi sitten
vanhempi
commit
612c646d55

+ 6 - 6
pagesRepairs/home/home.vue

@@ -21,10 +21,10 @@
 					<view class="box_num">{{ finishCount }}</view>
 					<view class="box_info">已完成</view>
 				</view>
-				<view class="bottom_box">
+				<!-- <view class="bottom_box">
 					<view class="box_num">{{ timeoutCount }}</view>
 					<view class="box_info">已超时</view>
-				</view>
+				</view> -->
 				<view class="bottom_box">
 					<view class="box_num">{{ offlineCount }}</view>
 					<view class="box_info">转线下</view>
@@ -51,10 +51,10 @@
 				<view class="box_num">{{ finishCount }}</view>
 				<view class="box_info">已完成</view>
 			</view>
-			<view class="types_box">
+			<!-- <view class="types_box">
 				<view class="box_num">{{ timeoutCount }}</view>
 				<view class="box_info">已超时</view>
-			</view>
+			</view> -->
 		</view>
 
 		<!-- 排班区域 -->
@@ -77,7 +77,7 @@
 					<!-- 姓名区域 -->
 					<uni-td align="center">{{ item.userName }}</uni-td>
 					<!-- 工种区域 -->
-					<uni-td align="center">{{ item.workTypeName }}</uni-td>
+					<uni-td align="center">{{ item.workTypeName ? item.workTypeName : '未知' }}</uni-td>
 					<!-- 状态区域 -->
 					<uni-td align="center">
 						<picker :disabled="!btns.includes('表格编辑')" @change="bindPickerChange($event, item)" :range="typeArray">
@@ -680,4 +680,4 @@ export default {
 		}
 	}
 }
-</style>
+</style>

+ 1 - 1
pagesRepairs/index/index.vue

@@ -84,7 +84,7 @@ export default {
 					wxcode
 				}
 			})
-			console.log(res)
+			// console.log(res)
 			if (res.code === '200') {
 				uni.setStorageSync('repairsUserInfo', res.data)
 				uni.setStorageSync('college', res.data.college)

+ 13 - 9
pagesRepairs/management/management.vue

@@ -17,10 +17,10 @@
 					<view class="box_num">{{ maintenanceCount }}</view>
 					<view class="box_info">维修中</view>
 				</view>
-				<view class="bottom_box" :class="{ active: state === 3 }" @click="handleFilter(3)">
+				<!-- <view class="bottom_box" :class="{ active: state === 3 }" @click="handleFilter(3)">
 					<view class="box_num">{{ timeoutCount }}</view>
 					<view class="box_info">已超时</view>
-				</view>
+				</view> -->
 				<view class="bottom_box" :class="{ active: state === 4 }" @click="handleFilter(4)">
 					<view class="box_num">{{ examineCount }}</view>
 					<view class="box_info">待审核</view>
@@ -53,10 +53,10 @@
 				<view class="box_num">{{ maintenanceCount }}</view>
 				<view class="box_info">维修中</view>
 			</view>
-			<view class="types_box" :class="{ active: state === 3 }" @click="handleFilter(3)">
+			<!-- <view class="types_box" :class="{ active: state === 3 }" @click="handleFilter(3)">
 				<view class="box_num">{{ timeoutCount }}</view>
 				<view class="box_info">已超时</view>
-			</view>
+			</view> -->
 			<view class="types_box" :class="{ active: state === 4 }" @click="handleFilter(4)">
 				<view class="box_num">{{ examineCount }}</view>
 				<view class="box_info">待审核</view>
@@ -106,7 +106,7 @@
 					<view class="time_type color_type" v-if="item.state === '转线下待审核'">转线下待审核</view>
 					<view class="time_type color_type2" v-if="item.state === '待审核'">待审核</view>
 					<view class="time_type color_type3" v-if="item.state === '已完成'">已完成</view>
-					<view class="time_type" v-if="item.state === '待确认'">待确认</view>
+					<view class="time_type" v-if="item.state === '待支付'">待支付</view>
 					<view class="time_type color_type4" v-if="item.state === '已关单'">已关单</view>
 					<view class="time_type color_type4" v-if="item.state === '已取消'">已取消</view>
 					<view class="time_type color_type" v-if="item.state === '转线下'">转线下</view>
@@ -123,7 +123,7 @@
 				<!-- 部门 -->
 				<view class="item_box" v-if="item.userClass">
 					<view class="box_key">部门:</view>
-					<view class="box_value">{{ item.userClass }}</view>
+					<view class="box_value">{{ item.userClass ? item.userClass : '未知' }}</view>
 				</view>
 
 				<!-- 报修电话 -->
@@ -205,7 +205,11 @@
 				<!-- 按钮区域 -->
 				<view class="item_btn">
 					<!-- 关闭按钮 -->
-					<img v-if="item.state === '待接单'" src="../../static/images/repairsImg/close.png" @click.stop="handleClose(item)" />
+					<img
+						v-if="item.state === '待接单' || (item.state === '维修中' && btns.includes('表格编辑')) || (item.state === '待处理' && btns.includes('表格编辑'))"
+						src="../../static/images/repairsImg/close.png"
+						@click.stop="handleClose(item)"
+					/>
 					<!-- 协作按钮 -->
 					<img
 						class="img"
@@ -214,13 +218,13 @@
 						@click.stop="handleHelp(item)"
 					/>
 					<!-- 延时按钮 -->
-					<view
+					<!-- <view
 						class="btn_box type"
 						v-if="(item.state === '待接单' || item.state === '维修中') && btns.includes('延时') && current === 0"
 						@click.stop="handleDelay(item)"
 					>
 						延时
-					</view>
+					</view> -->
 					<!-- 接单按钮 -->
 					<view
 						class="btn_box type"

+ 6 - 6
pagesRepairs/myRepairs/myRepairs.vue

@@ -29,7 +29,7 @@
 					<view class="time_type color_type" v-if="item.state === '协作待审核'">协作待审核</view>
 					<view class="time_type color_type" v-if="item.state === '转线下'">转线下</view>
 					<view class="time_type color_type" v-if="item.state === '转线下待审核'">转线下待审核</view>
-					<view class="time_type" v-if="item.state === '待确认'">待确认</view>
+					<view class="time_type" v-if="item.state === '待支付'">待支付</view>
 					<view class="time_type color_type2" v-if="item.state === '已完成'">已完成</view>
 					<view class="time_type" v-if="item.state === '已取消'">已取消</view>
 					<view class="time_type color_type3" v-if="item.state === '已关单'">已关单</view>
@@ -132,9 +132,9 @@
 					>
 						催单
 					</view>
-					<view class="btn_box type" v-if="item.state === '待确认'" @click.stop="handleBackOffice(item)">转后勤</view>
-					<view class="btn_box type" v-if="item.state === '待确认'" @click.stop="handlePay(item)">支付</view>
-					<view class="btn_box type2" v-if="item.state === '待接单' || item.state === '待确认'" @click.stop="handleRepeal(item.id)">撤销</view>
+					<view class="btn_box type" v-if="item.state === '待支付'" @click.stop="handleBackOffice(item)">转后勤</view>
+					<view class="btn_box type" v-if="item.state === '待支付'" @click.stop="handlePay(item)">支付</view>
+					<view class="btn_box type2" v-if="item.state === '待接单' || item.state === '待支付'" @click.stop="handleRepeal(item.id)">撤销</view>
 					<view class="btn_box type" v-if="item.state === '已完成' && item.evaluate === 1" @click.stop="handleEvaluate(item)">去评价</view>
 					<view class="btn_box type3" v-if="item.state === '已完成' && item.evaluate === 0" @click.stop="">已评价</view>
 				</view>
@@ -219,7 +219,7 @@ export default {
 			// 后勤弹窗输入框绑定数据
 			logisticsValue: '',
 			// 顶部分段器数组
-			items: ['未完成(0)', '待确认(0)', '已完成(0)'],
+			items: ['未完成(0)', '待支付(0)', '已完成(0)'],
 			// 分段器数组当前索引
 			current: 0,
 			// 订单列表
@@ -256,7 +256,7 @@ export default {
 			})
 			// console.log(res)
 			if (res.code === '200') {
-				this.items = [`未完成(${res.data.incomplete})`, `待确认(${res.data.confirmed})`, `已完成(${res.data.finished})`]
+				this.items = [`未完成(${res.data.incomplete})`, `待支付(${res.data.confirmed})`, `已完成(${res.data.finished})`]
 			}
 		},
 

+ 1 - 1
pagesRepairs/pending/pending.vue

@@ -77,7 +77,7 @@
 				<!-- 按钮区域 -->
 				<view class="item_btn">
 					<img src="../../static/images/repairsImg/close.png" @click.stop="handleClose(item)" />
-					<view class="btn_box type" v-if="btns.includes('延时')" @click.stop="handleDelay(item)">延时</view>
+					<!-- <view class="btn_box type" v-if="btns.includes('延时')" @click.stop="handleDelay(item)">延时</view> -->
 					<view class="btn_box type" v-if="btns.includes('接单')" @click.stop="handleOrderReceiving(item)">接单</view>
 					<view class="btn_box type2" v-if="btns.includes('派单')" @click.stop="handleSendOrder(item)">派单</view>
 				</view>

+ 1 - 1
pagesRepairs/repairDetails/repairDetails.vue

@@ -13,7 +13,7 @@
 
 			<view class="time_type" v-if="detailInfo.state === '待接单'">待接单</view>
 			<view class="time_type color_type" v-if="detailInfo.state === '维修中'">维修中</view>
-			<view class="time_type" v-if="detailInfo.state === '待确认'">待确认</view>
+			<view class="time_type" v-if="detailInfo.state === '待支付'">待支付</view>
 			<view class="time_type color_type2" v-if="detailInfo.state === '已完成'">已完成</view>
 			<view class="time_type" v-if="detailInfo.state === '已取消'">已取消</view>
 			<view class="time_type color_type3" v-if="detailInfo.state === '已关单'">已关单</view>