|
|
|
@ -31,7 +31,8 @@ |
|
|
|
<div></div> |
|
|
|
<div> |
|
|
|
<el-button v-if="false" @click="btnTest">测试</el-button> |
|
|
|
<el-button class="deleteButton" @click="btnDel" :disabled="dataTransOpts.tableS.patient_register.completeFlag == '3'">删除</el-button> |
|
|
|
<el-button class="deleteButton" @click="btnDel" |
|
|
|
:disabled="dataTransOpts.tableS.patient_register.completeFlag == '3'">删除</el-button> |
|
|
|
<el-button class="commonbutton" @click="btnOk">确定</el-button> |
|
|
|
<el-button class="commonbutton" @click="btnClose">关闭</el-button> |
|
|
|
</div> |
|
|
|
@ -178,8 +179,10 @@ export default { |
|
|
|
// 点击确定 |
|
|
|
btnOk() { |
|
|
|
let message = '' |
|
|
|
// console.log('this.dataTransOpts.tableM.patient_poison', this.dataTransOpts.tableM.patient_poison) |
|
|
|
|
|
|
|
this.dataTransOpts.tableM.patient_poison.forEach((e, i) => { |
|
|
|
if(e.poisonId) message = `接害因素,第 ${i+1} 行,不能为空` |
|
|
|
if (!e.poisonId) message = `接害因素,第 ${i + 1} 行,不能为空` |
|
|
|
if (!e.occupationalAbnormalId) e.occupationalAbnormalId = null |
|
|
|
}); |
|
|
|
if (message) { |
|
|
|
|