Commit 73f63c16 authored by yanglilong's avatar yanglilong

'修改'

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