客户样式调整
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<a-spin :spinning="spinning" tip="加载中...">
|
||||
<div class="page-bg-wrap">
|
||||
<div class="page-bg-wrap formViewStyle">
|
||||
<a-form ref="formRef" :model="formState" :rules="rules" v-bind="layout">
|
||||
<a-card title="客户基本信息" :bordered="false" >
|
||||
<div>
|
||||
@ -27,7 +27,7 @@
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="客户名称" name="cuName" :label-col="{ span: 3 }" :wrapper-col="{ span: 24 }">
|
||||
<a-textarea v-model:value="formState.cuName" :disabled="isDisable" placeholder="请输入客户名称" :auto-size="{ minRows: 1, maxRows: 5 }"/>
|
||||
<a-input v-model:value="formState.cuName" :disabled="isDisable" placeholder="请输入客户名称" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
@ -676,18 +676,21 @@
|
||||
|
||||
try {
|
||||
const data = await request(obj);
|
||||
if (type) {
|
||||
data?.id && (formState.id = data.id)
|
||||
data?.cuCode && (formState.cuCode = data.cuCode)
|
||||
if (!type) {
|
||||
notification.success({
|
||||
message: 'Tip',
|
||||
description: data?.id ? t('新增成功!') : t('修改成功!')
|
||||
}); //提示消息
|
||||
}
|
||||
// 新增保存
|
||||
// data?.id && (formState.id = data.id)
|
||||
// data?.cuCode && (Object.assign(formState, {cuCode: data?.cuCode}))
|
||||
if (data?.id) {
|
||||
getList(data?.id)
|
||||
}
|
||||
// 同意保存不提示
|
||||
if (!type) {
|
||||
notification.success({
|
||||
message: 'Tip',
|
||||
description: data?.id ? t('新增成功!') : t('修改成功!')
|
||||
}); //提示消息
|
||||
}
|
||||
// formRef.value.resetFields();
|
||||
return data?.id ? data : formState
|
||||
return data?.id ? data : obj
|
||||
// setTimeout(() => {
|
||||
// bus.emit(FORM_LIST_MODIFIED, { path: formPath });
|
||||
// close();
|
||||
@ -700,7 +703,7 @@
|
||||
} catch (errorInfo) {
|
||||
spinning.value = false;
|
||||
console.log(errorInfo, 'errorInfo')
|
||||
errorInfo?.value && notification.warning({
|
||||
errorInfo?.errorFields?.length && notification.warning({
|
||||
message: 'Tip',
|
||||
description: '请完善信息'
|
||||
});
|
||||
@ -734,4 +737,9 @@
|
||||
font-size: 20px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user