Browse Source

发料 可以修改发料数量, 直接发料点击取消修改关闭状态

dev_pda
李俊城 2 years ago
parent
commit
db8be367bf
  1. 1
      fe/PDA/mycomponents/common/comMessage.vue
  2. 3
      fe/PDA/mycomponents/common/comNumberBox.vue
  3. 2
      fe/PDA/pages/index/index.vue
  4. 27
      fe/PDA/pages/task/issue_detail.vue

1
fe/PDA/mycomponents/common/comMessage.vue

@ -103,6 +103,7 @@
},
closeMessage() {
this.confirmResult = false;
clearInterval(this.timer) //timer
this.$refs['popupMessage'].close();
this.afterClose();

3
fe/PDA/mycomponents/common/comNumberBox.vue

@ -138,6 +138,9 @@
},
_onFocus(event) {
this.$emit('focus', event)
},
setValue(value){
this.inputValue =value;
}
}
};

2
fe/PDA/pages/index/index.vue

@ -299,7 +299,7 @@
that.timer = setInterval(async function() {
await that.refreshJobMenu(that.userMenus);
console.log('刷新菜单');
}, 3000)
}, 60000)
},
// test() {

27
fe/PDA/pages/task/issue_detail.vue

@ -35,9 +35,13 @@
<text class="text_black">{{item.recommendQty}}({{item.uom}})</text>
</uni-th>
<uni-th width="120" align="center">
<view v-if="item.scaned">
<view v-if="item.scaned" style="display: flex;flex-direction: row;justify-content:center;align-items: center;">
<com-number-box :ref="'comNumberBox_'+index" v-model="item.handledQty" :max="99999" :min="0"
style='width: 100px;' @change="qtyChanged($event,item,index)">
</com-number-box>
<text
class="text_black">{{item.handledQty}}({{item.uom}})</text>
class="text_black" >({{item.uom}})</text>
</view>
</uni-th>
</uni-tr>
@ -118,6 +122,7 @@
import comBalance from '@/mycomponents/common/comBalance.vue'
import comJobScanDetail from '@/mycomponents/comjob/comJobScanDetail.vue'
import winScanByPack from '@/mycomponents/wincom/winScanByPack.vue'
import comNumberBox from '@/mycomponents/common/comNumberBox.vue';
export default {
components: {
@ -126,7 +131,8 @@
winMulitScan,
comBalance,
comJobScanDetail,
winScanByPack
winScanByPack,
comNumberBox
},
data() {
return {
@ -413,9 +419,9 @@
item.handledPackingCode = balanceItem.packingCode;
item.handledBatch = balanceItem.batch;
item.handledLot = balanceItem.lot;
item.defaultHandleQty =balanceItem.qty;
item.handledQty = balanceItem.qty;
item.handledFromLocationCode = balanceItem.locationCode;
item.handledFromLocationArea = balanceItem.locationArea;
item.handledFromLocationGroup = balanceItem.locationErpCode;
@ -628,6 +634,17 @@
// console.log(e)
this.old.scrollTop = e.detail.scrollTop;
},
qtyChanged(value, item,index) {
if (value <= 0) {
this.showMessage('发料数量不能小于或等于0')
item.handledQty =item.defaultHandleQty
this.$refs['comNumberBox_'+index][0].setValue(item.handledQty);
}else if(value>item.defaultHandleQty){
item.handledQty = item.defaultHandleQty
this.showMessage('发料数量不能大于库存数量:'+item.handledQty)
this.$refs['comNumberBox_'+index][0].setValue(item.handledQty);
}
},
}
}
</script>

Loading…
Cancel
Save