| | |
| | | > |
| | | <el-form-item label="体检号" prop="tjNum"> |
| | | <el-input |
| | | ref="inputName" |
| | | ref="inputName" |
| | | v-model="queryParams.tjNum" |
| | | placeholder="请输入体检号" |
| | | clearable |
| | | @keyup.enter.native="handleQuery" |
| | | @blur="handleQuery" |
| | | @blur="hb" |
| | | style="width: 170px" |
| | | /> |
| | | </el-form-item> |
| | |
| | | <el-date-picker |
| | | v-model="createTimeList" |
| | | @change="dateChangebirthday1" |
| | | style="width: 240px" |
| | | value-format="yyyy-MM-dd" |
| | | :default-time="['00:00:00', '23:00:00']" |
| | | format="yyyy-MM-dd HH:mm:ss" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | type="daterange" |
| | | range-separator="-" |
| | | start-placeholder="开始日期" |
| | |
| | | > |
| | | </el-form-item> |
| | | </el-form> |
| | | <el-row :gutter="10" class="mb8" > |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="10"> |
| | | <el-radio-group |
| | | v-model="tjStatus" |
| | | @input="radioChange" |
| | | style="margin: 10px 15px" |
| | | > |
| | | <el-radio-button label="1">未采样</el-radio-button> |
| | | <el-radio-button label="0">已采样</el-radio-button> |
| | | </el-radio-group> |
| | | </el-col > |
| | | <el-col :span="12" v-if="tableList.length > 1 && tjStatus==0"> |
| | | <el-button type="primary" plain |
| | | v-hasPermi="['hosp:detail:add']">合并样本</el-button> |
| | | </el-col> |
| | | |
| | | </el-row> |
| | | |
| | | v-model="tjStatus" |
| | | @input="radioChange" |
| | | style="margin: 10px 15px" |
| | | > |
| | | <el-radio-button label="1">未采样</el-radio-button> |
| | | <el-radio-button label="0">已采样</el-radio-button> |
| | | </el-radio-group> |
| | | </el-col> |
| | | <el-col :span="12" v-if="tableList.length > 1 && tjStatus == 0"> |
| | | <el-button type="primary" plain v-hasPermi="['hosp:detail:add']" |
| | | >合并样本</el-button |
| | | > |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <div style="width: 100%; margin-left: 10px; display: flex"> |
| | | <div style="width: 40%; margin-right: 20px"> |
| | |
| | | prop="customer.cusSex" |
| | | width="60px" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <!-- {{scope.row.customer.cusSex}} --> |
| | | <!-- <template slot-scope="scope"> |
| | | {{ scope.row.customer.cusSex === 0 ? "男" : "女" }} |
| | | <!-- <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.cusSex " /> --> |
| | | </template> --> |
| | | <template slot-scope="scope"> |
| | | <span v-if="scope.row.cusSex == '0'">男</span> |
| | | <span v-if="scope.row.cusSex == '1'">女</span> |
| | | <span v-if="scope.row.cusSex == '2'">未知</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | </el-table> |
| | | </div> |
| | | <div style="width: 50%"> |
| | | |
| | | <el-table |
| | | v-loading="loading" |
| | | :data="tableList" |
| | |
| | | <span>{{ parseTime(scope.row.tjTime, '{y}-{m}-{d}') }}</span> |
| | | </template> |
| | | </el-table-column> --> |
| | | <el-table-column label="标本类型" align="center" prop="specimenType" width="120"> |
| | | <el-table-column |
| | | label="标本类型" |
| | | align="center" |
| | | prop="specimenType" |
| | | width="120" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <dict-tag |
| | | :options="dict.type.sys_dict_specimen" |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="项目名称" align="center" prop="proName" /> |
| | | <el-table-column label="性别" align="center" prop="proSex" width="90" /> |
| | | <el-table-column label="空腹" align="center" prop="proCheckMethod" width="90" /> |
| | | <el-table-column |
| | | label="性别" |
| | | align="center" |
| | | prop="proSex" |
| | | width="90" |
| | | /> |
| | | <el-table-column |
| | | label="空腹" |
| | | align="center" |
| | | prop="proCheckMethod" |
| | | width="90" |
| | | /> |
| | | <el-table-column |
| | | label="采样编号" |
| | | align="center" |
| | | prop="samplingNumber" |
| | | :show-overflow-tooltip="true" width="120" |
| | | :show-overflow-tooltip="true" |
| | | width="120" |
| | | /> |
| | | <el-table-column label="采样状态" align="center" prop="isSignFor" width="90"> |
| | | <el-table-column |
| | | label="采样状态" |
| | | align="center" |
| | | prop="isSignFor" |
| | | width="90" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <dict-tag |
| | | :options="dict.type.sampling_type" |
| | |
| | | updateSampling, |
| | | confirmSampling, |
| | | } from "@/api/sampling/sampling"; |
| | | import { getNewDateList } from "@/api/hosp/order"; |
| | | import moment from "moment"; |
| | | |
| | | export default { |
| | | dicts: [ |
| | |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getNowTime(); |
| | | this.getList(); |
| | | // this.getNowTime(); |
| | | |
| | | this.getdate(); |
| | | }, |
| | | mounted() { |
| | | this.$nextTick(() => { |
| | |
| | | }); |
| | | }, |
| | | methods: { |
| | | getdate() { |
| | | getNewDateList().then((res) => { |
| | | this.createTimeList = [ |
| | | moment(res.data).format("YYYY-MM-DD 00:00:00"), |
| | | moment(res.data).format("YYYY-MM-DD 23:59:00"), |
| | | ]; |
| | | this.getList(); |
| | | }); |
| | | }, |
| | | handleSizeChange(val) { |
| | | this.size = val; |
| | | this.page = 1; |
| | |
| | | getList() { |
| | | this.loading = true; |
| | | this.queryParams.isSignFor = this.tjStatus; |
| | | this.queryParams.beginTime = this.createTimeList[0]; |
| | | if(this.createTimeList){ |
| | | this.queryParams.beginTime = this.createTimeList[0]; |
| | | this.queryParams.endTime = this.createTimeList[1]; |
| | | }else if(this.createTimeList == null){ |
| | | this.queryParams.beginTime = null; |
| | | this.queryParams.endTime = null; |
| | | } |
| | | |
| | | getList(this.queryParams).then((response) => { |
| | | if (response.data) { |
| | | if (response.data.list == null) { |
| | | if (response.data.list == null) { |
| | | this.samplingList = []; |
| | | this.tableList = []; |
| | | this.loading = false; |
| | |
| | | }; |
| | | this.resetForm("form"); |
| | | }, |
| | | hb() { |
| | | // console.log(this.queryParams.tjNum); |
| | | if (this.queryParams.tjNum != null) { |
| | | this.handleQuery(); |
| | | } |
| | | }, |
| | | /** 搜索按钮操作 */ |
| | | handleQuery() { |
| | | this.queryParams.pageNum = 1; |
| | |
| | | }, |
| | | /** 重置按钮操作 */ |
| | | resetQuery() { |
| | | this.createTimeList=[] |
| | | this.resetForm("queryForm"); |
| | | this.handleQuery(); |
| | | }, |
| | |
| | | this.loading = true; |
| | | this.queryParams.isSignFor = value; |
| | | getList(this.queryParams).then((response) => { |
| | | |
| | | if (response.data) { |
| | | if (response.data.list == null) { |
| | | this.samplingList = []; |
| | |
| | | } |
| | | this.total = response.data.total; |
| | | this.loading = false; |
| | | }else{ |
| | | this.samplingList= []; |
| | | this.tableList = []; |
| | | this.loading = false; |
| | | } else { |
| | | this.samplingList = []; |
| | | this.tableList = []; |
| | | this.loading = false; |
| | | } |
| | | }); |
| | | }, |