fix(customer): 修正表单必填属性及组件属性拼写错误
- 将小区和房号字段的 required 属性明确设置为 true - 修复签约时间和合同时间输入框的 readOnly 属性拼写错误 - 调整姓名和手机号表单项位置,避免隐藏字段内嵌套组件 - 在姓名与手机号表单项间添加间距提升布局美观性
This commit is contained in:
@@ -35,5 +35,5 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"lastUpdated": 1776330646965
|
||||
"lastUpdated": 1776331561536
|
||||
}
|
||||
@@ -960,7 +960,7 @@ const AddShopDealerApply = () => {
|
||||
<CellGroup style={{padding: '4px 0'}}>
|
||||
<Cell
|
||||
title="小区"
|
||||
required
|
||||
required={true}
|
||||
extra={
|
||||
<View className="flex items-center">
|
||||
{selectedCommunity ? (
|
||||
@@ -1079,7 +1079,7 @@ const AddShopDealerApply = () => {
|
||||
{/* 房号选择 */}
|
||||
<Cell
|
||||
title="房号"
|
||||
required
|
||||
required={true}
|
||||
extra={
|
||||
<View className="flex items-center">
|
||||
{selectedRoom ? (
|
||||
@@ -1106,12 +1106,6 @@ const AddShopDealerApply = () => {
|
||||
<Form.Item name="roomNo" style={{display: 'none'}}>
|
||||
<View />
|
||||
</Form.Item>
|
||||
<Form.Item name="realName" label="姓名" initialValue={FormData?.realName} required>
|
||||
<Input placeholder="张三" disabled={isEditMode}/>
|
||||
</Form.Item>
|
||||
<Form.Item name="mobile" label="手机号" initialValue={FormData?.mobile} required>
|
||||
<Input placeholder="手机号" disabled={isEditMode} maxLength={11}/>
|
||||
</Form.Item>
|
||||
{/* 接待人员选择 */}
|
||||
<Cell
|
||||
title="接待人员"
|
||||
@@ -1137,6 +1131,13 @@ const AddShopDealerApply = () => {
|
||||
}
|
||||
onClick={openReceptionistPicker}
|
||||
/>
|
||||
<div className={'h-3 bg-gray-50'}></div>
|
||||
<Form.Item name="realName" label="姓名" initialValue={FormData?.realName} required>
|
||||
<Input placeholder="张三" disabled={isEditMode}/>
|
||||
</Form.Item>
|
||||
<Form.Item name="mobile" label="手机号" initialValue={FormData?.mobile} required>
|
||||
<Input placeholder="手机号" disabled={isEditMode} maxLength={11}/>
|
||||
</Form.Item>
|
||||
{isEditMode && (
|
||||
<>
|
||||
<Form.Item name="money" label="签约价格" initialValue={FormData?.money} required>
|
||||
@@ -1146,7 +1147,7 @@ const AddShopDealerApply = () => {
|
||||
<View onClick={() => setShowApplyTimePicker(true)}>
|
||||
<Input
|
||||
placeholder="点击选择签约时间"
|
||||
readonly
|
||||
readOnly
|
||||
value={applyTime ? formatDateForDisplay(applyTime) : ''}
|
||||
/>
|
||||
</View>
|
||||
@@ -1155,7 +1156,7 @@ const AddShopDealerApply = () => {
|
||||
<View onClick={() => setShowContractTimePicker(true)}>
|
||||
<Input
|
||||
placeholder="点击选择合同生效起止时间"
|
||||
readonly
|
||||
readOnly
|
||||
value={contractTime ? formatDateForDisplay(contractTime) : ''}
|
||||
/>
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user