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
9d31b656
authored
2023-07-11 13:15:31 +0800
by
xiaomiao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
a036215b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
147 additions
and
27 deletions
src/api/djbbl.js
src/views/djbworkflow/djbBook/components/blxxtabs/fdcq.vue
src/views/djbworkflow/djbBook/spyj.vue
src/views/djbworkflow/workFrame.vue
src/views/djbworkflow/workFrameView.vue
src/api/djbbl.js
View file @
9d31b65
...
...
@@ -140,3 +140,16 @@ export function getZtQlxx (params) {
data
})
}
/**
* @description: 添加审核意见
* @param {*} data
* @author: renchao
*/
export
function
getShList
(
data
)
{
console
.
log
(
data
);
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/djbRepair/getShList?bsmRepair='
+
data
.
bsmRepair
,
method
:
'post'
,
data
})
}
...
...
src/views/djbworkflow/djbBook/components/blxxtabs/fdcq.vue
View file @
9d31b65
...
...
@@ -536,6 +536,7 @@ export default {
});
this
.
$store
.
dispatch
(
"user/refreshPage"
,
true
);
}
else
{
this
.
$message
({
showClose
:
true
,
message
:
res
.
message
,
...
...
src/views/djbworkflow/djbBook/spyj.vue
View file @
9d31b65
...
...
@@ -6,11 +6,33 @@
<
template
>
<div
class=
"spyj loadingtext"
>
<div
class=
"box"
>
<b
class=
"spyj_title"
>
审批表
</b>
<div
class=
"spyj_title"
>
<div
class=
"leftadd"
>
<i
class=
"el-icon-plus pointer"
@
click=
"addClick()"
></i>
</div>
<div
class=
"righttitle"
>
审批表
</div>
</div>
<div
v-for=
"(item, index) in tableData"
:key=
"index"
>
<el-form
:model=
"tableData[index]"
label-width=
"120px"
:rules=
"rules"
:ref=
"'ruleFormRef'+index"
>
<div
class=
"spyj_form"
>
<div
class=
"item_left"
>
{{
item
.
jdmc
}}
意见
</div>
<el-form
:model=
"tableData[index]"
label-width=
"120px"
:rules=
"rules"
:ref=
"'ruleFormRef' + index"
>
<div
class=
"spyj_form"
>
<div
class=
"item_left"
>
<div
class=
"left"
>
<i
class=
"el-icon-minus pointer"
@
click=
"deleClick()"
></i>
</div>
<div
class=
"right"
>
{{
item
.
jdmc
}}
意见
</div>
</div>
<div
class=
"item_right"
>
<el-row>
<el-col
:span=
"24"
>
...
...
@@ -31,20 +53,14 @@
</el-row>
<el-row>
<el-col
:span=
"16"
>
<el-form-item
label=
"审查人"
prop=
"shryxm"
>
<el-form-item
label=
"审查人"
prop=
"shryxm"
>
<el-input
v-model=
"item.shryxm"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"审核时间"
prop=
"shsj"
>
<el-form-item
label=
"审核时间"
prop=
"shjssj"
>
<el-date-picker
v-model=
"item.sh
sj"
v-model=
"item.shjs
sj"
type=
"date"
placeholder=
"选择日期"
value-format=
"yyyy/MM/dd HH:mm:ss"
...
...
@@ -59,14 +75,16 @@
</el-form>
</div>
<div
class=
"submit_button"
v-if=
"!$route.query.viewtype"
>
<el-button
type=
"primary"
@
click=
"onSubmit('ruleFormRef')"
>
保存
</el-button>
<el-button
type=
"primary"
@
click=
"onSubmit('ruleFormRef')"
>
保存
</el-button
>
</div>
</div>
<!--
<el-empty
v-if=
"isNoData"
description=
"暂无数据"
></el-empty>
-->
</div>
</
template
>
<
script
>
import
{
addidea
}
from
"@/api/djbbl.js"
;
import
{
addidea
,
getShList
}
from
"@/api/djbbl.js"
;
import
{
mapGetters
}
from
"vuex"
;
export
default
{
computed
:
{
...
...
@@ -76,27 +94,68 @@ export default {
return
{
isNoData
:
false
,
ableOperation
:
true
,
tableData
:
[{
jdmc
:
"初审"
},
{
jdmc
:
"复审"
},
{
jdmc
:
"核定"
}],
tableData
:
[{
jdmc
:
"初审"
}],
rules
:
{
shyj
:
[{
required
:
true
,
message
:
"请填写意见"
,
trigger
:
"blur"
}],
shryxm
:
[{
required
:
true
,
message
:
"审查人"
,
trigger
:
"blur"
}],
shsj
:
[{
required
:
true
,
message
:
"审核时间"
,
trigger
:
"blur"
}],
sh
js
sj
:
[{
required
:
true
,
message
:
"审核时间"
,
trigger
:
"blur"
}],
},
};
},
watch
:
{},
created
()
{},
mounted
()
{},
mounted
()
{
this
.
getShList
();
},
methods
:
{
deleClick
(){
console
.
log
(
"111 "
);
if
(
this
.
tableData
.
length
<=
1
){
console
.
log
(
"w222"
);
this
.
$message
.
error
(
"最少填写一条初审意见"
);
}
else
if
(
this
.
tableData
.
length
>=
2
){
console
.
log
(
"3333"
);
this
.
tableData
=
this
.
tableData
.
slice
(
0
,
-
1
)
}
},
addClick
(){
if
(
this
.
tableData
.
length
==
1
){
this
.
tableData
.
push
({
jdmc
:
"复审"
})
}
else
if
(
this
.
tableData
.
length
==
2
){
this
.
tableData
.
push
({
jdmc
:
"核定"
})
}
else
{
this
.
$message
.
error
(
"只允许添加三条意见"
);
}
},
getShList
()
{
this
.
$startLoading
();
var
formdata
=
{
bsmRepair
:
this
.
$parent
.
bsmRepair
,
};
getShList
(
formdata
).
then
((
res
)
=>
{
this
.
$endLoading
();
if
(
res
.
code
===
200
&&
res
.
result
)
{
if
(
res
.
result
.
length
)
{
this
.
tableData
=
res
.
result
;
}
// this.ruleForm = res.result[res.result.length - 1]
}
});
},
onSubmit
(
formName
)
{
const
falg
=
[]
const
falg
=
[]
;
for
(
let
index
=
0
;
index
<
this
.
tableData
.
length
;
index
++
)
{
this
.
$refs
[
formName
+
index
][
0
].
validate
((
valid
)
=>
{
if
(
valid
)
{
falg
.
push
(
1
)
falg
.
push
(
1
)
;
}
});
}
...
...
@@ -154,17 +213,36 @@ export default {
overflow-y
:
scroll
;
padding-top
:
20px
;
padding
:
20px
40px
;
}
.spyj_title
{
line-height
:
68px
;
width
:
100%
;
height
:
80px
;
border
:
1px
solid
$
borderColor
;
background-color
:
#eceef2
;
display
:
flex
;
}
.leftadd
{
width
:
3%
;
height
:
100%
;
display
:
flex
;
font-size
:
14px
;
text-indent
:
20px
;
align-items
:
center
;
border
:
1px
solid
$
borderColor
;
}
.righttitle
{
width
:
80%
;
height
:
100%
;
line-height
:
80px
;
border
:
1px
solid
$
borderColor
;
text-align
:
center
;
font-size
:
22px
;
font-weight
:
400
;
background-color
:
#eceef2
;
display
:
block
;
border-bottom
:
none
;
}
}
/
deep
/
.el-form-item
{
margin-bottom
:
0
;
...
...
@@ -187,6 +265,30 @@ export default {
text-indent
:
80px
;
align-items
:
center
;
border-right
:
1px
solid
$
borderColor
;
.left
{
width
:
30%
;
height
:
100%
;
display
:
flex
;
font-size
:
14px
;
text-indent
:
20px
;
align-items
:
center
;
border-right
:
1px
solid
$
borderColor
;
.el-icon-minus{
font-size
:
14px
;
color
:
black
;
}
}
.right
{
width
:
70%
;
height
:
100%
;
color
:
#606266
;
display
:
flex
;
font-size
:
14px
;
text-indent
:
20px
;
align-items
:
center
;
border-right
:
1px
solid
$
borderColor
;
}
}
.item_right
{
...
...
src/views/djbworkflow/workFrame.vue
View file @
9d31b65
...
...
@@ -122,6 +122,7 @@
_beforeUnload_time
:
""
,
treedata
:
{},
tabdata
:
[],
bsmRepair
:
""
,
defaultNode
:
{},
};
},
...
...
@@ -162,6 +163,7 @@
},
// 获取右侧选项卡
getCurrentSelectProps
(
val
)
{
this
.
bsmRepair
=
val
.
bsmRepair
if
(
val
.
bdcdyid
)
{
this
.
oneSelectProps
=
val
;
}
...
...
src/views/djbworkflow/workFrameView.vue
View file @
9d31b65
...
...
@@ -126,6 +126,7 @@ export default {
//页面监听时间
_beforeUnload_time
:
""
,
treedata
:
{},
bsmRepair
:
""
,
tabdata
:
[],
defaultNode
:
{},
};
...
...
@@ -168,6 +169,7 @@ export default {
},
// 获取右侧选项卡
getCurrentSelectProps
(
val
)
{
this
.
bsmRepair
=
val
.
bsmRepair
if
(
val
.
bdcdyid
)
{
this
.
oneSelectProps
=
val
;
}
...
...
Please
register
or
sign in
to post a comment