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 6c0fc565
authored
Sep 28, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix 功能联调
1 parent
39289994
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
146 additions
and
50 deletions
src/api/resident.js
src/views/residentManage/inStoreManage/components/PermissionDialog.vue
src/views/residentManage/inStoreManage/components/editStaff.vue
src/views/residentManage/inStoreManage/index.vue
src/api/resident.js
View file @
6c0fc56
...
...
@@ -582,3 +582,13 @@ export function receptionTagPageExport(data) {
data
.
method
=
`dj.api.smartcarlife.reception.receptionTagPageExport`
return
request
(
data
,
"post"
)
}
// 前店后厂-权限列表
export
function
getPermissionsList
(
data
)
{
data
.
method
=
`dj.api.smartcarlife.qdhc.permissions`
return
request
(
data
,
"post"
)
}
// 前店后厂-批量新增员工权限
export
function
addBatchPermissions
(
data
)
{
data
.
method
=
`dj.api.smartcarlife.qdhc.staff.permissions.batch.authorization`
return
request
(
data
,
"post"
)
}
src/views/residentManage/inStoreManage/components/PermissionDialog.vue
View file @
6c0fc56
...
...
@@ -12,15 +12,10 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"商户类型"
prop=
"smsCode"
>
<!--
<el-input
placeholder=
"请填写验证码"
v-model=
"form.smsCode"
size=
"small"
style=
"width: 220px;"
/>
-->
<el-form-item
label=
"权限名称"
prop=
"checkList"
>
<el-checkbox-group
v-model=
"form.checkList"
>
<el-checkbox
label=
"复选框 A"
></el-checkbox>
<el-checkbox
label=
"复选框 B"
></el-checkbox>
<el-checkbox
label=
"复选框 C"
></el-checkbox>
<el-checkbox
label=
"复选框 A"
></el-checkbox>
<el-checkbox
label=
"复选框 B"
></el-checkbox>
<el-checkbox
label=
"复选框 C"
></el-checkbox>
<el-checkbox
v-for=
"(item, index) in optionsSelectList"
:label=
"JSON.stringify(item)"
:key=
"index"
:value=
"item"
>
{{
item
.
name
}}
</el-checkbox>
</el-checkbox-group>
</el-form-item>
</el-form>
...
...
@@ -29,8 +24,7 @@
</
template
>
<
script
>
import
{
getResidentListApi
}
from
"@api/resident"
import
{
yseMerchantModifyMerchantRef
}
from
'@api/publicAccount'
import
{
getResidentListApi
,
getPermissionsList
,
addBatchPermissions
}
from
"@api/resident"
import
{
deepClone
}
from
'@/common/util'
import
{
merchantClassifyList
}
from
'@/common/constants'
export
default
{
...
...
@@ -38,9 +32,40 @@ export default {
data
()
{
return
{
merchantClassifyList
,
optionsSelectList
:
[
{
name
:
"预约客户"
,
code
:
'YUYUEKEHU'
},
{
// 创建施工单 CHUANGJIANSHIGONGDAN
name
:
"创建施工单"
,
code
:
"CHUANGJIANSHIGONGDAN"
},
// 施工确认 SHIGONGQUEREN
{
name
:
"施工确认"
,
code
:
"SHIGONGQUEREN"
},
// 物料出库 WULIAOCHUKU
{
name
:
"物料出库"
,
code
:
"WULIAOCHUKU"
},
// 完成施工 WANCHENGSHIGONG
{
name
:
"完成施工"
,
code
:
"WANCHENGSHIGONG"
},
// 审核施工单 SHENHESHIGONGDAN
{
name
:
"审核施工单"
,
code
:
"SHENHESHIGONGDAN"
}
],
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
form
:
{
tableData
:
[],
checkList
:
[],
staffIds
:
[]
},
...
...
@@ -52,8 +77,8 @@ export default {
// 短信模块
isSend
:
false
,
rules
:
{
smsCode
:
[{
required
:
true
,
message
:
'请输入验证码'
,
trigger
:
'blur
'
}],
staffIds
:
[{
required
:
true
,
message
:
'请选择员工'
,
trigger
:
'blur
'
}]
checkList
:
[{
required
:
true
,
type
:
'array'
,
message
:
'请选择权限'
,
trigger
:
'change
'
}],
staffIds
:
[{
required
:
true
,
type
:
'array'
,
message
:
'请选择员工'
,
trigger
:
'change
'
}]
},
isShowOkbtn
:
true
,
num
:
0
...
...
@@ -82,11 +107,21 @@ export default {
},
created
()
{
this
.
getResidentList
()
this
.
getPermissionsList
()
},
mounted
()
{
},
methods
:
{
getPermissionsList
()
{
getPermissionsList
({
}).
then
(
res
=>
{
console
.
log
(
res
,
'getPermissionsList'
)
this
.
optionsSelectList
=
res
.
list
}).
catch
((
err
)
=>
{
console
.
log
(
err
)
})
},
getResidentList
()
{
getResidentListApi
({
pageSize
:
10
,
...
...
@@ -98,35 +133,26 @@ export default {
console
.
log
(
err
)
})
},
// 短信模块-end
getInfo
(
subShopMerchantInfo
)
{
// yseMerchantGetDetail({
// yseUserCode: yseUserCode
// }).then(res => {
// console.log(res, 'res')
this
.
subShopMerchantList
=
subShopMerchantInfo
.
yseMerchantRefs
||
[]
if
(
this
.
subShopMerchantList
.
length
>
0
)
{
this
.
form
.
tableData
=
deepClone
(
this
.
subShopMerchantList
)
this
.
options
=
deepClone
(
this
.
subShopMerchantList
)
}
},
handleAddConfirm
()
{
this
.
$refs
.
editSubordinateMerchantFrom
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
!
this
.
form
.
tableData
.
length
)
return
this
.
$message
.
warning
(
'请选择关联商户'
)
this
.
$refs
.
form
.
validate
(
valid2
=>
{
if
(
valid2
)
{
var
params
=
{
smsCode
:
this
.
form
.
smsCode
,
yseMerchantId
:
this
.
subShopMerchantInfo
.
id
,
yseMerchantRefs
:
this
.
form
.
tableData
}
yseMerchantModifyMerchantRef
(
params
).
then
(
res
=>
{
this
.
notice
.
okTips
(
'操作成功'
)
this
.
handleClose
()
this
.
$refs
.
form
.
validate
(
valid2
=>
{
if
(
valid2
)
{
const
list
=
this
.
form
.
staffIds
.
reduce
((
acc
,
cur
)
=>
{
this
.
form
.
checkList
.
forEach
(
item
=>
{
acc
.
push
({
staffPhone
:
cur
.
staffPhone
,
permissionId
:
JSON
.
parse
(
item
).
code
})
}
})
return
acc
},
[])
var
params
=
{
private
:
1
,
list
}
addBatchPermissions
(
params
).
then
(
res
=>
{
this
.
notice
.
okTips
(
'新增成功'
)
this
.
handleClose
()
})
}
})
...
...
src/views/residentManage/inStoreManage/components/editStaff.vue
View file @
6c0fc56
...
...
@@ -65,13 +65,12 @@
</div>
<div
class=
"info-item flex permissionBox"
>
<label>
权限名称:
</label>
<span>
<el-checkbox-group
v-model=
"checkList"
>
<el-checkbox
label=
"复选框 A"
></el-checkbox>
<el-checkbox
label=
"复选框 B"
></el-checkbox>
<el-checkbox
label=
"复选框 C"
></el-checkbox>
<el-checkbox
label=
"禁用"
></el-checkbox>
<el-checkbox
label=
"选中且禁用"
></el-checkbox>
</el-checkbox-group></span>
<span>
<el-checkbox-group
v-model=
"checkList"
>
<el-checkbox
v-for=
"(item, index) in optionsSelectList"
:label=
"JSON.stringify(item)"
:key=
"index"
:value=
"item"
@
change=
"(checked) => handleSingleChange(checked, item)"
>
{{
item
.
name
}}
</el-checkbox>
</el-checkbox-group>
</span>
</div>
</div>
</div>
...
...
@@ -100,7 +99,7 @@
<i
class=
"el-icon-warning custom-icon"
></i>
<span
class=
"log-text"
>
已修改为
{{
detail
.
nextMonthBasicSalary
}}
元,次月生效,当前月份基本工资仍为
{{
}}
元,次月生效,当前月份基本工资仍为
{{
isEmpty
(
detail
.
basicSalary
)
?
"-"
:
detail
.
basicSalary
}}
元
</span>
</div>
...
...
@@ -127,7 +126,7 @@
<i
class=
"el-icon-warning custom-icon"
></i>
<span
class=
"log-text"
>
已修改为
{{
detail
.
nextMonthPerformanceSalary
}}
元,次月生效,当前月份绩效工资仍为
{{
}}
元,次月生效,当前月份绩效工资仍为
{{
isEmpty
(
detail
.
performanceSalary
)
?
"-"
:
detail
.
performanceSalary
...
...
@@ -194,7 +193,7 @@
<i
class=
"el-icon-warning custom-icon"
></i>
<span
class=
"log-text"
>
已修改为
{{
filterStr
(
detail
.
nextMonthJobType
,
tempjobTypeList
)
||
"-"
}}
,次
{{
}}
,次
{{
(
detail
.
jobType
==
0
||
detail
.
jobType
==
1
)
&&
(
detail
.
nextMonthJobType
==
1
||
detail
.
nextMonthJobType
==
2
)
?
"日"
...
...
@@ -492,6 +491,38 @@ export default {
filterStr
,
isEmpty
,
staffSceneLabelList
:
staffSceneLabelList
,
optionsSelectList
:
[
{
name
:
"预约客户"
,
code
:
'YUYUEKEHU'
},
{
// 创建施工单 CHUANGJIANSHIGONGDAN
name
:
"创建施工单"
,
code
:
"CHUANGJIANSHIGONGDAN"
},
// 施工确认 SHIGONGQUEREN
{
name
:
"施工确认"
,
code
:
"SHIGONGQUEREN"
},
// 物料出库 WULIAOCHUKU
{
name
:
"物料出库"
,
code
:
"WULIAOCHUKU"
},
// 完成施工 WANCHENGSHIGONG
{
name
:
"完成施工"
,
code
:
"WANCHENGSHIGONG"
},
// 审核施工单 SHENHESHIGONGDAN
{
name
:
"审核施工单"
,
code
:
"SHENHESHIGONGDAN"
}
],
info
:
{},
checkList
:
[],
detail
:
{
...
...
@@ -704,8 +735,37 @@ export default {
this
.
jobTypeList
=
this
.
externalLevelList
this
.
tempjobTypeList
=
this
.
tempExternalLevelList
}
// this.getPermissionsList()
},
methods
:
{
handleSingleChange
(
checked
,
item
)
{
if
(
checked
)
{
console
.
log
(
'勾选了:'
,
item
)
this
.
onItemSelected
(
item
)
}
else
{
console
.
log
(
'取消勾选了:'
,
item
)
this
.
onItemDeselected
(
item
)
}
},
onItemSelected
(
item
)
{
// 处理勾选逻辑
console
.
log
(
'处理勾选:'
,
item
)
},
onItemDeselected
(
item
)
{
// 处理取消勾选逻辑
console
.
log
(
'处理取消勾选:'
,
item
)
},
getPermissionsList
()
{
getPermissionsList
({
}).
then
(
res
=>
{
console
.
log
(
res
,
'getPermissionsList'
)
this
.
optionsSelectList
=
res
.
list
}).
catch
((
err
)
=>
{
console
.
log
(
err
)
})
},
resetData
()
{
this
.
getStaffWhite
()
this
.
getResidentTeacherList
()
...
...
src/views/residentManage/inStoreManage/index.vue
View file @
6c0fc56
...
...
@@ -65,7 +65,7 @@
<performance-deduction-dialog
:deduction-visible=
"deductionVisible"
v-if=
"deductionVisible"
@
dialogClose=
"handleDeductionCloseDialog"
></performance-deduction-dialog>
<!-- 新增权限 -->
<PermissionDialog
:permissionVisible
.
sync=
"permissionVisible"
></PermissionDialog>
<PermissionDialog
v-if=
"permissionVisible"
:permissionVisible
.
sync=
"permissionVisible"
></PermissionDialog>
</div>
</
template
>
...
...
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