基础信息下页面国际化

This commit is contained in:
猫猫guowen
2025-06-10 13:36:52 +08:00
parent 3987f36364
commit ee0eeabcc8
6 changed files with 771 additions and 321 deletions

View File

@@ -370,7 +370,7 @@ export default {
// 表单校验
rules: {
stockId: [
{ required: true, message: "库存ID不能为空", trigger: "blur" }
{ required: true, message: this.$t('searchViewStockSecure.stockIdRequired'), trigger: "blur" }
],
}
}
@@ -472,7 +472,7 @@ export default {
handleAdd() {
this.reset()
this.open = true
this.title = "添加安全库存查询"
this.title = this.$t('searchViewStockSecure.addTitle')
},
/** 修改按钮操作 */
handleUpdate(row) {
@@ -481,7 +481,7 @@ export default {
getViewStockSecure(stockId).then(response => {
this.form = response.data
this.open = true
this.title = "修改安全库存查询"
this.title = this.$t('searchViewStockSecure.editTitle')
})
},
/** 提交按钮 */
@@ -490,13 +490,13 @@ export default {
if (valid) {
if (this.form.stockId != null) {
updateViewStockSecure(this.form).then(response => {
this.$modal.msgSuccess("修改成功")
this.$modal.msgSuccess(this.$t('searchViewStockSecure.editSuccess'))
this.open = false
this.getList()
})
} else {
addViewStockSecure(this.form).then(response => {
this.$modal.msgSuccess("新增成功")
this.$modal.msgSuccess(this.$t('searchViewStockSecure.addSuccess'))
this.open = false
this.getList()
})
@@ -507,11 +507,11 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
const stockIds = row.stockId || this.ids
this.$modal.confirm('是否确认删除安全库存查询编号为"' + stockIds + '"的数据项?').then(function() {
this.$modal.confirm(this.$t('searchViewStockSecure.deleteConfirm', { stockIds: stockIds })).then(function() {
return delViewStockSecure(stockIds)
}).then(() => {
this.getList()
this.$modal.msgSuccess("删除成功")
this.$modal.msgSuccess(this.$t('searchViewStockSecure.deleteSuccess'))
}).catch(() => {})
},
/** 导出按钮操作 */