|
@@ -78,8 +78,8 @@ function ManufacturerList(props) {
|
|
|
{
|
|
|
title: '证件类型',
|
|
|
render: record => {
|
|
|
- if (record.type == 1) return '身份证'
|
|
|
- if (record.type == 2) return '护照'
|
|
|
+ if (record.id_type == 1) return '身份证'
|
|
|
+ if (record.id_type == 2) return '护照'
|
|
|
},
|
|
|
width: '6%'
|
|
|
},
|
|
@@ -151,6 +151,7 @@ function ManufacturerList(props) {
|
|
|
];
|
|
|
const onCancel = () => {
|
|
|
setVisible(false)
|
|
|
+ setFormDisabled(false);
|
|
|
}
|
|
|
const handleDeleteItem = record => {
|
|
|
console.log(record);
|
|
@@ -168,7 +169,8 @@ function ManufacturerList(props) {
|
|
|
const data = {
|
|
|
project_id: 1,
|
|
|
is_super: user?.IsSuper || false,
|
|
|
- created_by: formData.created_by || ''
|
|
|
+ created_by: formData.created_by || '',
|
|
|
+ type: formData.type || undefined
|
|
|
};
|
|
|
window.downloadFile(`/api/supplier/v1/supplier/export?${stringify(data)}`, '供应商列表.xlsx', false);
|
|
|
};
|