Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
396a1871
authored
2025-08-20 11:25:59 +0800
by
lxs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
入表功能调整
1 parent
850e14f7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
src/views/data_entry/index.vue
src/views/data_entry/index.vue
View file @
396a187
...
...
@@ -748,9 +748,12 @@ const setTableFields = (info) => {
costFileds
.
value
=
row
;
const
date
=
new
Date
(
info
.
baseDate
);
const
currDay
=
date
.
toLocaleDateString
(
'zh-CN'
,
{
year
:
'numeric'
,
month
:
'long'
});
const
modifiedStr
=
currDay
.
replace
(
/
(\d
+
)
年
(\d
+
)
月/
,
(
_
,
year
,
month
)
=>
{
return
`
${
year
}
年1-
${
month
}
月`
;
});
tableField
.
value
.
at
(
-
1
).
visible
=
true
;
tableField
.
value
=
tableField
.
value
.
filter
(
item
=>
item
.
field
.
indexOf
(
'name'
)
>
-
1
||
item
.
field
==
'total'
);
tableField
.
value
.
splice
(
-
1
,
0
,
...
fields
,
{
label
:
currDay
,
field
:
'baseNum'
,
type
:
'input'
,
width
:
120
,
align
:
'right'
,
columClass
:
'edit_cell'
});
tableField
.
value
.
splice
(
-
1
,
0
,
...
fields
,
{
label
:
modifiedStr
,
field
:
'baseNum'
,
type
:
'input'
,
width
:
120
,
align
:
'right'
,
columClass
:
'edit_cell'
});
// 设置table数据
let
datas
:
any
=
[];
tableData
.
value
.
map
(
t
=>
{
...
...
@@ -1384,7 +1387,7 @@ onUpdated(() => {
show-overflow-tooltip
>
<template
#
default=
"scope"
>
<div
class=
"input_cell"
v-if=
"item.type == 'input'"
>
<el-input
v-model
.
trim=
"scope.row[item.field]"
:placeholder=
"scope.row.edit
?'':
'--'"
<el-input
v-model
.
trim=
"scope.row[item.field]"
:placeholder=
"scope.row.edit
? '' :
'--'"
:maxlength=
"item.maxlength ?? ''"
@
change=
"(val) => inputChange(val, scope, item.field)"
@
input=
"(val) => inputEventChange(val, scope, item.field)"
:disabled=
"scope.row.edit ? false : true"
clearable
></el-input>
...
...
@@ -1827,6 +1830,7 @@ onUpdated(() => {
.input_cell
{
position
:
relative
;
.el-input
.el-input__inner
{
text-align
:
right
;
height
:
24px
;
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment