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 }; } /** * 查询条码号