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

2
src/components/BiologicalSampleSearch/SampleTable.vue

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

4
src/components/BiologicalSampleSearch/Search.vue

@ -3,13 +3,13 @@
* @email: 18603454788@163.com
* @Date: 2021-02-22 09:20:03
* @LastEditors: wally
* @LastEditTime: 2021-05-06 12:56:38
* @LastEditTime: 2021-05-20 10:07:43
-->
<template>
<!-- search -->
<div>
<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-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>

5
src/components/CaseTable/CaseTable.vue

@ -25,7 +25,7 @@
<span v-else-if="record.inputStatus === 6">已结算</span>
</template>
<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>
</template>
</a-table>
@ -136,6 +136,9 @@ export default {
this.setPatientId(Id);
this.setHospitalization(hospitalization);
this.setRecordCode(code);
localStorage.setItem('patientId', Id);
localStorage.setItem('hospitalization', hospitalization);
localStorage.setItem('recordCode', code);
const path = this.$route.path;
this.$router.push({
path: '/patientInfo',

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

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

4
src/views/BiologicalSampleSearch/BiologicalSampleSearch.vue

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

4
src/views/PatientInfo/PatientInfo.vue

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

Loading…
Cancel
Save