Commit dd1b09a6 by chenwq

众筹版本回退

1 parent 9197b7d1
...@@ -3,14 +3,12 @@ ...@@ -3,14 +3,12 @@
<div class="marketing order-manage"> <div class="marketing order-manage">
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="flex"> <div class="flex">
<div class="flex-default"> <div class="flex-default">
<el-tabs v-model="activeName" @tab-click="handleTabClick"> <el-tabs v-model="activeName" @tab-click="handleTabClick">
<el-tab-pane label="全部订单" name="allOrder"></el-tab-pane> <el-tab-pane label="全部订单" name="allOrder"></el-tab-pane>
<el-tab-pane label="售后订单" name="afterOrder"></el-tab-pane> <el-tab-pane label="售后订单" name="afterOrder"></el-tab-pane>
</el-tabs> </el-tabs>
<span class="table-tips"> <span class="table-tips">
已生成有效订单 已生成有效订单
<span class="txt-blue">&nbsp;{{ statisticsInfo.orderCount || 0 }}&nbsp;</span> <span class="txt-blue">&nbsp;{{ statisticsInfo.orderCount || 0 }}&nbsp;</span>
...@@ -23,7 +21,6 @@ ...@@ -23,7 +21,6 @@
</div> </div>
<el-button class="default-blue-btn" :size="size" type="default" @click="handleExport">导出</el-button> <el-button class="default-blue-btn" :size="size" type="default" @click="handleExport">导出</el-button>
</div> </div>
<!-- 表格区域 - 全部订单/售后订单 - 开始 --> <!-- 表格区域 - 全部订单/售后订单 - 开始 -->
<GLTable ref="allOrderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="allOrderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<div slot="weChatName" class="flex-align" slot-scope="scope"> <div slot="weChatName" class="flex-align" slot-scope="scope">
...@@ -124,7 +121,6 @@ ...@@ -124,7 +121,6 @@
</GLDialog> </GLDialog>
</div> </div>
</template> </template>
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
...@@ -497,29 +493,19 @@ export default { ...@@ -497,29 +493,19 @@ export default {
tableOption: true, tableOption: true,
tableColumns: [ tableColumns: [
{ {
label: '客户名称', label: '订单编号',
prop: 'customerName', prop: 'orderCode',
line: 2, width: '180'
width: 180,
formatter: cellValue => {
return cellValue.customerName || '-'
}
}, },
{ {
label: '手机号', label: '商户订单号',
prop: 'customerPhone', prop: 'outTradeNo',
width: 130, width: '160',
formatter: cellValue => { formatter: cellValue => {
return cellValue.customerPhone || '-' return cellValue.outTradeNo || '-'
} }
}, },
{ {
label: '微信名称',
prop: 'weChatName',
addHtml: 'weChatName',
width: 300
},
{
label: '订单时间', label: '订单时间',
prop: 'createdDate', prop: 'createdDate',
width: '180', width: '180',
...@@ -544,6 +530,29 @@ export default { ...@@ -544,6 +530,29 @@ export default {
} }
}, },
{ {
label: '微信名称',
prop: 'weChatName',
addHtml: 'weChatName',
width: 300
},
{
label: '客户名称',
prop: 'customerName',
line: 2,
width: 180,
formatter: cellValue => {
return cellValue.customerName || '-'
}
},
{
label: '手机号',
prop: 'customerPhone',
width: 130,
formatter: cellValue => {
return cellValue.customerPhone || '-'
}
},
{
label: '车架号', label: '车架号',
prop: 'vinNo', prop: 'vinNo',
width: 130, width: 130,
...@@ -586,12 +595,6 @@ export default { ...@@ -586,12 +595,6 @@ export default {
} }
}, },
{ {
label: '其他信息',
prop: '',
width: '180',
line: 1
},
{
label: '活动名称', label: '活动名称',
prop: 'activityName', prop: 'activityName',
width: '120' width: '120'
...@@ -625,19 +628,6 @@ export default { ...@@ -625,19 +628,6 @@ export default {
formatter: cellValue => { formatter: cellValue => {
return this.baseData.deliveryTypeList.map(item => item.confId).includes(cellValue.deliveryType + '') ? this.baseData.deliveryTypeList.find(item => item.confId == cellValue.deliveryType).confName : '-' return this.baseData.deliveryTypeList.map(item => item.confId).includes(cellValue.deliveryType + '') ? this.baseData.deliveryTypeList.find(item => item.confId == cellValue.deliveryType).confName : '-'
} }
},
{
label: '订单编号',
prop: 'orderCode',
width: '180'
},
{
label: '商户订单号',
prop: 'outTradeNo',
width: '160',
formatter: cellValue => {
return cellValue.outTradeNo || '-'
}
} }
] ]
}, },
...@@ -662,12 +652,10 @@ export default { ...@@ -662,12 +652,10 @@ export default {
} }
} }
}, },
mounted() { mounted() {
// this.getCount() // this.getCount()
this.getOptionsList('searchFormData') this.getOptionsList('searchFormData')
}, },
methods: { methods: {
getParams() { getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm)) var params = JSON.parse(JSON.stringify(this.searchForm))
...@@ -682,7 +670,6 @@ export default { ...@@ -682,7 +670,6 @@ export default {
delete params.createDate delete params.createDate
return params return params
}, },
beforeSearchFn() { beforeSearchFn() {
return new Promise(resolve => { return new Promise(resolve => {
this.tableSearchForm = this.getParams() this.tableSearchForm = this.getParams()
...@@ -690,7 +677,6 @@ export default { ...@@ -690,7 +677,6 @@ export default {
resolve() resolve()
}) })
}, },
getOptionsList(formName, hasAll = true, refreshSigle) { getOptionsList(formName, hasAll = true, refreshSigle) {
if (refreshSigle) { if (refreshSigle) {
var item = this[formName].find(k => k.name == refreshSigle) var item = this[formName].find(k => k.name == refreshSigle)
...@@ -716,7 +702,6 @@ export default { ...@@ -716,7 +702,6 @@ export default {
}) })
} }
}, },
secondConfirm(title, txt, apiModule, apiName, apiParams, fn) { secondConfirm(title, txt, apiModule, apiName, apiParams, fn) {
this.$confirm(txt, title, { this.$confirm(txt, title, {
confirmButtonText: '确定', confirmButtonText: '确定',
...@@ -738,7 +723,6 @@ export default { ...@@ -738,7 +723,6 @@ export default {
} }
}) })
}, },
getCount() { getCount() {
var params = this.getParams() var params = this.getParams()
delete params.createDate delete params.createDate
...@@ -746,7 +730,6 @@ export default { ...@@ -746,7 +730,6 @@ export default {
this.statisticsInfo = res || { orderCount: '', payPriceTotal: '', refundTotal: '' } this.statisticsInfo = res || { orderCount: '', payPriceTotal: '', refundTotal: '' }
}) })
}, },
handleDetail(row) { handleDetail(row) {
this.$router.push({ this.$router.push({
path: '/orderManage/orderDetail', path: '/orderManage/orderDetail',
...@@ -755,7 +738,6 @@ export default { ...@@ -755,7 +738,6 @@ export default {
} }
}) })
}, },
// 输入快递信息 - start // 输入快递信息 - start
handleExpressClose() { handleExpressClose() {
this.isExpressVisible = !this.isExpressVisible this.isExpressVisible = !this.isExpressVisible
...@@ -765,7 +747,6 @@ export default { ...@@ -765,7 +747,6 @@ export default {
deliveryNumber: '' deliveryNumber: ''
} }
}, },
handleExpressConfirm() { handleExpressConfirm() {
this.$refs.expressRef.$refs[this.editChildRef].validate(valid => { this.$refs.expressRef.$refs[this.editChildRef].validate(valid => {
if (valid) { if (valid) {
...@@ -785,13 +766,11 @@ export default { ...@@ -785,13 +766,11 @@ export default {
} }
}) })
}, },
handleExpressInfo(row) { handleExpressInfo(row) {
this.isExpressVisible = !this.isExpressVisible this.isExpressVisible = !this.isExpressVisible
this.orderCode = row.orderCode this.orderCode = row.orderCode
}, },
// 输入快递信息 - end // 输入快递信息 - end
// 订单核销 - start // 订单核销 - start
handleWriteOffClose() { handleWriteOffClose() {
this.isWriteOffVisible = !this.isWriteOffVisible this.isWriteOffVisible = !this.isWriteOffVisible
...@@ -800,7 +779,6 @@ export default { ...@@ -800,7 +779,6 @@ export default {
verificationCode: '' verificationCode: ''
} }
}, },
handleWriteOffConfirm() { handleWriteOffConfirm() {
this.$refs.writeOffRef.$refs[this.editChildRef].validate(valid => { this.$refs.writeOffRef.$refs[this.editChildRef].validate(valid => {
if (valid) { if (valid) {
...@@ -820,7 +798,6 @@ export default { ...@@ -820,7 +798,6 @@ export default {
} }
}) })
}, },
handleWriteOff(row) { handleWriteOff(row) {
if (row.orderSource == 4) { if (row.orderSource == 4) {
this.secondConfirm('订单核销', '请确定是否核销此订单?', 'orderManage', 'crowdFundWriteOffApi', { orderCode: row.orderCode }) this.secondConfirm('订单核销', '请确定是否核销此订单?', 'orderManage', 'crowdFundWriteOffApi', { orderCode: row.orderCode })
...@@ -830,7 +807,6 @@ export default { ...@@ -830,7 +807,6 @@ export default {
this.orderCode = row.orderCode this.orderCode = row.orderCode
}, },
// 订单核销 - end // 订单核销 - end
// 退款审核 - start // 退款审核 - start
handleExamineClose() { handleExamineClose() {
this.isExamineVisible = !this.isExamineVisible this.isExamineVisible = !this.isExamineVisible
...@@ -843,7 +819,6 @@ export default { ...@@ -843,7 +819,6 @@ export default {
contactPhone: '' contactPhone: ''
} }
}, },
submitExamine(params) { submitExamine(params) {
this.$apis.orderManage.examineAllowApi(params).then(res => { this.$apis.orderManage.examineAllowApi(params).then(res => {
this.$message({ this.$message({
...@@ -857,7 +832,6 @@ export default { ...@@ -857,7 +832,6 @@ export default {
} }
}) })
}, },
handleExamineConfirm() { handleExamineConfirm() {
var params = { var params = {
id: this.orderInfo.id id: this.orderInfo.id
...@@ -876,7 +850,6 @@ export default { ...@@ -876,7 +850,6 @@ export default {
this.submitExamine(params) this.submitExamine(params)
} }
}, },
handleExamine(row) { handleExamine(row) {
this.orderCode = row.orderCode this.orderCode = row.orderCode
this.$apis.orderManage.examineDetailApi({ orderCode: row.orderCode }).then(res => { this.$apis.orderManage.examineDetailApi({ orderCode: row.orderCode }).then(res => {
...@@ -887,14 +860,12 @@ export default { ...@@ -887,14 +860,12 @@ export default {
}) })
}, },
// 退款审核 - end // 退款审核 - end
// 确认收货 - start // 确认收货 - start
handleReceivingClose() { handleReceivingClose() {
this.isReceivingVisible = !this.isReceivingVisible this.isReceivingVisible = !this.isReceivingVisible
this.orderCode = '' this.orderCode = ''
this.orderInfo = {} this.orderInfo = {}
}, },
handleReceivingConfirm() { handleReceivingConfirm() {
var params = { var params = {
id: this.orderInfo.id id: this.orderInfo.id
...@@ -911,7 +882,6 @@ export default { ...@@ -911,7 +882,6 @@ export default {
} }
}) })
}, },
handleReceiving(row) { handleReceiving(row) {
this.$apis.orderManage.examineDetailApi({ orderCode: row.orderCode }).then(res => { this.$apis.orderManage.examineDetailApi({ orderCode: row.orderCode }).then(res => {
this.orderInfo = res || {} this.orderInfo = res || {}
...@@ -921,7 +891,6 @@ export default { ...@@ -921,7 +891,6 @@ export default {
}) })
}, },
// 确认收货 - end // 确认收货 - end
setTableFinishFun() { setTableFinishFun() {
this.$refs.allOrderRef.data.forEach(item => { this.$refs.allOrderRef.data.forEach(item => {
item.vinNo = item.vin ? (item.vin.split(',').length > 1 ? item.vin.split(',') : item.vin) : '-' item.vinNo = item.vin ? (item.vin.split(',').length > 1 ? item.vin.split(',') : item.vin) : '-'
...@@ -930,22 +899,18 @@ export default { ...@@ -930,22 +899,18 @@ export default {
this.$refs.allOrderRef.data.length ? (this.$refs.allOrderRef.tableHeightValues = '') : this.$refs.allOrderRef.setTableHeightFun() this.$refs.allOrderRef.data.length ? (this.$refs.allOrderRef.tableHeightValues = '') : this.$refs.allOrderRef.setTableHeightFun()
this.getCount() this.getCount()
}, },
handleSearch() { handleSearch() {
this.$refs.allOrderRef.refreshTable() this.$refs.allOrderRef.refreshTable()
}, },
handleTabClick() { handleTabClick() {
this.handleSearch() this.handleSearch()
}, },
handleExport(row) { handleExport(row) {
var params = this.getParams() var params = this.getParams()
this.$apis.orderManage.orderExportApi(params).then(res => { this.$apis.orderManage.orderExportApi(params).then(res => {
exportFn(res) exportFn(res)
}) })
}, },
handleReset() { handleReset() {
this.searchForm = { this.searchForm = {
orderCode: '', orderCode: '',
...@@ -967,7 +932,6 @@ export default { ...@@ -967,7 +932,6 @@ export default {
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.order-table-popover { .order-table-popover {
min-width: 80px !important; min-width: 80px !important;
...@@ -993,4 +957,4 @@ export default { ...@@ -993,4 +957,4 @@ export default {
color: #5092ff; color: #5092ff;
} }
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
<!-- 众筹活动 --> <!-- 众筹活动 -->
<template> <template>
<div class="edit-share marketing edit-box edit-activity" v-loading="loading"> <div class="edit-share marketing edit-box edit-activity" v-loading="loading">
<!-- 基本信息 --> <div class="container edit-container">
<div class="container edit-container" style="min-height: 520px !important;"> <!-- 基本信息 -->
<p class="edit-title">基本信息</p> <p class="edit-title">基本信息</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"> <glsx-combi-form class="edit-form-container" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<div slot="activityImg" class="edit-tips m-t-8">展示在首页的活动详情页</div> <div slot="activityImg" class="edit-tips m-t-8">展示在首页的活动详情页</div>
...@@ -67,9 +67,7 @@ ...@@ -67,9 +67,7 @@
</p> </p>
</template> </template>
</glsx-combi-form> </glsx-combi-form>
</div> <!-- 活动配置 -->
<!-- 活动配置 -->
<div class="container edit-container crowd-config">
<p class="edit-title">活动配置</p> <p class="edit-title">活动配置</p>
<glsx-combi-form class="edit-form-container" ref="configEditFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="configEditFormData" :formRules="editRule"> <glsx-combi-form class="edit-form-container" ref="configEditFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="configEditFormData" :formRules="editRule">
<template slot="customerServiceFlag" slot-scope="scope"> <template slot="customerServiceFlag" slot-scope="scope">
...@@ -140,8 +138,7 @@ ...@@ -140,8 +138,7 @@
</div> </div>
</glsx-combi-form> </glsx-combi-form>
</div> </div>
<!-- 展示 --> <div class="wechat-box">
<!-- <div class="wechat-box">
<img class="w-100-percent" src="@/assets/seckillActivity/phone.png" /> <img class="w-100-percent" src="@/assets/seckillActivity/phone.png" />
<div class="wechat-back"> <div class="wechat-back">
<p class="wechat-name one-line-ellipsis">{{ editForm.activityName }}</p> <p class="wechat-name one-line-ellipsis">{{ editForm.activityName }}</p>
...@@ -168,7 +165,6 @@ ...@@ -168,7 +165,6 @@
<img class="icon-addr" src="@/assets/seckillActivity/icon-addr.png" /> <img class="icon-addr" src="@/assets/seckillActivity/icon-addr.png" />
</div> </div>
</div> </div>
<div class="wechat-block"> <div class="wechat-block">
<p class="wechat-block-title">{{ countDownObj.typeTxt }}</p> <p class="wechat-block-title">{{ countDownObj.typeTxt }}</p>
<p v-if="countDownObj.activityStatus != 3" class="wechat-count-down"> <p v-if="countDownObj.activityStatus != 3" class="wechat-count-down">
...@@ -189,7 +185,7 @@ ...@@ -189,7 +185,7 @@
</div> </div>
<img class="wechat-footer" src="@/assets/seckillActivity/crowd-footer.png" /> <img class="wechat-footer" src="@/assets/seckillActivity/crowd-footer.png" />
</div> </div>
</div> --> </div>
<GLFooter> <GLFooter>
<el-button @click="handleCancel" size="medium">{{ routeInfo.addOrEdit != 'detail' ? '取消' : '返回' }}</el-button> <el-button @click="handleCancel" size="medium">{{ routeInfo.addOrEdit != 'detail' ? '取消' : '返回' }}</el-button>
<el-button v-if="routeInfo.addOrEdit != 'detail'" type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button> <el-button v-if="routeInfo.addOrEdit != 'detail'" type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
...@@ -197,7 +193,6 @@ ...@@ -197,7 +193,6 @@
<select-single-pro-dialog v-if="isSingleSelectVisible" :isSingleSelectVisible="isSingleSelectVisible" :selectedProInfo="selectedProInfo" @handleSingleSelectConfirm="handleSingleSelectConfirm" @handleSingleSelectClose="handleSingleSelectClose(true)"></select-single-pro-dialog> <select-single-pro-dialog v-if="isSingleSelectVisible" :isSingleSelectVisible="isSingleSelectVisible" :selectedProInfo="selectedProInfo" @handleSingleSelectConfirm="handleSingleSelectConfirm" @handleSingleSelectClose="handleSingleSelectClose(true)"></select-single-pro-dialog>
</div> </div>
</template> </template>
<script> <script>
import { limitPrice } from '@/common/constant' import { limitPrice } from '@/common/constant'
export default { export default {
...@@ -671,9 +666,8 @@ export default { ...@@ -671,9 +666,8 @@ export default {
] ]
} }
}, },
mounted() { mounted() {
this.setMinHeight('.crowd-config') this.setMinHeight()
this.routeInfo = this.$route.query this.routeInfo = this.$route.query
this.routeInfo.addOrEdit != 'add' ? this.getInfo() : this.getMerchantInfo() this.routeInfo.addOrEdit != 'add' ? this.getInfo() : this.getMerchantInfo()
var id = this.routeInfo.id var id = this.routeInfo.id
...@@ -693,7 +687,6 @@ export default { ...@@ -693,7 +687,6 @@ export default {
} }
} }
}, },
watch: { watch: {
editForm: { editForm: {
handler(val) { handler(val) {
...@@ -723,7 +716,6 @@ export default { ...@@ -723,7 +716,6 @@ export default {
this.editForm.fictitiousViewQuantity = limitPrice(newValue, oldValue, 7, 0, 0) this.editForm.fictitiousViewQuantity = limitPrice(newValue, oldValue, 7, 0, 0)
} }
}, },
methods: { methods: {
changeFormAttr(formName, attrName, labelList, attrValue) { changeFormAttr(formName, attrName, labelList, attrValue) {
labelList.forEach(item => { labelList.forEach(item => {
...@@ -754,11 +746,9 @@ export default { ...@@ -754,11 +746,9 @@ export default {
return '' return ''
} }
}, },
addZero(i) { addZero(i) {
return i < 10 ? `0${i}` : `${i}` return i < 10 ? `0${i}` : `${i}`
}, },
findCountDownTime() { findCountDownTime() {
let startTime = new Date(this.editForm.activityTime[0]) let startTime = new Date(this.editForm.activityTime[0])
let endTime = new Date(this.editForm.activityTime[1]) let endTime = new Date(this.editForm.activityTime[1])
...@@ -771,7 +761,6 @@ export default { ...@@ -771,7 +761,6 @@ export default {
endTime: activityStatus == 1 ? startTime : activityStatus == 2 ? endTime : endTime endTime: activityStatus == 1 ? startTime : activityStatus == 2 ? endTime : endTime
} }
}, },
countDown() { countDown() {
if (this.editForm.activityTime && this.editForm.activityTime.length) { if (this.editForm.activityTime && this.editForm.activityTime.length) {
let { activityStatus, startTime, endTime } = this.findCountDownTime() let { activityStatus, startTime, endTime } = this.findCountDownTime()
...@@ -810,16 +799,13 @@ export default { ...@@ -810,16 +799,13 @@ export default {
} }
} }
}, },
handleTimeChange(value, targetItem) { handleTimeChange(value, targetItem) {
!value && (this.editForm[targetItem.name] = []) !value && (this.editForm[targetItem.name] = [])
}, },
handleIsLimit(val) { handleIsLimit(val) {
this.editForm.limitPurchaseNumber = val == 1 ? '' : '1' this.editForm.limitPurchaseNumber = val == 1 ? '' : '1'
this.editRule.limitPurchaseNumber[0].required = val != 1 this.editRule.limitPurchaseNumber[0].required = val != 1
}, },
handleRelateProChange(val) { handleRelateProChange(val) {
this.editRule.goodsId[0].required = val == 2 this.editRule.goodsId[0].required = val == 2
var idx = this.editFormData.findIndex(item => item.name == 'goodsId') var idx = this.editFormData.findIndex(item => item.name == 'goodsId')
...@@ -844,7 +830,6 @@ export default { ...@@ -844,7 +830,6 @@ export default {
} }
this.isSingleSelectVisible = !this.isSingleSelectVisible this.isSingleSelectVisible = !this.isSingleSelectVisible
}, },
getGoodInfo(id) { getGoodInfo(id) {
this.$apis.proManage.getProInfoApi({ id: id }).then(res => { this.$apis.proManage.getProInfoApi({ id: id }).then(res => {
this.selectedProInfo = this.$common.utils.deepClone(res) this.selectedProInfo = this.$common.utils.deepClone(res)
...@@ -859,7 +844,6 @@ export default { ...@@ -859,7 +844,6 @@ export default {
} }
}) })
}, },
// 规格值解构 // 规格值解构
changeSpecs(isRecovery) { changeSpecs(isRecovery) {
this.specsWidth = 100 / (this.specificationDetailList.length + 4) + '%' this.specsWidth = 100 / (this.specificationDetailList.length + 4) + '%'
...@@ -915,7 +899,6 @@ export default { ...@@ -915,7 +899,6 @@ export default {
break break
} }
} }
if (this.activityInfo && this.activityInfo.specificationDetailWithGoodsList) { if (this.activityInfo && this.activityInfo.specificationDetailWithGoodsList) {
for (var k = 0; k < this.activityInfo.specificationDetailWithGoodsList.length; k++) { for (var k = 0; k < this.activityInfo.specificationDetailWithGoodsList.length; k++) {
var templ = this.activityInfo.specificationDetailWithGoodsList[k] var templ = this.activityInfo.specificationDetailWithGoodsList[k]
...@@ -946,20 +929,16 @@ export default { ...@@ -946,20 +929,16 @@ export default {
recoverySpec() { recoverySpec() {
this.changeSpecs(true) this.changeSpecs(true)
}, },
//规格-秒杀价输入控制 //规格-秒杀价输入控制
activityPrice_input(val, maxValue) { activityPrice_input(val, maxValue) {
return this.limitPriceForInput(val, 5, 2, 0, maxValue) return this.limitPriceForInput(val, 5, 2, 0, maxValue)
}, },
//规格-活动库存输入控制 //规格-活动库存输入控制
goodsStock_input(val, maxValue) { goodsStock_input(val, maxValue) {
return this.limitPriceForInput(val, 5, 0, 0, maxValue) return this.limitPriceForInput(val, 5, 0, 0, maxValue)
}, },
// 音乐 // 音乐
handleMusicUpload() { }, handleMusicUpload() { },
musicUpload(e, targetItem) { musicUpload(e, targetItem) {
var reader = new FileReader() var reader = new FileReader()
var file = e var file = e
...@@ -997,7 +976,6 @@ export default { ...@@ -997,7 +976,6 @@ export default {
}) })
} }
}, },
// 音乐 // 音乐
handleMusic(targetItem, idx) { handleMusic(targetItem, idx) {
// stop-音频结束;play-音频播放 // stop-音频结束;play-音频播放
...@@ -1018,12 +996,10 @@ export default { ...@@ -1018,12 +996,10 @@ export default {
} }
}) })
}, },
stopMusic() { stopMusic() {
this.playObj.idx = -1 this.playObj.idx = -1
this.playObj.src = '' this.playObj.src = ''
}, },
handleMusicChange(idx) { handleMusicChange(idx) {
this.musicList.forEach((item, index) => { this.musicList.forEach((item, index) => {
if (index != idx) { if (index != idx) {
...@@ -1033,17 +1009,14 @@ export default { ...@@ -1033,17 +1009,14 @@ export default {
this.musicList[idx].isCheck = !this.musicList[idx].isCheck this.musicList[idx].isCheck = !this.musicList[idx].isCheck
this.editForm.activityMusic = this.musicList[idx].isCheck ? this.musicList[idx].addr : '' this.editForm.activityMusic = this.musicList[idx].isCheck ? this.musicList[idx].addr : ''
}, },
handleMusicBeforeUpload(file, targetItem) { handleMusicBeforeUpload(file, targetItem) {
this.stopMusic() this.stopMusic()
this.musicUpload(file, targetItem) this.musicUpload(file, targetItem)
}, },
handleMusicDelete(targetItem) { handleMusicDelete(targetItem) {
this.$set(this.editForm, targetItem.name, '') this.$set(this.editForm, targetItem.name, '')
this.fileList = [] this.fileList = []
}, },
// 表单设置 // 表单设置
handleDescribeAdd() { handleDescribeAdd() {
this.formDescribeList.push({ this.formDescribeList.push({
...@@ -1062,7 +1035,6 @@ export default { ...@@ -1062,7 +1035,6 @@ export default {
} }
}) })
}, },
getMerchantInfo() { getMerchantInfo() {
this.loading = true this.loading = true
let merchantId = this.$globalState.session.merchantId let merchantId = this.$globalState.session.merchantId
...@@ -1091,7 +1063,6 @@ export default { ...@@ -1091,7 +1063,6 @@ export default {
this.loading = false this.loading = false
}) })
}, },
getInfo() { getInfo() {
this.loading = true this.loading = true
this.$apis.seckillActivity this.$apis.seckillActivity
...@@ -1169,7 +1140,6 @@ export default { ...@@ -1169,7 +1140,6 @@ export default {
this.loading = false this.loading = false
}) })
}, },
validateRules() { validateRules() {
if (this.specificationDetailList.length) { if (this.specificationDetailList.length) {
this.editRule.activityPrice[0].required = false this.editRule.activityPrice[0].required = false
...@@ -1179,7 +1149,6 @@ export default { ...@@ -1179,7 +1149,6 @@ export default {
this.editRule.goodsStock[0].required = true this.editRule.goodsStock[0].required = true
} }
}, },
getCouponInfoParams() { getCouponInfoParams() {
var _this = this var _this = this
var param = this.$common.utils.deepClone(this.editForm) var param = this.$common.utils.deepClone(this.editForm)
...@@ -1229,15 +1198,12 @@ export default { ...@@ -1229,15 +1198,12 @@ export default {
Object.values(this.describeIdxToAttr).forEach((item, idx) => { Object.values(this.describeIdxToAttr).forEach((item, idx) => {
param['formDescribe' + item] = this.formDescribeList.length > idx ? this.formDescribeList[idx].value : '' param['formDescribe' + item] = this.formDescribeList.length > idx ? this.formDescribeList[idx].value : ''
}) })
return param return param
}, },
// 跳转 // 跳转
whereToGo(id) { whereToGo(id) {
document.getElementById(id).scrollIntoView() document.getElementById(id).scrollIntoView()
}, },
checkValid(validList) { checkValid(validList) {
for (let i = 0; i < validList.length; i++) { for (let i = 0; i < validList.length; i++) {
let item = validList[i] let item = validList[i]
...@@ -1248,11 +1214,9 @@ export default { ...@@ -1248,11 +1214,9 @@ export default {
} }
return true return true
}, },
addOrUpdate() { addOrUpdate() {
this.loading = true this.loading = true
var params = this.getCouponInfoParams() var params = this.getCouponInfoParams()
this.$apis.seckillActivity this.$apis.seckillActivity
.addOrUpdateActivityApi(params) .addOrUpdateActivityApi(params)
.then(res => { .then(res => {
...@@ -1268,7 +1232,6 @@ export default { ...@@ -1268,7 +1232,6 @@ export default {
this.loading = false this.loading = false
}) })
}, },
handleConfirm() { handleConfirm() {
this.stopMusic() this.stopMusic()
this.validateRules() this.validateRules()
...@@ -1359,7 +1322,6 @@ export default { ...@@ -1359,7 +1322,6 @@ export default {
.edit-product-dh .table-spesc tbody tr { .edit-product-dh .table-spesc tbody tr {
border: 1px solid #e7e7e7; border: 1px solid #e7e7e7;
} }
.edit-product-dh .table-spesc tbody td { .edit-product-dh .table-spesc tbody td {
display: inline-block; display: inline-block;
box-sizing: border-box; box-sizing: border-box;
...@@ -1375,7 +1337,6 @@ export default { ...@@ -1375,7 +1337,6 @@ export default {
.edit-product-dh .w-320 { .edit-product-dh .w-320 {
width: 320px; width: 320px;
} }
/* 规格 */ /* 规格 */
.edit-activity { .edit-activity {
position: relative; position: relative;
...@@ -1620,16 +1581,14 @@ export default { ...@@ -1620,16 +1581,14 @@ export default {
cursor: pointer; cursor: pointer;
border-left: 1px solid rgb(220, 223, 230); border-left: 1px solid rgb(220, 223, 230);
} }
::-webkit-scrollbar { ::-webkit-scrollbar {
/*滚动条整体样式*/ /*滚动条整体样式*/
width: 6px; width: 6px;
height: 3px; height: 3px;
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/ /*滚动条里面小方块*/
border-radius: 4px; border-radius: 4px;
background-color: rgba(144, 147, 153, 0.3); background-color: rgba(144, 147, 153, 0.3);
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!