Commit 1cf9cbc2 authored by dcy's avatar dcy

入仓国际化2

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