出库模块国际化
This commit is contained in:
@@ -184,7 +184,7 @@ export default {
|
||||
/** 打开选择物资弹窗 */
|
||||
handleSelectMaterials() {
|
||||
if (!this.formData.warehouseId) {
|
||||
this.$modal.msgError("请先选择仓库");
|
||||
this.$modal.msgError(this.$t('addOutStockout.selectWarehouse'));
|
||||
return;
|
||||
}
|
||||
this.materialDialog = true;
|
||||
@@ -207,7 +207,7 @@ export default {
|
||||
/** 确认选择物资 */
|
||||
confirmSelectMaterials() {
|
||||
if (this.selectedMaterials.length === 0) {
|
||||
this.$modal.msgError("请选择物资");
|
||||
this.$modal.msgError(this.$t('addOutStockout.selectMaterials'));
|
||||
return;
|
||||
}
|
||||
// 过滤掉已经存在的物资
|
||||
@@ -216,7 +216,7 @@ export default {
|
||||
});
|
||||
|
||||
if (newMaterials.length === 0) {
|
||||
this.$modal.msgWarning("所选物资已存在,请重新选择");
|
||||
this.$modal.msgWarning(this.$t('addOutStockout.selectExistsMaterials'));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -258,7 +258,7 @@ export default {
|
||||
|
||||
// 如果修改后的数量大于初始数量,给出提示并重置为当前值
|
||||
if (row.quantity > row.quantityOrignal) {
|
||||
this.$modal.msgError("数量不能大于库存数量");
|
||||
this.$modal.msgError(this.$t('addOutStockout.error1'));
|
||||
row.quantity = row.quantityOrignal;
|
||||
}
|
||||
},
|
||||
@@ -267,7 +267,7 @@ export default {
|
||||
this.$refs.formRef.validate(valid => {
|
||||
if (valid) {
|
||||
if (this.materialList.length === 0) {
|
||||
this.$modal.msgError("请选择物资");
|
||||
this.$modal.msgError(this.$t('addOutStockout.selectMaterials'));
|
||||
return;
|
||||
}
|
||||
const data = {
|
||||
@@ -277,7 +277,7 @@ export default {
|
||||
// 这里需要调用保存接口
|
||||
saveOutStock(data).then(response => {
|
||||
console.log(response)
|
||||
this.$modal.msgSuccess("单据"+response.msg+"保存成功");
|
||||
this.$modal.msgSuccess(this.$t('addOutStockout.operaSuccess')+":"+response.msg);
|
||||
this.$tab.refreshPage(this.$route);
|
||||
// this.reset();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user