gjy пре 3 година
родитељ
комит
6cbd1d022f

+ 44 - 7
src/views/statisticalReport/salesClosingCashierList.vue

@@ -217,6 +217,9 @@ import {
   postsalecollectmoney,
   getsaleclosingcontractno
 } from '@/model/statisticalReport/index'
+import {
+  posthandle
+} from '@/model/purchasingManagement/index'
 import { downloadFile } from '@/utils/batchDown'
 import Pagination from '@/components/Pagination'
 import WsUpload from '@/components/WsUpload'
@@ -326,14 +329,14 @@ export default {
             }
         },
         audit(item,index,status){
-      if(index<this.modification.length){
+      if(index<this.multipleSelection.length){
         posthandle({ taskId: item.taskId,
             approved: status,
             auditMind: '34',
             needReapply: false,})
              .toPromise()
           .then((response) => {
-            this.audit(this.modification[index+1],index+1,status)
+            this.audit(this.multipleSelection[index+1],index+1,status)
           }).catch((req) => {
               this.$message.warning(req.message)
             })
@@ -344,7 +347,7 @@ export default {
         }else if(!status){
             postsaleaudit({
             flag: 2,
-            purchaseReceiptReportList: this.modification,
+            purchaseReceiptReportList: this.multipleSelection,
           })
             .toPromise()
             .then((response) => {
@@ -493,7 +496,7 @@ export default {
     },
     handleAudit(status,flag){
       var that=this
-      if(status==1){
+      if(status==0){
         if(this.multipleSelection.length>0){
           this.$confirm(`是否确定通过?`, {
             cancelButtonText: '取消',
@@ -507,19 +510,19 @@ export default {
             // }) .catch(() => {
             //   this.$message.warning('通过失败')
             // })
-            that.audit(this.modification[0],0,true)
+            that.audit(this.multipleSelection[0],0,true)
           })
         }else{
             this.$message.warning('请选择要审核的条目')
         }
-      }else if(status==0){
+      }else if(status==1){
         if(this.multipleSelection.length>0){
           this.$confirm(`是否确定驳回?`, {
             cancelButtonText: '取消',
             confirmButtonText: '确定',
             type: 'warning'
           }).then(() => {
-            that.audit(this.modification[0],0,false)
+            that.audit(this.multipleSelection[0],0,false)
           })
         }else{
             this.$message.warning('请选择要驳回的条目')
@@ -1037,4 +1040,38 @@ hr {
 //   height: 9px;
 //   margin-left: 40px;
 // }
+.swiperUnit{
+	.swiper {
+	  width: 100%;
+	  height: 400rpx;
+	  image {
+		width: 100%;
+		height: 100%;
+		border-radius: 10rpx;
+	  }
+	}
+	.rowDot{
+		display: flex;
+		position: absolute;
+		bottom: 20rpx;
+		left: calc((100% - 144rpx) / 2);
+		.dots{
+			flex-direction: row;
+			justify-content: center;
+			align-items: center;
+			align-content: center;
+			.dot {
+			  margin-right:8rpx;
+			  width: 40rpx;
+			  height: 8rpx;
+			  opacity: 1;
+			  border-radius: 6rpx;
+			  background: #fff5f9;
+			}
+			.dot.active {
+			  background: #ff4e54;
+			} 
+		}
+	}
+}	
 </style>

+ 3 - 0
src/views/statisticalReport/salesDeliveryReportList.vue

@@ -261,6 +261,9 @@ import {
   salesinvoicing,
   salesbatchinvoicing
 } from '@/model/statisticalReport/index'
+import {
+  posthandle
+} from '@/model/purchasingManagement/index'
 import { downloadFile } from '@/utils/batchDown'
 import Pagination from '@/components/Pagination'
 import WsUpload from '@/components/WsUpload'