Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
H
housing-estate
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
物业总平台
housing-estate
Commits
129c9c81
提交
129c9c81
authored
6月 20, 2023
作者:
宋雄
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改bug
上级
c2ca1828
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
54 行增加
和
31 行删除
+54
-31
.env.development
.env.development
+1
-0
api.js
src/api/api.js
+1
-1
static.js
src/assets/static.js
+3
-3
complaint-detail.vue
src/views/property/complaint/complaint-detail.vue
+28
-11
maintenance-detail.vue
src/views/property/maintenance/maintenance-detail.vue
+12
-6
maintenance.vue
src/views/property/maintenance/maintenance.vue
+9
-10
没有找到文件。
.env.development
浏览文件 @
129c9c81
NODE_ENV=development
VUE_APP_API_BASE_URL='http://192.168.0.118:9999'
# VUE_APP_API_BASE_URL='http://192.168.0.100:9999'
# VUE_APP_API_BASE_URL='http://220.203.25.212:9999'
VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas
VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview
...
...
src/api/api.js
浏览文件 @
129c9c81
...
...
@@ -85,7 +85,7 @@ const dispatchCommunityRepairApi = (params)=>postAction("/property-community/pro
// 投诉管理
const
querycommunityComplaintApi
=
(
params
)
=>
getAction
(
"/property-community/property/communityComplaint/queryById"
,
params
);
const
auditCommunityComplaintApi
=
(
params
)
=>
postAction
(
"/property-community/property/communityComplaint/
au
dit"
,
params
);
const
auditCommunityComplaintApi
=
(
params
)
=>
postAction
(
"/property-community/property/communityComplaint/
e
dit"
,
params
);
//数据字典
const
addDict
=
(
params
)
=>
postAction
(
"/sys/dict/add"
,
params
);
...
...
src/assets/static.js
浏览文件 @
129c9c81
...
...
@@ -32,9 +32,9 @@ export const REPAIR_STATUS = [
{
label
:
'待派单'
,
value
:
'waitDispatch'
},
{
label
:
'待接收'
,
value
:
'waitReceive'
},
{
label
:
'维修中'
,
value
:
'inRepair'
},
{
label
:
'
提
单待审核'
,
value
:
'finishWaitAudit'
},
{
label
:
'
提
单审核驳回'
,
value
:
'finishRefuse'
},
{
label
:
'
提单审核通过
'
,
value
:
'finishAuditPass'
}
{
label
:
'
回
单待审核'
,
value
:
'finishWaitAudit'
},
{
label
:
'
回
单审核驳回'
,
value
:
'finishRefuse'
},
{
label
:
'
已完成
'
,
value
:
'finishAuditPass'
}
]
// 费用计算公式
...
...
src/views/property/complaint/complaint-detail.vue
浏览文件 @
129c9c81
...
...
@@ -39,16 +39,21 @@
</a-form-model>
</j-form-container>
<j-form-container
v-if=
"!formDisabled"
>
<a-form-model
ref=
"form"
:model=
"form"
slot=
"detail"
>
<a-form-model
ref=
"form"
:model=
"form"
:rules=
"validatorRules"
slot=
"detail"
>
<a-row>
<a-col
:span=
"24"
>
<a-form-model-item
label=
"处理状态"
:labelCol=
"
{ xs: { span: 24 }, sm: { span: 2 } }" :wrapperCol="wrapperCol" prop="
complaint
Status">
<a-select
v-model=
"form.
complaint
Status"
placeholder=
"请选择与业主关系"
style=
"width:50%"
>
<a-select-option
value=
"pending"
>
处理中
</a-select-option>
<a-form-model-item
label=
"处理状态"
:labelCol=
"
{ xs: { span: 24 }, sm: { span: 2 } }" :wrapperCol="wrapperCol" prop="
handle
Status">
<a-select
v-model=
"form.
handle
Status"
placeholder=
"请选择与业主关系"
style=
"width:50%"
>
<a-select-option
value=
"pending"
v-if=
"model.handleStatus !== 'pending'"
>
处理中
</a-select-option>
<a-select-option
value=
"finish"
>
处理完成
</a-select-option>
</a-select>
</a-form-model-item>
</a-col>
<a-col
:span=
"24"
v-if=
"model.handleStatus === 'pending'"
>
<a-form-model-item
label=
"处理结果"
:labelCol=
"
{ xs: { span: 24 }, sm: { span: 2 } }" :wrapperCol="wrapperCol" prop="handleResult">
<a-textarea
v-model=
"model.handleResult"
placeholder=
"请输入"
style=
"width:80%"
/>
</a-form-model-item>
</a-col>
</a-row>
</a-form-model>
</j-form-container>
...
...
@@ -71,7 +76,7 @@
currentStep
:
1
,
model
:{},
form
:
{
complaint
Status
:
'pending'
,
handle
Status
:
'pending'
,
auditOpinion
:
''
},
labelCol
:
{
...
...
@@ -82,6 +87,10 @@
xs
:
{
span
:
24
},
sm
:
{
span
:
20
},
},
validatorRules
:
{
handleStatus
:
[{
required
:
true
,
message
:
'请选择处理状态'
,
trigger
:
'change'
}],
handleResult
:
[{
required
:
true
,
message
:
'请输入处理结果'
,
trigger
:
'blur'
}]
},
confirmLoading
:
false
,
}
},
...
...
@@ -98,19 +107,27 @@
async
getDetail
()
{
this
.
confirmLoading
=
true
let
{
result
}
=
await
querycommunityComplaintApi
({
id
:
this
.
$route
.
query
.
id
})
if
(
result
.
handleStatus
===
'pending'
)
{
this
.
form
.
handleStatus
=
'finish'
}
this
.
model
=
{...
result
}
this
.
confirmLoading
=
false
},
onReturn
()
{
this
.
closeCurrent
()
},
async
onSubmit
()
{
let
res
=
await
auditCommunityComplaintApi
({
id
:
this
.
$route
.
query
.
id
,
complaintStatus
:
this
.
form
.
complaintStatus
onSubmit
()
{
this
.
$refs
.
form
.
validate
(
async
valid
=>
{
if
(
valid
)
{
let
res
=
await
auditCommunityComplaintApi
({
...
this
.
model
,
id
:
this
.
$route
.
query
.
id
,
handleStatus
:
this
.
form
.
handleStatus
})
this
.
$message
.
success
(
res
.
message
);
this
.
closeCurrent
()
}
})
this
.
$message
.
success
(
res
.
message
);
this
.
closeCurrent
()
}
}
}
...
...
src/views/property/maintenance/maintenance-detail.vue
浏览文件 @
129c9c81
...
...
@@ -55,7 +55,7 @@
</a-form-model-item>
</a-col>
<template
v-if=
"model.repairStatus === 'finish
w
aitAudit' || model.repairStatus === 'finishAuditPass'"
>
<template
v-if=
"model.repairStatus === 'finish
W
aitAudit' || model.repairStatus === 'finishAuditPass'"
>
<a-col
:span=
"12"
>
<a-form-model-item
label=
"维修员"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
prop=
"maintenanceName"
>
<a-input
v-model=
"model.maintenanceName"
placeholder=
"请输入"
></a-input>
...
...
@@ -82,8 +82,14 @@
<a-col
:span=
"24"
>
<a-form-model-item
label=
"审核意见"
:labelCol=
"{ xs: { span: 24 }, sm: { span: 2 } }"
:wrapperCol=
"wrapperCol"
prop=
"repairStatus"
>
<a-select
v-model=
"form.repairStatus"
placeholder=
"请选择与业主关系"
style=
"width:50%"
>
<a-select-option
value=
"waitDispatch"
>
审核通过
</a-select-option>
<a-select-option
value=
"initiateRefuse"
>
审核驳回
</a-select-option>
<
template
v-if=
"model.repairStatus === 'initiateWaitAudit'"
>
<a-select-option
value=
"waitDispatch"
>
审核通过
</a-select-option>
<a-select-option
value=
"initiateRefuse"
>
审核驳回
</a-select-option>
</
template
>
<
template
v-if=
"model.repairStatus === 'finishWaitAudit'"
>
<a-select-option
value=
"finishAuditPass"
>
审核通过
</a-select-option>
<a-select-option
value=
"finishRefuse"
>
审核驳回
</a-select-option>
</
template
>
</a-select>
</a-form-model-item>
</a-col>
...
...
@@ -123,7 +129,7 @@
currentStep
:
1
,
model
:{},
form
:
{
repairStatus
:
'
waitDispatch
'
,
repairStatus
:
''
,
auditOpinion
:
''
},
labelCol
:
{
...
...
@@ -139,7 +145,7 @@
},
computed
:
{
formDisabled
(){
return
this
.
$route
.
query
.
type
===
'
1
'
return
this
.
$route
.
query
.
type
===
'
detail
'
},
},
created
()
{
...
...
@@ -178,7 +184,7 @@
let
res
=
await
auditCommunityRepairApi
({
id
:
this
.
$route
.
query
.
id
,
repairStatus
:
this
.
form
.
repairStatus
,
auditOpinion
:
this
.
form
.
repairStatus
===
'waitDispatch'
?
''
:
this
.
form
.
repairStatus
auditOpinion
:
this
.
form
.
auditOpinion
})
this
.
$message
.
success
(
res
.
message
);
this
.
closeCurrent
()
...
...
src/views/property/maintenance/maintenance.vue
浏览文件 @
129c9c81
...
...
@@ -55,7 +55,7 @@
rowKey="id"
:columns="columns"
:dataSource="dataSource"
:pagination="pagination"
:pagination="
i
pagination"
:loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
class="j-table-force-nowrap"
...
...
@@ -65,16 +65,20 @@
<span
:style=
"
{'color': record.employeeStatus === '1' ? 'green' : 'red'}">
{{
record
.
employeeStatus
===
'1'
?
'在职'
:
'离职'
}}
</span>
</span>
<span
slot=
"action"
slot-scope=
"text, record"
>
<a
@
click=
"onDetail(record.id, '
1
')"
>
详情
</a>
<a
@
click=
"onDetail(record.id, '
detail
')"
>
详情
</a>
<template
v-if=
"record.repairStatus === 'initiateWaitAudit'"
>
<a-divider
type=
"vertical"
/>
<a
@
click=
"onDetail(record.id
, '2'
)"
>
报单审核
</a>
<a
@
click=
"onDetail(record.id)"
>
报单审核
</a>
</
template
>
<
template
v-if=
"record.repairStatus === 'waitDispatch'"
>
<a-divider
type=
"vertical"
/>
<a
@
click=
"onDispatch(record.id)"
>
派单
</a>
</
template
>
<
template
v-if=
"record.repairStatus === 'finishWaitAudit'"
>
<a-divider
type=
"vertical"
/>
<a
@
click=
"onDetail(record.id)"
>
回单审核
</a>
</
template
>
</span>
</a-table>
...
...
@@ -169,7 +173,8 @@
dataIndex
:
'action'
,
scopedSlots
:
{
customRender
:
'action'
},
align
:
'center'
,
width
:
150
width
:
150
,
fixed
:
'right'
}
]
let
currentDispathId
=
''
...
...
@@ -183,12 +188,6 @@
repairStatus
:
REPAIR_STATUS
,
// 表头
columns
:
columns
,
pagination
:
{
total
:
0
,
current
:
1
,
pageSize
:
10
,
showSizeChanger
:
true
},
url
:
{
list
:
"/property-community/property/communityRepair/list"
,
delete
:
'/property-community/property/communityRepair/delete'
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论