fix(商品): 税收编码不再强制确认后保存
删掉新增商品时「推荐未确认就不让保存」的拦截与对应提示文案;推荐卡片与确认按钮保留为可选,高置信度命中仍自动填码,后端本就允许该字段为空。
This commit is contained in:
@@ -276,7 +276,6 @@ export const products: MessageDict = {
|
||||
'toast.dropReject': 'Drop a JPG, PNG, or WebP image',
|
||||
'toast.imageClearFail': 'Failed to clear image',
|
||||
'toast.codeGenerating': 'Generating product code — please wait',
|
||||
'toast.taxConfirmNeeded': 'Confirm the suggested tax classification code first',
|
||||
'toast.updateOk': 'Product updated',
|
||||
'toast.createOkQuoted': 'Product created; price written to quote sheet',
|
||||
'toast.createOk': 'Product created',
|
||||
|
||||
@@ -279,7 +279,6 @@ export const products: MessageDict = {
|
||||
'toast.dropReject': 'Seret gambar JPG, PNG, atau WebP',
|
||||
'toast.imageClearFail': 'Gagal menghapus gambar',
|
||||
'toast.codeGenerating': 'Sedang membuat kode produk — tunggu sebentar',
|
||||
'toast.taxConfirmNeeded': 'Konfirmasi kode klasifikasi pajak yang disarankan dulu',
|
||||
'toast.updateOk': 'Produk diperbarui',
|
||||
'toast.createOkQuoted': 'Produk dibuat; harga ditulis ke lembar quote',
|
||||
'toast.createOk': 'Produk dibuat',
|
||||
|
||||
@@ -271,7 +271,6 @@ export const products: MessageDict = {
|
||||
'toast.dropReject': '请拖拽 JPG、PNG 或 WebP 图片',
|
||||
'toast.imageClearFail': '清除图片失败',
|
||||
'toast.codeGenerating': '商品编码生成中,请稍候',
|
||||
'toast.taxConfirmNeeded': '请先确认推荐的税收分类编码',
|
||||
'toast.updateOk': '商品更新成功',
|
||||
'toast.createOkQuoted': '商品创建成功,价格已写入报价单',
|
||||
'toast.createOk': '商品创建成功',
|
||||
|
||||
@@ -1184,16 +1184,6 @@ export const SkuManagement: React.FC = () => {
|
||||
return;
|
||||
}
|
||||
|
||||
if (
|
||||
!editingSku &&
|
||||
taxCodeSuggestion?.matched &&
|
||||
taxCodeSuggestion.needs_confirmation &&
|
||||
!taxCodeConfirmed
|
||||
) {
|
||||
showToast(t('products.toast.taxConfirmNeeded'), 'error');
|
||||
return;
|
||||
}
|
||||
|
||||
if (!validateForm()) return;
|
||||
|
||||
setIsSubmitting(true);
|
||||
|
||||
Reference in New Issue
Block a user