Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pension-vue
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
mengmeng
pension-vue
Commits
ff02e4d3
Commit
ff02e4d3
authored
Mar 23, 2021
by
lings
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc页面
parent
700aa28d
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
1442 additions
and
116 deletions
+1442
-116
index.html
public/index.html
+1
-1
news-add-or-update-admin.vue
src/views/modules/demo/news-add-or-update-admin.vue
+198
-0
news-add-or-update.vue
src/views/modules/demo/news-add-or-update.vue
+19
-5
news-admin.vue
src/views/modules/demo/news-admin.vue
+120
-0
news-detail.vue
src/views/modules/demo/news-detail.vue
+198
-0
news.vue
src/views/modules/demo/news.vue
+28
-3
news_admin.vue
src/views/modules/serviceOrder/news_admin.vue
+93
-0
pensioncommunity-add-or-update.vue
...s/modules/serviceOrder/pensioncommunity-add-or-update.vue
+12
-20
pensioncommunity.vue
src/views/modules/serviceOrder/pensioncommunity.vue
+7
-7
pensionorder-cancel.vue
src/views/modules/serviceOrder/pensionorder-cancel.vue
+5
-1
pensionorder-receive.vue
src/views/modules/serviceOrder/pensionorder-receive.vue
+1
-1
pensionorder-send.vue
src/views/modules/serviceOrder/pensionorder-send.vue
+9
-4
pensionorder.vue
src/views/modules/serviceOrder/pensionorder.vue
+5
-5
pensionorganization-add-or-update.vue
...odules/serviceOrder/pensionorganization-add-or-update.vue
+105
-0
pensionorganization.vue
src/views/modules/serviceOrder/pensionorganization.vue
+75
-0
pensionservice-add-or-update.vue
...ews/modules/serviceOrder/pensionservice-add-or-update.vue
+43
-43
pensionservice.vue
src/views/modules/serviceOrder/pensionservice.vue
+8
-8
role.vue
src/views/modules/serviceOrder/role.vue
+1
-1
user-add-or-update.vue
src/views/modules/serviceOrder/user-add-or-update.vue
+17
-17
user-check.vue
src/views/modules/serviceOrder/user-check.vue
+190
-0
user-detail.vue
src/views/modules/serviceOrder/user-detail.vue
+191
-0
user-old.vue
src/views/modules/serviceOrder/user-old.vue
+115
-0
vue.config.js
vue.config.js
+1
-0
No files found.
public/index.html
View file @
ff02e4d3
...
...
@@ -9,7 +9,7 @@
window
.
SITE_CONFIG
=
{};
window
.
SITE_CONFIG
[
'version'
]
=
'v1.0.0'
;
window
.
SITE_CONFIG
[
'nodeEnv'
]
=
'<%= process.env.VUE_APP_NODE_ENV %>'
;
window
.
SITE_CONFIG
[
'apiURL'
]
=
'http://
localhost:8080
/hmit-admin'
;
// api请求地址
window
.
SITE_CONFIG
[
'apiURL'
]
=
'http://
192.168.10.225:8088
/hmit-admin'
;
// api请求地址
window
.
SITE_CONFIG
[
'storeState'
]
=
{};
// vuex本地储存初始化状态(用于不刷新页面的情况下,也能重置初始化项目中所有状态)
window
.
SITE_CONFIG
[
'contentTabDefault'
]
=
{
// 内容标签页默认属性对象
'name'
:
''
,
// 名称, 由 this.$route.name 自动赋值(默认,名称 === 路由名称 === 路由路径)
...
...
src/views/modules/demo/news-add-or-update-admin.vue
0 → 100644
View file @
ff02e4d3
<
template
>
<el-dialog
:visible
.
sync=
"visible"
:title=
"!dataForm.id ? $t('add') : $t('update')"
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
>
<el-form
:model=
"dataForm"
:rules=
"dataRule"
ref=
"dataForm"
@
keyup
.
enter
.
native=
"dataFormSubmitHandle()"
label-width=
"120px"
>
<el-form-item
prop=
"title"
:label=
"$t('news.title')"
>
<el-input
v-model=
"dataForm.title"
:placeholder=
"$t('news.title')"
></el-input>
</el-form-item>
<el-form-item
prop=
"content"
:label=
"$t('news.content')"
>
<!-- 富文本编辑器, 容器 -->
<div
id=
"J_quillEditor"
></div>
<!-- 自定义上传图片功能 (使用element upload组件) -->
<el-upload
:action=
"uploadUrl"
:show-file-list=
"false"
:before-upload=
"uploadBeforeUploadHandle"
:on-success=
"uploadSuccessHandle"
style=
"display: none;"
>
<el-button
ref=
"uploadBtn"
type=
"primary"
size=
"small"
>
{{
$t
(
'upload.button'
)
}}
</el-button>
</el-upload>
</el-form-item>
<el-form-item
prop=
"pubDate"
:label=
"$t('news.pubDate')"
>
<el-date-picker
v-model=
"dataForm.pubDate"
type=
"datetime"
value-format=
"yyyy-MM-dd HH:mm:ss"
:placeholder=
"$t('news.pubDate')"
></el-date-picker>
</el-form-item>
<el-form-item
prop=
"status"
label=
"审核结果"
>
<el-select
v-model=
"dataForm.status"
filterable
placeholder=
"审核结果"
>
<el-option
label=
""
value=
""
></el-option>
<el-option
label=
"未审核"
value=
"0"
></el-option>
<el-option
label=
"审核通过"
value=
"1"
></el-option>
<el-option
label=
"审核不通过"
value=
"2"
></el-option>
</el-select>
</el-form-item>
</el-form>
<template
slot=
"footer"
>
<el-button
@
click=
"visible = false"
>
{{
$t
(
'cancel'
)
}}
</el-button>
<el-button
type=
"primary"
@
click=
"dataFormSubmitHandle()"
>
{{
$t
(
'confirm'
)
}}
</el-button>
</
template
>
</el-dialog>
</template>
<
style
>
.ql-container
ql-snow
{
height
:
500px
;
}
.ql-editor
{
min-height
:
300px
;
}
</
style
>
<
script
>
import
Cookies
from
'js-cookie'
import
debounce
from
'lodash/debounce'
import
'quill/dist/quill.snow.css'
import
Quill
from
'quill'
export
default
{
data
()
{
return
{
visible
:
false
,
quillEditor
:
null
,
quillEditorToolbarOptions
:
[
[
'bold'
,
'italic'
,
'underline'
,
'strike'
],
[
'blockquote'
,
'code-block'
,
'image'
],
[{
'header'
:
1
},
{
'header'
:
2
}],
[{
'list'
:
'ordered'
},
{
'list'
:
'bullet'
}],
[{
'script'
:
'sub'
},
{
'script'
:
'super'
}],
[{
'indent'
:
'-1'
},
{
'indent'
:
'+1'
}],
[{
'direction'
:
'rtl'
}],
[{
'size'
:
[
'small'
,
false
,
'large'
,
'huge'
]
}],
[{
'header'
:
[
1
,
2
,
3
,
4
,
5
,
6
,
false
]
}],
[{
'color'
:
[]
},
{
'background'
:
[]
}],
[{
'font'
:
[]
}],
[{
'align'
:
[]
}],
[
'clean'
]
],
uploadUrl
:
''
,
dataForm
:
{
id
:
''
,
title
:
''
,
content
:
''
,
pubDate
:
''
,
status
:
''
,
statusName
:
''
}
}
},
computed
:
{
dataRule
()
{
var
validateContent
=
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
quillEditor
.
getLength
()
<=
1
)
{
return
callback
(
new
Error
(
this
.
$t
(
'validate.required'
)))
}
callback
()
}
return
{
title
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
content
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
},
{
validator
:
validateContent
,
trigger
:
'blur'
}
],
pubDate
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
]
}
}
},
methods
:
{
init
()
{
this
.
visible
=
true
this
.
$nextTick
(()
=>
{
if
(
this
.
quillEditor
)
{
this
.
quillEditor
.
deleteText
(
0
,
this
.
quillEditor
.
getLength
())
}
else
{
this
.
quillEditorHandle
()
}
this
.
$refs
[
'dataForm'
].
resetFields
()
if
(
this
.
dataForm
.
id
)
{
this
.
getInfo
()
}
})
},
// 富文本编辑器
quillEditorHandle
()
{
this
.
quillEditor
=
new
Quill
(
'#J_quillEditor'
,
{
modules
:
{
toolbar
:
this
.
quillEditorToolbarOptions
},
theme
:
'snow'
})
// 自定义上传图片功能 (使用element upload组件)
// this.uploadUrl = `${window.SITE_CONFIG['apiURL']}/sys/oss/upload?token=${Cookies.get('token')}`
this
.
uploadUrl
=
`
${
window
.
SITE_CONFIG
[
'apiURL'
]}
/serviceOrder/pensiondocument/uploadFile?token=
${
Cookies
.
get
(
'token'
)}
`
this
.
quillEditor
.
getModule
(
'toolbar'
).
addHandler
(
'image'
,
()
=>
{
this
.
$refs
.
uploadBtn
.
$el
.
click
()
})
// 监听内容变化,动态赋值
this
.
quillEditor
.
on
(
'text-change'
,
()
=>
{
this
.
dataForm
.
content
=
this
.
quillEditor
.
root
.
innerHTML
})
},
// 上传图片之前
uploadBeforeUploadHandle
(
file
)
{
if
(
file
.
type
!==
'image/jpg'
&&
file
.
type
!==
'image/jpeg'
&&
file
.
type
!==
'image/png'
&&
file
.
type
!==
'image/gif'
)
{
this
.
$message
.
error
(
'只支持jpg、png、gif格式的图片!'
)
return
false
}
},
// 上传图片成功
uploadSuccessHandle
(
res
,
file
,
fileList
)
{
if
(
res
.
code
!==
0
)
{
return
this
.
$message
.
error
(
res
.
msg
)
}
this
.
quillEditor
.
insertEmbed
(
this
.
quillEditor
.
getSelection
().
index
,
'image'
,
`
${
window
.
SITE_CONFIG
[
'apiURL'
]}
`
+
res
.
data
.
filePath
)
},
// 获取信息
getInfo
()
{
this
.
$http
.
get
(
`/serviceOrder/news/
${
this
.
dataForm
.
id
}
`
).
then
(({
data
:
res
})
=>
{
if
(
res
.
code
!==
0
)
{
return
this
.
$message
.
error
(
res
.
msg
)
}
this
.
dataForm
=
res
.
data
this
.
dataForm
.
status
=
this
.
dataForm
.
status
.
toString
()
this
.
quillEditor
.
root
.
innerHTML
=
this
.
dataForm
.
content
}).
catch
(()
=>
{})
},
// 表单提交
dataFormSubmitHandle
:
debounce
(
function
()
{
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
!
valid
)
{
return
false
}
if
(
this
.
dataForm
.
status
==
'1'
){
this
.
dataForm
.
statusName
=
"审核通过"
}
if
(
this
.
dataForm
.
status
==
'2'
){
this
.
dataForm
.
statusName
=
"审核不通过"
}
this
.
$http
[
!
this
.
dataForm
.
id
?
'post'
:
'put'
](
'/serviceOrder/news'
,
this
.
dataForm
,
{
headers
:
{
'content-type'
:
'application/x-www-form-urlencoded'
}
}
).
then
(({
data
:
res
})
=>
{
if
(
res
.
code
!==
0
)
{
return
this
.
$message
.
error
(
res
.
msg
)
}
this
.
$message
({
message
:
this
.
$t
(
'prompt.success'
),
type
:
'success'
,
duration
:
500
,
onClose
:
()
=>
{
this
.
visible
=
false
this
.
$emit
(
'refreshDataList'
)
}
})
}).
catch
(()
=>
{})
})
},
1000
,
{
'leading'
:
true
,
'trailing'
:
false
})
}
}
</
script
>
src/views/modules/demo/news-add-or-update.vue
View file @
ff02e4d3
<
template
>
<el-dialog
:visible
.
sync=
"visible"
:title=
"!dataForm.id ? $t('add') : $t('update')"
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
>
<el-dialog
:visible
.
sync=
"visible"
:title=
"!dataForm.id ? $t('add') : $t('update')"
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
>
<el-form
:model=
"dataForm"
:rules=
"dataRule"
ref=
"dataForm"
@
keyup
.
enter
.
native=
"dataFormSubmitHandle()"
label-width=
"120px"
>
<el-form-item
prop=
"title"
:label=
"$t('news.title')"
>
<el-input
v-model=
"dataForm.title"
:placeholder=
"$t('news.title')"
></el-input>
...
...
@@ -28,6 +28,14 @@
</el-dialog>
</template>
<
style
>
.ql-container
ql-snow
{
height
:
500px
;
}
.ql-editor
{
min-height
:
300px
;
}
</
style
>
<
script
>
import
Cookies
from
'js-cookie'
import
debounce
from
'lodash/debounce'
...
...
@@ -57,6 +65,8 @@ export default {
dataForm
:
{
id
:
''
,
title
:
''
,
status
:
''
,
statusName
:
''
,
content
:
''
,
pubDate
:
''
}
...
...
@@ -108,7 +118,8 @@ export default {
theme
:
'snow'
})
// 自定义上传图片功能 (使用element upload组件)
this
.
uploadUrl
=
`
${
window
.
SITE_CONFIG
[
'apiURL'
]}
/sys/oss/upload?token=
${
Cookies
.
get
(
'token'
)}
`
// this.uploadUrl = `${window.SITE_CONFIG['apiURL']}/sys/oss/upload?token=${Cookies.get('token')}`
this
.
uploadUrl
=
`
${
window
.
SITE_CONFIG
[
'apiURL'
]}
/serviceOrder/pensiondocument/uploadFile?token=
${
Cookies
.
get
(
'token'
)}
`
this
.
quillEditor
.
getModule
(
'toolbar'
).
addHandler
(
'image'
,
()
=>
{
this
.
$refs
.
uploadBtn
.
$el
.
click
()
})
...
...
@@ -129,11 +140,11 @@ export default {
if
(
res
.
code
!==
0
)
{
return
this
.
$message
.
error
(
res
.
msg
)
}
this
.
quillEditor
.
insertEmbed
(
this
.
quillEditor
.
getSelection
().
index
,
'image'
,
res
.
data
.
src
)
this
.
quillEditor
.
insertEmbed
(
this
.
quillEditor
.
getSelection
().
index
,
'image'
,
`
${
window
.
SITE_CONFIG
[
'apiURL'
]}
`
+
res
.
data
.
filePath
)
},
// 获取信息
getInfo
()
{
this
.
$http
.
get
(
`/
demo
/news/
${
this
.
dataForm
.
id
}
`
).
then
(({
data
:
res
})
=>
{
this
.
$http
.
get
(
`/
serviceOrder
/news/
${
this
.
dataForm
.
id
}
`
).
then
(({
data
:
res
})
=>
{
if
(
res
.
code
!==
0
)
{
return
this
.
$message
.
error
(
res
.
msg
)
}
...
...
@@ -147,8 +158,11 @@ export default {
if
(
!
valid
)
{
return
false
}
this
.
dataForm
.
status
=
"0"
this
.
dataForm
.
statusName
=
"未审核"
this
.
$http
[
!
this
.
dataForm
.
id
?
'post'
:
'put'
](
'/
demo
/news'
,
'/
serviceOrder
/news'
,
this
.
dataForm
,
{
headers
:
{
'content-type'
:
'application/x-www-form-urlencoded'
}
}
).
then
(({
data
:
res
})
=>
{
...
...
src/views/modules/demo/news-admin.vue
0 → 100644
View file @
ff02e4d3
<
template
>
<el-card
shadow=
"never"
class=
"aui-card--fill"
>
<div
class=
"mod-demo__news"
>
<el-form
:inline=
"true"
:model=
"dataForm"
@
keyup
.
enter
.
native=
"getDataList()"
>
<el-form-item>
<el-input
v-model=
"dataForm.title"
:placeholder=
"$t('news.title')"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-date-picker
v-model=
"daterange"
type=
"daterange"
value-format=
"yyyy-MM-dd"
:range-separator=
"$t('datePicker.range')"
:start-placeholder=
"$t('datePicker.start')"
:end-placeholder=
"$t('datePicker.end')"
>
</el-date-picker>
</el-form-item>
<el-form-item>
<el-button
@
click=
"getDataList()"
>
{{
$t
(
'query'
)
}}
</el-button>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"addOrUpdateHandle()"
>
{{
$t
(
'add'
)
}}
</el-button>
</el-form-item>
<el-form-item>
<el-button
type=
"danger"
@
click=
"deleteHandle()"
>
{{
$t
(
'deleteBatch'
)
}}
</el-button>
</el-form-item>
</el-form>
<el-table
v-loading=
"dataListLoading"
:data=
"dataList"
border
@
selection-change=
"dataListSelectionChangeHandle"
@
sort-change=
"dataListSortChangeHandle"
style=
"width: 100%;"
>
<el-table-column
type=
"selection"
header-align=
"center"
align=
"center"
width=
"50"
></el-table-column>
<el-table-column
prop=
"title"
:label=
"$t('news.title')"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"pubDate"
:label=
"$t('news.pubDate')"
sortable=
"custom"
header-align=
"center"
align=
"center"
width=
"180"
></el-table-column>
<el-table-column
prop=
"statusName"
label=
"状态"
sortable=
"custom"
header-align=
"center"
align=
"center"
width=
"180"
></el-table-column>
<el-table-column
prop=
"createDate"
:label=
"$t('news.createDate')"
sortable=
"custom"
header-align=
"center"
align=
"center"
width=
"180"
></el-table-column>
<el-table-column
:label=
"$t('handle')"
fixed=
"right"
header-align=
"center"
align=
"center"
width=
"150"
>
<template
slot-scope=
"scope"
>
<!--
<el-button
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
{{
$t
(
'update'
)
}}
</el-button>
-->
<el-button
v-if=
"scope.row.status==0"
type=
"text"
size=
"small"
@
click=
"addOrUpdateAdminHandle(scope.row.id)"
>
审核
</el-button>
<el-button
type=
"text"
size=
"small"
@
click=
"detailHandle(scope.row.id)"
>
详情
</el-button>
<!--
<el-button
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.id)"
>
{{
$t
(
'delete'
)
}}
</el-button>
-->
</
template
>
</el-table-column>
</el-table>
<el-pagination
:current-page=
"page"
:page-sizes=
"[10, 20, 50, 100]"
:page-size=
"limit"
:total=
"total"
layout=
"total, sizes, prev, pager, next, jumper"
@
size-change=
"pageSizeChangeHandle"
@
current-change=
"pageCurrentChangeHandle"
>
</el-pagination>
<!-- 弹窗, 新增 / 修改 -->
<add-or-update-admin
v-if=
"AddOrUpdateAdminVisible"
ref=
"AddOrUpdateAdmin"
@
refreshDataList=
"getDataList"
></add-or-update-admin>
<detail
v-if=
"detailVisible"
ref=
"detail"
@
refreshDataList=
"getDataList"
></detail>
</div>
</el-card>
</template>
<
script
>
import
mixinViewModule
from
'@/mixins/view-module'
import
AddOrUpdateAdmin
from
'./news-add-or-update-admin'
import
detail
from
'./news-detail'
export
default
{
mixins
:
[
mixinViewModule
],
data
()
{
return
{
mixinViewModuleOptions
:
{
getDataListURL
:
'/serviceOrder/news/page'
,
getDataListIsPage
:
true
,
exportURL
:
'/serviceOrder/news/export'
,
deleteURL
:
'/serviceOrder/news'
,
deleteIsBatch
:
true
},
AddOrUpdateAdminVisible
:
false
,
detailVisible
:
false
,
daterange
:
null
,
dataForm
:
{
id
:
''
,
title
:
''
,
startDate
:
''
,
endDate
:
''
}
}
},
watch
:
{
daterange
(
val
)
{
this
.
dataForm
.
startDate
=
val
[
0
]
this
.
dataForm
.
endDate
=
val
[
1
]
}
},
components
:
{
AddOrUpdateAdmin
,
detail
},
methods
:
{
// 接单弹出框
addOrUpdateAdminHandle
(
id
)
{
this
.
AddOrUpdateAdminVisible
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
.
AddOrUpdateAdmin
.
dataForm
.
id
=
id
this
.
$refs
.
AddOrUpdateAdmin
.
init
()
})
},
// 接单弹出框
detailHandle
(
id
)
{
this
.
detailVisible
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
.
detail
.
dataForm
.
id
=
id
this
.
$refs
.
detail
.
init
()
})
},
}
}
</
script
>
src/views/modules/demo/news-detail.vue
0 → 100644
View file @
ff02e4d3
<
template
>
<el-dialog
:visible
.
sync=
"visible"
:title=
"!dataForm.id ? $t('add') : $t('update')"
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
>
<el-form
:model=
"dataForm"
:rules=
"dataRule"
ref=
"dataForm"
@
keyup
.
enter
.
native=
"dataFormSubmitHandle()"
label-width=
"120px"
>
<el-form-item
prop=
"title"
:label=
"$t('news.title')"
>
<el-input
v-model=
"dataForm.title"
:placeholder=
"$t('news.title')"
></el-input>
</el-form-item>
<el-form-item
prop=
"content"
:label=
"$t('news.content')"
>
<!-- 富文本编辑器, 容器 -->
<div
id=
"J_quillEditor"
></div>
<!-- 自定义上传图片功能 (使用element upload组件) -->
<el-upload
:action=
"uploadUrl"
:show-file-list=
"false"
:before-upload=
"uploadBeforeUploadHandle"
:on-success=
"uploadSuccessHandle"
style=
"display: none;"
>
<el-button
ref=
"uploadBtn"
type=
"primary"
size=
"small"
>
{{
$t
(
'upload.button'
)
}}
</el-button>
</el-upload>
</el-form-item>
<el-form-item
prop=
"pubDate"
:label=
"$t('news.pubDate')"
>
<el-date-picker
v-model=
"dataForm.pubDate"
type=
"datetime"
value-format=
"yyyy-MM-dd HH:mm:ss"
:placeholder=
"$t('news.pubDate')"
></el-date-picker>
</el-form-item>
<el-form-item
prop=
"status"
label=
"审核结果"
>
<el-input
v-model=
"dataForm.statusName"
:placeholder=
"$t('news.title')"
></el-input>
<!--
<el-select
v-model=
"dataForm.status"
filterable
placeholder=
"审核结果"
>
-->
<!--
<el-option
label=
""
value=
""
></el-option>
-->
<!--
<el-option
label=
"未审核"
value=
"0"
></el-option>
-->
<!--
<el-option
label=
"审核通过"
value=
"1"
></el-option>
-->
<!--
<el-option
label=
"审核不通过"
value=
"2"
></el-option>
-->
<!--
</el-select>
-->
</el-form-item>
</el-form>
<template
slot=
"footer"
>
<el-button
@
click=
"visible = false"
>
{{
$t
(
'cancel'
)
}}
</el-button>
<!--
<el-button
type=
"primary"
@
click=
"dataFormSubmitHandle()"
>
{{
$t
(
'confirm'
)
}}
</el-button>
-->
</
template
>
</el-dialog>
</template>
<
style
>
.ql-container
ql-snow
{
height
:
500px
;
}
.ql-editor
{
min-height
:
300px
;
}
</
style
>
<
script
>
import
Cookies
from
'js-cookie'
import
debounce
from
'lodash/debounce'
import
'quill/dist/quill.snow.css'
import
Quill
from
'quill'
export
default
{
data
()
{
return
{
visible
:
false
,
quillEditor
:
null
,
quillEditorToolbarOptions
:
[
[
'bold'
,
'italic'
,
'underline'
,
'strike'
],
[
'blockquote'
,
'code-block'
,
'image'
],
[{
'header'
:
1
},
{
'header'
:
2
}],
[{
'list'
:
'ordered'
},
{
'list'
:
'bullet'
}],
[{
'script'
:
'sub'
},
{
'script'
:
'super'
}],
[{
'indent'
:
'-1'
},
{
'indent'
:
'+1'
}],
[{
'direction'
:
'rtl'
}],
[{
'size'
:
[
'small'
,
false
,
'large'
,
'huge'
]
}],
[{
'header'
:
[
1
,
2
,
3
,
4
,
5
,
6
,
false
]
}],
[{
'color'
:
[]
},
{
'background'
:
[]
}],
[{
'font'
:
[]
}],
[{
'align'
:
[]
}],
[
'clean'
]
],
uploadUrl
:
''
,
dataForm
:
{
id
:
''
,
title
:
''
,
content
:
''
,
pubDate
:
''
,
status
:
''
,
statusName
:
''
}
}
},
computed
:
{
dataRule
()
{
var
validateContent
=
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
quillEditor
.
getLength
()
<=
1
)
{
return
callback
(
new
Error
(
this
.
$t
(
'validate.required'
)))
}
callback
()
}
return
{
title
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
content
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
},
{
validator
:
validateContent
,
trigger
:
'blur'
}
],
pubDate
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
]
}
}
},
methods
:
{
init
()
{
this
.
visible
=
true
this
.
$nextTick
(()
=>
{
if
(
this
.
quillEditor
)
{
this
.
quillEditor
.
deleteText
(
0
,
this
.
quillEditor
.
getLength
())
}
else
{
this
.
quillEditorHandle
()
}
this
.
$refs
[
'dataForm'
].
resetFields
()
if
(
this
.
dataForm
.
id
)
{
this
.
getInfo
()
}
})
},
// 富文本编辑器
quillEditorHandle
()
{
this
.
quillEditor
=
new
Quill
(
'#J_quillEditor'
,
{
modules
:
{
toolbar
:
this
.
quillEditorToolbarOptions
},
theme
:
'snow'
})
// 自定义上传图片功能 (使用element upload组件)
// this.uploadUrl = `${window.SITE_CONFIG['apiURL']}/sys/oss/upload?token=${Cookies.get('token')}`
this
.
uploadUrl
=
`
${
window
.
SITE_CONFIG
[
'apiURL'
]}
/serviceOrder/pensiondocument/uploadFile?token=
${
Cookies
.
get
(
'token'
)}
`
this
.
quillEditor
.
getModule
(
'toolbar'
).
addHandler
(
'image'
,
()
=>
{
this
.
$refs
.
uploadBtn
.
$el
.
click
()
})
// 监听内容变化,动态赋值
this
.
quillEditor
.
on
(
'text-change'
,
()
=>
{
this
.
dataForm
.
content
=
this
.
quillEditor
.
root
.
innerHTML
})
},
// 上传图片之前
uploadBeforeUploadHandle
(
file
)
{
if
(
file
.
type
!==
'image/jpg'
&&
file
.
type
!==
'image/jpeg'
&&
file
.
type
!==
'image/png'
&&
file
.
type
!==
'image/gif'
)
{
this
.
$message
.
error
(
'只支持jpg、png、gif格式的图片!'
)
return
false
}
},
// 上传图片成功
uploadSuccessHandle
(
res
,
file
,
fileList
)
{
if
(
res
.
code
!==
0
)
{
return
this
.
$message
.
error
(
res
.
msg
)
}
this
.
quillEditor
.
insertEmbed
(
this
.
quillEditor
.
getSelection
().
index
,
'image'
,
`
${
window
.
SITE_CONFIG
[
'apiURL'
]}
`
+
res
.
data
.
filePath
)
},
// 获取信息
getInfo
()
{
this
.
$http
.
get
(
`/serviceOrder/news/
${
this
.
dataForm
.
id
}
`
).
then
(({
data
:
res
})
=>
{
if
(
res
.
code
!==
0
)
{
return
this
.
$message
.
error
(
res
.
msg
)
}
this
.
dataForm
=
res
.
data
this
.
quillEditor
.
root
.
innerHTML
=
this
.
dataForm
.
content
}).
catch
(()
=>
{})
},
// 表单提交
dataFormSubmitHandle
:
debounce
(
function
()
{
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
!
valid
)
{
return
false
}
if
(
this
.
dataForm
.
status
==
'1'
){
this
.
dataForm
.
statusName
=
"审核通过"
}
if
(
this
.
dataForm
.
status
==
'2'
){
this
.
dataForm
.
statusName
=
"审核不通过"
}
this
.
$http
[
!
this
.
dataForm
.
id
?
'post'
:
'put'
](
'/serviceOrder/news'
,
this
.
dataForm
,
{
headers
:
{
'content-type'
:
'application/x-www-form-urlencoded'
}
}
).
then
(({
data
:
res
})
=>
{
if
(
res
.
code
!==
0
)
{
return
this
.
$message
.
error
(
res
.
msg
)
}
this
.
$message
({
message
:
this
.
$t
(
'prompt.success'
),
type
:
'success'
,
duration
:
500
,
onClose
:
()
=>
{
this
.
visible
=
false
this
.
$emit
(
'refreshDataList'
)
}
})
}).
catch
(()
=>
{})
})
},
1000
,
{
'leading'
:
true
,
'trailing'
:
false
})
}
}
</
script
>
src/views/modules/demo/news.vue
View file @
ff02e4d3
...
...
@@ -35,11 +35,13 @@
<el-table-column
type=
"selection"
header-align=
"center"
align=
"center"
width=
"50"
></el-table-column>
<el-table-column
prop=
"title"
:label=
"$t('news.title')"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"pubDate"
:label=
"$t('news.pubDate')"
sortable=
"custom"
header-align=
"center"
align=
"center"
width=
"180"
></el-table-column>
<el-table-column
prop=
"statusName"
label=
"状态"
sortable=
"custom"
header-align=
"center"
align=
"center"
width=
"180"
></el-table-column>
<el-table-column
prop=
"createDate"
:label=
"$t('news.createDate')"
sortable=
"custom"
header-align=
"center"
align=
"center"
width=
"180"
></el-table-column>
<el-table-column
:label=
"$t('handle')"
fixed=
"right"
header-align=
"center"
align=
"center"
width=
"150"
>
<template
slot-scope=
"scope"
>
<el-button
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
{{
$t
(
'update'
)
}}
</el-button>
<el-button
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.id)"
>
{{
$t
(
'delete'
)
}}
</el-button>
<el-button
type=
"text"
size=
"small"
@
click=
"detailHandle(scope.row.id)"
>
详情
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -53,6 +55,7 @@
@
current-change=
"pageCurrentChangeHandle"
>
</el-pagination>
<!-- 弹窗, 新增 / 修改 -->
<detail
v-if=
"detailVisible"
ref=
"detail"
@
refreshDataList=
"getDataList"
></detail>
<add-or-update
v-if=
"addOrUpdateVisible"
ref=
"addOrUpdate"
@
refreshDataList=
"getDataList"
></add-or-update>
</div>
</el-card>
...
...
@@ -61,16 +64,19 @@
<
script
>
import
mixinViewModule
from
'@/mixins/view-module'
import
AddOrUpdate
from
'./news-add-or-update'
import
detail
from
'./news-detail'
export
default
{
mixins
:
[
mixinViewModule
],
data
()
{
return
{
mixinViewModuleOptions
:
{
getDataListURL
:
'/
demo
/news/page'
,
getDataListURL
:
'/
serviceOrder
/news/page'
,
getDataListIsPage
:
true
,
deleteURL
:
'/demo/news'
,
exportURL
:
'/serviceOrder/news/export'
,
deleteURL
:
'/serviceOrder/news'
,
deleteIsBatch
:
true
},
detailVisible
:
false
,
daterange
:
null
,
dataForm
:
{
title
:
''
,
...
...
@@ -86,7 +92,26 @@ export default {
}
},
components
:
{
AddOrUpdate
AddOrUpdate
,
detail
},
methods
:
{
// 接单弹出框
addOrUpdateAdminHandle
(
id
)
{
this
.
AddOrUpdateAdminVisible
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
.
AddOrUpdateAdmin
.
dataForm
.
id
=
id
this
.
$refs
.
AddOrUpdateAdmin
.
init
()
})
},
// 接单弹出框
detailHandle
(
id
)
{
this
.
detailVisible
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
.
detail
.
dataForm
.
id
=
id
this
.
$refs
.
detail
.
init
()
})
},
}
}
</
script
>
src/views/modules/serviceOrder/news_admin.vue
0 → 100644
View file @
ff02e4d3
<
template
>
<el-card
shadow=
"never"
class=
"aui-card--fill"
>
<div
class=
"mod-serviceOrder__news}"
>
<el-form
:inline=
"true"
:model=
"dataForm"
@
keyup
.
enter
.
native=
"getDataList()"
>
<el-form-item>
<el-input
v-model=
"dataForm.id"
placeholder=
"id"
clearable
></el-input>
</el-form-item>
<el-select
v-model=
"dataForm.status"
filterable
placeholder=
"订单状态"
>
<el-option
label=
"未审核"
value=
"0"
></el-option>
<el-option
label=
"审核通过"
value=
"1"
></el-option>
<el-option
label=
"审核未通过"
value=
"2"
></el-option>
</el-select>
<el-form-item>
<el-button
@
click=
"getDataList()"
>
{{
$t
(
'query'
)
}}
</el-button>
</el-form-item>
<el-form-item>
<el-button
type=
"info"
@
click=
"exportHandle()"
>
{{
$t
(
'export'
)
}}
</el-button>
</el-form-item>
<el-form-item>
<el-button
v-if=
"$hasPermission('serviceOrder:news:save')"
type=
"primary"
@
click=
"addOrUpdateHandle()"
>
{{
$t
(
'add'
)
}}
</el-button>
</el-form-item>
<el-form-item>
<el-button
v-if=
"$hasPermission('serviceOrder:news:delete')"
type=
"danger"
@
click=
"deleteHandle()"
>
{{
$t
(
'deleteBatch'
)
}}
</el-button>
</el-form-item>
</el-form>
<el-table
v-loading=
"dataListLoading"
:data=
"dataList"
border
@
selection-change=
"dataListSelectionChangeHandle"
style=
"width: 100%;"
>
<el-table-column
type=
"selection"
header-align=
"center"
align=
"center"
width=
"50"
></el-table-column>
<el-table-column
prop=
"id"
label=
"id"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"title"
label=
"标题"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"content"
label=
"内容"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"pubDate"
label=
"发布时间"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"deptId"
label=
"创建者dept_id"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"creator"
label=
"创建者"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"createDate"
label=
"创建时间"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"updater"
label=
"更新者"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"updateDate"
label=
"更新时间"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
:label=
"$t('handle')"
fixed=
"right"
header-align=
"center"
align=
"center"
width=
"150"
>
<template
slot-scope=
"scope"
>
<el-button
v-if=
"$hasPermission('serviceOrder:news:update')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
{{
$t
(
'update'
)
}}
</el-button>
<el-button
v-if=
"$hasPermission('serviceOrder:news:delete')"
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.id)"
>
{{
$t
(
'delete'
)
}}
</el-button>
</
template
>
</el-table-column>
</el-table>
<el-pagination
:current-page=
"page"
:page-sizes=
"[10, 20, 50, 100]"
:page-size=
"limit"
:total=
"total"
layout=
"total, sizes, prev, pager, next, jumper"
@
size-change=
"pageSizeChangeHandle"
@
current-change=
"pageCurrentChangeHandle"
>
</el-pagination>
<!-- 弹窗, 新增 / 修改 -->
<add-or-update
v-if=
"addOrUpdateVisible"
ref=
"addOrUpdate"
@
refreshDataList=
"getDataList"
></add-or-update>
</div>
</el-card>
</template>
<
script
>
import
mixinViewModule
from
'@/mixins/view-module'
import
AddOrUpdate
from
'./news-add-or-update'
export
default
{
mixins
:
[
mixinViewModule
],
data
()
{
return
{
mixinViewModuleOptions
:
{
getDataListURL
:
'/serviceOrder/news/page'
,
getDataListIsPage
:
true
,
exportURL
:
'/serviceOrder/news/export'
,
deleteURL
:
'/serviceOrder/news'
,
deleteIsBatch
:
true
},
dataForm
:
{
id
:
''
,
status
:
''
}
}
},
components
:
{
AddOrUpdate
},
methods
:
{
// 接单弹出框
receiveHandle
(
id
)
{
this
.
receiveVisible
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
.
receive
.
dataForm
.
id
=
id
this
.
$refs
.
receive
.
init
()
})
},
}
}
</
script
>
src/views/modules/serviceOrder/pensioncommunity-add-or-update.vue
View file @
ff02e4d3
<
template
>
<el-dialog
:visible
.
sync=
"visible"
:title=
"!dataForm.id ? $t('add') : $t('update')"
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
>
<el-form
:model=
"dataForm"
:rules=
"dataRule"
ref=
"dataForm"
@
keyup
.
enter
.
native=
"dataFormSubmitHandle()"
:label-width=
"$i18n.locale === 'en-US' ? '120px' : '80px'"
>
<el-form-item
label=
""
prop=
"name"
>
<el-input
v-model=
"dataForm.name"
placeholder=
""
></el-input>
</el-form-item>
<el-form-item
label=
"创建者dept_id"
prop=
"deptId"
>
<el-input
v-model=
"dataForm.deptId"
placeholder=
"创建者dept_id"
></el-input>
</el-form-item>
<el-form-item
label=
"更新者"
prop=
"updater"
>
<el-input
v-model=
"dataForm.updater"
placeholder=
"更新者"
></el-input>
</el-form-item>
<el-form-item
label=
"更新时间"
prop=
"updateDate"
>
<el-input
v-model=
"dataForm.updateDate"
placeholder=
"更新时间"
></el-input>
<el-form-item
label=
"社区名称"
prop=
"name"
>
<el-input
v-model=
"dataForm.name"
placeholder=
"社区名称"
></el-input>
</el-form-item>
</el-form>
<template
slot=
"footer"
>
<el-button
@
click=
"visible = false"
>
{{
$t
(
'cancel'
)
}}
</el-button>
...
...
@@ -43,16 +35,16 @@ export default {
return
{
name
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
deptId
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
updater
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
updateDate
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
]
// deptId: [
// { required: true, message: this.$t('validate.required'), trigger: 'blur' }
// ],
// updater: [
// { required: true, message: this.$t('validate.required'), trigger: 'blur' }
// ],
// updateDate: [
// { required: true, message: this.$t('validate.required'), trigger: 'blur' }
// ]
}
}
},
...
...
src/views/modules/serviceOrder/pensioncommunity.vue
View file @
ff02e4d3
...
...
@@ -20,13 +20,13 @@
</el-form>
<el-table
v-loading=
"dataListLoading"
:data=
"dataList"
border
@
selection-change=
"dataListSelectionChangeHandle"
style=
"width: 100%;"
>
<el-table-column
type=
"selection"
header-align=
"center"
align=
"center"
width=
"50"
></el-table-column>
<el-table-column
prop=
"id"
label=
""
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"name"
label=
""
header-align=
"center"
align=
"center"
></el-table-column>
<
el-table-column
prop=
"deptId"
label=
"创建者dept_id"
header-align=
"center"
align=
"center"
></el-table-column
>
<
el-table-column
prop=
"creator"
label=
"创建者"
header-align=
"center"
align=
"center"
></el-table-column
>
<
el-table-column
prop=
"createDate"
label=
"创建时间"
header-align=
"center"
align=
"center"
></el-table-column
>
<
el-table-column
prop=
"updater"
label=
"更新者"
header-align=
"center"
align=
"center"
></el-table-column
>
<
el-table-column
prop=
"updateDate"
label=
"更新时间"
header-align=
"center"
align=
"center"
></el-table-column
>
<el-table-column
prop=
"id"
label=
"
序号
"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"name"
label=
"
社区名称
"
header-align=
"center"
align=
"center"
></el-table-column>
<
!--
<el-table-column
prop=
"deptId"
label=
"创建者dept_id"
header-align=
"center"
align=
"center"
></el-table-column>
--
>
<
!--
<el-table-column
prop=
"creator"
label=
"创建者"
header-align=
"center"
align=
"center"
></el-table-column>
--
>
<
!--
<el-table-column
prop=
"createDate"
label=
"创建时间"
header-align=
"center"
align=
"center"
></el-table-column>
--
>
<
!--
<el-table-column
prop=
"updater"
label=
"更新者"
header-align=
"center"
align=
"center"
></el-table-column>
--
>
<
!--
<el-table-column
prop=
"updateDate"
label=
"更新时间"
header-align=
"center"
align=
"center"
></el-table-column>
--
>
<el-table-column
:label=
"$t('handle')"
fixed=
"right"
header-align=
"center"
align=
"center"
width=
"150"
>
<template
slot-scope=
"scope"
>
<el-button
v-if=
"$hasPermission('serviceOrder:pensioncommunity:update')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
{{
$t
(
'update'
)
}}
</el-button>
...
...
src/views/modules/serviceOrder/pensionorder-cancel.vue
View file @
ff02e4d3
<
template
>
<el-dialog
:visible
.
sync=
"visible"
:title=
"!dataForm.id ? $t('add') : $t('update')
"
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
>
<el-dialog
:visible
.
sync=
"visible"
title=
"取消接单
"
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
>
<el-form
:model=
"dataForm"
:rules=
"dataRule"
ref=
"dataForm"
@
keyup
.
enter
.
native=
"dataFormSubmitHandle()"
:label-width=
"$i18n.locale === 'en-US' ? '120px' : '80px'"
>
<!--
<el-form-item
label=
"订单编号"
prop=
"orderNum"
>
-->
<!--
<el-input
v-model=
"dataForm.orderNum"
placeholder=
"订单编号"
></el-input>
-->
...
...
@@ -212,6 +212,10 @@ export default {
},
confirmcancel
()
{
if
(
this
.
dataForm
.
cancelReason
==
null
){
alert
(
"请输入取消原因"
);
return
false
;
}
this
.
$http
.
get
(
'/serviceOrder/pensionorder/organizationHandle'
,{
params
:{
id
:
this
.
dataForm
.
id
,
...
...
src/views/modules/serviceOrder/pensionorder-receive.vue
View file @
ff02e4d3
<
template
>
<el-dialog
:visible
.
sync=
"visible"
:title=
"!dataForm.id ? $t('add') : $t('update')
"
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
>
<el-dialog
:visible
.
sync=
"visible"
title=
"接单
"
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
>
<el-form
:model=
"dataForm"
:rules=
"dataRule"
ref=
"dataForm"
@
keyup
.
enter
.
native=
"dataFormSubmitHandle()"
:label-width=
"$i18n.locale === 'en-US' ? '120px' : '80px'"
>
<!--
<el-form-item
label=
"订单编号"
prop=
"orderNum"
>
-->
<!--
<el-input
v-model=
"dataForm.orderNum"
placeholder=
"订单编号"
></el-input>
-->
...
...
src/views/modules/serviceOrder/pensionorder-send.vue
View file @
ff02e4d3
<
template
>
<el-dialog
:visible
.
sync=
"visible"
:title=
"!dataForm.id ? $t('add') : $t('update')
"
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
>
<el-dialog
:visible
.
sync=
"visible"
title=
"派单
"
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
>
<el-form
:model=
"dataForm"
:rules=
"dataRule"
ref=
"dataForm"
@
keyup
.
enter
.
native=
"dataFormSubmitHandle()"
:label-width=
"$i18n.locale === 'en-US' ? '120px' : '80px'"
>
<!--
<el-form-item
label=
"订单编号"
prop=
"orderNum"
>
-->
<!--
<el-input
v-model=
"dataForm.orderNum"
placeholder=
"订单编号"
></el-input>
-->
...
...
@@ -31,6 +31,9 @@
<el-form-item
label=
"备注"
prop=
"remark"
>
<el-input
v-model=
"dataForm.remark"
placeholder=
"备注"
></el-input>
</el-form-item>
<el-form-item
label=
"所属社区"
prop=
"communityName"
>
<el-input
v-model=
"dataForm.communityName"
placeholder=
"所属社区名称"
></el-input>
</el-form-item>
<!--
<el-form-item
label=
"服务人id"
prop=
"orderRecipientId"
>
-->
<!--
<el-input
v-model=
"dataForm.orderRecipientId"
placeholder=
"接单人id"
></el-input>
-->
<!--
</el-form-item>
-->
...
...
@@ -55,9 +58,7 @@
<!--
<el-form-item
label=
"订单实际金额"
prop=
"actPrice"
>
-->
<!--
<el-input
v-model=
"dataForm.actPrice"
placeholder=
"订单实际金额"
></el-input>
-->
<!--
</el-form-item>
-->
<el-form-item
label=
"所属社区"
prop=
"communityName"
>
<el-input
v-model=
"dataForm.communityName"
placeholder=
"所属社区名称"
></el-input>
</el-form-item>
<!--
<el-form-item
label=
"所属社区id"
prop=
"communityId"
>
-->
<!--
<el-input
v-model=
"dataForm.communityId"
placeholder=
"所属社区id"
></el-input>
-->
<!--
</el-form-item>
-->
...
...
@@ -219,6 +220,10 @@ export default {
}).
catch
(()
=>
{})
},
confirmSend
()
{
if
(
this
.
dataForm
.
orderRecipientId
==
null
){
alert
(
"请选择服务人员"
);
return
false
;
}
this
.
$http
.
get
(
'/serviceOrder/pensionorder/organizationHandle'
,{
params
:{
id
:
this
.
dataForm
.
id
,
...
...
src/views/modules/serviceOrder/pensionorder.vue
View file @
ff02e4d3
...
...
@@ -3,7 +3,7 @@
<div
class=
"mod-serviceOrder__pensionorder}"
>
<el-form
:inline=
"true"
:model=
"dataForm"
@
keyup
.
enter
.
native=
"getDataList()"
>
<el-form-item>
<el-input
v-model=
"dataForm.id"
placeholder=
"
id
"
clearable
></el-input>
<el-input
v-model=
"dataForm.id"
placeholder=
""
clearable
></el-input>
</el-form-item>
<!--
<el-form-item>
-->
<!--
<el-input
v-model=
"dataForm.status"
placeholder=
"status"
clearable
></el-input>
-->
...
...
@@ -34,14 +34,14 @@
<!--
</el-form-item>
-->
</el-form>
<el-table
v-loading=
"dataListLoading"
:data=
"dataList"
border
@
selection-change=
"dataListSelectionChangeHandle"
style=
"width: 100%;"
>
<
el-table-column
type=
"selection"
header-align=
"center"
align=
"center"
width=
"50"
></el-table-column
>
<
el-table-column
prop=
"id"
label=
"id"
header-align=
"center"
align=
"center"
></el-table-column
>
<
!--
<el-table-column
type=
"selection"
header-align=
"center"
align=
"center"
width=
"50"
></el-table-column>
--
>
<
!--
<el-table-column
prop=
"id"
label=
"id"
header-align=
"center"
align=
"center"
></el-table-column>
--
>
<!--
<el-table-column
prop=
"orderNum"
label=
"订单编号"
header-align=
"center"
align=
"center"
></el-table-column>
-->
<!--
<el-table-column
prop=
"status"
label=
"订单状态 0未接单 ,1已接单 2已完成 3已取消"
header-align=
"center"
align=
"center"
></el-table-column>
-->
<el-table-column
prop=
"statusName"
label=
"订单状态
名称
"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"statusName"
label=
"订单状态"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"address"
label=
"详细地址"
header-align=
"center"
align=
"center"
></el-table-column>
<!--
<el-table-column
prop=
"serviceId"
label=
"订单所属的服务id"
header-align=
"center"
align=
"center"
></el-table-column>
-->
<el-table-column
prop=
"serviceName"
label=
"订单
所属的
服务名称"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"serviceName"
label=
"订单服务名称"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"appointmentPerson"
label=
"预约人"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"appointmentPhone"
label=
"预约人电话"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"appointmentTime"
label=
"预约时间"
header-align=
"center"
align=
"center"
></el-table-column>
...
...
src/views/modules/serviceOrder/pensionorganization-add-or-update.vue
0 → 100644
View file @
ff02e4d3
<
template
>
<el-dialog
:visible
.
sync=
"visible"
:title=
"!dataForm.id ? $t('add') : $t('update')"
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
>
<el-form
:model=
"dataForm"
:rules=
"dataRule"
ref=
"dataForm"
@
keyup
.
enter
.
native=
"dataFormSubmitHandle()"
:label-width=
"$i18n.locale === 'en-US' ? '120px' : '80px'"
>
<el-form-item
label=
"机构名称"
prop=
"name"
>
<el-input
v-model=
"dataForm.name"
placeholder=
"机构名称"
></el-input>
</el-form-item>
<el-form-item
label=
"机构图标"
prop=
"icon"
>
<el-input
v-model=
"dataForm.icon"
placeholder=
"机构图标"
></el-input>
</el-form-item>
<el-form-item
label=
"机构描述"
prop=
"description"
>
<el-input
v-model=
"dataForm.description"
placeholder=
"机构描述"
></el-input>
</el-form-item>
<el-form-item
label=
"服务区域"
prop=
"serviceArea"
>
<el-input
v-model=
"dataForm.serviceArea"
placeholder=
"服务区域"
></el-input>
</el-form-item>
</el-form>
<template
slot=
"footer"
>
<el-button
@
click=
"visible = false"
>
{{
$t
(
'cancel'
)
}}
</el-button>
<el-button
type=
"primary"
@
click=
"dataFormSubmitHandle()"
>
{{
$t
(
'confirm'
)
}}
</el-button>
</
template
>
</el-dialog>
</template>
<
script
>
import
debounce
from
'lodash/debounce'
export
default
{
data
()
{
return
{
visible
:
false
,
dataForm
:
{
id
:
''
,
name
:
''
,
icon
:
''
,
description
:
''
,
serviceArea
:
''
,
creator
:
''
,
createDate
:
''
}
}
},
computed
:
{
dataRule
()
{
return
{
name
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
icon
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
description
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
serviceArea
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
}
}
},
methods
:
{
init
()
{
this
.
visible
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
[
'dataForm'
].
resetFields
()
if
(
this
.
dataForm
.
id
)
{
this
.
getInfo
()
}
})
},
// 获取信息
getInfo
()
{
this
.
$http
.
get
(
`/serviceOrder/pensionorganization/
${
this
.
dataForm
.
id
}
`
).
then
(({
data
:
res
})
=>
{
if
(
res
.
code
!==
0
)
{
return
this
.
$message
.
error
(
res
.
msg
)
}
this
.
dataForm
=
{
...
this
.
dataForm
,
...
res
.
data
}
}).
catch
(()
=>
{})
},
// 表单提交
dataFormSubmitHandle
:
debounce
(
function
()
{
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
!
valid
)
{
return
false
}
this
.
$http
[
!
this
.
dataForm
.
id
?
'post'
:
'put'
](
'/serviceOrder/pensionorganization/'
,
this
.
dataForm
).
then
(({
data
:
res
})
=>
{
if
(
res
.
code
!==
0
)
{
return
this
.
$message
.
error
(
res
.
msg
)
}
this
.
$message
({
message
:
this
.
$t
(
'prompt.success'
),
type
:
'success'
,
duration
:
500
,
onClose
:
()
=>
{
this
.
visible
=
false
this
.
$emit
(
'refreshDataList'
)
}
})
}).
catch
(()
=>
{})
})
},
1000
,
{
'leading'
:
true
,
'trailing'
:
false
})
}
}
</
script
>
src/views/modules/serviceOrder/pensionorganization.vue
0 → 100644
View file @
ff02e4d3
<
template
>
<el-card
shadow=
"never"
class=
"aui-card--fill"
>
<div
class=
"mod-serviceOrder__pensionorganization}"
>
<el-form
:inline=
"true"
:model=
"dataForm"
@
keyup
.
enter
.
native=
"getDataList()"
>
<el-form-item>
<el-input
v-model=
"dataForm.id"
placeholder=
"id"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-button
@
click=
"getDataList()"
>
{{
$t
(
'query'
)
}}
</el-button>
</el-form-item>
<el-form-item>
<el-button
type=
"info"
@
click=
"exportHandle()"
>
{{
$t
(
'export'
)
}}
</el-button>
</el-form-item>
<el-form-item>
<el-button
v-if=
"$hasPermission('serviceOrder:pensionorganization:save')"
type=
"primary"
@
click=
"addOrUpdateHandle()"
>
{{
$t
(
'add'
)
}}
</el-button>
</el-form-item>
<el-form-item>
<el-button
v-if=
"$hasPermission('serviceOrder:pensionorganization:delete')"
type=
"danger"
@
click=
"deleteHandle()"
>
{{
$t
(
'deleteBatch'
)
}}
</el-button>
</el-form-item>
</el-form>
<el-table
v-loading=
"dataListLoading"
:data=
"dataList"
border
@
selection-change=
"dataListSelectionChangeHandle"
style=
"width: 100%;"
>
<el-table-column
type=
"selection"
header-align=
"center"
align=
"center"
width=
"50"
></el-table-column>
<el-table-column
prop=
"id"
label=
"id"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"name"
label=
"机构名称"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"icon"
label=
"机构图标"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"description"
label=
"机构描述"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"serviceArea"
label=
"服务区域"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"creator"
label=
"创建者"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"createDate"
label=
"创建时间"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
:label=
"$t('handle')"
fixed=
"right"
header-align=
"center"
align=
"center"
width=
"150"
>
<template
slot-scope=
"scope"
>
<el-button
v-if=
"$hasPermission('serviceOrder:pensionorganization:update')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
{{
$t
(
'update'
)
}}
</el-button>
<el-button
v-if=
"$hasPermission('serviceOrder:pensionorganization:delete')"
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.id)"
>
{{
$t
(
'delete'
)
}}
</el-button>
</
template
>
</el-table-column>
</el-table>
<el-pagination
:current-page=
"page"
:page-sizes=
"[10, 20, 50, 100]"
:page-size=
"limit"
:total=
"total"
layout=
"total, sizes, prev, pager, next, jumper"
@
size-change=
"pageSizeChangeHandle"
@
current-change=
"pageCurrentChangeHandle"
>
</el-pagination>
<!-- 弹窗, 新增 / 修改 -->
<add-or-update
v-if=
"addOrUpdateVisible"
ref=
"addOrUpdate"
@
refreshDataList=
"getDataList"
></add-or-update>
</div>
</el-card>
</template>
<
script
>
import
mixinViewModule
from
'@/mixins/view-module'
import
AddOrUpdate
from
'./pensionorganization-add-or-update'
export
default
{
mixins
:
[
mixinViewModule
],
data
()
{
return
{
mixinViewModuleOptions
:
{
getDataListURL
:
'/serviceOrder/pensionorganization/page'
,
getDataListIsPage
:
true
,
exportURL
:
'/serviceOrder/pensionorganization/export'
,
deleteURL
:
'/serviceOrder/pensionorganization'
,
deleteIsBatch
:
true
},
dataForm
:
{
id
:
''
}
}
},
components
:
{
AddOrUpdate
}
}
</
script
>
src/views/modules/serviceOrder/pensionservice-add-or-update.vue
View file @
ff02e4d3
...
...
@@ -4,8 +4,8 @@
<el-form-item
label=
"服务名称"
prop=
"serviceName"
>
<el-input
v-model=
"dataForm.serviceName"
placeholder=
"服务名称"
></el-input>
</el-form-item>
<el-form-item
label=
"服务父类id"
prop=
"
serviceParentI
d"
>
<el-input
v-model=
"dataForm.
serviceParentI
d"
placeholder=
"服务父类id"
></el-input>
<el-form-item
label=
"服务父类id"
prop=
"
pi
d"
>
<el-input
v-model=
"dataForm.
pi
d"
placeholder=
"服务父类id"
></el-input>
</el-form-item>
<el-form-item
label=
"排序"
prop=
"sort"
>
<el-input
v-model=
"dataForm.sort"
placeholder=
"排序"
></el-input>
...
...
@@ -37,15 +37,15 @@
<el-form-item
label=
"备注"
prop=
"remark"
>
<el-input
v-model=
"dataForm.remark"
placeholder=
"备注"
></el-input>
</el-form-item>
<
el-form-item
label=
"部门ID"
prop=
"deptId"
>
<
el-input
v-model=
"dataForm.deptId"
placeholder=
"部门ID"
></el-input
>
<
/el-form-item
>
<
el-form-item
label=
"更新者"
prop=
"updater"
>
<
el-input
v-model=
"dataForm.updater"
placeholder=
"更新者"
></el-input
>
<
/el-form-item
>
<
el-form-item
label=
"更新时间"
prop=
"updateDate"
>
<
el-input
v-model=
"dataForm.updateDate"
placeholder=
"更新时间"
></el-input
>
<
/el-form-item
>
<
!--
<el-form-item
label=
"部门ID"
prop=
"deptId"
>
--
>
<
!--
<el-input
v-model=
"dataForm.deptId"
placeholder=
"部门ID"
></el-input>
--
>
<
!--
</el-form-item>
--
>
<
!--
<el-form-item
label=
"更新者"
prop=
"updater"
>
--
>
<
!--
<el-input
v-model=
"dataForm.updater"
placeholder=
"更新者"
></el-input>
--
>
<
!--
</el-form-item>
--
>
<
!--
<el-form-item
label=
"更新时间"
prop=
"updateDate"
>
--
>
<
!--
<el-input
v-model=
"dataForm.updateDate"
placeholder=
"更新时间"
></el-input>
--
>
<
!--
</el-form-item>
--
>
</el-form>
<template
slot=
"footer"
>
<el-button
@
click=
"visible = false"
>
{{
$t
(
'cancel'
)
}}
</el-button>
...
...
@@ -63,7 +63,7 @@ export default {
dataForm
:
{
id
:
''
,
serviceName
:
''
,
serviceParentI
d
:
''
,
pi
d
:
''
,
sort
:
''
,
icon
:
''
,
detailPicture
:
''
,
...
...
@@ -88,27 +88,27 @@ export default {
serviceName
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
serviceParentI
d
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
sort
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
icon
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
detailPicture
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
price
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
isFree
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
giftPoint
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
// pi
d: [
//
{ required: true, message: this.$t('validate.required'), trigger: 'blur' }
//
],
//
sort: [
//
{ required: true, message: this.$t('validate.required'), trigger: 'blur' }
//
],
//
icon: [
//
{ required: true, message: this.$t('validate.required'), trigger: 'blur' }
//
],
//
detailPicture: [
//
{ required: true, message: this.$t('validate.required'), trigger: 'blur' }
//
],
//
price: [
//
{ required: true, message: this.$t('validate.required'), trigger: 'blur' }
//
],
//
isFree: [
//
{ required: true, message: this.$t('validate.required'), trigger: 'blur' }
//
],
//
giftPoint: [
//
{ required: true, message: this.$t('validate.required'), trigger: 'blur' }
//
],
timesNum
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
...
...
@@ -116,20 +116,20 @@ export default {
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
serviceContent
:
[
{
required
:
tru
e
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
{
required
:
fals
e
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
remark
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
deptId
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
updater
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
updateDate
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
]
// deptId: [
// { required: true, message: this.$t('validate.required'), trigger: 'blur' }
// ],
// updater: [
// { required: true, message: this.$t('validate.required'), trigger: 'blur' }
// ],
// updateDate: [
// { required: true, message: this.$t('validate.required'), trigger: 'blur' }
// ]
}
}
},
...
...
src/views/modules/serviceOrder/pensionservice.vue
View file @
ff02e4d3
...
...
@@ -20,9 +20,9 @@
</el-form>
<el-table
v-loading=
"dataListLoading"
:data=
"dataList"
border
@
selection-change=
"dataListSelectionChangeHandle"
style=
"width: 100%;"
>
<el-table-column
type=
"selection"
header-align=
"center"
align=
"center"
width=
"50"
></el-table-column>
<
el-table-column
prop=
"id"
label=
"id"
header-align=
"center"
align=
"center"
></el-table-column
>
<
!--
<el-table-column
prop=
"id"
label=
"id"
header-align=
"center"
align=
"center"
></el-table-column>
--
>
<el-table-column
prop=
"serviceName"
label=
"服务名称"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"
serviceParentI
d"
label=
"服务父类id"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"
pi
d"
label=
"服务父类id"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"sort"
label=
"排序"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"icon"
label=
"首页图标地址"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"detailPicture"
label=
"详情页大图地址"
header-align=
"center"
align=
"center"
></el-table-column>
...
...
@@ -32,12 +32,12 @@
<el-table-column
prop=
"timesNum"
label=
"服务次数"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"serviceTime"
label=
"服务时间"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"serviceContent"
label=
"服务内容介绍"
header-align=
"center"
align=
"center"
></el-table-column>
<
el-table-column
prop=
"remark"
label=
"备注"
header-align=
"center"
align=
"center"
></el-table-column
>
<
el-table-column
prop=
"deptId"
label=
"部门ID"
header-align=
"center"
align=
"center"
></el-table-column
>
<
el-table-column
prop=
"creator"
label=
"创建者"
header-align=
"center"
align=
"center"
></el-table-column
>
<
el-table-column
prop=
"createDate"
label=
"创建时间"
header-align=
"center"
align=
"center"
></el-table-column
>
<
el-table-column
prop=
"updater"
label=
"更新者"
header-align=
"center"
align=
"center"
></el-table-column
>
<
el-table-column
prop=
"updateDate"
label=
"更新时间"
header-align=
"center"
align=
"center"
></el-table-column
>
<
!--
<el-table-column
prop=
"remark"
label=
"备注"
header-align=
"center"
align=
"center"
></el-table-column>
--
>
<
!--
<el-table-column
prop=
"deptId"
label=
"部门ID"
header-align=
"center"
align=
"center"
></el-table-column>
--
>
<
!--
<el-table-column
prop=
"creator"
label=
"创建者"
header-align=
"center"
align=
"center"
></el-table-column>
--
>
<
!--
<el-table-column
prop=
"createDate"
label=
"创建时间"
header-align=
"center"
align=
"center"
></el-table-column>
--
>
<
!--
<el-table-column
prop=
"updater"
label=
"更新者"
header-align=
"center"
align=
"center"
></el-table-column>
--
>
<
!--
<el-table-column
prop=
"updateDate"
label=
"更新时间"
header-align=
"center"
align=
"center"
></el-table-column>
--
>
<el-table-column
:label=
"$t('handle')"
fixed=
"right"
header-align=
"center"
align=
"center"
width=
"150"
>
<template
slot-scope=
"scope"
>
<el-button
v-if=
"$hasPermission('serviceOrder:pensionservice:update')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
{{
$t
(
'update'
)
}}
</el-button>
...
...
src/views/modules/serviceOrder/role.vue
View file @
ff02e4d3
...
...
@@ -23,7 +23,7 @@
<el-table-column
prop=
"id"
label=
"id"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"name"
label=
"角色名称"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"remark"
label=
"备注"
header-align=
"center"
align=
"center"
></el-table-column>
<
el-table-column
prop=
"deptId"
label=
"部门ID"
header-align=
"center"
align=
"center"
></el-table-column
>
<
!--
<el-table-column
prop=
"deptId"
label=
"部门ID"
header-align=
"center"
align=
"center"
></el-table-column>
--
>
<el-table-column
prop=
"creator"
label=
"创建者"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"createDate"
label=
"创建时间"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"updater"
label=
"更新者"
header-align=
"center"
align=
"center"
></el-table-column>
...
...
src/views/modules/serviceOrder/user-add-or-update.vue
View file @
ff02e4d3
<
template
>
<el-dialog
:visible
.
sync=
"visible"
:title=
"!dataForm.id ? $t('add') : $t('update')"
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
>
<el-form
:model=
"dataForm"
:rules=
"dataRule"
ref=
"dataForm"
@
keyup
.
enter
.
native=
"dataFormSubmitHandle()"
:label-width=
"$i18n.locale === 'en-US' ? '120px' : '80px'"
>
<
el-form-item
label=
"关联sys_user中的id"
prop=
"userId"
>
<
el-input
v-model=
"dataForm.userId"
placeholder=
"关联sys_user中的id"
></el-input
>
<
/el-form-item
>
<
!--
<el-form-item
label=
"关联sys_user中的id"
prop=
"userId"
>
--
>
<
!--
<el-input
v-model=
"dataForm.userId"
placeholder=
"关联sys_user中的id"
></el-input>
--
>
<
!--
</el-form-item>
--
>
<el-form-item
label=
"用户名"
prop=
"username"
>
<el-input
v-model=
"dataForm.username"
placeholder=
"用户名"
></el-input>
</el-form-item>
...
...
@@ -31,21 +31,21 @@
<el-form-item
label=
"所属社区名称"
prop=
"communityName"
>
<el-input
v-model=
"dataForm.communityName"
placeholder=
"所属社区名称"
></el-input>
</el-form-item>
<
el-form-item
label=
"所属社区id"
prop=
"communityId"
>
<
el-input
v-model=
"dataForm.communityId"
placeholder=
"所属社区id"
></el-input
>
<
/el-form-item
>
<
!--
<el-form-item
label=
"所属社区id"
prop=
"communityId"
>
--
>
<
!--
<el-input
v-model=
"dataForm.communityId"
placeholder=
"所属社区id"
></el-input>
--
>
<
!--
</el-form-item>
--
>
<el-form-item
label=
"身体状态"
prop=
"healthStatus"
>
<el-input
v-model=
"dataForm.healthStatus"
placeholder=
"身体状态"
></el-input>
</el-form-item>
<
el-form-item
label=
"联系家属"
prop=
"familyMemberName"
>
<
el-input
v-model=
"dataForm.familyMemberName"
placeholder=
"联系家属"
></el-input
>
<
/el-form-item
>
<
el-form-item
label=
"家属身份"
prop=
"familyMemberRole"
>
<
el-input
v-model=
"dataForm.familyMemberRole"
placeholder=
"家属身份"
></el-input
>
<
/el-form-item
>
<
el-form-item
label=
"家属联系电话"
prop=
"familyMemberTel"
>
<
el-input
v-model=
"dataForm.familyMemberTel"
placeholder=
"家属联系电话"
></el-input
>
<
/el-form-item
>
<
!--
<el-form-item
label=
"联系家属"
prop=
"familyMemberName"
>
--
>
<
!--
<el-input
v-model=
"dataForm.familyMemberName"
placeholder=
"联系家属"
></el-input>
--
>
<
!--
</el-form-item>
--
>
<
!--
<el-form-item
label=
"家属身份"
prop=
"familyMemberRole"
>
--
>
<
!--
<el-input
v-model=
"dataForm.familyMemberRole"
placeholder=
"家属身份"
></el-input>
--
>
<
!--
</el-form-item>
--
>
<
!--
<el-form-item
label=
"家属联系电话"
prop=
"familyMemberTel"
>
--
>
<
!--
<el-input
v-model=
"dataForm.familyMemberTel"
placeholder=
"家属联系电话"
></el-input>
--
>
<
!--
</el-form-item>
--
>
</el-form>
<template
slot=
"footer"
>
<el-button
@
click=
"visible = false"
>
{{
$t
(
'cancel'
)
}}
</el-button>
...
...
@@ -91,7 +91,7 @@ export default {
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
headUrl
:
[
{
required
:
tru
e
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
{
required
:
fals
e
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
mobile
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
...
...
@@ -100,7 +100,7 @@ export default {
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
openid
:
[
{
required
:
tru
e
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
{
required
:
fals
e
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
birthday
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
...
...
src/views/modules/serviceOrder/user-check.vue
0 → 100644
View file @
ff02e4d3
<
template
>
<el-dialog
:visible
.
sync=
"visible"
:title=
"!dataForm.id ? $t('add') : $t('update')"
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
>
<el-form
:model=
"dataForm"
:rules=
"dataRule"
ref=
"dataForm"
@
keyup
.
enter
.
native=
"dataFormSubmitHandle()"
:label-width=
"$i18n.locale === 'en-US' ? '120px' : '80px'"
>
<!--
<el-form-item
label=
"关联sys_user中的id"
prop=
"userId"
>
-->
<!--
<el-input
v-model=
"dataForm.userId"
placeholder=
"关联sys_user中的id"
></el-input>
-->
<!--
</el-form-item>
-->
<el-form-item
label=
"用户名"
prop=
"username"
>
<el-input
v-model=
"dataForm.username"
placeholder=
"用户名"
></el-input>
</el-form-item>
<el-form-item
label=
"头像图片路径"
prop=
"headUrl"
>
<el-input
v-model=
"dataForm.headUrl"
placeholder=
"头像图片路径"
></el-input>
</el-form-item>
<el-form-item
label=
"手机号"
prop=
"mobile"
>
<el-input
v-model=
"dataForm.mobile"
placeholder=
"手机号"
></el-input>
</el-form-item>
<!--
<el-form-item
label=
"密码"
prop=
"password"
>
-->
<!--
<el-input
v-model=
"dataForm.password"
placeholder=
"密码"
></el-input>
-->
<!--
</el-form-item>
-->
<el-form-item
label=
"微信openid"
prop=
"openid"
>
<el-input
v-model=
"dataForm.openid"
placeholder=
"微信openid"
></el-input>
</el-form-item>
<el-form-item
label=
"生日"
prop=
"birthday"
>
<el-input
v-model=
"dataForm.birthday"
placeholder=
"生日"
></el-input>
</el-form-item>
<el-form-item
label=
"地址_地区"
prop=
"addressArea"
>
<el-input
v-model=
"dataForm.addressArea"
placeholder=
"地址_地区"
></el-input>
</el-form-item>
<el-form-item
label=
"详细地址"
prop=
"address"
>
<el-input
v-model=
"dataForm.address"
placeholder=
"详细地址"
></el-input>
</el-form-item>
<el-form-item
label=
"所属社区名称"
prop=
"communityName"
>
<el-input
v-model=
"dataForm.communityName"
placeholder=
"所属社区名称"
></el-input>
</el-form-item>
<!--
<el-form-item
label=
"所属社区id"
prop=
"communityId"
>
<el-input
v-model=
"dataForm.communityId"
placeholder=
"所属社区id"
></el-input>
</el-form-item>
-->
<el-form-item
label=
"身体状态"
prop=
"healthStatus"
>
<el-input
v-model=
"dataForm.healthStatus"
placeholder=
"身体状态"
></el-input>
</el-form-item>
<!--
<el-form-item
label=
"联系家属"
prop=
"familyMemberName"
>
-->
<!--
<el-input
v-model=
"dataForm.familyMemberName"
placeholder=
"联系家属"
></el-input>
-->
<!--
</el-form-item>
-->
<!--
<el-form-item
label=
"家属身份"
prop=
"familyMemberRole"
>
-->
<!--
<el-input
v-model=
"dataForm.familyMemberRole"
placeholder=
"家属身份"
></el-input>
-->
<!--
</el-form-item>
-->
<!--
<el-form-item
label=
"家属联系电话"
prop=
"familyMemberTel"
>
-->
<!--
<el-input
v-model=
"dataForm.familyMemberTel"
placeholder=
"家属联系电话"
></el-input>
-->
<!--
</el-form-item>
-->
<el-form-item
prop=
"status"
label=
"审核结果"
>
<el-select
v-model=
"dataForm.status"
placeholder=
"审核结果"
>
<el-option
label=
"未审核"
value=
0
>
未审核
</el-option>
<el-option
label=
"审核通过"
value=
1
>
审核通过
</el-option>
<el-option
label=
"审核不通过"
value=
2
>
审核不通过
</el-option>
</el-select>
</el-form-item>
</el-form>
<template
slot=
"footer"
>
<el-button
@
click=
"visible = false"
>
{{
$t
(
'cancel'
)
}}
</el-button>
<el-button
type=
"primary"
@
click=
"dataFormSubmitHandle()"
>
{{
$t
(
'confirm'
)
}}
</el-button>
</
template
>
</el-dialog>
</template>
<
script
>
import
debounce
from
'lodash/debounce'
export
default
{
data
()
{
return
{
visible
:
false
,
dataForm
:
{
id
:
''
,
userId
:
''
,
username
:
''
,
headUrl
:
''
,
mobile
:
''
,
password
:
''
,
createDate
:
''
,
openid
:
''
,
birthday
:
''
,
addressArea
:
''
,
address
:
''
,
communityName
:
''
,
communityId
:
''
,
healthStatus
:
''
,
familyMemberName
:
''
,
familyMemberRole
:
''
,
familyMemberTel
:
''
,
status
:
''
,
}
}
},
computed
:
{
dataRule
()
{
return
{
userId
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
username
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
headUrl
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
mobile
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
password
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
openid
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
birthday
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
addressArea
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
address
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
communityName
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
communityId
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
healthStatus
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
familyMemberName
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
familyMemberRole
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
familyMemberTel
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
]
}
}
},
methods
:
{
init
()
{
this
.
visible
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
[
'dataForm'
].
resetFields
()
if
(
this
.
dataForm
.
id
)
{
this
.
getInfo
()
}
})
},
// 获取信息
getInfo
()
{
this
.
$http
.
get
(
`/serviceOrder/user/
${
this
.
dataForm
.
id
}
`
).
then
(({
data
:
res
})
=>
{
if
(
res
.
code
!==
0
)
{
return
this
.
$message
.
error
(
res
.
msg
)
}
this
.
dataForm
=
{
...
this
.
dataForm
,
...
res
.
data
}
this
.
dataForm
.
status
=
this
.
dataForm
.
status
.
toString
()
}).
catch
(()
=>
{})
},
// 表单提交
dataFormSubmitHandle
:
debounce
(
function
()
{
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
!
valid
)
{
return
false
}
this
.
$http
[
!
this
.
dataForm
.
id
?
'post'
:
'put'
](
'/serviceOrder/user/'
,
this
.
dataForm
).
then
(({
data
:
res
})
=>
{
if
(
res
.
code
!==
0
)
{
return
this
.
$message
.
error
(
res
.
msg
)
}
this
.
$message
({
message
:
this
.
$t
(
'prompt.success'
),
type
:
'success'
,
duration
:
500
,
onClose
:
()
=>
{
this
.
visible
=
false
this
.
$emit
(
'refreshDataList'
)
}
})
}).
catch
(()
=>
{})
})
},
1000
,
{
'leading'
:
true
,
'trailing'
:
false
})
}
}
</
script
>
src/views/modules/serviceOrder/user-detail.vue
0 → 100644
View file @
ff02e4d3
<
template
>
<el-dialog
:visible
.
sync=
"visible"
:title=
"!dataForm.id ? $t('add') : $t('update')"
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
>
<el-form
:model=
"dataForm"
:rules=
"dataRule"
ref=
"dataForm"
@
keyup
.
enter
.
native=
"dataFormSubmitHandle()"
:label-width=
"$i18n.locale === 'en-US' ? '120px' : '80px'"
>
<!--
<el-form-item
label=
"关联sys_user中的id"
prop=
"userId"
>
-->
<!--
<el-input
v-model=
"dataForm.userId"
placeholder=
"关联sys_user中的id"
></el-input>
-->
<!--
</el-form-item>
-->
<el-form-item
label=
"用户名"
prop=
"username"
>
<el-input
v-model=
"dataForm.username"
placeholder=
"用户名"
></el-input>
</el-form-item>
<el-form-item
label=
"头像图片路径"
prop=
"headUrl"
>
<el-input
v-model=
"dataForm.headUrl"
placeholder=
"头像图片路径"
></el-input>
</el-form-item>
<el-form-item
label=
"手机号"
prop=
"mobile"
>
<el-input
v-model=
"dataForm.mobile"
placeholder=
"手机号"
></el-input>
</el-form-item>
<!--
<el-form-item
label=
"密码"
prop=
"password"
>
-->
<!--
<el-input
v-model=
"dataForm.password"
placeholder=
"密码"
></el-input>
-->
<!--
</el-form-item>
-->
<el-form-item
label=
"微信openid"
prop=
"openid"
>
<el-input
v-model=
"dataForm.openid"
placeholder=
"微信openid"
></el-input>
</el-form-item>
<el-form-item
label=
"生日"
prop=
"birthday"
>
<el-input
v-model=
"dataForm.birthday"
placeholder=
"生日"
></el-input>
</el-form-item>
<el-form-item
label=
"地址_地区"
prop=
"addressArea"
>
<el-input
v-model=
"dataForm.addressArea"
placeholder=
"地址_地区"
></el-input>
</el-form-item>
<el-form-item
label=
"详细地址"
prop=
"address"
>
<el-input
v-model=
"dataForm.address"
placeholder=
"详细地址"
></el-input>
</el-form-item>
<el-form-item
label=
"所属社区名称"
prop=
"communityName"
>
<el-input
v-model=
"dataForm.communityName"
placeholder=
"所属社区名称"
></el-input>
</el-form-item>
<!--
<el-form-item
label=
"所属社区id"
prop=
"communityId"
>
<el-input
v-model=
"dataForm.communityId"
placeholder=
"所属社区id"
></el-input>
</el-form-item>
-->
<el-form-item
label=
"身体状态"
prop=
"healthStatus"
>
<el-input
v-model=
"dataForm.healthStatus"
placeholder=
"身体状态"
></el-input>
</el-form-item>
<!--
<el-form-item
label=
"联系家属"
prop=
"familyMemberName"
>
-->
<!--
<el-input
v-model=
"dataForm.familyMemberName"
placeholder=
"联系家属"
></el-input>
-->
<!--
</el-form-item>
-->
<!--
<el-form-item
label=
"家属身份"
prop=
"familyMemberRole"
>
-->
<!--
<el-input
v-model=
"dataForm.familyMemberRole"
placeholder=
"家属身份"
></el-input>
-->
<!--
</el-form-item>
-->
<!--
<el-form-item
label=
"家属联系电话"
prop=
"familyMemberTel"
>
-->
<!--
<el-input
v-model=
"dataForm.familyMemberTel"
placeholder=
"家属联系电话"
></el-input>
-->
<!--
</el-form-item>
-->
<el-form-item
prop=
"status"
label=
"审核结果"
>
<el-select
v-model=
"dataForm.status"
filterable
placeholder=
"审核结果"
>
<el-option
label=
""
value=
""
></el-option>
<el-option
label=
"未审核"
value=
"0"
></el-option>
<el-option
label=
"审核通过"
value=
"1"
></el-option>
<el-option
label=
"审核不通过"
value=
"2"
></el-option>
</el-select>
</el-form-item>
</el-form>
<template
slot=
"footer"
>
<el-button
@
click=
"visible = false"
>
{{
$t
(
'cancel'
)
}}
</el-button>
<!--
<el-button
type=
"primary"
@
click=
"dataFormSubmitHandle()"
>
{{
$t
(
'confirm'
)
}}
</el-button>
-->
</
template
>
</el-dialog>
</template>
<
script
>
import
debounce
from
'lodash/debounce'
export
default
{
data
()
{
return
{
visible
:
false
,
dataForm
:
{
id
:
''
,
userId
:
''
,
username
:
''
,
headUrl
:
''
,
mobile
:
''
,
password
:
''
,
createDate
:
''
,
openid
:
''
,
birthday
:
''
,
addressArea
:
''
,
address
:
''
,
communityName
:
''
,
communityId
:
''
,
healthStatus
:
''
,
familyMemberName
:
''
,
familyMemberRole
:
''
,
familyMemberTel
:
''
,
status
:
''
,
}
}
},
computed
:
{
dataRule
()
{
return
{
userId
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
username
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
headUrl
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
mobile
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
password
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
openid
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
birthday
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
addressArea
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
address
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
communityName
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
communityId
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
healthStatus
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
familyMemberName
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
familyMemberRole
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
],
familyMemberTel
:
[
{
required
:
true
,
message
:
this
.
$t
(
'validate.required'
),
trigger
:
'blur'
}
]
}
}
},
methods
:
{
init
()
{
this
.
visible
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
[
'dataForm'
].
resetFields
()
if
(
this
.
dataForm
.
id
)
{
this
.
getInfo
()
}
})
},
// 获取信息
getInfo
()
{
this
.
$http
.
get
(
`/serviceOrder/user/
${
this
.
dataForm
.
id
}
`
).
then
(({
data
:
res
})
=>
{
if
(
res
.
code
!==
0
)
{
return
this
.
$message
.
error
(
res
.
msg
)
}
this
.
dataForm
=
{
...
this
.
dataForm
,
...
res
.
data
}
this
.
dataForm
.
status
=
this
.
dataForm
.
status
.
toString
()
}).
catch
(()
=>
{})
},
// 表单提交
dataFormSubmitHandle
:
debounce
(
function
()
{
this
.
$refs
[
'dataForm'
].
validate
((
valid
)
=>
{
if
(
!
valid
)
{
return
false
}
this
.
$http
[
!
this
.
dataForm
.
id
?
'post'
:
'put'
](
'/serviceOrder/user/'
,
this
.
dataForm
).
then
(({
data
:
res
})
=>
{
if
(
res
.
code
!==
0
)
{
return
this
.
$message
.
error
(
res
.
msg
)
}
this
.
$message
({
message
:
this
.
$t
(
'prompt.success'
),
type
:
'success'
,
duration
:
500
,
onClose
:
()
=>
{
this
.
visible
=
false
this
.
$emit
(
'refreshDataList'
)
}
})
}).
catch
(()
=>
{})
})
},
1000
,
{
'leading'
:
true
,
'trailing'
:
false
})
}
}
</
script
>
src/views/modules/serviceOrder/user-old.vue
0 → 100644
View file @
ff02e4d3
<
template
>
<el-card
shadow=
"never"
class=
"aui-card--fill"
>
<div
class=
"mod-serviceOrder__user}"
>
<el-form
:inline=
"true"
:model=
"dataForm"
@
keyup
.
enter
.
native=
"getDataList()"
>
<el-form-item>
<el-input
v-model=
"dataForm.id"
placeholder=
"id"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-button
@
click=
"getDataList()"
>
{{
$t
(
'query'
)
}}
</el-button>
</el-form-item>
<el-form-item>
<el-button
type=
"info"
@
click=
"exportHandle()"
>
{{
$t
(
'export'
)
}}
</el-button>
</el-form-item>
<el-form-item>
<el-button
v-if=
"$hasPermission('serviceOrder:user:save')"
type=
"primary"
@
click=
"addOrUpdateHandle()"
>
{{
$t
(
'add'
)
}}
</el-button>
</el-form-item>
<el-form-item>
<el-button
v-if=
"$hasPermission('serviceOrder:user:delete')"
type=
"danger"
@
click=
"deleteHandle()"
>
{{
$t
(
'deleteBatch'
)
}}
</el-button>
</el-form-item>
</el-form>
<el-table
v-loading=
"dataListLoading"
:data=
"dataList"
border
@
selection-change=
"dataListSelectionChangeHandle"
style=
"width: 100%;"
>
<el-table-column
type=
"selection"
header-align=
"center"
align=
"center"
width=
"50"
></el-table-column>
<!--
<el-table-column
prop=
"id"
label=
"id"
header-align=
"center"
align=
"center"
></el-table-column>
-->
<!--
<el-table-column
prop=
"userId"
label=
"关联sys_user中的id"
header-align=
"center"
align=
"center"
></el-table-column>
-->
<el-table-column
prop=
"username"
label=
"用户名"
header-align=
"center"
align=
"center"
></el-table-column>
<!--
<el-table-column
prop=
"headUrl"
label=
"头像图片路径"
header-align=
"center"
align=
"center"
></el-table-column>
-->
<el-table-column
prop=
"mobile"
label=
"手机号"
header-align=
"center"
align=
"center"
></el-table-column>
<!--
<el-table-column
prop=
"password"
label=
"密码"
header-align=
"center"
align=
"center"
></el-table-column>
-->
<!--
<el-table-column
prop=
"createDate"
label=
"创建时间"
header-align=
"center"
align=
"center"
></el-table-column>
-->
<!--
<el-table-column
prop=
"openid"
label=
"微信openid"
header-align=
"center"
align=
"center"
></el-table-column>
-->
<el-table-column
prop=
"birthday"
label=
"生日"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"addressArea"
label=
"地址_地区"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"address"
label=
"详细地址"
header-align=
"center"
align=
"center"
></el-table-column>
<el-table-column
prop=
"communityName"
label=
"所属社区名称"
header-align=
"center"
align=
"center"
></el-table-column>
<!--
<el-table-column
prop=
"communityId"
label=
"所属社区id"
header-align=
"center"
align=
"center"
></el-table-column>
-->
<el-table-column
prop=
"healthStatus"
label=
"身体状态"
header-align=
"center"
align=
"center"
></el-table-column>
<!--
<el-table-column
prop=
"familyMemberName"
label=
"联系家属"
header-align=
"center"
align=
"center"
></el-table-column>
-->
<!--
<el-table-column
prop=
"familyMemberRole"
label=
"家属身份"
header-align=
"center"
align=
"center"
></el-table-column>
-->
<!--
<el-table-column
prop=
"familyMemberTel"
label=
"家属联系电话"
header-align=
"center"
align=
"center"
></el-table-column>
-->
<el-table-column
:label=
"$t('handle')"
fixed=
"right"
header-align=
"center"
align=
"center"
width=
"150"
>
<template
slot-scope=
"scope"
>
<el-button
v-if=
"$hasPermission('serviceOrder:user:update')"
type=
"text"
size=
"small"
@
click=
"addOrUpdateHandle(scope.row.id)"
>
{{
$t
(
'update'
)
}}
</el-button>
<el-button
v-if=
"scope.row.status!==1"
type=
"text"
size=
"small"
@
click=
"checkHandle(scope.row.id)"
>
审核
</el-button>
<el-button
type=
"text"
size=
"small"
@
click=
"detailHandle(scope.row.id)"
>
详情
</el-button>
<el-button
v-if=
"$hasPermission('serviceOrder:user:delete')"
type=
"text"
size=
"small"
@
click=
"deleteHandle(scope.row.id)"
>
{{
$t
(
'delete'
)
}}
</el-button>
</
template
>
</el-table-column>
</el-table>
<el-pagination
:current-page=
"page"
:page-sizes=
"[10, 20, 50, 100]"
:page-size=
"limit"
:total=
"total"
layout=
"total, sizes, prev, pager, next, jumper"
@
size-change=
"pageSizeChangeHandle"
@
current-change=
"pageCurrentChangeHandle"
>
</el-pagination>
<!-- 弹窗, 新增 / 修改 -->
<add-or-update
v-if=
"addOrUpdateVisible"
ref=
"addOrUpdate"
@
refreshDataList=
"getDataList"
></add-or-update>
<check
v-if=
"checkVisible"
ref=
"check"
@
refreshDataList=
"getDataList"
></check>
<detail
v-if=
"detailVisible"
ref=
"detail"
@
refreshDataList=
"getDataList"
></detail>
</div>
</el-card>
</template>
<
script
>
import
mixinViewModule
from
'@/mixins/view-module'
import
AddOrUpdate
from
'./user-add-or-update'
import
check
from
'./user-check'
import
detail
from
'./user-detail'
export
default
{
mixins
:
[
mixinViewModule
],
data
()
{
return
{
mixinViewModuleOptions
:
{
getDataListURL
:
'/serviceOrder/user/page'
,
getDataListIsPage
:
true
,
exportURL
:
'/serviceOrder/user/export'
,
deleteURL
:
'/serviceOrder/user'
,
deleteIsBatch
:
true
},
checkVisible
:
false
,
detailVisible
:
false
,
dataForm
:
{
id
:
''
,
isOld
:
'1'
}
}
},
components
:
{
AddOrUpdate
,
check
,
detail
},
methods
:
{
// 接单弹出框
// 接单弹出框
checkHandle
(
id
)
{
this
.
checkVisible
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
.
check
.
dataForm
.
id
=
id
this
.
$refs
.
check
.
init
()
})
},
// 接单弹出框
detailHandle
(
id
)
{
this
.
detailVisible
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
.
detail
.
dataForm
.
id
=
id
this
.
$refs
.
detail
.
init
()
})
},
}
}
</
script
>
vue.config.js
View file @
ff02e4d3
...
...
@@ -2,6 +2,7 @@
* 配置参考: https://cli.vuejs.org/zh/config/
*/
module
.
exports
=
{
lintOnSave
:
false
,
publicPath
:
process
.
env
.
NODE_ENV
===
'production'
?
'./'
:
'/'
,
chainWebpack
:
config
=>
{
const
svgRule
=
config
.
module
.
rule
(
'svg'
)
...
...
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