Browse Source

优化调整原始记录与报告的检验结果转换

master
李磊 3 years ago
parent
commit
2c5339203d
  1. 35
      src/views/ysjl/3000/common/inspection-items.vue

35
src/views/ysjl/3000/common/inspection-items.vue

@ -40,34 +40,14 @@
class="inline-input"
style="width: 100%"
:fetch-suggestions="querySearchJyjg"
@select="(val) => changeFn(val.value, scope.row)"
@input="(val) => changeFn(val, scope.row)"
/>
</template>
</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>
</div>
</template>
<script>
// import Technical from '@/views/ysjl/3000/common/technical-parameter'
export default {
name: 'Inspection',
@ -100,18 +80,25 @@ export default {
querySearchJyjg: function(queryString, cb, $index) {
cb(this.jyjgList)
},
change(row) {
console.log(row)
},
changeFn(val, row) {
const jybgJyjgJyxm = this.jybgData[row.jybgJyjgIndex - 1]
let beizhu = ''
if (val.length > 1) {
beizhu = val.substr(1)
}
if (val.indexOf('X') === 0) {
jybgJyjgJyxm.jianyanjieguo = '不符合'
jybgJyjgJyxm.jianyanjieguo = '不符合' + beizhu
} else if (val.indexOf('√') === 0) {
let jyjg = '符合'
if (row.xiangmuleibie === 'C') {
jyjg = '资料确认符合'
}
jybgJyjgJyxm.jianyanjieguo = jyjg
jybgJyjgJyxm.jianyanjieguo = jyjg + beizhu
} else if (val.indexOf('/') === 0) {
jybgJyjgJyxm.jianyanjieguo = '无此项'
jybgJyjgJyxm.jianyanjieguo = '无此项' + beizhu
} else {
jybgJyjgJyxm.jianyanjieguo = ''
}

Loading…
Cancel
Save