Commit 79a1b95f by 前端

BUG修复

1 parent 5ee53e11
...@@ -14,34 +14,42 @@ ...@@ -14,34 +14,42 @@
<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"> value-format="yyyy-MM-dd"
</el-date-picker> @change="inviteStatMerchantList"
<el-select v-model="infoForm.times" :picker-options="datePickerOptions">
filterable </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"> filterable
</el-option> placeholder="请选择"
</el-select> class="default-width">
<el-button type="text" <el-option v-for="(item, key) in timesOpt"
size="small" :key="key"
class="timesSle" :label="item.confValue"
v-if="paramsObj.inviteDate" :value="item.confId"
@click="cancelInvite">取消预约</el-button> :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>
...@@ -82,21 +90,21 @@ export default { ...@@ -82,21 +90,21 @@ 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: { dialogConfig: {
config: { config: {
...@@ -110,7 +118,13 @@ export default { ...@@ -110,7 +118,13 @@ export default {
}, },
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) => {
...@@ -259,103 +273,10 @@ export default { ...@@ -259,103 +273,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;
......
...@@ -200,7 +200,7 @@ export default { ...@@ -200,7 +200,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
} }
}, { }, {
label: '礼券名称', label: '礼券名称',
...@@ -319,9 +319,9 @@ export default { ...@@ -319,9 +319,9 @@ export default {
const params = deepClone(this.searchFormSearch) const params = deepClone(this.searchFormSearch)
delete params.inviteMode delete params.inviteMode
inviteRecordCount(params).then((res) => { 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!