|
|
@ -472,11 +472,17 @@ const setUpClick = (val: string, id: string) => { |
|
|
//在此组装参数,以生成二维码图片 |
|
|
//在此组装参数,以生成二维码图片 |
|
|
let idArray = state.selectionChecked.map(item => item.id); |
|
|
let idArray = state.selectionChecked.map(item => item.id); |
|
|
if(idArray.length>0){ |
|
|
if(idArray.length>0){ |
|
|
const loadingInstance1 = ElLoading.service({ |
|
|
/* const loadingInstance1 = ElLoading.service({ |
|
|
fullscreen: true, |
|
|
fullscreen: true, |
|
|
text: '正在生成二维码,请稍候...' // 添加的文字内容,可根据需要修改 |
|
|
text: '正在生成二维码,请稍候...' // 添加的文字内容,可根据需要修改 |
|
|
}); |
|
|
}); */ |
|
|
//console.log(props.formBasicConfig) |
|
|
console.log(props.formBasicConfig) |
|
|
|
|
|
if(props.formBasicConfig.qrCodeFlag==true){ |
|
|
|
|
|
if(props.formBasicConfig.qrCodeInside==true){ |
|
|
|
|
|
if(props.formBasicConfig.qrCodePrintStyle&&props.formBasicConfig.qrCodePrintStyle=="2"&&props.formBasicConfig.qrCodeShowFields.length==0){ |
|
|
|
|
|
alert("未选择表格展示字段") |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
//请求数据 |
|
|
//请求数据 |
|
|
let getDetailQrCodesData: any = {} |
|
|
let getDetailQrCodesData: any = {} |
|
|
let currentFieldsMapArrObj: any = {} |
|
|
let currentFieldsMapArrObj: any = {} |
|
|
@ -630,7 +636,7 @@ const setUpClick = (val: string, id: string) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setTimeout(()=>{ |
|
|
setTimeout(()=>{ |
|
|
loadingInstance1.close() |
|
|
//loadingInstance1.close() |
|
|
qrCodesPrintDialogFlag.value = true |
|
|
qrCodesPrintDialogFlag.value = true |
|
|
},820) |
|
|
},820) |
|
|
|
|
|
|
|
|
@ -638,13 +644,17 @@ const setUpClick = (val: string, id: string) => { |
|
|
//fieldsMap = null |
|
|
//fieldsMap = null |
|
|
tablesData.value = getDetailQrCodesData |
|
|
tablesData.value = getDetailQrCodesData |
|
|
qrCodesPrintDialogFlag.value = true |
|
|
qrCodesPrintDialogFlag.value = true |
|
|
loadingInstance1.close() |
|
|
//loadingInstance1.close() |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
}else{ |
|
|
|
|
|
alert("内部二维码功能未启用") |
|
|
|
|
|
} |
|
|
|
|
|
}else{ |
|
|
|
|
|
alert("请先为本表单开启二维码功能") |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
})/* .finally(()=>{ |
|
|
|
|
|
loadingInstance1.close() |
|
|
|
|
|
qrCodesPrintDialogFlag.value = true |
|
|
|
|
|
}) */ |
|
|
|
|
|
}else{ |
|
|
}else{ |
|
|
alert("未选中任何一条,请先选择") |
|
|
alert("未选中任何一条,请先选择") |
|
|
|
|
|
|
|
|
|