Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d3f35dc3
authored
Dec 23, 2024
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
版本功能代码提交
1 parent
e60e5c39
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
2417 additions
and
357 deletions
package-lock.json
src/api/inStorePoints.js
src/api/order.js
src/common/constants.js
src/router/modules/912_residentManage.js
src/views/earlyWarningManager/staff/components/detailDialog.vue
src/views/earlyWarningManager/staff/components/handleDialog.vue
src/views/earlyWarningManager/staff/details.vue
src/views/earlyWarningManager/staff/noticeBoard.vue
src/views/earlyWarningManager/store/components/detailDialog.vue
src/views/earlyWarningManager/store/components/handleDialog.vue
src/views/earlyWarningManager/store/details.vue
src/views/earlyWarningManager/store/noticeBoard.vue
src/views/orderManage/chooseRuleDialog.vue
src/views/orderManage/ruleInfoDialog.vue
src/views/residentManage/growUpGrade/components/editDialog.vue
src/views/residentManage/growUpGrade/indexControl.vue
src/views/residentManage/growUpGrade/manage.vue
src/views/residentManage/growUpGrade/record.vue
src/views/residentManage/inStorePoints/components/addDialog.vue
src/views/residentManage/inStorePoints/components/editDialog.vue
src/views/residentManage/inStorePoints/indexControl.vue
src/views/residentManage/inStorePoints/pointsConfig.vue
src/views/residentManage/inStorePoints/pointsRecord.vue
src/views/systemConfig/ShopConfig/shopSet.vue
src/views/systemConfig/merchant/financialRules/components/verificationCodeDialog.vue
package-lock.json
View file @
d3f35dc
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
},
},
"ms"
:
{
"ms"
:
{
"version"
:
"2.1.2"
,
"version"
:
"2.1.2"
,
"resolved"
:
"https://registry.npm
mirror.com
/ms/-/ms-2.1.2.tgz"
,
"resolved"
:
"https://registry.npm
js.org
/ms/-/ms-2.1.2.tgz"
,
"integrity"
:
"sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
,
"integrity"
:
"sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
,
"dev"
:
true
"dev"
:
true
},
},
...
@@ -1357,7 +1357,7 @@
...
@@ -1357,7 +1357,7 @@
},
},
"ms"
:
{
"ms"
:
{
"version"
:
"2.1.2"
,
"version"
:
"2.1.2"
,
"resolved"
:
"https://registry.npm
mirror.com
/ms/-/ms-2.1.2.tgz"
,
"resolved"
:
"https://registry.npm
js.org
/ms/-/ms-2.1.2.tgz"
,
"integrity"
:
"sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
,
"integrity"
:
"sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
,
"dev"
:
true
"dev"
:
true
}
}
...
@@ -3915,7 +3915,7 @@
...
@@ -3915,7 +3915,7 @@
},
},
"@vue/vue-loader-v15"
:
{
"@vue/vue-loader-v15"
:
{
"version"
:
"npm:vue-loader@15.11.1"
,
"version"
:
"npm:vue-loader@15.11.1"
,
"resolved"
:
"https://registry.npm
mirror.com
/vue-loader/-/vue-loader-15.11.1.tgz"
,
"resolved"
:
"https://registry.npm
js.org
/vue-loader/-/vue-loader-15.11.1.tgz"
,
"integrity"
:
"sha512-0iw4VchYLePqJfJu9s62ACWUXeSqM30SQqlIftbYWM3C+jpPcEHKSPUZBLjSF9au4HTHQ/naF6OGnO3Q/qGR3Q=="
,
"integrity"
:
"sha512-0iw4VchYLePqJfJu9s62ACWUXeSqM30SQqlIftbYWM3C+jpPcEHKSPUZBLjSF9au4HTHQ/naF6OGnO3Q/qGR3Q=="
,
"dev"
:
true
,
"dev"
:
true
,
"requires"
:
{
"requires"
:
{
...
@@ -3928,7 +3928,7 @@
...
@@ -3928,7 +3928,7 @@
"dependencies"
:
{
"dependencies"
:
{
"hash-sum"
:
{
"hash-sum"
:
{
"version"
:
"1.0.2"
,
"version"
:
"1.0.2"
,
"resolved"
:
"https://registry.npm
mirror.com
/hash-sum/-/hash-sum-1.0.2.tgz"
,
"resolved"
:
"https://registry.npm
js.org
/hash-sum/-/hash-sum-1.0.2.tgz"
,
"integrity"
:
"sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA=="
,
"integrity"
:
"sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA=="
,
"dev"
:
true
"dev"
:
true
}
}
...
@@ -5722,7 +5722,7 @@
...
@@ -5722,7 +5722,7 @@
},
},
"is-buffer"
:
{
"is-buffer"
:
{
"version"
:
"1.1.6"
,
"version"
:
"1.1.6"
,
"resolved"
:
"https://registry.npm
mirror.com
/is-buffer/-/is-buffer-1.1.6.tgz"
,
"resolved"
:
"https://registry.npm
js.org
/is-buffer/-/is-buffer-1.1.6.tgz"
,
"integrity"
:
"sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w=="
,
"integrity"
:
"sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w=="
,
"dev"
:
true
"dev"
:
true
},
},
...
@@ -13583,7 +13583,7 @@
...
@@ -13583,7 +13583,7 @@
},
},
"postcss"
:
{
"postcss"
:
{
"version"
:
"8.4.16"
,
"version"
:
"8.4.16"
,
"resolved"
:
"https://registry.npm
js.org
/postcss/-/postcss-8.4.16.tgz"
,
"resolved"
:
"https://registry.npm
mirror.com
/postcss/-/postcss-8.4.16.tgz"
,
"integrity"
:
"sha512-ipHE1XBvKzm5xI7hiHCZJCSugxvsdq2mPnsq5+UF+VHCjiBvtDrlxJfMBToWaP9D5XlgNmcFGqoHmUn0EYEaRQ=="
,
"integrity"
:
"sha512-ipHE1XBvKzm5xI7hiHCZJCSugxvsdq2mPnsq5+UF+VHCjiBvtDrlxJfMBToWaP9D5XlgNmcFGqoHmUn0EYEaRQ=="
,
"dev"
:
true
,
"dev"
:
true
,
"requires"
:
{
"requires"
:
{
...
@@ -18019,7 +18019,7 @@
...
@@ -18019,7 +18019,7 @@
},
},
"yarn"
:
{
"yarn"
:
{
"version"
:
"1.22.19"
,
"version"
:
"1.22.19"
,
"resolved"
:
"https://registry.npm
mirror.com
/yarn/-/yarn-1.22.19.tgz"
,
"resolved"
:
"https://registry.npm
js.org
/yarn/-/yarn-1.22.19.tgz"
,
"integrity"
:
"sha512-/0V5q0WbslqnwP91tirOvldvYISzaqhClxzyUKXYxs07yUILIs5jx/k6CFe8bvKSkds5w+eiOqta39Wk3WxdcQ=="
"integrity"
:
"sha512-/0V5q0WbslqnwP91tirOvldvYISzaqhClxzyUKXYxs07yUILIs5jx/k6CFe8bvKSkds5w+eiOqta39Wk3WxdcQ=="
},
},
"yorkie"
:
{
"yorkie"
:
{
...
...
src/api/inStorePoints.js
0 → 100644
View file @
d3f35dc
import
request
from
"./request"
import
RequestMethods
from
"./request.methods"
const
path
=
"dj.api.smartcarlife."
const
path2
=
"dj.api.car.boutique."
// 添加积分记录
export
function
pointAdd
(
data
)
{
data
.
method
=
`
${
path
}
resident.point.add`
return
request
(
data
,
RequestMethods
.
POST
)
}
// 驻店积分列表
export
function
pointPage
(
data
)
{
data
.
method
=
`
${
path
}
resident.point.page`
return
request
(
data
,
RequestMethods
.
POST
)
}
// 驻店规则分类列表
export
function
findAllCategory
(
data
)
{
data
.
method
=
`
${
path2
}
resident.point.rule.findAllCategory`
return
request
(
data
,
RequestMethods
.
POST
)
}
// 驻店规则类型列表
export
function
findAllTypeByCategoryId
(
data
)
{
data
.
method
=
`
${
path2
}
resident.point.rule.findAllTypeByCategoryId`
return
request
(
data
,
RequestMethods
.
POST
)
}
// 驻店积分列表导出
export
function
pointExport
(
data
)
{
data
.
method
=
`
${
path
}
resident.point.export`
return
request
(
data
,
RequestMethods
.
POST
)
}
// 驻店积分导入
export
function
pointImport
(
data
)
{
data
.
method
=
`
${
path
}
resident.point.import`
return
request
(
data
,
"post"
,
[
"file"
])
}
// 驻店规则
export
function
pointRule
(
data
)
{
data
.
method
=
`
${
path
}
resident.point.rule`
return
request
(
data
,
RequestMethods
.
POST
)
}
// 积分配置分页列表
export
function
storePointsConfigurationPage
(
data
)
{
data
.
method
=
`
${
path2
}
resident.point.rule.storePointsConfigurationPage`
return
request
(
data
,
RequestMethods
.
POST
)
}
// 更新积分配置
export
function
updateStorePointsConfiguration
(
data
)
{
data
.
method
=
`
${
path2
}
resident.point.rule.updateStorePointsConfiguration`
return
request
(
data
,
RequestMethods
.
POST
)
}
// 分页查询等级配置列表
export
function
levelConfigPage
(
data
)
{
data
.
method
=
`
${
path
}
resident.level.config.page`
return
request
(
data
,
RequestMethods
.
POST
)
}
// 分页查询等级管理列表
export
function
levelManagePage
(
data
)
{
data
.
method
=
`
${
path
}
resident.level.manage.page`
return
request
(
data
,
RequestMethods
.
POST
)
}
// 删除等级管理
export
function
levelManageDelete
(
data
)
{
data
.
method
=
`
${
path
}
resident.level.manage.delete`
return
request
(
data
,
RequestMethods
.
POST
)
}
// 保存&更新等级配置
export
function
levelConfigSaveOrUpdate
(
data
)
{
data
.
method
=
`
${
path
}
resident.level.config.save&update`
return
request
(
data
,
RequestMethods
.
POST
)
}
// 成长等级记录导出
export
function
levelManageExport
(
data
)
{
data
.
method
=
`
${
path
}
resident.level.manage.export`
return
request
(
data
,
RequestMethods
.
POST
)
}
src/api/order.js
View file @
d3f35dc
...
@@ -109,7 +109,8 @@ export function goodsOrderDetail(data) {
...
@@ -109,7 +109,8 @@ export function goodsOrderDetail(data) {
// 获取订单分账规则
// 获取订单分账规则
export
function
getHistoryEffectRecord
(
data
)
{
export
function
getHistoryEffectRecord
(
data
)
{
data
.
method
=
`
${
path2
}
getHistoryEffectRecord`
// data.method = `${path2}getHistoryEffectRecord`
data
.
method
=
`
${
path2
}
merchantEffectRule.effective.list`
return
request
(
data
,
"post"
)
return
request
(
data
,
"post"
)
}
}
...
...
src/common/constants.js
View file @
d3f35dc
...
@@ -970,3 +970,46 @@ export const statusOpt = [
...
@@ -970,3 +970,46 @@ export const statusOpt = [
{
confId
:
3
,
confValue
:
"已完成"
},
{
confId
:
3
,
confValue
:
"已完成"
},
{
confId
:
0
,
confValue
:
"无需处理"
}
{
confId
:
0
,
confValue
:
"无需处理"
}
]
]
// 预警管理 筛选
export
const
filterOpt
=
[
{
confId
:
1
,
confValue
:
"我负责的"
},
{
confId
:
2
,
confValue
:
"待我处理的"
},
{
confId
:
3
,
confValue
:
"我处理过的"
}
]
// 驻店积分管理 状态
export
const
pointStatusOpt
=
[
{
confId
:
1
,
confValue
:
"启用"
},
{
confId
:
0
,
confValue
:
"停用"
}
]
// 驻店积分管理 积分增减
export
const
pointValueSignOpt
=
[
{
confId
:
0
,
confValue
:
"积分增加"
},
{
confId
:
-
1
,
confValue
:
"积分扣减"
}
]
// 成长等级 等级类型
export
const
levelTypeOpt
=
[
{
confId
:
1
,
confValue
:
"成长等级"
},
{
confId
:
2
,
confValue
:
"勋章"
}
]
// 成长等级 等级名称
export
const
levelNameOpt
=
[
{
confId
:
"青铜萌新"
,
confValue
:
"青铜萌新"
},
{
confId
:
"白银熟手"
,
confValue
:
"白银熟手"
},
{
confId
:
"黄金能手"
,
confValue
:
"黄金能手"
},
{
confId
:
"钻石专家"
,
confValue
:
"钻石专家"
},
{
confId
:
"学习之星"
,
confValue
:
"学习之星"
},
{
confId
:
"全勤之星"
,
confValue
:
"全勤之星"
},
{
confId
:
"零售导师"
,
confValue
:
"零售导师"
},
{
confId
:
"平板接待精英"
,
confValue
:
"平板接待精英"
}
]
// 成长等级 开启状态
export
const
openStateOpt
=
[
{
confId
:
true
,
confValue
:
"启用"
},
{
confId
:
false
,
confValue
:
"停用"
}
]
src/router/modules/912_residentManage.js
View file @
d3f35dc
...
@@ -533,7 +533,7 @@ export const routerName = {
...
@@ -533,7 +533,7 @@ export const routerName = {
path
:
"/tabletManagement"
,
path
:
"/tabletManagement"
,
name
:
"tabletManagement"
,
name
:
"tabletManagement"
,
meta
:
{
meta
:
{
title
:
'平板管理'
,
title
:
"平板管理"
,
authId
:
"91211"
,
authId
:
"91211"
,
parentId
:
"912"
,
parentId
:
"912"
,
cache
:
false
cache
:
false
...
@@ -563,5 +563,112 @@ export const routerName = {
...
@@ -563,5 +563,112 @@ export const routerName = {
}
}
],
],
component
:
_import
(
"residentManage/tabletManagement"
)
component
:
_import
(
"residentManage/tabletManagement"
)
},
91213
:
{
path
:
"/inStorePoints"
,
name
:
"inStorePoints"
,
meta
:
{
title
:
"驻店积分管理"
,
authId
:
"91213"
,
parentId
:
"912"
,
cache
:
false
},
auth
:
[
{
authId
:
"9121301"
,
parentId
:
"91213"
,
label
:
"新增记录"
,
icon
:
"plus"
,
category
:
"Button"
,
type
:
"primary"
,
handle
:
"handleAdd"
},
{
authId
:
"9121302"
,
parentId
:
"91213"
,
label
:
"批量导入"
,
category
:
"Button"
,
handle
:
"handleBatchImport"
},
{
authId
:
"9121303"
,
parentId
:
"91213"
,
label
:
"导出"
,
category
:
"Button"
,
handle
:
"handleExport"
},
{
authId
:
"9121304"
,
parentId
:
"91213"
,
label
:
"编辑"
,
handle
:
"handleEdit"
},
{
authId
:
"9121305"
,
parentId
:
"91213"
,
label
:
"启用/停用"
,
handle
:
"handleUpOrDown"
,
ruleObj
:
{
attr
:
"configStatus"
,
rule
:
{
1
:
"停用"
,
0
:
"启用"
}
}
}
],
component
:
_import
(
"residentManage/inStorePoints/indexControl"
)
},
91214
:
{
path
:
"/growUpGrade"
,
name
:
"growUpGrade"
,
meta
:
{
title
:
"成长等级管理"
,
authId
:
"91214"
,
parentId
:
"912"
,
cache
:
false
},
auth
:
[
{
authId
:
"9121401"
,
parentId
:
"91214"
,
label
:
"导出"
,
category
:
"Button"
,
handle
:
"handleExport"
},
{
authId
:
"9121402"
,
parentId
:
"91214"
,
label
:
"删除"
,
handle
:
"handleDelete"
},
// {
// authId: "9121403",
// parentId: "91214",
// label: "导出",
// category: "Button",
// handle: "handleExport"
// },
{
authId
:
"9121404"
,
parentId
:
"91214"
,
label
:
"编辑"
,
handle
:
"handleEdit"
},
{
authId
:
"9121405"
,
parentId
:
"91214"
,
label
:
"启用/停用"
,
handle
:
"handleUpOrDown"
,
ruleObj
:
{
attr
:
"openState"
,
rule
:
{
true
:
"停用"
,
false
:
"启用"
}
}
}
],
component
:
_import
(
"residentManage/growUpGrade/indexControl"
)
}
}
}
}
src/views/earlyWarningManager/staff/components/detailDialog.vue
View file @
d3f35dc
...
@@ -47,6 +47,13 @@
...
@@ -47,6 +47,13 @@
{{
paramsObj
.
salesperson
?
(
paramsObj
.
salesperson
.
length
>
15
?
(
paramsObj
.
salesperson
.
slice
(
0
,
15
)
+
'...'
)
:
paramsObj
.
salesperson
)
:
''
}}
{{
paramsObj
.
salesperson
?
(
paramsObj
.
salesperson
.
length
>
15
?
(
paramsObj
.
salesperson
.
slice
(
0
,
15
)
+
'...'
)
:
paramsObj
.
salesperson
)
:
''
}}
</el-form-item>
</el-form-item>
</div>
</div>
<div
class=
"itemDiv"
>
<el-form-item
label=
"盯防负责人"
class=
"halfItem"
:title=
"paramsObj.storePerson"
>
{{
paramsObj
.
storePerson
?
(
paramsObj
.
storePerson
.
length
>
15
?
(
paramsObj
.
storePerson
.
slice
(
0
,
15
)
+
'...'
)
:
paramsObj
.
storePerson
)
:
''
}}
</el-form-item>
</div>
</el-form>
</el-form>
<div
class=
"div-title"
>
预警信息
</div>
<div
class=
"div-title"
>
预警信息
</div>
<el-form
class=
"edit-sub-block"
<el-form
class=
"edit-sub-block"
...
...
src/views/earlyWarningManager/staff/components/handleDialog.vue
View file @
d3f35dc
...
@@ -35,13 +35,22 @@
...
@@ -35,13 +35,22 @@
</el-date-picker>
</el-date-picker>
</div>
</div>
</glsx-combi-form>
</glsx-combi-form>
<div
class=
"div-title"
>
跟进记录
</div>
<div
class=
"d2-container-content"
>
<d2-table
ref=
"recordTable"
:has-page=
"false"
:table-data=
"tableData"
:search-form=
"searchFormSearch"
:table-params=
"tableParams"
>
</d2-table>
</div>
</div>
</div>
</baseDialog>
</baseDialog>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
saveFollowRecord
}
from
'@api/earlyWarningManager'
import
{
saveFollowRecord
,
findByMsgId
}
from
'@api/earlyWarningManager'
import
{
deepClone
}
from
'@/common/util'
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
findMerchantStaffList
}
from
'@api/index'
import
{
findMerchantStaffList
}
from
'@api/index'
import
{
afterPickerOptions_timeChoose
}
from
'@/common/format'
import
{
afterPickerOptions_timeChoose
}
from
'@/common/format'
// import { baseConfig } from '@/main'
// import { baseConfig } from '@/main'
...
@@ -61,7 +70,8 @@ export default {
...
@@ -61,7 +70,8 @@ export default {
},
},
dialogConfig
:
{
dialogConfig
:
{
title
:
'预警处理'
,
title
:
'预警处理'
,
width
:
'700px'
// width: '700px'
width
:
'1080px'
},
},
handleFormRef
:
'handleFormRef'
,
handleFormRef
:
'handleFormRef'
,
formRules
:
{
formRules
:
{
...
@@ -101,6 +111,58 @@ export default {
...
@@ -101,6 +111,58 @@ export default {
addHtml
:
'nextFollowerTimeHtml'
,
addHtml
:
'nextFollowerTimeHtml'
,
rules
:
[{
required
:
true
,
message
:
'请选择下次跟进时间'
,
trigger
:
'change'
}]
rules
:
[{
required
:
true
,
message
:
'请选择下次跟进时间'
,
trigger
:
'change'
}]
}],
}],
searchForm
:
{
id
:
''
},
searchFormSearch
:
{},
// getListApi: findByMsgId,
tableData
:
[],
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'list'
,
tableOption
:
false
,
tableColumns
:
[{
label
:
'处理结果'
,
prop
:
'followStatusName'
,
width
:
'100'
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
followStatusName
?
cellValue
.
followStatusName
:
'--'
},
className
:
(
cellValue
)
=>
{
return
{
1
:
'yellowSpot'
,
2
:
'greenSpot'
,
3
:
'ashSpot'
,
0
:
'ashSpot'
}[
cellValue
.
followStatus
]
}
},
{
label
:
'跟进内容'
,
prop
:
'followNotes'
,
width
:
'250px'
},
{
label
:
'跟进人'
,
prop
:
'followerName'
},
{
label
:
'跟进时间'
,
prop
:
'createdTime'
,
width
:
'150'
,
formatter
:
(
cellValue
)
=>
{
return
Util
.
dateFormate
(
cellValue
.
createdTime
,
'YYYY-MM-DD HH:mm:ss'
)
}
},
{
label
:
'下次跟进人'
,
prop
:
'nextFollowerName'
},
{
label
:
'下次跟进时间'
,
prop
:
'nextFollowerTime'
,
width
:
'150'
,
formatter
:
(
cellValue
)
=>
{
return
Util
.
dateFormate
(
cellValue
.
nextFollowerTime
,
'YYYY-MM-DD HH:mm'
)
}
}]
},
baseData
:
{
baseData
:
{
followStatusOptions
:
[
followStatusOptions
:
[
{
confId
:
1
,
confValue
:
"待处理"
},
{
confId
:
1
,
confValue
:
"待处理"
},
...
@@ -142,6 +204,7 @@ export default {
...
@@ -142,6 +204,7 @@ export default {
this
.
followStatusChange
(
this
.
infoForm
.
followStatus
)
this
.
followStatusChange
(
this
.
infoForm
.
followStatus
)
}
}
this
.
findMerchantStaffList
()
this
.
findMerchantStaffList
()
this
.
getList
()
this
.
getOptionsList
(
'editFormData'
,
false
)
this
.
getOptionsList
(
'editFormData'
,
false
)
},
},
...
@@ -248,6 +311,13 @@ export default {
...
@@ -248,6 +311,13 @@ export default {
// 找到在formList的位置,通过name来匹配
// 找到在formList的位置,通过name来匹配
findFormIdx
(
name
)
{
findFormIdx
(
name
)
{
return
this
.
editFormData
.
findIndex
(
item
=>
item
.
name
===
name
)
return
this
.
editFormData
.
findIndex
(
item
=>
item
.
name
===
name
)
},
getList
()
{
var
params
=
{
msgId
:
this
.
paramsObj
.
id
}
findByMsgId
(
params
).
then
(
res
=>
{
this
.
tableData
=
res
})
}
}
}
}
}
}
...
@@ -255,133 +325,14 @@ export default {
...
@@ -255,133 +325,14 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.add-dialog
{
.add-dialog
{
margin
:
20px
0
;
margin
:
20px
0
;
.div-title
{
.reject-input
{
width
:
1040px
;
::v-deep
.el-textarea__inner
{
height
:
30px
;
height
:
70px
;
border-bottom
:
1px
solid
#e5e5e5
;
}
font-size
:
16px
;
}
font-weight
:
600
;
.el-textarea
.el-input__count
{
right
:
90px
;
bottom
:
-10px
;
font-size
:
12px
;
color
:
#999999
;
}
.tips
{
color
:
#999999
;
}
.down-cla
{
width
:
56px
;
height
:
32px
;
font-family
:
PingFangSC-Regular
;
font-weight
:
400
;
font-size
:
14px
;
color
:
#185efe
;
text-align
:
right
;
line-height
:
32px
;
padding-left
:
8px
;
//
cursor
:
pointer
;
}
.upload-file
{
::v-deep
.el-upload-dragger
{
display
:
flex
;
flex-flow
:
column
;
justify-content
:
center
;
align-items
:
center
;
width
:
300px
;
height
:
160px
;
background
:
#f7f7f7
;
.el-icon-upload
{
margin
:
0
;
}
.el-upload__text
{
font-size
:
14px
;
color
:
#000000
;
}
.item-tips
{
font-size
:
12px
;
color
:
#999999
;
height
:
22px
;
line-height
:
22px
;
}
.text-tips
{
font-size
:
14px
;
}
}
}
.file-box
{
width
:
350px
;
.file-item
{
margin-top
:
6px
;
position
:
relative
;
box-sizing
:
border-box
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
cursor
:
pointer
;
::v-deep
.el-progress-bar
{
width
:
320px
;
background
:
#ffffff
;
border
:
1px
solid
#f4f6fc
;
border-radius
:
4px
;
.el-progress-bar__outer
{
background
:
transparent
;
border-radius
:
4px
;
.el-progress-bar__inner
{
background
:
#f5f7fa
;
border-radius
:
4px
;
}
}
}
::v-deep
.el-image-viewer__wrapper
{
width
:
100vw
;
height
:
100vh
;
}
.file-name
{
position
:
absolute
;
left
:
12px
;
top
:
6px
;
transform
:
translateY
(
-50%
);
color
:
#333333
;
color
:
#333333
;
font-size
:
14px
;
margin
:
10px
0
20px
0
;
max-width
:
300px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
.image-file
{
z-index
:
-1
;
}
}
.file-item
:first-child
{
margin-top
:
15px
;
.file-name
{
position
:
absolute
;
left
:
12px
;
top
:
15px
;
transform
:
translateY
(
-50%
);
color
:
#333333
;
font-size
:
14px
;
}
}
}
}
}
}
</
style
>
</
style
>
...
...
src/views/earlyWarningManager/staff/details.vue
View file @
d3f35dc
...
@@ -9,7 +9,8 @@
...
@@ -9,7 +9,8 @@
<d2-search
ref=
"showSearch"
<d2-search
ref=
"showSearch"
class=
"show-search"
class=
"show-search"
:search-form=
"searchForm"
:search-form=
"searchForm"
:form-data=
"showFormData"
/>
:form-data=
"showFormData"
label-width=
"100px"
/>
<div
class=
"up-btns"
>
<div
class=
"up-btns"
>
<el-button
:id=
"tableParams.btnId"
<el-button
:id=
"tableParams.btnId"
size=
"small"
size=
"small"
...
@@ -85,7 +86,7 @@ import { Util, deepClone, downLoadFile } from '@/common/util'
...
@@ -85,7 +86,7 @@ import { Util, deepClone, downLoadFile } from '@/common/util'
import
detailDialog
from
'./components/detailDialog'
import
detailDialog
from
'./components/detailDialog'
import
handleDialog
from
'./components/handleDialog'
import
handleDialog
from
'./components/handleDialog'
import
{
findAllData
,
findAllPersonRelations
,
warningMsgDetailListWithPage
,
warningMsgDetailListWithPageExport
}
from
'@api/earlyWarningManager'
import
{
findAllData
,
findAllPersonRelations
,
warningMsgDetailListWithPage
,
warningMsgDetailListWithPageExport
}
from
'@api/earlyWarningManager'
import
{
businessOpt
,
priorityOpt
,
warnStageyOpt
,
statusOpt
,
priorityShowText
}
from
'@/common/constants.js'
import
{
businessOpt
,
priorityOpt
,
warnStageyOpt
,
statusOpt
,
priorityShowText
,
filterOpt
}
from
'@/common/constants.js'
export
default
{
export
default
{
name
:
'Details'
,
name
:
'Details'
,
props
:
{
props
:
{
...
@@ -109,9 +110,20 @@ export default {
...
@@ -109,9 +110,20 @@ export default {
salespersonId
:
''
,
salespersonId
:
''
,
createTime
:
''
,
createTime
:
''
,
bussinessType
:
''
,
bussinessType
:
''
,
statusList
:
[]
statusList
:
[],
storePersonId
:
''
,
searchType
:
''
},
},
showFormData
:
[{
showFormData
:
[{
label
:
'筛选'
,
name
:
'searchType'
,
type
:
'select'
,
isClear
:
true
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confValue'
,
optionsName
:
'filterOpt'
},
{
label
:
'员工姓名'
,
label
:
'员工姓名'
,
name
:
'staffName'
,
name
:
'staffName'
,
type
:
'input'
,
type
:
'input'
,
...
@@ -202,6 +214,15 @@ export default {
...
@@ -202,6 +214,15 @@ export default {
optionLabel
:
'staffName'
,
optionLabel
:
'staffName'
,
optionsName
:
'saleOpt'
optionsName
:
'saleOpt'
},
{
},
{
label
:
'盯防负责人'
,
name
:
'storePersonId'
,
type
:
'select'
,
isClear
:
true
,
optionList
:
[],
optionId
:
'staffId'
,
optionLabel
:
'staffName'
,
optionsName
:
'storePersonOpt'
},
{
label
:
'所属门店'
,
label
:
'所属门店'
,
name
:
'merchantName'
,
name
:
'merchantName'
,
type
:
'input'
,
type
:
'input'
,
...
@@ -294,6 +315,10 @@ export default {
...
@@ -294,6 +315,10 @@ export default {
prop
:
'merchantName4s'
,
prop
:
'merchantName4s'
,
width
:
'150'
width
:
'150'
},
{
},
{
label
:
'盯防负责人'
,
prop
:
'storePerson'
,
width
:
'150'
},
{
label
:
'所属业务'
,
label
:
'所属业务'
,
addHtml
:
'typeHtml'
,
addHtml
:
'typeHtml'
,
width
:
'100'
width
:
'100'
...
@@ -340,6 +365,7 @@ export default {
...
@@ -340,6 +365,7 @@ export default {
priorityOpt
:
deepClone
(
priorityOpt
),
priorityOpt
:
deepClone
(
priorityOpt
),
warnStageyOpt
:
deepClone
(
warnStageyOpt
),
warnStageyOpt
:
deepClone
(
warnStageyOpt
),
statusOpt
:
deepClone
(
statusOpt
),
statusOpt
:
deepClone
(
statusOpt
),
filterOpt
:
deepClone
(
filterOpt
),
supervisorOpt
:
[],
supervisorOpt
:
[],
saleOpt
:
[],
saleOpt
:
[],
categoryList
:
[],
categoryList
:
[],
...
@@ -357,7 +383,8 @@ export default {
...
@@ -357,7 +383,8 @@ export default {
stageShowClass
:
{
stageShowClass
:
{
1
:
'stage-one'
,
1
:
'stage-one'
,
2
:
'stage-two'
2
:
'stage-two'
}
},
storePersonOpt
:
[]
},
},
detailVisible
:
false
,
detailVisible
:
false
,
handleVisible
:
false
,
handleVisible
:
false
,
...
@@ -396,8 +423,12 @@ export default {
...
@@ -396,8 +423,12 @@ export default {
async
getBaseData
()
{
async
getBaseData
()
{
this
.
findAllData
(
1
)
this
.
findAllData
(
1
)
// 督导
this
.
findAllPersonRelations
(
1
)
this
.
findAllPersonRelations
(
1
)
// 销售
this
.
findAllPersonRelations
(
2
)
this
.
findAllPersonRelations
(
2
)
// 盯防负责人
this
.
findAllPersonRelations
(
3
)
this
.
getOptionsList
()
this
.
getOptionsList
()
},
},
...
@@ -440,7 +471,9 @@ export default {
...
@@ -440,7 +471,9 @@ export default {
salespersonId
:
''
,
salespersonId
:
''
,
createTime
:
''
,
createTime
:
''
,
bussinessType
:
''
,
bussinessType
:
''
,
statusList
:
[]
statusList
:
[],
storePersonId
:
''
,
searchType
:
''
}
}
// 清空预警事项选项
// 清空预警事项选项
this
.
baseData
.
warningItemsOpt
=
[]
this
.
baseData
.
warningItemsOpt
=
[]
...
@@ -489,6 +522,8 @@ export default {
...
@@ -489,6 +522,8 @@ export default {
this
.
baseData
.
supervisorOpt
=
res
this
.
baseData
.
supervisorOpt
=
res
}
else
if
(
sourceType
==
2
)
{
// 销售
}
else
if
(
sourceType
==
2
)
{
// 销售
this
.
baseData
.
saleOpt
=
res
this
.
baseData
.
saleOpt
=
res
}
else
if
(
sourceType
==
3
)
{
// 盯防负责人
this
.
baseData
.
storePersonOpt
=
res
}
}
this
.
getOptionsList
()
this
.
getOptionsList
()
})
})
...
...
src/views/earlyWarningManager/staff/noticeBoard.vue
View file @
d3f35dc
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
<
script
>
<
script
>
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
staffWarningMsgListWithPage
}
from
'@api/earlyWarningManager'
import
{
staffWarningMsgListWithPage
}
from
'@api/earlyWarningManager'
import
{
businessOpt
,
businessOptShowText
,
priorityShowText
}
from
'@/common/constants.js'
import
{
businessOpt
,
businessOptShowText
,
priorityShowText
,
filterOpt
}
from
'@/common/constants.js'
export
default
{
export
default
{
name
:
'NoticeBoard'
,
name
:
'NoticeBoard'
,
data
()
{
data
()
{
...
@@ -128,12 +128,22 @@ export default {
...
@@ -128,12 +128,22 @@ export default {
layout
:
"sizes,total,->,prev,pager,next,jumper"
,
layout
:
"sizes,total,->,prev,pager,next,jumper"
,
total
:
10
,
total
:
10
,
searchForm
:
{
searchForm
:
{
searchType
:
''
,
staffName
:
''
,
staffName
:
''
,
staffPhone
:
''
,
staffPhone
:
''
,
merchantName
:
''
,
merchantName
:
''
,
bussinessType
:
''
bussinessType
:
''
},
},
showFormData
:
[{
showFormData
:
[{
label
:
'筛选'
,
name
:
'searchType'
,
type
:
'select'
,
isClear
:
true
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confValue'
,
optionsName
:
'filterOpt'
},
{
label
:
'员工姓名'
,
label
:
'员工姓名'
,
name
:
'staffName'
,
name
:
'staffName'
,
type
:
'input'
,
type
:
'input'
,
...
@@ -165,6 +175,7 @@ export default {
...
@@ -165,6 +175,7 @@ export default {
baseData
:
{
baseData
:
{
businessOpt
:
deepClone
(
businessOpt
),
businessOpt
:
deepClone
(
businessOpt
),
businessOptShowText
:
deepClone
(
businessOptShowText
),
businessOptShowText
:
deepClone
(
businessOptShowText
),
filterOpt
:
deepClone
(
filterOpt
),
businessOptShowClass
:
{
businessOptShowClass
:
{
2
:
'name-info-type-yellow'
,
2
:
'name-info-type-yellow'
,
3
:
'name-info-type-blue'
,
3
:
'name-info-type-blue'
,
...
@@ -202,6 +213,7 @@ export default {
...
@@ -202,6 +213,7 @@ export default {
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
{
this
.
searchForm
=
{
searchType
:
''
,
staffName
:
''
,
staffName
:
''
,
staffPhone
:
''
,
staffPhone
:
''
,
merchantName
:
''
,
merchantName
:
''
,
...
...
src/views/earlyWarningManager/store/components/detailDialog.vue
View file @
d3f35dc
...
@@ -42,6 +42,11 @@
...
@@ -42,6 +42,11 @@
:title=
"paramsObj.salesperson"
>
:title=
"paramsObj.salesperson"
>
{{
paramsObj
.
salesperson
?
(
paramsObj
.
salesperson
.
length
>
15
?
(
paramsObj
.
salesperson
.
slice
(
0
,
15
)
+
'...'
)
:
paramsObj
.
salesperson
)
:
''
}}
{{
paramsObj
.
salesperson
?
(
paramsObj
.
salesperson
.
length
>
15
?
(
paramsObj
.
salesperson
.
slice
(
0
,
15
)
+
'...'
)
:
paramsObj
.
salesperson
)
:
''
}}
</el-form-item>
</el-form-item>
<el-form-item
label=
"盯防负责人"
class=
"halfItem"
:title=
"paramsObj.storePerson"
>
{{
paramsObj
.
storePerson
?
(
paramsObj
.
storePerson
.
length
>
15
?
(
paramsObj
.
storePerson
.
slice
(
0
,
15
)
+
'...'
)
:
paramsObj
.
storePerson
)
:
''
}}
</el-form-item>
</div>
</div>
</el-form>
</el-form>
<div
class=
"div-title"
>
预警信息
</div>
<div
class=
"div-title"
>
预警信息
</div>
...
...
src/views/earlyWarningManager/store/components/handleDialog.vue
View file @
d3f35dc
...
@@ -35,13 +35,22 @@
...
@@ -35,13 +35,22 @@
</el-date-picker>
</el-date-picker>
</div>
</div>
</glsx-combi-form>
</glsx-combi-form>
<div
class=
"div-title"
>
跟进记录
</div>
<div
class=
"d2-container-content"
>
<d2-table
ref=
"recordTable"
:has-page=
"false"
:table-data=
"tableData"
:search-form=
"searchFormSearch"
:table-params=
"tableParams"
>
</d2-table>
</div>
</div>
</div>
</baseDialog>
</baseDialog>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
saveFollowRecord
}
from
'@api/earlyWarningManager'
import
{
saveFollowRecord
,
findByMsgId
}
from
'@api/earlyWarningManager'
import
{
deepClone
}
from
'@/common/util'
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
findMerchantStaffList
}
from
'@api/index'
import
{
findMerchantStaffList
}
from
'@api/index'
import
{
afterPickerOptions_timeChoose
}
from
'@/common/format'
import
{
afterPickerOptions_timeChoose
}
from
'@/common/format'
// import { baseConfig } from '@/main'
// import { baseConfig } from '@/main'
...
@@ -61,7 +70,8 @@ export default {
...
@@ -61,7 +70,8 @@ export default {
},
},
dialogConfig
:
{
dialogConfig
:
{
title
:
'预警处理'
,
title
:
'预警处理'
,
width
:
'700px'
// width: '700px'
width
:
'1080px'
},
},
handleFormRef
:
'handleFormRef'
,
handleFormRef
:
'handleFormRef'
,
formRules
:
{
formRules
:
{
...
@@ -101,6 +111,58 @@ export default {
...
@@ -101,6 +111,58 @@ export default {
addHtml
:
'nextFollowerTimeHtml'
,
addHtml
:
'nextFollowerTimeHtml'
,
rules
:
[{
required
:
true
,
message
:
'请选择下次跟进时间'
,
trigger
:
'change'
}]
rules
:
[{
required
:
true
,
message
:
'请选择下次跟进时间'
,
trigger
:
'change'
}]
}],
}],
searchForm
:
{
id
:
''
},
searchFormSearch
:
{},
// getListApi: findByMsgId,
tableData
:
[],
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'list'
,
tableOption
:
false
,
tableColumns
:
[{
label
:
'处理结果'
,
prop
:
'followStatusName'
,
width
:
'100'
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
followStatusName
?
cellValue
.
followStatusName
:
'--'
},
className
:
(
cellValue
)
=>
{
return
{
1
:
'yellowSpot'
,
2
:
'greenSpot'
,
3
:
'ashSpot'
,
0
:
'ashSpot'
}[
cellValue
.
followStatus
]
}
},
{
label
:
'跟进内容'
,
prop
:
'followNotes'
,
width
:
'250px'
},
{
label
:
'跟进人'
,
prop
:
'followerName'
},
{
label
:
'跟进时间'
,
prop
:
'createdTime'
,
width
:
'150'
,
formatter
:
(
cellValue
)
=>
{
return
Util
.
dateFormate
(
cellValue
.
createdTime
,
'YYYY-MM-DD HH:mm:ss'
)
}
},
{
label
:
'下次跟进人'
,
prop
:
'nextFollowerName'
},
{
label
:
'下次跟进时间'
,
prop
:
'nextFollowerTime'
,
width
:
'150'
,
formatter
:
(
cellValue
)
=>
{
return
Util
.
dateFormate
(
cellValue
.
nextFollowerTime
,
'YYYY-MM-DD HH:mm'
)
}
}]
},
baseData
:
{
baseData
:
{
followStatusOptions
:
[
followStatusOptions
:
[
{
confId
:
1
,
confValue
:
"待处理"
},
{
confId
:
1
,
confValue
:
"待处理"
},
...
@@ -141,6 +203,7 @@ export default {
...
@@ -141,6 +203,7 @@ export default {
this
.
infoForm
.
followStatus
=
this
.
paramsObj
.
status
this
.
infoForm
.
followStatus
=
this
.
paramsObj
.
status
this
.
followStatusChange
(
this
.
infoForm
.
followStatus
)
this
.
followStatusChange
(
this
.
infoForm
.
followStatus
)
}
}
this
.
getList
()
this
.
getOptionsList
(
'editFormData'
,
false
)
this
.
getOptionsList
(
'editFormData'
,
false
)
},
},
...
@@ -247,6 +310,13 @@ export default {
...
@@ -247,6 +310,13 @@ export default {
// 找到在formList的位置,通过name来匹配
// 找到在formList的位置,通过name来匹配
findFormIdx
(
name
)
{
findFormIdx
(
name
)
{
return
this
.
editFormData
.
findIndex
(
item
=>
item
.
name
===
name
)
return
this
.
editFormData
.
findIndex
(
item
=>
item
.
name
===
name
)
},
getList
()
{
var
params
=
{
msgId
:
this
.
paramsObj
.
id
}
findByMsgId
(
params
).
then
(
res
=>
{
this
.
tableData
=
res
})
}
}
}
}
}
}
...
@@ -255,132 +325,14 @@ export default {
...
@@ -255,132 +325,14 @@ export default {
.add-dialog
{
.add-dialog
{
margin
:
20px
0
;
margin
:
20px
0
;
.reject-input
{
.div-title
{
::v-deep
.el-textarea__inner
{
width
:
1040px
;
height
:
70px
;
height
:
30px
;
}
border-bottom
:
1px
solid
#e5e5e5
;
}
font-size
:
16px
;
font-weight
:
600
;
.el-textarea
.el-input__count
{
right
:
90px
;
bottom
:
-10px
;
font-size
:
12px
;
color
:
#999999
;
}
.tips
{
color
:
#999999
;
}
.down-cla
{
width
:
56px
;
height
:
32px
;
font-family
:
PingFangSC-Regular
;
font-weight
:
400
;
font-size
:
14px
;
color
:
#185efe
;
text-align
:
right
;
line-height
:
32px
;
padding-left
:
8px
;
//
cursor
:
pointer
;
}
.upload-file
{
::v-deep
.el-upload-dragger
{
display
:
flex
;
flex-flow
:
column
;
justify-content
:
center
;
align-items
:
center
;
width
:
300px
;
height
:
160px
;
background
:
#f7f7f7
;
.el-icon-upload
{
margin
:
0
;
}
.el-upload__text
{
font-size
:
14px
;
color
:
#000000
;
}
.item-tips
{
font-size
:
12px
;
color
:
#999999
;
height
:
22px
;
line-height
:
22px
;
}
.text-tips
{
font-size
:
14px
;
}
}
}
.file-box
{
width
:
350px
;
.file-item
{
margin-top
:
6px
;
position
:
relative
;
box-sizing
:
border-box
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
cursor
:
pointer
;
::v-deep
.el-progress-bar
{
width
:
320px
;
background
:
#ffffff
;
border
:
1px
solid
#f4f6fc
;
border-radius
:
4px
;
.el-progress-bar__outer
{
background
:
transparent
;
border-radius
:
4px
;
.el-progress-bar__inner
{
background
:
#f5f7fa
;
border-radius
:
4px
;
}
}
}
::v-deep
.el-image-viewer__wrapper
{
width
:
100vw
;
height
:
100vh
;
}
.file-name
{
position
:
absolute
;
left
:
12px
;
top
:
6px
;
transform
:
translateY
(
-50%
);
color
:
#333333
;
font-size
:
14px
;
max-width
:
300px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
.image-file
{
z-index
:
-1
;
}
}
.file-item
:first-child
{
margin-top
:
15px
;
.file-name
{
position
:
absolute
;
left
:
12px
;
top
:
15px
;
transform
:
translateY
(
-50%
);
color
:
#333333
;
color
:
#333333
;
font-size
:
14px
;
margin
:
10px
0
20px
0
;
}
}
}
}
}
}
</
style
>
</
style
>
src/views/earlyWarningManager/store/details.vue
View file @
d3f35dc
...
@@ -9,7 +9,8 @@
...
@@ -9,7 +9,8 @@
<d2-search
ref=
"showSearch"
<d2-search
ref=
"showSearch"
class=
"show-search"
class=
"show-search"
:search-form=
"searchForm"
:search-form=
"searchForm"
:form-data=
"showFormData"
/>
:form-data=
"showFormData"
label-width=
"100px"
/>
<div
class=
"up-btns"
>
<div
class=
"up-btns"
>
<el-button
:id=
"tableParams.btnId"
<el-button
:id=
"tableParams.btnId"
size=
"small"
size=
"small"
...
@@ -85,7 +86,7 @@ import { Util, deepClone, downLoadFile } from '@/common/util'
...
@@ -85,7 +86,7 @@ import { Util, deepClone, downLoadFile } from '@/common/util'
import
detailDialog
from
'./components/detailDialog'
import
detailDialog
from
'./components/detailDialog'
import
handleDialog
from
'./components/handleDialog'
import
handleDialog
from
'./components/handleDialog'
import
{
findAllData
,
findAllPersonRelations
,
warningMsgDetailListWithPage
,
warningMsgDetailListWithPageExport
}
from
'@api/earlyWarningManager'
import
{
findAllData
,
findAllPersonRelations
,
warningMsgDetailListWithPage
,
warningMsgDetailListWithPageExport
}
from
'@api/earlyWarningManager'
import
{
businessOpt
,
priorityOpt
,
warnStageyOpt
,
statusOpt
,
priorityShowText
}
from
'@/common/constants.js'
import
{
businessOpt
,
priorityOpt
,
warnStageyOpt
,
statusOpt
,
priorityShowText
,
filterOpt
}
from
'@/common/constants.js'
export
default
{
export
default
{
name
:
'Details'
,
name
:
'Details'
,
props
:
{
props
:
{
...
@@ -107,9 +108,20 @@ export default {
...
@@ -107,9 +108,20 @@ export default {
salespersonId
:
''
,
salespersonId
:
''
,
createTime
:
''
,
createTime
:
''
,
bussinessType
:
''
,
bussinessType
:
''
,
statusList
:
[]
statusList
:
[],
storePersonId
:
''
,
searchType
:
''
},
},
showFormData
:
[{
showFormData
:
[{
label
:
'筛选'
,
name
:
'searchType'
,
type
:
'select'
,
isClear
:
true
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confValue'
,
optionsName
:
'filterOpt'
},
{
label
:
'所属门店'
,
label
:
'所属门店'
,
name
:
'merchantName'
,
name
:
'merchantName'
,
type
:
'input'
,
type
:
'input'
,
...
@@ -192,6 +204,15 @@ export default {
...
@@ -192,6 +204,15 @@ export default {
optionLabel
:
'staffName'
,
optionLabel
:
'staffName'
,
optionsName
:
'saleOpt'
optionsName
:
'saleOpt'
},
{
},
{
label
:
'盯防负责人'
,
name
:
'storePersonId'
,
type
:
'select'
,
isClear
:
true
,
optionList
:
[],
optionId
:
'staffId'
,
optionLabel
:
'staffName'
,
optionsName
:
'storePersonOpt'
},
{
label
:
'状态'
,
label
:
'状态'
,
name
:
'statusList'
,
name
:
'statusList'
,
type
:
'select'
,
type
:
'select'
,
...
@@ -275,6 +296,10 @@ export default {
...
@@ -275,6 +296,10 @@ export default {
prop
:
'salesperson'
,
prop
:
'salesperson'
,
width
:
'150'
width
:
'150'
},
{
},
{
label
:
'盯防负责人'
,
prop
:
'storePerson'
,
width
:
'150'
},
{
label
:
'所属业务'
,
label
:
'所属业务'
,
addHtml
:
'typeHtml'
,
addHtml
:
'typeHtml'
,
width
:
'100'
width
:
'100'
...
@@ -321,6 +346,7 @@ export default {
...
@@ -321,6 +346,7 @@ export default {
priorityOpt
:
deepClone
(
priorityOpt
),
priorityOpt
:
deepClone
(
priorityOpt
),
warnStageyOpt
:
deepClone
(
warnStageyOpt
),
warnStageyOpt
:
deepClone
(
warnStageyOpt
),
statusOpt
:
deepClone
(
statusOpt
),
statusOpt
:
deepClone
(
statusOpt
),
filterOpt
:
deepClone
(
filterOpt
),
supervisorOpt
:
[],
supervisorOpt
:
[],
saleOpt
:
[],
saleOpt
:
[],
categoryList
:
[],
categoryList
:
[],
...
@@ -338,7 +364,8 @@ export default {
...
@@ -338,7 +364,8 @@ export default {
stageShowClass
:
{
stageShowClass
:
{
1
:
'stage-one'
,
1
:
'stage-one'
,
2
:
'stage-two'
2
:
'stage-two'
}
},
storePersonOpt
:
[]
},
},
detailVisible
:
false
,
detailVisible
:
false
,
handleVisible
:
false
,
handleVisible
:
false
,
...
@@ -376,8 +403,12 @@ export default {
...
@@ -376,8 +403,12 @@ export default {
async
getBaseData
()
{
async
getBaseData
()
{
this
.
findAllData
(
2
)
this
.
findAllData
(
2
)
// 督导
this
.
findAllPersonRelations
(
1
)
this
.
findAllPersonRelations
(
1
)
// 销售
this
.
findAllPersonRelations
(
2
)
this
.
findAllPersonRelations
(
2
)
// 盯防负责人
this
.
findAllPersonRelations
(
3
)
this
.
getOptionsList
()
this
.
getOptionsList
()
},
},
...
@@ -417,7 +448,9 @@ export default {
...
@@ -417,7 +448,9 @@ export default {
salespersonId
:
''
,
salespersonId
:
''
,
createTime
:
''
,
createTime
:
''
,
bussinessType
:
''
,
bussinessType
:
''
,
statusList
:
[]
statusList
:
[],
storePersonId
:
''
,
searchType
:
''
}
}
// 清空预警事项选项
// 清空预警事项选项
this
.
baseData
.
warningItemsOpt
=
[]
this
.
baseData
.
warningItemsOpt
=
[]
...
@@ -467,6 +500,8 @@ export default {
...
@@ -467,6 +500,8 @@ export default {
this
.
baseData
.
supervisorOpt
=
res
this
.
baseData
.
supervisorOpt
=
res
}
else
if
(
sourceType
==
2
)
{
// 销售
}
else
if
(
sourceType
==
2
)
{
// 销售
this
.
baseData
.
saleOpt
=
res
this
.
baseData
.
saleOpt
=
res
}
else
if
(
sourceType
==
3
)
{
// 盯防负责人
this
.
baseData
.
storePersonOpt
=
res
}
}
this
.
getOptionsList
()
this
.
getOptionsList
()
})
})
...
...
src/views/earlyWarningManager/store/noticeBoard.vue
View file @
d3f35dc
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
<
script
>
<
script
>
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
merchantWarningMsgListWithPage
}
from
'@api/earlyWarningManager'
import
{
merchantWarningMsgListWithPage
}
from
'@api/earlyWarningManager'
import
{
businessOpt
,
businessOptShowText
,
priorityShowText
}
from
'@/common/constants.js'
import
{
businessOpt
,
businessOptShowText
,
priorityShowText
,
filterOpt
}
from
'@/common/constants.js'
export
default
{
export
default
{
name
:
'NoticeBoard'
,
name
:
'NoticeBoard'
,
data
()
{
data
()
{
...
@@ -117,9 +117,19 @@ export default {
...
@@ -117,9 +117,19 @@ export default {
total
:
10
,
total
:
10
,
searchForm
:
{
searchForm
:
{
merchantName
:
''
,
merchantName
:
''
,
bussinessType
:
''
bussinessType
:
''
,
searchType
:
''
},
},
showFormData
:
[{
showFormData
:
[{
label
:
'筛选'
,
name
:
'searchType'
,
type
:
'select'
,
isClear
:
true
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confValue'
,
optionsName
:
'filterOpt'
},
{
label
:
'所属门店'
,
label
:
'所属门店'
,
name
:
'merchantName'
,
name
:
'merchantName'
,
type
:
'input'
,
type
:
'input'
,
...
@@ -138,6 +148,7 @@ export default {
...
@@ -138,6 +148,7 @@ export default {
baseData
:
{
baseData
:
{
businessOpt
:
deepClone
(
businessOpt
),
businessOpt
:
deepClone
(
businessOpt
),
businessOptShowText
:
deepClone
(
businessOptShowText
),
businessOptShowText
:
deepClone
(
businessOptShowText
),
filterOpt
:
deepClone
(
filterOpt
),
businessOptShowClass
:
{
businessOptShowClass
:
{
2
:
'name-info-type-yellow'
,
2
:
'name-info-type-yellow'
,
3
:
'name-info-type-blue'
,
3
:
'name-info-type-blue'
,
...
@@ -176,7 +187,8 @@ export default {
...
@@ -176,7 +187,8 @@ export default {
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
{
this
.
searchForm
=
{
merchantName
:
''
,
merchantName
:
''
,
bussinessType
:
''
bussinessType
:
''
,
searchType
:
''
}
}
this
.
merchantWarningMsgListWithPage
()
this
.
merchantWarningMsgListWithPage
()
},
},
...
...
src/views/orderManage/chooseRuleDialog.vue
View file @
d3f35dc
<!-- 选择
分账
规则弹窗 -->
<!-- 选择
财务
规则弹窗 -->
<
template
>
<
template
>
<d2-dialog
title=
"选择
分账
规则"
<d2-dialog
title=
"选择
财务
规则"
:is-visible=
"ruleVisible"
:is-visible=
"ruleVisible"
class=
"chooseRuleDialog"
class=
"chooseRuleDialog"
width=
"65%"
width=
"65%"
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
<div
class=
"merchant-checkrecord"
>
<div
class=
"merchant-checkrecord"
>
<div
class=
"account-detail"
<div
class=
"account-detail"
ref=
"accountDetail"
>
ref=
"accountDetail"
>
<div
v-if=
"formArray && formArray.length"
>
<div
v-if=
"formArray && formArray.length
> 0
"
>
<div
v-for=
"(formItem, index) in formArray"
<div
v-for=
"(formItem, index) in formArray"
:ref=
"'resize' + index"
:ref=
"'resize' + index"
:key=
"index"
>
:key=
"index"
>
...
@@ -70,7 +70,51 @@
...
@@ -70,7 +70,51 @@
class=
"nothingtips"
>
class=
"nothingtips"
>
<img
style=
"height: 109px; width: 109px"
<img
style=
"height: 109px; width: 109px"
src=
"../systemConfig/merchant/images/empty.png"
/>
src=
"../systemConfig/merchant/images/empty.png"
/>
<p
class=
"title"
>
暂无财务规则
</p>
<p
class=
"title"
>
暂无分账规则
</p>
<p
class=
"tips"
>
快去设置看看~
</p>
</div>
</div>
</div>
</div>
<div
class=
"fontD"
>
请选择要应用的对账规则:
</div>
<div>
<div
class=
"merchant-checkrecord"
>
<div
class=
"account-detail"
ref=
"accountDetail"
>
<div
v-if=
"formArray2 && formArray2.length > 0"
>
<div
v-for=
"(formItem, index) in formArray2"
:ref=
"'resize' + index"
:key=
"index"
>
<p
class=
"sub-title"
:class=
"
{ 'sub-border': !formItem.show }">
<el-radio
v-model=
"radio2"
:label=
"formItem.id"
>
<i></i>
</el-radio>
<span
class=
"label"
>
<span>
{{
formItem
.
formatEffectStartDate
}}
</span>
<span
v-if=
"formItem.formatEffectStartDate"
>
-
</span>
<span
:class=
"
{ labelColor: !formItem.formatEffectEndDate }">
{{
formItem
.
formatEffectStartDate
?
formItem
.
formatEffectEndDate
?
formItem
.
formatEffectEndDate
:
"生效中"
:
"待生效"
}}
</span>
</span>
<span
class=
"updatedInfo"
>
操作人:
{{
formItem
.
updatedBy
}}
操作时间:
{{
formItem
.
formatUpdatedDate
}}
</span>
</p>
</div>
</div>
<div
v-else
class=
"nothingtips"
>
<img
style=
"height: 109px; width: 109px"
src=
"../systemConfig/merchant/images/empty.png"
/>
<p
class=
"title"
>
暂无对账规则
</p>
<p
class=
"tips"
>
快去设置看看~
</p>
<p
class=
"tips"
>
快去设置看看~
</p>
</div>
</div>
</div>
</div>
...
@@ -81,7 +125,7 @@
...
@@ -81,7 +125,7 @@
<
script
>
<
script
>
import
dayjs
from
"dayjs"
import
dayjs
from
"dayjs"
import
{
Util
,
deepClone
}
from
'@/common/util'
//
import { Util, deepClone } from '@/common/util'
// import { getHistoryRecord } from "@api/publicAccount"
// import { getHistoryRecord } from "@api/publicAccount"
// import {
// import {
// getLedgerHistoryRecordApi,
// getLedgerHistoryRecordApi,
...
@@ -106,7 +150,9 @@ export default {
...
@@ -106,7 +150,9 @@ export default {
data
()
{
data
()
{
return
{
return
{
formArray
:
[],
formArray
:
[],
radio
:
''
formArray2
:
[],
radio
:
''
,
radio2
:
''
}
}
},
},
created
()
{
created
()
{
...
@@ -126,10 +172,13 @@ export default {
...
@@ -126,10 +172,13 @@ export default {
sceneType
sceneType
}
}
const
res
=
await
getHistoryEffectRecord
(
params
)
const
res
=
await
getHistoryEffectRecord
(
params
)
if
(
res
.
length
!=
0
)
{
if
(
res
)
{
const
settleDistributeRuleEffectiveList
=
res
.
settleDistributeRuleEffectiveList
// 分账规则
const
reconciliationRuleEffectiveList
=
res
.
reconciliationRuleEffectiveList
// 对账规则
const
format
=
"YYYY/MM/DD HH:mm"
const
format
=
"YYYY/MM/DD HH:mm"
this
.
formArray
=
res
.
map
(
item
=>
{
if
(
settleDistributeRuleEffectiveList
.
length
>
0
)
{
item
.
typeObject
=
item
.
rule
this
.
formArray
=
settleDistributeRuleEffectiveList
.
map
(
item
=>
{
item
.
formatEffectEndDate
=
item
.
effectEndDate
item
.
formatEffectEndDate
=
item
.
effectEndDate
?
dayjs
(
item
.
effectEndDate
).
format
(
format
)
?
dayjs
(
item
.
effectEndDate
).
format
(
format
)
:
""
:
""
...
@@ -143,6 +192,22 @@ export default {
...
@@ -143,6 +192,22 @@ export default {
}
else
{
}
else
{
this
.
formArray
=
[]
this
.
formArray
=
[]
}
}
if
(
reconciliationRuleEffectiveList
.
length
>
0
)
{
this
.
formArray2
=
reconciliationRuleEffectiveList
.
map
(
item
=>
{
item
.
formatEffectEndDate
=
item
.
effectEndDate
?
dayjs
(
item
.
effectEndDate
).
format
(
format
)
:
""
item
.
formatEffectStartDate
=
item
.
effectStartDate
?
dayjs
(
item
.
effectStartDate
).
format
(
format
)
:
""
item
.
formatUpdatedDate
=
dayjs
(
item
.
updatedDate
).
format
(
format
)
item
.
show
=
false
return
item
})
}
else
{
this
.
formArray2
=
[]
}
}
},
},
handleAddConfirm
()
{
handleAddConfirm
()
{
...
@@ -150,12 +215,16 @@ export default {
...
@@ -150,12 +215,16 @@ export default {
this
.
notice
.
warningTips
(
'请选择分账规则'
)
this
.
notice
.
warningTips
(
'请选择分账规则'
)
return
return
}
}
if
(
!
this
.
radio2
)
{
this
.
notice
.
warningTips
(
'请选择对账规则'
)
return
}
var
params
=
{}
var
params
=
{}
params
.
outTradeNo
=
this
.
recordInfo
.
outTradeNo
params
.
outTradeNo
=
this
.
recordInfo
.
outTradeNo
// params.inputtedOrderCode = this.recordInfo.inputtedOrderCode
params
.
inputtedOrderCode
=
this
.
recordInfo
.
orderCode
params
.
inputtedOrderCode
=
this
.
recordInfo
.
orderCode
params
.
effectRuleId
=
this
.
radio
params
.
settleDistributeEffectRuleId
=
this
.
radio
// return console.log('params', params);
params
.
reconciliationRuleEffectRuleId
=
this
.
radio2
// return console.log('params', params)
this
.
$confirm
(
"确定分账后,当前订单会以选择的分账规则进行分账,且不可撤回;是否确定分账?"
,
"提示"
,
{
this
.
$confirm
(
"确定分账后,当前订单会以选择的分账规则进行分账,且不可撤回;是否确定分账?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
"确定"
,
...
...
src/views/orderManage/ruleInfoDialog.vue
View file @
d3f35dc
<!-- 选择分账规则弹窗 -->
<!-- 选择分账规则弹窗 -->
<
template
>
<
template
>
<d2-dialog
title=
"查看
分账
操作记录"
<d2-dialog
title=
"查看
财务规则
操作记录"
:is-visible=
"ruleInfoVisible"
:is-visible=
"ruleInfoVisible"
class=
"ruleInfoDialog"
class=
"ruleInfoDialog"
width=
"65%"
width=
"65%"
...
@@ -35,23 +35,23 @@
...
@@ -35,23 +35,23 @@
<div
class=
"merchant-checkrecord"
>
<div
class=
"merchant-checkrecord"
>
<div
class=
"account-detail"
<div
class=
"account-detail"
ref=
"accountDetail"
>
ref=
"accountDetail"
>
<div
v-if=
"
ruleInfo
"
>
<div
v-if=
"
settleDistributeRuleEffect
"
>
<p
class=
"sub-title"
<p
class=
"sub-title"
:class=
"
{ 'sub-border': !
ruleInfo
.show }">
:class=
"
{ 'sub-border': !
settleDistributeRuleEffect
.show }">
<span
class=
"label"
>
<span
class=
"label"
>
<span>
{{
ruleInfo
.
formatEffectStartDate
}}
</span>
<span>
{{
settleDistributeRuleEffect
.
formatEffectStartDate
}}
</span>
<span
v-if=
"
ruleInfo
.formatEffectStartDate"
>
-
</span>
<span
v-if=
"
settleDistributeRuleEffect
.formatEffectStartDate"
>
-
</span>
<span
:class=
"
{ labelColor: !
ruleInfo
.formatEffectEndDate }">
{{
<span
:class=
"
{ labelColor: !
settleDistributeRuleEffect
.formatEffectEndDate }">
{{
ruleInfo
.
formatEffectStartDate
settleDistributeRuleEffect
.
formatEffectStartDate
?
ruleInfo
.
formatEffectEndDate
?
settleDistributeRuleEffect
.
formatEffectEndDate
?
ruleInfo
.
formatEffectEndDate
?
settleDistributeRuleEffect
.
formatEffectEndDate
:
"生效中"
:
"生效中"
:
"待生效"
:
"待生效"
}}
</span>
}}
</span>
</span>
</span>
<span
class=
"updatedInfo"
>
<span
class=
"updatedInfo"
>
操作人:
{{
ruleInfo
.
updatedBy
}}
操作时间:
操作人:
{{
settleDistributeRuleEffect
.
updatedBy
}}
操作时间:
{{
ruleInfo
.
formatUpdatedDate
}}
{{
settleDistributeRuleEffect
.
formatUpdatedDate
}}
</span>
</span>
</p>
</p>
</div>
</div>
...
@@ -60,7 +60,43 @@
...
@@ -60,7 +60,43 @@
class=
"nothingtips"
>
class=
"nothingtips"
>
<img
style=
"height: 109px; width: 109px"
<img
style=
"height: 109px; width: 109px"
src=
"../systemConfig/merchant/images/empty.png"
/>
src=
"../systemConfig/merchant/images/empty.png"
/>
<p
class=
"title"
>
暂无财务规则
</p>
<p
class=
"title"
>
暂无分账规则
</p>
<p
class=
"tips"
>
快去设置看看~
</p>
</div>
</div>
</div>
</div>
<div
class=
"fontD"
>
已应用对账规则:
</div>
<div>
<div
class=
"merchant-checkrecord"
>
<div
class=
"account-detail"
ref=
"accountDetail"
>
<div
v-if=
"reconciliationRuleEffect"
>
<p
class=
"sub-title"
:class=
"
{ 'sub-border': !reconciliationRuleEffect.show }">
<span
class=
"label"
>
<span>
{{
reconciliationRuleEffect
.
formatEffectStartDate
}}
</span>
<span
v-if=
"reconciliationRuleEffect.formatEffectStartDate"
>
-
</span>
<span
:class=
"
{ labelColor: !reconciliationRuleEffect.formatEffectEndDate }">
{{
reconciliationRuleEffect
.
formatEffectStartDate
?
reconciliationRuleEffect
.
formatEffectEndDate
?
reconciliationRuleEffect
.
formatEffectEndDate
:
"生效中"
:
"待生效"
}}
</span>
</span>
<span
class=
"updatedInfo"
>
操作人:
{{
reconciliationRuleEffect
.
updatedBy
}}
操作时间:
{{
reconciliationRuleEffect
.
formatUpdatedDate
}}
</span>
</p>
</div>
<div
v-else
class=
"nothingtips"
>
<img
style=
"height: 109px; width: 109px"
src=
"../systemConfig/merchant/images/empty.png"
/>
<p
class=
"title"
>
暂无对账规则
</p>
<p
class=
"tips"
>
快去设置看看~
</p>
<p
class=
"tips"
>
快去设置看看~
</p>
</div>
</div>
</div>
</div>
...
@@ -72,11 +108,11 @@
...
@@ -72,11 +108,11 @@
:inline=
"true"
>
:inline=
"true"
>
<el-form-item
class=
"d2-drawer-item"
<el-form-item
class=
"d2-drawer-item"
label=
"分账操作人:"
>
label=
"分账操作人:"
>
<span>
{{
$$
(
ruleInfo
,
'divisionOperBy'
)
}}
</span>
<span>
{{
$$
(
settleDistributeRuleEffect
,
'divisionOperBy'
)
}}
</span>
</el-form-item>
</el-form-item>
<el-form-item
class=
"d2-drawer-item"
<el-form-item
class=
"d2-drawer-item"
label=
"分账操作时间:"
>
label=
"分账操作时间:"
>
<span>
{{
$$
(
ruleInfo
,
'divisionOperDate'
)
}}
</span>
<span>
{{
$$
(
settleDistributeRuleEffect
,
'divisionOperDate'
)
}}
</span>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</d2-dialog>
</d2-dialog>
...
@@ -104,7 +140,9 @@ export default {
...
@@ -104,7 +140,9 @@ export default {
computed
:
{},
computed
:
{},
data
()
{
data
()
{
return
{
return
{
ruleInfo
:
null
ruleInfo
:
null
,
reconciliationRuleEffect
:
null
,
settleDistributeRuleEffect
:
null
}
}
},
},
created
()
{
created
()
{
...
@@ -122,17 +160,31 @@ export default {
...
@@ -122,17 +160,31 @@ export default {
// 获取分账记录
// 获取分账记录
getRuleInfo
()
{
getRuleInfo
()
{
getDivisionRecordByOrderCode
({
orderCode
:
this
.
recordInfo
.
orderCode
}).
then
(
res
=>
{
getDivisionRecordByOrderCode
({
orderCode
:
this
.
recordInfo
.
orderCode
}).
then
(
res
=>
{
this
.
ruleInfo
=
res
this
.
settleDistributeRuleEffect
=
res
.
settleDistributeRuleEffect
this
.
reconciliationRuleEffect
=
res
.
reconciliationRuleEffect
const
format
=
"YYYY/MM/DD HH:mm"
const
format
=
"YYYY/MM/DD HH:mm"
this
.
ruleInfo
.
formatEffectEndDate
=
this
.
ruleInfo
.
effectEndDate
if
(
this
.
settleDistributeRuleEffect
)
{
?
dayjs
(
this
.
ruleInfo
.
effectEndDate
).
format
(
format
)
this
.
settleDistributeRuleEffect
.
formatEffectEndDate
=
this
.
settleDistributeRuleEffect
.
effectEndDate
?
dayjs
(
this
.
settleDistributeRuleEffect
.
effectEndDate
).
format
(
format
)
:
""
:
""
this
.
ruleInfo
.
formatEffectStartDate
=
this
.
ruleInfo
.
effectStartDate
this
.
settleDistributeRuleEffect
.
formatEffectStartDate
=
this
.
settleDistributeRuleEffect
.
effectStartDate
?
dayjs
(
this
.
ruleInfo
.
effectStartDate
).
format
(
format
)
?
dayjs
(
this
.
settleDistributeRuleEffect
.
effectStartDate
).
format
(
format
)
:
""
:
""
this
.
ruleInfo
.
formatUpdatedDate
=
dayjs
(
this
.
ruleInfo
.
updatedDate
).
format
(
format
)
this
.
settleDistributeRuleEffect
.
formatUpdatedDate
=
dayjs
(
this
.
settleDistributeRuleEffect
.
updatedDate
).
format
(
format
)
this
.
ruleInfo
.
divisionOperDate
=
this
.
ruleInfo
.
divisionOperDate
?
Util
.
dateFormate
(
this
.
ruleInfo
.
divisionOperDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
this
.
settleDistributeRuleEffect
.
divisionOperDate
=
this
.
settleDistributeRuleEffect
.
divisionOperDate
?
Util
.
dateFormate
(
this
.
settleDistributeRuleEffect
.
divisionOperDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
this
.
ruleInfo
.
show
=
false
this
.
settleDistributeRuleEffect
.
show
=
false
}
if
(
this
.
reconciliationRuleEffect
)
{
this
.
reconciliationRuleEffect
.
formatEffectEndDate
=
this
.
reconciliationRuleEffect
.
effectEndDate
?
dayjs
(
this
.
reconciliationRuleEffect
.
effectEndDate
).
format
(
format
)
:
""
this
.
reconciliationRuleEffect
.
formatEffectStartDate
=
this
.
reconciliationRuleEffect
.
effectStartDate
?
dayjs
(
this
.
reconciliationRuleEffect
.
effectStartDate
).
format
(
format
)
:
""
this
.
reconciliationRuleEffect
.
formatUpdatedDate
=
dayjs
(
this
.
reconciliationRuleEffect
.
updatedDate
).
format
(
format
)
this
.
reconciliationRuleEffect
.
divisionOperDate
=
this
.
reconciliationRuleEffect
.
divisionOperDate
?
Util
.
dateFormate
(
this
.
reconciliationRuleEffect
.
divisionOperDate
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
this
.
reconciliationRuleEffect
.
show
=
false
}
})
})
},
},
...
...
src/views/residentManage/growUpGrade/components/editDialog.vue
0 → 100644
View file @
d3f35dc
<!-- 编辑成长等级 -->
<
template
>
<baseDialog
:dialog-config=
"dialogConfig"
:is-show
.
sync=
"visible"
class=
"accountDailog"
@
handleClick=
"handleAddConfirm"
>
<div
class=
"add-dialog"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"addFormRef"
label-width=
"150px"
default-width=
"400px"
:form-ref=
"editChildRef"
:form-obj=
"infoForm"
:form-data=
"editFormData"
:form-rules=
"formRules"
>
<template
slot=
"ratingItemHtml"
slot-scope=
"scope"
>
<div
v-if=
"infoForm.levelType == 2"
>
<el-col
:span=
"11"
>
<el-form-item
prop=
"ratingItem_parent"
>
<el-input
v-model=
"infoForm.pointsCategoryName"
disabled
/>
</el-form-item>
</el-col>
<el-col
:span=
"11"
>
<el-form-item
prop=
"ratingItem_child"
>
<el-input
v-model=
"infoForm.pointsTypeName"
disabled
/>
</el-form-item>
</el-col>
</div>
<div
v-else
>
<el-form-item
prop=
"ratingProjectType"
>
<el-input
v-model=
"infoForm.ratingProjectType"
disabled
/>
</el-form-item>
</div>
</
template
>
<
template
slot=
"ratingRankHtml"
slot-scope=
"scope"
>
<el-col
:span=
"11"
>
<el-form-item
prop=
"highRanking"
>
<el-input-number
v-model=
"infoForm.highRanking"
:min=
"1"
:max=
"9999999999"
></el-input-number>
</el-form-item>
</el-col>
<el-col
class=
"line"
:span=
"2"
>
-
</el-col>
<el-col
:span=
"11"
>
<el-form-item
prop=
"minRanking"
>
<el-input-number
v-model=
"infoForm.minRanking"
:min=
"1"
:max=
"9999999999"
></el-input-number>
</el-form-item>
</el-col>
</
template
>
<div
slot=
"pointValueHtml"
slot-scope=
"scope"
>
<el-switch
v-model=
"infoForm.openState"
>
</el-switch>
</div>
</glsx-combi-form>
</div>
</baseDialog>
</template>
<
script
>
import
{
levelTypeOpt
}
from
'@/common/constants.js'
import
{
deepClone
}
from
'@/common/util'
import
{
levelConfigSaveOrUpdate
}
from
'@api/inStorePoints'
export
default
{
name
:
'AddDialog'
,
data
()
{
return
{
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
infoForm
:
{
},
oldVal
:
{
transferTotalAmount
:
''
},
dialogConfig
:
{
title
:
'编辑积分配置'
,
width
:
'720px'
},
editChildRef
:
'editChildRef'
,
formRules
:
{
highRanking
:
[{
required
:
true
,
message
:
'请输入最高排名'
,
trigger
:
'change'
}],
minRanking
:
[
{
required
:
true
,
message
:
'请输入最低排名'
,
trigger
:
'change'
},
{
validator
:
this
.
checkMinum
,
trigger
:
'change'
}]
// remark: [{ required: true, message: '请填写备注', trigger: 'blur' }]
},
editFormData
:
[{
label
:
'等级类型'
,
name
:
'levelTypeShow'
,
type
:
'input'
,
isDisabled
:
true
},
{
label
:
'等级名称'
,
name
:
'levelName'
,
type
:
'input'
,
isDisabled
:
true
},
{
label
:
'评级项目'
,
name
:
'ratingItem'
,
addHtml
:
'ratingItemHtml'
},
{
label
:
'评级排名'
,
name
:
'ratingRank'
,
addHtml
:
'ratingRankHtml'
},
{
label
:
'评级周期'
,
name
:
'ratingCycleShow'
,
type
:
'input'
,
isDisabled
:
true
},
{
label
:
'是否启用'
,
name
:
'pointValue'
,
addHtml
:
'pointValueHtml'
}
// {
// label: '兑换介绍',
// name: 'remark',
// type: 'input',
// maxlength: 20,
// inputType: 'textarea',
// showLimit: true,
// rows: 3
// }
],
baseData
:
{
levelTypeOpt
:
deepClone
(
levelTypeOpt
)
},
uploadFileList
:
[]
}
},
props
:
{
editVisible
:
{
type
:
Boolean
,
default
:
false
},
paramsObj
:
{
type
:
Object
,
default
:
{}
}
},
watch
:
{
},
computed
:
{
visible
:
{
get
()
{
return
this
.
editVisible
},
set
(
newVal
)
{
this
.
$emit
(
'dialogClose'
,
{
flag
:
newVal
,
attrName
:
'editVisible'
})
}
}
// ...mapState({
// dowloadList: (state) => state.d2admin.user.dowloadList
// })
},
mounted
()
{
this
.
infoForm
=
deepClone
(
this
.
paramsObj
)
this
.
infoForm
.
levelTypeShow
=
this
.
baseData
.
levelTypeOpt
.
find
(
item
=>
item
.
confId
===
this
.
infoForm
.
levelType
).
confValue
||
''
this
.
infoForm
.
ratingCycleShow
=
this
.
infoForm
.
ratingCycle
?
this
.
infoForm
.
ratingCycle
+
'个月'
:
''
console
.
log
(
this
.
infoForm
)
},
methods
:
{
// ...mapActions('d2admin/user', ['actionSetDownloadList']),
checkMinum
(
rule
,
value
,
callback
)
{
const
form
=
this
.
infoForm
console
.
log
(
'form'
,
form
)
if
(
form
.
highRanking
&&
form
.
minRanking
&&
(
form
.
highRanking
>
form
.
minRanking
))
{
callback
(
new
Error
(
'排名设置有误'
))
return
false
}
callback
()
},
getOptionsList
(
formName
,
hasAll
=
true
,
refreshSigle
)
{
if
(
refreshSigle
)
{
var
item
=
this
[
formName
].
find
(
k
=>
k
.
name
==
refreshSigle
)
var
index
=
this
[
formName
].
findIndex
(
k
=>
k
.
name
==
refreshSigle
)
this
.
$set
(
this
[
formName
][
index
],
'optionList'
,
deepClone
(
this
.
baseData
[
item
.
optionsName
]))
if
(
hasAll
&&
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
[
formName
][
index
].
optionLabel
]
!==
'全部'
)
{
const
temp
=
{}
temp
[
this
[
formName
][
index
].
optionId
]
=
''
temp
[
this
[
formName
][
index
].
optionLabel
]
=
'全部'
this
[
formName
][
index
].
optionList
.
unshift
(
temp
)
}
}
else
{
this
[
formName
].
forEach
((
item
,
index
)
=>
{
if
(
item
.
type
===
'select'
&&
this
.
baseData
[
item
.
optionsName
].
length
)
{
this
.
$set
(
this
[
formName
][
index
],
'optionList'
,
deepClone
(
this
.
baseData
[
item
.
optionsName
]))
if
(
hasAll
&&
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
[
formName
][
index
].
optionLabel
]
!==
'全部'
)
{
const
temp
=
{}
temp
[
this
[
formName
][
index
].
optionId
]
=
''
temp
[
this
[
formName
][
index
].
optionLabel
]
=
'全部'
this
[
formName
][
index
].
optionList
.
unshift
(
temp
)
}
}
})
}
},
handleAddConfirm
()
{
this
.
$refs
.
addFormRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
if
(
valid
)
{
var
infoForm
=
deepClone
(
this
.
infoForm
)
var
params
=
{}
params
.
id
=
infoForm
.
id
params
.
highRanking
=
infoForm
.
highRanking
params
.
minRanking
=
infoForm
.
minRanking
params
.
openState
=
infoForm
.
openState
levelConfigSaveOrUpdate
(
params
).
then
(
res
=>
{
this
.
notice
.
okTips
(
'操作成功'
)
this
.
visible
=
true
})
}
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.add-dialog
{
margin
:
20px
0
;
.reject-input
{
::v-deep
.el-textarea__inner
{
height
:
70px
;
}
}
.el-textarea
.el-input__count
{
right
:
90px
;
bottom
:
-10px
;
font-size
:
12px
;
color
:
#999999
;
}
.tips
{
color
:
#999999
;
}
}
</
style
>
src/views/residentManage/growUpGrade/indexControl.vue
0 → 100644
View file @
d3f35dc
<!-- 员工预警管理 -->
<
template
>
<div
class=
"staffWarn"
>
<div
class=
"header"
slot=
"header"
>
<el-tabs
v-model=
"activeName"
>
<el-tab-pane
label=
"成长等级记录"
name=
"record"
/>
<el-tab-pane
label=
"成长等级管理"
name=
"manage"
/>
</el-tabs>
<div>
<record
v-if=
"activeName === 'record'"
/>
<manage
v-if=
"activeName === 'manage'"
/>
</div>
</div>
</div>
</
template
>
<
script
>
import
record
from
'./record'
import
manage
from
'./manage'
// import { deepClone } from '@/common/util'
export
default
{
name
:
'StaffIndex'
,
data
()
{
return
{
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
activeName
:
'record'
,
recordInfo
:
{}
}
},
components
:
{
record
,
manage
},
mounted
()
{
},
methods
:
{
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.staffWarn
{
padding
:
0
20px
;
.header
{
::v-deep
.el-tabs__header
{
margin
:
0
;
padding
:
0
20px
;
}
}
}
</
style
>
src/views/residentManage/growUpGrade/manage.vue
0 → 100644
View file @
d3f35dc
<!-- 成长等级管理 -->
<
template
>
<d2-container
class=
"points-config"
>
<div
class=
"header"
slot=
"header"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
:form-data=
"showFormData"
label-width=
"100px"
/>
<div
class=
"up-btns"
>
<el-button
:id=
"tableParams.btnId"
size=
"small"
type=
"primary"
>
查询
</el-button>
<el-button
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
</div>
</div>
<div
class=
"d2-container-content"
>
<d2-table-header>
</d2-table-header>
<d2-table
ref=
"detailListTable"
:search-form=
"searchForm"
:table-params=
"tableParams"
:get-list-api=
"getListApi"
:before-search-fn=
"beforeSearchFn"
>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
<!-- 编辑 -->
<span
style=
"margin-right: 10px;"
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9121404']"
/>
</span>
<!-- 启用/停用 -->
<span
style=
"margin-right: 10px;"
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9121405']"
/>
</span>
</div>
</d2-table>
</div>
<!-- 编辑积分配置 -->
<edit-dialog
:edit-visible=
"editVisible"
v-if=
"editVisible"
:params-obj=
"recordInfo"
@
dialogClose=
"editDialogClose"
/>
</d2-container>
</
template
>
<
script
>
import
{
mapActions
,
mapState
}
from
'vuex'
import
{
Util
,
deepClone
}
from
'@/common/util'
import
editDialog
from
'./components/editDialog'
import
{
levelConfigPage
,
levelConfigSaveOrUpdate
}
from
'@api/inStorePoints'
import
{
levelTypeOpt
,
openStateOpt
}
from
'@/common/constants.js'
export
default
{
name
:
'Manage'
,
props
:
{
},
data
()
{
return
{
searchForm
:
{
levelName
:
''
,
staffPhone
:
''
,
openState
:
''
},
showFormData
:
[{
label
:
'等级名称'
,
name
:
'levelName'
,
type
:
'input'
,
maxlength
:
'20'
,
isClear
:
true
},
{
label
:
'等级类型'
,
name
:
'levelType'
,
type
:
'select'
,
isClear
:
true
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confValue'
,
optionsName
:
'levelTypeOpt'
},
{
label
:
'状态'
,
name
:
'openState'
,
type
:
'select'
,
isClear
:
true
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confValue'
,
optionsName
:
'openStateOpt'
}],
getListApi
:
levelConfigPage
,
// 表格参数
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'list'
,
// tableOption: true,
tableOption
:
{
width
:
'150px'
},
tableColumns
:
[
{
label
:
'等级名称'
,
prop
:
'levelName'
},
{
label
:
'等级类型'
,
prop
:
'levelType'
,
width
:
'150'
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
levelType
?
this
.
baseData
.
levelTypeOpt
.
find
(
item
=>
item
.
confId
===
cellValue
.
levelType
).
confValue
:
'--'
}
},
{
label
:
'评级项目'
,
prop
:
"ratingProjectType"
},
{
label
:
'最高排名'
,
prop
:
'highRanking'
,
width
:
'150'
},
{
label
:
'最低排名'
,
prop
:
'minRanking'
,
width
:
'150'
},
{
label
:
'等级结算周期'
,
prop
:
'ratingCycle'
,
width
:
'150'
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
ratingCycle
?
cellValue
.
ratingCycle
+
'个月'
:
'--'
}
},
{
label
:
'状态'
,
prop
:
'openState'
,
width
:
'150'
,
formatter
:
(
cellValue
)
=>
{
return
(
cellValue
.
openState
===
true
||
cellValue
.
openState
===
false
)
?
this
.
baseData
.
openStateOpt
.
find
(
item
=>
item
.
confId
===
cellValue
.
openState
).
confValue
:
'--'
},
className
:
(
cellValue
)
=>
{
return
{
true
:
'greenSpot'
,
false
:
'redSpot'
}[
cellValue
.
openState
]
}
},
{
label
:
'最后更新时间'
,
prop
:
'updatedDate'
,
width
:
'150'
,
formatter
:
(
cellValue
)
=>
{
return
Util
.
dateFormate
(
cellValue
.
updatedDate
,
'YYYY-MM-DD HH:mm:ss'
)
}
}
]
},
baseData
:
{
levelTypeOpt
:
deepClone
(
levelTypeOpt
),
openStateOpt
:
deepClone
(
openStateOpt
)
},
recordInfo
:
{},
editVisible
:
false
}
},
components
:
{
editDialog
},
computed
:
{
...
mapState
({
dowloadList
:
(
state
)
=>
state
.
d2admin
.
user
.
dowloadList
})
},
mounted
()
{
this
.
getBaseData
()
},
methods
:
{
...
mapActions
({
get
:
'd2admin/base/get'
,
close
:
'd2admin/page/close'
}),
...
mapActions
(
'd2admin/user'
,
[
'actionSetDownloadList'
]),
async
getBaseData
()
{
this
.
getOptionsList
()
},
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
console
.
log
(
'this.searchForm.warnCycle'
,
this
.
searchForm
.
warnCycle
)
if
(
this
.
searchForm
.
warnCycle
)
{
this
.
searchForm
.
warningStartDate
=
Util
.
dateFormate
(
this
.
searchForm
.
warnCycle
[
0
],
'YYYY-MM-DD'
)
this
.
searchForm
.
warningEndDate
=
Util
.
dateFormate
(
this
.
searchForm
.
warnCycle
[
1
],
'YYYY-MM-DD'
)
// delete this.searchForm.warnCycle
}
else
{
delete
this
.
searchForm
.
warningStartDate
delete
this
.
searchForm
.
warningEndDate
}
if
(
this
.
searchForm
.
createTime
)
{
this
.
searchForm
.
startDate
=
Util
.
dateFormate
(
this
.
searchForm
.
createTime
[
0
],
'YYYY-MM-DD'
)
this
.
searchForm
.
endDate
=
Util
.
dateFormate
(
this
.
searchForm
.
createTime
[
1
],
'YYYY-MM-DD'
)
// delete this.searchForm.createTime
}
else
{
delete
this
.
searchForm
.
startDate
delete
this
.
searchForm
.
endDate
}
resolve
()
})
},
keyDowmGetList
()
{
this
.
$refs
.
detailListTable
.
refreshTable
()
},
handleReset
()
{
this
.
searchForm
=
{
levelName
:
''
,
staffPhone
:
''
,
openState
:
''
}
this
.
$refs
.
detailListTable
.
refreshTable
()
},
getOptionsList
()
{
this
.
showFormData
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
type
===
'select'
)
{
if
(
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
.
showFormData
[
index
].
optionLabel
]
!==
'全部'
)
{
const
temp
=
{}
temp
[
this
.
showFormData
[
index
].
optionId
]
=
''
temp
[
this
.
showFormData
[
index
].
optionLabel
]
=
'全部'
this
.
baseData
[
item
.
optionsName
].
unshift
(
temp
)
}
this
.
$set
(
this
.
showFormData
[
index
],
'optionList'
,
this
.
baseData
[
item
.
optionsName
]
)
}
})
},
handleEdit
(
row
)
{
this
.
recordInfo
=
row
this
.
editVisible
=
!
this
.
editVisible
},
editDialogClose
(
flag
)
{
this
.
editVisible
=
!
this
.
editVisible
if
(
flag
)
{
this
.
$refs
.
detailListTable
.
refreshTable
()
}
},
handleUpOrDown
(
row
)
{
var
html
=
row
.
openState
==
false
?
'是否启用该等级?'
:
'是否停用该等级?'
this
.
$confirm
(
html
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
const
selfStatus
=
!
row
.
openState
levelConfigSaveOrUpdate
({
id
:
row
.
id
,
openState
:
selfStatus
}).
then
(
res
=>
{
this
.
notice
.
okTips
()
this
.
$refs
.
detailListTable
.
refreshTable
()
})
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.points-config
{
margin-top
:
40px
;
.m-l-md
{
margin-left
:
20px
;
}
}
</
style
>
src/views/residentManage/growUpGrade/record.vue
0 → 100644
View file @
d3f35dc
<!-- 成长等级记录 -->
<
template
>
<d2-container
class=
"points-record"
>
<div
class=
"header"
slot=
"header"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
:form-data=
"showFormData"
label-width=
"100px"
/>
<div
class=
"up-btns"
>
<el-button
:id=
"tableParams.btnId"
size=
"small"
type=
"primary"
>
查询
</el-button>
<el-button
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
</div>
</div>
<div
class=
"d2-container-content"
>
<d2-table-header>
<auth-button
category=
"Button"
:show-btn-ids=
"['9121401']"
/>
</d2-table-header>
<d2-table
ref=
"detailListTable"
:search-form=
"searchForm"
:table-params=
"tableParams"
:get-list-api=
"getListApi"
:before-search-fn=
"beforeSearchFn"
>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
<!-- 删除 -->
<span>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9121402']"
/>
</span>
</div>
</d2-table>
</div>
</d2-container></
template
>
<
script
>
import
{
mapActions
,
mapState
}
from
'vuex'
import
{
Util
,
deepClone
,
downLoadFile
}
from
'@/common/util'
import
{
levelManagePage
,
levelManageDelete
,
levelManageExport
}
from
'@api/inStorePoints'
import
{
levelTypeOpt
,
levelNameOpt
}
from
'@/common/constants.js'
export
default
{
name
:
'Record'
,
props
:
{
},
data
()
{
return
{
searchForm
:
{
staffName
:
''
,
staffPhone
:
''
,
levelType
:
''
,
levelName
:
''
,
grantTime
:
''
},
showFormData
:
[{
label
:
'员工姓名'
,
name
:
'staffName'
,
type
:
'input'
,
maxlength
:
'20'
,
isClear
:
true
},
{
label
:
'电话号码'
,
name
:
'staffPhone'
,
type
:
'input'
,
inputType
:
"number"
,
maxlength
:
'11'
,
isClear
:
true
},
{
label
:
'等级类型'
,
name
:
'levelType'
,
type
:
'select'
,
isClear
:
true
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confValue'
,
optionsName
:
'levelTypeOpt'
,
changeAttr
:
(
value
,
targetItem
)
=>
{
this
.
baseData
.
levelNameOpt
=
[]
const
nameOpt
=
deepClone
(
levelNameOpt
)
if
(
value
)
{
if
(
value
==
1
)
{
this
.
baseData
.
levelNameOpt
=
nameOpt
.
slice
(
0
,
4
)
}
else
if
(
value
==
2
)
{
this
.
baseData
.
levelNameOpt
=
nameOpt
.
slice
(
4
,
8
)
}
}
this
.
searchForm
.
levelName
=
""
this
.
getOptionsList
()
}
},
{
label
:
'等级名称'
,
name
:
'levelName'
,
type
:
'select'
,
isClear
:
true
,
noDataText
:
"请先选择等级类型"
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confValue'
,
optionsName
:
'levelNameOpt'
},
{
label
:
"发放时间"
,
name
:
"grantTime"
,
type
:
"datePicker"
,
isClear
:
true
,
pickerOptions
:
"rangePickerOptions"
}],
getListApi
:
levelManagePage
,
// 表格参数
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'list'
,
tableOption
:
{
width
:
'100px'
},
tableColumns
:
[
{
label
:
'姓名'
,
prop
:
'staffName'
},
{
label
:
'电话号码'
,
prop
:
'staffPhone'
,
width
:
'150'
},
{
label
:
'月份'
,
prop
:
"month"
,
width
:
'150'
,
formatter
:
(
cellValue
)
=>
{
return
Util
.
dateFormate
(
cellValue
.
month
,
'YYYY年MM月'
)
}
},
{
label
:
'等级类型'
,
prop
:
'levelType'
,
width
:
'150'
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
levelType
?
this
.
baseData
.
levelTypeOpt
.
find
(
item
=>
item
.
confId
===
cellValue
.
levelType
).
confValue
:
'--'
}
},
{
label
:
'等级名称'
,
prop
:
'levelName'
},
{
label
:
'发放时间'
,
prop
:
'distributionTime'
,
width
:
'150'
,
formatter
:
(
cellValue
)
=>
{
return
Util
.
dateFormate
(
cellValue
.
distributionTime
,
'YYYY-MM-DD HH:mm:ss'
)
}
}
]
},
baseData
:
{
levelTypeOpt
:
deepClone
(
levelTypeOpt
),
levelNameOpt
:
[]
}
}
},
components
:
{
},
computed
:
{
...
mapState
({
dowloadList
:
(
state
)
=>
state
.
d2admin
.
user
.
dowloadList
})
},
mounted
()
{
this
.
getBaseData
()
},
methods
:
{
...
mapActions
({
get
:
'd2admin/base/get'
,
close
:
'd2admin/page/close'
}),
...
mapActions
(
'd2admin/user'
,
[
'actionSetDownloadList'
]),
async
getBaseData
()
{
this
.
getOptionsList
()
},
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
// console.log('this.searchForm.grantTime', this.searchForm.grantTime)
if
(
this
.
searchForm
.
grantTime
)
{
this
.
searchForm
.
grantTimeBegin
=
Util
.
dateFormate
(
this
.
searchForm
.
grantTime
[
0
],
'YYYY-MM-DD HH:mm:ss'
)
this
.
searchForm
.
grantTimeEnd
=
Util
.
dateFormate
(
this
.
searchForm
.
grantTime
[
1
],
'YYYY-MM-DD'
)
+
' 23:59:59'
// delete this.searchForm.grantTime
}
else
{
delete
this
.
searchForm
.
grantTimeBegin
delete
this
.
searchForm
.
grantTimeEnd
}
resolve
()
})
},
keyDowmGetList
()
{
this
.
$refs
.
detailListTable
.
refreshTable
()
},
handleReset
()
{
this
.
searchForm
=
{
staffName
:
''
,
staffPhone
:
''
,
levelType
:
''
,
levelName
:
''
,
grantTime
:
''
}
this
.
$refs
.
detailListTable
.
refreshTable
()
},
getOptionsList
()
{
this
.
showFormData
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
type
===
'select'
)
{
if
(
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
.
showFormData
[
index
].
optionLabel
]
!==
'全部'
)
{
const
temp
=
{}
temp
[
this
.
showFormData
[
index
].
optionId
]
=
''
temp
[
this
.
showFormData
[
index
].
optionLabel
]
=
'全部'
this
.
baseData
[
item
.
optionsName
].
unshift
(
temp
)
}
this
.
$set
(
this
.
showFormData
[
index
],
'optionList'
,
this
.
baseData
[
item
.
optionsName
]
)
}
})
},
handleExport
()
{
var
params
=
this
.
searchForm
levelManageExport
(
params
).
then
((
res
)
=>
{
res
&&
downLoadFile
(
res
)
})
},
handleDelete
(
row
)
{
var
html
=
'是否确认删除该条记录?'
this
.
$confirm
(
html
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
levelManageDelete
({
id
:
row
.
id
}).
then
(
res
=>
{
this
.
notice
.
okTips
()
this
.
$refs
.
detailListTable
.
refreshTable
()
})
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.points-record
{
margin-top
:
40px
;
.m-l-md
{
margin-left
:
20px
;
}
}
</
style
>
src/views/residentManage/inStorePoints/components/addDialog.vue
0 → 100644
View file @
d3f35dc
<!-- 新增积分记录 -->
<
template
>
<baseDialog
:dialog-config=
"dialogConfig"
:is-show
.
sync=
"visible"
class=
"accountDailog"
@
handleClick=
"handleAddConfirm"
>
<div
class=
"add-dialog"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"addFormRef"
label-width=
"150px"
default-width=
"400px"
:form-ref=
"editChildRef"
:form-obj=
"infoForm"
:form-data=
"editFormData"
:form-rules=
"formRules"
>
<div
slot=
"pointValueHtml"
slot-scope=
"scope"
>
<el-input-number
v-model=
"infoForm.pointValue"
placeholder=
"输入数值"
:min=
"-100"
:max=
"100"
></el-input-number>
</div>
</glsx-combi-form>
</div>
</baseDialog>
</
template
>
<
script
>
import
{
pointRule
,
pointAdd
}
from
'@api/inStorePoints'
import
{
Util
,
deepClone
}
from
'@/common/util'
export
default
{
name
:
'AddDialog'
,
data
()
{
function
checkPhone
(
rule
,
value
,
callback
)
{
if
(
!
Util
.
checkPhone
(
value
))
{
callback
(
new
Error
(
'请输入正确的手机号码'
))
return
false
}
callback
()
}
function
checkPointValue
(
rule
,
value
,
callback
)
{
if
(
value
==
0
)
{
callback
(
new
Error
(
'积分值不能为0'
))
return
false
}
callback
()
}
return
{
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
infoForm
:
{
staffName
:
''
,
staffPhone
:
''
,
pointClassification
:
''
,
pointType
:
''
,
pointDescription
:
''
,
pointValue
:
1
},
oldVal
:
{
transferTotalAmount
:
''
},
dialogConfig
:
{
title
:
'新增记录'
,
width
:
'720px'
},
editChildRef
:
'editChildRef'
,
formRules
:
{
staffName
:
[{
required
:
true
,
message
:
'请填写员工姓名'
,
trigger
:
'blur'
}],
staffPhone
:
[{
required
:
true
,
message
:
'请填写电话号码'
,
trigger
:
'blur'
},
{
validator
:
checkPhone
,
trigger
:
'blur'
}],
pointClassification
:
[{
required
:
true
,
message
:
'请选择积分分类'
,
trigger
:
'blur'
}],
pointType
:
[{
required
:
true
,
message
:
'请选择积分类型'
,
trigger
:
'blur'
}],
pointDescription
:
[{
required
:
true
,
message
:
'请填写备注'
,
trigger
:
'blur'
}],
pointValue
:
[{
required
:
true
,
message
:
'请填写积分值'
,
trigger
:
'change'
},
{
validator
:
checkPointValue
,
trigger
:
'change'
}]
},
editFormData
:
[{
label
:
'员工姓名'
,
name
:
'staffName'
,
type
:
'input'
,
maxlength
:
8
,
showLimit
:
true
,
isClear
:
true
},
{
label
:
"电话号码"
,
name
:
"staffPhone"
,
type
:
"input"
,
inputType
:
"number"
,
isClear
:
true
,
maxlength
:
"11"
},
{
label
:
'积分分类'
,
name
:
'pointClassification'
,
type
:
'select'
,
// isClear: true,
optionList
:
[],
optionId
:
'categoryCode'
,
optionLabel
:
'categoryName'
,
optionsName
:
'pointClassificationOpt'
,
changeAttr
:
(
value
,
targetItem
)
=>
{
this
.
baseData
.
pointTypeOpt
=
[]
if
(
value
)
{
this
.
baseData
.
pointTypeOpt
=
this
.
baseData
.
pointClassificationOpt
.
find
(
item
=>
item
.
categoryCode
==
value
).
typeList
}
this
.
infoForm
.
pointType
=
""
this
.
getOptionsList
(
'editFormData'
,
false
)
}
},
{
label
:
'积分类型'
,
name
:
'pointType'
,
type
:
'select'
,
isClear
:
true
,
noDataText
:
"请先选择积分分类"
,
optionList
:
[],
optionId
:
'typeCode'
,
optionLabel
:
'typeName'
,
optionsName
:
'pointTypeOpt'
},
{
label
:
'积分描述'
,
name
:
'pointDescription'
,
type
:
'input'
,
maxlength
:
50
,
inputType
:
'textarea'
,
showLimit
:
true
,
rows
:
3
},
{
label
:
'积分值'
,
name
:
'pointValue'
,
addHtml
:
'pointValueHtml'
// rules: [{ required: true, message: '请输入金额,支持输入0~999999的数字,支持小数点后2位', trigger: 'change' }]
}],
baseData
:
{
pointClassificationOpt
:
[],
pointTypeOpt
:
[]
},
uploadFileList
:
[]
}
},
props
:
{
addVisible
:
{
type
:
Boolean
,
default
:
false
}
},
watch
:
{
},
computed
:
{
visible
:
{
get
()
{
return
this
.
addVisible
},
set
(
newVal
)
{
this
.
$emit
(
'dialogClose'
,
{
flag
:
newVal
,
attrName
:
'addVisible'
})
}
}
},
mounted
()
{
this
.
pointRule
()
},
methods
:
{
getOptionsList
(
formName
,
hasAll
=
true
,
refreshSigle
)
{
if
(
refreshSigle
)
{
var
item
=
this
[
formName
].
find
(
k
=>
k
.
name
==
refreshSigle
)
var
index
=
this
[
formName
].
findIndex
(
k
=>
k
.
name
==
refreshSigle
)
this
.
$set
(
this
[
formName
][
index
],
'optionList'
,
deepClone
(
this
.
baseData
[
item
.
optionsName
]))
if
(
hasAll
&&
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
[
formName
][
index
].
optionLabel
]
!==
'全部'
)
{
const
temp
=
{}
temp
[
this
[
formName
][
index
].
optionId
]
=
''
temp
[
this
[
formName
][
index
].
optionLabel
]
=
'全部'
this
[
formName
][
index
].
optionList
.
unshift
(
temp
)
}
}
else
{
this
[
formName
].
forEach
((
item
,
index
)
=>
{
if
(
item
.
type
===
'select'
&&
this
.
baseData
[
item
.
optionsName
].
length
)
{
this
.
$set
(
this
[
formName
][
index
],
'optionList'
,
deepClone
(
this
.
baseData
[
item
.
optionsName
]))
if
(
hasAll
&&
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
[
formName
][
index
].
optionLabel
]
!==
'全部'
)
{
const
temp
=
{}
temp
[
this
[
formName
][
index
].
optionId
]
=
''
temp
[
this
[
formName
][
index
].
optionLabel
]
=
'全部'
this
[
formName
][
index
].
optionList
.
unshift
(
temp
)
}
}
})
}
},
pointRule
()
{
pointRule
({}).
then
((
res
)
=>
{
this
.
baseData
.
pointClassificationOpt
=
res
this
.
getOptionsList
(
'editFormData'
,
false
)
})
},
handleAddConfirm
()
{
this
.
$refs
.
addFormRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
if
(
valid
)
{
var
params
=
deepClone
(
this
.
infoForm
)
pointAdd
(
params
).
then
(
res
=>
{
this
.
notice
.
okTips
(
'操作成功'
)
this
.
visible
=
true
})
}
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.add-dialog
{
margin
:
20px
0
;
.reject-input
{
::v-deep
.el-textarea__inner
{
height
:
70px
;
}
}
.el-textarea
.el-input__count
{
right
:
90px
;
bottom
:
-10px
;
font-size
:
12px
;
color
:
#999999
;
}
.tips
{
color
:
#999999
;
}
}
</
style
>
src/views/residentManage/inStorePoints/components/editDialog.vue
0 → 100644
View file @
d3f35dc
<!-- 编辑积分配置 -->
<
template
>
<baseDialog
:dialog-config=
"dialogConfig"
:is-show
.
sync=
"visible"
class=
"accountDailog"
@
handleClick=
"handleAddConfirm"
>
<div
class=
"add-dialog"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"addFormRef"
label-width=
"150px"
default-width=
"400px"
:form-ref=
"editChildRef"
:form-obj=
"infoForm"
:form-data=
"editFormData"
:form-rules=
"formRules"
>
<div
slot=
"pointValueHtml"
slot-scope=
"scope"
>
<el-input-number
v-model=
"infoForm.pointsValue"
placeholder=
"输入数值"
:min=
"-100"
:max=
"100"
></el-input-number>
</div>
</glsx-combi-form>
</div>
</baseDialog>
</
template
>
<
script
>
import
{
updateStorePointsConfiguration
}
from
'@api/inStorePoints'
import
{
deepClone
}
from
'@/common/util'
export
default
{
name
:
'EditDialog'
,
data
()
{
function
checkPointValue
(
rule
,
value
,
callback
)
{
if
(
value
==
0
)
{
callback
(
new
Error
(
'积分值不能为0'
))
return
false
}
callback
()
}
return
{
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
infoForm
:
{
id
:
''
,
categoryName
:
''
,
typeName
:
''
,
description
:
''
,
ruleDescription
:
''
,
pointsValue
:
1
},
dialogConfig
:
{
title
:
'编辑积分配置'
,
width
:
'720px'
},
editChildRef
:
'editChildRef'
,
formRules
:
{
ruleDescription
:
[{
required
:
true
,
message
:
'请填写规则说明'
,
trigger
:
'blur'
}],
pointsValue
:
[{
required
:
true
,
message
:
'请填写积分值'
,
trigger
:
'change'
},
{
validator
:
checkPointValue
,
trigger
:
'change'
}]
},
editFormData
:
[{
label
:
'积分分类'
,
name
:
'categoryName'
,
type
:
'input'
,
isDisabled
:
true
},
{
label
:
'积分类型'
,
name
:
'typeName'
,
type
:
'input'
,
isDisabled
:
true
},
{
label
:
'积分描述'
,
name
:
'description'
,
type
:
'input'
,
isDisabled
:
true
},
{
label
:
'规则说明'
,
name
:
'ruleDescription'
,
type
:
'input'
,
maxlength
:
100
,
inputType
:
'textarea'
,
showLimit
:
true
,
rows
:
3
},
{
label
:
'积分值'
,
name
:
'pointsValue'
,
addHtml
:
'pointValueHtml'
}],
baseData
:
{
}
}
},
props
:
{
editVisible
:
{
type
:
Boolean
,
default
:
false
},
paramsObj
:
{
type
:
Object
,
default
:
{}
}
},
watch
:
{
},
computed
:
{
visible
:
{
get
()
{
return
this
.
editVisible
},
set
(
newVal
)
{
this
.
$emit
(
'dialogClose'
,
{
flag
:
newVal
,
attrName
:
'editVisible'
})
}
}
},
mounted
()
{
this
.
infoForm
=
deepClone
(
this
.
paramsObj
)
console
.
log
(
this
.
infoForm
)
},
methods
:
{
handleAddConfirm
()
{
this
.
$refs
.
addFormRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
if
(
valid
)
{
var
infoForm
=
deepClone
(
this
.
infoForm
)
var
params
=
{}
params
.
id
=
infoForm
.
id
params
.
ruleDescription
=
infoForm
.
ruleDescription
params
.
pointsValue
=
infoForm
.
pointsValue
updateStorePointsConfiguration
(
params
).
then
(
res
=>
{
this
.
notice
.
okTips
(
'操作成功'
)
this
.
visible
=
true
})
}
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.add-dialog
{
margin
:
20px
0
;
.reject-input
{
::v-deep
.el-textarea__inner
{
height
:
70px
;
}
}
.el-textarea
.el-input__count
{
right
:
90px
;
bottom
:
-10px
;
font-size
:
12px
;
color
:
#999999
;
}
.tips
{
color
:
#999999
;
}
}
</
style
>
src/views/residentManage/inStorePoints/indexControl.vue
0 → 100644
View file @
d3f35dc
<!-- 员工预警管理 -->
<
template
>
<div
class=
"staffWarn"
>
<div
class=
"header"
slot=
"header"
>
<el-tabs
v-model=
"activeName"
>
<el-tab-pane
label=
"积分记录"
name=
"pointsRecord"
/>
<el-tab-pane
label=
"积分配置管理"
name=
"pointsConfig"
/>
</el-tabs>
<div>
<points-record
v-if=
"activeName === 'pointsRecord'"
/>
<points-config
v-if=
"activeName === 'pointsConfig'"
/>
</div>
</div>
</div>
</
template
>
<
script
>
import
pointsRecord
from
'./pointsRecord'
import
pointsConfig
from
'./pointsConfig'
// import { deepClone } from '@/common/util'
export
default
{
name
:
'StaffIndex'
,
data
()
{
return
{
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
activeName
:
'pointsRecord'
,
recordInfo
:
{}
}
},
components
:
{
pointsRecord
,
pointsConfig
},
mounted
()
{
},
methods
:
{
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.staffWarn
{
padding
:
0
20px
;
.header
{
::v-deep
.el-tabs__header
{
margin
:
0
;
padding
:
0
20px
;
}
}
}
</
style
>
src/views/residentManage/inStorePoints/pointsConfig.vue
0 → 100644
View file @
d3f35dc
<!-- 积分配置管理 -->
<
template
>
<d2-container
class=
"points-config"
>
<div
class=
"header"
slot=
"header"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
:form-data=
"showFormData"
label-width=
"100px"
/>
<div
class=
"up-btns"
>
<el-button
:id=
"tableParams.btnId"
size=
"small"
type=
"primary"
>
查询
</el-button>
<el-button
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
</div>
</div>
<div
class=
"d2-container-content"
>
<d2-table-header>
</d2-table-header>
<d2-table
ref=
"detailListTable"
:search-form=
"searchForm"
:table-params=
"tableParams"
:get-list-api=
"getListApi"
:before-search-fn=
"beforeSearchFn"
>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
<!-- 编辑 -->
<span
style=
"margin-right: 10px;"
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9121304']"
/>
</span>
<!-- 启用/停用 -->
<span
style=
"margin-right: 10px;"
v-if=
"scope.scope.configStatus == 1 || scope.scope.configStatus == 0"
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9121305']"
/>
</span>
</div>
</d2-table>
</div>
<!-- 编辑积分配置 -->
<edit-dialog
:edit-visible=
"editVisible"
v-if=
"editVisible"
:params-obj=
"recordInfo"
@
dialogClose=
"editDialogClose"
/>
</d2-container>
</
template
>
<
script
>
import
{
Util
,
deepClone
}
from
'@/common/util'
import
editDialog
from
'./components/editDialog'
import
{
findAllCategory
,
findAllTypeByCategoryId
,
storePointsConfigurationPage
,
updateStorePointsConfiguration
}
from
'@api/inStorePoints'
import
{
pointStatusOpt
}
from
'@/common/constants.js'
export
default
{
name
:
'PointsConfig'
,
props
:
{
},
data
()
{
return
{
searchForm
:
{
categoryId
:
''
,
typeId
:
''
,
description
:
''
,
configStatus
:
''
},
showFormData
:
[{
label
:
'积分分类'
,
name
:
'categoryId'
,
type
:
'select'
,
isClear
:
true
,
optionList
:
[],
optionId
:
'id'
,
optionLabel
:
'pointsCategoryName'
,
optionsName
:
'pointClassificationOpt'
,
changeAttr
:
(
value
,
targetItem
)
=>
{
if
(
value
)
{
// 获取积分类型
this
.
findAllTypeByCategoryId
(
value
)
}
else
{
this
.
baseData
.
pointTypeOpt
=
[]
}
this
.
searchForm
.
typeId
=
""
this
.
getOptionsList
()
}
},
{
label
:
'积分类型'
,
name
:
'typeId'
,
type
:
'select'
,
isClear
:
true
,
noDataText
:
"请先选择积分分类"
,
optionList
:
[],
optionId
:
'id'
,
optionLabel
:
'pointsTypeName'
,
optionsName
:
'pointTypeOpt'
},
{
label
:
'积分描述'
,
name
:
'description'
,
type
:
'input'
,
maxlength
:
'20'
,
isClear
:
true
},
{
label
:
'状态'
,
name
:
'configStatus'
,
type
:
'select'
,
isClear
:
true
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confValue'
,
optionsName
:
'pointStatusOpt'
}],
getListApi
:
storePointsConfigurationPage
,
// 表格参数
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'list'
,
// tableOption: true,
tableOption
:
{
width
:
'150px'
},
tableColumns
:
[
{
label
:
'积分分类'
,
prop
:
'categoryName'
,
width
:
'150'
},
{
label
:
'积分类型'
,
prop
:
'typeName'
,
width
:
'150'
},
{
label
:
'积分描述'
,
prop
:
"description"
},
{
label
:
'积分规则'
,
prop
:
'ruleDescription'
},
{
label
:
'积分值'
,
prop
:
'pointsValue'
,
width
:
'100'
},
{
label
:
'状态'
,
prop
:
'configStatus'
,
width
:
'100'
,
formatter
:
(
cellValue
)
=>
{
return
(
cellValue
.
configStatus
||
cellValue
.
configStatus
==
0
)
?
this
.
baseData
.
pointStatusOpt
.
find
(
item
=>
item
.
confId
===
cellValue
.
configStatus
).
confValue
:
'--'
},
className
:
(
cellValue
)
=>
{
return
{
1
:
'greenSpot'
,
0
:
'redSpot'
}[
cellValue
.
configStatus
]
}
},
{
label
:
'最后更新时间'
,
prop
:
'updatedDate'
,
width
:
'150'
,
formatter
:
(
cellValue
)
=>
{
return
Util
.
dateFormate
(
cellValue
.
updatedDate
,
'YYYY-MM-DD HH:mm:ss'
)
}
}
]
},
baseData
:
{
pointClassificationOpt
:
[],
pointTypeOpt
:
[],
pointStatusOpt
:
deepClone
(
pointStatusOpt
)
},
recordInfo
:
{},
editVisible
:
false
}
},
components
:
{
editDialog
},
computed
:
{
},
mounted
()
{
this
.
getBaseData
()
},
methods
:
{
async
getBaseData
()
{
this
.
findAllCategory
()
this
.
getOptionsList
()
},
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
console
.
log
(
'this.searchForm.warnCycle'
,
this
.
searchForm
.
warnCycle
)
if
(
this
.
searchForm
.
warnCycle
)
{
this
.
searchForm
.
warningStartDate
=
Util
.
dateFormate
(
this
.
searchForm
.
warnCycle
[
0
],
'YYYY-MM-DD'
)
this
.
searchForm
.
warningEndDate
=
Util
.
dateFormate
(
this
.
searchForm
.
warnCycle
[
1
],
'YYYY-MM-DD'
)
// delete this.searchForm.warnCycle
}
else
{
delete
this
.
searchForm
.
warningStartDate
delete
this
.
searchForm
.
warningEndDate
}
if
(
this
.
searchForm
.
createTime
)
{
this
.
searchForm
.
startDate
=
Util
.
dateFormate
(
this
.
searchForm
.
createTime
[
0
],
'YYYY-MM-DD'
)
this
.
searchForm
.
endDate
=
Util
.
dateFormate
(
this
.
searchForm
.
createTime
[
1
],
'YYYY-MM-DD'
)
// delete this.searchForm.createTime
}
else
{
delete
this
.
searchForm
.
startDate
delete
this
.
searchForm
.
endDate
}
resolve
()
})
},
findAllCategory
()
{
findAllCategory
({}).
then
((
res
)
=>
{
this
.
baseData
.
pointClassificationOpt
=
res
this
.
getOptionsList
()
})
},
findAllTypeByCategoryId
(
id
)
{
findAllTypeByCategoryId
({
categoryId
:
id
}).
then
((
res
)
=>
{
this
.
baseData
.
pointTypeOpt
=
res
||
[]
this
.
getOptionsList
()
})
},
handleReset
()
{
this
.
searchForm
=
{
categoryId
:
''
,
typeId
:
''
,
description
:
''
,
configStatus
:
''
}
this
.
$refs
.
detailListTable
.
refreshTable
()
},
getOptionsList
()
{
this
.
showFormData
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
type
===
'select'
)
{
if
(
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
.
showFormData
[
index
].
optionLabel
]
!==
'全部'
)
{
const
temp
=
{}
temp
[
this
.
showFormData
[
index
].
optionId
]
=
''
temp
[
this
.
showFormData
[
index
].
optionLabel
]
=
'全部'
this
.
baseData
[
item
.
optionsName
].
unshift
(
temp
)
}
this
.
$set
(
this
.
showFormData
[
index
],
'optionList'
,
this
.
baseData
[
item
.
optionsName
]
)
}
})
},
handleEdit
(
row
)
{
this
.
recordInfo
=
row
this
.
editVisible
=
!
this
.
editVisible
},
editDialogClose
(
flag
)
{
this
.
editVisible
=
!
this
.
editVisible
if
(
flag
)
{
this
.
$refs
.
detailListTable
.
refreshTable
()
}
},
handleUpOrDown
(
row
)
{
var
html
=
row
.
configStatus
==
'0'
?
'是否启用该积分项?'
:
'是否停用该积分项?'
this
.
$confirm
(
html
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
const
selfStatus
=
row
.
configStatus
==
1
?
0
:
1
updateStorePointsConfiguration
({
id
:
row
.
id
,
configStatus
:
selfStatus
}).
then
(
res
=>
{
this
.
notice
.
okTips
()
this
.
$refs
.
detailListTable
.
refreshTable
()
})
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.points-config
{
margin-top
:
40px
;
.m-l-md
{
margin-left
:
20px
;
}
}
</
style
>
src/views/residentManage/inStorePoints/pointsRecord.vue
0 → 100644
View file @
d3f35dc
This diff is collapsed.
Click to expand it.
src/views/systemConfig/ShopConfig/shopSet.vue
View file @
d3f35dc
...
@@ -5,8 +5,7 @@
...
@@ -5,8 +5,7 @@
class=
"shopSetFrom d2-container-content"
class=
"shopSetFrom d2-container-content"
:model=
"form"
:model=
"form"
:rules=
"formRules"
:rules=
"formRules"
label-width=
"130px"
label-width=
"130px"
>
>
<p
class=
"edit-sub-title"
>
<p
class=
"edit-sub-title"
>
店铺设置
店铺设置
<span
class=
"merchantName"
>
{{
info
.
merchantName
}}
{{
info
.
merchantId
}}
</span>
<span
class=
"merchantName"
>
{{
info
.
merchantName
}}
{{
info
.
merchantId
}}
</span>
...
@@ -167,6 +166,23 @@
...
@@ -167,6 +166,23 @@
</el-select>
</el-select>
<span
class=
"item-tips"
>
注:获取账户中心创建在广联数科下的员工,角色类型选广联销售
</span>
<span
class=
"item-tips"
>
注:获取账户中心创建在广联数科下的员工,角色类型选广联销售
</span>
</el-form-item>
</el-form-item>
<el-form-item
label=
"盯防负责人:"
prop=
"storePersonId"
>
<el-select
clearable
multiple
filterable
value-key=
"userId"
v-model=
"directorList[5]"
class=
"el_select itd"
placeholder=
"请选择"
>
<el-option
v-for=
"item in storePersonList"
:key=
"item.userId"
:label=
"item.userName"
:value=
"item.userId"
>
</el-option>
</el-select>
<span
class=
"item-tips"
>
注:获取账户中心创建在广联数科下的全部员工
</span>
</el-form-item>
<el-form-item>
<el-form-item>
<div
class=
"month-set-div"
>
<div
class=
"month-set-div"
>
<div
class=
"month-choose"
>
<div
class=
"month-choose"
>
...
@@ -299,8 +315,8 @@
...
@@ -299,8 +315,8 @@
import
{
deepClone
}
from
'@/common/util'
import
{
deepClone
}
from
'@/common/util'
import
{
getShopSetting
,
listByMerchantIdAndYear
,
shopSetting
,
findSellerMerchantStaffList
,
getResidentStaffList
}
from
'@/api/shopConfig.js'
import
{
getShopSetting
,
listByMerchantIdAndYear
,
shopSetting
,
findSellerMerchantStaffList
,
getResidentStaffList
}
from
'@/api/shopConfig.js'
import
{
serviceGetMerchantList
}
from
'@api/merchant'
import
{
serviceGetMerchantList
}
from
'@api/merchant'
import
{
findMerchantStaffList
}
from
'@api/index'
import
{
findMerchantStaffList
,
merchantStaffByRoleList
}
from
'@api/index'
import
{
merchantStaffByRoleList
}
from
'@api/index'
import
{
businessNature
,
sceneForShop
}
from
'@/common/constants.js'
import
{
businessNature
,
sceneForShop
}
from
'@/common/constants.js'
import
{
mapActions
}
from
'vuex'
import
{
mapActions
}
from
'vuex'
import
{
rangePickerOptions_year
,
limitPrice
}
from
'@/common/format'
import
{
rangePickerOptions_year
,
limitPrice
}
from
'@/common/format'
...
@@ -329,7 +345,7 @@ export default {
...
@@ -329,7 +345,7 @@ export default {
currentMonthOutputValue
:
''
,
currentMonthOutputValue
:
''
,
nextMonthOutputValue
:
''
,
nextMonthOutputValue
:
''
,
serviceMerchantServiceChargeConfig
:
{},
serviceMerchantServiceChargeConfig
:
{},
shopMerchantConfig
:
{}
,
shopMerchantConfig
:
{}
// boutiqueSunshineInspiration: '',
// boutiqueSunshineInspiration: '',
// quotationSunshineInspiration: '',
// quotationSunshineInspiration: '',
// boutiqueMarketInspiration: '',
// boutiqueMarketInspiration: '',
...
@@ -341,7 +357,8 @@ export default {
...
@@ -341,7 +357,8 @@ export default {
1
:
[],
1
:
[],
2
:
[],
2
:
[],
3
:
[],
3
:
[],
4
:
[]
4
:
[],
5
:
[]
},
},
outputValueListByYear
:
[],
outputValueListByYear
:
[],
year
:
''
,
year
:
''
,
...
@@ -381,7 +398,8 @@ export default {
...
@@ -381,7 +398,8 @@ export default {
quotationMarketInspiration
:
''
quotationMarketInspiration
:
''
},
},
sellerMerchantStaffList
:
[],
sellerMerchantStaffList
:
[],
serviceBossList
:
[]
serviceBossList
:
[],
storePersonList
:
[]
// 盯防负责人列表
}
}
},
},
...
@@ -418,15 +436,15 @@ export default {
...
@@ -418,15 +436,15 @@ export default {
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
getShopSetting
({
merchantId
}).
then
(
res
=>
{
getShopSetting
({
merchantId
}).
then
(
res
=>
{
// this.setInfo = res
// this.setInfo = res
le
t
areaSupervisionList
=
[]
cons
t
areaSupervisionList
=
[]
res
.
areaSupervisionList
?.
forEach
(
item
=>
{
res
.
areaSupervisionList
?.
forEach
(
item
=>
{
const
target
=
this
.
supervisionOptionsList
.
find
(
ele
=>
ele
.
userId
==
item
.
userId
)
const
target
=
this
.
supervisionOptionsList
.
find
(
ele
=>
ele
.
userId
==
item
.
userId
)
if
(
target
)
areaSupervisionList
.
push
(
item
.
userId
)
if
(
target
)
areaSupervisionList
.
push
(
item
.
userId
)
})
})
res
.
areaSupervisionList
=
areaSupervisionList
res
.
areaSupervisionList
=
areaSupervisionList
res
.
shopMerchantConfig
?.
directorList
?.
forEach
(
item
=>
{
res
.
shopMerchantConfig
?.
directorList
?.
forEach
(
item
=>
{
const
target
=
this
[(
item
.
directorType
==
4
||
item
.
directorType
==
2
)
?
'serviceBossList'
:
'sellerMerchantStaffList'
]?.
find
(
ele
=>
ele
.
userId
==
item
.
directorUserId
)
const
target
=
this
[(
item
.
directorType
==
4
||
item
.
directorType
==
2
)
?
'serviceBossList'
:
'sellerMerchantStaffList'
]?.
find
(
ele
=>
ele
.
userId
==
item
.
directorUserId
)
if
(
target
)
this
.
directorList
[
item
.
directorType
].
push
(
item
.
directorUserId
)
if
(
target
)
this
.
directorList
[
item
.
directorType
].
push
(
item
.
directorUserId
)
})
})
this
.
form
=
deepClone
(
res
)
this
.
form
=
deepClone
(
res
)
if
(
!
this
.
form
.
serviceMerchantServiceChargeConfig
)
{
if
(
!
this
.
form
.
serviceMerchantServiceChargeConfig
)
{
...
@@ -434,7 +452,7 @@ export default {
...
@@ -434,7 +452,7 @@ export default {
this
.
form
.
serviceMerchantServiceChargeConfig
=
{
passageServiceCharge
:
2
,
passageServiceChargeFlag
:
'Y'
,
gasCardServiceCharge
:
2
,
gasCardServiceChargeFlag
:
'Y'
}
this
.
form
.
serviceMerchantServiceChargeConfig
=
{
passageServiceCharge
:
2
,
passageServiceChargeFlag
:
'Y'
,
gasCardServiceCharge
:
2
,
gasCardServiceChargeFlag
:
'Y'
}
}
}
if
(
!
this
.
form
.
shopMerchantConfig
)
{
if
(
!
this
.
form
.
shopMerchantConfig
)
{
this
.
form
.
shopMerchantConfig
=
{
boutiqueDirectorUserId
:
''
,
quotationDirectorUserId
:
''
,
boutiqueSunshineInspiration
:
''
,
quotationSunshineInspiration
:
''
,
boutiqueMarketInspiration
:
''
,
quotationMarketInspiration
:
''
,
boutiqueServiceDirectorUserId
:
''
,
quotationServiceDirectorUserId
:
''
}
this
.
form
.
shopMerchantConfig
=
{
boutiqueDirectorUserId
:
''
,
quotationDirectorUserId
:
''
,
boutiqueSunshineInspiration
:
''
,
quotationSunshineInspiration
:
''
,
boutiqueMarketInspiration
:
''
,
quotationMarketInspiration
:
''
,
boutiqueServiceDirectorUserId
:
''
,
quotationServiceDirectorUserId
:
''
,
storePersonId
:
''
}
}
}
// 对比下拉框是否存在已选的选择项 不存在清空
// 对比下拉框是否存在已选的选择项 不存在清空
this
.
checkSelectOption
()
this
.
checkSelectOption
()
...
@@ -453,14 +471,13 @@ export default {
...
@@ -453,14 +471,13 @@ export default {
resolve
()
resolve
()
})
})
})
})
},
},
checkSelectOption
()
{
checkSelectOption
()
{
le
t
_form
=
this
.
form
cons
t
_form
=
this
.
form
le
t
selectItemKey
=
[
cons
t
selectItemKey
=
[
// { item: 'areaSupervision', optionsList: 'supervisionOptionsList', key: 'userId'},
// { item: 'areaSupervision', optionsList: 'supervisionOptionsList', key: 'userId'},
{
item
:
'residentManager'
,
optionsList
:
'residentManagerOptionsList'
,
key
:
'userId'
},
{
item
:
'residentManager'
,
optionsList
:
'residentManagerOptionsList'
,
key
:
'userId'
}
// { item: 'boutiqueServiceDirectorUserId', optionsList: 'serviceBossList' },
// { item: 'boutiqueServiceDirectorUserId', optionsList: 'serviceBossList' },
// { item: 'quotationServiceDirectorUserId', optionsList: 'serviceBossList' },
// { item: 'quotationServiceDirectorUserId', optionsList: 'serviceBossList' },
// { item: 'boutiqueDirectorUserId', optionsList: 'sellerMerchantStaffList' },
// { item: 'boutiqueDirectorUserId', optionsList: 'sellerMerchantStaffList' },
...
@@ -468,10 +485,10 @@ export default {
...
@@ -468,10 +485,10 @@ export default {
]
]
selectItemKey
.
map
(
val
=>
{
selectItemKey
.
map
(
val
=>
{
if
(
typeof
_form
[
val
.
item
]
==
'object'
)
{
if
(
typeof
_form
[
val
.
item
]
==
'object'
)
{
le
t
index
=
this
[
val
.
optionsList
]?.
findIndex
(
subV
=>
subV
.
userId
==
_form
[
val
.
item
]?.
userId
)
cons
t
index
=
this
[
val
.
optionsList
]?.
findIndex
(
subV
=>
subV
.
userId
==
_form
[
val
.
item
]?.
userId
)
if
(
index
<
0
)
this
.
$set
(
this
.
form
,
val
.
item
,
{})
if
(
index
<
0
)
this
.
$set
(
this
.
form
,
val
.
item
,
{})
}
else
{
}
else
{
le
t
index
=
this
[
val
.
optionsList
]?.
findIndex
(
subV
=>
subV
.
userId
==
_form
?.
shopMerchantConfig
?.[
val
.
item
])
cons
t
index
=
this
[
val
.
optionsList
]?.
findIndex
(
subV
=>
subV
.
userId
==
_form
?.
shopMerchantConfig
?.[
val
.
item
])
if
(
index
<
0
)
this
.
$set
(
this
.
form
.
shopMerchantConfig
,
val
.
item
,
''
)
if
(
index
<
0
)
this
.
$set
(
this
.
form
.
shopMerchantConfig
,
val
.
item
,
''
)
}
}
})
})
...
@@ -527,7 +544,7 @@ export default {
...
@@ -527,7 +544,7 @@ export default {
async
merchantStaffByRoleList
()
{
async
merchantStaffByRoleList
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
merchantStaffByRoleList
({
roleName
:
'区域督导'
}).
then
((
result
)
=>
{
merchantStaffByRoleList
({
roleName
:
'区域督导'
}).
then
((
result
)
=>
{
le
t
copyResult
=
deepClone
(
result
)
cons
t
copyResult
=
deepClone
(
result
)
this
.
supervisionOptionsList
=
copyResult
.
map
((
item
)
=>
{
this
.
supervisionOptionsList
=
copyResult
.
map
((
item
)
=>
{
return
{
return
{
userType
:
1
,
userType
:
1
,
...
@@ -545,18 +562,27 @@ export default {
...
@@ -545,18 +562,27 @@ export default {
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
findMerchantStaffList
({
merchantId
:
-
1
}).
then
(
res
=>
{
findMerchantStaffList
({
merchantId
:
-
1
}).
then
(
res
=>
{
// 服务商负责人(根据角色名过滤)
// 服务商负责人(根据角色名过滤)
let
arr
=
[]
const
arr
=
[]
const
arr2
=
[]
res
?.
map
(
val
=>
{
res
?.
map
(
val
=>
{
if
(
val
.
roleName
==
baseConfig
.
roleName
)
arr
.
push
({
if
(
val
.
roleName
==
baseConfig
.
roleName
)
{
arr
.
push
({
userId
:
val
.
uuid
,
userName
:
val
.
staffName
})
}
})
res
?.
map
(
val
=>
{
arr2
.
push
({
userId
:
val
.
uuid
,
userId
:
val
.
uuid
,
userName
:
val
.
staffName
userName
:
val
.
staffName
})
})
})
})
this
.
serviceBossList
=
arr
this
.
serviceBossList
=
arr
this
.
storePersonList
=
arr2
resolve
()
resolve
()
})
})
})
})
},
},
// 根据4s店或者园区店查询员工信息
// 根据4s店或者园区店查询员工信息
async
getSelectList
(
info
)
{
async
getSelectList
(
info
)
{
...
@@ -575,7 +601,6 @@ export default {
...
@@ -575,7 +601,6 @@ export default {
resolve
()
resolve
()
})
})
})
})
},
},
chooseYear
()
{
chooseYear
()
{
this
.
listByMerchantIdAndYear
(
this
.
year
)
this
.
listByMerchantIdAndYear
(
this
.
year
)
...
@@ -651,9 +676,9 @@ export default {
...
@@ -651,9 +676,9 @@ export default {
})
})
_params
.
list
=
list
_params
.
list
=
list
}
}
if
(
_params
.
areaSupervisionList
?.
length
)
{
if
(
_params
.
areaSupervisionList
?.
length
)
{
_params
.
areaSupervisionList
=
_params
.
areaSupervisionList
.
map
(
item
=>
{
_params
.
areaSupervisionList
=
_params
.
areaSupervisionList
.
map
(
item
=>
{
le
t
target
=
this
.
supervisionOptionsList
.
find
(
ele
=>
ele
.
userId
==
item
)
cons
t
target
=
this
.
supervisionOptionsList
.
find
(
ele
=>
ele
.
userId
==
item
)
return
{
return
{
userId
:
target
?.
userId
,
userId
:
target
?.
userId
,
userType
:
target
?.
userType
,
userType
:
target
?.
userType
,
...
@@ -661,7 +686,7 @@ export default {
...
@@ -661,7 +686,7 @@ export default {
userNum
:
target
?.
userNum
userNum
:
target
?.
userNum
}
}
})
})
}
else
{
}
else
{
_params
.
areaSupervisionList
=
[]
_params
.
areaSupervisionList
=
[]
}
}
if
(
!
_params
.
residentManager
)
{
if
(
!
_params
.
residentManager
)
{
...
@@ -722,14 +747,14 @@ export default {
...
@@ -722,14 +747,14 @@ export default {
// _params.quotationServiceDirectorName = this.serviceBossList.find(item => item.userId === shopMerchantConfig.quotationServiceDirectorUserId)?.userName
// _params.quotationServiceDirectorName = this.serviceBossList.find(item => item.userId === shopMerchantConfig.quotationServiceDirectorUserId)?.userName
// }
// }
// 1.精品升级业务负责人,2.精品升级业务服务商负责人,3.会员权益业务负责人,4.会员权益业务服务商负责人)
// 1.精品升级业务负责人,2.精品升级业务服务商负责人,3.会员权益业务负责人,4.会员权益业务服务商负责人)
le
t
directorList
=
[]
cons
t
directorList
=
[]
for
(
le
t
key
in
this
.
directorList
)
{
for
(
cons
t
key
in
this
.
directorList
)
{
this
.
directorList
[
key
]?.
forEach
(
item
=>
{
this
.
directorList
[
key
]?.
forEach
(
item
=>
{
const
target
=
this
[(
key
==
4
||
key
==
2
)
?
'serviceBossList'
:
'sellerMerchantStaffList'
]?.
find
(
ele
=>
ele
.
userId
==
item
)
const
target
=
this
[(
key
==
4
||
key
==
2
)
?
'serviceBossList'
:
'sellerMerchantStaffList'
]?.
find
(
ele
=>
ele
.
userId
==
item
)
directorList
.
push
({
directorList
.
push
({
directorUserId
:
target
?.
userId
,
directorUserId
:
target
?.
userId
,
directorType
:
key
,
directorType
:
key
,
directorName
:
target
?.
userName
,
directorName
:
target
?.
userName
})
})
})
})
}
}
...
...
src/views/systemConfig/merchant/financialRules/components/verificationCodeDialog.vue
View file @
d3f35dc
<!-- 安全验证码 -->
<!-- 安全验证码 -->
<
template
>
<
template
>
<!-- btn-ok-label="全部下载" -->
<!-- btn-ok-label="全部下载" -->
<d2-dialog
title=
"安全验证码"
:is-visible=
"verificationCodeVisible"
class=
"verificationCode"
width=
"750px"
<d2-dialog
title=
"安全验证码"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleConfirm"
>
:is-visible=
"verificationCodeVisible"
class=
"verificationCode"
width=
"750px"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleConfirm"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-suffix=
":"
label-width=
"180px"
>
<el-form
ref=
"form"
<el-form-item
label=
"规则生效日期"
prop=
"effectStartDate"
:model=
"form"
:rules=
"[
{ required: !effectStartDate, message: '请选择生效开始日期', trigger: 'blur' }]">
:rules=
"rules"
label-suffix=
":"
label-width=
"180px"
>
<el-form-item
label=
"规则生效"
prop=
"ruleChoose"
>
<el-radio-group
v-model=
"form.ruleChoose"
>
<el-radio
:label=
"1"
>
立即生效
</el-radio>
<el-radio
:label=
"2"
>
定时生效
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
label=
"规则生效日期"
prop=
"effectStartDate"
:rules=
"[
{ required: !effectStartDate, message: '请选择生效开始日期', trigger: 'blur' }]"
v-if="form.ruleChoose == 2">
<!-- placeholder="请输入服务开始时间"
<!-- placeholder="请输入服务开始时间"
prefix-icon="0" -->
prefix-icon="0" -->
<el-date-picker
v-if=
"!effectStartDate"
value-format=
"yyyy-MM-dd"
v-model=
"form.effectStartDate"
type=
"date"
<el-date-picker
v-if=
"!effectStartDate"
value-format=
"yyyy-MM-dd"
v-model=
"form.effectStartDate"
type=
"date"
:picker-options=
"expireTimeOPtion"
>
:picker-options=
"expireTimeOPtion"
>
</el-date-picker>
</el-date-picker>
<span
v-else
>
立即生效
</span>
<span
v-else
>
立即生效
</span>
...
@@ -20,12 +40,18 @@
...
@@ -20,12 +40,18 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"管理员手机号验证"
>
<el-form-item
label=
"管理员手机号验证"
>
{{
adminInfo
.
name
}}
{{
adminInfo
.
phone
}}
{{
adminInfo
.
name
}}
{{
adminInfo
.
phone
}}
<el-button
:size=
"size"
@
click=
"handleSend"
:disabled=
"isSend"
>
<el-button
:size=
"size"
@
click=
"handleSend"
:disabled=
"isSend"
>
{{
isSend
?
sendMsg
+
'秒后,重试'
:
'发送验证短信'
}}
{{
isSend
?
sendMsg
+
'秒后,重试'
:
'发送验证短信'
}}
</el-button>
</el-button>
</el-form-item>
</el-form-item>
<el-form-item
label=
"验证码"
prop=
"smsCode"
>
<el-form-item
label=
"验证码"
<el-input
placeholder=
"请填写验证码"
v-model=
"form.smsCode"
:size=
"size"
style=
"width: 220px;"
/>
prop=
"smsCode"
>
<el-input
placeholder=
"请填写验证码"
v-model=
"form.smsCode"
:size=
"size"
style=
"width: 220px;"
/>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<p
class=
"title-tips"
>
注意:成功提交并完成审核后,首次设置规则立即生效,修改规则在到达指定生效日期后生效!
</p>
<p
class=
"title-tips"
>
注意:成功提交并完成审核后,首次设置规则立即生效,修改规则在到达指定生效日期后生效!
</p>
...
@@ -68,7 +94,8 @@ export default {
...
@@ -68,7 +94,8 @@ export default {
form
:
{
form
:
{
merchantId
:
''
,
merchantId
:
''
,
bizType
:
'1'
,
bizType
:
'1'
,
effectStartDate
:
''
effectStartDate
:
''
,
ruleChoose
:
1
},
},
rules
:
{
rules
:
{
smsCode
:
[{
required
:
true
,
message
:
'请输入验证码'
,
trigger
:
'blur'
}]
smsCode
:
[{
required
:
true
,
message
:
'请输入验证码'
,
trigger
:
'blur'
}]
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment