From c25c237cd623ed0a9bba76cf840a044510932368 Mon Sep 17 00:00:00 2001 From: shijing Date: Sat, 11 May 2024 12:47:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=97=A5=E5=BF=97=E6=B5=8B=E7=82=B9?= =?UTF-8?q?=E5=BD=95=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/enm_rm/logDetail.vue | 169 ++++++++++++++++++++++++++++++++- 1 file changed, 164 insertions(+), 5 deletions(-) diff --git a/src/views/enm_rm/logDetail.vue b/src/views/enm_rm/logDetail.vue index 1f2e128a..90701bdc 100644 --- a/src/views/enm_rm/logDetail.vue +++ b/src/views/enm_rm/logDetail.vue @@ -40,6 +40,7 @@ @@ -87,20 +88,22 @@ v-model="form.pcoal_heat" controls-position="right" placeholder="煤粉热值" + style="width: 100%" /> - + - + @@ -115,6 +118,80 @@ > + + + + + + + + + + + + + + + + + + + + 保存 + + + + { + that.mpointOptions = res; + }); + }, + getMpointStat() { + let that = this; + let form = {}; + form.mpoint__type = 30; + form.has_create_by = 1; + form.mgroup = that.mgroupId; + that.$API.enm.mpoint.stat.req(form).then((res) => { + that.mpointStat = res.results; + this.$refs.mpointStatTable.queryData(form); + res.results.forEach((item) => { + let month_s = + item.month_s > 9 ? item.month_s : "0" + item.month_s; + let day_s = item.day_s > 9 ? item.day_s : "0" + item.day_s; + let work_date = item.year_s + "-" + month_s + "-" + day_s; + debugger; + console.log("work_date", work_date); + console.log("that.form.work_date", that.form.work_date); + if (work_date == that.form.work_date) { + that.mpForm.val = item.val; + this.mpFormVal = true; + } + }); + }); + }, + mpointStat_del(row) { + this.$confirm(`确定删除吗?`, "提示", { + type: "warning", + }).then(() => { + this.$API.enm.mpoint.statDelete + .req(row.id) + .then((res) => { + this.$message.success("删除成功"); + that.mpFormVal = false; + this.getMpointStat(); + }) + .catch((err) => { + this.$message.success(err); + }); + }); + }, teamChange(data) { let that = this; that.teamOptions.forEach((item) => { @@ -697,6 +835,8 @@ export default { obj.team = that.form.team; obj.shift = that.form.shift; obj.leader = that.form.leader; + obj.val = that.form.val; + obj.mpoint = that.form.mpoint; obj.pcoal_heat = that.form.pcoal_heat; that.$API.wpm.sflog.update .req(that.form.id, obj) @@ -876,6 +1016,25 @@ export default { this.visible = true; this.sflogExpVisiable = false; }, + submit5() { + let that = this; + that.isSaveing = true; + let obj = {}; + obj.val = that.mpForm.val; + obj.sflog = that.form.id; + obj.mgroup = that.mgroupId; + obj.mpoint = that.mpointOptions[0].id; + that.$API.enm.mpoint.statCreate + .req(obj) + .then((res) => { + that.isSaveing = false; + that.$message.success("操作成功"); + that.mpFormVal = true; + }) + .catch((res) => { + that.isSaveing = false; + }); + }, handlePrint() { this.$PRINT("#myReport"); },