Commit e0a0f178 by 胡悦
2 parents 0e7d6b76 6396a77f
...@@ -21,14 +21,14 @@ ...@@ -21,14 +21,14 @@
</div> </div>
<div> <div>
<span>会员权益使用地址:</span> <span>会员权益使用地址:</span>
<span class="address">{{ ruleForm.linkUrl }}</span> <span class="address ellipsis-1" :title="ruleForm.linkUrl">{{ ruleForm.linkUrl }}</span>
</div> </div>
<el-button class="seeEquity" size="small" type="primary" @click="openDialog">查看权益</el-button> <el-button class="seeEquity" size="small" type="primary" @click="openDialog">查看权益</el-button>
</div> </div>
<div class="cardDetail editForm" v-else> <div class="cardDetail editForm" v-else>
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="90px" class="demo-ruleForm" style="width: 500px"> <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="90px" class="demo-ruleForm" style="width: 500px">
<el-form-item label="会员卡名" prop="cardName" size="small"> <el-form-item label="会员卡名" prop="cardName" size="small">
<el-input v-model="ruleForm.cardName" size="small" placeholder="请输入会员卡名" maxlength="15"></el-input> <el-input v-model="ruleForm.cardName" class="cardNameInput" size="small" placeholder="请输入会员卡名" show-word-limit maxlength="15"></el-input>
</el-form-item> </el-form-item>
<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" placeholder="请输入合理价格" @keyup.native="ruleForm.price = oninput(ruleForm.price)"> <el-input v-model="ruleForm.price" size="small" placeholder="请输入合理价格" @keyup.native="ruleForm.price = oninput(ruleForm.price)">
...@@ -374,15 +374,15 @@ export default { ...@@ -374,15 +374,15 @@ export default {
.masonry { .masonry {
position: absolute; position: absolute;
top: 40px; top: 40px;
left: 40px; left: 32px;
} }
.memberCardName { .memberCardName {
position: absolute; position: absolute;
font-size: 17px; font-size: 15px;
color: #8e5310; color: #8e5310;
font-weight: 700; font-weight: 700;
top: 54px; top: 54px;
left: 95px; left: 88px;
} }
} }
.cardDetail { .cardDetail {
...@@ -431,18 +431,23 @@ export default { ...@@ -431,18 +431,23 @@ export default {
color: #eb4e4e; color: #eb4e4e;
} }
.address { .address {
display: inline-block;
max-width: 600px;
color: #989898; color: #989898;
} }
} }
} }
.editForm { .editForm {
padding-top: 0px; padding-top: 0px;
.cardNameInput{
width: 423px;
}
} }
} }
.pageTitle { .pageTitle {
position: relative; position: relative;
padding: 0 40px; padding: 0 0px;
height: 20px; height: 20px;
font-size: 20px; font-size: 20px;
font-weight: 700; font-weight: 700;
...@@ -461,7 +466,7 @@ export default { ...@@ -461,7 +466,7 @@ export default {
.el-range-editor--small.el-input__inner { .el-range-editor--small.el-input__inner {
width: 215px; width: 215px;
} }
/deep/.el-input--small .el-input__inner { /deep/ .container .el-input--small .el-input__inner {
width: 215px; width: 215px;
} }
/deep/ .el-dialog__header .el-dialog__title { /deep/ .el-dialog__header .el-dialog__title {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</div> </div>
<div class="live-room container"> <div class="live-room container">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="120px" class="demo-ruleForm"> <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="120px" class="demo-ruleForm">
<el-form-item size="small" label="服务名称" prop="couponName" style="width: 420px"> <el-form-item size="small" label="服务名称" prop="couponName" style="width: 440px">
<el-input size="small" :disabled="disabledContent" v-model.trim="ruleForm.couponName" maxlength="20" placeholder="请输入服务名称,如“精洗轿车”"></el-input> <el-input size="small" :disabled="disabledContent" v-model.trim="ruleForm.couponName" maxlength="20" placeholder="请输入服务名称,如“精洗轿车”"></el-input>
</el-form-item> </el-form-item>
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
<el-button type="primary" @click="goBack" size="small">取消</el-button> <el-button type="primary" @click="goBack" size="small">取消</el-button>
</div> </div>
<!-- :hasScroll="false" :noBtnOk="true" :noCancel="true" :noClose="false" --> <!-- :hasScroll="false" :noBtnOk="true" :noCancel="true" :noClose="false" -->
<glsx-dialog title="" width="547px" btnCloseLabel="取消" :noClose="false" :noCancel="true" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleConfirm"> <glsx-dialog title="" :hasScroll="false" width="547px" btnCloseLabel="取消" :noClose="false" :noCancel="true" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleConfirm">
<div class="content-body"> <div class="content-body">
当前有内容信息未保存,是否继续取消 当前有内容信息未保存,是否继续取消
</div> </div>
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
</div> </div>
<div class="live-room container"> <div class="live-room container">
<el-form ref="ruleForm" :rules="rules" :model="ruleForm" label-width="120px" class="demo-ruleForm"> <el-form ref="ruleForm" :rules="rules" :model="ruleForm" label-width="120px" class="demo-ruleForm">
<el-form-item size="small" label="套餐名称" prop="packageName" style="width: 420px"> <el-form-item size="small" label="套餐名称" prop="packageName" style="width: 440px">
<el-input size="small" v-model="ruleForm.packageName" placeholder="请输入套餐名称"></el-input> <el-input size="small" v-model="ruleForm.packageName" maxlength="20" placeholder="请输入套餐名称"></el-input>
</el-form-item> </el-form-item>
<el-form-item size="small" label="套餐内容" class="is-required"> <el-form-item size="small" label="套餐内容" class="is-required">
<el-button @click="openDialog" size="small" icon="el-icon-plus">选择服务</el-button> <el-button @click="openDialog" size="small" icon="el-icon-plus">选择服务</el-button>
...@@ -46,6 +46,7 @@ ...@@ -46,6 +46,7 @@
<el-button type="primary" @click="submitForm('ruleForm')" size="small">创建</el-button> <el-button type="primary" @click="submitForm('ruleForm')" size="small">创建</el-button>
<el-button type="primary" @click="goBack" size="small">取消</el-button> <el-button type="primary" @click="goBack" size="small">取消</el-button>
</div> </div>
<!-- :modalAppendToBody="false" -->
<glsx-dialog title="套餐服务" class="setmealServiceDialog" width="1142px" :noCancel="true" :noClose="false" btnSize="small" :isVisible="setmealDialogVisible" @closeDialog="handleClose" @confirmDialog="handleConfirm"> <glsx-dialog title="套餐服务" class="setmealServiceDialog" width="1142px" :noCancel="true" :noClose="false" btnSize="small" :isVisible="setmealDialogVisible" @closeDialog="handleClose" @confirmDialog="handleConfirm">
<div class="content-body"> <div class="content-body">
<div class="subTitle"> <div class="subTitle">
...@@ -95,7 +96,7 @@ ...@@ -95,7 +96,7 @@
</div> </div>
</div> </div>
</glsx-dialog> </glsx-dialog>
<glsx-dialog title="" class="tipDialog" width="547px" btnCloseLabel="取消" :noClose="false" :noCancel="true" btnSize="small" :isVisible="isTipDialogVisible" :showClose="false" @closeDialog="handleTipClose" @confirmDialog="handleTipConfirm"> <glsx-dialog title="" :hasScroll="false" class="tipDialog" width="547px" btnCloseLabel="取消" :noClose="false" :noCancel="true" btnSize="small" :isVisible="isTipDialogVisible" :showClose="false" @closeDialog="handleTipClose" @confirmDialog="handleTipConfirm">
<div class="content-body">当前有内容信息未保存,是否继续返回</div> <div class="content-body">当前有内容信息未保存,是否继续返回</div>
</glsx-dialog> </glsx-dialog>
</div> </div>
...@@ -144,10 +145,13 @@ export default { ...@@ -144,10 +145,13 @@ export default {
this.merchantId = this.$globalState.session.merchantId this.merchantId = this.$globalState.session.merchantId
this.merchantName = this.$globalState.session.merchantName this.merchantName = this.$globalState.session.merchantName
} }
this.getSetmealServiceFun()
if (this.id) { // if (this.id) {
this.getServiceInfo() //获取编辑详情 this.getSetmealServiceFun() //获取服务套餐,执行完了之后去获取编辑详情
}
// }else{
// this.getSetmealServiceFun()
// }
}, },
watch: { watch: {
// allItemList: { // allItemList: {
...@@ -190,6 +194,15 @@ export default { ...@@ -190,6 +194,15 @@ export default {
this.ruleForm = res.data this.ruleForm = res.data
this.choseItemList = res.data.list || [] this.choseItemList = res.data.list || []
this.totalPrice = res.data.referencePrice this.totalPrice = res.data.referencePrice
this.choseItemList.forEach(item => {
for (let i = 0; i < this.allItemList.length; i++) {
if (item.serviceId == this.allItemList[i].id) {
item.vipPrice = this.allItemList[i].vipPrice
}
}
})
this.copyTotalPrice = this.totalPrice this.copyTotalPrice = this.totalPrice
this.copyRuleForm = JSON.parse(JSON.stringify(this.ruleForm)) //深拷贝一份数据 this.copyRuleForm = JSON.parse(JSON.stringify(this.ruleForm)) //深拷贝一份数据
this.copyChoseItemList = this.choseItemList this.copyChoseItemList = this.choseItemList
...@@ -211,6 +224,10 @@ export default { ...@@ -211,6 +224,10 @@ export default {
serviceQuantity: 0 serviceQuantity: 0
} }
}) })
if (this.id) {
this.getServiceInfo() //获取编辑详情
}
}) })
}, },
//选中该条服务套餐 //选中该条服务套餐
...@@ -502,6 +519,7 @@ export default { ...@@ -502,6 +519,7 @@ export default {
z-index: 999; z-index: 999;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1); box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
} }
.setmealServiceDialog {
/deep/.el-dialog__headerbtn { /deep/.el-dialog__headerbtn {
background-color: #d9e0f5; background-color: #d9e0f5;
width: 25px; width: 25px;
...@@ -639,5 +657,21 @@ export default { ...@@ -639,5 +657,21 @@ export default {
margin-left: 40px; margin-left: 40px;
} }
} }
}
.tipDialog {
/deep/ .el-dialog__body {
border-bottom: 1px solid #e6e6e6;
padding: 20px 25px;
.content-body {
font-size: 18px;
text-align: center;
font-weight: 400;
color: #333333;
}
}
/deep/ .el-dialog__footer {
text-align: center;
}
}
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!