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
58e82bcb
authored
2024-02-19 17:24:49 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
b5ae31b2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
192 additions
and
189 deletions
src/views/ywbl/ywsq/components/fwsyq.vue
src/views/ywbl/ywsq/components/jtjsydfwsyq.vue
src/views/ywbl/ywsq/components/nydsyq100.vue
src/views/ywbl/ywsq/components/fwsyq.vue
View file @
58e82bc
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-02-0
2 16:35:20
* @LastEditTime: 2024-02-0
6 16:56:48
-->
<
template
>
<div
class=
"from-clues"
>
...
...
@@ -81,7 +81,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>
...
...
@@ -132,7 +132,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>
...
...
@@ -295,6 +295,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
)
{
...
...
@@ -302,88 +331,60 @@
return
;
}
this
.
loading
=
true
if
(
this
.
sqywInfo
.
isworkFrame
)
{
store
.
dispatch
(
'user/reMenuRefresh'
,
false
)
againAddSldy
({
if
(
!
that
.
isJump
)
{
startBusinessFlow
({
bsmSqyw
:
that
.
sqywInfo
.
bsmSqyw
,
//sjlx: 'zrz',
sjlx
:
that
.
activeName
,
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
()
}
store
.
dispatch
(
'user/reMenuRefresh'
,
true
)
that
.
queryClick
()
that
.
$message
({
showClose
:
true
,
message
:
'
添加
成功'
,
message
:
'
发起申请
成功'
,
type
:
'success'
})
if
(
!
that
.
isJump
)
{
that
.
jump
(
res
.
result
,
that
.
sqywInfo
.
djywbm
);
}
else
{
store
.
dispatch
(
'user/refreshPage'
,
true
);
}
that
.
$popupCacel
()
}
else
{
that
.
$message
.
error
(
res
.
message
);
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
{
if
(
!
that
.
isJump
)
{
startBusinessFlow
({
bsmSqyw
:
that
.
sqywInfo
.
bsmSqyw
,
//sjlx: 'zrz',
sjlx
:
that
.
activeName
,
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
:
Vue
.
prototype
.
$currentRoute
.
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
);
that
.
$popupCacel
()
choiceBdcdy
({
bsmSlsq
:
Vue
.
prototype
.
$currentRoute
.
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
);
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
(()
=>
{
that
.
loading
=
false
})
}
}
}).
catch
(()
=>
{
that
.
loading
=
false
}
)
}
},
/**
...
...
src/views/ywbl/ywsq/components/jtjsydfwsyq.vue
View file @
58e82bc
...
...
@@ -119,7 +119,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>
...
...
@@ -264,6 +264,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
)
{
...
...
@@ -271,88 +300,60 @@
return
;
}
this
.
loading
=
true
if
(
this
.
sqywInfo
.
isworkFrame
)
{
store
.
dispatch
(
'user/reMenuRefresh'
,
false
)
againAddSldy
({
if
(
!
that
.
isJump
)
{
startBusinessFlow
({
bsmSqyw
:
that
.
sqywInfo
.
bsmSqyw
,
//sjlx: 'zrz',
sjlx
:
that
.
activeName
,
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
()
}
store
.
dispatch
(
'user/reMenuRefresh'
,
true
)
that
.
queryClick
()
that
.
$message
({
showClose
:
true
,
message
:
'
添加
成功'
,
message
:
'
发起申请
成功'
,
type
:
'success'
})
if
(
!
that
.
isJump
)
{
that
.
jump
(
res
.
result
,
that
.
sqywInfo
.
djywbm
);
}
else
{
store
.
dispatch
(
'user/refreshPage'
,
true
);
}
that
.
$popupCacel
()
}
else
{
that
.
$message
.
error
(
res
.
message
);
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
{
if
(
!
that
.
isJump
)
{
startBusinessFlow
({
bsmSqyw
:
that
.
sqywInfo
.
bsmSqyw
,
//sjlx: 'zrz',
sjlx
:
that
.
activeName
,
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
:
Vue
.
prototype
.
$currentRoute
.
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
);
that
.
$popupCacel
()
choiceBdcdy
({
bsmSlsq
:
Vue
.
prototype
.
$currentRoute
.
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
);
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
(()
=>
{
that
.
loading
=
false
})
}
}
}).
catch
(()
=>
{
that
.
loading
=
false
}
)
}
},
/**
...
...
src/views/ywbl/ywsq/components/nydsyq100.vue
View file @
58e82bc
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-02-0
2 16:35:49
* @LastEditTime: 2024-02-0
6 16:58:53
-->
<
template
>
<div
class=
"from-clues"
>
...
...
@@ -52,7 +52,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>
...
...
@@ -132,6 +132,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
)
{
...
...
@@ -139,61 +168,33 @@
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
:
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
.
djywbm
)
}
else
{
that
.
$message
.
error
(
res
.
messag
e
);
store
.
dispatch
(
'user/refreshPage'
,
tru
e
);
}
}).
catch
(()
=>
{
that
.
loading
=
false
})
}
else
{
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
.
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
(()
=>
{
that
.
loading
=
false
})
}
}
}).
catch
(()
=>
{
that
.
loading
=
false
}
)
},
/**
* @description: handleSelectionChange
...
...
Please
register
or
sign in
to post a comment