|
@@ -972,8 +972,8 @@ export default {
|
|
|
this.$refs.deliverForm.validate((valid) => {
|
|
|
if (valid) {
|
|
|
for(let i=0; i<this.goodsList.length; i++) {
|
|
|
- console.log(this.goodsList[i].adjustNum , this.goodsList[i].isDirectTransfer);
|
|
|
- if(this.goodsList[i].isDirectTransfer && Number(this.goodsList[i].adjustNum)<0) {
|
|
|
+ console.log(this.goodsList[i].adjustNum == '' , this.goodsList[i].isDirectTransfer);
|
|
|
+ if(this.goodsList[i].isDirectTransfer && (this.goodsList[i].adjustNum == '' || Number(this.goodsList[i].adjustNum)<0)) {
|
|
|
this.$errorMsg('请输入直调数量');
|
|
|
return;
|
|
|
}
|