优化初始化以及去掉固定供应商ID
This commit is contained in:
@ -38,6 +38,7 @@ const InvoiceFormModal: React.FC<props> = ({
|
||||
initialValues,
|
||||
readOnly = false,
|
||||
}) => {
|
||||
const userId = sessionStorage.getItem('userId') || '';
|
||||
// 新增与修改
|
||||
const [form] = Form.useForm();
|
||||
//查看
|
||||
@ -75,7 +76,7 @@ const InvoiceFormModal: React.FC<props> = ({
|
||||
const values = await form.validateFields();
|
||||
const payload = {
|
||||
...values,
|
||||
"supplierId": "9c12e8ea-a681-4184-81ba-5fa276299a00",
|
||||
supplierId: userId,
|
||||
};
|
||||
if (!values.id) {
|
||||
bankAdd(payload).then((res) => {
|
||||
|
Reference in New Issue
Block a user