Browse Source

update

pull/3/head
luanss 4 years ago
parent
commit
ba67b59ad6
2 changed files with 20 additions and 3 deletions
  1. +8
    -0
      src/api/quality/defectdata.js
  2. +12
    -3
      src/views/quality/defectdata.vue

+ 8
- 0
src/api/quality/defectdata.js View File

@ -80,4 +80,12 @@ export function getArtrouteodslst (id) {
url: `/admin/ods/artrouteodslst/query?artid=${id}`,
method: 'get',
})
}
//根据扫码获取产品缺陷记录
export function getDefectrecord (id) {
return request({
url: `/admin/qm/defectrecord/query?serialorderid=${id}`,
method: 'get',
})
}

+ 12
- 3
src/views/quality/defectdata.vue View File

@ -41,7 +41,8 @@
alt="">
<span>缺陷原因</span>
</div>
<div class="error-wrap">
<div class="error-wrap"
v-if="aciveImgObj['QM_View-Groups']">
<el-collapse v-model="activeNames">
<el-collapse-item v-for="(item,index) in aciveImgObj['QM_View-Groups']"
:key="index"
@ -140,7 +141,7 @@ import { codeparser } from '@/api/quality/pkg.js'
export default {
data() {
return {
activeNames: [1],
activeNames: [],
seeImgs: [],
processList: [],
activeImg: 0,
@ -330,7 +331,14 @@ export default {
type: 'warning',
})
.then(() => {
this.errorList.pop()
if (this.errorList.length > 0) {
this.errorList.pop()
} else {
this.$message({
type: 'warning',
message: '暂无可撤销缺陷记录!',
})
}
})
.catch(() => {
this.$message({
@ -480,6 +488,7 @@ export default {
height: 100%;
background: #fff;
padding: 24px;
padding-top: 0;
box-sizing: border-box;
.error-img {
width: 100%;


Loading…
Cancel
Save