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
4434a752
authored
2023-07-20 18:57:36 +0800
by
xiaomiao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
createElement
1 parent
4f8e246d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
263 deletions
src/views/djbworkflow/components/th.vue
src/views/djbworkflow/mixin/index.js
src/views/workflow/components/leftmenu/ordinaryMenu.vue
src/views/workflow/components/leftmenu/segmentMenu.vue
src/views/workflow/components/th.vue
src/views/ywbl/slsqxx/fdcq2/slxxOverview.vue
src/views/djbworkflow/components/th.vue
deleted
100644 → 0
View file @
4f8e246
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-05-17 10:41:57
-->
<
template
>
<div
class=
"from-clues"
>
<!-- 表单部分 -->
<div
class=
"from-clues-header"
>
<div
class=
"title"
>
请选择要退回到的环节:
</div>
<el-form
ref=
"queryForm"
label-width=
"90px"
>
<ul
style=
"margin-bottom: 15px"
>
<li
v-for=
"(item, index) in dataList"
class=
"listDetail"
:key=
"index"
@
click=
"changeSelectItem(item)"
>
<p
class=
"icon"
>
<el-radio
v-model=
"selectActivity"
:label=
"item.activityId"
@
change=
"changeSelectItem(item)"
></el-radio>
</p>
<p>
{{
item
.
activityName
}}
</p>
<p
v-for=
"(child, childIndex) in item.userInfos"
:key=
"childIndex"
>
{{
child
.
name
}}
</p>
</li>
</ul>
<div
class=
"title"
>
退回意见:
</div>
<el-form-item>
<el-input
class=
"textArea"
type=
"textarea"
v-model=
"outstepopinion"
placeholder=
"请输入退回意见"
></el-input>
</el-form-item>
<el-form-item>
<el-button
style=
"float:right"
@
click=
"cancelBack"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"onSubmit"
style=
"float:right"
>
退回
</el-button>
</el-form-item>
</el-form>
</div>
</div>
</
template
>
<
script
>
import
{
getTaskBackNode
,
sendBackTask
}
from
"@/api/workFlow.js"
import
{
popupCacel
}
from
"@/utils/popup.js"
;
export
default
{
props
:
{
formData
:
{
type
:
Object
,
default
:
{},
},
},
data
()
{
return
{
selectActivity
:
""
,
dataList
:
[],
outstepopinion
:
""
,
selectItem
:
{},
};
},
created
()
{
this
.
getBackNode
();
},
methods
:
{
/**
* @description: onSubmit
* @author: renchao
*/
onSubmit
()
{
this
.
selectItem
.
outstepopinion
=
this
.
outstepopinion
;
sendBackTask
({
bsmSlsq
:
this
.
formData
.
bsmSlsq
,
backNodeList
:
[
this
.
selectItem
],
}).
then
((
res
)
=>
{
this
.
$message
.
success
(
"退回成功"
);
setTimeout
(()
=>
{
// window.opener.location.reload(); //刷新父窗口
if
(
window
.
opener
&&
window
.
opener
.
getBpageList
)
{
window
.
opener
.
getBpageList
();
}
else
{
window
.
opener
.
frames
[
0
].
getBpageList
();
}
window
.
close
();
this
.
$emit
(
"input"
,
false
);
},
1000
);
});
},
/**
* @description: changeSelectItem
* @param {*} item
* @author: renchao
*/
changeSelectItem
(
item
)
{
this
.
selectItem
=
item
;
this
.
selectActivity
=
item
.
activityId
;
},
//获取可回退环节信息
/**
* @description: 获取可回退环节信息
* @author: renchao
*/
getBackNode
()
{
getTaskBackNode
(
this
.
formData
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
this
.
dataList
=
res
.
result
;
if
(
res
.
result
)
{
this
.
selectActivity
=
res
.
result
[
0
].
activityId
;
this
.
selectItem
=
res
.
result
[
0
];
}
}
});
},
/**
* @description: cancelBack
* @author: renchao
*/
cancelBack
()
{
popupCacel
();
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"~@/styles/mixin.scss"
;
.listDetail
{
display
:
flex
;
align-items
:
center
;
width
:
100%
;
p
{
line-height
:
30px
;
height
:
30px
;
@include
flex-center;
flex
:
1
;
width
:
100%
;
border
:
1px
solid
rgb
(
233
,
235
,
237
);
margin-top
:
-1px
;
margin-left
:
-1px
;
}
.icon
{
flex
:
0
0
60px
;
}
}
.title
{
margin-bottom
:
10px
;
}
.textArea
{
/deep/.el-textarea__inner
{
min-height
:
90px
!important
;
}
}
/
deep
/
.el-radio
.el-radio__label
{
display
:
none
;
}
</
style
>
src/views/djbworkflow/mixin/index.js
View file @
4434a75
...
...
@@ -325,102 +325,17 @@ export default {
* @author: renchao
*/
sendToNext
(
obj
)
{
const
h
=
this
.
$createElement
;
this
.
$msgbox
({
title
:
"您确定转出吗?"
,
message
:
h
(
"div"
,
{
style
:
"margin: auto"
},
[
h
(
"span"
,
null
,
"下个环节名称:"
),
h
(
"i"
,
{
style
:
"color: teal"
},
obj
.
taskName
),
h
(
"div"
,
null
,
""
),
h
(
"span"
,
null
,
"下个环节经办人: "
),
h
(
"i"
,
{
style
:
"color: teal"
},
obj
.
usernames
.
join
(
","
)),
]),
showCancelButton
:
true
,
beforeClose
:
(
action
,
instance
,
done
)
=>
{
if
(
action
===
"confirm"
)
{
instance
.
confirmButtonLoading
=
true
;
instance
.
confirmButtonText
=
"执行中..."
;
completeTask
({
bsmSlsq
:
this
.
bsmSlsq
,
shyj
:
"this.bestepid"
,
stepform
:
JSON
.
stringify
(
this
.
tabList
),
}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
instance
.
confirmButtonLoading
=
false
;
this
.
$message
.
success
(
"转件成功"
);
// window.opener.location.reload(); //刷新父窗口
if
(
window
.
opener
&&
window
.
opener
.
getBpageList
)
{
window
.
opener
.
getBpageList
();
}
else
{
window
.
opener
.
frames
[
0
].
getBpageList
();
}
window
.
close
();
this
.
$emit
(
"input"
,
false
);
}
else
{
instance
.
confirmButtonLoading
=
false
;
instance
.
confirmButtonText
=
"确定"
;
this
.
$message
.
error
(
res
.
message
);
}
});
}
else
{
done
();
}
},
}).
then
((
action
)
=>
{
this
.
$message
({
type
:
"info"
,
message
:
"action: "
+
action
,
});
});
this
.
$popupDialog
(
"转出"
,
"workflow/components/zc"
,
{
bsmSlsq
:
this
.
bsmSlsq
,
bestepid
:
this
.
bestepid
},
'800px'
,
true
)
},
/**
* @description: sendToEnd
* @author: renchao
*/
sendToEnd
()
{
let
that
=
this
const
h
=
this
.
$createElement
;
this
.
$msgbox
({
title
:
"您确定转出吗?"
,
message
:
"此环节为流程最后环节,转出后流程将结束"
,
showCancelButton
:
true
,
beforeClose
:
(
action
,
instance
,
done
)
=>
{
if
(
action
===
"confirm"
)
{
instance
.
confirmButtonLoading
=
true
;
instance
.
confirmButtonText
=
"执行中..."
;
completeTask
({
bsmSlsq
:
this
.
bsmSlsq
,
shyj
:
"this.bestepid"
,
stepform
:
JSON
.
stringify
(
this
.
tabList
),
}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
instance
.
confirmButtonLoading
=
false
;
that
.
$message
.
success
(
"转件成功"
);
localStorage
.
setItem
(
'transfer'
,
true
)
// window.opener.location.reload(); //刷新父窗口
if
(
window
.
opener
&&
window
.
opener
.
getBpageList
)
{
window
.
opener
.
getBpageList
();
}
else
{
window
.
opener
.
frames
[
0
].
getBpageList
();
}
window
.
close
();
that
.
$emit
(
"input"
,
false
);
}
else
{
instance
.
confirmButtonLoading
=
false
;
instance
.
confirmButtonText
=
"确定"
;
this
.
$message
.
error
(
res
.
message
);
}
})
}
else
{
done
();
}
},
}).
then
((
action
)
=>
{
this
.
$message
({
type
:
"info"
,
message
:
"action: "
+
action
})
})
},
//批量操作
/**
...
...
src/views/workflow/components/leftmenu/ordinaryMenu.vue
View file @
4434a75
...
...
@@ -165,8 +165,8 @@
//批量按钮点击事件
batchUnitClick
()
{
this
.
currentSelectProps
.
batchOperation
=
true
;
this
.
activeIndex
=
"-1"
;
this
.
$parent
.
stepForm
();
//
this.activeIndex = "-1";
this
.
$parent
.
stepForm
(
0
);
},
//批量操作
...
...
src/views/workflow/components/leftmenu/segmentMenu.vue
View file @
4434a75
...
...
@@ -169,11 +169,13 @@
});
});
},
//批量按钮点击事件
//批量按钮点击事件
batchUnitClick
()
{
this
.
currentSelectProps
.
batchOperation
=
true
;
this
.
activeIndex
=
"-1"
;
this
.
$parent
.
stepForm
();
// this.activeIndex = "-1";
this
.
$parent
.
stepForm
(
0
);
},
//申请单元点击事件
unitClick
(
index
)
{
...
...
src/views/workflow/components/th.vue
View file @
4434a75
...
...
@@ -69,10 +69,12 @@
},
methods
:
{
onSubmit
()
{
this
.
selectItem
.
outstepopinion
=
this
.
outstepopinion
;
console
.
log
(
this
.
formData
.
bsmSlsq
);
console
.
log
(
this
.
selectItem
);
sendBackTask
({
bsmSlsq
:
this
.
formData
.
bsmSlsq
,
backNodeList
:
[
this
.
selectItem
],
message
:
this
.
outstepopinion
}).
then
((
res
)
=>
{
this
.
$message
.
success
(
"退回成功"
);
setTimeout
(()
=>
{
...
...
src/views/ywbl/slsqxx/fdcq2/slxxOverview.vue
View file @
4434a75
...
...
@@ -211,7 +211,6 @@
//组装房地产权通用信息
splicingFdcq2Info
()
{
let
fdcq2List
=
this
.
ruleForm
.
fdcq2List
;
console
.
log
(
this
.
ruleForm
.
fdcq2List
,
'this.ruleForm.fdcq2List'
);
let
fwxzArr
=
[];
let
fwjgArr
=
[];
let
jzmj
=
0
;
...
...
Please
register
or
sign in
to post a comment