feat:新增过程光芯自检,与光子抽离
This commit is contained in:
parent
472a871b90
commit
a9ca429667
|
|
@ -0,0 +1,180 @@
|
||||||
|
<template>
|
||||||
|
<el-container>
|
||||||
|
<el-header>
|
||||||
|
<div class="left-panel">
|
||||||
|
<el-button type="primary" icon="el-icon-download" v-loading="exportLoading" @click="exportExcel">导出</el-button>
|
||||||
|
</div>
|
||||||
|
<div class="right-panel">
|
||||||
|
<el-select
|
||||||
|
v-model="query.mgroup"
|
||||||
|
clearable
|
||||||
|
style="width: 150px"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in mgroupOption"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.name"
|
||||||
|
:value="item.id"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
<el-date-picker
|
||||||
|
v-model="query.handle_date"
|
||||||
|
type="date"
|
||||||
|
placeholder="选择日期"
|
||||||
|
value-format="YYYY-MM-DD"
|
||||||
|
style="width: 150px"
|
||||||
|
/>
|
||||||
|
<el-input
|
||||||
|
v-model="query.search"
|
||||||
|
placeholder="批次号"
|
||||||
|
clearable
|
||||||
|
style="width: 150px"
|
||||||
|
></el-input>
|
||||||
|
<el-button type="primary" @click="materialsChoses()"
|
||||||
|
>选择物料</el-button
|
||||||
|
>
|
||||||
|
<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
|
||||||
|
id="myTable"
|
||||||
|
:query="query"
|
||||||
|
>
|
||||||
|
<el-table-column type="index" width="50" />
|
||||||
|
<el-table-column label="物料" prop="material_out_name" show-overflow-tooltip min-width="120">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="工序" prop="mgroup_name">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="生产数" prop="count_real">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="合格数" prop="count_ok">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="不合格数" prop="count_notok">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="不合格原因" align="center">
|
||||||
|
<el-table-column label="厚度" prop="count_n_hd">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="气泡" prop="count_n_qp">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="水纹" prop="count_n_swen">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="崩边" prop="count_n_bb">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="划伤" prop="count_n_hs">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="麻点" prop="count_n_md">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="线痕" prop="count_n_xh">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="产品外径" prop="count_n_cpwj">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="产品圆度" prop="count_n_cpyd">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="产品同心度" prop="count_n_cptxd">
|
||||||
|
</el-table-column>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="班组" prop="shift_name">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="所属车间" prop="belong_dept_name">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="操作时间" prop="handle_date">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="处理人" prop="handle_user_name">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="操作" width="60" fixed="right">
|
||||||
|
<template #default="scope">
|
||||||
|
<el-button
|
||||||
|
type="text"
|
||||||
|
size="small"
|
||||||
|
@click="handlePrint(scope.row)"
|
||||||
|
>打印</el-button
|
||||||
|
>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</scTable>
|
||||||
|
</el-main>
|
||||||
|
<el-dialog title="选择物料" v-model="materialsVisible" width="90%">
|
||||||
|
<materials style="height: 500px" ref="materialsChose" @choseChange="choseChange">
|
||||||
|
</materials>
|
||||||
|
</el-dialog>
|
||||||
|
<el-dialog v-model="printVisible" width="1200px">
|
||||||
|
<print :baseData="rowItem" type="ptest_gx" @closePrint="printVisible=false"/>
|
||||||
|
</el-dialog>
|
||||||
|
</el-container>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import print from "./../setting/print/A4.vue";
|
||||||
|
import materials from "./../mtm/materials.vue";
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
materials,print
|
||||||
|
},
|
||||||
|
name: "rparty",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
apiObj: this.$API.wpm.mlog.list,
|
||||||
|
query: {
|
||||||
|
search: "",
|
||||||
|
material: "",
|
||||||
|
mgroup: "",
|
||||||
|
handle_date: "",
|
||||||
|
},
|
||||||
|
selection: [],
|
||||||
|
state_: {
|
||||||
|
10: "",
|
||||||
|
20: "",
|
||||||
|
},
|
||||||
|
rowItem:{},
|
||||||
|
mgroupOption: [],
|
||||||
|
printVisible:false,
|
||||||
|
exportLoading:false,
|
||||||
|
materialsVisible: false,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.getMgroup();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
materialsChoses() {
|
||||||
|
this.materialsVisible = true;
|
||||||
|
},
|
||||||
|
choseChange(data) {
|
||||||
|
this.query.material = data;
|
||||||
|
this.$refs.table.queryData(this.query);
|
||||||
|
this.materialsVisible = false;
|
||||||
|
},
|
||||||
|
getMgroup() {
|
||||||
|
this.$API.mtm.mgroup.list.req({ page: 0 }).then((res) => {
|
||||||
|
this.mgroupOption = res;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
handleQuery() {
|
||||||
|
this.$refs.table.queryData(this.query);
|
||||||
|
},
|
||||||
|
resetQuery() {
|
||||||
|
this.query = {};
|
||||||
|
},
|
||||||
|
//打印
|
||||||
|
handlePrint(row){
|
||||||
|
this.rowItem = row;
|
||||||
|
this.printVisible = true;
|
||||||
|
},
|
||||||
|
exportExcel() {
|
||||||
|
this.exportLoading = true;
|
||||||
|
this.$XLSX('#myTable',"过程自检记录表")
|
||||||
|
this.exportLoading = false;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
Loading…
Reference in New Issue