Browse Source

图像识别recordId问题修改,及生物样本搜索界面样式修改

master
aBin 4 years ago
parent
commit
9a396646d8
  1. 12
      src/App.vue
  2. 2
      src/components/BiologicalSampleSearch/SampleTable.vue
  3. 4
      src/components/BiologicalSampleSearch/Search.vue
  4. 5
      src/components/CaseTable/CaseTable.vue
  5. 2
      src/store/modules/home/state.js
  6. 4
      src/views/BiologicalSampleSearch/BiologicalSampleSearch.vue
  7. 4
      src/views/PatientInfo/PatientInfo.vue

12
src/App.vue

@ -3,7 +3,7 @@
* @email: 18603454788@163.com * @email: 18603454788@163.com
* @Date: 2021-04-19 10:23:19 * @Date: 2021-04-19 10:23:19
* @LastEditors: wally * @LastEditors: wally
* @LastEditTime: 2021-05-19 18:09:18 * @LastEditTime: 2021-05-20 11:36:06
--> -->
<template> <template>
<a-config-provider :locale="zh_CN"> <a-config-provider :locale="zh_CN">
@ -39,11 +39,11 @@ export default {
}, },
}, },
created() { created() {
// async created() { // async created() {
// const userId = '1387952026067013632'; // const userId = '1387952026067013632';
// const params = { userId }; // const params = { userId };
// await this.getUserId(params); // await this.getUserId(params);
// await this.getToken(); // await this.getToken();
if (localStorage.getItem('patientId')) { if (localStorage.getItem('patientId')) {
this.setPatientId(localStorage.getItem('patientId')); this.setPatientId(localStorage.getItem('patientId'));
} }

2
src/components/BiologicalSampleSearch/SampleTable.vue

@ -7,7 +7,7 @@
:data-source="lists.list" :data-source="lists.list"
:loading="loading" :loading="loading"
:pagination="pagination" :pagination="pagination"
:row-key="record => record.hospitalization" :row-key="record => record.patientCode"
@change="handleTableChange" @change="handleTableChange"
bordered bordered
class="white pa-3" class="white pa-3"

4
src/components/BiologicalSampleSearch/Search.vue

@ -3,13 +3,13 @@
* @email: 18603454788@163.com * @email: 18603454788@163.com
* @Date: 2021-02-22 09:20:03 * @Date: 2021-02-22 09:20:03
* @LastEditors: wally * @LastEditors: wally
* @LastEditTime: 2021-05-06 12:56:38 * @LastEditTime: 2021-05-20 10:07:43
--> -->
<template> <template>
<!-- search --> <!-- search -->
<div> <div>
<div class="d-flex flex-row flex-nowrap"> <div class="d-flex flex-row flex-nowrap">
<a-form :form="form" @submit="handleSubmit" class="d-flex flex-nowrap align-center" layout="inline"> <a-form :form="form" @submit="handleSubmit" class="d-flex flex-wrap align-center" layout="inline">
<a-form-item> <a-form-item>
<a-select placeholder="请选择医院" style="min-width: 200px" v-decorator="['hospital']" allow-clear> <a-select placeholder="请选择医院" style="min-width: 200px" v-decorator="['hospital']" allow-clear>
<a-select-option :key="item.id" :value="item.id" v-for="item in hospitals">{{ item.name }}</a-select-option> <a-select-option :key="item.id" :value="item.id" v-for="item in hospitals">{{ item.name }}</a-select-option>

5
src/components/CaseTable/CaseTable.vue

@ -25,7 +25,7 @@
<span v-else-if="record.inputStatus === 6">已结算</span> <span v-else-if="record.inputStatus === 6">已结算</span>
</template> </template>
<template slot="id" slot-scope="text, record"> <template slot="id" slot-scope="text, record">
<a-icon @click="showEditModal(record.id, record.inputStatus)" class="pointer pointerEdit" theme="twoTone" type="edit" /> <!-- <a-icon @click="showEditModal(record.id, record.inputStatus)" class="pointer pointerEdit" theme="twoTone" type="edit" /> -->
<a-button type="primary" @click="details(record.id, record.hospitalization, record.code)">查看详情</a-button> <a-button type="primary" @click="details(record.id, record.hospitalization, record.code)">查看详情</a-button>
</template> </template>
</a-table> </a-table>
@ -136,6 +136,9 @@ export default {
this.setPatientId(Id); this.setPatientId(Id);
this.setHospitalization(hospitalization); this.setHospitalization(hospitalization);
this.setRecordCode(code); this.setRecordCode(code);
localStorage.setItem('patientId', Id);
localStorage.setItem('hospitalization', hospitalization);
localStorage.setItem('recordCode', code);
const path = this.$route.path; const path = this.$route.path;
this.$router.push({ this.$router.push({
path: '/patientInfo', path: '/patientInfo',

2
src/store/modules/home/state.js

@ -3,7 +3,7 @@
* @email: 18603454788@163.com * @email: 18603454788@163.com
* @Date: 2021-04-19 10:23:19 * @Date: 2021-04-19 10:23:19
* @LastEditors: wally * @LastEditors: wally
* @LastEditTime: 2021-05-12 11:47:28 * @LastEditTime: 2021-05-20 09:30:53
*/ */
const state = { const state = {
anyringToken: '', anyringToken: '',

4
src/views/BiologicalSampleSearch/BiologicalSampleSearch.vue

@ -3,7 +3,7 @@
* @email: 18603454788@163.com * @email: 18603454788@163.com
* @Date: 2021-02-19 16:04:48 * @Date: 2021-02-19 16:04:48
* @LastEditors: wally * @LastEditors: wally
* @LastEditTime: 2021-05-06 12:54:17 * @LastEditTime: 2021-05-20 10:33:12
--> -->
<template> <template>
<div class="d-flex flex-column"> <div class="d-flex flex-column">
@ -47,7 +47,7 @@ export default {
this.collectTime = value.acquisitionTime; this.collectTime = value.acquisitionTime;
this.hospitalization = value.inpatientNumber; this.hospitalization = value.inpatientNumber;
this.sampleTypes = sampleType; this.sampleTypes = sampleType;
this.codes = code; this.codes = value.code;
} }
this.handleSelPatientMes(); this.handleSelPatientMes();
}, },

4
src/views/PatientInfo/PatientInfo.vue

@ -647,7 +647,7 @@
:multiple="true" :multiple="true"
:action="action" :action="action"
:headers="headers" :headers="headers"
@change="handleChange($event, w.code, w.recordId, index, indexB)" @change="handleChange($event, w.code, index, indexB)"
> >
<!-- <a-upload :multiple="true" :action="action" :headers="headers" @change="handleChange"> --> <!-- <a-upload :multiple="true" :action="action" :headers="headers" @change="handleChange"> -->
<a-button> <a-icon type="upload" />图像识别 </a-button> <a-button> <a-icon type="upload" />图像识别 </a-button>
@ -1939,6 +1939,7 @@ export default {
this.spinning = true; this.spinning = true;
if (info.file.status === 'done') { if (info.file.status === 'done') {
const { list } = this; const { list } = this;
console.log(list, indexA);
const objList = list[indexA].subReportCodes[indexB]; const objList = list[indexA].subReportCodes[indexB];
const params = { const params = {
param: { param: {
@ -1985,7 +1986,6 @@ export default {
this.list = [...list]; this.list = [...list];
} else { } else {
console.log(msg); console.log(msg);
this.spinning = false; this.spinning = false;
} }
} else if (info.file.status === 'removed') { } else if (info.file.status === 'removed') {

Loading…
Cancel
Save