fix:coding#656
This commit is contained in:
parent
13d0d7d5f7
commit
5b676f7c4b
|
@ -424,7 +424,13 @@
|
||||||
<el-container>
|
<el-container>
|
||||||
<el-header>
|
<el-header>
|
||||||
<div class="left-panel">
|
<div class="left-panel">
|
||||||
<span style="font-size: 14px">交接记录</span>
|
<span style="font-size: 14px;margin-right: 10px;">交接记录</span>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
@click="addHandover"
|
||||||
|
v-auth="'handover.create'"
|
||||||
|
>新增
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="right-panel">
|
<div class="right-panel">
|
||||||
<el-input
|
<el-input
|
||||||
|
@ -644,6 +650,14 @@
|
||||||
<el-button @click="addMtaskInfoVisible = false">取消</el-button>
|
<el-button @click="addMtaskInfoVisible = false">取消</el-button>
|
||||||
</el-footer>
|
</el-footer>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
<handover-dialog
|
||||||
|
v-if="dialogHandover"
|
||||||
|
ref="handoverDialog"
|
||||||
|
:mgroup="mgroup"
|
||||||
|
:dept="currentDept.id"
|
||||||
|
@success="handleHandoverSuccess"
|
||||||
|
@closed="dialogHandover = false">
|
||||||
|
</handover-dialog>
|
||||||
<el-dialog title="选择物料" v-model="materialsVisible" width="90%">
|
<el-dialog title="选择物料" v-model="materialsVisible" width="90%">
|
||||||
<materials
|
<materials
|
||||||
style="height: 500px"
|
style="height: 500px"
|
||||||
|
@ -656,6 +670,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import handoverDialog from "./handover_form.vue";
|
||||||
import saveDialog from "./worktask_form.vue";
|
import saveDialog from "./worktask_form.vue";
|
||||||
import showDrawer from "./mlog_drawer.vue";
|
import showDrawer from "./mlog_drawer.vue";
|
||||||
import materials from "./../mtm/materials.vue";
|
import materials from "./../mtm/materials.vue";
|
||||||
|
@ -664,6 +679,7 @@ export default {
|
||||||
saveDialog,
|
saveDialog,
|
||||||
showDrawer,
|
showDrawer,
|
||||||
materials,
|
materials,
|
||||||
|
handoverDialog
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -708,6 +724,7 @@ export default {
|
||||||
material_model: "",
|
material_model: "",
|
||||||
queryMtaskState: false,
|
queryMtaskState: false,
|
||||||
materialsVisible: false,
|
materialsVisible: false,
|
||||||
|
dialogHandover:false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
@ -934,6 +951,14 @@ export default {
|
||||||
this.mlogHandleLoading = false;
|
this.mlogHandleLoading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
//从生产日志生成交接记录
|
||||||
|
addHandover() {
|
||||||
|
this.dialogHandover = true;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.handoverDialog.open('add');
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleHandoverSuccess(){},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -158,6 +158,12 @@
|
||||||
<el-header>
|
<el-header>
|
||||||
<div class="left-panel">
|
<div class="left-panel">
|
||||||
<span style="font-size: 14px">交接记录</span>
|
<span style="font-size: 14px">交接记录</span>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
@click="addHandover"
|
||||||
|
v-auth="'handover.create'"
|
||||||
|
>新增
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="right-panel">
|
<div class="right-panel">
|
||||||
<el-input
|
<el-input
|
||||||
|
@ -347,15 +353,24 @@
|
||||||
@choseChange="choseChange"
|
@choseChange="choseChange"
|
||||||
></materials>
|
></materials>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
<handover-dialog
|
||||||
|
v-if="dialogHandover"
|
||||||
|
ref="handoverDialog"
|
||||||
|
:dept="currentDeptId"
|
||||||
|
@success="handleHandoverSuccess"
|
||||||
|
@closed="dialogHandover = false">
|
||||||
|
</handover-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import handoverDialog from "./handover_form.vue";
|
||||||
import showDrawer from "./mlog_dept6_detail.vue";
|
import showDrawer from "./mlog_dept6_detail.vue";
|
||||||
import materials from "./../mtm/materials.vue";
|
import materials from "./../mtm/materials.vue";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
showDrawer,
|
showDrawer,
|
||||||
materials,
|
materials,
|
||||||
|
handoverDialog
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -405,17 +420,26 @@ export default {
|
||||||
queryMtask: {
|
queryMtask: {
|
||||||
state__in: "",
|
state__in: "",
|
||||||
},
|
},
|
||||||
|
currentDeptId:'',
|
||||||
mtaskId: "",
|
mtaskId: "",
|
||||||
dataWm: [],
|
dataWm: [],
|
||||||
dataWmOrigin: [],
|
dataWmOrigin: [],
|
||||||
materialType: "wm",
|
materialType: "wm",
|
||||||
visibleDrawer: false,
|
visibleDrawer: false,
|
||||||
|
dialogHandover:false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
let NowDate = new Date();
|
let NowDate = new Date();
|
||||||
// this.queryMtask.start_date = NowDate.getFullYear() + '-' + (NowDate.getMonth() + 1) + '-' + NowDate.getDate();
|
// this.queryMtask.start_date = NowDate.getFullYear() + '-' + (NowDate.getMonth() + 1) + '-' + NowDate.getDate();
|
||||||
this.apiObj = this.$API.pm.mtask.list;
|
this.apiObj = this.$API.pm.mtask.list;
|
||||||
|
this.$API.system.dept.list.req({ page: 0, name: "6车间" }).then((res) => {
|
||||||
|
if (res.length > 0) {
|
||||||
|
this.currentDeptId = res[0].id;
|
||||||
|
} else {
|
||||||
|
this.$message.error("未找到车间");
|
||||||
|
}
|
||||||
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
tomio() {
|
tomio() {
|
||||||
|
@ -505,6 +529,13 @@ export default {
|
||||||
})
|
})
|
||||||
.catch((err) => {});
|
.catch((err) => {});
|
||||||
},
|
},
|
||||||
|
//从生产日志生成交接记录
|
||||||
|
addHandover() {
|
||||||
|
this.dialogHandover = true;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.handoverDialog.open('add');
|
||||||
|
})
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -394,7 +394,13 @@
|
||||||
<el-container>
|
<el-container>
|
||||||
<el-header>
|
<el-header>
|
||||||
<div class="left-panel">
|
<div class="left-panel">
|
||||||
<span style="font-size: 14px">交接记录</span>
|
<span style="font-size: 14px;margin-right: 10px">交接记录</span>
|
||||||
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
@click="addHandover"
|
||||||
|
v-auth="'handover.create'"
|
||||||
|
>新增
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div class="right-panel">
|
<div class="right-panel">
|
||||||
<el-input
|
<el-input
|
||||||
|
@ -584,6 +590,14 @@
|
||||||
@closed="dialogSave = false"
|
@closed="dialogSave = false"
|
||||||
>
|
>
|
||||||
</save-dialog>
|
</save-dialog>
|
||||||
|
<handover-dialog
|
||||||
|
v-if="dialogHandover"
|
||||||
|
ref="handoverDialog"
|
||||||
|
:mgroup="mgroup"
|
||||||
|
:dept="currentDept.id"
|
||||||
|
@success="handleHandoverSuccess"
|
||||||
|
@closed="dialogHandover = false">
|
||||||
|
</handover-dialog>
|
||||||
<showDrawer
|
<showDrawer
|
||||||
ref="showDrawer"
|
ref="showDrawer"
|
||||||
v-if="visibleDrawer"
|
v-if="visibleDrawer"
|
||||||
|
@ -602,11 +616,13 @@
|
||||||
</el-container>
|
</el-container>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import handoverDialog from "./handover_form.vue";
|
||||||
import saveDialog from "./worktask_form.vue";
|
import saveDialog from "./worktask_form.vue";
|
||||||
import showDrawer from "./mlog_drawer.vue";
|
import showDrawer from "./mlog_drawer.vue";
|
||||||
import materials from "./../mtm/materials.vue";
|
import materials from "./../mtm/materials.vue";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
handoverDialog,
|
||||||
saveDialog,
|
saveDialog,
|
||||||
showDrawer,
|
showDrawer,
|
||||||
materials,
|
materials,
|
||||||
|
@ -627,6 +643,7 @@ export default {
|
||||||
34: "已终止",
|
34: "已终止",
|
||||||
40: "已提交",
|
40: "已提交",
|
||||||
},
|
},
|
||||||
|
dialogHandover:false,
|
||||||
dialogSave: false,
|
dialogSave: false,
|
||||||
visibleDrawer: false,
|
visibleDrawer: false,
|
||||||
queryMtaskState: false,
|
queryMtaskState: false,
|
||||||
|
@ -819,6 +836,7 @@ export default {
|
||||||
handleSaveSuccess() {
|
handleSaveSuccess() {
|
||||||
this.getMlogs();
|
this.getMlogs();
|
||||||
},
|
},
|
||||||
|
handleHandoverSuccess(){},
|
||||||
table_show(row) {
|
table_show(row) {
|
||||||
this.mlogId = row.id;
|
this.mlogId = row.id;
|
||||||
this.visibleDrawer = true;
|
this.visibleDrawer = true;
|
||||||
|
@ -840,6 +858,13 @@ export default {
|
||||||
this.mlogHandleLoading = false;
|
this.mlogHandleLoading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
//从生产日志生成交接记录
|
||||||
|
addHandover() {
|
||||||
|
this.dialogHandover = true;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.handoverDialog.open('add');
|
||||||
|
})
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue