| | |
| | | const str = route.query.id |
| | | if (typeof str != 'undefined' && str != null && str !== '' && str !== '\n' && str !== '\r'){ |
| | | ruleForm.value.id = Number(str) |
| | | console.log(ruleForm.value) |
| | | request.post(`/customer/getSelectCustomer/1/100`,ruleForm.value).then((res) => { |
| | | if(res.code==200){ |
| | | console.log(res.data.data[0]) |
| | |
| | | ElMessage.error(t('customer.pleaseEnterTheAmountOfFunds')) |
| | | return |
| | | }*/ |
| | | const address = ruleForm.value.address |
| | | /*const address = ruleForm.value.address |
| | | if(address === null || address === undefined || address === ''){ |
| | | ElMessage.error(t('customer.pleaseEnterTheContactAddress')) |
| | | return |
| | |
| | | if(phone === null || phone === undefined || phone === ''){ |
| | | ElMessage.error(t('customer.pleaseEnterTheContactPhoneNumber')) |
| | | return |
| | | } |
| | | }*/ |
| | | |
| | | let flowData = ref({ |
| | | customer: ruleForm |
| | | }) |
| | | console.log() |
| | | request.post("/customer/insertCustomer", flowData.value).then((res) => { |
| | | if(res.code==200 && res.data===true){ |
| | | resetForm() |