Browse Source

优化页面

master
李磊 3 years ago
parent
commit
f708f4b99e
  1. 11
      src/views/ysjl/3000/common/index.vue
  2. 8
      src/views/ysjl/3000/common/inspection-items.vue

11
src/views/ysjl/3000/common/index.vue

@ -127,12 +127,7 @@
</el-col> </el-col>
<el-col :span="9"> <el-col :span="9">
<el-form-item label="制造日期" prop="zhizaoriqi"> <el-form-item label="制造日期" prop="zhizaoriqi">
<el-date-picker <el-input v-model="ysjl.zhizaoriqi" type="text" />
v-model="ysjl.zhizaoriqi"
value-format="yyyy-MM-dd"
placeholder="选择日期"
style="width: 100%"
/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
@ -1193,10 +1188,12 @@ export default {
subArr.forEach((item) => { subArr.forEach((item) => {
if (item.some((k) => k.jianyanjieguo.indexOf('×') === 0)) { if (item.some((k) => k.jianyanjieguo.indexOf('×') === 0)) {
this.jybgData[item[0].jybgJyjlIndex - 1].jianyanjielun = '不合格' this.jybgData[item[0].jybgJyjlIndex - 1].jianyanjielun = '不合格'
} else if (item.some((k) => k.jianyanjieguo.indexOf('√') === 0)) { } else if (item.some((k) => k.jianyanjieguo.indexOf('√') === 0 || k.jianyanjieguo.indexOf('○') === 0)) {
this.jybgData[item[0].jybgJyjlIndex - 1].jianyanjielun = '合格' this.jybgData[item[0].jybgJyjlIndex - 1].jianyanjielun = '合格'
} else if (item.every((k) => k.jianyanjieguo.indexOf('/') === 0)) { } else if (item.every((k) => k.jianyanjieguo.indexOf('/') === 0)) {
this.jybgData[item[0].jybgJyjlIndex - 1].jianyanjielun = '无此项' this.jybgData[item[0].jybgJyjlIndex - 1].jianyanjielun = '无此项'
} else {
this.jybgData[item[0].jybgJyjlIndex - 1].jianyanjielun = ''
} }
}) })
const tableData = [] const tableData = []

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

@ -92,11 +92,9 @@ export default {
if (val.indexOf('×') === 0) { if (val.indexOf('×') === 0) {
jybgJyjgJyxm.jianyanjieguo = '不符合' + beizhu jybgJyjgJyxm.jianyanjieguo = '不符合' + beizhu
} else if (val.indexOf('√') === 0) { } else if (val.indexOf('√') === 0) {
let jyjg = '符合' jybgJyjgJyxm.jianyanjieguo = '符合' + beizhu
if (row.xiangmuleibie === 'C') { } else if (val.indexOf('○') === 0) {
jyjg = '资料确认符合' jybgJyjgJyxm.jianyanjieguo = '资料确认符合' + beizhu
}
jybgJyjgJyxm.jianyanjieguo = jyjg + beizhu
} else if (val.indexOf('/') === 0) { } else if (val.indexOf('/') === 0) {
jybgJyjgJyxm.jianyanjieguo = '无此项' + beizhu jybgJyjgJyxm.jianyanjieguo = '无此项' + beizhu
} else { } else {

Loading…
Cancel
Save