Commit b1d89238 by 前端

BUG修复

1 parent 6ed24e5d
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<GLDialog bigTitle="预约时间" <GLDialog bigTitle="预约时间"
:visible.sync="dialogShow" :visible.sync="dialogShow"
class="detail-content-warn" class="detail-content-warn"
width="600px" width="620px"
mode="big" mode="big"
:close-on-click-modal="false" :close-on-click-modal="false"
:before-close="handleClose" :before-close="handleClose"
...@@ -19,32 +19,40 @@ ...@@ -19,32 +19,40 @@
<el-form label-width="100px" <el-form label-width="100px"
:model="infoForm" :model="infoForm"
ref="editRef" ref="editRef"
:rules="formRules" :rules="formRules">
:inline="true">
<el-form-item label="预约时间:" <el-form-item label="预约时间:"
prop="dateTime"> required>
<el-date-picker v-model="infoForm.dateTime" <el-col :span="10">
type="date" <el-form-item prop="dateTime">
class="default-width" <el-date-picker v-model="infoForm.dateTime"
placeholder="选择日期" type="date"
value-format="yyyy-MM-dd" class="default-width"
@change="inviteStatMerchantList" placeholder="选择日期"
:picker-options="datePickerOptions"></el-date-picker> value-format="yyyy-MM-dd"
<el-select v-model="infoForm.times" @change="inviteStatMerchantList"
filterable :picker-options="datePickerOptions"></el-date-picker>
placeholder="请选择" </el-form-item>
class="default-width timesSle"> </el-col>
<el-option v-for="(item, key) in timesOpt" <el-col :span="1"></el-col>
:key="key" <el-col :span="13">
:label="item.confValue" <el-form-item prop="times">
:value="item.confId" <el-select v-model="infoForm.times"
:disabled="item.disabled"></el-option> filterable
</el-select> placeholder="请选择"
<el-button type="text" class="default-width">
size="small" <el-option v-for="(item, key) in timesOpt"
class="timesSle" :key="key"
v-if="paramsObj.inviteDate" :label="item.confValue"
@click="cancelInvite">取消预约</el-button> :value="item.confId"
:disabled="item.disabled"></el-option>
</el-select>
<el-button type="text"
size="small"
class="timesSle"
v-if="paramsObj.inviteDate"
@click="cancelInvite">取消预约</el-button>
</el-form-item>
</el-col>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
...@@ -84,35 +92,31 @@ export default { ...@@ -84,35 +92,31 @@ export default {
this.inviteDatePush() this.inviteDatePush()
}, },
data() { data() {
var validateDateTime = { // var validateDateTime = {
validator: (rule, value, callback) => { // validator: (rule, value, callback) => {
if (!value) { // if (!value) {
return callback(new Error(`请选择日期`)) // return callback(new Error(`请选择日期`))
} // }
const times = this.infoForm.times // const times = this.infoForm.times
if (!times) { // if (!times) {
return callback(new Error(`请选择时间段`)) // return callback(new Error(`请选择时间段`))
} // }
callback() // 验证通过 // callback() // 验证通过
}, // },
trigger: 'change' // trigger: 'change'
} // }
return { return {
dialogConfig: {
config: {
title: '预约时间',
width: '600px'
}
},
infoForm: { infoForm: {
dateTime: '', dateTime: '',
times: '' times: ''
}, },
editChildRef: 'editChildRef', editChildRef: 'editChildRef',
formRules: { formRules: {
dateTime: [validateDateTime] // dateTime: [validateDateTime]
dateTime: [{ required: true, message: '请选择日期', trigger: 'change' }],
times: [{ required: true, message: '请选择时间段', trigger: 'change' }]
}, },
datePickerOptions: { datePickerOptions: {
disabledDate: time => { disabledDate: time => {
...@@ -267,103 +271,10 @@ export default { ...@@ -267,103 +271,10 @@ export default {
height: 28px; height: 28px;
margin-bottom: 20px; margin-bottom: 20px;
.tipsText { .tipsText {
padding-left: 20px;
font-size: 14px; font-size: 14px;
} }
} }
.el-form-item__content {
display: inline-block;
width: calc(100% - 150px);
line-height: 24px;
}
.el-form-item__label {
padding: 0;
line-height: 24px;
}
.el-form-item {
width: 100%;
margin-bottom: 20px;
}
.edit-sub-block {
// padding: 0 10px;
.detail-txt {
display: inline-block;
width: 200px;
vertical-align: bottom;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
::v-deep .el-form-item__content {
max-width: calc(100% - 110px);
word-break: break-all;
}
.itemDiv {
display: flex;
.halfItem {
width: 33%;
}
}
.onLineItem {
::v-deep .el-form-item__content {
max-width: 80%;
}
}
}
.edit-sub-block-two {
.el-form-item__label {
padding: 0;
}
.el-form-item {
// width: 300px;
margin: 0px;
}
}
.busi-info {
box-sizing: border-box;
width: 890px;
border-radius: 4px;
border: 1px solid #e5e5e5;
padding: 6px 0;
color: #333333;
font-size: 14px;
margin-bottom: 14px;
.info-row {
height: 20px;
line-height: 20px;
margin-bottom: 16px;
}
.info-row:last-child {
margin-bottom: 0;
}
.info-item {
display: inline-block;
width: 50%;
height: 20px;
line-height: 20px;
margin-bottom: 6px;
.item-label {
display: inline-block;
width: 150px;
color: #666666;
text-align: right;
}
}
}
}
.receiptBtn {
margin-left: 20px;
}
.imgCon {
text-align: center;
margin-bottom: 50px;
}
.imgSize {
width: 1040px;
} }
.default-width { .default-width {
width: 170px; width: 170px;
......
...@@ -161,7 +161,7 @@ export default { ...@@ -161,7 +161,7 @@ export default {
prop: 'staffName', prop: 'staffName',
width: '250', width: '250',
formatter: cellValue => { formatter: cellValue => {
return cellValue.customer?.merchantName + '-' + cellValue.customerCoupon?.employeeName return cellValue.merchantCoupon?.merchantName + '-' + cellValue.customerCoupon?.employeeName
} }
}, },
{ {
...@@ -264,9 +264,9 @@ export default { ...@@ -264,9 +264,9 @@ export default {
const params = this.$common.utils.deepClone(this.searchFormSearch) const params = this.$common.utils.deepClone(this.searchFormSearch)
delete params.inviteMode delete params.inviteMode
this.$apis.invitation.inviteRecordCount(params).then(res => { this.$apis.invitation.inviteRecordCount(params).then(res => {
this.tabPaneList[0].count = res.inviteCount this.tabPaneList[0].count = res.inviteCount || 0
this.tabPaneList[1].count = res.hadInvitedCount this.tabPaneList[1].count = res.hadInvitedCount || 0
this.tabPaneList[2].count = res.notInvitedCount this.tabPaneList[2].count = res.notInvitedCount || 0
}) })
}, },
getInviteMerchant() { getInviteMerchant() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!