Эх сурвалжийг харах

1.病历详情 -入院记录月经生育史根据字段格式显示调整
2.病历详情 -入院记录男女都显示婚育史
3.病历详情 -月经及婚育史更改为月经生育史

liyanyan 3 долоо хоног өмнө
parent
commit
bca41d0753

+ 26 - 2
src/views/allcase/contFile/admissionRecord2.vue

@@ -66,8 +66,32 @@
             <div class="admrec-cont-chief-title">个人史:<span class="admrec-cont-textnor" v-if="data.gerenshi" v-html="data.gerenshi.value"></span></div>
           </div>
           <div class="admrec-cont-chief admrec-cont-mg20">
-            <div class="admrec-cont-chief-title" v-if="data.sex&&data.sex.value == '女'">月经及婚育史:<span class="admrec-cont-textnor" v-if="data.yjjhys" v-html="data.yjjhys.value"></span></div>
-            <div class="admrec-cont-chief-title" v-else>婚育史:<span class="admrec-cont-textnor" v-if="data.hys" v-html="data.hys.value"></span></div>
+            <div class="admrec-cont-chief-title">婚育史:<span class="admrec-cont-textnor" v-if="data.hys" v-html="data.hys.value"></span></div>
+          </div>
+          <div class="admrec-cont-chief admrec-cont-mg20">
+            <div class="admrec-cont-chief-title" v-if="data.sex&&data.sex.value == '女'">
+              <el-row v-if="data.yjjhys_format && Array.isArray(data.yjjhys_format.value) && !!(data.yjjhys_format.value.length)" type="flex" align="middle">
+                <span>月经生育史:</span>
+                <el-row class="admrec-cont-textnor" type="flex" align="middle">
+                  <span> {{(data.yjjhys_format.value)[0]}}</span>
+                  <el-row type="flex" style="flex-direction: column;text-align: center;margin: 0 5px">
+                    <span>{{(data.yjjhys_format.value)[1]}}</span>
+                    <div style="height: 1px; margin:5px 0;background: #000"/>
+                    <span>{{(data.yjjhys_format.value)[2]}}</span>
+                  </el-row>
+                  <span v-if="(data.yjjhys_format.value)[3]">
+                    {{(data.yjjhys_format.value)[3]}}
+                  </span>
+                  <span v-else>
+                    <span>已绝经</span>
+                    {{(data.yjjhys_format.value)[4]}}
+                  </span>
+                </el-row>
+              </el-row >
+              <span v-else>
+                月经生育史:<span class="admrec-cont-textnor" v-if="data.yjjhys" v-html="data.yjjhys.value"></span>
+              </span>
+            </div>
           </div>
           <div class="admrec-cont-chief admrec-cont-mg20">
             <div class="admrec-cont-chief-title">家族史:<span class="admrec-cont-textnor" v-if="data.jzs" v-html="data.jzs.value"></span></div>