Browse Source

v4.0.1bug修复

210plan
aBin 3 years ago
parent
commit
04c9511b3e
  1. 1
      src/apis/carbasics.js
  2. 3
      src/components/Demonstration/Demonstration.vue
  3. 19
      src/components/PatientList/PatientList.vue
  4. 28
      src/components/Test/Test.vue
  5. 2
      src/components/Test/component/Talk.vue
  6. 103
      src/pages/establish/establish.vue
  7. 2
      src/pages/info/info.vue
  8. 1
      src/pages/inner/inner.vue
  9. 10
      src/pages/inner/mixin.js
  10. 2
      src/pages/patient/patient.vue

1
src/apis/carbasics.js

@ -113,6 +113,7 @@ const install = (Vue, vm) => {
vm.$u.api.generalBasic = params => vm.$u.post(`${carbasics}/ocr/general/basic`, params); vm.$u.api.generalBasic = params => vm.$u.post(`${carbasics}/ocr/general/basic`, params);
// 上传文件 // 上传文件
vm.$u.api.uploadFile = `${filedeal}/file/upload/multiple`; vm.$u.api.uploadFile = `${filedeal}/file/upload/multiple`;
// vm.$u.api.uploadFile = `http://101.201.226.163/filedeal/file/upload/multiple`;
// 查询我的申请列表; // 查询我的申请列表;
vm.$u.api.queryMyApply = params => vm.$u.post(`${account}/queryMyApply`, params); vm.$u.api.queryMyApply = params => vm.$u.post(`${account}/queryMyApply`, params);
// 查询部门与职位 // 查询部门与职位

3
src/components/Demonstration/Demonstration.vue

@ -6,7 +6,7 @@
<view class="flex items-center"> <view class="flex items-center">
<!-- <u-icon name="clock" color="#5990FF" style="margin-right: 4px"></u-icon> --> <!-- <u-icon name="clock" color="#5990FF" style="margin-right: 4px"></u-icon> -->
<img src="@/static/指针.png" style="width: 32rpx; height: 32rpx; margin-right: 4px" alt="" /> <img src="@/static/指针.png" style="width: 32rpx; height: 32rpx; margin-right: 4px" alt="" />
填写中 {{ patientInfo.firstAidType }}
</view> </view>
<view class="flex"> <view class="flex">
<div style="margin-right: 4px"> <div style="margin-right: 4px">
@ -52,6 +52,7 @@ export default {
gender: data.gender, gender: data.gender,
age: data.age, age: data.age,
isInfo: true, isInfo: true,
firstAidType: data.firstAidType === 0 ? '急救患者' : '出院患者',
}; };
this.setPatientInfo(info); this.setPatientInfo(info);
} catch (error) { } catch (error) {

19
src/components/PatientList/PatientList.vue

@ -74,7 +74,7 @@
></div> ></div>
<div :style="{ 'margin-left': outIndex === cardIndex && card.recordUserId - 0 ? '-68px' : '' }" class="w-full anima"> <div :style="{ 'margin-left': outIndex === cardIndex && card.recordUserId - 0 ? '-68px' : '' }" class="w-full anima">
<div class="crad-content"> <div class="crad-content">
<!-- <div class="status-wait" v-if="!(card.recordUserId - 0)"></div> --> <div class="status-wait" v-if="!(card.recordUserId - 0)"></div>
<div class="flex items-center justify-between"> <div class="flex items-center justify-between">
<view class="flex flex-col"> <view class="flex flex-col">
<view class="flex"> <view class="flex">
@ -273,6 +273,7 @@ export default {
this.setFirstAidId(firstAidId); this.setFirstAidId(firstAidId);
this.setDetailValueType(demonstrate); this.setDetailValueType(demonstrate);
// this.$router.push(`/patient-line`); // this.$router.push(`/patient-line`);
this.outIndex = -1;
uni.navigateTo({ url: `/pages/patientLine/patientLine?caseType=${caseType}` }); uni.navigateTo({ url: `/pages/patientLine/patientLine?caseType=${caseType}` });
} }
} catch (error) { } catch (error) {
@ -398,6 +399,7 @@ export default {
// , // ,
changeSelect(e) { changeSelect(e) {
this.tval = e; this.tval = e;
this.outIndex = -1;
this.getData(true); this.getData(true);
}, },
searchBlur() { searchBlur() {
@ -441,7 +443,7 @@ export default {
position: absolute; position: absolute;
left: 50%; left: 50%;
margin-left: -32rpx; margin-left: -32rpx;
bottom: -18rpx; bottom: -20rpx;
} }
.tab-text { .tab-text {
font-size: 32rpx; font-size: 32rpx;
@ -505,21 +507,22 @@ export default {
height: 118px; height: 118px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 4px 20px 0px rgba(39, 59, 97, 0.08); box-shadow: 0px 4px 20px 0px rgba(39, 59, 97, 0.08);
border-radius: 24r; border-radius: 20rpx;
overflow: hidden;
opacity: 1; opacity: 1;
} }
.add-patient { .add-patient {
z-index: 10; z-index: 10;
border-radius: 50%; border-radius: 50%;
height: 40px; height: 108rpx;
width: 40px; width: 108rpx;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background-color: #0284c7; background: linear-gradient(136deg, #7bc0ff 0%, #4d88ff 100%);
position: fixed; position: fixed;
bottom: 100px; bottom: 220rpx;
right: 16px; right: 32rpx;
} }
.patient-list { .patient-list {
background-color: #fff; background-color: #fff;

28
src/components/Test/Test.vue

@ -86,11 +86,11 @@
</div> </div>
</u-radio-group> </u-radio-group>
<!-- 单选(横向三列) --> <!-- 单选(横向三列) -->
<u-radio-group :value="listItem.value" v-else-if="listItem.type === 22" class="flex flex-row flex-wrap w-full"> <u-radio-group :value="listItem.value" v-else-if="listItem.type === 22" class="flex w-full">
<div <div
v-for="(radioValue, radioIndex) in listItem.itemList" v-for="(radioValue, radioIndex) in listItem.itemList"
:key="radioValue" :key="radioValue"
style="width: 200rpx" style="width: 105%"
class="flex" class="flex"
:class="{ :class="{
'text-left': radioIndex % 3 === 0, 'text-left': radioIndex % 3 === 0,
@ -100,12 +100,12 @@
'flex-nowrap': radioIndex <= 3, 'flex-nowrap': radioIndex <= 3,
}" }"
> >
<view class="flex-1" :style="{ color: listItem.value === radioValue ? '#1890ff' : '' }">{{ radioValue }}</view>
<u-radio <u-radio
@change="changeRadio($event, listItem.code, index, listIndex)" @change="changeRadio($event, listItem.code, index, listIndex)"
style="margin-left: 0; height: 40px; line-height: 40px" style="margin-left: 0; height: 40px; line-height: 40px"
:name="radioValue" :name="radioValue"
> >
<span :style="{ color: listItem.value === radioValue ? '#1890ff' : '' }">{{ radioValue }}</span>
</u-radio> </u-radio>
</div> </div>
</u-radio-group> </u-radio-group>
@ -139,8 +139,8 @@
</div> </div>
</div> </div>
</template> </template>
<template v-else> <div v-else style="flex flex-nowrap items-center">
<div> <div style="height: 44px;line-height: 44px">
<u-radio <u-radio
style="margin-left: 0" style="margin-left: 0"
:style="{ color: listItem.value === 'score' ? '#1890ff' : '' }" :style="{ color: listItem.value === 'score' ? '#1890ff' : '' }"
@ -195,12 +195,12 @@
> >
<span :style="{ color: listItem.value === 'noScore' ? '#1890ff' : '' }">未评</span> <span :style="{ color: listItem.value === 'noScore' ? '#1890ff' : '' }">未评</span>
</u-radio> </u-radio>
</template> </div>
</u-radio-group> </u-radio-group>
<!-- 单选(竖向排列带分数输入框) --> <!-- 单选(竖向排列带分数输入框) -->
<u-radio-group :value="listItem.value" v-else-if="listItem.type === 24" class="flex flex-col w-full"> <u-radio-group :value="listItem.value" v-else-if="listItem.type === 24" class="flex flex-col w-full">
<div class="flex items-center justify-between" style="width: 105%" v-for="(radioValue, radioIndex) in listItem.itemList" :key="radioIndex"> <div class="flex items-center justify-between" style="width: 105%" v-for="(radioValue, radioIndex) in listItem.itemList" :key="radioIndex">
<view class="flex items-center flex-1" style="height: 78rpx"> <view class="flex items-center flex-1" style="height: 78rpx;line-height: 78rpx">
<view>{{ radioValue.name }}</view> <view>{{ radioValue.name }}</view>
<div v-if="radioValue.showIpt" class="flex items-center ml-1 mr-1"> <div v-if="radioValue.showIpt" class="flex items-center ml-1 mr-1">
<!-- :disabled="listItem.value !== radioValue.name" --> <!-- :disabled="listItem.value !== radioValue.name" -->
@ -208,8 +208,9 @@
:clearable="false" :clearable="false"
:value="radioValue.value" :value="radioValue.value"
:type="radioValue.unit ? 'number' : 'text'" :type="radioValue.unit ? 'number' : 'text'"
placeholder="请输入症状描述" :placeholder="radioValue.min && radioValue.max ? `请输入${radioValue.min}-${radioValue.max}` : '请输入'"
style="width: 300rpx !important" style="width: 300rpx !important"
:custom-style="{fontSize: '28rpx'}"
@click="iptChangeRadio(radioValue.name, listItem.code, index, listIndex)" @click="iptChangeRadio(radioValue.name, listItem.code, index, listIndex)"
@blur=" @blur="
changeRadioScore( changeRadioScore(
@ -229,6 +230,7 @@
</view> </view>
<u-radio <u-radio
class="flex items-center" class="flex items-center"
label-size="28"
:style="{ color: listItem.value === radioValue ? '#1890ff' : '' }" :style="{ color: listItem.value === radioValue ? '#1890ff' : '' }"
:name="radioValue.name" :name="radioValue.name"
@change="changeRadio($event, listItem.code, index, listIndex)" @change="changeRadio($event, listItem.code, index, listIndex)"
@ -350,14 +352,14 @@
:class="{ 'w-full': !listItem.title }" :class="{ 'w-full': !listItem.title }"
v-else-if="listItem.type === 71" v-else-if="listItem.type === 71"
:value="listItem.value" :value="listItem.value"
class="flex-1" class="flex-1 flex items-center"
> >
<u-radio <u-radio
:name="radioValue.name" :name="radioValue.name"
v-for="(radioValue, radioIndex) in listItem.listItem" v-for="(radioValue, radioIndex) in listItem.listItem"
:key="radioValue.name" :key="radioValue.name"
class="ipt-radio" class="ipt-radio"
style="height: 40px" style="height: 40px;line-height: 40px"
@change="changeRadio($event, listItem.code, index, listIndex)" @change="changeRadio($event, listItem.code, index, listIndex)"
> >
<u-input <u-input
@ -376,7 +378,7 @@
@click="iptChangeRadio(radioValue.name, listItem.code, index, listIndex)" @click="iptChangeRadio(radioValue.name, listItem.code, index, listIndex)"
@blur="changeScroeNum($event, listItem.min, listItem.max, radioValue.code, index, listIndex, radioIndex)" @blur="changeScroeNum($event, listItem.min, listItem.max, radioValue.code, index, listIndex, radioIndex)"
/> />
<view v-else class="ipt-radio" :style="{ color: listItem.value === radioValue.name ? '#1890ff' : '' }">{{ radioValue.name }}</view> <view v-else style="height: 40px;line-height: 40px" :style="{ color: listItem.value === radioValue.name ? '#1890ff' : '' }">{{ radioValue.name }}</view>
</u-radio> </u-radio>
</u-radio-group> </u-radio-group>
</div> </div>
@ -955,8 +957,8 @@ export default {
color: #3e3d4d; color: #3e3d4d;
} }
.ipt-radio view { .ipt-radio view {
height: 40px; height: 33px;
line-height: 40px; line-height: 33px;
} }
.list-box { .list-box {
border-radius: 4px; border-radius: 4px;

2
src/components/Test/component/Talk.vue

@ -1,5 +1,5 @@
<template> <template>
<div class="talk" @click="change"> <div class="talk" @click="change">
<div class="bg-white list-box"> <div class="bg-white list-box">
<div class="list-item"> <div class="list-item">
<div class="putong-title">谈话开始时间</div> <div class="putong-title">谈话开始时间</div>

103
src/pages/establish/establish.vue

@ -1,18 +1,21 @@
<template> <template>
<div class="establish bg-gray-100"> <div class="establish">
<div bordered class="list-box bg-white" v-for="(item, index) in list" :key="index"> <div bordered class="list-box bg-white" v-for="(item, index) in list" :key="index">
<div <div class="list-item" :style="{ 'border-bottom': '1px solid #eee;' }" v-for="(listItem, listIndex) in item" :key="listIndex">
class="list-item"
:style="{ 'border-bottom': listIndex === item.length - 1 ? '' : '1px solid #ccc;' }"
v-for="(listItem, listIndex) in item"
:key="listIndex"
>
<div class="w-full flex flex-nowrap justify-between items-center"> <div class="w-full flex flex-nowrap justify-between items-center">
<div class="flex items-center" v-if="listItem.title"> <div class="flex items-center" v-if="listItem.title">
{{ listItem.title }} <!-- <div class="putong-title">{{ listItem.title }}</div>
<span v-if="listItem.isTrue" style="color: red; font-size: 20px">*</span> <span v-if="listItem.isTrue" style="color: red; font-size: 20px">*</span> -->
<div class="flex items-center" v-if="listItem.type !== -1">
<view class="putong-title">{{ listItem.title }}</view>
<span v-if="listItem.isTrue" style="color: red; font-size: 20px">*</span>
</div>
<div class="flex items-center" v-else>
<view class="shu"></view>
<view class="shu-title">{{ listItem.title }}</view>
</div>
</div> </div>
<div> <div class="flex-1 flex justify-end">
<u-switch v-if="listItem.type === 1" v-model="codeValue['CJBL-YLMS']" /> <u-switch v-if="listItem.type === 1" v-model="codeValue['CJBL-YLMS']" />
<u-upload <u-upload
v-else-if="listItem.type === 2" v-else-if="listItem.type === 2"
@ -40,15 +43,27 @@
身份证号输入有误! 身份证号输入有误!
</div> </div>
</div> </div>
<u-radio-group :value="codeValue[listItem.code]" v-else-if="listItem.type === 4" name="radioGroup"> <u-radio-group
<div @click="clickRadio(listItem.code, radioItem.name)" v-for="radioItem in listItem.listItem" :key="radioItem.id"> :value="codeValue[listItem.code]"
v-else-if="listItem.type === 4"
name="radioGroup"
class="w-full"
style="margin-left: 24rpx"
>
<div
@click="clickRadio(listItem.code, radioItem.name)"
v-for="radioItem in listItem.listItem"
:key="radioItem.id"
class="flex justify-between"
style="width: 100%; height: 43px; height: 43px"
>
<div class="shu-title">{{ radioItem.name }}</div>
<u-radio <u-radio
@change="changeRadio($event, listItem.code)" @change="changeRadio($event, listItem.code)"
:disabled="isDisabled(listItem.code, radioItem.name)" :disabled="isDisabled(listItem.code, radioItem.name)"
:key="radioItem.id" :key="radioItem.id"
:name="radioItem.id" :name="radioItem.id"
> >
{{ radioItem.name }}
</u-radio> </u-radio>
</div> </div>
<!-- <u-radio :value="1"> </u-radio> --> <!-- <u-radio :value="1"> </u-radio> -->
@ -61,11 +76,13 @@
> >
<u-radio <u-radio
@change="changeRadio($event, listItem.code)" @change="changeRadio($event, listItem.code)"
v-for="radioItem in listItem.listItem" v-for="(radioItem, radioIndex) in listItem.listItem"
:key="radioItem.id" :key="radioItem.id"
:name="radioItem.id" :name="radioItem.id"
> >
{{ radioItem.name }} <view class="ml-2" :class="{ 'mr-2': radioIndex < listItem.listItem.length - 1 }">
{{ radioItem.name }}
</view>
</u-radio> </u-radio>
</u-radio-group> </u-radio-group>
</div> </div>
@ -73,7 +90,17 @@
</div> </div>
</div> </div>
<div class="flex btn-box" v-if="showBtn"> <div class="flex btn-box" v-if="showBtn">
<u-button type="primary" :disabled="isSubmit" id="complete-btn" class="flex-1 btn mr-2" @click="submit"> 完成创建病例 </u-button> <u-button
type="primary"
shape="circle"
:disabled="isSubmit"
id="complete-btn"
class="flex-1 btn mr-2"
@click="submit"
:custom-style="customStyle"
>
完成创建病例
</u-button>
<!-- <a-button <!-- <a-button
:disabled="isStartDisabled()" :disabled="isStartDisabled()"
:class="isStartDisabled() ? '' : 'green-btn'" :class="isStartDisabled() ? '' : 'green-btn'"
@ -92,6 +119,9 @@ import { mapState, mapGetters, mapMutations } from 'vuex';
export default { export default {
components: {}, components: {},
data: () => ({ data: () => ({
customStyle: {
background: 'linear-gradient(136deg, #7BC0FF 0%, #4D88FF 100%)',
},
action: '', action: '',
codeValue: { codeValue: {
'CJBL-YLMS': false, 'CJBL-YLMS': false,
@ -103,6 +133,13 @@ export default {
}, },
list: [ list: [
[{ title: '演练模式', type: 1, isTrue: false }], [{ title: '演练模式', type: 1, isTrue: false }],
[
{
title: '信息填写',
type: -1,
isTrue: false,
},
],
[{ title: '扫描身份证', type: 2, isTrue: false }], [{ title: '扫描身份证', type: 2, isTrue: false }],
[ [
{ title: '姓名', type: 3, code: 'CJBL-NAME', isTrue: true }, { title: '姓名', type: 3, code: 'CJBL-NAME', isTrue: true },
@ -121,7 +158,7 @@ export default {
{ {
title: '疑似诊断', title: '疑似诊断',
code: 'CJBL-YSBL', code: 'CJBL-YSBL',
type: 4, type: -1,
isTrue: false, isTrue: false,
}, },
{ {
@ -417,6 +454,31 @@ export default {
</script> </script>
<style> <style>
/deep/.u-radio__label {
margin-left: 0 !important;
margin-right: 0 !important;
}
.putong-title {
margin-left: 24rpx;
font-size: 32rpx;
font-family: OPPOSans-Bold, OPPOSans;
font-weight: bold;
color: #3e3d4d;
}
.shu {
width: 16rpx;
height: 40rpx;
background: linear-gradient(136deg, #7bc0ff 0%, #4d88ff 100%);
border-radius: 40rpx;
opacity: 1;
margin-right: 8rpx;
}
.shu-title {
font-size: 36rpx;
font-family: Open Sans-Bold, Open Sans;
font-weight: bold;
color: #3e3d4d;
}
.img-icon { .img-icon {
height: 24px; height: 24px;
width: 24px; width: 24px;
@ -429,8 +491,7 @@ export default {
border-radius: 4px; border-radius: 4px;
overflow: hidden; overflow: hidden;
box-sizing: border-box; box-sizing: border-box;
margin: 0 0 0.75rem 0; padding: 0 32rpx;
padding: 0;
color: rgba(0, 0, 0, 0.65); color: rgba(0, 0, 0, 0.65);
font-size: 14px; font-size: 14px;
font-variant: tabular-nums; font-variant: tabular-nums;
@ -440,10 +501,10 @@ export default {
position: relative; position: relative;
} }
.list-item { .list-item {
min-height: 54px; min-height: 60px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 12px 16px; padding: 24rpx 0;
} }
</style> </style>

2
src/pages/info/info.vue

@ -372,7 +372,7 @@ export default {
position: relative; position: relative;
} }
.list-item { .list-item {
min-height: 54px; min-height: 60px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;

1
src/pages/inner/inner.vue

@ -388,6 +388,7 @@ export default {
padding-left: 30rpx; padding-left: 30rpx;
} }
.ocr-open-box { .ocr-open-box {
z-index: 11;
position: fixed; position: fixed;
right: 0; right: 0;
top: 40%; top: 40%;

10
src/pages/inner/mixin.js

@ -197,7 +197,7 @@ const mixin = {
}, },
{ {
title: '', title: '',
type: 22, type: 21,
itemList: ['1级', '2级', '3级', '4级', '未评级'], itemList: ['1级', '2级', '3级', '4级', '未评级'],
code: 'RYPG-test', code: 'RYPG-test',
Fcode: 'RYPG-swallowingFunction', Fcode: 'RYPG-swallowingFunction',
@ -474,7 +474,7 @@ const mixin = {
[ [
{ {
title: '未给予血管内治疗的原因', title: '未给予血管内治疗的原因',
type: 22, type: 21,
Fcode: 'ZLFA-XGZL', Fcode: 'ZLFA-XGZL',
isShow: '否', isShow: '否',
}, },
@ -570,7 +570,7 @@ const mixin = {
code: 'JRZL-SQ-TICI', code: 'JRZL-SQ-TICI',
Fcode: 'ZLFA-XGZL', Fcode: 'ZLFA-XGZL',
isShow: '是', isShow: '是',
type: 22, type: 21,
itemList: ['0级', '1级', '2a级', '2b级', '3级', '未评'], itemList: ['0级', '1级', '2a级', '2b级', '3级', '未评'],
value: this.codeValue.SSXG['JRZL-SQ-TICI'], value: this.codeValue.SSXG['JRZL-SQ-TICI'],
}, },
@ -637,7 +637,7 @@ const mixin = {
}, },
{ {
title: 'TICI分级', title: 'TICI分级',
type: 22, type: 21,
Fcode: 'ZLFA-XGZL', Fcode: 'ZLFA-XGZL',
isShow: '是', isShow: '是',
}, },
@ -646,7 +646,7 @@ const mixin = {
code: 'JRZL-SH-TICI', code: 'JRZL-SH-TICI',
Fcode: 'ZLFA-XGZL', Fcode: 'ZLFA-XGZL',
isShow: '是', isShow: '是',
type: 22, type: 21,
itemList: ['0级', '1级', '2a级', '2b级', '3级', '未评'], itemList: ['0级', '1级', '2a级', '2b级', '3级', '未评'],
value: this.codeValue.SSXG['JRZL-SH-TICI'], value: this.codeValue.SSXG['JRZL-SH-TICI'],
}, },

2
src/pages/patient/patient.vue

@ -1,5 +1,5 @@
<template> <template>
<div class="establish bg-gray-100" style="padding-top: 42px"> <div class="establish" style="padding-top: 42px">
<Demonstration /> <Demonstration />
<div bordered class="list-box bg-white" v-for="(item, index) in list" :key="index"> <div bordered class="list-box bg-white" v-for="(item, index) in list" :key="index">
<div <div

Loading…
Cancel
Save