diff --git a/src/pages/materialsStation/materialClerkConfirms/confirmDetails.vue b/src/pages/materialsStation/materialClerkConfirms/confirmDetails.vue
index 08c2b6f..3955601 100644
--- a/src/pages/materialsStation/materialClerkConfirms/confirmDetails.vue
+++ b/src/pages/materialsStation/materialClerkConfirms/confirmDetails.vue
@@ -27,7 +27,9 @@
@@ -44,6 +46,8 @@ const total = ref(0)
const remark = ref('')
const popup = ref()
const loading = ref(false)
+const countdown = ref(0)
+const timer = ref(null)
const finish = computed(() => {
if (total.value === tableList.value.length) return true
@@ -77,12 +81,27 @@ const handleDetails = (item) => {
}
const penPopup = () => {
popup.value.open()
+ if (timer.value) {
+ clearInterval(timer.value)
+ timer.value = null
+ }
+ countdown.value = 3
+ timer.value = setInterval(() => {
+ if (countdown.value > 0) {
+ countdown.value--
+ } else {
+ clearInterval(timer.value)
+ timer.value = null
+ countdown.value = 0
+ }
+ }, 1000)
}
const closePopup = () => {
popup.value.close()
}
const confirmRemark = () => {
console.log('opts:', opts.value)
+ if (countdown.value > 0) return
const params = {
id: opts.value.id,
leaseSignId: opts.value.leaseSignId,
diff --git a/src/pages/repair/testedInBound/details.vue b/src/pages/repair/testedInBound/details.vue
index 5024065..25aedfd 100644
--- a/src/pages/repair/testedInBound/details.vue
+++ b/src/pages/repair/testedInBound/details.vue
@@ -101,7 +101,7 @@
取消
- 确定
+ 确定{{ countdown > 0 ? '(' + countdown + ')' : '' }}
@@ -124,7 +124,7 @@
取消
- 确定
+ 确定{{ countdown > 0 ? '(' + countdown + ')' : '' }}
@@ -147,6 +147,9 @@ const rejectNumPopup = ref(null);
const inBoundNum = ref(0)
const rejectBoundNum = ref(0)
const rejectReason = ref('')
+const countdown = ref(0)
+const timer = ref(null)
+
// 获取列表详情
const getDetailsData = async () => {
let param = {
@@ -192,6 +195,20 @@ const onClick=async (e,item)=> {
}
}
if (item.manageType == 1) {//数量
+ if (timer.value) {
+ clearInterval(timer.value)
+ timer.value = null
+ }
+ countdown.value = 3
+ timer.value = setInterval(() => {
+ if (countdown.value > 0) {
+ countdown.value--
+ } else {
+ clearInterval(timer.value)
+ timer.value = null
+ countdown.value = 0
+ }
+ }, 1000)
if(e.index==0){
// console.log(item)
if(item.status==0){//入库
@@ -215,6 +232,7 @@ const onClick=async (e,item)=> {
const confirmNumInBound = async () => {
console.log(inBoundNum.value)
+ if (countdown.value > 0) return
if(inBoundNum.value==0){
uni.showToast({ title: '入库数量需大于0!',icon: 'none'})
}else{
@@ -238,6 +256,7 @@ const closePopup = () => {
const rejectNumInBound = async () => {
console.log(rejectBoundNum.value)
+ if (countdown.value > 0) return
try {
uni.showLoading({ title: '操作中...', mask: true })
if(rejectBoundNum.value==0){
diff --git a/src/pages/standardBox/acceptBox.vue b/src/pages/standardBox/acceptBox.vue
index c1d59d6..4ebfbfa 100644
--- a/src/pages/standardBox/acceptBox.vue
+++ b/src/pages/standardBox/acceptBox.vue
@@ -165,7 +165,7 @@ const onClick=(e,item, itemIndex)=> {
}
}
})
- }, 300)
+ }, 500)
}else{//驳回
console.log(item)
setTimeout(() => {
@@ -174,8 +174,8 @@ const onClick=(e,item, itemIndex)=> {
content: '是否确认驳回移交?',
confirmText: '确定',
cancelText: '取消',
- success: async (res) => {
- if (res.confirm) {
+ success: async (resp) => {
+ if (resp.confirm) {
let param = {
boxId:item.boxId
}
@@ -195,7 +195,7 @@ const onClick=(e,item, itemIndex)=> {
}
}
})
- }, 300)
+ }, 500)
}
}
swipeRef.value[itemIndex].closeAll()
diff --git a/src/pages/standardBox/codeList.vue b/src/pages/standardBox/codeList.vue
index 3d33cce..0dac19d 100644
--- a/src/pages/standardBox/codeList.vue
+++ b/src/pages/standardBox/codeList.vue
@@ -73,7 +73,7 @@