|
|
|
@ -15,7 +15,7 @@ |
|
|
|
</el-dialog> |
|
|
|
</el-dialog> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import {getInProcess,turnIn} from "@/api/outsourcingManagement/oemOrder" |
|
|
|
import { getInProcess, turnIn } from "@/api/outsourcingManagement/oemOrder" |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
props: { |
|
|
|
props: { |
|
|
|
turnFacInnerOpen: { |
|
|
|
turnFacInnerOpen: { |
|
|
|
@ -44,7 +44,7 @@ export default { |
|
|
|
dialogWidth: '60%', |
|
|
|
dialogWidth: '60%', |
|
|
|
border: true, |
|
|
|
border: true, |
|
|
|
index: false, |
|
|
|
index: false, |
|
|
|
selection:true, |
|
|
|
selection: true, |
|
|
|
menuWidth: 240, |
|
|
|
menuWidth: 240, |
|
|
|
dialogClickModal: false, |
|
|
|
dialogClickModal: false, |
|
|
|
excelBtn: true, |
|
|
|
excelBtn: true, |
|
|
|
@ -101,7 +101,7 @@ export default { |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: '工艺能力', |
|
|
|
label: '工艺能力', |
|
|
|
prop: 'processAbilityName', |
|
|
|
prop: 'processAbilityName', |
|
|
|
bind:"processAbility.name", |
|
|
|
bind: "processAbility.name", |
|
|
|
search: false, |
|
|
|
search: false, |
|
|
|
sortable: true, |
|
|
|
sortable: true, |
|
|
|
overHidden: true, |
|
|
|
overHidden: true, |
|
|
|
@ -144,7 +144,7 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
] |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
selectionList:[] |
|
|
|
selectionList: [] |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
mounted() { |
|
|
|
@ -152,15 +152,18 @@ export default { |
|
|
|
this.getData() |
|
|
|
this.getData() |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
getData(){ |
|
|
|
getData() { |
|
|
|
getInProcess({ |
|
|
|
getInProcess({ |
|
|
|
woIds:[this.rowItem.woId], |
|
|
|
woIds: [this.rowItem.woId], |
|
|
|
runType:2 |
|
|
|
runType: 2 |
|
|
|
}).then(res =>{ |
|
|
|
}).then(res => { |
|
|
|
this.data = res.data.data |
|
|
|
this.data = res.data.data |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
selectionChange(list){ |
|
|
|
selectionChange(list) { |
|
|
|
|
|
|
|
list.forEach(item => { |
|
|
|
|
|
|
|
item.handle = true |
|
|
|
|
|
|
|
}); |
|
|
|
this.selectionList = list |
|
|
|
this.selectionList = list |
|
|
|
}, |
|
|
|
}, |
|
|
|
takeBack() { |
|
|
|
takeBack() { |
|
|
|
@ -194,29 +197,30 @@ export default { |
|
|
|
this.$emit('cancel', typeof isRefresh === 'boolean' && isRefresh); |
|
|
|
this.$emit('cancel', typeof isRefresh === 'boolean' && isRefresh); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
submit(){ |
|
|
|
submit() { |
|
|
|
if (this.data.length == 0) { |
|
|
|
if (this.data.length == 0) { |
|
|
|
this.$message.error('当前数据列表为空'); |
|
|
|
this.$message.error('当前数据列表为空'); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
this.$refs.form.validate((valid) => { |
|
|
|
this.$refs.form.validate((valid) => { |
|
|
|
if (valid) { |
|
|
|
if (valid) { |
|
|
|
if(this.selectionList.length == 0){ |
|
|
|
if (this.selectionList.length == 0) { |
|
|
|
this.$message.error('请选择要转厂内的工序') |
|
|
|
this.$message.error('请选择要转厂内的工序') |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let query = { |
|
|
|
let query = { |
|
|
|
workOrderRuns: [ |
|
|
|
workOrderRuns: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
runType:2, |
|
|
|
runType: 2, |
|
|
|
woId:this.rowItem.woId |
|
|
|
woId: this.rowItem.woId |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
], |
|
|
|
workPlanRuns: this.selectionList, |
|
|
|
workPlanRuns: this.selectionList, |
|
|
|
}; |
|
|
|
}; |
|
|
|
turnIn(query).then(res =>{ |
|
|
|
turnIn(query).then(res => { |
|
|
|
if(res.data.code == 200){ |
|
|
|
if (res.data.code == 200) { |
|
|
|
this.$message.success('转厂内成功'); |
|
|
|
this.$message.success('转厂内成功'); |
|
|
|
this.cancel(true); |
|
|
|
this.cancel(true); |
|
|
|
} |
|
|
|
} |
|
|
|
|