fix: 修改bug

This commit is contained in:
lzhizhao 2025-06-03 23:00:25 +08:00
parent e451cc6544
commit 63dc65eafb
2 changed files with 30 additions and 6 deletions

View File

@ -55,6 +55,15 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item label="是否预售商品">
<el-select
v-model="formInline.isAdvanceSell"
placeholder="请选择是否预售"
>
<el-option label="是" :value="1"></el-option>
<el-option label="否" :value="0"></el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" @click="$refs.oTable.reload()"
>查询</el-button
@ -163,7 +172,8 @@ export default {
formInline: {
name: '',
marketId: '',
shopId: ''
shopId: '',
isAdvanceSell: 0
},
tableProp: {
'auto-resize': true,
@ -181,7 +191,8 @@ export default {
this.formInline = {
name: '',
marketId: this.marketId,
shopId: this.shopId
shopId: this.shopId,
isAdvanceSell: 0
}
this.$nextTick(() => {
this.$refs.oTable.reload()
@ -257,7 +268,8 @@ export default {
this.formInline = {
name: '',
marketId: this.marketId,
shopId: this.shopId
shopId: this.shopId,
isAdvanceSell: 0
}
this.$refs.oTable.reload()
},
@ -508,4 +520,3 @@ export default {
margin-bottom: 5px;
}
</style>

View File

@ -682,6 +682,19 @@ export default {
)
return
}
if (
dayjs(this.ruleForm.estimatedStartDeliveryTime).format(
'YYYY-MM-DD'
) ===
dayjs(this.ruleForm.estimatedEndDeliveryTime).format(
'YYYY-MM-DD'
)
) {
this.$message.error(
'可预约发货时间必须跨天'
)
return
}
if (
this.ruleForm.productList &&
this.ruleForm.productList.length === 0