Commit 1defe410 by wangql
2 parents 10fb785c 57510b55
...@@ -150,12 +150,15 @@ ...@@ -150,12 +150,15 @@
type="date" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
placeholder="选择日期" placeholder="选择日期"
:picker-options="dateOptions"
@change="changeValue"
></el-date-picker>- ></el-date-picker>-
<el-time-picker <el-time-picker
v-model="basicForm.sendDate" v-model="basicForm.sendDate"
size="small" size="small"
value-format="HH:mm:ss" value-format="HH:mm:ss"
placeholder="选择时间" placeholder="选择时间"
:picker-options="timeOptions"
></el-time-picker> ></el-time-picker>
</div> </div>
</el-form-item> </el-form-item>
...@@ -278,7 +281,17 @@ export default { ...@@ -278,7 +281,17 @@ export default {
// 是否有修改筛选成员 // 是否有修改筛选成员
isUpdate: true, isUpdate: true,
tagging: [], tagging: [],
groupNumber: '' groupNumber: '',
dateOptions: {
disabledDate(time) {
let now = new Date()
now.setTime(now.getTime() - 3600 * 1000 * 24)
return time.getTime() < now
}
},
timeOptions: {
selectableRange: '00:00:00 - 23:59:59'
}
} }
}, },
mounted() { mounted() {
...@@ -438,6 +451,22 @@ export default { ...@@ -438,6 +451,22 @@ export default {
this.groupNumber = res this.groupNumber = res
this.isUpdate = false this.isUpdate = false
}) })
},
changeValue(v) {
console.log(v, Date.now())
const date = new Date(v).getTime()
if (date < Date.now()) {
this.timeOptions = {
selectableRange: `${dayjs()
.add(1, 'm')
.format('HH:mm')}:00 - 23:59:59`
}
console.log(this.timeOptions)
} else {
this.timeOptions = {
selectableRange: '00:00:00 - 23:59:59'
}
}
} }
} }
} }
......
...@@ -52,12 +52,15 @@ ...@@ -52,12 +52,15 @@
type="date" type="date"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
placeholder="选择日期" placeholder="选择日期"
:picker-options="dateOptions"
@change="changeValue"
></el-date-picker>- ></el-date-picker>-
<el-time-picker <el-time-picker
v-model="basicForm.sendDate" v-model="basicForm.sendDate"
size="small" size="small"
value-format="HH:mm:ss" value-format="HH:mm:ss"
placeholder="选择时间" placeholder="选择时间"
:picker-options="timeOptions"
></el-time-picker> ></el-time-picker>
</div> </div>
</el-form-item> </el-form-item>
...@@ -97,6 +100,7 @@ import Vue from 'vue' ...@@ -97,6 +100,7 @@ import Vue from 'vue'
import WelcomeWords from './components/welcomeWords.vue' import WelcomeWords from './components/welcomeWords.vue'
import SelectMembers from './components/selectMembers.vue' import SelectMembers from './components/selectMembers.vue'
import Preview from './components/preview.vue' import Preview from './components/preview.vue'
import * as dayjs from 'dayjs'
export default { export default {
components: { components: {
WelcomeWords, WelcomeWords,
...@@ -166,7 +170,17 @@ export default { ...@@ -166,7 +170,17 @@ export default {
] ]
}, },
membersVisible: false, membersVisible: false,
key: new Date() key: new Date(),
dateOptions: {
disabledDate(time) {
let now = new Date()
now.setTime(now.getTime() - 3600 * 1000 * 24)
return time.getTime() < now
}
},
timeOptions: {
selectableRange: '00:00:00 - 23:59:59'
}
} }
}, },
mounted() { mounted() {
...@@ -246,6 +260,22 @@ export default { ...@@ -246,6 +260,22 @@ export default {
}) })
} }
}) })
},
changeValue(v) {
console.log(v, Date.now())
const date = new Date(v).getTime()
if (date < Date.now()) {
this.timeOptions = {
selectableRange: `${dayjs()
.add(1, 'm')
.format('HH:mm')}:00 - 23:59:59`
}
console.log(this.timeOptions)
} else {
this.timeOptions = {
selectableRange: '00:00:00 - 23:59:59'
}
}
} }
} }
} }
......
...@@ -185,7 +185,7 @@ export default { ...@@ -185,7 +185,7 @@ export default {
} }
.statistics-li { .statistics-li {
display: inline-block; display: inline-block;
width: 142px; // width: 142px;
color: #424242; color: #424242;
font-size: 14px; font-size: 14px;
text-align: center; text-align: center;
...@@ -193,6 +193,7 @@ export default { ...@@ -193,6 +193,7 @@ export default {
&.statistics-border { &.statistics-border {
padding-right: 35 px; padding-right: 35 px;
margin-right: 0; margin-right: 0;
padding-right: 36px;
border-right: 1px solid #5850ff; border-right: 1px solid #5850ff;
} }
.statistics-number { .statistics-number {
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
:class="[item.status == 0 ? 'unsend' : 'send']" :class="[item.status == 0 ? 'unsend' : 'send']"
>{{ item.status == 0 ? '未' : '已' }}发送</span> >{{ item.status == 0 ? '未' : '已' }}发送</span>
</div> </div>
<div class="info-num">共{{ item.customerCount }}个客户</div> <div class="info-num">共{{ item.customerCount ? item.customerCount : 0 }}个客户</div>
</div> </div>
<div class="info-right"> <div class="info-right">
<div v-if="item.remindStatus == 1">已提醒</div> <div v-if="item.remindStatus == 1">已提醒</div>
...@@ -68,6 +68,7 @@ ...@@ -68,6 +68,7 @@
<div class="info-name"> <div class="info-name">
{{ item.customerName }} {{ item.customerName }}
<div <div
class="customer-table"
:class="[item.status == 0 ? 'unsend' : 'send']" :class="[item.status == 0 ? 'unsend' : 'send']"
>{{ item.status == 0 ? '未' : '已' }}送达</div> >{{ item.status == 0 ? '未' : '已' }}送达</div>
</div> </div>
...@@ -260,6 +261,9 @@ export default { ...@@ -260,6 +261,9 @@ export default {
color: #fff; color: #fff;
border-radius: 2px; border-radius: 2px;
} }
.customer-table {
display: table;
}
div { div {
margin-top: 10px; margin-top: 10px;
font-size: 14px; font-size: 14px;
......
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
title="浏览量" title="浏览量"
width="200" width="200"
trigger="hover" trigger="hover"
content="购买活动商品的账号数量。" content="进入活动页面但未购买商品的张傲数量+购买活动商品的账号数量。"
> >
<img slot="reference" :src="iconUrl" alt /> <img slot="reference" :src="iconUrl" alt />
</el-popover> </el-popover>
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
title="累计销量" title="累计销量"
width="200" width="200"
trigger="hover" trigger="hover"
content="购买活动商品的账号数量。" content="购买活动商品付款金额的累加。"
> >
<img slot="reference" :src="iconUrl" alt /> <img slot="reference" :src="iconUrl" alt />
</el-popover> </el-popover>
......
...@@ -237,7 +237,7 @@ export default { ...@@ -237,7 +237,7 @@ export default {
//权益 - 弹窗 //权益 - 弹窗
isDialogVisible: false, isDialogVisible: false,
merchantData: {}, merchantData: {},
merchantId: 44184606 //记得改 merchantId: 0 //记得改 44184606
} }
}, },
created() { created() {
......
...@@ -67,7 +67,8 @@ ...@@ -67,7 +67,8 @@
</el-table-column> </el-table-column>
<el-table-column prop="orderStatus" label="状态" align="center"> <el-table-column prop="orderStatus" label="状态" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.orderStatus == 2 ? '待收货' : scope.row.orderStatus == 3 ? '已完成' : scope.row.orderStatus == 4 ? '售后中' : scope.row.orderStatus == 2 ? '退款失败' : scope.row.orderStatus == 2 ? '已退款' : '' }}</span> <span>{{ scope.row.orderStatus == 2 ? '待收货' : scope.row.orderStatus == 3 ? '已完成' : scope.row.orderStatus == 4 ? '售后中' : scope.row.orderStatus == 5 ? '退款失败' : scope.row.orderStatus == 6 ? '已退款' : '' }}</span>
<div>{{scope.row.refundReason}}</div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -113,25 +114,12 @@ export default { ...@@ -113,25 +114,12 @@ export default {
this.$set(this.tableData[0], 'totalPrice', this.detail.originalPrice) this.$set(this.tableData[0], 'totalPrice', this.detail.originalPrice)
this.$set(this.tableData[0], 'realPayPrice', this.detail.realPayPrice) this.$set(this.tableData[0], 'realPayPrice', this.detail.realPayPrice)
this.$set(this.tableData[0], 'orderStatus', this.detail.orderStatus) this.$set(this.tableData[0], 'orderStatus', this.detail.orderStatus)
this.$set(this.tableData[0],'refundReason',this.detail.refundReason)
}else{ }else{
this.$message.error(`${res.message}`) this.$message.error(`${res.message}`)
} }
}) })
}, },
// setTableData() {
// this.$set(this.tableData[0], 'couponList', this.detail.couponList)
// this.$set(this.tableData[0], 'orderType', this.detail.orderType)
// this.$set(this.tableData[0], 'effectiveNum', this.detail.effectiveNum)
// this.$set(this.tableData[0], 'originalPrice', this.detail.originalPrice)
// this.$set(this.tableData[0], 'amount', 1)
// this.$set(this.tableData[0], 'totalPrice', this.detail.originalPrice)
// this.$set(this.tableData[0], 'realPayPrice', this.detail.realPayPrice)
// this.$set(this.tableData[0], 'orderStatus', this.detail.orderStatus)
// console.log(this.tableData[0], '表格数据')
// },
goBack() { goBack() {
console.log(this.detail, 'gggg') console.log(this.detail, 'gggg')
this.$router.go(-1) this.$router.go(-1)
......
...@@ -203,7 +203,7 @@ export default { ...@@ -203,7 +203,7 @@ export default {
} }
} }
}) })
console.log('编辑内容', this.choseItemList, this.totalPrice)
this.copyTotalPrice = this.totalPrice this.copyTotalPrice = this.totalPrice
this.copyRuleForm = JSON.parse(JSON.stringify(this.ruleForm)) //深拷贝一份数据 this.copyRuleForm = JSON.parse(JSON.stringify(this.ruleForm)) //深拷贝一份数据
this.copyChoseItemList = this.choseItemList this.copyChoseItemList = this.choseItemList
...@@ -225,7 +225,7 @@ export default { ...@@ -225,7 +225,7 @@ export default {
serviceQuantity: 0 serviceQuantity: 0
} }
}) })
console.log(this.allItemList, '服务套餐')
if (this.id) { if (this.id) {
this.getServiceInfo() //获取编辑详情 this.getServiceInfo() //获取编辑详情
} }
...@@ -242,12 +242,12 @@ export default { ...@@ -242,12 +242,12 @@ export default {
closeChoseItemFun(item, index) { closeChoseItemFun(item, index) {
this.totalPrice = this.totalPrice - item.vipPrice * item.serviceQuantity this.totalPrice = this.totalPrice - item.vipPrice * item.serviceQuantity
// item.serviceQuantity = 0 // item.serviceQuantity = 0
this.allItemList.forEach(ele => { // this.allItemList.forEach(ele => {
if (ele.id == item.serviceId) { // if (ele.id == item.serviceId) {
ele.serviceQuantity = 0 // ele.serviceQuantity = 0
} // }
}) // })
this.selectNumFun() // this.selectNumFun()
this.choseItemList.splice(index, 1) this.choseItemList.splice(index, 1)
}, },
selectNumFun() { selectNumFun() {
...@@ -402,6 +402,7 @@ export default { ...@@ -402,6 +402,7 @@ export default {
serviceId: ele.id serviceId: ele.id
} }
}) })
console.log('确定之后choseItemList', this.choseItemList)
this.setmealDialogVisible = false this.setmealDialogVisible = false
}, },
handleClose() { handleClose() {
...@@ -415,7 +416,7 @@ export default { ...@@ -415,7 +416,7 @@ export default {
// //第二个参数这里是对象,不是number(n) // //第二个参数这里是对象,不是number(n)
// return preValue + choseItem.vipPrice * choseItem.serviceQuantity // return preValue + choseItem.vipPrice * choseItem.serviceQuantity
// }, 0) // }, 0)
this.getSetmealServiceFun() // this.getSetmealServiceFun()
}, },
handleTipClose() { handleTipClose() {
this.isTipDialogVisible = false this.isTipDialogVisible = false
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!