|
|
|
|
@ -13,7 +13,7 @@ |
|
|
|
|
<el-option v-for="item in historyList" :key="item.woId" :label="item.woInfo" :value="item.woId" /> |
|
|
|
|
<!-- <el-option label="订单2" value="2" /> --> |
|
|
|
|
</el-select> |
|
|
|
|
<el-button @click="handleUse" type="primary" style="margin-left:10px;">应用</el-button> |
|
|
|
|
<el-button @click="handleUse" type="primary" style="margin-left:10px;" :disabled="type == 'view'">应用</el-button> |
|
|
|
|
</div> |
|
|
|
|
<el-descriptions title="订单信息" border :column="4" label-width="110"> |
|
|
|
|
<el-descriptions-item label="车间订单号:">{{detailInfo.woCode}}</el-descriptions-item> |
|
|
|
|
@ -82,10 +82,10 @@ |
|
|
|
|
</el-radio-group> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="返修数量:"> |
|
|
|
|
<el-input v-model="detailInfo.reDoNum" placeholder="请输入" style="width: 400px;" :disabled="type == 'view'"/> |
|
|
|
|
<el-input v-model="detailInfo.reDoNum" placeholder="请输入" style="width: 400px;" :disabled="type == 'view' || disposalType == 2"/> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="报废数量:"> |
|
|
|
|
<el-input v-model="detailInfo.scrapNum" placeholder="请输入" style="width: 400px;" :disabled="type == 'view'"/> |
|
|
|
|
<el-input v-model="detailInfo.scrapNum" placeholder="请输入" style="width: 400px;" :disabled="type == 'view' || disposalType == 1"/> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label=""> |
|
|
|
|
<el-checkbox-group v-model="checkList" :disabled="type == 'view'"> |
|
|
|
|
@ -232,8 +232,8 @@ |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-input v-model="scope.row.dutyPart" v-if="detailInfo.reviewOrderMode == 1" :disabled="type == 'view'"></el-input> |
|
|
|
|
<el-select v-model="scope.row.dutyPart" v-if="detailInfo.reviewOrderMode == 2" :disabled="type == 'view'"> |
|
|
|
|
<el-option v-for="item in dutyPartArr" :key="item.rstId" :value="item.rstId" |
|
|
|
|
:label="item.rstName"></el-option> |
|
|
|
|
<el-option v-for="item in dutyPartArr" :key="item.dutyPart" :value="item.dutyPart" |
|
|
|
|
:label="item.dutyPart"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
@ -243,8 +243,8 @@ |
|
|
|
|
</template> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-select v-model="scope.row.dutyBatch" :disabled="type == 'view'"> |
|
|
|
|
<el-option v-for="item in dutyBatchArr" :key="item.value" :value="item.value" |
|
|
|
|
:label="item.label"></el-option> |
|
|
|
|
<el-option v-for="item in dutyBatchArr" :key="item.dutyBatch" :value="item.dutyBatch" |
|
|
|
|
:label="item.dutyBatch"></el-option> |
|
|
|
|
<!-- <el-option v-for="item in dutyBatchArr" :key="item.rstId" :value="item.rstId" :label="item.rstName"></el-option> --> |
|
|
|
|
</el-select> |
|
|
|
|
</template> |
|
|
|
|
@ -252,16 +252,16 @@ |
|
|
|
|
<el-table-column label="相关零件" prop="relevantPart" align="center"> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-select v-model="scope.row.relevantPart" :disabled="type == 'view'"> |
|
|
|
|
<el-option v-for="item in relevantPartArr" :key="item.rstId" :value="item.rstId" |
|
|
|
|
:label="item.rstName"></el-option> |
|
|
|
|
<el-option v-for="item in relevantPartArr" :key="item.relevantPart" :value="item.relevantPart" |
|
|
|
|
:label="item.relevantPart"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="相关批号" prop="relevantBatch" align="center"> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-select v-model="scope.row.relevantBatch" :disabled="type == 'view'"> |
|
|
|
|
<el-option v-for="item in relevantBatchArr" :key="item.rstId" :value="item.rstId" |
|
|
|
|
:label="item.rstName"></el-option> |
|
|
|
|
<el-option v-for="item in relevantBatchArr" :key="item.relevantBatch" :value="item.relevantBatch" |
|
|
|
|
:label="item.relevantBatch"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
@ -300,7 +300,8 @@ |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
|
import {getFaultClassList,getQuestionClassList,getQuestionClassList2,getProductionDispositionDetail, |
|
|
|
|
createProductionDisposition,getHistoryOrderList,setHistoryOrderValue,getDispositionTypeList} from "@/api/qualityManagement/productionTesting/productionDisposition" |
|
|
|
|
createProductionDisposition,getHistoryOrderList,setHistoryOrderValue,getDispositionTypeList,getResponsiblePartList, |
|
|
|
|
getResponsibleBatchList,getRelatedPartList,getRelatedBatchList} from "@/api/qualityManagement/productionTesting/productionDisposition" |
|
|
|
|
export default { |
|
|
|
|
props: { |
|
|
|
|
showDialog: { |
|
|
|
|
@ -339,6 +340,10 @@ export default { |
|
|
|
|
faultDeleteIds:[], //故障列表删除的id |
|
|
|
|
dutyDeleteIds:[], //零件列表删除的id |
|
|
|
|
disposeTypeList:[], |
|
|
|
|
dutyPartArr:[], //责任零件下拉 |
|
|
|
|
dutyBatchArr:[], //责任批号下拉 |
|
|
|
|
relevantPartArr:[], //相关零件下拉 |
|
|
|
|
relevantBatchArr:[], //相关批号下拉 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
@ -348,9 +353,45 @@ export default { |
|
|
|
|
this.getDetail() |
|
|
|
|
this.getHistory() |
|
|
|
|
this.getDisposeType() |
|
|
|
|
this.getResponsiblePart() |
|
|
|
|
this.getResponsibleBatch() |
|
|
|
|
this.getRelatedPart() |
|
|
|
|
this.getRelatedBatch() |
|
|
|
|
// this.getQuestionSmall() |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
// 获取责任零件 |
|
|
|
|
getResponsiblePart(){ |
|
|
|
|
getResponsiblePartList({ |
|
|
|
|
id:this.rsId |
|
|
|
|
}).then(res =>{ |
|
|
|
|
this.dutyPartArr = res.data.data |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
//获取责任批号 |
|
|
|
|
getResponsibleBatch(){ |
|
|
|
|
getResponsibleBatchList({ |
|
|
|
|
id:this.rsId |
|
|
|
|
}).then(res =>{ |
|
|
|
|
this.dutyBatchArr = res.data.data |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 获取相关零件 |
|
|
|
|
getRelatedPart(){ |
|
|
|
|
getRelatedPartList({ |
|
|
|
|
id:this.rsId |
|
|
|
|
}).then(res =>{ |
|
|
|
|
this.relevantPartArr = res.data.data |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 获取相关批号 |
|
|
|
|
getRelatedBatch(){ |
|
|
|
|
getRelatedBatchList({ |
|
|
|
|
id:this.rsId |
|
|
|
|
}).then(res =>{ |
|
|
|
|
this.relevantBatchArr = res.data.data |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
getDisposeType(){ |
|
|
|
|
getDispositionTypeList().then(res =>{ |
|
|
|
|
this.disposeTypeList = res.data.data |
|
|
|
|
@ -413,8 +454,11 @@ export default { |
|
|
|
|
this.detailInfo = res.data.data |
|
|
|
|
console.log('hace---------------',this.detailInfo.hasSaved) |
|
|
|
|
if(this.detailInfo.hasSaved == 1){ |
|
|
|
|
this.detailInfo.refWoId = res.data.data.refWoId == 0 ? '' : res.data.data.refWoId |
|
|
|
|
this.testType = res.data.data.bizType == 3 ? 1 : 2 |
|
|
|
|
this.disposalType = res.data.data.bizType == 3 ? '' : res.data.data.bizType |
|
|
|
|
this.detailInfo.scrapNum = this.disposalType == 1 ? '' : res.data.data.scrapNum |
|
|
|
|
this.detailInfo.reDoNum = this.disposalType == 2 ? '' : res.data.data.reDoNum |
|
|
|
|
this.checkList = [] |
|
|
|
|
this.checkList.push( |
|
|
|
|
res.data.data.isBatProblem == 1 ? 'isBatProblem' : null, |
|
|
|
|
@ -439,7 +483,7 @@ export default { |
|
|
|
|
this.detailInfo.reviewOrderMode = '' |
|
|
|
|
this.detailInfo.unqualifiedQty = '' |
|
|
|
|
this.detailInfo.scale = '' |
|
|
|
|
this.detailInfo.upCode = '' |
|
|
|
|
// this.detailInfo.upCode = '' |
|
|
|
|
this.detailInfo.scrapNum = '' |
|
|
|
|
this.detailInfo.reDoNum = '' |
|
|
|
|
this.checkList = [] |
|
|
|
|
@ -509,9 +553,9 @@ export default { |
|
|
|
|
this.dutyList = this.dutyList.filter(row => !row._select); |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
closeDialog() { |
|
|
|
|
closeDialog(val) { |
|
|
|
|
this.openShow = false |
|
|
|
|
this.$emit('closeDialog'); |
|
|
|
|
this.$emit('closeDialog',val); |
|
|
|
|
}, |
|
|
|
|
changeType(val){ |
|
|
|
|
console.log('val---------------------',val) |
|
|
|
|
|