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
373ef2a7
authored
2022-09-02 10:28:58 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:申请业务规则
1 parent
ef27c1d9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
33 deletions
src/views/system/sqywgz/components/clgzsd.vue
src/views/system/sqywgz/components/djqxsd.vue
src/views/system/sqywgz/components/dyztsd.vue
src/views/system/sqywgz/components/editDialog.vue
src/views/ywbl/dbx/dbxdata.js
src/views/system/sqywgz/components/clgzsd.vue
View file @
373ef2a
...
...
@@ -17,22 +17,26 @@
</el-col>
</el-row>
</el-form>
<lb-table
:column=
"column"
border
:key=
"key"
:heightNum=
"390"
:pagination=
"false"
heightNumSetting
:data=
"tableData"
>
<lb-table
:column=
"column"
border
:key=
"key"
:heightNum=
"405"
:pagination=
"false"
:data=
"tableData"
>
</lb-table>
</div>
</
template
>
<
script
>
import
{
mapGetters
}
from
'vuex'
import
{
realMove
,
findParents
}
from
'@/utils/operation'
import
{
upward
,
down
}
from
'@/utils/operation'
export
default
{
props
:
{
ruleForm
:
{
type
:
Object
,
default
:
{}
},
subData
:
{
type
:
Object
,
default
:
()
=>
{
return
{}
clzt
:
{
type
:
Array
,
default
:
()
=>
{
return
[]
}
},
djqx
:
{
type
:
Array
,
default
:
()
=>
{
return
[]
}
}
},
...
...
@@ -74,10 +78,11 @@ export default {
{
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
}}
><
/el-input
>
onInput
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
}}
maxlength
=
"8"
><
/el-input
>
)
}
},
...
...
@@ -94,6 +99,7 @@ export default {
{
prop
:
'cllx'
,
label
:
'材料类型'
,
width
:
'115'
,
render
:
(
h
,
scope
)
=>
{
return
(
<
el
-
select
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
...
...
@@ -130,7 +136,7 @@ export default {
<
el
-
select
disabled
=
{
scope
.
row
.
sfggcl
==
'1'
}
value
=
{
scope
.
row
[
scope
.
column
.
property
]}
onChange
=
{(
val
)
=>
{
scope
.
row
[
scope
.
column
.
property
]
=
val
}}
clearable
>
{
this
.
subData
[
'djqx'
]
.
map
(
option
=>
{
this
.
djqx
.
map
(
option
=>
{
return
(
<
el
-
option
label
=
{
option
.
nodename
}
value
=
{
option
.
nodecode
}
><
/el-option
>
)
...
...
@@ -159,15 +165,15 @@ export default {
watch
:
{
tableData
:
{
handler
(
newValue
,
oldValue
)
{
if
(
!
_
.
isEqual
(
newValue
,
this
.
subData
.
clxx
))
{
if
(
!
_
.
isEqual
(
newValue
,
this
.
clzt
))
{
this
.
$emit
(
'updateValue'
,
newValue
)
}
},
deep
:
true
},
subData
:
{
clzt
:
{
handler
:
function
(
newValue
)
{
this
.
tableData
=
_
.
cloneDeep
(
newValue
.
clxx
)
this
.
tableData
=
_
.
cloneDeep
(
newValue
)
},
deep
:
true
},
...
...
@@ -184,7 +190,6 @@ export default {
sfggcl
:
'1'
}
)
this
.
key
++
},
handleSelectGgcl
(
item
)
{
if
(
item
.
sfggcl
==
'1'
)
{
...
...
@@ -196,17 +201,11 @@ export default {
},
// 上移下移
moveUpward
(
index
,
row
)
{
realMove
(
row
.
bsmClxx
,
'UP'
,
this
.
tableData
)
this
.
key
++
let
id
=
findParents
(
this
.
tableData
,
row
.
bsmClxx
)
this
.
keyList
=
id
upward
(
index
,
this
.
tableData
)
},
moveDown
(
index
,
row
)
{
realMove
(
row
.
bsmClxx
,
'DOWN'
,
this
.
tableData
)
this
.
key
++
let
id
=
findParents
(
this
.
tableData
,
row
.
bsmClxx
)
this
.
keyList
=
id
}
down
(
index
,
this
.
tableData
)
},
}
}
</
script
>
...
...
src/views/system/sqywgz/components/djqxsd.vue
View file @
373ef2a
...
...
@@ -23,7 +23,7 @@
</div>
</
template
>
<
script
>
import
{
judgeSort
,
realMove
,
findParents
}
from
'@/utils/operation'
import
{
upward
,
down
}
from
'@/utils/operation'
export
default
{
props
:
{
ruleForm
:
{
...
...
@@ -203,16 +203,10 @@ export default {
},
// 上移下移
moveUpward
(
index
,
row
)
{
realMove
(
row
.
bsmDict
,
'UP'
,
this
.
tableData
)
this
.
key
++
let
id
=
findParents
(
this
.
tableData
,
row
.
bsmDict
)
this
.
keyList
=
id
upward
(
index
,
this
.
tableData
)
},
moveDown
(
index
,
row
)
{
realMove
(
row
.
bsmDict
,
'DOWN'
,
this
.
tableData
)
this
.
key
++
let
id
=
findParents
(
this
.
tableData
,
row
.
bsmDict
)
this
.
keyList
=
id
down
(
index
,
this
.
tableData
)
}
}
}
...
...
src/views/system/sqywgz/components/dyztsd.vue
View file @
373ef2a
...
...
@@ -32,6 +32,7 @@
</li>
</ul>
</div>
<b>
限制办理状态
</b>
<ul
class=
"screen-list"
>
<li
v-for=
"(item, index) in dataList.sxzt"
:key=
"index"
>
<div
class=
"screen-list-left"
>
...
...
src/views/system/sqywgz/components/editDialog.vue
View file @
373ef2a
...
...
@@ -115,7 +115,8 @@
</el-row>
</el-form>
<djqxsd
v-show=
"n == 1"
:ruleForm=
"ruleForm"
:djqx=
"subData.djqx"
@
updateValue=
"getDjqxValue"
/>
<clgzsd
v-show=
"n == 2"
:ruleForm=
"ruleForm"
:subData=
"subData"
@
updateValue=
"getClgzValue"
/>
<clgzsd
v-show=
"n == 2"
:ruleForm=
"ruleForm"
:clzt=
"subData.clxx"
:djqx=
"subData.djqx"
@
updateValue=
"getClgzValue"
/>
<dyztsd
:ruleForm=
"ruleForm"
:subData=
"subData"
v-show=
"n == 3"
@
updateValue=
"getDyztsdValue"
/>
</div>
</div>
...
...
@@ -164,6 +165,7 @@ export default {
data
()
{
return
{
djqx
:
[],
clzt
:
[],
myValue
:
this
.
value
,
btnDisabled
:
false
,
tn
:
0
,
...
...
@@ -256,7 +258,7 @@ export default {
if
(
valid
)
{
this
.
subData
.
ywDetail
=
this
.
ruleForm
saveSqdjyw
(
this
.
subData
).
then
(
res
=>
{
that
.
$emit
(
'input'
,
false
)
//
that.$emit('input', false)
})
}
else
{
this
.
$message
(
'请检查表单完整性'
)
...
...
src/views/ywbl/dbx/dbxdata.js
View file @
373ef2a
...
...
@@ -79,7 +79,7 @@ class data extends filter {
align
:
'center'
,
fixed
:
'right'
,
render
:
(
h
,
scope
)
=>
{
return
<
el
-
button
type
=
"text"
icon
=
"el-icon-
edit-outline"
onClick
=
{()
=>
{
vm
.
openDialog
(
scope
)
}}
>
编辑
<
/el-button
>
return
<
el
-
button
type
=
"text"
icon
=
"el-icon-
delete"
onClick
=
{()
=>
{
vm
.
openDialog
(
scope
)
}}
>
删除
<
/el-button
>
}
}
]
...
...
Please
register
or
sign in
to post a comment