Skip to content

Commit c285e3b

Browse files
authored
Merge pull request #309 from Jzow/master
Add product information module english support
2 parents 8a93c39 + c30e152 commit c285e3b

13 files changed

+535
-198
lines changed

web/src/components/Tools/ImportFileModal.vue

+7-4
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@
1515
<a-spin :spinning="confirmLoading">
1616
<a-row class="form-row" :gutter="24">
1717
<a-col :md="24" :sm="24">
18-
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="第一步:">
18+
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="t('product.info.importInfo.setup1')">
1919
<a target="_blank" :href="templateUrl"><b>{{templateName}}</b></a>
20-
<p>提示:模板中的第一行请勿删除</p>
20+
<p>{{ t('product.info.importInfo.tip') }} </p>
2121
</a-form-item>
2222
</a-col>
2323
</a-row>
2424
<a-row class="form-row" :gutter="24">
2525
<a-col :md="24" :sm="24">
26-
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="第二步:">
26+
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="t('product.info.importInfo.setup2')">
2727
<a-upload name="file" :showUploadList="false" :multiple="false" :customRequest="uploadFile">
2828
<a-button type="primary">
2929
<cloud-upload-outlined />
30-
导入
30+
{{ t('product.info.import') }}
3131
</a-button>
3232
</a-upload>
3333
</a-form-item>
@@ -45,6 +45,7 @@ import type { UploadChangeParam } from 'ant-design-vue';
4545
import {useMessage} from "@/hooks/web/useMessage";
4646
import {UploadFileParams, uploadXlsx} from "@/api/basic/common";
4747
import {useTable} from "@/components/Table";
48+
import {useI18n} from "vue-i18n";
4849
export default {
4950
name: 'ImportFileModal',
5051
emits: ['success', 'cancel'],
@@ -59,6 +60,7 @@ export default {
5960
CloudUploadOutlined
6061
},
6162
setup(_, context) {
63+
const { t } = useI18n();
6264
const { createMessage } = useMessage();
6365
const title = ref('');
6466
const open = ref(false);
@@ -103,6 +105,7 @@ export default {
103105
}
104106
105107
return {
108+
t,
106109
title,
107110
labelCol,
108111
wrapperCol,

web/src/locales/lang/en/product.ts

+153
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
export default {
2+
selectData: 'Please select a piece of data',
3+
modifyDataPrompt: 'Sorry, only unapproved documents can be edited!',
4+
selectProduct: 'Select product',
5+
inputSelectProduct: 'Please select product',
6+
productList: 'Product List',
7+
category:{
8+
title: 'Product Category List',
9+
tip: 'The product category list can add multiple product category and lower level category',
10+
add: 'Add product category',
11+
batchDelete: 'Batch delete product category',
12+
table:{
13+
categoryName: 'Name',
14+
categoryNumber: 'Number',
15+
categoryParent: 'Parent',
16+
sort: 'Sort',
17+
remark: 'Remark',
18+
createTime: 'Create Time',
19+
operate: 'Operate',
20+
edite: 'Edite product category',
21+
delete: 'Delete product category'
22+
}
23+
},
24+
info:{
25+
title: 'Product Information List',
26+
add: 'Add',
27+
batchDelete: 'Batch Delete',
28+
batchEnable: 'Batch Enable',
29+
batchDisable: 'Batch Disable',
30+
import: 'Import',
31+
export: 'Export',
32+
batchEdit: 'Batch Edit',
33+
header: {
34+
categoryName: 'Product category',
35+
keyWord: 'Keyword',
36+
serialNumber: 'Serial number',
37+
batchNumber: 'Batch number',
38+
warehouse: 'Warehouse',
39+
have: 'Have',
40+
none: 'None',
41+
},
42+
table: {
43+
barCode: 'BarCode',
44+
productName: 'Name',
45+
productStandard: 'Standard',
46+
productModel: 'Model',
47+
productColor: 'Color',
48+
productUnit: 'Unit',
49+
productCategory: 'Category',
50+
productStock: 'Stock',
51+
purchasePrice: 'Purchase price',
52+
retailPrice: 'Retail price',
53+
salesPrice: 'Sales price',
54+
lowestSellPrice: 'Lowest sell price',
55+
status: 'Status',
56+
createTime: 'Create time',
57+
operate: 'Operate',
58+
},
59+
importInfo: {
60+
title: 'Import product information data',
61+
templateName: 'Product Information Excel Template [Download]',
62+
infoData: 'Product info data',
63+
setup1: 'Step 1:',
64+
setup2: 'Step 2:',
65+
tip: 'Tip: Do not delete the first row in the template',
66+
},
67+
form: {
68+
basic: {
69+
title: 'Basic Info',
70+
name: 'Name',
71+
inputName: 'Please enter the name',
72+
standard: 'Standard',
73+
inputStandard: 'Please enter the standard',
74+
model: 'Model',
75+
inputModel: 'Please enter the model',
76+
color: 'Color',
77+
inputColor: 'Please enter the color',
78+
unit: 'Unit',
79+
inputUnit: 'Please enter the unit',
80+
inputManyUnit: 'Please select multiple units',
81+
unitTip: 'Need to enter the unit first to activate the input box here',
82+
weight: 'Basic weight',
83+
inputWeight: 'Please enter the basic weight (Kg)',
84+
sheIfLife: 'Quality guarantee period',
85+
inputSheIfLife: 'Please enter the shelf life (days)',
86+
category: 'Category',
87+
inputCategory: 'Please select a category',
88+
serialNumber: 'Serial number',
89+
inputSerialNumber: 'Please select whether there is a serial number',
90+
serialNumberTip: 'If selected as Have, the serial number of the product needs to be entered in the purchase receipt form',
91+
batchNumber: 'Batch number',
92+
inputBatchNumber: 'Please select whether there is a batch number',
93+
batchNumberTip: 'If selected as Have, the batch number and expiration date of the product need to be entered in the purchase receipt form',
94+
warehouseShelves: 'Warehouse shelves',
95+
multipleAttributes: 'Multiple attributes',
96+
multipleAttributesTip: 'For industries such as clothing, shoes, and hats with multiple attributes, it is necessary to enter the unit first in order to activate the input box here',
97+
inputMultipleAttributes: 'Please select multiple attributes (multiple choices are allowed)',
98+
insertRow: 'Insert A Row',
99+
deleteRow: 'Delete Selected Rows',
100+
purchasePriceBatch: 'Purchase price - batch',
101+
retailPriceBatch: 'Retail price - batch',
102+
salesPriceBatch: 'Sales price - batch',
103+
lowestSellPriceBatch: 'Lowest sell price - batch',
104+
table: {
105+
pleaseEnter: 'Please enter ',
106+
barCode: 'BarCode',
107+
unit: 'Unit',
108+
multipleAttributes: 'Multiple attributes',
109+
retailPrice: 'Retail price',
110+
purchasePrice: 'Purchase price',
111+
salesPrice: 'Sales price',
112+
lowestSellPrice: 'Lowest sell price',
113+
},
114+
remark: 'Remark',
115+
inputRemark: 'Please enter the remark',
116+
noticeOne: 'Please insert a row of data and enter the barcode price information for the product',
117+
noticeTwo: 'The system has detected that you do not have warehouse information. Please add at least one warehouse information in the Basic Information menu bar',
118+
noticeThree: 'Sorry, you haven not selected multiple attributes yet. Only after enabling multiple attributes can you batch set the amount',
119+
noticeFour: 'Please enter barcode, unit, and other information first!',
120+
inputPrice: 'Please enter the price',
121+
price: 'Price',
122+
batchSet: 'Batch Settings',
123+
},
124+
extendInfo: {
125+
title: 'Extended Info',
126+
manufacturer: 'Manufacturer',
127+
customOne: 'Custom1',
128+
customTwo: 'Custom2',
129+
customThree: 'Custom3',
130+
},
131+
inventoryQuantity: {
132+
title: 'Inventory Quantity',
133+
initialQuantity: 'Initial inventory quantity',
134+
inputInitialQuantity: 'Please enter the initial inventory quantity',
135+
batchInitialQuantity: 'Initial inventory quantity - Batch settings',
136+
minSafetyQuantity: 'Minimum safety inventory quantity',
137+
inputMinSafetyQuantity: 'Please enter the minimum safety inventory quantity',
138+
batchMinSafetyQuantity: 'Minimum safety inventory quantity - Batch settings',
139+
maxSafetyQuantity: 'Maximum safety inventory quantity',
140+
inputMaxSafetyQuantity: 'Please enter the maximum safety inventory quantity',
141+
batchMaxSafetyQuantity: 'Maximum safety inventory quantity - Batch settings',
142+
warehouse: 'Warehouse (product barcode/product unit)',
143+
inputNumber: 'Please enter the quantity',
144+
number: 'Quantity',
145+
},
146+
images: {
147+
title: 'Image Info',
148+
upload: 'Upload Image',
149+
tip: 'Upload prompt: Up to 4 images can be uploaded, supporting JPG, JPEG, and PNG formats, with a maximum support of 2M',
150+
},
151+
}
152+
}
153+
};

web/src/locales/lang/zh-CN/product.ts

+154
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
export default {
2+
selectData: '请选择一条数据',
3+
modifyDataPrompt: '抱歉,只有未审核的单据才能编辑!',
4+
selectProduct: '选择商品',
5+
inputSelectProduct: '请选择商品',
6+
productList: '商品列表',
7+
category:{
8+
title: '产品分类列表',
9+
tip: '产品分类列表可以添加多个产品分类和下级分类',
10+
add: '新增产品分类',
11+
batchDelete: '批量删除产品分类',
12+
table:{
13+
categoryName: '分类名称',
14+
categoryNumber: '分类编号',
15+
categoryParent: '上级分类',
16+
sort: '排序',
17+
remark: '备注',
18+
createTime: '创建时间',
19+
operate: '操作',
20+
edite: '编辑产品分类',
21+
delete: '删除产品分类'
22+
}
23+
},
24+
info:{
25+
title: '商品信息列表',
26+
add: '新增',
27+
batchDelete: '批量删除',
28+
batchEnable: '批量启用',
29+
batchDisable: '批量禁用',
30+
import: '导入',
31+
export: '导出',
32+
batchEdit: '批量编辑',
33+
header: {
34+
categoryName: '商品类别',
35+
keyWord: '关键词',
36+
serialNumber: '序列号',
37+
batchNumber: '批次号',
38+
warehouse: '仓库',
39+
have: '有',
40+
none: '无',
41+
},
42+
table: {
43+
barCode: '条码',
44+
productName: '商品名称',
45+
productStandard: '商品规格',
46+
productModel: '商品型号',
47+
productColor: '商品颜色',
48+
productUnit: '商品单位',
49+
productCategory: '商品类别',
50+
productStock: '商品库存',
51+
purchasePrice: '采购价格',
52+
retailPrice: '零售价格',
53+
salesPrice: '销售价格',
54+
lowestSellPrice: '最低销售价格',
55+
status: '状态',
56+
createTime: '创建时间',
57+
operate: '操作',
58+
},
59+
importInfo: {
60+
title: '商品信息数据导入',
61+
templateName: '商品信息Excel模板[下载]',
62+
infoData: '商品信息数据',
63+
setup1: '第一步:',
64+
setup2: '第二步:',
65+
tip: '提示:模板中的第一行请勿删除',
66+
},
67+
form: {
68+
basic: {
69+
title: '基本信息',
70+
name: '名称',
71+
inputName: '请输入名称',
72+
standard: '规格',
73+
inputStandard: '请输入规格',
74+
model: '型号',
75+
inputModel: '请输入型号',
76+
color: '颜色',
77+
inputColor: '请输入颜色',
78+
unit: '单位',
79+
inputUnit: '请输入单位',
80+
inputManyUnit: '请选择多单位',
81+
unitTip: '需要先录入单位才能激活此处输入框',
82+
weight: '基础重量',
83+
inputWeight: '请输入基础重量(Kg)',
84+
sheIfLife: '保质期',
85+
inputSheIfLife: '请输入保质期(天)',
86+
category: '类别',
87+
inputCategory: '请选择类别',
88+
serialNumber: '序列号',
89+
inputSerialNumber: '请选择有无序列号',
90+
serialNumberTip: '如果选择为有,则在采购入库单需要录入该商品的序列号',
91+
batchNumber: '批次号',
92+
inputBatchNumber: '请选择有无批次号',
93+
batchNumberTip: '如果选择为有,则在采购入库单需要录入该商品的批号和有效期',
94+
warehouseShelves: '仓库货架',
95+
inputWarehouseShelves: '请输入仓库货架',
96+
multipleAttributes: '多属性',
97+
multipleAttributesTip: '多属性针对服装、鞋帽等行业,需要先录入单位才能激活此处输入框',
98+
inputMultipleAttributes: '请选择多属性(可多选)',
99+
insertRow: '插入一行',
100+
deleteRow: '删除选中行',
101+
purchasePriceBatch: '采购价-批量',
102+
retailPriceBatch: '零售价-批量',
103+
salesPriceBatch: '销售价-批量',
104+
lowestSellPriceBatch: '最低销售价-批量',
105+
table: {
106+
pleaseEnter: '请输入 ',
107+
barCode: '条码',
108+
unit: '单位',
109+
multipleAttributes: '多属性',
110+
retailPrice: '零售价格',
111+
purchasePrice: '采购价格',
112+
salesPrice: '销售价格',
113+
lowestSellPrice: '最低销售价格',
114+
},
115+
remark: '备注',
116+
inputRemark: '请输入备注',
117+
noticeOne: '请插入一行数据,录入商品条码价格信息',
118+
noticeTwo: '系统检查到您没有仓库信息,请在基本资料菜单栏->添加至少1条仓库信息',
119+
noticeThree: '抱歉,您还没有选择多属性,开启多属性后才能批量设置金额',
120+
noticeFour: '请先录入条码、单位等信息!',
121+
inputPrice: '请输入价格',
122+
price: '价格',
123+
batchSet: '批量设置',
124+
},
125+
extendInfo: {
126+
title: '扩展信息',
127+
manufacturer: '制造商',
128+
customOne: '自定义1',
129+
customTwo: '自定义2',
130+
customThree: '自定义3',
131+
},
132+
inventoryQuantity: {
133+
title: '库存数量',
134+
initialQuantity: '期初库存数量',
135+
inputInitialQuantity: '请输入期初库存数量',
136+
batchInitialQuantity: '期初库存-批量设置',
137+
minSafetyQuantity: '最低安全库存数量',
138+
inputMinSafetyQuantity: '请输入最低安全库存数量',
139+
batchMinSafetyQuantity: '最低安全库存-批量设置',
140+
maxSafetyQuantity: '最高安全库存数量',
141+
inputMaxSafetyQuantity: '请输入最高安全库存数量',
142+
batchMaxSafetyQuantity: '最高安全库存-批量设置',
143+
warehouse: '仓库(商品条码/商品单位)',
144+
inputNumber: '请输入数量',
145+
number: '库存数量',
146+
},
147+
images: {
148+
title: '图片信息',
149+
upload: '上传图片',
150+
tip: '上传提示:最多上传4张图片,支持jpg、jpeg、png格式,最大支持2M',
151+
},
152+
}
153+
}
154+
};

0 commit comments

Comments
 (0)