| | |
| | | <el-button type="primary" :disabled="!disabled" @click="Cancellation">撤销合并</el-button> |
| | | <el-button type="primary" @click="Confirmreceipt" :disabled="!selectList.length">采样打码</el-button> |
| | | <el-button type="primary" @click="piliangPrint" :disabled="!isAllSelected">批量打印</el-button> |
| | | |
| | | |
| | | </el-col> |
| | | <el-col :span="12" style="margin: 10px 15px" v-show="samplingList.length > 0 && tjStatus == 0"> |
| | | <el-button type="primary" :disabled="!selectList.length" @click="buda">补打条码</el-button> |
| | | <!-- @click="Collection" --> |
| | | <el-button type="primary" :disabled="!disabled" @click="Cancellation">撤销合并</el-button> |
| | | <el-button type="primary" @click="jydPrint">打印检验单</el-button> |
| | | <el-button type="primary" @click="jydPrint">打印检验单</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <div style="width: 100%; margin-left: 10px; display: flex"> |
| | | <div style="width: 40%; margin-right: 20px"> |
| | | <el-table id="ta" v-loading="loading1" ref="tb" :data="samplingList" @selection-change="handleSelectionChange" |
| | | border height="520px" :row-class-name="tableRowClassName"> |
| | | @current-change="handleCurrentChangess" border height="520px" :row-class-name="tableRowClassName"> |
| | | <el-table-column type="selection" width="40" align="center" :selectable="selectable" /> |
| | | <el-table-column label="体检号" align="center" prop="tjNumber" width="160px" /> |
| | | <el-table-column label="姓名" align="center" prop="cusName" width="80px" /> |
| | |
| | | proId: null, |
| | | proName: null, |
| | | }, |
| | | tjNumber: null, |
| | | startTime: "", |
| | | tableKey: "", |
| | | pickerOptions: { |
| | |
| | | |
| | | |
| | | jydPrint() { |
| | | const tjnumber = this.piliangList[0].tjNumber; |
| | | if (this.piliangList.length != 0) { |
| | | const tjnumber = this.piliangList[0].tjNumber; |
| | | const viewNum = "1086792376946569216"; |
| | | const params = { viewNum, tjnumber }; |
| | | this.$tab.openPage("检验科导检单", "/report/clinical", params); |
| | | this.$refs.tb.toggleRowSelection(this.piliangList[0], false); |
| | | this.piliangList = [] |
| | | } else { |
| | | this.$message.info('请重新选择要打印的数据'); |
| | | this.$refs.tb.toggleRowSelection(this.piliangList[0], false); |
| | | this.piliangList = [] |
| | | } |
| | | |
| | | }, |
| | | getTruncatedName(proName) { |
| | | // 去掉所有空格 |
| | |
| | | } |
| | | this.handleQuery(); // 重新查询 |
| | | }, |
| | | handleCurrentChangess(val) { |
| | | if (val != null) { |
| | | this.$refs.tb.toggleRowSelection(val, true); |
| | | this.handleSelectionChange(val); |
| | | } |
| | | }, |
| | | |
| | | handleSelectionChange(selection) { |
| | | this.piliangList = selection; |
| | | |
| | | const selectedCount = selection.length; |
| | | const totalCount = this.samplingList.length; |
| | | |
| | |
| | | if (selectedCount === 1) { |
| | | this.disableSelections = false; |
| | | const selectedPerson = selection[0]; |
| | | this.piliangList = selection; |
| | | const tjNumber = selectedPerson.tjNumber; |
| | | console.log(`选中的体检号: ${tjNumber}`); |
| | | this.fetchData(tjNumber); |