Browse Source

YT-683WMS05.线边退料需求及变更

intex
zhang_li 2 weeks ago
parent
commit
43d7444ffe
  1. 2
      src/mycomponents/job/jobComMainDetailCard.vue
  2. 1
      src/mycomponents/qty/recommendHandleQty.vue
  3. 13
      src/pages/productionReturn/job/okToReturnDetail.vue

2
src/mycomponents/job/jobComMainDetailCard.vue

@ -10,7 +10,7 @@
<div class="u-p-l-10"> <div class="u-p-l-10">
<pack v-if="isShowPack && dataContent.packingNumber!=null" :packingCode="dataContent.packingNumber"> <pack v-if="isShowPack && dataContent.packingNumber!=null" :packingCode="dataContent.packingNumber">
</pack> </pack>
<batch v-if="isShowBatch && dataContent.batch!=null" :batch="dataContent.batch"></batch> <batch v-if="isShowBatch && dataContent.batch" :batch="dataContent.batch"></batch>
<view class="u-flex u-row-between"> <view class="u-flex u-row-between">
<location v-if="isShowFromLocation&&dataContent.fromLocationCode" title="来源库位" :locationCode="dataContent.fromLocationCode"> <location v-if="isShowFromLocation&&dataContent.fromLocationCode" title="来源库位" :locationCode="dataContent.fromLocationCode">
</location> </location>

1
src/mycomponents/qty/recommendHandleQty.vue

@ -9,6 +9,7 @@
<view class="text_recommend "> <view class="text_recommend ">
{{Number(dataContent.qty)}} {{Number(dataContent.qty)}}
</view> </view>
<uom :uom="dataContent.uom"></uom>
</view> </view>
<view> <view>

13
src/pages/productionReturn/job/okToReturnDetail.vue

@ -206,8 +206,8 @@
await getManagementPrecisions(itemCodes, that.fromLocationCode, res => { await getManagementPrecisions(itemCodes, that.fromLocationCode, res => {
if (res.success) { if (res.success) {
this.managementList = res.list; this.managementList = res.list;
this.managementType = this.managementList.some(item => item.ManagementPrecision == this.managementType = this.managementList&&this.managementList[0]&&this.managementList[0].ManagementPrecision
'BY_BATCH') ? 'BY_BATCH' : '' this.managementType = 'BY_QUANTITY'
if(this.managementType == 'BY_BATCH'){ if(this.managementType == 'BY_BATCH'){
that.detailSource.forEach(item=>{ that.detailSource.forEach(item=>{
item.subList.forEach(cur=>{ item.subList.forEach(cur=>{
@ -216,6 +216,15 @@
cur.fromPackingNumber='' cur.fromPackingNumber=''
}) })
}) })
}else if(this.managementType == 'BY_QUANTITY'){
that.detailSource.forEach(item=>{
item.subList.forEach(cur=>{
cur.packingNumber=''
cur.toPackingNumber=''
cur.fromPackingNumber=''
cur.batch=''
})
})
} }
} }
}) })

Loading…
Cancel
Save