Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zrch-risk-39
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Administrator
zrch-risk-39
Commits
2d7cca30
提交
2d7cca30
authored
2月 02, 2026
作者:
kxjia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改tb3验证
上级
217d97cc
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
115 行增加
和
7 行删除
+115
-7
BaosongTaskRecord.api.ts
...ient-39/src/views/baosong/record/BaosongTaskRecord.api.ts
+4
-1
Tb3.vue
...isk-client-39/src/views/baosong/report/components/Tb3.vue
+15
-6
HistoryFillCheck.vue
...iews/baosong/report/components/check/HistoryFillCheck.vue
+96
-0
没有找到文件。
zrch-risk-client-39/src/views/baosong/record/BaosongTaskRecord.api.ts
浏览文件 @
2d7cca30
...
...
@@ -25,8 +25,8 @@ enum Api {
queryHistoryFill
=
'/baosong/baosongTaskRecord/queryHistoryFill'
,
batchSaveOrUpdateBeforeDelete
=
'/baosong/baosongTaskRecord/batchSaveOrUpdateBeforeDelete'
,
findFilledlist
=
'/baosong/baosongTaskRecord/findFilledlist'
,
findFillHistoryForCheck
=
'/baosong/baosongTaskRecord/findFillHistoryForCheck'
,
}
...
...
@@ -107,6 +107,9 @@ export const queryTaskRecords = (params) => {
}
export
const
findFillHistoryForCheck
=
(
params
)
=>
defHttp
.
get
({
url
:
Api
.
findFillHistoryForCheck
,
params
});
export
const
deleteByPitemidAndRind
=
(
params
,
handleSuccess
)
=>
{
createConfirm
({
...
...
zrch-risk-client-39/src/views/baosong/report/components/Tb3.vue
浏览文件 @
2d7cca30
...
...
@@ -16,6 +16,7 @@
</div>
</
template
>
<
template
#
tools
>
<vxe-button
status=
"primary"
icon=
"vxe-icon-edit"
@
click=
"handleOpenHistoryDrawer()"
:disabled=
"loading"
>
近5年数据填报
</vxe-button>
<vxe-button
status=
"primary"
icon=
"vxe-icon-edit"
@
click=
"validateAndShowResults()"
:disabled=
"loading"
>
校验
</vxe-button>
<vxe-button
status=
"primary"
icon=
"vxe-icon-save"
@
click=
"saveBatch()"
:disabled=
"loading"
>
保存
</vxe-button>
</
template
>
...
...
@@ -234,13 +235,14 @@
</div>
</
template
>
</vxe-drawer>
</div>
<HistoryFillCheck
ref=
"historyFillCheckRef"
v-model=
"historyDrawerVisible"
@
closeDrawer=
"closeHistoryDrawer"
/>
</div>
</template>
<
script
lang=
"ts"
setup
>
import
MultiColumnTable
from
'../tableComponents/MultiColumnTable.vue'
import
AttachTable
from
'../tableComponents/AttachTable.vue'
import
HistoryFillCheck
from
'./check/HistoryFillCheck.vue'
import
{
tableFormData
}
from
'../../data/tb3.data'
;
import
{
ref
,
reactive
,
nextTick
,
onMounted
,
toRaw
}
from
'vue'
...
...
@@ -252,6 +254,8 @@ import { getTblvalidFormula } from '../../tpl/BaosongDataValid.api'
import
{
useRoute
}
from
'vue-router'
;
const
historyFillCheckRef
=
ref
();
const
historyDrawerVisible
=
ref
(
false
);
const
route
=
useRoute
();
const
tableRef
=
ref
();
...
...
@@ -934,10 +938,8 @@ const validateAllInputs = async () => {
try
{
const
formulaItems
=
validFormula
.
value
const
codeVal
=
await
buildCodeValueMap
()
validationResults
.
value
=
{}
validationMessages
.
value
=
{}
for
(
const
strKey
in
formData
)
{
const
val
=
formData
[
strKey
]
if
(
val
!==
undefined
&&
val
!==
null
&&
val
!==
''
)
{
...
...
@@ -947,7 +949,6 @@ const validateAllInputs = async () => {
const
regex
=
new
RegExp
(
`\\b
${
field
}
\\b`
,
'gi'
)
return
regex
.
test
(
formulaText
)
})
if
(
targetFormula
)
{
const
formulaText
=
(
targetFormula
.
formula
||
''
).
toString
()
const
isValid
=
await
evaluateFormula
(
formulaText
,
codeVal
)
...
...
@@ -967,7 +968,15 @@ const validateAllInputs = async () => {
}
}
const
closeHistoryDrawer
=
()
=>
{
historyFillCheckRef
.
value
.
closeDrawer
();
historyDrawerVisible
.
value
=
false
;
}
const
handleOpenHistoryDrawer
=
()
=>
{
historyFillCheckRef
.
value
.
onDrawerShow
(
queryParam
.
value
.
tplId
);
// 设置抽屉可见
historyDrawerVisible
.
value
=
true
;
}
</
script
>
<
style
lang=
"less"
scoped
>
...
...
zrch-risk-client-39/src/views/baosong/report/components/check/HistoryFillCheck.vue
0 → 100644
浏览文件 @
2d7cca30
<
template
>
<vxe-drawer
v-model=
"drawerVisibleFromProp"
placement=
"right"
title=
"近5年填报数据对比"
width=
"90%"
:footer=
"
{ show: true }"
>
<div>
<vxe-grid
v-bind=
"gridOptions"
></vxe-grid>
</div>
</vxe-drawer>
</
template
>
<
script
lang=
"ts"
setup
>
import
{
ref
,
reactive
,
computed
}
from
'vue'
import
type
{
VxeGridProps
}
from
'vxe-table'
import
type
{
VxeGridPropTypes
}
from
'vxe-table'
import
{
findFillHistoryForCheck
}
from
'/@/views/baosong/record/BaosongTaskRecord.api'
;
const
props
=
defineProps
({
modelValue
:
{
type
:
Boolean
,
default
:
false
}
})
const
emit
=
defineEmits
([
'update:modelValue'
])
const
tableData
=
ref
<
RowVO
[]
>
([]);
const
drawerVisible
=
ref
(
false
);
const
drawerVisibleFromProp
=
computed
({
get
:
()
=>
props
.
modelValue
,
set
:
(
value
)
=>
emit
(
'update:modelValue'
,
value
)
})
interface
RowVO
{
id
:
number
itemId
:
number
itemName
:
string
values
:
string
[]
}
const
gridOptions
=
reactive
<
VxeGridProps
<
RowVO
>>
({
border
:
true
,
size
:
'small'
,
columns
:
[
{
type
:
'seq'
,
width
:
70
},
{
field
:
'itemId'
,
title
:
'字段ID'
,
width
:
"10%"
,
visible
:
false
},
{
field
:
'itemName'
,
title
:
'字段名称'
,
width
:
"15%"
},
{
field
:
'values'
,
title
:
'最近5年填报数据'
,
width
:
"75%"
,
children
:
[
{
field
:
'value1'
,
title
:
'第一次'
,
width
:
"15%"
},
{
field
:
'value2'
,
title
:
'第二次'
,
width
:
"15%"
},
{
field
:
'value3'
,
title
:
'第三次'
,
width
:
"15%"
},
{
field
:
'value4'
,
title
:
'第四次'
,
width
:
"15%"
},
{
field
:
'value5'
,
title
:
'第五次'
,
width
:
"15%"
},
],
},
{
field
:
'opt'
,
title
:
'操作'
,
width
:
"10%"
},
],
data
:
[]
})
async
function
onDrawerShow
(
tplid
:
number
)
{
const
retData
=
await
findFillHistoryForCheck
({
tplid
:
tplid
});
// 处理 values 数据
const
processedData
=
retData
.
map
(
item
=>
{
const
processedItem
=
{...
item
};
// 将 values 数组中的 value 属性提取出来
if
(
Array
.
isArray
(
processedItem
.
values
))
{
processedItem
.
values
.
forEach
((
valueItem
,
index
)
=>
{
// 将每个 valueItem 的 value 属性设置到单独的字段中
processedItem
[
`value
${
index
}
`
]
=
valueItem
.
value
;
});
}
return
processedItem
;
});
gridOptions
.
data
=
processedData
;
return
false
;
}
const
closeDrawer
=
()
=>
{
drawerVisible
.
value
=
false
;
emit
(
'update:modelValue'
,
false
);
}
defineExpose
({
onDrawerShow
,
closeDrawer
});
</
script
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论