Commit d715b60c by chenwq

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

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