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
c4499985
authored
2023-10-13 10:09:52 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:申请业务规则
1 parent
e305382e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
133 additions
and
20 deletions
src/views/system/sqywgz/sqywDetail.js
src/views/system/sqywgz/sqywDetail.vue
src/views/system/sqywgz/sqywDetail.js
View file @
c449998
...
...
@@ -103,17 +103,6 @@ class data extends filter {
return
[
{
width
:
'60'
,
renderHeader
:
(
h
,
scope
)
=>
{
return
<
i
class
=
"el-icon-plus pointer"
onClick
=
{()
=>
{
vm
.
addDjqx
()
}}
style
=
"color:#409EFF"
><
/i
>
},
render
:
(
h
,
scope
)
=>
{
return
(
<
i
class
=
"el-icon-minus pointer"
onClick
=
{()
=>
{
vm
.
removeDjqx
(
scope
.
$index
,
scope
.
row
)
}}
><
/i
>
)
}
},
{
width
:
'60'
,
label
:
'序号'
,
type
:
'index'
},
...
...
@@ -165,7 +154,7 @@ class data extends filter {
return
(
<
div
>
<
el
-
button
type
=
'text'
disabled
=
{
scope
.
$index
==
0
}
onClick
=
{()
=>
{
vm
.
moveUpward
(
scope
.
$index
,
scope
.
row
,
'djqx'
)
}}
>
上移
<
/el-button
>
<
el
-
button
type
=
'text'
disabled
=
{(
scope
.
$index
+
1
)
==
vm
.
form
.
dj
q
x
.
length
}
onClick
=
{()
=>
{
vm
.
moveDown
(
scope
.
$index
,
scope
.
row
,
'djqx'
)
}}
>
下移
<
/el-button
>
<
el
-
button
type
=
'text'
disabled
=
{(
scope
.
$index
+
1
)
==
vm
.
form
.
dj
l
x
.
length
}
onClick
=
{()
=>
{
vm
.
moveDown
(
scope
.
$index
,
scope
.
row
,
'djqx'
)
}}
>
下移
<
/el-button
>
<
/div
>
)
}
...
...
@@ -260,7 +249,7 @@ class data extends filter {
},
{
prop
:
'djqxbm'
,
label
:
'登记情形'
,
label
:
'登记情形
名称
'
,
width
:
'180'
,
render
:
(
h
,
scope
)
=>
{
return
(
...
...
@@ -269,7 +258,126 @@ class data extends filter {
{
vm
.
form
.
djqx
.
map
(
option
=>
{
return
(
<
el
-
option
label
=
{
option
.
nodename
}
value
=
{
option
.
nodecode
}
><
/el-option
>
<
el
-
option
label
=
{
option
.
nodename
}
value
=
{
option
.
bsmSqyw
}
><
/el-option
>
)
})
}
<
/el-select
>
)
}
},
{
label
:
'移动'
,
width
:
'90'
,
render
:
(
h
,
scope
)
=>
{
return
(
<
div
>
<
el
-
button
type
=
'text'
disabled
=
{
scope
.
$index
==
0
}
onClick
=
{()
=>
{
vm
.
moveUpward
(
scope
.
$index
,
scope
.
row
,
'clxx'
)
}}
>
上移
<
/el-button
>
<
el
-
button
type
=
'text'
disabled
=
{(
scope
.
$index
+
1
)
==
vm
.
form
.
clxx
.
length
}
onClick
=
{()
=>
{
vm
.
moveDown
(
scope
.
$index
,
scope
.
row
,
'clxx'
)
}}
>
下移
<
/el-button
>
<
/div
>
)
}
}
]
}
ybsqClxxCol
()
{
return
[
{
width
:
'60'
,
renderHeader
:
(
h
,
scope
)
=>
{
return
<
i
class
=
"el-icon-plus pointer"
onClick
=
{()
=>
{
vm
.
addClxx
()
}}
style
=
"color:#409EFF"
><
/i
>
},
render
:
(
h
,
scope
)
=>
{
return
(
<
i
class
=
"el-icon-minus pointer"
onClick
=
{()
=>
{
vm
.
removeClxx
(
scope
.
$index
,
scope
.
row
)
}}
><
/i
>
)
}
},
{
width
:
'60'
,
label
:
'序号'
,
type
:
'index'
},
{
label
:
'是否必填'
,
prop
:
'isrequired'
,
width
:
'110'
,
render
:
(
h
,
scope
)
=>
{
return
(
<
el
-
radio
-
group
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onInput
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
}}
>
<
el
-
radio
label
=
{
'0'
}
>
否
<
/el-radio
>
<
el
-
radio
label
=
{
'1'
}
>
是
<
/el-radio
>
<
/el-radio-group
>
)
}
},
{
prop
:
'clbm'
,
label
:
'材料编码'
,
width
:
'100'
,
render
:
(
h
,
scope
)
=>
{
return
(
<
el
-
input
placeholder
=
"材料编码"
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onInput
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
;
orderNoChange
()
}}
maxlength
=
"8"
><
/el-input
>
)
}
},
{
prop
:
'clmc'
,
label
:
'材料名称'
,
render
:
(
h
,
scope
)
=>
{
return
(
<
el
-
input
placeholder
=
"材料名称"
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onInput
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
;
orderNoChange
()
}}
><
/el-input
>
)
}
},
{
prop
:
'cllx'
,
label
:
'材料类型'
,
width
:
'115'
,
render
:
(
h
,
scope
)
=>
{
return
(
<
el
-
select
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onChange
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
}}
clearable
>
{
store
.
getters
.
dictData
[
'A40'
].
map
(
option
=>
{
return
(
<
el
-
option
label
=
{
option
.
dname
}
value
=
{
option
.
dcode
}
><
/el-option
>
)
})
}
<
/el-select
>
)
}
},
{
label
:
'是否公共材料'
,
prop
:
'sfggcl'
,
width
:
'110'
,
render
:
(
h
,
scope
)
=>
{
return
(
<
el
-
radio
-
group
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onInput
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
}}
>
<
el
-
radio
label
=
{
'1'
}
>
是
<
/el-radio
>
<
el
-
radio
label
=
{
'0'
}
>
否
<
/el-radio
>
<
/el-radio-group
>
)
}
},
{
prop
:
'djqxbm'
,
label
:
'业务名称'
,
width
:
'180'
,
render
:
(
h
,
scope
)
=>
{
return
(
<
el
-
select
disabled
=
{
scope
.
row
.
sfggcl
==
'1'
}
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onChange
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
}}
clearable
>
{
vm
.
form
.
ywmcList
.
map
(
option
=>
{
return
(
<
el
-
option
label
=
{
option
.
nodename
}
value
=
{
option
.
bsmSqyw
}
><
/el-option
>
)
})
}
...
...
@@ -291,7 +399,6 @@ class data extends filter {
}
]
}
}
let
datas
=
new
data
()
export
{
...
...
src/views/system/sqywgz/sqywDetail.vue
View file @
c449998
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-10-13
09:30:24
* @LastEditTime: 2023-10-13
10:07:31
-->
<
template
>
<div>
...
...
@@ -111,7 +111,7 @@
</lb-table>
</el-collapse-item>
<el-collapse-item
title=
"材料信息设置"
name=
"2"
>
<lb-table
:column=
"clxx
Col
"
:heightNumSetting=
"true"
:minHeight=
"160"
<lb-table
:column=
"clxx
List
"
:heightNumSetting=
"true"
:minHeight=
"160"
:pagination=
"false"
:data=
"form.clxx"
>
</lb-table>
</el-collapse-item>
...
...
@@ -188,7 +188,9 @@
// clxx: []
},
djqxCol
:
datas
.
djqxCol
(),
clxxList
:
[],
clxxCol
:
datas
.
clxxCol
(),
ybsqClxxCol
:
datas
.
ybsqClxxCol
(),
qlxxCol
:
datas
.
qlxxCol
(),
};
},
...
...
@@ -206,7 +208,9 @@
this
.
tn
=
0
;
if
(
this
.
formData
.
sqfl
==
"2"
)
{
this
.
getDetail
(
this
.
formData
.
bsmSqyw
);
this
.
clxxList
=
this
.
ybsqClxxCol
}
else
{
this
.
clxxList
=
this
.
clxxCol
getDjlxInfo
(
this
.
formData
.
bsmSqyw
).
then
((
res
)
=>
{
let
{
result
}
=
res
;
this
.
djlxList
=
result
?
result
:
[];
...
...
@@ -273,8 +277,10 @@
getSqdjywDetail
(
bsmSqyw
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
form
=
res
.
result
;
console
.
log
(
this
.
form
.
clxx
);
if
(
that
.
formData
.
sqfl
==
"2"
)
{
that
.
form
.
djqx
=
that
.
form
.
djlx
.
map
(
item
=>
({
nodename
:
item
.
djywmc
+
'+'
+
item
.
nodename
,
bsmSqyw
:
item
.
bsmSqyw
}))
that
.
form
.
ywmcList
=
that
.
form
.
djlx
.
map
(
item
=>
({
nodename
:
item
.
djywmc
+
'+'
+
item
.
nodename
,
bsmSqyw
:
item
.
bsmSqyw
}))
console
.
log
(
that
.
form
.
ywmcList
,
' that.form.ywmcList'
);
}
// _this.form.bsmSqyw = res.result.bsmSqyw;
// _this.form.ywDetail = res.result.ywDetail;
...
...
@@ -328,7 +334,7 @@
if
(
type
==
"clxx"
)
{
upward
(
index
,
this
.
form
.
clxx
);
}
else
{
upward
(
index
,
this
.
form
.
dj
q
x
);
upward
(
index
,
this
.
form
.
dj
l
x
);
}
},
/**
...
...
@@ -342,7 +348,7 @@
if
(
type
==
"clxx"
)
{
down
(
index
,
this
.
form
.
clxx
);
}
else
{
down
(
index
,
this
.
form
.
dj
q
x
);
down
(
index
,
this
.
form
.
dj
l
x
);
}
},
/**
...
...
Please
register
or
sign in
to post a comment