From 65e4aa7cec677ceafeed03cedac93e70b30685a4 Mon Sep 17 00:00:00 2001 From: hou <1601990943@qq.com> Date: Thu, 11 Aug 2022 16:52:43 +0800 Subject: [PATCH] =?UTF-8?q?cosmoim-852=20fix=20=E6=96=B0=E5=A2=9E=20?= =?UTF-8?q?=E5=AE=B9=E5=99=A8=E6=8A=A5=E5=BA=9F=E5=8A=9F=E8=83=BD=E4=BC=98?= =?UTF-8?q?=E5=8C=96&&=E5=8D=8A=E6=88=90=E5=93=81=E4=BA=A4=E6=8E=A5?= =?UTF-8?q?=E5=87=BA=E5=BA=93=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Semi-finished-rowTransfer/config.ts | 6 +++--- .../Semi-finished-rowTransfer/model.ts | 21 +++++++++---------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/src/pages/raw/Semi-finished/Semi-finished-rowTransfer/config.ts b/src/pages/raw/Semi-finished/Semi-finished-rowTransfer/config.ts index 17ff94a..e183ebc 100644 --- a/src/pages/raw/Semi-finished/Semi-finished-rowTransfer/config.ts +++ b/src/pages/raw/Semi-finished/Semi-finished-rowTransfer/config.ts @@ -16,12 +16,12 @@ export const headers = [ { label: vm.$t('message.ModelName'), key: 'materialDesc', //型号名称 - width: 430, + width: 460, }, { label: vm.$t('message.product_barCode'), key: 'barCode', //条码号 - width: 260, + width: 280, }, { label: vm.$t('message.SourceLocation'), @@ -34,6 +34,6 @@ export const headers = [ { label: vm.$t('message.operatingTime'), key: 'moveTime', //操作时间 - width: 465, + width: 475, }, ]; diff --git a/src/pages/raw/Semi-finished/Semi-finished-rowTransfer/model.ts b/src/pages/raw/Semi-finished/Semi-finished-rowTransfer/model.ts index 9e73c52..ea9b882 100644 --- a/src/pages/raw/Semi-finished/Semi-finished-rowTransfer/model.ts +++ b/src/pages/raw/Semi-finished/Semi-finished-rowTransfer/model.ts @@ -3,7 +3,6 @@ import store from '@/store'; import http from '@/utils/request'; import { url } from '@/utils/url'; import { session } from '@/store/modules/session'; -import vm from '@/main'; // import { page } from '@/utils/page'; class OrderInInfo { @@ -65,16 +64,16 @@ export class wholeTransfer extends VuexModule { barcode, }); const code = res.code; - const orderInInfo = res.data.records[0]; - if (orderInInfo.custCode == '0') { - orderInInfo.custCodeName = vm.$t('message.Warehouse_NX') as any; - } else if (orderInInfo.custCode == '1') { - orderInInfo.custCodeName = vm.$t('message.Warehouse_WX') as any; - } else if (orderInInfo.custCode == '2') { - orderInInfo.custCodeName = vm.$t('message.Warehouse_YJ') as any; - } else if (orderInInfo.custCode == '4') { - orderInInfo.custCodeName = vm.$t('message.Warehouse_BCP') as any; - } + const orderInInfo = res.data; + // if (orderInInfo.custCode == '0') { + // orderInInfo.custCodeName = vm.$t('message.Warehouse_NX') as any; + // } else if (orderInInfo.custCode == '1') { + // orderInInfo.custCodeName = vm.$t('message.Warehouse_WX') as any; + // } else if (orderInInfo.custCode == '2') { + // orderInInfo.custCodeName = vm.$t('message.Warehouse_YJ') as any; + // } else if (orderInInfo.custCode == '4') { + // orderInInfo.custCodeName = vm.$t('message.Warehouse_BCP') as any; + // } return { orderInInfo, code }; } //退扫