|
|
@ -2,16 +2,15 @@ |
|
|
|
<div class="permissions-login"> |
|
|
|
<div class="top-info"> |
|
|
|
<div class="left-info" style="cursor: pointer;" @click="isVisible = true"> |
|
|
|
<img src="../../../assets/imgs/工位icon.png" alt=""> |
|
|
|
工位信息 |
|
|
|
<img src="../../../assets/imgs/工位icon.png" alt="">工位信息 |
|
|
|
<i style="margin-left:10px;color:#B4BAC8" class="el-icon-caret-bottom"></i> |
|
|
|
</div> |
|
|
|
<div class="right-info"> |
|
|
|
<el-button type="primary" v-show="isShowRepair && isLoginSuccess" @click="repairClick" class="confirm-btn" style="margin-right: 32px;">返修</el-button> |
|
|
|
<el-button type="primary" v-show="isShowRepair && isLoginSuccess" @click="bidetRepairClick" class="confirm-btn" style="margin-right: 32px;">坐盆返修</el-button> |
|
|
|
<el-button type="primary" v-show="isShowRepair && isLoginSuccess" @click="repairClick" class="confirm-btn" style="margin-right: 32px;">靠背返修</el-button> |
|
|
|
<img src="../../../assets/imgs/人员icon.png" alt=""> |
|
|
|
<span style="margin-right:40px">登录人员:{{userInfo.name}}</span> |
|
|
|
<img src="../../../assets/imgs/时间icon.png" alt=""> |
|
|
|
登录时间:{{userInfo.time}} |
|
|
|
<img src="../../../assets/imgs/时间icon.png" alt="">登录时间:{{userInfo.time}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- 登录弹框 --> |
|
|
@ -26,10 +25,7 @@ |
|
|
|
<el-row :gutter="20"> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item prop="code"> |
|
|
|
<el-input placeholder="请输入编号" |
|
|
|
v-model="form.code" |
|
|
|
autofocus |
|
|
|
@keyup.enter.native="searchCode"></el-input> |
|
|
|
<el-input placeholder="请输入编号" v-model="form.code" autofocus @keyup.enter.native="searchCode"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
@ -42,9 +38,7 @@ |
|
|
|
<el-row :gutter="20"> |
|
|
|
<el-col :span="12"> |
|
|
|
<el-form-item prop="line"> |
|
|
|
<el-select v-model="form.line" |
|
|
|
placeholder="请选择" |
|
|
|
@change="changeWorkLine"> |
|
|
|
<el-select v-model="form.line" placeholder="请选择" @change="changeWorkLine"> |
|
|
|
<el-option v-for="(item,index) in options" |
|
|
|
:key="index" |
|
|
|
:label="item['WorkLine-Descr']" |
|
|
@ -69,7 +63,7 @@ |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
<!-- 返修弹框 --> |
|
|
|
<el-dialog title="返修" :visible.sync="open" :close-on-click-modal="false" @close="closeRepair" width="1000px"> |
|
|
|
<el-dialog title="靠背返修" :visible.sync="open" :close-on-click-modal="false" @close="closeRepair" width="1000px"> |
|
|
|
<div class="repair-pic clearfix"> |
|
|
|
<el-carousel arrow="always" height="400px" class="fl"> |
|
|
|
<el-carousel-item v-for="(item, index) in newImgSrc" :key="index"> |
|
|
@ -80,7 +74,6 @@ |
|
|
|
<p><span>产品条码:</span><span>{{productCodeEcho}}</span></p> |
|
|
|
<p><span>调角器条码:</span><span>{{repairCodeEcho}}</span></p> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
<div class="repair-code"> |
|
|
|
<el-input v-model="repairCode" |
|
|
@ -95,14 +88,18 @@ |
|
|
|
<el-button @click="closeRepair">关 闭</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
<!-- 坐盆返修 --> |
|
|
|
<bidetRepair @bidetHandle="bidetHandle" v-if="bidetVisible" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import * as api from '@/api/quality/ods' |
|
|
|
import { reclinerQuery, submitRecliner } from '@/api/quality/defectdata' |
|
|
|
import bidetRepair from './bidetRepair' |
|
|
|
import moment from 'moment' |
|
|
|
export default { |
|
|
|
components: {bidetRepair}, |
|
|
|
props: { |
|
|
|
isShowRepair: { |
|
|
|
type: Boolean, |
|
|
@ -137,16 +134,25 @@ export default { |
|
|
|
repairCodeEcho: '', //调角器条码回显 |
|
|
|
productCodeEcho: '', //产品条码回显 |
|
|
|
echoInfo: {}, // 回显的信息 |
|
|
|
bidetVisible: false, // 坐盆返修弹框显隐 |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.getWorklines() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 返修按钮 |
|
|
|
// 坐盆返修组件回调函数 |
|
|
|
bidetHandle(value) { |
|
|
|
this.bidetVisible = value |
|
|
|
}, |
|
|
|
// 靠背返修按钮 |
|
|
|
repairClick() { |
|
|
|
this.open = true |
|
|
|
}, |
|
|
|
// 坐盆返修按钮 |
|
|
|
bidetRepairClick() { |
|
|
|
this.bidetVisible = true |
|
|
|
}, |
|
|
|
// 关闭返修弹框 |
|
|
|
closeRepair() { |
|
|
|
this.open = false |
|
|
@ -181,23 +187,23 @@ export default { |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning', |
|
|
|
}).then(() => { |
|
|
|
let params = { |
|
|
|
"QM_ReclinerReclst-PlantNr": 100, |
|
|
|
"QM_ReclinerReclst-Line": this.echoInfo['ACC_UNITID-LINE'], |
|
|
|
"QM_ReclinerReclst-SerialOrderId": this.echoInfo['ACC_UNITID-UNITSN'], |
|
|
|
"QM_ReclinerReclst-ReclinerNr": this.echoInfo['ACC_UNITID-ID_VALUE'], |
|
|
|
"QM_ReclinerReclst-ItemPartNr": this.echoInfo['ACC_UNITID-ID_NAME'], |
|
|
|
"QM_ReclinerReclst-Status": "N" |
|
|
|
let params = { |
|
|
|
"QM_ReclinerReclst-PlantNr": 100, |
|
|
|
"QM_ReclinerReclst-Line": this.echoInfo['ACC_UNITID-LINE'], |
|
|
|
"QM_ReclinerReclst-SerialOrderId": this.echoInfo['ACC_UNITID-UNITSN'], |
|
|
|
"QM_ReclinerReclst-ReclinerNr": this.echoInfo['ACC_UNITID-ID_VALUE'], |
|
|
|
"QM_ReclinerReclst-ItemPartNr": this.echoInfo['ACC_UNITID-ID_NAME'], |
|
|
|
"QM_ReclinerReclst-Status": "N" |
|
|
|
} |
|
|
|
submitRecliner(params).then((res) => { |
|
|
|
if (res.code == 200) { |
|
|
|
this.msgSuccess('提交成功!') |
|
|
|
} else { |
|
|
|
this.msgError(res.msg) |
|
|
|
} |
|
|
|
submitRecliner(params).then((res) => { |
|
|
|
if (res.code == 200) { |
|
|
|
this.msgSuccess('提交成功!') |
|
|
|
} else { |
|
|
|
this.msgError(res.msg) |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.$refs.codeFocus.focus() |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.$refs.codeFocus.focus() |
|
|
|
}, |
|
|
|
choosePos(item) { |
|
|
|
this.actPosItem = item |
|
|
|