|
|
|
@ -9,9 +9,10 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="test_type" v-if="testType == 1"> |
|
|
|
<div class="test_type" v-if="testType == 1"> |
|
|
|
<span>历史订单:</span> |
|
|
|
<span>历史订单:</span> |
|
|
|
<el-select v-model="value" placeholder="请选择" style="width: 400px;" :disabled="type == 'view'"> |
|
|
|
<el-select v-model="detailInfo.refWoId" placeholder="请选择" style="width: 400px;" :disabled="type == 'view'" |
|
|
|
<el-option label="订单1" value="1" /> |
|
|
|
@change="changeHistoryOrder"> |
|
|
|
<el-option label="订单2" value="2" /> |
|
|
|
<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-select> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-descriptions title="订单信息" border :column="4" label-width="110"> |
|
|
|
<el-descriptions title="订单信息" border :column="4" label-width="110"> |
|
|
|
@ -287,19 +288,19 @@ |
|
|
|
<template #footer> |
|
|
|
<template #footer> |
|
|
|
<span class="dialog-footer"> |
|
|
|
<span class="dialog-footer"> |
|
|
|
<el-button plain @click="closeDialog">取消</el-button> |
|
|
|
<el-button plain @click="closeDialog">取消</el-button> |
|
|
|
<el-button type="primary" v-if="testType == 1 && type != 'view'" @click="submit(-1)">保存</el-button> |
|
|
|
<el-button type="primary" v-if="testType == 1 && type != 'view'" @click="submit(21)">保存</el-button> |
|
|
|
<el-button type="primary" v-if="testType == 2 && type != 'view'" @click="submitInside">提交</el-button> |
|
|
|
<el-button type="primary" v-if="testType == 2 && type != 'view'" @click="submitInside">提交</el-button> |
|
|
|
<el-button type="primary" v-if="testType == 1 && type != 'view'" plain @click="submit(1)">提交质保</el-button> |
|
|
|
<el-button type="primary" v-if="testType == 1 && type != 'view'" plain @click="submit(22)">提交质保</el-button> |
|
|
|
<el-button type="primary" v-if="testType == 1 && type != 'view'" plain @click="submit(2)">提交工艺</el-button> |
|
|
|
<el-button type="primary" v-if="testType == 1 && type != 'view'" plain @click="submit(23)">提交工艺</el-button> |
|
|
|
<el-button type="primary" v-if="testType == 1 && type != 'view'" plain @click="submit(3)">提交设计</el-button> |
|
|
|
<el-button type="primary" v-if="testType == 1 && type != 'view'" plain @click="submit(24)">提交设计</el-button> |
|
|
|
<el-button type="primary" v-if="testType == 1 && type != 'view'" plain @click="submit(4)">提交设计变更</el-button> |
|
|
|
<el-button type="primary" v-if="testType == 1 && type != 'view'" plain @click="submit(25)">提交设计变更</el-button> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-dialog> |
|
|
|
</el-dialog> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import {getFaultClassList,getQuestionClassList,getQuestionClassList2,getProductionDispositionDetail, |
|
|
|
import {getFaultClassList,getQuestionClassList,getQuestionClassList2,getProductionDispositionDetail, |
|
|
|
createProductionDisposition} from "@/api/qualityManagement/productionTesting/productionDisposition" |
|
|
|
createProductionDisposition,getHistoryOrderList,setHistoryOrderValue} from "@/api/qualityManagement/productionTesting/productionDisposition" |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
props: { |
|
|
|
props: { |
|
|
|
showDialog: { |
|
|
|
showDialog: { |
|
|
|
@ -333,6 +334,7 @@ export default { |
|
|
|
errorSmallArr:[], //问题小类 |
|
|
|
errorSmallArr:[], //问题小类 |
|
|
|
detailInfo:{}, |
|
|
|
detailInfo:{}, |
|
|
|
checkList:[], |
|
|
|
checkList:[], |
|
|
|
|
|
|
|
historyList:[], |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
mounted() { |
|
|
|
@ -340,14 +342,34 @@ export default { |
|
|
|
this.getError() |
|
|
|
this.getError() |
|
|
|
this.getQuestionBig() |
|
|
|
this.getQuestionBig() |
|
|
|
this.getDetail() |
|
|
|
this.getDetail() |
|
|
|
|
|
|
|
this.getHistory() |
|
|
|
// this.getQuestionSmall() |
|
|
|
// this.getQuestionSmall() |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
// 获取历史订单 |
|
|
|
|
|
|
|
getHistory(){ |
|
|
|
|
|
|
|
getHistoryOrderList({}).then(res =>{ |
|
|
|
|
|
|
|
this.historyList = res.data.data |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 修改历史订单 |
|
|
|
|
|
|
|
changeHistoryOrder(val){ |
|
|
|
|
|
|
|
setHistoryOrderValue({ |
|
|
|
|
|
|
|
id:this.rsId, |
|
|
|
|
|
|
|
woId:val |
|
|
|
|
|
|
|
}).then(res =>{ |
|
|
|
|
|
|
|
console.log('res1----------------',res) |
|
|
|
|
|
|
|
getProductionDispositionDetail({ |
|
|
|
|
|
|
|
woId:val |
|
|
|
|
|
|
|
}).then(res =>{ |
|
|
|
|
|
|
|
console.log('res2--------------------------------',res) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
getDetail(){ |
|
|
|
getDetail(){ |
|
|
|
getProductionDispositionDetail({ |
|
|
|
getProductionDispositionDetail({ |
|
|
|
id:this.rsId |
|
|
|
id:this.rsId |
|
|
|
}).then(res =>{ |
|
|
|
}).then(res =>{ |
|
|
|
console.log('res---------------',res) |
|
|
|
|
|
|
|
this.detailInfo = res.data.data |
|
|
|
this.detailInfo = res.data.data |
|
|
|
this.testType = res.data.data.bizType == 3 ? 1 : 2 |
|
|
|
this.testType = res.data.data.bizType == 3 ? 1 : 2 |
|
|
|
this.disposalType = res.data.data.bizType == 3 ? '' : res.data.data.bizType |
|
|
|
this.disposalType = res.data.data.bizType == 3 ? '' : res.data.data.bizType |
|
|
|
@ -404,6 +426,7 @@ export default { |
|
|
|
this.detailInfo.isQualityProblem = this.checkList.includes('isQualityProblem') ? 1 : 0 |
|
|
|
this.detailInfo.isQualityProblem = this.checkList.includes('isQualityProblem') ? 1 : 0 |
|
|
|
this.detailInfo.faultList = this.faultList |
|
|
|
this.detailInfo.faultList = this.faultList |
|
|
|
this.detailInfo.dutyList = this.dutyList |
|
|
|
this.detailInfo.dutyList = this.dutyList |
|
|
|
|
|
|
|
this.detailInfo.submitType = val |
|
|
|
console.log('detail---------------------',this.detailInfo) |
|
|
|
console.log('detail---------------------',this.detailInfo) |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 内部审理提交 |
|
|
|
// 内部审理提交 |
|
|
|
@ -423,6 +446,7 @@ export default { |
|
|
|
this.detailInfo.isClassicProblem = this.checkList.includes('isClassicProblem') ? 1 : 0 |
|
|
|
this.detailInfo.isClassicProblem = this.checkList.includes('isClassicProblem') ? 1 : 0 |
|
|
|
this.detailInfo.isLowError = this.checkList.includes('isLowError') ? 1 : 0 |
|
|
|
this.detailInfo.isLowError = this.checkList.includes('isLowError') ? 1 : 0 |
|
|
|
this.detailInfo.isQualityProblem = this.checkList.includes('isQualityProblem') ? 1 : 0 |
|
|
|
this.detailInfo.isQualityProblem = this.checkList.includes('isQualityProblem') ? 1 : 0 |
|
|
|
|
|
|
|
this.detailInfo.submitType = 10 |
|
|
|
console.log('detailInfo-----------------',this.detailInfo) |
|
|
|
console.log('detailInfo-----------------',this.detailInfo) |
|
|
|
createProductionDisposition(this.detailInfo).then(res =>{ |
|
|
|
createProductionDisposition(this.detailInfo).then(res =>{ |
|
|
|
if(res.data.code == 200){ |
|
|
|
if(res.data.code == 200){ |
|
|
|
|