销售出库标志卡数量等部分调整

master
guoshuang 5 months ago
parent df89d52250
commit f9465203cc

@ -142,7 +142,7 @@ export default class LoginPage extends BasePage {
// console.log('Version////', this.Version);
}
///******************
version = '0.0.166'; //
version = '0.0.167'; //
//version = '0.0.14'; //
//*************** false true ****************
//isTest = true;

@ -136,7 +136,7 @@
</view>
<view class="row-list-item">
<view class="list-item"> 数量: </view>
<u-input v-model="item.amount" type="number " border @blur="confirmNumber(item)" />
<u-input v-model="item.amount" type="number " border @blur="confirmNumber(item, index)" />
<!-- <view>{{item.amount}} </view> -->
</view>
</view>
@ -385,6 +385,7 @@ export default class SaleOutWH extends BasePage {
});
model.scandatalist.map((item) => {
item.productCode = item.productCode.slice(item.productCode.search(/[1-9]/));
item.oldamount = item.amount;
if (item.productCode == this.orderNoItemList.productCode) {
this.list.push(item);
this.orderNoItemList.outQuantity += item.amount;
@ -436,12 +437,19 @@ export default class SaleOutWH extends BasePage {
});
return;
}
if (this.orderNoItemList.planQuantity < this.orderNoItemList.outQuantity) {
(this.$refs.uToast as any).show({
title: '出库数量大于计划数量,不能出库',
// url: '/pages/user/index'
});
return;
} else {
//this.list[0].outnumber = this.outnumber;
let wmsFpStorageNewsSns = [];
this.list.map((item) => {
wmsFpStorageNewsSns.push({
storageId: item.storageId,
amount: item.amount,
amount: parseInt(item.amount),
});
});
let item = {
@ -467,6 +475,7 @@ export default class SaleOutWH extends BasePage {
});
}
}
}
async tidan() {
//
// if (this.orderNo == '' || this.orderNo.length == 0) {
@ -498,14 +507,23 @@ export default class SaleOutWH extends BasePage {
}
}
confirmNumber(item) {
confirmNumber(item, index) {
console.log(item);
if (item.oldamount < item.amount) {
(this.$refs.uToast as any).show({
title: '输入数量不允许超过' + item.oldamount,
type: 'error',
});
this.list[index].amount = item.oldamount;
return;
} else {
let addnumber = 0;
this.list.forEach((item) => {
addnumber += parseFloat(item.amount ? item.amount : '0');
});
this.orderNoItemList.outQuantity = this.orderNoItemList.outnumber + addnumber;
}
}
}
</script>
<style lang="scss" scoped>

Loading…
Cancel
Save