|
|
@ -53,42 +53,19 @@ |
|
|
|
<fieldset> |
|
|
|
<legend>基本信息</legend> |
|
|
|
<el-row :gutter="25"> |
|
|
|
<el-col |
|
|
|
v-if=" |
|
|
|
state === 'create' || |
|
|
|
ysjl.jilubianhao === null || |
|
|
|
ysjl.jilubianhao === '' |
|
|
|
" |
|
|
|
:span="14" |
|
|
|
> |
|
|
|
<el-col v-if="state === 'create' || !ysjl.jilubianhao" :span="10"> |
|
|
|
<el-form-item label="记录编号"> |
|
|
|
<el-input v-model="jlbh1" style="width: 80px" disabled /> |
|
|
|
<el-input v-model="jlbh2" style="width: 80px" disabled />- |
|
|
|
<el-input |
|
|
|
v-model="jlbh3" |
|
|
|
style="width: 85px" |
|
|
|
@blur="judgeRepeat(jlbh1 + jlbh2 + '-' + jlbh3, ysjl.id)" |
|
|
|
/> |
|
|
|
<el-input v-model="jlbh3" style="width: 85px" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col v-else :span="9"> |
|
|
|
<el-form-item label="记录编号" prop="jilubianhao"> |
|
|
|
<el-input |
|
|
|
v-if="state !== 'create'" |
|
|
|
v-model="ysjl.jilubianhao" |
|
|
|
:disabled="edit" |
|
|
|
/> |
|
|
|
<el-input v-if="state !== 'create'" v-model="ysjl.jilubianhao" :disabled="edit" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col |
|
|
|
v-if="isRepeat" |
|
|
|
:span="2" |
|
|
|
style=" |
|
|
|
vertical-align: middle; |
|
|
|
padding-top: 3px; |
|
|
|
font-size: 15px; |
|
|
|
" |
|
|
|
> |
|
|
|
<el-col v-if="isRepeat" :span="2" style="font-size: 15px;"> |
|
|
|
<span style="color: red">编号重复</span> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
@ -847,7 +824,7 @@ |
|
|
|
<el-table-column align="center" prop="D1" label="检验结果"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-select |
|
|
|
v-model="scope.row.D1" |
|
|
|
v-model="scope.row.jianyanjieguo" |
|
|
|
:disabled="edit" |
|
|
|
type="text" |
|
|
|
placeholder="请选择" |
|
|
@ -887,7 +864,7 @@ export default { |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
jlbh1: 'GN', |
|
|
|
jlbh1: 'QZ', |
|
|
|
jlbh2: '(' + new Date().getFullYear() + ')', |
|
|
|
jlbh3: '', |
|
|
|
ysjl: { |
|
|
@ -934,13 +911,13 @@ export default { |
|
|
|
}, |
|
|
|
computed: {}, |
|
|
|
watch: { |
|
|
|
// jlbh3: function(val) { |
|
|
|
// this.ysjl.jilubianhao = this.jlbh1 + this.jlbh2 + '-' + val |
|
|
|
// this.judgeRepeat(this.ysjl.jilubianhao, this.ysjl.id) |
|
|
|
// }, |
|
|
|
// jilubianhao: function(newValue) { |
|
|
|
// this.judgeRepeat(newValue, this.ysjl.id) |
|
|
|
// } |
|
|
|
jlbh3: function(val) { |
|
|
|
this.ysjl.jilubianhao = this.jlbh1 + this.jlbh2 + '-' + val |
|
|
|
this.judgeRepeat(this.ysjl.jilubianhao, this.ysjl.id) |
|
|
|
}, |
|
|
|
jilubianhao: function(newValue) { |
|
|
|
this.judgeRepeat(newValue, this.ysjl.id) |
|
|
|
} |
|
|
|
}, |
|
|
|
// 添加F5刷新监听事件 |
|
|
|
mounted() { |
|
|
@ -1128,10 +1105,11 @@ export default { |
|
|
|
this.sybjSData.forEach((row) => { |
|
|
|
tableData.push({ |
|
|
|
ysjlId: this.ysjlId, |
|
|
|
id: row.id, |
|
|
|
beizhu: row.beizhu, |
|
|
|
dicJyxmId: row.dicJyxmId, |
|
|
|
jianyanjieguo: row.jianyanjieguo ? row.jianyanjieguo : '', |
|
|
|
jianyanjielun: row.jianyanjielun ? row.jianyanjielun : '', |
|
|
|
jianyanjieguo: row.jianyanjieguo || '', |
|
|
|
jianyanjielun: row.jianyanjielun || '', |
|
|
|
jyxmMode: 0, |
|
|
|
sort: row.sort, |
|
|
|
orders: row.orders, |
|
|
|