Commit cd90072b by 李长胜

bugs修改

1 parent 047d1935
<!-- 弹窗 -->
<template>
<div>
<el-dialog :title="title" :visible.sync="isVisible" :show-close="showClose" :before-close="handleClose" :close-on-click-modal="false" :width="width">
<el-scrollbar>
<el-dialog :title="title" :visible.sync="isVisible" :show-close="showClose" :before-close="handleClose" :close-on-click-modal="false" :modal-append-to-body="false" :width="width">
<el-scrollbar v-if="hasScroll">
<span slot="title">
{{ title }}
<span class="main-title">{{ title }}</span>
<span class="dialog-sub-title">
<slot name="sub-title"></slot>
</span>
</span>
<slot></slot>
</el-scrollbar>
<template v-if="!hasScroll">
<span slot="title">
<span class="main-title">{{ title }}</span>
<span class="dialog-sub-title">
<slot name="sub-title"></slot>
</span>
</span>
<slot></slot>
</template>
<div slot="footer">
<slot name="btn-start"></slot>
<el-button type="primary" v-if="!noClose" :size="btnSize" @click="handleClose">关闭</el-button>
<el-button :type="typeName" v-if="!noClose" :size="btnSize" @click="handleClose">关闭</el-button>
<el-button type="primary" v-if="!noBtnOk" :size="btnSize" @click="handleConfirm">{{ btnOkLabel }}</el-button>
<el-button v-if="!noCancel" type="primary" :size="btnSize" @click="handleClose">{{ btnCancelLabel }}</el-button>
<el-button type="primary" v-if="!noCancel" :size="btnSize" @click="handleClose">{{ btnCancelLabel }}</el-button>
<slot name="btn-middle"></slot>
</div>
</el-dialog>
......@@ -29,6 +39,10 @@ export default {
return {}
},
props: {
hasScroll:{
type: Boolean,
default: true
},
title: {
type: String,
default: ''
......@@ -61,6 +75,10 @@ export default {
type: Boolean,
default: true
},
typeName:{
type:String,
default:''
},
width: {
type: String,
default: '580px'
......
......@@ -83,7 +83,7 @@
</GLTable>
</div>
<glsx-dialog title="权益详情" width="712px" :noBtnOk="true" :noCancel="true" :noClose="false" btnCancelLabel="关闭" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleClose">
<el-scrollbar>
<!-- <el-scrollbar> -->
<div class="modal-body">
<div class="equity-name">汽车权益</div>
<div class="equity-panel">
......@@ -104,7 +104,7 @@
</div>
</div>
</div>
</el-scrollbar>
<!-- </el-scrollbar> -->
</glsx-dialog>
</div>
</template>
......@@ -180,7 +180,6 @@ export default {
{
label: '会员类型',
prop: 'memberType',
line: 1,
formatter: cellValue => {
return this.baseDataList.memberTypeList.find(item => item.confId == cellValue.memberType).confName
}
......@@ -192,18 +191,17 @@ export default {
{
label: '开通方式',
prop: 'activeTypeDesc',
line: 1
},
{
label: '开通日期',
prop: 'activeTime',
line: 1
// addHtml: 'activeTime'
},
{
label: '状态',
prop: 'status',
width: '80',
formatter: cellValue => {
return this.baseDataList.statusList.find(item => item.confId == cellValue.status).confName
}
......@@ -283,11 +281,12 @@ export default {
},
getCardContentFun() {
getCardContent({ merchantId: this.merchantId }).then(res => {
this.ruleForm.equityId = res[0].id
this.ruleForm.cardName = res[0].cardClassName
this.ruleForm.price = res[0].price
this.ruleForm.marketPrice = res[0].marketPrice
this.ruleForm.linkUrl = res[0].url
this.ruleForm.equityId = res[0].id
})
},
openEditWrap() {
......
......@@ -36,7 +36,7 @@
<img class="img-60" :src="scope.scope.shareImgUrl" />
</span> -->
<span class="table-btns" slot="auth-button" slot-scope="scope" :data="scope.scope">
<el-button type="text" @click="handleDetail(scope.scope)">详情</el-button>
<el-button type="text" @click="handleDetail(scope.scope)" v-if="scope.scope.orderType==1">详情</el-button>
</span>
</GLTable>
</div>
......@@ -86,7 +86,7 @@ export default {
{
label: '名称',
prop: 'packageName',
width: '180'
width: '180',
// formatter: cellValue => {
// return cellValue.startTime + '-' + cellValue.endTime
// }
......
......@@ -4,7 +4,9 @@
<div class="topMsg">
<div class="orderNo">订单编号:{{ detail.orderCode }}</div>
<div class="orderTime">下单时间:{{ detail.createDate }}</div>
<el-button type="primary" size="small" class="backBtn" @click="goBack">返回</el-button>
<el-button type="primary" size="small" class="backBtn" @click="goBack">
返回
</el-button>
</div>
<div class="midMsgWrap">
<div class="midMsgTitle">
......@@ -16,7 +18,7 @@
<div class="midMsgContent">
<div class="item">
<div>付款状态:已付款</div>
<div>付款金额:{{ detail.realPayPrice }}元</div>
<div>付款金额:{{ detail.realPayPrice }}<span v-show="detail.realPayPrice">元</span></div>
<div>付款方式:微信支付</div>
<div>付款时间:{{ detail.createDate }}</div>
</div>
......@@ -37,6 +39,7 @@
</div>
</div>
<div id="tableWrap">
<div class="tableWrapBox">
<el-table :data="tableData" style="width: 100%" :header-cell-style="{ height: '54px', background: '#F4F6FC', color: '#333333', fontSize: '14px' }">
<el-table-column label="商品名称" align="center">
<template slot-scope="scope">
......@@ -59,7 +62,7 @@
<el-table-column prop="totalPrice" label="小计/元" align="center"></el-table-column>
<el-table-column prop="realPayPrice" label="实收金额" align="center">
<template slot-scope="scope">
<span style="color: #eb4e4e">{{ scope.row.realPayPrice }}</span>
<span style="color:#EB4E4E">{{ scope.row.realPayPrice }}</span>
</template>
</el-table-column>
<el-table-column prop="orderStatus" label="状态" align="center">
......@@ -69,6 +72,8 @@
</el-table-column>
</el-table>
</div>
</div>
</div>
</div>
</template>
......@@ -79,8 +84,8 @@ export default {
data() {
return {
tableData: [{}],
detail: {}, //this.$route.query.detail,
mylist: []
detail: {},//this.$route.query.detail,
mylist:[]
}
},
created() {
......@@ -95,11 +100,11 @@ export default {
})
},
methods: {
getOrderPageDetail() {
getOrderPageDetail({ id: this.$route.query.id }).then(res => {
getOrderPageDetail(){
getOrderPageDetail({id:this.$route.query.id}).then(res=>{
// this.mylist=res.list
if (res.code == '0') {
this.detail = res.data
if(res.code=='0'){
this.detail=res.data
this.$set(this.tableData[0], 'couponList', this.detail.couponList)
this.$set(this.tableData[0], 'orderType', this.detail.orderType)
this.$set(this.tableData[0], 'effectiveNum', this.detail.effectiveNum)
......@@ -108,9 +113,11 @@ export default {
this.$set(this.tableData[0], 'totalPrice', this.detail.originalPrice)
this.$set(this.tableData[0], 'realPayPrice', this.detail.realPayPrice)
this.$set(this.tableData[0], 'orderStatus', this.detail.orderStatus)
} else {
}else{
this.$message.error(`${res.message}`)
}
})
},
......@@ -135,8 +142,9 @@ export default {
<style lang="scss" scoped>
.container {
padding-top: 0px;
padding: 0 0 20px;
.topMsg {
margin-right: 20px;
display: flex;
height: 56px;
align-items: center;
......@@ -162,6 +170,7 @@ export default {
}
}
.midMsgWrap {
border-bottom: 1px solid#DCDFE6;
margin-bottom: 30px;
.midMsgTitle {
......@@ -196,5 +205,10 @@ export default {
}
}
}
.tableWrapBox{
margin-left: 30px;
margin-right: 30px;
border: 1px solid rgba(0, 0, 0, 0.06);
}
}
</style>
......@@ -116,6 +116,7 @@ export default {
}
]
}
}
},
methods: {
......@@ -193,7 +194,7 @@ export default {
</script>
<style lang="scss" scoped>
/deep/.el-input--small .el-input__inner{
/deep/.el-input--small .el-input__inner {
width: 215px;
}
.el-range-editor.is-active,
......
......@@ -3,7 +3,7 @@
<!-- //提示面板组件 -->
<tip-panel panelWidth="616px" panelMinHeight="60px" :panelContent="panelContent" v-if="isFirstShow" @closePanel="closePanel"></tip-panel>
<div class="live-room container">
<el-form :inline="true" style="width: 100%" :model="searchForm" label-width="100px" label-position="right">
<el-form :inline="true" style="width:100%" :model="searchForm" label-width="100px" label-position="right">
<el-row>
<el-form-item size="small">
<el-button :size="size" type="primary" icon="el-icon-plus" @click="handleCreate">创建服务</el-button>
......@@ -12,7 +12,7 @@
<el-input :size="size" v-model="searchForm.couponName" placeholder="请输入服务名称" clearable></el-input>
</el-form-item>
<el-form-item size="small" style="float: right">
<el-form-item size="small" style="float:right">
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
<el-button :size="size" @click="handleReset">重置</el-button>
</el-form-item>
......@@ -47,7 +47,8 @@
</template>
<script>
import { getServiceListApi, effectiveService, deleteService, getLoginCount } from '@/api/modules/service'
import { getServiceListApi, effectiveService, deleteService,getLoginCount } from '@/api/modules/service'
import { serviceStatusList } from '@/common/constant'
import tipPanel from '@/components/tipPanel/index.vue'
export default {
......@@ -98,11 +99,12 @@ export default {
label: '剩余库存',
prop: 'residueAmount',
line: 1
// addHtml: 'activeTime'
},
{
label: '状态',
prop: 'status',
width: '80',
// width: '80',
formatter: cellValue => {
return this.baseDataList.serviceStatusList.find(item => item.confId == cellValue.status).confName
}
......@@ -110,7 +112,7 @@ export default {
{
label: '创建时间',
prop: 'createdDate',
width: 95
width:95
}
]
},
......@@ -255,6 +257,7 @@ export default {
</script>
<style lang="scss" scoped>
/deep/.el-input--small .el-input__inner{
width: 215px;
}
......
......@@ -91,11 +91,16 @@
<el-form-item size="small" label="使用说明" prop="useDescription" style="width: 670px">
<el-input size="small" :rows="6" :disabled="title == '查看'" type="textarea" v-model="ruleForm.useDescription" placeholder="请输入" maxlength="200" show-word-limit></el-input>
</el-form-item>
<!-- <el-form-item size="small">
<el-button type="primary" @click="submitForm('ruleForm')" size="small">创建</el-button>
<el-button type="primary" @click="resetForm('ruleForm')" size="small">重置</el-button>
</el-form-item> -->
</el-form>
<div class="serviceCard">
<div class="cardtop">
<img src="@/assets/serviceMemberCard.png" alt="" />
<span class="serviceName ellipsis-1" :title="couponName">{{ ruleForm.couponName || '-' }}</span>
<span class="serviceName ellipsis-1" :title="ruleForm.couponName">{{ ruleForm.couponName || '-' }}</span>
<span class="effectiveRange">{{ limitText }}</span>
<span class="timeRange">{{ effectiveRangeText }}</span>
<div class="grayLine"></div>
......@@ -122,6 +127,15 @@
import { createService, detailService, updateService } from '@/api/modules/service'
export default {
data() {
var checkZero = (rule, value, callback) => {
setTimeout(() => {
if (value == 0) {
callback(new Error('请输入有效数字值'))
} else {
callback()
}
})
}
var checkStock = (rule, value, callback) => {
if (value <= 0) {
return callback(new Error('库存不能为空或负数'))
......@@ -172,8 +186,14 @@ export default {
// type: [{ type: 'array', required: true, message: '请至少选择一个活动性质', trigger: 'change' }],
effectiveType: [{ required: true, message: '请选择有效期', trigger: 'change' }],
customUseLimit: [{ required: true, message: '请选择使用限制', trigger: 'change' }],
vipPrice: [{ required: true, message: '请输入会员价', trigger: 'blur' }],
shopPrice: [{ required: true, message: '请输入门店价', trigger: 'blur' }],
vipPrice: [
{ required: true, message: '请输入会员价', trigger: 'blur' },
{ validator: checkZero, trigger: 'blur' }
],
shopPrice: [
{ required: true, message: '请输入门店价', trigger: 'blur' },
{ validator: checkZero, trigger: 'blur' }
],
stock: [
{ required: true, message: '请输入库存', trigger: 'blur' },
{ validator: checkStock, trigger: 'blur' }
......@@ -420,7 +440,7 @@ export default {
<style lang="scss" scoped>
.live-room {
.topMsg {
margin: 20px 0px 0;
margin: 20px 40px 0;
padding: 0 20px;
background-color: #fff;
height: 56px;
......@@ -440,7 +460,8 @@ export default {
}
}
.container {
margin: 0 0px 100px;
margin: 0 40px 100px;
position: relative;
/deep/ .el-form-item__content {
.radioGroupWrap {
......
......@@ -26,7 +26,7 @@
</span>
</GLTable>
</div>
<glsx-dialog title="示例效果" width="1142px" :noBtnOk="true" :noCancel="true" :noClose="false" btnCancelLabel="关闭" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleClose">
<glsx-dialog title="示例效果" width="1142px" :hasScroll="false" :noBtnOk="true" :noCancel="true" :noClose="false" btnCancelLabel="关闭" btnSize="small" :isVisible="isDialogVisible" :showClose="false" @closeDialog="handleClose" @confirmDialog="handleClose">
<div class="content-body">
<div class="content-item col1">
<div class="subTitle">
......@@ -54,6 +54,7 @@
import glsxDialog from '@/components/glsx-dialog'
import { getSetMealListApi, deleteSetMeal, upDownPackage } from '@/api/modules/setmeal'
import { getLoginCount } from '@/api/modules/service'
import { stateList } from '@/common/constant'
import tipPanel from '@/components/tipPanel/index.vue'
export default {
......@@ -220,11 +221,14 @@ export default {
margin-bottom: 20px;
}
/deep/ .el-dialog__header .el-dialog__title {
/deep/ .el-dialog__header {
.main-title{
font-size: 16px;
font-weight: 700;
color: #000000;
}
}
/deep/ .el-dialog__body {
border-top: 1px solid #e6e6e6;
......@@ -232,6 +236,7 @@ export default {
padding: 20px 25px;
.content-body {
display: flex;
.col2 {
margin-left: 40px;
}
......@@ -243,10 +248,21 @@ export default {
font-weight: 700;
color: #000000;
}
.imageWrap,.twoImageWrap{
margin-left: 25px;
img{
border: 1.5px solid rgba(0, 0, 0, 0.03);
box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.03);
}
img+img{
margin-left: 22px;
}
}
}
}
}
/deep/ .el-dialog__footer {
text-align: center;
padding: 20px;
}
</style>
......@@ -32,6 +32,7 @@
<template slot="append">元</template>
</el-input>
</el-form-item>
<el-form-item size="small" label="说明" prop="notes" style="width: 670px">
<el-input size="small" :rows="6" type="textarea" v-model="ruleForm.notes" placeholder="请输入" maxlength="200" show-word-limit></el-input>
</el-form-item>
......@@ -47,7 +48,7 @@
<el-button type="primary" @click="submitForm('ruleForm')" size="small">创建</el-button>
<el-button type="primary" @click="resetForm('ruleForm')" size="small">取消</el-button>
</div>
<glsx-dialog title="套餐服务" width="1142px" btnCancelLabel="关闭" btnSize="small" :isVisible="setmealDialogVisible" @closeDialog="handleClose" @confirmDialog="handleConfirm">
<glsx-dialog title="套餐服务" width="1142px" :noCancel="true" :noClose="false" btnSize="small" :isVisible="setmealDialogVisible" @closeDialog="handleClose" @confirmDialog="handleConfirm">
<div class="content-body">
<div class="subTitle">
<span>请选择套餐服务:</span>
......@@ -390,7 +391,7 @@ export default {
<style lang="scss" scoped>
.live-room {
.topMsg {
margin: 20px 0px 0;
margin: 20px 40px 0;
padding: 0 20px;
background-color: #fff;
height: 56px;
......@@ -410,7 +411,7 @@ export default {
}
}
.container {
margin: 0 0px 20px;
margin: 0 40px 20px;
position: relative;
min-height: calc(100vh - 300px);
.allChoseWrap {
......@@ -455,6 +456,8 @@ export default {
}
}
.totalWrap {
margin-top: 5px;
margin-bottom: -5px;
span {
font-size: 14px;
......@@ -483,8 +486,10 @@ export default {
width: 25px;
height: 25px;
border-radius: 50%;
.el-dialog__close {
color: #5850ff;
font-weight: bold;
}
}
/deep/ .el-dialog__header .el-dialog__title {
......@@ -496,10 +501,11 @@ export default {
/deep/ .el-dialog__body {
border-top: 1px solid #e6e6e6;
border-bottom: 1px solid #e6e6e6;
padding: 20px 25px;
padding: 0px 25px;
.content-body {
max-height: 400px;
max-height: 446px;
.subTitle {
margin-top: 20px;
margin-bottom: 20px;
span:first-child {
font-size: 16px;
......@@ -585,6 +591,8 @@ export default {
}
}
.amountTo {
margin-top: 17px;
margin-bottom: 28px;
text-align: center;
.bottomText {
font-size: 16px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!