This commit is contained in:
shijing 2024-12-16 11:31:46 +08:00
commit 139c24c9bc
3 changed files with 31 additions and 8 deletions

View File

@ -209,7 +209,7 @@ export default {
},
},
enstat: {
name: "测点原始记录",
name: "工段统计记录",
req: async function(data){
return await http.get(
`${config.API_URL}/enm/enstat/`,
@ -217,6 +217,15 @@ export default {
);
}
},
enstat_update: {
name: "工段统计记录编辑备注",
req: async function(id, data){
return await http.put(
`${config.API_URL}/enm/enstat/${id}/`,
data
);
}
},
analyze: {
name: "一段时间范围的工段分析数据",
req: async function(data){

View File

@ -1379,7 +1379,7 @@ const routes = [
meta: {
title: "生产二部记录",
// icon: "el-icon-cellphone",
perms: ["wpm"],
// perms: ["wpm"],
hidden: true,
},
component: "wpm/worktaskFlog",
@ -1390,7 +1390,7 @@ const routes = [
meta: {
title: "生产二部",
// icon: "el-icon-cellphone",
perms: ["wpm"],
perms: ["mlog_dept6"],
},
children: [
{
@ -2968,7 +2968,7 @@ const routes = [
hidden: true,
},
component: "enm_rm/logDetail",
},
},
{
name: "srule",
path: "/enm_base/srule",
@ -2977,7 +2977,7 @@ const routes = [
perms: ["srule"],
},
component: "mtm/srule",
},
},
],
},
//每月配置
@ -3445,7 +3445,7 @@ const routes = [
},
component: "statistics/task_rate_gx.vue",
},
//人员绩效统计——光芯
//人员绩效统计——光芯
{
path: "/work_statistics",
name: "work_statistics",

View File

@ -38,7 +38,7 @@
>
<thead class="myTableHead">
<tr>
<th colspan="8">车间单位产品电耗月度分析表</th>
<th colspan="9">车间单位产品电耗月度分析表</th>
</tr>
<tr>
<th>月份</th>
@ -49,6 +49,7 @@
<th>当期与环期差值KW·h/t</th>
<th>环比增长率%</th>
<th>同比增长率%</th>
<th>分析说明</th>
</tr>
</thead>
<tbody>
@ -57,8 +58,9 @@
v-for="(item1, ind) in item"
:key="ind"
class="numCell"
:style="{width: ind == 8 ? '300px' : '100px',display: ind == 9 ? 'none' : 'table-cell'}"
>
<div :class="bindClass(item1, ind)">
<div :class="bindClass(item1, ind)" v-if="ind !=8 && ind !=9">
<span v-if="item1 > 0 && ind == 3"
></span
>
@ -73,6 +75,7 @@
>
{{ item1 }}
</div>
<el-input v-else-if="ind == 8" @change="((val)=>{enstatNoteChange(val, item)})" v-model="item[ind]"></el-input>
</td>
</tr>
</tbody>
@ -218,6 +221,8 @@ export default {
that.monthGoal[ind] !== undefined
? that.monthGoal[ind]
: "/";
arr[3] = item.note;
arr[4] = item.id;
wrapArr[ind] = arr;
});
wrapArr.forEach((item, index) => {
@ -288,6 +293,8 @@ export default {
sameRate = "/";
}
arrs[7] = sameRate;
arrs[8] = item[3];
arrs[9] = item[4];
wrapArrs.push(arrs);
});
that.tableDatas = wrapArrs;
@ -311,6 +318,12 @@ export default {
this.$XLSX("#myTable", this.tableName);
this.exportLoading = false;
},
enstatNoteChange(val, item){
this.$API.enm.enstat_update.req(item[9], {"note": val}).then((res)=>{
this.$message.success("修改成功");
}
)
}
},
};
</script>
@ -319,4 +332,5 @@ export default {
width: 100%;
overflow-x: auto;
}
</style>