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
1e88e991
authored
2024-02-06 16:53:43 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
受理申请
1 parent
7a4e9519
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
123 additions
and
121 deletions
src/views/ywbl/ywsq/components/cfdj.vue
src/views/ywbl/ywsq/components/diyaq.vue
src/views/ywbl/ywsq/components/cfdj.vue
View file @
1e88e99
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-02-0
2 14:56:22
* @LastEditTime: 2024-02-0
6 14:43:33
-->
<
template
>
<div
class=
"from-clues"
>
...
...
@@ -76,7 +76,7 @@
</div>
<div
class=
"submit_button"
>
<el-button
@
click=
"$popupCacel"
>
取消
</el-button>
<el-button
type=
"primary"
plain
@
click=
"
submitForm
"
:loading=
"loading"
v-if=
"sqywInfo.isworkFrame"
>
添加单元
</el-button>
<el-button
type=
"primary"
plain
@
click=
"
handleAdd
"
:loading=
"loading"
v-if=
"sqywInfo.isworkFrame"
>
添加单元
</el-button>
<el-button
type=
"primary"
plain
@
click=
"submitForm"
:loading=
"loading"
v-else
>
发起申请
</el-button>
</div>
</div>
...
...
@@ -155,6 +155,35 @@
* @description: submitForm
* @author: renchao
*/
handleAdd
()
{
let
that
=
this
this
.
loading
=
true
;
store
.
dispatch
(
'user/reMenuRefresh'
,
false
)
againAddSldy
({
bsmSqyw
:
that
.
sqywInfo
.
bsmSqyw
,
bdcdysz
:
that
.
bdcdysz
,
bsmSlsq
:
that
.
sqywInfo
.
bsmSlsq
,
}).
then
(
res
=>
{
that
.
loading
=
false
if
(
res
.
code
==
200
)
{
if
(
this
.
sqywInfo
.
sqywdylx
!=
"1"
)
{
that
.
bdcdysz
=
[]
that
.
$refs
.
table
.
clearSelection
()
}
store
.
dispatch
(
'user/reMenuRefresh'
,
true
)
that
.
queryClick
()
that
.
$message
({
showClose
:
true
,
message
:
'添加成功'
,
type
:
'success'
})
}
else
{
that
.
$message
.
error
(
res
.
message
);
}
}).
catch
(()
=>
{
that
.
loading
=
false
})
},
submitForm
()
{
let
that
=
this
if
(
this
.
bdcdysz
.
length
==
0
)
{
...
...
@@ -162,83 +191,55 @@
return
;
}
this
.
loading
=
true
if
(
this
.
sqywInfo
.
isworkFrame
)
{
store
.
dispatch
(
'user/reMenuRefresh'
,
false
)
againAddSldy
({
if
(
!
that
.
isJump
)
{
startBusinessFlow
({
bsmSqyw
:
that
.
sqywInfo
.
bsmSqyw
,
bdcdysz
:
that
.
bdcdysz
,
bsmSlsq
:
that
.
sqywInfo
.
bsmSlsq
,
}).
then
(
res
=>
{
}).
then
((
res
)
=>
{
that
.
loading
=
false
if
(
res
.
code
==
200
)
{
if
(
this
.
sqywInfo
.
sqywdylx
!=
"1"
)
{
that
.
bdcdysz
=
[]
that
.
$refs
.
table
.
clearSelection
()
that
.
$message
({
showClose
:
true
,
message
:
"发起申请成功"
,
type
:
"success"
,
});
if
(
!
that
.
isJump
)
{
that
.
jump
(
res
.
result
,
that
.
sqywInfo
.
djywbm
);
}
else
{
store
.
dispatch
(
'user/refreshPage'
,
true
);
}
that
.
$popupCacel
()
}
else
{
if
(
res
.
result
&&
res
.
result
.
length
>
0
)
{
ywPopupDialog
(
"申请错误明细"
,
"components/ywdialog"
,
{
result
:
res
.
result
},
'36%'
,
true
)
}
else
{
ywPopupDialog
(
"申请错误明细"
,
"components/ywdialog"
,
{
message
:
res
.
message
},
'36%'
,
true
)
}
store
.
dispatch
(
'user/reMenuRefresh'
,
true
)
that
.
queryClick
()
}
}).
catch
(()
=>
{
that
.
loading
=
false
})
}
else
{
choiceBdcdy
({
bsmSlsq
:
that
.
$route
.
query
.
bsmSlsq
,
bdcdysz
:
that
.
bdcdysz
,
}).
then
((
res
)
=>
{
that
.
loading
=
false
if
(
res
.
code
==
200
)
{
that
.
$message
({
showClose
:
true
,
message
:
'添加成功'
,
type
:
'success'
})
message
:
"发起申请成功"
,
type
:
"success"
,
});
store
.
dispatch
(
"user/refreshPage"
,
true
);
}
else
{
that
.
$message
.
error
(
res
.
message
);
}
that
.
$popupCacel
();
}).
catch
(()
=>
{
that
.
loading
=
false
})
}
else
{
if
(
!
that
.
isJump
)
{
startBusinessFlow
({
bsmSqyw
:
that
.
sqywInfo
.
bsmSqyw
,
bdcdysz
:
that
.
bdcdysz
,
}).
then
((
res
)
=>
{
that
.
loading
=
false
if
(
res
.
code
==
200
)
{
that
.
$message
({
showClose
:
true
,
message
:
"发起申请成功"
,
type
:
"success"
,
});
if
(
!
that
.
isJump
)
{
that
.
jump
(
res
.
result
,
that
.
sqywInfo
.
djywbm
);
}
else
{
store
.
dispatch
(
'user/refreshPage'
,
true
);
}
that
.
$popupCacel
()
}
else
{
if
(
res
.
result
&&
res
.
result
.
length
>
0
)
{
ywPopupDialog
(
"申请错误明细"
,
"components/ywdialog"
,
{
result
:
res
.
result
},
'36%'
,
true
)
}
else
{
ywPopupDialog
(
"申请错误明细"
,
"components/ywdialog"
,
{
message
:
res
.
message
},
'36%'
,
true
)
}
}
}).
catch
(()
=>
{
that
.
loading
=
false
})
}
else
{
choiceBdcdy
({
bsmSlsq
:
that
.
$route
.
query
.
bsmSlsq
,
bdcdysz
:
that
.
bdcdysz
,
}).
then
((
res
)
=>
{
that
.
loading
=
false
if
(
res
.
code
==
200
)
{
that
.
$message
({
showClose
:
true
,
message
:
"发起申请成功"
,
type
:
"success"
,
});
store
.
dispatch
(
"user/refreshPage"
,
true
);
}
else
{
that
.
$message
.
error
(
res
.
message
);
}
that
.
$popupCacel
();
}).
catch
(()
=>
{
that
.
loading
=
false
})
}
}
},
/**
...
...
src/views/ywbl/ywsq/components/diyaq.vue
View file @
1e88e99
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-02-0
2 16:35:05
* @LastEditTime: 2024-02-0
6 14:43:44
-->
<
template
>
<!-- 抵押权利信息查询 -->
...
...
@@ -67,7 +67,7 @@
</div>
<div
class=
"submit_button"
>
<el-button
@
click=
"$popupCacel"
>
取消
</el-button>
<el-button
type=
"primary"
plain
@
click=
"
submitFormClick()
"
:loading=
"loading"
v-if=
"sqywInfo.isworkFrame"
>
添加单元
</el-button>
<el-button
type=
"primary"
plain
@
click=
"
handleAdd
"
:loading=
"loading"
v-if=
"sqywInfo.isworkFrame"
>
添加单元
</el-button>
<el-button
type=
"primary"
plain
@
click=
"submitFormClick()"
:loading=
"loading"
v-else
>
发起申请
</el-button>
</div>
</div>
...
...
@@ -147,6 +147,35 @@
* @description: submitFormClick
* @author: renchao
*/
handleAdd
()
{
let
that
=
this
this
.
loading
=
true
;
store
.
dispatch
(
'user/reMenuRefresh'
,
false
)
againAddSldy
({
bsmSqyw
:
that
.
sqywInfo
.
bsmSqyw
,
bdcdysz
:
that
.
bdcdysz
,
bsmSlsq
:
that
.
sqywInfo
.
bsmSlsq
,
}).
then
(
res
=>
{
that
.
loading
=
false
if
(
res
.
code
==
200
)
{
if
(
this
.
sqywInfo
.
sqywdylx
!=
"1"
)
{
that
.
bdcdysz
=
[]
that
.
$refs
.
table
.
clearSelection
()
}
store
.
dispatch
(
'user/reMenuRefresh'
,
true
)
that
.
queryClick
()
that
.
$message
({
showClose
:
true
,
message
:
'添加成功'
,
type
:
'success'
})
}
else
{
that
.
$message
.
error
(
res
.
message
);
}
}).
catch
(()
=>
{
that
.
loading
=
false
})
},
submitFormClick
()
{
let
that
=
this
if
(
this
.
bdcdysz
.
length
==
0
)
{
...
...
@@ -154,63 +183,35 @@
return
;
}
this
.
loading
=
true
;
if
(
this
.
sqywInfo
.
isworkFrame
)
{
store
.
dispatch
(
'user/reMenuRefresh'
,
false
)
againAddSldy
({
bsmSqyw
:
that
.
sqywInfo
.
bsmSqyw
,
bdcdysz
:
that
.
bdcdysz
,
bsmSlsq
:
that
.
sqywInfo
.
bsmSlsq
,
}).
then
(
res
=>
{
that
.
loading
=
false
if
(
res
.
code
==
200
)
{
if
(
this
.
sqywInfo
.
sqywdylx
!=
"1"
)
{
that
.
bdcdysz
=
[]
that
.
$refs
.
table
.
clearSelection
()
}
store
.
dispatch
(
'user/reMenuRefresh'
,
true
)
that
.
queryClick
()
that
.
$message
({
showClose
:
true
,
message
:
'添加成功'
,
type
:
'success'
})
startBusinessFlow
({
bsmSqyw
:
this
.
sqywInfo
.
bsmSqyw
,
bdcdysz
:
this
.
bdcdysz
,
// djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "",
// djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "",
}).
then
((
res
)
=>
{
this
.
loading
=
false
if
(
res
.
code
==
200
)
{
that
.
$message
({
showClose
:
true
,
message
:
"发起申请成功"
,
type
:
"success"
,
});
if
(
!
that
.
isJump
)
{
that
.
jump
(
res
.
result
,
that
.
sqywInfo
.
djywbm
);
}
else
{
that
.
$message
.
error
(
res
.
messag
e
);
store
.
dispatch
(
'user/refreshPage'
,
tru
e
);
}
}).
catch
(()
=>
{
that
.
loading
=
false
})
}
else
{
startBusinessFlow
({
bsmSqyw
:
this
.
sqywInfo
.
bsmSqyw
,
bdcdysz
:
this
.
bdcdysz
,
// djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "",
// djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "",
}).
then
((
res
)
=>
{
this
.
loading
=
false
if
(
res
.
code
==
200
)
{
that
.
$message
({
showClose
:
true
,
message
:
"发起申请成功"
,
type
:
"success"
,
});
if
(
!
that
.
isJump
)
{
that
.
jump
(
res
.
result
,
that
.
sqywInfo
.
djywbm
);
}
else
{
store
.
dispatch
(
'user/refreshPage'
,
true
);
}
that
.
$popupCacel
()
that
.
$popupCacel
()
}
else
{
if
(
res
.
result
&&
res
.
result
.
length
>
0
)
{
ywPopupDialog
(
"申请错误明细"
,
"components/ywdialog"
,
{
result
:
res
.
result
},
'36%'
,
true
)
}
else
{
if
(
res
.
result
&&
res
.
result
.
length
>
0
)
{
ywPopupDialog
(
"申请错误明细"
,
"components/ywdialog"
,
{
result
:
res
.
result
},
'36%'
,
true
)
}
else
{
ywPopupDialog
(
"申请错误明细"
,
"components/ywdialog"
,
{
message
:
res
.
message
},
'36%'
,
true
)
}
ywPopupDialog
(
"申请错误明细"
,
"components/ywdialog"
,
{
message
:
res
.
message
},
'36%'
,
true
)
}
}
).
catch
(()
=>
{
this
.
loading
=
false
})
}
}
}).
catch
(()
=>
{
this
.
loading
=
false
}
)
},
/**
* @description: handleSelectionChange
...
...
Please
register
or
sign in
to post a comment