diff --git a/src/pages/MyAllowanceForm.vue b/src/pages/MyAllowanceForm.vue index 228b228..2c7f125 100644 --- a/src/pages/MyAllowanceForm.vue +++ b/src/pages/MyAllowanceForm.vue @@ -13,22 +13,28 @@ > 审核未通过:{{form.reason}} - - + + - + - - + - + @@ -153,7 +159,9 @@ const form = reactive({ insuranceFile: [], invoiceUrl: '', insuranceUrl: '', - reason: '' + reason: '', + cityName: '', + brandName: '' }); // 选择器可见性 @@ -173,8 +181,8 @@ const seriesColumns = ref([]); // 校验规则 const rules = { - store: [{ required: true, message: '请选择购车门店' }], - model: [{ required: true, message: '请选择品牌车型' }], + // store: [{ required: true, message: '请选择购车门店' }], + // model: [{ required: true, message: '请选择品牌车型' }], invoiceFile: [{ validator: (val) => val && val.length > 0, message: '请上传发票' }], // insuranceFile: [{ validator: (val) => val && val.length > 0, message: '请上传商业保险单' }], }; @@ -197,6 +205,7 @@ onMounted( async() => { }else{ await getMobile(couponId.value); } + await loadStoresByCity(form.cityId); }); // API方法定义 @@ -204,7 +213,8 @@ const getMobile = async (couponId) => { try { const response = await api.get('/auto/ucenter/couponDetail', { id:couponId }); if (response.code === 200) { - form.mobile = response.data.mobile; + // form.mobile = response.data.mobile; + Object.assign(form, response.data); } } catch (error) { console.error(error);