|
|
|
@ -610,6 +610,7 @@ import { |
|
|
|
haiAnDeleteUnpushedNotify |
|
|
|
} from '@/api/haianWarehouse/noOrderIssueNotify.js' |
|
|
|
import { showHaianWcsPushResult } from '@/utils/haianWcsPushResult' |
|
|
|
import { haiAnGetAreaList } from '@/api/haianWarehouse/warehousePallet.js' |
|
|
|
import { |
|
|
|
getTableDefaultListLanguage, |
|
|
|
getTableUserListLanguage, |
|
|
|
@ -1665,6 +1666,8 @@ export default { |
|
|
|
} |
|
|
|
// 海安页面补充subSite列:已申请物料与预定标签清单在序号后展示子站点 - rqrq |
|
|
|
this.haiAnEnsureSubSiteColumns() |
|
|
|
// 推送弹窗单据目的地按haian_area名称展示,进入页面先加载区域清单 - rqrq |
|
|
|
this.loadHaianAreaOptions(this.$store.state.user.site) |
|
|
|
}, |
|
|
|
|
|
|
|
computed: { |
|
|
|
@ -2674,6 +2677,8 @@ export default { |
|
|
|
this.currentNotifyRow = JSON.parse(JSON.stringify(row)) |
|
|
|
this.currentProductionArea = row.productionArea || '' |
|
|
|
this.originalProductionArea = this.currentProductionArea |
|
|
|
// 打开推送预览时按单据site再拉一次区域,避免名称映射为空回退成A10编码 - rqrq |
|
|
|
this.loadHaianAreaOptions(row.site || this.$store.state.user.site) |
|
|
|
this.currentOrderType = row.orderType || 'noorder' |
|
|
|
this.isDestinationEditable = false |
|
|
|
this.previewData = [] |
|
|
|
@ -2749,11 +2754,31 @@ export default { |
|
|
|
*/ |
|
|
|
getAreaDisplayText(areaId) { |
|
|
|
if (!areaId) return '未设置' |
|
|
|
const area = this.areaOptions.find(item => item.areaId === areaId) |
|
|
|
const code = String(areaId).trim() |
|
|
|
const area = (this.areaOptions || []).find(item => String(item.areaId || '').trim() === code) |
|
|
|
if (area && area.areaDesc) { |
|
|
|
return area.areaDesc |
|
|
|
} |
|
|
|
return areaId |
|
|
|
return code |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 按工厂加载haian_area,目的地下拉和推送展示共用名称;保存仍提交areaId - rqrq |
|
|
|
*/ |
|
|
|
loadHaianAreaOptions(site) { |
|
|
|
const querySite = site || this.$store.state.user.site |
|
|
|
if (!querySite) { |
|
|
|
this.areaOptions = [] |
|
|
|
return |
|
|
|
} |
|
|
|
haiAnGetAreaList({ site: querySite }).then(({ data }) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.areaOptions = data.rows || [] |
|
|
|
return |
|
|
|
} |
|
|
|
this.areaOptions = [] |
|
|
|
}).catch(() => { |
|
|
|
this.areaOptions = [] |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
|