Browse Source

修改采购退货

hella_online_20240829
lijuncheng 5 months ago
parent
commit
6505203cc2
  1. 3
      src/mycomponents/detail/comDetailCard.vue
  2. 9
      src/pages/productPutaway/job/productPutawayDetail.vue
  3. 6
      src/pages/purchaseReturn/coms/comReturnJobCard.vue
  4. 5
      src/pages/purchaseReturn/job/returnDetail.vue
  5. 2
      src/pages/purchaseReturn/job/returnJob.vue

3
src/mycomponents/detail/comDetailCard.vue

@ -111,8 +111,7 @@
this.detailOptions = getDetailOption(); this.detailOptions = getDetailOption();
} }
if (this.scanOptions.length == 0) { if (this.scanOptions.length == 0) {
this.scanOptions = getPurchaseReceiptOption(this.settingParam.allowModifyQty, this.settingParam this.scanOptions = getPurchaseReceiptOption(this.settingParam.allowModifyQty, false)
.allowModifyLocation)
} }
}, },

9
src/pages/productPutaway/job/productPutawayDetail.vue

@ -338,9 +338,8 @@
this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】库位【" + result this.showErrorMessage("箱码【" + packingNumber + "】,批次【" + batch + "】库位【" + result
.fromLocationCode + "】已经扫描") .fromLocationCode + "】已经扫描")
} else { } else {
itemDetail.cancleScanedHiht=false; // this.addDetail(itemDetail, result);
this.addDetail(itemDetail, result); // return;
return;
// //
let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus); let itemStatus = getInventoryStatusName(itemDetail.inventoryStatus);
@ -350,11 +349,15 @@
this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus + this.showQuestionMessage('实际库存状态[' + balanceStatus + ']与推荐库存状态[' + itemStatus +
']不一致,是否继续上架?', res => { ']不一致,是否继续上架?', res => {
if (res) { if (res) {
itemDetail.cancleScanedHiht=false;
this.addDetail(itemDetail, result); this.addDetail(itemDetail, result);
} else { } else {
this.scanPopupGetFocus(); this.scanPopupGetFocus();
} }
}); });
}else {
itemDetail.cancleScanedHiht=false;
this.addDetail(itemDetail, result);
} }
// } else { // } else {
// this.addDetail(itemDetail, result); // this.addDetail(itemDetail, result);

6
src/pages/purchaseReturn/coms/comReturnJobCard.vue

@ -1,6 +1,6 @@
<template> <template>
<job-com-main-card :dataContent="dataContent"> <job-com-main-card :dataContent="dataContent">
<jobComMainDetailCard :dataContent="dataContent"></jobComMainDetailCard> <jobComMainDetailCard :dataContent="dataContent" :isShowToLocation="isShowToLocation"></jobComMainDetailCard>
</job-com-main-card> </job-com-main-card>
</template> </template>
@ -21,6 +21,10 @@
type: Object, type: Object,
default: {} default: {}
}, },
isShowToLocation: {
type: Boolean,
default: true
},
}, },
methods: { methods: {

5
src/pages/purchaseReturn/job/returnDetail.vue

@ -258,7 +258,10 @@
itemDetail.handleQty = Number(result.label.qty); itemDetail.handleQty = Number(result.label.qty);
itemDetail.toInventoryStatus = itemDetail.inventoryStatus; itemDetail.toInventoryStatus = itemDetail.inventoryStatus;
itemDetail.balance={
packQty:Number(result.package.packQty),
uom:result.package.uom
}
// itemDetail.balance = result.balance; // itemDetail.balance = result.balance;
// itemDetail.balance.balanceQty = Number(result.balance.qty); // itemDetail.balance.balanceQty = Number(result.balance.qty);
// itemDetail.balance.packQty = Number(result.package.packQty) // itemDetail.balance.packQty = Number(result.package.packQty)

2
src/pages/purchaseReturn/job/returnJob.vue

@ -11,7 +11,7 @@
<uni-swipe-action-item <uni-swipe-action-item
:right-options="item.status=='2'?detailGiveupOptions:detailOptions" :right-options="item.status=='2'?detailGiveupOptions:detailOptions"
@click="swipeClick($event,item)"> @click="swipeClick($event,item)">
<com-return-job-card :dataContent="item" @click='openJobDetail(item)'></com-return-job-card> <com-return-job-card :dataContent="item" @click='openJobDetail(item)' :isShowToLocation="false" ></com-return-job-card>
</uni-swipe-action-item> </uni-swipe-action-item>
</view> </view>
</uni-swipe-action> </uni-swipe-action>

Loading…
Cancel
Save