|
@@ -343,9 +343,9 @@
|
|
|
|
|
|
</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">
|
|
|
<div style="height: 450px;display: flex;flex-direction: column;">
|
|
@@ -544,6 +544,7 @@ import vueQr from 'vue-qr'
|
|
|
import * as API_SystemConfig from '@/api/ncs_systemconfig'
|
|
|
import {RELATIVE_NAME_TYPE} from "@/utils/enum/RelativeNameTypeEnum";
|
|
|
import {CHILDBIRTH_TYPE} from "@/utils/enum/ChildbirthTypeEnum";
|
|
|
+import * as shop_API from "@/api/ncs_shop";
|
|
|
const serverUrl = domain.serverUrl
|
|
|
export default {
|
|
|
name: 'CustomerManager',
|
|
@@ -716,6 +717,7 @@ export default {
|
|
|
relativeNameTypeEnum: RELATIVE_NAME_TYPE.getValueList(),
|
|
|
childbirthTypeEnum: CHILDBIRTH_TYPE.getValueList(),
|
|
|
isChild: false,
|
|
|
+ shop: {}
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -928,7 +930,7 @@ export default {
|
|
|
}
|
|
|
]
|
|
|
})
|
|
|
- this.getEmptyBeds()
|
|
|
+ this.getShop(this.$store.getters.partId)
|
|
|
this.getCloud()
|
|
|
},
|
|
|
methods: {
|
|
@@ -937,13 +939,23 @@ export default {
|
|
|
},
|
|
|
getEmptyBeds() {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
- API_Frame.getSickbedByPartId(this.$store.getters.partId).then(res => {
|
|
|
- this.emptyBeds = [...res]
|
|
|
- resolve()
|
|
|
- }).catch(err => {
|
|
|
- this.$message.error(this.$t('customerManage.getEmptyBed') + err.message)
|
|
|
- reject()
|
|
|
- })
|
|
|
+ if (this.shop.shop_type === "0" && this.shop.parent_id === -1) {
|
|
|
+ API_Frame.getAllSickbed(this.$store.getters.partId).then(res => {
|
|
|
+ this.emptyBeds = [...res]
|
|
|
+ resolve()
|
|
|
+ }).catch(err => {
|
|
|
+ this.$message.error(this.$t('customerManage.getEmptyBed') + err.message)
|
|
|
+ reject()
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ API_Frame.getSickbedByPartId(this.$store.getters.partId).then(res => {
|
|
|
+ this.emptyBeds = [...res]
|
|
|
+ resolve()
|
|
|
+ }).catch(err => {
|
|
|
+ this.$message.error(this.$t('customerManage.getEmptyBed') + err.message)
|
|
|
+ reject()
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
/** 分页大小发生改变 */
|
|
@@ -1034,7 +1046,7 @@ export default {
|
|
|
in_date: (new Date()).valueOf(),
|
|
|
out_date: (new Date()).valueOf(),
|
|
|
mobile: '',
|
|
|
- part_id: this.$store.getters.partId
|
|
|
+ part_id: this.frame.part_id
|
|
|
}
|
|
|
if (Object.keys(this.frame).length > 0) {
|
|
|
this.$set(this.formmodel, 'frame_id', this.frame.id)
|
|
@@ -1487,7 +1499,13 @@ export default {
|
|
|
API_SystemConfig.cloud().then(r => {
|
|
|
this.isCloud = r
|
|
|
})
|
|
|
- }
|
|
|
+ },
|
|
|
+ getShop(shopId) {
|
|
|
+ shop_API.getShop(shopId).then(res => {
|
|
|
+ this.shop = res;
|
|
|
+ this.getEmptyBeds()
|
|
|
+ })
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|