|
|
@ -199,7 +199,7 @@ |
|
|
|
closeOnClickOverlay |
|
|
|
@close="show=false" |
|
|
|
@cancel="show=false" |
|
|
|
@confirm="searchStock($event.value[0].id);formData.goodsSpecification=$event.value[0].value;show=false"/> |
|
|
|
@confirm="searchStock($event.value[0].id);formData.goodsSpecification=$event.value[0].value;formData.specificationId=$event.value[0].id;show=false"/> |
|
|
|
|
|
|
|
<d-picker :list="goodsList" ref="dPicker" :value="pickerValue" @select="setGoodsVal"> |
|
|
|
<view slot-scope="{row}" class="purcahse-picker"> |
|
|
@ -220,6 +220,7 @@ export default{ |
|
|
|
dressingUnit:"", |
|
|
|
show:false, |
|
|
|
formData:{ |
|
|
|
goodsId:"", |
|
|
|
goodsName:"", |
|
|
|
goodsSpecification:"", |
|
|
|
num:"", |
|
|
@ -243,7 +244,7 @@ export default{ |
|
|
|
}, |
|
|
|
async onLoad(options){ |
|
|
|
this.eventChannel=this.getOpenerEventChannel() |
|
|
|
this.formData.specificationId=options.id |
|
|
|
this.formData.goodsId=options.id |
|
|
|
await this.searchGoods() |
|
|
|
this.goodsList.forEach(v=>{ |
|
|
|
if(v.id==options.id){ |
|
|
|