Commit b1d89238 by 前端

BUG修复

1 parent 6ed24e5d
......@@ -3,7 +3,7 @@
<GLDialog bigTitle="预约时间"
:visible.sync="dialogShow"
class="detail-content-warn"
width="600px"
width="620px"
mode="big"
:close-on-click-modal="false"
:before-close="handleClose"
......@@ -19,32 +19,40 @@
<el-form label-width="100px"
:model="infoForm"
ref="editRef"
:rules="formRules"
:inline="true">
:rules="formRules">
<el-form-item label="预约时间:"
prop="dateTime">
<el-date-picker v-model="infoForm.dateTime"
type="date"
class="default-width"
placeholder="选择日期"
value-format="yyyy-MM-dd"
@change="inviteStatMerchantList"
:picker-options="datePickerOptions"></el-date-picker>
<el-select v-model="infoForm.times"
filterable
placeholder="请选择"
class="default-width timesSle">
<el-option v-for="(item, key) in timesOpt"
:key="key"
:label="item.confValue"
: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>
required>
<el-col :span="10">
<el-form-item prop="dateTime">
<el-date-picker v-model="infoForm.dateTime"
type="date"
class="default-width"
placeholder="选择日期"
value-format="yyyy-MM-dd"
@change="inviteStatMerchantList"
:picker-options="datePickerOptions"></el-date-picker>
</el-form-item>
</el-col>
<el-col :span="1"></el-col>
<el-col :span="13">
<el-form-item prop="times">
<el-select v-model="infoForm.times"
filterable
placeholder="请选择"
class="default-width">
<el-option v-for="(item, key) in timesOpt"
:key="key"
:label="item.confValue"
: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>
</div>
......@@ -84,35 +92,31 @@ export default {
this.inviteDatePush()
},
data() {
var validateDateTime = {
validator: (rule, value, callback) => {
if (!value) {
return callback(new Error(`请选择日期`))
}
// var validateDateTime = {
// validator: (rule, value, callback) => {
// if (!value) {
// return callback(new Error(`请选择日期`))
// }
const times = this.infoForm.times
if (!times) {
return callback(new Error(`请选择时间段`))
}
// const times = this.infoForm.times
// if (!times) {
// return callback(new Error(`请选择时间段`))
// }
callback() // 验证通过
},
trigger: 'change'
}
// callback() // 验证通过
// },
// trigger: 'change'
// }
return {
dialogConfig: {
config: {
title: '预约时间',
width: '600px'
}
},
infoForm: {
dateTime: '',
times: ''
},
editChildRef: 'editChildRef',
formRules: {
dateTime: [validateDateTime]
// dateTime: [validateDateTime]
dateTime: [{ required: true, message: '请选择日期', trigger: 'change' }],
times: [{ required: true, message: '请选择时间段', trigger: 'change' }]
},
datePickerOptions: {
disabledDate: time => {
......@@ -267,103 +271,10 @@ export default {
height: 28px;
margin-bottom: 20px;
.tipsText {
padding-left: 20px;
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 {
width: 170px;
......
......@@ -161,7 +161,7 @@ export default {
prop: 'staffName',
width: '250',
formatter: cellValue => {
return cellValue.customer?.merchantName + '-' + cellValue.customerCoupon?.employeeName
return cellValue.merchantCoupon?.merchantName + '-' + cellValue.customerCoupon?.employeeName
}
},
{
......@@ -264,9 +264,9 @@ export default {
const params = this.$common.utils.deepClone(this.searchFormSearch)
delete params.inviteMode
this.$apis.invitation.inviteRecordCount(params).then(res => {
this.tabPaneList[0].count = res.inviteCount
this.tabPaneList[1].count = res.hadInvitedCount
this.tabPaneList[2].count = res.notInvitedCount
this.tabPaneList[0].count = res.inviteCount || 0
this.tabPaneList[1].count = res.hadInvitedCount || 0
this.tabPaneList[2].count = res.notInvitedCount || 0
})
},
getInviteMerchant() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!