瀏覽代碼

报修系统完善

xiaoxin 2 年之前
父節點
當前提交
86320ab953

+ 0 - 1
pagesRepairs/addressBook/addressBook.vue

@@ -63,7 +63,6 @@ export default {
 		}
 	},
 	mounted() {
-		console.log('通讯录页面加载')
 		const userInfo = uni.getStorageSync('repairsUserInfo')
 		this.userId = userInfo.userId
 		this.schoolId = userInfo.schoolId

+ 0 - 1
pagesRepairs/box/box.vue

@@ -110,7 +110,6 @@ export default {
 	onLoad() {
 		uni.$on('goToRepairs', this.goToRepairs)
 		uni.$on('goToMyRepairs', this.goToMyRepairs)
-		console.log('box页面加载')
 	},
 	onUnload() {
 		// 移除全局自定义事件监听器

+ 2 - 3
pagesRepairs/help/help.vue

@@ -111,7 +111,6 @@ export default {
 		})
 	},
 	onLoad(options) {
-		console.log(options)
 		if (options.type) {
 			this.type = options.type
 			this.getHelpData()
@@ -131,7 +130,7 @@ export default {
 					approverStatu: type
 				}
 			})
-			console.log(res)
+			// console.log(res)
 			if (res.code === '200') {
 				uni.showToast({
 					title: `${type === 0 ? '已拒绝该审核' : '派单成功'}`,
@@ -193,7 +192,7 @@ export default {
 								remark: this.info.remark
 							}
 						})
-						console.log(res)
+						// console.log(res)
 						if (res.code === '200') {
 							uni.showToast({
 								title: '提交协作申请成功,请等待管理员审核',

+ 2 - 2
pagesRepairs/helpPeople/helpPeople.vue

@@ -132,7 +132,7 @@ export default {
 										remark: this.info.remark
 									}
 								})
-								console.log(res)
+								// console.log(res)
 								if (res.code === '200') {
 									uni.showToast({
 										title: '派单成功',
@@ -271,4 +271,4 @@ export default {
 		background-color: #6fb6b8;
 	}
 }
-</style>
+</style>

+ 1 - 3
pagesRepairs/home/home.vue

@@ -113,7 +113,7 @@
 			<!-- 排行榜柱状图 -->
 			<view class="rank_charts">
 				<!-- 加上canvas2d属性后 模拟器上图表显示异常,真机调试没有问题,开发时不添加canvas2d属性,发布时添加canvas2d属性 -->
-				<qiun-data-charts type="bar" :opts="opts" :chartData="chartData" />
+				<qiun-data-charts canvas2d type="bar" :opts="opts" :chartData="chartData" />
 			</view>
 		</view>
 
@@ -207,12 +207,10 @@ export default {
 		}
 	},
 	mounted() {
-		console.log('主页页面加载')
 		const repairsUserInfo = uni.getStorageSync('repairsUserInfo')
 		this.btns = repairsUserInfo.btns
 		this.schoolId = repairsUserInfo.schoolId
 		this.userId = repairsUserInfo.userId
-		console.log(this.btns)
 		if (this.btns.includes('图表')) {
 			this.getChartData()
 		}

+ 2 - 4
pagesRepairs/management/management.vue

@@ -315,12 +315,10 @@ export default {
 		}
 	},
 	mounted() {
-		console.log('工单管理页面加载')
 		const repairsUserInfo = uni.getStorageSync('repairsUserInfo')
 		this.schoolId = repairsUserInfo.schoolId
 		this.userId = repairsUserInfo.userId
 		this.btns = repairsUserInfo.btns
-		console.log(this.btns)
 		if (this.btns.includes('工单管理分段器') || this.btns.includes('分段器按钮')) {
 			// 管理员身份或者后勤
 			this.getTeamCount()
@@ -505,13 +503,13 @@ export default {
 				success: async (res) => {
 					if (res.confirm) {
 						const res = await this.$myRequest_repairs({
-							url: '/api/repairRecord/receiveOwnOrders',
+							url: '/repairRecord/receiveOwnOrders',
 							data: {
 								recordId: item.id,
 								userId: this.userId
 							}
 						})
-						console.log(res)
+						// console.log(res)
 						if (res.code === '200') {
 							uni.showToast({
 								title: '接单成功',

+ 0 - 2
pagesRepairs/myRepairs/myRepairs.vue

@@ -220,7 +220,6 @@ export default {
 		}
 	},
 	mounted() {
-		console.log('我的报修页面加载')
 		this.userId = uni.getStorageSync('repairsUserInfo').userId
 		this.getRepairCount()
 		this.getRepairList()
@@ -421,7 +420,6 @@ export default {
 		},
 		// 点击支付按钮回调
 		async handlePay(item) {
-			console.log(item)
 			const res = await this.$myRequest_repairs({
 				url: '/repairPayRecord/repairPayment',
 				method: 'post',

+ 0 - 3
pagesRepairs/offer/offer.vue

@@ -87,7 +87,6 @@ export default {
 		this.worker = this.info.maintenancerName
 		this.phone = this.info.maintenancerPhone
 		if (options.type) {
-			console.log('改价')
 			this.goodList = this.info.goodsList
 			uni.setNavigationBarTitle({
 				title: '改价'
@@ -162,7 +161,6 @@ export default {
 		},
 		// 全局自定义事件
 		addConsumable(e) {
-			console.log(e)
 			// 判断是否存在相同的耗材
 			let flag = this.goodList.some((ele) => {
 				return ele.consumeName === e.data.name
@@ -177,7 +175,6 @@ export default {
 				// this.$delete(e.data, 'id')
 				this.goodList.push(e.data)
 			}
-			console.log(this.goodList)
 		},
 		// 耗材数量计数器改变回调
 		bindChange(e, index) {

+ 1 - 4
pagesRepairs/order/order.vue

@@ -67,9 +67,7 @@ export default {
 			// 先授权麦克风权限
 			uni.getSetting({
 				success: (res) => {
-					console.log(res.authSetting['scope.record'])
 					if (!res.authSetting['scope.record']) {
-						console.log(1)
 						uni.showModal({
 							title: '提示',
 							content: '需要您授权麦克风权限',
@@ -93,7 +91,6 @@ export default {
 							}
 						})
 					} else {
-						console.log(2)
 						this.longPress = '说话中...'
 						//记录长按时开始点信息,后面用于计算上划取消时手指滑动的距离。
 						this.startPoint = e.touches[0]
@@ -179,7 +176,7 @@ export default {
 		handleTouchMove(e) {
 			//touchmove时触发
 			var moveLenght = e.touches[e.touches.length - 1].clientY - this.startPoint.clientY //移动距离
-			console.log(moveLenght)
+
 			if (Math.abs(moveLenght) > 70) {
 				this.longPress = '松开手指,取消发送'
 				this.delBtn()

+ 0 - 2
pagesRepairs/pending/pending.vue

@@ -125,11 +125,9 @@ export default {
 		}
 	},
 	mounted() {
-		console.log('待处理池页面加载')
 		const repairsUserInfo = uni.getStorageSync('repairsUserInfo')
 		this.userId = repairsUserInfo.userId
 		this.btns = repairsUserInfo.btns
-		console.log(this.btns)
 		this.getData()
 		this.getCloseList()
 	},

+ 4 - 4
pagesRepairs/repairRecord/repairRecord.vue

@@ -212,8 +212,8 @@ export default {
 				this.$set(e.data, 'consumeName', e.data.name)
 				this.$set(e.data, 'consumeId', e.data.id)
 				this.$set(e.data, 'articleId', e.articleId)
-				this.$delete(e.data, 'name')
-				this.$delete(e.data, 'id')
+				// this.$delete(e.data, 'name')
+				// this.$delete(e.data, 'id')
 				this.goodList.push(e.data)
 			}
 		},
@@ -269,7 +269,7 @@ export default {
 								consumes: this.goodList
 							}
 						})
-						console.log(res)
+						// console.log(res)
 						if (res.code === '200') {
 							uni.showToast({
 								title: '提交成功',
@@ -630,4 +630,4 @@ export default {
 		background-color: #6fb6b8;
 	}
 }
-</style>
+</style>

+ 0 - 1
pagesRepairs/repairs/repairs.vue

@@ -217,7 +217,6 @@ export default {
 		}
 	},
 	mounted() {
-		console.log('报修页面加载')
 		// 页面之间通讯监听自定义事件
 		uni.$on('addRepairsArea', this.addRepairsArea)
 		uni.$on('addRepairsGoods', this.addRepairsGoods)

+ 2 - 3
pagesRepairs/transferOrder/transferOrder.vue

@@ -82,7 +82,6 @@ export default {
 		})
 	},
 	onLoad(options) {
-		console.log(options)
 		if (options.type) {
 			this.type = options.type
 			this.getData()
@@ -118,7 +117,7 @@ export default {
 								approverStatu: 0
 							}
 						})
-						console.log(res)
+						// console.log(res)
 						if (res.code === '200') {
 							uni.showToast({
 								title: '已拒绝该审核',
@@ -166,7 +165,7 @@ export default {
 								remark: this.info.remark
 							}
 						})
-						console.log(res)
+						// console.log(res)
 						if (res.code === '200') {
 							uni.showToast({
 								title: '提交转单申请成功,请等待管理员审核',