Commit 1d24e683 authored by Marcus's avatar Marcus
parent 249d6ae6
...@@ -381,7 +381,7 @@ ...@@ -381,7 +381,7 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="开票电话" prop="billingTell"> <el-form-item label="开票电话" prop="billingTell">
<el-input v-model="form.billingTell" placeholder="请输入开票电话" /> <el-input v-model="form.billingTell" placeholder="请输入开票电话" maxlength="50" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
...@@ -589,13 +589,16 @@ export default { ...@@ -589,13 +589,16 @@ export default {
this.$modal.msgError("至少填写一个联系人信息"); this.$modal.msgError("至少填写一个联系人信息");
return return
} }
const form = {...this.form, type: this.form.type?.join(','), taxRate: Number(this.form.taxRate)}
// 修改的提交 // 修改的提交
if (this.form.id != null) { if (this.form.id != null) {
this.form.customerContacts.forEach(e => { this.form.customerContacts.forEach(e => {
e.customerId = this.customerId e.customerId = this.customerId
}) })
updateCustomer(this.form).then(response => { updateCustomer(form).then(response => {
this.$modal.msgSuccess("修改成功"); this.$modal.msgSuccess("修改成功");
this.open = false; this.open = false;
// this.getList(); // this.getList();
...@@ -607,7 +610,7 @@ export default { ...@@ -607,7 +610,7 @@ export default {
return; return;
} }
// 添加的提交 // 添加的提交
createCustomer(this.form).then(response => { createCustomer(form).then(response => {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
// this.getList(); // this.getList();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment