+ |
+ {isEditing ? (
+ setEditForm({ ...editForm, no: parseInt(e.target.value) || 0 })}
+ className="w-full bg-slate-700/50 text-white text-xs px-2 py-1 rounded border border-white/10 focus:border-primary-500 focus:outline-none"
+ />
+ ) : (
+ {part.no || ''}
+ )}
+ |
+
+ {isEditing ? (
+ setEditForm({ ...editForm, itemgroup: e.target.value })}
+ className="w-full bg-slate-700/50 text-white text-xs px-2 py-1 rounded border border-white/10 focus:border-primary-500 focus:outline-none"
+ />
+ ) : (
+ {part.itemgroup || ''}
+ )}
+ |
+
+ {isEditing ? (
+ setEditForm({ ...editForm, itemname: e.target.value })}
+ className="w-full bg-slate-700/50 text-white text-xs px-2 py-1 rounded border border-white/10 focus:border-primary-500 focus:outline-none"
+ required
+ />
+ ) : (
+ {part.itemname || ''}
+ )}
+ |
+
+ {isEditing ? (
+ setEditForm({ ...editForm, itemmodel: e.target.value })}
+ className="w-full bg-slate-700/50 text-white text-xs px-2 py-1 rounded border border-white/10 focus:border-primary-500 focus:outline-none"
+ />
+ ) : (
+ {part.itemmodel || ''}
+ )}
+ |
+
+ {isEditing ? (
+ setEditForm({ ...editForm, itemscale: e.target.value })}
+ className="w-full bg-slate-700/50 text-white text-xs px-2 py-1 rounded border border-white/10 focus:border-primary-500 focus:outline-none"
+ />
+ ) : (
+ {part.itemscale || ''}
+ )}
+ |
+
+ {isEditing ? (
+ setEditForm({ ...editForm, itemunit: e.target.value })}
+ className="w-full bg-slate-700/50 text-white text-xs px-2 py-1 rounded border border-white/10 focus:border-primary-500 focus:outline-none"
+ />
+ ) : (
+ {part.itemunit || ''}
+ )}
+ |
+
+ {isEditing ? (
+ setEditForm({ ...editForm, qty: parseFloat(e.target.value) || 0 })}
+ className="w-full bg-slate-700/50 text-white text-xs px-2 py-1 rounded border border-white/10 focus:border-primary-500 focus:outline-none text-right"
+ />
+ ) : (
+ {part.qty?.toLocaleString() || 0}
+ )}
+ |
+
+ {isEditing ? (
+ setEditForm({ ...editForm, price: parseFloat(e.target.value) || 0 })}
+ className="w-full bg-slate-700/50 text-white text-xs px-2 py-1 rounded border border-white/10 focus:border-primary-500 focus:outline-none text-right"
+ />
+ ) : (
+ {part.price?.toLocaleString() || 0}
+ )}
+ |
+
+
+ {getAmount(
+ isEditing ? editForm.qty || 0 : part.qty || 0,
+ isEditing ? editForm.price || 0 : part.price || 0
+ ).toLocaleString()}
+
+ |
+
+ {isEditing ? (
+ setEditForm({ ...editForm, itemsupply: e.target.value })}
+ className="w-full bg-slate-700/50 text-white text-xs px-2 py-1 rounded border border-white/10 focus:border-primary-500 focus:outline-none"
+ />
+ ) : (
+ {part.itemsupply || ''}
+ )}
+ |
+
+ {isEditing ? (
+
+
+
+
+ ) : (
+
+
+
+
+ )}
+ |
+
+ );
+ })
+ )}
+ {/* 새 항목 추가 행 */}
+ {editingIdx === -1 && (
+
+ |
+ setEditForm({ ...editForm, no: parseInt(e.target.value) || 0 })}
+ className="w-full bg-slate-700/50 text-white text-xs px-2 py-1 rounded border border-white/10 focus:border-primary-500 focus:outline-none"
+ />
+ |
+
+ setEditForm({ ...editForm, itemgroup: e.target.value })}
+ className="w-full bg-slate-700/50 text-white text-xs px-2 py-1 rounded border border-white/10 focus:border-primary-500 focus:outline-none"
+ placeholder="그룹"
+ />
+ |
+
+ setEditForm({ ...editForm, itemname: e.target.value })}
+ className="w-full bg-slate-700/50 text-white text-xs px-2 py-1 rounded border border-white/10 focus:border-primary-500 focus:outline-none"
+ placeholder="품명 *"
+ required
+ />
+ |
+
+ setEditForm({ ...editForm, itemmodel: e.target.value })}
+ className="w-full bg-slate-700/50 text-white text-xs px-2 py-1 rounded border border-white/10 focus:border-primary-500 focus:outline-none"
+ placeholder="모델"
+ />
+ |
+
+ setEditForm({ ...editForm, itemscale: e.target.value })}
+ className="w-full bg-slate-700/50 text-white text-xs px-2 py-1 rounded border border-white/10 focus:border-primary-500 focus:outline-none"
+ placeholder="규격"
+ />
+ |
+
+ setEditForm({ ...editForm, itemunit: e.target.value })}
+ className="w-full bg-slate-700/50 text-white text-xs px-2 py-1 rounded border border-white/10 focus:border-primary-500 focus:outline-none"
+ placeholder="단위"
+ />
+ |
+
+ setEditForm({ ...editForm, qty: parseFloat(e.target.value) || 0 })}
+ className="w-full bg-slate-700/50 text-white text-xs px-2 py-1 rounded border border-white/10 focus:border-primary-500 focus:outline-none text-right"
+ />
+ |
+
+ setEditForm({ ...editForm, price: parseFloat(e.target.value) || 0 })}
+ className="w-full bg-slate-700/50 text-white text-xs px-2 py-1 rounded border border-white/10 focus:border-primary-500 focus:outline-none text-right"
+ />
+ |
+
+
+ {getAmount(editForm.qty || 0, editForm.price || 0).toLocaleString()}
+
+ |
+
+ setEditForm({ ...editForm, itemsupply: e.target.value })}
+ className="w-full bg-slate-700/50 text-white text-xs px-2 py-1 rounded border border-white/10 focus:border-primary-500 focus:outline-none"
+ placeholder="공급처"
+ />
+ |
+
+
+
+
+
+ |
+
+ )}
+