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