|
@@ -508,7 +508,11 @@ export default {
|
|
|
orgName: this.userInfo.orgName || row.orgName,
|
|
|
brandScope: row.brandScope || {},
|
|
|
// customerBlacklist: Array.isArray(row.customerBlacklist) ? row.customerBlacklist : [],
|
|
|
- customerBlacklist: updateCustomerBlacklist,
|
|
|
+ customerBlacklist: updateCustomerBlacklist.map(customer => ({
|
|
|
+ ID: customer.id,
|
|
|
+ CODE: customer.Customer_CODE,
|
|
|
+ NAME: customer.Customer_NAME
|
|
|
+ })),
|
|
|
remark: row.remark || '',
|
|
|
visibleRoles: rolesMask,
|
|
|
status: row.status !== undefined ? row.status : 0, // 默认草稿状态
|
|
@@ -565,7 +569,11 @@ export default {
|
|
|
...row,
|
|
|
brandScope: row.brandScope || {},
|
|
|
// customerBlacklist: Array.isArray(row.customerBlacklist) ? row.customerBlacklist : [],
|
|
|
- customerBlacklist: updateCustomerBlacklist,
|
|
|
+ customerBlacklist: updateCustomerBlacklist.map(customer => ({
|
|
|
+ ID: customer.id,
|
|
|
+ CODE: customer.Customer_CODE,
|
|
|
+ NAME: customer.Customer_NAME
|
|
|
+ })),
|
|
|
remark: row.remark || '',
|
|
|
visibleRoles: rolesMask
|
|
|
};
|