Commit 1cf9cbc2 authored by dcy's avatar dcy

入仓国际化2

parent 8eb28edf
...@@ -280,7 +280,7 @@ export default { ...@@ -280,7 +280,7 @@ export default {
orderId: this.orderId orderId: this.orderId
}).then(r => { }).then(r => {
if (r.code === 0){ if (r.code === 0){
this.$message.success(r.msg || '修改标签箱号成功') this.$message.success(r.msg || this.$t('修改标签箱号成功'))
} }
}) })
}, },
...@@ -317,9 +317,9 @@ export default { ...@@ -317,9 +317,9 @@ export default {
}, },
async handleSubmit() { async handleSubmit() {
if (this.specialHas0()) { if (this.specialHas0()) {
const confirm = await this.$confirm('有特需费用为0或未填写,请问是否继续?', '注意', { const confirm = await this.$confirm(this.$t('有特需费用为0或未填写,请问是否继续?'), this.$t('注意'), {
confirmButtonText: '继续', confirmButtonText: this.$t('继续'),
cancelButtonText: '取消', cancelButtonText: this.$t('取消'),
type: 'warning' type: 'warning'
}) })
if (confirm !== 'confirm'){ if (confirm !== 'confirm'){
...@@ -343,20 +343,20 @@ export default { ...@@ -343,20 +343,20 @@ export default {
if (r.code === 0) { if (r.code === 0) {
this.escapeBol = false; this.escapeBol = false;
this.finishVisible = false this.finishVisible = false
const message = !r.data ? '该订单已成功入仓,是否打印?' : "<h3>货物已入仓,存在异常</h3>该订单已成功入仓,是否打印?" const message = !r.data ? this.$t('该订单已成功入仓,是否打印?') : `<h3>${this.$t('货物已入仓,存在异常')}</h3>${this.$t('该订单已成功入仓,是否打印?')}`
this.$confirm( this.$confirm(
message, message,
'货物已入仓', this.$t('货物已入仓'),
{ {
confirmButtonText: '', confirmButtonText: this.$t(''),
cancelButtonText: '', cancelButtonText: this.$t(''),
dangerouslyUseHTMLString: true dangerouslyUseHTMLString: true
} }
).then(() => { ).then(() => {
this.isShowPrint = true this.isShowPrint = true
}).catch(() => { }).catch(() => {
// this.$store.dispatch('tagsView/delVisitedView') // this.$store.dispatch('tagsView/delVisitedView')
this.$message.success('入仓成功') this.$message.success(this.$t('入仓成功'))
this.$tab.closePage() this.$tab.closePage()
}) })
} }
...@@ -367,9 +367,9 @@ export default { ...@@ -367,9 +367,9 @@ export default {
this.warehousingVisible = true this.warehousingVisible = true
}, },
handleWarehousingReturn(item){ handleWarehousingReturn(item){
this.$confirm(item.prodTitleZh + '退仓后不可恢复,是否确认退仓?', '确定要退仓?', { this.$confirm(item.prodTitleZh + this.$t('退仓后不可恢复,是否确认退仓?'), this.$t('确定要退仓?'), {
confirmButtonText: '确定', confirmButtonText: this.$t('确定'),
cancelButtonText: '取消', cancelButtonText: this.$t('取消'),
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
rollbackDelete({ rollbackDelete({
...@@ -378,7 +378,7 @@ export default { ...@@ -378,7 +378,7 @@ export default {
}).then(() => { }).then(() => {
this.$message({ this.$message({
type: 'success', type: 'success',
message: '货物退仓成功!' message: this.$t('货物退仓成功!')
}); });
getOrderWarehouseIn(this.orderId).then(r => this.orderItemList = r.data.reverse()) getOrderWarehouseIn(this.orderId).then(r => this.orderItemList = r.data.reverse())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment