-
-
+
+
+
-
-
+
+
+
-
+
+
-
+
+
- 搜索
- 重置
+
+ {{ $t('bas_ContainerManagement.btnSearch') }}
+
+ {{ $t('bas_ContainerManagement.btnReset') }}
+
新增/绑定
+ >{{ $t('bas_ContainerManagement.btnAddOrBinding') }}
+
修改
+ >{{ $t('bas_ContainerManagement.btnEdit') }}
+
删除/解绑
+ >{{ $t('bas_ContainerManagement.btnDeleteOrUnbinding') }}
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
详情
+ >{{ $t('bas_ContainerManagement.btnDetails') }}
+
修改
+ >{{ $t('bas_ContainerManagement.btnEdit') }}
+
删除
+ >{{ $t('bas_ContainerManagement.btnDeleteOrUnbinding') }}
@@ -134,12 +156,14 @@
-
-
-
+
+
+
+
-
-
+
+
+
-
-
+
+
+
-
+
-
-
+
+
+
-
+
@@ -220,7 +249,7 @@ export default {
operationMan: null,
},
portNameOptions: [],
- statusOptions: ['空', '有货'],
+ // statusOptions: ['空', '有货'],
// 表单参数
form: {},
// 表单校验
@@ -251,11 +280,13 @@ export default {
this.portNameOptions = Array.isArray(res.data) ? [...res.data] : [];
// console.log(this.portNameOptions);
} else {
- this.$message.error('获取点位名称失败');
+ // 获取点位名称失败
+ this.$message.error(this.$t('bas_ContainerManagement.textErrorForGetPortName'));
}
})
.catch(error => {
- this.$message.error('请求异常,请检查网络');
+ // 请求异常
+ this.$message.error(this.$t('bas_ContainerManagement.textErrorForRequestException'));
console.error(error);
});
@@ -304,7 +335,8 @@ export default {
this.reset()
this.containerIdIsEnabled = true
this.open = true
- this.title = "添加容器管理"
+ // 标题:添加容器管理
+ this.title = this.$t('bas_ContainerManagement.addContainerItem')
},
/** 修改按钮操作 */
handleUpdate(row) {
@@ -314,7 +346,8 @@ export default {
this.form = response.data
this.containerIdIsEnabled = false
this.open = true
- this.title = "修改容器管理"
+ // 标题:修改容器管理
+ this.title = this.$t('bas_ContainerManagement.editContainerItem')
})
},
/** 详情按钮操作 */
@@ -331,9 +364,11 @@ export default {
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
- if (this.title === "修改容器管理") {
+ // 标题:修改容器管理
+ if (this.title === this.$t('bas_ContainerManagement.editContainerItem')) {
updateContainer(this.form).then(response => {
- this.$modal.msgSuccess("修改成功")
+ // 提示信息:修改成功
+ this.$modal.msgSuccess(this.$t('bas_ContainerManagement.editSuccessInfo'))
this.open = false
this.getList()
})
@@ -342,7 +377,8 @@ export default {
this.form.productTypeQuantity = '3';
this.form.capacity = 10;
addContainer(this.form).then(response => {
- this.$modal.msgSuccess("新增成功")
+ // 提示信息:新增成功
+ this.$modal.msgSuccess(this.$t('bas_ContainerManagement.addSuccessInfo'))
// console.log(this.form.containerId + this.form.portName +this.form.operationMan);
this.open = false
this.getList()
@@ -354,11 +390,13 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
const containerIds = row.containerId || this.ids
- this.$modal.confirm('是否确认删除容器管理编号为"' + containerIds + '"的数据项?').then(function() {
+ // 提示信息:是否确认删除容器编号为" + containerIds + "的数据项?
+ this.$modal.confirm(this.$t('bas_ContainerManagement.textDeleteConfirm1') + containerIds + this.$t('bas_ContainerManagement.textDeleteConfirm2')).then(function() {
return delContainer(containerIds)
}).then(() => {
this.getList()
- this.$modal.msgSuccess("删除成功")
+ // 提示信息:删除成功
+ this.$modal.msgSuccess(this.$t('bas_ContainerManagement.deleteSuccessInfo'))
}).catch(() => {})
},
/** 导出按钮操作 */
diff --git a/ruoyi-ui/src/views/bas/containerDetails/index.vue b/ruoyi-ui/src/views/bas/containerDetails/index.vue
index 268a85e..448bb65 100644
--- a/ruoyi-ui/src/views/bas/containerDetails/index.vue
+++ b/ruoyi-ui/src/views/bas/containerDetails/index.vue
@@ -1,78 +1,86 @@