|
|
@@ -488,6 +488,22 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="公司行业" prop="companyTrade">
|
|
|
+ <el-select
|
|
|
+ v-model="form.companyTrade"
|
|
|
+ filterable
|
|
|
+ clearable
|
|
|
+ size="small"
|
|
|
+ placeholder="请选择公司行业"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in tradeTypeOptions"
|
|
|
+ :key="item.dictValue"
|
|
|
+ :label="item.dictLabel"
|
|
|
+ :value="item.dictValue"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
@@ -824,6 +840,10 @@ export default {
|
|
|
statusOptions: [],
|
|
|
// 企业类型字典
|
|
|
companyTypeOptions: [],
|
|
|
+ // 公司行业字典(trade_type)
|
|
|
+ tradeTypeOptions: [],
|
|
|
+ // 新增公司时公司行业默认值(来源: his.config 配置中的 tenantTrade)
|
|
|
+ tenantTradeDefault: null,
|
|
|
//部门字典
|
|
|
deptOptions: [],
|
|
|
// 查询参数
|
|
|
@@ -969,6 +989,22 @@ export default {
|
|
|
this.getDicts('sys_company_type').then(response => {
|
|
|
this.companyTypeOptions = response.data
|
|
|
})
|
|
|
+ this.getDicts('trade_type').then(response => {
|
|
|
+ this.tradeTypeOptions = response.data
|
|
|
+ })
|
|
|
+ // 读取系统配置 his.config 中的 tenantTrade,作为新增公司时"公司行业"的默认值
|
|
|
+ getConfigByKey('his.config').then(response => {
|
|
|
+ if (response.data && response.data.configValue) {
|
|
|
+ try {
|
|
|
+ const hisConfig = JSON.parse(response.data.configValue)
|
|
|
+ if (hisConfig && hisConfig.tenantTrade != null && hisConfig.tenantTrade !== '') {
|
|
|
+ this.tenantTradeDefault = hisConfig.tenantTrade
|
|
|
+ }
|
|
|
+ } catch (e) {
|
|
|
+ console.warn('解析 his.config 失败', e)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
getVoiceApiList().then((response) => {
|
|
|
this.voiceApis = response.data
|
|
|
})
|
|
|
@@ -1184,7 +1220,8 @@ export default {
|
|
|
miniAppList: [],
|
|
|
isDel: null,
|
|
|
courseMaAppId: null,
|
|
|
- courseMiniAppId: null
|
|
|
+ courseMiniAppId: null,
|
|
|
+ companyTrade: this.tenantTradeDefault
|
|
|
}
|
|
|
this.resetForm('form')
|
|
|
},
|
|
|
@@ -1243,6 +1280,9 @@ export default {
|
|
|
if (this.form.status != null) {
|
|
|
this.form.status = String(this.form.status)
|
|
|
}
|
|
|
+ if (this.form.companyTrade != null) {
|
|
|
+ this.form.companyTrade = String(this.form.companyTrade)
|
|
|
+ }
|
|
|
if (this.form.doctorIds != null) {
|
|
|
this.doctorIds = ((this.form.doctorIds).split(',')).map(Number)
|
|
|
}
|