diff --git a/src/config/route.js b/src/config/route.js index b338df44..9f1deca1 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -3025,7 +3025,7 @@ const routes = [ meta: { title: "黑化车间", icon: "el-icon-trend-charts", - perms: ["bigScreenP_dept10"], + perms: ["bigScreenP_dept_hh"], fullpage: true, }, component: "bigScreen/index_heihuadept.vue", diff --git a/src/views/bigScreen/enpComponents/pollutant.vue b/src/views/bigScreen/enpComponents/pollutant.vue index 4330aaac..2c19a7fd 100644 --- a/src/views/bigScreen/enpComponents/pollutant.vue +++ b/src/views/bigScreen/enpComponents/pollutant.vue @@ -223,6 +223,21 @@
TSP: 0.000 m³/h
+ +
+
+
+
+ 监控设备 +
+
+ + {{ eqj.name }} +
+ + +
+
@@ -255,6 +270,7 @@ export default { eqs: {}, eqc: {}, eqz: {}, + eqj: {}, pollutantDetail: false, query: {}, apiObj: this.$API.enp.drain.list, @@ -316,7 +332,8 @@ export default { } }, mounted() { - + let that = this; + that.init(); }, methods: { initDom() { @@ -363,7 +380,13 @@ export default { that.getDetailData(2, id); } else if (res.type == 30) { //治理设备 that.eqz = res; + that.getDetailData(3, id); + } + else if (res.type == 50) { //监控设备 + debugger; + this.login(res);//监控摄像头 + that.eqj = res; } }) }); @@ -425,6 +448,70 @@ export default { this.pollutantDetail = false; this.detailItem = {}; }, + + //监控摄像头 + //初始化插件 + init() { + + WebVideoCtrl.I_InsertOBJECTPlugin("divPlugin"); + //初始化 + alert(1) + WebVideoCtrl.I_InitPlugin("divPlugin", 200, 200, { + iWndowType: 2, //分裂系数N*N + bWndFull: true, //双击全屏 + cbInitPluginCompleted: function () { + alert(1) + WebVideoCtrl.I_InsertOBJECTPlugin("divPlugin").then(() => { + // 检查插件是否最新 + WebVideoCtrl.I_CheckPluginVersion().then((bFlag) => { + if (bFlag) { + alert("检测到新的插件版本,双击开发包目录里的HCWebSDKPlugin.exe升级!"); + } + }); + }, () => { + alert("插件初始化失败,请确认是否已安装插件;如果未安装,请双击开发包目录里的HCWebSDKPlugin.exe安装!"); + }); + + }, + }); + + }, + + //摄像头登录 + login(jkdata){ + + WebVideoCtrl.I_Login( + jkdata.ip, + 1, + jkdata.port, + jkdata.login_name, + jkdata.login_pwd, + { + async: true, + cgi: 1, + success: (xmlDoc) => { + console.log("登录成功", xmlDoc); + //预览 + WebVideoCtrl.I_StartRealPlay(szIp + "_" + ipPort, { + success: () => { + console.log("预览成功"); + }, + }); + }, + error: (xmlDoc) => { + console.log("登录失败", xmlDoc); + }, + } + ); + } + } } - \ No newline at end of file + + diff --git a/src/views/bigScreen/enpComponents/transport.vue b/src/views/bigScreen/enpComponents/transport.vue index 43e64cb7..78d217c7 100644 --- a/src/views/bigScreen/enpComponents/transport.vue +++ b/src/views/bigScreen/enpComponents/transport.vue @@ -58,27 +58,27 @@ background-color: rgb(4, 50, 83); box-shadow: inset 0px 0px 30px 15px rgb(7, 79, 109)" v-model="dialogFormVisible" title="车辆运输台账详情" > - {{ ysdata.crkbh }} - {{ ysdata.dzbh }} - {{ ysdata.tgfs }} - {{ ysdata.jcsj }} - {{ ysdata.ccsj }} - {{ ysdata.cllx }} - {{ ysdata.clys }} - {{ ysdata.cph }} - {{ ysdata.zcdjsj }} - {{ ysdata.cpsbdm }} - {{ ysdata.clppxh }} - {{ ysdata.fdjhm }} - {{ ysdata.rllx }} - {{ ysdata.pfjd }} - {{ ysdata.syxz }} - {{ ysdata.lwzt }} - {{ ysdata.jcyshwmc }} - {{ ysdata.jchwl }} - {{ ysdata.cchwmc }} - {{ ysdata.cchwl }} - {{ ysdata.cdmc }} + {{ ysdata.crkbh }} + {{ ysdata.dzbh }} + {{ ysdata.tgfs }} + {{ ysdata.jcsj }} + {{ ysdata.ccsj }} + {{ ysdata.cllx }} + {{ ysdata.clys }} + {{ ysdata.cph }} + {{ ysdata.zcdjsj }} + {{ ysdata.cpsbdm }} + {{ ysdata.clppxh }} + {{ ysdata.fdjhm }} + {{ ysdata.rllx }} + {{ ysdata.pfjd }} + {{ ysdata.syxz }} + {{ ysdata.lwzt }} + {{ ysdata.jcyshwmc }} + {{ ysdata.jchwl }} + {{ ysdata.cchwmc }} + {{ ysdata.cchwl }} + {{ ysdata.cdmc }}
diff --git a/src/views/bigScreen/enpComponents/video.vue b/src/views/bigScreen/enpComponents/video.vue index ac64f767..88ce17b6 100644 --- a/src/views/bigScreen/enpComponents/video.vue +++ b/src/views/bigScreen/enpComponents/video.vue @@ -3,18 +3,29 @@
- 登录 - 预览 - 停止预览 - 登出设备 - 销毁设备 - 初始化设备 +
+ 登录 + 预览 + 停止预览 + 登出设备 + 销毁设备 + 初始化设备 + + + + + +
+
diff --git a/src/views/em/equipment.vue b/src/views/em/equipment.vue index f5760a78..217eeba0 100644 --- a/src/views/em/equipment.vue +++ b/src/views/em/equipment.vue @@ -159,7 +159,7 @@ - + - + --> - + @@ -171,9 +171,12 @@ const defaultForm = { process: null, sort: 1, out_rate: 100, + material_in:'', + material_out:'', + hour_work:0, batch_bind: true, - is_autotask: true, - is_count_utask: false, + // is_autotask: true, + // is_count_utask: false, }; export default { props: { @@ -185,7 +188,7 @@ export default { loading: false, mode: "add", //表单数据 - form: defaultForm, + form: Object.assign({}, defaultForm), //验证规则 rules: { process: [ diff --git a/src/views/qm/productCheck.vue b/src/views/qm/productCheck.vue index a46a8cce..f73b0c96 100644 --- a/src/views/qm/productCheck.vue +++ b/src/views/qm/productCheck.vue @@ -31,7 +31,7 @@ {{ workObj.count_sampling }} - + {{item.batch}}、 diff --git a/src/views/qm/products_form.vue b/src/views/qm/products_form.vue index 8da06396..6daa1c6e 100644 --- a/src/views/qm/products_form.vue +++ b/src/views/qm/products_form.vue @@ -291,6 +291,18 @@ > + + + + + - + - + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/statistics/pass_num_gx.vue b/src/views/statistics/pass_num_gx.vue index 79d2f7f8..c8aa0265 100644 --- a/src/views/statistics/pass_num_gx.vue +++ b/src/views/statistics/pass_num_gx.vue @@ -13,7 +13,7 @@ 0) { - let seriesData = [], - nameList = []; + let dataList = [], + nameList = [], + datas = []; tableData.forEach((ite) => { - if (nameList.indexOf(ite.物料名) > -1) { - } else { + if (nameList.indexOf(ite.物料名) > -1) {} else { nameList.push(ite.物料名); - seriesData.push(0); + datas.push([0,0,0,0,0,0,0]); } }); + that.xAxisData = nameList; tableData.forEach((item) => { let indexX = nameList.indexOf(item.物料名); - seriesData[indexX] += item.合格数; + dataList[indexX].push(item); }); + for(let i = 0;i { + let obj = { + data: datas[index], + stack: "Ad", + type: "bar", + barWidth: "15px", + }; + ption.series[index].data = serisData; + }); that.setChart("bachart1", option); } else { that.setChart("bachart1", option); @@ -227,9 +256,7 @@ export default { }); }, handleQuery() { - let that = this; - that.query.end_date = that.query.start_date ; - that.getData(); + this.getWeekDate(this.queryDate); }, handleExport(val) { this.exportLoading = true; @@ -244,10 +271,7 @@ export default { diff --git a/src/views/statistics/statistics_saobian.vue b/src/views/statistics/statistics_saobian.vue new file mode 100644 index 00000000..726b1b94 --- /dev/null +++ b/src/views/statistics/statistics_saobian.vue @@ -0,0 +1,421 @@ + + + + + diff --git a/src/views/statistics/task_rate_gx.vue b/src/views/statistics/task_rate_gx.vue index b96f23c5..9bd3be5c 100644 --- a/src/views/statistics/task_rate_gx.vue +++ b/src/views/statistics/task_rate_gx.vue @@ -30,12 +30,12 @@ - + - + const defaultForm = { - note: "", + mtype: "", + supplier:'', route: "", equipment: "", handle_user: null, work_start_time: "", + work_end_time:'', + note:'', reminder_interval_list: [], }; @@ -251,7 +254,7 @@ export default { show: "查看日志", }, //表单数据 - form: defaultForm, + form: Object.assign({}, defaultForm), //验证规则 rules: { supplier: [ @@ -301,6 +304,7 @@ export default { this.getUser(); this.getSupplier(); this.getEquipment(); + }, methods: { disabledDateFn(time) { diff --git a/src/views/wpm_gx/mlogb_check.vue b/src/views/wpm_gx/mlogb_check.vue index 2fca83e7..1daa9581 100644 --- a/src/views/wpm_gx/mlogb_check.vue +++ b/src/views/wpm_gx/mlogb_check.vue @@ -111,6 +111,18 @@ /> + + + + + + + + @@ -184,12 +250,27 @@ export default { count_n_qp: 0, count_n_swen: 0, count_n_bb: 0, + count_n_xbb:0, count_n_md: 0, count_n_xh: 0, count_n_ps: 0, count_n_qt: 0, count_n_wm: 0, + count_n_zq:0 }, + notokOptions:[ + {name:"划伤",value:'count_n_hs'}, + {name:"气泡",value:'count_n_qp'}, + {name:"水纹",value:'count_n_swen'}, + {name:"崩边",value:'count_n_bb'}, + {name:"小崩边",value:'count_n_xbb'}, + {name:"麻点",value:'count_n_md'}, + {name:"划伤",value:'count_n_xh'}, + {name:"破损",value:'count_n_ps'}, + {name:"其他",value:'count_n_qt'}, + {name:"雾面",value:'count_n_wm'}, + {name:"棕圈",value:'count_n_zq'}, + ], //验证规则 rules: { batch: [ @@ -208,6 +289,7 @@ export default { ], }, options: [], + notokList:[], materialOptions: [], visible: false, isSaveing: false, @@ -225,15 +307,23 @@ export default { Object.assign(this.form, data); console.log(this.form); }, + notok_add(){ + this.notokList.push({file:'',value:0}); + }, + notok_del(index){ + this.notokList.splice(index, 1) + }, countChange() { this.form.count_notok = this.form.count_n_hs + this.form.count_n_qp + this.form.count_n_swen + this.form.count_n_bb + + this.form.count_n_xbb + this.form.count_n_md + this.form.count_n_xh + this.form.count_n_ps + + this.form.count_n_zq + this.form.count_n_qt + this.form.count_n_wm; this.form.count_ok = this.form.count_real - this.form.count_notok; @@ -250,9 +340,11 @@ export default { this.form.count_n_qp + this.form.count_n_swen + this.form.count_n_bb + + this.form.count_n_xbb + this.form.count_n_md + this.form.count_n_xh + this.form.count_n_ps + + this.form.count_n_zq + this.form.count_n_qt + this.form.count_n_wm; let sum = this.form.count_ok + this.form.count_notok; @@ -269,9 +361,7 @@ export default { that.isSaveing = false; }); } else { - this.$message.error( - "使用数量与合格数不合格数数量不对等" - ); + this.$message.error("使用数量与合格数不合格数数量不对等"); } } });