@@ -36,6 +37,7 @@ import { RequestFund, setChakan2 } from '@/api/PurchasingCenter/PurchaseContract
import { getPickingList, setPickingList } from '@/api/Inventory/MaterialOut'
import { searchTable } from '@/api/PurchasingCenter/PurchaseMaterielModify'
import { search } from '@/api/Assembly/DeliveryConfirmation'
+import Cookies from 'js-cookie'
export default {
components: {
Breadcrumb,
@@ -69,7 +71,8 @@ export default {
])
},
mounted() {
- if (this.id.toString() === '3') {
+ console.log(Cookies.get('id'), 999)
+ if (this.id === 3 || Cookies.get('id') === 3) {
this.checkApproval()
this.timer = setInterval(this.checkApproval, 1000 * 60 * 5)
} else if (this.token.toString() === '11' || this.token.toString() === '12') {