Commit d715b60c by chenwq

优惠券,会员中心。表单ui改版

1 parent 559d812c
......@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.5.1",
"glsx-components": "^1.5.2",
"lodash": "^4.17.21",
"node-sass": "^4.0.0",
"vue": "^2.6.10",
......
<template>
<div v-if="provinceView">
<el-form ref="provinceForm" :model="provinceForm" inline="true" class="province">
<el-form ref="provinceForm" :model="provinceForm" inline="true" class="province" style="padding-left: 0;">
<el-select size="small" v-model="provinceForm.provinceName" clearable :disabled="isDisabled" placeholder="选择省份" :style="{ width: defaultWidth }" @change="selectProvince" class="select-padding">
<el-option v-for="item in AllData" :key="item.adcode" :label="item.name" :value="item.name" @click.native="selectProvince(item)"></el-option>
</el-select>
......@@ -160,9 +160,12 @@ export default {
}
}
</script>
<style scoped lang="scss">
<style lang="scss">
.province {
display: inline-flex;
.el-select .el-input {
width: auto !important;
}
}
.select-padding {
margin-right: 10px;
......
......@@ -104,8 +104,8 @@
</el-form-item>
</template>
<template slot="denominationHtml">
<el-input v-model="editForm.denomination" id="denomination" style="width: 150px" :disabled="apear != 'couponAdd'" @blur.native.capture="editForm.useChannel == 1 && denominationBlur($event)">
<span slot="append">元</span>
<el-input v-model="editForm.denomination" id="denomination" placeholder="请输入面值" :disabled="apear != 'couponAdd'" @blur.native.capture="editForm.useChannel == 1 && denominationBlur($event)">
<!-- <span slot="append">元</span> -->
</el-input>
<span style="color: red; margin-left: 15px" v-if="priceFlag && editForm.useChannel == 1">{{
selectedAllProList.length ? '存在零售价低于代金券的商品' : '系统暂无已创建的商品,请先创建好商品后再配置代金券'
......@@ -115,7 +115,7 @@
<template slot="stock" slot-scope="scope">
<span v-if="$isGroupUp">无库存限制</span>
<el-input :disabled="apear != 'couponAdd'" v-else class="w-150" v-model="editForm[scope.scope.name]" placeholder="请输入库存">
<span slot="suffix">张</span>
<!-- <span slot="suffix">张</span> -->
</el-input>
</template>
<!-- 只有使用途径为线上商品时才有效,到店核销时屏蔽 -->
......@@ -266,6 +266,7 @@ export default {
label: '预估成本/元',
name: 'anticipatedCost',
type: 'input',
placeholder: '请输入预估成本',
isDisabled: false
},
{
......@@ -296,12 +297,12 @@ export default {
isHide: true
},
{
label: '面值',
label: '面值/元',
name: 'denomination',
addHtml: 'denominationHtml'
},
{
label: '库存',
label: '库存/张',
name: 'stock',
addHtml: 'stock'
// width: '150px',
......
......@@ -99,7 +99,7 @@
<template slot="stock" slot-scope="scope">
<span v-if="$isGroupUp">无库存限制</span>
<el-input :disabled="apear != 'couponAdd'" v-else class="w-150" v-model="editForm[scope.scope.name]" placeholder="请输入库存">
<span slot="suffix">张</span>
<!-- <span slot="suffix">张</span> -->
</el-input>
</template>
<template slot="useDescriptionHtml">
......@@ -200,13 +200,14 @@ export default {
label: '预估成本/元',
name: 'anticipatedCost',
type: 'input',
isDisabled: false
isDisabled: false,
placeholder: '请输入预估成本'
},
{
label: '优惠内容',
label: '优惠内容/折',
name: 'discountIntensity',
type: 'input',
append: '折'
placeholder: '请输入优惠内容'
},
{
label: '使用限制',
......@@ -214,7 +215,7 @@ export default {
addHtml: 'useLimitHtml'
},
{
label: '库存',
label: '库存/张',
name: 'stock',
addHtml: 'stock'
// width: '180px',
......
......@@ -58,7 +58,7 @@
<template slot="stock" slot-scope="scope">
<span v-if="$isGroupUp">无库存限制</span>
<el-input :disabled="apear != 'couponAdd'" v-else class="w-150" v-model="editForm[scope.scope.name]" placeholder="请输入库存">
<span slot="suffix">张</span>
<!-- <span slot="suffix">张</span> -->
</el-input>
</template>
<template slot="directionalFlagHtml">
......@@ -184,7 +184,7 @@ export default {
isDisabled: false
},
{
label: '库存',
label: '库存/张',
name: 'stock',
addHtml: 'stock'
// width: '180px',
......
......@@ -60,24 +60,22 @@
</el-radio-group>
</div>
</el-form-item>
<el-form-item v-if="!$isGroupUp" size="small" label="会员价:" prop="vipPrice">
<el-input size="small" :disabled="disabledContent" maxlength="8" v-model="ruleForm.vipPrice" placeholder="请输入" @keyup.native="ruleForm.vipPrice = oninput(ruleForm.vipPrice)">
<!-- <template slot="append">元</template> -->
<span slot="suffix" class="suffix-label">元</span>
<el-form-item v-if="!$isGroupUp" size="small" label="会员价/元:" prop="vipPrice">
<el-input size="small" :disabled="disabledContent" maxlength="8" v-model="ruleForm.vipPrice" placeholder="请输入会员价" @keyup.native="ruleForm.vipPrice = oninput(ruleForm.vipPrice)">
<!-- <span slot="suffix" class="suffix-label">元</span> -->
</el-input>
</el-form-item>
<el-form-item v-if="!$isGroupUp" size="small" label="门店价:" prop="shopPrice">
<el-input size="small" :disabled="disabledContent" maxlength="8" v-model="ruleForm.shopPrice" placeholder="请输入" @keyup.native="ruleForm.shopPrice = oninput(ruleForm.shopPrice)">
<!-- <template slot="append">元</template> -->
<span slot="suffix" class="suffix-label">元</span>
<el-form-item v-if="!$isGroupUp" size="small" label="门店价/元:" prop="shopPrice">
<el-input size="small" :disabled="disabledContent" maxlength="8" v-model="ruleForm.shopPrice" placeholder="请输入门店价" @keyup.native="ruleForm.shopPrice = oninput(ruleForm.shopPrice)">
<!-- <span slot="suffix" class="suffix-label">元</span> -->
</el-input>
</el-form-item>
<!-- 库存,集团版集团账号-无限制库存;其他-输入框 -->
<el-form-item size="small" label="库存:" prop="stock">
<el-form-item size="small" label="库存/张:" prop="stock">
<!-- <el-input size="small" :disabled="title == '查看'" maxlength="6" v-model.number="ruleForm.stock" placeholder="请输入"></el-input> -->
<span v-if="$isGroupUp">无库存限制</span>
<el-input :disabled="title == '查看'" v-else class="w-150" v-model="ruleForm.stock" placeholder="请输入库存">
<span slot="suffix">张</span>
<!-- <span slot="suffix">张</span> -->
</el-input>
</el-form-item>
<el-form-item size="small" label="使用说明:" prop="useDescription">
......
......@@ -60,14 +60,14 @@
</template>
<div class="pricesMerge">
<el-form-item label="售价:" size="small" prop="price" style="width: 300px">
<el-form-item label="售价/元:" size="small" prop="price" style="width: 300px">
<el-input v-model="ruleForm.price" size="small" style="width: 136px;" placeholder="请输入售价" @keyup.native="ruleForm.price = oninput(ruleForm.price)">
<span slot="suffix" class="suffix-label">元</span>
<!-- <span slot="suffix" class="suffix-label">元</span> -->
</el-input>
</el-form-item>
<el-form-item label="市场价:" prop="marketPrice" size="small" style="width: 300px">
<el-form-item label="市场价/元:" prop="marketPrice" size="small" style="width: 300px">
<el-input v-model="ruleForm.marketPrice" size="small" style="width: 136px;" placeholder="请输入市场价" @keyup.native="ruleForm.marketPrice = oninput(ruleForm.marketPrice)">
<span slot="suffix" class="suffix-label">元</span>
<!-- <span slot="suffix" class="suffix-label">元</span> -->
</el-input>
</el-form-item>
</div>
......@@ -110,7 +110,7 @@
</span>
</GLTable>
</div>
<GLDialog :mode="mode" title="权益详情" :hasFooter="hasFooter" :type="'error'" :visible.sync="isDialogVisible">
<GLDialog :mode="mode" title="权益详情" :hasFooter="hasFooter" :type="'error'" :visible.sync="isDialogVisible">
<div class="modal-body">
<div class="equity-name">汽车权益</div>
<div class="equity-panel">
......@@ -133,7 +133,7 @@
</div>
</GLDialog>
<!-- 推广弹窗 -->
<GLDialog :mode="mode" title="试用推广" @onOk="handleQRConfirm" @onCancel="handleQRClose" :visible.sync="isQRVisible">
<GLDialog :mode="mode" title="试用推广" @onOk="handleQRConfirm" @onCancel="handleQRClose" :visible.sync="isQRVisible">
<el-form class="proForm" :model="ruleForm" :rules="rules" ref="ruleForm" label-width="68px">
<div class="form">
<div class="main-qrcode">
......@@ -771,7 +771,6 @@ export default {
width: 215px;
}
/deep/.el-dialog__body {
.modal-body {
max-height: 400px;
}
......
......@@ -30,9 +30,9 @@
<div class="el-form-item__error" v-if="setmealContentRules">请选择套餐</div>
</el-form-item>
<el-form-item size="small" label="套餐售价:" prop="packagePrice">
<el-form-item size="small" label="套餐售价/元:" prop="packagePrice">
<el-input size="small" v-model="ruleForm.packagePrice" placeholder="请输入套餐售价" @keyup.native="ruleForm.packagePrice = oninput(ruleForm.packagePrice)">
<span slot="suffix" class="suffix-label">元</span>
<!-- <span slot="suffix" class="suffix-label">元</span> -->
</el-input>
</el-form-item>
<!-- <template v-if="accountLevel == 4">
......@@ -195,7 +195,7 @@ export default {
this.getServiceInfo()
// this.getSetmealServiceFun() //获取服务套餐,执行完了之后去获取编辑详情
},
mounted() {},
mounted() { },
methods: {
//获取会员卡上方卡片的相关信息
getCardContentFun() {
......
......@@ -165,12 +165,12 @@
<span class="mode-radio">{{ n.confName }}</span>
<span class="mode-radio radio-tip-txt" @click.stop.prevent="e => handleCancelBubble(e)">{{ scope.scope.tipObj[n.confId] }}</span>
</div>
<el-form-item v-show="n.confId == '0'" prop="takeFee" label="分润比例:" class="form-sub-block">
<el-input v-model="editForm.takeFee" :disabled="isDisabled || editForm[scope.scope.name] != '0'" placeholder="请输入分润比例"><span slot="suffix">%</span></el-input>
<el-form-item v-show="n.confId == '0'" prop="takeFee" label="分润比例/%:" class="form-sub-block">
<el-input v-model="editForm.takeFee" :disabled="isDisabled || editForm[scope.scope.name] != '0'" placeholder="请输入分润比例"></el-input>
<p class="edit-tips">此商品由门店帮卖货后获得的分成比例</p>
</el-form-item>
<el-form-item v-show="n.confId == '1'" prop="supplyPrice" label="供货价:" class="form-sub-block">
<el-input v-model="editForm.supplyPrice" :disabled="isDisabled || editForm[scope.scope.name] != '1'" placeholder="请输入供货价"><span slot="suffix">元</span></el-input>
<el-form-item v-show="n.confId == '1'" prop="supplyPrice" label="供货价/元:" class="form-sub-block">
<el-input v-model="editForm.supplyPrice" :disabled="isDisabled || editForm[scope.scope.name] != '1'" placeholder="请输入供货价"></el-input>
<p class="edit-tips">作为货源供给门店的价格</p>
</el-form-item>
</el-radio>
......@@ -696,22 +696,20 @@ export default {
addHtml: 'specsDetail'
},
{
label: '零售价',
label: '零售价/元',
name: 'retailPrice',
type: 'input',
append: '元',
width: '320px',
suffixSlot: 'retailPrice',
placeholder: '请输入零售价',
isHide: false,
isDisabled: false
},
{
label: '划线价',
label: '划线价/元',
name: 'originalPrice',
type: 'input',
append: '元',
width: '320px',
suffixSlot: 'originalPrice',
placeholder: '请输入划线价',
isDisabled: false
},
// {
......@@ -724,12 +722,11 @@ export default {
// isDisabled: false
// },
{
label: '会员价',
label: '会员价/元',
name: 'memberPrice',
type: 'input',
append: '元',
width: '320px',
suffixSlot: 'memberPrice',
placeholder: '请输入会员价',
isDisabled: false
},
{
......@@ -744,12 +741,11 @@ export default {
isDisabled: false
},
{
label: '库存',
label: '库存/件',
name: 'goodsStock',
type: 'input',
append: '件',
width: '320px',
suffixSlot: 'goodsStock',
placeholder: '请输入库存',
isHide: false,
isDisabled: false
}
......
......@@ -621,12 +621,11 @@ export default {
addHtml: 'activityMusic'
},
{
label: '预估销量',
label: '预估销量/元',
name: 'predictVolume',
width: '474px',
type: 'input',
append: '元',
maxlength: 20,
placeholder: '请输入预估销量',
tips: '用作战报的销量展示'
},
{
......@@ -637,7 +636,6 @@ export default {
{
label: '转发标题',
name: 'forwardTitle',
width: '474px',
type: 'input',
maxlength: 50
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!