| | |
| | | <h3 v-if="fList.proResult"> |
| | | 检测结果 :{{ fList.proResult }}{{ fList.project.proMetering }} |
| | | </h3> |
| | | <!-- <el-form |
| | | :model="queryParams" |
| | | ref="queryForm" |
| | | size="small" |
| | | :inline="true" |
| | | label-width="68px" |
| | | > --> |
| | | <!-- <el-form-item label="病种名称" prop="bingzhong"> |
| | | |
| | | <h2 style="text-align: center;">{{ queryParams.proName || '暂无项目名称' }}</h2> |
| | | <div style="display: flex; width: 100%"> |
| | | <div style="width: 50%; margin-right: 40px"> |
| | | <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px"> |
| | | <!-- <el-form-item label="病种名称" prop="bingzhong"> |
| | | <el-input |
| | | v-model="queryParams.bingzhong" |
| | | placeholder="请输入简称" |
| | |
| | | @keyup.enter.native="handleQuery" |
| | | style="width: 120px" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="拼音码" prop="bzPinyin"> |
| | | <el-input |
| | | v-model="queryParams.bzPinyin" |
| | | placeholder="请输入拼音码" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | style="width: 130px" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-search" |
| | | size="mini" |
| | | @click="handleQuery" |
| | | >搜索</el-button |
| | | > |
| | | </el-form-item> --> |
| | | <!-- <el-form-item> |
| | | </el-form-item>--> |
| | | <el-form-item label="检查结论" prop="ruleStr"> |
| | | <el-input v-model="queryParams.ruleStr" placeholder="请输入检查结论" clearable @keyup.enter.native="getList" |
| | | style="width: 130px" /> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button type="primary" icon="el-icon-search" size="mini" @click="getList">搜索</el-button> |
| | | </el-form-item> |
| | | <!-- <el-form-item> |
| | | <h3 >{{ queryParams.proName || '暂无项目名称' }}</h3> |
| | | </el-form-item> --> |
| | | <!-- <el-form-item> |
| | | <!-- <el-form-item> |
| | | <h3 style="margin-left: 160px">已选项目</h3> |
| | | </el-form-item> --> |
| | | <!-- </el-form> --> |
| | | <h2 style="text-align: center;margin-top: -30px;">{{ queryParams.proName || '暂无项目名称' }}</h2> |
| | | <div style="display: flex; width: 100%"> |
| | | <div style="width: 50%; margin-right: 40px"> |
| | | </el-form> |
| | | <el-table :data="dataList" ref="multipleTable" v-loading="loading" @selection-change="handleSelectionChange" |
| | | border height="420px"> |
| | | border height="480px"> |
| | | <el-table-column type="selection" width="40" align="center" /> |
| | | <el-table-column label="序号" type="index" align="center" width="50px" /> |
| | | <!-- <el-table-column label="规则" align="center" prop="ruleStr" /> --> |
| | |
| | | </div> |
| | | </div> |
| | | |
| | | <div style="width: 100%; height: 600px"> |
| | | <div class="jianc"> |
| | | <!-- <h3 style="margin-top: -30px;">已选项目</h3> --> |
| | | <el-form :model="form" ref="queryForm" size="small" label-width="68px" :inline="true"> |
| | | <el-form :model="form" ref="queryForm" size="small" label-width="68px" :label-position="labelPosition"> |
| | | <!-- :inline="true" --> |
| | | <!-- <el-form-item> |
| | | <el-input |
| | |
| | | ></el-input> |
| | | </el-form-item> --> |
| | | <el-form-item label="检查所见" prop="jcsj"> |
| | | <el-input v-model="form.jcsj" clearable type="textarea" :autosize="{ minRows: 8 }" style="width: 380px" /> |
| | | <el-input v-model="form.jcsj" clearable type="textarea" :autosize="{ minRows: 7 }" style="width: 380px" /> |
| | | </el-form-item> |
| | | <el-form-item label="检查结论" prop="conclusion"> |
| | | <el-input v-model="form.desc" clearable type="textarea" :autosize="{ minRows: 8 }" style="width: 380px" /> |
| | | <el-form-item label="检查结论" prop="desc"> |
| | | <el-input v-model="form.desc" clearable type="textarea" :autosize="{ minRows: 7 }" style="width: 380px" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | </div> |
| | | |
| | | <span slot="footer" class="dialog-footer" style="margin-top: -120px"> |
| | | <span slot="footer" class="dialog-footer" style="margin-top: -20px"> |
| | | <el-button @click="callcolos">取 消</el-button> |
| | | <el-button type="primary" @click="handleOk">确 定</el-button> |
| | | </span> |
| | |
| | | data() { |
| | | return { |
| | | open: false, |
| | | labelPosition: "top", |
| | | // 弹出层标题 |
| | | title: "", |
| | | yxbx: "", |
| | |
| | | jcsj: "", |
| | | }, |
| | | queryParams: { |
| | | bingzhong: "", |
| | | bzPinyin: "", |
| | | proId: "", |
| | | proName: "", |
| | | ruleStr: "", |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | }, |
| | |
| | | }, |
| | | watch: { |
| | | checkStatus(newValue) { |
| | | console.log(565658) |
| | | if (newValue === "1") { |
| | | this.updateData(this.proResult, this.conclusion); |
| | | } |
| | |
| | | try { |
| | | this.loading = true; // 添加加载状态 |
| | | const res = await getlist(this.queryParams); |
| | | this.dataList = res.rows; |
| | | this.total = res.total; |
| | | |
| | | this.updateData(this.proResult, this.conclusion); |
| | | |
| | | this.dataList = res.data.rows; |
| | | if (res.data.total) { |
| | | this.total = res.data.total; |
| | | } |
| | | this.updateData(this.proResult, this.conclusion); |
| | | |
| | | // 如果需要选中操作,将其封装为独立方法 |
| | | await this.handleAutoSelection(); |
| | |
| | | |
| | | updateData(proResult, conclusion) { |
| | | console.log(proResult, conclusion, 5658) |
| | | |
| | | if (this.checkStatus == 1) { |
| | | |
| | | this.form.jcsj = proResult; // 更新检查所见 |
| | | this.form.desc = conclusion; // 更新检查结论 |
| | | if (this.list.length != 0) { |
| | | let desc = "" |
| | | desc += this.list |
| | | .map((item) => item.bingzhong || item.ruleStr) |
| | | .filter(Boolean) |
| | | .join(","); |
| | | let jcsj = "" |
| | | jcsj += this.list |
| | | .map((item) => item.yxbx) |
| | | .filter(Boolean) |
| | | .join(","); |
| | | this.form.jcsj = this.form.jcsj+jcsj; // 更新检查所见 |
| | | this.form.desc= this.form.desc+desc; |
| | | |
| | | } |
| | | |
| | | } else { |
| | | this.form.desc = ""; |
| | | this.form.jcsj = ""; |
| | | } |
| | | |
| | | if (this.list.length != 0) { |
| | | let desc = "" |
| | | desc += this.list |
| | | .map((item) => item.bingzhong || item.ruleStr) |
| | | .filter(Boolean) |
| | | .join(","); |
| | | let jcsj = "" |
| | | jcsj += this.list |
| | | .map((item) => item.yxbx) |
| | | .filter(Boolean) |
| | | .join(","); |
| | | this.form.jcsj = this.form.jcsj + jcsj; // 更新检查所见 |
| | | this.form.desc = this.form.desc + desc; |
| | | } |
| | | }, |
| | | |
| | | handleSelectionChange(selection) { |
| | |
| | | |
| | | <style scoped> |
| | | .el-dialog__body { |
| | | padding: 10px 20px; |
| | | padding: 0px 20px; |
| | | } |
| | | |
| | | ::v-deep .el-dialog__header { |
| | | padding: 0px !important; |
| | | padding-bottom: 0px !important; |
| | | } |
| | | |
| | | ::v-deep .el-dialog__footer { |
| | | padding: 0 !important; |
| | | padding-bottom: 40px !important; |
| | | } |
| | | |
| | | .jianc { |
| | | width: 100%; |
| | | height: 600px; |
| | | padding-top: 40px |
| | | } |
| | | </style> |