Commit 5f1190c5 by chenwq

订单管理-售后状态

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