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-option>
</el-select> </el-select>
</el-form-item> </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-form-item>
<el-button type="primary" @click="$refs.oTable.reload()" <el-button type="primary" @click="$refs.oTable.reload()"
>查询</el-button >查询</el-button
@ -163,7 +172,8 @@ export default {
formInline: { formInline: {
name: '', name: '',
marketId: '', marketId: '',
shopId: '' shopId: '',
isAdvanceSell: 0
}, },
tableProp: { tableProp: {
'auto-resize': true, 'auto-resize': true,
@ -181,7 +191,8 @@ export default {
this.formInline = { this.formInline = {
name: '', name: '',
marketId: this.marketId, marketId: this.marketId,
shopId: this.shopId shopId: this.shopId,
isAdvanceSell: 0
} }
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.oTable.reload() this.$refs.oTable.reload()
@ -257,7 +268,8 @@ export default {
this.formInline = { this.formInline = {
name: '', name: '',
marketId: this.marketId, marketId: this.marketId,
shopId: this.shopId shopId: this.shopId,
isAdvanceSell: 0
} }
this.$refs.oTable.reload() this.$refs.oTable.reload()
}, },
@ -508,4 +520,3 @@ export default {
margin-bottom: 5px; margin-bottom: 5px;
} }
</style> </style>

View File

@ -682,6 +682,19 @@ export default {
) )
return return
} }
if (
dayjs(this.ruleForm.estimatedStartDeliveryTime).format(
'YYYY-MM-DD'
) ===
dayjs(this.ruleForm.estimatedEndDeliveryTime).format(
'YYYY-MM-DD'
)
) {
this.$message.error(
'可预约发货时间必须跨天'
)
return
}
if ( if (
this.ruleForm.productList && this.ruleForm.productList &&
this.ruleForm.productList.length === 0 this.ruleForm.productList.length === 0
@ -835,7 +848,7 @@ export default {
text-align: center; text-align: center;
width: 50%; width: 50%;
height: 40px; height: 40px;
line-height:40px; line-height: 40px;
font-size: 14px; font-size: 14px;
background: white; background: white;
z-index: 100; z-index: 100;
@ -848,7 +861,7 @@ export default {
text-align: center; text-align: center;
top: 0; top: 0;
height: 40px; height: 40px;
line-height:40px; line-height: 40px;
right: 0; right: 0;
width: 50%; width: 50%;
font-size: 14px; font-size: 14px;