Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 5f1190c5
authored
Jan 10, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
订单管理-售后状态
1 parent
31ca02f6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
42 deletions
src/views/orderManage/index.vue
src/views/orderManage/index.vue
View file @
5f1190c
...
@@ -233,40 +233,40 @@ export default {
...
@@ -233,40 +233,40 @@ export default {
this
.
oldVal
.
orderStatuses
=
this
.
$common
.
utils
.
deepClone
(
this
.
searchForm
.
orderStatuses
)
this
.
oldVal
.
orderStatuses
=
this
.
$common
.
utils
.
deepClone
(
this
.
searchForm
.
orderStatuses
)
}
}
},
},
//
{
{
//
label: '售后状态',
label
:
'售后状态'
,
//
name: 'afterSaleStatuses',
name
:
'afterSaleStatuses'
,
//
type: 'select',
type
:
'select'
,
//
labelWidth: 72,
labelWidth
:
72
,
//
multiple: true,
multiple
:
true
,
//
optionList: [],
optionList
:
[],
//
optionId: 'confId',
optionId
:
'confId'
,
//
optionLabel: 'confName',
optionLabel
:
'confName'
,
//
optionsName: 'searchAfterSaleStatusList',
optionsName
:
'searchAfterSaleStatusList'
,
//
changeAttr: (value, targetItem) => {
changeAttr
:
(
value
,
targetItem
)
=>
{
//
var isAdd = value.length > this.oldVal.afterSaleStatuses.length
var
isAdd
=
value
.
length
>
this
.
oldVal
.
afterSaleStatuses
.
length
//
var targetVal = value[value.length - 1]
var
targetVal
=
value
[
value
.
length
-
1
]
//
var formIdx = this.searchFormData.findIndex(item => item.label == '售后状态')
var
formIdx
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
label
==
'售后状态'
)
//
if (!isAdd) {
if
(
!
isAdd
)
{
//
for (var i = 0; i < this.oldVal.afterSaleStatuses.length; i++) {
for
(
var
i
=
0
;
i
<
this
.
oldVal
.
afterSaleStatuses
.
length
;
i
++
)
{
//
if (!value.includes(this.oldVal.afterSaleStatuses[i])) {
if
(
!
value
.
includes
(
this
.
oldVal
.
afterSaleStatuses
[
i
]))
{
//
targetVal = this.oldVal.afterSaleStatuses[i]
targetVal
=
this
.
oldVal
.
afterSaleStatuses
[
i
]
//
break
break
//
}
}
//
}
}
//
}
}
//
!targetVal && (this.searchForm.afterSaleStatuses = isAdd ? this.searchFormData[formIdx].optionList.map(item => item.confId) : [])
!
targetVal
&&
(
this
.
searchForm
.
afterSaleStatuses
=
isAdd
?
this
.
searchFormData
[
formIdx
].
optionList
.
map
(
item
=>
item
.
confId
)
:
[])
//
if (targetVal) {
if
(
targetVal
)
{
//
var idx = value.findIndex(item => item == '')
var
idx
=
value
.
findIndex
(
item
=>
item
==
''
)
//
if (idx != -1 && this.searchForm.afterSaleStatuses.length < this.searchFormData[formIdx].optionList.length) {
if
(
idx
!=
-
1
&&
this
.
searchForm
.
afterSaleStatuses
.
length
<
this
.
searchFormData
[
formIdx
].
optionList
.
length
)
{
//
this.searchForm.afterSaleStatuses.splice(idx, 1)
this
.
searchForm
.
afterSaleStatuses
.
splice
(
idx
,
1
)
//
} else if (idx == -1 && this.searchForm.afterSaleStatuses.length == this.searchFormData[formIdx].optionList.length - 1) {
}
else
if
(
idx
==
-
1
&&
this
.
searchForm
.
afterSaleStatuses
.
length
==
this
.
searchFormData
[
formIdx
].
optionList
.
length
-
1
)
{
//
this.searchForm.afterSaleStatuses.push('')
this
.
searchForm
.
afterSaleStatuses
.
push
(
''
)
//
}
}
//
}
}
//
this.oldVal.afterSaleStatuses = this.$common.utils.deepClone(this.searchForm.afterSaleStatuses)
this
.
oldVal
.
afterSaleStatuses
=
this
.
$common
.
utils
.
deepClone
(
this
.
searchForm
.
afterSaleStatuses
)
//
}
}
//
},
},
{
{
label
:
'门店'
,
label
:
'门店'
,
name
:
'merchantName'
,
name
:
'merchantName'
,
...
@@ -699,14 +699,14 @@ export default {
...
@@ -699,14 +699,14 @@ export default {
return
cellValue
.
orderType
==
1
?
'是'
:
'否'
return
cellValue
.
orderType
==
1
?
'是'
:
'否'
}
}
},
},
//
{
{
//
label: '售后状态',
label
:
'售后状态'
,
//
prop: 'afterSaleStatus',
prop
:
'afterSaleStatus'
,
//
width: '100',
width
:
'100'
,
//
formatter: cellValue => {
formatter
:
cellValue
=>
{
//
return this.baseData.afterSaleStatusList.map(item => item.confId).includes(cellValue.afterSaleStatus + '') ? this.baseData.afterSaleStatusList.find(item => item.confId == cellValue.afterSaleStatus).confName : '-'
return
this
.
baseData
.
afterSaleStatusList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
afterSaleStatus
+
''
)
?
this
.
baseData
.
afterSaleStatusList
.
find
(
item
=>
item
.
confId
==
cellValue
.
afterSaleStatus
).
confName
:
'-'
//
}
}
//
},
},
{
{
label
:
'结算方式'
,
label
:
'结算方式'
,
prop
:
'deliveryType'
,
prop
:
'deliveryType'
,
...
...
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