|
|
|
@ -9,10 +9,20 @@ |
|
|
|
<td width="50%">建议:</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td><el-input type="textarea" v-model="dataTransOpts.tableS.patient_occupational_disease.occupationalAbnormal" |
|
|
|
size="small" :autosize="{ minRows: 8, maxRows: 8 }" :disabled="!checkPagePriv(pagePriv.privs, '职业健康检查结论') || isOccSummary"></el-input></td> |
|
|
|
<td><el-input type="textarea" v-model="dataTransOpts.tableS.patient_occupational_disease.occupationalAbSuggestion" |
|
|
|
size="small" :autosize="{ minRows: 8, maxRows: 8 }" :disabled="!checkPagePriv(pagePriv.privs, '职业健康检查结论') || isOccSummary"></el-input></td> |
|
|
|
<td> |
|
|
|
<!-- |
|
|
|
<el-input type="textarea" v-model="dataTransOpts.tableS.patient_occupational_disease.occupationalAbnormal" |
|
|
|
size="small" :autosize="{ minRows: 7, maxRows: 7 }" |
|
|
|
:disabled="!checkPagePriv(pagePriv.privs, '职业健康检查结论') || isOccSummary"></el-input> |
|
|
|
--> |
|
|
|
<el-autocomplete class="inline-input" v-model="dataTransOpts.tableS.patient_occupational_disease.occupationalAbnormal" |
|
|
|
:fetch-suggestions="querySearch" placeholder="请输入职业健康检查结论" |
|
|
|
@select="handleSelect" :disabled="!checkPagePriv(pagePriv.privs, '职业健康检查结论') || isOccSummary"></el-autocomplete> |
|
|
|
</td> |
|
|
|
<td><el-input type="textarea" |
|
|
|
v-model="dataTransOpts.tableS.patient_occupational_disease.occupationalAbSuggestion" size="small" |
|
|
|
:autosize="{ minRows: 7, maxRows: 7 }" |
|
|
|
:disabled="!checkPagePriv(pagePriv.privs, '职业健康检查结论') || isOccSummary"></el-input></td> |
|
|
|
</tr> |
|
|
|
<!-- |
|
|
|
<tr> |
|
|
|
@ -29,8 +39,9 @@ |
|
|
|
</table> |
|
|
|
<div>处理意见:</div> |
|
|
|
<div> |
|
|
|
<el-input type="textarea" v-model="dataTransOpts.tableS.patient_occupational_disease.handleSuggestion" size="small" |
|
|
|
:autosize="{ minRows: 2, maxRows: 2 }" :disabled="!checkPagePriv(pagePriv.privs, '职业健康检查结论')"></el-input> |
|
|
|
<el-input type="textarea" v-model="dataTransOpts.tableS.patient_occupational_disease.handleSuggestion" |
|
|
|
size="small" :autosize="{ minRows: 2, maxRows: 2 }" |
|
|
|
:disabled="!checkPagePriv(pagePriv.privs, '职业健康检查结论')"></el-input> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
@ -40,6 +51,7 @@ import { mapState } from "vuex"; |
|
|
|
import OccDiseasePoison from "./OccDiseasePoison.vue"; |
|
|
|
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
|
import { getPagePriv, checkPagePriv, objCopy, deepCopy, arrayExistObj } from "../../utlis/proFunc"; |
|
|
|
import OccCheckConclusion from "@/views/basic-dictionary/occCheckConclusion.vue"; |
|
|
|
export default { |
|
|
|
components: { OccDiseasePoison }, |
|
|
|
props: ["refFunc"], |
|
|
|
@ -49,7 +61,7 @@ export default { |
|
|
|
routeUrlorPageName: 'OccDisease', //当前页面归属路由或归属页面权限名称 |
|
|
|
privs: [] // 页面权限 |
|
|
|
}, |
|
|
|
|
|
|
|
OccConclusion: [], // 职业病结论 |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -57,6 +69,7 @@ export default { |
|
|
|
//获取用户当前页面的权限 |
|
|
|
let userPriv = window.sessionStorage.getItem('userPriv') |
|
|
|
if (userPriv) this.pagePriv.privs = deepCopy(getPagePriv(this.pagePriv.routeUrlorPageName)) |
|
|
|
this.init() |
|
|
|
}, |
|
|
|
|
|
|
|
//挂载完成 |
|
|
|
@ -73,6 +86,30 @@ export default { |
|
|
|
|
|
|
|
methods: { |
|
|
|
moment, checkPagePriv, |
|
|
|
|
|
|
|
init() { |
|
|
|
postapi('/api/app/OccupationalAbnormal/GetList') |
|
|
|
.then(res => { |
|
|
|
if (res.code > - 1){ |
|
|
|
//displayName": "本次检查未见异常", |
|
|
|
this.OccConclusion = res.data |
|
|
|
this.OccConclusion.forEach(e => { |
|
|
|
e.value = e.displayName |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
querySearch(queryString, cb) { |
|
|
|
let restaurants = this.OccConclusion; |
|
|
|
let results = queryString ? restaurants.filter(e => { return e.value.indexOf(queryString) > -1}) : restaurants; |
|
|
|
// 调用 callback 返回建议列表的数据 |
|
|
|
cb(results); |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
watch: { |
|
|
|
@ -96,4 +133,5 @@ export default { |
|
|
|
|
|
|
|
.btnClass { |
|
|
|
width: 110px; |
|
|
|
}</style> |
|
|
|
} |
|
|
|
</style> |