|
@@ -18,35 +18,17 @@
|
|
|
:responsive="false"
|
|
:responsive="false"
|
|
|
style="height: calc(100vh - 70px - 50px - 80px)"
|
|
style="height: calc(100vh - 70px - 50px - 80px)"
|
|
|
>
|
|
>
|
|
|
- <ele-split-layout
|
|
|
|
|
- space="0px"
|
|
|
|
|
- width="50%"
|
|
|
|
|
- :resizable="true"
|
|
|
|
|
- :vertical="true"
|
|
|
|
|
- :min-size="45"
|
|
|
|
|
- :max-size="-45"
|
|
|
|
|
- :left-style="{
|
|
|
|
|
- background: 'rgba(171, 199, 255, .5)',
|
|
|
|
|
- overflow: 'hidden',
|
|
|
|
|
- height: '100%'
|
|
|
|
|
- }"
|
|
|
|
|
- :right-style="{
|
|
|
|
|
- background: 'rgba(125, 226, 252, .4)',
|
|
|
|
|
- overflow: 'hidden',
|
|
|
|
|
- height: '100%'
|
|
|
|
|
- }"
|
|
|
|
|
- :responsive="false"
|
|
|
|
|
- class="left_main"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <div class="left_main">
|
|
|
<div class="top">
|
|
<div class="top">
|
|
|
- <produceOrder @workSelect="workSelect" @rowClick="rowClick"></produceOrder>
|
|
|
|
|
|
|
+ <produceOrder
|
|
|
|
|
+ @workSelect="workSelect"
|
|
|
|
|
+ @rowClick="rowClick"
|
|
|
|
|
+ ></produceOrder>
|
|
|
</div>
|
|
</div>
|
|
|
- <template #content>
|
|
|
|
|
- <div class="bottom">
|
|
|
|
|
- <productionResource :BomObj="BomObj"></productionResource>
|
|
|
|
|
- </div>
|
|
|
|
|
- </template>
|
|
|
|
|
- </ele-split-layout>
|
|
|
|
|
|
|
+ <div class="bottom">
|
|
|
|
|
+ <productionResource :BomObj="BomObj"></productionResource>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
|
|
|
<template v-slot:content>
|
|
<template v-slot:content>
|
|
|
<div class="right_main">
|
|
<div class="right_main">
|
|
@@ -101,8 +83,8 @@
|
|
|
import jobBooking from './components/jobBooking/index.vue';
|
|
import jobBooking from './components/jobBooking/index.vue';
|
|
|
import warehousing from './components/warehousing/index.vue';
|
|
import warehousing from './components/warehousing/index.vue';
|
|
|
|
|
|
|
|
- import { getByTaskId } from '@/api/produce/index';
|
|
|
|
|
-
|
|
|
|
|
|
|
+ import { getByTaskId } from '@/api/produce/index';
|
|
|
|
|
+
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
Search,
|
|
Search,
|
|
@@ -182,22 +164,21 @@
|
|
|
this.pickingShow = false;
|
|
this.pickingShow = false;
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- rowClick(row,taskId) {
|
|
|
|
|
- console.log(6666,row)
|
|
|
|
|
- if(taskId) {
|
|
|
|
|
- console.log(6666)
|
|
|
|
|
|
|
+ rowClick(row, taskId) {
|
|
|
|
|
+ console.log(6666, row);
|
|
|
|
|
+ if (taskId) {
|
|
|
|
|
+ console.log(6666);
|
|
|
let params = {
|
|
let params = {
|
|
|
- categoryId:row.categoryId,
|
|
|
|
|
|
|
+ categoryId: row.categoryId,
|
|
|
taskId: taskId
|
|
taskId: taskId
|
|
|
- }
|
|
|
|
|
- getByTaskId(params).then(res => {
|
|
|
|
|
-
|
|
|
|
|
- this.BomObj = res.data
|
|
|
|
|
- this.$forceUpdate()
|
|
|
|
|
-
|
|
|
|
|
- console.log(88, this.BomObj)
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ };
|
|
|
|
|
+ getByTaskId(params).then((res) => {
|
|
|
|
|
+ this.BomObj = res.data;
|
|
|
|
|
+ this.$forceUpdate();
|
|
|
|
|
+
|
|
|
|
|
+ console.log(88, this.BomObj);
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -341,5 +322,6 @@
|
|
|
min-width: 640px;
|
|
min-width: 640px;
|
|
|
height: calc((100vh - 70px - 50px - 80px - 12px));
|
|
height: calc((100vh - 70px - 50px - 80px - 12px));
|
|
|
margin-top: 6px;
|
|
margin-top: 6px;
|
|
|
|
|
+ background: #f0f3f3;
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|