Browse Source

修改采购收货显示对比数量

wms3.0_pda
lijuncheng 1 year ago
parent
commit
62803a74f6
  1. 4
      api/request2.js
  2. 4
      common/detail.js
  3. 1
      mycomponents/qty/RecommendQty.vue
  4. 1
      mycomponents/qty/stdPackQty.vue
  5. 6
      pages/purchaseReceipt/coms/comReceiptDetailCard.vue
  6. 2
      pages/putaway/record/putawayRecord.vue

4
api/request2.js

@ -2014,8 +2014,8 @@ export function getPutawayRequestDetail(id) {
*/
export function putawayRequestSubmit(params) {
return request({
url: baseApi + "/wms/purchasereturn-request-main/submit",
method: "put",
url: baseApi + "/putaway-request-main/create",
method: "post",
data: params,
});
}

4
common/detail.js

@ -55,10 +55,10 @@ export function createRecordInfo(detail, balance) {
//计算实际数量
export function calcHandleQty(detailSource) {
for (let item of detailSource) {
item.handleTotalQty = 0;
item.handleQty = 0;
for (let detail of item.subList) {
if (detail != undefined && detail.scaned) {
item.handleTotalQty += Number(detail.handleQty)
item.handleQty += Number(detail.handleQty)
}
}
}

1
mycomponents/qty/RecommendQty.vue

@ -1,5 +1,6 @@
<template>
<view>
推荐
<view class="uni-flex uni-row center">
<status v-if="isShowStatus" :status='dataContent.inventoryStatus'></status>
<view class="text_recommend ">

1
mycomponents/qty/stdPackQty.vue

@ -26,7 +26,6 @@
methods: {
getStdPackUnit(stdPackUnit) {
let std = getUnitInfo(stdPackUnit);
console.log("单位",std.label)
return std == "" ? stdPackUnit : std.label;
}
}

6
pages/purchaseReceipt/coms/comReceiptDetailCard.vue

@ -3,7 +3,7 @@
<uni-collapse ref="collapse1" @change="">
<uni-collapse-item :open="true">
<template v-slot:title>
<item-qty :dataContent="dataContent" :handleQty="dataContent.handleQty"></item-qty>
<itemCompareQty :dataContent="dataContent" :handleQty="dataContent.handleQty"></itemCompareQty>
</template>
<u-line />
<view class="" v-for="(item,index) in dataContent.subList">
@ -29,7 +29,7 @@
</template>
<script>
import itemQty from '@/mycomponents/item/itemQty.vue'
import itemCompareQty from '@/mycomponents/item/itemCompareQty.vue'
import recommend from '@/mycomponents/recommend/recommend.vue'
import recommendQtyEdit from '@/mycomponents/qty/recommendQtyEdit.vue'
import jobDetailPopup from '@/mycomponents/detail/jobDetailPopup.vue'
@ -44,7 +44,7 @@
export default {
components: {
itemQty,
itemCompareQty,
recommend,
recommendQtyEdit,
jobDetailPopup,

2
pages/putaway/record/putawayRecord.vue

@ -101,11 +101,9 @@
jobContent: {}, //
detailSource: [], //
locationTypeList: [],
toLocationInfo: {},
businessTypeInfo: {},
fromLocationInfo: {},
fromLocationCode: "",
toLocationInfo: {},
toLocationCode: "",
isShowLocation: false,
fromlocationTypeList: [],

Loading…
Cancel
Save