|
@@ -599,6 +599,7 @@
|
|
|
showApcheckList(item) {
|
|
showApcheckList(item) {
|
|
|
this.isShowApcheckList.show = true
|
|
this.isShowApcheckList.show = true
|
|
|
this.isShowApcheckList.enName = item ? item.myEnterprise.enName : this.isShowApcheckList.enName
|
|
this.isShowApcheckList.enName = item ? item.myEnterprise.enName : this.isShowApcheckList.enName
|
|
|
|
|
+ this.isShowApcheckList.thisMonth = this.outTimeMonth
|
|
|
this.getApcheckDetailsinfo()
|
|
this.getApcheckDetailsinfo()
|
|
|
},
|
|
},
|
|
|
// 未对账详情获取数据
|
|
// 未对账详情获取数据
|
|
@@ -816,16 +817,16 @@
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
if (sameCust && validQty) {
|
|
if (sameCust && validQty) {
|
|
|
- this.isShowApcheckList.list = _list
|
|
|
|
|
- this.saveApCheck(apCheck)
|
|
|
|
|
|
|
+ this.saveApCheck(apCheck, _list)
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
// 对账提交
|
|
// 对账提交
|
|
|
- saveApCheck(apCheck) {
|
|
|
|
|
|
|
+ saveApCheck(apCheck, _list) {
|
|
|
if (apCheck.items.length === 0) {
|
|
if (apCheck.items.length === 0) {
|
|
|
this.setRemindText('请先选择需要对账的数据')
|
|
this.setRemindText('请先选择需要对账的数据')
|
|
|
} else {
|
|
} else {
|
|
|
this.$http.post('/sale/apCheck/operation/save', apCheck).then(res => {
|
|
this.$http.post('/sale/apCheck/operation/save', apCheck).then(res => {
|
|
|
|
|
+ this.isShowApcheckList.list = _list
|
|
|
this.setRemindText('生成应收对账成功')
|
|
this.setRemindText('生成应收对账成功')
|
|
|
this.isShowApcheckList.id = res.data.id
|
|
this.isShowApcheckList.id = res.data.id
|
|
|
this.isShowApcheckList.showApcheck = true
|
|
this.isShowApcheckList.showApcheck = true
|
|
@@ -841,7 +842,7 @@
|
|
|
}
|
|
}
|
|
|
this.ShowApcheckChooseTime = false
|
|
this.ShowApcheckChooseTime = false
|
|
|
}, err => {
|
|
}, err => {
|
|
|
- this.setRemindText('生成对账单失败')
|
|
|
|
|
|
|
+ this.setRemindText(err.response.data || err)
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|