Commit b78c8dcf by 前端

Merge branch 'chenwq_dev_v2.6.0' into 'v2.6.0'

Chenwq dev v2.6.0

See merge request !226
2 parents 866a71ec f634a69e
......@@ -2,7 +2,7 @@
<template>
<div class="marketing p-t-20">
<div class="m-b-20">
<GLButton :size="size" class="default-blue-btn el-icon-plus" type="default" @click="handleEdit('add')" fn="新建众筹" mode="el-button">新建众筹</GLButton>
<GLButton :size="size" class="default-blue-btn el-icon-plus" type="default" @click="handleEdit('add')" fn="新增众筹" mode="el-button">新建众筹</GLButton>
<el-button :size="size" type="default" class="default-blue-btn" @click="handleJump">订单管理</el-button>
</div>
<div class="container">
......
......@@ -499,7 +499,7 @@ export default {
this.getGoodInfo(info.goodsId)
if (info.activityPrice != null && info.goodsStock != null) {
form.activityPrice = (info.activityPrice / 100).toFixed(2)
form.goodsStock = info.goodsStock
form.goodsStock = info.goodsStock + ''
}
this.$nextTick(() => {
this.editStatus = false
......
......@@ -78,6 +78,11 @@
<glsx-combi-form class="edit-form-container" ref="serviceEditFormRef" :isEdit="true" :isBlock="false" :formRef="editChildRef" :formObj="editForm" :formData="serviceEditFormData" :formRules="editRule"></glsx-combi-form>
</div>
</template>
<template slot="activityMusic">
<el-upload class="upload-demo" action="" accept="audio/mp3, audio/m4a" :http-request="handleMusicUpload" :on-change="handleMusicChange" :on-remove="handleRemove" :before-remove="beforeRemove" :limit="1" :on-exceed="handleExceed" :file-list="fileList">
<el-button class="el-icon-plus" size="small" type="default">背景音乐</el-button>
</el-upload>
</template>
<template slot="fictitious">
<div class="fictitious" id="fictitious">
<el-form-item label="参团:" prop="fictitiousGroupQuantity" labelWidth="60px">
......@@ -227,7 +232,7 @@ export default {
}
],
goodsStock: [
{ required: true, message: '请设置活动库存', trigger: 'change' },
{ required: true, message: '请设置活动库存', trigger: 'change' }
// {
// validator: (rule, value, callback) => {
// return value > this.selectedProInfo.goodsStock ? callback(new Error('活动库存不能大于商品库存')) : callback()
......@@ -462,7 +467,9 @@ export default {
},
{
label: '音乐文件',
tips: '活动页背景音乐'
name: 'activityMusic',
tips: '活动页背景音乐',
// addHtml: 'activityMusic'
},
{
label: '预估销量',
......@@ -721,6 +728,15 @@ export default {
return this.limitPriceForInput(val, 5, 0, 0, maxValue)
},
// 音乐
handleMusicUpload() {
console.log('???')
},
handleMusicChange(file) {
console.log(file)
},
// 表单设置
handleDescribeAdd() {
this.formDescribeList.push({
......@@ -749,7 +765,7 @@ export default {
this.getGoodInfo(info.goodsId)
if (info.activityPrice != null && info.goodsStock != null) {
this.editForm.activityPrice = (info.activityPrice / 100).toFixed(2)
this.editForm.goodsStock = info.goodsStock
this.editForm.goodsStock = info.goodsStock + ''
}
// 地图
if (info.activityAddressProvinceName || info.activityAddressCityName) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!