采购部采购样式
This commit is contained in:
@@ -32,6 +32,7 @@ import { getMaterial, getMaterial_NOTES, setChakan } from '@/api/PurchasingCente
|
||||
import { initApproval, initApprovalOffline } from '@/api/PurchasingCenter/FundApproval'
|
||||
import { searchTable1 as searchTableInvoice } from '@/api/PurchasingCenter/InvoiceSettlementApprove'
|
||||
import { searchRequestFund } from '@/api/PurchasingCenter/PurchaseContractRequestFund'
|
||||
import { getPickingList, setPickingList } from '@/api/Inventory/MaterialOut'
|
||||
export default {
|
||||
components: {
|
||||
Breadcrumb,
|
||||
@@ -47,7 +48,8 @@ export default {
|
||||
noticeContract5: null,
|
||||
noticeContract6: null,
|
||||
noticeFund: null,
|
||||
noticeInvoice: null
|
||||
noticeInvoice: null,
|
||||
noticeContractKG: null
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -70,12 +72,33 @@ export default {
|
||||
} else if (this.token.toString() === '2' || this.token.toString() === '3') {
|
||||
this.comfirmMaterial_CG()
|
||||
this.timer = setInterval(this.comfirmMaterial_CG, 1000 * 60 * 5)
|
||||
} else if (this.token.toString() === '15') {
|
||||
this.comfirmMaterial_KG()
|
||||
this.timer = setInterval(this.comfirmMaterial_KG, 1000 * 60 * 5)
|
||||
}
|
||||
},
|
||||
beforeDestroy() {
|
||||
clearInterval(this.timer)
|
||||
},
|
||||
methods: {
|
||||
comfirmMaterial_KG() {
|
||||
getPickingList().then(res => {
|
||||
if (res.data.length) {
|
||||
this.noticeContractKG = null
|
||||
this.noticeContractKG = this.$notify.success({
|
||||
title: '提示',
|
||||
message: '您有新的领料单需要备料确认,请及时处理,点击查看',
|
||||
onClick: () => {
|
||||
setPickingList().then(res => {
|
||||
this.$router.push({ path: '/Inventory/MaterialOut' })
|
||||
setTimeout(this.noticeContractKG.close(), 1000)
|
||||
})
|
||||
},
|
||||
duration: 1000 * 60
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
comfirmMaterial_CG() {
|
||||
getMaterial_NOTES().then(res => {
|
||||
if (res.data.length) {
|
||||
|
||||
Reference in New Issue
Block a user