Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
1e035ab5
Commit
1e035ab5
authored
Oct 25, 2023
by
沈良进
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
8b8126e1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
486 additions
and
360 deletions
+486
-360
ApprovalStatistical.vue
src/components/administrative/ApprovalStatistical.vue
+486
-360
No files found.
src/components/administrative/ApprovalStatistical.vue
View file @
1e035ab5
...
@@ -3,44 +3,55 @@
...
@@ -3,44 +3,55 @@
<div
class=
"query-box"
style=
"border-bottom: none;"
>
<div
class=
"query-box"
style=
"border-bottom: none;"
>
<ul>
<ul>
<li>
<li>
<span><em>
公司
</em><el-select
filterable
@
change=
'getUser'
v-model=
'msg.RB_BranchId'
>
<span><em>
公司
</em>
<el-select
filterable
@
change=
'getUser'
v-model=
'msg.RB_BranchId'
>
<el-option
label=
'不限'
value=
'-1'
></el-option>
<el-option
label=
'不限'
value=
'-1'
></el-option>
<el-option
v-for=
'item in companyList'
:label=
'item.BName'
:value=
'item.Id'
:key=
'item.Id'
></el-option>
<el-option
v-for=
'item in companyList'
:label=
'item.BName'
:value=
'item.Id'
:key=
'item.Id'
></el-option>
</el-select>
</el-select>
</span>
</span>
</li>
</li>
<li>
<li>
<span><em>
申请人
</em><el-select
filterable
v-model=
'msg.CreateBy'
>
<span><em>
申请人
</em>
<el-select
filterable
v-model=
'msg.CreateBy'
>
<el-option
label=
'不限'
value=
'0'
></el-option>
<el-option
label=
'不限'
value=
'0'
></el-option>
<el-option
v-for=
'item in userList'
:label=
'item.name'
:value=
'item.empId'
:key=
'item.empId'
></el-option>
<el-option
v-for=
'item in userList'
:label=
'item.name'
:value=
'item.empId'
:key=
'item.empId'
></el-option>
</el-select>
</el-select>
</span>
</span>
</li>
</li>
<li>
<li>
<span><em>
待审核人
</em><el-select
filterable
v-model=
'msg.ToAuditId'
>
<span><em>
待审核人
</em>
<el-select
filterable
v-model=
'msg.ToAuditId'
>
<el-option
label=
'不限'
value=
'0'
></el-option>
<el-option
label=
'不限'
value=
'0'
></el-option>
<el-option
v-for=
'item in userList'
:label=
'item.name'
:value=
'item.empId'
:key=
'item.empId'
></el-option>
<el-option
v-for=
'item in userList'
:label=
'item.name'
:value=
'item.empId'
:key=
'item.empId'
></el-option>
</el-select>
</el-select>
</span>
</span>
</li>
</li>
<li>
<li>
<span><em>
已审核人
</em><el-select
filterable
v-model=
'msg.AuditedId'
>
<span><em>
已审核人
</em>
<el-select
filterable
v-model=
'msg.AuditedId'
>
<el-option
label=
'不限'
value=
'0'
></el-option>
<el-option
label=
'不限'
value=
'0'
></el-option>
<el-option
v-for=
'item in userList'
:label=
'item.name'
:value=
'item.empId'
:key=
'item.empId'
></el-option>
<el-option
v-for=
'item in userList'
:label=
'item.name'
:value=
'item.empId'
:key=
'item.empId'
></el-option>
</el-select>
</el-select>
</span>
</span>
</li>
</li>
<li>
<li>
<span><em>
请假类型
</em><el-select
v-model=
'msg.TemplateId'
>
<span><em>
请假类型
</em>
<el-option
v-for=
'item in ApplyTypeList'
:label=
'item.label'
:value=
'item.value'
:key=
'item.value'
></el-option>
<el-select
v-model=
'msg.TemplateId'
>
</el-select></span>
<el-option
v-for=
'item in ApplyTypeList'
:label=
'item.label'
:value=
'item.value'
:key=
'item.value'
>
</el-option>
</el-select>
</span>
</li>
</li>
<li>
<li>
<span><em>
申请审核状态
</em><el-select
v-model=
'msg.appAuditStatus'
>
<span><em>
申请审核状态
</em>
<el-option
v-for=
'item in appAuditStatusList'
:label=
'item.label'
:value=
'item.value'
:key=
'item.value'
></el-option>
<el-select
v-model=
'msg.appAuditStatus'
>
</el-select></span>
<el-option
v-for=
'item in appAuditStatusList'
:label=
'item.label'
:value=
'item.value'
:key=
'item.value'
>
</el-option>
</el-select>
</span>
</li>
</li>
<li><span><em>
申请时间
</em><el-date-picker
v-model=
'msg.StartTime'
class=
'w135'
value-format=
"yyyy-MM-dd"
type=
"date"
></el-date-picker>
<li><span><em>
申请时间
</em>
<el-date-picker
v-model=
'msg.StartTime'
class=
'w135'
value-format=
"yyyy-MM-dd"
type=
"date"
></el-date-picker>
-
-
<el-date-picker
v-model=
'msg.EndTime'
class=
'w135'
value-format=
"yyyy-MM-dd"
type=
"date"
></el-date-picker>
<el-date-picker
v-model=
'msg.EndTime'
class=
'w135'
value-format=
"yyyy-MM-dd"
type=
"date"
></el-date-picker>
</span>
</span>
...
@@ -62,8 +73,8 @@
...
@@ -62,8 +73,8 @@
<th>
{{
$t
(
'admin.admin_status'
)
}}
</th>
<th>
{{
$t
(
'admin.admin_status'
)
}}
</th>
<th
width=
"150"
>
{{
$t
(
'system.table_operation'
)
}}
</th>
<th
width=
"150"
>
{{
$t
(
'system.table_operation'
)
}}
</th>
</tr>
</tr>
<tbody
v-loading=
'loading'
>
<tr
v-for=
'item in list'
v-loading=
'loading
'
>
<tr
v-for=
'item in list
'
>
<td>
{{
item
.
BName
}}
</td>
<td>
{{
item
.
BName
}}
</td>
<td>
{{
item
.
EmName
}}
</td>
<td>
{{
item
.
EmName
}}
</td>
<td>
{{
item
.
TemplateName
}}
</td>
<td>
{{
item
.
TemplateName
}}
</td>
...
@@ -73,21 +84,18 @@
...
@@ -73,21 +84,18 @@
<td>
{{
item
.
Status
}}
</td>
<td>
{{
item
.
Status
}}
</td>
<td>
<td>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"详情"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"详情"
placement=
"top"
>
<el-button
type=
"primary"
icon=
"el-icon-tickets"
circle
@
click=
"getDetail(item.Id,item.TemplateType)"
></el-button>
<el-button
type=
"primary"
icon=
"el-icon-tickets"
circle
@
click=
"getDetail(item.Id,item.TemplateType)"
>
</el-button>
</el-tooltip>
</el-tooltip>
</td>
</td>
</tr>
</tr>
</tbody>
</table>
</table>
</div>
</div>
<el-pagination
background
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"currentPage"
@
current-change=
"handleCurrentChange"
layout=
"total,prev, pager, next, jumper"
:page-size=
msg.pageSize
:total=
total
>
:current-page
.
sync=
"currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
msg.pageSize
:total=
total
>
</el-pagination>
</el-pagination>
<el-dialog
custom-class=
'w500'
:title=
"dialogTitle"
:visible
.
sync=
"outerVisible"
center
>
<el-dialog
custom-class=
'w500'
:title=
"dialogTitle"
:visible
.
sync=
"outerVisible"
center
>
<div
class=
"approvalStatisticalDialog"
>
<div
class=
"approvalStatisticalDialog"
>
<div
class=
"title"
>
{{
detailList
.
Proposer
}}{{
detailList
.
TempleteTypeName
}}
</div>
<div
class=
"title"
>
{{
detailList
.
Proposer
}}{{
detailList
.
TempleteTypeName
}}
</div>
<div
class=
"user"
>
<div
class=
"user"
>
...
@@ -96,11 +104,11 @@
...
@@ -96,11 +104,11 @@
<p>
{{
detailList
.
Proposer
}}
</p>
<p>
{{
detailList
.
Proposer
}}
</p>
<p><span
style=
"color:#257BF1; font-size: 14px;"
>
{{
detailList
.
Status
}}
</span></p>
<p><span
style=
"color:#257BF1; font-size: 14px;"
>
{{
detailList
.
Status
}}
</span></p>
</div>
</div>
<div
class=
"detail"
>
<div
class=
"detail"
>
<table
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
class=
"myApprovalTable"
>
<table
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
class=
"myApprovalTable"
>
<tr
v-for=
"(item,index) in detailList.Details"
v-if=
"(item.formType=='Image' && item.value.length>0) || item.formType!='Image'"
>
<tr
v-for=
"(item,index) in detailList.Details"
<td
width=
"80"
>
{{
item
.
title
}}
:
</td>
v-if=
"(item.formType=='Image' && item.value.length>0) || item.formType!='Image'"
>
<td
width=
"80"
>
{{
item
.
title
}}
:
</td>
<td
v-if=
"item.formType=='String'"
>
{{
item
.
value
}}
</td>
<td
v-if=
"item.formType=='String'"
>
{{
item
.
value
}}
</td>
<td
v-if=
"item.formType=='Json'"
>
<td
v-if=
"item.formType=='Json'"
>
...
@@ -109,43 +117,49 @@
...
@@ -109,43 +117,49 @@
</div>
</div>
</td>
</td>
<td
v-if=
"item.formType=='Image'"
>
<td
v-if=
"item.formType=='Image'"
>
<img
v-if=
'item.value.length>0'
style=
"width: 50px; height: 50px; border-radius: 4px; margin:0 10px 0 0;"
v-for=
"(img,index) in item.value"
:src=
"img"
<img
v-if=
'item.value.length>0'
@
click=
"getPic(item.value)"
/>
style=
"width: 50px; height: 50px; border-radius: 4px; margin:0 10px 0 0;"
v-for=
"(img,index) in item.value"
:src=
"img"
@
click=
"getPic(item.value)"
/>
</td>
</td>
</tr>
</tr>
</table>
</table>
</div>
</div>
<div
class=
"audit"
>
<div
class=
"audit"
>
<div
class=
"auditItem"
>
<div
class=
"auditItem"
>
<img
v-if=
"!detailList.ProposerPhoto"
src=
"../../assets/img/litheader.png"
alt=
""
>
<img
v-if=
"!detailList.ProposerPhoto"
src=
"../../assets/img/litheader.png"
alt=
""
>
<img
v-else
:src=
"detailList.ProposerPhoto"
alt=
""
:onerror=
"defaultImg"
>
<img
v-else
:src=
"detailList.ProposerPhoto"
alt=
""
:onerror=
"defaultImg"
>
<p>
<p>
<span>
{{
detailList
.
Proposer
}}
</span>
<span>
发起申请
</span><span
class=
"fr"
>
{{
detailList
.
ProposerTime
}}
</span>
<span>
{{
detailList
.
Proposer
}}
</span>
<span>
发起申请
</span><span
class=
"fr"
>
{{
detailList
.
ProposerTime
}}
</span>
</p>
</p>
</div>
</div>
<div
class=
"auditItem"
v-for=
"(item,index) in detailList.arList"
>
<div
class=
"auditItem"
v-for=
"(item,index) in detailList.arList"
>
<img
v-if=
'item.AuditRecordList.length==1&&!item.AuditRecordList[0].AuditEmPhoto'
src=
"../../assets/img/litheader.png"
/>
<img
v-if=
'item.AuditRecordList.length==1&&!item.AuditRecordList[0].AuditEmPhoto'
<img
v-if=
'item.AuditRecordList.length==1&&item.AuditRecordList[0].AuditEmPhoto'
:src=
'item.AuditRecordList[0].AuditEmPhoto'
alt=
""
:onerror=
"defaultImg"
/>
src=
"../../assets/img/litheader.png"
/>
<img
v-if=
'item.AuditRecordList.length==1&&item.AuditRecordList[0].AuditEmPhoto'
:src=
'item.AuditRecordList[0].AuditEmPhoto'
alt=
""
:onerror=
"defaultImg"
/>
<img
v-if=
'item.AuditRecordList.length>1'
src=
"../../assets/img/bg_z1@2x.png"
/>
<img
v-if=
'item.AuditRecordList.length>1'
src=
"../../assets/img/bg_z1@2x.png"
/>
<p
v-if=
'item.AuditRecordList.length==1'
>
<p
v-if=
'item.AuditRecordList.length==1'
>
<span>
{{
item
.
AuditRecordList
[
0
].
AuditEmName
}}
</span>
<span>
{{
item
.
AuditRecordList
[
0
].
AuditEmName
}}
</span>
<span
:style=
"'color: ' + item.AuditRecordList[0].StatusColor + ' !important'"
>
{{
item
.
AuditRecordList
[
0
].
Stauts
}}
</span>
<span
:style=
"'color: ' + item.AuditRecordList[0].StatusColor + ' !important'"
>
{{
item
.
AuditRecordList
[
0
].
Stauts
}}
</span>
<span
class=
"fr"
>
{{
item
.
AuditRecordList
[
0
].
AuditTime
}}
</span>
<span
class=
"fr"
>
{{
item
.
AuditRecordList
[
0
].
AuditTime
}}
</span>
<span
style=
"display:block; padding-left: 40px; text-indent: 0; font-size: 12px; line-height: 24px; color: #333;"
>
{{
item
.
AuditRecordList
[
0
].
Description
}}
</span>
<span
<span
v-if=
"item.AuditRecordList[0].CareOfList!=null"
style=
"display: inline-block; line-height: 24px; font-size: 12px; text-indent: 0; padding-left:40px; color: #666;"
>
style=
"display:block; padding-left: 40px; text-indent: 0; font-size: 12px; line-height: 24px; color: #333;"
>
{{
item
.
AuditRecordList
[
0
].
Description
}}
</span>
<b
style=
"color: red;"
>
由
</b>
{{
item
.
AuditRecordList
[
0
].
CareOfList
[
0
].
BeFrom
}}
<b
style=
"color: red;"
>
转
</b>
{{
item
.
AuditRecordList
[
0
].
CareOfList
[
0
].
Target
}}
<span
v-if=
"item.AuditRecordList[0].CareOfList!=null"
<br/>
style=
"display: inline-block; line-height: 24px; font-size: 12px; text-indent: 0; padding-left:40px; color: #666;"
>
<b
style=
"color: red;"
>
由
</b>
{{
item
.
AuditRecordList
[
0
].
CareOfList
[
0
].
BeFrom
}}
<b
style=
"color: red;"
>
转
</b>
{{
item
.
AuditRecordList
[
0
].
CareOfList
[
0
].
Target
}}
<br
/>
{{
item
.
AuditRecordList
[
0
].
CareOfList
[
0
].
Remarks
}}
{{
item
.
AuditRecordList
[
0
].
CareOfList
[
0
].
Remarks
}}
</span>
</span>
</p>
</p>
<p
v-if=
'item.AuditRecordList.length>1'
style=
"cursor: pointer;"
>
<p
v-if=
'item.AuditRecordList.length>1'
style=
"cursor: pointer;"
>
<span>
{{
item
.
AuditDescription
}}{{
item
.
AuditWay
}}
</span>
<span>
{{
item
.
AuditDescription
}}{{
item
.
AuditWay
}}
</span>
<i
class=
"el-icon-arrow-right"
></i>
<i
class=
"el-icon-arrow-right"
></i>
</p>
</p>
<div
v-if=
'item.AuditRecordList.length>1'
<div
v-if=
'item.AuditRecordList.length>1'
style=
" width: 300px; height: auto; margin:15px 0; border-radius: 4px; background: #F0F3FA;"
>
style=
" width: 300px; height: auto; margin:15px 0; border-radius: 4px; background: #F0F3FA;"
>
<p
v-if=
'item.AuditWayStatus==2'
style=
"padding: 10px; color: #666;"
>
须以下人员全部审批通过
</p>
<p
v-if=
'item.AuditWayStatus==2'
style=
"padding: 10px; color: #666;"
>
须以下人员全部审批通过
</p>
<p
v-if=
'item.AuditWayStatus==3'
style=
"padding: 10px; color: #666;"
>
以下人员大于等于一人审批通过即可
</p>
<p
v-if=
'item.AuditWayStatus==3'
style=
"padding: 10px; color: #666;"
>
以下人员大于等于一人审批通过即可
</p>
...
@@ -155,37 +169,41 @@
...
@@ -155,37 +169,41 @@
<img
width=
"28"
height=
"28"
v-else
:src=
"i.AuditEmPhoto"
alt=
""
:onerror=
"defaultImg"
>
<img
width=
"28"
height=
"28"
v-else
:src=
"i.AuditEmPhoto"
alt=
""
:onerror=
"defaultImg"
>
<span>
{{
i
.
AuditEmName
}}
</span>
<span>
{{
i
.
AuditEmName
}}
</span>
<span
:style=
"'color: ' + i.StatusColor + ' !important'"
>
{{
i
.
Stauts
}}
</span>
<span
:style=
"'color: ' + i.StatusColor + ' !important'"
>
{{
i
.
Stauts
}}
</span>
<span
style=
"display:block; padding-left: 40px; text-indent: 0; font-size: 12px; line-height: 24px; color: #333;"
>
{{
i
.
Description
}}
</span>
<span
<span
v-if=
'i.CareOfList!=null'
style=
"display: inline-block; line-height: 24px; font-size: 12px; text-indent: 0; padding-left:40px; color: #666;"
>
style=
"display:block; padding-left: 40px; text-indent: 0; font-size: 12px; line-height: 24px; color: #333;"
>
{{
i
.
Description
}}
</span>
<b
style=
"color: red;"
>
由
</b>
{{
i
.
CareOfList
[
0
].
BeFrom
}}
<b
style=
"color: red;"
>
转
</b>
{{
i
.
CareOfList
[
0
].
Target
}}
<span
v-if=
'i.CareOfList!=null'
<br/>
style=
"display: inline-block; line-height: 24px; font-size: 12px; text-indent: 0; padding-left:40px; color: #666;"
>
<b
style=
"color: red;"
>
由
</b>
{{
i
.
CareOfList
[
0
].
BeFrom
}}
<b
style=
"color: red;"
>
转
</b>
{{
i
.
CareOfList
[
0
].
Target
}}
<br
/>
{{
i
.
CareOfList
[
0
].
Remarks
}}
{{
i
.
CareOfList
[
0
].
Remarks
}}
</span>
</span>
</p>
</p>
<div
class=
"auditItemImgList"
v-if=
"toArr(i.Image).length>0"
>
<div
class=
"auditItemImgList"
v-if=
"toArr(i.Image).length>0"
>
<img
v-for=
'img in toArr(i.Image)'
:src=
"img"
@
click=
"getPic(toArr(i.Image))"
/>
<img
v-for=
'img in toArr(i.Image)'
:src=
"img"
@
click=
"getPic(toArr(i.Image))"
/>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--audit end--
>
</div
>
<!--audit end-->
<div
class=
"send"
v-if=
"detailList.AuditStatus==5"
>
<div
class=
"send"
v-if=
"detailList.AuditStatus==5"
>
<!--v-if="detailList.AuditStatus==5"-->
<!--v-if="detailList.AuditStatus==5"-->
<p
class=
"sentTitle"
>
抄送
<span>
审批通过后,通知抄送人
</span></p>
<p
class=
"sentTitle"
>
抄送
<span>
审批通过后,通知抄送人
</span></p>
<div
class=
"sendList"
>
<div
class=
"sendList"
>
<div
v-for=
"(item,index) in detailList.CopyToPeopleList"
>
<div
v-for=
"(item,index) in detailList.CopyToPeopleList"
>
<img
v-if=
"!item.EmPhoto"
src=
"../../assets/img/litheader.png"
alt=
""
>
<img
v-if=
"!item.EmPhoto"
src=
"../../assets/img/litheader.png"
alt=
""
>
<img
v-else
:src=
"item.EmPhoto"
alt=
""
:onerror=
"defaultImg"
>
<img
v-else
:src=
"item.EmPhoto"
alt=
""
:onerror=
"defaultImg"
>
<br
/>
<br
/>
{{
item
.
EmName
}}
{{
item
.
EmName
}}
</div>
</div>
</div>
</div>
</div>
<!--send end-->
</div>
<!--send end-->
</div>
</div>
<div
:class=
"
{viewBigPicLayer:true,viewBigPicLayerDisplayNone:dspNone}" @click="closePicLayer">
<div
:class=
"
{viewBigPicLayer:true,viewBigPicLayerDisplayNone:dspNone}" @click="closePicLayer">
<i
@
click=
"closePicLayer"
class=
"el-icon-circle-close-outline clolseViewBigPicLayer"
></i>
<i
@
click=
"closePicLayer"
class=
"el-icon-circle-close-outline clolseViewBigPicLayer"
></i>
<el-carousel
height=
"600px"
:interval=
"5000"
trigger=
"click"
>
<el-carousel
height=
"600px"
:interval=
"5000"
trigger=
"click"
>
<el-carousel-item
v-for=
"(item,index) in picObj"
:key=
"index"
>
<el-carousel-item
v-for=
"(item,index) in picObj"
:key=
"index"
>
<img
:src=
"item"
/>
<img
:src=
"item"
/>
...
@@ -197,8 +215,6 @@
...
@@ -197,8 +215,6 @@
<button
class=
"hollowFixedBtn"
@
click=
"outerVisible=false"
>
关闭
</button>
<button
class=
"hollowFixedBtn"
@
click=
"outerVisible=false"
>
关闭
</button>
</div>
</div>
</el-dialog>
</el-dialog>
</div>
</div>
</
template
>
</
template
>
...
@@ -206,124 +222,132 @@
...
@@ -206,124 +222,132 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
picObj
:
[],
picObj
:
[],
dspNone
:
true
,
dspNone
:
true
,
loading
:
true
,
loading
:
true
,
outerVisible
:
false
,
outerVisible
:
false
,
dialogTitle
:
""
,
dialogTitle
:
""
,
total
:
0
,
total
:
0
,
currentPage
:
1
,
currentPage
:
1
,
defaultImg
:
'this.src="'
+
require
(
'../../assets/img/litheader.png'
)
+
'"'
,
defaultImg
:
'this.src="'
+
require
(
'../../assets/img/litheader.png'
)
+
'"'
,
//请求数据
//请求数据
msg
:
{
msg
:
{
RB_BranchId
:
'-1'
,
RB_BranchId
:
'-1'
,
Status
:
'0'
,
Status
:
'0'
,
CreateBy
:
'0'
,
CreateBy
:
'0'
,
ToAuditId
:
'0'
,
ToAuditId
:
'0'
,
AuditedId
:
'0'
,
AuditedId
:
'0'
,
TemplateId
:
0
,
TemplateId
:
0
,
pageIndex
:
1
,
pageIndex
:
1
,
pageSize
:
15
,
pageSize
:
15
,
StartTime
:
''
,
StartTime
:
''
,
EndTime
:
''
,
EndTime
:
''
,
},
},
getCompanyMsg
:
{
getCompanyMsg
:
{
RB_Group_Id
:
'0'
,
RB_Group_Id
:
'0'
,
Status
:
'0'
,
Status
:
'0'
,
},
},
getUserMsg
:
{
getUserMsg
:
{
RB_Branch_id
:
'-1'
,
RB_Branch_id
:
'-1'
,
},
},
//返回数据
//返回数据
list
:
[],
list
:
[],
companyList
:
[],
companyList
:
[],
userList
:
[],
userList
:
[],
ApplyTypeList
:
[],
ApplyTypeList
:
[],
appAuditStatusList
:[],
appAuditStatusList
:
[],
detailList
:
{},
detailList
:
{},
}
}
},
},
methods
:
{
methods
:
{
getPic
(
obj
)
{
getPic
(
obj
)
{
this
.
picObj
=
obj
this
.
picObj
=
obj
this
.
dspNone
=
false
;
this
.
dspNone
=
false
;
},
},
closePicLayer
()
{
closePicLayer
()
{
this
.
dspNone
=
true
this
.
dspNone
=
true
},
},
toArr
(
val
){
toArr
(
val
)
{
let
arr
=
[]
let
arr
=
[]
if
(
val
!=
"[]"
)
if
(
val
!=
"[]"
)
{
{
val
.
substring
(
1
,
val
.
length
-
1
).
split
(
','
).
forEach
(
item
=>
{
val
.
substring
(
1
,
val
.
length
-
1
).
split
(
','
).
forEach
(
item
=>
{
arr
.
push
(
item
.
substring
(
1
,
item
.
length
-
1
))
arr
.
push
(
item
.
substring
(
1
,
item
.
length
-
1
))
});
});
}
}
return
arr
;
return
arr
;
},
},
getDetail
(
id
,
type
){
getDetail
(
id
,
type
)
{
this
.
apipost
(
'app_user_workflow_GetAuditInfo'
,{
WorkFlowId
:
id
,
TemplateType
:
type
},
res
=>
{
this
.
apipost
(
'app_user_workflow_GetAuditInfo'
,
{
if
(
res
.
data
.
resultCode
==
1
)
{
WorkFlowId
:
id
,
this
.
outerVisible
=
true
;
TemplateType
:
type
this
.
dialogTitle
=
'审批详情'
},
res
=>
{
this
.
detailList
=
res
.
data
.
data
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
outerVisible
=
true
;
this
.
dialogTitle
=
'审批详情'
this
.
detailList
=
res
.
data
.
data
}
}
},
err
=>
{})
},
err
=>
{})
},
},
getAppAuditStatus
(){
getAppAuditStatus
()
{
this
.
apipost
(
'app_user_workflow_get_myinitiate_auditstatus'
,{},
res
=>
{
this
.
apipost
(
'app_user_workflow_get_myinitiate_auditstatus'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
res
.
data
.
data
.
forEach
(
item
=>
{
res
.
data
.
data
.
forEach
(
item
=>
{
for
(
let
key
in
item
){
for
(
let
key
in
item
)
{
if
(
item
.
hasOwnProperty
(
key
)){
if
(
item
.
hasOwnProperty
(
key
))
{
this
.
appAuditStatusList
.
push
({
label
:
key
,
value
:
item
[
key
]})
this
.
appAuditStatusList
.
push
({
label
:
key
,
value
:
item
[
key
]
})
}
}
}
}
})
})
}
}
},
err
=>
{})
},
err
=>
{})
},
},
getApplyType
(){
//模板类型
getApplyType
()
{
//模板类型
this
.
apipost
(
'app_user_workflow_get_templatetype'
,{},
res
=>
{
this
.
apipost
(
'app_user_workflow_get_templatetype'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
res
.
data
.
data
.
forEach
(
item
=>
{
res
.
data
.
data
.
forEach
(
item
=>
{
for
(
let
key
in
item
){
for
(
let
key
in
item
)
{
if
(
item
.
hasOwnProperty
(
key
)){
if
(
item
.
hasOwnProperty
(
key
))
{
this
.
ApplyTypeList
.
push
({
label
:
key
,
value
:
item
[
key
]})
this
.
ApplyTypeList
.
push
({
label
:
key
,
value
:
item
[
key
]
})
}
}
}
}
})
})
}
}
},
err
=>
{})
},
err
=>
{})
},
},
getCompany
()
{
getCompany
()
{
this
.
apipost
(
'admin_get_BranchGetList'
,
this
.
getCompanyMsg
,
res
=>
{
this
.
apipost
(
'admin_get_BranchGetList'
,
this
.
getCompanyMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
companyList
=
res
.
data
.
data
;
this
.
companyList
=
res
.
data
.
data
;
}
else
{}
}
else
{}
},
err
=>
{})
},
err
=>
{})
},
},
getUser
()
{
getUser
()
{
this
.
msg
.
CreateBy
=
'0'
this
.
msg
.
CreateBy
=
'0'
this
.
msg
.
ToAuditId
=
'0'
this
.
msg
.
ToAuditId
=
'0'
this
.
msg
.
AuditedId
=
'0'
this
.
msg
.
AuditedId
=
'0'
this
.
getUserMsg
.
RB_Branch_id
=
this
.
msg
.
RB_BranchId
;
this
.
getUserMsg
.
RB_Branch_id
=
this
.
msg
.
RB_BranchId
;
this
.
apipost
(
'app_get_company_employee'
,
this
.
getUserMsg
,
res
=>
{
this
.
apipost
(
'app_get_company_employee'
,
this
.
getUserMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
userList
=
res
.
data
.
data
;
this
.
userList
=
res
.
data
.
data
;
}
else
{}
}
else
{}
},
err
=>
{})
},
err
=>
{})
},
},
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
this
.
apipost
(
'WorkFlow_get_GetOAPageList'
,
this
.
msg
,
res
=>
{
this
.
apipost
(
'WorkFlow_get_GetOAPageList'
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
list
=
res
.
data
.
data
.
pageData
;
this
.
list
=
res
.
data
.
data
.
pageData
;
this
.
total
=
res
.
data
.
data
.
count
;
this
.
total
=
res
.
data
.
data
.
count
;
this
.
loading
=
false
this
.
loading
=
false
}
else
{}
}
else
{}
},
err
=>
{})
},
err
=>
{})
},
},
handleCurrentChange
(
val
)
{
handleCurrentChange
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
msg
.
pageIndex
=
val
;
...
@@ -337,8 +361,8 @@
...
@@ -337,8 +361,8 @@
},
},
mounted
()
{
mounted
()
{
let
userInfo
=
this
.
getLocalStorage
();
let
userInfo
=
this
.
getLocalStorage
();
this
.
getUserMsg
.
RB_Group_id
=
this
.
getCompanyMsg
.
RB_Group_Id
=
userInfo
.
RB_Group_id
;
//集团ID
this
.
getUserMsg
.
RB_Group_id
=
this
.
getCompanyMsg
.
RB_Group_Id
=
userInfo
.
RB_Group_id
;
//集团ID
this
.
getCompany
()
this
.
getCompany
()
this
.
getUser
()
this
.
getUser
()
this
.
getList
()
this
.
getList
()
...
@@ -347,26 +371,128 @@
...
@@ -347,26 +371,128 @@
}
}
}
}
</
script
>
</
script
>
<
style
>
<
style
>
.approvalStatisticalDialog
{
width
:
400px
;
background
:
#fff
}
.approvalStatisticalDialog
.title
{
height
:
48px
;
background
:
#EDEEF0
;
line-height
:
48px
;
font-size
:
16px
;
color
:
#333
;
text-indent
:
30px
;
}
.approvalStatisticalDialog
.user
{
width
:
340px
;
margin
:
0
30px
;
border-bottom
:
1px
solid
#E6E6E6
;
height
:
60px
;
padding
:
30px
0
;
box-sizing
:
content-box
}
.approvalStatisticalDialog
.user
>
p
{
line-height
:
28px
;
}
.approvalStatisticalDialog
.user
>
img
{
width
:
58px
;
height
:
58px
;
border-radius
:
29px
;
float
:
left
;
margin
:
0
12px
0
0
;
}
.approvalStatisticalDialog
.detail
{
width
:
340px
;
margin
:
0
30px
;
padding
:
25px
0
;
border-bottom
:
1px
solid
#E6E6E6
;
min-height
:
120px
;
}
.approvalStatisticalDialog
.audit
{
width
:
340px
;
margin
:
30px
30px
0
;
min-height
:
120px
;
border-bottom
:
1px
solid
#E6E6E6
;
}
.approvalStatisticalDialog
.audit
.auditItem
{
min-height
:
80px
;
width
:
320px
;
margin-left
:
20px
;
border-left
:
1px
solid
#EDEDED
;
position
:
relative
;
font-size
:
14px
;
}
.approvalStatisticalDialog
.audit
.auditItem
:last-child
{
border-left
:
none
;
}
.approvalStatisticalDialog
.audit
.auditItem
>
p
{
line-height
:
40px
;
text-indent
:
40px
;
}
.approvalStatisticalDialog
.audit
.auditItem
>
img
{
width
:
40px
;
height
:
40px
;
border-radius
:
20px
;
position
:
absolute
;
left
:
-20px
;
}
.approvalStatisticalDialog
.send
{
width
:
340px
;
margin
:
30px
30px
0
;
min-height
:
120px
;
}
.approvalStatisticalDialog
.send
.sentTitle
{
height
:
14px
;
line-height
:
14px
;
text-indent
:
10px
;
border-left
:
3px
solid
#E95252
;
font-size
:
14px
;
}
.approvalStatisticalDialog
.send
.sentTitle
span
{
color
:
#666
;
margin-left
:
20px
;
}
.approvalStatisticalDialog
.send
.sendList
>
div
{
float
:
left
;
margin
:
10px
10px
0
0
;
font-size
:
12px
;
color
:
#666
;
width
:
40px
;
text-align
:
center
;
}
.approvalStatisticalDialog
.send
.sendList
>
div
>
img
{
width
:
40px
;
height
:
40px
;
border-radius
:
20px
;
}
.approvalStatisticalDialog
.myApprovalTable
tr
{
height
:
40px
;
font-size
:
14px
;
}
.approvalStatisticalDialog
.myApprovalTable
tr
td
:nth-child
(
1
)
{
text-align
:
right
;
color
:
#666
;
}
.approvalStatisticalDialog
{
width
:
400px
;
background
:
#fff
}
.approvalStatisticalDialog
.title
{
height
:
48px
;
background
:
#EDEEF0
;
line-height
:
48px
;
font-size
:
16px
;
color
:
#333
;
text-indent
:
30px
;}
.approvalStatisticalDialog
.user
{
width
:
340px
;
margin
:
0
30px
;
border-bottom
:
1px
solid
#E6E6E6
;
height
:
60px
;
padding
:
30px
0
;
box-sizing
:
content-box
}
.approvalStatisticalDialog
.user
>
p
{
line-height
:
28px
;}
.approvalStatisticalDialog
.user
>
img
{
width
:
58px
;
height
:
58px
;
border-radius
:
29px
;
float
:
left
;
margin
:
0
12px
0
0
;}
.approvalStatisticalDialog
.detail
{
width
:
340px
;
margin
:
0
30px
;
padding
:
25px
0
;
border-bottom
:
1px
solid
#E6E6E6
;
min-height
:
120px
;}
.approvalStatisticalDialog
.audit
{
width
:
340px
;
margin
:
30px
30px
0
;
min-height
:
120px
;
border-bottom
:
1px
solid
#E6E6E6
;}
.approvalStatisticalDialog
.audit
.auditItem
{
min-height
:
80px
;
width
:
320px
;
margin-left
:
20px
;
border-left
:
1px
solid
#EDEDED
;
position
:
relative
;
font-size
:
14px
;}
.approvalStatisticalDialog
.audit
.auditItem
:last-child
{
border-left
:
none
;}
.approvalStatisticalDialog
.audit
.auditItem
>
p
{
line-height
:
40px
;
text-indent
:
40px
;}
.approvalStatisticalDialog
.audit
.auditItem
>
img
{
width
:
40px
;
height
:
40px
;
border-radius
:
20px
;
position
:
absolute
;
left
:
-20px
;}
.approvalStatisticalDialog
.send
{
width
:
340px
;
margin
:
30px
30px
0
;
min-height
:
120px
;}
.approvalStatisticalDialog
.send
.sentTitle
{
height
:
14px
;
line-height
:
14px
;
text-indent
:
10px
;
border-left
:
3px
solid
#E95252
;
font-size
:
14px
;}
.approvalStatisticalDialog
.send
.sentTitle
span
{
color
:
#666
;
margin-left
:
20px
;}
.approvalStatisticalDialog
.send
.sendList
>
div
{
float
:
left
;
margin
:
10px
10px
0
0
;
font-size
:
12px
;
color
:
#666
;
width
:
40px
;
text-align
:
center
;}
.approvalStatisticalDialog
.send
.sendList
>
div
>
img
{
width
:
40px
;
height
:
40px
;
border-radius
:
20px
;}
.approvalStatisticalDialog
.myApprovalTable
tr
{
height
:
40px
;
font-size
:
14px
;}
.approvalStatisticalDialog
.myApprovalTable
tr
td
:nth-child
(
1
)
{
text-align
:
right
;
color
:
#666
;
}
</
style
>
</
style
>
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