diff --git a/common/api/common.js b/common/api/common.js index 6cf48d9..f17ff9b 100644 --- a/common/api/common.js +++ b/common/api/common.js @@ -69,6 +69,10 @@ export const getLastAppVersion = (data = {})=> { return coreRequest(url.getLastAppVersion, data, {}) } +//获取网点列表 +export const listSimple = (data = {})=> { + return coreRequest(url.listSimple, data, {}, "GET") +} diff --git a/common/api/order.js b/common/api/order.js index 89d9e99..b915d06 100644 --- a/common/api/order.js +++ b/common/api/order.js @@ -250,4 +250,9 @@ export const getMyBizStatInfo = (data = {})=> { // 业务统计明细(区分国家) export const getMyBizStatList = (data = {})=> { return coreRequest(url.getMyBizStatList, data, {}, "GET") +} + +// 获取关联主单号 +export const getMasterEmisWaybills = (data = {}) => { + return coreRequest(url.getMasterEmisWaybills, data, {}, "GET") } \ No newline at end of file diff --git a/common/api/url.js b/common/api/url.js index dc9ca33..5b7d9e1 100644 --- a/common/api/url.js +++ b/common/api/url.js @@ -77,6 +77,7 @@ export default { getMyProfitSimpleList: `/emis/emisCommissionProfit/getMyProfitSimpleList`, // 计提明细列表 getMyBizStatInfo: `/emis/emisWaybill/getMyBizStatInfo`, // 业务统计(顶部统计) getMyBizStatList: `/emis/emisWaybill/getMyBizStatList`, // 业务统计明细(区分国家) - + getMasterEmisWaybills: `/emis/emisWaybill/getMasterEmisWaybills`, // 获取关联主单号 + listSimple: `/emis/emisSite/listSimple`, // 获取网点列表 } diff --git a/common/manageServer.js b/common/manageServer.js index d3ff03a..86ee871 100644 --- a/common/manageServer.js +++ b/common/manageServer.js @@ -4,11 +4,11 @@ import { setSessionXToken, getSessionXToken } from "@/session" import { textEncoder, textDecoder } from "./util" import { getCurrentAppInfo } from "@/common/appUpdate" + let _appVersion="1.0.0" // getCurrentAppInfo().then(res=> { // _appVersion = res._appVersion // }) - const getCommonReqData = ()=> { const xToken = getSessionXToken() diff --git a/components/buns-order-templates/bo-detail-tmp.vue b/components/buns-order-templates/bo-detail-tmp.vue index 3521e25..21ad80e 100644 --- a/components/buns-order-templates/bo-detail-tmp.vue +++ b/components/buns-order-templates/bo-detail-tmp.vue @@ -99,6 +99,12 @@ {{ modelInfo.dispatchUnderlingSiteName }} + + + 始发网点 + {{ modelInfo.startSiteName }} + + 目的地 @@ -141,6 +147,16 @@ + + + 是否为虚拟单 + {{ modelInfo.blVirtual==='1'?'是':'否' }} + + + 关联主单 + {{ modelInfo.masterBillCode }} + + 寄件时间 @@ -295,7 +311,7 @@ - {{modelInfo.remark || '-'}} + {{remarkFormat(modelInfo) || '-'}} @@ -395,6 +411,25 @@ }, methods: { + //拼接虚拟单后6位 + conCatVirtualRemark(virtualRemark) { + if (virtualRemark != null) { + return virtualRemark.split(',').map((item) => { + return item.substring(item.length - 6); + }).join(','); + } + }, + //拼接备注 + remarkFormat(modelInfo) { + let remark = modelInfo.remark; + if (modelInfo.blVirtual === '0' && modelInfo.virtualRemark !== '' && modelInfo.virtualRemark !== null && modelInfo.transLine === '002' && modelInfo.sendDate > '2025-06-23 20:00:00') { + if (remark && remark.trim() !== '' && !remark.endsWith(',')) { + remark = remark + ',' + } + remark = `${remark}该运单为主单,对应虚拟单为${this.conCatVirtualRemark(modelInfo.virtualRemark)}`; + } + return remark; + }, async initData(){ if(this.billCode) { let res = await apiService.getOrderDetail({billCode: this.billCode, _loading: true}) diff --git a/pages/post/openorder.vue b/pages/post/openorder.vue index 0c62389..8d50336 100644 --- a/pages/post/openorder.vue +++ b/pages/post/openorder.vue @@ -39,12 +39,19 @@ 路线信息 + + + + +