更新
This commit is contained in:
@@ -34,6 +34,7 @@ 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'
|
||||
import { searchTable } from '@/api/PurchasingCenter/PurchaseMaterielModify'
|
||||
export default {
|
||||
components: {
|
||||
Breadcrumb,
|
||||
@@ -48,6 +49,7 @@ export default {
|
||||
noticeContract4: null,
|
||||
noticeContract5: null,
|
||||
noticeContract6: null,
|
||||
noticeContract7: null,
|
||||
noticeContractJJ: null,
|
||||
noticeFund: null,
|
||||
noticeInvoice: null,
|
||||
@@ -71,6 +73,8 @@ export default {
|
||||
} else if (this.token.toString() === '11' || this.token.toString() === '12') {
|
||||
this.comfirmMaterial()
|
||||
this.timer = setInterval(this.comfirmMaterial, 1000 * 60 * 5)
|
||||
this.comfirmMaterial_Update()
|
||||
this.timer = setInterval(this.comfirmMaterial_Update, 1000 * 60 * 5)
|
||||
} else if (this.token.toString() === '2' || this.token.toString() === '3') {
|
||||
this.comfirmMaterial_CG()
|
||||
this.timer = setInterval(this.comfirmMaterial_CG, 1000 * 60 * 5)
|
||||
@@ -79,7 +83,7 @@ export default {
|
||||
this.timer = setInterval(this.comfirmMaterial_KG, 1000 * 60 * 5)
|
||||
} else if (this.token.toString() === '5') {
|
||||
this.comfirmUrgentItem()
|
||||
this.timer = setInterval(this.comfirmUrgentItem, 1000 * 60)
|
||||
this.timer = setInterval(this.comfirmUrgentItem, 1000 * 60 * 5)
|
||||
}
|
||||
},
|
||||
beforeDestroy() {
|
||||
@@ -189,6 +193,22 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
comfirmMaterial_Update() {
|
||||
searchTable().then(res => {
|
||||
if (res.data.length) {
|
||||
this.noticeContract7 = null
|
||||
this.noticeContract7 = this.$notify.success({
|
||||
title: '提示',
|
||||
message: '您有采购物料更改申请待审批,请及时处理,点击查看',
|
||||
onClick: () => {
|
||||
this.$router.push({ path: '/PurchasingCenter/PurchaseMaterielModify' })
|
||||
setTimeout(this.noticeContract7.close(), 1000)
|
||||
},
|
||||
duration: 1000 * 60
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
checkApproval() {
|
||||
searchTable1(1, 999, 0, null, null, 0, 0, 0, 0, 0, 0).then(res => {
|
||||
if (res.data.total) {
|
||||
|
||||
Reference in New Issue
Block a user