|
@@ -40,8 +40,8 @@
|
|
</ag-grid-layout>
|
|
</ag-grid-layout>
|
|
|
|
|
|
<!-- 用户信息 -->
|
|
<!-- 用户信息 -->
|
|
- <el-dialog :visible.sync="customerFormVisible" :title="this.$t('customerManage.customerInfo')" class="customer-dialog" width="60%">
|
|
|
|
- <el-tabs v-model="activeName" type="border-card" tab-position="bottom" width="50%" @tab-click="handleClick">
|
|
|
|
|
|
+ <el-dialog :visible.sync="customerFormVisible" class="customer-dialog" width="60%">
|
|
|
|
+ <el-tabs v-model="activeName" type="border-card" tab-position="top" width="50%" @tab-click="handleClick">
|
|
<el-tab-pane :label="this.$t('customerManage.baseInfo')" name="customerBaseInfo">
|
|
<el-tab-pane :label="this.$t('customerManage.baseInfo')" name="customerBaseInfo">
|
|
<div>
|
|
<div>
|
|
<el-form ref="editForm" :model="formmodel" :rules="rules" :label-width="this.$i18n.locale === 'zh' ? '120px' : '145px'">
|
|
<el-form ref="editForm" :model="formmodel" :rules="rules" :label-width="this.$i18n.locale === 'zh' ? '120px' : '145px'">
|
|
@@ -359,9 +359,9 @@
|
|
|
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
|
|
|
- <el-tab-pane v-if="formmodel.id" :label="this.$t('customerManage.vital')" name="customer-vital-sign">
|
|
|
|
- <vital-sign-log :member-id="formmodel.member_id+''" :active-name="'vital_signs1'"/>
|
|
|
|
- </el-tab-pane>
|
|
|
|
|
|
+<!-- <el-tab-pane v-if="formmodel.id" :label="this.$t('customerManage.vital')" name="customer-vital-sign">-->
|
|
|
|
+<!-- <vital-sign-log :member-id="formmodel.member_id+''" :active-name="'vital_signs1'"/>-->
|
|
|
|
+<!-- </el-tab-pane>-->
|
|
|
|
|
|
<el-tab-pane v-if="formmodel.id" :label="this.$t('customerManage.remark')" name="customerRemark">
|
|
<el-tab-pane v-if="formmodel.id" :label="this.$t('customerManage.remark')" name="customerRemark">
|
|
<div style="height: 450px;display: flex;flex-direction: column;">
|
|
<div style="height: 450px;display: flex;flex-direction: column;">
|
|
@@ -432,10 +432,6 @@
|
|
</div>
|
|
</div>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
|
|
|
- <el-tab-pane v-if="formmodel.id" :label="this.$t('customerManage.footprint')" name="footprint">
|
|
|
|
-<!-- <my-map-html :map-url="mapUrl" style="width: 100%; height: 670px;"></my-map-html>-->
|
|
|
|
- </el-tab-pane>
|
|
|
|
-
|
|
|
|
<el-tab-pane v-if="formmodel.id" :label="this.$t('customerManage.fee')" name="customer-fee">
|
|
<el-tab-pane v-if="formmodel.id" :label="this.$t('customerManage.fee')" name="customer-fee">
|
|
<customer-fee :customer-id="formmodel.id" :active-name="'customer_fee'"/>
|
|
<customer-fee :customer-id="formmodel.id" :active-name="'customer_fee'"/>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
@@ -444,9 +440,9 @@
|
|
<advice :customer-id="formmodel.id" :part-id="formmodel.part_id" :active-name="'customer_advice'"/>
|
|
<advice :customer-id="formmodel.id" :part-id="formmodel.part_id" :active-name="'customer_advice'"/>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
|
|
|
- <el-tab-pane :label="this.$t('sleepData.SleepData')" name="sleepData">
|
|
|
|
- <sleep-detect-data :member-id="formmodel.member_id"></sleep-detect-data>
|
|
|
|
- </el-tab-pane>
|
|
|
|
|
|
+<!-- <el-tab-pane :label="this.$t('sleepData.SleepData')" name="sleepData">-->
|
|
|
|
+<!-- <sleep-detect-data :member-id="formmodel.member_id"></sleep-detect-data>-->
|
|
|
|
+<!-- </el-tab-pane>-->
|
|
|
|
|
|
</el-tabs>
|
|
</el-tabs>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
@@ -517,6 +513,15 @@
|
|
</el-form>
|
|
</el-form>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<!-- 用户换床-->
|
|
<!-- 用户换床-->
|
|
|
|
+
|
|
|
|
+<!-- 体征-->
|
|
|
|
+ <el-drawer
|
|
|
|
+ :title="this.$t('customerManage.vital')"
|
|
|
|
+ :visible.sync="vitalDrawer"
|
|
|
|
+ size="40%">
|
|
|
|
+ <vital-sign-log :member-id="formmodel.member_id+''" :active-name="'vital_signs1'"/>
|
|
|
|
+ </el-drawer>
|
|
|
|
+ <!-- 体征-->
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</template>
|
|
</template>
|
|
@@ -526,6 +531,7 @@
|
|
import {AG_GRID_LOCALE_CN} from '@/utils/AgGridVueLocaleCn'
|
|
import {AG_GRID_LOCALE_CN} from '@/utils/AgGridVueLocaleCn'
|
|
import ButtonCellRender from '@/components/AgGridCellRender/ButtonCellRender'
|
|
import ButtonCellRender from '@/components/AgGridCellRender/ButtonCellRender'
|
|
import ButtonCellRenderList from '@/components/AgGridCellRender/ButtonCellRenderList'
|
|
import ButtonCellRenderList from '@/components/AgGridCellRender/ButtonCellRenderList'
|
|
|
|
+ import ButtonDropdownCellRenderList from '@/components/AgGridCellRender/ButtonDropdownCellRenderList'
|
|
import ListFilter from '@/components/AgGridCustomFilter/ListFilter'
|
|
import ListFilter from '@/components/AgGridCustomFilter/ListFilter'
|
|
import RadioFilter from '@/components/AgGridCustomFilter/RadioFilter'
|
|
import RadioFilter from '@/components/AgGridCustomFilter/RadioFilter'
|
|
import * as API_Customer from '@/api/ncs_customer'
|
|
import * as API_Customer from '@/api/ncs_customer'
|
|
@@ -556,7 +562,7 @@
|
|
const serverUrl = domain.serverUrl
|
|
const serverUrl = domain.serverUrl
|
|
export default {
|
|
export default {
|
|
name: 'PatientManager',
|
|
name: 'PatientManager',
|
|
- components: {SleepDetectData, ButtonCellRenderList, ButtonCellRender, ListFilter, RadioFilter, vitalSignLog, vueQr, myMapHtml, customerFee, advice },
|
|
|
|
|
|
+ components: {SleepDetectData, ButtonCellRenderList, ButtonDropdownCellRenderList, ButtonCellRender, ListFilter, RadioFilter, vitalSignLog, vueQr, myMapHtml, customerFee, advice },
|
|
filters: {
|
|
filters: {
|
|
unixDateFilter(val) {
|
|
unixDateFilter(val) {
|
|
return unixToDate(val)
|
|
return unixToDate(val)
|
|
@@ -715,6 +721,7 @@
|
|
mapUrl: null,
|
|
mapUrl: null,
|
|
relativeNameTypeEnum: RELATIVE_NAME_TYPE.getValueList(),
|
|
relativeNameTypeEnum: RELATIVE_NAME_TYPE.getValueList(),
|
|
isChild: false,
|
|
isChild: false,
|
|
|
|
+ vitalDrawer: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -830,7 +837,7 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
{ headerName: this.$t('action.handle'), field: 'id',
|
|
{ headerName: this.$t('action.handle'), field: 'id',
|
|
- cellRendererFramework: 'ButtonCellRenderList',
|
|
|
|
|
|
+ cellRendererFramework: 'ButtonDropdownCellRenderList',
|
|
cellRendererParams: param => {
|
|
cellRendererParams: param => {
|
|
return {
|
|
return {
|
|
list: [
|
|
list: [
|
|
@@ -841,33 +848,38 @@
|
|
buttonSize: 'mini'
|
|
buttonSize: 'mini'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- onClick: this.handleOut,
|
|
|
|
- label: this.$t('customerManage.outBed'),
|
|
|
|
- buttonType: 'warning',
|
|
|
|
|
|
+ onClick: this.deleteSingle,
|
|
|
|
+ label: this.$t('action.delete'),
|
|
|
|
+ buttonType: 'danger',
|
|
buttonSize: 'mini',
|
|
buttonSize: 'mini',
|
|
- disabled: param.data['status'] !== 0
|
|
|
|
|
|
+ disabled: param.data['member_name'] === 'superadmin'
|
|
},
|
|
},
|
|
|
|
+ ],
|
|
|
|
+ list2: [
|
|
{
|
|
{
|
|
onClick: this.handleChangeBed,
|
|
onClick: this.handleChangeBed,
|
|
label: this.$t('customerManage.changeBed'),
|
|
label: this.$t('customerManage.changeBed'),
|
|
- buttonType: 'success',
|
|
|
|
- buttonSize: 'mini',
|
|
|
|
- disabled: param.data['status'] !== 0
|
|
|
|
|
|
+ show: param.data['status'] !== 0
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- onClick: this.deleteSingle,
|
|
|
|
- label: this.$t('action.delete'),
|
|
|
|
- buttonType: 'danger',
|
|
|
|
- buttonSize: 'mini',
|
|
|
|
- disabled: param.data['member_name'] === 'superadmin'
|
|
|
|
|
|
+ onClick: this.handleOut,
|
|
|
|
+ label: this.$t('customerManage.outBed'),
|
|
|
|
+ show: param.data['status'] !== 0
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ onClick: this.advice,
|
|
|
|
+ label: this.$t('customerManage.advice')
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ onClick: this.lookLocation,
|
|
|
|
+ label: this.$t('customerManage.footprint')
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ onClick: this.lookVitalSigns,
|
|
|
|
+ label: this.$t('customerManage.vital')
|
|
},
|
|
},
|
|
- // {
|
|
|
|
- // onClick: this.advice,
|
|
|
|
- // label: this.$t('customerManage.advice'),
|
|
|
|
- // buttonType: 'primary',
|
|
|
|
- // buttonSize: 'mini',
|
|
|
|
- // },
|
|
|
|
- ]}
|
|
|
|
|
|
+ ]
|
|
|
|
+ }
|
|
},
|
|
},
|
|
filter: false,
|
|
filter: false,
|
|
pinned: 'right',
|
|
pinned: 'right',
|
|
@@ -890,11 +902,11 @@
|
|
this.rowSelection = 'multiple'
|
|
this.rowSelection = 'multiple'
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
-
|
|
|
|
|
|
+
|
|
window.onresize = this.windowResize()
|
|
window.onresize = this.windowResize()
|
|
this.gridApi = this.gridOptions.api
|
|
this.gridApi = this.gridOptions.api
|
|
this.gridColumnApi = this.gridOptions.columnApi
|
|
this.gridColumnApi = this.gridOptions.columnApi
|
|
-
|
|
|
|
|
|
+
|
|
this.gridColumnApi.applyColumnState({
|
|
this.gridColumnApi.applyColumnState({
|
|
state: [
|
|
state: [
|
|
{
|
|
{
|
|
@@ -903,7 +915,7 @@
|
|
}
|
|
}
|
|
]
|
|
]
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+
|
|
this.getShop(this.$store.getters.partId)
|
|
this.getShop(this.$store.getters.partId)
|
|
|
|
|
|
this.getCloud()
|
|
this.getCloud()
|
|
@@ -1672,7 +1684,17 @@
|
|
},
|
|
},
|
|
advice(row) {
|
|
advice(row) {
|
|
this.$router.push({ name: 'advice', params: { id: row.id, callback: this.getList() }})
|
|
this.$router.push({ name: 'advice', params: { id: row.id, callback: this.getList() }})
|
|
|
|
+
|
|
},
|
|
},
|
|
|
|
+ lookLocation(row) {
|
|
|
|
+ this.$router.push({path:'/device/map', query: {mapUrl: this.mapUrl, uuid: row.uuid, frameId: row.frame_id}})
|
|
|
|
+ },
|
|
|
|
+ lookVitalSigns(row) {
|
|
|
|
+ this.formmodel = {
|
|
|
|
+ ...row
|
|
|
|
+ }
|
|
|
|
+ this.vitalDrawer = true
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|