Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Y
yishuju-ui
Project
Project
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
何远江
yishuju-ui
Commits
69669c30
Commit
69669c30
authored
Mar 04, 2025
by
沈翠玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复管理
parent
8a263ea4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
94 additions
and
15 deletions
+94
-15
property.js
src/api/property.js
+8
-0
index.vue
src/views/business-approval/repair-approve/index.vue
+80
-15
index.vue
src/views/property/case-detail/index.vue
+6
-0
No files found.
src/api/property.js
View file @
69669c30
...
@@ -140,3 +140,11 @@ export const getRepairApply = (params) => {
...
@@ -140,3 +140,11 @@ export const getRepairApply = (params) => {
export
const
getRepairApplyTotal
=
(
params
)
=>
{
export
const
getRepairApplyTotal
=
(
params
)
=>
{
return
request
.
get
(
'/RepairApply/flowStatusTotal'
,
params
);
return
request
.
get
(
'/RepairApply/flowStatusTotal'
,
params
);
};
};
// 修复下载审批
export
const
applyDownloadById
=
(
params
)
=>
{
return
request
.
get
(
'/RepairApply/applyDownloadById'
,
params
);
};
// 修复下载申请
export
const
downLoadApplyStatusById
=
(
params
)
=>
{
return
request
.
get
(
'/RepairApply/downLoadApplyStatusById'
,
params
);
};
\ No newline at end of file
src/views/business-approval/repair-approve/index.vue
View file @
69669c30
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
esc-closable
esc-closable
>
>
<div
class=
"w-full px-3 h-full overflow-auto flex-col flex mytable"
>
<div
class=
"w-full px-3 h-full overflow-auto flex-col flex mytable"
>
是否审批通过申请人{{currentRow?.applyUser?.username}}于{{currentRow?.applyTime}}时提交的申请?
是否审批通过申请人{{currentRow?.applyUser?.username}}于{{currentRow?.applyTime}}时提交的
{{currentRow?.downloadStatus === 'pending' ? '下载' : ''}}
申请?
</div>
</div>
<
template
#
footer
>
<
template
#
footer
>
<el-button
type=
"default"
@
click=
"showModal = false"
>
取消
</el-button>
<el-button
type=
"default"
@
click=
"showModal = false"
>
取消
</el-button>
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
import
{
computed
}
from
'vue'
;
import
{
computed
}
from
'vue'
;
import
{
onMounted
}
from
'vue'
;
import
{
onMounted
}
from
'vue'
;
import
{
reactive
,
ref
}
from
'vue'
;
import
{
reactive
,
ref
}
from
'vue'
;
import
{
getRepairApply
,
getRepairApplyTotal
,
RepairRecordStatusByIds
}
from
'@/api/property'
;
import
{
getRepairApply
,
getRepairApplyTotal
,
RepairRecordStatusByIds
,
applyDownloadById
,
downLoadApplyStatusById
}
from
'@/api/property'
;
import
{
ElMessageBox
,
ElMessage
,
ElButton
}
from
'element-plus'
;
import
{
ElMessageBox
,
ElMessage
,
ElButton
}
from
'element-plus'
;
import
{
getTenantPage
}
from
'@/api/tenant'
;
import
{
getTenantPage
}
from
'@/api/tenant'
;
import
{
useDict
}
from
'@/hooks/useDict'
;
import
{
useDict
}
from
'@/hooks/useDict'
;
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
import
{
getPlatformPage
}
from
'@/api/platform'
;
import
{
getPlatformPage
}
from
'@/api/platform'
;
import
{
VxeTextEllipsis
,
VxeTooltip
}
from
'vxe-pc-ui'
;
import
{
VxeTextEllipsis
,
VxeTooltip
}
from
'vxe-pc-ui'
;
import
{
useAuthStore
}
from
'@/stores/modules/auth'
;
import
{
useAuthStore
}
from
'@/stores/modules/auth'
;
const
{
PhoneResultStatus
,
ReduceType
,
FlowStatus
,
FollowStatus
,
CaseStatus
}
=
useDict
(
"PhoneResultStatus"
,
"ReduceType"
,
"FlowStatus"
,
"FollowStatus"
,
"Case
Status"
);
const
{
PhoneResultStatus
,
ReduceType
,
FlowStatus
,
FollowStatus
,
CaseStatus
,
DownLoadApplyStatus
}
=
useDict
(
"PhoneResultStatus"
,
"ReduceType"
,
"FlowStatus"
,
"FollowStatus"
,
"CaseStatus"
,
"DownLoadApply
Status"
);
const
downloadfile
=
inject
(
'download'
);
const
downloadfile
=
inject
(
'download'
);
const
{
authButtonListGet
}
=
useAuthStore
();
// 获取用户权限列表
const
{
authButtonListGet
}
=
useAuthStore
();
// 获取用户权限列表
...
@@ -114,15 +114,24 @@
...
@@ -114,15 +114,24 @@
currentRow
.
value
=
row
currentRow
.
value
=
row
showModal
.
value
=
true
;
showModal
.
value
=
true
;
};
};
const
query
=
()
=>
caseLRef
.
value
?.
search
();
const
download
=
(
row
)
=>
{
const
download
=
(
row
)
=>
{
downloadfile
(
'/RepairApply/download'
,
{
id
:
row
.
id
},
'修复列表.xls'
);
downloadfile
(
'/RepairApply/download'
,
{
id
:
row
.
id
},
'修复列表.xls'
);
}
}
const
submitForm
=
async
(
type
)
=>
{
const
submitForm
=
async
(
type
)
=>
{
const
ids
=
currentRow
.
value
.
id
const
ids
=
currentRow
.
value
.
id
if
(
currentRow
.
value
.
downloadStatus
===
'pending'
)
{
await
downLoadApplyStatusById
({
id
:
ids
,
downLoadApplyStatus
:
type
})
}
else
{
await
RepairRecordStatusByIds
({
await
RepairRecordStatusByIds
({
id
:
ids
,
id
:
ids
,
flowStatus
:
type
,
flowStatus
:
type
,
});
});
}
ElMessage
.
success
({
ElMessage
.
success
({
message
:
'审核成功'
,
message
:
'审核成功'
,
...
@@ -132,6 +141,25 @@
...
@@ -132,6 +141,25 @@
query
();
query
();
};
};
const
applyDownload
=
async
(
row
)
=>
{
await
ElMessageBox
.
confirm
(
`是否申请修复申请标题为
${
row
.
title
}
,申请人为
${
row
.
applyUser
.
username
}
,申请时间为
${
row
.
applyTime
}
的下载权限?`
,
'提示'
,
{
confirmButtonText
:
'确认'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
});
applyDownloadById
({
id
:
row
.
id
})
ElMessage
({
type
:
'success'
,
message
:
'申请成功!'
,
plain
:
true
,
});
setTimeout
(()
=>
{
query
();
},
500
)
}
const
config
=
reactive
({
const
config
=
reactive
({
columns
:
[
columns
:
[
...
@@ -227,6 +255,24 @@
...
@@ -227,6 +255,24 @@
},
},
},
},
},
},
{
field
:
'downloadStatus'
,
showOverflow
:
'tooltip'
,
title
:
'下载审批状态'
,
width
:
95
,
enum
:
DownLoadApplyStatus
,
// search: { el: 'select', props: { filterable: true }, labelWidth: 105 },
fieldNames
:
{
label
:
'label'
,
value
:
'value'
},
slots
:
{
default
:
({
row
})
=>
{
return
(
<>
{
row
.
downloadStatus
?
DownLoadApplyStatus
.
value
?.
find
((
v
)
=>
v
.
value
===
row
.
downloadStatus
)?.
label
:
''
}
<
/
>
);
},
},
},
{
{
field
:
'code'
,
field
:
'code'
,
title
:
'操作'
,
title
:
'操作'
,
...
@@ -242,6 +288,7 @@
...
@@ -242,6 +288,7 @@
<
/
>
<
/
>
);
);
}
else
if
(
activeName
.
value
===
'pass'
)
{
}
else
if
(
activeName
.
value
===
'pass'
)
{
if
(
row
.
downloadStatus
===
'pass'
)
{
return
(
return
(
<>
<>
<
ElButton
type
=
"primary"
onClick
=
{()
=>
download
(
row
)}
>
<
ElButton
type
=
"primary"
onClick
=
{()
=>
download
(
row
)}
>
...
@@ -249,6 +296,25 @@
...
@@ -249,6 +296,25 @@
<
/ElButton
>
<
/ElButton
>
<
/
>
<
/
>
);
);
}
else
{
if
(
row
.
downloadStatus
===
'pending'
&&
authButtonListGet
.
includes
(
'allcation_for_tenant'
))
{
return
(
<>
<
ElButton
type
=
"primary"
onClick
=
{()
=>
changeStatus
(
row
)}
>
下载审批
<
/ElButton
>
<
/
>
);
}
else
{
return
(
<>
<
ElButton
type
=
"primary"
onClick
=
{()
=>
applyDownload
(
row
)}
>
下载申请
<
/ElButton
>
<
/
>
);
}
}
}
}
},
},
},
},
...
@@ -257,7 +323,6 @@
...
@@ -257,7 +323,6 @@
onCheckboxChange
:
onCheckboxChange
,
onCheckboxChange
:
onCheckboxChange
,
onCheckboxAll
:
onCheckboxAll
,
onCheckboxAll
:
onCheckboxAll
,
});
});
const
query
=
()
=>
caseLRef
.
value
?.
search
();
onMounted
(()
=>
{
onMounted
(()
=>
{
query
();
query
();
...
...
src/views/property/case-detail/index.vue
View file @
69669c30
...
@@ -938,6 +938,12 @@
...
@@ -938,6 +938,12 @@
);
);
};
};
const
split
=
()
=>
{
const
split
=
()
=>
{
if
(
!
recordData
.
value
||
recordData
.
value
.
length
===
0
)
{
return
ElMessage
.
warning
({
message
:
'要先跟进后才可以申请分期'
,
plain
:
true
,
});
}
splitDrawerRef
.
value
.
openModal
(
splitDrawerRef
.
value
.
openModal
(
JSON
.
parse
(
JSON
.
stringify
(
detail
.
value
)),
JSON
.
parse
(
JSON
.
stringify
(
detail
.
value
)),
JSON
.
parse
(
JSON
.
stringify
(
caseDetailConfig
.
data
))
JSON
.
parse
(
JSON
.
stringify
(
caseDetailConfig
.
data
))
...
...
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