Browse Source

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

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

14
mycomponents/popup/selectList.vue

@ -1,18 +1,20 @@
<template>
<uni-popup ref="popupItems">
<com-popup @onClose="closePopup">
<view class="">
<view class="uni-center" style="font-size: 40rpx;margin-top: 10rpx;margin-bottom: 10rpx;">
<view class="uni-center" style="position: relative;height:900rpx ;">
<view class="" style="position: absolute;font-size: 38rpx;height: 50rpx; margin-top: 10rpx;margin-bottom: 10rpx;left: 0;top: 0;right: 0;">
选择物料
</view>
<u-line/>
<view style="margin: 20rpx;" v-for="(item, index) in showList" :key="index" >
<view class="" style="padding: 10rpx;" @click="selectItem(item)">
物料: {{item.itemCode}}
<view class="" style="position: absolute;height: 720rpx; font-size: 40rpx;top: 70rpx;bottom: 80rpx;left: 0;right: 0;">
<view style="margin: 15rpx;text-align: left;" v-for="(item, index) in showList" :key="index" >
<view class="" style="padding: 10rpx;font-size: 30rpx; " @click="selectItem(item)">
({{index+1}}) 物料: {{item.itemCode}}
</view>
<u-line/>
</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 }}
@ -22,6 +24,8 @@
<view class="">
<uni-pagination :page-size="pageSize" :current="pageCurrent" :total="total" @change="change" />
</view>
</view>
</view>
</com-popup>

11
pages/deliver/coms/comDeliverRequestPopup.vue

@ -42,7 +42,7 @@
<text>数量 : </text>
<view class="uni-flex uni-row uni-center"
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" />
<uom :uom="uom"></uom>
@ -104,7 +104,7 @@
requestInfo: null,
itemCodeList: [],
isCheckItemCode: false,
counQty: 0,
counQty: undefined,
editPosition: true,
numberFocus: false,
uom: "",
@ -162,7 +162,7 @@
this.itemCode = "";
this.uom = ""
this.qty = 0
this.counQty =0;
this.counQty =undefined;
this.itemCodeGetFocus();
}
@ -200,6 +200,11 @@
this.showErrorMessage("请输入物料", "itemCode")
return
}
if (this.counQty == undefined) {
this.showErrorMessage("请输入数量")
return
}
if (this.qty == 0) {
this.showErrorMessage("数量必须大于0")
return

Loading…
Cancel
Save