From 137da309c3cc28e276b1b4132342c3da81657441 Mon Sep 17 00:00:00 2001 From: guoshuang Date: Wed, 9 Feb 2022 17:58:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=90=E5=93=81=E4=B8=8B=E7=BA=BF=E5=85=A5?= =?UTF-8?q?=E5=BA=93=E5=88=9D=E5=A7=8B=E5=8C=96=E5=BA=93=E4=BD=8D=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/product/inbound/finishProductOffline/index.vue | 2 +- src/pages/product/inbound/finishProductOffline/model.ts | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/pages/product/inbound/finishProductOffline/index.vue b/src/pages/product/inbound/finishProductOffline/index.vue index 71b7072..cf38853 100644 --- a/src/pages/product/inbound/finishProductOffline/index.vue +++ b/src/pages/product/inbound/finishProductOffline/index.vue @@ -143,7 +143,7 @@ export default class finishProductOfflineDom extends BasePage { onReady() { this.$form.setRules(this.rules); model.queryReturningTypeList(); - this.form.aimWl.value = this.model.returningTypeList[0].value; + this.form.aimWl = model.firstLocation; } /** * 处理选择行 选中一条执行一次 diff --git a/src/pages/product/inbound/finishProductOffline/model.ts b/src/pages/product/inbound/finishProductOffline/model.ts index 6a5b9e0..1a79079 100644 --- a/src/pages/product/inbound/finishProductOffline/model.ts +++ b/src/pages/product/inbound/finishProductOffline/model.ts @@ -28,6 +28,7 @@ export class PickingModule extends VuexModule { * 库位列表 */ returningTypeList: any[] = []; + firstLocation: any = {}; /** * 物料列表 */ @@ -57,7 +58,11 @@ export class PickingModule extends VuexModule { label: item.locationCode, value: item.locationCode + '(' + item.sendSpot + ')', })); - return { returningTypeList }; + const firstLocation = returningTypeList[0]; + // const firstLocation = data.data[0]; + // firstLocation.label = firstLocation.locationCode; + // firstLocation.value = firstLocation.locationCode + '(' + firstLocation.sendSpot + ')'; + return { returningTypeList, firstLocation }; } /** * 查询条码号