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
Hide 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 {
this
.
oldVal
.
orderStatuses
=
this
.
$common
.
utils
.
deepClone
(
this
.
searchForm
.
orderStatuses
)
}
},
//
{
//
label: '售后状态',
//
name: 'afterSaleStatuses',
//
type: 'select',
//
labelWidth: 72,
//
multiple: true,
//
optionList: [],
//
optionId: 'confId',
//
optionLabel: 'confName',
//
optionsName: 'searchAfterSaleStatusList',
//
changeAttr: (value, targetItem) => {
//
var isAdd = value.length > this.oldVal.afterSaleStatuses.length
//
var targetVal = value[value.length - 1]
//
var formIdx = this.searchFormData.findIndex(item => item.label == '售后状态')
//
if (!isAdd) {
//
for (var i = 0; i < this.oldVal.afterSaleStatuses.length; i++) {
//
if (!value.includes(this.oldVal.afterSaleStatuses[i])) {
//
targetVal = this.oldVal.afterSaleStatuses[i]
//
break
//
}
//
}
//
}
//
!targetVal && (this.searchForm.afterSaleStatuses = isAdd ? this.searchFormData[formIdx].optionList.map(item => item.confId) : [])
//
if (targetVal) {
//
var idx = value.findIndex(item => item == '')
//
if (idx != -1 && this.searchForm.afterSaleStatuses.length < this.searchFormData[formIdx].optionList.length) {
//
this.searchForm.afterSaleStatuses.splice(idx, 1)
//
} else if (idx == -1 && this.searchForm.afterSaleStatuses.length == this.searchFormData[formIdx].optionList.length - 1) {
//
this.searchForm.afterSaleStatuses.push('')
//
}
//
}
//
this.oldVal.afterSaleStatuses = this.$common.utils.deepClone(this.searchForm.afterSaleStatuses)
//
}
//
},
{
label
:
'售后状态'
,
name
:
'afterSaleStatuses'
,
type
:
'select'
,
labelWidth
:
72
,
multiple
:
true
,
optionList
:
[],
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionsName
:
'searchAfterSaleStatusList'
,
changeAttr
:
(
value
,
targetItem
)
=>
{
var
isAdd
=
value
.
length
>
this
.
oldVal
.
afterSaleStatuses
.
length
var
targetVal
=
value
[
value
.
length
-
1
]
var
formIdx
=
this
.
searchFormData
.
findIndex
(
item
=>
item
.
label
==
'售后状态'
)
if
(
!
isAdd
)
{
for
(
var
i
=
0
;
i
<
this
.
oldVal
.
afterSaleStatuses
.
length
;
i
++
)
{
if
(
!
value
.
includes
(
this
.
oldVal
.
afterSaleStatuses
[
i
]))
{
targetVal
=
this
.
oldVal
.
afterSaleStatuses
[
i
]
break
}
}
}
!
targetVal
&&
(
this
.
searchForm
.
afterSaleStatuses
=
isAdd
?
this
.
searchFormData
[
formIdx
].
optionList
.
map
(
item
=>
item
.
confId
)
:
[])
if
(
targetVal
)
{
var
idx
=
value
.
findIndex
(
item
=>
item
==
''
)
if
(
idx
!=
-
1
&&
this
.
searchForm
.
afterSaleStatuses
.
length
<
this
.
searchFormData
[
formIdx
].
optionList
.
length
)
{
this
.
searchForm
.
afterSaleStatuses
.
splice
(
idx
,
1
)
}
else
if
(
idx
==
-
1
&&
this
.
searchForm
.
afterSaleStatuses
.
length
==
this
.
searchFormData
[
formIdx
].
optionList
.
length
-
1
)
{
this
.
searchForm
.
afterSaleStatuses
.
push
(
''
)
}
}
this
.
oldVal
.
afterSaleStatuses
=
this
.
$common
.
utils
.
deepClone
(
this
.
searchForm
.
afterSaleStatuses
)
}
},
{
label
:
'门店'
,
name
:
'merchantName'
,
...
...
@@ -699,14 +699,14 @@ export default {
return
cellValue
.
orderType
==
1
?
'是'
:
'否'
}
},
//
{
//
label: '售后状态',
//
prop: 'afterSaleStatus',
//
width: '100',
//
formatter: cellValue => {
//
return this.baseData.afterSaleStatusList.map(item => item.confId).includes(cellValue.afterSaleStatus + '') ? this.baseData.afterSaleStatusList.find(item => item.confId == cellValue.afterSaleStatus).confName : '-'
//
}
//
},
{
label
:
'售后状态'
,
prop
:
'afterSaleStatus'
,
width
:
'100'
,
formatter
:
cellValue
=>
{
return
this
.
baseData
.
afterSaleStatusList
.
map
(
item
=>
item
.
confId
).
includes
(
cellValue
.
afterSaleStatus
+
''
)
?
this
.
baseData
.
afterSaleStatusList
.
find
(
item
=>
item
.
confId
==
cellValue
.
afterSaleStatus
).
confName
:
'-'
}
},
{
label
:
'结算方式'
,
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