采购通知提现

This commit is contained in:
zhangdingyu
2019-10-22 15:30:33 +08:00
parent c318950ad6
commit 109c1ada91

View File

@@ -40,8 +40,12 @@ export default {
data() { data() {
return { return {
timer: '', timer: '',
noticeContract: null,
noticeContract1: null, noticeContract1: null,
noticeContract2: null,
noticeContract3: null,
noticeContract4: null,
noticeContract5: null,
noticeContract6: null,
noticeFund: null, noticeFund: null,
noticeInvoice: null noticeInvoice: null
} }
@@ -75,14 +79,14 @@ export default {
comfirmMaterial_CG() { comfirmMaterial_CG() {
getMaterial_NOTES().then(res => { getMaterial_NOTES().then(res => {
if (res.data.length) { if (res.data.length) {
this.noticeContract = null this.noticeContract1 = null
this.noticeContract = this.$notify.success({ this.noticeContract1 = this.$notify.success({
title: '提示', title: '提示',
message: '有新采购物料审批结果,点击查看', message: '有新采购物料审批结果,点击查看',
onClick: () => { onClick: () => {
setChakan().then(res => { setChakan().then(res => {
this.$router.push({ path: '/PurchasingCenter/MaterialMProcure' }) this.$router.push({ path: '/PurchasingCenter/MaterialMProcure' })
setTimeout(this.noticeContract.close(), 1000) setTimeout(this.noticeContract1.close(), 1000)
}) })
}, },
duration: 1000 * 60 duration: 1000 * 60
@@ -92,14 +96,14 @@ export default {
if (this.token.toString() === '2') { if (this.token.toString() === '2') {
searchRequestFund(1, 9999, 0, 0, 0, 0, 0).then(res => { searchRequestFund(1, 9999, 0, 0, 0, 0, 0).then(res => {
if (res.data.length) { if (res.data.length) {
this.noticeContract = null this.noticeContract2 = null
this.noticeContract = this.$notify.success({ this.noticeContract2 = this.$notify.success({
title: '提示', title: '提示',
message: '有合同请款申请审批结果,点击查看', message: '有合同请款申请审批结果,点击查看',
onClick: () => { onClick: () => {
setChakan().then(res => { setChakan().then(res => {
this.$router.push({ path: '/PurchasingCenter/PurchaseContractRequestFund' }) this.$router.push({ path: '/PurchasingCenter/PurchaseContractRequestFund' })
setTimeout(this.noticeContract.close(), 1000) setTimeout(this.noticeContract2.close(), 1000)
}) })
}, },
duration: 1000 * 60 duration: 1000 * 60
@@ -108,14 +112,14 @@ export default {
}) })
initApproval(1, 999, 1).then(res => { initApproval(1, 999, 1).then(res => {
if (res.data.rows.length) { if (res.data.rows.length) {
this.noticeContract = null this.noticeContract3 = null
this.noticeContract = this.$notify.success({ this.noticeContract3 = this.$notify.success({
title: '提示', title: '提示',
message: '有合同请款申请待审批,点击查看', message: '有合同请款申请待审批,点击查看',
onClick: () => { onClick: () => {
setChakan().then(res => { setChakan().then(res => {
this.$router.push({ path: '/PurchasingCenter/FundApproval1' }) this.$router.push({ path: '/PurchasingCenter/FundApproval1' })
setTimeout(this.noticeContract.close(), 1000) setTimeout(this.noticeContract3.close(), 1000)
}) })
}, },
duration: 1000 * 60 duration: 1000 * 60
@@ -125,14 +129,14 @@ export default {
} else if (this.token.toString() === '3') { } else if (this.token.toString() === '3') {
searchRequestFund(1, 99999, 0, 0, 0, 0, 0).then(res => { searchRequestFund(1, 99999, 0, 0, 0, 0, 0).then(res => {
if (res.data.length) { if (res.data.length) {
this.noticeContract = null this.noticeContract4 = null
this.noticeContract = this.$notify.success({ this.noticeContract4 = this.$notify.success({
title: '提示', title: '提示',
message: '有合同请款申请审批结果,点击查看', message: '有合同请款申请审批结果,点击查看',
onClick: () => { onClick: () => {
setChakan().then(res => { setChakan().then(res => {
this.$router.push({ path: '/PurchasingCenter/PurchaseContractRequestFund' }) this.$router.push({ path: '/PurchasingCenter/PurchaseContractRequestFund' })
setTimeout(this.noticeContract.close(), 1000) setTimeout(this.noticeContract4.close(), 1000)
}) })
}, },
duration: 1000 * 60 duration: 1000 * 60
@@ -144,13 +148,13 @@ export default {
comfirmMaterial() { comfirmMaterial() {
getMaterial().then(res => { getMaterial().then(res => {
if (res.data.length) { if (res.data.length) {
this.noticeContract = null this.noticeContract5 = null
this.noticeContract = this.$notify.success({ this.noticeContract5 = this.$notify.success({
title: '提示', title: '提示',
message: '您有采购物料申请待审批,请及时处理,点击查看', message: '您有采购物料申请待审批,请及时处理,点击查看',
onClick: () => { onClick: () => {
this.$router.push({ path: '/PurchasingCenter/MaterialManagement' }) this.$router.push({ path: '/PurchasingCenter/MaterialManagement' })
setTimeout(this.noticeContract.close(), 1000) setTimeout(this.noticeContract5.close(), 1000)
}, },
duration: 1000 * 60 duration: 1000 * 60
}) })
@@ -160,13 +164,13 @@ export default {
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) {
this.noticeContract = null this.noticeContract6 = null
this.noticeContract = this.$notify.success({ this.noticeContract6 = this.$notify.success({
title: '提示', title: '提示',
message: '您有采购合同待审批,请及时处理,点击查看', message: '您有采购合同待审批,请及时处理,点击查看',
onClick: () => { onClick: () => {
this.$router.push({ path: '/PurchasingCenter/PurchaseContractApproval' }) this.$router.push({ path: '/PurchasingCenter/PurchaseContractApproval' })
setTimeout(this.noticeContract.close(), 1000) setTimeout(this.noticeContract6.close(), 1000)
}, },
duration: 1000 * 60 duration: 1000 * 60
}) })