Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
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
常超
founder_vue
Commits
9ceaff49
Commit
9ceaff49
authored
Dec 09, 2021
by
叶富雄
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev_xzeq' into dev_xzeq
parents
b19a32bc
c6ff7ddd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
102 additions
and
7 deletions
+102
-7
src/api/xshb/xsbk.js
+12
-2
src/views/xshb/xsbk/xsbk.vue
+90
-5
No files found.
src/api/xshb/xsbk.js
View file @
9ceaff49
...
...
@@ -41,4 +41,14 @@ export const getTaskResult = params =>
// 1.2.4.7 线索布控删除
export
const
deleteBkxx
=
params
=>
post
(
`
${
base
.
alyIP
}
/xsbk/deleteBkxx`
,
params
);
\ No newline at end of file
post
(
`
${
base
.
alyIP
}
/xsbk/deleteBkxx`
,
params
);
// 1.2.4.7 提请审批
export
const
bkxxTqsp
=
params
=>
post
(
`
${
base
.
alyIP
}
/xsbk/bkxxTqsp`
,
params
);
// 1.2.4.7 撤回审批
export
const
bkxxChsp
=
params
=>
post
(
`
${
base
.
alyIP
}
/xsbk/bkxxChsp`
,
params
);
\ No newline at end of file
src/views/xshb/xsbk/xsbk.vue
View file @
9ceaff49
...
...
@@ -17,30 +17,59 @@
</
template
>
<
template
#
btnGroup=
"scope"
>
<span
v-if=
"scope.scope.row.bkzt == '01' || scope.scope.row.bkzt == '03'"
v-if=
"
scope.scope.row.bkzt == '0' &&
(scope.scope.row.spjgPdbz == '3' || scope.scope.row.spjgPdbz == '2')
"
class=
"hbyp"
@
click=
"edit(scope.scope)"
>
修改
</span
>
<span
class=
"hbyp"
@
click=
"dele(scope.scope)"
>
删除
</span>
<span
v-if=
"scope.scope.row.bkzt == '01'"
v-if=
"
scope.scope.row.bkzt == '0' &&
(scope.scope.row.spjgPdbz == '3' || scope.scope.row.spjgPdbz == '2')
"
class=
"hbyp"
@
click=
"dele(scope.scope)"
>
删除
</span
>
<span
v-if=
"scope.scope.row.bkzt == '1'"
class=
"hbyp"
@
click=
"toCk(scope.scope)"
>
撤控
</span
>
<span
v-if=
"scope.scope.row.bkzt == '0
1
'"
v-if=
"scope.scope.row.bkzt == '0
' && scope.scope.row.spjgPdbz == '0
'"
class=
"hbyp"
@
click=
"toXXSP(scope.scope)"
>
审批
</span
>
<span
v-if=
"scope.scope.row.bkzt == '02'"
v-if=
"
(scope.scope.row.bkzt == '1' || scope.scope.row.bkzt == '2') &&
scope.scope.row.sfybkjg == '1'
"
class=
"hbyp"
@
click=
"toJGCX(scope.scope)"
>
结果查询
</span
>
<span
v-if=
"
scope.scope.row.bkzt == '0' &&
(scope.scope.row.spjgPdbz != '0' || scope.scope.row.spjgPdbz != '1')
"
class=
"hbyp"
@
click=
"tqsp(scope.scope)"
>
提请审批
</span
>
<span
v-if=
"scope.scope.row.bkzt == '0' && scope.scope.row.spjgPdbz == '0'"
class=
"hbyp"
@
click=
"chsp(scope.scope)"
>
撤回审批
</span
>
</
template
>
</right-content>
</div>
...
...
@@ -53,6 +82,8 @@ import {
bkxxSp
,
getTaskResult
,
deleteBkxx
,
bkxxTqsp
,
bkxxChsp
,
}
from
"@/api/xshb/xsbk.js"
;
export
default
{
name
:
"xsbk"
,
...
...
@@ -189,6 +220,60 @@ export default {
this
.
$store
.
commit
(
"user/SET_Menu"
,
this
.
Menu
);
},
methods
:
{
// 提请审批
tqsp
(
scope
)
{
this
.
$confirm
(
"是否提请审批, 是否继续?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
})
.
then
(()
=>
{
bkxxTqsp
({
xxzjbh
:
scope
.
row
.
xxzjbh
,
}).
then
((
res
)
=>
{
if
(
res
.
success
&&
res
.
code
==
200
)
{
this
.
$message
({
type
:
"success"
,
message
:
"提请审批成功"
,
});
this
.
$refs
.
rightContent
.
doQuery
(
"yes"
);
}
});
})
.
catch
(()
=>
{
this
.
$message
({
type
:
"info"
,
message
:
"已取消提请审批"
,
});
});
},
// 撤回审批
chsp
(
scope
)
{
this
.
$confirm
(
"是否撤回审批, 是否继续?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
})
.
then
(()
=>
{
bkxxChsp
({
xxzjbh
:
scope
.
row
.
xxzjbh
,
}).
then
((
res
)
=>
{
if
(
res
.
success
&&
res
.
code
==
200
)
{
this
.
$message
({
type
:
"success"
,
message
:
"撤回审批成功"
,
});
this
.
$refs
.
rightContent
.
doQuery
(
"yes"
);
}
});
})
.
catch
(()
=>
{
this
.
$message
({
type
:
"info"
,
message
:
"已取消撤回审批"
,
});
});
},
/**
* @description 新增
*/
...
...
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