fix:标签中的切片数量展示
This commit is contained in:
parent
d353df9c1d
commit
6b05f21ce6
|
@ -17,35 +17,17 @@
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
<el-descriptions>
|
<el-descriptions>
|
||||||
<el-descriptions-item label="工段名称">{{
|
<el-descriptions-item label="工段名称">{{mlogItem.mgroup_name}}</el-descriptions-item>
|
||||||
mlogItem.mgroup_name
|
<el-descriptions-item label="生产设备" v-if="mlogItem.equipment_name!==null">{{mlogItem.equipment_name}}</el-descriptions-item>
|
||||||
}}</el-descriptions-item>
|
<el-descriptions-item label="部门/车间">{{mlogItem.belong_dept_name}}</el-descriptions-item>
|
||||||
<el-descriptions-item label="生产设备" v-if="mlogItem.equipment_name!==null">{{
|
<el-descriptions-item label="处理人">{{mlogItem.handle_user_name}}</el-descriptions-item>
|
||||||
mlogItem.equipment_name
|
|
||||||
}}</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="部门/车间">{{
|
|
||||||
mlogItem.belong_dept_name
|
|
||||||
}}</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="处理人">{{
|
|
||||||
mlogItem.handle_user_name
|
|
||||||
}}</el-descriptions-item>
|
|
||||||
<template v-for="item in oinfo_json" :key="item">
|
<template v-for="item in oinfo_json" :key="item">
|
||||||
<el-descriptions-item :label="item.key" >
|
<el-descriptions-item :label="item.key" >{{item.value}}</el-descriptions-item>
|
||||||
{{item.value}}
|
|
||||||
</el-descriptions-item>
|
|
||||||
</template>
|
</template>
|
||||||
<el-descriptions-item label="创建时间">{{
|
<el-descriptions-item label="创建时间">{{mlogItem.create_time}}</el-descriptions-item>
|
||||||
mlogItem.create_time
|
<el-descriptions-item label="操作日期">{{mlogItem.handle_date}}</el-descriptions-item>
|
||||||
}}</el-descriptions-item>
|
<el-descriptions-item label="开始时间">{{mlogItem.work_start_time}}</el-descriptions-item>
|
||||||
<el-descriptions-item label="操作日期">{{
|
<el-descriptions-item label="结束时间">{{mlogItem.work_end_time}}</el-descriptions-item>
|
||||||
mlogItem.handle_date
|
|
||||||
}}</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="开始时间">{{
|
|
||||||
mlogItem.work_start_time
|
|
||||||
}}</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="结束时间">{{
|
|
||||||
mlogItem.work_end_time
|
|
||||||
}}</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="指导文件" v-if="route_file!==null">
|
<el-descriptions-item label="指导文件" v-if="route_file!==null">
|
||||||
<el-button @click="showFile">查看</el-button>
|
<el-button @click="showFile">查看</el-button>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
@ -367,7 +349,7 @@
|
||||||
:wm = "wm"
|
:wm = "wm"
|
||||||
:dept="deptId"
|
:dept="deptId"
|
||||||
:mgroup="mgroup"
|
:mgroup="mgroup"
|
||||||
:material_in="mlogItem.material_in"
|
:cutCount="cutCount"
|
||||||
:material_out="mlogItem.material_out"
|
:material_out="mlogItem.material_out"
|
||||||
:mgroupName= "mlogItem.mgroup_name"
|
:mgroupName= "mlogItem.mgroup_name"
|
||||||
:isSubmit="isSubmit"
|
:isSubmit="isSubmit"
|
||||||
|
@ -566,6 +548,7 @@ export default {
|
||||||
},
|
},
|
||||||
qct:null,
|
qct:null,
|
||||||
defectlist:[],
|
defectlist:[],
|
||||||
|
cutCount:0,
|
||||||
batchNumber:'',
|
batchNumber:'',
|
||||||
hasRoute:false,
|
hasRoute:false,
|
||||||
isSubmit:false,
|
isSubmit:false,
|
||||||
|
@ -593,13 +576,9 @@ export default {
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$API.wpm.mlog.item.req(that.mlogId).then((res) => {
|
that.$API.wpm.mlog.item.req(that.mlogId).then((res) => {
|
||||||
that.mlogItem = res;
|
that.mlogItem = res;
|
||||||
that.checkTableShow = true;
|
|
||||||
that.isSubmit = res.submit_time==null?false:true;
|
that.isSubmit = res.submit_time==null?false:true;
|
||||||
if(that.processType=='10'&&that.mlogItem.material_out_&&that.mlogItem.material_out_.tracking==20){
|
if(that.processType=='10'&&that.mlogItem.material_out_&&that.mlogItem.material_out_.tracking==20){
|
||||||
that.getMlogbw();
|
that.getMlogbw();
|
||||||
// if(that.mlogItem.qct!==null){
|
|
||||||
// that.getdefects(that.mlogItem.qct);
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
if(res.route!==null){
|
if(res.route!==null){
|
||||||
that.hasRoute = true;
|
that.hasRoute = true;
|
||||||
|
@ -608,7 +587,12 @@ export default {
|
||||||
if(res.oinfo_json_&&res.oinfo_json_!==null){
|
if(res.oinfo_json_&&res.oinfo_json_!==null){
|
||||||
for(let key in res.oinfo_json_){
|
for(let key in res.oinfo_json_){
|
||||||
let obj = {};
|
let obj = {};
|
||||||
|
if(key=='cutCount'){
|
||||||
|
that.cutCount = res.oinfo_json_[key];
|
||||||
|
obj.key = '切分数量';
|
||||||
|
}else{
|
||||||
obj.key = key;
|
obj.key = key;
|
||||||
|
}
|
||||||
obj.value = res.oinfo_json_[key];
|
obj.value = res.oinfo_json_[key];
|
||||||
that.oinfo_json.push(obj);
|
that.oinfo_json.push(obj);
|
||||||
}
|
}
|
||||||
|
@ -621,6 +605,7 @@ export default {
|
||||||
}
|
}
|
||||||
that.materialIn = res.material_in;
|
that.materialIn = res.material_in;
|
||||||
that.deptId = res.belong_dept;
|
that.deptId = res.belong_dept;
|
||||||
|
that.checkTableShow = true;
|
||||||
that.apiObjWm = that.$API.wpm.wmaterial.list;
|
that.apiObjWm = that.$API.wpm.wmaterial.list;
|
||||||
that.$API.wpm.mlogb.list.req(that.paramsOut).then((res) => {
|
that.$API.wpm.mlogb.list.req(that.paramsOut).then((res) => {
|
||||||
that.tableData2 = res;
|
that.tableData2 = res;
|
||||||
|
|
|
@ -48,6 +48,7 @@
|
||||||
clearable
|
clearable
|
||||||
filterable
|
filterable
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
|
@change="routeChange"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in routeOptions"
|
v-for="item in routeOptions"
|
||||||
|
@ -80,6 +81,17 @@
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :md="12" :sm="12" :xs="24" v-if="route_code=='tuomoceliang'">
|
||||||
|
<el-form-item label="切分数量">
|
||||||
|
<el-input-number
|
||||||
|
v-model="form.cutCount"
|
||||||
|
:min="1"
|
||||||
|
class="width-100"
|
||||||
|
controls-position="right"
|
||||||
|
>
|
||||||
|
</el-input-number>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
<el-col :md="12" :sm="12" :xs="24" v-for="item in testitems" :key="item.id">
|
<el-col :md="12" :sm="12" :xs="24" v-for="item in testitems" :key="item.id">
|
||||||
<el-form-item :label="item.name">
|
<el-form-item :label="item.name">
|
||||||
<el-input-number
|
<el-input-number
|
||||||
|
@ -422,6 +434,14 @@ export default {
|
||||||
}
|
}
|
||||||
this.getRoute(data.id);
|
this.getRoute(data.id);
|
||||||
},
|
},
|
||||||
|
routeChange(){
|
||||||
|
let that = this;
|
||||||
|
that.routeOptions.forEach((item) => {
|
||||||
|
if(item.id == that.form.route&&that.route_code=='tuomoceliang'){
|
||||||
|
that.form.cutCount = item.div_number;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
changeMtask(){
|
changeMtask(){
|
||||||
let that = this;
|
let that = this;
|
||||||
that.mtaskOptions.forEach((item) => {
|
that.mtaskOptions.forEach((item) => {
|
||||||
|
@ -446,6 +466,9 @@ export default {
|
||||||
that.testitems.forEach((item) => {
|
that.testitems.forEach((item) => {
|
||||||
oinfo_json[item.id] = item.value;
|
oinfo_json[item.id] = item.value;
|
||||||
})
|
})
|
||||||
|
if(that.route_code=="tuomoceliang"){
|
||||||
|
oinfo_json.cutCount = that.form.cutCount;
|
||||||
|
}
|
||||||
that.form.oinfo_json = oinfo_json;
|
that.form.oinfo_json = oinfo_json;
|
||||||
if (that.mode === "add") {
|
if (that.mode === "add") {
|
||||||
that.$API.wpm.mlog.init.req(that.form).then((res) => {
|
that.$API.wpm.mlog.init.req(that.form).then((res) => {
|
||||||
|
|
|
@ -359,6 +359,10 @@ export default {
|
||||||
processType:{
|
processType:{
|
||||||
type:String,
|
type:String,
|
||||||
default:"",
|
default:"",
|
||||||
|
},
|
||||||
|
cutCount:{
|
||||||
|
type:Number,
|
||||||
|
default:0,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
emits: ["success", "closed"],
|
emits: ["success", "closed"],
|
||||||
|
@ -433,7 +437,7 @@ export default {
|
||||||
watch: {},
|
watch: {},
|
||||||
mounted() {
|
mounted() {
|
||||||
let that = this;
|
let that = this;
|
||||||
console.log('that.material_out',that.material_out)
|
console.log('that.cutCount',that.cutCount)
|
||||||
if(that.processType=='20'){
|
if(that.processType=='20'){
|
||||||
that.canMultiple = true;
|
that.canMultiple = true;
|
||||||
}
|
}
|
||||||
|
@ -510,6 +514,7 @@ export default {
|
||||||
},
|
},
|
||||||
testdefectss(res){
|
testdefectss(res){
|
||||||
let that = this;
|
let that = this;
|
||||||
|
console.log('res',res)
|
||||||
res.qct_defects.forEach((item) => {
|
res.qct_defects.forEach((item) => {
|
||||||
that.addTemplate[item.defect_name] = false;
|
that.addTemplate[item.defect_name] = false;
|
||||||
let obj = Object.assign({}, item);
|
let obj = Object.assign({}, item);
|
||||||
|
@ -527,6 +532,9 @@ export default {
|
||||||
obj2.addto_wpr = item2.addto_wpr;
|
obj2.addto_wpr = item2.addto_wpr;
|
||||||
if(item2.testitem_field_type=='input-number'||item2.testitem_field_type=='input-int'){
|
if(item2.testitem_field_type=='input-number'||item2.testitem_field_type=='input-int'){
|
||||||
obj2.value = null;
|
obj2.value = null;
|
||||||
|
if(item2.testitem_name == '切片数'){
|
||||||
|
obj2.value = Number(that.cutCount);
|
||||||
|
}
|
||||||
that.addTemplate[item2.testitem_name] = null;
|
that.addTemplate[item2.testitem_name] = null;
|
||||||
}
|
}
|
||||||
if(item2.testitem_field_type=='select-text'||item2.testitem_field_type=='selects-text'){
|
if(item2.testitem_field_type=='select-text'||item2.testitem_field_type=='selects-text'){
|
||||||
|
@ -535,6 +543,7 @@ export default {
|
||||||
obj2.testitem_choices = arr;
|
obj2.testitem_choices = arr;
|
||||||
that.addTemplate[item2.testitem_name] = null;
|
that.addTemplate[item2.testitem_name] = null;
|
||||||
}
|
}
|
||||||
|
console.log('obj2',obj2)
|
||||||
that.qct_testitems.push(obj2);
|
that.qct_testitems.push(obj2);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -587,7 +596,11 @@ export default {
|
||||||
obj[item1.defect_name] = false;
|
obj[item1.defect_name] = false;
|
||||||
})
|
})
|
||||||
that.qct_testitems.forEach((item2) => {
|
that.qct_testitems.forEach((item2) => {
|
||||||
|
if(item2.testitem_name == '切片数'){
|
||||||
|
obj[item2.testitem_name] = Number(that.cutCount);
|
||||||
|
}else{
|
||||||
obj[item2.testitem_name] = null;
|
obj[item2.testitem_name] = null;
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue