Skip to content
Snippets Groups Projects

Feature/yeqingbo

Merged yeqingbo requested to merge feature/yeqingbo into develop
Viewing commit 09b671f2
Show latest version
1 file
+ 20
17
Compare changes
  • Side-by-side
  • Inline
@@ -46,14 +46,7 @@
input-align="right"
class="inputBlack"
:readonly="!type"
:rules="[
{
required: true,
trigger: onBlur,
pattern: /^1[3456789]\d{9}$/,
message: '请输入正确的手机号码',
},
]"
:rules="phoneRules"
/>
</van-cell-group>
</van-form>
@@ -99,7 +92,8 @@
type="primary"
icon="edit"
size="small"
@click="openEdit"
@click="openEdit"
:disabled="imgBorth.length != 1"
>编辑</van-button
>
</div>
@@ -440,8 +434,8 @@ export default {
},
],
currentDate: new Date(),
minDate: new Date(),
maxDate: new Date(),
minDate: new Date(2020, 0, 1),
maxDate: new Date(2055, 11, 1),
showImgList: [],
type: '', //true:查看 false:申请
standard: '',
@@ -450,6 +444,14 @@ export default {
currentBill: '', //暂存当前发票信息
currentDateBill: new Date(),
id: '', //申请id
phoneRules: [
{
required: true,
pattern: /^1[3456789]\d{9}$/,
message: '请输入正确的手机号码',
trigger: 'onBlur',
},
],
});
onBeforeMount(() => {
state.type =
@@ -656,8 +658,9 @@ export default {
//暂存或者提交
const save = (v) => {
state.form.isSubmit = v;
// formRef.value.validate((valid) => {
// if (valid) {
formRef.value
.validate()
.then(() => {
if (state.form.mobile == '') {
Toast.fail('联系方式未填写');
} else if (state.imgBorth.length == 0) {
@@ -720,10 +723,10 @@ export default {
});
}
}
// } else {
// return false;
// }
// });
})
.catch((err) => {
console.log(err);
});
};
//最上面的返回
const backLast = () => {