|
@@ -507,6 +507,7 @@
|
|
import vueQr from "vue-qr";
|
|
import vueQr from "vue-qr";
|
|
import avator from "@/assets/avatar.jpeg";
|
|
import avator from "@/assets/avatar.jpeg";
|
|
import {FRAME_TYPE} from "@/utils/enum/FrameTypeEnum";
|
|
import {FRAME_TYPE} from "@/utils/enum/FrameTypeEnum";
|
|
|
|
+ import * as API_SystemConfig from "@/api/ncs_systemconfig";
|
|
const serverUrl = domain.serverUrl
|
|
const serverUrl = domain.serverUrl
|
|
export default {
|
|
export default {
|
|
name: 'PatientManager',
|
|
name: 'PatientManager',
|
|
@@ -537,6 +538,7 @@
|
|
filterState: null,
|
|
filterState: null,
|
|
rowSelection: null,
|
|
rowSelection: null,
|
|
frameworkComponents: null,
|
|
frameworkComponents: null,
|
|
|
|
+ isCloud: false,
|
|
/** 列表参数 */
|
|
/** 列表参数 */
|
|
params: {
|
|
params: {
|
|
page_size: 20,
|
|
page_size: 20,
|
|
@@ -597,8 +599,10 @@
|
|
mobile: [
|
|
mobile: [
|
|
{
|
|
{
|
|
validator: (rule, value, callback) => {
|
|
validator: (rule, value, callback) => {
|
|
- if (value === null || value === '') { // 手机号可为空
|
|
|
|
- callback()
|
|
|
|
|
|
+ if (this.isCloud === false) {
|
|
|
|
+ if (value === null || value === '') { // 手机号可为空
|
|
|
|
+ callback()
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (!RegExp.mobile.test(value)) {
|
|
if (!RegExp.mobile.test(value)) {
|
|
callback(new Error(this.$t('member.mobileInputMsg')))
|
|
callback(new Error(this.$t('member.mobileInputMsg')))
|
|
@@ -658,7 +662,7 @@
|
|
choice: this.$t('action.choice'),
|
|
choice: this.$t('action.choice'),
|
|
colour: this.$t('action.colour'),
|
|
colour: this.$t('action.colour'),
|
|
deleted: this.$t('action.delete'),
|
|
deleted: this.$t('action.delete'),
|
|
- qrCode: null
|
|
|
|
|
|
+ qrCode: null,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -879,6 +883,8 @@
|
|
})
|
|
})
|
|
this.getEmptyBeds()
|
|
this.getEmptyBeds()
|
|
|
|
|
|
|
|
+ this.getCloud()
|
|
|
|
+
|
|
// 加载医护人员选择项
|
|
// 加载医护人员选择项
|
|
this.getEmployees()
|
|
this.getEmployees()
|
|
// 加载护理参数设置项
|
|
// 加载护理参数设置项
|
|
@@ -1198,6 +1204,7 @@
|
|
},
|
|
},
|
|
|
|
|
|
handleEdit(row) {
|
|
handleEdit(row) {
|
|
|
|
+ this.relativeRules.mobile[0].required = this.isCloud
|
|
this.formmodel = {
|
|
this.formmodel = {
|
|
...row
|
|
...row
|
|
}
|
|
}
|
|
@@ -1509,6 +1516,11 @@
|
|
this.qrCode = 'http://m.wdklian.com/care/apk/care.user?type=USER_LOGIN&uid=' + r
|
|
this.qrCode = 'http://m.wdklian.com/care/apk/care.user?type=USER_LOGIN&uid=' + r
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ getCloud() {
|
|
|
|
+ API_SystemConfig.cloud().then(r => {
|
|
|
|
+ this.isCloud = r
|
|
|
|
+ })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|