wangxin 1 年間 前
コミット
efb2805457

+ 6 - 4
api/base/path.js

@@ -3,16 +3,18 @@ import {
 } from 'vue'
 
 export const path = reactive({
-	baseURL: 'http://192.168.31.224:8099',
-	checkAppURL: 'http://192.168.31.224:8099',
+	// baseURL: 'http://192.168.31.224:8099',
+	baseURL: 'http://120.46.159.163:7004',
+	// checkAppURL: 'http://192.168.31.224:8099',
+	checkAppURL: 'http://120.46.159.163:7004',
 	// baseURL: 'http://120.46.159.163:401/ezhizao-dms-sys',
 	// checkAppURL: 'http://120.46.159.163:401',
 	updateAppURL: 'http://120.46.159.163:401/ezhizao-dms-production',
 	furnaceNoURL: 'http://120.46.159.163:7002',
 
 	// 内网
-	innerURL: 'http://192.168.31.224:8099',
-	// innerURL: 'http://120.46.159.163:401',
+	// innerURL: 'http://192.168.31.224:8099',
+	innerURL: 'http://120.46.159.163:7004',
 	innerUpdateAppURL: 'http://120.46.159.163:401/ezhizao-dms-production',
 	innerFurnaceNoURL: 'http://120.46.159.163:7002',
 

+ 36 - 16
pages/batchReporting/index.vue

@@ -1,4 +1,6 @@
 <template>
+	<view v-if="isMaskShow" class="mask">
+	</view>
 	<view class="uni-column" style="height: 100%; background-color: #f5f5f5;">
 		<view class="box-bg uni-row">
 			<view class="input-view uni-row">
@@ -183,10 +185,14 @@
 	const paging = ref();
 	const reqParam = ref(null);
 	const normalStatus = ref(true)
+	const isLoding = ref(false);
 	const curDayworkItem = ref({}) // 当前报工记录,回显是否显示取消周转的状态	
 	const keywords = ref(null)
 	const tempList = ref([])
 	const wasteRecyclingList = ref([]) //废品回用批次
+	// 在数据中定义一个变量来控制遮罩层的显示
+	const isMaskShow = ref(false);
+
 	const notPreProcess = ref(true)
 	const curProcessAfte = ref([])
 	const showRight = ref(null) // 抽屉
@@ -271,6 +277,7 @@
 	}
 
 	function init(id) {
+
 		uni.showLoading({
 			title: '加载中'
 		});
@@ -452,22 +459,6 @@
 		}
 	}
 
-	// function handleScanCode() {
-	// 	uni.scanCode({
-	// 		onlyFromCamera: true,
-	// 		success: function (res) {
-	// 			if (res.scanType !== 'QR_CODE') {
-	// 				uni.showToast({
-	// 					icon: 'none',
-	// 					title: '二维码未识别成功',
-	// 					duration: 2000
-	// 				})
-	// 			}
-	// 			console.log('条码类型:' + res.scanType);
-	// 			console.log('条码内容:' + res.result);
-	// 		}
-	// 	});
-	// }
 
 	function handleAddDaywork(data) {
 		console.log(data)
@@ -490,7 +481,14 @@
 		reflush();
 	}
 
+
+
+
 	function handleCancelTurnover(data) {
+		isMaskShow.value = true; // 显示遮罩层
+		uni.showLoading({
+			title: '加载中'
+		});
 		turnoverDelete(data).then(res => {
 			if (res.code == 200) {
 				uni.showToast({
@@ -498,6 +496,7 @@
 					title: "取消成功",
 					duration: 2000
 				})
+				isLoding.value = false;
 				init(store.planDetails.id);
 			} else {
 				uni.showToast({
@@ -505,6 +504,8 @@
 					title: "取消失败",
 					duration: 2000
 				})
+				isLoding.value = false;
+
 			}
 		})
 	}
@@ -513,6 +514,25 @@
 <style lang="scss">
 	$nav-height: 60rpx;
 
+	/* 遮罩层样式 */
+	.mask {
+		position: fixed;
+		/* 固定定位,覆盖整个屏幕 */
+		top: 0;
+		left: 0;
+		right: 0;
+		bottom: 0;
+		background-color: rgba(0, 0, 0, 0.3);
+		/* 黑色背景,透明度30% */
+		display: flex;
+		justify-content: center;
+		/* 水平居中 */
+		align-items: center;
+		/* 垂直居中 */
+		z-index: 1000;
+		/* 确保遮罩层在其他元素之上 */
+	}
+
 	.box-bg {
 		width: 94%;
 		background-color: #F5F5F5;

+ 1 - 15
pages/outsourcedInspection/index.vue

@@ -93,21 +93,7 @@
 	/***************************** 页面生命周期函数 *****************************/
 	onShow(() => {
 		getList();
-		// uni.showLoading({
-		// 	title: '加载中'
-		// });
-		// quer.value.userId = store.userInfo.userId;
-		// getP2();
-		// getOutsourcedInspection(quer.value).then(res => {
-		// 	console.log("res", res);
-		// 	if (res.code == 200) {
-		// 		original.value = res.rows;
-		// 		timeSizer();
-		// 		uni.hideLoading();
-		// 		// uni.hideLoading();
-		// 	}
-
-		// });
+		getP2();
 	})
 
 	/***************************** 定义了一些方法 *****************************/

+ 3 - 2
pages/sorting/consultation.vue

@@ -45,7 +45,8 @@
 		content: ''
 	})
 
-	const lastExecutionTime = ref(0);
+	// 创建一个引用来存储最后一次请求的时间戳
+	const lastRequestTimestamp = ref(0);
 
 	onMounted(() => {
 		const instance = getCurrentInstance().proxy
@@ -74,7 +75,7 @@
 			return
 		}
 		const currentTime = Date.now();
-
+		console.log("检查", lastRequestTimestamp);
 		// 检查是否已经过去了 2 秒
 		if (currentTime - lastRequestTimestamp.value < 2000) {
 			// 如果在 2 秒 内已经点击,那么不执行