提示信息 添加多语言配置
This commit is contained in:
parent
00ff1749d9
commit
f8249576d1
|
|
@ -661,7 +661,10 @@ export default {
|
|||
"labelColOrderQty": "Order Quantity",
|
||||
"tipsDuplicateSkipped": "Duplicate products skipped.",
|
||||
"tipsAppendSuccess": "Added successfully.",
|
||||
"btnAddSku": "Add SKU"
|
||||
"btnAddSku": "Add SKU",
|
||||
"tipsSkuError1": 'The SKU of the ', // The SKU of the
|
||||
"tipsSkuError2": 'cannot be left blank.', //cannot be left blank.
|
||||
"tipsSkuError3": 'Please review', //Please review
|
||||
},
|
||||
"productDialogList": {
|
||||
"title": "Product List",
|
||||
|
|
|
|||
|
|
@ -658,6 +658,9 @@ export default {
|
|||
tipsDuplicateSkipped: '已跳过重复产品',
|
||||
tipsAppendSuccess: '添加成功',
|
||||
btnAddSku: '添加SKU',
|
||||
tipsSkuError1: 'SKU中 ', // The SKU of the
|
||||
tipsSkuError2: '不能为空', //cannot be left blank.
|
||||
tipsSkuError3: '请批稿', //Please review
|
||||
},
|
||||
productDialogList:{
|
||||
title: '产品列表',
|
||||
|
|
|
|||
|
|
@ -664,17 +664,17 @@ const submitPreHandler = (showMsg = true) => {
|
|||
tableData.forEach((item, index) => {
|
||||
|
||||
if (!item.productSkuList || item.productSkuList.length === 0) {
|
||||
const t = `The SKU of the "${item.productName}" in row ${index + 1} cannot be left blank.`;
|
||||
const msg = `${ t("createOrder.tipsSkuError1")} "${item.productName}" ${index + 1} ${t("createOrder.tipsSkuError2")}`;
|
||||
if (showMsg) {
|
||||
useMessage().warning(t)
|
||||
useMessage().warning(msg)
|
||||
}
|
||||
reject(t)
|
||||
reject(msg)
|
||||
return;
|
||||
}
|
||||
item.productSkuList.forEach((item2, i2) => {
|
||||
console.log("item2",item2)
|
||||
if (item2.productTemplateType === '1' && !item2.previewImage) {
|
||||
const t = ` Please review row${index + 1} ‘${item.productName}’SKU ${i2 + 1}`;
|
||||
const t = `${("createOrder.tipsSkuError3")} ${index + 1} ‘${item.productName}’SKU ${i2 + 1}`;
|
||||
if (showMsg) {
|
||||
useMessage().warning(t)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue