|
@@ -56,7 +56,7 @@
|
|
|
v-for="(item,idx) in uniqueNameList"
|
|
|
:key="idx"
|
|
|
:label="item.name"
|
|
|
- :value="item.name"
|
|
|
+ :value="item"
|
|
|
:title="item.name"
|
|
|
></el-option>
|
|
|
</el-select>
|
|
@@ -65,7 +65,7 @@
|
|
|
<span class="previewInfo" style="minWidth: 240px">{{form.searchText}}</span>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="中医疾病代码:">
|
|
|
- <span class="previewInfo" style="minWidth: 240px">{{form.code}}</span>
|
|
|
+ <span class="previewInfo" style="minWidth: 240px">{{form.uniqueCode}}</span>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -91,7 +91,7 @@ export default {
|
|
|
form: {
|
|
|
searchText: '', //搜索字段
|
|
|
hisName: '',
|
|
|
- code: ''
|
|
|
+ uniqueCode: ''
|
|
|
},
|
|
|
rules: {
|
|
|
hisName: [
|
|
@@ -117,7 +117,7 @@ export default {
|
|
|
this.editId = data.id;
|
|
|
this.form.hisName = data.hisName;
|
|
|
this.form.searchText = data.uniqueName;
|
|
|
- this.form.code = data.code;
|
|
|
+ this.form.uniqueCode = data.code;
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -143,7 +143,8 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
changeWord(newVal) {
|
|
|
- console.log(newVal);
|
|
|
+ this.form.searchText = newVal.name
|
|
|
+ this.form.uniqueCode = newVal.code
|
|
|
},
|
|
|
handleVisible(flag) {
|
|
|
if (!flag) {
|
|
@@ -155,18 +156,18 @@ export default {
|
|
|
initForm() {
|
|
|
this.form.hisName = '';
|
|
|
this.form.searchText = '';
|
|
|
- this.form.code = '';
|
|
|
+ this.form.uniqueCode = '';
|
|
|
},
|
|
|
|
|
|
// 建立关联-参数处理
|
|
|
submitForm() {
|
|
|
this.$refs.relationForm.validate(valid => {
|
|
|
if (valid) {
|
|
|
- const { searchText, hisName, code } = this.form;
|
|
|
+ const { searchText, hisName, uniqueCode } = this.form;
|
|
|
let params = {
|
|
|
hisName: hisName,
|
|
|
uniqueName: searchText,
|
|
|
- code: code,
|
|
|
+ uniqueCode: uniqueCode,
|
|
|
hospitalId: this.hospitalId
|
|
|
};
|
|
|
this.showSaveDialog(params);
|