|
@@ -156,33 +156,17 @@
|
|
|
|
|
|
</view>
|
|
</view>
|
|
<view v-else-if="active==3">
|
|
<view v-else-if="active==3">
|
|
- <navigator url="/pages/lr/bhAdd">
|
|
|
|
|
|
+ <navigator :url="'/pages/lr/bhAdd?id=' + baseFormData.id + '&xm=' + baseFormData.xm">
|
|
<button type="primary" size="mini" style="width: 100rpx;padding: 0 5px;line-height: 2;">新增</button>
|
|
<button type="primary" size="mini" style="width: 100rpx;padding: 0 5px;line-height: 2;">新增</button>
|
|
</navigator>
|
|
</navigator>
|
|
- <uni-table>
|
|
|
|
- <uni-tr>
|
|
|
|
- <uni-th width="80" align="center">病患类别</uni-th>
|
|
|
|
- <uni-th width="80" align="center">患病时间</uni-th>
|
|
|
|
- <uni-th width="48" align="center">设置</uni-th>
|
|
|
|
- </uni-tr>
|
|
|
|
- <uni-tr v-for="(item, index) in bhList" :key="index">
|
|
|
|
- <uni-td align="center">{{ item.bhlb }}</uni-td>
|
|
|
|
- <uni-td align="center">{{ item.bhsj }}</uni-td>
|
|
|
|
- <uni-td>
|
|
|
|
- <view class="uni-group">
|
|
|
|
- <button class="uni-button" size="mini" type="primary">修改</button>
|
|
|
|
- <button class="uni-button" size="mini" type="warn">删除</button>
|
|
|
|
- </view>
|
|
|
|
- </uni-td>
|
|
|
|
- </uni-tr>
|
|
|
|
- </uni-table>
|
|
|
|
|
|
+ <uni-list>
|
|
|
|
+ <uni-list-item ellipsis="1" :title="item.bhms" :note="item.bhsj"
|
|
|
|
+ :rightText="transDictLabel(dicts.KH004,item.bhlb)" v-for="(item,idx) in bhlsList" :key="idx" showArrow
|
|
|
|
+ clickable @click="editBhls(item)" />
|
|
|
|
+ </uni-list>
|
|
</view>
|
|
</view>
|
|
</uni-forms>
|
|
</uni-forms>
|
|
-
|
|
|
|
</uni-section>
|
|
</uni-section>
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<!-- <button type="primary" size="mini" style="margin: 30px 10px; width: 100px;" @click="change">改变状态</button> -->
|
|
<!-- <button type="primary" size="mini" style="margin: 30px 10px; width: 100px;" @click="change">改变状态</button> -->
|
|
@@ -193,7 +177,7 @@
|
|
import amapFile from "@/libs/amap-wx.130.js";
|
|
import amapFile from "@/libs/amap-wx.130.js";
|
|
import config from "../../config.js";
|
|
import config from "../../config.js";
|
|
import { UploadOne } from '@/api/upload.js';
|
|
import { UploadOne } from '@/api/upload.js';
|
|
- import { addKhjbxx, updateKhjbxx, listJtxx, addJtxx, updateJtxx, } from '@/api/lr.js'
|
|
|
|
|
|
+ import { addKhjbxx, updateKhjbxx, listJtxx, addJtxx, updateJtxx, listKhbhls } from '@/api/lr.js'
|
|
import { decryptRowData_ECB } from '@/common/sm4.js'
|
|
import { decryptRowData_ECB } from '@/common/sm4.js'
|
|
import { decimalToBinary } from '@/common/num.js'
|
|
import { decimalToBinary } from '@/common/num.js'
|
|
|
|
|
|
@@ -577,6 +561,14 @@
|
|
]
|
|
]
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
+ // 病患记录列表请求参数
|
|
|
|
+ bhlsParams: {
|
|
|
|
+ pageNum: 1,
|
|
|
|
+ pageSize: 10,
|
|
|
|
+ khId: null,
|
|
|
|
+ },
|
|
|
|
+ bhlsList: [],
|
|
}
|
|
}
|
|
|
|
|
|
},
|
|
},
|
|
@@ -584,11 +576,13 @@
|
|
this.getDictList(Object.keys(this.dicts), this.dicts)
|
|
this.getDictList(Object.keys(this.dicts), this.dicts)
|
|
},
|
|
},
|
|
onLoad(option) {
|
|
onLoad(option) {
|
|
- if (Object.keys(option).length !== 0) {
|
|
|
|
|
|
+ if (option.item) {
|
|
this.baseFormData = JSON.parse(option.item)
|
|
this.baseFormData = JSON.parse(option.item)
|
|
if (this.baseFormData.xm) {
|
|
if (this.baseFormData.xm) {
|
|
this.familyParams.khId = this.baseFormData.id
|
|
this.familyParams.khId = this.baseFormData.id
|
|
|
|
+ this.bhlsParams.khId = this.baseFormData.id
|
|
this.getFamilyList()
|
|
this.getFamilyList()
|
|
|
|
+ this.getBhlsList()
|
|
uni.setNavigationBarTitle({
|
|
uni.setNavigationBarTitle({
|
|
title: '修改客户信息'
|
|
title: '修改客户信息'
|
|
});
|
|
});
|
|
@@ -598,6 +592,11 @@
|
|
this.myAmapFunT = new amapFile.AMapWX({
|
|
this.myAmapFunT = new amapFile.AMapWX({
|
|
key: config.gaodeKey
|
|
key: config.gaodeKey
|
|
})
|
|
})
|
|
|
|
+ uni.$on('changeBhls', data => {
|
|
|
|
+ if (data === 'bhls') {
|
|
|
|
+ this.getBhlsList()
|
|
|
|
+ }
|
|
|
|
+ })
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
// 获取上传状态
|
|
// 获取上传状态
|
|
@@ -605,9 +604,7 @@
|
|
let ossfilePath = await UploadOne(e.tempFilePaths[0], {})
|
|
let ossfilePath = await UploadOne(e.tempFilePaths[0], {})
|
|
this.baseFormData.tx = ossfilePath.data.url
|
|
this.baseFormData.tx = ossfilePath.data.url
|
|
},
|
|
},
|
|
- addbhxx() {
|
|
|
|
|
|
|
|
- },
|
|
|
|
getFamilyList() {
|
|
getFamilyList() {
|
|
listJtxx(this.familyParams).then(res => {
|
|
listJtxx(this.familyParams).then(res => {
|
|
if (res.code !== 200) return
|
|
if (res.code !== 200) return
|
|
@@ -654,10 +651,8 @@
|
|
this.$refs.inputDialog.close()
|
|
this.$refs.inputDialog.close()
|
|
}
|
|
}
|
|
})
|
|
})
|
|
-
|
|
|
|
})
|
|
})
|
|
}
|
|
}
|
|
-
|
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
console.log('err', err);
|
|
console.log('err', err);
|
|
})
|
|
})
|
|
@@ -667,6 +662,20 @@
|
|
this.$refs.familyForm.clearValidate()
|
|
this.$refs.familyForm.clearValidate()
|
|
this.$refs.inputDialog.close()
|
|
this.$refs.inputDialog.close()
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
+ getBhlsList() {
|
|
|
|
+ listKhbhls(this.bhlsParams).then(res => {
|
|
|
|
+ if (res.code !== 200) return
|
|
|
|
+ this.bhlsList = res.rows
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ editBhls(data) {
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: `/pages/lr/bhAdd?item=${JSON.stringify(data)}&id=${this.baseFormData.id}&xm=${this.baseFormData.xm}`,
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+
|
|
// tab切换
|
|
// tab切换
|
|
changeTab(e) {
|
|
changeTab(e) {
|
|
this.active = this.list.indexOf(e.tab)
|
|
this.active = this.list.indexOf(e.tab)
|