Commit 9e6c52d9 by 胡悦

Merge branch 'v1.0.2' of http://192.168.3.233:8090/saas/scrm-micro-marketing into v1.0.2

2 parents f4357d7c 125cf006
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6", "el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5", "element-ui": "^2.4.5",
"glsx-common": "^1.4.6", "glsx-common": "^1.4.6",
"glsx-components": "^1.3.5", "glsx-components": "^1.3.6",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-router": "^3.1.3", "vue-router": "^3.1.3",
......
...@@ -59,31 +59,32 @@ export default { ...@@ -59,31 +59,32 @@ export default {
#app { #app {
padding: 0px 20px 20px 40px; padding: 0px 20px 20px 40px;
// overflow-y: auto; // overflow-y: auto;
margin-right: 20px;
height: 100%; height: 100%;
} }
.el-switch__label--left { .el-switch__label--left {
position: relative; position: relative;
margin-left: -20px; margin-left: -20px;
left: 45px; left: 45px;
color: #fff; color: #fff;
z-index: -1111; z-index: -1111;
} }
.el-switch__core{ .el-switch__core {
width: 50px !important; width: 50px !important;
} }
.el-switch__label--right { .el-switch__label--right {
position: relative; position: relative;
right: 46px; right: 46px;
color: #fff; color: #fff;
z-index: -1111; z-index: -1111;
} }
.el-switch__label--right.is-active { .el-switch__label--right.is-active {
z-index: 1111; z-index: 1111;
color: #fff !important; color: #fff !important;
} }
.el-switch__label--left.is-active { .el-switch__label--left.is-active {
z-index: 1111; z-index: 1111;
color: #999999 !important; color: #999999 !important;
} }
</style> </style>
> >
import { http,http2 } from '@/main' import { http } from '@/main'
// const defaultPath = 'scrm.api.live.' // const defaultPath = 'scrm.api.live.'
//计算提示面板出现的次数,第一次显示,之后不显示 //计算提示面板出现的次数,第一次显示,之后不显示
const getLoginCount = params => { const getLoginCount = params => {
params.method = 'entmicro.api.common.findLoginCount' params.method = 'entmicro.api.common.findLoginCount'
return http2({ return http({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
data: params, data: params,
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="glsx-combi-form"> <div class="glsx-combi-form">
<el-form :ref="formRef" :inline="true" :model="formObj" :rules="formRules" size="small" class="glsx-combi-form-block"> <el-form :ref="formRef" :inline="true" :model="formObj" :rules="formRules" size="small" class="glsx-combi-form-block">
<template v-for="(item, index) in formData"> <template v-for="(item, index) in formData">
<el-form-item v-if="!item.isHide" :key="index" :id="item.name" :labelWidth="isEdit ? '144px' : labelWidth" :class="{ 'no-label': !item.label, isBlock: isBlock }" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px': '30px', ...item.style }" :label="item.label" :prop="item.name"> <el-form-item v-if="!item.isHide" :key="index" :id="item.name" :labelWidth="isEdit ? '144px' : labelWidth" :class="{ 'no-label': !item.label, isBlock: isBlock }" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :label="item.label" :prop="item.name">
<span v-if="!item.isHide && item.tips" class="tips-block" slot="label"> <span v-if="!item.isHide && item.tips" class="tips-block" slot="label">
<span class="tips-label">{{ item.label }}</span> <span class="tips-label">{{ item.label }}</span>
<el-tooltip popper-class="tooltip-class" effect="dark" :content="item.tips" :placement="item.placement || 'top'"> <el-tooltip popper-class="tooltip-class" effect="dark" :content="item.tips" :placement="item.placement || 'top'">
...@@ -12,11 +12,11 @@ ...@@ -12,11 +12,11 @@
{{ item.label }} {{ item.label }}
</span> </span>
<span v-else-if="!item.isHide && item.label" slot="label"> <span v-else-if="!item.isHide && item.label" slot="label">
<span class="combi-form-label" :style="{ width: item.labelWidth ? (item.labelWidth + labelPaddingRight) + 'px' : '', 'padding-right': isEdit ? '12px' : (labelPaddingRight + 'px') }">{{ item.label }}</span> <span class="combi-form-label" :style="{ width: item.labelWidth ? item.labelWidth + labelPaddingRight + 'px' : '', 'padding-right': isEdit ? '12px' : labelPaddingRight + 'px' }">{{ item.label }}</span>
</span> </span>
<slot v-if="item.addHtml" :name="item.addHtml" :scope="item"></slot> <slot v-if="item.addHtml" :name="item.addHtml" :scope="item"></slot>
<div v-else-if="item.type === 'input'"> <div v-else-if="item.type === 'input'">
<el-input :placeholder="item.placeholder || '请输入' + item.label" v-model.trim="formObj[item.name]" :disabled="item.isDisabled" :maxlength="item.maxlength" :clearable="item.isClear || false" :type="item.inputType || 'text'" :rows="item.rows || 2" :style="{ width: item.width || defaultWidth }" :show-word-limit="item.showLimit || false" :show-password="item.showPass || false" @keydown.native="e => handleInputDown(e, item)" > <el-input :placeholder="item.placeholder || '请输入' + item.label" v-model.trim="formObj[item.name]" :disabled="item.isDisabled" :maxlength="item.maxlength" :clearable="item.isClear || false" :type="item.inputType || 'text'" :rows="item.rows || 2" :style="{ width: item.width || defaultWidth }" :show-word-limit="item.showLimit || false" :show-password="item.showPass || false" @keydown.native="e => handleInputDown(e, item)">
<span v-if="item.prepend" slot="prepend">{{ item.prepend }}</span> <span v-if="item.prepend" slot="prepend">{{ item.prepend }}</span>
<span v-if="item.append" slot="append">{{ item.append }}</span> <span v-if="item.append" slot="append">{{ item.append }}</span>
</el-input> </el-input>
...@@ -63,8 +63,8 @@ ...@@ -63,8 +63,8 @@
<div v-if="Array.isArray(formObj[item.name]) ? formObj[item.name].length < item.maxPhotoNum : !formObj[item.name]" class="activity-img img-w-h"> <div v-if="Array.isArray(formObj[item.name]) ? formObj[item.name].length < item.maxPhotoNum : !formObj[item.name]" class="activity-img img-w-h">
<div class="add" :style="{ top: item.maxPhotoNum == 1 ? '50%' : '40%' }">+</div> <div class="add" :style="{ top: item.maxPhotoNum == 1 ? '50%' : '40%' }">+</div>
<span v-if="item.maxPhotoNum > 1" class="number">{{ formObj[item.name].length }} / {{ item.maxPhotoNum }}</span> <span v-if="item.maxPhotoNum > 1" class="number">{{ formObj[item.name].length }} / {{ item.maxPhotoNum }}</span>
<input v-if="item.uploadType == 'video'" type="file" style="opacity: 0;" :id="item.name + 'file'" ref="file" class="activity-img img-w-h" accept="video/mp4" @change="e => handleUploadChange(e, item)" /> <input v-if="item.uploadType == 'video'" type="file" style="opacity: 0" :id="item.name + 'file'" ref="file" class="activity-img img-w-h" accept="video/mp4" @change="e => handleUploadChange(e, item)" />
<input v-else type="file" style="opacity: 0;" :id="item.name + 'file'" ref="file" class="activity-img img-w-h" accept="image/png, image/jpeg, image/gif, image/jpg" @change="e => handleUploadChange(e, item)" /> <input v-else type="file" style="opacity: 0" :id="item.name + 'file'" ref="file" class="activity-img img-w-h" accept="image/png, image/jpeg, image/gif, image/jpg" @change="e => handleUploadChange(e, item)" />
</div> </div>
</div> </div>
<template> <template>
...@@ -99,10 +99,10 @@ ...@@ -99,10 +99,10 @@
</template> </template>
<slot name="footer"></slot> <slot name="footer"></slot>
</el-form> </el-form>
<el-dialog v-if="isImgVisible" title="查看" :visible.sync="isImgVisible"> <el-dialog v-if="isImgVisible" title="查看" :visible.sync="isImgVisible" :close-on-click-modal="false">
<div class="dialog-look"> <div class="dialog-look">
<video v-if="dialogObj.uploadType == 'video'" class="dialog-video" controls> <video v-if="dialogObj.uploadType == 'video'" class="dialog-video" controls>
<source :src="dialogObj.url" type="video/mp4"> <source :src="dialogObj.url" type="video/mp4" />
</video> </video>
<img v-else class="dialog-img" width="100%" :src="dialogObj.url" alt="" /> <img v-else class="dialog-img" width="100%" :src="dialogObj.url" alt="" />
</div> </div>
...@@ -353,7 +353,7 @@ export default { ...@@ -353,7 +353,7 @@ export default {
.glsx-combi-form .activity-img { .glsx-combi-form .activity-img {
position: relative; position: relative;
color: #999999; color: #999999;
background-color: #F7F7F7; background-color: #f7f7f7;
border: 1px dotted #d9d9d9; border: 1px dotted #d9d9d9;
cursor: pointer; cursor: pointer;
} }
...@@ -433,16 +433,16 @@ export default { ...@@ -433,16 +433,16 @@ export default {
/* 图片上传 */ /* 图片上传 */
.glsx-combi-form .el-tag.el-tag--info .el-tag__close { .glsx-combi-form .el-tag.el-tag--info .el-tag__close {
color: #E8E8EA; color: #e8e8ea;
background-color: #5850ff !important; background-color: #5850ff !important;
} }
.glsx-combi-form .el-tag.el-tag--info { .glsx-combi-form .el-tag.el-tag--info {
border-color: #5850ff; border-color: #5850ff;
} }
.glsx-combi-form .el-tag--plain.el-tag--info .el-tag__close:hover { .glsx-combi-form .el-tag--plain.el-tag--info .el-tag__close:hover {
background-color: #E8E8EA; background-color: #e8e8ea;
} }
.glsx-combi-form .el-tag.el-tag--info .el-tag__close:hover { .glsx-combi-form .el-tag.el-tag--info .el-tag__close:hover {
background-color: #E8E8EA; background-color: #e8e8ea;
} }
</style> </style>
...@@ -7,10 +7,10 @@ ...@@ -7,10 +7,10 @@
<div slot="selectProBtn" slot-scope="scope" class="select-pro"> <div slot="selectProBtn" slot-scope="scope" class="select-pro">
<el-button type="default" @click="handleMutiProClose(scope)">{{ editForm.goodsRefList.length ? '更换商品' : '+选择商品' }}</el-button> <el-button type="default" @click="handleMutiProClose(scope)">{{ editForm.goodsRefList.length ? '更换商品' : '+选择商品' }}</el-button>
</div> </div>
<div slot="proTable" class="select-pro" style="padding-left: 20px;"> <div slot="proTable" class="select-pro" style="padding-left: 20px">
<GLTable v-show="editForm.goodsRefList.length" :hasPage="false" :tableParams="tableParams" :tableData="editForm.goodsRefList"> <GLTable v-show="editForm.goodsRefList.length" :hasPage="false" :tableParams="tableParams" :tableData="editForm.goodsRefList">
<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>
<span slot="auth-button" slot-scope="scope"> <span slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleProDelete(scope)">删除</el-button> <el-button type="text" @click="handleProDelete(scope)">删除</el-button>
...@@ -112,7 +112,7 @@ export default { ...@@ -112,7 +112,7 @@ export default {
prop: 'retailPrice' prop: 'retailPrice'
} }
] ]
}, }
} }
}, },
...@@ -145,7 +145,7 @@ export default { ...@@ -145,7 +145,7 @@ export default {
goodsImage: item.goods.goodsImage goodsImage: item.goods.goodsImage
}) })
}) })
this.$nextTick(()=>{ this.$nextTick(() => {
this.editStatus = false this.editStatus = false
}) })
}) })
...@@ -174,7 +174,7 @@ export default { ...@@ -174,7 +174,7 @@ export default {
this.$messageBox.confirm('是否删除该商品?', '删除', { this.$messageBox.confirm('是否删除该商品?', '删除', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'error', // type: 'error',
callback: action => { callback: action => {
if (action == 'confirm') { if (action == 'confirm') {
var idx = this.editForm.goodsRefList.findIndex(item => item.id == obj.scope.id) var idx = this.editForm.goodsRefList.findIndex(item => item.id == obj.scope.id)
...@@ -221,7 +221,8 @@ export default { ...@@ -221,7 +221,8 @@ export default {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { })
.then(() => {
this.cancelJump() this.cancelJump()
}) })
.catch(() => {}) .catch(() => {})
......
<!-- 编辑代金券 --> <!-- 编辑代金券 -->
<template> <template>
<div class="edit-share marketing p-t-20 edit-box"> <div class="edit-share marketing p-t-20 edit-box">
<div class="container edit-container" style="position: relative;"> <div class="container edit-container" style="position: relative">
<div class="right_show"> <div class="right_show">
<div class="card-top"></div> <div class="card-top"></div>
<div class="card_one"> <div class="card_one">
...@@ -14,17 +14,12 @@ ...@@ -14,17 +14,12 @@
<div class="ctime"> <div class="ctime">
<span class="ctime_name">有效期:</span> <span class="ctime_name">有效期:</span>
<span class="ctime_content" v-if="editForm.effectiveType == 3">无限制</span> <span class="ctime_content" v-if="editForm.effectiveType == 3">无限制</span>
<span <span class="ctime_content" v-if="editForm.effectiveType == 1">{{ editForm.effectiveDays }}天</span>
class="ctime_content"
v-if="editForm.effectiveType == 1"
>{{ editForm.effectiveDays }}天</span>
<span class="ctime_content" v-if="editForm.effectiveType == 2">{{ couponTime }}</span> <span class="ctime_content" v-if="editForm.effectiveType == 2">{{ couponTime }}</span>
</div> </div>
<div class="ctime"> <div class="ctime">
<span class="ctime_name">使用限制:</span> <span class="ctime_name">使用限制:</span>
<span <span class="ctime_content">{{ editForm.useBarriers == 1 ? '无限制' : '满' + editForm.full + '可用' }}</span>
class="ctime_content"
>{{ editForm.useBarriers == 1 ? '无限制' : '满' + editForm.full + '可用' }}</span>
</div> </div>
</div> </div>
<div class="card_two"> <div class="card_two">
...@@ -33,17 +28,7 @@ ...@@ -33,17 +28,7 @@
</div> </div>
</div> </div>
<p class="edit-title">{{ title }}代金券</p> <p class="edit-title">{{ title }}代金券</p>
<glsx-combi-form <glsx-combi-form class="edit-form-container" style="min-height: 570px" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
class="edit-form-container"
style="min-height: 570px;"
ref="editFormRef"
:isEdit="true"
:isBlock="true"
:formRef="editChildRef"
:formObj="editForm"
:formData="editFormData"
:formRules="editRule"
>
<template slot="useChannelHtml"> <template slot="useChannelHtml">
<el-radio v-model="editForm.useChannel" label="1" :disabled="apear != 'couponAdd'">线上商品</el-radio> <el-radio v-model="editForm.useChannel" label="1" :disabled="apear != 'couponAdd'">线上商品</el-radio>
<el-radio v-model="editForm.useChannel" label="2" :disabled="apear != 'couponAdd'">到店核销</el-radio> <el-radio v-model="editForm.useChannel" label="2" :disabled="apear != 'couponAdd'">到店核销</el-radio>
...@@ -51,68 +36,34 @@ ...@@ -51,68 +36,34 @@
<template slot="effectiveHtml"> <template slot="effectiveHtml">
<el-radio v-model="editForm.effectiveType" label="3" :disabled="apear != 'couponAdd'">无有效期</el-radio> <el-radio v-model="editForm.effectiveType" label="3" :disabled="apear != 'couponAdd'">无有效期</el-radio>
<br /> <br />
<el-form-item <el-form-item prop="effectiveTime" ref="effectiveTime" style="margin-top: 12px; display: block">
prop="effectiveTime"
ref="effectiveTime"
style="margin-top: 12px;display: block;"
>
<el-radio v-model="editForm.effectiveType" label="2" :disabled="apear != 'couponAdd'"> <el-radio v-model="editForm.effectiveType" label="2" :disabled="apear != 'couponAdd'">
<el-date-picker <el-date-picker v-model="editForm.effectiveTime" type="daterange" style="width: 295px" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd" :picker-options="pickerOption" :disabled="editForm.effectiveType != 2 || apear != 'couponAdd'" clearable></el-date-picker>
v-model="editForm.effectiveTime"
type="daterange"
style="width:295px"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
value-format="yyyy-MM-dd"
:picker-options="pickerOption"
:disabled="editForm.effectiveType != 2 || apear != 'couponAdd'"
clearable
></el-date-picker>
</el-radio> </el-radio>
</el-form-item> </el-form-item>
<el-form-item prop="effectiveDays" ref="effectiveDays"> <el-form-item prop="effectiveDays" ref="effectiveDays">
<el-radio v-model="editForm.effectiveType" label="1" :disabled="apear != 'couponAdd'"> <el-radio v-model="editForm.effectiveType" label="1" :disabled="apear != 'couponAdd'">
领取后 领取后
<el-input <el-input v-model="editForm.effectiveDays" style="width: 100px; margin-left: 5px; margin-right: 5px" :disabled="apear != 'couponAdd' || editForm.effectiveType != 1" />
v-model="editForm.effectiveDays" 天内有效
style="width:100px;margin-left:5px;margin-right:5px"
:disabled="apear != 'couponAdd' || editForm.effectiveType != 1"
/>天内有效
</el-radio> </el-radio>
</el-form-item> </el-form-item>
</template> </template>
<template slot="useBarriersHtml"> <template slot="useBarriersHtml">
<el-radio v-model="editForm.useBarriers" label="1" :disabled="apear != 'couponAdd'">无限制</el-radio> <el-radio v-model="editForm.useBarriers" label="1" :disabled="apear != 'couponAdd'">无限制</el-radio>
<el-form-item prop="full" ref="full"> <el-form-item prop="full" ref="full">
<el-radio <el-radio v-model="editForm.useBarriers" label="2" :disabled="apear != 'couponAdd' || editForm.useChannel == 2">
v-model="editForm.useBarriers"
label="2"
:disabled="apear != 'couponAdd' || editForm.useChannel == 2"
>
订单满 订单满
<el-input <el-input v-model="editForm.full" placeholder="输入金额(元)" style="width: 110px; margin-left: 5px; margin-right: 5px" :disabled="apear != 'couponAdd' || editForm.useBarriers != 2" />
v-model="editForm.full" 元可用
placeholder="输入金额(元)"
style="width: 110px;margin-left:5px;margin-right:5px"
:disabled="apear != 'couponAdd' || editForm.useBarriers != 2"
/>元可用
</el-radio> </el-radio>
</el-form-item> </el-form-item>
</template> </template>
<template slot="denominationHtml"> <template slot="denominationHtml">
<el-input <el-input v-model="editForm.denomination" style="width: 150px" :disabled="apear != 'couponAdd'" @blur.native.capture="editForm.useChannel == 1 && denominationBlur($event)">
v-model="editForm.denomination"
style="width: 150px"
:disabled="apear != 'couponAdd'"
@blur.native.capture="editForm.useChannel == 1 && denominationBlur($event)"
>
<span slot="append">元</span> <span slot="append">元</span>
</el-input> </el-input>
<span <span style="color: red; margin-left: 15px" v-if="priceFlag && editForm.useChannel == 1">{{ selectedAllProList.length ? '存在零售价低于代金券的商品' : '系统暂无已创建的商品,请先创建好商品后再配置代金券' }}</span>
style="color:red;margin-left:15px"
v-if="priceFlag && editForm.useChannel == 1"
>{{ selectedAllProList.length ? '存在零售价低于代金券的商品' : '系统暂无已创建的商品,请先创建好商品后再配置代金券' }}</span>
</template> </template>
<!-- 只有使用途径为线上商品时才有效,到店核销时屏蔽 --> <!-- 只有使用途径为线上商品时才有效,到店核销时屏蔽 -->
<template slot="goodsHtml"> <template slot="goodsHtml">
...@@ -125,13 +76,7 @@ ...@@ -125,13 +76,7 @@
<!-- 新增时并且为指定商品时显示,编辑或者查看时也显示 --> <!-- 新增时并且为指定商品时显示,编辑或者查看时也显示 -->
<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 <GLTable v-show="editForm.goodsRefList.length" :hasPage="false" :tableParams="tableParams" :tableData="editForm.goodsRefList" style="padding-left: 10px; margin-right: 340px; max-height: 350px; overflow: auto">
v-show="editForm.goodsRefList.length"
:hasPage="false"
:tableParams="tableParams"
:tableData="editForm.goodsRefList"
style="padding-left:10px;margin-right:340px;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>
...@@ -141,14 +86,7 @@ ...@@ -141,14 +86,7 @@
</GLTable> </GLTable>
</div> </div>
<template slot="useDescriptionHtml"> <template slot="useDescriptionHtml">
<el-input <el-input type="textarea" v-model="editForm.useDescription" style="width: 320px" :autosize="{ minRows: 2, maxRows: 4 }" maxlength="200" :disabled="apear == 'couponSee'" />
type="textarea"
v-model="editForm.useDescription"
style="width: 320px"
:autosize="{ minRows: 2, maxRows: 4 }"
maxlength="200"
:disabled="apear == 'couponSee'"
/>
</template> </template>
</glsx-combi-form> </glsx-combi-form>
</div> </div>
...@@ -157,14 +95,7 @@ ...@@ -157,14 +95,7 @@
<el-button v-if="apear != 'couponSee'" @click="handleCancel">取消</el-button> <el-button v-if="apear != 'couponSee'" @click="handleCancel">取消</el-button>
<el-button v-if="apear == 'couponSee'" @click="handleCancel">返回</el-button> <el-button v-if="apear == 'couponSee'" @click="handleCancel">返回</el-button>
</div> </div>
<select-muti-pro-forcoupon-dialog <select-muti-pro-forcoupon-dialog v-if="isMutiSelectVisible" :isMutiSelectVisible="isMutiSelectVisible" :searchForm="searchProForm" :selectedProList="selectedProList" @handleMutiSelectConfirm="handleMutiSelectConfirm" @handleMutiSelectClose="handleMutiSelectClose"></select-muti-pro-forcoupon-dialog>
v-if="isMutiSelectVisible"
:isMutiSelectVisible="isMutiSelectVisible"
:searchForm="searchProForm"
:selectedProList="selectedProList"
@handleMutiSelectConfirm="handleMutiSelectConfirm"
@handleMutiSelectClose="handleMutiSelectClose"
></select-muti-pro-forcoupon-dialog>
</div> </div>
</template> </template>
...@@ -497,7 +428,7 @@ export default { ...@@ -497,7 +428,7 @@ export default {
this.$messageBox.confirm('是否删除该商品?', '删除', { this.$messageBox.confirm('是否删除该商品?', '删除', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'error', // type: 'error',
callback: action => { callback: action => {
if (action == 'confirm') { if (action == 'confirm') {
var idx = this.editForm.goodsRefList.findIndex(item => item.id == obj.scope.id) var idx = this.editForm.goodsRefList.findIndex(item => item.id == obj.scope.id)
......
...@@ -21,12 +21,12 @@ ...@@ -21,12 +21,12 @@
<div class="banner-upload-box"> <div class="banner-upload-box">
<div class=""> <div class="">
<div class="flex"> <div class="flex">
<div v-show="!subItem.bannerImg" class="activity-img home-img-w-h" style="margin-bottom: 11px;"> <div v-show="!subItem.bannerImg" class="activity-img home-img-w-h" style="margin-bottom: 11px">
<div class="add">+</div> <div class="add">+</div>
<span class="number">上传</span> <span class="number">上传</span>
<input type="file" style="opacity: 0;" ref="file" class="activity-img home-img-w-h" accept="image/png, image/jpeg, image/gif, image/jpg" @change="e => handleImgChange(e, subIndex)" /> <input type="file" style="opacity: 0" ref="file" class="activity-img home-img-w-h" accept="image/png, image/jpeg, image/gif, image/jpg" @change="e => handleImgChange(e, subIndex)" />
</div> </div>
<div v-show="!subItem.bannerImg" style="margin-left: 40px;"> <div v-show="!subItem.bannerImg" style="margin-left: 40px">
<el-button type="text" class="el-icon-delete" @click="handleBannerDelete(subIndex)"></el-button> <el-button type="text" class="el-icon-delete" @click="handleBannerDelete(subIndex)"></el-button>
</div> </div>
</div> </div>
...@@ -46,15 +46,16 @@ ...@@ -46,15 +46,16 @@
<span>banner链接</span> <span>banner链接</span>
<div class="banner-link"> <div class="banner-link">
<el-radio-group v-model="subItem.bannerType"> <el-radio-group v-model="subItem.bannerType">
<el-radio v-for="(m, n) in bannerRadioList" :key="n" :label="m.confId">{{m.confName}}</el-radio> <el-radio v-for="(m, n) in bannerRadioList" :key="n" :label="m.confId">{{ m.confName }}</el-radio>
</el-radio-group> </el-radio-group>
<div v-show="subItem.bannerType != '0'" class="link-block"> <div v-show="subItem.bannerType != '0'" class="link-block">
<div v-show="(subItem.bannerType == '1' && !subItem.goodsId) || (subItem.bannerType == '2' && !subItem.imgLinkUrl) || (subItem.bannerType == '3' && !subItem.videoLinkUrl)"> <div v-show="(subItem.bannerType == '1' && !subItem.goodsId) || (subItem.bannerType == '2' && !subItem.imgLinkUrl) || (subItem.bannerType == '3' && !subItem.videoLinkUrl)">
<el-button class="banner-btn" type="primary" :size="size" @click="handleBnnerLinkClick(scope.scope, subIndex)">选择 <el-button class="banner-btn" type="primary" :size="size" @click="handleBnnerLinkClick(scope.scope, subIndex)">
选择
<input v-if="subItem.bannerType == '2'" type="file" ref="file" class="upload-btn" accept="image/png, image/jpeg, image/jpg" @change="e => handleUploadChange(e, item)" /> <input v-if="subItem.bannerType == '2'" type="file" ref="file" class="upload-btn" accept="image/png, image/jpeg, image/jpg" @change="e => handleUploadChange(e, item)" />
<input v-if="subItem.bannerType == '3'" type="file" ref="file" class="upload-btn" accept="video/mp4" @change="e => handleUploadVideoChange(e, item)" /> <input v-if="subItem.bannerType == '3'" type="file" ref="file" class="upload-btn" accept="video/mp4" @change="e => handleUploadVideoChange(e, item)" />
</el-button> </el-button>
<p class="banner-tips-txt">点击banner后跳转{{subItem.bannerType == '1' ? '商品' : (subItem.bannerType == '2' ? '图文介绍' : '视频介绍')}}</p> <p class="banner-tips-txt">点击banner后跳转{{ subItem.bannerType == '1' ? '商品' : subItem.bannerType == '2' ? '图文介绍' : '视频介绍' }}</p>
</div> </div>
<!-- 选择商品 --> <!-- 选择商品 -->
<div v-show="subItem.bannerType == '1' && subItem.goodsId" class="flex-grow"> <div v-show="subItem.bannerType == '1' && subItem.goodsId" class="flex-grow">
...@@ -103,7 +104,7 @@ ...@@ -103,7 +104,7 @@
</div> </div>
<template slot="customerServerSuffix" slot-scope="scope"> <template slot="customerServerSuffix" slot-scope="scope">
<el-button v-show="!scope.scope.optionList.length" type="text"></el-button> <el-button v-show="!scope.scope.optionList.length" type="text"></el-button>
<p style="color: #5850ff;" @click="handleNoServer">请在首页-跟进专员模块里添加类型为“在线客服”的跟进专员</p> <p style="color: #5850ff" @click="handleNoServer">请在首页-跟进专员模块里添加类型为“在线客服”的跟进专员</p>
</template> </template>
<!-- <div slot="serviceTable" :style="{ 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} )` }"> <!-- <div slot="serviceTable" :style="{ 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} )` }">
<GLTable v-show="editForm.customerServerUserId" :hasPage="false" :tableParams="tableParams" :tableData="customerServerList"></GLTable> <GLTable v-show="editForm.customerServerUserId" :hasPage="false" :tableParams="tableParams" :tableData="customerServerList"></GLTable>
...@@ -111,7 +112,7 @@ ...@@ -111,7 +112,7 @@
</glsx-combi-form> </glsx-combi-form>
</div> </div>
</div> </div>
<div class="wechat-container m-r-20" style="margin-top: 59px;"> <div class="wechat-container m-r-20" style="margin-top: 59px">
<div class="wechat-box"> <div class="wechat-box">
<img class="w-100-per" src="@/assets/phone.png" /> <img class="w-100-per" src="@/assets/phone.png" />
<img class="wechant-back" src="@/assets/home-set.png" /> <img class="wechant-back" src="@/assets/home-set.png" />
...@@ -124,9 +125,9 @@ ...@@ -124,9 +125,9 @@
</el-carousel> </el-carousel>
</div> </div>
<div class="wechant-notice"> <div class="wechant-notice">
<img class="img-14" src="@/assets/icon_notice.png"> <img class="img-14" src="@/assets/icon_notice.png" />
<span> <span>
<marquee width="200px" height="14px" scrolldelay="160">{{editForm.noticeContent}}</marquee> <marquee width="200px" height="14px" scrolldelay="160">{{ editForm.noticeContent }}</marquee>
</span> </span>
</div> </div>
</div> </div>
...@@ -139,21 +140,16 @@ ...@@ -139,21 +140,16 @@
<!-- 在线客服 --> <!-- 在线客服 -->
<glsx-dialog class="server-dialog" title="在线客服" width="712px" :noBtnOk="true" :isVisible.sync="isConsultantVisible" @confirmDialog="handleConsultantConfirm" @closeDialog="handleConsultantClose"> <glsx-dialog class="server-dialog" title="在线客服" width="712px" :noBtnOk="true" :isVisible.sync="isConsultantVisible" @confirmDialog="handleConsultantConfirm" @closeDialog="handleConsultantClose">
<div class="server-container"> <div class="server-container">
<img src="@/assets/no-server.png"/> <img src="@/assets/no-server.png" />
<p class="server-txt">系统暂无已创建的在线客服</p> <p class="server-txt">系统暂无已创建的在线客服</p>
</div> </div>
<template slot="btn-middle"> <template slot="btn-middle">
<GLButton <GLButton type="primary" :size="size" fn="创建客服" @click="handleConsultantConfirm">创建客服</GLButton>
type="primary"
:size="size"
fn="创建客服"
@click="handleConsultantConfirm"
>创建客服</GLButton>
</template> </template>
</glsx-dialog> </glsx-dialog>
<el-dialog v-if="isImgVisible" :visible.sync="isImgVisible" class="dialog-look"> <el-dialog v-if="isImgVisible" :visible.sync="isImgVisible" class="dialog-look">
<video v-if="dialogObj.uploadType == 'video'" class="dialog-video" controls> <video v-if="dialogObj.uploadType == 'video'" class="dialog-video" controls>
<source :src="dialogObj.url" type="video/mp4"> <source :src="dialogObj.url" type="video/mp4" />
</video> </video>
<img v-else class="dialog-img" width="100%" :src="dialogObj.url" alt="" /> <img v-else class="dialog-img" width="100%" :src="dialogObj.url" alt="" />
</el-dialog> </el-dialog>
...@@ -308,7 +304,7 @@ export default { ...@@ -308,7 +304,7 @@ export default {
this.editForm.customerServerUserTitle = tempObj.staffTitle this.editForm.customerServerUserTitle = tempObj.staffTitle
this.customerServerList.push({ this.customerServerList.push({
customerServerName: tempObj.staffName, customerServerName: tempObj.staffName,
customerServerUserTitle: tempObj.staffTitle, customerServerUserTitle: tempObj.staffTitle
}) })
} }
} }
...@@ -366,10 +362,10 @@ export default { ...@@ -366,10 +362,10 @@ export default {
imgLinkUrl: '', imgLinkUrl: '',
videoLinkUrl: '' videoLinkUrl: ''
} }
if(item.bannerType == '2') { if (item.bannerType == '2') {
params.imgLinkUrl = item.linkUrl params.imgLinkUrl = item.linkUrl
} }
if(item.bannerType == '3') { if (item.bannerType == '3') {
params.videoLinkUrl = item.linkUrl params.videoLinkUrl = item.linkUrl
} }
if (item.goods) { if (item.goods) {
...@@ -397,7 +393,7 @@ export default { ...@@ -397,7 +393,7 @@ export default {
this.$messageBox.confirm('是否删除该banner?', '删除', { this.$messageBox.confirm('是否删除该banner?', '删除', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'error', // type: 'error',
callback: action => { callback: action => {
if (action == 'confirm') { if (action == 'confirm') {
this.editForm[attrName].splice(subIndex, 1) this.editForm[attrName].splice(subIndex, 1)
...@@ -457,14 +453,14 @@ export default { ...@@ -457,14 +453,14 @@ export default {
handleBnnerLinkClick(targetItem, idx) { handleBnnerLinkClick(targetItem, idx) {
this.curBanner.idx = idx this.curBanner.idx = idx
this.curBanner.targetItem = targetItem this.curBanner.targetItem = targetItem
switch(this.editForm.bannerList[idx].bannerType) { switch (this.editForm.bannerList[idx].bannerType) {
case '1': case '1':
this.handleSinglePro(targetItem, idx) this.handleSinglePro(targetItem, idx)
break; break
case '2': case '2':
break; break
case '3': case '3':
break; break
} }
}, },
// banner - 图片上传 // banner - 图片上传
...@@ -569,7 +565,7 @@ export default { ...@@ -569,7 +565,7 @@ export default {
linkUrl: '', linkUrl: '',
goods: {} goods: {}
}) })
if(item.bannerType == '1' && item.goodsId) { if (item.bannerType == '1' && item.goodsId) {
params.bannerList[idx].goodsId = item.goodsId params.bannerList[idx].goodsId = item.goodsId
params.bannerList[idx].goods = { params.bannerList[idx].goods = {
id: item.goods.id, id: item.goods.id,
...@@ -577,13 +573,13 @@ export default { ...@@ -577,13 +573,13 @@ export default {
goodsImage: item.goods.goodsImage goodsImage: item.goods.goodsImage
} }
} }
if(item.bannerType == '2' && item.imgLinkUrl) { if (item.bannerType == '2' && item.imgLinkUrl) {
params.bannerList[idx].linkUrl = item.imgLinkUrl params.bannerList[idx].linkUrl = item.imgLinkUrl
} }
if(item.bannerType == '3' && item.videoLinkUrl) { if (item.bannerType == '3' && item.videoLinkUrl) {
params.bannerList[idx].linkUrl = item.videoLinkUrl params.bannerList[idx].linkUrl = item.videoLinkUrl
} }
if((item.bannerType == '1' && !item.goodsId) || (item.bannerType == '2' && !item.imgLinkUrl) || (item.bannerType == '3' && !item.videoLinkUrl)) { if ((item.bannerType == '1' && !item.goodsId) || (item.bannerType == '2' && !item.imgLinkUrl) || (item.bannerType == '3' && !item.videoLinkUrl)) {
params.bannerList[idx].bannerType = 0 params.bannerList[idx].bannerType = 0
} }
}) })
...@@ -610,7 +606,7 @@ export default { ...@@ -610,7 +606,7 @@ export default {
position: absolute; position: absolute;
top: 56px; top: 56px;
left: 19px; left: 19px;
border: 1px solid #D8D8D8; border: 1px solid #d8d8d8;
} }
.home-set .wechat-container .wechat-box .wechant-banner-img { .home-set .wechat-container .wechat-box .wechant-banner-img {
position: absolute; position: absolute;
...@@ -681,8 +677,8 @@ export default { ...@@ -681,8 +677,8 @@ export default {
width: 100%; width: 100%;
height: 72px; height: 72px;
text-align: center; text-align: center;
background-color: #F7F7F7; background-color: #f7f7f7;
border: 1px solid #DCDFE6; border: 1px solid #dcdfe6;
} }
.home-set .link-block .banner-btn { .home-set .link-block .banner-btn {
position: relative; position: relative;
......
...@@ -517,12 +517,12 @@ export default { ...@@ -517,12 +517,12 @@ export default {
.numWrap { .numWrap {
display: inline-block; display: inline-block;
background-color: #fff; background-color: #fff;
min-width: 34px; min-width: 34px;
height: 22px; height: 22px;
text-align: center; text-align: center;
line-height: 22px; line-height: 22px;
margin: 0 2px; margin: 0 2px;
vertical-align: text-bottom;
} }
.addsubBtn { .addsubBtn {
background-color: #fff; background-color: #fff;
......
...@@ -15,10 +15,8 @@ ...@@ -15,10 +15,8 @@
</span> </span>
</div> </div>
<div> <div>
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData1"> <glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData1"></glsx-combi-form>
</glsx-combi-form> <glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData2"></glsx-combi-form>
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData2">
</glsx-combi-form>
<glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData3"> <glsx-combi-form ref="showSearch" :formObj="searchForm" :formData="searchFormData3">
<span slot="footer" class="footer-btns"> <span slot="footer" class="footer-btns">
<el-button :size="size" type="default" @click="handleReset">重置</el-button> <el-button :size="size" type="default" @click="handleReset">重置</el-button>
...@@ -113,7 +111,7 @@ ...@@ -113,7 +111,7 @@
<script> <script>
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from "@/assets/empty.png" import url from '@/assets/empty.png'
import { orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList, exportFn } from '@/common/constant' import { orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList, exportFn } from '@/common/constant'
export default { export default {
name: 'orderManage', name: 'orderManage',
......
<!-- 查看产品 - 评价信息 --> <!-- 查看产品 - 评价信息 -->
<template> <template>
<div class="comment-detail container edit-container"> <div class="comment-detail container edit-container">
<div style="padding: 20px;"> <div style="padding: 20px">
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="commentRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun"> <GLTable ref="commentRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun">
<div slot="starLevel" slot-scope="scope"> <div slot="starLevel" slot-scope="scope">
<img v-for="(item, index) in scope.scope.starLevel" :key="index" class="icon-star" src="@/assets/icon-star.png"/> <img v-for="(item, index) in scope.scope.starLevel" :key="index" class="icon-star" src="@/assets/icon-star.png" />
</div> </div>
<div slot="goodsImage" class="table-image" slot-scope="scope"> <div slot="goodsImage" class="table-image" slot-scope="scope">
<span v-if="!scope.scope.imgUrls">-</span> <span v-if="!scope.scope.imgUrls">-</span>
<img v-else class="img-60" :src="scope.scope.imgUrls[0]" @click="handleImgLook(scope.scope.imgUrls)"/> <img v-else class="img-60" :src="scope.scope.imgUrls[0]" @click="handleImgLook(scope.scope.imgUrls)" />
</div> </div>
</GLTable> </GLTable>
<el-dialog v-if="isImgVisible" title="查看" :visible.sync="isImgVisible"> <el-dialog v-if="isImgVisible" title="查看" :visible.sync="isImgVisible" :close-on-click-modal="false">
<div class="dialog-look"> <div class="dialog-look">
<span v-for="(item, index) in dialogObj.imgUrls" :key="index"> <span v-for="(item, index) in dialogObj.imgUrls" :key="index">
<el-image style="width: 200px; height: 200px; margin-right: 10px;" :src="item" :preview-src-list="[item]" ></el-image> <el-image style="width: 200px; height: 200px; margin-right: 10px" :src="item" :preview-src-list="[item]"></el-image>
</span> </span>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import url from "@/assets/empty.png" import url from '@/assets/empty.png'
export default { export default {
name: 'commentDetail', name: 'commentDetail',
data() { data() {
...@@ -104,5 +104,4 @@ export default { ...@@ -104,5 +104,4 @@ export default {
} }
} }
</script> </script>
<style> <style></style>
</style>
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</template> </template>
<div slot="goodsHtml"> <div slot="goodsHtml">
<el-button type="primary" v-if="apear != 'see'" @click="handleRelateProClose">选择商品</el-button> <el-button type="primary" v-if="apear != 'see'" @click="handleRelateProClose">选择商品</el-button>
<div v-if="selectedProInfo.id && !specificationDetailList.length" style="margin-top:10px"> <div v-if="selectedProInfo.id && !specificationDetailList.length" style="margin-top: 10px">
<p> <p>
<img class="img-60" :src="selectedProInfo.goodsImage" /> <img class="img-60" :src="selectedProInfo.goodsImage" />
&nbsp;&nbsp;&nbsp; 零售价 {{ (selectedProInfo.retailPrice / 100).toFixed(2) }}元 &nbsp;&nbsp;&nbsp; 商品库存 {{ selectedProInfo.goodsStock }}件 &nbsp;&nbsp;&nbsp; 零售价 {{ (selectedProInfo.retailPrice / 100).toFixed(2) }}元 &nbsp;&nbsp;&nbsp; 商品库存 {{ selectedProInfo.goodsStock }}件
...@@ -25,8 +25,8 @@ ...@@ -25,8 +25,8 @@
</div> </div>
</div> </div>
<div slot="specificationsHtml" v-if="specificationDetailList.length" class="flex" style="min-width: 600px" id="specificationDetailList"> <div slot="specificationsHtml" v-if="specificationDetailList.length" class="flex" style="min-width: 600px" id="specificationDetailList">
<div style="width: calc(100%);"> <div style="width: calc(100%)">
<table class="table-spesc" style="width: calc(100%);"> <table class="table-spesc" style="width: calc(100%)">
<tbody> <tbody>
<tr> <tr>
<td :style="{ width: specsWidth }" v-for="(subItem, subIndex) in specificationDetailList" :key="subIndex">{{ subItem.specificationName }}</td> <td :style="{ width: specsWidth }" v-for="(subItem, subIndex) in specificationDetailList" :key="subIndex">{{ subItem.specificationName }}</td>
...@@ -37,19 +37,17 @@ ...@@ -37,19 +37,17 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
<table class="table-spesc" style="max-height: 400px;"> <table class="table-spesc" style="max-height: 400px">
<tbody> <tbody>
<tr style="border-bottom: 1px solid rgb(235, 235, 235);" v-for="(item, index) in nameToValSpecsList" :key="index"> <tr style="border-bottom: 1px solid rgb(235, 235, 235)" v-for="(item, index) in nameToValSpecsList" :key="index">
<td :style="{ width: specsWidth }" v-for="(n, idx) in item.specsValueList" :key="idx">{{ n }}</td> <td :style="{ width: specsWidth }" v-for="(n, idx) in item.specsValueList" :key="idx">{{ n }}</td>
<td :style="{ width: specsWidth }">{{ item.retailPrice }}元</td> <td :style="{ width: specsWidth }">{{ item.retailPrice }}元</td>
<td :style="{ width: specsWidth }">{{ item.stock }}件</td> <td :style="{ width: specsWidth }">{{ item.stock }}件</td>
<td :style="{ width: specsWidth }"> <td :style="{ width: specsWidth }">
<el-input :disabled="isDisabled" placeholder="秒杀价" style="width:90%" v-model="item.activityPrice" @input="item.activityPrice = activityPrice_input($event, item.retailPrice)"> <el-input :disabled="isDisabled" placeholder="秒杀价" style="width: 90%" v-model="item.activityPrice" @input="item.activityPrice = activityPrice_input($event, item.retailPrice)"></el-input>
</el-input>
</td> </td>
<td :style="{ width: specsWidth }"> <td :style="{ width: specsWidth }">
<el-input :disabled="isDisabled" placeholder="活动库存" style="width:90%" v-model="item.goodsStock" @input="item.goodsStock = goodsStock_input($event, item.stock)"> <el-input :disabled="isDisabled" placeholder="活动库存" style="width: 90%" v-model="item.goodsStock" @input="item.goodsStock = goodsStock_input($event, item.stock)"></el-input>
</el-input>
</td> </td>
</tr> </tr>
</tbody> </tbody>
...@@ -146,18 +144,20 @@ export default { ...@@ -146,18 +144,20 @@ export default {
activityImg: [{ required: true, message: '请选择活动宣传图', trigger: 'change' }], activityImg: [{ required: true, message: '请选择活动宣传图', trigger: 'change' }],
promotion: [{ required: true, message: '请输入活动宣传语', trigger: 'change' }], promotion: [{ required: true, message: '请输入活动宣传语', trigger: 'change' }],
activityTime: [{ required: true, message: '活动时间不能为空', trigger: 'change' }], activityTime: [{ required: true, message: '活动时间不能为空', trigger: 'change' }],
activityPrice: [{ required: true, message: '请设置秒杀价', trigger: 'change' }, activityPrice: [
{ required: true, message: '请设置秒杀价', trigger: 'change' },
{ {
validator: (rule, value, callback) => { validator: (rule, value, callback) => {
return value >= +(this.selectedProInfo.retailPrice / 100).toFixed(2) ? callback(new Error('秒杀价不能大于等于零售价')) : callback() return value >= +(this.selectedProInfo.retailPrice / 100).toFixed(2) ? callback(new Error('秒杀价必须小于零售价')) : callback()
}, },
trigger: 'change' trigger: 'change'
} }
], ],
goodsStock: [{ required: true, message: '请设置活动库存', trigger: 'change' }, goodsStock: [
{ required: true, message: '请设置活动库存', trigger: 'change' },
{ {
validator: (rule, value, callback) => { validator: (rule, value, callback) => {
return value >= this.selectedProInfo.goodsStock ? callback(new Error('活动库存不能大于等于商品库存')) : callback() return value > this.selectedProInfo.goodsStock ? callback(new Error('活动库存不能大于商品库存')) : callback()
}, },
trigger: 'change' trigger: 'change'
} }
...@@ -248,10 +248,10 @@ export default { ...@@ -248,10 +248,10 @@ export default {
deep: true deep: true
}, },
'editForm.activityPrice'(newValue, oldValue) { 'editForm.activityPrice'(newValue, oldValue) {
this.editForm.activityPrice = limitPrice(newValue, oldValue, 5, 2, 0, (this.selectedProInfo.retailPrice / 100).toFixed(2)) this.editForm.activityPrice = limitPrice(newValue, oldValue, 5, 2, 0)
}, },
'editForm.goodsStock'(newValue, oldValue) { 'editForm.goodsStock'(newValue, oldValue) {
this.editForm.goodsStock = limitPrice(newValue, oldValue, 5, 0, 0, this.selectedProInfo.goodsStock) this.editForm.goodsStock = limitPrice(newValue, oldValue, 5, 0, 0)
} }
}, },
...@@ -299,7 +299,7 @@ export default { ...@@ -299,7 +299,7 @@ export default {
} }
}, },
handleSingleSelectClose(isCancel = false) { handleSingleSelectClose(isCancel = false) {
if(isCancel) { if (isCancel) {
this.selectedProInfo.id && this.getGoodInfo(this.selectedProInfo.id) this.selectedProInfo.id && this.getGoodInfo(this.selectedProInfo.id)
} }
this.isSingleSelectVisible = !this.isSingleSelectVisible this.isSingleSelectVisible = !this.isSingleSelectVisible
...@@ -432,7 +432,7 @@ export default { ...@@ -432,7 +432,7 @@ export default {
form.activityPrice = (info.activityPrice / 100).toFixed(2) form.activityPrice = (info.activityPrice / 100).toFixed(2)
form.goodsStock = info.goodsStock form.goodsStock = info.goodsStock
} }
this.$nextTick(()=>{ this.$nextTick(() => {
this.editStatus = false this.editStatus = false
}) })
}) })
...@@ -465,7 +465,7 @@ export default { ...@@ -465,7 +465,7 @@ export default {
delete param.activityPrice delete param.activityPrice
delete param.goodsStock delete param.goodsStock
param.specificationDetailList = [] param.specificationDetailList = []
this.nameToValSpecsList.forEach(function(item) { this.nameToValSpecsList.forEach(function (item) {
var obj = { var obj = {
retailPrice: (item.activityPrice * 100).toFixed(0), //存的分,需乘100 retailPrice: (item.activityPrice * 100).toFixed(0), //存的分,需乘100
stock: item.goodsStock, stock: item.goodsStock,
...@@ -544,7 +544,8 @@ export default { ...@@ -544,7 +544,8 @@ export default {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { })
.then(() => {
this.cancelJump() this.cancelJump()
}) })
.catch(() => {}) .catch(() => {})
......
...@@ -155,7 +155,7 @@ export default { ...@@ -155,7 +155,7 @@ export default {
this.editForm.merchantList.forEach(item => { this.editForm.merchantList.forEach(item => {
item.merchantNo = item.merchantId item.merchantNo = item.merchantId
}) })
this.$nextTick(()=>{ this.$nextTick(() => {
this.editStatus = false this.editStatus = false
}) })
}) })
...@@ -178,7 +178,7 @@ export default { ...@@ -178,7 +178,7 @@ export default {
this.$messageBox.confirm('是否删除该门店?', '删除', { this.$messageBox.confirm('是否删除该门店?', '删除', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'error', // type: 'error',
callback: action => { callback: action => {
if (action == 'confirm') { if (action == 'confirm') {
var idx = this.editForm.merchantList.findIndex(item => item.merchantNo == obj.scope.merchantNo) var idx = this.editForm.merchantList.findIndex(item => item.merchantNo == obj.scope.merchantNo)
...@@ -228,7 +228,8 @@ export default { ...@@ -228,7 +228,8 @@ export default {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { })
.then(() => {
this.cancelJump() this.cancelJump()
}) })
.catch(() => {}) .catch(() => {})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!