Browse Source

修改成品发货申请选择物料组件

wms3.0_pda
lijuncheng 8 months ago
parent
commit
7d4282f0f1
  1. 32
      mycomponents/popup/selectList.vue
  2. 11
      pages/deliver/coms/comDeliverRequestPopup.vue

32
mycomponents/popup/selectList.vue

@ -1,26 +1,30 @@
<template> <template>
<uni-popup ref="popupItems"> <uni-popup ref="popupItems">
<com-popup @onClose="closePopup"> <com-popup @onClose="closePopup">
<view class=""> <view class="uni-center" style="position: relative;height:900rpx ;">
<view class="uni-center" style="font-size: 40rpx;margin-top: 10rpx;margin-bottom: 10rpx;"> <view class="" style="position: absolute;font-size: 38rpx;height: 50rpx; margin-top: 10rpx;margin-bottom: 10rpx;left: 0;top: 0;right: 0;">
选择物料 选择物料
</view> </view>
<u-line/> <u-line/>
<view style="margin: 20rpx;" v-for="(item, index) in showList" :key="index" > <view class="" style="position: absolute;height: 720rpx; font-size: 40rpx;top: 70rpx;bottom: 80rpx;left: 0;right: 0;">
<view class="" style="padding: 10rpx;" @click="selectItem(item)"> <view style="margin: 15rpx;text-align: left;" v-for="(item, index) in showList" :key="index" >
物料: {{item.itemCode}} <view class="" style="padding: 10rpx;font-size: 30rpx; " @click="selectItem(item)">
({{index+1}}) 物料: {{item.itemCode}}
</view>
<u-line/>
</view> </view>
<u-line/>
</view>
</view>
<view class="flex uni-center" style="width: 100%;justify-content: center;margin-top: 10rpx;margin-bottom: 10rpx;" >
<view class="">
当前页{{ pageCurrent }}数据总量{{ total }}每页数据{{ pageSize }}
</view> </view>
<view class="" style="position: absolute; height:80rpx ;left: 0;bottom: 0;right: 0;">
<view class="flex uni-center" style="width: 100%;justify-content: center;margin-top: 10rpx;margin-bottom: 10rpx;" >
<view class="">
当前页{{ pageCurrent }}数据总量{{ total }}每页数据{{ pageSize }}
</view>
</view> </view>
<view class=""> <view class="">
<uni-pagination :page-size="pageSize" :current="pageCurrent" :total="total" @change="change" /> <uni-pagination :page-size="pageSize" :current="pageCurrent" :total="total" @change="change" />
</view>
</view>
</view> </view>

11
pages/deliver/coms/comDeliverRequestPopup.vue

@ -42,7 +42,7 @@
<text>数量 : </text> <text>数量 : </text>
<view class="uni-flex uni-row uni-center" <view class="uni-flex uni-row uni-center"
style="align-items: center;margin-left: 20rpx;"> style="align-items: center;margin-left: 20rpx;">
<input style="text-align: center;" class="qty_input" v-model="qty" type="number" <input style="text-align: center;" class="qty_input" v-model="counQty" type="number"
@confirm="confirm()" :focus="numberFocus" @input="checkNum" :maxlength="maxlength" /> @confirm="confirm()" :focus="numberFocus" @input="checkNum" :maxlength="maxlength" />
<uom :uom="uom"></uom> <uom :uom="uom"></uom>
@ -104,7 +104,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: "",
@ -162,7 +162,7 @@
this.itemCode = ""; this.itemCode = "";
this.uom = "" this.uom = ""
this.qty = 0 this.qty = 0
this.counQty =0; this.counQty =undefined;
this.itemCodeGetFocus(); this.itemCodeGetFocus();
} }
@ -200,6 +200,11 @@
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

Loading…
Cancel
Save