Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mes-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周远喜
mes-ui
Commits
92e1727d
Commit
92e1727d
authored
Nov 09, 2020
by
renjintao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userProcess.load
parent
7d0b08b0
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
2964 additions
and
3203 deletions
+2964
-3203
index.vue
pages/handle/examine10/index.vue
+241
-260
index.vue
pages/handle/examine11/index.vue
+241
-260
index.vue
pages/handle/examine12/index.vue
+241
-260
index.vue
pages/handle/examine13/index.vue
+243
-262
index.vue
pages/handle/examine14/index.vue
+243
-262
index.vue
pages/handle/examine2/index.vue
+3
-0
index.vue
pages/handle/examine3/index.vue
+235
-269
index.vue
pages/handle/examine4/index.vue
+225
-246
index.vue
pages/handle/examine6/index.vue
+246
-275
index.vue
pages/handle/examine7/index.vue
+422
-422
index.vue
pages/handle/examine8/index.vue
+385
-429
index.vue
pages/handle/examine9/index.vue
+239
-258
No files found.
pages/handle/examine10/index.vue
View file @
92e1727d
<
template
>
<
template
>
<div
style=
"padding:30px 0"
>
<div
style=
"padding:30px 0"
>
<Detail
:idVal=
"detailId"
/>
<Detail
:idVal=
"detailId"
/>
<Process
ref=
"userProcess"
:idVal=
"detailId"
:resulstInfo=
"testObj"
/>
<Process
ref=
"userProcess"
:idVal=
"detailId"
:resulstInfo=
"testObj"
/>
<div
class=
"footers"
v-if=
"footerStatu === '2'"
style=
"text-align:left;"
>
<div
class=
"footers"
v-if=
"footerStatu === '2'"
style=
"text-align:left;"
>
...
@@ -14,39 +14,19 @@
...
@@ -14,39 +14,19 @@
</RadioGroup>
</RadioGroup>
</FormItem>
</FormItem>
<FormItem
label=
"驳回节点:"
v-if=
"formMyCheck.radioSp === '驳回'"
prop=
"rejectToNodeId"
>
<FormItem
label=
"驳回节点:"
v-if=
"formMyCheck.radioSp === '驳回'"
prop=
"rejectToNodeId"
>
<Select
<Select
style=
"width:200px"
clearable
transfer
placeholder=
"请选择驳回节点"
v-model=
"formMyCheck.rejectToNodeId"
>
style=
"width:200px"
clearable
transfer
placeholder=
"请选择驳回节点"
v-model=
"formMyCheck.rejectToNodeId"
>
<Option
value
class=
"option-text"
>
请选择驳回节点
</Option>
<Option
value
class=
"option-text"
>
请选择驳回节点
</Option>
<Option
<Option
v-for=
"(item, index) in nodeList"
:value=
"item.value"
:label=
"item.label"
:key=
"index"
:disabled=
"item.statu > 0 ? false : true"
></Option>
v-for=
"(item, index) in nodeList"
:value=
"item.value"
:label=
"item.label"
:key=
"index"
:disabled=
"item.statu > 0 ? false : true"
></Option>
</Select>
</Select>
<RadioGroup
type=
"button"
size=
"small"
@
on-change=
"changeToNode"
>
<RadioGroup
type=
"button"
size=
"small"
@
on-change=
"changeToNode"
>
<Radio
label=
"1"
>
上一节点
</Radio>
<Radio
label=
"1"
>
上一节点
</Radio>
<Radio
label=
"2"
>
第一节点
</Radio>
<Radio
label=
"2"
>
第一节点
</Radio>
</RadioGroup>
</RadioGroup>
</FormItem>
</FormItem>
<FormItem
<FormItem
label=
"原因:"
v-if=
"
label=
"原因:"
v-if=
"
formMyCheck.radioSp === '驳回' || formMyCheck.radioSp === '终止'
formMyCheck.radioSp === '驳回' || formMyCheck.radioSp === '终止'
"
"
prop=
"comment"
>
prop=
"comment"
<Input
v-model=
"formMyCheck.comment"
style=
"width:400px;margin-left:10px"
placeholder=
"请输入原因"
/>
>
<Input
v-model=
"formMyCheck.comment"
style=
"width:400px;margin-left:10px"
placeholder=
"请输入原因"
/>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
span=
"6"
style=
"text-align:right;padding-right:40px"
>
<Col
span=
"6"
style=
"text-align:right;padding-right:40px"
>
...
@@ -68,8 +48,9 @@
...
@@ -68,8 +48,9 @@
<Button
type=
"primary"
@
click=
"checkFalse"
>
确定
</Button>
<Button
type=
"primary"
@
click=
"checkFalse"
>
确定
</Button>
</div>
</div>
</Modal>
</Modal>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
'../api'
import
Api
from
'../api'
import
Detail
from
'./detail'
import
Detail
from
'./detail'
...
@@ -111,30 +92,29 @@ export default {
...
@@ -111,30 +92,29 @@ export default {
nextNodeUserIdList
:
[],
//通过时提交的下一个节点UserId
nextNodeUserIdList
:
[],
//通过时提交的下一个节点UserId
testObj
:
{},
testObj
:
{},
ruleValidate
:
{
ruleValidate
:
{
rejectToNodeId
:
[
rejectToNodeId
:
[{
{
required
:
true
,
required
:
true
,
message
:
'请选择驳回节点'
,
message
:
'请选择驳回节点'
,
type
:
'number'
,
type
:
'number'
,
trigger
:
'change'
trigger
:
'change'
}
}],
],
comment
:
[{
comment
:
[
{
required
:
true
,
required
:
true
,
message
:
'请输入原因'
,
message
:
'请输入原因'
,
trigger
:
'blur'
trigger
:
'blur'
}
}]
]
}
}
}
}
},
},
props
:
{},
props
:
{},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
},
},
created
()
{
created
()
{
this
.
currentUserId
=
this
.
$store
.
state
.
userInfo
.
userId
this
.
currentUserId
=
this
.
$store
.
state
.
userInfo
.
userId
this
.
detailId
=
this
.
$http
.
common
.
getquerystring
(
'id'
)
this
.
detailId
=
this
.
$http
.
common
.
getquerystring
(
'id'
)
this
.
footerStatu
=
this
.
$http
.
common
.
getquerystring
(
'statu'
)
this
.
footerStatu
=
this
.
$http
.
common
.
getquerystring
(
'statu'
)
this
.
getDetailInfos
(
this
.
detailId
)
this
.
getDetailInfos
(
this
.
detailId
)
...
@@ -148,16 +128,14 @@ export default {
...
@@ -148,16 +128,14 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
this
.
modalCheckNo
=
true
this
.
modalCheckNo
=
true
this
.
statuTitle
=
'驳回'
this
.
statuTitle
=
'驳回'
}
else
{
}
else
{}
}
})
})
}
else
{
}
else
{
this
.
$refs
[
'formValidate'
].
validate
((
valid
)
=>
{
this
.
$refs
[
'formValidate'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
modalCheckNo
=
true
this
.
modalCheckNo
=
true
this
.
statuTitle
=
'终止'
this
.
statuTitle
=
'终止'
}
else
{
}
else
{}
}
})
})
}
}
},
},
...
@@ -170,8 +148,8 @@ export default {
...
@@ -170,8 +148,8 @@ export default {
this
.
testObj
=
r
this
.
testObj
=
r
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
currentNodeID
=
r
.
result
.
currentNodeId
this
.
currentNodeID
=
r
.
result
.
currentNodeId
this
.
passId
=
r
.
result
.
currentRecordId
this
.
passId
=
r
.
result
.
currentRecordId
this
.
nextNodeUserIdList
=
this
.
$refs
.
userProcess
.
immutData
//获取下一节点的审核人
this
.
nextNodeUserIdList
=
this
.
$refs
.
userProcess
.
immutData
//获取下一节点的审核人
this
.
getNodes
(
r
.
result
.
nodes
)
this
.
getNodes
(
r
.
result
.
nodes
)
}
else
{
}
else
{
this
.
$Message
.
error
(
'加载失败'
)
this
.
$Message
.
error
(
'加载失败'
)
...
@@ -220,6 +198,7 @@ export default {
...
@@ -220,6 +198,7 @@ export default {
Api
.
pass
(
param
).
then
((
r
)
=>
{
Api
.
pass
(
param
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'审批通过成功'
)
this
.
$Message
.
success
(
'审批通过成功'
)
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
)
this
.
modalCheckNo
=
false
this
.
modalCheckNo
=
false
}
else
{
}
else
{
this
.
$Message
.
error
(
'审批通过失败'
)
this
.
$Message
.
error
(
'审批通过失败'
)
...
@@ -239,6 +218,7 @@ export default {
...
@@ -239,6 +218,7 @@ export default {
Api
.
reject
(
param
).
then
((
r
)
=>
{
Api
.
reject
(
param
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'驳回审批成功'
)
this
.
$Message
.
success
(
'驳回审批成功'
)
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
)
this
.
modalCheckNo
=
false
this
.
modalCheckNo
=
false
}
else
{
}
else
{
this
.
$Message
.
error
(
'加载失败'
)
this
.
$Message
.
error
(
'加载失败'
)
...
@@ -257,6 +237,7 @@ export default {
...
@@ -257,6 +237,7 @@ export default {
Api
.
terminate
(
param
).
then
((
r
)
=>
{
Api
.
terminate
(
param
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'终止审批成功'
)
this
.
$Message
.
success
(
'终止审批成功'
)
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
)
this
.
modalCheckNo
=
false
this
.
modalCheckNo
=
false
}
else
{
}
else
{
this
.
$Message
.
error
(
'加载失败'
)
this
.
$Message
.
error
(
'加载失败'
)
...
...
pages/handle/examine11/index.vue
View file @
92e1727d
<
template
>
<
template
>
<div
style=
"padding:30px 0"
>
<div
style=
"padding:30px 0"
>
<Detail
:idVal=
"detailId"
/>
<Detail
:idVal=
"detailId"
/>
<Process
ref=
"userProcess"
:idVal=
"detailId"
:resulstInfo=
"testObj"
/>
<Process
ref=
"userProcess"
:idVal=
"detailId"
:resulstInfo=
"testObj"
/>
<div
class=
"footers"
v-if=
"footerStatu === '2'"
style=
"text-align:left;"
>
<div
class=
"footers"
v-if=
"footerStatu === '2'"
style=
"text-align:left;"
>
...
@@ -14,39 +14,19 @@
...
@@ -14,39 +14,19 @@
</RadioGroup>
</RadioGroup>
</FormItem>
</FormItem>
<FormItem
label=
"驳回节点:"
v-if=
"formMyCheck.radioSp === '驳回'"
prop=
"rejectToNodeId"
>
<FormItem
label=
"驳回节点:"
v-if=
"formMyCheck.radioSp === '驳回'"
prop=
"rejectToNodeId"
>
<Select
<Select
style=
"width:200px"
clearable
transfer
placeholder=
"请选择驳回节点"
v-model=
"formMyCheck.rejectToNodeId"
>
style=
"width:200px"
clearable
transfer
placeholder=
"请选择驳回节点"
v-model=
"formMyCheck.rejectToNodeId"
>
<Option
value
class=
"option-text"
>
请选择驳回节点
</Option>
<Option
value
class=
"option-text"
>
请选择驳回节点
</Option>
<Option
<Option
v-for=
"(item, index) in nodeList"
:value=
"item.value"
:label=
"item.label"
:key=
"index"
:disabled=
"item.statu > 0 ? false : true"
></Option>
v-for=
"(item, index) in nodeList"
:value=
"item.value"
:label=
"item.label"
:key=
"index"
:disabled=
"item.statu > 0 ? false : true"
></Option>
</Select>
</Select>
<RadioGroup
type=
"button"
size=
"small"
@
on-change=
"changeToNode"
>
<RadioGroup
type=
"button"
size=
"small"
@
on-change=
"changeToNode"
>
<Radio
label=
"1"
>
上一节点
</Radio>
<Radio
label=
"1"
>
上一节点
</Radio>
<Radio
label=
"2"
>
第一节点
</Radio>
<Radio
label=
"2"
>
第一节点
</Radio>
</RadioGroup>
</RadioGroup>
</FormItem>
</FormItem>
<FormItem
<FormItem
label=
"原因:"
v-if=
"
label=
"原因:"
v-if=
"
formMyCheck.radioSp === '驳回' || formMyCheck.radioSp === '终止'
formMyCheck.radioSp === '驳回' || formMyCheck.radioSp === '终止'
"
"
prop=
"comment"
>
prop=
"comment"
<Input
v-model=
"formMyCheck.comment"
style=
"width:400px;margin-left:10px"
placeholder=
"请输入原因"
/>
>
<Input
v-model=
"formMyCheck.comment"
style=
"width:400px;margin-left:10px"
placeholder=
"请输入原因"
/>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
span=
"6"
style=
"text-align:right;padding-right:40px"
>
<Col
span=
"6"
style=
"text-align:right;padding-right:40px"
>
...
@@ -68,8 +48,9 @@
...
@@ -68,8 +48,9 @@
<Button
type=
"primary"
@
click=
"checkFalse"
>
确定
</Button>
<Button
type=
"primary"
@
click=
"checkFalse"
>
确定
</Button>
</div>
</div>
</Modal>
</Modal>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
'../api'
import
Api
from
'../api'
import
Detail
from
'./detail'
import
Detail
from
'./detail'
...
@@ -111,30 +92,29 @@ export default {
...
@@ -111,30 +92,29 @@ export default {
nextNodeUserIdList
:
[],
//通过时提交的下一个节点UserId
nextNodeUserIdList
:
[],
//通过时提交的下一个节点UserId
testObj
:
{},
testObj
:
{},
ruleValidate
:
{
ruleValidate
:
{
rejectToNodeId
:
[
rejectToNodeId
:
[{
{
required
:
true
,
required
:
true
,
message
:
'请选择驳回节点'
,
message
:
'请选择驳回节点'
,
type
:
'number'
,
type
:
'number'
,
trigger
:
'change'
trigger
:
'change'
}
}],
],
comment
:
[{
comment
:
[
{
required
:
true
,
required
:
true
,
message
:
'请输入原因'
,
message
:
'请输入原因'
,
trigger
:
'blur'
trigger
:
'blur'
}
}]
]
}
}
}
}
},
},
props
:
{},
props
:
{},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
},
},
created
()
{
created
()
{
this
.
currentUserId
=
this
.
$store
.
state
.
userInfo
.
userId
this
.
currentUserId
=
this
.
$store
.
state
.
userInfo
.
userId
this
.
detailId
=
this
.
$http
.
common
.
getquerystring
(
'id'
)
this
.
detailId
=
this
.
$http
.
common
.
getquerystring
(
'id'
)
this
.
footerStatu
=
this
.
$http
.
common
.
getquerystring
(
'statu'
)
this
.
footerStatu
=
this
.
$http
.
common
.
getquerystring
(
'statu'
)
this
.
getDetailInfos
(
this
.
detailId
)
this
.
getDetailInfos
(
this
.
detailId
)
...
@@ -148,16 +128,14 @@ export default {
...
@@ -148,16 +128,14 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
this
.
modalCheckNo
=
true
this
.
modalCheckNo
=
true
this
.
statuTitle
=
'驳回'
this
.
statuTitle
=
'驳回'
}
else
{
}
else
{}
}
})
})
}
else
{
}
else
{
this
.
$refs
[
'formValidate'
].
validate
((
valid
)
=>
{
this
.
$refs
[
'formValidate'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
modalCheckNo
=
true
this
.
modalCheckNo
=
true
this
.
statuTitle
=
'终止'
this
.
statuTitle
=
'终止'
}
else
{
}
else
{}
}
})
})
}
}
},
},
...
@@ -170,8 +148,8 @@ export default {
...
@@ -170,8 +148,8 @@ export default {
this
.
testObj
=
r
this
.
testObj
=
r
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
currentNodeID
=
r
.
result
.
currentNodeId
this
.
currentNodeID
=
r
.
result
.
currentNodeId
this
.
passId
=
r
.
result
.
currentRecordId
this
.
passId
=
r
.
result
.
currentRecordId
this
.
nextNodeUserIdList
=
this
.
$refs
.
userProcess
.
immutData
//获取下一节点的审核人
this
.
nextNodeUserIdList
=
this
.
$refs
.
userProcess
.
immutData
//获取下一节点的审核人
this
.
getNodes
(
r
.
result
.
nodes
)
this
.
getNodes
(
r
.
result
.
nodes
)
}
else
{
}
else
{
this
.
$Message
.
error
(
'加载失败'
)
this
.
$Message
.
error
(
'加载失败'
)
...
@@ -220,6 +198,7 @@ export default {
...
@@ -220,6 +198,7 @@ export default {
Api
.
pass
(
param
).
then
((
r
)
=>
{
Api
.
pass
(
param
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'审批通过成功'
)
this
.
$Message
.
success
(
'审批通过成功'
)
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
)
this
.
modalCheckNo
=
false
this
.
modalCheckNo
=
false
}
else
{
}
else
{
this
.
$Message
.
error
(
'审批通过失败'
)
this
.
$Message
.
error
(
'审批通过失败'
)
...
@@ -239,6 +218,7 @@ export default {
...
@@ -239,6 +218,7 @@ export default {
Api
.
reject
(
param
).
then
((
r
)
=>
{
Api
.
reject
(
param
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'驳回审批成功'
)
this
.
$Message
.
success
(
'驳回审批成功'
)
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
)
this
.
modalCheckNo
=
false
this
.
modalCheckNo
=
false
}
else
{
}
else
{
this
.
$Message
.
error
(
'加载失败'
)
this
.
$Message
.
error
(
'加载失败'
)
...
@@ -257,6 +237,7 @@ export default {
...
@@ -257,6 +237,7 @@ export default {
Api
.
terminate
(
param
).
then
((
r
)
=>
{
Api
.
terminate
(
param
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'终止审批成功'
)
this
.
$Message
.
success
(
'终止审批成功'
)
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
)
this
.
modalCheckNo
=
false
this
.
modalCheckNo
=
false
}
else
{
}
else
{
this
.
$Message
.
error
(
'加载失败'
)
this
.
$Message
.
error
(
'加载失败'
)
...
...
pages/handle/examine12/index.vue
View file @
92e1727d
<
template
>
<
template
>
<div
style=
"padding:30px 0"
>
<div
style=
"padding:30px 0"
>
<Detail
:idVal=
"detailId"
/>
<Detail
:idVal=
"detailId"
/>
<Process
ref=
"userProcess"
:idVal=
"detailId"
:resulstInfo=
"testObj"
/>
<Process
ref=
"userProcess"
:idVal=
"detailId"
:resulstInfo=
"testObj"
/>
<div
class=
"footers"
v-if=
"footerStatu === '2'"
style=
"text-align:left;"
>
<div
class=
"footers"
v-if=
"footerStatu === '2'"
style=
"text-align:left;"
>
...
@@ -14,39 +14,19 @@
...
@@ -14,39 +14,19 @@
</RadioGroup>
</RadioGroup>
</FormItem>
</FormItem>
<FormItem
label=
"驳回节点:"
v-if=
"formMyCheck.radioSp === '驳回'"
prop=
"rejectToNodeId"
>
<FormItem
label=
"驳回节点:"
v-if=
"formMyCheck.radioSp === '驳回'"
prop=
"rejectToNodeId"
>
<Select
<Select
style=
"width:200px"
clearable
transfer
placeholder=
"请选择驳回节点"
v-model=
"formMyCheck.rejectToNodeId"
>
style=
"width:200px"
clearable
transfer
placeholder=
"请选择驳回节点"
v-model=
"formMyCheck.rejectToNodeId"
>
<Option
value
class=
"option-text"
>
请选择驳回节点
</Option>
<Option
value
class=
"option-text"
>
请选择驳回节点
</Option>
<Option
<Option
v-for=
"(item, index) in nodeList"
:value=
"item.value"
:label=
"item.label"
:key=
"index"
:disabled=
"item.statu > 0 ? false : true"
></Option>
v-for=
"(item, index) in nodeList"
:value=
"item.value"
:label=
"item.label"
:key=
"index"
:disabled=
"item.statu > 0 ? false : true"
></Option>
</Select>
</Select>
<RadioGroup
type=
"button"
size=
"small"
@
on-change=
"changeToNode"
>
<RadioGroup
type=
"button"
size=
"small"
@
on-change=
"changeToNode"
>
<Radio
label=
"1"
>
上一节点
</Radio>
<Radio
label=
"1"
>
上一节点
</Radio>
<Radio
label=
"2"
>
第一节点
</Radio>
<Radio
label=
"2"
>
第一节点
</Radio>
</RadioGroup>
</RadioGroup>
</FormItem>
</FormItem>
<FormItem
<FormItem
label=
"原因:"
v-if=
"
label=
"原因:"
v-if=
"
formMyCheck.radioSp === '驳回' || formMyCheck.radioSp === '终止'
formMyCheck.radioSp === '驳回' || formMyCheck.radioSp === '终止'
"
"
prop=
"comment"
>
prop=
"comment"
<Input
v-model=
"formMyCheck.comment"
style=
"width:400px;margin-left:10px"
placeholder=
"请输入原因"
/>
>
<Input
v-model=
"formMyCheck.comment"
style=
"width:400px;margin-left:10px"
placeholder=
"请输入原因"
/>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
span=
"6"
style=
"text-align:right;padding-right:40px"
>
<Col
span=
"6"
style=
"text-align:right;padding-right:40px"
>
...
@@ -68,8 +48,9 @@
...
@@ -68,8 +48,9 @@
<Button
type=
"primary"
@
click=
"checkFalse"
>
确定
</Button>
<Button
type=
"primary"
@
click=
"checkFalse"
>
确定
</Button>
</div>
</div>
</Modal>
</Modal>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
'../api'
import
Api
from
'../api'
import
Detail
from
'./detail'
import
Detail
from
'./detail'
...
@@ -111,30 +92,29 @@ export default {
...
@@ -111,30 +92,29 @@ export default {
nextNodeUserIdList
:
[],
//通过时提交的下一个节点UserId
nextNodeUserIdList
:
[],
//通过时提交的下一个节点UserId
testObj
:
{},
testObj
:
{},
ruleValidate
:
{
ruleValidate
:
{
rejectToNodeId
:
[
rejectToNodeId
:
[{
{
required
:
true
,
required
:
true
,
message
:
'请选择驳回节点'
,
message
:
'请选择驳回节点'
,
type
:
'number'
,
type
:
'number'
,
trigger
:
'change'
trigger
:
'change'
}
}],
],
comment
:
[{
comment
:
[
{
required
:
true
,
required
:
true
,
message
:
'请输入原因'
,
message
:
'请输入原因'
,
trigger
:
'blur'
trigger
:
'blur'
}
}]
]
}
}
}
}
},
},
props
:
{},
props
:
{},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
},
},
created
()
{
created
()
{
this
.
currentUserId
=
this
.
$store
.
state
.
userInfo
.
userId
this
.
currentUserId
=
this
.
$store
.
state
.
userInfo
.
userId
this
.
detailId
=
this
.
$http
.
common
.
getquerystring
(
'id'
)
this
.
detailId
=
this
.
$http
.
common
.
getquerystring
(
'id'
)
this
.
footerStatu
=
this
.
$http
.
common
.
getquerystring
(
'statu'
)
this
.
footerStatu
=
this
.
$http
.
common
.
getquerystring
(
'statu'
)
this
.
getDetailInfos
(
this
.
detailId
)
this
.
getDetailInfos
(
this
.
detailId
)
...
@@ -148,16 +128,14 @@ export default {
...
@@ -148,16 +128,14 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
this
.
modalCheckNo
=
true
this
.
modalCheckNo
=
true
this
.
statuTitle
=
'驳回'
this
.
statuTitle
=
'驳回'
}
else
{
}
else
{}
}
})
})
}
else
{
}
else
{
this
.
$refs
[
'formValidate'
].
validate
((
valid
)
=>
{
this
.
$refs
[
'formValidate'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
modalCheckNo
=
true
this
.
modalCheckNo
=
true
this
.
statuTitle
=
'终止'
this
.
statuTitle
=
'终止'
}
else
{
}
else
{}
}
})
})
}
}
},
},
...
@@ -170,8 +148,8 @@ export default {
...
@@ -170,8 +148,8 @@ export default {
this
.
testObj
=
r
this
.
testObj
=
r
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
currentNodeID
=
r
.
result
.
currentNodeId
this
.
currentNodeID
=
r
.
result
.
currentNodeId
this
.
passId
=
r
.
result
.
currentRecordId
this
.
passId
=
r
.
result
.
currentRecordId
this
.
nextNodeUserIdList
=
this
.
$refs
.
userProcess
.
immutData
//获取下一节点的审核人
this
.
nextNodeUserIdList
=
this
.
$refs
.
userProcess
.
immutData
//获取下一节点的审核人
this
.
getNodes
(
r
.
result
.
nodes
)
this
.
getNodes
(
r
.
result
.
nodes
)
}
else
{
}
else
{
this
.
$Message
.
error
(
'加载失败'
)
this
.
$Message
.
error
(
'加载失败'
)
...
@@ -220,6 +198,7 @@ export default {
...
@@ -220,6 +198,7 @@ export default {
Api
.
pass
(
param
).
then
((
r
)
=>
{
Api
.
pass
(
param
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'审批通过成功'
)
this
.
$Message
.
success
(
'审批通过成功'
)
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
)
this
.
modalCheckNo
=
false
this
.
modalCheckNo
=
false
}
else
{
}
else
{
this
.
$Message
.
error
(
'审批通过失败'
)
this
.
$Message
.
error
(
'审批通过失败'
)
...
@@ -239,6 +218,7 @@ export default {
...
@@ -239,6 +218,7 @@ export default {
Api
.
reject
(
param
).
then
((
r
)
=>
{
Api
.
reject
(
param
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'驳回审批成功'
)
this
.
$Message
.
success
(
'驳回审批成功'
)
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
)
this
.
modalCheckNo
=
false
this
.
modalCheckNo
=
false
}
else
{
}
else
{
this
.
$Message
.
error
(
'加载失败'
)
this
.
$Message
.
error
(
'加载失败'
)
...
@@ -257,6 +237,7 @@ export default {
...
@@ -257,6 +237,7 @@ export default {
Api
.
terminate
(
param
).
then
((
r
)
=>
{
Api
.
terminate
(
param
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'终止审批成功'
)
this
.
$Message
.
success
(
'终止审批成功'
)
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
)
this
.
modalCheckNo
=
false
this
.
modalCheckNo
=
false
}
else
{
}
else
{
this
.
$Message
.
error
(
'加载失败'
)
this
.
$Message
.
error
(
'加载失败'
)
...
...
pages/handle/examine13/index.vue
View file @
92e1727d
<
template
>
<
template
>
<div
style=
"padding:30px 0"
>
<div
style=
"padding:30px 0"
>
<Detail
:idVal=
"detailId"
/>
<Detail
:idVal=
"detailId"
/>
<Process
ref=
"userProcess"
:idVal=
"detailId"
:resulstInfo=
"testObj"
/>
<Process
ref=
"userProcess"
:idVal=
"detailId"
:resulstInfo=
"testObj"
/>
<div
class=
"footers"
v-if=
"footerStatu === '2'"
style=
"text-align:left;"
>
<div
class=
"footers"
v-if=
"footerStatu === '2'"
style=
"text-align:left;"
>
...
@@ -14,39 +14,19 @@
...
@@ -14,39 +14,19 @@
</RadioGroup>
</RadioGroup>
</FormItem>
</FormItem>
<FormItem
label=
"驳回节点:"
v-if=
"formMyCheck.radioSp === '驳回'"
prop=
"rejectToNodeId"
>
<FormItem
label=
"驳回节点:"
v-if=
"formMyCheck.radioSp === '驳回'"
prop=
"rejectToNodeId"
>
<Select
<Select
style=
"width:200px"
clearable
transfer
placeholder=
"请选择驳回节点"
v-model=
"formMyCheck.rejectToNodeId"
>
style=
"width:200px"
clearable
transfer
placeholder=
"请选择驳回节点"
v-model=
"formMyCheck.rejectToNodeId"
>
<Option
value
class=
"option-text"
>
请选择驳回节点
</Option>
<Option
value
class=
"option-text"
>
请选择驳回节点
</Option>
<Option
<Option
v-for=
"(item, index) in nodeList"
:value=
"item.value"
:label=
"item.label"
:key=
"index"
:disabled=
"item.statu > 0 ? false : true"
></Option>
v-for=
"(item, index) in nodeList"
:value=
"item.value"
:label=
"item.label"
:key=
"index"
:disabled=
"item.statu > 0 ? false : true"
></Option>
</Select>
</Select>
<RadioGroup
type=
"button"
size=
"small"
@
on-change=
"changeToNode"
>
<RadioGroup
type=
"button"
size=
"small"
@
on-change=
"changeToNode"
>
<Radio
label=
"1"
>
上一节点
</Radio>
<Radio
label=
"1"
>
上一节点
</Radio>
<Radio
label=
"2"
>
第一节点
</Radio>
<Radio
label=
"2"
>
第一节点
</Radio>
</RadioGroup>
</RadioGroup>
</FormItem>
</FormItem>
<FormItem
<FormItem
label=
"原因:"
v-if=
"
label=
"原因:"
v-if=
"
formMyCheck.radioSp === '驳回' || formMyCheck.radioSp === '终止'
formMyCheck.radioSp === '驳回' || formMyCheck.radioSp === '终止'
"
"
prop=
"comment"
>
prop=
"comment"
<Input
v-model=
"formMyCheck.comment"
style=
"width:400px;margin-left:10px"
placeholder=
"请输入原因"
/>
>
<Input
v-model=
"formMyCheck.comment"
style=
"width:400px;margin-left:10px"
placeholder=
"请输入原因"
/>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
span=
"6"
style=
"text-align:right;padding-right:40px"
>
<Col
span=
"6"
style=
"text-align:right;padding-right:40px"
>
...
@@ -68,8 +48,9 @@
...
@@ -68,8 +48,9 @@
<Button
type=
"primary"
@
click=
"checkFalse"
>
确定
</Button>
<Button
type=
"primary"
@
click=
"checkFalse"
>
确定
</Button>
</div>
</div>
</Modal>
</Modal>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
"../api"
;
import
Api
from
"../api"
;
import
Detail
from
"./detail"
;
import
Detail
from
"./detail"
;
...
@@ -111,26 +92,25 @@ export default {
...
@@ -111,26 +92,25 @@ export default {
nextNodeUserIdList
:
[],
//通过时提交的下一个节点UserId
nextNodeUserIdList
:
[],
//通过时提交的下一个节点UserId
testObj
:
{},
testObj
:
{},
ruleValidate
:
{
ruleValidate
:
{
rejectToNodeId
:
[
rejectToNodeId
:
[{
{
required
:
true
,
required
:
true
,
message
:
"请选择驳回节点"
,
message
:
"请选择驳回节点"
,
type
:
"number"
,
type
:
"number"
,
trigger
:
"change"
trigger
:
"change"
}
}],
],
comment
:
[{
comment
:
[
{
required
:
true
,
required
:
true
,
message
:
"请输入原因"
,
message
:
"请输入原因"
,
trigger
:
"blur"
trigger
:
"blur"
}
}]
]
}
}
};
};
},
},
props
:
{},
props
:
{},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
},
created
()
{
created
()
{
...
@@ -149,16 +129,14 @@ export default {
...
@@ -149,16 +129,14 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
this
.
modalCheckNo
=
true
;
this
.
modalCheckNo
=
true
;
this
.
statuTitle
=
"驳回"
;
this
.
statuTitle
=
"驳回"
;
}
else
{
}
else
{}
}
});
});
}
else
{
}
else
{
this
.
$refs
[
"formValidate"
].
validate
(
valid
=>
{
this
.
$refs
[
"formValidate"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
modalCheckNo
=
true
;
this
.
modalCheckNo
=
true
;
this
.
statuTitle
=
"终止"
;
this
.
statuTitle
=
"终止"
;
}
else
{
}
else
{}
}
});
});
}
}
},
},
...
@@ -221,6 +199,7 @@ export default {
...
@@ -221,6 +199,7 @@ export default {
Api
.
pass
(
param
).
then
(
r
=>
{
Api
.
pass
(
param
).
then
(
r
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"审批通过成功"
);
this
.
$Message
.
success
(
"审批通过成功"
);
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
);
this
.
modalCheckNo
=
false
;
this
.
modalCheckNo
=
false
;
}
else
{
}
else
{
this
.
$Message
.
error
(
"审批通过失败"
);
this
.
$Message
.
error
(
"审批通过失败"
);
...
@@ -240,6 +219,7 @@ export default {
...
@@ -240,6 +219,7 @@ export default {
Api
.
reject
(
param
).
then
(
r
=>
{
Api
.
reject
(
param
).
then
(
r
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"驳回审批成功"
);
this
.
$Message
.
success
(
"驳回审批成功"
);
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
);
this
.
modalCheckNo
=
false
;
this
.
modalCheckNo
=
false
;
}
else
{
}
else
{
this
.
$Message
.
error
(
"加载失败"
);
this
.
$Message
.
error
(
"加载失败"
);
...
@@ -258,6 +238,7 @@ export default {
...
@@ -258,6 +238,7 @@ export default {
Api
.
terminate
(
param
).
then
(
r
=>
{
Api
.
terminate
(
param
).
then
(
r
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"终止审批成功"
);
this
.
$Message
.
success
(
"终止审批成功"
);
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
);
this
.
modalCheckNo
=
false
;
this
.
modalCheckNo
=
false
;
}
else
{
}
else
{
this
.
$Message
.
error
(
"加载失败"
);
this
.
$Message
.
error
(
"加载失败"
);
...
...
pages/handle/examine14/index.vue
View file @
92e1727d
<
template
>
<
template
>
<div
style=
"padding:30px 0"
>
<div
style=
"padding:30px 0"
>
<Detail
:idVal=
"detailId"
/>
<Detail
:idVal=
"detailId"
/>
<Process
ref=
"userProcess"
:idVal=
"detailId"
:resulstInfo=
"testObj"
/>
<Process
ref=
"userProcess"
:idVal=
"detailId"
:resulstInfo=
"testObj"
/>
<div
class=
"footers"
v-if=
"footerStatu === '2'"
style=
"text-align:left;"
>
<div
class=
"footers"
v-if=
"footerStatu === '2'"
style=
"text-align:left;"
>
...
@@ -14,39 +14,19 @@
...
@@ -14,39 +14,19 @@
</RadioGroup>
</RadioGroup>
</FormItem>
</FormItem>
<FormItem
label=
"驳回节点:"
v-if=
"formMyCheck.radioSp === '驳回'"
prop=
"rejectToNodeId"
>
<FormItem
label=
"驳回节点:"
v-if=
"formMyCheck.radioSp === '驳回'"
prop=
"rejectToNodeId"
>
<Select
<Select
style=
"width:200px"
clearable
transfer
placeholder=
"请选择驳回节点"
v-model=
"formMyCheck.rejectToNodeId"
>
style=
"width:200px"
clearable
transfer
placeholder=
"请选择驳回节点"
v-model=
"formMyCheck.rejectToNodeId"
>
<Option
value
class=
"option-text"
>
请选择驳回节点
</Option>
<Option
value
class=
"option-text"
>
请选择驳回节点
</Option>
<Option
<Option
v-for=
"(item, index) in nodeList"
:value=
"item.value"
:label=
"item.label"
:key=
"index"
:disabled=
"item.statu > 0 ? false : true"
></Option>
v-for=
"(item, index) in nodeList"
:value=
"item.value"
:label=
"item.label"
:key=
"index"
:disabled=
"item.statu > 0 ? false : true"
></Option>
</Select>
</Select>
<RadioGroup
type=
"button"
size=
"small"
@
on-change=
"changeToNode"
>
<RadioGroup
type=
"button"
size=
"small"
@
on-change=
"changeToNode"
>
<Radio
label=
"1"
>
上一节点
</Radio>
<Radio
label=
"1"
>
上一节点
</Radio>
<Radio
label=
"2"
>
第一节点
</Radio>
<Radio
label=
"2"
>
第一节点
</Radio>
</RadioGroup>
</RadioGroup>
</FormItem>
</FormItem>
<FormItem
<FormItem
label=
"原因:"
v-if=
"
label=
"原因:"
v-if=
"
formMyCheck.radioSp === '驳回' || formMyCheck.radioSp === '终止'
formMyCheck.radioSp === '驳回' || formMyCheck.radioSp === '终止'
"
"
prop=
"comment"
>
prop=
"comment"
<Input
v-model=
"formMyCheck.comment"
style=
"width:400px;margin-left:10px"
placeholder=
"请输入原因"
/>
>
<Input
v-model=
"formMyCheck.comment"
style=
"width:400px;margin-left:10px"
placeholder=
"请输入原因"
/>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
span=
"6"
style=
"text-align:right;padding-right:40px"
>
<Col
span=
"6"
style=
"text-align:right;padding-right:40px"
>
...
@@ -68,8 +48,9 @@
...
@@ -68,8 +48,9 @@
<Button
type=
"primary"
@
click=
"checkFalse"
>
确定
</Button>
<Button
type=
"primary"
@
click=
"checkFalse"
>
确定
</Button>
</div>
</div>
</Modal>
</Modal>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
"../api"
;
import
Api
from
"../api"
;
import
Detail
from
"./detail"
;
import
Detail
from
"./detail"
;
...
@@ -111,26 +92,25 @@ export default {
...
@@ -111,26 +92,25 @@ export default {
nextNodeUserIdList
:
[],
//通过时提交的下一个节点UserId
nextNodeUserIdList
:
[],
//通过时提交的下一个节点UserId
testObj
:
{},
testObj
:
{},
ruleValidate
:
{
ruleValidate
:
{
rejectToNodeId
:
[
rejectToNodeId
:
[{
{
required
:
true
,
required
:
true
,
message
:
"请选择驳回节点"
,
message
:
"请选择驳回节点"
,
type
:
"number"
,
type
:
"number"
,
trigger
:
"change"
trigger
:
"change"
}
}],
],
comment
:
[{
comment
:
[
{
required
:
true
,
required
:
true
,
message
:
"请输入原因"
,
message
:
"请输入原因"
,
trigger
:
"blur"
trigger
:
"blur"
}
}]
]
}
}
};
};
},
},
props
:
{},
props
:
{},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
await
store
.
dispatch
(
"loadDictionary"
);
// 加载数据字典
},
},
created
()
{
created
()
{
...
@@ -149,16 +129,14 @@ export default {
...
@@ -149,16 +129,14 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
this
.
modalCheckNo
=
true
;
this
.
modalCheckNo
=
true
;
this
.
statuTitle
=
"驳回"
;
this
.
statuTitle
=
"驳回"
;
}
else
{
}
else
{}
}
});
});
}
else
{
}
else
{
this
.
$refs
[
"formValidate"
].
validate
(
valid
=>
{
this
.
$refs
[
"formValidate"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
modalCheckNo
=
true
;
this
.
modalCheckNo
=
true
;
this
.
statuTitle
=
"终止"
;
this
.
statuTitle
=
"终止"
;
}
else
{
}
else
{}
}
});
});
}
}
},
},
...
@@ -221,6 +199,7 @@ export default {
...
@@ -221,6 +199,7 @@ export default {
Api
.
pass
(
param
).
then
(
r
=>
{
Api
.
pass
(
param
).
then
(
r
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"审批通过成功"
);
this
.
$Message
.
success
(
"审批通过成功"
);
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
);
this
.
modalCheckNo
=
false
;
this
.
modalCheckNo
=
false
;
}
else
{
}
else
{
this
.
$Message
.
error
(
"审批通过失败"
);
this
.
$Message
.
error
(
"审批通过失败"
);
...
@@ -240,6 +219,7 @@ export default {
...
@@ -240,6 +219,7 @@ export default {
Api
.
reject
(
param
).
then
(
r
=>
{
Api
.
reject
(
param
).
then
(
r
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"驳回审批成功"
);
this
.
$Message
.
success
(
"驳回审批成功"
);
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
);
this
.
modalCheckNo
=
false
;
this
.
modalCheckNo
=
false
;
}
else
{
}
else
{
this
.
$Message
.
error
(
"加载失败"
);
this
.
$Message
.
error
(
"加载失败"
);
...
@@ -258,6 +238,7 @@ export default {
...
@@ -258,6 +238,7 @@ export default {
Api
.
terminate
(
param
).
then
(
r
=>
{
Api
.
terminate
(
param
).
then
(
r
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
"终止审批成功"
);
this
.
$Message
.
success
(
"终止审批成功"
);
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
);
this
.
modalCheckNo
=
false
;
this
.
modalCheckNo
=
false
;
}
else
{
}
else
{
this
.
$Message
.
error
(
"加载失败"
);
this
.
$Message
.
error
(
"加载失败"
);
...
...
pages/handle/examine2/index.vue
View file @
92e1727d
...
@@ -193,6 +193,7 @@ export default {
...
@@ -193,6 +193,7 @@ export default {
Api
.
pass
(
param
).
then
((
r
)
=>
{
Api
.
pass
(
param
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'审批通过成功'
)
this
.
$Message
.
success
(
'审批通过成功'
)
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
)
this
.
footerStatu
=
3
this
.
footerStatu
=
3
}
else
{
}
else
{
this
.
$Message
.
error
(
'审批通过失败'
)
this
.
$Message
.
error
(
'审批通过失败'
)
...
@@ -212,6 +213,7 @@ export default {
...
@@ -212,6 +213,7 @@ export default {
Api
.
reject
(
param
).
then
((
r
)
=>
{
Api
.
reject
(
param
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'驳回审批成功'
)
this
.
$Message
.
success
(
'驳回审批成功'
)
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
)
this
.
footerStatu
=
3
this
.
footerStatu
=
3
}
else
{
}
else
{
this
.
$Message
.
error
(
'加载失败'
)
this
.
$Message
.
error
(
'加载失败'
)
...
@@ -230,6 +232,7 @@ export default {
...
@@ -230,6 +232,7 @@ export default {
Api
.
terminate
(
param
).
then
((
r
)
=>
{
Api
.
terminate
(
param
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'终止审批成功'
)
this
.
$Message
.
success
(
'终止审批成功'
)
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
)
this
.
footerStatu
=
3
this
.
footerStatu
=
3
}
else
{
}
else
{
this
.
$Message
.
error
(
'加载失败'
)
this
.
$Message
.
error
(
'加载失败'
)
...
...
pages/handle/examine3/index.vue
View file @
92e1727d
<
template
>
<
template
>
<div
style=
"padding:30px 0"
>
<div
style=
"padding:30px 0"
>
<Detail
:idVal=
"detailId"
/>
<Detail
:idVal=
"detailId"
/>
<Process
ref=
"userProcess"
:idVal=
"detailId"
/>
<Process
ref=
"userProcess"
:idVal=
"detailId"
/>
<div
class=
"footers"
v-if=
"footerStatu === '2'"
style=
"text-align:left;"
>
<div
class=
"footers"
v-if=
"footerStatu === '2'"
style=
"text-align:left;"
>
<Form
<Form
:model=
"formMyCheck"
:label-width=
"100"
:rules=
"ruleValidate"
inline
ref=
"formValidate"
>
:model=
"formMyCheck"
:label-width=
"100"
:rules=
"ruleValidate"
inline
ref=
"formValidate"
>
<Row>
<Row>
<Col
span=
"18"
>
<Col
span=
"18"
>
<FormItem
label=
"审批意见:"
>
<FormItem
label=
"审批意见:"
>
...
@@ -19,44 +13,20 @@
...
@@ -19,44 +13,20 @@
<Radio
label=
"终止"
></Radio>
<Radio
label=
"终止"
></Radio>
</RadioGroup>
</RadioGroup>
</FormItem>
</FormItem>
<FormItem
<FormItem
label=
"驳回节点:"
v-if=
"formMyCheck.radioSp === '驳回'"
prop=
"rejectToNodeId"
>
label=
"驳回节点:"
<Select
style=
"width:200px"
clearable
transfer
placeholder=
"请选择驳回节点"
v-model=
"formMyCheck.rejectToNodeId"
>
v-if=
"formMyCheck.radioSp === '驳回'"
prop=
"rejectToNodeId"
>
<Select
style=
"width:200px"
clearable
transfer
placeholder=
"请选择驳回节点"
v-model=
"formMyCheck.rejectToNodeId"
>
<Option
value
class=
"option-text"
>
请选择驳回节点
</Option>
<Option
value
class=
"option-text"
>
请选择驳回节点
</Option>
<Option
<Option
v-for=
"(item, index) in nodeList"
:value=
"item.value"
:label=
"item.label"
:key=
"index"
:disabled=
"item.statu > 0 ? false : true"
></Option>
v-for=
"(item, index) in nodeList"
:value=
"item.value"
:label=
"item.label"
:key=
"index"
:disabled=
"item.statu > 0 ? false : true"
></Option>
</Select>
</Select>
<RadioGroup
type=
"button"
size=
"small"
@
on-change=
"changeToNode"
>
<RadioGroup
type=
"button"
size=
"small"
@
on-change=
"changeToNode"
>
<Radio
label=
"1"
>
上一节点
</Radio>
<Radio
label=
"1"
>
上一节点
</Radio>
<Radio
label=
"2"
>
第一节点
</Radio>
<Radio
label=
"2"
>
第一节点
</Radio>
</RadioGroup>
</RadioGroup>
</FormItem>
</FormItem>
<FormItem
<FormItem
label=
"原因:"
v-if=
"
label=
"原因:"
v-if=
"
formMyCheck.radioSp === '驳回' || formMyCheck.radioSp === '终止'
formMyCheck.radioSp === '驳回' || formMyCheck.radioSp === '终止'
"
"
prop=
"comment"
>
prop=
"comment"
<Input
v-model=
"formMyCheck.comment"
style=
"width:400px;margin-left:10px"
placeholder=
"请输入原因"
/>
>
<Input
v-model=
"formMyCheck.comment"
style=
"width:400px;margin-left:10px"
placeholder=
"请输入原因"
/>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
span=
"6"
style=
"text-align:right;padding-right:40px"
>
<Col
span=
"6"
style=
"text-align:right;padding-right:40px"
>
...
@@ -65,12 +35,7 @@
...
@@ -65,12 +35,7 @@
</Row>
</Row>
</Form>
</Form>
</div>
</div>
<Modal
<Modal
v-model=
"modalCheckNo"
title=
"订单审批"
width=
"800"
:scrollable=
"true"
>
v-model=
"modalCheckNo"
title=
"订单审批"
width=
"800"
:scrollable=
"true"
>
<br
/>
<br
/>
<h4>
<h4>
您确定
<span
class=
"new-red"
>
{{
statuTitle
}}
</span>
此工艺规程审批?
您确定
<span
class=
"new-red"
>
{{
statuTitle
}}
</span>
此工艺规程审批?
...
@@ -81,8 +46,9 @@
...
@@ -81,8 +46,9 @@
<Button
type=
"primary"
@
click=
"checkFalse"
>
确定
</Button>
<Button
type=
"primary"
@
click=
"checkFalse"
>
确定
</Button>
</div>
</div>
</Modal>
</Modal>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
'../api'
import
Api
from
'../api'
import
Detail
from
'./detail'
import
Detail
from
'./detail'
...
@@ -122,30 +88,29 @@ export default {
...
@@ -122,30 +88,29 @@ export default {
preNodeID
:
null
,
//上一个节点
preNodeID
:
null
,
//上一个节点
nextNodeUserIdList
:
[],
//通过时提交的下一个节点UserId
nextNodeUserIdList
:
[],
//通过时提交的下一个节点UserId
ruleValidate
:
{
ruleValidate
:
{
rejectToNodeId
:
[
rejectToNodeId
:
[{
{
required
:
true
,
required
:
true
,
message
:
'请选择驳回节点'
,
message
:
'请选择驳回节点'
,
type
:
'number'
,
type
:
'number'
,
trigger
:
'change'
trigger
:
'change'
}
}],
],
comment
:
[{
comment
:
[
{
required
:
true
,
required
:
true
,
message
:
'请输入原因'
,
message
:
'请输入原因'
,
trigger
:
'blur'
trigger
:
'blur'
}
}]
]
}
}
}
}
},
},
props
:
{},
props
:
{},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
},
},
created
()
{
created
()
{
this
.
currentUserId
=
this
.
$store
.
state
.
userInfo
.
userId
this
.
currentUserId
=
this
.
$store
.
state
.
userInfo
.
userId
this
.
detailId
=
this
.
$http
.
common
.
getquerystring
(
'id'
)
this
.
detailId
=
this
.
$http
.
common
.
getquerystring
(
'id'
)
this
.
footerStatu
=
this
.
$http
.
common
.
getquerystring
(
'statu'
)
this
.
footerStatu
=
this
.
$http
.
common
.
getquerystring
(
'statu'
)
this
.
getDetailInfos
(
this
.
detailId
)
this
.
getDetailInfos
(
this
.
detailId
)
...
@@ -160,16 +125,14 @@ export default {
...
@@ -160,16 +125,14 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
this
.
modalCheckNo
=
true
this
.
modalCheckNo
=
true
this
.
statuTitle
=
'驳回'
this
.
statuTitle
=
'驳回'
}
else
{
}
else
{}
}
})
})
}
else
{
}
else
{
this
.
$refs
[
'formValidate'
].
validate
((
valid
)
=>
{
this
.
$refs
[
'formValidate'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
modalCheckNo
=
true
this
.
modalCheckNo
=
true
this
.
statuTitle
=
'终止'
this
.
statuTitle
=
'终止'
}
else
{
}
else
{}
}
})
})
}
}
},
},
...
@@ -181,8 +144,8 @@ export default {
...
@@ -181,8 +144,8 @@ export default {
Api
.
getdetail
(
param
).
then
((
r
)
=>
{
Api
.
getdetail
(
param
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
currentNodeID
=
r
.
result
.
currentNodeId
this
.
currentNodeID
=
r
.
result
.
currentNodeId
this
.
passId
=
r
.
result
.
currentRecordId
this
.
passId
=
r
.
result
.
currentRecordId
this
.
nextNodeUserIdList
=
this
.
$refs
.
userProcess
.
immutData
//获取下一节点的审核人
this
.
nextNodeUserIdList
=
this
.
$refs
.
userProcess
.
immutData
//获取下一节点的审核人
this
.
getNodes
(
r
.
result
.
nodes
)
this
.
getNodes
(
r
.
result
.
nodes
)
}
else
{
}
else
{
this
.
$Message
.
error
(
'加载失败'
)
this
.
$Message
.
error
(
'加载失败'
)
...
@@ -230,6 +193,7 @@ export default {
...
@@ -230,6 +193,7 @@ export default {
Api
.
pass
(
param
).
then
((
r
)
=>
{
Api
.
pass
(
param
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'审批通过成功'
)
this
.
$Message
.
success
(
'审批通过成功'
)
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
)
this
.
footerStatu
=
3
this
.
footerStatu
=
3
}
else
{
}
else
{
this
.
$Message
.
error
(
'审批通过失败'
)
this
.
$Message
.
error
(
'审批通过失败'
)
...
@@ -248,6 +212,7 @@ export default {
...
@@ -248,6 +212,7 @@ export default {
Api
.
reject
(
param
).
then
((
r
)
=>
{
Api
.
reject
(
param
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'驳回审批成功'
)
this
.
$Message
.
success
(
'驳回审批成功'
)
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
)
this
.
footerStatu
=
3
this
.
footerStatu
=
3
}
else
{
}
else
{
this
.
$Message
.
error
(
'加载失败'
)
this
.
$Message
.
error
(
'加载失败'
)
...
@@ -265,6 +230,7 @@ export default {
...
@@ -265,6 +230,7 @@ export default {
Api
.
terminate
(
param
).
then
((
r
)
=>
{
Api
.
terminate
(
param
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'终止审批成功'
)
this
.
$Message
.
success
(
'终止审批成功'
)
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
)
this
.
footerStatu
=
3
this
.
footerStatu
=
3
}
else
{
}
else
{
this
.
$Message
.
error
(
'加载失败'
)
this
.
$Message
.
error
(
'加载失败'
)
...
...
pages/handle/examine4/index.vue
View file @
92e1727d
<
template
>
<
template
>
<div
style=
"padding:30px 0"
>
<div
style=
"padding:30px 0"
>
<Detail
:idVal=
"detailId"
/>
<Detail
:idVal=
"detailId"
/>
<Process
ref=
"userProcess"
:idVal=
"detailId"
:resulstInfo=
"testObj"
/>
<Process
ref=
"userProcess"
:idVal=
"detailId"
:resulstInfo=
"testObj"
/>
<div
class=
"footers"
v-if=
"footerStatu === '2'"
>
<div
class=
"footers"
v-if=
"footerStatu === '2'"
>
<Form
:model=
"formMyCheck"
:label-width=
"100"
>
<Form
:model=
"formMyCheck"
:label-width=
"100"
>
<Row>
<Row>
...
@@ -12,37 +12,15 @@
...
@@ -12,37 +12,15 @@
<Radio
label=
"驳回"
></Radio>
<Radio
label=
"驳回"
></Radio>
<!--
<Radio
label=
"终止"
></Radio>
-->
<!--
<Radio
label=
"终止"
></Radio>
-->
</RadioGroup>
</RadioGroup>
<Select
<Select
v-if=
"formMyCheck.radioSp === '驳回'"
style=
"width:200px"
clearable
transfer
placeholder=
"请选择驳回节点"
v-model=
"formMyCheck.rejectToNodeId"
>
v-if=
"formMyCheck.radioSp === '驳回'"
style=
"width:200px"
clearable
transfer
placeholder=
"请选择驳回节点"
v-model=
"formMyCheck.rejectToNodeId"
>
<Option
value
class=
"option-text"
>
请选择驳回节点
</Option>
<Option
value
class=
"option-text"
>
请选择驳回节点
</Option>
<Option
<Option
v-for=
"(item, index) in nodeList"
:value=
"item.value"
:label=
"item.label"
:key=
"index"
:disabled=
"item.statu > 0 ? false : true"
></Option>
v-for=
"(item, index) in nodeList"
:value=
"item.value"
:label=
"item.label"
:key=
"index"
:disabled=
"item.statu > 0 ? false : true"
></Option>
</Select>
</Select>
<RadioGroup
<RadioGroup
v-if=
"formMyCheck.radioSp === '驳回'"
type=
"button"
size=
"small"
@
on-change=
"changeToNode"
>
v-if=
"formMyCheck.radioSp === '驳回'"
type=
"button"
size=
"small"
@
on-change=
"changeToNode"
>
<Radio
label=
"1"
>
上一节点
</Radio>
<Radio
label=
"1"
>
上一节点
</Radio>
<Radio
label=
"2"
>
第一节点
</Radio>
<Radio
label=
"2"
>
第一节点
</Radio>
</RadioGroup>
</RadioGroup>
<Input
<Input
v-if=
"formMyCheck.radioSp === '驳回'"
v-model=
"formMyCheck.comment"
style=
"width:400px;margin-left:10px"
placeholder=
"请填写原因"
/>
v-if=
"formMyCheck.radioSp === '驳回'"
v-model=
"formMyCheck.comment"
style=
"width:400px;margin-left:10px"
placeholder=
"请填写原因"
/>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
span=
"6"
style=
"text-align:right;padding-right:40px"
>
<Col
span=
"6"
style=
"text-align:right;padding-right:40px"
>
...
@@ -52,12 +30,7 @@
...
@@ -52,12 +30,7 @@
</Form>
</Form>
</div>
</div>
<Modal
<Modal
v-model=
"modalCheckNo"
title=
"材料消耗单审批"
width=
"800"
:scrollable=
"true"
>
v-model=
"modalCheckNo"
title=
"材料消耗单审批"
width=
"800"
:scrollable=
"true"
>
<br
/>
<br
/>
<h4>
<h4>
您确定
<span
class=
"new-red"
>
{{
statuTitle
}}
</span>
此材料消耗单审批?
您确定
<span
class=
"new-red"
>
{{
statuTitle
}}
</span>
此材料消耗单审批?
...
@@ -68,8 +41,9 @@
...
@@ -68,8 +41,9 @@
<Button
type=
"primary"
@
click=
"checkFalse"
>
确定
</Button>
<Button
type=
"primary"
@
click=
"checkFalse"
>
确定
</Button>
</div>
</div>
</Modal>
</Modal>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
'../api'
import
Api
from
'../api'
import
Detail
from
'./detail'
import
Detail
from
'./detail'
...
@@ -84,7 +58,7 @@ export default {
...
@@ -84,7 +58,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
currentUserId
:
0
,
currentUserId
:
0
,
formMyCheck
:
{
formMyCheck
:
{
radioSp
:
'通过'
,
radioSp
:
'通过'
,
comment
:
''
,
comment
:
''
,
...
@@ -108,15 +82,18 @@ export default {
...
@@ -108,15 +82,18 @@ export default {
firstNodeID
:
null
,
//第一个节点
firstNodeID
:
null
,
//第一个节点
preNodeID
:
null
,
//上一个节点
preNodeID
:
null
,
//上一个节点
nextNodeUserIdList
:
[],
//通过时提交的下一个节点UserId
nextNodeUserIdList
:
[],
//通过时提交的下一个节点UserId
testObj
:
{}
testObj
:
{}
}
}
},
},
props
:
{},
props
:
{},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
},
},
created
()
{
created
()
{
this
.
currentUserId
=
this
.
$store
.
state
.
userInfo
.
userId
this
.
currentUserId
=
this
.
$store
.
state
.
userInfo
.
userId
this
.
detailId
=
this
.
$http
.
common
.
getquerystring
(
'id'
)
this
.
detailId
=
this
.
$http
.
common
.
getquerystring
(
'id'
)
this
.
footerStatu
=
this
.
$http
.
common
.
getquerystring
(
'statu'
)
this
.
footerStatu
=
this
.
$http
.
common
.
getquerystring
(
'statu'
)
this
.
getDetailInfos
(
this
.
detailId
)
this
.
getDetailInfos
(
this
.
detailId
)
...
@@ -128,11 +105,11 @@ export default {
...
@@ -128,11 +105,11 @@ export default {
if
(
this
.
formMyCheck
.
radioSp
==
'通过'
)
{
if
(
this
.
formMyCheck
.
radioSp
==
'通过'
)
{
this
.
checkOk
()
this
.
checkOk
()
}
else
if
(
this
.
formMyCheck
.
radioSp
==
'驳回'
)
{
}
else
if
(
this
.
formMyCheck
.
radioSp
==
'驳回'
)
{
if
(
rejectToNode
==
null
)
{
if
(
rejectToNode
==
null
)
{
this
.
$Message
.
error
(
'请选择驳回节点'
)
this
.
$Message
.
error
(
'请选择驳回节点'
)
return
return
}
}
if
(
commasge
==
''
)
{
if
(
commasge
==
''
)
{
this
.
$Message
.
error
(
'请填写驳回原因'
)
this
.
$Message
.
error
(
'请填写驳回原因'
)
return
return
}
}
...
@@ -154,11 +131,11 @@ export default {
...
@@ -154,11 +131,11 @@ export default {
Id
:
idVal
Id
:
idVal
}
}
Api
.
getdetail
(
param
).
then
((
r
)
=>
{
Api
.
getdetail
(
param
).
then
((
r
)
=>
{
this
.
testObj
=
r
this
.
testObj
=
r
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
currentNodeID
=
r
.
result
.
currentNodeId
this
.
currentNodeID
=
r
.
result
.
currentNodeId
this
.
passId
=
r
.
result
.
currentRecordId
this
.
passId
=
r
.
result
.
currentRecordId
this
.
nextNodeUserIdList
=
this
.
$refs
.
userProcess
.
immutData
//获取下一节点的审核人
this
.
nextNodeUserIdList
=
this
.
$refs
.
userProcess
.
immutData
//获取下一节点的审核人
this
.
getNodes
(
r
.
result
.
nodes
)
this
.
getNodes
(
r
.
result
.
nodes
)
}
else
{
}
else
{
this
.
$Message
.
error
(
'加载失败'
)
this
.
$Message
.
error
(
'加载失败'
)
...
@@ -187,7 +164,6 @@ export default {
...
@@ -187,7 +164,6 @@ export default {
this
.
preNodeID
=
this
.
nodeList
[
0
].
value
this
.
preNodeID
=
this
.
nodeList
[
0
].
value
}
}
},
},
changeToNode
(
val
)
{
changeToNode
(
val
)
{
if
(
val
==
'1'
)
{
if
(
val
==
'1'
)
{
...
@@ -207,6 +183,7 @@ export default {
...
@@ -207,6 +183,7 @@ export default {
Api
.
pass
(
param
).
then
((
r
)
=>
{
Api
.
pass
(
param
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'审批通过成功'
)
this
.
$Message
.
success
(
'审批通过成功'
)
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
)
this
.
footerStatu
=
3
this
.
footerStatu
=
3
}
else
{
}
else
{
this
.
$Message
.
error
(
'审批通过失败'
)
this
.
$Message
.
error
(
'审批通过失败'
)
...
@@ -224,6 +201,7 @@ export default {
...
@@ -224,6 +201,7 @@ export default {
Api
.
reject
(
param
).
then
((
r
)
=>
{
Api
.
reject
(
param
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'驳回审批成功'
)
this
.
$Message
.
success
(
'驳回审批成功'
)
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
)
this
.
footerStatu
=
3
this
.
footerStatu
=
3
}
else
{
}
else
{
this
.
$Message
.
error
(
'加载失败'
)
this
.
$Message
.
error
(
'加载失败'
)
...
@@ -240,6 +218,7 @@ export default {
...
@@ -240,6 +218,7 @@ export default {
Api
.
terminate
(
param
).
then
((
r
)
=>
{
Api
.
terminate
(
param
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'终止审批成功'
)
this
.
$Message
.
success
(
'终止审批成功'
)
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
)
this
.
footerStatu
=
3
this
.
footerStatu
=
3
}
else
{
}
else
{
this
.
$Message
.
error
(
'加载失败'
)
this
.
$Message
.
error
(
'加载失败'
)
...
@@ -255,7 +234,7 @@ export default {
...
@@ -255,7 +234,7 @@ export default {
// else if (this.formMyCheck.radioSp == '终止') {
// else if (this.formMyCheck.radioSp == '终止') {
// this.checkCancel()
// this.checkCancel()
// }
// }
this
.
footerStatu
=
3
this
.
footerStatu
=
3
},
},
l
(
key
)
{
l
(
key
)
{
key
=
'MaterialPlacode'
+
'.'
+
key
key
=
'MaterialPlacode'
+
'.'
+
key
...
...
pages/handle/examine6/index.vue
View file @
92e1727d
<
template
>
<
template
>
<div
style=
"padding:30px 0"
>
<div
style=
"padding:30px 0"
>
<Detail
:idVal=
"detailId"
/>
<Detail
:idVal=
"detailId"
/>
<Process
ref=
"userProcess"
:idVal=
"detailId"
:resulstInfo=
"testObj"
/>
<Process
ref=
"userProcess"
:idVal=
"detailId"
:resulstInfo=
"testObj"
/>
<div
class=
"footers"
v-if=
"footerStatu === '2'"
style=
"text-align:left;"
>
<div
class=
"footers"
v-if=
"footerStatu === '2'"
style=
"text-align:left;"
>
<Form
<Form
:model=
"formMyCheck"
:label-width=
"100"
:rules=
"ruleValidate"
inline
ref=
"formValidate"
>
:model=
"formMyCheck"
:label-width=
"100"
:rules=
"ruleValidate"
inline
ref=
"formValidate"
>
<Row>
<Row>
<Col
span=
"18"
>
<Col
span=
"18"
>
<FormItem
label=
"审批意见:"
>
<FormItem
label=
"审批意见:"
>
...
@@ -19,44 +13,20 @@
...
@@ -19,44 +13,20 @@
<Radio
label=
"终止"
></Radio>
<Radio
label=
"终止"
></Radio>
</RadioGroup>
</RadioGroup>
</FormItem>
</FormItem>
<FormItem
<FormItem
label=
"驳回节点:"
v-if=
"formMyCheck.radioSp === '驳回'"
prop=
"rejectToNodeId"
>
label=
"驳回节点:"
<Select
style=
"width:200px"
clearable
transfer
placeholder=
"请选择驳回节点"
v-model=
"formMyCheck.rejectToNodeId"
>
v-if=
"formMyCheck.radioSp === '驳回'"
prop=
"rejectToNodeId"
>
<Select
style=
"width:200px"
clearable
transfer
placeholder=
"请选择驳回节点"
v-model=
"formMyCheck.rejectToNodeId"
>
<Option
value
class=
"option-text"
>
请选择驳回节点
</Option>
<Option
value
class=
"option-text"
>
请选择驳回节点
</Option>
<Option
<Option
v-for=
"(item, index) in nodeList"
:value=
"item.value"
:label=
"item.label"
:key=
"index"
:disabled=
"item.statu > 0 ? false : true"
></Option>
v-for=
"(item, index) in nodeList"
:value=
"item.value"
:label=
"item.label"
:key=
"index"
:disabled=
"item.statu > 0 ? false : true"
></Option>
</Select>
</Select>
<RadioGroup
type=
"button"
size=
"small"
@
on-change=
"changeToNode"
>
<RadioGroup
type=
"button"
size=
"small"
@
on-change=
"changeToNode"
>
<Radio
label=
"1"
>
上一节点
</Radio>
<Radio
label=
"1"
>
上一节点
</Radio>
<Radio
label=
"2"
>
第一节点
</Radio>
<Radio
label=
"2"
>
第一节点
</Radio>
</RadioGroup>
</RadioGroup>
</FormItem>
</FormItem>
<FormItem
<FormItem
label=
"原因:"
v-if=
"
label=
"原因:"
v-if=
"
formMyCheck.radioSp === '驳回' || formMyCheck.radioSp === '终止'
formMyCheck.radioSp === '驳回' || formMyCheck.radioSp === '终止'
"
"
prop=
"comment"
>
prop=
"comment"
<Input
v-model=
"formMyCheck.comment"
style=
"width:400px;margin-left:10px"
placeholder=
"请输入原因"
/>
>
<Input
v-model=
"formMyCheck.comment"
style=
"width:400px;margin-left:10px"
placeholder=
"请输入原因"
/>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
span=
"6"
style=
"text-align:right;padding-right:40px"
>
<Col
span=
"6"
style=
"text-align:right;padding-right:40px"
>
...
@@ -115,8 +85,9 @@
...
@@ -115,8 +85,9 @@
<Button
type=
"primary"
@
click=
"checkFalse"
>
确定
</Button>
<Button
type=
"primary"
@
click=
"checkFalse"
>
确定
</Button>
</div>
</div>
</Modal>
</Modal>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
'../api'
import
Api
from
'../api'
import
Detail
from
'./detail'
import
Detail
from
'./detail'
...
@@ -158,30 +129,29 @@ export default {
...
@@ -158,30 +129,29 @@ export default {
nextNodeUserIdList
:
[],
//通过时提交的下一个节点UserId
nextNodeUserIdList
:
[],
//通过时提交的下一个节点UserId
testObj
:
{},
testObj
:
{},
ruleValidate
:
{
ruleValidate
:
{
rejectToNodeId
:
[
rejectToNodeId
:
[{
{
required
:
true
,
required
:
true
,
message
:
'请选择驳回节点'
,
message
:
'请选择驳回节点'
,
type
:
'number'
,
type
:
'number'
,
trigger
:
'change'
trigger
:
'change'
}
}],
],
comment
:
[{
comment
:
[
{
required
:
true
,
required
:
true
,
message
:
'请输入原因'
,
message
:
'请输入原因'
,
trigger
:
'blur'
trigger
:
'blur'
}
}]
]
}
}
}
}
},
},
props
:
{},
props
:
{},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
},
},
created
()
{
created
()
{
this
.
currentUserId
=
this
.
$store
.
state
.
userInfo
.
userId
this
.
currentUserId
=
this
.
$store
.
state
.
userInfo
.
userId
this
.
detailId
=
this
.
$http
.
common
.
getquerystring
(
'id'
)
this
.
detailId
=
this
.
$http
.
common
.
getquerystring
(
'id'
)
this
.
footerStatu
=
this
.
$http
.
common
.
getquerystring
(
'statu'
)
this
.
footerStatu
=
this
.
$http
.
common
.
getquerystring
(
'statu'
)
console
.
log
(
this
.
detailId
)
console
.
log
(
this
.
detailId
)
...
@@ -198,16 +168,14 @@ export default {
...
@@ -198,16 +168,14 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
this
.
modalCheckNo
=
true
this
.
modalCheckNo
=
true
this
.
statuTitle
=
'驳回'
this
.
statuTitle
=
'驳回'
}
else
{
}
else
{}
}
})
})
}
else
{
}
else
{
this
.
$refs
[
'formValidate'
].
validate
((
valid
)
=>
{
this
.
$refs
[
'formValidate'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
modalCheckNo
=
true
this
.
modalCheckNo
=
true
this
.
statuTitle
=
'终止'
this
.
statuTitle
=
'终止'
}
else
{
}
else
{}
}
})
})
}
}
},
},
...
@@ -220,8 +188,8 @@ export default {
...
@@ -220,8 +188,8 @@ export default {
this
.
testObj
=
r
this
.
testObj
=
r
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
currentNodeID
=
r
.
result
.
currentNodeId
this
.
currentNodeID
=
r
.
result
.
currentNodeId
this
.
passId
=
r
.
result
.
currentRecordId
this
.
passId
=
r
.
result
.
currentRecordId
this
.
nextNodeUserIdList
=
this
.
$refs
.
userProcess
.
immutData
//获取下一节点的审核人
this
.
nextNodeUserIdList
=
this
.
$refs
.
userProcess
.
immutData
//获取下一节点的审核人
this
.
getNodes
(
r
.
result
.
nodes
)
this
.
getNodes
(
r
.
result
.
nodes
)
}
else
{
}
else
{
this
.
$Message
.
error
(
'加载失败'
)
this
.
$Message
.
error
(
'加载失败'
)
...
@@ -263,7 +231,7 @@ export default {
...
@@ -263,7 +231,7 @@ export default {
let
param
=
{
let
param
=
{
id
:
this
.
passId
,
id
:
this
.
passId
,
comment
:
''
,
comment
:
''
,
nextOperationIdList
:
this
.
nextNodeUserIdList
,
//this.nextNodeUserIdList
nextOperationIdList
:
this
.
nextNodeUserIdList
,
//this.nextNodeUserIdList
data
:
{}
data
:
{}
}
}
console
.
log
(
param
)
console
.
log
(
param
)
...
@@ -271,7 +239,8 @@ export default {
...
@@ -271,7 +239,8 @@ export default {
Api
.
pass
(
param
).
then
((
r
)
=>
{
Api
.
pass
(
param
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'审批通过成功'
)
this
.
$Message
.
success
(
'审批通过成功'
)
this
.
footerStatu
=
3
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
)
this
.
footerStatu
=
3
this
.
modalCheckNo
=
false
this
.
modalCheckNo
=
false
}
else
{
}
else
{
this
.
$Message
.
error
(
'审批通过失败'
)
this
.
$Message
.
error
(
'审批通过失败'
)
...
@@ -291,7 +260,8 @@ export default {
...
@@ -291,7 +260,8 @@ export default {
Api
.
reject
(
param
).
then
((
r
)
=>
{
Api
.
reject
(
param
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'驳回审批成功'
)
this
.
$Message
.
success
(
'驳回审批成功'
)
this
.
footerStatu
=
3
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
)
this
.
footerStatu
=
3
}
else
{
}
else
{
this
.
$Message
.
error
(
'加载失败'
)
this
.
$Message
.
error
(
'加载失败'
)
}
}
...
@@ -309,7 +279,8 @@ export default {
...
@@ -309,7 +279,8 @@ export default {
Api
.
terminate
(
param
).
then
((
r
)
=>
{
Api
.
terminate
(
param
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'终止审批成功'
)
this
.
$Message
.
success
(
'终止审批成功'
)
this
.
footerStatu
=
3
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
)
this
.
footerStatu
=
3
}
else
{
}
else
{
this
.
$Message
.
error
(
'加载失败'
)
this
.
$Message
.
error
(
'加载失败'
)
}
}
...
...
pages/handle/examine7/index.vue
View file @
92e1727d
This diff is collapsed.
Click to expand it.
pages/handle/examine8/index.vue
View file @
92e1727d
This diff is collapsed.
Click to expand it.
pages/handle/examine9/index.vue
View file @
92e1727d
<
template
>
<
template
>
<div
style=
"padding:30px 0"
>
<div
style=
"padding:30px 0"
>
<Detail
:idVal=
"detailId"
/>
<Detail
:idVal=
"detailId"
/>
<Process
ref=
"userProcess"
:idVal=
"detailId"
:resulstInfo=
"testObj"
/>
<Process
ref=
"userProcess"
:idVal=
"detailId"
:resulstInfo=
"testObj"
/>
<div
class=
"footers"
v-if=
"footerStatu === '2'"
style=
"text-align:left;"
>
<div
class=
"footers"
v-if=
"footerStatu === '2'"
style=
"text-align:left;"
>
...
@@ -14,39 +14,19 @@
...
@@ -14,39 +14,19 @@
</RadioGroup>
</RadioGroup>
</FormItem>
</FormItem>
<FormItem
label=
"驳回节点:"
v-if=
"formMyCheck.radioSp === '驳回'"
prop=
"rejectToNodeId"
>
<FormItem
label=
"驳回节点:"
v-if=
"formMyCheck.radioSp === '驳回'"
prop=
"rejectToNodeId"
>
<Select
<Select
style=
"width:200px"
clearable
transfer
placeholder=
"请选择驳回节点"
v-model=
"formMyCheck.rejectToNodeId"
>
style=
"width:200px"
clearable
transfer
placeholder=
"请选择驳回节点"
v-model=
"formMyCheck.rejectToNodeId"
>
<Option
value
class=
"option-text"
>
请选择驳回节点
</Option>
<Option
value
class=
"option-text"
>
请选择驳回节点
</Option>
<Option
<Option
v-for=
"(item, index) in nodeList"
:value=
"item.value"
:label=
"item.label"
:key=
"index"
:disabled=
"item.statu > 0 ? false : true"
></Option>
v-for=
"(item, index) in nodeList"
:value=
"item.value"
:label=
"item.label"
:key=
"index"
:disabled=
"item.statu > 0 ? false : true"
></Option>
</Select>
</Select>
<RadioGroup
type=
"button"
size=
"small"
@
on-change=
"changeToNode"
>
<RadioGroup
type=
"button"
size=
"small"
@
on-change=
"changeToNode"
>
<Radio
label=
"1"
>
上一节点
</Radio>
<Radio
label=
"1"
>
上一节点
</Radio>
<Radio
label=
"2"
>
第一节点
</Radio>
<Radio
label=
"2"
>
第一节点
</Radio>
</RadioGroup>
</RadioGroup>
</FormItem>
</FormItem>
<FormItem
<FormItem
label=
"原因:"
v-if=
"
label=
"原因:"
v-if=
"
formMyCheck.radioSp === '驳回' || formMyCheck.radioSp === '终止'
formMyCheck.radioSp === '驳回' || formMyCheck.radioSp === '终止'
"
"
prop=
"comment"
>
prop=
"comment"
<Input
v-model=
"formMyCheck.comment"
style=
"width:400px;margin-left:10px"
placeholder=
"请输入原因"
/>
>
<Input
v-model=
"formMyCheck.comment"
style=
"width:400px;margin-left:10px"
placeholder=
"请输入原因"
/>
</FormItem>
</FormItem>
</Col>
</Col>
<Col
span=
"6"
style=
"text-align:right;padding-right:40px"
>
<Col
span=
"6"
style=
"text-align:right;padding-right:40px"
>
...
@@ -67,8 +47,9 @@
...
@@ -67,8 +47,9 @@
<Button
type=
"primary"
@
click=
"checkFalse"
>
确定
</Button>
<Button
type=
"primary"
@
click=
"checkFalse"
>
确定
</Button>
</div>
</div>
</Modal>
</Modal>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Api
from
'../api'
import
Api
from
'../api'
import
Detail
from
'./detail'
import
Detail
from
'./detail'
...
@@ -110,30 +91,29 @@ export default {
...
@@ -110,30 +91,29 @@ export default {
nextNodeUserIdList
:
[],
//通过时提交的下一个节点UserId
nextNodeUserIdList
:
[],
//通过时提交的下一个节点UserId
testObj
:
{},
testObj
:
{},
ruleValidate
:
{
ruleValidate
:
{
rejectToNodeId
:
[
rejectToNodeId
:
[{
{
required
:
true
,
required
:
true
,
message
:
'请选择驳回节点'
,
message
:
'请选择驳回节点'
,
type
:
'number'
,
type
:
'number'
,
trigger
:
'change'
trigger
:
'change'
}
}],
],
comment
:
[{
comment
:
[
{
required
:
true
,
required
:
true
,
message
:
'请输入原因'
,
message
:
'请输入原因'
,
trigger
:
'blur'
trigger
:
'blur'
}
}]
]
}
}
}
}
},
},
props
:
{},
props
:
{},
async
fetch
({
store
,
params
})
{
async
fetch
({
store
,
params
})
{
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
await
store
.
dispatch
(
'loadDictionary'
)
// 加载数据字典
},
},
created
()
{
created
()
{
this
.
currentUserId
=
this
.
$store
.
state
.
userInfo
.
userId
this
.
currentUserId
=
this
.
$store
.
state
.
userInfo
.
userId
this
.
detailId
=
this
.
$http
.
common
.
getquerystring
(
'id'
)
this
.
detailId
=
this
.
$http
.
common
.
getquerystring
(
'id'
)
this
.
footerStatu
=
this
.
$http
.
common
.
getquerystring
(
'statu'
)
this
.
footerStatu
=
this
.
$http
.
common
.
getquerystring
(
'statu'
)
this
.
getDetailInfos
(
this
.
detailId
)
this
.
getDetailInfos
(
this
.
detailId
)
...
@@ -147,16 +127,14 @@ export default {
...
@@ -147,16 +127,14 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
this
.
modalCheckNo
=
true
this
.
modalCheckNo
=
true
this
.
statuTitle
=
'驳回'
this
.
statuTitle
=
'驳回'
}
else
{
}
else
{}
}
})
})
}
else
{
}
else
{
this
.
$refs
[
'formValidate'
].
validate
((
valid
)
=>
{
this
.
$refs
[
'formValidate'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
modalCheckNo
=
true
this
.
modalCheckNo
=
true
this
.
statuTitle
=
'终止'
this
.
statuTitle
=
'终止'
}
else
{
}
else
{}
}
})
})
}
}
},
},
...
@@ -169,8 +147,8 @@ export default {
...
@@ -169,8 +147,8 @@ export default {
this
.
testObj
=
r
this
.
testObj
=
r
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
currentNodeID
=
r
.
result
.
currentNodeId
this
.
currentNodeID
=
r
.
result
.
currentNodeId
this
.
passId
=
r
.
result
.
currentRecordId
this
.
passId
=
r
.
result
.
currentRecordId
this
.
nextNodeUserIdList
=
this
.
$refs
.
userProcess
.
immutData
//获取下一节点的审核人
this
.
nextNodeUserIdList
=
this
.
$refs
.
userProcess
.
immutData
//获取下一节点的审核人
this
.
getNodes
(
r
.
result
.
nodes
)
this
.
getNodes
(
r
.
result
.
nodes
)
}
else
{
}
else
{
this
.
$Message
.
error
(
'加载失败'
)
this
.
$Message
.
error
(
'加载失败'
)
...
@@ -219,6 +197,7 @@ export default {
...
@@ -219,6 +197,7 @@ export default {
Api
.
pass
(
param
).
then
((
r
)
=>
{
Api
.
pass
(
param
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'审批通过成功'
)
this
.
$Message
.
success
(
'审批通过成功'
)
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
)
this
.
modalCheckNo
=
false
this
.
modalCheckNo
=
false
}
else
{
}
else
{
this
.
$Message
.
error
(
'审批通过失败'
)
this
.
$Message
.
error
(
'审批通过失败'
)
...
@@ -238,6 +217,7 @@ export default {
...
@@ -238,6 +217,7 @@ export default {
Api
.
reject
(
param
).
then
((
r
)
=>
{
Api
.
reject
(
param
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'驳回审批成功'
)
this
.
$Message
.
success
(
'驳回审批成功'
)
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
)
}
else
{
}
else
{
this
.
$Message
.
error
(
'加载失败'
)
this
.
$Message
.
error
(
'加载失败'
)
}
}
...
@@ -255,6 +235,7 @@ export default {
...
@@ -255,6 +235,7 @@ export default {
Api
.
terminate
(
param
).
then
((
r
)
=>
{
Api
.
terminate
(
param
).
then
((
r
)
=>
{
if
(
r
.
success
)
{
if
(
r
.
success
)
{
this
.
$Message
.
success
(
'终止审批成功'
)
this
.
$Message
.
success
(
'终止审批成功'
)
this
.
$refs
.
userProcess
.
load
(
this
.
detailId
)
}
else
{
}
else
{
this
.
$Message
.
error
(
'加载失败'
)
this
.
$Message
.
error
(
'加载失败'
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment