fix:光芯返工日志标记

This commit is contained in:
shijing 2025-04-25 14:56:41 +08:00
parent 6fd4734841
commit d50342425f
3 changed files with 24 additions and 4 deletions

View File

@ -50,6 +50,10 @@
> >
<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="route_name" :min-width="100"> <el-table-column label="工艺步骤" prop="route_name" :min-width="100">
<template #default="scope">
<span v-if="scope.row.is_fix">返工</span>
<span v-else>{{scope.row.route_name}}</span>
</template>
</el-table-column> </el-table-column>
<el-table-column label="任务编号" prop="mtask_number"> <el-table-column label="任务编号" prop="mtask_number">
</el-table-column> </el-table-column>
@ -233,9 +237,21 @@ export default {
}); });
}, },
table_rework(){ table_rework(){
this.dialog.save = true; let that = this;
this.$nextTick(() => { // let form = {};
this.$refs.saveDialog.open("add","rework"); // form.mtype = 10;
// form.is_fix = true;
// form.mgroup = that.mgroupId;
// form.work_end_time = that.$TOOL.fomatDate(new Date(), "yyyy-MM-dd hh:mm:ss");
// form.work_start_time = that.$TOOL.fomatDate(new Date(), "yyyy-MM-dd hh:mm:ss");
// that.$API.wpm.fmlog.create.req(form).then((res) => {
// that.$message.success("");
// }).catch(()=>{
// that.$message.error("");
// });
that.dialog.save = true;
that.$nextTick(() => {
that.$refs.saveDialog.open("add","rework");
}); });
}, },
// //

View File

@ -510,6 +510,9 @@ export default {
if (valid) { if (valid) {
that.isSaveing = true; that.isSaveing = true;
that.form.mgroup = that.mgroup; that.form.mgroup = that.mgroup;
if(that.form.is_fix){
that.form.route = null;
}
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) => {
that.isSaveing = false; that.isSaveing = false;

View File

@ -65,8 +65,9 @@
min-width="130" min-width="130"
> >
<template #default="scope"> <template #default="scope">
<el-tag v-if="scope.row.is_fix" type="warning">返工</el-tag>
<span v-if="scope.row.material_in_name!==null">{{scope.row.material_in_name}}-></span>
<span v-if="scope.row.material_out_name!==null">{{scope.row.material_out_name}}</span> <span v-if="scope.row.material_out_name!==null">{{scope.row.material_out_name}}</span>
<span v-else>返工</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column