This commit is contained in:
liushuai
2020-04-02 18:25:25 +08:00
parent 3440f4e75e
commit 3397357a3e
18 changed files with 578 additions and 232 deletions

View File

@@ -35,6 +35,7 @@ import { searchTable1 as searchTableInvoice } from '@/api/PurchasingCenter/Invoi
import { RequestFund, setChakan2 } from '@/api/PurchasingCenter/PurchaseContractRequestFund'
import { getPickingList, setPickingList } from '@/api/Inventory/MaterialOut'
import { searchTable } from '@/api/PurchasingCenter/PurchaseMaterielModify'
import { search } from '@/api/Assembly/DeliveryConfirmation'
export default {
components: {
Breadcrumb,
@@ -53,7 +54,8 @@ export default {
noticeContractJJ: null,
noticeFund: null,
noticeInvoice: null,
noticeContractKG: null
noticeContractKG: null,
noticeDeliver: null
}
},
computed: {
@@ -84,6 +86,9 @@ export default {
} else if (this.token.toString() === '5') {
this.comfirmUrgentItem()
this.timer = setInterval(this.comfirmUrgentItem, 1000 * 60 * 5)
} else if (this.token.toString() === '21') {
this.comfirmDeliver()
this.timer = setInterval(this.comfirmDeliver, 1000 * 60 * 5)
}
},
beforeDestroy() {
@@ -277,6 +282,21 @@ export default {
}
})
},
comfirmDeliver() {
search().then(res => {
if (res.data.length > 0) {
this.noticeDeliver = null
this.noticeDeliver = this.$notify.success({
title: '提示',
message: '有发货申请,请及时处理',
onClick: () => {
setTimeout(this.noticeDeliver.close(), 1000)
},
duration: 1000 * 60
})
}
})
},
toggleSideBar() {
this.$store.dispatch('ToggleSideBar')
},