|
|
@@ -568,56 +568,58 @@ export default {
|
|
|
item.inputDefaultValue = paramsData.supplementaryexamination;
|
|
|
}
|
|
|
});
|
|
|
- // console.log(paramsData.echoData);
|
|
|
- // console.log(tem);
|
|
|
-
|
|
|
- for (let i in paramsData.echoData) {
|
|
|
- let labelKey = i.split("-")[1];
|
|
|
- let flabelKey = i.split("-")[0];
|
|
|
- let echoItem = paramsData.echoData[i];
|
|
|
- let otherStr = ""; // 其他选项
|
|
|
- let isFind = false; // 是否查找到了
|
|
|
- tem.forEach(item => {
|
|
|
- // if (labelKey == item.inputValue && item.selectValue == "fill") {
|
|
|
-
|
|
|
- if (i == flabelKey + "-" + item.inputValue) {
|
|
|
- if (item.selectValue == "fill") {
|
|
|
- isFind = true;
|
|
|
- let radioLabels = item.radioList.map(item1 => item1.label);
|
|
|
- let diffValues = _this.findDifferences(radioLabels, echoItem);
|
|
|
-
|
|
|
- otherStr = diffValues.join(";");
|
|
|
- item.fillValues = [
|
|
|
- ...item.fillValues,
|
|
|
- ..._this.findSame(radioLabels, echoItem)
|
|
|
- ];
|
|
|
-
|
|
|
- item.fillValues = _this.removeRepate(item.fillValues);
|
|
|
-
|
|
|
- item.radioList.forEach(item1 => {
|
|
|
- if (echoItem.includes(item1.label)) {
|
|
|
- item1.radioDefault = true;
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (!isFind) {
|
|
|
- otherStr = echoItem.join(";");
|
|
|
+ console.log(paramsData.echoData);
|
|
|
+ //console.log(tem);
|
|
|
+ if (!data.updateTime) {
|
|
|
+ for (let i in paramsData.echoData) {
|
|
|
+ let labelKey = i.split("-")[1];
|
|
|
+ let flabelKey = i.split("-")[0];
|
|
|
+ let echoItem = paramsData.echoData[i];
|
|
|
+ let otherStr = ""; // 其他选项
|
|
|
+ let isFind = false; // 是否查找到了
|
|
|
+ tem.forEach(item => {
|
|
|
+ // if (labelKey == item.inputValue && item.selectValue == "fill") {
|
|
|
+
|
|
|
+ if (i == flabelKey + "-" + item.inputValue) {
|
|
|
+ if (item.selectValue == "fill") {
|
|
|
+ isFind = true;
|
|
|
+ let radioLabels = item.radioList.map(item1 => item1.label);
|
|
|
+ let diffValues = _this.findDifferences(radioLabels, echoItem);
|
|
|
+
|
|
|
+ otherStr = diffValues.join(";");
|
|
|
+ item.fillValues = [
|
|
|
+ ...item.fillValues,
|
|
|
+ ..._this.findSame(radioLabels, echoItem)
|
|
|
+ ];
|
|
|
+
|
|
|
+ item.fillValues = _this.removeRepate(item.fillValues);
|
|
|
+
|
|
|
+ item.radioList.forEach(item1 => {
|
|
|
+ if (echoItem.includes(item1.label)) {
|
|
|
+ item1.radioDefault = true;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (!isFind) {
|
|
|
+ otherStr = echoItem.join(";");
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- if (item.inputValue == flabelKey + "—其他") {
|
|
|
- if (otherStr) {
|
|
|
- if (item.inputDefaultValue) {
|
|
|
- item.inputDefaultValue =
|
|
|
- item.inputDefaultValue + ";" + otherStr;
|
|
|
- } else {
|
|
|
- item.inputDefaultValue = otherStr;
|
|
|
+ if (item.inputValue == flabelKey + "—其他") {
|
|
|
+ if (otherStr) {
|
|
|
+ if (item.inputDefaultValue) {
|
|
|
+ item.inputDefaultValue =
|
|
|
+ item.inputDefaultValue + ";" + otherStr;
|
|
|
+ } else {
|
|
|
+ item.inputDefaultValue = otherStr;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
- });
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
this.temItem.templateContent = [];
|
|
|
this.temItem.templateContent = tem;
|
|
|
},
|
|
|
@@ -720,6 +722,14 @@ export default {
|
|
|
});
|
|
|
this.isEdit = false;
|
|
|
if (next) {
|
|
|
+ if (next == "none") {
|
|
|
+ let msg = {
|
|
|
+ origin: "EMR",
|
|
|
+ msg: "刷新数据"
|
|
|
+ };
|
|
|
+ window.parent.postMessage(JSON.stringify(msg), "*");
|
|
|
+ return;
|
|
|
+ }
|
|
|
next();
|
|
|
} else {
|
|
|
setTimeout(() => {
|
|
|
@@ -770,7 +780,11 @@ export default {
|
|
|
showClose: true
|
|
|
});
|
|
|
// this.isEdit = false;
|
|
|
- this.editEMR("none");
|
|
|
+ if (this.pid) {
|
|
|
+ this.editEMR("none");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.addEMR("none");
|
|
|
|
|
|
// console.log("消息发送成功");
|
|
|
}
|