diff --git a/src/views/wpm_gx/fmlogs.vue b/src/views/wpm_gx/fmlogs.vue
index 5ef1642a..399359dd 100644
--- a/src/views/wpm_gx/fmlogs.vue
+++ b/src/views/wpm_gx/fmlogs.vue
@@ -9,6 +9,13 @@
v-auth="'mlog.create'"
>新增
+ 返工
@@ -44,6 +50,11 @@
+
+
+
+
+
{
- if (res.length < 1) {
- that.$message.error("获取工段错误");
- return;
- }
- that.mgroupId = res[0].id;
- that.deptId = res[0].belong_dept;
- that.processId = res[0].process;
- that.processCate = res[0].process_cate;
- that.params.mgroup = res[0].id;
- that.apiObj = that.$API.wpm.fmlog.list;
- });
+ that.params.mgroup = that.mgroupId;
+ that.apiObj = that.$API.wpm.fmlog.list;
},
methods: {
+ enabledChange(row){
+ this.$API.wpm.fmlog.toggleenabled.req(row.id).then(res=>{
+ // this.$refs.table.refresh();
+ })
+ },
detailClose() {
this.dialog.detail = false;
this.$refs.table.refresh();
@@ -164,6 +182,12 @@ export default {
this.$refs.saveDialog.open("add");
});
},
+ table_rework(){
+ this.dialog.save = true;
+ this.$nextTick(() => {
+ this.$refs.saveDialog.open("add","rework");
+ });
+ },
//编辑日志
table_edit(row) {
this.dialog.save = true;
diff --git a/src/views/wpm_gx/mlogs.vue b/src/views/wpm_gx/mlogs.vue
index 44abed4f..8c9d8ce2 100644
--- a/src/views/wpm_gx/mlogs.vue
+++ b/src/views/wpm_gx/mlogs.vue
@@ -167,10 +167,26 @@ import detailDrawer from "./mlog_detail.vue";
export default {
props: {
+ deptId: {
+ type: String,
+ default: "",
+ },
+ mgroupId: {
+ type: String,
+ default: "",
+ },
mgroupName: {
type: String,
default: "",
},
+ processId: {
+ type: String,
+ default: "",
+ },
+ mgroupcode: {
+ type: String,
+ default: "",
+ },
},
name: "mlog",
components: {
@@ -190,13 +206,13 @@ export default {
selection: [],
mtask: "",
mlogId: "",
- deptId: null,
- processId: "",
- processCate: "",
};
},
mounted() {
- this.getMgroupInfo();
+ let that = this;
+ that.params.mgroup = that.mgroupId;
+ that.apiObj = that.$API.wpm.mlog.list;
+ // this.getMgroupInfo();
},
methods: {
getMgroupInfo(){
@@ -209,7 +225,6 @@ export default {
that.mgroupId = res[0].id;
that.deptId = res[0].belong_dept;
that.processId = res[0].process;
- that.processCate = res[0].process_cate;
that.params.mgroup = res[0].id;
that.apiObj = that.$API.wpm.mlog.list;
that.$refs.table.refresh();