fix:成品检验车间库存放开检验
This commit is contained in:
parent
6a50019343
commit
4d8bf81be3
|
@ -135,7 +135,257 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-divider style="margin-top:0"></el-divider>
|
<el-divider style="margin-top:0"></el-divider>
|
||||||
<el-row>
|
<!-- 尺寸检验 -->
|
||||||
|
<el-row v-if="mgroupName=='size'">
|
||||||
|
<el-col :md="12" :sm="24">
|
||||||
|
<el-form-item label="黑圈内径">
|
||||||
|
<el-input-number
|
||||||
|
controls-position="right"
|
||||||
|
v-model="count_notok_json.count_n_hqnj"
|
||||||
|
style="width: 100%"
|
||||||
|
precision="0"
|
||||||
|
@change="handleCountChange"
|
||||||
|
></el-input-number>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :md="12" :sm="24">
|
||||||
|
<el-form-item label="黑圈内径圆度">
|
||||||
|
<el-input-number
|
||||||
|
controls-position="right"
|
||||||
|
v-model="count_notok_json.count_n_hqnjyd"
|
||||||
|
style="width: 100%"
|
||||||
|
precision="0"
|
||||||
|
@change="handleCountChange"
|
||||||
|
></el-input-number>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :md="12" :sm="24">
|
||||||
|
<el-form-item label="黑圈外径">
|
||||||
|
<el-input-number
|
||||||
|
controls-position="right"
|
||||||
|
v-model="count_notok_json.count_n_hqwj"
|
||||||
|
style="width: 100%"
|
||||||
|
precision="0"
|
||||||
|
@change="handleCountChange"
|
||||||
|
></el-input-number>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :md="12" :sm="24">
|
||||||
|
<el-form-item label="黑圈外径圆度">
|
||||||
|
<el-input-number
|
||||||
|
controls-position="right"
|
||||||
|
v-model="count_notok_json.count_n_hqwjyd"
|
||||||
|
style="width: 100%"
|
||||||
|
precision="0"
|
||||||
|
@change="handleCountChange"
|
||||||
|
></el-input-number>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :md="12" :sm="24">
|
||||||
|
<el-form-item label="产品外径">
|
||||||
|
<el-input-number
|
||||||
|
controls-position="right"
|
||||||
|
v-model="count_notok_json.count_n_wj"
|
||||||
|
style="width: 100%"
|
||||||
|
precision="0"
|
||||||
|
@change="handleCountChange"
|
||||||
|
></el-input-number>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :md="12" :sm="24">
|
||||||
|
<el-form-item label="产品圆度">
|
||||||
|
<el-input-number
|
||||||
|
controls-position="right"
|
||||||
|
v-model="count_notok_json.count_n_yd"
|
||||||
|
style="width: 100%"
|
||||||
|
precision="0"
|
||||||
|
@change="handleCountChange"
|
||||||
|
></el-input-number>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :md="12" :sm="24">
|
||||||
|
<el-form-item label="产品同心度">
|
||||||
|
<el-input-number
|
||||||
|
controls-position="right"
|
||||||
|
v-model="count_notok_json.count_n_txd"
|
||||||
|
style="width: 100%"
|
||||||
|
precision="0"
|
||||||
|
@change="handleCountChange"
|
||||||
|
></el-input-number>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :md="12" :sm="24">
|
||||||
|
<el-form-item label="厚度">
|
||||||
|
<el-input-number
|
||||||
|
controls-position="right"
|
||||||
|
v-model="count_notok_json.count_n_hd"
|
||||||
|
style="width: 100%"
|
||||||
|
precision="0"
|
||||||
|
@change="handleCountChange"
|
||||||
|
></el-input-number>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :md="12" :sm="24">
|
||||||
|
<el-form-item label="准合格">
|
||||||
|
<el-input-number
|
||||||
|
controls-position="right"
|
||||||
|
v-model="count_notok_json.count_n_zhg"
|
||||||
|
style="width: 100%"
|
||||||
|
precision="0"
|
||||||
|
@change="handleCountChange"
|
||||||
|
></el-input-number>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :md="12" :sm="24">
|
||||||
|
<el-form-item label="圆准">
|
||||||
|
<el-input-number
|
||||||
|
controls-position="right"
|
||||||
|
v-model="count_notok_json.count_n_yz"
|
||||||
|
style="width: 100%"
|
||||||
|
precision="0"
|
||||||
|
@change="handleCountChange"
|
||||||
|
></el-input-number>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<!-- 外观检验 -->
|
||||||
|
<el-row v-else-if="mgroupName=='facade'">
|
||||||
|
<el-col :md="12" :sm="24">
|
||||||
|
<el-form-item label="脏">
|
||||||
|
<el-input-number
|
||||||
|
controls-position="right"
|
||||||
|
v-model="count_notok_json.count_n_z"
|
||||||
|
style="width: 100%"
|
||||||
|
precision="0"
|
||||||
|
@change="handleCountChange"
|
||||||
|
></el-input-number>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :md="12" :sm="24">
|
||||||
|
<el-form-item label="气泡">
|
||||||
|
<el-input-number
|
||||||
|
controls-position="right"
|
||||||
|
v-model="count_notok_json.count_n_qp"
|
||||||
|
style="width: 100%"
|
||||||
|
precision="0"
|
||||||
|
@change="handleCountChange"
|
||||||
|
></el-input-number>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :md="12" :sm="24">
|
||||||
|
<el-form-item label="水纹">
|
||||||
|
<el-input-number
|
||||||
|
controls-position="right"
|
||||||
|
v-model="count_notok_json.count_n_swen"
|
||||||
|
style="width: 100%"
|
||||||
|
precision="0"
|
||||||
|
@change="handleCountChange"
|
||||||
|
></el-input-number>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :md="12" :sm="24">
|
||||||
|
<el-form-item label="崩边">
|
||||||
|
<el-input-number
|
||||||
|
controls-position="right"
|
||||||
|
v-model="count_notok_json.count_n_bb"
|
||||||
|
style="width: 100%"
|
||||||
|
precision="0"
|
||||||
|
@change="handleCountChange"
|
||||||
|
></el-input-number>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :md="12" :sm="24">
|
||||||
|
<el-form-item label="棕边">
|
||||||
|
<el-input-number
|
||||||
|
controls-position="right"
|
||||||
|
v-model="count_notok_json.count_n_zb"
|
||||||
|
style="width: 100%"
|
||||||
|
precision="0"
|
||||||
|
@change="handleCountChange"
|
||||||
|
></el-input-number>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :md="12" :sm="24">
|
||||||
|
<el-form-item label="棕圈">
|
||||||
|
<el-input-number
|
||||||
|
controls-position="right"
|
||||||
|
v-model="count_notok_json.count_n_zq"
|
||||||
|
style="width: 100%"
|
||||||
|
precision="0"
|
||||||
|
@change="handleCountChange"
|
||||||
|
></el-input-number>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :md="12" :sm="24">
|
||||||
|
<el-form-item label="划伤">
|
||||||
|
<el-input-number
|
||||||
|
controls-position="right"
|
||||||
|
v-model="count_notok_json.count_n_hs"
|
||||||
|
style="width: 100%"
|
||||||
|
precision="0"
|
||||||
|
@change="handleCountChange"
|
||||||
|
></el-input-number>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :md="12" :sm="24">
|
||||||
|
<el-form-item label="麻点">
|
||||||
|
<el-input-number
|
||||||
|
controls-position="right"
|
||||||
|
v-model="count_notok_json.count_n_md"
|
||||||
|
style="width: 100%"
|
||||||
|
precision="0"
|
||||||
|
@change="handleCountChange"
|
||||||
|
></el-input-number>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :md="12" :sm="24">
|
||||||
|
<el-form-item label="黑圈变形">
|
||||||
|
<el-input-number
|
||||||
|
controls-position="right"
|
||||||
|
v-model="count_notok_json.count_n_hqbx"
|
||||||
|
style="width: 100%"
|
||||||
|
precision="0"
|
||||||
|
@change="handleCountChange"
|
||||||
|
></el-input-number>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :md="12" :sm="24">
|
||||||
|
<el-form-item label="倒角">
|
||||||
|
<el-input-number
|
||||||
|
controls-position="right"
|
||||||
|
v-model="count_notok_json.count_n_dj"
|
||||||
|
style="width: 100%"
|
||||||
|
precision="0"
|
||||||
|
|
||||||
|
@change="handleCountChange"
|
||||||
|
></el-input-number>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :md="12" :sm="24">
|
||||||
|
<el-form-item label="破损">
|
||||||
|
<el-input-number
|
||||||
|
controls-position="right"
|
||||||
|
v-model="count_notok_json.count_n_ps"
|
||||||
|
style="width: 100%"
|
||||||
|
precision="0"
|
||||||
|
@change="handleCountChange"
|
||||||
|
></el-input-number>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :md="12" :sm="24">
|
||||||
|
<el-form-item label="蓝圈">
|
||||||
|
<el-input-number
|
||||||
|
controls-position="right"
|
||||||
|
v-model="count_notok_json.count_n_lq"
|
||||||
|
style="width: 100%"
|
||||||
|
precision="0"
|
||||||
|
@change="handleCountChange"
|
||||||
|
></el-input-number>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<!-- 过程检验 -->
|
||||||
|
<el-row v-else>
|
||||||
<el-col :md="12" :sm="24">
|
<el-col :md="12" :sm="24">
|
||||||
<el-form-item label="厚度">
|
<el-form-item label="厚度">
|
||||||
<el-input-number
|
<el-input-number
|
||||||
|
@ -288,6 +538,10 @@ export default {
|
||||||
type: String,
|
type: String,
|
||||||
default: "",
|
default: "",
|
||||||
},
|
},
|
||||||
|
mgroupName:{
|
||||||
|
type: String,
|
||||||
|
default: "",
|
||||||
|
},
|
||||||
itemObj:{
|
itemObj:{
|
||||||
type: Object,
|
type: Object,
|
||||||
default: null,
|
default: null,
|
||||||
|
|
|
@ -107,7 +107,6 @@
|
||||||
fixed="right"
|
fixed="right"
|
||||||
align="center"
|
align="center"
|
||||||
width="120"
|
width="120"
|
||||||
|
|
||||||
>
|
>
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -115,14 +114,15 @@
|
||||||
@click="table_Check(scope.row)"
|
@click="table_Check(scope.row)"
|
||||||
v-auth="'ftestwork.create'"
|
v-auth="'ftestwork.create'"
|
||||||
type="primary"
|
type="primary"
|
||||||
v-if="mgroupName!=='size'&&mgroupName!=='facade'&&scope.row.notok_sign_name == null"
|
v-if="scope.row.notok_sign_name == null"
|
||||||
>检验
|
>检验
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<!-- v-if="mgroupName!=='size'&&mgroupName!=='facade'&&scope.row.notok_sign_name == null" -->
|
||||||
<el-button
|
<el-button
|
||||||
link size="small"
|
link size="small"
|
||||||
type="warning"
|
type="warning"
|
||||||
@click="tableCheckList(scope.row)"
|
@click="tableCheckList(scope.row)"
|
||||||
v-if="mgroupName!=='size'&&mgroupName!=='facade'&&scope.row.notok_sign_name == null"
|
v-if="scope.row.notok_sign_name == null"
|
||||||
>检验记录
|
>检验记录
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button @click="printMaterial(scope.row)" type="text">物料标签</el-button>
|
<el-button @click="printMaterial(scope.row)" type="text">物料标签</el-button>
|
||||||
|
@ -142,6 +142,7 @@
|
||||||
v-if="dialog.save"
|
v-if="dialog.save"
|
||||||
ref="saveDialog"
|
ref="saveDialog"
|
||||||
:mgroup="mgroupId"
|
:mgroup="mgroupId"
|
||||||
|
:mgroupName="mgroupName"
|
||||||
:itemObj = "checkItem"
|
:itemObj = "checkItem"
|
||||||
@success="handleSaveSuccess"
|
@success="handleSaveSuccess"
|
||||||
@closed="dialog.save = false"
|
@closed="dialog.save = false"
|
||||||
|
@ -251,10 +252,12 @@ export default {
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
console.log(that.mgroupName);
|
||||||
if(that.mgroupName=="size"){
|
if(that.mgroupName=="size"){
|
||||||
// that.params.material__process__name = "一次超洗";
|
// that.params.material__process__name = "一次超洗";
|
||||||
that.$API.system.dept.list.req({name__contains:'尺寸',page:0}).then((res) => {
|
that.$API.system.dept.list.req({name__contains:'尺寸',page:0}).then((res) => {
|
||||||
if(res.length>0){
|
if(res.length>0){
|
||||||
|
that.params.mgroupx = null;
|
||||||
that.params.belong_dept=res[0].id;
|
that.params.belong_dept=res[0].id;
|
||||||
}
|
}
|
||||||
that.apiObj = that.$API.wpm.wmaterial.list;
|
that.apiObj = that.$API.wpm.wmaterial.list;
|
||||||
|
@ -263,6 +266,7 @@ export default {
|
||||||
// that.params.material__process__name = "二次超洗";
|
// that.params.material__process__name = "二次超洗";
|
||||||
that.$API.system.dept.list.req({name__contains:'外观',page:0}).then((res) => {
|
that.$API.system.dept.list.req({name__contains:'外观',page:0}).then((res) => {
|
||||||
if(res.length>0){
|
if(res.length>0){
|
||||||
|
that.params.mgroupx = null;
|
||||||
that.params.belong_dept=res[0].id;
|
that.params.belong_dept=res[0].id;
|
||||||
}
|
}
|
||||||
that.apiObj = that.$API.wpm.wmaterial.list;
|
that.apiObj = that.$API.wpm.wmaterial.list;
|
||||||
|
@ -279,7 +283,7 @@ export default {
|
||||||
that.$TOOL.data.set('gx_deptID',res[0].belong_dept)
|
that.$TOOL.data.set('gx_deptID',res[0].belong_dept)
|
||||||
that.process = res[0].process;
|
that.process = res[0].process;
|
||||||
that.params.mgroupx = res[0].id;
|
that.params.mgroupx = res[0].id;
|
||||||
that.params.belong_dept = res[0].belong_dept;
|
// that.params.belong_dept = res[0].belong_dept;
|
||||||
that.apiObj = that.$API.wpm.wmaterial.list;
|
that.apiObj = that.$API.wpm.wmaterial.list;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue