质检图片提交不刷新问题
This commit is contained in:
parent
fc5a4fa2a2
commit
a3e8cffda8
@ -199,13 +199,16 @@
|
||||
const data = await postOperateAPIEnd(params)
|
||||
if (isQua.value == 1) {
|
||||
await imgUpload()
|
||||
}
|
||||
await initPage();
|
||||
}else{
|
||||
await getDetailData(idValue.value)
|
||||
await getData()
|
||||
const pages = getCurrentPages(); // 获取当前页面栈
|
||||
const currentPage = pages[pages.length - 1]; // 当前页面
|
||||
const url = `/${currentPage.route}?${Object.entries(currentPage.options).map(([key, val]) => `${key}=${val}`).join('&')}`;
|
||||
uni.reLaunch({ url }); // 重新加载当前页面
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
});
|
||||
@ -222,13 +225,13 @@
|
||||
const data = await postOperateAPIEnd(params)
|
||||
if (isQua.value == 1) {
|
||||
await imgUpload()
|
||||
}
|
||||
await initPage();
|
||||
}else{
|
||||
const pages = getCurrentPages(); // 获取当前页面栈
|
||||
const currentPage = pages[pages.length - 1]; // 当前页面
|
||||
const url = `/${currentPage.route}?${Object.entries(currentPage.options).map(([key, val]) => `${key}=${val}`).join('&')}`;
|
||||
uni.reLaunch({ url }); // 重新加载当前页面
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
@ -420,6 +423,10 @@
|
||||
duration: 2000
|
||||
});
|
||||
await initPage()
|
||||
const pages = getCurrentPages(); // 获取当前页面栈
|
||||
const currentPage = pages[pages.length - 1]; // 当前页面
|
||||
const url = `/${currentPage.route}?${Object.entries(currentPage.options).map(([key, val]) => `${key}=${val}`).join('&')}`;
|
||||
uni.reLaunch({ url }); // 重新加载当前页面
|
||||
popup.value.close();
|
||||
|
||||
},
|
||||
@ -493,7 +500,8 @@
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="product-item">预计生产日期:{{ detailInfo.startTime }} ~ {{ detailInfo.entTime }}</view> -->
|
||||
<view class="finish" v-if="isShowStart && historyList.length &&detailInfo.pgType != 1" @click="handleComplate">
|
||||
<view class="finish" v-if="isShowStart && historyList.length &&detailInfo.pgType != 1"
|
||||
@click="handleComplate">
|
||||
<image class="complate-img" src="/static/images/productionReport-detail-complate.png"
|
||||
mode="scaleToFill" />
|
||||
质检完成
|
||||
@ -925,6 +933,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.no {
|
||||
font-size: 32rpx;
|
||||
margin: 20rpx auto 80rpx;
|
||||
@ -935,6 +944,7 @@
|
||||
background-color: red;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.ok {
|
||||
font-size: 32rpx;
|
||||
margin: 20rpx auto 80rpx;
|
||||
|
@ -193,12 +193,13 @@
|
||||
const data = await postOperateAPIEnd(params)
|
||||
if (isQua.value == 1) {
|
||||
await imgUpload()
|
||||
}
|
||||
|
||||
}else{
|
||||
const pages = getCurrentPages(); // 获取当前页面栈
|
||||
const currentPage = pages[pages.length - 1]; // 当前页面
|
||||
const url = `/${currentPage.route}?${Object.entries(currentPage.options).map(([key, val]) => `${key}=${val}`).join('&')}`;
|
||||
uni.reLaunch({ url }); // 重新加载当前页面
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
@ -216,13 +217,13 @@
|
||||
const data = await postOperateAPIEnd(params)
|
||||
if (isQua.value == 1) {
|
||||
await imgUpload()
|
||||
}
|
||||
await initPage();
|
||||
}else{
|
||||
const pages = getCurrentPages(); // 获取当前页面栈
|
||||
const currentPage = pages[pages.length - 1]; // 当前页面
|
||||
const url = `/${currentPage.route}?${Object.entries(currentPage.options).map(([key, val]) => `${key}=${val}`).join('&')}`;
|
||||
uni.reLaunch({ url }); // 重新加载当前页面
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
@ -396,6 +397,11 @@
|
||||
icon: 'none', // 显示纯文本时icon设为none
|
||||
duration: 2000
|
||||
});
|
||||
await initPage()
|
||||
const pages = getCurrentPages(); // 获取当前页面栈
|
||||
const currentPage = pages[pages.length - 1]; // 当前页面
|
||||
const url = `/${currentPage.route}?${Object.entries(currentPage.options).map(([key, val]) => `${key}=${val}`).join('&')}`;
|
||||
uni.reLaunch({ url }); // 重新加载当前页面
|
||||
popup.value.close();
|
||||
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user