Browse Source

修改itemQy 数量显示

wms3.0_pda
lijuncheng 10 months ago
parent
commit
fe267477f1
  1. 4
      mycomponents/item/itemQty.vue
  2. 4
      mycomponents/record/recordComDetailCard.vue
  3. 2
      pages/container/coms/comPalletRecord.vue
  4. 4
      pages/count/coms/comCountDetailCard.vue
  5. 2
      pages/customerReturn/coms/comReturnRecord.vue
  6. 7
      pages/customerReturn/request/customerReturnRequestCreate.vue
  7. 2
      pages/inventoryMove/coms/comMoveRecordCard.vue
  8. 2
      pages/productionReturn/coms/comReturnRecord.vue
  9. 12
      pages/productionReturn/coms/comReturnRequestPopup.vue
  10. 2
      pages/unPlanned/coms/comReceiptRecord.vue

4
mycomponents/item/itemQty.vue

@ -6,7 +6,7 @@
<view> <view>
<!-- showBalanceQty --> <!-- showBalanceQty -->
<balanceQty v-if="showItemQty" :dataContent="dataContent"></balanceQty> <balanceQty v-if="isShowBalanceQty" :dataContent="dataContent"></balanceQty>
<compare-qty v-else :dataContent="dataContent" :recommendQty="Number(dataContent.qty)" <compare-qty v-else :dataContent="dataContent" :recommendQty="Number(dataContent.qty)"
:handleQty="dataContent.handleQty" :isShowStatus="false" :isShowStdPack="showStdPack"> :handleQty="dataContent.handleQty" :isShowStatus="false" :isShowStdPack="showStdPack">
</compare-qty> </compare-qty>
@ -45,7 +45,7 @@
type: Number, type: Number,
default: 0 default: 0
}, },
showItemQty: { isShowBalanceQty: {
type: Boolean, type: Boolean,
default: true default: true
}, },

4
mycomponents/record/recordComDetailCard.vue

@ -6,7 +6,7 @@
<uni-swipe-action ref="swipeAction"> <uni-swipe-action ref="swipeAction">
<uni-swipe-action-item @click="removeItem($event,dataContent)" :right-options="removeOptions"> <uni-swipe-action-item @click="removeItem($event,dataContent)" :right-options="removeOptions">
<item-qty :dataContent="dataContent" :handleQty="dataContent.handleQty" <item-qty :dataContent="dataContent" :handleQty="dataContent.handleQty"
:isShowBalance="true" :showBalanceQty="isShowItemQty"></item-qty> :isShowBalance="true" :isShowBalanceQty="isShowBalanceQty"></item-qty>
</uni-swipe-action-item> </uni-swipe-action-item>
</uni-swipe-action> </uni-swipe-action>
</template> </template>
@ -86,7 +86,7 @@
default: true default: true
}, },
isShowItemQty: { isShowBalanceQty: {
type: Boolean, type: Boolean,
default: false default: false
}, },

2
pages/container/coms/comPalletRecord.vue

@ -5,7 +5,7 @@
<template v-slot:title> <template v-slot:title>
<uni-swipe-action ref="swipeAction"> <uni-swipe-action ref="swipeAction">
<uni-swipe-action-item @click="removeData($event,dataContent)" :right-options="removeOptions"> <uni-swipe-action-item @click="removeData($event,dataContent)" :right-options="removeOptions">
<item-qty :dataContent="dataContent" :handleQty="dataContent.handleQty" <item-qty :dataContent="dataContent"
:isShowBalance="true"></item-qty> :isShowBalance="true"></item-qty>
</uni-swipe-action-item> </uni-swipe-action-item>
</uni-swipe-action> </uni-swipe-action>

4
pages/count/coms/comCountDetailCard.vue

@ -6,10 +6,10 @@
<uni-swipe-action ref="swipeAction"> <uni-swipe-action ref="swipeAction">
<uni-swipe-action-item @click="removeData($event,dataContent)" :right-options="removeOptions"> <uni-swipe-action-item @click="removeData($event,dataContent)" :right-options="removeOptions">
<item-qty v-if="settingParam.isOpenCount=='TRUE'" :dataContent="dataContent" <item-qty v-if="settingParam.isOpenCount=='TRUE'" :dataContent="dataContent"
:handleQty="dataContent.handleQty" :showBalanceQty="true"> :handleQty="dataContent.handleQty" :isShowBalanceQty="true">
</item-qty> </item-qty>
<item-qty v-else :dataContent="dataContent" :handleQty="dataContent.handleQty" <item-qty v-else :dataContent="dataContent" :handleQty="dataContent.handleQty"
:showBalanceQty="false" :showRecommendQty="false" :showStdPack="true"> :isShowBalanceQty="false" :showRecommendQty="false" :showStdPack="true">
</item-qty> </item-qty>
</uni-swipe-action-item> </uni-swipe-action-item>
</uni-swipe-action> </uni-swipe-action>

2
pages/customerReturn/coms/comReturnRecord.vue

@ -5,7 +5,7 @@
<template v-slot:title> <template v-slot:title>
<uni-swipe-action ref="swipeAction"> <uni-swipe-action ref="swipeAction">
<uni-swipe-action-item @click="removeData($event,dataContent)" :right-options="removeOptions"> <uni-swipe-action-item @click="removeData($event,dataContent)" :right-options="removeOptions">
<item-qty :dataContent="dataContent" :handleQty="dataContent.handleQty" <item-qty :dataContent="dataContent"
:isShowBalance="true"></item-qty> :isShowBalance="true"></item-qty>
</uni-swipe-action-item> </uni-swipe-action-item>
</uni-swipe-action> </uni-swipe-action>

7
pages/customerReturn/request/customerReturnRequestCreate.vue

@ -4,10 +4,10 @@
<com-blank-view @goScan='getLocation' v-if="detailSource.length==0"></com-blank-view> <com-blank-view @goScan='getLocation' v-if="detailSource.length==0"></com-blank-view>
</view> </view>
<view class="page-wraper" v-if="detailSource.length>0"> <view class="page-wraper" v-if="detailSource.length>0">
<view class="uni-flex uni-row padding title u-col-center" @click="showSelect"> <view class="uni-flex uni-row padding title u-col-center" @click="showSelect" style="font-size: 35rpx;">
<text>客户 : </text> <text style="font-size: 32rpx;">客户 : </text>
<view class="uni-flex u-col-center uni-row" @click="showSelect"> <view class="uni-flex u-col-center uni-row" @click="showSelect">
<view class="" style="margin-left: 20rpx;"> <view class="" style="margin-left: 20rpx;font-size: 32rpx;">
{{customerName}} {{customerName}}
</view> </view>
<u-select v-model="showCustomer" mode="single-column" :list="customerList" @confirm="confirmSelect"> <u-select v-model="showCustomer" mode="single-column" :list="customerList" @confirm="confirmSelect">
@ -22,6 +22,7 @@
<view class="detail-list" v-for="(item, index) in detailSource" :key="item.id"> <view class="detail-list" v-for="(item, index) in detailSource" :key="item.id">
<view class=""> <view class="">
<record-com-detail-card :dataContent="item" :index="index" :isShowLocation="true" <record-com-detail-card :dataContent="item" :index="index" :isShowLocation="true"
:isShowBalanceQty ="false"
:isShowToLocation="false" @removeItem="removeItem(index,item)" @updateData="updateData" :isShowToLocation="false" @removeItem="removeItem(index,item)" @updateData="updateData"
@removePack="removePack"> @removePack="removePack">
</record-com-detail-card> </record-com-detail-card>

2
pages/inventoryMove/coms/comMoveRecordCard.vue

@ -6,7 +6,7 @@
<uni-swipe-action ref="swipeAction"> <uni-swipe-action ref="swipeAction">
<uni-swipe-action-item @click="removeData($event,dataContent)" :right-options="removeOptions"> <uni-swipe-action-item @click="removeData($event,dataContent)" :right-options="removeOptions">
<item-qty :dataContent="dataContent" <item-qty :dataContent="dataContent"
:showBalanceQty="false" :isShowBalanceQty="false"
:isShowBalance="true"></item-qty> :isShowBalance="true"></item-qty>
</uni-swipe-action-item> </uni-swipe-action-item>
</uni-swipe-action> </uni-swipe-action>

2
pages/productionReturn/coms/comReturnRecord.vue

@ -5,7 +5,7 @@
<template v-slot:title> <template v-slot:title>
<uni-swipe-action ref="swipeAction"> <uni-swipe-action ref="swipeAction">
<uni-swipe-action-item @click="removeData($event,dataContent)" :right-options="removeOptions"> <uni-swipe-action-item @click="removeData($event,dataContent)" :right-options="removeOptions">
<item-qty :dataContent="dataContent" :showBalanceQty="false" :isShowBalance="true"></item-qty> <item-qty :dataContent="dataContent" :isShowBalanceQty="false" :isShowBalance="true"></item-qty>
</uni-swipe-action-item> </uni-swipe-action-item>
</uni-swipe-action> </uni-swipe-action>

12
pages/productionReturn/coms/comReturnRequestPopup.vue

@ -117,7 +117,7 @@
requestInfo: null, requestInfo: null,
itemCodeList: [], itemCodeList: [],
isCheckItemCode: false, isCheckItemCode: false,
counQty: 0, counQty: undefined,
editPosition: true, editPosition: true,
numberFocus: false, numberFocus: false,
uom: "", uom: "",
@ -230,7 +230,9 @@
} else { } else {
this.itemCode = ""; this.itemCode = "";
this.uom = "" this.uom = ""
this.qty = 0 this.qty = 0;
this.counQty = undefined
this.numberFocus = false
this.itemCodeGetFocus(); this.itemCodeGetFocus();
} }
@ -263,6 +265,12 @@
this.showErrorMessage("请输入物料", "itemCode") this.showErrorMessage("请输入物料", "itemCode")
return return
} }
if (this.counQty == undefined) {
this.showErrorMessage("请输入数量")
return
}
if (this.qty == 0) { if (this.qty == 0) {
this.showErrorMessage("数量必须大于0") this.showErrorMessage("数量必须大于0")
return return

2
pages/unPlanned/coms/comReceiptRecord.vue

@ -5,7 +5,7 @@
<template v-slot:title> <template v-slot:title>
<uni-swipe-action ref="swipeAction"> <uni-swipe-action ref="swipeAction">
<uni-swipe-action-item @click="removeData($event,dataContent)" :right-options="removeOptions"> <uni-swipe-action-item @click="removeData($event,dataContent)" :right-options="removeOptions">
<item-qty :dataContent="dataContent" :showBalanceQty="false" <item-qty :dataContent="dataContent" :isShowBalanceQty="false"
:isShowBalance="true"></item-qty> :isShowBalance="true"></item-qty>
</uni-swipe-action-item> </uni-swipe-action-item>
</uni-swipe-action> </uni-swipe-action>

Loading…
Cancel
Save