|
|
|
|
@ -14,9 +14,9 @@ |
|
|
|
|
<el-option v-for="item in ageData" :key="item.value" :label="item.label" :value="item.value"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="scope" slot="purchaseChannel"> |
|
|
|
|
<template slot-scope="scope" slot="purchaseChannelSearch"> |
|
|
|
|
<el-select v-model="form.purchaseChannel" placeholder="请选择购买渠道"> |
|
|
|
|
<el-option v-for="item in channelData" :key="item.value" :label="item.label" :value="item.value"></el-option> |
|
|
|
|
<el-option v-for="item in channelData" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="scope" slot="timeArrSearch"> |
|
|
|
|
@ -32,6 +32,10 @@ |
|
|
|
|
<template slot-scope="scope" slot="nameSearch"> |
|
|
|
|
<el-input v-model="form.name" placeholder="请输入来访人姓名"></el-input> |
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="scope" slot="orderNumberSearch"> |
|
|
|
|
<el-input v-model="form.orderNumber" placeholder="请输入订单编号"></el-input> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<template slot-scope="scope" slot="phonenumberSearch"> |
|
|
|
|
<el-input v-model="form.phonenumber" placeholder="请输入手机"></el-input> |
|
|
|
|
</template> |
|
|
|
|
@ -284,10 +288,10 @@ export default { |
|
|
|
|
column: [ |
|
|
|
|
{ |
|
|
|
|
label: "订单编号", |
|
|
|
|
prop: "orderNo", |
|
|
|
|
prop: "orderNumber", |
|
|
|
|
search: true, |
|
|
|
|
searchslot: true, |
|
|
|
|
minWidth: '120', |
|
|
|
|
hide: true, |
|
|
|
|
// searchSpan: 4, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
@ -350,7 +354,16 @@ export default { |
|
|
|
|
// searchSpan: 5, |
|
|
|
|
// searchLabelWidth:100 |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
label: "订单编号", |
|
|
|
|
prop: "orderNo", |
|
|
|
|
align: "center", |
|
|
|
|
// search: true, |
|
|
|
|
// searchslot: true, |
|
|
|
|
overHidden: true, |
|
|
|
|
minWidth: '120', |
|
|
|
|
// searchSpan: 4, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "姓名", |
|
|
|
|
prop: "username", |
|
|
|
|
@ -487,7 +500,9 @@ export default { |
|
|
|
|
created() { |
|
|
|
|
getPurchaseChannel().then(res => { |
|
|
|
|
this.channelData = res.data.data; |
|
|
|
|
console.log('channelData',this.channelData) |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
this.onLoad() |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
@ -590,7 +605,9 @@ export default { |
|
|
|
|
phone: this.form.phonenumber ? this.form.phonenumber : '', |
|
|
|
|
pillowHardness: this.form.hardness ? this.form.hardness : '', |
|
|
|
|
pillowMaterial: this.form.material ? this.form.material : '', |
|
|
|
|
ageRange: this.form.age ? this.form.age : '' |
|
|
|
|
ageRange: this.form.age ? this.form.age : '', |
|
|
|
|
purchaseChannel: this.form.purchaseChannel ? this.form.purchaseChannel : '', |
|
|
|
|
orderNo: this.form.orderNumber ? this.form.orderNumber : '', |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
params = { |
|
|
|
|
@ -601,6 +618,8 @@ export default { |
|
|
|
|
ageRange: this.form.age ? this.form.age : '', |
|
|
|
|
startTime: this.form.timeArr[0], |
|
|
|
|
endTime: this.form.timeArr[1], |
|
|
|
|
purchaseChannel: this.form.purchaseChannel ? this.form.purchaseChannel : '', |
|
|
|
|
orderNo: this.form.orderNumber ? this.form.orderNumber : '', |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
console.log('par', params) |
|
|
|
|
@ -624,7 +643,9 @@ export default { |
|
|
|
|
phone: this.form.phonenumber ? this.form.phonenumber : '', |
|
|
|
|
pillowHardness: this.form.hardness ? this.form.hardness : '', |
|
|
|
|
pillowMaterial: this.form.material ? this.form.material : '', |
|
|
|
|
ageRange: this.form.age ? this.form.age : '' |
|
|
|
|
ageRange: this.form.age ? this.form.age : '', |
|
|
|
|
purchaseChannel: this.form.purchaseChannel ? this.form.purchaseChannel : '', |
|
|
|
|
orderNo: this.form.orderNumber ? this.form.orderNumber : '', |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
params = { |
|
|
|
|
@ -635,6 +656,8 @@ export default { |
|
|
|
|
ageRange: this.form.age ? this.form.age : '', |
|
|
|
|
startTime: this.form.timeArr[0], |
|
|
|
|
endTime: this.form.timeArr[1], |
|
|
|
|
purchaseChannel: this.form.purchaseChannel ? this.form.purchaseChannel : '', |
|
|
|
|
orderNo: this.form.orderNumber ? this.form.orderNumber : '', |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
exportList(params).then(res => { |
|
|
|
|
@ -680,7 +703,8 @@ export default { |
|
|
|
|
console.log(res) |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
this.$message.success('删除成功'); |
|
|
|
|
this.page.pageSize = 1; |
|
|
|
|
this.page.currentPage = 1 |
|
|
|
|
this.page.pageSize = 10; |
|
|
|
|
this.onLoad() |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
|