物料管理

This commit is contained in:
zhangdingyu
2019-10-12 18:22:27 +08:00
parent 9f836fb06b
commit d7b148963a
2 changed files with 4 additions and 4 deletions

View File

@@ -676,6 +676,7 @@ export default {
this.fetchData() this.fetchData()
this.searchMaterialCategory() this.searchMaterialCategory()
this.getGonghuoshang() this.getGonghuoshang()
this.searchMaterial()
}, },
methods: { methods: {
// 通过 // 通过

View File

@@ -50,6 +50,7 @@ export default {
'avatar', 'avatar',
'name', 'name',
'id', 'id',
'token',
'token' 'token'
]) ])
}, },
@@ -57,8 +58,7 @@ export default {
if (this.id.toString() === '3') { if (this.id.toString() === '3') {
this.checkApproval() this.checkApproval()
this.timer = setInterval(this.checkApproval, 1000 * 60 * 5) this.timer = setInterval(this.checkApproval, 1000 * 60 * 5)
} } else if (this.token.toString() === '11' || this.token.toString() === '12') {
if (this.id.toString() === '11') {
this.comfirmMaterial() this.comfirmMaterial()
this.timer = setInterval(this.comfirmMaterial, 1000 * 60 * 5) this.timer = setInterval(this.comfirmMaterial, 1000 * 60 * 5)
} }
@@ -69,8 +69,7 @@ export default {
methods: { methods: {
comfirmMaterial() { comfirmMaterial() {
getMaterial().then(res => { getMaterial().then(res => {
console.log(res) if (res.data.length) {
if (res.data.total) {
this.noticeContract = null this.noticeContract = null
this.noticeContract = this.$notify.success({ this.noticeContract = this.$notify.success({
title: '提示', title: '提示',