feat: 移动端新增客户页面添加客户编码字段

- 新增客户编码输入框(customerCode)
- 位于客户名称字段之前
This commit is contained in:
zhangjf 2026-02-23 13:05:57 +08:00
parent 69f437dbb3
commit 965d98cab5

View File

@ -4,6 +4,13 @@
<van-form @submit="onSubmit"> <van-form @submit="onSubmit">
<van-cell-group inset> <van-cell-group inset>
<van-field
v-model="form.customerCode"
name="customerCode"
label="客户编码"
placeholder="请输入客户编码"
/>
<van-field <van-field
v-model="form.customerName" v-model="form.customerName"
name="customerName" name="customerName"
@ -100,6 +107,7 @@ const submitting = ref(false)
const showLevelPicker = ref(false) const showLevelPicker = ref(false)
const form = ref({ const form = ref({
customerCode: '',
customerName: '', customerName: '',
customerShort: '', customerShort: '',
phone: '', phone: '',
@ -136,6 +144,7 @@ const onSubmit = async () => {
submitting.value = true submitting.value = true
try { try {
await createCustomer({ await createCustomer({
customerCode: form.value.customerCode,
customerName: form.value.customerName, customerName: form.value.customerName,
customerShort: form.value.customerShort, customerShort: form.value.customerShort,
phone: form.value.phone, phone: form.value.phone,