浏览代码

关联收款单

liujun 2 年之前
父节点
当前提交
b882d5604a
共有 1 个文件被更改,包括 8 次插入4 次删除
  1. 8 4
      src/views/salesManagement/salesCollection/voucherModal.vue

+ 8 - 4
src/views/salesManagement/salesCollection/voucherModal.vue

@@ -197,9 +197,9 @@ export default {
     },
     //关联收款单
     handleAssociated(){
-      let snList,bookSnList=[];
-      snList.push(data.accountReceiptSn)
-      bookSnList.push(data.bookSn)
+      let snList=[],bookSnList=[];
+      snList.push(this.detail.accountReceiptSn)
+      bookSnList.push(this.detail.bookSn)
       let ajax_data={
         snList:snList,
         bookSnList:bookSnList
@@ -207,7 +207,11 @@ export default {
       this.associatedLoading = true
       settleReceiptBookBatch(ajax_data).then(res => {
         if (res.status == 200) {
-         this.handleCommonCancel();
+        this.$message.success(res.message)
+        setTimeout(()=>{
+          this.handleCommonCancel();
+        },800)
+         
         }
         this.associatedLoading = false
       })