fix:光芯交接记录添加扫码
This commit is contained in:
parent
c0d336d85c
commit
aacdd0b892
|
@ -7,29 +7,25 @@
|
||||||
icon="el-icon-plus"
|
icon="el-icon-plus"
|
||||||
@click="table_add(10)"
|
@click="table_add(10)"
|
||||||
v-auth="'handover.create'"
|
v-auth="'handover.create'"
|
||||||
>新增</el-button
|
>新增</el-button>
|
||||||
>
|
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
icon="el-icon-plus"
|
icon="el-icon-plus"
|
||||||
@click="table_add(20)"
|
@click="table_add(20)"
|
||||||
v-auth="'handover.create'"
|
v-auth="'handover.create'"
|
||||||
v-if="mgroupName!=='切片'"
|
v-if="mgroupName!=='切片'"
|
||||||
>返工</el-button
|
>返工</el-button>
|
||||||
>
|
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="printSetting"
|
@click="printSetting"
|
||||||
>打印机</el-button
|
>打印机</el-button>
|
||||||
>
|
<el-input
|
||||||
<el-button
|
ref="codeInput"
|
||||||
type="primary"
|
v-model="codeText"
|
||||||
icon="el-icon-plus"
|
clearable
|
||||||
@click="table_add(30)"
|
placeholder="正常交接"
|
||||||
v-auth="'handover.create'"
|
@keyup.enter="codeTextChange(10)"
|
||||||
v-if="mgroupName=='一次超洗'||mgroupName=='二次超洗'"
|
></el-input>
|
||||||
>检验</el-button
|
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="right-panel">
|
<div class="right-panel">
|
||||||
<el-select
|
<el-select
|
||||||
|
@ -84,8 +80,8 @@
|
||||||
<el-descriptions-item label="数量">
|
<el-descriptions-item label="数量">
|
||||||
{{item.count}}
|
{{item.count}}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="不合格标记" v-if="item.notok_sign_name!==null">
|
<el-descriptions-item label="不合格标记" v-if="item.defect_name!==null&&item.defect_name!==undefind">
|
||||||
{{item.notok_sign_name}}
|
{{item.defect_name}}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
</template>
|
</template>
|
||||||
|
@ -104,14 +100,14 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="数量" prop="count" width="80"></el-table-column>
|
<el-table-column label="数量" prop="count" width="80"></el-table-column>
|
||||||
<el-table-column label="交接类型" prop="type" width="100">
|
<el-table-column label="交接类型" prop="type" width="100">
|
||||||
<template #default="scope" v-if="mgroupName=='size'||mgroupName=='facade'">
|
<template #default="scope">
|
||||||
<el-text v-if="scope.row.send_dept == deptId" type="primary">交送</el-text>
|
<el-text v-if="scope.row.mtype==20" type="warning">拆批</el-text>
|
||||||
<el-text v-if="scope.row.recive_dept == deptId" type="success">接收</el-text>
|
<el-text v-else-if="scope.row.mtype==30" type="warning">合批</el-text>
|
||||||
</template>
|
<template v-else>
|
||||||
<template #default="scope" v-else>
|
|
||||||
<el-text v-if="scope.row.send_mgroup == mgroupId" type="primary">交送</el-text>
|
<el-text v-if="scope.row.send_mgroup == mgroupId" type="primary">交送</el-text>
|
||||||
<el-text v-if="scope.row.recive_mgroup == mgroupId" type="success">接收</el-text>
|
<el-text v-if="scope.row.recive_mgroup == mgroupId" type="success">接收</el-text>
|
||||||
</template>
|
</template>
|
||||||
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="交接类别" prop="type" width="80">
|
<el-table-column label="交接类别" prop="type" width="80">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
|
@ -211,6 +207,8 @@
|
||||||
v-if="dialog.save"
|
v-if="dialog.save"
|
||||||
ref="saveDialog"
|
ref="saveDialog"
|
||||||
:type="type"
|
:type="type"
|
||||||
|
:process = "processId"
|
||||||
|
:processtype = "processtype"
|
||||||
:mgroupName="mgroupName"
|
:mgroupName="mgroupName"
|
||||||
:mgroupId="mgroupId"
|
:mgroupId="mgroupId"
|
||||||
@success="handleSaveSuccess"
|
@success="handleSaveSuccess"
|
||||||
|
@ -273,8 +271,10 @@ export default {
|
||||||
deptId:'',
|
deptId:'',
|
||||||
mtask: "",
|
mtask: "",
|
||||||
mlogId: "",
|
mlogId: "",
|
||||||
|
codeText:"",
|
||||||
mgroupId: "",
|
mgroupId: "",
|
||||||
processId: "",
|
processId: "",
|
||||||
|
processtype:"",
|
||||||
processCate: "",
|
processCate: "",
|
||||||
printer_name: "",
|
printer_name: "",
|
||||||
printVisible:false,
|
printVisible:false,
|
||||||
|
@ -320,6 +320,7 @@ export default {
|
||||||
that.mgroupId = res[0].id;
|
that.mgroupId = res[0].id;
|
||||||
that.processId = res[0].process;
|
that.processId = res[0].process;
|
||||||
that.processCate = res[0].process_cate;
|
that.processCate = res[0].process_cate;
|
||||||
|
that.processtype = res[0].process_type;
|
||||||
that.params.mgroup = that.mgroupId;
|
that.params.mgroup = that.mgroupId;
|
||||||
that.apiObj = that.$API.wpm.handover.list;
|
that.apiObj = that.$API.wpm.handover.list;
|
||||||
that.$refs.table.refresh();
|
that.$refs.table.refresh();
|
||||||
|
@ -334,7 +335,23 @@ export default {
|
||||||
this.dialog.save = true;
|
this.dialog.save = true;
|
||||||
this.type = type;
|
this.type = type;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.saveDialog.open("add");
|
this.$refs.saveDialog.open("add",'',10);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
codeTextChange(type){
|
||||||
|
let that = this;
|
||||||
|
this.dialog.save = true;
|
||||||
|
this.type = type;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.saveDialog.open("add",that.codeText,10);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
codeTextChange2(type){
|
||||||
|
let that = this;
|
||||||
|
this.dialog.save = true;
|
||||||
|
this.type = type;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.saveDialog.open("add",that.codeText);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
//编辑
|
//编辑
|
||||||
|
|
Loading…
Reference in New Issue