物料
This commit is contained in:
@@ -120,7 +120,7 @@
|
|||||||
size="small"
|
size="small"
|
||||||
style="margin-left: 10px"
|
style="margin-left: 10px"
|
||||||
@click="pageCurrent=1;searchMaterial()">查询</el-button>
|
@click="pageCurrent=1;searchMaterial()">查询</el-button>
|
||||||
<el-button type="primary" style="margin-bottom: 3px;margin-top: 10px" icon="el-icon-circle-plus-outline" size="small" @click="handleAdd()">申请</el-button>
|
<el-button type="primary" style="margin-bottom: 3px;margin-top: 10px" icon="el-icon-circle-plus-outline" size="small" @click="handleAdd()">新增采购物料申请</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|||||||
@@ -132,7 +132,7 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
<el-button type="primary" style="margin-bottom: 3px;margin-top: 10px" icon="el-icon-circle-plus-outline" size="small" @click="open()">新增供货商</el-button>
|
<el-button type="primary" style="margin-bottom: 3px;margin-top: 10px" icon="el-icon-circle-plus-outline" size="small" @click="open()">新增供货商</el-button>
|
||||||
<el-badge :value="weishenhe" class="item">
|
<el-badge :value="weishenhe" class="item">
|
||||||
<el-button type="primary" size="small" @click="daishenhe()">待审核</el-button>
|
<el-button type="primary" size="small" @click="daishenhe()">采购物料审核</el-button>
|
||||||
</el-badge>
|
</el-badge>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ import { mapGetters } from 'vuex'
|
|||||||
import Breadcrumb from '@/components/Breadcrumb'
|
import Breadcrumb from '@/components/Breadcrumb'
|
||||||
import Hamburger from '@/components/Hamburger'
|
import Hamburger from '@/components/Hamburger'
|
||||||
import { searchTable1 } from '@/api/PurchasingCenter/PurchaseContractApproval'
|
import { searchTable1 } from '@/api/PurchasingCenter/PurchaseContractApproval'
|
||||||
|
import { getMaterial } from '@/api/PurchasingCenter/MaterialManagement'
|
||||||
import { initApproval, initApprovalOffline } from '@/api/PurchasingCenter/FundApproval'
|
import { initApproval, initApprovalOffline } from '@/api/PurchasingCenter/FundApproval'
|
||||||
import { searchTable1 as searchTableInvoice } from '@/api/PurchasingCenter/InvoiceSettlementApprove'
|
import { searchTable1 as searchTableInvoice } from '@/api/PurchasingCenter/InvoiceSettlementApprove'
|
||||||
export default {
|
export default {
|
||||||
@@ -57,11 +58,32 @@ export default {
|
|||||||
this.checkApproval()
|
this.checkApproval()
|
||||||
this.timer = setInterval(this.checkApproval, 1000 * 60 * 5)
|
this.timer = setInterval(this.checkApproval, 1000 * 60 * 5)
|
||||||
}
|
}
|
||||||
|
if (this.id.toString() === '11') {
|
||||||
|
this.comfirmMaterial()
|
||||||
|
this.timer = setInterval(this.comfirmMaterial, 1000 * 60 * 5)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
clearInterval(this.timer)
|
clearInterval(this.timer)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
comfirmMaterial() {
|
||||||
|
getMaterial().then(res => {
|
||||||
|
console.log(res)
|
||||||
|
if (res.data.total) {
|
||||||
|
this.noticeContract = null
|
||||||
|
this.noticeContract = this.$notify.success({
|
||||||
|
title: '提示',
|
||||||
|
message: '您有采购物料申请待审批,请及时处理,点击查看',
|
||||||
|
onClick: () => {
|
||||||
|
this.$router.push({ path: '/PurchasingCenter/MaterialManagement' })
|
||||||
|
setTimeout(this.noticeContract.close(), 1000)
|
||||||
|
},
|
||||||
|
duration: 1000 * 60
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
checkApproval() {
|
checkApproval() {
|
||||||
searchTable1(1, 999, 0, null, null, 0, 0, 0, 0, 0, 0).then(res => {
|
searchTable1(1, 999, 0, null, null, 0, 0, 0, 0, 0, 0).then(res => {
|
||||||
if (res.data.total) {
|
if (res.data.total) {
|
||||||
|
|||||||
Reference in New Issue
Block a user