2024-09-09 修改了大部分下拉组件为模糊筛选,减轻前端渲染压力

This commit is contained in:
2024-09-09 15:26:17 +08:00
parent fe5d3b70df
commit 563132273c
717 changed files with 107188 additions and 138520 deletions

View File

@@ -4,9 +4,7 @@
<transition name="fade-transform" mode="out-in">
<!-- or name="fade" -->
<!-- <router-view :key="key"></router-view> -->
<keep-alive>
<router-view/>
</keep-alive>
<router-view/>
</transition>
</section>
</template>

View File

@@ -1,12 +1,12 @@
<!--suppress ALL -->
<template>
<div>
<el-menu class="navbar" mode="horizontal" style="background: rgb(87,177,253)!important;">
<el-menu class="navbar" mode="horizontal" style="background: #2394f2!important;">
<hamburger :toggle-click="toggleSideBar" :is-active="sidebar.opened" class="hamburger-container"/>
<breadcrumb />
<el-dropdown class="avatar-container" trigger="click">
<div class="avatar-wrapper">
<img :src="require('@/assets/img/user.jpg')" class="user-avatar">
<img :src="require('@/assets/img/JYuser.png')" class="user-avatar">
<i class="el-icon-caret-bottom"/>
</div>
<el-dropdown-menu slot="dropdown" class="user-dropdown">
@@ -28,16 +28,21 @@
import { mapGetters } from 'vuex'
import Breadcrumb from '@/components/Breadcrumb'
import Hamburger from '@/components/Hamburger'
import { searchTable1 } from '@/api/PurchasingCenter/PurchaseContractApproval'
/* import { searchTable1 } from '@/api/PurchasingCenter/PurchaseContractApproval'
import { getMaterial, getMaterial_NOTES, setChakan } from '@/api/PurchasingCenter/MaterialManagement'
import { initApproval, initApprovalOffline } from '@/api/PurchasingCenter/FundApproval'
import { searchUrgentItem } from '@/api/ManufacturingCenter/InitialProduction'
import { searchTable1 as searchTableInvoice } from '@/api/PurchasingCenter/InvoiceSettlementApprove'
import { RequestFund, setChakan2 } from '@/api/PurchasingCenter/PurchaseContractRequestFund'
import { initApproval1, initApprovalOutsourcing, initApprovalMaterials } from '@/api/WorkshopProcurement/FundApproval'
import { searchTable1 as InvoiceSettlementApprove1 } from '@/api/WorkshopProcurement/InvoiceSettlementApprove1'
import { searchTable1 as OutsourcingArrivalTicket } from '@/api/Outsourcing/ApprovalOfOutsourcingArrivalTicket'
import { searchInvoice as searchMaterialsInvoice } from '@/api/WorkshopProcurement/MaterialsInvoiceApproval'
import { searchTable1 as searchContractApproval } from '@/api/WorkshopProcurement/ProcurementContractApproval'*/
// import { getPickingList, setPickingList } from '@/api/Inventory/MaterialOut'
import { searchTable } from '@/api/PurchasingCenter/PurchaseMaterielModify'
/* import { searchTable } from '@/api/PurchasingCenter/PurchaseMaterielModify'
import { search } from '@/api/Assembly/DeliveryConfirmation'
import { searchtable as searchtableSupplement } from '@/api/WorkshopProcurement/ScrappedSupplementaryInvestment1' // 查询报废补投零件
import { searchtable as searchtableSupplement } from '@/api/WorkshopProcurement/ScrappedSupplementaryInvestment1'*/ // 查询报废补投零件
import Cookies from 'js-cookie'
export default {
components: {
@@ -47,18 +52,42 @@ export default {
data() {
return {
timer: '',
noticeContract1: null,
noticeContract2: null,
noticeContract3: null,
noticeContract4: null,
noticeContract5: null,
noticeContract6: null,
noticeContract7: null,
noticeContractJJ: null,
noticeFund: null,
noticeInvoice: null,
noticeContractKG: null,
noticeDeliver: null
noticeContractKG: null, // 领料单
selfMadeparts: null, // 自制件
productionPicking: null, // 物料
purchaseContract: null, // 采购合同
purchaseOrder: null, // 采购订单
PaymentOrder: null,
productionOperation: null, // 生产投产
orderOperation: null, // 订单投产
deliveryNotice: null, // 发货通知
partsScrapping: null, // 零件报废
noticeDeliver: null,
noticeApproval: null,
noticeInvoiceManufacture: null,
noticeInvoiceOutsourcing: null,
noticeInvoiceMaterials: null,
noticeContractApproval: null,
PickingListSearch: null, // 领料单
ReturnRecord: null, // 补货订单打回
SelfMadePartsReceiptSearch: null, // 库存管理自制件
PurchaseContract: null,
OrderProduction: null,
PurchaseContractSearch: null,
returnNumber: null,
DeliveryNotice: null,
ScrapReplenishment: null,
OrderConfirmationShipment: null,
ArrivalNoticeSearch: null,
DeliveryReview: null,
DeliveryReview1: null,
InventoryAlert: null,
InventoryAlert1: null,
InventoryAlert2: null,
noticeLabel: '',
noticeTime: ''
}
},
computed: {
@@ -73,10 +102,10 @@ export default {
},
mounted() {
console.log(Cookies.get('id'), 999)
if (this.id === 3 || Cookies.get('id') === 3) { // id=3 沈大为 总经理
/* if (this.id === 3 || Cookies.get('id') === 3) { // id=3 沈大为 总经理
this.checkApproval()
this.timer = setInterval(this.checkApproval, 1000 * 60 * 5)
} else if (this.token.toString() === '11' || this.token.toString() === '12') { // 11 技术部长 12 技术员
} else if (this.token.toString() === '11') { // 11 技术部长
// 存储过程 库存管理_物料主文件_基本_采购部_查询未审核数量
this.comfirmMaterial() // 您有采购物料申请待审批,请及时处理,点击查看
this.timer = setInterval(this.comfirmMaterial, 1000 * 60 * 5)
@@ -91,234 +120,474 @@ export default {
this.timer = setInterval(this.comfirmUrgentItem, 1000 * 60 * 5)
this.searchtableSupplement() // 报废补投(制造)
this.timer = setInterval(this.searchtableSupplement, 1000 * 60 * 5)
} else if (this.token.toString() === '21') { // 21 装配部长
this.comfirmDeliver()
this.timer = setInterval(this.comfirmDeliver, 1000 * 60 * 5)
} else if (this.token.toString() === '26') { // 26 制造部总经理
this.ManufacturingApprova()
this.timer = setInterval(this.ManufacturingApprova, 1000 * 60 * 5)
} else if (this.token.toString() === '18') { // 26 财务
this.FinanceApprova()
this.timer = setInterval(this.FinanceApprova, 1000 * 60 * 5)
}*/
if (this.token.toString() === '7') { // 仓库
this.warehouseSearch()
this.timer = setInterval(this.warehouseSearch, 1000 * 60 * 5)
} else if (this.token.toString() === '11') { // 审核
this.newPurchaseContract()
this.timer = setInterval(this.newPurchaseContract, 1000 * 60 * 5)
} else if (this.token.toString() === '8') { // 发货
this.DeliverySearch()
this.timer = setInterval(this.DeliverySearch, 1000 * 60 * 5)
} else if (this.token.toString() === '16') { // 16 精工车间
this.workShopSearch()
this.timer = setInterval(this.workShopSearch, 1000 * 60 * 5)
} else if (this.token.toString() === '4') { // 4 采购
this.purchaseSearch()
this.timer = setInterval(this.purchaseSearch, 1000 * 60 * 5)
} else if (this.token.toString() === '3' || this.token.toString() === '11') { // 4 销售
this.saleSearch()
this.timer = setInterval(this.saleSearch, 1000 * 60 * 5)
} else if (this.token.toString() === '15') { // 15 技术
this.newOrderInformation()
this.timer = setInterval(this.newOrderInformation, 1000 * 60 * 5)
} else if (this.token.toString() === '15') { // 15 技术
this.newOrderInformation()
this.timer = setInterval(this.newOrderInformation, 1000 * 60 * 5)
} else if (this.token.toString() === '2') { // 2 管理员
this.manageSearch()
this.timer = setInterval(this.manageSearch, 1000 * 60 * 5)
} else if (this.token.toString() === '20') { // 20 质检员
this.newArrivalNoticeSearch()
this.timer = setInterval(this.newArrivalNoticeSearch, 1000 * 60 * 5)
}
// else if (this.token.toString() === '21') { // 21 装配部长
// this.comfirmDeliver()
// this.timer = setInterval(this.comfirmDeliver, 1000 * 60 * 5)
// }
},
beforeDestroy() {
clearInterval(this.timer)
},
methods: {
// comfirmMaterial_KG() {
// getPickingList().then(res => {
// if (res.data.length) {
// this.noticeContractKG = null
// this.noticeContractKG = this.$notify.success({
// title: '提示',
// message: '您有新的领料单需要备料确认,请及时处理,点击查看',
// onClick: () => {
// setPickingList().then(res => {
// this.$router.push({ path: '/Inventory/MaterialOut' })
// setTimeout(this.noticeContractKG.close(), 1000)
// })
// },
// duration: 1000 * 60
// })
// }
// })
// },
comfirmMaterial_CG() {
getMaterial_NOTES().then(res => {
if (res.data.length) {
this.noticeContract1 = null
this.noticeContract1 = this.$notify.success({
title: '提示',
message: '有新采购物料审批结果,点击查看',
onClick: () => {
setChakan().then(res => {
this.$router.push({ path: '/PurchasingCenter/MaterialMProcure' })
setTimeout(this.noticeContract1.close(), 1000)
})
},
duration: 1000 * 60
})
}
})
if (this.token.toString() === '2') {
RequestFund().then(res => {
if (res.data[0].数量 > 0) {
this.noticeContract2 = null
this.noticeContract2 = this.$notify.success({
title: '提示',
message: '有合同请款申请审批结果,点击查看',
onClick: () => {
setChakan2().then(res => {
this.$router.push({ path: '/PurchasingCenter/PurchaseContractRequestFund' })
setTimeout(this.noticeContract2.close(), 1000)
})
},
duration: 1000 * 60
})
}
})
initApproval(1, 999, 1).then(res => {
if (res.data.rows.length) {
this.noticeContract3 = null
this.noticeContract3 = this.$notify.success({
title: '提示',
message: '有合同请款申请待审批,点击查看',
onClick: () => {
setChakan().then(res => {
this.$router.push({ path: '/PurchasingCenter/FundApproval1' })
setTimeout(this.noticeContract3.close(), 1000)
})
},
duration: 1000 * 60
})
}
})
} else if (this.token.toString() === '3') {
RequestFund().then(res => {
if (res.data[0].数量 > 0) {
this.noticeContract4 = null
this.noticeContract4 = this.$notify.success({
title: '提示',
message: '有合同请款申请审批结果,点击查看',
onClick: () => {
setChakan2().then(res => {
this.$router.push({ path: '/PurchasingCenter/PurchaseContractRequestFund' })
setTimeout(this.noticeContract4.close(), 1000)
})
},
duration: 1000 * 60
})
}
})
}
warehouseSearch() {
this.newPickingListSearch()
this.newSelfMadePartsReceiptSearch()
this.newReturnRecord()
this.newArrivalNoticeSearch()
this.Delivery()
this.newInventoryAlert()
},
// 修改完成
searchtableSupplement() {
searchtableSupplement(0, 0, 0, 0, 0, 1, 1, 1, 99).then(res => {
if (res.data.result) {
this.noticeContract5 = null
this.noticeContract5 = this.$notify.success({
title: '提示',
message: '您有报废补投信息待处理,请及时处理,点击查看',
onClick: () => {
this.$router.push({ path: '/WorkshopProcurement/ScrappedSupplementaryInvestment1' })
setTimeout(this.noticeContract5.close(), 1000)
},
duration: 1000 * 60
})
}
})
purchaseSearch() {
this.newPurchaseContractSearch()
this.newPaymentOrder()
this.searchNumber()
this.newArrivalNoticeSearch()
this.newInventoryAlert1()
},
// 修改完成
comfirmMaterial() {
getMaterial().then(res => {
// if (res.data.length) {
if (res.data[0].数量) {
this.noticeContract5 = null
this.noticeContract5 = this.$notify.success({
title: '提示',
message: '您有采购物料申请待审批,请及时处理,点击查看',
onClick: () => {
this.$router.push({ path: '/PurchasingCenter/MaterialManagement' })
setTimeout(this.noticeContract5.close(), 1000)
},
duration: 1000 * 60
})
}
})
saleSearch() {
this.newOrderConfirmationShipment()
this.newDeliveryReview()
},
// 修改完成
comfirmMaterial_Update() {
searchTable(1, 1).then(res => {
// console.log(res, '您有采购物料更改申请待审批,请及时处理,点击查看')
if (res.data.rows.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
})
}
})
DeliverySearch() {
this.newDeliveryNotice()
},
checkApproval() {
searchTable1(1, 999, 0, null, null, 0, 0, 0, 0, 0, 0).then(res => {
if (res.data.total) {
this.noticeContract6 = null
this.noticeContract6 = this.$notify.success({
manageSearch() {
this.newOrderProduction()
},
workShopSearch() {
this.newScrapReplenishment()
this.newArrivalNoticeSearch()
},
newArrivalNoticeSearch() {
// 新到货通知查询
var param = []
param[0] = ['角色编号', this.token]
var Data = this.CreateData('11', '采购管理_到货通知_查询', param)
this.ExecDatabase(Data).then(response => {
if (response.data.length > 0) {
this.noticeLabel = response.data[0].通知内容
this.noticeTime = response.data[0].通知日期
this.ArrivalNoticeSearch = null
this.ArrivalNoticeSearch = this.$notify.success({
title: '提示',
message: '您有采购合同待审批,请及时处理,点击查看',
dangerouslyUseHTMLString: true,
message: `<div>通知时间:${this.noticeTime}<br/>${this.noticeLabel}<br/><a style="color: #1e6abc">已了解</a></div>`,
onClick: () => {
this.$router.push({ path: '/PurchasingCenter/PurchaseContractApproval' })
setTimeout(this.noticeContract6.close(), 1000)
},
duration: 1000 * 60
})
}
})
const p1 = new Promise((resolve, reject) => {
initApproval(1, 999, 1).then(res => {
resolve(res)
})
})
const p2 = new Promise((resolve, reject) => {
initApprovalOffline(1, 999, 1).then(res => {
resolve(res)
})
})
Promise.race([p1, p2]).then(res => {
console.log(res, 'res678')
if (res.data.total) {
this.noticeFund = this.$notify.success({
title: '提示',
message: '您有合同请款申请待审批,请及时处理,点击查看',
onClick: () => {
this.$router.push({ path: '/PurchasingCenter/FundApproval2' })
setTimeout(this.noticeFund.close(), 1000)
},
duration: 1000 * 60 * 5
})
}
})
searchTableInvoice(0, null, null, 1, 999, this.token).then(res => {
if (res.data.total) {
this.noticeInvoice = null
this.noticeInvoice = this.$notify.success({
title: '提示',
message: '您有发票结算申请待审批,请及时处理,点击查看',
onClick: () => {
this.$router.push({ path: '/PurchasingCenter/InvoiceSettlementApprove' })
setTimeout(this.noticeInvoice.close(), 1000)
setTimeout(this.ArrivalNoticeSearch.close(), 1000)
var param = []
param[0] = ['角色编号', this.token]
var Data = this.CreateData('12', '采购管理_到货通知_修改', param)
this.ExecDatabase(Data)
},
duration: 1000 * 60 * 5
})
}
})
},
comfirmUrgentItem() {
searchUrgentItem().then(res => {
if (res.data.length > 0) {
this.noticeContractJJ = null
this.noticeContractJJ = this.$notify.success({
newPickingListSearch() {
// 新领料单通知查询
var param = []
var Data = this.CreateData('11', '装配管理_领料单明细_查询_新通知', param)
this.ExecDatabase(Data).then(response => {
if (response.data.length > 0) {
this.PickingListSearch = null
this.PickingListSearch = this.$notify.success({
title: '提示',
message: '您有加急件未打印,请及时处理',
dangerouslyUseHTMLString: true,
message: ' <div>您有新的领料单需要备料确认,请及时处理<a style="color: #1e6abc">点击查看</a></div>',
onClick: () => {
setTimeout(this.noticeContractJJ.close(), 1000)
this.$router.push({ path: '/WarehouseManagement/MaterialRequisition' })
setTimeout(this.PickingListSearch.close(), 1000)
var param = []
var Data = this.CreateData('12', '装配管理_领料单明细_确认查看', param)
this.ExecDatabase(Data)
},
duration: 1000 * 60
})
}
})
},
comfirmDeliver() {
search().then(res => {
if (res.data.length > 0) {
this.noticeDeliver = null
this.noticeDeliver = this.$notify.success({
newReturnRecord() {
// 新补货订单打回查询
var param = []
var Data = this.CreateData('11', '仓储管理_补货订单打回_未查看数量', param)
this.ExecDatabase(Data).then(response => {
if (response.data[0].数量 > 0) {
this.ReturnRecord = null
this.ReturnRecord = this.$notify.success({
title: '提示',
message: '有发货申请,请及时处理',
dangerouslyUseHTMLString: true,
message: ' <div>您有新的补货订单被打回,<a style="color: #1e6abc">点击查看</a></div>',
onClick: () => {
setTimeout(this.noticeDeliver.close(), 1000)
this.$router.push({ path: '/WarehouseManagement/Replenishment' })
setTimeout(this.ReturnRecord.close(), 1000)
},
duration: 1000 * 60
})
}
})
},
newSelfMadePartsReceiptSearch() {
// 新自制件入库查询
var param = []
var Data = this.CreateData('11', '库存管理_自制件_查询_新通知', param)
this.ExecDatabase(Data).then(response => {
if (response.data.length > 0) {
this.SelfMadePartsReceiptSearch = null
this.SelfMadePartsReceiptSearch = this.$notify.success({
title: '提示',
dangerouslyUseHTMLString: true,
message: ' <div>您有新的自制件入库,需要您确认<a style="color: #1e6abc">点击进入确认界面</a></div>',
onClick: () => {
this.$router.push({ path: '/WarehouseManagement/PurchasePartsStorage' })
setTimeout(this.SelfMadePartsReceiptSearch.close(), 1000)
var param = []
var Data = this.CreateData('12', '库存管理_自制件_确认查看', param)
this.ExecDatabase(Data)
},
duration: 1000 * 60
})
}
})
},
newPurchaseContract() {
// 新采购合同查询
var param = []
var Data = this.CreateData('11', '采购管理_采购合同_查询_新通知', param)
this.ExecDatabase(Data).then(response => {
if (response.data.length > 0) {
this.PurchaseContract = null
this.PurchaseContract = this.$notify.success({
title: '提示',
dangerouslyUseHTMLString: true,
message: ' <div>您有新的采购合同,需要您审批<a style="color: #1e6abc">点击进入确认界面</a></div>',
onClick: () => {
this.$router.push({ path: '/SeikoWorkshop/ProcurementContractAudit' })
setTimeout(this.PurchaseContract.close(), 1000)
var param = []
var Data = this.CreateData('12', '采购管理_采购合同_确认查看', param)
this.ExecDatabase(Data)
},
duration: 1000 * 60
})
}
})
},
newPurchaseContractSearch() {
// 采购合同审核通过是否通知
var param = []
var Data = this.CreateData('11', '采购管理_采购合同_审核通过是否通知_查询新通知', param)
this.ExecDatabase(Data).then(response => {
if (response.data.length > 0) {
this.PurchaseContractSearch = null
this.PurchaseContractSearch = this.$notify.success({
title: '提示',
dangerouslyUseHTMLString: true,
message: ' <div>您有新的合同审核通过<a style="color: #1e6abc">点击查看详情</a></div>',
onClick: () => {
this.$router.push({ path: '/PurchasingManagement/OrderInquiry' })
setTimeout(this.PurchaseContractSearch.close(), 1000)
var param = []
var Data = this.CreateData('12', '采购管理_采购合同_审核通过是否通知_确认查看', param)
this.ExecDatabase(Data)
},
duration: 1000 * 60
})
}
})
},
newOrderInformation() {
// 新订单查询技术审核确认
var param = []
var Data = this.CreateData('11', '合同管理_订单信息_基础表_查询_新通知', param)
this.ExecDatabase(Data).then(response => {
if (response.data.length > 0) {
this.OrderInformation = null
this.OrderInformation = this.$notify.success({
title: '提示',
dangerouslyUseHTMLString: true,
message: ' <div>您有新的订单,需要您技术审核确认<a style="color: #1e6abc">点击进入技术确认界面</a></div>',
onClick: () => {
this.$router.push({ path: '/TechnologyCenter/DrawingConfirmation' })
setTimeout(this.OrderInformation.close(), 1000)
var param = []
var Data = this.CreateData('12', '合同管理_订单信息_基础表_确认查看', param)
this.ExecDatabase(Data)
},
duration: 1000 * 60
})
}
})
},
newOrderProduction() {
// 新订单查询订单投产
var param = []
var Data = this.CreateData('11', '合同管理_订单信息_基础表_查询_新通知', param)
this.ExecDatabase(Data).then(response => {
if (response.data.length > 0) {
this.OrderProduction = null
this.OrderProduction = this.$notify.success({
title: '提示',
dangerouslyUseHTMLString: true,
message: ' <div>您有新的订单,需要投产<a style="color: #1e6abc">点击进入订单投产</a></div>',
onClick: () => {
this.$router.push({ path: '/SalesManagement/OrderRelease' })
setTimeout(this.OrderProduction.close(), 1000)
var param = []
var Data = this.CreateData('12', '合同管理_订单信息_基础表_确认查看', param)
this.ExecDatabase(Data)
},
duration: 1000 * 60
})
}
})
},
newPaymentOrder() {
// 付款是否通知
var param = []
var Data = this.CreateData('11', '采购管理_采购合同_付款是否通知_新通知', param)
this.ExecDatabase(Data).then(response => {
if (response.data.length > 0) {
this.PaymentOrder = null
this.PaymentOrder = this.$notify.success({
title: '提示',
dangerouslyUseHTMLString: true,
message: ' <div>您有合同付款通知<a style="color: #1e6abc">点击查看详情</a></div>',
onClick: () => {
this.$router.push({ path: '/PurchasingManagement/OrderInquiry' })
setTimeout(this.PaymentOrder.close(), 1000)
var param = []
var Data = this.CreateData('12', '采购管理_采购合同_付款通知_确认查看', param)
this.ExecDatabase(Data)
},
duration: 1000 * 60
})
}
})
},
searchNumber() {
// 退货通知
var param = []
var Data = this.CreateData('11', '仓储管理_入库记录退货_未查看数量', param)
this.ExecDatabase(Data).then(response => {
if (response.data[0].数量 > 0) {
this.returnNumber = null
this.returnNumber = this.$notify.success({
title: '提示',
dangerouslyUseHTMLString: true,
message: ' <div>您有退货通知<a style="color: #1e6abc">点击查看详情</a></div>',
onClick: () => {
this.$router.push({ path: '/PurchasingManagement/PurchaseOrder' })
setTimeout(this.returnNumber.close(), 1000)
},
duration: 1000 * 60
})
}
})
},
newDeliveryNotice() {
// 新发货通知是否查看
var param = []
var Data = this.CreateData('11', '合同管理_订单信息_基础表_通知发货是否查看_查询新通知', param)
this.ExecDatabase(Data).then(response => {
if (response.data.length > 0) {
this.DeliveryNotice = null
this.DeliveryNotice = this.$notify.success({
title: '提示',
dangerouslyUseHTMLString: true,
message: ' <div>您有新的发货通知,注意查看<a style="color: #1e6abc">点击查看详情</a></div>',
onClick: () => {
this.$router.push({ path: '/SalesManagement/ProductDelivery' })
setTimeout(this.DeliveryNotice.close(), 1000)
var param = []
var Data = this.CreateData('12', '合同管理_订单信息_基础表_通知发货是否查看_确认查看', param)
this.ExecDatabase(Data)
},
duration: 1000 * 60
})
}
})
},
// 发货审核 通过 是否查看
Delivery() {
var param = []
var Data = this.CreateData('11', '产品发货_发货单_是否提醒', param)
this.ExecDatabase(Data).then(response => {
if (response.data[0].条数 > 0) {
this.DeliveryReview = null
this.DeliveryReview = this.$notify.success({
title: '提示',
dangerouslyUseHTMLString: true,
message: ' <div>发货审核已通过,注意查看<a style="color: #1e6abc">点击查看详情</a></div>',
onClick: () => {
this.$router.push({ path: '/SalesManagement/DeliveryRecord' })
setTimeout(this.DeliveryReview.close(), 1000)
var param = []
var Data = this.CreateData('12', '产品发货_发货单_已查看', param)
this.ExecDatabase(Data)
},
duration: 1000 * 60
})
}
})
},
// 库存预警 仓库
newInventoryAlert() {
var param = []
var Data = this.CreateData('11', '仓储管理_库存预警_查询', param)
this.ExecDatabase(Data).then(response => {
if (response.data[0].条数 > 0) {
this.InventoryAlert = null
this.InventoryAlert = this.$notify.success({
title: '提示',
dangerouslyUseHTMLString: true,
message: ' <div>存在低于最低库存的物料,注意查看<a style="color: #1e6abc">点击查看详情</a></div>',
onClick: () => {
this.$router.push({ path: '/WarehouseManagement/Replenishment' })
setTimeout(this.InventoryAlert.close(), 1000)
},
duration: 1000 * 60 * 5
})
}
})
},
// 库存预警 采购
newInventoryAlert1() {
var param = []
var Data = this.CreateData('11', '仓储管理_库存预警_查询', param)
this.ExecDatabase(Data).then(response => {
if (response.data[0].条数 > 0) {
this.InventoryAlert1 = null
this.InventoryAlert1 = this.$notify.success({
title: '提示',
dangerouslyUseHTMLString: true,
message: ' <div>存在低于最低库存的物料,注意查看<a style="color: #1e6abc">点击查看详情</a></div>',
onClick: () => {
this.$router.push({ path: '/WarehouseManagement/Replenishment' })
setTimeout(this.InventoryAlert1.close(), 1000)
},
duration: 1000 * 60 * 5
})
}
})
},
// 库存预警 投产
newInventoryAlert2() {
var param = []
var Data = this.CreateData('11', '仓储管理_库存预警_查询', param)
this.ExecDatabase(Data).then(response => {
if (response.data[0].条数 > 0) {
this.InventoryAlert2 = null
this.InventoryAlert2 = this.$notify.success({
title: '提示',
dangerouslyUseHTMLString: true,
message: ' <div>存在低于最低库存的物料,注意查看<a style="color: #1e6abc">点击查看详情</a></div>',
onClick: () => {
this.$router.push({ path: '/WarehouseManagement/Replenishment' })
setTimeout(this.InventoryAlert2.close(), 1000)
},
duration: 1000 * 60 * 5
})
}
})
},
newScrapReplenishment() {
// 精工车间 报废补投新的查询
var param = []
var Data = this.CreateData('11', '车间生产管理工艺_零件工艺计划_报废零件记录_是否查看查询', param)
this.ExecDatabase(Data).then(response => {
if (response.data.length > 0) {
this.ScrapReplenishment = null
this.ScrapReplenishment = this.$notify.success({
title: '提示',
dangerouslyUseHTMLString: true,
message: ' <div>有零件报废,请及时补投<a style="color: #1e6abc">点击进入“报废补投”界面</a></div>',
onClick: () => {
this.$router.push({ path: '/SeikoWorkshop/ScrapProduction' })
setTimeout(this.ScrapReplenishment.close(), 1000)
var param = []
var Data = this.CreateData('12', '车间生产管理工艺_零件工艺计划_报废零件记录_确认查看', param)
this.ExecDatabase(Data)
},
duration: 1000 * 60
})
}
})
},
newOrderConfirmationShipment() {
// 订单确认发货
var param = []
var Data = this.CreateData('11', '合同管理_订单信息_基础表_已发货是否查看查询', param)
this.ExecDatabase(Data).then(response => {
if (response.data.length > 0) {
this.OrderConfirmationShipment = null
this.OrderConfirmationShipment = this.$notify.success({
title: '提示',
dangerouslyUseHTMLString: true,
message: ' <div>有合同已发货<a style="color: #1e6abc">点击查看发货信息</a></div>',
onClick: () => {
this.$router.push({ path: '/SalesManagement/DeliveryRecord' })
setTimeout(this.OrderConfirmationShipment.close(), 1000)
var param = []
var Data = this.CreateData('12', '合同管理_订单信息_基础表_已发货_确认查看', param)
this.ExecDatabase(Data)
},
duration: 1000 * 60
})
}
})
},
newDeliveryReview() {
// 新的发货申请待审核
var param = []
var Data = this.CreateData('11', '产品发货_发货单_审核提醒', param)
this.ExecDatabase(Data).then(response => {
if (response.data[0].条数 > 0) {
this.DeliveryReview1 = null
this.DeliveryReview1 = this.$notify.success({
title: '提示',
dangerouslyUseHTMLString: true,
message: ' <div>有新的发货申请待审核<a style="color: #1e6abc">点击查看详细信息</a></div>',
onClick: () => {
this.$router.push({ path: '/SalesManagement/DeliveryReview' })
setTimeout(this.DeliveryReview1.close(), 1000)
},
duration: 1000 * 60
})
@@ -363,17 +632,24 @@ export default {
cursor: pointer;
margin-top: 5px;
position: relative;
width: 40px;
height: 40px;
background-color: rgb(35, 148, 242);
.user-avatar {
width: 40px;
height: 40px;
border-radius: 10px;
width: 35px;
height: 35px;
margin: 3px 0 0 3px;
}
.el-icon-caret-bottom {
color: #fff;
position: absolute;
right: -20px;
top: 25px;
font-size: 12px;
}
/deep/ .el-notification.right{
cursor:pointer!important;
}
}
}
}

View File

@@ -23,7 +23,7 @@
:base-path="resolvePath(child.path)"
class="nest-menu" />
<a v-else :href="child.path" :key="child.name" target="_blank" @click="clickLink(child.path,$event)">
<el-menu-item :index="resolvePath(child.path)">
<el-menu-item :index="resolvePath(child.path)" style="padding-left: 58px!important;">
<item v-if="child.meta" :icon="child.meta.icon" :title="child.meta.title" />
</el-menu-item>
</a>

View File

@@ -1,15 +1,15 @@
<template>
<div>
<el-scrollbar wrap-class="scrollbar-wrapper">
<div v-show="isShow" class="img-wrapper"><img :src="require('@/assets/img/gaojingLogo.png')"></div>
<div v-show="isShow" class="img-wrapper"><img :src="require('@/assets/img/JYLogo.png')"></div>
<el-menu
:show-timeout="200"
:default-active="$route.path"
:collapse="isCollapse"
mode="vertical"
background-color="#152c7c"
background-color="#2d323c"
text-color="#cccccc"
active-text-color="#409EFF"
active-text-color="#2d323c"
style="height:calc(100% - 124px)"
>
<sidebar-item v-for="route in permission_routers" :key="route.name" :item="route" :base-path="route.path"/>
@@ -57,8 +57,9 @@ export default {
<style lang="scss" scoped>
.img-wrapper{
img{
width: 180px;
margin: 20px 10px 20px 10px;
width: 87px;
height: 97px;
margin: 52px 10px 52px 65px;
}
}
</style>

View File

@@ -27,7 +27,8 @@ export default {
visible: false,
tagTop: 0,
tagLeft: 0,
selectedTag: {}
selectedTag: {},
timer: ''
}
},
computed: {
@@ -60,61 +61,119 @@ export default {
// return false
// },
generateRoute() {
clearTimeout(this.timer)
switch (this.$route.name) {
case 'EquipmentMonitoring':
document.getElementById('app-main').style.width = '1710px'
document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1710px'
document.getElementsByClassName('navbar')[0].style.minWidth = '1710px'
this.timer = setTimeout(() => {
document.getElementById('app-main').style.width = '1710px'
document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1710px'
document.getElementsByClassName('navbar')[0].style.minWidth = '1710px'
}, 400)
break
case 'ProjectPlanningManagementNew': // 项目计划管理
document.getElementById('app-main').style.width = '1700px'
document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1700px'
document.getElementsByClassName('navbar')[0].style.minWidth = '1700px'
this.timer = setTimeout(() => {
document.getElementById('app-main').style.width = '1700px'
document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1700px'
document.getElementsByClassName('navbar')[0].style.minWidth = '1700px'
}, 400)
break
case 'ProjectPlanningManagementQuery': // 项目计划查询
document.getElementById('app-main').style.width = '1700px'
document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1700px'
document.getElementsByClassName('navbar')[0].style.minWidth = '1700px'
this.timer = setTimeout(() => {
document.getElementById('app-main').style.width = '1700px'
document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1700px'
document.getElementsByClassName('navbar')[0].style.minWidth = '1700px'
}, 400)
break
case 'CreatingPurchasingMaterials': // 外购备料
document.getElementById('app-main').style.width = '1680px'
document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1680px'
document.getElementsByClassName('navbar')[0].style.minWidth = '1680px'
this.timer = setTimeout(() => {
document.getElementById('app-main').style.width = '1680px'
document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1680px'
document.getElementsByClassName('navbar')[0].style.minWidth = '1680px'
}, 400)
break
case 'RequestOutsourcingMaterials': // 外购备料请款
document.getElementById('app-main').style.width = '1710px'
document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1710px'
document.getElementsByClassName('navbar')[0].style.minWidth = '1710px'
this.timer = setTimeout(() => {
document.getElementById('app-main').style.width = '1710px'
document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1710px'
document.getElementsByClassName('navbar')[0].style.minWidth = '1710px'
}, 400)
break
case 'OutsourcingMaterialsInvoice': // 外购备料到票
document.getElementById('app-main').style.width = '1480px'
document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1480px'
document.getElementsByClassName('navbar')[0].style.minWidth = '1480px'
this.timer = setTimeout(() => {
document.getElementById('app-main').style.width = '1690px'
document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1690px'
document.getElementsByClassName('navbar')[0].style.minWidth = '1690px'
}, 400)
break
case 'OfflineProcurement': // 外购备料(离线)
document.getElementById('app-main').style.width = '1950px'
document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1950px'
document.getElementsByClassName('navbar')[0].style.minWidth = '1950px'
this.timer = setTimeout(() => {
document.getElementById('app-main').style.width = '1700px'
document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1700px'
document.getElementsByClassName('navbar')[0].style.minWidth = '1700px'
}, 400)
break
case 'AutomaticScheduling': // 车间排产
document.getElementById('app-main').style.width = '1910px'
document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1910px'
document.getElementsByClassName('navbar')[0].style.minWidth = '1910px'
this.timer = setTimeout(() => {
document.getElementById('app-main').style.width = '1910px'
document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1910px'
document.getElementsByClassName('navbar')[0].style.minWidth = '1910px'
}, 400)
break
case 'PurchaseTaskAllocate': // 采购任务分配
document.getElementById('app-main').style.width = '1680px'
document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1680px'
document.getElementsByClassName('navbar')[0].style.minWidth = '1680px'
this.timer = setTimeout(() => {
document.getElementById('app-main').style.width = '1680px'
document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1680px'
document.getElementsByClassName('navbar')[0].style.minWidth = '1680px'
}, 400)
break
case 'AssemblyTaskAssignment': // 装配任务分配
document.getElementById('app-main').style.width = '1690px'
document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1690px'
document.getElementsByClassName('navbar')[0].style.minWidth = '1690px'
this.timer = setTimeout(() => {
document.getElementById('app-main').style.width = '1690px'
document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1690px'
document.getElementsByClassName('navbar')[0].style.minWidth = '1690px'
}, 400)
break
case 'OutsourcingMaterialsSearch': // 备料查询
this.timer = setTimeout(() => {
document.getElementById('app-main').style.width = '1500px'
document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1500px'
document.getElementsByClassName('navbar')[0].style.minWidth = '1500px'
}, 400)
break
case 'PurchaseSituationSearchMetalworking': // 制造采购件查询
this.timer = setTimeout(() => {
document.getElementById('app-main').style.width = '1620px'
document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1620px'
document.getElementsByClassName('navbar')[0].style.minWidth = '1620px'
}, 400)
break
case 'ParseQuery': // 备料查询
this.timer = setTimeout(() => {
document.getElementById('app-main').style.width = '1710px'
document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1710px'
document.getElementsByClassName('navbar')[0].style.minWidth = '1710px'
}, 400)
break
case 'MaterialPreparationContractQuery': // 备料合同查询
this.timer = setTimeout(() => {
document.getElementById('app-main').style.width = '1710px'
document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1710px'
document.getElementsByClassName('navbar')[0].style.minWidth = '1710px'
}, 400)
break
case 'PurchaseContractRequestFund1': // 合同请款(制造)
this.timer = setTimeout(() => {
document.getElementById('app-main').style.width = '1510px'
document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1510px'
document.getElementsByClassName('navbar')[0].style.minWidth = '1510px'
}, 400)
break
default:
document.getElementById('app-main').style.width = '1380px'
document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '1380px'
document.getElementsByClassName('navbar')[0].style.minWidth = '1380px'
this.timer = setTimeout(() => {
document.getElementById('app-main').style.width = '100%'
document.getElementsByClassName('tags-view-wrapper')[0].style.minWidth = '100%'
document.getElementsByClassName('navbar')[0].style.minWidth = '100%'
}, 400)
}
if (this.$route.name) {
return this.$route