From c4e297fb81894644b89bc7c5d470d93db77497ee Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Tue, 26 Nov 2024 13:20:03 +0800 Subject: [PATCH] =?UTF-8?q?YT-1276pda=E6=88=90=E5=93=81=E5=8F=91=E8=B4=A7?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=EF=BC=8C=E5=8F=91=E8=B4=A7=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=B8=8D=E6=AD=A3=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/directory.js | 17 ++++++++++++++++- src/pages/deliver/coms/comDeliverJobCard.vue | 9 +++++++-- src/pages/deliver/job/deliverDetailBatch.vue | 9 ++++++++- 3 files changed, 31 insertions(+), 4 deletions(-) diff --git a/src/common/directory.js b/src/common/directory.js index 1903a950..e21c2b51 100644 --- a/src/common/directory.js +++ b/src/common/directory.js @@ -675,4 +675,19 @@ export function getPriorityName(value) { } return resultInfo } -locationAreaTypeList \ No newline at end of file +//获取优先级 +export function getDeliverMethod(value) { + var resultInfo = ""; + if (priorityList.length == 0) { + priorityList = getDirectoryInfo("deliver_method") + } + if (priorityList.length > 0) { + for (let item of priorityList) { + if (item.value == value) { + resultInfo = item.label + break; + } + } + } + return resultInfo +} \ No newline at end of file diff --git a/src/pages/deliver/coms/comDeliverJobCard.vue b/src/pages/deliver/coms/comDeliverJobCard.vue index 3b948557..6e709aa5 100644 --- a/src/pages/deliver/coms/comDeliverJobCard.vue +++ b/src/pages/deliver/coms/comDeliverJobCard.vue @@ -3,12 +3,15 @@ 发货类型 - {{dataContent.deliverType=='CUST'?'寄售库发货':'三方库发货'}} + {{getDeliverMethodTxt(dataContent.businessType)}} diff --git a/src/pages/deliver/job/deliverDetailBatch.vue b/src/pages/deliver/job/deliverDetailBatch.vue index 8c397885..942c0226 100644 --- a/src/pages/deliver/job/deliverDetailBatch.vue +++ b/src/pages/deliver/job/deliverDetailBatch.vue @@ -9,7 +9,7 @@ 发货类型 - {{jobContent.deliverType}} + {{getDeliverMethodTxt(jobContent.businessType)}} @@ -65,6 +65,10 @@ cancleTakeDeliverJob, deliverJobSubmit } from '@/api/request2.js'; + + import { + getDeliverMethod + } from '@/common/directory.js'; import { @@ -176,6 +180,9 @@ }, methods: { + getDeliverMethodTxt(deliverType){ + return getDeliverMethod(deliverType) + }, //接收 receive(callback) { if (this.id != null) {