fixed:统一页面筛选框样式
This commit is contained in:
parent
f4bd009948
commit
8beb8b143e
|
@ -43,6 +43,10 @@
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import '@/style/style.scss';
|
@import '@/style/style.scss';
|
||||||
|
.headerSearch{
|
||||||
|
width: 120px!important;
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
.printWrap{
|
.printWrap{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow-x: scroll;
|
overflow-x: scroll;
|
||||||
|
|
|
@ -2,22 +2,20 @@
|
||||||
<el-container>
|
<el-container>
|
||||||
<el-header>
|
<el-header>
|
||||||
<div class="left-panel">
|
<div class="left-panel">
|
||||||
<el-button type="primary" icon="el-icon-plus" @click="add"></el-button>
|
<el-input
|
||||||
</div>
|
|
||||||
<div class="right-panel">
|
|
||||||
<div class="right-panel-search">
|
|
||||||
<el-input
|
|
||||||
v-model="query.search"
|
v-model="query.search"
|
||||||
placeholder="名称"
|
placeholder="名称"
|
||||||
clearable
|
clearable
|
||||||
@keyup.enter="handleQuery"
|
style="margin-right: 5px;"
|
||||||
></el-input>
|
></el-input>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
icon="el-icon-search"
|
icon="el-icon-search"
|
||||||
@click="handleQuery"
|
@click="handleQuery"
|
||||||
></el-button>
|
></el-button>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="right-panel">
|
||||||
|
<el-button type="primary" icon="el-icon-plus" @click="add" v-auth="'equipment.create'"></el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-header>
|
</el-header>
|
||||||
<el-main class="nopadding">
|
<el-main class="nopadding">
|
||||||
|
@ -75,12 +73,15 @@
|
||||||
<el-link
|
<el-link
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="table_edit(scope.row)"
|
@click="table_edit(scope.row)"
|
||||||
|
v-auth="'equipment.update'"
|
||||||
>
|
>
|
||||||
编辑
|
编辑
|
||||||
</el-link>
|
</el-link>
|
||||||
|
<el-divider direction="vertical"></el-divider>
|
||||||
<el-link
|
<el-link
|
||||||
type="danger"
|
type="danger"
|
||||||
@click="table_del(scope.row)"
|
@click="table_del(scope.row)"
|
||||||
|
v-auth="'equipment.delete'"
|
||||||
>
|
>
|
||||||
删除
|
删除
|
||||||
</el-link>
|
</el-link>
|
||||||
|
|
|
@ -6,15 +6,16 @@
|
||||||
v-model="query.search"
|
v-model="query.search"
|
||||||
placeholder="名称"
|
placeholder="名称"
|
||||||
clearable
|
clearable
|
||||||
@keyup.enter="handleQuery"
|
style="margin-right: 5px;"
|
||||||
></el-input>
|
></el-input>
|
||||||
|
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
icon="el-icon-search"
|
icon="el-icon-search"
|
||||||
@click="handleQuery"
|
@click="handleQuery"
|
||||||
></el-button>
|
></el-button>
|
||||||
<el-button type="primary" icon="el-icon-plus" @click="table_add"></el-button>
|
</div>
|
||||||
|
<div class="right-panel">
|
||||||
|
<el-button type="primary" icon="el-icon-plus" @click="table_add" v-auth="'mpoint.create'"></el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-header>
|
</el-header>
|
||||||
<el-main class="nopadding">
|
<el-main class="nopadding">
|
||||||
|
@ -27,11 +28,11 @@
|
||||||
<el-table-column label="创建时间" prop="create_time" min-width="150"></el-table-column>
|
<el-table-column label="创建时间" prop="create_time" min-width="150"></el-table-column>
|
||||||
<el-table-column label="操作" fixed="right" align="center" width="140">
|
<el-table-column label="操作" fixed="right" align="center" width="140">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button link size="small" @click="table_edit(scope.row)" v-auth="'team.update'" type="primary">编辑</el-button>
|
<el-button link size="small" @click="table_edit(scope.row)" v-auth="'mpoint.update'" type="primary">编辑</el-button>
|
||||||
<el-divider direction="vertical"></el-divider>
|
<el-divider direction="vertical"></el-divider>
|
||||||
<el-popconfirm title="确定删除吗?" @confirm="table_del(scope.row, scope.$index)">
|
<el-popconfirm title="确定删除吗?" @confirm="table_del(scope.row, scope.$index)">
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<el-button link size="small" v-auth="'role.delete'" type="danger">删除</el-button>
|
<el-button link size="small" v-auth="'mpoint.delete'" type="danger">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-popconfirm>
|
</el-popconfirm>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -1,143 +1,152 @@
|
||||||
<template>
|
<template>
|
||||||
<el-container>
|
<el-container>
|
||||||
<el-header>
|
<el-header>
|
||||||
<div class="left-panel">
|
<div class="left-panel">
|
||||||
<div style="margin-right: 20px">交接班日志</div>
|
<div style="margin-right: 20px">交接班日志</div>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="query.time"
|
v-model="query.start_time__gte"
|
||||||
type="date"
|
type="date"
|
||||||
value-format="YYYY-MM-DD"
|
value-format="YYYY-MM-DD HH:mm:ss"
|
||||||
format="YYYY-MM-DD"
|
format="YYYY-MM-DD"
|
||||||
placeholder="日志时间"
|
placeholder="开始时间"
|
||||||
/>
|
style=" width: 120px"
|
||||||
<el-select
|
/>
|
||||||
v-model="query.shift"
|
<el-date-picker
|
||||||
placeholder="班次"
|
v-model="query.end_time__lt"
|
||||||
clearable
|
type="date"
|
||||||
style="margin-left: 2px; width: 120px"
|
value-format="YYYY-MM-DD HH:mm:ss"
|
||||||
>
|
format="YYYY-MM-DD"
|
||||||
<el-option
|
placeholder="结束时间"
|
||||||
v-for="item in optionsShift"
|
style="margin-left: 2px; width: 120px"
|
||||||
:key="item.value"
|
/>
|
||||||
:label="item.label"
|
<el-select
|
||||||
:value="item.value"
|
v-model="query.shift"
|
||||||
></el-option>
|
placeholder="班次"
|
||||||
</el-select>
|
clearable
|
||||||
<el-select
|
style="margin-left: 2px; width: 120px"
|
||||||
v-model="query.team"
|
>
|
||||||
placeholder="班组"
|
<el-option
|
||||||
clearable
|
v-for="item in optionsShift"
|
||||||
style="margin-left: 2px; width: 120px"
|
:key="item.id"
|
||||||
>
|
:label="item.name"
|
||||||
<el-option
|
:value="item.id"
|
||||||
v-for="item in options"
|
></el-option>
|
||||||
:key="item.value"
|
</el-select>
|
||||||
:label="item.label"
|
<el-select
|
||||||
:value="item.value"
|
v-model="query.team"
|
||||||
></el-option>
|
placeholder="班组"
|
||||||
</el-select>
|
clearable
|
||||||
<el-button
|
style="margin-left: 2px; width: 120px"
|
||||||
type="primary"
|
>
|
||||||
icon="el-icon-search"
|
<el-option
|
||||||
@click="handleQuery"
|
v-for="item in options"
|
||||||
></el-button>
|
:key="item.id"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.id"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-search"
|
||||||
|
@click="handleQuery"
|
||||||
|
></el-button>
|
||||||
|
</div>
|
||||||
|
</el-header>
|
||||||
|
<el-main class="nopadding">
|
||||||
|
<scTable
|
||||||
|
ref="table"
|
||||||
|
:apiObj="apiObj"
|
||||||
|
row-key="id"
|
||||||
|
stripe
|
||||||
|
:params="query"
|
||||||
|
highlightCurrentRow
|
||||||
|
@row-click="rowClick"
|
||||||
|
>
|
||||||
|
<el-table-column type="index" width="50"/>
|
||||||
|
<!-- <el-table-column label="关联工段" prop="mgroup_name"></el-table-column> -->
|
||||||
|
<el-table-column label="开始时间" prop="start_time">
|
||||||
|
<template #default="scope">
|
||||||
|
<span>{{ scope.row.start_time.slice(0,16)}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="结束时间" prop="end_time">
|
||||||
|
<template #default="scope">
|
||||||
|
<span>{{ scope.row.end_time.slice(0,16)}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="班组名称" prop="team_name"></el-table-column>
|
||||||
|
<el-table-column label="当前班次" prop="shift_name"></el-table-column>
|
||||||
|
<el-table-column label="班长" prop="leader_name"></el-table-column>
|
||||||
|
|
||||||
|
<el-table-column label="检验时间">
|
||||||
|
<template #default="scope">
|
||||||
|
<span v-if="scope.row.last_test_time">{{ scope.row.last_test_time.slice(0,16)}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="操作" fixed="right" align="center" width="140">
|
||||||
|
<template #default="scope">
|
||||||
|
<el-button link size="small" @click="sflog_edit(scope.row)" type="primary">编辑</el-button>
|
||||||
|
<el-button link size="small" @click="sflog_check(scope.row)" type="primary">质量检验</el-button>
|
||||||
|
<el-button link size="small" @click="sflog_other(scope.row)" type="primary">其他能源</el-button>
|
||||||
|
<el-button link size="small" @click="sflog_export(scope.row)" type="success">报表</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</scTable>
|
||||||
|
</el-main>
|
||||||
|
<el-drawer v-model="limitedExport" size="60%" :show-close="false">
|
||||||
|
<template #header="{ close, titleId, titleClass }">
|
||||||
|
<h4 :id="titleId" :class="titleClass">交接班日志</h4>
|
||||||
|
<el-button type="danger" @click="close">
|
||||||
|
<el-icon class="el-icon--left"><CircleCloseFilled /></el-icon>
|
||||||
|
关闭
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
<el-main class="nopadding">
|
||||||
|
<div ref="print" id="myReport" class="printContainer">
|
||||||
|
<div style="margin-right: 20px;text-align: center;font-size: 16px;font-weight: bold;margin-bottom: 20px;">
|
||||||
|
<span v-if="sflogItem.end_time">{{sflogItem.end_time.slice(0,10)}}{{ sflogItem.shift_name }}</span>
|
||||||
|
<span v-if="sflogItem.team_name">{{ sflogItem.team_name }}</span>
|
||||||
|
交接班记录
|
||||||
</div>
|
</div>
|
||||||
</el-header>
|
<h3 style="text-align: center;display: flex;justify-content: space-around;">
|
||||||
<el-main class="nopadding">
|
<span>2023.06.21</span>
|
||||||
<scTable
|
<span>白班</span>
|
||||||
ref="table"
|
<span>甲班</span>
|
||||||
:apiObj="apiObj"
|
</h3>
|
||||||
row-key="id"
|
<table border="1" width="1000" cellspacing="0" :key="timeStamp" id="myTable">
|
||||||
stripe
|
<tbody>
|
||||||
:params="query"
|
<tr>
|
||||||
highlightCurrentRow
|
<td class="numCell">产量(t)</td>
|
||||||
@row-click="rowClick"
|
<td class="numCell">{{value1}}</td>
|
||||||
>
|
<td class="numCell">台时(t/h)</td>
|
||||||
<el-table-column type="index" width="50"/>
|
<td class="numCell">{{value3}}</td>
|
||||||
<!-- <el-table-column label="关联工段" prop="mgroup_name"></el-table-column> -->
|
<td class="numCell">运转时间(h)</td>
|
||||||
<el-table-column label="开始时间" prop="start_time">
|
<td class="numCell">{{value5}}</td>
|
||||||
<template #default="scope">
|
</tr>
|
||||||
<span>{{ scope.row.start_time.slice(0,16)}}</span>
|
<tr>
|
||||||
</template>
|
<td class="numCell">运转率(%)</td>
|
||||||
</el-table-column>
|
<td class="numCell">{{value1}}</td>
|
||||||
<el-table-column label="结束时间" prop="end_time">
|
<td class="numCell">停机时长(h)</td>
|
||||||
<template #default="scope">
|
<td class="numCell">{{value3}}</td>
|
||||||
<span>{{ scope.row.end_time.slice(0,16)}}</span>
|
<td class="numCell">煤磨分布电耗(KW·h/t)</td>
|
||||||
</template>
|
<td class="numCell">{{value5}}</td>
|
||||||
</el-table-column>
|
</tr>
|
||||||
<el-table-column label="班组名称" prop="team_name" width="80"></el-table-column>
|
<tr>
|
||||||
<el-table-column label="当前班次" prop="shift_name" width="80"></el-table-column>
|
<td class="numCell">煤粉细度合格率(%)</td>
|
||||||
<el-table-column label="班长" prop="leader_name" width="80"></el-table-column>
|
<td class="numCell">{{value1}}</td>
|
||||||
|
<td class="numCell">煤粉水分合格率(%)</td>
|
||||||
<el-table-column label="检验时间">
|
<td class="numCell">{{value5}}</td>
|
||||||
<template #default="scope">
|
</tr>
|
||||||
<span v-if="scope.row.last_test_time">{{ scope.row.last_test_time.slice(0,16)}}</span>
|
<tr>
|
||||||
</template>
|
<td class="numCell">生产情况记录</td>
|
||||||
</el-table-column>
|
<td class="numCell" colspan="5">时间、类别、原因、处置措施、处置人</td>
|
||||||
<el-table-column label="操作" fixed="right" align="center" width="140">
|
</tr>
|
||||||
<template #default="scope">
|
</tbody>
|
||||||
<el-button link size="small" @click="sflog_edit(scope.row)" type="primary">编辑</el-button>
|
</table>
|
||||||
<el-button link size="small" @click="sflog_check(scope.row)" type="primary">质量检验</el-button>
|
</div>
|
||||||
<el-button link size="small" @click="sflog_other(scope.row)" type="primary">其他能源</el-button>
|
</el-main>
|
||||||
<el-button link size="small" @click="sflog_export(scope.row)" type="success">报表</el-button>
|
</el-drawer>
|
||||||
</template>
|
</el-container>
|
||||||
</el-table-column>
|
|
||||||
</scTable>
|
|
||||||
</el-main>
|
|
||||||
<el-drawer v-model="limitedExport" size="60%" :show-close="false">
|
|
||||||
<template #header="{ close, titleId, titleClass }">
|
|
||||||
<h4 :id="titleId" :class="titleClass">交接班日志</h4>
|
|
||||||
<el-button type="danger" @click="close">
|
|
||||||
<el-icon class="el-icon--left"><CircleCloseFilled /></el-icon>
|
|
||||||
关闭
|
|
||||||
</el-button>
|
|
||||||
</template>
|
|
||||||
<el-main class="nopadding">
|
|
||||||
<div ref="print" id="myReport" class="printContainer">
|
|
||||||
<div style="margin-right: 20px;text-align: center;font-size: 16px;font-weight: bold;margin-bottom: 20px;">
|
|
||||||
<span v-if="sflogItem.end_time">{{sflogItem.end_time.slice(0,10)}}{{ sflogItem.shift_name }}</span>
|
|
||||||
<span v-if="sflogItem.team_name">{{ sflogItem.team_name }}</span>
|
|
||||||
交接班记录
|
|
||||||
</div>
|
|
||||||
<h3 style="text-align: center;display: flex;justify-content: space-around;">
|
|
||||||
<span>2023.06.21</span>
|
|
||||||
<span>白班</span>
|
|
||||||
<span>甲班</span>
|
|
||||||
</h3>
|
|
||||||
<table border="1" width="1000" cellspacing="0" :key="timeStamp" id="myTable">
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td class="numCell">产量(t)</td>
|
|
||||||
<td class="numCell">{{value1}}</td>
|
|
||||||
<td class="numCell">台时(t/h)</td>
|
|
||||||
<td class="numCell">{{value3}}</td>
|
|
||||||
<td class="numCell">运转时间(h)</td>
|
|
||||||
<td class="numCell">{{value5}}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="numCell">运转率(%)</td>
|
|
||||||
<td class="numCell">{{value1}}</td>
|
|
||||||
<td class="numCell">停机时长(h)</td>
|
|
||||||
<td class="numCell">{{value3}}</td>
|
|
||||||
<td class="numCell">煤磨分布电耗(KW·h/t)</td>
|
|
||||||
<td class="numCell">{{value5}}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="numCell">煤粉细度合格率(%)</td>
|
|
||||||
<td class="numCell">{{value1}}</td>
|
|
||||||
<td class="numCell">煤粉水分合格率(%)</td>
|
|
||||||
<td class="numCell">{{value5}}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="numCell">生产情况记录</td>
|
|
||||||
<td class="numCell" colspan="5">时间、类别、原因、处置措施、处置人</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</el-main>
|
|
||||||
</el-drawer>
|
|
||||||
</el-container>
|
|
||||||
<save-dialog
|
<save-dialog
|
||||||
v-if="dialog.save"
|
v-if="dialog.save"
|
||||||
ref="saveDialog"
|
ref="saveDialog"
|
||||||
|
@ -157,8 +166,8 @@
|
||||||
@success="handleCheckSuccess"
|
@success="handleCheckSuccess"
|
||||||
@closed="dialog.save = false"
|
@closed="dialog.save = false"
|
||||||
></quastat-dialog>
|
></quastat-dialog>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import saveDialog from "./../enm_rm/handover_form.vue";
|
import saveDialog from "./../enm_rm/handover_form.vue";
|
||||||
import quastatDialog from "./../enm_rm/quastat_form.vue";
|
import quastatDialog from "./../enm_rm/quastat_form.vue";
|
||||||
import otherDialog from "./../enm_rm/other_form.vue";
|
import otherDialog from "./../enm_rm/other_form.vue";
|
||||||
|
@ -174,6 +183,10 @@
|
||||||
apiObj: this.$API.wpm.sflog.list,
|
apiObj: this.$API.wpm.sflog.list,
|
||||||
apiObj2: null,
|
apiObj2: null,
|
||||||
query: {
|
query: {
|
||||||
|
shift:'',
|
||||||
|
team:'',
|
||||||
|
end_time__lt:'',
|
||||||
|
start_time__gte:'',
|
||||||
mgroup:'3347217512021835776',
|
mgroup:'3347217512021835776',
|
||||||
},
|
},
|
||||||
deptId :'3347207082608115712',
|
deptId :'3347207082608115712',
|
||||||
|
@ -197,8 +210,27 @@
|
||||||
limitedExport:false,
|
limitedExport:false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
mounted(){
|
||||||
|
this.getTeam();
|
||||||
|
this.getShfit();
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getTeam(){
|
||||||
|
let form ={};
|
||||||
|
form.page = 0;
|
||||||
|
form.belong_dept = this.deptId;
|
||||||
|
this.$API.mtm.team.list.req(form).then(res=>{
|
||||||
|
this.options = res;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getShfit(){
|
||||||
|
this.$API.mtm.shift.req({page:0}).then(res=>{
|
||||||
|
this.optionsShift = res;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleQuery(){
|
||||||
|
this.$refs.table.queryData(this.query);
|
||||||
|
},
|
||||||
sflog_export(){
|
sflog_export(){
|
||||||
this.limitedExport = true;
|
this.limitedExport = true;
|
||||||
},
|
},
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
value-format="YYYY"
|
value-format="YYYY"
|
||||||
format="YYYY"
|
format="YYYY"
|
||||||
placeholder="查询年份"
|
placeholder="查询年份"
|
||||||
style="margin-right: 6px;"
|
class="headerSearch"
|
||||||
/>
|
/>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
value-format="YYYY"
|
value-format="YYYY"
|
||||||
format="YYYY"
|
format="YYYY"
|
||||||
placeholder="查询年份"
|
placeholder="查询年份"
|
||||||
style="margin-right: 6px;"
|
class="headerSearch"
|
||||||
/>
|
/>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
|
|
|
@ -1,160 +1,169 @@
|
||||||
<template>
|
<template>
|
||||||
<el-container>
|
<el-container>
|
||||||
<el-header>
|
<el-header>
|
||||||
<div class="left-panel">
|
<div class="left-panel">
|
||||||
<div style="margin-right: 20px">交接班日志</div>
|
<div style="margin-right: 20px">交接班日志</div>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="query.time"
|
v-model="query.start_time__gte"
|
||||||
type="date"
|
type="date"
|
||||||
value-format="YYYY-MM-DD"
|
value-format="YYYY-MM-DD HH:mm:ss"
|
||||||
format="YYYY-MM-DD"
|
format="YYYY-MM-DD"
|
||||||
placeholder="日志时间"
|
placeholder="开始时间"
|
||||||
/>
|
style=" width: 120px"
|
||||||
<el-select
|
/>
|
||||||
v-model="query.shift"
|
<el-date-picker
|
||||||
placeholder="班次"
|
v-model="query.end_time__lt"
|
||||||
clearable
|
type="date"
|
||||||
style="margin-left: 2px; width: 120px"
|
value-format="YYYY-MM-DD HH:mm:ss"
|
||||||
>
|
format="YYYY-MM-DD"
|
||||||
<el-option
|
placeholder="结束时间"
|
||||||
v-for="item in optionsShift"
|
style="margin-left: 2px; width: 120px"
|
||||||
:key="item.value"
|
/>
|
||||||
:label="item.label"
|
<el-select
|
||||||
:value="item.value"
|
v-model="query.shift"
|
||||||
></el-option>
|
placeholder="班次"
|
||||||
</el-select>
|
clearable
|
||||||
<el-select
|
style="margin-left: 2px; width: 120px"
|
||||||
v-model="query.team"
|
>
|
||||||
placeholder="班组"
|
<el-option
|
||||||
clearable
|
v-for="item in optionsShift"
|
||||||
style="margin-left: 2px; width: 120px"
|
:key="item.id"
|
||||||
>
|
:label="item.name"
|
||||||
<el-option
|
:value="item.id"
|
||||||
v-for="item in options"
|
></el-option>
|
||||||
:key="item.value"
|
</el-select>
|
||||||
:label="item.label"
|
<el-select
|
||||||
:value="item.value"
|
v-model="query.team"
|
||||||
></el-option>
|
placeholder="班组"
|
||||||
</el-select>
|
clearable
|
||||||
<el-button
|
style="margin-left: 2px; width: 120px"
|
||||||
type="primary"
|
>
|
||||||
icon="el-icon-search"
|
<el-option
|
||||||
@click="handleQuery"
|
v-for="item in options"
|
||||||
></el-button>
|
:key="item.id"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.id"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
icon="el-icon-search"
|
||||||
|
@click="handleQuery"
|
||||||
|
></el-button>
|
||||||
|
</div>
|
||||||
|
</el-header>
|
||||||
|
<el-main class="nopadding">
|
||||||
|
<scTable
|
||||||
|
ref="table"
|
||||||
|
:apiObj="apiObj"
|
||||||
|
row-key="id"
|
||||||
|
stripe
|
||||||
|
:params="query"
|
||||||
|
highlightCurrentRow
|
||||||
|
@row-click="rowClick"
|
||||||
|
>
|
||||||
|
<el-table-column type="index" width="50"/>
|
||||||
|
<!-- <el-table-column label="关联工段" prop="mgroup_name"></el-table-column> -->
|
||||||
|
<el-table-column label="开始时间" prop="start_time">
|
||||||
|
<template #default="scope">
|
||||||
|
<span>{{ scope.row.start_time.slice(0,16)}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="结束时间" prop="end_time">
|
||||||
|
<template #default="scope">
|
||||||
|
<span>{{ scope.row.end_time.slice(0,16)}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="班组名称" prop="team_name" width="80"></el-table-column>
|
||||||
|
<el-table-column label="当前班次" prop="shift_name" width="80"></el-table-column>
|
||||||
|
<el-table-column label="班长" prop="leader_name" width="80"></el-table-column>
|
||||||
|
|
||||||
|
<el-table-column label="检验时间">
|
||||||
|
<template #default="scope">
|
||||||
|
<span v-if="scope.row.last_test_time">{{ scope.row.last_test_time.slice(0,16)}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="操作" fixed="right" align="center" width="140">
|
||||||
|
<template #default="scope">
|
||||||
|
<el-button link size="small" @click="sflog_edit(scope.row)" type="primary">编辑</el-button>
|
||||||
|
<el-button link size="small" @click="sflog_check(scope.row)" type="primary">质量检验</el-button>
|
||||||
|
<el-button link size="small" @click="sflog_other(scope.row)" type="primary">其他能源</el-button>
|
||||||
|
<el-button link size="small" @click="sflog_export(scope.row)" type="success">报表</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</scTable>
|
||||||
|
</el-main>
|
||||||
|
<el-drawer v-model="limitedExport" size="60%" :show-close="false">
|
||||||
|
<template #header="{ close, titleId, titleClass }">
|
||||||
|
<h4 :id="titleId" :class="titleClass">交接班日志</h4>
|
||||||
|
<el-button type="danger" @click="close">
|
||||||
|
<el-icon class="el-icon--left"><CircleCloseFilled /></el-icon>
|
||||||
|
关闭
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
<el-main class="nopadding">
|
||||||
|
<div ref="print" id="myReport" class="printContainer">
|
||||||
|
<div style="margin-right: 20px;text-align: center;font-size: 16px;font-weight: bold;margin-bottom: 20px;">
|
||||||
|
<span v-if="sflogItem.end_time">{{sflogItem.end_time.slice(0,10)}}{{ sflogItem.shift_name }}</span>
|
||||||
|
<span v-if="sflogItem.team_name">{{ sflogItem.team_name }}</span>
|
||||||
|
交接班记录
|
||||||
</div>
|
</div>
|
||||||
</el-header>
|
<h3 style="text-align: center;display: flex;justify-content: space-around;">
|
||||||
<el-main class="nopadding">
|
<span>2023.06.21</span>
|
||||||
<scTable
|
<span>白班</span>
|
||||||
ref="table"
|
<span>甲班</span>
|
||||||
:apiObj="apiObj"
|
</h3>
|
||||||
row-key="id"
|
<table border="1" width="1000" cellspacing="0" :key="timeStamp" id="myTable">
|
||||||
stripe
|
<tbody>
|
||||||
:params="query"
|
<tr>
|
||||||
highlightCurrentRow
|
<td class="numCell">产量(t)</td>
|
||||||
@row-click="rowClick"
|
<td class="numCell">{{value1}}</td>
|
||||||
>
|
<td class="numCell">台时(t/h)</td>
|
||||||
<el-table-column type="index" width="50"/>
|
<td class="numCell">{{value3}}</td>
|
||||||
<!-- <el-table-column label="关联工段" prop="mgroup_name"></el-table-column> -->
|
<td class="numCell">运转时间(h)</td>
|
||||||
<el-table-column label="开始时间" prop="start_time">
|
<td class="numCell">{{value5}}</td>
|
||||||
<template #default="scope">
|
</tr>
|
||||||
<span>{{ scope.row.start_time.slice(0,16)}}</span>
|
<tr>
|
||||||
</template>
|
<td class="numCell">运转率(%)</td>
|
||||||
</el-table-column>
|
<td class="numCell">{{value1}}</td>
|
||||||
<el-table-column label="结束时间" prop="end_time">
|
<td class="numCell">停机时长(h)</td>
|
||||||
<template #default="scope">
|
<td class="numCell">{{value3}}</td>
|
||||||
<span>{{ scope.row.end_time.slice(0,16)}}</span>
|
<td class="numCell">单位产品分布电耗(KW·h/t)</td>
|
||||||
</template>
|
<td class="numCell">{{value5}}</td>
|
||||||
</el-table-column>
|
</tr>
|
||||||
<el-table-column label="班组名称" prop="team_name" width="80"></el-table-column>
|
<tr>
|
||||||
<el-table-column label="当前班次" prop="shift_name" width="80"></el-table-column>
|
<td class="numCell">单位产品标煤耗(kgce/t)</td>
|
||||||
<el-table-column label="班长" prop="leader_name" width="80"></el-table-column>
|
<td class="numCell">{{value1}}</td>
|
||||||
|
<td class="numCell">熟料立升重合格率</td>
|
||||||
<el-table-column label="检验时间">
|
<td class="numCell">{{value3}}</td>
|
||||||
<template #default="scope">
|
<td class="numCell">熟料f-CaO合格率</td>
|
||||||
<span v-if="scope.row.last_test_time">{{ scope.row.last_test_time.slice(0,16)}}</span>
|
<td class="numCell">{{value5}}</td>
|
||||||
</template>
|
</tr>
|
||||||
</el-table-column>
|
<tr>
|
||||||
<el-table-column label="操作" fixed="right" align="center" width="140">
|
<td class="numCell">入窑生料细度合格率(%)</td>
|
||||||
<template #default="scope">
|
<td class="numCell">{{value5}}</td>
|
||||||
<el-button link size="small" @click="sflog_edit(scope.row)" type="primary">编辑</el-button>
|
<td class="numCell">入窑生料CaO合格率(%)</td>
|
||||||
<el-button link size="small" @click="sflog_check(scope.row)" type="primary">质量检验</el-button>
|
<td class="numCell">{{value1}}</td>
|
||||||
<el-button link size="small" @click="sflog_other(scope.row)" type="primary">其他能源</el-button>
|
<td class="numCell">入窑生料Fe₂O₃合格率(%)</td>
|
||||||
<el-button link size="small" @click="sflog_export(scope.row)" type="success">报表</el-button>
|
<td class="numCell">{{value3}}</td>
|
||||||
</template>
|
</tr>
|
||||||
</el-table-column>
|
<tr>
|
||||||
</scTable>
|
<td class="numCell">入窑生料水分合格率(%)</td>
|
||||||
</el-main>
|
<td class="numCell">{{value1}}</td>
|
||||||
<el-drawer v-model="limitedExport" size="60%" :show-close="false">
|
<td class="numCell">单位成本(元/吨)</td>
|
||||||
<template #header="{ close, titleId, titleClass }">
|
<td class="numCell">{{value3}}</td>
|
||||||
<h4 :id="titleId" :class="titleClass">交接班日志</h4>
|
<td class="numCell"></td>
|
||||||
<el-button type="danger" @click="close">
|
<td class="numCell"></td>
|
||||||
<el-icon class="el-icon--left"><CircleCloseFilled /></el-icon>
|
</tr>
|
||||||
关闭
|
<tr>
|
||||||
</el-button>
|
<td class="numCell">生产情况记录</td>
|
||||||
</template>
|
<td class="numCell" colspan="5">时间、类别、原因、处置措施、处置人</td>
|
||||||
<el-main class="nopadding">
|
</tr>
|
||||||
<div ref="print" id="myReport" class="printContainer">
|
</tbody>
|
||||||
<div style="margin-right: 20px;text-align: center;font-size: 16px;font-weight: bold;margin-bottom: 20px;">
|
</table>
|
||||||
<span v-if="sflogItem.end_time">{{sflogItem.end_time.slice(0,10)}}{{ sflogItem.shift_name }}</span>
|
</div>
|
||||||
<span v-if="sflogItem.team_name">{{ sflogItem.team_name }}</span>
|
</el-main>
|
||||||
交接班记录
|
</el-drawer>
|
||||||
</div>
|
|
||||||
<h3 style="text-align: center;display: flex;justify-content: space-around;">
|
|
||||||
<span>2023.06.21</span>
|
|
||||||
<span>白班</span>
|
|
||||||
<span>甲班</span>
|
|
||||||
</h3>
|
|
||||||
<table border="1" width="1000" cellspacing="0" :key="timeStamp" id="myTable">
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td class="numCell">产量(t)</td>
|
|
||||||
<td class="numCell">{{value1}}</td>
|
|
||||||
<td class="numCell">台时(t/h)</td>
|
|
||||||
<td class="numCell">{{value3}}</td>
|
|
||||||
<td class="numCell">运转时间(h)</td>
|
|
||||||
<td class="numCell">{{value5}}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="numCell">运转率(%)</td>
|
|
||||||
<td class="numCell">{{value1}}</td>
|
|
||||||
<td class="numCell">停机时长(h)</td>
|
|
||||||
<td class="numCell">{{value3}}</td>
|
|
||||||
<td class="numCell">单位产品分布电耗(KW·h/t)</td>
|
|
||||||
<td class="numCell">{{value5}}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="numCell">单位产品标煤耗(kgce/t)</td>
|
|
||||||
<td class="numCell">{{value1}}</td>
|
|
||||||
<td class="numCell">熟料立升重合格率</td>
|
|
||||||
<td class="numCell">{{value3}}</td>
|
|
||||||
<td class="numCell">熟料f-CaO合格率</td>
|
|
||||||
<td class="numCell">{{value5}}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="numCell">入窑生料细度合格率(%)</td>
|
|
||||||
<td class="numCell">{{value5}}</td>
|
|
||||||
<td class="numCell">入窑生料CaO合格率(%)</td>
|
|
||||||
<td class="numCell">{{value1}}</td>
|
|
||||||
<td class="numCell">入窑生料Fe₂O₃合格率(%)</td>
|
|
||||||
<td class="numCell">{{value3}}</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="numCell">入窑生料水分合格率(%)</td>
|
|
||||||
<td class="numCell">{{value1}}</td>
|
|
||||||
<td class="numCell">单位成本(元/吨)</td>
|
|
||||||
<td class="numCell">{{value3}}</td>
|
|
||||||
<td class="numCell"></td>
|
|
||||||
<td class="numCell"></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="numCell">生产情况记录</td>
|
|
||||||
<td class="numCell" colspan="5">时间、类别、原因、处置措施、处置人</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</el-main>
|
|
||||||
</el-drawer>
|
|
||||||
</el-container>
|
</el-container>
|
||||||
<save-dialog
|
<save-dialog
|
||||||
v-if="dialog.save"
|
v-if="dialog.save"
|
||||||
|
@ -193,6 +202,10 @@ import otherDialog from "./../enm_rm/other_form.vue";
|
||||||
apiObj: this.$API.wpm.sflog.list,
|
apiObj: this.$API.wpm.sflog.list,
|
||||||
apiObj2: null,
|
apiObj2: null,
|
||||||
query: {
|
query: {
|
||||||
|
shift:'',
|
||||||
|
team:'',
|
||||||
|
end_time__lt:'',
|
||||||
|
start_time__gte:'',
|
||||||
mgroup:'3347217246321065984',
|
mgroup:'3347217246321065984',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -217,8 +230,27 @@ import otherDialog from "./../enm_rm/other_form.vue";
|
||||||
limitedExport:false,
|
limitedExport:false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
mounted(){
|
||||||
|
this.getTeam();
|
||||||
|
this.getShfit();
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getTeam(){
|
||||||
|
let form ={};
|
||||||
|
form.page = 0;
|
||||||
|
form.belong_dept = this.deptId;
|
||||||
|
this.$API.mtm.team.list.req(form).then(res=>{
|
||||||
|
this.options = res;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getShfit(){
|
||||||
|
this.$API.mtm.shift.req({page:0}).then(res=>{
|
||||||
|
this.optionsShift = res;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleQuery(){
|
||||||
|
this.$refs.table.queryData(this.query);
|
||||||
|
},
|
||||||
sflog_export(){
|
sflog_export(){
|
||||||
this.limitedExport = true;
|
this.limitedExport = true;
|
||||||
},
|
},
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
value-format="YYYY"
|
value-format="YYYY"
|
||||||
format="YYYY"
|
format="YYYY"
|
||||||
placeholder="查询年份"
|
placeholder="查询年份"
|
||||||
style="margin-right: 6px;"
|
class="headerSearch"
|
||||||
/>
|
/>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
value-format="YYYY"
|
value-format="YYYY"
|
||||||
format="YYYY"
|
format="YYYY"
|
||||||
placeholder="查询年份"
|
placeholder="查询年份"
|
||||||
style="margin-right: 6px;"
|
class="headerSearch"
|
||||||
/>
|
/>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
|
|
|
@ -4,38 +4,47 @@
|
||||||
<div class="left-panel">
|
<div class="left-panel">
|
||||||
<div style="margin-right: 20px">交接班日志</div>
|
<div style="margin-right: 20px">交接班日志</div>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="query.time"
|
v-model="query.start_time__gte"
|
||||||
type="date"
|
type="date"
|
||||||
value-format="YYYY-MM-DD"
|
value-format="YYYY-MM-DD HH:mm:ss"
|
||||||
format="YYYY-MM-DD"
|
format="YYYY-MM-DD"
|
||||||
placeholder="日志时间"
|
placeholder="开始时间"
|
||||||
/>
|
style=" width: 120px"
|
||||||
<el-select
|
/>
|
||||||
v-model="query.shift"
|
<el-date-picker
|
||||||
placeholder="班次"
|
v-model="query.end_time__lt"
|
||||||
clearable
|
type="date"
|
||||||
style="margin-left: 2px; width: 120px"
|
value-format="YYYY-MM-DD HH:mm:ss"
|
||||||
>
|
format="YYYY-MM-DD"
|
||||||
<el-option
|
placeholder="结束时间"
|
||||||
v-for="item in optionsShift"
|
style="margin-left: 2px; width: 120px"
|
||||||
:key="item.value"
|
/>
|
||||||
:label="item.label"
|
<el-select
|
||||||
:value="item.value"
|
v-model="query.shift"
|
||||||
></el-option>
|
placeholder="班次"
|
||||||
</el-select>
|
clearable
|
||||||
<el-select
|
style="margin-left: 2px; width: 120px"
|
||||||
v-model="query.team"
|
>
|
||||||
placeholder="班组"
|
<el-option
|
||||||
clearable
|
v-for="item in optionsShift"
|
||||||
style="margin-left: 2px; width: 120px"
|
:key="item.id"
|
||||||
>
|
:label="item.name"
|
||||||
<el-option
|
:value="item.id"
|
||||||
v-for="item in options"
|
></el-option>
|
||||||
:key="item.value"
|
</el-select>
|
||||||
:label="item.label"
|
<el-select
|
||||||
:value="item.value"
|
v-model="query.team"
|
||||||
></el-option>
|
placeholder="班组"
|
||||||
</el-select>
|
clearable
|
||||||
|
style="margin-left: 2px; width: 120px"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in options"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.id"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
icon="el-icon-search"
|
icon="el-icon-search"
|
||||||
|
@ -174,6 +183,10 @@
|
||||||
apiObj: this.$API.wpm.sflog.list,
|
apiObj: this.$API.wpm.sflog.list,
|
||||||
apiObj2: null,
|
apiObj2: null,
|
||||||
query: {
|
query: {
|
||||||
|
shift:'',
|
||||||
|
team:'',
|
||||||
|
end_time__lt:'',
|
||||||
|
start_time__gte:'',
|
||||||
mgroup:'3347217651339837440',
|
mgroup:'3347217651339837440',
|
||||||
},
|
},
|
||||||
deptId:'3347207316583170048',
|
deptId:'3347207316583170048',
|
||||||
|
@ -197,8 +210,27 @@
|
||||||
limitedExport:false,
|
limitedExport:false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
mounted(){
|
||||||
|
this.getTeam();
|
||||||
|
this.getShfit();
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getTeam(){
|
||||||
|
let form ={};
|
||||||
|
form.page = 0;
|
||||||
|
form.belong_dept = this.deptId;
|
||||||
|
this.$API.mtm.team.list.req(form).then(res=>{
|
||||||
|
this.options = res;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getShfit(){
|
||||||
|
this.$API.mtm.shift.req({page:0}).then(res=>{
|
||||||
|
this.optionsShift = res;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleQuery(){
|
||||||
|
this.$refs.table.queryData(this.query);
|
||||||
|
},
|
||||||
sflog_export(){
|
sflog_export(){
|
||||||
this.limitedExport = true;
|
this.limitedExport = true;
|
||||||
},
|
},
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
value-format="YYYY"
|
value-format="YYYY"
|
||||||
format="YYYY"
|
format="YYYY"
|
||||||
placeholder="查询年份"
|
placeholder="查询年份"
|
||||||
style="margin-right: 6px;"
|
class="headerSearch"
|
||||||
/>
|
/>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
value-format="YYYY"
|
value-format="YYYY"
|
||||||
format="YYYY"
|
format="YYYY"
|
||||||
placeholder="查询年份"
|
placeholder="查询年份"
|
||||||
style="margin-right: 6px;"
|
class="headerSearch"
|
||||||
/>
|
/>
|
||||||
<el-select
|
<el-select
|
||||||
v-model="query.type"
|
v-model="query.type"
|
||||||
|
|
|
@ -1,89 +1,98 @@
|
||||||
<template>
|
<template>
|
||||||
<el-container>
|
<el-container>
|
||||||
<el-header>
|
<el-header>
|
||||||
<div class="left-panel">
|
<div class="left-panel">
|
||||||
<div style="margin-right: 20px">交接班日志</div>
|
<div style="margin-right: 20px">交接班日志</div>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="query.time"
|
v-model="query.start_time__gte"
|
||||||
type="date"
|
type="date"
|
||||||
value-format="YYYY-MM-DD"
|
value-format="YYYY-MM-DD HH:mm:ss"
|
||||||
format="YYYY-MM-DD"
|
format="YYYY-MM-DD"
|
||||||
placeholder="日志时间"
|
placeholder="开始时间"
|
||||||
/>
|
style=" width: 120px"
|
||||||
<el-select
|
/>
|
||||||
v-model="query.shift"
|
<el-date-picker
|
||||||
placeholder="班次"
|
v-model="query.end_time__lt"
|
||||||
clearable
|
type="date"
|
||||||
style="margin-left: 2px; width: 120px"
|
value-format="YYYY-MM-DD HH:mm:ss"
|
||||||
>
|
format="YYYY-MM-DD"
|
||||||
<el-option
|
placeholder="结束时间"
|
||||||
v-for="item in optionsShift"
|
style="margin-left: 2px; width: 120px"
|
||||||
:key="item.value"
|
/>
|
||||||
:label="item.label"
|
<el-select
|
||||||
:value="item.value"
|
v-model="query.shift"
|
||||||
></el-option>
|
placeholder="班次"
|
||||||
</el-select>
|
clearable
|
||||||
<el-select
|
style="margin-left: 2px; width: 120px"
|
||||||
v-model="query.team"
|
>
|
||||||
placeholder="班组"
|
<el-option
|
||||||
clearable
|
v-for="item in optionsShift"
|
||||||
style="margin-left: 2px; width: 120px"
|
:key="item.id"
|
||||||
>
|
:label="item.name"
|
||||||
<el-option
|
:value="item.id"
|
||||||
v-for="item in options"
|
></el-option>
|
||||||
:key="item.value"
|
</el-select>
|
||||||
:label="item.label"
|
<el-select
|
||||||
:value="item.value"
|
v-model="query.team"
|
||||||
></el-option>
|
placeholder="班组"
|
||||||
</el-select>
|
clearable
|
||||||
<el-button
|
style="margin-left: 2px; width: 120px"
|
||||||
type="primary"
|
>
|
||||||
icon="el-icon-search"
|
<el-option
|
||||||
@click="handleQuery"
|
v-for="item in options"
|
||||||
></el-button>
|
:key="item.id"
|
||||||
</div>
|
:label="item.name"
|
||||||
</el-header>
|
:value="item.id"
|
||||||
<el-main class="nopadding">
|
></el-option>
|
||||||
<scTable
|
</el-select>
|
||||||
ref="table"
|
<el-button
|
||||||
:apiObj="apiObj"
|
type="primary"
|
||||||
row-key="id"
|
icon="el-icon-search"
|
||||||
stripe
|
@click="handleQuery"
|
||||||
:params="query"
|
></el-button>
|
||||||
highlightCurrentRow
|
</div>
|
||||||
@row-click="rowClick"
|
</el-header>
|
||||||
>
|
<el-main class="nopadding">
|
||||||
<el-table-column type="index" width="50"/>
|
<scTable
|
||||||
<!-- <el-table-column label="关联工段" prop="mgroup_name"></el-table-column> -->
|
ref="table"
|
||||||
<el-table-column label="开始时间" prop="start_time">
|
:apiObj="apiObj"
|
||||||
<template #default="scope">
|
row-key="id"
|
||||||
<span>{{ scope.row.start_time.slice(0,16)}}</span>
|
stripe
|
||||||
</template>
|
:params="query"
|
||||||
</el-table-column>
|
highlightCurrentRow
|
||||||
<el-table-column label="结束时间" prop="end_time">
|
@row-click="rowClick"
|
||||||
<template #default="scope">
|
>
|
||||||
<span>{{ scope.row.end_time.slice(0,16)}}</span>
|
<el-table-column type="index" width="50"/>
|
||||||
</template>
|
<!-- <el-table-column label="关联工段" prop="mgroup_name"></el-table-column> -->
|
||||||
</el-table-column>
|
<el-table-column label="开始时间" prop="start_time">
|
||||||
<el-table-column label="班组名称" prop="team_name"></el-table-column>
|
|
||||||
<el-table-column label="当前班次" prop="shift_name"></el-table-column>
|
|
||||||
<el-table-column label="班长" prop="leader_name"></el-table-column>
|
|
||||||
|
|
||||||
<el-table-column label="检验时间">
|
|
||||||
<template #default="scope">
|
|
||||||
<span v-if="scope.row.last_test_time">{{ scope.row.last_test_time.slice(0,16)}}</span>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="操作" fixed="right" align="center" width="100">
|
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button link size="small" @click="sflog_edit(scope.row)" type="primary">编辑</el-button>
|
<span>{{ scope.row.start_time.slice(0,16)}}</span>
|
||||||
<!-- <el-button link size="small" @click="sflog_check(scope.row)" type="primary">质量检验</el-button> -->
|
|
||||||
<!-- <el-button link size="small" @click="sflog_other(scope.row)" type="primary">其他能源</el-button> -->
|
|
||||||
<el-button link size="small" @click="sflog_export(scope.row)" type="success">报表</el-button>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</scTable>
|
<el-table-column label="结束时间" prop="end_time">
|
||||||
</el-main>
|
<template #default="scope">
|
||||||
|
<span>{{ scope.row.end_time.slice(0,16)}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="班组名称" prop="team_name"></el-table-column>
|
||||||
|
<el-table-column label="当前班次" prop="shift_name"></el-table-column>
|
||||||
|
<el-table-column label="班长" prop="leader_name"></el-table-column>
|
||||||
|
|
||||||
|
<el-table-column label="检验时间">
|
||||||
|
<template #default="scope">
|
||||||
|
<span v-if="scope.row.last_test_time">{{ scope.row.last_test_time.slice(0,16)}}</span>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="操作" fixed="right" align="center" width="100">
|
||||||
|
<template #default="scope">
|
||||||
|
<el-button link size="small" @click="sflog_edit(scope.row)" type="primary">编辑</el-button>
|
||||||
|
<!-- <el-button link size="small" @click="sflog_check(scope.row)" type="primary">质量检验</el-button> -->
|
||||||
|
<!-- <el-button link size="small" @click="sflog_other(scope.row)" type="primary">其他能源</el-button> -->
|
||||||
|
<el-button link size="small" @click="sflog_export(scope.row)" type="success">报表</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</scTable>
|
||||||
|
</el-main>
|
||||||
<el-drawer v-model="limitedExport" size="60%" :show-close="false">
|
<el-drawer v-model="limitedExport" size="60%" :show-close="false">
|
||||||
<template #header="{ close, titleId, titleClass }">
|
<template #header="{ close, titleId, titleClass }">
|
||||||
<h4 :id="titleId" :class="titleClass">交接班日志</h4>
|
<h4 :id="titleId" :class="titleClass">交接班日志</h4>
|
||||||
|
@ -171,8 +180,27 @@ import saveDialog from "./../enm_rm/handover_form.vue";
|
||||||
limitedExport:false,
|
limitedExport:false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
mounted(){
|
||||||
|
this.getTeam();
|
||||||
|
this.getShfit();
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getTeam(){
|
||||||
|
let form ={};
|
||||||
|
form.page = 0;
|
||||||
|
form.belong_dept = this.deptId;
|
||||||
|
this.$API.mtm.team.list.req(form).then(res=>{
|
||||||
|
this.options = res;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getShfit(){
|
||||||
|
this.$API.mtm.shift.req({page:0}).then(res=>{
|
||||||
|
this.optionsShift = res;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleQuery(){
|
||||||
|
this.$refs.table.queryData(this.query);
|
||||||
|
},
|
||||||
sflog_export(){
|
sflog_export(){
|
||||||
this.limitedExport = true;
|
this.limitedExport = true;
|
||||||
},
|
},
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
value-format="YYYY"
|
value-format="YYYY"
|
||||||
format="YYYY"
|
format="YYYY"
|
||||||
placeholder="查询年份"
|
placeholder="查询年份"
|
||||||
style="margin-right: 6px;"
|
class="headerSearch"
|
||||||
/>
|
/>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
value-format="YYYY"
|
value-format="YYYY"
|
||||||
format="YYYY"
|
format="YYYY"
|
||||||
placeholder="查询年份"
|
placeholder="查询年份"
|
||||||
style="margin-right: 6px;"
|
class="headerSearch"
|
||||||
/>
|
/>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
|
|
|
@ -4,12 +4,21 @@
|
||||||
<div class="left-panel">
|
<div class="left-panel">
|
||||||
<div style="margin-right: 20px">交接班日志</div>
|
<div style="margin-right: 20px">交接班日志</div>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="query.time"
|
v-model="query.start_time__gte"
|
||||||
type="date"
|
type="date"
|
||||||
value-format="YYYY-MM-DD"
|
value-format="YYYY-MM-DD HH:mm:ss"
|
||||||
format="YYYY-MM-DD"
|
format="YYYY-MM-DD"
|
||||||
placeholder="日志时间"
|
placeholder="开始时间"
|
||||||
/>
|
style=" width: 120px"
|
||||||
|
/>
|
||||||
|
<el-date-picker
|
||||||
|
v-model="query.end_time__lt"
|
||||||
|
type="date"
|
||||||
|
value-format="YYYY-MM-DD HH:mm:ss"
|
||||||
|
format="YYYY-MM-DD"
|
||||||
|
placeholder="结束时间"
|
||||||
|
style="margin-left: 2px; width: 120px"
|
||||||
|
/>
|
||||||
<el-select
|
<el-select
|
||||||
v-model="query.shift"
|
v-model="query.shift"
|
||||||
placeholder="班次"
|
placeholder="班次"
|
||||||
|
@ -18,9 +27,9 @@
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in optionsShift"
|
v-for="item in optionsShift"
|
||||||
:key="item.value"
|
:key="item.id"
|
||||||
:label="item.label"
|
:label="item.name"
|
||||||
:value="item.value"
|
:value="item.id"
|
||||||
></el-option>
|
></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-select
|
<el-select
|
||||||
|
@ -31,9 +40,9 @@
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in options"
|
v-for="item in options"
|
||||||
:key="item.value"
|
:key="item.id"
|
||||||
:label="item.label"
|
:label="item.name"
|
||||||
:value="item.value"
|
:value="item.id"
|
||||||
></el-option>
|
></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -217,9 +226,26 @@ import otherDialog from "./other_form.vue";
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted(){
|
||||||
this.getTeam();
|
this.getTeam();
|
||||||
|
this.getShfit();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getTeam(){
|
||||||
|
let form ={};
|
||||||
|
form.page = 0;
|
||||||
|
form.belong_dept = this.deptId;
|
||||||
|
this.$API.mtm.team.list.req(form).then(res=>{
|
||||||
|
this.options = res;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getShfit(){
|
||||||
|
this.$API.mtm.shift.req({page:0}).then(res=>{
|
||||||
|
this.optionsShift = res;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleQuery(){
|
||||||
|
this.$refs.table.queryData(this.query);
|
||||||
|
},
|
||||||
sflog_export(){
|
sflog_export(){
|
||||||
this.limitedExport = true;
|
this.limitedExport = true;
|
||||||
},
|
},
|
||||||
|
@ -244,14 +270,7 @@ import otherDialog from "./other_form.vue";
|
||||||
this.$refs.saveDialog.open("edit").setData(row);
|
this.$refs.saveDialog.open("edit").setData(row);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getTeam(){
|
|
||||||
let form ={};
|
|
||||||
form.page = 0;
|
|
||||||
form.belong_dept = this.deptId;
|
|
||||||
this.$API.mtm.team.list.req(form).then(res=>{
|
|
||||||
this.teamOptions = res;
|
|
||||||
})
|
|
||||||
},
|
|
||||||
//质量检验
|
//质量检验
|
||||||
sflog_check(row){
|
sflog_check(row){
|
||||||
this.dialog.check = true;
|
this.dialog.check = true;
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
value-format="YYYY"
|
value-format="YYYY"
|
||||||
format="YYYY"
|
format="YYYY"
|
||||||
placeholder="查询年份"
|
placeholder="查询年份"
|
||||||
style="margin-right: 6px;"
|
class="headerSearch"
|
||||||
/>
|
/>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
|
|
|
@ -3,13 +3,13 @@
|
||||||
<el-header>
|
<el-header>
|
||||||
<div class="left-panel">
|
<div class="left-panel">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="query.year_s"
|
v-model="query.year_s"
|
||||||
type="year"
|
type="year"
|
||||||
value-format="YYYY"
|
value-format="YYYY"
|
||||||
format="YYYY"
|
format="YYYY"
|
||||||
placeholder="查询年份"
|
placeholder="查询年份"
|
||||||
style="margin-right: 6px;"
|
class="headerSearch"
|
||||||
/>
|
/>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
icon="el-icon-search"
|
icon="el-icon-search"
|
||||||
|
|
|
@ -1,89 +1,98 @@
|
||||||
<template>
|
<template>
|
||||||
<el-container>
|
<el-container>
|
||||||
<el-header>
|
<el-header>
|
||||||
<div class="left-panel">
|
<div class="left-panel">
|
||||||
<div style="margin-right: 20px">交接班日志</div>
|
<div style="margin-right: 20px">交接班日志</div>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="query.time"
|
v-model="query.start_time__gte"
|
||||||
type="date"
|
type="date"
|
||||||
value-format="YYYY-MM-DD"
|
value-format="YYYY-MM-DD HH:mm:ss"
|
||||||
format="YYYY-MM-DD"
|
format="YYYY-MM-DD"
|
||||||
placeholder="日志时间"
|
placeholder="开始时间"
|
||||||
/>
|
style=" width: 120px"
|
||||||
<el-select
|
/>
|
||||||
v-model="query.shift"
|
<el-date-picker
|
||||||
placeholder="班次"
|
v-model="query.end_time__lt"
|
||||||
clearable
|
type="date"
|
||||||
style="margin-left: 2px; width: 120px"
|
value-format="YYYY-MM-DD HH:mm:ss"
|
||||||
>
|
format="YYYY-MM-DD"
|
||||||
<el-option
|
placeholder="结束时间"
|
||||||
v-for="item in optionsShift"
|
style="margin-left: 2px; width: 120px"
|
||||||
:key="item.value"
|
/>
|
||||||
:label="item.label"
|
<el-select
|
||||||
:value="item.value"
|
v-model="query.shift"
|
||||||
></el-option>
|
placeholder="班次"
|
||||||
</el-select>
|
clearable
|
||||||
<el-select
|
style="margin-left: 2px; width: 120px"
|
||||||
v-model="query.team"
|
>
|
||||||
placeholder="班组"
|
<el-option
|
||||||
clearable
|
v-for="item in optionsShift"
|
||||||
style="margin-left: 2px; width: 120px"
|
:key="item.id"
|
||||||
>
|
:label="item.name"
|
||||||
<el-option
|
:value="item.id"
|
||||||
v-for="item in options"
|
></el-option>
|
||||||
:key="item.value"
|
</el-select>
|
||||||
:label="item.label"
|
<el-select
|
||||||
:value="item.value"
|
v-model="query.team"
|
||||||
></el-option>
|
placeholder="班组"
|
||||||
</el-select>
|
clearable
|
||||||
<el-button
|
style="margin-left: 2px; width: 120px"
|
||||||
type="primary"
|
>
|
||||||
icon="el-icon-search"
|
<el-option
|
||||||
@click="handleQuery"
|
v-for="item in options"
|
||||||
></el-button>
|
:key="item.id"
|
||||||
</div>
|
:label="item.name"
|
||||||
</el-header>
|
:value="item.id"
|
||||||
<el-main class="nopadding">
|
></el-option>
|
||||||
<scTable
|
</el-select>
|
||||||
ref="table"
|
<el-button
|
||||||
:apiObj="apiObj"
|
type="primary"
|
||||||
row-key="id"
|
icon="el-icon-search"
|
||||||
stripe
|
@click="handleQuery"
|
||||||
:params="query"
|
></el-button>
|
||||||
highlightCurrentRow
|
</div>
|
||||||
@row-click="rowClick"
|
</el-header>
|
||||||
>
|
<el-main class="nopadding">
|
||||||
<el-table-column type="index" width="50"/>
|
<scTable
|
||||||
<!-- <el-table-column label="关联工段" prop="mgroup_name"></el-table-column> -->
|
ref="table"
|
||||||
<el-table-column label="开始时间" prop="start_time">
|
:apiObj="apiObj"
|
||||||
<template #default="scope">
|
row-key="id"
|
||||||
<span>{{ scope.row.start_time.slice(0,16)}}</span>
|
stripe
|
||||||
</template>
|
:params="query"
|
||||||
</el-table-column>
|
highlightCurrentRow
|
||||||
<el-table-column label="结束时间" prop="end_time">
|
@row-click="rowClick"
|
||||||
<template #default="scope">
|
>
|
||||||
<span>{{ scope.row.end_time.slice(0,16)}}</span>
|
<el-table-column type="index" width="50"/>
|
||||||
</template>
|
<!-- <el-table-column label="关联工段" prop="mgroup_name"></el-table-column> -->
|
||||||
</el-table-column>
|
<el-table-column label="开始时间" prop="start_time">
|
||||||
<el-table-column label="班组名称" prop="team_name"></el-table-column>
|
<template #default="scope">
|
||||||
<el-table-column label="当前班次" prop="shift_name"></el-table-column>
|
<span>{{ scope.row.start_time.slice(0,16)}}</span>
|
||||||
<el-table-column label="班长" prop="leader_name"></el-table-column>
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="检验时间">
|
<el-table-column label="结束时间" prop="end_time">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span v-if="scope.row.last_test_time">{{ scope.row.last_test_time.slice(0,16)}}</span>
|
<span>{{ scope.row.end_time.slice(0,16)}}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" fixed="right" align="center" width="150">
|
<el-table-column label="班组名称" prop="team_name"></el-table-column>
|
||||||
<template #default="scope">
|
<el-table-column label="当前班次" prop="shift_name"></el-table-column>
|
||||||
<el-button link size="small" @click="sflog_edit(scope.row)" type="primary">编辑</el-button>
|
<el-table-column label="班长" prop="leader_name"></el-table-column>
|
||||||
<!-- <el-button link size="small" @click="sflog_check(scope.row)" type="primary">质量检验</el-button> -->
|
|
||||||
<el-button link size="small" @click="sflog_other(scope.row)" type="primary">其他能源</el-button>
|
<el-table-column label="检验时间">
|
||||||
<el-button link size="small" @click="sflog_export(scope.row)" type="success">报表</el-button>
|
<template #default="scope">
|
||||||
</template>
|
<span v-if="scope.row.last_test_time">{{ scope.row.last_test_time.slice(0,16)}}</span>
|
||||||
</el-table-column>
|
</template>
|
||||||
</scTable>
|
</el-table-column>
|
||||||
</el-main>
|
<el-table-column label="操作" fixed="right" align="center" width="150">
|
||||||
|
<template #default="scope">
|
||||||
|
<el-button link size="small" @click="sflog_edit(scope.row)" type="primary">编辑</el-button>
|
||||||
|
<!-- <el-button link size="small" @click="sflog_check(scope.row)" type="primary">质量检验</el-button> -->
|
||||||
|
<el-button link size="small" @click="sflog_other(scope.row)" type="primary">其他能源</el-button>
|
||||||
|
<el-button link size="small" @click="sflog_export(scope.row)" type="success">报表</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</scTable>
|
||||||
|
</el-main>
|
||||||
<el-drawer v-model="limitedExport" size="60%" :show-close="false">
|
<el-drawer v-model="limitedExport" size="60%" :show-close="false">
|
||||||
<template #header="{ close, titleId, titleClass }">
|
<template #header="{ close, titleId, titleClass }">
|
||||||
<h4 :id="titleId" :class="titleClass">交接班日志</h4>
|
<h4 :id="titleId" :class="titleClass">交接班日志</h4>
|
||||||
|
@ -173,8 +182,27 @@
|
||||||
limitedExport:false,
|
limitedExport:false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
mounted(){
|
||||||
|
this.getTeam();
|
||||||
|
this.getShfit();
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getTeam(){
|
||||||
|
let form ={};
|
||||||
|
form.page = 0;
|
||||||
|
form.belong_dept = this.deptId;
|
||||||
|
this.$API.mtm.team.list.req(form).then(res=>{
|
||||||
|
this.options = res;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getShfit(){
|
||||||
|
this.$API.mtm.shift.req({page:0}).then(res=>{
|
||||||
|
this.optionsShift = res;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleQuery(){
|
||||||
|
this.$refs.table.queryData(this.query);
|
||||||
|
},
|
||||||
sflog_export(){
|
sflog_export(){
|
||||||
this.limitedExport = true;
|
this.limitedExport = true;
|
||||||
},
|
},
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
value-format="YYYY"
|
value-format="YYYY"
|
||||||
format="YYYY"
|
format="YYYY"
|
||||||
placeholder="查询年份"
|
placeholder="查询年份"
|
||||||
style="margin-right: 6px;"
|
class="headerSearch"
|
||||||
/>
|
/>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
|
|
|
@ -3,13 +3,13 @@
|
||||||
<el-header>
|
<el-header>
|
||||||
<div class="left-panel">
|
<div class="left-panel">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="query.year_s"
|
v-model="query.year_s"
|
||||||
type="year"
|
type="year"
|
||||||
value-format="YYYY"
|
value-format="YYYY"
|
||||||
format="YYYY"
|
format="YYYY"
|
||||||
placeholder="查询年份"
|
placeholder="查询年份"
|
||||||
style="margin-right: 6px;"
|
class="headerSearch"
|
||||||
/>
|
/>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
icon="el-icon-search"
|
icon="el-icon-search"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
placeholder="工段"
|
placeholder="工段"
|
||||||
clearable
|
clearable
|
||||||
@change="mgroupChange"
|
@change="mgroupChange"
|
||||||
style="margin-left: 2px; width: 200px"
|
class="headerSearch"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in mgroupOptions"
|
v-for="item in mgroupOptions"
|
||||||
|
@ -21,6 +21,7 @@
|
||||||
v-model="query.type"
|
v-model="query.type"
|
||||||
placeholder="查询类型"
|
placeholder="查询类型"
|
||||||
clearable
|
clearable
|
||||||
|
class="headerSearch"
|
||||||
@change="typeCange"
|
@change="typeCange"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
|
@ -36,6 +37,7 @@
|
||||||
value-format="YYYY-MM-DD"
|
value-format="YYYY-MM-DD"
|
||||||
format="YYYY-MM-DD"
|
format="YYYY-MM-DD"
|
||||||
placeholder="日"
|
placeholder="日"
|
||||||
|
class="headerSearch"
|
||||||
v-if="query.type==0"
|
v-if="query.type==0"
|
||||||
/>
|
/>
|
||||||
<!-- 选择班次 -->
|
<!-- 选择班次 -->
|
||||||
|
@ -44,7 +46,7 @@
|
||||||
v-model="query.shift"
|
v-model="query.shift"
|
||||||
placeholder="班次"
|
placeholder="班次"
|
||||||
clearable
|
clearable
|
||||||
style="margin-left: 2px; width: 120px"
|
class="headerSearch"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in optionsShift"
|
v-for="item in optionsShift"
|
||||||
|
@ -59,6 +61,7 @@
|
||||||
value-format="YYYY-MM"
|
value-format="YYYY-MM"
|
||||||
format="YYYY-MM"
|
format="YYYY-MM"
|
||||||
placeholder="月份"
|
placeholder="月份"
|
||||||
|
class="headerSearch"
|
||||||
v-if="query.type==1"
|
v-if="query.type==1"
|
||||||
/>
|
/>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
|
@ -67,6 +70,7 @@
|
||||||
value-format="YYYY"
|
value-format="YYYY"
|
||||||
format="YYYY"
|
format="YYYY"
|
||||||
placeholder="年份"
|
placeholder="年份"
|
||||||
|
class="headerSearch"
|
||||||
v-if="query.type==2"
|
v-if="query.type==2"
|
||||||
/>
|
/>
|
||||||
<el-button
|
<el-button
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
placeholder="车间"
|
placeholder="车间"
|
||||||
clearable
|
clearable
|
||||||
@change="deptChange"
|
@change="deptChange"
|
||||||
style="margin-left: 2px; width: 200px"
|
class="headerSearch"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in deptOptions"
|
v-for="item in deptOptions"
|
||||||
|
@ -20,6 +20,7 @@
|
||||||
v-model="query.type"
|
v-model="query.type"
|
||||||
placeholder="查询类型"
|
placeholder="查询类型"
|
||||||
clearable
|
clearable
|
||||||
|
class="headerSearch"
|
||||||
@change="typeCange"
|
@change="typeCange"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
|
@ -36,6 +37,7 @@
|
||||||
format="YYYY-MM"
|
format="YYYY-MM"
|
||||||
placeholder="查询月份"
|
placeholder="查询月份"
|
||||||
v-if="query.type==0"
|
v-if="query.type==0"
|
||||||
|
class="headerSearch"
|
||||||
/>
|
/>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="query.year"
|
v-model="query.year"
|
||||||
|
@ -44,6 +46,7 @@
|
||||||
format="YYYY"
|
format="YYYY"
|
||||||
placeholder="查询年份"
|
placeholder="查询年份"
|
||||||
v-if="query.type==1"
|
v-if="query.type==1"
|
||||||
|
class="headerSearch"
|
||||||
/>
|
/>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="query.yearStart"
|
v-model="query.yearStart"
|
||||||
|
@ -52,8 +55,8 @@
|
||||||
format="YYYY"
|
format="YYYY"
|
||||||
placeholder="起始年份"
|
placeholder="起始年份"
|
||||||
v-if="query.type==2"
|
v-if="query.type==2"
|
||||||
|
class="headerSearch"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
icon="el-icon-search"
|
icon="el-icon-search"
|
||||||
|
|
|
@ -2,27 +2,27 @@
|
||||||
<el-container>
|
<el-container>
|
||||||
<el-header>
|
<el-header>
|
||||||
<div class="left-panel">
|
<div class="left-panel">
|
||||||
<el-date-picker
|
<!-- <el-date-picker
|
||||||
v-model="query.year"
|
v-model="query.year"
|
||||||
type="year"
|
type="year"
|
||||||
value-format="YYYY"
|
value-format="YYYY"
|
||||||
format="YYYY"
|
format="YYYY"
|
||||||
placeholder="年"
|
placeholder="年"
|
||||||
style="width: 120px;margin-right: 5px;"
|
style="width: 120px;margin-right: 5px;"
|
||||||
/>
|
/> -->
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="query.month"
|
v-model="query.date"
|
||||||
type="month"
|
type="month"
|
||||||
value-format="YYYY-MM"
|
value-format="YYYY-MM"
|
||||||
format="YYYY-MM"
|
format="YYYY-MM"
|
||||||
placeholder="月"
|
placeholder="月"
|
||||||
style="width: 120px;margin-right: 5px;"
|
class="headerSearch"
|
||||||
/>
|
/>
|
||||||
<el-select
|
<el-select
|
||||||
v-model="query.fee"
|
v-model="query.fee"
|
||||||
placeholder="费用类型"
|
placeholder="费用类型"
|
||||||
clearable
|
clearable
|
||||||
style="width: 120px;margin-right: 5px;"
|
class="headerSearch"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in feeOptions"
|
v-for="item in feeOptions"
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
v-model="query.mgroup"
|
v-model="query.mgroup"
|
||||||
placeholder="工段"
|
placeholder="工段"
|
||||||
clearable
|
clearable
|
||||||
style="width: 120px;margin-right: 5px;"
|
class="headerSearch"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in options"
|
v-for="item in options"
|
||||||
|
@ -47,9 +47,8 @@
|
||||||
<el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button>
|
<el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="right-panel">
|
<div class="right-panel">
|
||||||
<el-button type="primary" icon="el-icon-plus" @click="table_add" v-auth="'role.create'"></el-button>
|
<el-button type="primary" icon="el-icon-plus" @click="table_add" v-auth="'feeset.create'"></el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</el-header>
|
</el-header>
|
||||||
<el-main class="nopadding">
|
<el-main class="nopadding">
|
||||||
<scTable ref="table" :apiObj="apiObj" row-key="id">
|
<scTable ref="table" :apiObj="apiObj" row-key="id">
|
||||||
|
@ -65,11 +64,11 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" fixed="right" align="center" width="140">
|
<el-table-column label="操作" fixed="right" align="center" width="140">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button link size="small" @click="table_edit(scope.row)" v-auth="'team.update'" type="primary">编辑</el-button>
|
<el-button link size="small" @click="table_edit(scope.row)" v-auth="'feeset.update'" type="primary">编辑</el-button>
|
||||||
<el-divider direction="vertical"></el-divider>
|
<el-divider direction="vertical"></el-divider>
|
||||||
<el-popconfirm title="确定删除吗?" @confirm="table_del(scope.row, scope.$index)">
|
<el-popconfirm title="确定删除吗?" @confirm="table_del(scope.row, scope.$index)">
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<el-button link size="small" v-auth="'role.delete'" type="danger">删除</el-button>
|
<el-button link size="small" v-auth="'feeset.delete'" type="danger">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-popconfirm>
|
</el-popconfirm>
|
||||||
</template>
|
</template>
|
||||||
|
@ -95,8 +94,7 @@
|
||||||
return {
|
return {
|
||||||
apiObj: this.$API.fim.feeset.list,
|
apiObj: this.$API.fim.feeset.list,
|
||||||
query: {
|
query: {
|
||||||
year:'',
|
date:'',
|
||||||
month:'',
|
|
||||||
fee:'',
|
fee:'',
|
||||||
mgroup:'',
|
mgroup:'',
|
||||||
},
|
},
|
||||||
|
@ -156,7 +154,14 @@
|
||||||
},
|
},
|
||||||
//搜索
|
//搜索
|
||||||
handleQuery(){
|
handleQuery(){
|
||||||
this.$refs.table.queryData(this.query)
|
let year = this.query.date.split('-')[0];
|
||||||
|
let month = this.query.date.split('-')[1];
|
||||||
|
let query = {};
|
||||||
|
query.year = Number(year);
|
||||||
|
query.month = Number(month);
|
||||||
|
query.fee =this.query.fee;
|
||||||
|
query.mgroup =this.query.mgroup;
|
||||||
|
this.$refs.table.queryData(query)
|
||||||
},
|
},
|
||||||
//本地更新数据
|
//本地更新数据
|
||||||
//新增岗位后更新数据
|
//新增岗位后更新数据
|
||||||
|
|
|
@ -2,50 +2,51 @@
|
||||||
<el-container>
|
<el-container>
|
||||||
<el-header>
|
<el-header>
|
||||||
<div class="left-panel">
|
<div class="left-panel">
|
||||||
<el-button type="primary" icon="el-icon-plus" @click="roleAdd" v-auth="'role.create'"></el-button>
|
<el-date-picker
|
||||||
|
v-model="query.year"
|
||||||
|
type="year"
|
||||||
|
format="YYYY"
|
||||||
|
value-format="YYYY"
|
||||||
|
placeholder="年份"
|
||||||
|
class="headerSearch"
|
||||||
|
/>
|
||||||
|
<el-select
|
||||||
|
v-model="query.mgroup"
|
||||||
|
placeholder="关联工段"
|
||||||
|
clearable
|
||||||
|
class="headerSearch"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in mgroupOptions"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.id"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
|
<el-select
|
||||||
|
v-model="query.goal_cate"
|
||||||
|
placeholder="目标种类"
|
||||||
|
clearable
|
||||||
|
class="headerSearch"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in goalOptions"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.id"
|
||||||
|
></el-option>
|
||||||
|
</el-select>
|
||||||
|
<el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="right-panel">
|
<div class="right-panel">
|
||||||
<div class="right-panel-search">
|
<el-button type="primary" icon="el-icon-plus" @click="roleAdd" v-auth="'goal.create'"></el-button>
|
||||||
<el-date-picker
|
|
||||||
v-model="query.year"
|
|
||||||
type="year"
|
|
||||||
format="YYYY"
|
|
||||||
value-format="YYYY"
|
|
||||||
placeholder="年份"
|
|
||||||
/>
|
|
||||||
<el-select
|
|
||||||
v-model="query.mgroup"
|
|
||||||
placeholder="关联工段"
|
|
||||||
clearable
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item in mgroupOptions"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.name"
|
|
||||||
:value="item.id"
|
|
||||||
></el-option>
|
|
||||||
</el-select>
|
|
||||||
<el-select
|
|
||||||
v-model="query.goal_cate"
|
|
||||||
placeholder="目标种类"
|
|
||||||
clearable
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item in goalOptions"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.name"
|
|
||||||
:value="item.id"
|
|
||||||
></el-option>
|
|
||||||
</el-select>
|
|
||||||
<el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</el-header>
|
</el-header>
|
||||||
<el-main class="nopadding">
|
<el-main class="nopadding">
|
||||||
<scTable ref="table" :apiObj="apiObj" row-key="id" @selection-change="selectionChange" hidePagination>
|
<scTable ref="table" :apiObj="apiObj" row-key="id" @selection-change="selectionChange">
|
||||||
<el-table-column label="#" type="index" width="50"></el-table-column>
|
<el-table-column label="#" type="index" width="50"></el-table-column>
|
||||||
<el-table-column label="工段" prop="mgroup_name" min-width="100"></el-table-column>
|
<el-table-column label="工段" prop="mgroup_name" width="80"></el-table-column>
|
||||||
<el-table-column label="目标(项目)" prop="goal_cate_name" min-width="100"></el-table-column>
|
<el-table-column label="目标(项目)" prop="goal_cate_name" min-width="120"></el-table-column>
|
||||||
<el-table-column label="1月" prop="goal_val_1"></el-table-column>
|
<el-table-column label="1月" prop="goal_val_1"></el-table-column>
|
||||||
<el-table-column label="2月" prop="goal_val_2"></el-table-column>
|
<el-table-column label="2月" prop="goal_val_2"></el-table-column>
|
||||||
<el-table-column label="3月" prop="goal_val_3"></el-table-column>
|
<el-table-column label="3月" prop="goal_val_3"></el-table-column>
|
||||||
|
@ -61,11 +62,11 @@
|
||||||
<el-table-column label="年目标值" prop="goal_val"></el-table-column>
|
<el-table-column label="年目标值" prop="goal_val"></el-table-column>
|
||||||
<el-table-column label="操作" fixed="right" align="center" width="100">
|
<el-table-column label="操作" fixed="right" align="center" width="100">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button link size="small" @click="roleEdit(scope.row)" v-auth="'team.update'" type="primary">编辑</el-button>
|
<el-button link size="small" @click="roleEdit(scope.row)" v-auth="'goal.update'" type="primary">编辑</el-button>
|
||||||
<el-divider direction="vertical"></el-divider>
|
<el-divider direction="vertical"></el-divider>
|
||||||
<el-popconfirm title="确定删除吗?" @confirm="handleDel(scope.row)">
|
<el-popconfirm title="确定删除吗?" @confirm="handleDel(scope.row)">
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<el-button link size="small" v-auth="'role.delete'" type="danger">删除</el-button>
|
<el-button link size="small" v-auth="'goal.delete'" type="danger">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-popconfirm>
|
</el-popconfirm>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -2,17 +2,16 @@
|
||||||
<el-container>
|
<el-container>
|
||||||
<el-header>
|
<el-header>
|
||||||
<div class="left-panel">
|
<div class="left-panel">
|
||||||
<el-button type="primary" icon="el-icon-plus" @click="table_add" v-auth="'role.create'"></el-button>
|
<el-input style="margin-right: 5px;" v-model="query.search" placeholder="产品名称" clearable></el-input>
|
||||||
|
<el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="right-panel">
|
<div class="right-panel">
|
||||||
<div class="right-panel-search">
|
<el-button type="primary" icon="el-icon-plus" @click="table_add" v-auth="'material.create'"></el-button>
|
||||||
<el-input v-model="query.search" placeholder="产品名称" clearable @keyup.enter="handleQuery"></el-input>
|
|
||||||
<el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</el-header>
|
</el-header>
|
||||||
<el-main class="nopadding">
|
<el-main class="nopadding">
|
||||||
<scTable ref="table" :apiObj="apiObj" row-key="id" @selection-change="selectionChange" hidePagination>
|
<scTable ref="table" :apiObj="apiObj" row-key="id" @selection-change="selectionChange">
|
||||||
<el-table-column label="#" type="index" width="50"></el-table-column>
|
<el-table-column label="#" type="index" width="50"></el-table-column>
|
||||||
<el-table-column label="名称" prop="name" min-width="100"></el-table-column>
|
<el-table-column label="名称" prop="name" min-width="100"></el-table-column>
|
||||||
<el-table-column label="标识" prop="code" min-width="100"></el-table-column>
|
<el-table-column label="标识" prop="code" min-width="100"></el-table-column>
|
||||||
|
@ -29,11 +28,11 @@
|
||||||
</el-table-column> -->
|
</el-table-column> -->
|
||||||
<el-table-column label="操作" fixed="right" align="center" width="140">
|
<el-table-column label="操作" fixed="right" align="center" width="140">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button link size="small" @click="table_edit(scope.row)" v-auth="'team.update'" type="primary">编辑</el-button>
|
<el-button link size="small" @click="table_edit(scope.row)" v-auth="'material.update'" type="primary">编辑</el-button>
|
||||||
<el-divider direction="vertical"></el-divider>
|
<el-divider direction="vertical"></el-divider>
|
||||||
<el-popconfirm title="确定删除吗?" @confirm="roleDel(scope.row, scope.$index)">
|
<el-popconfirm title="确定删除吗?" @confirm="roleDel(scope.row, scope.$index)">
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<el-button link size="small" v-auth="'role.delete'" type="danger">删除</el-button>
|
<el-button link size="small" v-auth="'material.delete'" type="danger">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-popconfirm>
|
</el-popconfirm>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -2,13 +2,11 @@
|
||||||
<el-container>
|
<el-container>
|
||||||
<el-header>
|
<el-header>
|
||||||
<div class="left-panel">
|
<div class="left-panel">
|
||||||
<el-button type="primary" icon="el-icon-plus" @click="table_add" v-auth="'role.create'"></el-button>
|
<el-input style="margin-right: 5px;" v-model="query.search" placeholder="名称" clearable></el-input>
|
||||||
|
<el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="right-panel">
|
<div class="right-panel">
|
||||||
<div class="right-panel-search">
|
<el-button type="primary" icon="el-icon-plus" @click="table_add" v-auth="'mgroup.create'"></el-button>
|
||||||
<el-input v-model="query.search" placeholder="测点集名称" clearable @keyup.enter="handleQuery"></el-input>
|
|
||||||
<el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</el-header>
|
</el-header>
|
||||||
<el-main class="nopadding">
|
<el-main class="nopadding">
|
||||||
|
@ -20,16 +18,15 @@
|
||||||
<span>{{ cates_[scope.row.cate] }}</span>
|
<span>{{ cates_[scope.row.cate] }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<!-- <el-table-column label="主要产品" prop="product" min-width="150"></el-table-column> -->
|
|
||||||
<el-table-column label="所属部门" prop="belong_dept_name" min-width="150"></el-table-column>
|
<el-table-column label="所属部门" prop="belong_dept_name" min-width="150"></el-table-column>
|
||||||
<el-table-column label="创建时间" prop="create_time" min-width="150"></el-table-column>
|
<el-table-column label="创建时间" prop="create_time" min-width="150"></el-table-column>
|
||||||
<el-table-column label="操作" fixed="right" align="center" width="140">
|
<el-table-column label="操作" fixed="right" align="center" width="140">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button link size="small" @click="table_edit(scope.row)" v-auth="'team.update'" type="primary">编辑</el-button>
|
<el-button link size="small" @click="table_edit(scope.row)" v-auth="'mgroup.update'" type="primary">编辑</el-button>
|
||||||
<el-divider direction="vertical"></el-divider>
|
<el-divider direction="vertical"></el-divider>
|
||||||
<el-popconfirm title="确定删除吗?" @confirm="table_del(scope.row, scope.$index)">
|
<el-popconfirm title="确定删除吗?" @confirm="table_del(scope.row, scope.$index)">
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<el-button link size="small" v-auth="'role.delete'" type="danger">删除</el-button>
|
<el-button link size="small" v-auth="'mgroup.delete'" type="danger">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-popconfirm>
|
</el-popconfirm>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -3,18 +3,18 @@
|
||||||
<el-header>
|
<el-header>
|
||||||
<div class="left-panel">
|
<div class="left-panel">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="query.month"
|
v-model="query.monthData"
|
||||||
type="month"
|
type="month"
|
||||||
value-format="YYYY-MM"
|
value-format="YYYY-MM"
|
||||||
format="YYYY-MM"
|
format="YYYY-MM"
|
||||||
placeholder="月"
|
placeholder="月"
|
||||||
style="width: 120px;margin-right: 5px;"
|
class="headerSearch"
|
||||||
/>
|
/>
|
||||||
<el-select
|
<el-select
|
||||||
v-model="query.fee"
|
v-model="query.material"
|
||||||
placeholder="物料"
|
placeholder="物料"
|
||||||
clearable
|
clearable
|
||||||
style="width: 120px;margin-right: 5px;"
|
class="headerSearch"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in options"
|
v-for="item in options"
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
<el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button>
|
<el-button type="primary" icon="el-icon-search" @click="handleQuery"></el-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="right-panel">
|
<div class="right-panel">
|
||||||
<el-button type="primary" icon="el-icon-plus" @click="table_add" v-auth="'role.create'"></el-button>
|
<el-button type="primary" icon="el-icon-plus" @click="table_add" v-auth="'priceset.create'"></el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</el-header>
|
</el-header>
|
||||||
|
@ -39,11 +39,11 @@
|
||||||
<el-table-column label="单价" prop="price_unit" min-width="150"></el-table-column>
|
<el-table-column label="单价" prop="price_unit" min-width="150"></el-table-column>
|
||||||
<el-table-column label="操作" fixed="right" align="center" width="140">
|
<el-table-column label="操作" fixed="right" align="center" width="140">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button link size="small" @click="table_edit(scope.row)" v-auth="'team.update'" type="primary">编辑</el-button>
|
<el-button link size="small" @click="table_edit(scope.row)" v-auth="'priceset.update'" type="primary">编辑</el-button>
|
||||||
<el-divider direction="vertical"></el-divider>
|
<el-divider direction="vertical"></el-divider>
|
||||||
<el-popconfirm title="确定删除吗?" @confirm="table_del(scope.row, scope.$index)">
|
<el-popconfirm title="确定删除吗?" @confirm="table_del(scope.row, scope.$index)">
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<el-button link size="small" v-auth="'role.delete'" type="danger">删除</el-button>
|
<el-button link size="small" v-auth="'priceset.delete'" type="danger">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-popconfirm>
|
</el-popconfirm>
|
||||||
</template>
|
</template>
|
||||||
|
@ -69,8 +69,7 @@
|
||||||
return {
|
return {
|
||||||
apiObj: this.$API.fim.priceset.list,
|
apiObj: this.$API.fim.priceset.list,
|
||||||
query: {
|
query: {
|
||||||
year:'',
|
monthData:'',
|
||||||
month:'',
|
|
||||||
material:'',
|
material:'',
|
||||||
},
|
},
|
||||||
dialog: {
|
dialog: {
|
||||||
|
@ -121,7 +120,13 @@
|
||||||
},
|
},
|
||||||
//搜索
|
//搜索
|
||||||
handleQuery(){
|
handleQuery(){
|
||||||
this.$refs.table.queryData(this.query)
|
let year = this.query.monthData.split('-')[0];
|
||||||
|
let month = this.query.monthData.split('-')[1];
|
||||||
|
let query = {};
|
||||||
|
query.year = Number(year);
|
||||||
|
query.month = Number(month);
|
||||||
|
query.material =this.query.material;
|
||||||
|
this.$refs.table.queryData(query)
|
||||||
},
|
},
|
||||||
//本地更新数据
|
//本地更新数据
|
||||||
//新增岗位后更新数据
|
//新增岗位后更新数据
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
placeholder="车间"
|
placeholder="车间"
|
||||||
clearable
|
clearable
|
||||||
@change="deptChange"
|
@change="deptChange"
|
||||||
style="margin-left: 2px; width: 200px"
|
class="headerSearch"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in deptOptions"
|
v-for="item in deptOptions"
|
||||||
|
@ -20,6 +20,7 @@
|
||||||
v-model="query.type"
|
v-model="query.type"
|
||||||
placeholder="查询类型"
|
placeholder="查询类型"
|
||||||
clearable
|
clearable
|
||||||
|
class="headerSearch"
|
||||||
@change="typeCange"
|
@change="typeCange"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
|
@ -36,6 +37,7 @@
|
||||||
value-format="YYYY"
|
value-format="YYYY"
|
||||||
format="YYYY"
|
format="YYYY"
|
||||||
placeholder="年份"
|
placeholder="年份"
|
||||||
|
class="headerSearch"
|
||||||
v-if="query.type==1"
|
v-if="query.type==1"
|
||||||
/>
|
/>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
|
@ -44,17 +46,9 @@
|
||||||
value-format="YYYY-MM"
|
value-format="YYYY-MM"
|
||||||
format="YYYY-MM"
|
format="YYYY-MM"
|
||||||
placeholder="月份"
|
placeholder="月份"
|
||||||
|
class="headerSearch"
|
||||||
v-if="query.type==0"
|
v-if="query.type==0"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- <el-date-picker
|
|
||||||
v-model="query.day"
|
|
||||||
type="date"
|
|
||||||
value-format="YYYY-MM-DD"
|
|
||||||
format="YYYY-MM-DD"
|
|
||||||
placeholder="日"
|
|
||||||
v-if="query.type==0"
|
|
||||||
/> -->
|
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
icon="el-icon-search"
|
icon="el-icon-search"
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
v-model="type"
|
v-model="type"
|
||||||
placeholder="查询类型"
|
placeholder="查询类型"
|
||||||
clearable
|
clearable
|
||||||
|
class="headerSearch"
|
||||||
@change="typeCange"
|
@change="typeCange"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
|
@ -157,7 +158,7 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getTableData(){},
|
||||||
handlePrint() {
|
handlePrint() {
|
||||||
this.$PRINT('#myReport');
|
this.$PRINT('#myReport');
|
||||||
},
|
},
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<el-container>
|
<el-container>
|
||||||
<el-header>
|
<el-header>
|
||||||
<div class="left-panel">
|
<div class="left-panel">
|
||||||
<el-button type="primary" icon="el-icon-plus" @click="roleAdd" v-auth="'role.create'"></el-button>
|
<el-button type="primary" icon="el-icon-plus" @click="handleAdd" v-auth="'team.create'"></el-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="right-panel">
|
<div class="right-panel">
|
||||||
<div class="right-panel-search">
|
<div class="right-panel-search">
|
||||||
|
@ -20,11 +20,11 @@
|
||||||
<el-table-column label="创建时间" prop="create_time" min-width="150"></el-table-column>
|
<el-table-column label="创建时间" prop="create_time" min-width="150"></el-table-column>
|
||||||
<el-table-column label="操作" fixed="right" align="center" width="140">
|
<el-table-column label="操作" fixed="right" align="center" width="140">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button link size="small" @click="roleEdit(scope.row)" v-auth="'team.update'" type="primary">编辑</el-button>
|
<el-button link size="small" @click="handleEdit(scope.row)" v-auth="'team.update'" type="primary">编辑</el-button>
|
||||||
<el-divider direction="vertical"></el-divider>
|
<el-divider direction="vertical"></el-divider>
|
||||||
<el-popconfirm title="确定删除吗?" @confirm="roleDel(scope.row, scope.$index)">
|
<el-popconfirm title="确定删除吗?" @confirm="handleDel(scope.row, scope.$index)">
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<el-button link size="small" v-auth="'role.delete'" type="danger">删除</el-button>
|
<el-button link size="small" v-auth="'team.delete'" type="danger">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-popconfirm>
|
</el-popconfirm>
|
||||||
</template>
|
</template>
|
||||||
|
@ -106,7 +106,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getList();
|
|
||||||
this.getGroup();
|
this.getGroup();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -120,13 +119,8 @@
|
||||||
this.group = res.results;
|
this.group = res.results;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//获取班组列表
|
|
||||||
getList(){
|
|
||||||
var res = this.$API.system.role.list.req();
|
|
||||||
this.tableData = res.results;
|
|
||||||
},
|
|
||||||
//添加班组
|
//添加班组
|
||||||
roleAdd(){
|
handleAdd(){
|
||||||
this.limitedVisible = true;
|
this.limitedVisible = true;
|
||||||
this.type = "add";
|
this.type = "add";
|
||||||
this.form = Object.assign({}, defaultForm);
|
this.form = Object.assign({}, defaultForm);
|
||||||
|
@ -158,14 +152,13 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
//编辑班组
|
//编辑班组
|
||||||
roleEdit(row){
|
handleEdit(row){
|
||||||
this.type='edit';
|
this.type='edit';
|
||||||
this.form=row;
|
this.form=row;
|
||||||
this.limitedVisible = true;
|
this.limitedVisible = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
//删除班组
|
//删除班组
|
||||||
async roleDel(row){
|
async handleDel(row){
|
||||||
var id = row.id;
|
var id = row.id;
|
||||||
var res = await this.$API.mtm.team.delete.req(id);
|
var res = await this.$API.mtm.team.delete.req(id);
|
||||||
if(res.err_msg){
|
if(res.err_msg){
|
||||||
|
|
Loading…
Reference in New Issue