|
@@ -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;
|