From e2a8a64208021ccdd2b7e24e0904e7d701f4a3fa Mon Sep 17 00:00:00 2001 From: zhang <2012681011@qq.com> Date: Fri, 20 Dec 2024 16:47:52 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96=E6=94=B9?= =?UTF-8?q?=E9=80=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../i18n/langs/basedata/classification/en.js | 10 +- .../i18n/langs/basedata/classification/es.js | 35 +++++ .../i18n/langs/basedata/classification/zh.js | 12 +- .../qd/src/i18n/langs/basedata/customer/en.js | 40 ++++++ .../qd/src/i18n/langs/basedata/customer/es.js | 42 ++++++ .../qd/src/i18n/langs/basedata/customer/zh.js | 42 ++++++ .../qd/src/i18n/langs/basedata/material/en.js | 21 ++- .../qd/src/i18n/langs/basedata/material/es.js | 39 +++++ .../qd/src/i18n/langs/basedata/material/zh.js | 23 ++- .../qd/src/i18n/langs/basedata/measure/en.js | 26 ++++ .../qd/src/i18n/langs/basedata/measure/es.js | 26 ++++ .../qd/src/i18n/langs/basedata/measure/zh.js | 26 ++++ .../wms/base_manage/class_standard/index.vue | 83 +++++------ .../views/wms/base_manage/customer/index.vue | 133 +++++++++--------- .../views/wms/base_manage/material/index.vue | 133 +++++++++--------- .../views/wms/base_manage/measure/index.vue | 57 ++++---- 16 files changed, 536 insertions(+), 212 deletions(-) create mode 100644 wms_pro/qd/src/i18n/langs/basedata/classification/es.js create mode 100644 wms_pro/qd/src/i18n/langs/basedata/customer/en.js create mode 100644 wms_pro/qd/src/i18n/langs/basedata/customer/es.js create mode 100644 wms_pro/qd/src/i18n/langs/basedata/customer/zh.js create mode 100644 wms_pro/qd/src/i18n/langs/basedata/material/es.js create mode 100644 wms_pro/qd/src/i18n/langs/basedata/measure/en.js create mode 100644 wms_pro/qd/src/i18n/langs/basedata/measure/es.js create mode 100644 wms_pro/qd/src/i18n/langs/basedata/measure/zh.js diff --git a/wms_pro/qd/src/i18n/langs/basedata/classification/en.js b/wms_pro/qd/src/i18n/langs/basedata/classification/en.js index b8c0b65a..9d10e6c4 100644 --- a/wms_pro/qd/src/i18n/langs/basedata/classification/en.js +++ b/wms_pro/qd/src/i18n/langs/basedata/classification/en.js @@ -1,5 +1,5 @@ export default { - 'classification': { + 'classstandard': { 'title': 'Basic category', 'dialog': { 'code': 'Classification code', @@ -10,6 +10,10 @@ export default { 'update_name': 'Modified by', 'update_time': 'Change time', 'operate': 'operation', + 'yes': 'yes', + 'no': 'no', + 'confirm': 'confirm', + 'cancel': 'cancel', 'is_update': 'Can it be modified' }, 'other': { @@ -20,12 +24,12 @@ export default { 'label': 'Category Name', 'select': 'Please choose a category name', 'open': 'Expand All', + 'import': 'import', 'superior_class': 'Select superior category' }, 'msg': { 'delete': 'Are you sure to delete? If there are subordinate nodes, they will be deleted together. This operation cannot be undone!', - 'isNotEmpty': 'Cannot be empty', - 'topClassNotEmpty': 'The top-level category cannot be empty' + 'isNotEmpty': 'Cannot be empty' } } } diff --git a/wms_pro/qd/src/i18n/langs/basedata/classification/es.js b/wms_pro/qd/src/i18n/langs/basedata/classification/es.js new file mode 100644 index 00000000..98b1ddd9 --- /dev/null +++ b/wms_pro/qd/src/i18n/langs/basedata/classification/es.js @@ -0,0 +1,35 @@ +export default { + 'classstandard': { + 'title': 'Categoría básica', + 'dialog': { + 'code': 'Codificación clasificada', + 'name': 'Nombre de la clasificación', + 'desc': 'Breve descripción', + 'top_class': 'Categoría superior', + 'superior_class': 'Categoría superior', + 'update_name': 'Modificado por', + 'update_time': 'Tiempo de modificación', + 'operate': 'Operación', + 'yes': 'Sí.', + 'no': 'deny', + 'confirm': 'Confirmación', + 'cancel': 'Cancelación', + 'is_update': 'Si se puede modificar' + }, + 'other': { + 'addSibling': 'Nuevo mismo nivel', + 'addChildren': 'Nuevos subniveles' + }, + 'placeholder': { + 'label': 'Nombre de la categoría', + 'select': 'Por favor, elija el nombre de la clasificación', + 'open': 'Todo desplegado', + 'import': 'Importar', + 'superior_class': 'Selección de la categoría superior' + }, + 'msg': { + 'delete': '¡Está seguro de que se eliminará, si hay nodos inferiores, se eliminará juntos, ¡ esta operación no se puede cancelar!', + 'isNotEmpty': 'No puede estar vacío' + } + } +} diff --git a/wms_pro/qd/src/i18n/langs/basedata/classification/zh.js b/wms_pro/qd/src/i18n/langs/basedata/classification/zh.js index 00d596f3..09692f8d 100644 --- a/wms_pro/qd/src/i18n/langs/basedata/classification/zh.js +++ b/wms_pro/qd/src/i18n/langs/basedata/classification/zh.js @@ -1,5 +1,5 @@ export default { - 'classification': { + 'classstandard': { 'title': '基础类别', 'dialog': { 'code': '分类编码', @@ -7,11 +7,13 @@ export default { 'desc': '简要描述', 'top_class': '顶级类目', 'superior_class': '上级类目', - 'create_name': '创建人', - 'create_time': '创建时间', 'update_name': '修改人', 'update_time': '修改时间', 'operate': '操作', + 'yes': '是', + 'no': '否', + 'confirm': '确认', + 'cancel': '取消', 'is_update': '是否可修改' }, 'other': { @@ -22,12 +24,12 @@ export default { 'label': '类别名称', 'select': '请选择分类名称', 'open': '全部展开', + 'import': '导入', 'superior_class': '选择上级类目' }, 'msg': { 'delete': '确定删除吗,如果存在下级节点则一并删除,此操作不能撤销!', - 'isNotEmpty': '不能为空', - 'topClassNotEmpty': '顶级类目不能为空' + 'isNotEmpty': '不能为空' } } } diff --git a/wms_pro/qd/src/i18n/langs/basedata/customer/en.js b/wms_pro/qd/src/i18n/langs/basedata/customer/en.js new file mode 100644 index 00000000..a3286be8 --- /dev/null +++ b/wms_pro/qd/src/i18n/langs/basedata/customer/en.js @@ -0,0 +1,40 @@ +export default { + 'customer': { + 'title': 'Customer Basic Table', + 'dialog': { + 'code': 'customer code', + 'name': 'Customer Name', + 'address': 'Company address', + 'jurid_name': 'legal representative', + 'tax_no': 'Tax registration number', + 'register_no': 'Business registration number', + 'manage_lice_no': 'Business license number', + 'busi_char_name': 'business license', + 'zip_code': 'Postal Code', + 'remark': 'remark', + 'enable': 'enable', + 'ext_id': 'External identification', + 'class_basic': 'Basic Classification', + 'telephone': 'company phone', + 'update_name': 'Modified by', + 'update_time': 'Change time', + 'operate': 'operation', + 'yes': 'yes', + 'no': 'no', + 'confirm': 'confirm', + 'cancel': 'cancel', + 'is_update': 'Can it be modified' + }, + 'placeholder': { + 'select': 'Fuzzy Query', + 'customer_info': 'customer information', + 'is_enable': 'Is it enabled', + 'input': 'Enter customer code or customer name', + 'please_select': 'Please select', + 'import': 'import' + }, + 'msg': { + 'isNotEmpty': 'Cannot be empty' + } + } +} diff --git a/wms_pro/qd/src/i18n/langs/basedata/customer/es.js b/wms_pro/qd/src/i18n/langs/basedata/customer/es.js new file mode 100644 index 00000000..82415ba8 --- /dev/null +++ b/wms_pro/qd/src/i18n/langs/basedata/customer/es.js @@ -0,0 +1,42 @@ +export default { + 'customer': { + 'title': 'Formulario de base de clientes', + 'dialog': { + 'code': 'Código del cliente', + 'name': 'Nombre del cliente', + 'address': 'Dirección de la empresa', + 'jurid_name': 'Representante legal', + 'tax_no': 'Número de registro fiscal', + 'register_no': 'Número de registro industrial y comercial', + 'manage_lice_no': 'Número de licencia comercial', + 'busi_char_name': 'Licencia comercial', + 'zip_code': 'Código postal', + 'ext_id': 'Identificación externa', + 'class_basic': 'Clasificación básica', + 'remark': 'Nota', + 'telephone': 'Teléfono de la empresa', + 'update_name': 'Revisor', + 'enable': 'Habilitar', + 'update_time': 'Tiempo de modificación', + 'operate': 'Operación', + 'yes': 'Sí.', + 'no': 'deny', + 'confirm': 'Confirmación', + 'cancel': 'Cancelación', + 'is_update': 'Si se puede modificar' + }, + 'placeholder': { + 'select': 'Consulta inútil', + 'customer_info': 'Información del cliente', + 'is_enable': 'Si habilitar', + 'input': 'Introduzca el Código del cliente o el nombre del cliente', + 'please_select': 'Por favor, elija', + 'import': 'Importar' + }, + 'msg': { + 'isNotEmpty': 'No puede estar vacío' + } + } + +} + diff --git a/wms_pro/qd/src/i18n/langs/basedata/customer/zh.js b/wms_pro/qd/src/i18n/langs/basedata/customer/zh.js new file mode 100644 index 00000000..8e7ea896 --- /dev/null +++ b/wms_pro/qd/src/i18n/langs/basedata/customer/zh.js @@ -0,0 +1,42 @@ +export default { + 'customer': { + 'title': '客户基础表', + 'dialog': { + 'code': '客户编码', + 'name': '客户名称', + 'address': '公司地址', + 'jurid_name': '法人代表', + 'tax_no': '税务登记号', + 'register_no': '工商注册号', + 'manage_lice_no': '经营许可证号', + 'busi_char_name': '营业执照', + 'zip_code': '邮政编码', + 'ext_id': '外部标识', + 'class_basic': '基础分类', + 'remark': '备注', + 'telephone': '公司电话', + 'update_name': '修改者', + 'enable': '启用', + 'update_time': '修改时间', + 'operate': '操作', + 'yes': '是', + 'no': '否', + 'confirm': '确认', + 'cancel': '取消', + 'is_update': '是否可修改' + }, + 'placeholder': { + 'select': '模糊查询', + 'customer_info': '客户信息', + 'is_enable': '是否启用', + 'input': '输入客户编码或客户名称', + 'please_select': '请选择', + 'import': '导入' + }, + 'msg': { + 'isNotEmpty': '不能为空' + } + } + +} + diff --git a/wms_pro/qd/src/i18n/langs/basedata/material/en.js b/wms_pro/qd/src/i18n/langs/basedata/material/en.js index bbb5fc31..3501c90d 100644 --- a/wms_pro/qd/src/i18n/langs/basedata/material/en.js +++ b/wms_pro/qd/src/i18n/langs/basedata/material/en.js @@ -5,10 +5,24 @@ export default { 'code': 'Material code', 'name': 'Material name', 'spec': 'Material specifications', + 'material_model': 'Material model', + 'nearby_weight': 'Recent weight', + 'single_weight': 'Weight', + 'gross_weight': 'gross weight', + 'ext_id': 'External identification', + 'material_type': 'Material type', + 'product_series': 'Product series', + 'unit_name': 'unit of measurement', + 'net_weight': 'Single weight (g)', 'class_id': 'Material classification identification', 'standing_time': 'Return time (hours)', 'workshop_code': 'Workshop code', 'remark': 'remarks', + 'yes': 'yes', + 'no': 'no', + 'confirm': 'confirm', + 'cancel': 'cancel', + 'enable': 'enabled', 'is_enable': 'Is it enabled', 'is_delete': 'Do you want to delete it', 'create_name': 'Creator', @@ -18,9 +32,14 @@ export default { 'operate': 'operation' }, 'placeholder': { + 'material_type': 'Material type', 'code': 'Code name', 'select': 'Fuzzy search', - 'workshop_code': 'Belonging workshop' + 'workshop_code': 'Belonging workshop', + 'please_select': 'Please select' + }, + 'msg': { + 'isNotEmpty': 'Cannot be empty' } } } diff --git a/wms_pro/qd/src/i18n/langs/basedata/material/es.js b/wms_pro/qd/src/i18n/langs/basedata/material/es.js new file mode 100644 index 00000000..e2ccfeec --- /dev/null +++ b/wms_pro/qd/src/i18n/langs/basedata/material/es.js @@ -0,0 +1,39 @@ +export default { + 'material': { + 'title': 'Material', + 'dialog': { + 'code': 'Codificación de materiales', + 'name': 'Nombre del material', + 'spec': 'Especificaciones de materiales', + 'material_model': 'Modelo de material', + 'nearby_weight': 'Peso reciente', + 'single_weight': 'Peso único', + 'gross_weight': 'Peso bruto', + 'ext_id': 'Identificación externa', + 'material_type': 'Clasificación de materiales', + 'product_series': 'Gama de productos', + 'unit_name': 'Unidad de medida', + 'net_weight': 'Peso único (g)', + 'class_id': 'Identificación de clasificación de materiales', + 'remark': 'Nota', + 'yes': 'Sí.', + 'no': 'No', + 'confirm': 'Confirmación', + 'cancel': 'Cancelación', + 'enable': 'Habilitar', + 'is_enable': 'Si habilitar', + 'update_name': 'Modificado por', + 'update_time': 'Tiempo de modificación', + 'operate': 'Operación' + }, + 'placeholder': { + 'material_type': 'Categoría de material', + 'code': 'Nombre del Código', + 'select': 'Búsqueda inútil', + 'please_select': 'Por favor, elija' + }, + 'msg': { + 'isNotEmpty': 'No puede estar vacío' + } + } +} diff --git a/wms_pro/qd/src/i18n/langs/basedata/material/zh.js b/wms_pro/qd/src/i18n/langs/basedata/material/zh.js index 2b24f20f..0b877bfe 100644 --- a/wms_pro/qd/src/i18n/langs/basedata/material/zh.js +++ b/wms_pro/qd/src/i18n/langs/basedata/material/zh.js @@ -1,14 +1,28 @@ export default { 'material': { - 'title': '物料基础信息', + 'title': '物料', 'dialog': { 'code': '物料编码', 'name': '物料名称', 'spec': '物料规格', + 'material_model': '物料型号', + 'nearby_weight': '最近重量', + 'single_weight': '单重', + 'gross_weight': '毛重', + 'ext_id': '外部标识', + 'material_type': '物料分类', + 'product_series': '产品系列', + 'unit_name': '计量单位', + 'net_weight': '单重(g)', 'class_id': '物料分类标识', 'standing_time': '回温时间(小时)', 'workshop_code': '车间编码', 'remark': '备注', + 'yes': '是', + 'no': '否', + 'confirm': '确认', + 'cancel': '取消', + 'enable': '启用', 'is_enable': '是否启用', 'is_delete': '是否删除', 'create_name': '创建人', @@ -18,9 +32,14 @@ export default { 'operate': '操作' }, 'placeholder': { + 'material_type': '物料类别', 'code': '编码名称', 'select': '模糊搜索', - 'workshop_code': '所属车间' + 'workshop_code': '所属车间', + 'please_select': '请选择' + }, + 'msg': { + 'isNotEmpty': '不能为空' } } } diff --git a/wms_pro/qd/src/i18n/langs/basedata/measure/en.js b/wms_pro/qd/src/i18n/langs/basedata/measure/en.js new file mode 100644 index 00000000..39228d8f --- /dev/null +++ b/wms_pro/qd/src/i18n/langs/basedata/measure/en.js @@ -0,0 +1,26 @@ +export default { + 'measure': { + 'title': 'unit of measurement', + 'dialog': { + 'unit_code': 'code', + 'unit_name': 'name', + 'qty_precision': 'data precision', + 'desc': 'Description Text', + 'ext_id': 'External identification', + 'class_basic': 'Basic Classification', + 'update_name': 'Modified by', + 'update_time': 'Change time', + 'operate': 'operation', + 'confirm': 'confirm', + 'cancel': 'cancel', + 'is_update': 'Can it be modified' + }, + 'placeholder': { + 'info': 'Unit Information', + 'input': 'Enter the unit code or unit name' + }, + 'msg': { + 'isNotEmpty': 'Cannot be empty' + } + } +} diff --git a/wms_pro/qd/src/i18n/langs/basedata/measure/es.js b/wms_pro/qd/src/i18n/langs/basedata/measure/es.js new file mode 100644 index 00000000..eda806a1 --- /dev/null +++ b/wms_pro/qd/src/i18n/langs/basedata/measure/es.js @@ -0,0 +1,26 @@ +export default { + 'measure': { + 'title': 'Unidad de medida', + 'dialog': { + 'unit_code': 'Codificación', + 'unit_name': 'Nombre', + 'qty_precision': 'Precisión de los datos', + 'desc': 'Texto de descripción', + 'ext_id': 'Identificación externa', + 'update_name': 'Revisor', + 'enable': 'Habilitar', + 'update_time': 'Tiempo de modificación', + 'operate': 'Operación', + 'confirm': 'Confirmación', + 'cancel': 'Cancelación', + 'is_update': 'Si se puede modificar' + }, + 'placeholder': { + 'info': 'Información de la unidad', + 'input': 'Introduzca el Código de la unidad o el nombre de la unidad' + }, + 'msg': { + 'isNotEmpty': 'No puede estar vacío' + } + } +} diff --git a/wms_pro/qd/src/i18n/langs/basedata/measure/zh.js b/wms_pro/qd/src/i18n/langs/basedata/measure/zh.js new file mode 100644 index 00000000..c13f6c33 --- /dev/null +++ b/wms_pro/qd/src/i18n/langs/basedata/measure/zh.js @@ -0,0 +1,26 @@ +export default { + 'measure': { + 'title': '计量单位', + 'dialog': { + 'unit_code': '编码', + 'unit_name': '名称', + 'ext_id': '外部标识', + 'qty_precision': '数据精度', + 'desc': '描述文字', + 'confirm': '确认', + 'cancel': '取消', + 'enable': '启用', + 'is_enable': '是否启用', + 'update_name': '修改人', + 'update_time': '修改时间', + 'operate': '操作' + }, + 'placeholder': { + 'info': '单位信息', + 'input': '输入单位编码或单位名称' + }, + 'msg': { + 'isNotEmpty': '不能为空' + } + } +} diff --git a/wms_pro/qd/src/views/wms/base_manage/class_standard/index.vue b/wms_pro/qd/src/views/wms/base_manage/class_standard/index.vue index 218cdc72..76e72d49 100644 --- a/wms_pro/qd/src/views/wms/base_manage/class_standard/index.vue +++ b/wms_pro/qd/src/views/wms/base_manage/class_standard/index.vue @@ -11,22 +11,23 @@ label-width="90px" label-suffix=":" > - + + @change="hand" + > - + :value="item.value" + /> @@ -42,7 +43,7 @@ icon="el-icon-s-operation" @click="ToExpandall" > - 全部展开 + {{ $t('classstandard.placeholder.open') }} - 导入 + {{ $t('classstandard.placeholder.import') }} @@ -64,34 +65,34 @@ width="500px" > - + - + - + - + - - + {{ $t('classstandard.dialog.yes') }} + {{ $t('classstandard.dialog.no') }} - + @@ -107,15 +108,15 @@ @select-all="crud.selectAllChange" @selection-change="crud.selectionChangeHandler" > - - - - - - + + + + + + @@ -126,17 +127,17 @@ :permission="permission" :disabled-edit="scope.row.is_modify === '0'" :disabled-dle="scope.row.is_modify === '0'" - msg="确定删除吗,如果存在下级节点则一并删除,此操作不能撤销!" + :msg="$t('classstandard.msg.delete')" /> - 新增同级 - 新增子级 + {{ $t('classstandard.other.addSibling') }} + {{ $t('classstandard.other.addChildren') }} - + @@ -150,6 +151,7 @@ import udOperation from '@crud/UD.operation' import rrOperation from '@crud/RR.operation' import pagination from '@crud/Pagination' import UploadDialog from './UploadDialog' +import i18n from '@/i18n' let defaultForm = { class_id: null, @@ -178,11 +180,11 @@ let defaultForm = { export default { name: 'Classstandard', dicts: ['base_data'], - components: {UploadDialog, pagination, crudOperation, rrOperation, udOperation, Treeselect }, + components: { UploadDialog, pagination, crudOperation, rrOperation, udOperation, Treeselect }, mixins: [presenter(), header(), form(defaultForm), crud()], cruds() { return CRUD({ - title: '基础类别', + title: i18n.t('classstandard.title'), url: 'api/bmClassStandard', idField: 'class_id', sort: 'class_id,desc', @@ -201,34 +203,34 @@ export default { permission: {}, rules: { class_id: [ - { required: true, message: '不能为空', trigger: 'blur' } + { required: true, message: this.$t('classstandard.msg.isNotEmpty'), trigger: 'blur' } ], path_code: [ - { required: true, message: '不能为空', trigger: 'blur' } + { required: true, message: this.$t('classstandard.msg.isNotEmpty'), trigger: 'blur' } ], class_code: [ - { required: true, message: '不能为空', trigger: 'blur' } + { required: true, message: this.$t('classstandard.msg.isNotEmpty'), trigger: 'blur' } ], class_name: [ - { required: true, message: '不能为空', trigger: 'blur' } + { required: true, message: this.$t('classstandard.msg.isNotEmpty'), trigger: 'blur' } ], is_leaf: [ - { required: true, message: '不能为空', trigger: 'blur' } + { required: true, message: this.$t('classstandard.msg.isNotEmpty'), trigger: 'blur' } ], is_modify: [ - { required: true, message: '不能为空', trigger: 'blur' } + { required: true, message: this.$t('classstandard.msg.isNotEmpty'), trigger: 'blur' } ], is_delete: [ - { required: true, message: '不能为空', trigger: 'blur' } + { required: true, message: this.$t('classstandard.msg.isNotEmpty'), trigger: 'blur' } ], create_id: [ - { required: true, message: '不能为空', trigger: 'blur' } + { required: true, message: this.$t('classstandard.msg.isNotEmpty'), trigger: 'blur' } ], create_name: [ - { required: true, message: '不能为空', trigger: 'blur' } + { required: true, message: this.$t('classstandard.msg.isNotEmpty'), trigger: 'blur' } ], create_time: [ - { required: true, message: '不能为空', trigger: 'blur' } + { required: true, message: this.$t('classstandard.msg.isNotEmpty'), trigger: 'blur' } ] } } @@ -399,7 +401,6 @@ export default { } const dafult = this.$el.getElementsByClassName('dafult') for (let a = 0; a < dafult.length; a++) { - dafult[a].click() } } diff --git a/wms_pro/qd/src/views/wms/base_manage/customer/index.vue b/wms_pro/qd/src/views/wms/base_manage/customer/index.vue index e9df6592..6d7c93d2 100644 --- a/wms_pro/qd/src/views/wms/base_manage/customer/index.vue +++ b/wms_pro/qd/src/views/wms/base_manage/customer/index.vue @@ -9,18 +9,18 @@ label-width="80px" label-suffix=":" > - + - + @@ -32,7 +32,7 @@ size="mini" @click="uploadShow = true" > - 导入 + {{ $t('customer.placeholder.import') }} @@ -46,93 +46,93 @@ - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - - + + {{ $t('customer.placeholder.no') }} + {{ $t('customer.placeholder.yes') }} - + - - + + @@ -144,14 +144,14 @@ style="width: 100%;" @selection-change="crud.selectionChangeHandler" > - - - - - - - - + + + + + + + +