|
|
@@ -227,8 +227,8 @@
|
|
|
<div class="fr bbgoresult" @click="goTopayfor" v-show="!isShowApcheckList.showApcheck">对账</div>
|
|
|
<div class="fr" style="margin-right: 0.2rem" v-show="!isShowApcheckList.showApcheck">合计:<a style="color: #001408;">{{allMoney | priceFilter}}</a></div>
|
|
|
<div class="fl" style="margin-left: 0.2rem" v-show="isShowApcheckList.showApcheck">合计:<a style="color: #001408;">{{allMoney | priceFilter}}</a></div>
|
|
|
- <div class="fr bbgoresult" v-show="isShowApcheckList.showApcheck" @click="submitCheck">提交</div>
|
|
|
- <div class="fr bbgoresult cancel" v-show="isShowApcheckList.showApcheck" @click="deleteCheck">取消</div>
|
|
|
+ <!--<div class="fr bbgoresult" v-show="isShowApcheckList.showApcheck" @click="submitCheck">提交</div>-->
|
|
|
+ <!--<div class="fr bbgoresult cancel" v-show="isShowApcheckList.showApcheck" @click="deleteCheck">取消</div>-->
|
|
|
</div>
|
|
|
</modal-wrapper>
|
|
|
<modal-wrapper :title="'新增对账单'" :showModal="showModal" @closeAction="showModal = false">
|
|
|
@@ -497,7 +497,8 @@
|
|
|
this.isShowApcheckList.thisMonth = this.$value
|
|
|
this.ShowApcheckChooseTime = false
|
|
|
this.$refs.baseFilter[0].setSelect(1)
|
|
|
- this.showApcheckList()
|
|
|
+ this.isShowApcheckList.show = true
|
|
|
+ this.getApcheckDetailsinfo()
|
|
|
}
|
|
|
},
|
|
|
// 立即对账
|
|
|
@@ -652,7 +653,7 @@
|
|
|
}
|
|
|
},
|
|
|
// 对账按钮
|
|
|
- goTopayfor() {
|
|
|
+ goTopayfor() {
|
|
|
let apCheck = {
|
|
|
custUu: '',
|
|
|
custName: '',
|
|
|
@@ -769,15 +770,14 @@
|
|
|
// 获取筛选的截止时间为对账的截止时间
|
|
|
apCheck.endDate = _end.getTime()
|
|
|
} else {
|
|
|
- this.isShowApcheckList.startTime = this.outTimeMonth + '-01'
|
|
|
+ this.isShowApcheckList.startTime = this.isShowApcheckList.thisMonth + '-01'
|
|
|
let _d = new Date(this.isShowApcheckList.startTime)
|
|
|
- let _start = _d
|
|
|
_d.setDate(1)
|
|
|
_d.setMonth(_d.getMonth() + 1)
|
|
|
_d.setDate(_d.getDate() - 1)
|
|
|
|
|
|
// 获取筛选时间的开始时间为对账的开始时间
|
|
|
- apCheck.beginDate = _start.getTime()
|
|
|
+ apCheck.beginDate = new Date(this.isShowApcheckList.startTime).getTime()
|
|
|
// 获取筛选的截止时间为对账的截止时间
|
|
|
apCheck.endDate = _d.getTime()
|
|
|
}
|
|
|
@@ -836,7 +836,7 @@
|
|
|
this.isShowApcheckList.startTime = _start.getFullYear() + '-' + (_start.getMonth() + 1) + '-' + _start.getDate()
|
|
|
this.isShowApcheckList.endTime = _end.getFullYear() + '-' + (_end.getMonth() + 1) + '-' + _end.getDate()
|
|
|
} else {
|
|
|
- this.isShowApcheckList.startTime = this.outTimeMonth + '-01'
|
|
|
+ this.isShowApcheckList.startTime = this.isShowApcheckList.thisMonth + '-01'
|
|
|
let _d = this.computedTime(this.isShowApcheckList.startTime)
|
|
|
this.isShowApcheckList.endTime = _d.getFullYear() + '-' + (_d.getMonth() + 1) + '-' + _d.getDate()
|
|
|
}
|
|
|
@@ -857,33 +857,33 @@
|
|
|
},
|
|
|
// 删除对账单
|
|
|
deleteCheck() {
|
|
|
- if (this.isShowApcheckList.id === '') {
|
|
|
- this.isShowApcheckList.showApcheck = false
|
|
|
- this.isShowApcheckList.show = false
|
|
|
- this.isShowApcheckList.id = ''
|
|
|
- return
|
|
|
- }
|
|
|
- this.$http.post('/sale/apCheck/operation/deleteApCheck?id=' + this.isShowApcheckList.id, {}).then(res => {
|
|
|
- this.isShowApcheckList.showApcheck = false
|
|
|
- this.isShowApcheckList.show = false
|
|
|
- this.isShowApcheckList.id = ''
|
|
|
-
|
|
|
- let sourceInfos = []
|
|
|
- this.isShowApcheckList.list.forEach(item => {
|
|
|
- let sourceInfo = {
|
|
|
- sourceId: '',
|
|
|
- sourceTable: '',
|
|
|
- newYCheckQty: ''
|
|
|
- }
|
|
|
- sourceInfo.sourceId = item.sourceid
|
|
|
- sourceInfo.sourceTable = item.sourcetable
|
|
|
- sourceInfo.newYCheckQty = item.oldYCheckQty
|
|
|
- sourceInfos.push(sourceInfo)
|
|
|
- })
|
|
|
- this.$http.post('/sale/apCheck/update', sourceInfos).then(res => {})
|
|
|
- }, err => {
|
|
|
- this.setRemindText(err.response.data)
|
|
|
- })
|
|
|
+ // if (this.isShowApcheckList.id === '') {
|
|
|
+ this.isShowApcheckList.showApcheck = false
|
|
|
+ this.isShowApcheckList.show = false
|
|
|
+ this.isShowApcheckList.id = ''
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // this.$http.post('/sale/apCheck/operation/deleteApCheck?id=' + this.isShowApcheckList.id, {}).then(res => {
|
|
|
+ // this.isShowApcheckList.showApcheck = false
|
|
|
+ // this.isShowApcheckList.show = false
|
|
|
+ // this.isShowApcheckList.id = ''
|
|
|
+ //
|
|
|
+ // let sourceInfos = []
|
|
|
+ // this.isShowApcheckList.list.forEach(item => {
|
|
|
+ // let sourceInfo = {
|
|
|
+ // sourceId: '',
|
|
|
+ // sourceTable: '',
|
|
|
+ // newYCheckQty: ''
|
|
|
+ // }
|
|
|
+ // sourceInfo.sourceId = item.sourceid
|
|
|
+ // sourceInfo.sourceTable = item.sourcetable
|
|
|
+ // sourceInfo.newYCheckQty = item.oldYCheckQty
|
|
|
+ // sourceInfos.push(sourceInfo)
|
|
|
+ // })
|
|
|
+ // this.$http.post('/sale/apCheck/update', sourceInfos).then(res => {})
|
|
|
+ // }, err => {
|
|
|
+ // this.setRemindText(err.response.data)
|
|
|
+ // })
|
|
|
},
|
|
|
// 月份+1
|
|
|
addMonth(tp, key, val) {
|
|
|
@@ -900,7 +900,8 @@
|
|
|
this.MouthinShow = true
|
|
|
}
|
|
|
this.$refs.baseFilter[0].setSelect(1)
|
|
|
- this.showApcheckList()
|
|
|
+ this.isShowApcheckList.show = true
|
|
|
+ this.getApcheckDetailsinfo()
|
|
|
} else {
|
|
|
let _sp = new Date()
|
|
|
let _d = this.computedTime(this[key], val)
|