Showing
1 changed file
with
5 additions
and
1 deletions
| ... | @@ -1132,13 +1132,17 @@ | ... | @@ -1132,13 +1132,17 @@ |
| 1132 | alert("Bạn phải map customer_name (quét/select) trước khi lưu."); | 1132 | alert("Bạn phải map customer_name (quét/select) trước khi lưu."); |
| 1133 | return; | 1133 | return; |
| 1134 | } | 1134 | } |
| 1135 | + const tableColsPlain = {}; | ||
| 1136 | + Object.keys(table_columns).forEach(key => { | ||
| 1137 | + tableColsPlain[key] = table_columns[key]; | ||
| 1138 | + }); | ||
| 1135 | 1139 | ||
| 1136 | const payload = { | 1140 | const payload = { |
| 1137 | customer_name_text: customer_name || '', | 1141 | customer_name_text: customer_name || '', |
| 1138 | template_name: this.formData.template_name || this.formData.customer_name, | 1142 | template_name: this.formData.template_name || this.formData.customer_name, |
| 1139 | customer_name_xy: customer_coords || [], | 1143 | customer_name_xy: customer_coords || [], |
| 1140 | fields: fields, | 1144 | fields: fields, |
| 1141 | - table_columns: table_columns | 1145 | + table_columns: tableColsPlain |
| 1142 | }; | 1146 | }; |
| 1143 | 1147 | ||
| 1144 | try { | 1148 | try { | ... | ... |
-
Please register or sign in to post a comment