Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-shop
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 0b450c52
authored
Aug 24, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
e3d60d64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
14 deletions
src/views/staffManage/edit.vue
src/views/staffManage/edit.vue
View file @
0b450c5
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<p
class=
"page-title"
>
基础信息
</p>
<p
class=
"page-title"
>
基础信息
</p>
<div
v-loading=
"loading"
>
<div
v-loading=
"loading"
>
<glsx-combi-form
class=
"edit-form-container m-r-20"
ref=
"editFormRef"
:isEdit=
"isEdit"
:labelWidth=
"defaultLabelWidth"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<glsx-combi-form
class=
"edit-form-container m-r-20"
ref=
"editFormRef"
:isEdit=
"isEdit"
:labelWidth=
"defaultLabelWidth"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<div
slot=
"merchantList"
class=
"default-css"
>
<div
slot=
"merchantList"
>
<el-button
size=
"small"
class=
"selectWrap"
icon=
"el-icon-plus"
plain
@
click=
"handleRelateStoreClose"
>
选择门店
</el-button>
<el-button
size=
"small"
class=
"selectWrap"
icon=
"el-icon-plus"
plain
@
click=
"handleRelateStoreClose"
>
选择门店
</el-button>
<GLTable
ref=
"warehousListRef"
:hasPage=
"false"
:tableParams=
"tableParams"
:tableData=
"editForm.merchantList"
>
<GLTable
ref=
"warehousListRef"
:hasPage=
"false"
:tableParams=
"tableParams"
:tableData=
"editForm.merchantList"
>
<span
slot=
"customBtn"
slot-scope=
"scope"
>
<span
slot=
"customBtn"
slot-scope=
"scope"
>
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<el-input
type=
"text"
v-model=
"employeePerformanceConfig.basicWage"
@
blur=
"handleCalcuPrice('employeePerformanceConfig', 'basicWage')"
placeholder=
"请输入"
></el-input>
<el-input
type=
"text"
v-model=
"employeePerformanceConfig.basicWage"
@
blur=
"handleCalcuPrice('employeePerformanceConfig', 'basicWage')"
placeholder=
"请输入"
></el-input>
</div>
</div>
<!-- 保底工资/元 -->
<!-- 保底工资/元 -->
<div
slot=
"minimumWage"
class=
"default-css"
>
<div
slot=
"minimumWage"
>
<el-input
type=
"text"
v-model=
"employeePerformanceConfig.minimumWage"
@
blur=
"handleCalcuPrice('employeePerformanceConfig', 'minimumWage')"
placeholder=
"请输入"
></el-input>
<el-input
type=
"text"
v-model=
"employeePerformanceConfig.minimumWage"
@
blur=
"handleCalcuPrice('employeePerformanceConfig', 'minimumWage')"
placeholder=
"请输入"
></el-input>
</div>
</div>
<!--提成奖励 高客单奖励 成交率奖励-->
<!--提成奖励 高客单奖励 成交率奖励-->
...
@@ -200,8 +200,14 @@ export default {
...
@@ -200,8 +200,14 @@ export default {
],
],
commissionBonusFlag
:
[{
required
:
true
,
message
:
'请选择提成奖励'
,
trigger
:
'change'
}],
commissionBonusFlag
:
[{
required
:
true
,
message
:
'请选择提成奖励'
,
trigger
:
'change'
}],
constructionBonusFlag
:
[{
required
:
true
,
message
:
'请选择施工奖励'
,
trigger
:
'change'
}],
constructionBonusFlag
:
[{
required
:
true
,
message
:
'请选择施工奖励'
,
trigger
:
'change'
}],
endValue
:
[{
required
:
true
,
message
:
'请输入'
,
trigger
:
'blur'
}],
endValue
:
[
calculateValue
:
[{
required
:
true
,
message
:
'请输入'
,
trigger
:
'blur'
}],
{
required
:
true
,
message
:
'请输入'
,
trigger
:
'blur'
},
{
validator
:
checkPrice
,
trigger
:
'blur'
}
],
calculateValue
:
[
{
required
:
true
,
message
:
'请输入'
,
trigger
:
'blur'
},
{
validator
:
checkPrice
,
trigger
:
'blur'
}
],
upgradeConstructionBonus
:
[
upgradeConstructionBonus
:
[
{
required
:
true
,
message
:
'请输入升级订单施工奖励'
,
trigger
:
'blur'
},
{
required
:
true
,
message
:
'请输入升级订单施工奖励'
,
trigger
:
'blur'
},
{
validator
:
checkPrice
,
trigger
:
'blur'
}
{
validator
:
checkPrice
,
trigger
:
'blur'
}
...
@@ -269,7 +275,10 @@ export default {
...
@@ -269,7 +275,10 @@ export default {
label
:
''
,
label
:
''
,
name
:
'merchantList'
,
name
:
'merchantList'
,
addHtml
:
'merchantList'
,
addHtml
:
'merchantList'
,
isHide
:
true
isHide
:
true
,
style
:
{
'margin-left'
:
'154px'
}
}
}
],
],
//绩效信息
//绩效信息
...
@@ -297,6 +306,9 @@ export default {
...
@@ -297,6 +306,9 @@ export default {
label
:
''
,
label
:
''
,
name
:
'minimumWage'
,
name
:
'minimumWage'
,
isHide
:
true
,
isHide
:
true
,
style
:
{
'margin-left'
:
'154px'
},
addHtml
:
'minimumWage'
addHtml
:
'minimumWage'
},
},
{
{
...
@@ -365,19 +377,19 @@ export default {
...
@@ -365,19 +377,19 @@ export default {
label
:
'门店名称'
,
label
:
'门店名称'
,
prop
:
'merchantName'
,
prop
:
'merchantName'
,
width
:
300
,
width
:
300
,
line
:
1
line
:
1
},
},
{
{
label
:
'商户号'
,
label
:
'商户号'
,
prop
:
'merchantId'
,
prop
:
'merchantId'
,
width
:
300
,
width
:
300
,
line
:
1
line
:
1
},
},
{
{
label
:
'操作'
,
label
:
'操作'
,
prop
:
''
,
prop
:
''
,
addHtml
:
'customBtn'
,
addHtml
:
'customBtn'
,
width
:
80
,
width
:
80
}
}
]
]
},
},
...
@@ -397,6 +409,11 @@ export default {
...
@@ -397,6 +409,11 @@ export default {
},
},
deep
:
true
deep
:
true
},
},
'editForm.staffPhone'
:
{
handler
(
val
)
{
this
.
editForm
.
staffPhone
=
val
.
replace
(
/
\D
+/g
,
''
)
}
},
'editForm.merchantNo'
:
{
'editForm.merchantNo'
:
{
handler
(
val
)
{
handler
(
val
)
{
this
.
storeSearchForm
.
yqMerchantId
=
val
this
.
storeSearchForm
.
yqMerchantId
=
val
...
@@ -440,7 +457,7 @@ export default {
...
@@ -440,7 +457,7 @@ export default {
showList
=
[
'basicWage'
,
'minimumWageFlag'
,
'constructionBonusFlag'
]
showList
=
[
'basicWage'
,
'minimumWageFlag'
,
'constructionBonusFlag'
]
}
}
//针对保底工资显示隐藏
//针对保底工资显示隐藏
this
.
changeFormAttr
(
'performanceFormData'
,
'isHide'
,
[
'minimumWage'
],
!
form
.
minimumWageBFlag
)
this
.
changeFormAttr
(
'performanceFormData'
,
'isHide'
,
[
'minimumWage'
],
!
form
.
minimumWageBFlag
)
this
.
changeFormAttr
(
'performanceFormData'
,
'isHide'
,
showList
,
!
form
[
value
+
'BFlag'
])
this
.
changeFormAttr
(
'performanceFormData'
,
'isHide'
,
showList
,
!
form
[
value
+
'BFlag'
])
return
return
}
}
...
@@ -476,15 +493,15 @@ export default {
...
@@ -476,15 +493,15 @@ export default {
highCustomerUnitBonus
:
[
'highCustomerUnitBonusList'
],
highCustomerUnitBonus
:
[
'highCustomerUnitBonusList'
],
constructionBonus
:
[
'upgradeConstructionBonus'
,
'notUpgradeConstructionBonus'
],
constructionBonus
:
[
'upgradeConstructionBonus'
,
'notUpgradeConstructionBonus'
],
performance
:
[
'basicWage'
,
'minimumWage'
,
'commissionBonusList'
,
'successRateBonusList'
,
'highCustomerUnitBonusList'
,
'upgradeConstructionBonus'
,
'notUpgradeConstructionBonus'
],
performance
:
[
'basicWage'
,
'minimumWage'
,
'commissionBonusList'
,
'successRateBonusList'
,
'highCustomerUnitBonusList'
,
'upgradeConstructionBonus'
,
'notUpgradeConstructionBonus'
],
staffType
:
[
'upgradeConstructionBonus'
,
'notUpgradeConstructionBonus'
,
'commissionBonusList'
,
'successRateBonusList'
,
'highCustomerUnitBonusList'
]
staffType
:
[
'upgradeConstructionBonus'
,
'notUpgradeConstructionBonus'
,
'commissionBonusList'
,
'successRateBonusList'
,
'highCustomerUnitBonusList'
]
}
}
data
[
type
]
&&
data
[
type
]
&&
data
[
type
].
forEach
(
item
=>
{
data
[
type
].
forEach
(
item
=>
{
form
[
item
]
=
''
form
[
item
]
=
''
})
})
if
(
type
==
'performance'
||
type
==
'staffType'
)
{
if
(
type
==
'performance'
||
type
==
'staffType'
)
{
let
FlagList
=
[
'highCustomerUnitBonus'
,
'successRateBonus'
,
'minimumWage'
,
'commissionBonus'
,
'constructionBonus'
]
let
FlagList
=
[
'highCustomerUnitBonus'
,
'successRateBonus'
,
'minimumWage'
,
'commissionBonus'
,
'constructionBonus'
]
FlagList
.
forEach
(
item
=>
{
FlagList
.
forEach
(
item
=>
{
form
[
item
+
'BFlag'
]
=
false
form
[
item
+
'BFlag'
]
=
false
form
[
item
+
'Flag'
]
=
form
[
item
+
'BFlag'
]
?
1
:
0
form
[
item
+
'Flag'
]
=
form
[
item
+
'BFlag'
]
?
1
:
0
...
@@ -695,7 +712,9 @@ export default {
...
@@ -695,7 +712,9 @@ export default {
})
})
}
}
})
})
.
catch
(
error
=>
{})
.
catch
(
error
=>
{
// this.$message.error('请检查员工信息是否填写正确')
})
},
},
cancelJump
()
{
cancelJump
()
{
this
.
$router
.
push
({
this
.
$router
.
push
({
...
@@ -730,6 +749,7 @@ export default {
...
@@ -730,6 +749,7 @@ export default {
this
.
editForm
.
merchantList
=
selectedData
this
.
editForm
.
merchantList
=
selectedData
this
.
selectedList
=
selectedData
this
.
selectedList
=
selectedData
this
.
handleRelateStoreClose
()
this
.
handleRelateStoreClose
()
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
clearValidate
(
'merchantList'
)
this
.
$refs
.
editFormMerchantRef
.
$refs
[
this
.
editChildRef
].
validateField
(
'merchantList'
)
this
.
$refs
.
editFormMerchantRef
.
$refs
[
this
.
editChildRef
].
validateField
(
'merchantList'
)
},
},
handleSearchStore
()
{
handleSearchStore
()
{
...
...
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