|
|
|
@ -34,20 +34,30 @@
|
|
|
|
let erweima_popup = ref(null)
|
|
|
|
let erweima_popup = ref(null)
|
|
|
|
const fenzhen_list = ref(false);
|
|
|
|
const fenzhen_list = ref(false);
|
|
|
|
const check_tip_show = ref(false);
|
|
|
|
const check_tip_show = ref(false);
|
|
|
|
const checkTipShow = (show) => {
|
|
|
|
const checkTipShow = (show, tj_number) => {
|
|
|
|
if (!!show) {
|
|
|
|
if (!!show) {
|
|
|
|
check_tip_show.value = true
|
|
|
|
check_tip_show.value = true
|
|
|
|
uni.showModal({
|
|
|
|
uni.showModal({
|
|
|
|
title: '提示',
|
|
|
|
title: '提示',
|
|
|
|
content: '所有项目已完成,请进行检后签到',
|
|
|
|
content: '所有项目已完成,请进行检后签到',
|
|
|
|
showCancel: false,
|
|
|
|
cancelText: '取消',
|
|
|
|
confirmText: '确定',
|
|
|
|
confirmText: '确定',
|
|
|
|
success: function(res) {
|
|
|
|
success: function(res) {
|
|
|
|
|
|
|
|
if (!!res.confirm) {
|
|
|
|
|
|
|
|
CheckedSignIn(tj_number)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const CheckedSignIn = async (tj_number) => {
|
|
|
|
|
|
|
|
const response = await $api('CheckedSignIn', {
|
|
|
|
|
|
|
|
tj_number
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
$response(response, () => {
|
|
|
|
|
|
|
|
window.location.reload()
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
const getFenzhenList = async (loading = true) => {
|
|
|
|
const getFenzhenList = async (loading = true) => {
|
|
|
|
if (!!loading) {
|
|
|
|
if (!!loading) {
|
|
|
|
// uni.showLoading();
|
|
|
|
// uni.showLoading();
|
|
|
|
@ -59,7 +69,7 @@
|
|
|
|
$response(response, () => {
|
|
|
|
$response(response, () => {
|
|
|
|
fenzhen_list.value = response.data;
|
|
|
|
fenzhen_list.value = response.data;
|
|
|
|
if (!check_tip_show.value) {
|
|
|
|
if (!check_tip_show.value) {
|
|
|
|
checkTipShow(response.data.check_tip)
|
|
|
|
checkTipShow(response.data.check_tip, response.data.info.tj_number)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (fenzhen_active.value !== -1) {
|
|
|
|
if (fenzhen_active.value !== -1) {
|
|
|
|
getFenzhenInfo(fenzhen_active.value)
|
|
|
|
getFenzhenInfo(fenzhen_active.value)
|
|
|
|
|