Browse Source

0304

master
nicky 5 months ago
parent
commit
c0b7cee222
  1. 2
      src/App.vue
  2. 2
      src/components/keyboard.vue
  3. 3
      src/layouts/BasicLayout.vue
  4. 1
      src/main.js
  5. 2
      src/utils/index.js
  6. 20
      src/views/Patient/components/patient-create.vue
  7. 1
      src/views/Patient/components/patient-detail.vue
  8. 4
      src/views/Patient/components/patient-list.vue
  9. 4
      src/views/Patient/index.vue
  10. 1
      src/views/document/index.vue
  11. 24
      src/views/thrombolysis/components/throm-before4.vue
  12. 2
      src/views/thrombolysis/components/throm-result-baseInfo.vue

2
src/App.vue

@ -176,7 +176,7 @@
tipConfirm() {
this.tip.visible = false;
const name = this.pushRouter[this.tip.k];
console.log('name: ', name);
// console.log('name: ', name);
this.$router.push({
name,
});

2
src/components/keyboard.vue

@ -229,7 +229,7 @@
//
handleOld() {
//
if (this.oldValue != '') {
if (this.oldValue && this.oldValue != '') {
for (const item of this.oldValue) {
const span = document.createElement('span') //
span.className = 'val'

3
src/layouts/BasicLayout.vue

@ -103,7 +103,7 @@
</div>
<div class="person-content-row">
<span class="label">当前版本: </span>
<span class="text">正式版v{{loginInfo?.version}}</span>
<span class="text">正式版 {{loginInfo?.version}}</span>
</div>
</div>
<div class="person-footer">
@ -178,7 +178,6 @@
},
beforeRouteEnter(to, from, next) {
next((vm) => {
console.log('beforeRouteEnter', to)
if (to.fullPath == '/document') {
vm.current = 1
vm.current_ = 1

1
src/main.js

@ -41,7 +41,6 @@ Vue.prototype.utils = util;
router.beforeEach(async (to, from, next) => {
let token = localStorage.getItem('anyringToken');
console.log(to)
if (to.path != '/login' && !token) {
next('/login')
return

2
src/utils/index.js

@ -258,7 +258,7 @@ function toDownLoad(path) {
function calculateAge(idCard) {
let patientAge = 0
if (idCard.length === 18) {
if (idCard && idCard.length === 18) {
// 提取出生日期(前 6 位)
let birthDate = idCard.substring(6, 14);

20
src/views/Patient/components/patient-create.vue

@ -141,7 +141,7 @@
open(data) {
this.createVisible = true;
this.confirmLoading = false;
if (data.firstAidId) {
if (data?.firstAidId) {
this.title = "编辑患者";
queryById({
firstAidId: data.firstAidId,
@ -312,7 +312,6 @@
// }
console.log(this.patientId)
if (this.form.id) {
let res = await createPatient({
param: {
...this.form,
@ -326,15 +325,14 @@
msg
} = res;
if (code === 200) {
this.confirmLoading = true;
this.createVisible = false;
this.$message.success('修改成功');
// this.confirmLoading = true;
// this.createVisible = false;
this.close()
this.$emit('on-success', data);
} else {
this.confirmLoading = false;
}
this.$message.success(msg);
} else {
let res = await createPatient({
param: {
@ -348,13 +346,15 @@
msg
} = res;
if (code === 200) {
this.confirmLoading = true;
this.createVisible = false;
this.$message.success('创建成功');
// this.confirmLoading = true;
// this.createVisible = false;
this.close()
// this.$message.success('');
this.$emit('on-success', data);
} else {
this.confirmLoading = false;
}
this.$message.success(msg);
}

1
src/views/Patient/components/patient-detail.vue

@ -277,6 +277,7 @@
let res = await eduitPatient({
param: {
...this.patientDataCur,
...this.form
// patientIdCardNo: this.patientIdCardNo,
},
});

4
src/views/Patient/components/patient-list.vue

@ -13,8 +13,8 @@
<div class="patient-info">
<div class="patient-name">{{item.name}} <span
class="sex">{{item.patientGender ? '女' : '男'}}</span><span
class="age">{{item.patientAge}}</span></div>
<div class="patient-cardNo">{{item.identityNo ? utils.maskIDCard(item.identityNo) : ''}}
class="age">{{utils.calculateAge(item.identityNo)}}</span></div>
<div class="patient-cardNo">{{item.identityNo ? utils.maskIDCard(item.identityNo) : '-'}}
</div>
</div>
</div>

4
src/views/Patient/index.vue

@ -28,9 +28,9 @@
<PatientCreate ref="patientCreate" @on-success="onSearch" :firstAidData="firstAidData" :carList="carList"
:carNo="carNo" />
<!-- 平车状态按钮 -->
<Dragger ref="pc" class="pc-dragger">
<!-- <Dragger ref="pc" class="pc-dragger">
<img src="@/assets/images/pc.png" alt="" @click="pcVisible = true" />
</Dragger>
</Dragger> -->
<!-- 平车弹窗 -->
<a-modal :width="700" :destroyOnClose="true" v-model="pcVisible" @ok="pcVisible = false" :footer="null">
<div class="pc-container">

1
src/views/document/index.vue

@ -414,7 +414,6 @@
if (code === 200) {
this.carList = data.list;
this.carNo = this.carList[0]?.deviceNo || ''; //
console.log('this.carNo ', this.carNo);
}
this.component = "patient-list"
},

24
src/views/thrombolysis/components/throm-before4.vue

@ -263,15 +263,15 @@
path = item.path;
}
});
console.log('path: ', path);
// console.log('path: ', path);
return this.apiUrl + path;
},
},
created() {
console.log('book', this.book)
// console.log('book', this.book)
this.queryVideo()
this.content = this.book.find((item) => item.type === 0)?.content || '';
console.log(this.content);
// console.log(this.content);
},
mounted() {
this.queryConsentResult();
@ -360,8 +360,8 @@
let d = date.getDate();
d = d < 10 ? '0' + d : d;
let dateTime = y + '-' + m + '-' + d;
this.picker = false;
this.informed[this.type] = dateTime;
this.picker = false;
},
async thTime() {
@ -412,6 +412,14 @@
uploadfile(form).then((res) => {
if (res.code === 200) {
this.informed.doctorSign = res.url;
const now = new Date()
let y = now.getFullYear();
let m = now.getMonth() + 1;
m = m < 10 ? '0' + m : m;
let d = now.getDate();
d = d < 10 ? '0' + d : d;
let dateTime = y + '-' + m + '-' + d;
this.informed.doctorTime = dateTime;
this.$message.success('谈话医师签名保存成功');
this.doctorSign = false;
} else {
@ -429,6 +437,14 @@
uploadfile(form).then((res) => {
if (res.code === 200) {
this.informed.patientSign = res.url;
const now = new Date()
let y = now.getFullYear();
let m = now.getMonth() + 1;
m = m < 10 ? '0' + m : m;
let d = now.getDate();
d = d < 10 ? '0' + d : d;
let dateTime = y + '-' + m + '-' + d;
this.informed.patientTime = dateTime;
this.$message.success('患者本人签名保存成功');
this.patientSign = false;
} else {

2
src/views/thrombolysis/components/throm-result-baseInfo.vue

@ -345,6 +345,8 @@
}
if(!this.patientId) {
await this.home.updateAidCode({
...values,
firstAidZlType: this.firstAidZlType,
codeAndAnswerList
}, false)
this.$emit('next')

Loading…
Cancel
Save