refactor(consignment): 清理寄卖库存详情与编辑中的上号凭据旧字段
1. 物品详情弹窗中移除登录方式、账号、密码、上号说明等旧上号字段,保留履约信息与备注; 2. 编辑物品弹窗中移除上号凭据信息卡片,聚焦现货规格、成本、供货打手与备注。
This commit is contained in:
@@ -255,13 +255,6 @@ export default function ConsignmentInventoryPanel() {
|
||||
workerId: values.workerId || undefined,
|
||||
workerName: selectedWorker?.name || editingItem.workerName || undefined,
|
||||
workerPhone: selectedWorker?.phone || editingItem.workerPhone || undefined,
|
||||
depositAmountFen,
|
||||
credentialsJson: {
|
||||
loginMethod: values.loginMethod,
|
||||
account: values.account,
|
||||
password: values.password,
|
||||
authNote: values.authNote,
|
||||
},
|
||||
remark: values.remark,
|
||||
allowMatching: values.allowMatching !== false,
|
||||
})
|
||||
@@ -590,10 +583,6 @@ export default function ConsignmentInventoryPanel() {
|
||||
depositAmount: record.depositAmountFen
|
||||
? record.depositAmountFen / 100
|
||||
: undefined,
|
||||
loginMethod: (record.credentialsJson as any)?.loginMethod,
|
||||
account: (record.credentialsJson as any)?.account,
|
||||
password: (record.credentialsJson as any)?.password,
|
||||
authNote: (record.credentialsJson as any)?.authNote,
|
||||
})
|
||||
}}
|
||||
>
|
||||
@@ -950,24 +939,6 @@ export default function ConsignmentInventoryPanel() {
|
||||
<Input />
|
||||
</Form.Item>
|
||||
|
||||
<Card type="inner" size="small" title="上号凭据信息" style={{ marginBottom: 16 }}>
|
||||
<Row gutter={16}>
|
||||
<Col span={12}>
|
||||
<Form.Item name="account" label="账号">
|
||||
<Input />
|
||||
</Form.Item>
|
||||
</Col>
|
||||
<Col span={12}>
|
||||
<Form.Item name="password" label="密码">
|
||||
<Input.Password />
|
||||
</Form.Item>
|
||||
</Col>
|
||||
</Row>
|
||||
<Form.Item name="authNote" label="上号说明">
|
||||
<Input />
|
||||
</Form.Item>
|
||||
</Card>
|
||||
|
||||
<Form.Item name="remark" label="备注">
|
||||
<Input.TextArea rows={2} />
|
||||
</Form.Item>
|
||||
@@ -1156,18 +1127,7 @@ export default function ConsignmentInventoryPanel() {
|
||||
</Space>
|
||||
</Descriptions.Item>
|
||||
) : null}
|
||||
<Descriptions.Item label="登录方式">
|
||||
{(viewingItem.credentialsJson as any)?.loginMethod || '-'}
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label="账号">
|
||||
<Text copyable>{(viewingItem.credentialsJson as any)?.account || '-'}</Text>
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label="密码" span={2}>
|
||||
<Text copyable>{(viewingItem.credentialsJson as any)?.password || '-'}</Text>
|
||||
</Descriptions.Item>
|
||||
<Descriptions.Item label="上号说明" span={2}>
|
||||
{(viewingItem.credentialsJson as any)?.authNote || '-'}
|
||||
</Descriptions.Item>
|
||||
|
||||
{viewingItem.status === 'consumed' ? (
|
||||
<>
|
||||
<Descriptions.Item label="履约平台订单">
|
||||
|
||||
Reference in New Issue
Block a user