Commit 73f63c16 authored by yanglilong's avatar yanglilong

'修改'

parent 177a872d
......@@ -57,9 +57,9 @@
</a-col>
<a-col :xl="16" :lg="12" :sm="12" class="none-label">
<a-form-model-item label="button">
<a-button>更新数据</a-button>
<!-- <a-button>更新数据</a-button>
<a-button class="mar-left10" type="primary" @click="addNewCharge">
<Icon name="ssiadd" :size="14" />新建预授权</a-button>
<Icon name="ssiadd" :size="14" />新建预授权</a-button> -->
<a-button class="mar-left10" type="primary" @click="handlerReset">
<Icon name="ssireset" :size="14" />重置
</a-button>
......
......@@ -83,6 +83,7 @@ export default {
total: 0,
},
dataList: [],
countyList: [],
editFormObj: {
id: "",
longName: "",
......@@ -102,8 +103,18 @@ export default {
},
created() {
this.getData();
this.getRefcdByRefgrp();
},
methods: {
// 获取国家列表
getRefcdByRefgrp() {
this.$apis.GETREFCDBYREFGRP({
modid: "CI",
refgrp: "COUNTRY_MAPPING"
}).then((res) => {
this.countyList = res.content || [];
});
},
//获取列表
getData() {
this.$apis
......
......@@ -14,7 +14,9 @@
</a-col>
<a-col :lg="6" :sm="12">
<a-form-model-item label="国家">
<a-input v-model="detailObj.country" placeholder="国家" />
<a-select v-model="detailObj.country" placeholder="请选择">
<a-select-option v-for="(item) in countyList" :value="item.descCh" :key="item.id">{{item.descCh}}</a-select-option>
</a-select>
</a-form-model-item>
</a-col>
</a-row>
......@@ -127,10 +129,22 @@ export default {
},
data() {
return {
countyList: [],
}
},
created(){
this.getRefcdByRefgrp();
},
methods: {
// 获取国家列表
getRefcdByRefgrp() {
this.$apis.GETREFCDBYREFGRP({
modid: "CI",
refgrp: "COUNTRY_MAPPING"
}).then((res) => {
this.countyList = res.content || [];
});
},
//新建保存
handlerSava(){
this.$apis.PAYORUPDATE({
......
......@@ -107,14 +107,27 @@
okText="确定" cancelText="取消"
@ok="handleEditOK" @cancel="dialogShow = false">
<a-form-model ref="editForm" :model="editFormObj" :rules="editRules">
<a-form-model-item label="医生英文名" prop="doctorDescLang1">
<a-input v-model.trim="editFormObj.doctorDescLang1" placeholder="医生英文名" />
</a-form-model-item>
<a-form-model-item label="科室" prop="specialtyList">
<a-select v-model="editFormObj.specialtyList" placeholder="请选择" mode="multiple">
<a-select-option :value="item.id" v-for="item in specialtyList" :key="item.id">{{ item.specialtyDesc }}</a-select-option>
</a-select>
</a-form-model-item>
<a-row :gutter="30">
<a-col :lg="12" :sm="24">
<a-form-model-item label="医生英文名" prop="doctorDescLang1">
<a-input v-model.trim="editFormObj.doctorDescLang1" placeholder="医生英文名" />
</a-form-model-item>
</a-col>
<a-col :lg="12" :sm="24">
<a-form-model-item label="国家" prop="country">
<a-select v-model="editFormObj.country" placeholder="请选择" showSearch allowClear>
<a-select-option v-for="(item) in countyList" :value="item.descCh" :key="item.id">{{item.descCh}}</a-select-option>
</a-select>
</a-form-model-item>
</a-col>
<a-col :lg="12" :sm="24">
<a-form-model-item label="科室" prop="specialtyList">
<a-select v-model="editFormObj.specialtyList" placeholder="请选择" mode="multiple" showSearch allowClear>
<a-select-option :value="item.id" v-for="item in specialtyList" :key="item.id">{{ item.specialtyDesc }}</a-select-option>
</a-select>
</a-form-model-item>
</a-col>
</a-row>
</a-form-model>
</a-modal>
</div>
......@@ -146,9 +159,11 @@ export default {
},
specialtyList: [], //科室列表
specialtyObj: {}, //科室对象
countyList: [],
editFormObj: {
id: "",
doctorDescLang1: '',
country: '',
specialtyList: [],
},
editRules: {
......@@ -165,6 +180,7 @@ export default {
this.getSpecialtyList();
await this.getDetail();
this.getDoctorList();
this.getRefcdByRefgrp();
},
methods: {
filterSpecialty(val) {
......@@ -177,6 +193,15 @@ export default {
this.pagination.pageNum = 1;
this.getData();
},
// 获取国家列表
getRefcdByRefgrp() {
this.$apis.GETREFCDBYREFGRP({
modid: "CI",
refgrp: "COUNTRY_MAPPING"
}).then((res) => {
this.countyList = res.content || [];
});
},
//获取科室
getSpecialtyList() {
this.$apis.GETSPECIALTYLIST().then((res) => {
......@@ -236,6 +261,7 @@ export default {
this.editFormObj = {
id: record.id || "",
doctorDescLang1: record.doctorDescLang1 || "",
country: record.country || "",
specialtyList: record.specialtyList || [],
};
this.dialogShow = true;
......@@ -246,8 +272,7 @@ export default {
if (valid) {
this.$apis
.DOCTORUPDATE({
id: this.editFormObj.id,
doctorDescLang1: this.editFormObj.doctorDescLang1,
...this.editFormObj,
specialtyList: this.editFormObj.specialtyList.map((item) => {
return {
specialtyId: item,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment