Browse Source

前端gjy

gjy 3 years ago
parent
commit
653dd0eb81

+ 4 - 0
src/views/statisticalReport/purchaseReceiptStatisticsList.vue

@@ -644,6 +644,9 @@ export default {
         this.warehouseList.records[0].purchaseReceiptReportList
         this.warehouseList.records[0].purchaseReceiptReportList
       this.amountEdPayable = this.warehouseList.records[0].amountEdPayable
       this.amountEdPayable = this.warehouseList.records[0].amountEdPayable
       this.paymentDate = this.paymentDate
       this.paymentDate = this.paymentDate
+      if (this.modification.length == 0) {
+        this.$message.warning('请选择一条要付款的条目')
+      } else {
       for (var i = 0; i < this.modification.length; i++) {
       for (var i = 0; i < this.modification.length; i++) {
         if(this.modification[i].status!='已通过'){
         if(this.modification[i].status!='已通过'){
           this.$message.warning('审核尚未通过,不可进行付款操作')
           this.$message.warning('审核尚未通过,不可进行付款操作')
@@ -651,6 +654,7 @@ export default {
         this.amountNotPayable += this.modification[i].amountNotPayable
         this.amountNotPayable += this.modification[i].amountNotPayable
       }
       }
       this.dialogFormVisible1 = true
       this.dialogFormVisible1 = true
+      }
     },
     },
     submitMoney() {
     submitMoney() {
       this.purchaseReceiptReport.money = this.money
       this.purchaseReceiptReport.money = this.money

+ 2 - 2
src/views/statisticalReport/salesClosingCashierList.vue

@@ -493,7 +493,7 @@ export default {
     },
     },
     handleAudit(status,flag){
     handleAudit(status,flag){
       var that=this
       var that=this
-      if(status==0){
+      if(status==1){
         if(this.multipleSelection.length>0){
         if(this.multipleSelection.length>0){
           this.$confirm(`是否确定通过?`, {
           this.$confirm(`是否确定通过?`, {
             cancelButtonText: '取消',
             cancelButtonText: '取消',
@@ -512,7 +512,7 @@ export default {
         }else{
         }else{
             this.$message.warning('请选择要审核的条目')
             this.$message.warning('请选择要审核的条目')
         }
         }
-      }else if(status==1){
+      }else if(status==0){
         if(this.multipleSelection.length>0){
         if(this.multipleSelection.length>0){
           this.$confirm(`是否确定驳回?`, {
           this.$confirm(`是否确定驳回?`, {
             cancelButtonText: '取消',
             cancelButtonText: '取消',