8/13,收银台-缴费周期,时间拆分

This commit is contained in:
Zy
2026-08-13 17:43:19 +08:00
parent de2b0fec48
commit 28959cff23
4 changed files with 59 additions and 42 deletions

View File

@@ -156,7 +156,7 @@
<el-col :span="2"></el-col>
<el-col :span="11">
<el-form-item label="微信" prop="vx">
<el-input maxlength="11" v-model.trim="form.vx" placeholder="请输入微信号码" />
<el-input maxlength="20" v-model.trim="form.vx" placeholder="请输入微信号码" />
</el-form-item>
</el-col>
</el-row>
@@ -279,6 +279,20 @@ const rules = ref({
}
}
],
vx: [
{ required: false, message: '请输入微信号码', trigger: 'blur' },
{
validator: (_: any, value: string | number, callback: (arg0?: Error) => void) => {
if (value === '' || value === null || value === 0) {
return callback();
}
if (validator(value, 'vx')) {
return callback(new Error('请输入正确的微信号码'));
}
return callback();
}
}
],
houseArea: [
{
required: false,