Commit 70d980a0 by cwq0219
2 parents 77011b71 4167f960
...@@ -73,8 +73,8 @@ ...@@ -73,8 +73,8 @@
</template> </template>
<!-- 新增时并且为指定商品时显示,编辑或者查看时也显示 --> <!-- 新增时并且为指定商品时显示,编辑或者查看时也显示 -->
<div slot="proTable" class="select-pro"> <div slot="proTable" class="select-pro">
<div style="height:70px" v-if="editForm.goodsRefList.length"></div> <!-- <div style="height:70px" v-if="editForm.goodsRefList.length"></div> -->
<GLTable v-show="editForm.goodsRefList.length" :hasPage="false" :tableParams="tableParams" :tableData="editForm.goodsRefList" style="padding-left:10px;padding-right:10px"> <GLTable v-show="editForm.goodsRefList.length" :hasPage="false" :tableParams="tableParams" :tableData="editForm.goodsRefList" style="padding-left:10px;width:70vw;max-height:350px;overflow: auto;">
<template slot="goodsImage" slot-scope="scope"> <template slot="goodsImage" slot-scope="scope">
<img class="img-60" :src="scope.scope.goodsImage" /> <img class="img-60" :src="scope.scope.goodsImage" />
</template> </template>
...@@ -199,17 +199,6 @@ export default { ...@@ -199,17 +199,6 @@ export default {
addHtml: 'useBarriersHtml' addHtml: 'useBarriersHtml'
}, },
{ {
label: '面值',
name: 'denomination',
addHtml: 'denominationHtml'
},
{
label: '库存',
name: 'stock',
width: '150px',
type: 'input'
},
{
label: '适用商品', label: '适用商品',
name: 'goods', name: 'goods',
addHtml: 'goodsHtml', addHtml: 'goodsHtml',
...@@ -222,6 +211,17 @@ export default { ...@@ -222,6 +211,17 @@ export default {
isHide: true isHide: true
}, },
{ {
label: '面值',
name: 'denomination',
addHtml: 'denominationHtml'
},
{
label: '库存',
name: 'stock',
width: '150px',
type: 'input'
},
{
label: '使用说明', label: '使用说明',
name: 'useDescription', name: 'useDescription',
addHtml: 'useDescriptionHtml' addHtml: 'useDescriptionHtml'
...@@ -282,27 +282,27 @@ export default { ...@@ -282,27 +282,27 @@ export default {
}, },
'editForm.useChannel'(newValue, oldValue) { 'editForm.useChannel'(newValue, oldValue) {
if (newValue == 1) { if (newValue == 1) {
this.editFormData[6].isHide = false this.editFormData[4].isHide = false
if (this.editForm.goodsRefList.length) { if (this.editForm.goodsRefList.length) {
this.editFormData[7].isHide = false this.editFormData[5].isHide = false
} }
} else { } else {
this.editForm.useBarriers = '1' this.editForm.useBarriers = '1'
this.editForm.full = '' this.editForm.full = ''
this.editFormData[6].isHide = true this.editFormData[4].isHide = true
this.editFormData[7].isHide = true this.editFormData[5].isHide = true
} }
}, },
'editForm.goods'(newValue, oldValue) { 'editForm.goods'(newValue, oldValue) {
if (newValue == 1) { if (newValue == 1) {
//全部商品 //全部商品
this.minPirce = this.minPirceForAll this.minPirce = this.minPirceForAll
this.editFormData[7].isHide = true this.editFormData[5].isHide = true
} else { } else {
//指定商品 //指定商品
this.minPirce = this.minPirceForPart this.minPirce = this.minPirceForPart
if (this.editForm.goodsRefList.length) { if (this.editForm.goodsRefList.length) {
this.editFormData[7].isHide = false this.editFormData[5].isHide = false
} }
} }
if (this.editForm.denomination && this.minPirce && this.editForm.denomination * 100 > this.minPirce) { if (this.editForm.denomination && this.minPirce && this.editForm.denomination * 100 > this.minPirce) {
...@@ -314,9 +314,9 @@ export default { ...@@ -314,9 +314,9 @@ export default {
'editForm.goodsRefList'(newValue, oldValue) { 'editForm.goodsRefList'(newValue, oldValue) {
if (newValue.length) { if (newValue.length) {
this.editFormData[7].isHide = false this.editFormData[5].isHide = false
} else { } else {
this.editFormData[7].isHide = true this.editFormData[5].isHide = true
} }
}, },
...@@ -436,7 +436,6 @@ export default { ...@@ -436,7 +436,6 @@ export default {
getInfo() { getInfo() {
this.$apis.couponManage.getCouponDetailApi({ couponId: this.routeInfo.id }).then(res => { this.$apis.couponManage.getCouponDetailApi({ couponId: this.routeInfo.id }).then(res => {
console.log(res)
this.editForm = this.$common.utils.deepClone(res) this.editForm = this.$common.utils.deepClone(res)
this.editForm.useChannel = this.editForm.useChannel + '' this.editForm.useChannel = this.editForm.useChannel + ''
this.editForm.effectiveType = this.editForm.effectiveType + '' this.editForm.effectiveType = this.editForm.effectiveType + ''
...@@ -558,7 +557,6 @@ export default { ...@@ -558,7 +557,6 @@ export default {
return return
} }
var params = this.getCouponInfoParams() var params = this.getCouponInfoParams()
console.log(params)
if (this.apear == 'couponAdd' && params.useChannel == 1 && !params.goodsIdList.length) { if (this.apear == 'couponAdd' && params.useChannel == 1 && !params.goodsIdList.length) {
this.$message({ this.$message({
message: '未选择商品', message: '未选择商品',
......
...@@ -205,7 +205,6 @@ export default { ...@@ -205,7 +205,6 @@ export default {
getInfo() { getInfo() {
this.$apis.couponManage.getCouponDetailApi({ couponId: this.routeInfo.id }).then(res => { this.$apis.couponManage.getCouponDetailApi({ couponId: this.routeInfo.id }).then(res => {
console.log(res)
this.editForm = this.$common.utils.deepClone(res) this.editForm = this.$common.utils.deepClone(res)
this.editForm.effectiveType = this.editForm.effectiveType + '' this.editForm.effectiveType = this.editForm.effectiveType + ''
...@@ -278,7 +277,6 @@ export default { ...@@ -278,7 +277,6 @@ export default {
this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => { this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => {
if (valid) { if (valid) {
var params = this.getCouponInfoParams() var params = this.getCouponInfoParams()
console.log(params)
let method = '' let method = ''
if (params.couponId) { if (params.couponId) {
method = 'updateCouponApi' //后台修改优惠券 method = 'updateCouponApi' //后台修改优惠券
......
...@@ -184,7 +184,6 @@ export default { ...@@ -184,7 +184,6 @@ export default {
getInfo() { getInfo() {
this.$apis.couponManage.getCouponDetailApi({ couponId: this.routeInfo.id }).then(res => { this.$apis.couponManage.getCouponDetailApi({ couponId: this.routeInfo.id }).then(res => {
console.log(res)
this.editForm = this.$common.utils.deepClone(res) this.editForm = this.$common.utils.deepClone(res)
this.editForm.effectiveType = this.editForm.effectiveType + '' this.editForm.effectiveType = this.editForm.effectiveType + ''
...@@ -257,7 +256,6 @@ export default { ...@@ -257,7 +256,6 @@ export default {
this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => { this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => {
if (valid) { if (valid) {
var params = this.getCouponInfoParams() var params = this.getCouponInfoParams()
console.log(params)
let method = '' let method = ''
if (params.couponId) { if (params.couponId) {
method = 'updateCouponApi' //后台修改优惠券 method = 'updateCouponApi' //后台修改优惠券
......
...@@ -235,7 +235,6 @@ export default { ...@@ -235,7 +235,6 @@ export default {
getInfo() { getInfo() {
this.$apis.couponManage.getCouponDetailApi({ couponId: this.routeInfo.id }).then(res => { this.$apis.couponManage.getCouponDetailApi({ couponId: this.routeInfo.id }).then(res => {
console.log(res)
this.editForm = this.$common.utils.deepClone(res) this.editForm = this.$common.utils.deepClone(res)
this.editForm.effectiveType = this.editForm.effectiveType + '' this.editForm.effectiveType = this.editForm.effectiveType + ''
this.editForm.useType = this.editForm.useType + '' this.editForm.useType = this.editForm.useType + ''
...@@ -338,7 +337,6 @@ export default { ...@@ -338,7 +337,6 @@ export default {
this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => { this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => {
if (valid) { if (valid) {
var params = this.getCouponInfoParams() var params = this.getCouponInfoParams()
console.log(params)
let method = '' let method = ''
if (params.couponId) { if (params.couponId) {
method = 'updateCouponApi' //后台修改优惠券 method = 'updateCouponApi' //后台修改优惠券
......
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
style="width: 320px;" style="width: 320px;"
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="标签筛选"> <!-- <el-form-item label="标签筛选">
<el-button size="small" @click="openLabel"> <el-button size="small" @click="openLabel">
<i class="el-icon-plus"></i> <i class="el-icon-plus"></i>
标签筛选 标签筛选
...@@ -121,13 +121,7 @@ ...@@ -121,13 +121,7 @@
:disable-transitions="false" :disable-transitions="false"
@close="removeTag(tag, idx)" @close="removeTag(tag, idx)"
>{{ tag.name }}</el-tag> >{{ tag.name }}</el-tag>
<!-- <el-input size="small" style="outline: none; border: none"></el-input> -->
</div> </div>
<!-- <span class="label-text">
已选择
<span>{{ basicForm.userList ? basicForm.userList.length : 0 }}</span>
人
</span>-->
<div class="sale-select" v-show="basicForm.condition.labelList"> <div class="sale-select" v-show="basicForm.condition.labelList">
<div :key="key" class="el-input-tag input-tag-wrapper"> <div :key="key" class="el-input-tag input-tag-wrapper">
<el-tag <el-tag
...@@ -142,7 +136,7 @@ ...@@ -142,7 +136,7 @@
<el-input size="small" style="outline: none; border: none"></el-input> <el-input size="small" style="outline: none; border: none"></el-input>
</div> </div>
</div> </div>
</el-form-item> </el-form-item>-->
</el-form> </el-form>
</div> </div>
<div class="filter-footer"> <div class="filter-footer">
...@@ -235,7 +229,6 @@ export default { ...@@ -235,7 +229,6 @@ export default {
}, },
data() { data() {
const validatorUser = (rule, value, callback) => { const validatorUser = (rule, value, callback) => {
console.log(value, this.basicForm.userList)
const userList = this.basicForm.userList const userList = this.basicForm.userList
if (userList && userList.length != 0) { if (userList && userList.length != 0) {
callback() callback()
...@@ -244,12 +237,10 @@ export default { ...@@ -244,12 +237,10 @@ export default {
} }
} }
const validatorAttachment = (rule, value, callback) => { const validatorAttachment = (rule, value, callback) => {
console.log(this.$refs.welcome.previewList)
const previewList = this.$refs.welcome.previewList const previewList = this.$refs.welcome.previewList
if (previewList.length != 0) { if (previewList.length != 0) {
this.basicForm.attachmentList = previewList this.basicForm.attachmentList = previewList
} }
console.log(this.basicForm.attachmentList, '---')
if (this.basicForm.attachmentList) { if (this.basicForm.attachmentList) {
if (this.basicForm.attachmentList.length > 9) { if (this.basicForm.attachmentList.length > 9) {
callback(new Error('附件不可超过9个')) callback(new Error('附件不可超过9个'))
...@@ -261,7 +252,6 @@ export default { ...@@ -261,7 +252,6 @@ export default {
} }
} }
const validatorSendType = (rule, value, callback) => { const validatorSendType = (rule, value, callback) => {
console.log(value)
if (value) { if (value) {
if (value == 2) { if (value == 2) {
if (!this.basicForm.sendTime) { if (!this.basicForm.sendTime) {
...@@ -340,7 +330,6 @@ export default { ...@@ -340,7 +330,6 @@ export default {
}, },
// 成员弹窗 // 成员弹窗
handleConfirm() { handleConfirm() {
console.log(this.$refs.membersForm.innerTags)
if (this.$refs.membersForm.innerTags.length != 0) { if (this.$refs.membersForm.innerTags.length != 0) {
this.basicForm.userList = this.$refs.membersForm.innerTags this.basicForm.userList = this.$refs.membersForm.innerTags
this.openMembers() this.openMembers()
...@@ -352,7 +341,6 @@ export default { ...@@ -352,7 +341,6 @@ export default {
} }
}, },
remove(val) { remove(val) {
console.log(val, '00000')
this.$refs.membersForm.remove(val) this.$refs.membersForm.remove(val)
this.$set(this.basicForm, 'userList', this.$refs.membersForm.innerTags) this.$set(this.basicForm, 'userList', this.$refs.membersForm.innerTags)
this.key = new Date() this.key = new Date()
...@@ -362,10 +350,8 @@ export default { ...@@ -362,10 +350,8 @@ export default {
this.$refs.selectLabel.init() this.$refs.selectLabel.init()
}, },
handleSubmit() { handleSubmit() {
console.log(this.basicForm, this.$refs.welcome.previewList)
this.$refs.basicForm.validate(valid => { this.$refs.basicForm.validate(valid => {
if (valid) { if (valid) {
console.log(valid)
this.$refs.groupForm.validate(v => { this.$refs.groupForm.validate(v => {
if (v) { if (v) {
if (this.basicForm.selectType == 2 && this.groupNumber == 0) { if (this.basicForm.selectType == 2 && this.groupNumber == 0) {
...@@ -404,12 +390,10 @@ export default { ...@@ -404,12 +390,10 @@ export default {
if (params.sendType == 2) { if (params.sendType == 2) {
params.sendTimeStr = this.basicForm.sendTime + ' ' + this.basicForm.sendDate params.sendTimeStr = this.basicForm.sendTime + ' ' + this.basicForm.sendDate
} }
console.log(params)
this.addLoading = true this.addLoading = true
this.$apis.customerTransform this.$apis.customerTransform
.insert(params) .insert(params)
.then(res => { .then(res => {
console.log(res)
if (res) { if (res) {
this.$message({ this.$message({
type: 'success', type: 'success',
...@@ -432,7 +416,6 @@ export default { ...@@ -432,7 +416,6 @@ export default {
}) })
}, },
handleSelect(val) { handleSelect(val) {
console.log(val)
this.isUpdate = true this.isUpdate = true
const arr = [] const arr = []
if (val.length != 0) { if (val.length != 0) {
...@@ -444,7 +427,6 @@ export default { ...@@ -444,7 +427,6 @@ export default {
}) })
} }
this.tagging = arr this.tagging = arr
console.log(this.tagging)
}, },
// 删除标签 // 删除标签
removeTag(item, idx) { removeTag(item, idx) {
...@@ -458,7 +440,6 @@ export default { ...@@ -458,7 +440,6 @@ export default {
getGroupList() { getGroupList() {
if (this.basicForm.userList && this.basicForm.userList.length != 0) { if (this.basicForm.userList && this.basicForm.userList.length != 0) {
const staffIds = this.basicForm.userList.map(item => item.staffId) const staffIds = this.basicForm.userList.map(item => item.staffId)
console.log(staffIds)
this.$apis.customerTransform.groupList({ staffIds }).then(res => { this.$apis.customerTransform.groupList({ staffIds }).then(res => {
this.groupList = res this.groupList = res
}) })
...@@ -506,7 +487,6 @@ export default { ...@@ -506,7 +487,6 @@ export default {
}) })
}, },
changeValue(v) { changeValue(v) {
console.log(v, Date.now())
const date = new Date(v).getTime() const date = new Date(v).getTime()
if (date < Date.now()) { if (date < Date.now()) {
this.timeOptions = { this.timeOptions = {
...@@ -514,7 +494,6 @@ export default { ...@@ -514,7 +494,6 @@ export default {
.add(1, 'm') .add(1, 'm')
.format('HH:mm')}:00 - 23:59:59` .format('HH:mm')}:00 - 23:59:59`
} }
console.log(this.timeOptions)
} else { } else {
this.timeOptions = { this.timeOptions = {
selectableRange: '00:00:00 - 23:59:59' selectableRange: '00:00:00 - 23:59:59'
......
...@@ -127,7 +127,6 @@ export default { ...@@ -127,7 +127,6 @@ export default {
}, },
data() { data() {
const validatorUser = (rule, value, callback) => { const validatorUser = (rule, value, callback) => {
console.log(value)
const userList = this.basicForm.userList const userList = this.basicForm.userList
if (userList && userList.length != 0) { if (userList && userList.length != 0) {
callback() callback()
...@@ -140,7 +139,6 @@ export default { ...@@ -140,7 +139,6 @@ export default {
if (previewList.length != 0) { if (previewList.length != 0) {
this.basicForm.attachmentList = previewList this.basicForm.attachmentList = previewList
} }
console.log(this.basicForm.attachmentList, '---')
if (this.basicForm.attachmentList) { if (this.basicForm.attachmentList) {
if (this.basicForm.attachmentList.length > 9) { if (this.basicForm.attachmentList.length > 9) {
callback(new Error('附件不可超过9个')) callback(new Error('附件不可超过9个'))
...@@ -152,7 +150,6 @@ export default { ...@@ -152,7 +150,6 @@ export default {
} }
} }
const validatorSendType = (rule, value, callback) => { const validatorSendType = (rule, value, callback) => {
console.log(value)
if (value) { if (value) {
if (value == 2) { if (value == 2) {
if (!this.basicForm.sendTime) { if (!this.basicForm.sendTime) {
...@@ -170,10 +167,8 @@ export default { ...@@ -170,10 +167,8 @@ export default {
} }
} }
const nameVaild = (rule, value, callback) => { const nameVaild = (rule, value, callback) => {
console.log(value)
if (value) { if (value) {
this.$apis.customerTransform.nameVaild({ templateName: value }).then(res => { this.$apis.customerTransform.nameVaild({ templateName: value }).then(res => {
console.log(res)
if (res) { if (res) {
callback(new Error('群聊名称不可重复')) callback(new Error('群聊名称不可重复'))
} else { } else {
...@@ -252,7 +247,6 @@ export default { ...@@ -252,7 +247,6 @@ export default {
} }
}, },
remove(val) { remove(val) {
console.log(val, '00000')
this.$refs.membersForm.remove(val) this.$refs.membersForm.remove(val)
this.$set(this.basicForm, 'userList', this.$refs.membersForm.innerTags) this.$set(this.basicForm, 'userList', this.$refs.membersForm.innerTags)
this.key = new Date() this.key = new Date()
...@@ -287,11 +281,9 @@ export default { ...@@ -287,11 +281,9 @@ export default {
params.sendTimeStr = this.basicForm.sendTime + ' ' + this.basicForm.sendDate params.sendTimeStr = this.basicForm.sendTime + ' ' + this.basicForm.sendDate
} }
this.addLoading = true this.addLoading = true
console.log(params)
this.$apis.customerTransform this.$apis.customerTransform
.insert(params) .insert(params)
.then(res => { .then(res => {
console.log(res)
if (res) { if (res) {
this.$message({ this.$message({
type: 'success', type: 'success',
...@@ -313,7 +305,6 @@ export default { ...@@ -313,7 +305,6 @@ export default {
}) })
}, },
changeValue(v) { changeValue(v) {
console.log(v, Date.now())
const date = new Date(v).getTime() const date = new Date(v).getTime()
if (date < Date.now()) { if (date < Date.now()) {
this.timeOptions = { this.timeOptions = {
...@@ -321,7 +312,6 @@ export default { ...@@ -321,7 +312,6 @@ export default {
.add(1, 'm') .add(1, 'm')
.format('HH:mm')}:00 - 23:59:59` .format('HH:mm')}:00 - 23:59:59`
} }
console.log(this.timeOptions)
} else { } else {
this.timeOptions = { this.timeOptions = {
selectableRange: '00:00:00 - 23:59:59' selectableRange: '00:00:00 - 23:59:59'
......
...@@ -133,7 +133,6 @@ export default { ...@@ -133,7 +133,6 @@ export default {
if (item.equityClassId) { if (item.equityClassId) {
this.selectItem.id = item.equityClassId this.selectItem.id = item.equityClassId
} }
console.log(this.selectItem)
}, },
handleSelect() { handleSelect() {
if (!this.selectItem.id) { if (!this.selectItem.id) {
......
...@@ -111,17 +111,15 @@ export default { ...@@ -111,17 +111,15 @@ export default {
}, },
mounted() { mounted() {
this.getCustomerDetail(this.id) this.getCustomerDetail(this.id)
console.log(this.form)
this.getStatistic() this.getStatistic()
}, },
methods: { methods: {
getCustomerDetail(id) { getCustomerDetail(id) {
this.$apis.customerTransform.customerDetail({ id }).then(res => { this.$apis.customerTransform.customerDetail({ id }).then(res => {
console.log(res)
this.basicInfo = res this.basicInfo = res
// this.basicInfo.sendTime = dayjs(this.basicInfo.sendTime).format('YYYY-MM-DD HH:mm:ss') // this.basicInfo.sendTime = dayjs(this.basicInfo.sendTime).format('YYYY-MM-DD HH:mm:ss')
const previewList = res.attachmentList.map(item => { const previewList = res.attachmentList.map(item => {
if (item.attType == 7) item.attContent = JSON.parse(item.attContent) if (item.attType == 7 && item.attContent) item.attContent = JSON.parse(item.attContent)
return item return item
}) })
this.eventBus.$emit('update', previewList) this.eventBus.$emit('update', previewList)
...@@ -131,12 +129,10 @@ export default { ...@@ -131,12 +129,10 @@ export default {
const { id, form } = this const { id, form } = this
if (form == 'customer') { if (form == 'customer') {
this.$apis.customerTransform.detailStatistic({ id }).then(res => { this.$apis.customerTransform.detailStatistic({ id }).then(res => {
console.log(res)
this.statistic = res this.statistic = res
}) })
} else if (form == 'customerGroup') { } else if (form == 'customerGroup') {
this.$apis.customerTransform.groupDetailStatistic({ id }).then(res => { this.$apis.customerTransform.groupDetailStatistic({ id }).then(res => {
console.log(res)
this.statistic = res this.statistic = res
}) })
} }
......
...@@ -53,11 +53,7 @@ export default { ...@@ -53,11 +53,7 @@ export default {
} }
}, },
created() { created() {
this.$nextTick(() => {
console.log(1, this.list)
})
this.eventBus.$on('update', val => { this.eventBus.$on('update', val => {
console.log(val)
this.previewList = val this.previewList = val
}) })
}, },
......
...@@ -86,11 +86,9 @@ export default { ...@@ -86,11 +86,9 @@ export default {
this.listTree = res this.listTree = res
this.loading = false this.loading = false
// this.listTree[0].entmicroStaffResponses = this.getEmployee(this.listTree) // this.listTree[0].entmicroStaffResponses = this.getEmployee(this.listTree)
console.log(this.listTree)
this.currentArr = this.$common.utils.deepClone(this.listTree[0].entmicroStaffResponses) this.currentArr = this.$common.utils.deepClone(this.listTree[0].entmicroStaffResponses)
this.selectData.forEach(i => { this.selectData.forEach(i => {
const row = this.getEmployee(this.listTree).find(j => j.id == i.staffId) const row = this.getEmployee(this.listTree).find(j => j.id == i.staffId)
console.log(row)
this.clearSelect(row) this.clearSelect(row)
}) })
this.$nextTick(() => { this.$nextTick(() => {
...@@ -100,7 +98,6 @@ export default { ...@@ -100,7 +98,6 @@ export default {
}) })
}, },
clearSelect(row) { clearSelect(row) {
console.log(row, '2222')
this.$refs.saleTable.$refs.salelistMutiTable.toggleRowSelection(row) this.$refs.saleTable.$refs.salelistMutiTable.toggleRowSelection(row)
}, },
clearSelection() { clearSelection() {
...@@ -129,9 +126,7 @@ export default { ...@@ -129,9 +126,7 @@ export default {
const arr = [] const arr = []
if (this.currentArr && this.currentArr.length != 0) { if (this.currentArr && this.currentArr.length != 0) {
this.currentArr.forEach(item => { this.currentArr.forEach(item => {
console.log(item.staffName.indexOf(search) != -1)
if (item.staffName.indexOf(search) != -1) { if (item.staffName.indexOf(search) != -1) {
console.log(item)
arr.push(item) arr.push(item)
} }
}) })
...@@ -151,7 +146,6 @@ export default { ...@@ -151,7 +146,6 @@ export default {
// } // }
}, },
mounted() { mounted() {
console.log('islord', this.islord)
let clientHeight = document.documentElement.clientHeight let clientHeight = document.documentElement.clientHeight
this.treeHeight = clientHeight - 650 this.treeHeight = clientHeight - 650
this.listDepartmentTree() this.listDepartmentTree()
......
...@@ -245,7 +245,6 @@ export default { ...@@ -245,7 +245,6 @@ export default {
} }
}) })
.filter(item => item) .filter(item => item)
console.log(labelTreeRets)
this.$emit('tagSelected', labelTreeRets) this.$emit('tagSelected', labelTreeRets)
}, },
//全选 //全选
......
...@@ -93,7 +93,6 @@ export default { ...@@ -93,7 +93,6 @@ export default {
} }
}, },
remove(row) { remove(row) {
console.log(row, '111')
this.$refs.selectEmpTabel.clearSelect(row) this.$refs.selectEmpTabel.clearSelect(row)
}, },
//查询 //查询
...@@ -118,10 +117,7 @@ export default { ...@@ -118,10 +117,7 @@ export default {
// this.$emit('closeDrawer') // this.$emit('closeDrawer')
// } // }
}, },
mounted() { mounted() {}
console.log(111)
// this.listEntFollowerType()
}
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
......
...@@ -170,7 +170,6 @@ export default { ...@@ -170,7 +170,6 @@ export default {
} }
}, },
inputClick(e) { inputClick(e) {
console.log(this.tag.toUpperCase(), e.target.nodeName, e)
// 监听点击事件 // 监听点击事件
this.isLocked = true this.isLocked = true
const TAG_NAME = e.target.nodeName const TAG_NAME = e.target.nodeName
......
...@@ -170,7 +170,6 @@ export default { ...@@ -170,7 +170,6 @@ export default {
handleImgChange(e, targetItem) { handleImgChange(e, targetItem) {
var reader = new FileReader() var reader = new FileReader()
var file = e.srcElement.files[0] var file = e.srcElement.files[0]
console.log(file)
// 默认1MB // 默认1MB
const limitSize = targetItem.limitSize || 1 const limitSize = targetItem.limitSize || 1
const isLt = file.size / 1024 / 1024 < limitSize const isLt = file.size / 1024 / 1024 < limitSize
...@@ -189,7 +188,6 @@ export default { ...@@ -189,7 +188,6 @@ export default {
var image = new Image() var image = new Image()
image.src = e.target.result image.src = e.target.result
image.onload = () => { image.onload = () => {
console.log(file, targetItem)
const imgFile = e.target.result const imgFile = e.target.result
const base64 = file.name.split('.')[file.name.split('.').length - 1] + '@' + imgFile.split(',')[1] const base64 = file.name.split('.')[file.name.split('.').length - 1] + '@' + imgFile.split(',')[1]
this.$apis.common.pictureUpload({ file: base64 }).then(res => { this.$apis.common.pictureUpload({ file: base64 }).then(res => {
......
...@@ -165,7 +165,6 @@ export default { ...@@ -165,7 +165,6 @@ export default {
type: 2 type: 2
}) })
.then(res => { .then(res => {
console.log(res)
this.handleSearch() this.handleSearch()
this.$message({ this.$message({
type: 'success', type: 'success',
...@@ -210,6 +209,6 @@ export default { ...@@ -210,6 +209,6 @@ export default {
width: 100%; width: 100%;
background: #ffffff; background: #ffffff;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1); box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
z-index: 1; z-index: 3;
} }
</style> </style>
...@@ -194,29 +194,24 @@ export default { ...@@ -194,29 +194,24 @@ export default {
}, },
getCustomerDetail(id) { getCustomerDetail(id) {
this.$apis.customerTransform.customerDetail({ id }).then(res => { this.$apis.customerTransform.customerDetail({ id }).then(res => {
console.log(res)
this.basicInfo = res this.basicInfo = res
}) })
}, },
getStaffList(status = null) { getStaffList(status = null) {
const id = this.$route.params.id const id = this.$route.params.id
this.$apis.customerTransform.staffList({ id, status }).then(res => { this.$apis.customerTransform.staffList({ id, status }).then(res => {
console.log(res)
this.employeelist = res ? res : [] this.employeelist = res ? res : []
}) })
}, },
getCustomerList(status = null) { getCustomerList(status = null) {
const id = this.$route.params.id const id = this.$route.params.id
this.$apis.customerTransform.customerDetailList({ id, status }).then(res => { this.$apis.customerTransform.customerDetailList({ id, status }).then(res => {
console.log(res)
this.customerlist = res ? res : [] this.customerlist = res ? res : []
}) })
}, },
remindUserGroup() { remindUserGroup() {
const id = this.$route.params.id const id = this.$route.params.id
this.$apis.customerTransform.remindUserGroup({ id, type: 1 }).then(res => { this.$apis.customerTransform.remindUserGroup({ id, type: 1 }).then(res => {})
console.log(res)
})
} }
} }
} }
......
...@@ -275,7 +275,6 @@ export default { ...@@ -275,7 +275,6 @@ export default {
} }
// if (type == 1) { // if (type == 1) {
this.$apis.customerTransform.listRemindOperate(params).then(res => { this.$apis.customerTransform.listRemindOperate(params).then(res => {
console.log(res)
this.$message({ this.$message({
type: 'success', type: 'success',
message: '操作成功!' message: '操作成功!'
......
...@@ -78,7 +78,6 @@ export default { ...@@ -78,7 +78,6 @@ export default {
const data = val.map(i => i.totalSales) const data = val.map(i => i.totalSales)
this.option.yAxis.data = yData this.option.yAxis.data = yData
this.option.series[0].data = data this.option.series[0].data = data
console.log(this.option)
this.option && this.myChart.setOption(this.option) this.option && this.myChart.setOption(this.option)
} }
} }
......
...@@ -67,7 +67,6 @@ export default { ...@@ -67,7 +67,6 @@ export default {
}, },
watch: { watch: {
list(val) { list(val) {
console.log(val)
const xData = val.map(i => i.dataDateStr) const xData = val.map(i => i.dataDateStr)
const yData = val.map(i => i.amount) const yData = val.map(i => i.amount)
this.option.xAxis.data = xData this.option.xAxis.data = xData
......
...@@ -29,7 +29,7 @@ export default { ...@@ -29,7 +29,7 @@ export default {
{ {
name: '券类营销', name: '券类营销',
type: 'pie', type: 'pie',
radius: '70%', radius: '60%',
label: { label: {
formatter: '{b}\n \n{c} 张' formatter: '{b}\n \n{c} 张'
}, },
...@@ -64,7 +64,6 @@ export default { ...@@ -64,7 +64,6 @@ export default {
} }
}) })
this.option.series[0].data = arr this.option.series[0].data = arr
console.log(arr)
this.option && this.myChart.setOption(this.option) this.option && this.myChart.setOption(this.option)
} }
}, },
......
...@@ -34,36 +34,34 @@ ...@@ -34,36 +34,34 @@
<div class="customer-content"> <div class="customer-content">
<!-- 券类营销 --> <!-- 券类营销 -->
<div class="border coupons"> <div class="border coupons">
<div class="name">券类营销</div> <div class="name">优惠券数据</div>
<div class="coupons-content"> <div class="coupons-content">
<div class="coupons-left"> <div class="coupons-left">
<div class="data-item"> <div class="data-item">
<span class="data-title w-90"> <span class="data-title w-90">
优惠券总数 总发放量
<el-popover <el-popover
placement="top-start" placement="top-start"
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>
<!-- <img :src="iconUrl" alt /> --> <!-- <img :src="iconUrl" alt /> -->
</span> </span>
<span class="date-content"> <span class="date-content">
<span class="data-num">{{coupon.totalIssue}}</span>张 <span class="data-num">{{coupon.totalStock ? coupon.totalStock : '--'}}</span>张
</span> </span>
</div> </div>
<div class="data-item"> <div class="data-item">
<span class="data-title w-90"> <span class="data-title w-90">
发放总数 领取量
<el-popover <el-popover
placement="top-start" placement="top-start"
title="发放总数" width="300"
width="200"
trigger="hover" trigger="hover"
content="配置的优惠券中已发放给客户的数量。" content="发放给用户且已被领取的优惠券总张数。"
> >
<img slot="reference" :src="iconUrl" alt /> <img slot="reference" :src="iconUrl" alt />
</el-popover> </el-popover>
...@@ -75,13 +73,12 @@ ...@@ -75,13 +73,12 @@
</div> </div>
<div class="data-item"> <div class="data-item">
<span class="data-title w-90"> <span class="data-title w-90">
核销总数 核销量
<el-popover <el-popover
placement="top-start" placement="top-start"
title="核销总数" width="220"
width="200"
trigger="hover" trigger="hover"
content="已发放给客户的券被核销的数量。" content="核销用户优惠券的总张数。"
> >
<img slot="reference" :src="iconUrl" alt /> <img slot="reference" :src="iconUrl" alt />
</el-popover> </el-popover>
...@@ -114,10 +111,9 @@ ...@@ -114,10 +111,9 @@
参与活动总人数 参与活动总人数
<el-popover <el-popover
placement="top-start" placement="top-start"
title="参与活动总人数" width="270"
width="200"
trigger="hover" trigger="hover"
content="购买活动商品的账号数量。" content="参与活动且购买活动商品的总人数。"
> >
<img slot="reference" :src="iconUrl" alt /> <img slot="reference" :src="iconUrl" alt />
</el-popover> </el-popover>
...@@ -132,10 +128,9 @@ ...@@ -132,10 +128,9 @@
浏览量 浏览量
<el-popover <el-popover
placement="top-start" placement="top-start"
title="浏览量" width="255"
width="200"
trigger="hover" trigger="hover"
content="进入活动页面但未购买商品的账号数量+购买活动商品的账号数量。" content="用户进入活动页面的总浏览次数。"
> >
<img slot="reference" :src="iconUrl" alt /> <img slot="reference" :src="iconUrl" alt />
</el-popover> </el-popover>
...@@ -147,13 +142,12 @@ ...@@ -147,13 +142,12 @@
</div> </div>
<div class="data-item"> <div class="data-item">
<span class="data-title w-118"> <span class="data-title w-118">
累计销量 累计销售额
<el-popover <el-popover
placement="top-start" placement="top-start"
title="累计销量" width="240"
width="200"
trigger="hover" trigger="hover"
content="购买活动商品付款金额的累加。" content="用户购买活动商品的总销售额。"
> >
<img slot="reference" :src="iconUrl" alt /> <img slot="reference" :src="iconUrl" alt />
</el-popover> </el-popover>
...@@ -214,7 +208,7 @@ ...@@ -214,7 +208,7 @@
</div> </div>
<div class="bar-box"> <div class="bar-box">
<BarChart :list.sync="equity.countMerchantOrderList"></BarChart> <BarChart :list.sync="equity.countMerchantOrderList"></BarChart>
<div class="no-data" v-if="!equity.countMerchantOrderList">暂无数据</div> <div class="no-data" v-show="!equity.countMerchantOrderList">暂无数据</div>
</div> </div>
<div> <div>
...@@ -342,7 +336,7 @@ export default { ...@@ -342,7 +336,7 @@ export default {
title: '商品销售', title: '商品销售',
content: '商品管理可对门店创建的商品进行自主上下架,管理商品的销售订单。', content: '商品管理可对门店创建的商品进行自主上下架,管理商品的销售订单。',
linkName: '上架商品', linkName: '上架商品',
path: '/productGroup/index' path: '/productStore/index'
} }
], ],
date: [], date: [],
...@@ -365,7 +359,6 @@ export default { ...@@ -365,7 +359,6 @@ export default {
this.$set(this.date, 0, start.setTime(start.getTime() - 3600 * 1000 * 24 * 14)) this.$set(this.date, 0, start.setTime(start.getTime() - 3600 * 1000 * 24 * 14))
this.$set(this.date, 1, new Date()) this.$set(this.date, 1, new Date())
this.init(this.date) this.init(this.date)
console.log(this.$globalState)
}, },
methods: { methods: {
init(date) { init(date) {
...@@ -378,7 +371,6 @@ export default { ...@@ -378,7 +371,6 @@ export default {
this.merchantStatistical() this.merchantStatistical()
}, },
dateChange(val, pointUnit = 1) { dateChange(val, pointUnit = 1) {
console.log(val)
const params = { const params = {
dataStartDateStr: dayjs(val[0]).format('YYYY-MM-DD'), dataStartDateStr: dayjs(val[0]).format('YYYY-MM-DD'),
dataEndDateStr: dayjs(val[1]).format('YYYY-MM-DD'), dataEndDateStr: dayjs(val[1]).format('YYYY-MM-DD'),
...@@ -422,7 +414,6 @@ export default { ...@@ -422,7 +414,6 @@ export default {
} }
}, },
jumpPage(path) { jumpPage(path) {
console.log(path)
this.$router.push(path) this.$router.push(path)
}, },
couponStatistical() { couponStatistical() {
...@@ -434,15 +425,19 @@ export default { ...@@ -434,15 +425,19 @@ export default {
}) })
}, },
equityStatistical() { equityStatistical() {
this.$apis.home.equityStatistical({}).then(res => { this.$apis.home
.equityStatistical({})
.then(res => {
this.equity = res this.equity = res
this.equity.weekFlag = this.equity.lastWeekDayMemberShipCompared.indexOf('-') == -1 this.equity.weekFlag = this.equity.lastWeekDayMemberShipCompared.indexOf('-') == -1
this.equity.dayFlag = this.equity.yesterdayMembershipSequential.indexOf('-') == -1 this.equity.dayFlag = this.equity.yesterdayMembershipSequential.indexOf('-') == -1
}) })
.catch(err => {
this.equity.countMerchantOrderList = ''
})
}, },
merchantStatistical() { merchantStatistical() {
this.$apis.home.merchantStatistical({}).then(res => { this.$apis.home.merchantStatistical({}).then(res => {
console.log(res)
this.merchant = res this.merchant = res
}) })
}, },
......
...@@ -306,16 +306,14 @@ mounted () { ...@@ -306,16 +306,14 @@ mounted () {
}, },
getCardContentFun() { getCardContentFun() {
getCardContent({ merchantId: this.merchantId }).then(res => { getCardContent({ merchantId: this.merchantId }).then(res => {
if(!(res && res.length)){ if(!res){
return return
} }
// this.ruleForm.equityId = res[0].id this.ruleForm.equityId = res.equityClassId
this.ruleForm.equityId = res[0].equityClassId this.ruleForm.cardName = res.equityName
this.ruleForm.cardName = res[0].cardClassName this.ruleForm.price = res.goodPrice
this.ruleForm.price = res[0].price this.ruleForm.marketPrice = res.marketPrice
this.ruleForm.marketPrice = res[0].marketPrice this.ruleForm.linkUrl = res.freeUrl
this.ruleForm.linkUrl = res[0].url
this.ruleForm.tryAble = res[0].tryAble
}) })
}, },
openEditWrap() { openEditWrap() {
......
...@@ -150,12 +150,8 @@ export default { ...@@ -150,12 +150,8 @@ export default {
this.merchantName = this.$globalState.session.merchantName this.merchantName = this.$globalState.session.merchantName
} }
// if (this.id) {
this.getSetmealServiceFun() //获取服务套餐,执行完了之后去获取编辑详情
// }else{ this.getSetmealServiceFun() //获取服务套餐,执行完了之后去获取编辑详情
// this.getSetmealServiceFun()
// }
}, },
watch: { watch: {
// allItemList: { // allItemList: {
...@@ -243,7 +239,7 @@ export default { ...@@ -243,7 +239,7 @@ export default {
}, },
//删除该条服务套餐(让item.serviceQuantity==0) //删除该条服务套餐(让item.serviceQuantity==0)
closeChoseItemFun(item, index) { closeChoseItemFun(item, index) {
this.totalPrice = this.totalPrice - item.vipPrice * item.serviceQuantity this.totalPrice = (this.totalPrice*100 - item.vipPrice * item.serviceQuantity*100)/100
// item.serviceQuantity = 0 // item.serviceQuantity = 0
// this.allItemList.forEach(ele => { // this.allItemList.forEach(ele => {
// if (ele.id == item.serviceId) { // if (ele.id == item.serviceId) {
...@@ -259,7 +255,7 @@ export default { ...@@ -259,7 +255,7 @@ export default {
this.allItemList.forEach(item => { this.allItemList.forEach(item => {
if (item.serviceQuantity) { if (item.serviceQuantity) {
this.selectNum++ this.selectNum++
this.totalPrice += item.vipPrice * item.serviceQuantity this.totalPrice = (this.totalPrice *100+item.vipPrice * item.serviceQuantity*100)/100
} }
}) })
}, },
...@@ -307,7 +303,6 @@ export default { ...@@ -307,7 +303,6 @@ export default {
type: res.code == '0' ? 'success' : 'error' type: res.code == '0' ? 'success' : 'error'
}) })
if (res.code == '0') { if (res.code == '0') {
// this.$router.go(-1)
this.$router.push("/memberCenter/setmeal") this.$router.push("/memberCenter/setmeal")
} }
}) })
...@@ -351,7 +346,9 @@ export default { ...@@ -351,7 +346,9 @@ export default {
}, },
goBack() { goBack() {
// this.$router.go(-1)
if (JSON.stringify(this.ruleForm) == JSON.stringify(this.copyRuleForm) && this.choseItemList.length == this.copyChoseItemList.length && this.totalPrice == this.copyTotalPrice) { if (JSON.stringify(this.ruleForm) == JSON.stringify(this.copyRuleForm) && this.choseItemList.length == this.copyChoseItemList.length && this.totalPrice == this.copyTotalPrice) {
// this.$router.go(-1)
this.$router.push("/memberCenter/setmeal") this.$router.push("/memberCenter/setmeal")
} else { } else {
this.isTipDialogVisible = true this.isTipDialogVisible = true
...@@ -409,7 +406,7 @@ export default { ...@@ -409,7 +406,7 @@ export default {
this.setmealDialogVisible = false this.setmealDialogVisible = false
this.totalPrice = 0 this.totalPrice = 0
this.choseItemList.forEach(item => { this.choseItemList.forEach(item => {
this.totalPrice += item.vipPrice * item.serviceQuantity this.totalPrice = (this.totalPrice*100+ item.vipPrice * item.serviceQuantity*100)/100
}) })
// this.totalPrice = this.choseItemList.reduce(function(preValue, choseItem) { // this.totalPrice = this.choseItemList.reduce(function(preValue, choseItem) {
......
...@@ -177,7 +177,6 @@ export default { ...@@ -177,7 +177,6 @@ export default {
const imgFile = e.target.result const imgFile = e.target.result
const base64 = file.name.split('.')[file.name.split('.').length - 1] + '@' + imgFile.split(',')[1] const base64 = file.name.split('.')[file.name.split('.').length - 1] + '@' + imgFile.split(',')[1]
this.$apis.common.uploadImgApi({ file: base64, fileType: 'image' }).then(res => { this.$apis.common.uploadImgApi({ file: base64, fileType: 'image' }).then(res => {
// console.log(res)
this.editForm[targetItem.name] = res this.editForm[targetItem.name] = res
this.$refs.editFormRef.$refs[this.editChildRef].validateField(targetItem.name) this.$refs.editFormRef.$refs[this.editChildRef].validateField(targetItem.name)
}) })
...@@ -316,7 +315,6 @@ export default { ...@@ -316,7 +315,6 @@ export default {
// this.mainImgUrl = this.editForm.goodsDetailImageList[0].content // this.mainImgUrl = this.editForm.goodsDetailImageList[0].content
// this.moveNum = this.editForm.goodsDetailImageList.length > 4 ? this.editForm.goodsDetailImageList.length - 4 : 0 // this.moveNum = this.editForm.goodsDetailImageList.length > 4 ? this.editForm.goodsDetailImageList.length - 4 : 0
this.selectedProInfo = this.$common.utils.deepClone(res) this.selectedProInfo = this.$common.utils.deepClone(res)
console.log(this.selectedProInfo)
if (this.selectedProInfo.specificationDetailList.length) { if (this.selectedProInfo.specificationDetailList.length) {
this.editFormData[5].isHide = false this.editFormData[5].isHide = false
// this.specificationDetailList = this.$common.utils.deepClone(res.specificationList) // this.specificationDetailList = this.$common.utils.deepClone(res.specificationList)
...@@ -529,7 +527,6 @@ export default { ...@@ -529,7 +527,6 @@ export default {
return false return false
} }
var params = this.getCouponInfoParams() var params = this.getCouponInfoParams()
console.log(params)
this.$apis.seckillActivity.addOrUpdateActivityApi(params).then(res => { this.$apis.seckillActivity.addOrUpdateActivityApi(params).then(res => {
this.$message({ this.$message({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!