Commit ec63a091 authored by 吴春's avatar 吴春

1

parent c516ba8a
...@@ -1218,7 +1218,7 @@ export default { ...@@ -1218,7 +1218,7 @@ export default {
}, },
// 制作单据 // 制作单据
makeAdocument(row, index, num, name,Offset) { makeAdocument(row, index, num, name,Offset) {
if((num==2||num==3)&&row.Income<=0){ if((num==2||num==3)&&(row.Income+row.PlatformMoney)<=0){
this.Info('请先制收款单据,再制成本或退款单据!') this.Info('请先制收款单据,再制成本或退款单据!')
return return
} }
......
...@@ -1510,7 +1510,7 @@ ...@@ -1510,7 +1510,7 @@
// 制作单据 // 制作单据
makeAdocument(row, index, num, Offset) { makeAdocument(row, index, num, Offset) {
if ((num == 2 || num == 3) && row.income <= 0) { if ((num == 2 || num == 3) && (row.income+row.PlatformMoney) <= 0) {
this.Info('请先制收款单据,再制成本或退款单据!') this.Info('请先制收款单据,再制成本或退款单据!')
return return
} }
......
...@@ -1424,7 +1424,7 @@ export default { ...@@ -1424,7 +1424,7 @@ export default {
}, },
// 制作单据 // 制作单据
makeAdocument(row, index, num, Offset) { makeAdocument(row, index, num, Offset) {
if((num==2||num==3)&&row.Income<=0){ if((num==2||num==3)&&(row.Income+row.PlatformMoney)<=0){
this.Info('请先制收款单据,再制成本或退款单据!') this.Info('请先制收款单据,再制成本或退款单据!')
return return
} }
......
...@@ -1432,7 +1432,8 @@ ...@@ -1432,7 +1432,8 @@
}, },
// 制作单据 // 制作单据
makeAdocument(row, index, num, Offset) { makeAdocument(row, index, num, Offset) {
if((num==2||num==3)&&row.Income<=0){ console.log("row",row);
if((num==2||num==3)&&(row.Income)<=0){
this.Info('请先制收款单据,再制成本或退款单据!') this.Info('请先制收款单据,再制成本或退款单据!')
return return
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment