This commit is contained in:
liushuai
2020-05-22 18:09:43 +08:00
parent 69cd14dd97
commit b12d00329b
9 changed files with 47 additions and 47 deletions

View File

@@ -34,7 +34,7 @@ import { initApproval, initApprovalOffline } from '@/api/PurchasingCenter/FundAp
import { searchUrgentItem } from '@/api/ManufacturingCenter/InitialProduction'
import { searchTable1 as searchTableInvoice } from '@/api/PurchasingCenter/InvoiceSettlementApprove'
import { RequestFund, setChakan2 } from '@/api/PurchasingCenter/PurchaseContractRequestFund'
import { getPickingList, setPickingList } from '@/api/Inventory/MaterialOut'
// import { getPickingList, setPickingList } from '@/api/Inventory/MaterialOut'
import { searchTable } from '@/api/PurchasingCenter/PurchaseMaterielModify'
import { search } from '@/api/Assembly/DeliveryConfirmation'
import { searchtable as searchtableSupplement } from '@/api/WorkshopProcurement/ScrappedSupplementaryInvestment1' // 查询报废补投零件
@@ -86,9 +86,6 @@ export default {
} else if (this.token.toString() === '2' || this.token.toString() === '3') { // 2 采购部长 3 采购员 18 财务(会计)
this.comfirmMaterial_CG()
this.timer = setInterval(this.comfirmMaterial_CG, 1000 * 60 * 5)
} else if (this.token.toString() === '15') { // 15 库管员
this.comfirmMaterial_KG()
this.timer = setInterval(this.comfirmMaterial_KG, 1000 * 60 * 5)
} else if (this.token.toString() === '5') { // 5 计划员
this.comfirmUrgentItem()
this.timer = setInterval(this.comfirmUrgentItem, 1000 * 60 * 5)
@@ -103,24 +100,24 @@ export default {
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_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) {