小程序端不提示错误问题和设计时间问题

This commit is contained in:
Ledo 2025-06-30 22:49:17 +08:00
parent 6aed54f04e
commit 8ecf0e1cfe
2 changed files with 24 additions and 11 deletions

View File

@ -808,6 +808,7 @@ const onAddItem = async() => {
//
var date = new Date();
date.setHours(0,0,0,0)
var date2 = new Date();
if(processDesignType.value == 'BLUEPRINT_WORKBLANK'){
if(formData.value.blankDate != null ){
var date1 = new Date(formData.value.blankDate);
@ -899,8 +900,8 @@ const onAddItem = async() => {
progress: undefined,
blueprintLink: undefined,
remark: '',
createTime: date.getTime(),
beginTime:date.getTime(),
createTime: date2.getTime(),
beginTime:date2.getTime(),
endTime:undefined,
isOver:0,
workTime:undefined,

View File

@ -159,17 +159,29 @@ const handleComplate = async () => {
try {
const data = await postOperateAPI(params);
} catch (error) {
} finally {
isLoading.value = false;
}
const url = `/pages/productionReport/productionReport-detail?id=${detailInfo.value.id}`
uni.redirectTo({
url,
console.log(error)
uni.showToast({
icon: 'none',
duration: 3000,
title: error.data.msg,
})
} finally {
await getDetailData(detailInfo.value.id)
await getData()
const obj = historyList.value[0]
//
if (obj && obj?.workTime == null && obj.endTime) {
popupShow.value = true
}
}
isLoading.value = false;
// const url = `/pages/productionReport/productionReport-detail?id=${detailInfo.value.id}`
// uni.redirectTo({
// url,
// })
}
//
const handleOk = async (active) => {
console.log(amount.value)
const params = {
id: detailInfo.value?.id,
active: 'SUBMIT',