Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
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
248f1b5f
authored
2023-10-20 10:30:15 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:登记薄字典转换
1 parent
0feaffa7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
22 deletions
src/views/registerBook/components/djbDetail.vue
src/views/registerBook/fdcq1.vue
src/views/registerBook/components/djbDetail.vue
View file @
248f1b5
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-10-20 10:
17:28
* @LastEditTime: 2023-10-20 10:
27:25
-->
<
template
>
<div
class=
"tableBox"
>
...
...
@@ -143,18 +143,23 @@
},
methods
:
{
getLable
(
prop
,
label
)
{
le
t
ztObj
=
{
cons
t
ztObj
=
{
0
:
'否'
,
1
:
'是'
}
if
([
'sfygdj'
,
'sfczjzhxz'
].
includes
(
prop
))
{
return
ztObj
[
label
]
}
else
if
(
prop
==
'dyrlx'
)
{
let
arr
=
this
.
dictData
[
'A36'
].
filter
(
item
=>
item
.
dcode
===
label
)
return
arr
[
0
].
dname
;
}
else
{
return
label
}
};
const
strategies
=
{
sfygdj
:
(
label
)
=>
ztObj
[
label
]
||
label
,
sfczjzhxz
:
(
label
)
=>
ztObj
[
label
]
||
label
,
dyrlx
:
(
label
)
=>
{
let
arr
=
this
.
dictData
[
'A36'
].
filter
(
item
=>
item
.
dcode
===
label
);
return
arr
.
length
>
0
?
arr
[
0
].
dname
:
label
;
},
default
:
(
label
)
=>
label
};
const
strategy
=
strategies
[
prop
]
||
strategies
.
default
;
return
strategy
(
label
);
},
openPrint
()
{
this
.
render
=
true
;
...
...
src/views/registerBook/fdcq1.vue
View file @
248f1b5
<!--
* @Description:
* @Autor: miaofang
* @LastEditTime: 2023-10-20 10:
17:4
7
* @LastEditTime: 2023-10-20 10:
28:0
7
-->
<
template
>
<div
class=
"djxxTable"
>
...
...
@@ -156,18 +156,23 @@
},
methods
:
{
getLable
(
prop
,
label
)
{
le
t
ztObj
=
{
cons
t
ztObj
=
{
0
:
'否'
,
1
:
'是'
}
if
([
'sfygdj'
,
'sfczjzhxz'
].
includes
(
prop
))
{
return
ztObj
[
label
]
}
else
if
(
prop
==
'dyrlx'
)
{
let
arr
=
this
.
dictData
[
'A36'
].
filter
(
item
=>
item
.
dcode
===
label
)
return
arr
[
0
].
dname
;
}
else
{
return
label
}
};
const
strategies
=
{
sfygdj
:
(
label
)
=>
ztObj
[
label
]
||
label
,
sfczjzhxz
:
(
label
)
=>
ztObj
[
label
]
||
label
,
dyrlx
:
(
label
)
=>
{
let
arr
=
this
.
dictData
[
'A36'
].
filter
(
item
=>
item
.
dcode
===
label
);
return
arr
.
length
>
0
?
arr
[
0
].
dname
:
label
;
},
default
:
(
label
)
=>
label
};
const
strategy
=
strategies
[
prop
]
||
strategies
.
default
;
return
strategy
(
label
);
},
openPrint
()
{
this
.
render
=
true
;
...
...
Please
register
or
sign in
to post a comment