|
|
|
|
@ -14,8 +14,8 @@ |
|
|
|
|
<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="purchaseChannelSearch"> |
|
|
|
|
<el-select v-model="form.purchaseChannel" placeholder="请选择购买渠道"> |
|
|
|
|
<template slot-scope="scope" slot="roadSearch"> |
|
|
|
|
<el-select v-model="form.road" placeholder="请选择购买渠道"> |
|
|
|
|
<el-option v-for="item in channelData" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</template> |
|
|
|
|
@ -48,10 +48,12 @@ |
|
|
|
|
<div v-show="scope.row.sleepingPosture == 1">仰睡</div> |
|
|
|
|
<div v-show="scope.row.sleepingPosture == 2">侧睡</div> |
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="scope" slot="road"> |
|
|
|
|
<div v-show="scope.row.road == 0">微信商城</div> |
|
|
|
|
<div v-show="scope.row.road == 1">抖音商城</div> |
|
|
|
|
<div v-show="scope.row.road == 2">微信小程序</div> |
|
|
|
|
<template slot-scope="scope" slot="purchaseChannel"> |
|
|
|
|
<div>{{calcChannel(scope.row.purchaseChannel) }}</div> |
|
|
|
|
<!-- <div v-show="scope.row.purchaseChannel == 0">微信商城</div> |
|
|
|
|
<div v-show="scope.row.purchaseChannel == 1">抖音商城</div> |
|
|
|
|
<div v-show="scope.row.purchaseChannel == 2">微信小程序</div> |
|
|
|
|
<div v-show="scope.row.purchaseChannel == 4">微信小程序</div> --> |
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="scope" slot="neckShoulderWidth"> |
|
|
|
|
<div v-show="scope.row.neckShoulderWidth != '-1'">{{ scope.row.neckShoulderWidth }}</div> |
|
|
|
|
@ -79,10 +81,10 @@ |
|
|
|
|
<template slot-scope="scope" slot="finishTime"> |
|
|
|
|
<div>{{ scope.row.finishTime !== '' ? scope.row.finishTime : '---/-/---' }}</div> |
|
|
|
|
</template> |
|
|
|
|
<template slot-scope="scope" slot="position"> |
|
|
|
|
<!-- <template slot-scope="scope" slot="position"> |
|
|
|
|
<div>{{ (scope.row.province ? scope.row.province : '') + (scope.row.city ? scope.row.city : '') + |
|
|
|
|
(scope.row.district ? scope.row.district : '') + (scope.row.detail ? scope.row.detail : '') }}</div> |
|
|
|
|
</template> |
|
|
|
|
</template> --> |
|
|
|
|
<template slot-scope="scope" slot="menuLeft"> |
|
|
|
|
<el-button icon="el-icon-delete" type="danger" size="small" plain @click="deleteItem">删除</el-button> |
|
|
|
|
<el-button icon="el-icon-download" type="warning" size="small" plain @click="exportData">导出</el-button> |
|
|
|
|
@ -118,12 +120,12 @@ |
|
|
|
|
</template> |
|
|
|
|
<div>{{ checkaccept.weight }}</div> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
<el-descriptions-item> |
|
|
|
|
<!-- <el-descriptions-item> |
|
|
|
|
<template slot="label"> |
|
|
|
|
<div>地址</div> |
|
|
|
|
</template> |
|
|
|
|
<div style="width: 158px">{{ checkaccept.position }}</div> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
</el-descriptions-item> --> |
|
|
|
|
<el-descriptions-item> |
|
|
|
|
<template slot="label">睡眠姿势</template> |
|
|
|
|
<div> |
|
|
|
|
@ -338,7 +340,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "购买渠道", |
|
|
|
|
prop: "purchaseChannel", |
|
|
|
|
prop: "road", |
|
|
|
|
search: true, |
|
|
|
|
searchslot: true, |
|
|
|
|
hide: true, |
|
|
|
|
@ -389,13 +391,13 @@ export default { |
|
|
|
|
prop: "weight", |
|
|
|
|
align: "center", |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "地址", |
|
|
|
|
overHidden: true, |
|
|
|
|
prop: "position", |
|
|
|
|
slot: true, |
|
|
|
|
align: "center", |
|
|
|
|
}, |
|
|
|
|
// { |
|
|
|
|
// label: "地址", |
|
|
|
|
// overHidden: true, |
|
|
|
|
// prop: "position", |
|
|
|
|
// slot: true, |
|
|
|
|
// align: "center", |
|
|
|
|
// }, |
|
|
|
|
{ |
|
|
|
|
label: "睡眠姿势", |
|
|
|
|
slot: true, |
|
|
|
|
@ -452,14 +454,11 @@ export default { |
|
|
|
|
slot: true, |
|
|
|
|
align: "center", |
|
|
|
|
}, |
|
|
|
|
// { |
|
|
|
|
// label: "购买渠道", |
|
|
|
|
// prop: "purchaseChannel", |
|
|
|
|
// type: "select", |
|
|
|
|
// search: true, |
|
|
|
|
// slot: true, |
|
|
|
|
// align: "center", |
|
|
|
|
// }, |
|
|
|
|
{ |
|
|
|
|
label: "购买渠道", |
|
|
|
|
prop: "purchaseChannel", |
|
|
|
|
align: "center", |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "备注", |
|
|
|
|
prop: "remark", |
|
|
|
|
@ -516,10 +515,10 @@ export default { |
|
|
|
|
detailList({ id: row.id }).then(res => { |
|
|
|
|
console.log(res) |
|
|
|
|
this.checkaccept = res.data.data; |
|
|
|
|
this.checkaccept.position = this.checkaccept.province + |
|
|
|
|
this.checkaccept.city + |
|
|
|
|
this.checkaccept.district + |
|
|
|
|
this.checkaccept.detail |
|
|
|
|
// this.checkaccept.position = this.checkaccept.province + |
|
|
|
|
// this.checkaccept.city + |
|
|
|
|
// this.checkaccept.district + |
|
|
|
|
// this.checkaccept.detail |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
selectionChange(data) { |
|
|
|
|
@ -606,7 +605,7 @@ export default { |
|
|
|
|
pillowHardness: this.form.hardness ? this.form.hardness : '', |
|
|
|
|
pillowMaterial: this.form.material ? this.form.material : '', |
|
|
|
|
ageRange: this.form.age ? this.form.age : '', |
|
|
|
|
purchaseChannel: this.form.purchaseChannel ? this.form.purchaseChannel : '', |
|
|
|
|
purchaseChannel: this.form.road ? this.form.road : '', |
|
|
|
|
orderNo: this.form.orderNumber ? this.form.orderNumber : '', |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
@ -618,7 +617,7 @@ 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 : '', |
|
|
|
|
purchaseChannel: this.form.road ? this.form.road : '', |
|
|
|
|
orderNo: this.form.orderNumber ? this.form.orderNumber : '', |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -644,7 +643,7 @@ export default { |
|
|
|
|
pillowHardness: this.form.hardness ? this.form.hardness : '', |
|
|
|
|
pillowMaterial: this.form.material ? this.form.material : '', |
|
|
|
|
ageRange: this.form.age ? this.form.age : '', |
|
|
|
|
purchaseChannel: this.form.purchaseChannel ? this.form.purchaseChannel : '', |
|
|
|
|
purchaseChannel: this.form.road ? this.form.road : '', |
|
|
|
|
orderNo: this.form.orderNumber ? this.form.orderNumber : '', |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
@ -656,7 +655,7 @@ 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 : '', |
|
|
|
|
purchaseChannel: this.form.road ? this.form.road : '', |
|
|
|
|
orderNo: this.form.orderNumber ? this.form.orderNumber : '', |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -726,10 +725,10 @@ export default { |
|
|
|
|
this.diaType = 'edit'; |
|
|
|
|
detailList({ id: row.id }).then(res => { |
|
|
|
|
this.checkaccept = res.data.data; |
|
|
|
|
this.checkaccept.position = this.checkaccept.province + |
|
|
|
|
this.checkaccept.city + |
|
|
|
|
this.checkaccept.district + |
|
|
|
|
this.checkaccept.detail |
|
|
|
|
// this.checkaccept.position = this.checkaccept.province + |
|
|
|
|
// this.checkaccept.city + |
|
|
|
|
// this.checkaccept.district + |
|
|
|
|
// this.checkaccept.detail |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|