|
@ -40,34 +40,14 @@ |
|
|
class="inline-input" |
|
|
class="inline-input" |
|
|
style="width: 100%" |
|
|
style="width: 100%" |
|
|
:fetch-suggestions="querySearchJyjg" |
|
|
:fetch-suggestions="querySearchJyjg" |
|
|
@select="(val) => changeFn(val.value, scope.row)" |
|
|
@input="(val) => changeFn(val, scope.row)" |
|
|
/> |
|
|
/> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<!-- <el-table-column |
|
|
|
|
|
align="center" |
|
|
|
|
|
prop="gongzuojianzheng" |
|
|
|
|
|
min-width="200" |
|
|
|
|
|
label="检验结论" |
|
|
|
|
|
> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
<el-autocomplete |
|
|
|
|
|
v-model="scope.row.gongzuojianzheng" |
|
|
|
|
|
class="inline-input" |
|
|
|
|
|
style="width: 100%" |
|
|
|
|
|
:fetch-suggestions=" |
|
|
|
|
|
(queryString, cb) => { |
|
|
|
|
|
querySearchGzjz(queryString, cb, scope.$index); |
|
|
|
|
|
} |
|
|
|
|
|
" |
|
|
|
|
|
/> |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> --> |
|
|
|
|
|
</el-table> |
|
|
</el-table> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
<script> |
|
|
<script> |
|
|
// import Technical from '@/views/ysjl/3000/common/technical-parameter' |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: 'Inspection', |
|
|
name: 'Inspection', |
|
@ -100,18 +80,25 @@ export default { |
|
|
querySearchJyjg: function(queryString, cb, $index) { |
|
|
querySearchJyjg: function(queryString, cb, $index) { |
|
|
cb(this.jyjgList) |
|
|
cb(this.jyjgList) |
|
|
}, |
|
|
}, |
|
|
|
|
|
change(row) { |
|
|
|
|
|
console.log(row) |
|
|
|
|
|
}, |
|
|
changeFn(val, row) { |
|
|
changeFn(val, row) { |
|
|
const jybgJyjgJyxm = this.jybgData[row.jybgJyjgIndex - 1] |
|
|
const jybgJyjgJyxm = this.jybgData[row.jybgJyjgIndex - 1] |
|
|
|
|
|
let beizhu = '' |
|
|
|
|
|
if (val.length > 1) { |
|
|
|
|
|
beizhu = val.substr(1) |
|
|
|
|
|
} |
|
|
if (val.indexOf('X') === 0) { |
|
|
if (val.indexOf('X') === 0) { |
|
|
jybgJyjgJyxm.jianyanjieguo = '不符合' |
|
|
jybgJyjgJyxm.jianyanjieguo = '不符合' + beizhu |
|
|
} else if (val.indexOf('√') === 0) { |
|
|
} else if (val.indexOf('√') === 0) { |
|
|
let jyjg = '符合' |
|
|
let jyjg = '符合' |
|
|
if (row.xiangmuleibie === 'C') { |
|
|
if (row.xiangmuleibie === 'C') { |
|
|
jyjg = '资料确认符合' |
|
|
jyjg = '资料确认符合' |
|
|
} |
|
|
} |
|
|
jybgJyjgJyxm.jianyanjieguo = jyjg |
|
|
jybgJyjgJyxm.jianyanjieguo = jyjg + beizhu |
|
|
} else if (val.indexOf('/') === 0) { |
|
|
} else if (val.indexOf('/') === 0) { |
|
|
jybgJyjgJyxm.jianyanjieguo = '无此项' |
|
|
jybgJyjgJyxm.jianyanjieguo = '无此项' + beizhu |
|
|
} else { |
|
|
} else { |
|
|
jybgJyjgJyxm.jianyanjieguo = '' |
|
|
jybgJyjgJyxm.jianyanjieguo = '' |
|
|
} |
|
|
} |
|
|