|
@@ -9,6 +9,7 @@
|
|
|
<div class="value">
|
|
<div class="value">
|
|
|
<el-popover placement="bottom" width="180" trigger="focus" :close-delay="100">
|
|
<el-popover placement="bottom" width="180" trigger="focus" :close-delay="100">
|
|
|
<el-input
|
|
<el-input
|
|
|
|
|
+ :class="{invalid: name && !zy_dise_id}"
|
|
|
:size="size"
|
|
:size="size"
|
|
|
slot="reference"
|
|
slot="reference"
|
|
|
:placeholder="key1?key1:'中医病名'"
|
|
:placeholder="key1?key1:'中医病名'"
|
|
@@ -267,6 +268,7 @@ export default {
|
|
|
this.key1 = item.disname;
|
|
this.key1 = item.disname;
|
|
|
this.$refs.zybm.blur();
|
|
this.$refs.zybm.blur();
|
|
|
|
|
|
|
|
|
|
+ this.key2 = '';
|
|
|
this.syndrome = "";
|
|
this.syndrome = "";
|
|
|
this.zhengxingid = "";
|
|
this.zhengxingid = "";
|
|
|
this.therapy = "";
|
|
this.therapy = "";
|
|
@@ -369,17 +371,30 @@ export default {
|
|
|
zhengxing: ""
|
|
zhengxing: ""
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
- let res = await addDiagnosisData(params);
|
|
|
|
|
- if (res.ResultCode == 0) {
|
|
|
|
|
- this.addRecipeFrom();
|
|
|
|
|
- } else {
|
|
|
|
|
- this.$message.error(res.ResultInfo);
|
|
|
|
|
|
|
+ let res = await addDiagnosisData(params).catch(() => ({ResultCode: -1}));
|
|
|
|
|
+ if (+res.ResultCode === 0) {
|
|
|
|
|
+ if (!this.name) {
|
|
|
|
|
+ res.ResultCode = -1;
|
|
|
|
|
+ res.ResultInfo = `请选择${this.title}病名`;
|
|
|
|
|
+ } else if (!this.zy_dise_id) {
|
|
|
|
|
+ res.ResultCode = -1;
|
|
|
|
|
+ res.ResultInfo = `当前疾病编码与医保不匹配,请更换中医病名等诊断信息!`;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.addRecipeFrom().catch();
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
+ if (+res.ResultCode !== 0 && res.ResultInfo) this.$message.error(res.ResultInfo)
|
|
|
|
|
+ return +res.ResultCode === 0;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
|
|
|
+.el-input.invalid::v-deep {
|
|
|
|
|
+ input {
|
|
|
|
|
+ color: #ff0000;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
div {
|
|
div {
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
}
|
|
}
|