|
@@ -641,9 +641,9 @@ const baoCunXiuGai = () => {
|
|
|
diseinfo: diseinfo.value,
|
|
|
oprninfo: oprninfo.value
|
|
|
}
|
|
|
- // if (JSON.stringify(newData) === JSON.stringify(oldData)) {
|
|
|
- // return ElMessage.error("数据没有变化请勿点击。")
|
|
|
- // }
|
|
|
+ if (JSON.stringify(newData) === JSON.stringify(oldData)) {
|
|
|
+ return ElMessage.error("数据没有变化请勿点击。")
|
|
|
+ }
|
|
|
if (setlinfo.value.operation === '1' || setlinfo.value.operation === '2' || setlinfo.value.operation === '3') {
|
|
|
if (listIsBlank(oprninfo.value)) {
|
|
|
return ElMessage.error('选择治疗类型为手术的,至少要有一个手术。')
|
|
@@ -667,11 +667,11 @@ const baoCunXiuGai = () => {
|
|
|
changeData += `治疗方式变动:原:【${getDeclarationType(oldData.operation)}】新:【${getTreatmentName(newData.operation)}】。`
|
|
|
}
|
|
|
// 住院诊断信息
|
|
|
- if (ArrayIsEqual(oldData.diseinfo, newData.diseinfo)) {
|
|
|
+ if (!ArrayIsEqual(oldData.diseinfo, newData.diseinfo)) {
|
|
|
changeData += "【诊断有变动】"
|
|
|
}
|
|
|
// 手术有变动
|
|
|
- if (ArrayIsEqual(oldData.oprninfo, newData.oprninfo)) {
|
|
|
+ if (!ArrayIsEqual(oldData.oprninfo, newData.oprninfo)) {
|
|
|
changeData += "【手术有变动】"
|
|
|
}
|
|
|
data['dataChanges'] = changeData
|