Merge branch 'qr_branch'

# Conflicts:
#	frontend/src/views/machine/device/index.vue
This commit is contained in:
caozehui
2025-07-31 09:47:40 +08:00
4 changed files with 53 additions and 8 deletions

View File

@@ -140,7 +140,7 @@
link
:icon='Download'
@click="openDrawer('报告下载', scope.row)"
v-if='form.activeTabs === 3 && form.activeChildTabs === 0 && scope.row.reportState === 1'
v-if='form.activeTabs === 3 && form.activeChildTabs === 0 && (scope.row.reportState === 1 ||scope.row.reportState === 3)'
>报告下载
</el-button>
@@ -628,6 +628,8 @@ const columns = reactive<ColumnProps<Device.ResPqDev>[]>([
return '已生成'
} else if (scope.row.reportState === 2) {
return '未检'
}else if(scope.row.reportState === 3){
return '已上传'
}
return ''
},

View File

@@ -730,7 +730,7 @@ const initScriptData = async () => {
let response: any = await getBigTestItem({reCheckType: checkStore.reCheckType, planId: checkStore.plan.id, devIds: checkStore.devices.map(item => item.deviceId)})
let temp = response.data.map(item => {
let temp = response.data.map((item: any) => {
return {
...item,
scriptName: item.scriptName