diff --git a/src/pages/product/outbound/stoOutbound/DN-delivergoods.vue b/src/pages/product/outbound/stoOutbound/DN-delivergoods.vue index e5f1521..5fa171e 100644 --- a/src/pages/product/outbound/stoOutbound/DN-delivergoods.vue +++ b/src/pages/product/outbound/stoOutbound/DN-delivergoods.vue @@ -208,7 +208,7 @@ export default class stoOutboundDom extends BasePage { // } // }); this.model.materielList.forEach((item: any) => { - if (v[0].label == item.rowItem) { + if (v[0].value == item.rowItem) { console.log('item', item); this.form.productCode = item.materialCode; this.form.productDescZh = item.materialDesc; @@ -386,7 +386,9 @@ export default class stoOutboundDom extends BasePage { this.form.orderAmount = ''; this.form.productDescZh = ''; this.selectMaterielList = []; - (this.form.rowItem = ''), this.$table.onEmpty(); + this.form.rowItem = ''; + //this.$table.onEmpty(); + //debugger; this.query(); } // } diff --git a/src/pages/product/outbound/stoOutbound/model.ts b/src/pages/product/outbound/stoOutbound/model.ts index 0f570a9..4db4670 100644 --- a/src/pages/product/outbound/stoOutbound/model.ts +++ b/src/pages/product/outbound/stoOutbound/model.ts @@ -101,8 +101,8 @@ export class ReturningModule extends VuexModule { stoAmount += item.orderAmount; }); const materielList = result.data.map((item: any) => ({ - label: item.rowItem, - value: item.rowItem + '(' + item.materialCode + ')', + value: item.rowItem, + label: item.rowItem + '(' + item.materialCode + ')', ...item, })); console.log('materielList', materielList);