Commit c7e336ef by cwq0219

客户列表-搜索项和表单-字段删除

1 parent 9dbdfac6
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column label="商品信息"> <el-table-column label="商品信息">
<el-table-column <!-- <el-table-column
label="基础商品" label="基础商品"
align="center" align="center"
prop="baseGoodsNameList" prop="baseGoodsNameList"
...@@ -110,8 +110,8 @@ ...@@ -110,8 +110,8 @@
</block> </block>
<p v-else>-</p> <p v-else>-</p>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column <!-- <el-table-column
label="升级商品" label="升级商品"
align="center" align="center"
prop="upgradeGoodsName" prop="upgradeGoodsName"
...@@ -127,8 +127,8 @@ ...@@ -127,8 +127,8 @@
</block> </block>
<p v-else>-</p> <p v-else>-</p>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column <!-- <el-table-column
label="升级状态" label="升级状态"
align="center" align="center"
prop="upgradeFlag" prop="upgradeFlag"
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{!scope.row.upgradeFlag ? '待升级' : (scope.row.upgradeFlag === 'Y' ? '已升级' : '未升级')}}</span> <span>{{!scope.row.upgradeFlag ? '待升级' : (scope.row.upgradeFlag === 'Y' ? '已升级' : '未升级')}}</span>
</template> </template>
</el-table-column> </el-table-column> -->
<el-table-column <el-table-column
label="服务时间" label="服务时间"
align="center" align="center"
...@@ -240,9 +240,9 @@ export default { ...@@ -240,9 +240,9 @@ export default {
optionsName: 'parkServiceList', optionsName: 'parkServiceList',
changeAttr: (value, targetItem) => { changeAttr: (value, targetItem) => {
value ? this.getServiceStore(value) : this.baseData.storeIdList = [] value ? this.getServiceStore(value) : this.baseData.storeIdList = []
this.baseData.goodList = [] // this.baseData.goodList = []
this.searchForm.merchantId = '' this.searchForm.merchantId = ''
this.searchForm.baseGoodsId = '' // this.searchForm.baseGoodsId = ''
this.getOptionsList() this.getOptionsList()
} }
}, { }, {
...@@ -253,36 +253,37 @@ export default { ...@@ -253,36 +253,37 @@ export default {
optionList: [], optionList: [],
optionId: 'merchantId', optionId: 'merchantId',
optionLabel: 'merchantName', optionLabel: 'merchantName',
optionsName: 'storeIdList', optionsName: 'storeIdList'
changeAttr: (value, targetItem) => { // changeAttr: (value, targetItem) => {
this.searchForm.baseGoodsId = '' // if (value) {
if (value) { // getGoods({ 'merchantId': value }).then(res => {
getGoods({ 'merchantId': value }).then(res => { // this.baseData.goodList = res || []
this.baseData.goodList = res || [] // this.baseData.goodList.forEach(item => {
this.baseData.goodList.forEach(item => { // item.goodsName = item.goodsInfo.goodsName
item.goodsName = item.goodsInfo.goodsName // })
}) // this.getOptionsList()
this.getOptionsList() // })
}) // } else {
} else { // this.baseData.goodList = []
this.baseData.goodList = [] // this.getOptionsList()
this.getOptionsList() // }
} // }
}
}, { }, {
label: '服务时间', label: '服务时间',
name: 'successTime', name: 'successTime',
type: 'datePicker', type: 'datePicker',
pickerOptions: 'rangePickerOptions' pickerOptions: 'rangePickerOptions'
}, { },
label: '基础商品', // {
name: 'baseGoodsId', // label: '基础商品',
type: 'select', // name: 'baseGoodsId',
optionList: [], // type: 'select',
optionId: 'goodsCode', // optionList: [],
optionLabel: 'goodsName', // optionId: 'goodsCode',
optionsName: 'goodList' // optionLabel: 'goodsName',
}, { // optionsName: 'goodList'
// },
{
label: '创建时间', label: '创建时间',
name: 'createTime', name: 'createTime',
type: 'datePicker', type: 'datePicker',
...@@ -313,7 +314,7 @@ export default { ...@@ -313,7 +314,7 @@ export default {
upgradeFinishFlag: '', upgradeFinishFlag: '',
sellerMerchantId: '', sellerMerchantId: '',
merchantId: '', merchantId: '',
baseGoodsId: '', // baseGoodsId: '',
source: '' source: ''
}, },
// 表格 // 表格
...@@ -332,7 +333,7 @@ export default { ...@@ -332,7 +333,7 @@ export default {
baseData: { baseData: {
parkServiceList: [], parkServiceList: [],
storeIdList: [], storeIdList: [],
goodList: [], // goodList: [],
customerStatusList: [{ customerStatusList: [{
confId: 1, confId: 1,
confLabel: '未完成' confLabel: '未完成'
...@@ -389,7 +390,7 @@ export default { ...@@ -389,7 +390,7 @@ export default {
keyword: this.searchForm.keyword, keyword: this.searchForm.keyword,
upgradeFinishFlag: this.searchForm.upgradeFinishFlag upgradeFinishFlag: this.searchForm.upgradeFinishFlag
} }
this.searchForm.baseGoodsId && (params.baseGoodsCodeList = [this.searchForm.baseGoodsId]) // this.searchForm.baseGoodsId && (params.baseGoodsCodeList = [this.searchForm.baseGoodsId])
this.searchForm.customerStatus && (params.statusList = this.customerStatusObj[this.searchForm.customerStatus]) this.searchForm.customerStatus && (params.statusList = this.customerStatusObj[this.searchForm.customerStatus])
this.searchForm.source && (params.sourceList = this.sourceStatusObj[this.searchForm.source]) this.searchForm.source && (params.sourceList = this.sourceStatusObj[this.searchForm.source])
if (this.searchForm.successTime) { if (this.searchForm.successTime) {
...@@ -466,11 +467,11 @@ export default { ...@@ -466,11 +467,11 @@ export default {
upgradeFinishFlag: '', upgradeFinishFlag: '',
sellerMerchantId: '', sellerMerchantId: '',
merchantId: '', merchantId: '',
baseGoodsId: '', // baseGoodsId: '',
source: '' source: ''
} }
this.userInfo.beSuper && (this.baseData.storeIdList = []) this.userInfo.beSuper && (this.baseData.storeIdList = [])
this.baseData.goodList = [] // this.baseData.goodList = []
this.getOptionsList() this.getOptionsList()
}, },
handleExport() { handleExport() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!