手动增加加急件,打印提醒
This commit is contained in:
@@ -30,6 +30,7 @@ import Hamburger from '@/components/Hamburger'
|
||||
import { searchTable1 } from '@/api/PurchasingCenter/PurchaseContractApproval'
|
||||
import { getMaterial, getMaterial_NOTES, setChakan } from '@/api/PurchasingCenter/MaterialManagement'
|
||||
import { initApproval, initApprovalOffline } from '@/api/PurchasingCenter/FundApproval'
|
||||
import { searchUrgentItem } from '@/api/ManufacturingCenter/InitialProduction'
|
||||
import { searchTable1 as searchTableInvoice } from '@/api/PurchasingCenter/InvoiceSettlementApprove'
|
||||
import { searchRequestFund } from '@/api/PurchasingCenter/PurchaseContractRequestFund'
|
||||
import { getPickingList, setPickingList } from '@/api/Inventory/MaterialOut'
|
||||
@@ -47,6 +48,7 @@ export default {
|
||||
noticeContract4: null,
|
||||
noticeContract5: null,
|
||||
noticeContract6: null,
|
||||
noticeContractJJ: null,
|
||||
noticeFund: null,
|
||||
noticeInvoice: null,
|
||||
noticeContractKG: null
|
||||
@@ -75,6 +77,9 @@ export default {
|
||||
} else if (this.token.toString() === '15') {
|
||||
this.comfirmMaterial_KG()
|
||||
this.timer = setInterval(this.comfirmMaterial_KG, 1000 * 60 * 5)
|
||||
} else if (this.token.toString() === '5') {
|
||||
this.comfirmUrgentItem()
|
||||
this.timer = setInterval(this.comfirmUrgentItem, 1000 * 60)
|
||||
}
|
||||
},
|
||||
beforeDestroy() {
|
||||
@@ -237,6 +242,22 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
comfirmUrgentItem() {
|
||||
console.log(1111)
|
||||
searchUrgentItem().then(res => {
|
||||
if (res.data.length > 0) {
|
||||
this.noticeContractJJ = null
|
||||
this.noticeContractJJ = this.$notify.success({
|
||||
title: '提示',
|
||||
message: '您有加急件未打印,请及时处理',
|
||||
onClick: () => {
|
||||
setTimeout(this.noticeContractJJ.close(), 1000)
|
||||
},
|
||||
duration: 1000 * 60
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
toggleSideBar() {
|
||||
this.$store.dispatch('ToggleSideBar')
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user