|
|
|
|
@ -2,89 +2,96 @@ |
|
|
|
|
<el-dialog title="新增" append-to-body :modelValue="openShow" width="70%" @close="closeDialog" fullscreen> |
|
|
|
|
<div class="test_type"> |
|
|
|
|
<span>审理类型:</span> |
|
|
|
|
<el-radio-group v-model="testType" @change="changeType"> |
|
|
|
|
<el-radio-group v-model="testType" @change="changeType" :disabled="type == 'view'"> |
|
|
|
|
<el-radio :value="1">erp审理</el-radio> |
|
|
|
|
<el-radio :value="2">内部审理</el-radio> |
|
|
|
|
</el-radio-group> |
|
|
|
|
</div> |
|
|
|
|
<div class="test_type" v-if="testType == 1"> |
|
|
|
|
<span>历史订单:</span> |
|
|
|
|
<el-select v-model="value" placeholder="请选择" style="width: 400px;" :disabled="type == 'view'"> |
|
|
|
|
<el-option label="订单1" value="1" /> |
|
|
|
|
<el-option label="订单2" value="2" /> |
|
|
|
|
</el-select> |
|
|
|
|
</div> |
|
|
|
|
<el-descriptions title="订单信息" border :column="4" label-width="110"> |
|
|
|
|
<el-descriptions-item label="车间订单号:">WO-898789988WO</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="发现工序:">镀后检验</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="流程卡号:">9887898</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="批次号:">9088909887</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="总数量:">78</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="物料号:">78765688</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="物料名称:">物料1</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="车间订单号:">{{detailInfo.woCode}}</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="发现工序:">{{detailInfo.productionDisposition}}</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="流程卡号:">{{detailInfo.cardNo}}</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="批次号:">{{detailInfo.batchNo}}</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="总数量:">{{detailInfo.totalNum}}</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="物料号:">{{detailInfo.partCode}}</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="物料名称:">{{detailInfo.materialName}}</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="不良原因:"> |
|
|
|
|
<el-input v-model="input" placeholder="请输入" /> |
|
|
|
|
<el-input v-model="detailInfo.poorReason" placeholder="请输入" :disabled="type == 'view'" /> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="不良描述:"> |
|
|
|
|
<el-input v-model="input" type="textarea" :rows="3" placeholder="请输入" style="width: 40%;" /> |
|
|
|
|
<el-input v-model="detailInfo.poorDesc" type="textarea" :rows="3" placeholder="请输入" :disabled="type == 'view'" style="width: 40%;" /> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-descriptions> |
|
|
|
|
<el-descriptions v-if="testType == 1" class="margin-top" title="质量信息" border :column="3" label-width="110" style="margin-bottom: 24px;"> |
|
|
|
|
|
|
|
|
|
<el-descriptions-item label="历史订单:"> |
|
|
|
|
<el-select v-model="value" placeholder="请选择" style="width: 400px;"> |
|
|
|
|
<!-- <el-descriptions-item label="历史订单:"> |
|
|
|
|
<el-select v-model="value" placeholder="请选择" style="width: 400px;" :disabled="type == 'view'"> |
|
|
|
|
<el-option label="订单1" value="1" /> |
|
|
|
|
<el-option label="订单2" value="2" /> |
|
|
|
|
</el-select> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
</el-descriptions-item> --> |
|
|
|
|
<el-descriptions-item label="处置单类型:"> |
|
|
|
|
<el-select v-model="value" placeholder="请选择" style="width: 400px;"> |
|
|
|
|
<el-select v-model="detailInfo.reviewOrderMode" placeholder="请选择" style="width: 400px;" :disabled="type == 'view'"> |
|
|
|
|
<el-option label="零件模式" value="1" /> |
|
|
|
|
<el-option label="装配模式" value="2" /> |
|
|
|
|
<el-option label="售后模式" value="3" /> |
|
|
|
|
<!-- <el-option label="售后模式" value="3" /> --> |
|
|
|
|
</el-select> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
|
|
|
|
|
<el-descriptions-item label="不合格数:"> |
|
|
|
|
<el-input v-model="input" placeholder="请输入" style="width: 400px;"/> |
|
|
|
|
<el-input v-model="detailInfo.unqualifiedQty" placeholder="请输入" style="width: 400px;" :disabled="type == 'view'"/> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
|
|
|
|
|
<el-descriptions-item label="比例:"> |
|
|
|
|
<el-input v-model="input" placeholder="请输入" style="width: 400px;"/> |
|
|
|
|
<el-input v-model="detailInfo.scale" placeholder="请输入" style="width: 400px;" :disabled="type == 'view'"/> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="上级编码:"> |
|
|
|
|
<el-input v-model="input" placeholder="请输入" style="width: 400px;"/> |
|
|
|
|
<el-input v-model="detailInfo.upCode" placeholder="请输入" style="width: 400px;" :disabled="type == 'view'"/> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label=""> |
|
|
|
|
<el-checkbox-group v-model="checkList"> |
|
|
|
|
<el-checkbox label="批次性问题" value="Value A" /> |
|
|
|
|
<el-checkbox label="典型问题" value="Value B" /> |
|
|
|
|
<el-checkbox label="低级错误" value="Value C" /> |
|
|
|
|
<el-checkbox label="质量问题" value="Value disabled" /> |
|
|
|
|
<el-checkbox-group v-model="checkList" :disabled="type == 'view'"> |
|
|
|
|
<el-checkbox label="批次性问题" value="isBatProblem" /> |
|
|
|
|
<el-checkbox label="典型问题" value="isClassicProblem" /> |
|
|
|
|
<el-checkbox label="低级错误" value="isLowError" /> |
|
|
|
|
<el-checkbox label="质量问题" value="isQualityProblem" /> |
|
|
|
|
</el-checkbox-group> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
</el-descriptions> |
|
|
|
|
|
|
|
|
|
<el-descriptions v-if="testType == 2" class="margin-top" title="质量信息" border :column="3" label-width="110" style="margin-bottom: 24px;"> |
|
|
|
|
<el-descriptions-item label="比例:"> |
|
|
|
|
<el-input v-model="input" placeholder="请输入" style="width: 400px;"/> |
|
|
|
|
<el-input v-model="detailInfo.scale" placeholder="请输入" style="width: 400px;" :disabled="type == 'view'"/> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="不合格数:"> |
|
|
|
|
<el-input v-model="input" placeholder="请输入" style="width: 400px;"/> |
|
|
|
|
<el-input v-model="detailInfo.unqualifiedQty" placeholder="请输入" style="width: 400px;" :disabled="type == 'view'"/> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="处置类型"> |
|
|
|
|
<el-radio-group v-model="disposalType"> |
|
|
|
|
<el-radio-group v-model="disposalType" :disabled="type == 'view'"> |
|
|
|
|
<el-radio :value="1">返修</el-radio> |
|
|
|
|
<el-radio :value="2">报废</el-radio> |
|
|
|
|
</el-radio-group> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="返修数量:"> |
|
|
|
|
<el-input v-model="input" placeholder="请输入" style="width: 400px;"/> |
|
|
|
|
<el-input v-model="detailInfo.reDoNum" placeholder="请输入" style="width: 400px;" :disabled="type == 'view'"/> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label="报废数量:"> |
|
|
|
|
<el-input v-model="input" placeholder="请输入" style="width: 400px;"/> |
|
|
|
|
<el-input v-model="detailInfo.scrapNum" placeholder="请输入" style="width: 400px;" :disabled="type == 'view'"/> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
<el-descriptions-item label=""> |
|
|
|
|
<el-checkbox-group v-model="checkList"> |
|
|
|
|
<el-checkbox label="批次性问题" value="Value A" /> |
|
|
|
|
<el-checkbox label="典型问题" value="Value B" /> |
|
|
|
|
<el-checkbox label="低级错误" value="Value C" /> |
|
|
|
|
<el-checkbox label="质量问题" value="Value disabled" /> |
|
|
|
|
<el-checkbox-group v-model="checkList" :disabled="type == 'view'"> |
|
|
|
|
<el-checkbox label="批次性问题" value="isBatProblem" /> |
|
|
|
|
<el-checkbox label="典型问题" value="isClassicProblem" /> |
|
|
|
|
<el-checkbox label="低级错误" value="isLowError" /> |
|
|
|
|
<el-checkbox label="质量问题" value="isQualityProblem" /> |
|
|
|
|
</el-checkbox-group> |
|
|
|
|
</el-descriptions-item> |
|
|
|
|
</el-descriptions> |
|
|
|
|
@ -146,62 +153,63 @@ |
|
|
|
|
<el-row :gutter="24" v-if="testType == 1" > |
|
|
|
|
<el-col :span="24" style="margin-bottom: 24px;"> |
|
|
|
|
<div class="btn_box"> |
|
|
|
|
<el-button type="primary" plain @click="insertFaultEvent()">插入一行</el-button> |
|
|
|
|
<el-button type="danger" plain @click="deleteFaultEvent()">删除选择行</el-button> |
|
|
|
|
<el-button type="primary" :disabled="type == 'view'" plain @click="insertFaultEvent()">插入一行</el-button> |
|
|
|
|
<el-button type="danger" :disabled="type == 'view'" plain @click="deleteFaultEvent()">删除选择行</el-button> |
|
|
|
|
</div> |
|
|
|
|
<div class="table_box"> |
|
|
|
|
<el-table ref="faultTable" height="240" :data="faultList" @selection-change="handleSelectionChange" |
|
|
|
|
@select="selectChangeData" border> |
|
|
|
|
<el-table-column type="selection" width="55"></el-table-column> |
|
|
|
|
<el-table-column label="故障类别" prop="faultType.rstId" align="center"> |
|
|
|
|
<el-table-column label="故障类别" prop="ngType2Id" align="center"> |
|
|
|
|
<template #header> |
|
|
|
|
<span><i style="color:red">*</i>故障类别</span> |
|
|
|
|
</template> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-select v-model="scope.row.faultType.rstId"> |
|
|
|
|
<el-option v-for="item in errorTypeArr" :key="item.rstId" :value="item.rstId" |
|
|
|
|
:label="item.rstName"></el-option> |
|
|
|
|
<el-select v-model="scope.row.ngType2Id" :disabled="type == 'view'"> |
|
|
|
|
<el-option v-for="item in errorTypeArr" :key="item.id" :value="item.id" |
|
|
|
|
:label="item.name"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="问题大类" prop="questClass.rstId" align="center"> |
|
|
|
|
<el-table-column label="问题大类" prop="ngType3Id" align="center"> |
|
|
|
|
<template #header> |
|
|
|
|
<span><i style="color:red">*</i>问题大类</span> |
|
|
|
|
</template> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-select v-model="scope.row.questClass.rstId" :disabled="!scope.row.faultType.rstId"> |
|
|
|
|
<el-option v-for="item in errorBigArr" :key="item.rstId" :value="item.rstId" |
|
|
|
|
:label="item.rstName"></el-option> |
|
|
|
|
<el-select v-model="scope.row.ngType3Id" :disabled="!scope.row.ngType2Id || type == 'view'" |
|
|
|
|
@change="changeBigQuestion" > |
|
|
|
|
<el-option v-for="item in errorBigArr" :key="item.id" :value="item.id" |
|
|
|
|
:label="item.name"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="问题小类" prop="questSubClass.rstId" align="center"> |
|
|
|
|
<el-table-column label="问题小类" prop="ngType4Id" align="center"> |
|
|
|
|
<template #header> |
|
|
|
|
<span><i style="color:red">*</i>问题小类</span> |
|
|
|
|
</template> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-select v-model="scope.row.questSubClass.rstId" |
|
|
|
|
:disabled="!scope.row.questClass.rstId"> |
|
|
|
|
<el-option v-for="item in errorSmallArr" :key="item.rstId" :value="item.rstId" |
|
|
|
|
:label="item.rstName"></el-option> |
|
|
|
|
<el-select v-model="scope.row.ngType4Id" |
|
|
|
|
:disabled="!scope.row.ngType3Id || type == 'view'" > |
|
|
|
|
<el-option v-for="item in errorSmallArr" :key="item.id" :value="item.id" |
|
|
|
|
:label="item.name"></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="比例" prop="proportion" align="center"> |
|
|
|
|
<el-table-column label="比例" prop="scale" align="center"> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-input v-model="scope.row.proportion" |
|
|
|
|
<el-input v-model="scope.row.scale" :disabled="type == 'view'" |
|
|
|
|
@input="(value) => changeProportion(value, scope.$index)"></el-input> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="数量" prop="faultQty" align="center"> |
|
|
|
|
<el-table-column label="数量" prop="qty" align="center"> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-input v-model="scope.row.faultQty" |
|
|
|
|
<el-input v-model="scope.row.qty" :disabled="type == 'view'" |
|
|
|
|
@input="(value) => changeFaultQty(value, scope.$index)"></el-input> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="备注" prop="memo" align="center"> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-input v-model="scope.row.memo"></el-input> |
|
|
|
|
<el-input v-model="scope.row.memo" :disabled="type == 'view'"></el-input> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
@ -209,8 +217,8 @@ |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="24"> |
|
|
|
|
<div class="btn_box"> |
|
|
|
|
<el-button type="primary" plain @click="insertDutyEvent()">插入一行</el-button> |
|
|
|
|
<el-button type="danger" plain @click="deleteDutyEvent()">删除选择行</el-button> |
|
|
|
|
<el-button type="primary" :disabled="type == 'view'" plain @click="insertDutyEvent()">插入一行</el-button> |
|
|
|
|
<el-button type="danger" :disabled="type == 'view'" plain @click="deleteDutyEvent()">删除选择行</el-button> |
|
|
|
|
</div> |
|
|
|
|
<div class="table_box"> |
|
|
|
|
<el-table :data="dutyList" height="240" @selection-change="handleDutyChange" |
|
|
|
|
@ -221,8 +229,8 @@ |
|
|
|
|
<span><i style="color:red">*</i>责任零件</span> |
|
|
|
|
</template> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-input v-model="scope.row.dutyPart" v-if="trialType == 1"></el-input> |
|
|
|
|
<el-select v-model="scope.row.dutyPart" v-if="trialType == 2"> |
|
|
|
|
<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-select> |
|
|
|
|
@ -233,7 +241,7 @@ |
|
|
|
|
<span><i style="color:red">*</i>责任批号</span> |
|
|
|
|
</template> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-select v-model="scope.row.dutyBatch"> |
|
|
|
|
<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.rstId" :value="item.rstId" :label="item.rstName"></el-option> --> |
|
|
|
|
@ -242,7 +250,7 @@ |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="相关零件" prop="relevantPart" align="center"> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-select v-model="scope.row.relevantPart"> |
|
|
|
|
<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-select> |
|
|
|
|
@ -250,25 +258,25 @@ |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="相关批号" prop="relevantBatch" align="center"> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-select v-model="scope.row.relevantBatch"> |
|
|
|
|
<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-select> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="数量(件)" prop="dutyQty" align="center"> |
|
|
|
|
<el-table-column label="数量(件)" prop="qty" align="center"> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-input v-model="scope.row.dutyQty"></el-input> |
|
|
|
|
<el-input v-model="scope.row.qty" :disabled="type == 'view'"></el-input> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="单位" prop="unit"> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-input v-model="scope.row.unit"></el-input> |
|
|
|
|
<el-input v-model="scope.row.unit" :disabled="type == 'view'"></el-input> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="备注" prop="memo"> |
|
|
|
|
<template #default="scope"> |
|
|
|
|
<el-input v-model="scope.row.memo"></el-input> |
|
|
|
|
<el-input v-model="scope.row.memo" :disabled="type == 'view'"></el-input> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
|
@ -279,17 +287,19 @@ |
|
|
|
|
<template #footer> |
|
|
|
|
<span class="dialog-footer"> |
|
|
|
|
<el-button plain @click="closeDialog">取消</el-button> |
|
|
|
|
<el-button type="primary" v-if="testType == 1" @click="submit(-1)">保存</el-button> |
|
|
|
|
<el-button type="primary" v-if="testType == 2" @click="submitInside">提交</el-button> |
|
|
|
|
<el-button type="primary" v-if="testType == 1" plain @click="submit(1)">提交质保</el-button> |
|
|
|
|
<el-button type="primary" v-if="testType == 1" plain @click="submit(2)">提交工艺</el-button> |
|
|
|
|
<el-button type="primary" v-if="testType == 1" plain @click="submit(3)">提交设计</el-button> |
|
|
|
|
<el-button type="primary" v-if="testType == 1" plain @click="submit(4)">提交设计变更</el-button> |
|
|
|
|
<el-button type="primary" v-if="testType == 1 && type != 'view'" @click="submit(-1)">保存</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(2)">提交工艺</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(4)">提交设计变更</el-button> |
|
|
|
|
</span> |
|
|
|
|
</template> |
|
|
|
|
</el-dialog> |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
|
import {getFaultClassList,getQuestionClassList,getQuestionClassList2,getProductionDispositionDetail, |
|
|
|
|
createProductionDisposition} from "@/api/qualityManagement/productionTesting/productionDisposition" |
|
|
|
|
export default { |
|
|
|
|
props: { |
|
|
|
|
showDialog: { |
|
|
|
|
@ -299,6 +309,14 @@ export default { |
|
|
|
|
moldAddMore: { |
|
|
|
|
type: Boolean, |
|
|
|
|
default: false |
|
|
|
|
}, |
|
|
|
|
rsId:{ |
|
|
|
|
type: String, |
|
|
|
|
default: '' |
|
|
|
|
}, |
|
|
|
|
type:{ |
|
|
|
|
type: String, |
|
|
|
|
default: '' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
data() { |
|
|
|
|
@ -310,12 +328,61 @@ export default { |
|
|
|
|
disposalType:1, //处置类型 |
|
|
|
|
faultList:[], |
|
|
|
|
dutyList:[], |
|
|
|
|
errorTypeArr:[], //故障类别 |
|
|
|
|
errorBigArr:[], //问题大类 |
|
|
|
|
errorSmallArr:[], //问题小类 |
|
|
|
|
detailInfo:{}, |
|
|
|
|
checkList:[], |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
this.openShow = this.showDialog |
|
|
|
|
this.getError() |
|
|
|
|
this.getQuestionBig() |
|
|
|
|
this.getDetail() |
|
|
|
|
// this.getQuestionSmall() |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
getDetail(){ |
|
|
|
|
getProductionDispositionDetail({ |
|
|
|
|
id:this.rsId |
|
|
|
|
}).then(res =>{ |
|
|
|
|
console.log('res---------------',res) |
|
|
|
|
this.detailInfo = res.data.data |
|
|
|
|
this.testType = res.data.data.bizType == 3 ? 1 : 2 |
|
|
|
|
this.disposalType = res.data.data.bizType == 3 ? '' : res.data.data.bizType |
|
|
|
|
this.checkList = [] |
|
|
|
|
this.checkList.push( |
|
|
|
|
res.data.data.isBatProblem == 1 ? 'isBatProblem' : null, |
|
|
|
|
res.data.data.isClassicProblem == 1 ? 'isClassicProblem' : null, |
|
|
|
|
res.data.data.isLowError == 1 ? 'isLowError' : null, |
|
|
|
|
res.data.data.isQualityProblem == 1 ? 'isQualityProblem' : null, |
|
|
|
|
) |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 获取故障类别下拉 |
|
|
|
|
getError(){ |
|
|
|
|
getFaultClassList().then(res => { |
|
|
|
|
this.errorTypeArr = res.data.data |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
// 获取问题大类 |
|
|
|
|
getQuestionBig(){ |
|
|
|
|
getQuestionClassList().then(res => { |
|
|
|
|
this.errorBigArr = res.data.data |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
changeBigQuestion(val){ |
|
|
|
|
this.getQuestionSmall(val) |
|
|
|
|
}, |
|
|
|
|
// 获取问题小类 |
|
|
|
|
getQuestionSmall(val){ |
|
|
|
|
getQuestionClassList2({ |
|
|
|
|
parentId:val |
|
|
|
|
}).then(res => { |
|
|
|
|
this.errorSmallArr = res.data.data |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
insertFaultEvent(){ |
|
|
|
|
this.faultList.push({_select:false}) |
|
|
|
|
}, |
|
|
|
|
@ -329,13 +396,40 @@ export default { |
|
|
|
|
changeType(val){ |
|
|
|
|
console.log('val---------------------',val) |
|
|
|
|
}, |
|
|
|
|
submit(val){ |
|
|
|
|
this.detailInfo.bizType = this.testType == 1 ? 3 : this.testType == 2 ? this.disposalType == 1 ? 1 : 2 : '' |
|
|
|
|
this.detailInfo.isBatProblem = this.checkList.includes('isBatProblem') ? 1 : 0 |
|
|
|
|
this.detailInfo.isClassicProblem = this.checkList.includes('isClassicProblem') ? 1 : 0 |
|
|
|
|
this.detailInfo.isLowError = this.checkList.includes('isLowError') ? 1 : 0 |
|
|
|
|
this.detailInfo.isQualityProblem = this.checkList.includes('isQualityProblem') ? 1 : 0 |
|
|
|
|
this.detailInfo.faultList = this.faultList |
|
|
|
|
this.detailInfo.dutyList = this.dutyList |
|
|
|
|
console.log('detail---------------------',this.detailInfo) |
|
|
|
|
}, |
|
|
|
|
// 内部审理提交 |
|
|
|
|
submitInside(){ |
|
|
|
|
if(this.disposalType == 1){ |
|
|
|
|
let params = { |
|
|
|
|
// if(this.disposalType == 1){ |
|
|
|
|
// let params = { |
|
|
|
|
|
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
// this.detailInfo = { |
|
|
|
|
// ...this.detailInfo, |
|
|
|
|
// bizType:this.testType == 1 ? 3 : this.testType == 2 ? this.disposalType == 1 ? 1 : 2 : '' |
|
|
|
|
// } |
|
|
|
|
console.log('check===============',this.checkList.includes('isQualityProblem')) |
|
|
|
|
this.detailInfo.bizType = this.testType == 1 ? 3 : this.testType == 2 ? this.disposalType == 1 ? 1 : 2 : '' |
|
|
|
|
this.detailInfo.isBatProblem = this.checkList.includes('isBatProblem') ? 1 : 0 |
|
|
|
|
this.detailInfo.isClassicProblem = this.checkList.includes('isClassicProblem') ? 1 : 0 |
|
|
|
|
this.detailInfo.isLowError = this.checkList.includes('isLowError') ? 1 : 0 |
|
|
|
|
this.detailInfo.isQualityProblem = this.checkList.includes('isQualityProblem') ? 1 : 0 |
|
|
|
|
console.log('detailInfo-----------------',this.detailInfo) |
|
|
|
|
createProductionDisposition(this.detailInfo).then(res =>{ |
|
|
|
|
if(res.data.code == 200){ |
|
|
|
|
this.$message.success('提交成功') |
|
|
|
|
this.closeDialog(true) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|