| | |
| | | |
| | | # 文件下载地址 下载数据模板地址 |
| | | # 本地服务器 |
| | | VUE_APP_BASE_API_FILE = 'http://121.196.36.24:8019/' |
| | | VUE_APP_BASE_API_FILE = 'http://192.168.2.138:8080/' |
| | |
| | | }
|
| | | }
|
| | | },
|
| | | activated() {
window.addEventListener('resize', this.getHeight)
this.getHeight()
},
created() {
|
| | | activated() { |
| | | window.addEventListener('resize', this.getHeight) |
| | | this.getHeight() |
| | | }, |
| | | created() { |
| | | this.handleRequest()
|
| | | },
|
| | | mounted() {
|
| | |
| | | if (this.tableDataDialog.length === 0) {
|
| | | return this.$message.info('设备关联点检项信息不能为空!')
|
| | | }
|
| | | if (this.tableDataDialog.filter(i => !i.checkitem_code).length > 0) { |
| | | return this.$message.info('设备关联点检项信息不能为空!') |
| | | } |
| | |
|
| | | this.$refs.dialogForm.validate(valid => {
|
| | | if (valid) {
|
| | |
| | | }
|
| | | }
|
| | | },
|
| | | activated() {
window.addEventListener('resize', this.getHeight)
this.getHeight()
},
created() {
|
| | | activated() { |
| | | window.addEventListener('resize', this.getHeight) |
| | | this.getHeight() |
| | | }, |
| | | created() { |
| | | this.handleRequest()
|
| | | },
|
| | | mounted() {
|
| | |
| | | return this.$message.info('设备关联保养项信息不能为空!')
|
| | | }
|
| | |
|
| | | if (this.tableDataDialog.filter(i => !i.repairitem_code).length > 0) { |
| | | return this.$message.info('设备关联保养项信息不能为空!') |
| | | } |
| | | |
| | | this.$refs.dialogForm.validate(valid => {
|
| | | if (valid) {
|
| | | this.$store.state.app.buttonIsDisabled = true
|
| | |
| | | <template> |
| | | <div> |
| | | <div class="kb_dashboard" style="display:flex;flex-direction: column;justify-content: space-between"> |
| | | <div |
| | | class="kb_dashboard" |
| | | :style="{transform:'scale('+zoomX+','+zoomY+')',top:topDistance+'px',left:leftDistance+'px'}" |
| | | style="display:flex;flex-direction: column;justify-content: space-between" |
| | | > |
| | | |
| | | <div class="kb_backgroundCustom" /> |
| | | |
| | |
| | | name: 'Cjsc', |
| | | data() { |
| | | return { |
| | | zoomX: 1, |
| | | zoomY: 1, |
| | | topDistance: 0, |
| | | leftDistance: 0, |
| | | |
| | | headTime: '', |
| | | |
| | | cjzl03_xData: [], |
| | |
| | | setInterval(() => { |
| | | this.getWorkShopProduceBottomRightData() |
| | | }, 30 * 1000) |
| | | |
| | | window.addEventListener('resize', this.getHeight) |
| | | this.getHeight() |
| | | }, |
| | | methods: { |
| | | // 获取页面高度 |
| | | getHeight() { |
| | | this.zoomX = window.innerWidth / 1920 |
| | | this.zoomY = window.innerHeight / 1080 |
| | | this.topDistance = (window.innerHeight - 1080) / 2 |
| | | this.leftDistance = (window.innerWidth - 1920) / 2 |
| | | }, |
| | | getWorkShopProduceTopData() { |
| | | WorkShopProduceTopData({ wkshopcode: '0503' }).then(res => { |
| | | const flag = this.compareArrays(this.configTableTop.data, res.data) |
| | |
| | | <template> |
| | | <div> |
| | | <div class="kb_dashboard"> |
| | | <div |
| | | class="kb_dashboard" |
| | | :style="{transform:'scale('+zoomX+','+zoomY+')',top:topDistance+'px',left:leftDistance+'px'}" |
| | | > |
| | | |
| | | <div class="kb_backgroundCustom" /> |
| | | <div class="kb_header"> |
| | |
| | | |
| | | data() { |
| | | return { |
| | | zoomX: 1, |
| | | zoomY: 1, |
| | | topDistance: 0, |
| | | leftDistance: 0, |
| | | |
| | | onLine: navigator.onLine, // 监听网络是否在线 |
| | | |
| | | headTime: '', |
| | |
| | | setInterval(() => { |
| | | this.getPurchaseRight() |
| | | }, 20 * 1000) |
| | | |
| | | window.addEventListener('resize', this.getHeight) |
| | | this.getHeight() |
| | | }, |
| | | beforeDestroy() { |
| | | window.removeEventListener('online', this.updateOnlineStatus) |
| | | window.removeEventListener('offline', this.updateOnlineStatus) |
| | | }, |
| | | methods: { |
| | | // 获取页面高度 |
| | | getHeight() { |
| | | this.zoomX = window.innerWidth / 1920 |
| | | this.zoomY = window.innerHeight / 1080 |
| | | this.topDistance = (window.innerHeight - 1080) / 2 |
| | | this.leftDistance = (window.innerWidth - 1920) / 2 |
| | | }, |
| | | // 更新网络状态 |
| | | updateOnlineStatus(e) { |
| | | if (e.isFirst) { |
| | |
| | | <template> |
| | | <div> |
| | | <div class="kb_dashboard"> |
| | | <div |
| | | class="kb_dashboard" |
| | | :style="{transform:'scale('+zoomX+','+zoomY+')',top:topDistance+'px',left:leftDistance+'px'}" |
| | | > |
| | | |
| | | <div class="kb_backgroundCustom" /> |
| | | <div class="kb_header"> |
| | |
| | | |
| | | data() { |
| | | return { |
| | | zoomX: 1, |
| | | zoomY: 1, |
| | | topDistance: 0, |
| | | leftDistance: 0, |
| | | onLine: navigator.onLine, // 监听网络是否在线 |
| | | |
| | | headTime: '', |
| | |
| | | }, 20 * 1000) |
| | | |
| | | this.getEcharts() |
| | | |
| | | window.addEventListener('resize', this.getHeight) |
| | | this.getHeight() |
| | | }, |
| | | beforeDestroy() { |
| | | window.removeEventListener('online', this.updateOnlineStatus) |
| | | window.removeEventListener('offline', this.updateOnlineStatus) |
| | | }, |
| | | methods: { |
| | | // 获取页面高度 |
| | | getHeight() { |
| | | this.zoomX = window.innerWidth / 1920 |
| | | this.zoomY = window.innerHeight / 1080 |
| | | this.topDistance = (window.innerHeight - 1080) / 2 |
| | | this.leftDistance = (window.innerWidth - 1920) / 2 |
| | | }, |
| | | // 更新网络状态 |
| | | updateOnlineStatus(e) { |
| | | if (e.isFirst) { |
| | |
| | | <template> |
| | | <div> |
| | | <div class="kb_dashboard" style="display:flex;flex-direction: column;justify-content: space-between"> |
| | | <div |
| | | class="kb_dashboard" |
| | | :style="{transform:'scale('+zoomX+','+zoomY+')',top:topDistance+'px',left:leftDistance+'px'}" |
| | | style="display:flex;flex-direction: column;justify-content: space-between" |
| | | > |
| | | |
| | | <div class="kb_backgroundCustom" /> |
| | | |
| | |
| | | name: 'Cjsc', |
| | | data() { |
| | | return { |
| | | zoomX: 1, |
| | | zoomY: 1, |
| | | topDistance: 0, |
| | | leftDistance: 0, |
| | | headTime: '', |
| | | |
| | | cjzl03_xData: [], |
| | |
| | | setInterval(() => { |
| | | this.getWorkShopProduceBottomRightData() |
| | | }, 30 * 1000) |
| | | window.addEventListener('resize', this.getHeight) |
| | | this.getHeight() |
| | | }, |
| | | methods: { |
| | | // 获取页面高度 |
| | | getHeight() { |
| | | this.zoomX = window.innerWidth / 1920 |
| | | this.zoomY = window.innerHeight / 1080 |
| | | this.topDistance = (window.innerHeight - 1080) / 2 |
| | | this.leftDistance = (window.innerWidth - 1920) / 2 |
| | | }, |
| | | getWorkShopProduceTopData() { |
| | | WorkShopProduceTopData({ wkshopcode: '0502' }).then(res => { |
| | | const flag = this.compareArrays(this.configTableTop.data, res.data) |
| | |
| | | <template> |
| | | <div> |
| | | <div class="kb_dashboard" style="display:flex;flex-direction: column;justify-content: space-between"> |
| | | <div |
| | | class="kb_dashboard" |
| | | :style="{transform:'scale('+zoomX+','+zoomY+')',top:topDistance+'px',left:leftDistance+'px'}" |
| | | style="display:flex;flex-direction: column;justify-content: space-between" |
| | | > |
| | | |
| | | <div class="kb_backgroundCustom" /> |
| | | |
| | |
| | | name: 'Cjsc', |
| | | data() { |
| | | return { |
| | | zoomX: 1, |
| | | zoomY: 1, |
| | | topDistance: 0, |
| | | leftDistance: 0, |
| | | headTime: '', |
| | | |
| | | LeftTopData01: [], |
| | |
| | | setInterval(() => { |
| | | this.getWorkShopCompreRightBottom() |
| | | }, 25 * 1000) |
| | | window.addEventListener('resize', this.getHeight) |
| | | this.getHeight() |
| | | }, |
| | | methods: { |
| | | // 获取页面高度 |
| | | getHeight() { |
| | | this.zoomX = window.innerWidth / 1920 |
| | | this.zoomY = window.innerHeight / 1080 |
| | | this.topDistance = (window.innerHeight - 1080) / 2 |
| | | this.leftDistance = (window.innerWidth - 1920) / 2 |
| | | }, |
| | | getWorkShopCompreLeftTop() { |
| | | const res = [ |
| | | { org_code: '0501', org_name: '装配车间' }, |
| | |
| | | <template> |
| | | <div> |
| | | <div class="kb_dashboard" style="display:flex;flex-direction: column;justify-content: space-between"> |
| | | <div |
| | | class="kb_dashboard" |
| | | :style="{transform:'scale('+zoomX+','+zoomY+')',top:topDistance+'px',left:leftDistance+'px'}" |
| | | style="display:flex;flex-direction: column;justify-content: space-between" |
| | | > |
| | | |
| | | <div class="kb_backgroundCustom" /> |
| | | |
| | |
| | | name: 'Cjsc', |
| | | data() { |
| | | return { |
| | | zoomX: 1, |
| | | zoomY: 1, |
| | | topDistance: 0, |
| | | leftDistance: 0, |
| | | headTime: '', |
| | | |
| | | cjzl03_xData: [], |
| | |
| | | setInterval(() => { |
| | | this.getWorkShopProduceBottomRightData() |
| | | }, 30 * 1000) |
| | | window.addEventListener('resize', this.getHeight) |
| | | this.getHeight() |
| | | }, |
| | | methods: { |
| | | // 获取页面高度 |
| | | getHeight() { |
| | | this.zoomX = window.innerWidth / 1920 |
| | | this.zoomY = window.innerHeight / 1080 |
| | | this.topDistance = (window.innerHeight - 1080) / 2 |
| | | this.leftDistance = (window.innerWidth - 1920) / 2 |
| | | }, |
| | | getWorkShopProduceTopData() { |
| | | WorkShopProduceTopData({ wkshopcode: '0501' }).then(res => { |
| | | const flag = this.compareArrays(this.configTableTop.data, res.data) |
| | |
| | | }
|
| | | }
|
| | | },
|
| | | activated() {
window.addEventListener('resize', this.getHeight)
this.getHeight()
},
created() {
|
| | | activated() { |
| | | window.addEventListener('resize', this.getHeight) |
| | | this.getHeight() |
| | | }, |
| | | created() { |
| | | this.handleRequest()
|
| | | },
|
| | | mounted() {
|
| | |
| | | if (parseFloat(this.dialogForm.noreportqty) < parseFloat(this.dialogForm.startqty) + parseFloat(this.dialogForm.noputqty)) { |
| | | return this.$message.info('合格数量加不良数量不能大于了未报数量!') |
| | | } |
| | | |
| | | if (parseFloat(this.dialogForm.startqty) === 0 && this.defectTableData.length === 0) { |
| | | return this.$message.info('合格数量不能为零!') |
| | | } |
| | | |
| | | let inbarcode = '' |
| | | if (this.tableData.find(i => i.id === this.radioSelected).isend === 'Y') { |
| | | const data1 = { |
| | |
| | | if (parseFloat(this.dialogForm.noreportqty) < parseFloat(this.dialogForm.startqty) + parseFloat(this.dialogForm.noputqty)) { |
| | | return this.$message.info('合格数量加不良数量不能大于了未报数量!') |
| | | } |
| | | |
| | | if (parseFloat(this.dialogForm.startqty) === 0 && this.defectTableData.length === 0) { |
| | | return this.$message.info('合格数量不能为零!') |
| | | } |
| | | |
| | | let inbarcode = '' |
| | | if (this.tableData.find(i => i.id === this.radioSelected).isend === 'Y') { |
| | | const data1 = { |
| | |
| | | }, |
| | | proxy: { |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | target: 'http://121.196.36.24:8039', // 本地 |
| | | // target: 'http://192.168.2.138:8080', // 大岛2.0 |
| | | // target: 'http://121.196.36.24:8039', // 本地 |
| | | target: 'http://192.168.2.138:8080', // 大岛2.0 |
| | | changeOrigin: true, // 请求跨域时,需 配置此项 |
| | | pathRewrite: { // 路径重写,替换target中的请求地址 |
| | | ['^' + process.env.VUE_APP_BASE_API]: '/api/' |