|
@@ -4,11 +4,19 @@
|
|
|
|
|
|
|
|
<!-- 工序名称 -->
|
|
<!-- 工序名称 -->
|
|
|
<Search></Search>
|
|
<Search></Search>
|
|
|
-
|
|
|
|
|
|
|
+ <!-- <div>
|
|
|
|
|
+ 111
|
|
|
|
|
+ </div> -->
|
|
|
<ele-split-layout space="0px" width="45%" :resizable="true" :min-size="200" :max-size="-200" :left-style="{
|
|
<ele-split-layout space="0px" width="45%" :resizable="true" :min-size="200" :max-size="-200" :left-style="{
|
|
|
overflow: 'hidden',
|
|
overflow: 'hidden',
|
|
|
width: '100%'
|
|
width: '100%'
|
|
|
}" :right-style="{ overflow: 'hidden' }" :responsive="false" style="height: calc(100vh - 70px - 50px - 80px)">
|
|
}" :right-style="{ overflow: 'hidden' }" :responsive="false" style="height: calc(100vh - 70px - 50px - 80px)">
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 左侧 工单列表 -->
|
|
|
<div class="left_main">
|
|
<div class="left_main">
|
|
|
<div class="top">
|
|
<div class="top">
|
|
|
<!-- /工单列表 -->
|
|
<!-- /工单列表 -->
|
|
@@ -19,7 +27,7 @@
|
|
|
<productionResource :BomObj="BomObj"></productionResource>
|
|
<productionResource :BomObj="BomObj"></productionResource>
|
|
|
</div> -->
|
|
</div> -->
|
|
|
</div>
|
|
</div>
|
|
|
-
|
|
|
|
|
|
|
+ <!-- 右侧 详情 -->
|
|
|
<template v-slot:content>
|
|
<template v-slot:content>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -51,17 +59,19 @@
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 委外 -->
|
|
<!-- 委外 -->
|
|
|
- <div v-if="operationType == 'Outsourcing'&& isType=='3'" class="right_main_box">
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <div v-if="operationType == 'Outsourcing' && isType == '3'" class="right_main_box">
|
|
|
|
|
+
|
|
|
<outsourcing :outsourceFormVal="outsourceForm" @changePlugIn="changePlugIn" v-if="isStep"></outsourcing>
|
|
<outsourcing :outsourceFormVal="outsourceForm" @changePlugIn="changePlugIn" v-if="isStep"></outsourcing>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<!-- -->
|
|
<!-- -->
|
|
|
- <outsourceList :outsourceFormVal="outObj" @closeForm="closeForm" v-else></outsourceList>
|
|
|
|
|
|
|
+ <outsourceList :outsourceFormVal="outObj" @closeForm="closeForm" v-else></outsourceList>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
</ele-split-layout>
|
|
</ele-split-layout>
|
|
|
|
|
|
|
|
<footBtn @footBtn="footBtn"></footBtn>
|
|
<footBtn @footBtn="footBtn"></footBtn>
|
|
@@ -70,7 +80,7 @@
|
|
|
<!--领料弹框 -->
|
|
<!--领料弹框 -->
|
|
|
<picking v-if="pickingShow" @close="pickingClose" :workListIds="workListIds"></picking>
|
|
<picking v-if="pickingShow" @close="pickingClose" :workListIds="workListIds"></picking>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -90,7 +100,7 @@ import warehousing from './components/warehousing/index.vue';
|
|
|
import outsourceList from './components/outsourcing/outsourceList.vue';
|
|
import outsourceList from './components/outsourcing/outsourceList.vue';
|
|
|
|
|
|
|
|
|
|
|
|
|
-import { getByTaskId, pcCheckOutsource,getTaskInstanceById,checkOutsourceMaterial } from '@/api/produce/index';
|
|
|
|
|
|
|
+import { getByTaskId, pcCheckOutsource, getTaskInstanceById, checkOutsourceMaterial } from '@/api/produce/index';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
@@ -113,9 +123,9 @@ export default {
|
|
|
operationType: null,
|
|
operationType: null,
|
|
|
workListIds: [],
|
|
workListIds: [],
|
|
|
isType: '',
|
|
isType: '',
|
|
|
- isStep:true,
|
|
|
|
|
- outsourceForm:{},
|
|
|
|
|
- outObj:{},
|
|
|
|
|
|
|
+ isStep: true,
|
|
|
|
|
+ outsourceForm: {},
|
|
|
|
|
+ outObj: {},
|
|
|
pickingShow: false,
|
|
pickingShow: false,
|
|
|
BomObj: {}
|
|
BomObj: {}
|
|
|
};
|
|
};
|
|
@@ -132,34 +142,34 @@ export default {
|
|
|
this.workListIds = [];
|
|
this.workListIds = [];
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- closeForm(){
|
|
|
|
|
|
|
+ closeForm() {
|
|
|
this.isStep = true;
|
|
this.isStep = true;
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// 切换组件
|
|
// 切换组件
|
|
|
- async changePlugIn(e){
|
|
|
|
|
|
|
+ async changePlugIn(e) {
|
|
|
this.outObj = e;
|
|
this.outObj = e;
|
|
|
|
|
|
|
|
let req = {
|
|
let req = {
|
|
|
- taskId:e.taskId,
|
|
|
|
|
- taskIds:e.taskIds,
|
|
|
|
|
- workOrderId:e.workOrderId
|
|
|
|
|
|
|
+ taskId: e.taskId,
|
|
|
|
|
+ taskIds: e.taskIds,
|
|
|
|
|
+ workOrderId: e.workOrderId
|
|
|
}
|
|
}
|
|
|
- const res =await checkOutsourceMaterial(req);
|
|
|
|
|
-
|
|
|
|
|
|
|
+ const res = await checkOutsourceMaterial(req);
|
|
|
|
|
+
|
|
|
|
|
|
|
|
- this.outObj = {...this.outObj,...res.data,...this.outsourceForm};
|
|
|
|
|
|
|
+ this.outObj = { ...this.outObj, ...res.data, ...this.outsourceForm };
|
|
|
|
|
+
|
|
|
|
|
+ console.log(this.outObj, 'this.outObj');
|
|
|
|
|
|
|
|
- console.log(this.outObj,'this.outObj');
|
|
|
|
|
-
|
|
|
|
|
this.isStep = false;
|
|
this.isStep = false;
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
workSelect(data) {
|
|
workSelect(data) {
|
|
|
- console.log(data,'data1111111111');
|
|
|
|
|
|
|
+ console.log(data, 'data1111111111');
|
|
|
|
|
|
|
|
- this.isStep = true;
|
|
|
|
|
|
|
+ this.isStep = true;
|
|
|
this.operationType = null;
|
|
this.operationType = null;
|
|
|
this.workListIds = data;
|
|
this.workListIds = data;
|
|
|
},
|
|
},
|
|
@@ -210,7 +220,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
handOutsource(workOrderId) {
|
|
handOutsource(workOrderId) {
|
|
|
- console.log(this.taskObj,workOrderId);
|
|
|
|
|
|
|
+ console.log(this.taskObj, workOrderId);
|
|
|
// return
|
|
// return
|
|
|
let param = {
|
|
let param = {
|
|
|
taskId: this.taskObj.id,
|
|
taskId: this.taskObj.id,
|
|
@@ -222,7 +232,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
this.outsourceForm.name = this.taskObj.name + '委外'
|
|
this.outsourceForm.name = this.taskObj.name + '委外'
|
|
|
|
|
|
|
|
- console.log(res,'res');
|
|
|
|
|
|
|
+ console.log(res, 'res');
|
|
|
if (res.data.outsource) {
|
|
if (res.data.outsource) {
|
|
|
this.isType = '3';
|
|
this.isType = '3';
|
|
|
this.getTaskInstanceByIdFn(workOrderId)
|
|
this.getTaskInstanceByIdFn(workOrderId)
|
|
@@ -234,19 +244,19 @@ export default {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
//获取工单列表
|
|
//获取工单列表
|
|
|
- getTaskInstanceByIdFn(workOrderId){
|
|
|
|
|
|
|
+ getTaskInstanceByIdFn(workOrderId) {
|
|
|
|
|
|
|
|
getTaskInstanceById(workOrderId).then((res) => {
|
|
getTaskInstanceById(workOrderId).then((res) => {
|
|
|
- console.log(res,'res');
|
|
|
|
|
- let {data} = res;
|
|
|
|
|
- if(data.length){
|
|
|
|
|
- data = data.filter(item=>item.type == 1);
|
|
|
|
|
- let arr = data.findIndex(item=>item.sourceTaskId == this.taskObj.id)
|
|
|
|
|
|
|
+ console.log(res, 'res');
|
|
|
|
|
+ let { data } = res;
|
|
|
|
|
+ if (data.length) {
|
|
|
|
|
+ data = data.filter(item => item.type == 1);
|
|
|
|
|
+ let arr = data.findIndex(item => item.sourceTaskId == this.taskObj.id)
|
|
|
console.log(arr);
|
|
console.log(arr);
|
|
|
- if(arr != -1){
|
|
|
|
|
- data.splice(0,arr+1)
|
|
|
|
|
- }
|
|
|
|
|
- this.$set(this.outsourceForm,'newStepsList',data)
|
|
|
|
|
|
|
+ if (arr != -1) {
|
|
|
|
|
+ data.splice(0, arr + 1)
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$set(this.outsourceForm, 'newStepsList', data)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
})
|
|
})
|
|
@@ -311,6 +321,11 @@ export default {
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
<style>
|
|
|
|
|
+
|
|
|
|
|
+.content_box{
|
|
|
|
|
+ /* display: flex; */
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
.new-ele-admin-tabs {
|
|
.new-ele-admin-tabs {
|
|
|
display: none !important;
|
|
display: none !important;
|
|
|
}
|
|
}
|
|
@@ -369,11 +384,12 @@ export default {
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
-.right_main_box{
|
|
|
|
|
|
|
+.right_main_box {
|
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
.index_box {
|
|
.index_box {
|
|
|
padding: 8px;
|
|
padding: 8px;
|
|
|
padding-bottom: 0px;
|
|
padding-bottom: 0px;
|