|
@@ -282,6 +282,23 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-form-item label="自定义呼叫角色1" prop="customize_role_call_first">
|
|
|
+ <el-radio-group v-model="formmodel.customize_role_call_first">
|
|
|
+ <el-radio :label="0">不显示</el-radio>
|
|
|
+ <el-radio :disabled="formmodel.customize_role_call_second===item.role_id" :label="item.role_id" v-for="(item,index) in partRoles" :key="index">{{item.role_name}}</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ <el-row>
|
|
|
+ <el-form-item label="自定义呼叫角色2" prop="customize_role_call_second">
|
|
|
+ <el-radio-group v-model="formmodel.customize_role_call_second">
|
|
|
+ <el-radio :label="0">不显示</el-radio>
|
|
|
+ <el-radio :label="item.role_id" :disabled="formmodel.customize_role_call_first===item.role_id" v-for="(item,index) in partRoles" :key="index">{{item.role_name}}</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
+ </el-row>
|
|
|
|
|
|
</fieldset>
|
|
|
|
|
@@ -302,7 +319,7 @@ import * as API_Part from '@/api/ncs_partInfo'
|
|
|
import { saveListByCustomer } from '@/api/ncs_customer'
|
|
|
import Storage from '@/utils/storage'
|
|
|
import { init485Device, initData } from "@/api/initialize";
|
|
|
-
|
|
|
+import * as API_Clerk from '@/api/ncs_clerk'
|
|
|
export default {
|
|
|
name: 'PartInfoEdit',
|
|
|
props: {
|
|
@@ -320,7 +337,8 @@ export default {
|
|
|
nurseLevel0Config: [],
|
|
|
parents: [],
|
|
|
isShow: false,
|
|
|
- isDisabled: false
|
|
|
+ isDisabled: false,
|
|
|
+ partRoles: []
|
|
|
}
|
|
|
},
|
|
|
async mounted() {
|
|
@@ -328,6 +346,7 @@ export default {
|
|
|
// this.nurseLevel0Config = await API_Nurse.getNurseConfigs(this.partId, 0)
|
|
|
this.getPartInfo()
|
|
|
this.getPartents()
|
|
|
+ this.getRoles({ page_size: 200, page_no: 1, fixedCondition: ' shop_id = -1 and role_name<>"护士"', sort: ' role_id', dir: 'desc' })
|
|
|
},
|
|
|
methods: {
|
|
|
getPartInfo() {
|
|
@@ -370,7 +389,9 @@ export default {
|
|
|
transfer_duration_leader: 15,
|
|
|
communication_mode_bed: 1,
|
|
|
communication_mode_nurse: 1,
|
|
|
- communication_mode_mobile: 1
|
|
|
+ communication_mode_mobile: 1,
|
|
|
+ customize_role_call_first:0,
|
|
|
+ customize_role_call_second:0
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
@@ -400,6 +421,13 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
+ getRoles(param) {
|
|
|
+ // 获取角色
|
|
|
+ API_Clerk.getRoles(param).then(response => {
|
|
|
+ this.partRoles = response.data
|
|
|
+ })
|
|
|
+ },
|
|
|
onSubmit() {
|
|
|
this.$refs['editform'].validate((valid) => {
|
|
|
if (valid) {
|