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 70cb478e
authored
Aug 24, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提测前代码提交
1 parent
be47bd44
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
115 deletions
src/views/performanceManage/components/residentCorrectionDialog.vue
src/views/performanceManage/components/residentDetailDialog.vue
src/views/performanceManage/components/residentPerformance.vue
src/views/performanceManage/components/technicianCorrectionDialog.vue
src/views/performanceManage/components/technicianDetailDialog.vue
src/views/performanceManage/components/technicianPerformance.vue
src/views/performanceManage/components/residentCorrectionDialog.vue
View file @
70cb478
...
...
@@ -103,66 +103,17 @@ export default {
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
if
(
valid
)
{
var
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
)
console
.
log
(
'this.recordInfo'
,
this
.
recordInfo
);
params
.
id
=
this
.
recordInfo
.
id
console
.
log
(
params
);
// // // 商户类型 1-服务中心 2-客户
// // params.merchantType = 2
// if (this.routeInfo.editType == 'edit') {
// params.yqMerchantId = this.editForm.merchantId
// // params.serviceCenterMerchantId = this.editForm.yqMerchantId
// }
// // 判断省市地址填写
// if (!params.provinceName || !params.cityName || !params.merchantAddress || !params.latitude || !params.longitude) {
// this.$message({
// message: '请选择省市地址',
// type: 'error'
// })
// return
// }
// if (!this.editForm.merchantBrandList?.length) {
// this.$message({
// message: '请选择主营品牌',
// type: 'error'
// })
// return
// }
// params.merchantBrandListJson = JSON.stringify(this.$common.utils.deepClone(this.editForm.merchantBrandList))
// delete params.merchantBrandList
// delete params.merchantBrandIds
// // params.sceneList = []
// // this.baseData.sceneList.forEach(item => {
// // const productCodeIds = item.productList.map(k => k.productCode)
// // if (this.hasDuplicate(productCodeIds, this.editForm.productCodeList)) {
// // params.sceneList.push(item.sceneCode)
// // }
// // })
// this.$confirm('<strong>是否确定提交?</strong> <div>提交服务中心开通申请,进入开店审核,审核通过后将为您自动' + (this.routeInfo.editType == 'add' ? '创建' : '编辑') + '服务中心</div> ', '提示', {
// dangerouslyUseHTMLString: true,
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning'
// })
// .then(() => {
// const apiName = this.routeInfo.editType == 'edit' ? 'updateServiceCenter' : 'saveServiceCenter'
// this.loading = true
this
.
$apis
.
performanceManage
.
correctApi
(
params
)
.
then
(
res
=>
{
this
.
$
message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
t
ype
:
res
.
code
==
'0'
?
'success'
:
'error
'
this
.
$
notify
({
type
:
'success'
,
t
itle
:
res
.
message
||
'操作成功
'
})
if
(
res
.
code
==
'0'
)
{
this
.
handleClose
()
}
this
.
handleClose
()
})
// .finally(() => {
// this.loading = false
// })
// })
// .catch(() => { })
}
})
},
...
...
src/views/performanceManage/components/residentDetailDialog.vue
View file @
70cb478
...
...
@@ -122,8 +122,9 @@ export default {
methods
:
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
this
.
tableSearchForm
.
staffUuid
=
this
.
recordInfo
.
staffUuid
this
.
tableSearchForm
.
performanceMonth
=
this
.
recordInfo
.
performanceMonth
// this.tableSearchForm.staffUuid = this.recordInfo.staffUuid
// this.tableSearchForm.performanceMonth = this.recordInfo.performanceMonth
this
.
tableSearchForm
.
id
=
this
.
recordInfo
.
id
resolve
()
})
},
...
...
src/views/performanceManage/components/residentPerformance.vue
View file @
70cb478
...
...
@@ -86,7 +86,7 @@
<ResidentCorrectionDialog
v-if=
"isCorrectionVisible"
:isVisible=
"isCorrectionVisible"
:recordInfo=
"recordInfo"
@
handleClose=
"handleCorrection"
></ResidentCorrectionDialog>
@
handleClose=
"handleCorrection
Close
"
></ResidentCorrectionDialog>
</div>
</
template
>
...
...
@@ -402,7 +402,10 @@ export default {
this
.
recordInfo
=
row
?
row
:
{}
this
.
isCorrectionVisible
=
!
this
.
isCorrectionVisible
},
handleCorrectionClose
()
{
this
.
isCorrectionVisible
=
!
this
.
isCorrectionVisible
this
.
$refs
.
residentRef
.
refreshTable
()
},
// 下发操作
distribute
(
row
)
{
var
selectedData
=
[]
...
...
src/views/performanceManage/components/technicianCorrectionDialog.vue
View file @
70cb478
...
...
@@ -71,66 +71,16 @@ export default {
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
(
valid
=>
{
if
(
valid
)
{
var
params
=
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
)
console
.
log
(
'this.recordInfo'
,
this
.
recordInfo
);
params
.
id
=
this
.
recordInfo
.
id
console
.
log
(
params
);
// // // 商户类型 1-服务中心 2-客户
// // params.merchantType = 2
// if (this.routeInfo.editType == 'edit') {
// params.yqMerchantId = this.editForm.merchantId
// // params.serviceCenterMerchantId = this.editForm.yqMerchantId
// }
// // 判断省市地址填写
// if (!params.provinceName || !params.cityName || !params.merchantAddress || !params.latitude || !params.longitude) {
// this.$message({
// message: '请选择省市地址',
// type: 'error'
// })
// return
// }
// if (!this.editForm.merchantBrandList?.length) {
// this.$message({
// message: '请选择主营品牌',
// type: 'error'
// })
// return
// }
// params.merchantBrandListJson = JSON.stringify(this.$common.utils.deepClone(this.editForm.merchantBrandList))
// delete params.merchantBrandList
// delete params.merchantBrandIds
// // params.sceneList = []
// // this.baseData.sceneList.forEach(item => {
// // const productCodeIds = item.productList.map(k => k.productCode)
// // if (this.hasDuplicate(productCodeIds, this.editForm.productCodeList)) {
// // params.sceneList.push(item.sceneCode)
// // }
// // })
// this.$confirm('<strong>是否确定提交?</strong> <div>提交服务中心开通申请,进入开店审核,审核通过后将为您自动' + (this.routeInfo.editType == 'add' ? '创建' : '编辑') + '服务中心</div> ', '提示', {
// dangerouslyUseHTMLString: true,
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning'
// })
// .then(() => {
// const apiName = this.routeInfo.editType == 'edit' ? 'updateServiceCenter' : 'saveServiceCenter'
// this.loading = true
this
.
$apis
.
performanceManage
.
correctApi
(
params
)
.
then
(
res
=>
{
this
.
$
message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
t
ype
:
res
.
code
==
'0'
?
'success'
:
'error
'
this
.
$
notify
({
type
:
'success'
,
t
itle
:
res
.
message
||
'操作成功
'
})
if
(
res
.
code
==
'0'
)
{
this
.
handleClose
()
}
this
.
handleClose
()
})
// .finally(() => {
// this.loading = false
// })
// })
// .catch(() => { })
}
})
},
...
...
src/views/performanceManage/components/technicianDetailDialog.vue
View file @
70cb478
...
...
@@ -133,8 +133,9 @@ export default {
methods
:
{
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
this
.
tableSearchForm
.
staffUuid
=
this
.
recordInfo
.
staffUuid
this
.
tableSearchForm
.
performanceMonth
=
this
.
recordInfo
.
performanceMonth
// this.tableSearchForm.staffUuid = this.recordInfo.staffUuid
// this.tableSearchForm.performanceMonth = this.recordInfo.performanceMonth
this
.
tableSearchForm
.
id
=
this
.
recordInfo
.
id
resolve
()
})
},
...
...
src/views/performanceManage/components/technicianPerformance.vue
View file @
70cb478
...
...
@@ -86,7 +86,7 @@
<TechnicianCorrectionDialog
v-if=
"isCorrectionVisible"
:isVisible=
"isCorrectionVisible"
:recordInfo=
"recordInfo"
@
handleClose=
"handleCorrection"
></TechnicianCorrectionDialog>
@
handleClose=
"handleCorrection
Close
"
></TechnicianCorrectionDialog>
</div>
</
template
>
...
...
@@ -328,7 +328,10 @@ export default {
this
.
recordInfo
=
row
?
row
:
{}
this
.
isCorrectionVisible
=
!
this
.
isCorrectionVisible
},
handleCorrectionClose
()
{
this
.
isCorrectionVisible
=
!
this
.
isCorrectionVisible
this
.
$refs
.
residentRef
.
refreshTable
()
},
// 下发操作
distribute
(
row
)
{
var
selectedData
=
[]
...
...
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