Commit cc627f15 by LJM

js

parent 3e453f93
Showing with 10 additions and 2 deletions
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<view class="btn-box"> <view class="btn-box">
<template v-if="andReceipt.car_confirm_time"> <template v-if="andReceipt.car_confirm_time">
<view class="btn row rowCenter verCenter curr">查车确认 (关务)</view> <view class="btn row rowCenter verCenter curr">查车确认 (关务)</view>
<view class="is row rowCenter verCenter"> <view class="is row rowCenter verCenter" v-if="andReceipt.car_confirm_name">
<text class="time">{{ andReceipt.car_confirm_time }}</text> <text class="time">{{ andReceipt.car_confirm_time }}</text>
<text class="author">{{ andReceipt.car_confirm_name }}</text> <text class="author">{{ andReceipt.car_confirm_name }}</text>
<text class="status">已确认</text> <text class="status">已确认</text>
...@@ -75,6 +75,7 @@ export default { ...@@ -75,6 +75,7 @@ export default {
format: true format: true
}); });
return { return {
isClick: true,
date: currentDate, date: currentDate,
andReceipt: {}, andReceipt: {},
timer: '' timer: ''
...@@ -148,7 +149,9 @@ export default { ...@@ -148,7 +149,9 @@ export default {
return false; return false;
} }
} }
this.request(API.signTodayCustomsDeclarationAndReceipt, 'POST', { type: type, datetime: this.date }, false).then(res => { if (this.isClick) {
this.request(API.signTodayCustomsDeclarationAndReceipt, 'POST', { type: type, datetime: this.date }, true).then(res => {
this.isClick = false;
if (res.err_code === 0) { if (res.err_code === 0) {
uni.showToast({ uni.showToast({
title: '操作成功', title: '操作成功',
...@@ -157,7 +160,11 @@ export default { ...@@ -157,7 +160,11 @@ export default {
setTimeout(() => { setTimeout(() => {
this.getTodayCustomsDeclarationAndReceipt(); this.getTodayCustomsDeclarationAndReceipt();
}, 2000); }, 2000);
setTimeout(() => {
this.isClick = true;
}, 2500);
} else { } else {
this.isClick = true;
uni.showModal({ uni.showModal({
title: '提示', title: '提示',
content: res.err_msg, content: res.err_msg,
...@@ -167,6 +174,7 @@ export default { ...@@ -167,6 +174,7 @@ export default {
}); });
} }
} }
}
}; };
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment