Browse Source

不可以输入负数

hella_online_20240829
lijuncheng 5 months ago
parent
commit
bce4898c20
  1. 20
      src/mycomponents/qty/balanceQtyEdit.vue
  2. 5
      src/pages/purchaseReceipt/job/receiptDetail.vue

20
src/mycomponents/qty/balanceQtyEdit.vue

@ -178,18 +178,20 @@
}, },
setValue() { setValue() {
var balanceQty = Number(this.dataContent.balanceQty); var balanceQty = Number(this.dataContent.balanceQty);
if (this.allQty == 0) { if(this.allQty<0){
this.$refs.comMessage.showConfirmWarningModal('数量必须大于0', this.$refs.comMessage.showConfirmWarningModal('数量必须大于等于0',
res => { res => {
this.allQty = balanceQty; this.allQty = balanceQty;
}) })
} else if (this.allQty > balanceQty) { }else {
this.$refs.comMessage.showConfirmWarningModal('数量[' + this.allQty + ']不允许大于库存数量[' + balanceQty + ']', if (this.allQty > balanceQty) {
res => { this.$refs.comMessage.showConfirmWarningModal('数量[' + this.allQty + ']不允许大于库存数量[' + balanceQty + ']',
this.allQty = balanceQty; res => {
}) this.allQty = balanceQty;
} else { })
this.callback(); } else {
this.callback();
}
} }
}, },
callback() { callback() {

5
src/pages/purchaseReceipt/job/receiptDetail.vue

@ -515,10 +515,7 @@
const timer1 = setInterval(async () => { const timer1 = setInterval(async () => {
if (timerCount == 15) { if (timerCount == 15) {
clearInterval(timer1) clearInterval(timer1)
uni.showToast({ this.showErrorMessage("上架任务生成异常,请到收货记录里重新生成上架申请")
title: "跳转打印页面失败",
icon: "none"
});
return; return;
} }
await getPutawayJobList({ await getPutawayJobList({

Loading…
Cancel
Save