|
@@ -22,6 +22,7 @@
|
|
<en-table-search :placeholder="this.$t('action.keywords')" @search="handlerSearch"/>
|
|
<en-table-search :placeholder="this.$t('action.keywords')" @search="handlerSearch"/>
|
|
</div>
|
|
</div>
|
|
<div class="toolbar-btns">
|
|
<div class="toolbar-btns">
|
|
|
|
+ <el-button type="s" size="mini" @click="goPage">用户分布</el-button>
|
|
<el-button type="primary" size="mini" :disabled="!isEmptyFrame" @click="handleAdd">{{ this.$t('customerManage.customerAdd2') }}</el-button>
|
|
<el-button type="primary" size="mini" :disabled="!isEmptyFrame" @click="handleAdd">{{ this.$t('customerManage.customerAdd2') }}</el-button>
|
|
<el-button type="danger" size="mini" @click="batchDelete">{{ this.$t('action.deleteList') }}</el-button>
|
|
<el-button type="danger" size="mini" @click="batchDelete">{{ this.$t('action.deleteList') }}</el-button>
|
|
</div>
|
|
</div>
|
|
@@ -40,7 +41,7 @@
|
|
</ag-grid-layout>
|
|
</ag-grid-layout>
|
|
|
|
|
|
<!-- 用户信息 -->
|
|
<!-- 用户信息 -->
|
|
- <el-dialog :visible.sync="customerFormVisible" :title="this.$t('customerManage.customerInfo')" class="customer-dialog">
|
|
|
|
|
|
+ <el-dialog :visible.sync="customerFormVisible" :title="this.$t('customerManage.customerInfo')" class="customer-dialog" width="70%">
|
|
<el-tabs v-model="activeName" type="border-card" tab-position="bottom" width="50%" @tab-click="handleClick">
|
|
<el-tabs v-model="activeName" type="border-card" tab-position="bottom" 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 style="height: 590px">
|
|
<div style="height: 590px">
|
|
@@ -181,7 +182,6 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
-
|
|
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
<el-form-item :label="this.$t('customerManage.doctor')">
|
|
<el-form-item :label="this.$t('customerManage.doctor')">
|
|
@@ -210,6 +210,11 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
+ <el-col :span="8">
|
|
|
|
+ <el-form-item label="坐标">
|
|
|
|
+ <el-button @click="clickLngLat">{{ formmodel.lng_lat ? formmodel.lng_lat : '选择坐标'}}</el-button>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
<!-- <el-row v-if="nurseconfigSelection.length > 0">-->
|
|
<!-- <el-row v-if="nurseconfigSelection.length > 0">-->
|
|
@@ -282,7 +287,7 @@
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item :label="this.$t('customerManage.customerRelativeTrueName')" prop="true_name">
|
|
<el-form-item :label="this.$t('customerManage.customerRelativeTrueName')" prop="true_name">
|
|
- <el-input v-model="relativeFormModel.true_name" clearable :placeholder="请输入姓名"
|
|
|
|
|
|
+ <el-input v-model="relativeFormModel.true_name" clearable placeholder="请输入姓名"
|
|
:maxlength="20"/>
|
|
:maxlength="20"/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -459,6 +464,11 @@
|
|
</el-form>
|
|
</el-form>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
<!-- 用户换床-->
|
|
<!-- 用户换床-->
|
|
|
|
+
|
|
|
|
+ <!-- 选择坐标-->
|
|
|
|
+ <el-dialog title="选择坐标" :visible.sync="locationShow" width="70%">
|
|
|
|
+ <my-map :customer-id="formmodel.id" :dialog-show="locationShow" :lng-lat="formmodel.lng_lat" @childFn="setVal"></my-map>
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</template>
|
|
</template>
|
|
@@ -479,10 +489,11 @@
|
|
import * as API_Clerk from '@/api/ncs_clerk'
|
|
import * as API_Clerk from '@/api/ncs_clerk'
|
|
import * as API_NurseConfig from '@/api/ncs_nurse_config'
|
|
import * as API_NurseConfig from '@/api/ncs_nurse_config'
|
|
import vitalSignLog from '@/views/vital-sign/log'
|
|
import vitalSignLog from '@/views/vital-sign/log'
|
|
|
|
+ import myMap from '@/views/customer/myMap'
|
|
const serverUrl = domain.serverUrl
|
|
const serverUrl = domain.serverUrl
|
|
export default {
|
|
export default {
|
|
name: 'ElderlyCareManager',
|
|
name: 'ElderlyCareManager',
|
|
- components: {ButtonCellRender, ListFilter, RadioFilter, vitalSignLog},
|
|
|
|
|
|
+ components: {ButtonCellRender, ListFilter, RadioFilter, vitalSignLog, myMap},
|
|
filters: {
|
|
filters: {
|
|
unixDateFilter(val) {
|
|
unixDateFilter(val) {
|
|
return unixToDate(val)
|
|
return unixToDate(val)
|
|
@@ -627,7 +638,8 @@
|
|
customerRemarks: this.$t('customerManage.remarks'),
|
|
customerRemarks: this.$t('customerManage.remarks'),
|
|
customerRemarkTime: this.$t('customerManage.remarkTime'),
|
|
customerRemarkTime: this.$t('customerManage.remarkTime'),
|
|
customerRemarkName: this.$t('customerManage.remarkName'),
|
|
customerRemarkName: this.$t('customerManage.remarkName'),
|
|
- deleted: this.$t('action.delete')
|
|
|
|
|
|
+ deleted: this.$t('action.delete'),
|
|
|
|
+ locationShow: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -1456,7 +1468,17 @@
|
|
},
|
|
},
|
|
async deleteMembers(ids) {
|
|
async deleteMembers(ids) {
|
|
API_User.remove(ids)
|
|
API_User.remove(ids)
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ clickLngLat() {
|
|
|
|
+ this.locationShow = true
|
|
|
|
+ },
|
|
|
|
+ setVal(val) {
|
|
|
|
+ this.formmodel.lng_lat = val
|
|
|
|
+ this.locationShow = false
|
|
|
|
+ },
|
|
|
|
+ goPage() {
|
|
|
|
+ this.$router.push({path:'/allMap'})
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|