|
@@ -24,19 +24,23 @@ function AddDiag({matchChange,visible,cancel,onOk,title}) {
|
|
//标准术语搜索
|
|
//标准术语搜索
|
|
function handleSearch(val){
|
|
function handleSearch(val){
|
|
const txt = val.trim();
|
|
const txt = val.trim();
|
|
- post(api.termMatching, {inputStr:txt,type:4}).then((res) => {
|
|
|
|
- if (res.data.code === 200) {
|
|
|
|
- const data = res.data.data;
|
|
|
|
- const list = data.records||[];
|
|
|
|
|
|
+ if(txt==""){
|
|
|
|
+ const list = []
|
|
setDataList(list);
|
|
setDataList(list);
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ }else{
|
|
|
|
+ post(api.termMatching, {inputStr:txt,type:100}).then((res) => {
|
|
|
|
+ if (res.data.code === "0") {
|
|
|
|
+ const list = res.data.data||[];
|
|
|
|
+ setDataList(list);
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
//选中(修改)标准词时
|
|
//选中(修改)标准词时
|
|
function handleChange(val){
|
|
function handleChange(val){
|
|
console.log('选中:',val)
|
|
console.log('选中:',val)
|
|
setSearchTxt();
|
|
setSearchTxt();
|
|
- setIcdcode();
|
|
|
|
|
|
+ setIcdcode(val);
|
|
}
|
|
}
|
|
//保存匹配,先验证输入
|
|
//保存匹配,先验证输入
|
|
function saveMatching(){
|
|
function saveMatching(){
|
|
@@ -99,7 +103,7 @@ function AddDiag({matchChange,visible,cancel,onOk,title}) {
|
|
},{ max: 30,message:'医院诊断名称不能超过30个字符'}
|
|
},{ max: 30,message:'医院诊断名称不能超过30个字符'}
|
|
]}
|
|
]}
|
|
>
|
|
>
|
|
- <Input placeholder="请输入" autoComplete='off'/>
|
|
|
|
|
|
+ <Input value="1" placeholder="请输入" autoComplete='off'/>
|
|
</Form.Item>
|
|
</Form.Item>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -122,8 +126,9 @@ function AddDiag({matchChange,visible,cancel,onOk,title}) {
|
|
autoComplete='off'
|
|
autoComplete='off'
|
|
onSearch={handleSearch}
|
|
onSearch={handleSearch}
|
|
onChange={handleChange}
|
|
onChange={handleChange}
|
|
|
|
+ filterOption={false}
|
|
showSearch>
|
|
showSearch>
|
|
- {dataList.map(d => <Option key={d.value}>{d.text}</Option>)}
|
|
|
|
|
|
+ {dataList.map(d => <Option key={d.id}>{d.name}</Option>)}
|
|
</Select>
|
|
</Select>
|
|
</Form.Item>
|
|
</Form.Item>
|
|
<Form.Item
|
|
<Form.Item
|