|
|
@@ -542,15 +542,18 @@ const del = async function(params){
|
|
|
|
|
|
const reTakePicture = async (img)=>{
|
|
|
if(!img.id) return;
|
|
|
- try {
|
|
|
- await ElMessageBox.confirm('此操作会先删除此数据,需要继续吗?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- })
|
|
|
- await clickLog({ describe: { action: '点击确认单张重拍', goods_art_no: img.goods_art_no, action_name: img.action_name } }, route)
|
|
|
- } catch (e) {
|
|
|
- await clickLog({ describe: { action: '点击取消单张重拍', goods_art_no: img.goods_art_no, action_name: img.action_name } }, route)
|
|
|
- return
|
|
|
+ if(img.image_path){
|
|
|
+ try {
|
|
|
+ await ElMessageBox.confirm('此操作会先删除此数据,需要继续吗?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ })
|
|
|
+ await clickLog({ describe: { action: '点击确认单张重拍', goods_art_no: img.goods_art_no, action_name: img.action_name } }, route)
|
|
|
+ } catch (e) {
|
|
|
+ await clickLog({ describe: { action: '点击取消单张重拍', goods_art_no: img.goods_art_no, action_name: img.action_name } }, route)
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
runLoading.value = true;
|