Commit 5f1190c5 by chenwq

订单管理-售后状态

1 parent 31ca02f6
......@@ -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',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!