Browse Source

新增提示。结算单上传。

xiaochan 3 years ago
parent
commit
f8e66db4d9

+ 9 - 3
src/components/si-sheet-upload/BeiZhu.vue

@@ -1,6 +1,6 @@
 <template>
   <el-dialog v-model="beiZhuDialog" title="备注" @closed="emit('close')">
-    <el-input v-model="beiZhu" type="textarea"></el-input>
+    <el-input v-model="beiZhu" :maxlength="100" show-word-limit type="textarea"></el-input>
     <el-divider></el-divider>
     <el-button type="success" @click="baoCunClick">保存</el-button>
   </el-dialog>
@@ -9,14 +9,13 @@
 <script name="BeiZhu" setup>
 import {ref} from 'vue'
 import {setlModifyReq} from '@/api/medical-insurance/si-setl-upload'
+import {stringNotBlank} from "@/utils/blank-utils";
 
 const emit = defineEmits(['baoCunHouGuanBi', 'close'])
 const props = defineProps({
   data: {},
 })
 
-console.log(props.data.dataChanges)
-
 const beiZhuDialog = $ref(true)
 const beiZhu = ref('')
 
@@ -28,6 +27,13 @@ const baoCunClick = () => {
     beiZhu.value = ''
   })
 }
+
+onMounted(() => {
+  if (stringNotBlank(props.data.dataChanges)) {
+    beiZhu.value = props.data.dataChanges
+  }
+})
+
 </script>
 
 <style scoped></style>

+ 5 - 5
src/components/si-sheet-upload/JieSuanDanXiangQing.vue

@@ -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