Browse Source

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

28169 1 year ago
parent
commit
a4c3a5864d
31 changed files with 2019 additions and 872 deletions
  1. 18 79
      src/xt_pages/dialysis/template/DialysisPrintOrderSixtyeight.vue
  2. 12 11
      src/xt_pages/dialysis/template/DialysisPrintOrderSixtyfour.vue
  3. 6 8
      src/xt_pages/hospitalStation/components/deskPrescription.vue
  4. 6 4
      src/xt_pages/outpatientCharges/allListPrint.vue
  5. 189 0
      src/xt_pages/outpatientCharges/allListTemplate/printTwo.vue
  6. 21 5
      src/xt_pages/outpatientCharges/statementPrint.vue
  7. 172 0
      src/xt_pages/outpatientCharges/statementTemplate/printtwelve.vue
  8. 10 9
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue
  9. 62 62
      src/xt_pages/user/components/PatientSidebar.vue
  10. 1 1
      src/xt_pages/user/evaluationtool/Cathetershedding.vue
  11. 4 4
      src/xt_pages/user/evaluationtool/Fallassessment.vue
  12. 99 22
      src/xt_pages/user/evaluationtool/Glasgow.vue
  13. 62 25
      src/xt_pages/user/evaluationtool/Muscleforce.vue
  14. 122 27
      src/xt_pages/user/evaluationtool/OHpressuresore.vue
  15. 14 8
      src/xt_pages/user/evaluationtool/RassAssessment.vue
  16. 67 50
      src/xt_pages/user/evaluationtool/behavior.vue
  17. 239 184
      src/xt_pages/user/evaluationtool/dailyLife.vue
  18. 38 5
      src/xt_pages/user/evaluationtool/hemodialysis.vue
  19. 172 139
      src/xt_pages/user/evaluationtool/pediatricFallAssessment.vue
  20. 45 19
      src/xt_pages/user/evaluationtool/pressuresore.vue
  21. 110 24
      src/xt_pages/user/evaluationtool/pruritusAssessment.vue
  22. 93 35
      src/xt_pages/user/history/Children_history.vue
  23. 65 12
      src/xt_pages/user/history/Pressure_history.vue
  24. 31 3
      src/xt_pages/user/history/RASS_history.vue
  25. 28 4
      src/xt_pages/user/history/daoguan_history.vue
  26. 150 70
      src/xt_pages/user/history/date_history.vue
  27. 38 12
      src/xt_pages/user/history/mind_history.vue
  28. 34 8
      src/xt_pages/user/history/nourishment_history.vue
  29. 45 18
      src/xt_pages/user/history/pruritus_history.vue
  30. 54 12
      src/xt_pages/user/history/tumble_history.vue
  31. 12 12
      src/xt_pages/workforce/components/ScheduleItem.vue

+ 18 - 79
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyeight.vue View File

1498
                           医嘱内容
1498
                           医嘱内容
1499
                         </td>
1499
                         </td>
1500
                       </tr>
1500
                       </tr>
1501
-                      <!-- <tr style="line-height:35px;padding:8px 5px;">
1502
-                    <td colspan="4" style="font-size: 16px">开医嘱</td>
1503
-                    <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
1504
-                  </tr> -->
1505
                       <tr style="line-height: 35px; padding: 8px 5px">
1501
                       <tr style="line-height: 35px; padding: 8px 5px">
1506
                         <td style="font-size: 16px" width="10%">时间</td>
1502
                         <td style="font-size: 16px" width="10%">时间</td>
1507
                         <td style="font-size: 16px" colspan="2" width="45%">
1503
                         <td style="font-size: 16px" colspan="2" width="45%">
1510
                         <td style="font-size: 16px" width="10%">医生签名</td>
1506
                         <td style="font-size: 16px" width="10%">医生签名</td>
1511
                         <td style="font-size: 16px" width="10%">时间</td>
1507
                         <td style="font-size: 16px" width="10%">时间</td>
1512
                         <td style="font-size: 16px" width="10%">执行人签名</td>
1508
                         <td style="font-size: 16px" width="10%">执行人签名</td>
1513
-                        <td
1514
-                          style="font-size: 16px"
1515
-                          width="10%"
1516
-                          v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375"
1517
-                        >
1518
-                          核对护士
1519
-                        </td>
1509
+                       
1520
                       </tr>
1510
                       </tr>
1521
-                      <!-- <template v-for="group in doctor_advices" > -->
1522
-
1523
                       <tr
1511
                       <tr
1524
                         v-for="(advice, advice_index) in doctor_advices"
1512
                         v-for="(advice, advice_index) in doctor_advices"
1525
                         :key="advice_index"
1513
                         :key="advice_index"
1528
                           <span v-if="advice.start_time">
1516
                           <span v-if="advice.start_time">
1529
                             {{ getTime(advice.start_time, "{h}:{i}") }}
1517
                             {{ getTime(advice.start_time, "{h}:{i}") }}
1530
                           </span>
1518
                           </span>
1531
-                          <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
1519
+
1532
                         </td>
1520
                         </td>
1533
                         <td
1521
                         <td
1534
                           height="32px"
1522
                           height="32px"
1536
                           class="advice-name"
1524
                           class="advice-name"
1537
                           style="padding-left: 7px"
1525
                           style="padding-left: 7px"
1538
                         >
1526
                         >
1539
-                          <span v-if="advice.parent_id > 0">---></span>
1527
+                      
1528
+                          <span v-if="advice.parent_id > 0"></span>
1540
                           <span>{{ advice.advice_name }}</span>
1529
                           <span>{{ advice.advice_name }}</span>
1541
                           <span v-if="advice && advice.advice_desc"
1530
                           <span v-if="advice && advice.advice_desc"
1542
                             >({{ advice.advice_desc
1531
                             >({{ advice.advice_desc
1563
                             >({{ advice.remark }})</span
1552
                             >({{ advice.remark }})</span
1564
                           >
1553
                           >
1565
                         </td>
1554
                         </td>
1566
-                        <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
1567
-                      <span>{{advice.delivery_way}}</span>
1568
-                      <span>{{advice.execution_frequency}}</span>
1569
-                      <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
1570
-                    </td> -->
1571
-                        <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
1555
+                      
1572
                         <td height="32px">
1556
                         <td height="32px">
1573
                           <span
1557
                           <span
1574
                             v-if="setAdminUserES(advice.advice_doctor) == ''"
1558
                             v-if="setAdminUserES(advice.advice_doctor) == ''"
1582
                             v-else
1566
                             v-else
1583
                           />
1567
                           />
1584
                         </td>
1568
                         </td>
1585
-                        <!-- <td height="35px">
1586
-                      <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
1587
-                      <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
1588
-                    </td> -->
1569
+                       
1589
                         <td height="32px">
1570
                         <td height="32px">
1590
                           <span v-if="advice.execution_time">{{
1571
                           <span v-if="advice.execution_time">{{
1591
                             getTime(advice.execution_time, "{h}:{i}")
1572
                             getTime(advice.execution_time, "{h}:{i}")
1604
                             v-else
1585
                             v-else
1605
                           />
1586
                           />
1606
                         </td>
1587
                         </td>
1607
-
1608
-                        <td height="32px" v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375">
1609
-                          <span v-if="setAdminUserES(advice.checker) == ''">{{
1610
-                            getAdminUser(advice.checker)
1611
-                          }}</span>
1612
-                          <img
1613
-                            style="height: 30px"
1614
-                            :src="setAdminUserES(advice.checker)"
1615
-                            alt=""
1616
-                            srcset=""
1617
-                            v-else
1618
-                          />
1619
-                        </td>
1620
                       </tr>
1588
                       </tr>
1621
-                      <!-- </template> -->
1622
                     </tbody>
1589
                     </tbody>
1623
                   </table>
1590
                   </table>
1624
                 </td>
1591
                 </td>
1820
             </div>
1787
             </div>
1821
           </div>
1788
           </div>
1822
         </template>
1789
         </template>
1790
+
1823
         <div class="row" style="margin-top: -11px; position: relative">
1791
         <div class="row" style="margin-top: -11px; position: relative">
1824
           <table class="proj_table">
1792
           <table class="proj_table">
1825
             <tbody>
1793
             <tbody>
1839
                     医嘱内容
1807
                     医嘱内容
1840
                   </td>
1808
                   </td>
1841
                 </tr>
1809
                 </tr>
1842
-                <!-- <tr style="line-height:35px;padding:8px 5px;">
1843
-                <td colspan="4" style="font-size: 16px">开医嘱</td>
1844
-                <td colspan="3" style="font-size: 16px">执行核对医嘱</td>
1845
-              </tr> -->
1810
+              
1846
                 <tr style="line-height: 35px; padding: 8px 5px">
1811
                 <tr style="line-height: 35px; padding: 8px 5px">
1847
                   <td style="font-size: 15px" width="10%">时间</td>
1812
                   <td style="font-size: 15px" width="10%">时间</td>
1848
                   <td style="font-size: 15px" colspan="2" width="45%">
1813
                   <td style="font-size: 15px" colspan="2" width="45%">
1851
                   <td style="font-size: 15px" width="10%">医生签名</td>
1816
                   <td style="font-size: 15px" width="10%">医生签名</td>
1852
                   <td style="font-size: 15px" width="10%">时间</td>
1817
                   <td style="font-size: 15px" width="10%">时间</td>
1853
                   <td style="font-size: 15px" width="10%">执行人签名</td>
1818
                   <td style="font-size: 15px" width="10%">执行人签名</td>
1854
-                  <td
1855
-                    style="font-size: 15px"
1856
-                    width="10%"
1857
-                    v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375"
1858
-                  >
1859
-                    核对护士
1860
-                  </td>
1819
+                 
1861
                 </tr>
1820
                 </tr>
1862
-                <!-- <template v-for="group in doctor_advices" > -->
1821
+               
1863
                 <tr
1822
                 <tr
1864
                   v-for="(advice, advice_index) in doctor_advices"
1823
                   v-for="(advice, advice_index) in doctor_advices"
1865
                   :key="advice_index"
1824
                   :key="advice_index"
1868
                     <span v-if="advice.start_time">
1827
                     <span v-if="advice.start_time">
1869
                       {{ getTime(advice.start_time, "{h}:{i}") }}
1828
                       {{ getTime(advice.start_time, "{h}:{i}") }}
1870
                     </span>
1829
                     </span>
1871
-                    <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
1830
+                  
1872
                   </td>
1831
                   </td>
1873
                   <td
1832
                   <td
1874
                     height="32px"
1833
                     height="32px"
1876
                     class="advice-name"
1835
                     class="advice-name"
1877
                     style="padding-left: 7px"
1836
                     style="padding-left: 7px"
1878
                   >
1837
                   >
1879
-                    <span v-if="advice.parent_id > 0">---></span>
1838
+                    <span v-if="advice.parent_id > 0"></span>
1880
                     <span>{{ advice.advice_name }}</span>
1839
                     <span>{{ advice.advice_name }}</span>
1881
                     <span v-if="advice && advice.advice_desc"
1840
                     <span v-if="advice && advice.advice_desc"
1882
                       >({{ advice.advice_desc
1841
                       >({{ advice.advice_desc
1903
                       >({{ advice.remark }})</span
1862
                       >({{ advice.remark }})</span
1904
                     >
1863
                     >
1905
                   </td>
1864
                   </td>
1906
-                  <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
1907
-                <span>{{advice.delivery_way}}</span>
1908
-                <span>{{advice.execution_frequency}}</span>
1909
-                <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
1910
-              </td> -->
1911
-                  <!-- <td width="10%" v-if="(advice.children && advice.children.length > 0 || advice.parent_id > 0) && advice.isShow == 2" ></td> -->
1865
+                
1912
                   <td height="32px">
1866
                   <td height="32px">
1913
                     <span
1867
                     <span
1914
                       v-if="setAdminUserES(advice.advice_doctor) == ''"
1868
                       v-if="setAdminUserES(advice.advice_doctor) == ''"
1922
                       v-else
1876
                       v-else
1923
                     />
1877
                     />
1924
                   </td>
1878
                   </td>
1925
-                  <!-- <td height="35px">
1926
-                <span v-if="setAdminUserES(advice.checker) == ''">{{getAdminUser(advice.checker)}}</span>
1927
-                <img style="height:20px;" :src="setAdminUserES(advice.checker)" alt="" srcset="" v-else>
1928
-              </td> -->
1879
+                  
1929
                   <td height="32px">
1880
                   <td height="32px">
1930
                     <span v-if="advice.execution_time">{{
1881
                     <span v-if="advice.execution_time">{{
1931
                       getTime(advice.execution_time, "{h}:{i}")
1882
                       getTime(advice.execution_time, "{h}:{i}")
1945
                     />
1896
                     />
1946
                   </td>
1897
                   </td>
1947
 
1898
 
1948
-                  <td height="32px" v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375">
1949
-                    <span v-if="setAdminUserES(advice.checker) == ''">{{
1950
-                      getAdminUser(advice.checker)
1951
-                    }}</span>
1952
-                    <img
1953
-                      style="height: 30px"
1954
-                      :src="setAdminUserES(advice.checker)"
1955
-                      alt=""
1956
-                      srcset=""
1957
-                      v-else
1958
-                    />
1959
-                  </td>
1960
                 </tr>
1899
                 </tr>
1961
               </template>
1900
               </template>
1962
 
1901
 
2562
          <div style="position: relative; left: 70%;top: 50px;width: 288px;">
2501
          <div style="position: relative; left: 70%;top: 50px;width: 288px;">
2563
           患者签名:
2502
           患者签名:
2564
           <div class="under_line" style="width: 120px;">
2503
           <div class="under_line" style="width: 120px;">
2565
-            <img
2504
+            <!-- <img
2566
               style="height: 30px"
2505
               style="height: 30px"
2567
               :src="dialysisOrder == null? 0: dialysisOrder.url"
2506
               :src="dialysisOrder == null? 0: dialysisOrder.url"
2568
               alt=""
2507
               alt=""
2569
               srcset=""
2508
               srcset=""
2570
-            />
2509
+            /> -->
2571
           </div>
2510
           </div>
2572
         </div>
2511
         </div>
2573
       </div>
2512
       </div>
3679
       
3618
       
3680
         console.log("时间我我我哦我我",this.doctor_advices)
3619
         console.log("时间我我我哦我我",this.doctor_advices)
3681
         if (this.doctor_advices.length <= 6) {
3620
         if (this.doctor_advices.length <= 6) {
3682
-          var nl = 6;
3683
-          this.print_length = 6;
3621
+          var nl = 3;
3622
+          this.print_length = 3;
3684
 
3623
 
3685
           for (let index = 0; index < nl; index++) {
3624
           for (let index = 0; index < nl; index++) {
3686
             if (
3625
             if (

+ 12 - 11
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyfour.vue View File

2
   <div >
2
   <div >
3
     <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
3
     <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
4
     <el-button type="primary" @click="toUpload">一键上传</el-button>
4
     <el-button type="primary" @click="toUpload">一键上传</el-button>
5
-    <div id="dialysis-print-box-64">
5
+    <div >
6
       <div
6
       <div
7
-        id="dialysis-print-box-64-1"
7
+        id="dialysis-print-box-64-1  "
8
         class="dialysis-print-order print-template-two print_page_main_content"
8
         class="dialysis-print-order print-template-two print_page_main_content"
9
+        
9
       >
10
       >
10
-        <div>
11
-          <!-- <div
11
+        <div id="dialysis-print-box-64" style="padding:10px 0 0 40px  ;">
12
+          <!-- <div 10px 0 0 40px
12
             class="order-yy-name"
13
             class="order-yy-name"
13
             style=" letter-spacing: 0;
14
             style=" letter-spacing: 0;
14
                 font-weight: 600;
15
                 font-weight: 600;
24
               <div style="display:inline-block; ;">病历号:
25
               <div style="display:inline-block; ;">病历号:
25
                 {{patientInfo.record_number?patientInfo.record_number:"" }}
26
                 {{patientInfo.record_number?patientInfo.record_number:"" }}
26
               </div>
27
               </div>
27
-              <div style="display:inline-block;margin-left: 90px;">
28
+              <div style="display:inline-block;margin-left: 50px;">
28
                 姓名:{{ patientInfo.name }}
29
                 姓名:{{ patientInfo.name }}
29
               </div>
30
               </div>
30
-              <div style="display:inline-block; margin-left: 90px;">
31
+              <div style="display:inline-block; margin-left: 50px;">
31
                 性别:{{ patientInfo_gender_1 == true ? "男" : "女" }}
32
                 性别:{{ patientInfo_gender_1 == true ? "男" : "女" }}
32
               </div>
33
               </div>
33
-              <div style="display:inline-block; margin-left: 90px;">
34
+              <div style="display:inline-block; margin-left: 50px;">
34
                 年龄:{{ getAge(patientInfo) }}
35
                 年龄:{{ getAge(patientInfo) }}
35
               </div>
36
               </div>
36
-              <div style="display:inline-block; margin-left: 90px;">
37
+              <div style="display:inline-block; margin-left: 50px;">
37
                 透析次数:{{
38
                 透析次数:{{
38
                   patientInfo.total_dialysis +
39
                   patientInfo.total_dialysis +
39
                     patientInfo.user_sys_before_count
40
                     patientInfo.user_sys_before_count
52
                 透析中心:{{ orgname }}
53
                 透析中心:{{ orgname }}
53
               </div>
54
               </div>
54
             </div>
55
             </div>
55
-            <table border="1" cellspacing="0" cellpadding="0" style="border-collapse: collapse; width: 960px; ">
56
+            <table border="1" cellspacing="0" cellpadding="0" style="border-collapse: collapse; width: 100%; ">
56
               <tr>
57
               <tr>
57
                 <td colspan="3" style="border:1px solid black">
58
                 <td colspan="3" style="border:1px solid black">
58
                   <div style="display: inline-block; word-break: break-all;word-wrap: break-word;">
59
                   <div style="display: inline-block; word-break: break-all;word-wrap: break-word;">
1331
           ddpi: window.devicePixelRatio * 4, //将分辨率提高到特定的DPI 提高四倍
1332
           ddpi: window.devicePixelRatio * 4, //将分辨率提高到特定的DPI 提高四倍
1332
           scale: 4, //按比例增加分辨率
1333
           scale: 4, //按比例增加分辨率
1333
           background: '#fff',//pdf背景色为白色,默认是黑色的
1334
           background: '#fff',//pdf背景色为白色,默认是黑色的
1334
-       
1335
         }).then((canvas) => {
1335
         }).then((canvas) => {
1336
           //返回图片dataURL,参数:图片格式和清晰度(0-1)
1336
           //返回图片dataURL,参数:图片格式和清晰度(0-1)
1337
           var pageData = canvas.toDataURL('image/jpeg', 1.0);
1337
           var pageData = canvas.toDataURL('image/jpeg', 1.0);
1340
           var pdf = new jsPDF('', 'pt', 'a4');
1340
           var pdf = new jsPDF('', 'pt', 'a4');
1341
 
1341
 
1342
           //addImage后两个参数控制添加图片的尺寸,此处将页面高度按照a4纸宽高比列进行压缩
1342
           //addImage后两个参数控制添加图片的尺寸,此处将页面高度按照a4纸宽高比列进行压缩
1343
-          pdf.addImage(pageData, 'JPEG', 0, 0, 595.28, 592.28 / canvas.width * canvas.height);
1343
+          // pdf.addImage(pageData, 'JPEG', 0, 0, 595.28, 592.28 / canvas.width * canvas.height);
1344
+          pdf.addImage(pageData, 'JPEG', 0, 0, 555.28, 592.28 / canvas.width * canvas.height);
1344
 
1345
 
1345
           var newBase64Data =  pdf.output("dataurlstring").split("base64,")[1]
1346
           var newBase64Data =  pdf.output("dataurlstring").split("base64,")[1]
1346
           console.log("base63",newBase64Data)
1347
           console.log("base63",newBase64Data)

+ 6 - 8
src/xt_pages/hospitalStation/components/deskPrescription.vue View File

1566
       this.$refs.additionalCharges.hide()
1566
       this.$refs.additionalCharges.hide()
1567
 
1567
 
1568
     }, searchProjectAction() {
1568
     }, searchProjectAction() {
1569
-      console.log('~~~~')
1570
-      
1571
-      // console.log(this.allProject)
1572
-
1569
+      console.log('~~~~',this.search_project_keyword)
1573
 
1570
 
1574
       if (this.search_project_keyword.length == 0) {
1571
       if (this.search_project_keyword.length == 0) {
1575
         this.tabProject = this.allProject
1572
         this.tabProject = this.allProject
1577
       } else {
1574
       } else {
1578
         let arr = []
1575
         let arr = []
1579
         for (let i = 0; i < this.allProject.length; i++) {
1576
         for (let i = 0; i < this.allProject.length; i++) {
1580
-
1581
-            if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1) {
1582
-              arr = arr.concat(this.allProject[i])
1577
+          if(this.allProject[i].first_letter !=undefined){
1578
+            if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1 ||
1579
+              this.allProject[i].first_letter.indexOf(this.search_project_keyword) != -1) {
1580
+                arr = arr.concat(this.allProject[i])
1583
             }
1581
             }
1584
-          
1582
+          }
1585
         }
1583
         }
1586
         this.tabProject = arr
1584
         this.tabProject = arr
1587
       }
1585
       }

+ 6 - 4
src/xt_pages/outpatientCharges/allListPrint.vue View File

13
     </template>
13
     </template>
14
 
14
 
15
     <div class='dialysisPage' style="padding-top:40px;">
15
     <div class='dialysisPage' style="padding-top:40px;">
16
-      <printOne  v-if="org_id != 10215 && org_id != 0 && org_id !=9671&&org_id !=9675" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printOne>
17
-      <summary-print v-if="org_id == 10215|| org_id == 0 || org_id ==9671 ||org_id ==9675" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></summary-print>
18
-
16
+      <printOne  v-if="org_id != 10215 && org_id !=0 && org_id !=9671&&org_id !=9675&& org_id !=10515" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printOne>
17
+      <summary-print v-if="org_id == 10215|| org_id ==9671 ||org_id ==9675" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></summary-print>
18
+      <printTwo v-if="org_id==10515 || org_id==0" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printTwo>
19
 <!--      <list-print-two :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></list-print-two>-->
19
 <!--      <list-print-two :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></list-print-two>-->
20
     </div>
20
     </div>
21
   </div>
21
   </div>
27
   import printOne from './allListTemplate/printOne'
27
   import printOne from './allListTemplate/printOne'
28
   import ListPrintTwo from './listTemplate/listPrintTwo'
28
   import ListPrintTwo from './listTemplate/listPrintTwo'
29
   import SummaryPrint from './allListTemplate/summaryPrint'
29
   import SummaryPrint from './allListTemplate/summaryPrint'
30
+  import printTwo from './allListTemplate/printTwo'
30
 
31
 
31
   export default {
32
   export default {
32
     name: 'allListPrint',
33
     name: 'allListPrint',
33
     components: {
34
     components: {
34
       SummaryPrint,
35
       SummaryPrint,
35
       ListPrintTwo,
36
       ListPrintTwo,
36
-      printOne
37
+      printOne,
38
+      printTwo
37
     },
39
     },
38
     props: {
40
     props: {
39
       paramsObj: Object
41
       paramsObj: Object

+ 189 - 0
src/xt_pages/outpatientCharges/allListTemplate/printTwo.vue View File

1
+<template>
2
+  <div id="allList-print" class="allList-print">
3
+    <div class="allListTitle">{{ $store.getters.xt_user.org.org_name }}费用汇总</div>
4
+      <div class="allListInfo">
5
+        <div>患者姓名:{{ patient.name }}</div>
6
+        <div>透析号:{{ patient.dialysis_no }}</div>
7
+        <div>性别:{{ patient.gender == 1 ? '男' : '女' }}</div>
8
+        <div>年龄:{{ patient.age }} 岁</div>
9
+        <div v-if="$store.getters.xt_user.org_id  == 0">日期:{{ hospital.in_hosptial_time }} 至
10
+          {{ hospital.out_hosptial_time }}
11
+        </div>
12
+        <div v-else>日期:{{ getTimes(order.settle_start_time) }} 至 {{ getTimes(order.settle_end_time) }}</div>
13
+
14
+      </div>
15
+    <div v-for='(i,index) in pageArr.length' :key="index">
16
+      <table class="allListTable" border="1">
17
+        <tr v-if="index==0">
18
+          <td style="width:10%">类别</td>
19
+          <td style="width:50%">项目名称</td>
20
+          <td style="width:10%">规格</td>
21
+          <td style="width:10%">单价(元)</td>
22
+          <td style="width:10%">数量</td>
23
+          <td style="width:10%">金额(元)</td>
24
+        </tr>
25
+        <template v-for='item in list.slice(index * 13,(index * 13) + pageArr[index])'>
26
+          <tr v-if="item.is_total == 2">
27
+            <td style="width:10%">{{ item.med_chrgitm_type }}</td>
28
+            <td style="width:50%">{{ item.name }}</td>
29
+            <td style="width:10%">{{ item.spec }}</td>
30
+            <td style="width:10%">{{ (item.price).toFixed(2) }}</td>
31
+            <td style="width:10%">{{ item.count }}{{ item.unit }}</td>
32
+            <td style="width:10%">{{ (item.price * item.count).toFixed(2) }}</td>
33
+          </tr>
34
+          <tr>
35
+            <td colspan="6" style="text-align:right;" v-if="item.is_total == 1">合计:{{ item.total }}元</td>
36
+          </tr>
37
+        </template>
38
+      </table>
39
+    </div>
40
+    <div class="tableBottom">
41
+      <div class="tableBottomOne">制表人:{{ admin.user_name }}</div>
42
+      <div class="tableBottomOne">制表日期:{{ getNowTime() }}</div>
43
+      <div class="tableBottomOne">总费用:{{ order.medfee_sumamt }}元</div>
44
+    </div>
45
+  </div>
46
+</template>
47
+
48
+<script>
49
+import { uParseTime } from '@/utils/tools'
50
+
51
+export default {
52
+  props: {
53
+    list: {
54
+      type: Array,
55
+      default: function() {
56
+        return []
57
+      }
58
+    }, patient: {
59
+      type: Object,
60
+      default: function() {
61
+        return {}
62
+      }
63
+    }, order: {
64
+      type: Object,
65
+      default: function() {
66
+        return {}
67
+      }
68
+    }, admin: {
69
+      type: Object,
70
+      default: function() {
71
+        return {}
72
+      }
73
+    }, hospital: {
74
+      type: Object,
75
+      default: function() {
76
+        return {}
77
+      }
78
+
79
+    }
80
+  },
81
+  data() {
82
+    return {
83
+      page: 1,
84
+      pageArr: []
85
+    }
86
+  },
87
+  methods: {
88
+    getNowTime: function() {
89
+      let dateTime
90
+      let yy = new Date().getFullYear()
91
+      let mm = new Date().getMonth() + 1
92
+      let dd = new Date().getDate()
93
+      let hh = new Date().getHours()
94
+      let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
95
+          :
96
+          new Date().getMinutes()
97
+      let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
98
+          :
99
+          new Date().getSeconds()
100
+      dateTime = yy + '-' + mm + '-' + dd + ' ' + hh + ':' + mf + ':' + ss
101
+      return dateTime
102
+    },
103
+    getTimes(time) {
104
+      return uParseTime(time, '{y}-{m}-{d}')
105
+    }, getTotal: function(items) {
106
+      let total = 0
107
+      for (let i = 0; i < items.length; i++) {
108
+        total = total + (items[i].count * items[i].price).toFixed(2)
109
+      }
110
+      return total
111
+
112
+    },
113
+    getPage() {
114
+      if (this.list.length <= 13) {
115
+        this.page = 1
116
+        this.pageArr.push(this.list.length)
117
+      } else if (this.list.length > 13) {
118
+        this.page = parseInt(this.list.length / 13)
119
+        let num = this.list.length % 13
120
+        for (var i = 0; i < this.page; i++) {
121
+          this.pageArr.push(13)
122
+        }
123
+        if (num != 0) {
124
+          this.pageArr.push(num)
125
+        }
126
+      }
127
+    }
128
+
129
+  },
130
+  watch: {
131
+    list: {
132
+      handler(newVal) {
133
+        this.getPage()
134
+      },
135
+      deep: true
136
+    }
137
+  }
138
+}
139
+
140
+
141
+</script>
142
+
143
+<style lang="scss" scoped>
144
+.allList-print {
145
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
146
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
147
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
148
+  margin-bottom: 20px;
149
+  padding: 20px 10px;
150
+}
151
+
152
+.allListTitle {
153
+  font-size: 22px;
154
+  text-align: center;
155
+  font-weight: bold;
156
+  margin-bottom: 10px;
157
+}
158
+
159
+.allListInfo {
160
+  display: flex;
161
+  font-size: 14px;
162
+  justify-content: space-between;
163
+  margin: 10px 0;
164
+}
165
+
166
+.allListTable {
167
+  width: 100%;
168
+  text-align: center;
169
+  border-collapse: collapse;
170
+  line-height: 20px;
171
+  font-size: 12px;
172
+  border-color: #000;
173
+  text-align: left;
174
+}
175
+
176
+.allListTable tr td {
177
+  padding: 0 5px;
178
+}
179
+
180
+.tableBottom {
181
+  font-size: 14px;
182
+  display: flex;
183
+  margin-top: 20px;
184
+}
185
+
186
+.tableBottomOne {
187
+  margin-right: 40px;
188
+}
189
+</style>

+ 21 - 5
src/xt_pages/outpatientCharges/statementPrint.vue View File

31
           v-if="org_id == 10138 || org_id == 10278  "
31
           v-if="org_id == 10138 || org_id == 10278  "
32
         ></printThree>
32
         ></printThree>
33
         <printFour
33
         <printFour
34
-          v-if="org_id == 9504 || org_id == 10028 || org_id == 10088 || org_id == 0 "
34
+          v-if="org_id == 9504 || org_id == 10028 || org_id == 10088 "
35
           :info="info"
35
           :info="info"
36
           :paramsObj="paramsObj"
36
           :paramsObj="paramsObj"
37
           :balanceAccounts="balanceAccounts"
37
           :balanceAccounts="balanceAccounts"
55
       </printSeven>
55
       </printSeven>
56
       <print10191 :info="info" v-if="org_id == 10191"></print10191>
56
       <print10191 :info="info" v-if="org_id == 10191"></print10191>
57
       <printTen :info="info" v-if="org_id == 10210"></printTen>
57
       <printTen :info="info" v-if="org_id == 10210"></printTen>
58
-      <printEleven :info="info" v-if="org_id == 10485 || org_id == 0"></printEleven>
58
+      <printEleven :info="info" v-if="org_id == 10485"></printEleven>
59
+      <!-- 阜阳经沃 -->
60
+      <printtwelve :info="info" v-if="org_id == 10480 || org_id == 0"></printtwelve>
61
+
59
       <printOne :info="info" v-if=" org_id != 9990 &&
62
       <printOne :info="info" v-if=" org_id != 9990 &&
60
             org_id != 10138 &&
63
             org_id != 10138 &&
61
             org_id != 9504 &&
64
             org_id != 9504 &&
92
 import Print10191 from './statementTemplate/print10191'
95
 import Print10191 from './statementTemplate/print10191'
93
 import printTen from './statementTemplate/printTen'
96
 import printTen from './statementTemplate/printTen'
94
 import printEleven from './statementTemplate/printeEleven'
97
 import printEleven from './statementTemplate/printeEleven'
95
-
98
+import printtwelve from './statementTemplate/printtwelve'
96
 export default {
99
 export default {
97
   name: 'dialysisPrintOrder',
100
   name: 'dialysisPrintOrder',
98
   components: {
101
   components: {
107
     testVue,
110
     testVue,
108
     printFive,
111
     printFive,
109
     printTen,
112
     printTen,
110
-    printEleven
113
+    printEleven,
114
+    printtwelve
111
   },
115
   },
112
   props: {
116
   props: {
113
     paramsObj: Object
117
     paramsObj: Object
302
           //   scanStyles: false,
306
           //   scanStyles: false,
303
           // });
307
           // });
304
         } else if (
308
         } else if (
305
-          this.$store.getters.xt_user.org_id == 10485 || this.$store.getters.xt_user.org_id == 0
309
+          this.$store.getters.xt_user.org_id == 10485
306
         ) {
310
         ) {
307
           const style =
311
           const style =
308
             '@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table tr td {padding: 5px;line-height: 30px;border: none;}'
312
             '@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table tr td {padding: 5px;line-height: 30px;border: none;}'
313
             scanStyles: false
317
             scanStyles: false
314
           })
318
           })
315
 
319
 
320
+        }else if (
321
+          this.$store.getters.xt_user.org_id == 10480 || this.$store.getters.xt_user.org_id == 0
322
+        ) {
323
+          const style =
324
+            '@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table tr td {padding: 2px;line-height: 30px;border: 1px solid black;text-align: center;}'
325
+          printJS({
326
+            printable: 'statement-print',
327
+            type: 'html',
328
+            style: style,
329
+            scanStyles: false
330
+          })
331
+
316
         } else {
332
         } else {
317
           const style =
333
           const style =
318
             '@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}'
334
             '@media print {#statement-print{font-size:14px;border:1px solid white}.statementTitle{font-size: 22px;text-align: center;font-weight: bold;}table{border-collapse: collapse;text-align: center;}table td {padding: 10px 5px;font-size:16px;}@media print {html {zoom: 57%;}}}'

+ 172 - 0
src/xt_pages/outpatientCharges/statementTemplate/printtwelve.vue View File

1
+<template>
2
+  <div id="statement-print" class="statement-print">
3
+    <div class="statementTitle">
4
+      阜阳市医疗保险费用结算单
5
+    </div>
6
+    <div style="display: flex;">
7
+      <div style="flex: 1;">结算ID:3412202310179024873</div>
8
+      <div style="flex: 1;">结算日期:2023-10-17 13:22:18</div>
9
+      <div style="flex: 1;">医疗类别:门诊慢病</div>
10
+    </div>
11
+    <div style="display: flex;margin: 10px 0 5px 0;">
12
+      <div style="flex: 1;">医院编号:H34122202353</div>
13
+      <div style="flex: 2;">医院机构名称: 太和沃迪康血液透析中心</div>
14
+    </div>
15
+    <div class='statementTable'>
16
+      <table border="1" style="border-collapse: collapse;width: 100%;">
17
+        <tr>
18
+          <td>姓名</td>
19
+          <td>王怀国</td>
20
+          <td>性别</td>
21
+          <td>男</td>
22
+          <td>个人编号</td>
23
+          <td>34120000000017060193</td>
24
+          <td>人员类别</td>
25
+          <td>普通居民(成年)</td>
26
+        </tr>
27
+        <tr>
28
+          <td colspan="2">身份证号</td>
29
+          <td colspan="2">341222198004156833</td>
30
+          <td colspan="2">险种</td>
31
+          <td colspan="2">城乡居民基本医疗保险</td>
32
+        </tr>
33
+        <tr>
34
+          <td>入院日期</td>
35
+          <td>2023-10-17</td>
36
+          <td>出院日期</td>
37
+          <td>2023-10-17</td>
38
+          <td>治疗方式编码</td>
39
+          <td>ZLFS00373</td>
40
+          <td>治疗方式名称</td>
41
+          <td></td>
42
+        </tr>
43
+        <tr>
44
+          <td colspan="2">出院诊断编码</td>
45
+          <td colspan="2">N19.x01</td>
46
+          <td colspan="2">出院诊断名称</td>
47
+          <td colspan="2">尿毒症</td>
48
+        </tr>
49
+
50
+        <tr>
51
+          <td colspan="2">医疗费用发生额</td>
52
+          <td colspan="2">符合范围费用</td>
53
+          <td colspan="2">部分自付</td>
54
+          <td colspan="1">全额自费</td>
55
+          <td colspan="1">超限价费用</td>
56
+        </tr>
57
+        <tr>
58
+          <td colspan="2">280</td>
59
+          <td colspan="2">196</td>
60
+          <td colspan="2">84</td>
61
+          <td colspan="1">0</td>
62
+          <td colspan="1">0</td>
63
+        </tr>
64
+
65
+        <tr>
66
+          <td colspan="2">实际支付起付线</td>
67
+          <td colspan="2">0</td>
68
+          <td colspan="2">基本医疗保险统筹基金支出</td>
69
+          <td colspan="2">166.6</td>
70
+        </tr>
71
+        <tr>
72
+          <td colspan="2">公务员医疗补助基金支出</td>
73
+          <td colspan="2">0</td>
74
+          <td colspan="2">职工大额医疗费用补助基金支出</td>
75
+          <td colspan="2">0</td>
76
+        </tr>
77
+        <tr>
78
+          <td colspan="2">居民大病保险基金支出</td>
79
+          <td colspan="2">0</td>
80
+          <td colspan="2">医疗救助基金支出</td>
81
+          <td colspan="2">166.6</td>
82
+        </tr>
83
+        <tr>
84
+          <td colspan="2">其他基金支出</td>
85
+          <td colspan="2">0</td>
86
+          <td colspan="2">基金支付总额</td>
87
+          <td colspan="2">166.6</td>
88
+        </tr>
89
+        <tr>
90
+          <td colspan="2">个人账户支出</td>
91
+          <td colspan="2">0</td>
92
+          <td colspan="2">个人现金支出</td>
93
+          <td colspan="2">166.6</td>
94
+        </tr>
95
+        <tr>
96
+          <td colspan="2">余额</td>
97
+          <td colspan="2">0</td>
98
+          <td colspan="2">个人负担总金额</td>
99
+          <td colspan="2">166.6</td>
100
+        </tr>
101
+        <tr>
102
+          <td colspan="2">个人账户共济支付金额</td>
103
+          <td colspan="2">0</td>
104
+          <td colspan="2"></td>
105
+          <td colspan="2"></td>
106
+        </tr>
107
+
108
+        <tr>
109
+          <td colspan="1">序号</td>
110
+          <td colspan="2">基金支付类型名称</td>
111
+          <td colspan="2">基金支付金额</td>
112
+          <td colspan="2">本次可支付限额金额</td>
113
+          <td colspan="1">符合政策范围金额</td>
114
+        </tr>
115
+        <tr>
116
+          <td colspan="1">1</td>
117
+          <td colspan="2">城乡居民基本医疗保险基金</td>
118
+          <td colspan="2">166.6</td>
119
+          <td colspan="2">0</td>
120
+          <td colspan="1">196</td>
121
+        </tr>
122
+        <tr>
123
+          <td colspan="1">2</td>
124
+          <td colspan="2">城乡居民大病医疗保险基金</td>
125
+          <td colspan="2">73</td>
126
+          <td colspan="2">0</td>
127
+          <td colspan="1">196</td>
128
+        </tr>
129
+        <tr>
130
+          <td colspan="1">3</td>
131
+          <td colspan="2">医疗救助基金</td>
132
+          <td colspan="2">29.77</td>
133
+          <td colspan="2">0</td>
134
+          <td colspan="1">196</td>
135
+        </tr>
136
+      </table>
137
+    </div>
138
+    <div style="display: flex;">
139
+      <div style="flex: 1;">制表人:太和沃迪康血液诱析中心</div>
140
+      <div style="flex: 1;">打印日期: 2023-10-17 15:39</div>
141
+      <div style="flex: 1;">医院(盖章):</div>
142
+    </div>
143
+  </div>
144
+</template>
145
+
146
+
147
+<style lang="scss" scoped>
148
+.statement-print {
149
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
150
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
151
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
152
+  margin-bottom: 20px;
153
+  padding: 20px 10px;
154
+}
155
+.statementTitle {
156
+  font-size: 28px;
157
+  text-align: center;
158
+  font-weight: bold;
159
+  margin-bottom: 10px;
160
+}
161
+.statementTable {
162
+  width: 100%;
163
+  font-size: 14px;
164
+  table tr td{
165
+    padding: 5px;
166
+    line-height: 30px;
167
+    border: 1px solid black;
168
+    text-align: center;
169
+  }
170
+}
171
+
172
+</style>

+ 10 - 9
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

1589
 
1589
 
1590
     }, searchProjectAction() {
1590
     }, searchProjectAction() {
1591
       console.log('~~~~',this.search_project_keyword)
1591
       console.log('~~~~',this.search_project_keyword)
1592
-      // console.log(this.allProject)
1592
+      console.log('5555',this.tabProject)
1593
+      console.log('6666',this.allProject)
1594
+      // console.log('4444',this.tabProject[1].first_letter.indexOf(this.search_project_keyword) != -1)
1593
       if (this.search_project_keyword.length == 0) {
1595
       if (this.search_project_keyword.length == 0) {
1594
         this.tabProject = this.allProject
1596
         this.tabProject = this.allProject
1595
-
1596
       } else {
1597
       } else {
1597
         let arr = []
1598
         let arr = []
1598
         for (let i = 0; i < this.allProject.length; i++) {
1599
         for (let i = 0; i < this.allProject.length; i++) {
1599
-         
1600
-            if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1) {
1600
+          if(this.allProject[i].first_letter != undefined){
1601
+            // console.log('4444',this.tabProject[i].first_letter.indexOf(this.search_project_keyword) != -1)
1602
+            if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1 ||
1603
+                this.allProject[i].first_letter.indexOf(this.search_project_keyword) != -1) {
1601
               arr = arr.concat(this.allProject[i])
1604
               arr = arr.concat(this.allProject[i])
1602
             }
1605
             }
1603
-          
1606
+          }
1604
         }
1607
         }
1605
         this.tabProject = arr
1608
         this.tabProject = arr
1606
         console.log('kkkk',this.tabProject);
1609
         console.log('kkkk',this.tabProject);
1628
         let arr = []
1631
         let arr = []
1629
         for (let i = 0; i < this.drugs.length; i++) {
1632
         for (let i = 0; i < this.drugs.length; i++) {
1630
           if (this.drugs[i].drug_name.indexOf(this.search_keyword) != -1 ||
1633
           if (this.drugs[i].drug_name.indexOf(this.search_keyword) != -1 ||
1631
-           this.drugs[i].wubi.indexOf(this.search_keyword) != -1 || 
1634
+           this.drugs[i].wubi.indexOf(this.search_keyword) != -1 ||
1632
            this.drugs[i].pinyin.indexOf(this.search_keyword) != -1 ||
1635
            this.drugs[i].pinyin.indexOf(this.search_keyword) != -1 ||
1633
            this.drugs[i].first_letter.indexOf(this.search_keyword) != -1
1636
            this.drugs[i].first_letter.indexOf(this.search_keyword) != -1
1634
            ) {
1637
            ) {
3544
 
3547
 
3545
           var good_info = response.data.data.good_info
3548
           var good_info = response.data.data.good_info
3546
 
3549
 
3547
-
3548
           for (let i = 0; i < good_info.length; i++) {
3550
           for (let i = 0; i < good_info.length; i++) {
3549
              good_info[i].stock_count = 0
3551
              good_info[i].stock_count = 0
3550
             if(good_info[i].good_stock_in&&good_info[i].good_stock_in.length >0 ){
3552
             if(good_info[i].good_stock_in&&good_info[i].good_stock_in.length >0 ){
3552
                  good_info[i].stock_count += good_info[i].good_stock_in[j].stock_count
3554
                  good_info[i].stock_count += good_info[i].good_stock_in[j].stock_count
3553
               }
3555
               }
3554
             }
3556
             }
3555
-
3556
             let obj = {
3557
             let obj = {
3557
               id: good_info[i].id,
3558
               id: good_info[i].id,
3558
               project_name: good_info[i].good_name,
3559
               project_name: good_info[i].good_name,
3573
             }
3574
             }
3574
             this.tabProject.push(obj)
3575
             this.tabProject.push(obj)
3575
           }
3576
           }
3576
-
3577
+          console.log('3333', this.tabProject);
3577
           this.allProject = this.tabProject
3578
           this.allProject = this.tabProject
3578
           // console.log('cccc',this.allProject);
3579
           // console.log('cccc',this.allProject);
3579
         }
3580
         }

+ 62 - 62
src/xt_pages/user/components/PatientSidebar.vue View File

207
             },
207
             },
208
           ]
208
           ]
209
         },
209
         },
210
-        {
211
-          name: '5',
212
-          label: '评估工具',
213
-          children: [
214
-            {
215
-              name: '5-1',
216
-              label: '跌倒评估'
217
-            },
218
-            {
219
-              name: '5-2',
220
-              label: '小儿跌倒风险评估'
221
-            },
222
-            {
223
-              name: '5-3',
224
-              label: '压疮风险评估'
225
-            },
226
-            {
227
-              name: '5-4',
228
-              label: 'OH压疮评估'
229
-            },
230
-            {
231
-              name: '5-5',
232
-              label: '日常生活能力评估'
233
-            },
234
-            {
235
-              name: '5-6',
236
-              label: '导管脱落风险评估'
237
-            },
238
-            {
239
-              name: '5-7',
240
-              label: 'RASS及疼痛评估'
241
-            },
242
-            {
243
-              name: '5-8',
244
-              label: '营养状况评估'
245
-            },
246
-            {
247
-              name: '5-9',
248
-              label: '约束告知单'
249
-            },
250
-            {
251
-              name: '5-10',
252
-              label: '心理评估'
253
-            },
254
-            {
255
-              name: '5-11',
256
-              label: '瘙痒评估'
257
-            },
258
-            {
259
-              name: '5-12',
260
-              label: '血液透析患者评估'
261
-            },
262
-            {
263
-              name: '5-13',
264
-              label: 'Glasgow昏迷评分量表'
265
-            },
266
-            {
267
-              name: '5-14',
268
-              label: '肌力评估表'
269
-            },
270
-          ]
271
-        },
210
+        // {
211
+        //   name: '5',
212
+        //   label: '评估工具',
213
+        //   children: [
214
+        //     {
215
+        //       name: '5-1',
216
+        //       label: '跌倒评估'
217
+        //     },
218
+        //     {
219
+        //       name: '5-2',
220
+        //       label: '小儿跌倒风险评估'
221
+        //     },
222
+        //     {
223
+        //       name: '5-3',
224
+        //       label: '压疮风险评估'
225
+        //     },
226
+        //     {
227
+        //       name: '5-4',
228
+        //       label: 'OH压疮评估'
229
+        //     },
230
+        //     {
231
+        //       name: '5-5',
232
+        //       label: '日常生活能力评估'
233
+        //     },
234
+        //     {
235
+        //       name: '5-6',
236
+        //       label: '导管脱落风险评估'
237
+        //     },
238
+        //     {
239
+        //       name: '5-7',
240
+        //       label: 'RASS及疼痛评估'
241
+        //     },
242
+        //     {
243
+        //       name: '5-8',
244
+        //       label: '营养状况评估'
245
+        //     },
246
+        //     {
247
+        //       name: '5-9',
248
+        //       label: '约束告知单'
249
+        //     },
250
+        //     {
251
+        //       name: '5-10',
252
+        //       label: '心理评估'
253
+        //     },
254
+        //     {
255
+        //       name: '5-11',
256
+        //       label: '瘙痒评估'
257
+        //     },
258
+        //     {
259
+        //       name: '5-12',
260
+        //       label: '血液透析患者评估'
261
+        //     },
262
+        //     {
263
+        //       name: '5-13',
264
+        //       label: 'Glasgow昏迷评分量表'
265
+        //     },
266
+        //     {
267
+        //       name: '5-14',
268
+        //       label: '肌力评估表'
269
+        //     },
270
+        //   ]
271
+        // },
272
 
272
 
273
       ],
273
       ],
274
       name:""
274
       name:""

+ 1 - 1
src/xt_pages/user/evaluationtool/Cathetershedding.vue View File

1
 <template>
1
 <template>
2
     <div class="patient-container">
2
     <div class="patient-container">
3
-        <patient-sidebar :id="patientID" defaultActive="5-5"></patient-sidebar>
3
+        <patient-sidebar :id="patientID" defaultActive="5-6"></patient-sidebar>
4
         <div>
4
         <div>
5
             <div class="patient-app-container advice-container app-container">
5
             <div class="patient-app-container advice-container app-container">
6
                 <div class='content_top' style="width: 100%;margin-bottom: 20px;">
6
                 <div class='content_top' style="width: 100%;margin-bottom: 20px;">

+ 4 - 4
src/xt_pages/user/evaluationtool/Fallassessment.vue View File

4
       <patient-sidebar :id="patient_id" defaultActive="5-1"></patient-sidebar>
4
       <patient-sidebar :id="patient_id" defaultActive="5-1"></patient-sidebar>
5
       <div>
5
       <div>
6
         <div class="patient-app-container advice-container app-container">
6
         <div class="patient-app-container advice-container app-container">
7
-          <div class='content_top' style="width: 95%;margin-bottom: 20px;">
7
+          <div class='content_top' style="width: 97%;margin-bottom: 20px;">
8
             <div style="font-size: 20px">跌倒评估评分</div>
8
             <div style="font-size: 20px">跌倒评估评分</div>
9
             <div>
9
             <div>
10
               <el-button @click="Historicalscore">历史评分</el-button>
10
               <el-button @click="Historicalscore">历史评分</el-button>
12
             </div>
12
             </div>
13
           </div>
13
           </div>
14
 
14
 
15
-          <div class='content_top' style="width: 95%;">
15
+          <div class='content_top' style="width: 97%;">
16
             <div style="width: 49%; ">
16
             <div style="width: 49%; ">
17
               <div style="margin-bottom: 50px;">
17
               <div style="margin-bottom: 50px;">
18
                 <div class="biaotou content_top">
18
                 <div class="biaotou content_top">
152
                 </div>
152
                 </div>
153
                 <div>
153
                 <div>
154
                   <span>护士:</span>
154
                   <span>护士:</span>
155
-                  <el-select v-model="Nurse" placeholder="请选择" >
155
+                  <el-select v-model="Nurse" placeholder="请选择" style="width:120px;">
156
                     <el-option
156
                     <el-option
157
                       v-for="item in options"
157
                       v-for="item in options"
158
                       :key="item.value"
158
                       :key="item.value"
159
                       :label="item.label"
159
                       :label="item.label"
160
                       :value="item.value"
160
                       :value="item.value"
161
-                      style="width:150px;">
161
+                      >
162
                     </el-option>
162
                     </el-option>
163
                   </el-select>
163
                   </el-select>
164
                 </div>
164
                 </div>

+ 99 - 22
src/xt_pages/user/evaluationtool/Glasgow.vue View File

34
                     <td>
34
                     <td>
35
                       <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
35
                       <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
36
                         <span v-for="item in zhengyan" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
36
                         <span v-for="item in zhengyan" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
37
-                          <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
37
+                          <label><input type="checkbox" class="checkbox1" name="ball" :value="item.value" />&nbsp;{{ item.label }}</label>
38
                         </span>
38
                         </span>
39
                       </div>
39
                       </div>
40
                     </td>
40
                     </td>
44
                     <td class="start">言语反映 (V)</td>
44
                     <td class="start">言语反映 (V)</td>
45
                     <td>
45
                     <td>
46
                       <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
46
                       <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
47
-                        <span v-for="item in yanyu" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
48
-                          <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
47
+                        <span v-for="item in yanyu" class="ttbwzz-type-a" @change="yuyan_change">
48
+                          <label><input type="checkbox" class="checkbox2" name="ball" :value="item.value" />&nbsp;{{ item.label }}</label>
49
                         </span>
49
                         </span>
50
                       </div>
50
                       </div>
51
                     </td>
51
                     </td>
55
                     <td class="start">运动反应(M)</td>
55
                     <td class="start">运动反应(M)</td>
56
                     <td>
56
                     <td>
57
                       <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
57
                       <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
58
-                        <span v-for="item in yundong" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
59
-                          <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
58
+                        <span v-for="item in yundong" class="ttbwzz-type-a" @change="yundong_change">
59
+                          <label><input type="checkbox" class="checkbox3" name="ball" :value="item.value" />&nbsp;{{ item.label }}</label>
60
                         </span>
60
                         </span>
61
                       </div>
61
                       </div>
62
                     </td>
62
                     </td>
120
               :data="history_Glasgow"
120
               :data="history_Glasgow"
121
               stripe
121
               stripe
122
               border
122
               border
123
+              @row-click="glasgow_click"
124
+              :highlight-current-row="true"
123
               :header-cell-style="{
125
               :header-cell-style="{
124
                   background: '#0077ff9f',color:'white'}"
126
                   background: '#0077ff9f',color:'white'}"
125
               style="width: 100%">
127
               style="width: 100%">
209
               <div style="vertical-align: top;  margin: 10px 0px; position: relative;">
211
               <div style="vertical-align: top;  margin: 10px 0px; position: relative;">
210
                   <span style="position: relative; top: -55px;">护理措施:</span>
212
                   <span style="position: relative; top: -55px;">护理措施:</span>
211
                   <div style="margin-top: 20px;display: inline-block; width: 85%;height: 80px;">
213
                   <div style="margin-top: 20px;display: inline-block; width: 85%;height: 80px;">
212
-                      
214
+
213
                   </div>
215
                   </div>
214
               </div>
216
               </div>
215
-              
217
+
216
             </div>
218
             </div>
217
           </div>
219
           </div>
218
         </div>
220
         </div>
219
       </div>
221
       </div>
220
-      
222
+
221
     </el-dialog>
223
     </el-dialog>
224
+
222
     </div>
225
     </div>
226
+     <!-- 删除弹窗 -->
227
+     <el-dialog
228
+      title="提示"
229
+      :visible.sync="dele_dialogVisible"
230
+      width="30%">
231
+      <span>确认删除该数据</span>
232
+      <span slot="footer" class="dialog-footer">
233
+        <el-button @click="dele_Cancel">取 消</el-button>
234
+        <el-button type="primary" @click="deleclick">确 定</el-button>
235
+      </span>
236
+    </el-dialog>
223
   </div>
237
   </div>
224
 </template>
238
 </template>
225
 <script>
239
 <script>
237
       value1:'',
251
       value1:'',
238
       value:'',
252
       value:'',
239
       input:'',
253
       input:'',
240
-      Glasgow_Totalpoints:null,
254
+      zhengyan_num:null,
255
+      yuyan_num:null,
256
+      yundong_num:null,
241
       options:[],
257
       options:[],
242
       tableData:[],
258
       tableData:[],
243
-      zhengyan:['自动睁眼(4分)','互换睁眼(3分)','刺激睁眼(2分)','无反应(1分)'],
244
-      yanyu:['正常(5分)','不准确回答问题(4分)','不恰当词句(3分)','不能理解的言语(2分)','无言语反映(1分)'],
245
-      yundong:['能按指令运动肢体(6分)','对刺痛能定位(5分)','对刺痛能躲避(4分)','刺痛肢体屈曲(3分)','刺痛肢体过伸(2分)','无反应(1分)'],
259
+      zhengyan:[{value:4,label:'自动睁眼(4分)'},{value:3,label:'互换睁眼(3分)'},{value:2,label:'刺激睁眼(2分)'},{value:1,label:'无反应(1分)'}],
260
+      yanyu:[{value:5,label:'正常(5分)'},{value:4,label:'不准确回答问题(4分)'},{value:3,label:'不恰当词句(3分)'},{value:2,label:'不能理解的言语(2分)'},{value:1,label:'无言语反映(1分)'}],
261
+      yundong:[{value:6,label:'能按指令运动肢体(6分)'},{value:5,label:'对刺痛能定位(5分)'},{value:4,label:'对刺痛能躲避(4分)'},{value:3,label:'刺痛肢体屈曲(3分)'},{value:2,label:'刺痛肢体过伸(2分)'},{value:1,label:'无反应(1分)'}],
246
       pinggr:[{id:1,label:'小米'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
262
       pinggr:[{id:1,label:'小米'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
247
       history_Glasgow:[{date:'2023-9-27',mark:'',evaluate:''}],
263
       history_Glasgow:[{date:'2023-9-27',mark:'',evaluate:''}],
248
 
264
 
252
       Glas_baoxiao:false,
268
       Glas_baoxiao:false,
253
       cancel_num:0,
269
       cancel_num:0,
254
       Glas_pinggu:null,
270
       Glas_pinggu:null,
255
-      open_print:false
271
+      open_print:false,
272
+      dele_id:'',
273
+      dele_dialogVisible:false,
256
     }
274
     }
257
   },
275
   },
258
   methods:{
276
   methods:{
259
     handleCheckedCitiesChange(e){
277
     handleCheckedCitiesChange(e){
260
       var ball = e.target.value
278
       var ball = e.target.value
261
-      var jiequ =(ball.split('(')[1].split('分')[0]) * 1
262
-      if(e.target.checked==true){
263
-        this.Glasgow_Totalpoints=this.Glasgow_Totalpoints + jiequ
264
-        return this.Glasgow_Totalpoints
265
-      }else{
266
-        this.Glasgow_Totalpoints=this.Glasgow_Totalpoints-jiequ
267
-        return this.Glasgow_Totalpoints
279
+      // var jiequ =(ball.split('(')[1].split('分')[0]) * 1
280
+      // if(e.target.checked==true){
281
+      //   this.Glasgow_Totalpoints=this.Glasgow_Totalpoints + jiequ
282
+      //   return this.Glasgow_Totalpoints
283
+      // }else{
284
+      //   this.Glasgow_Totalpoints=this.Glasgow_Totalpoints-jiequ
285
+      //   return this.Glasgow_Totalpoints
286
+      // }
287
+      const checkboxs=document.getElementsByClassName('checkbox1')
288
+      for(let i=0;i<checkboxs.length;i++){
289
+        if(ball==checkboxs[i].value ){
290
+          console.log('vvvv',ball,'bbbb',e.target.checked);
291
+          this.zhengyan_num = checkboxs[i].value
292
+          checkboxs[i].checked=true
293
+        }else{
294
+          checkboxs[i].checked = false
295
+        }
296
+      }
297
+    },
298
+    yuyan_change(e){
299
+      var ball = e.target.value
300
+      const checkboxs=document.getElementsByClassName('checkbox2')
301
+      for(let i=0;i<checkboxs.length;i++){
302
+        if(ball==checkboxs[i].value ){
303
+          console.log('vvvv',ball,'bbbb',e.target.checked);
304
+          this.yuyan_num = checkboxs[i].value
305
+          checkboxs[i].checked=true
306
+        }else{
307
+          checkboxs[i].checked = false
308
+        }
309
+      }
310
+    },
311
+    yundong_change(e){
312
+      var ball = e.target.value
313
+      const checkboxs=document.getElementsByClassName('checkbox3')
314
+      for(let i=0;i<checkboxs.length;i++){
315
+        if(ball==checkboxs[i].value ){
316
+          console.log('vvvv',ball,'bbbb',e.target.checked);
317
+          this.yundong_num = checkboxs[i].value
318
+          checkboxs[i].checked=true
319
+        }else{
320
+          checkboxs[i].checked = false
321
+        }
268
       }
322
       }
269
-
270
     },
323
     },
271
     Glas_add(){
324
     Glas_add(){
272
       this.cancel_num=0
325
       this.cancel_num=0
301
       this.Glasadd_show=false
354
       this.Glasadd_show=false
302
       this.cancel_num =1
355
       this.cancel_num =1
303
     },
356
     },
357
+    glasgow_click(row,column, event){
358
+      this.dele_id=row.id
359
+    },
304
     Glas_dele(){
360
     Glas_dele(){
305
       this.append=false
361
       this.append=false
306
       this.Glas_gzdayin=false
362
       this.Glas_gzdayin=false
307
       this.Glasadd_show=true
363
       this.Glasadd_show=true
308
       this.Glas_baoxiao=false
364
       this.Glas_baoxiao=false
309
       this.cancel_num=0
365
       this.cancel_num=0
366
+      this.dele_dialogVisible=true
367
+    },
368
+    deleclick(){
369
+      for(let i=0;i<this.history_Glasgow.length;i++){
370
+        if(this.dele_id==this.history_Glasgow[i].id){
371
+          this.history_Glasgow.splice(i,1)
372
+        }
373
+      }
374
+      this.dele_dialogVisible=false
375
+    },
376
+    dele_Cancel(){
377
+      this.append=false
378
+      this.Glasadd_show=true
379
+      this.Glas_gzdayin=true
380
+      this.dele_dialogVisible=false
310
     },
381
     },
311
     Glas_quxiao(){
382
     Glas_quxiao(){
312
       // console.log('1111',this.cancel_num);
383
       // console.log('1111',this.cancel_num);
333
         scanStyles: false
404
         scanStyles: false
334
       })
405
       })
335
       this.open_print=false
406
       this.open_print=false
407
+    },
408
+
409
+  },
410
+  computed:{
411
+    Glasgow_Totalpoints(){
412
+      return this.zhengyan_num*1 + this.yuyan_num*1 + this.yundong_num*1
336
     }
413
     }
337
   }
414
   }
338
 }
415
 }
405
     z-index: -1;
482
     z-index: -1;
406
 }
483
 }
407
 .tables {
484
 .tables {
408
-  
485
+
409
   thead th{
486
   thead th{
410
     text-align: center;
487
     text-align: center;
411
     height: 40px;
488
     height: 40px;

+ 62 - 25
src/xt_pages/user/evaluationtool/Muscleforce.vue View File

97
                       <td class="start">{{ item.title }}</td>
97
                       <td class="start">{{ item.title }}</td>
98
                       <td>
98
                       <td>
99
                         <div class="jiange">
99
                         <div class="jiange">
100
-                          <label style="font-size: 15px;"><input type="checkbox" name="ball" :value="item.value" @change="handleCheckedCitiesChange"/>&nbsp;{{ item.value }}</label>
100
+                          <label style="font-size: 15px;"><input type="checkbox" class="checkbox" name="ball" :value="item.value" @change="handleCheckedCitiesChange"/>&nbsp;{{ item.label }}</label>
101
                         </div>
101
                         </div>
102
                       </td>
102
                       </td>
103
                     </tr>
103
                     </tr>
154
                   :data="history_muscle"
154
                   :data="history_muscle"
155
                   stripe
155
                   stripe
156
                   border
156
                   border
157
+                  @row-click="Muscle_click"
157
                   :highlight-current-row="true"
158
                   :highlight-current-row="true"
158
                   :header-cell-style="{
159
                   :header-cell-style="{
159
                       background: '#0077ff9f',color:'white'
160
                       background: '#0077ff9f',color:'white'
181
 
182
 
182
       </div>
183
       </div>
183
 
184
 
184
-      <el-dialog
185
+
186
+    </div>
187
+    <!-- 打印 -->
188
+    <el-dialog
185
       title="提示"
189
       title="提示"
186
       :visible.sync="open_print"
190
       :visible.sync="open_print"
187
       width="67%"
191
       width="67%"
224
                       <!-- <el-input maxlength="200" type = "textarea" :rows="3" v-model="input" placeholder="输入护理措施,200字以内" ></el-input> -->
228
                       <!-- <el-input maxlength="200" type = "textarea" :rows="3" v-model="input" placeholder="输入护理措施,200字以内" ></el-input> -->
225
                   </div>
229
                   </div>
226
               </div>
230
               </div>
227
-              
231
+
228
             </div>
232
             </div>
229
           </div>
233
           </div>
230
         </div>
234
         </div>
231
       </div>
235
       </div>
232
-      
233
-    </el-dialog>
234
-    </div>
235
 
236
 
237
+    </el-dialog>
238
+    <!-- 删除弹窗 -->
239
+    <el-dialog
240
+      title="提示"
241
+      :visible.sync="dele_dialogVisible"
242
+      width="30%">
243
+      <span>确认删除该数据</span>
244
+      <span slot="footer" class="dialog-footer">
245
+        <el-button @click="dele_Cancel">取 消</el-button>
246
+        <el-button type="primary" @click="deleclick">确 定</el-button>
247
+      </span>
248
+    </el-dialog>
236
   </div>
249
   </div>
237
 </template>
250
 </template>
238
 <script>
251
 <script>
256
       options:[],
269
       options:[],
257
       tableData:[],
270
       tableData:[],
258
       shuju:[
271
       shuju:[
259
-        {title:'0级',value:'肌肉完全不收缩'},
260
-        {title:'1级',value:'可见肌肉收缩但无肢体运动'},
261
-        {title:'2级',value:'肢体能在床上移动,但不能抬离床面,即不能对抗地心引力'},
262
-        {title:'3级',value:'肢体能抬离床面,克服地心引力做随意运动,但不能对抗外加阻力'},
263
-        {title:'4级',value:'能在一般的外加阻力下作运动,但力量较正常弱'},
264
-        {title:'5级',value:' 正常肌力'},
272
+        {title:'0级',label:'肌肉完全不收缩',value:0},
273
+        {title:'1级',label:'可见肌肉收缩但无肢体运动',value:1},
274
+        {title:'2级',label:'肢体能在床上移动,但不能抬离床面,即不能对抗地心引力',value:2},
275
+        {title:'3级',label:'肢体能抬离床面,克服地心引力做随意运动,但不能对抗外加阻力',value:3},
276
+        {title:'4级',label:'能在一般的外加阻力下作运动,但力量较正常弱',value:4},
277
+        {title:'5级',label:' 正常肌力',value:5},
265
       ],
278
       ],
266
-      history_muscle:[{date:'2023-9-27',mark:'',evaluate:''}],
279
+      history_muscle:[{id:'001',date:'2023-9-27',mark:'',evaluate:''}],
267
       pinggr:[{id:1,label:'小米'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
280
       pinggr:[{id:1,label:'小米'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
268
       append:false,
281
       append:false,
269
       add_open:1,
282
       add_open:1,
271
       baocun_quxiao:false,
284
       baocun_quxiao:false,
272
       muscle_gsdayin:false,
285
       muscle_gsdayin:false,
273
       cancel_num:0,
286
       cancel_num:0,
274
-      open_print:false
287
+      open_print:false,
288
+      dele_id:'',
289
+      dele_dialogVisible:false,
275
     }
290
     }
276
   },
291
   },
277
   methods:{
292
   methods:{
278
     handleCheckedCitiesChange(e){
293
     handleCheckedCitiesChange(e){
279
-      for(let i=0;i<this.shuju.length;i++){
280
-        if(e.target.value == this.shuju[i].value ){
281
-          const arr= (this.shuju[i].title.split('级')[0])
282
-          if(e.target.checked == true){
283
-          this.Mus_Totalpoints = arr
284
-          }else{
285
-          this.Mus_Totalpoints =0
286
-          }
287
-          console.log('33333',arr);
294
+      console.log('6666',e.target.value);
295
+      const ball = e.target.value
296
+      const checkboxs=document.getElementsByClassName('checkbox')
297
+      for(let i=0;i<checkboxs.length;i++){
298
+        if(ball==checkboxs[i].value ){
299
+          console.log('vvvv',this.ball,'bbbb',e.target.checked);
300
+          this.Mus_Totalpoints = checkboxs[i].value
301
+          checkboxs[i].checked=true
302
+        }else{
303
+          checkboxs[i].checked = false
288
         }
304
         }
289
       }
305
       }
290
     },
306
     },
318
         }
334
         }
319
       }
335
       }
320
     },
336
     },
337
+    Muscle_click(row,column, event){
338
+      this.dele_id=row.id
339
+    },
321
     muscle_dele(){
340
     muscle_dele(){
322
       this.muscle_gsdayin=false
341
       this.muscle_gsdayin=false
323
       this.baocun_quxiao = false
342
       this.baocun_quxiao = false
324
       this.append=false
343
       this.append=false
325
       this.muscle_pinggu=null
344
       this.muscle_pinggu=null
345
+      this.dele_dialogVisible=true
346
+    },
347
+    deleclick(){
348
+      for(let i=0;i<this.history_muscle.length;i++){
349
+        if(this.dele_id==this.history_muscle[i].id){
350
+          this.history_muscle.splice(i,1)
351
+        }
352
+      }
353
+      this.dele_dialogVisible=false
354
+    },
355
+    dele_Cancel(){
356
+      this.dele_dialogVisible=false
357
+      this.muscle_gsdayin=true
358
+      this.muscle_show=true
359
+      this.baocun_quxiao=false
360
+      this.append=false
326
     },
361
     },
327
     muscle_cancel(){
362
     muscle_cancel(){
328
       if(this.cancel_num==0){
363
       if(this.cancel_num==0){
353
         scanStyles: false
388
         scanStyles: false
354
       })
389
       })
355
       this.open_print=false
390
       this.open_print=false
356
-    }
391
+    },
392
+
393
+
357
   }
394
   }
358
 }
395
 }
359
 </script>
396
 </script>
415
     z-index: -1;
452
     z-index: -1;
416
 }
453
 }
417
 .tables {
454
 .tables {
418
-  
455
+
419
   thead th{
456
   thead th{
420
     // background: #0077ff9f;
457
     // background: #0077ff9f;
421
     // color: white;
458
     // color: white;

+ 122 - 27
src/xt_pages/user/evaluationtool/OHpressuresore.vue View File

37
                               <td>
37
                               <td>
38
                                   <div class="jiange">
38
                                   <div class="jiange">
39
                                       <span v-for="item in tiwei" class="rightjiange" @change="handleCheckedCitiesChange">
39
                                       <span v-for="item in tiwei" class="rightjiange" @change="handleCheckedCitiesChange">
40
-                                          <label><input type="checkbox" name="ball" :value="item"/>&nbsp;{{ item }}</label>
40
+                                          <label><input type="checkbox" class="checkbox1" name="ball" :value="item.value"/>&nbsp;{{ item.label }}</label>
41
                                       </span>
41
                                       </span>
42
                                   </div>
42
                                   </div>
43
                               </td>
43
                               </td>
46
                               <td class="start">病理性骨突出</td>
46
                               <td class="start">病理性骨突出</td>
47
                               <td>
47
                               <td>
48
                                   <div class="jiange">
48
                                   <div class="jiange">
49
-                                      <span v-for="item in bingli" class="rightjiange" @change="handleCheckedCitiesChange">
50
-                                          <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
49
+                                      <span v-for="item in bingli" class="rightjiange" @change="bingligu">
50
+                                          <label><input type="checkbox" class="checkbox2" name="ball" :value="item.value" />&nbsp;{{ item.label }}</label>
51
                                       </span>
51
                                       </span>
52
                                   </div>
52
                                   </div>
53
                               </td>
53
                               </td>
57
                               <td class="start">浮肿</td>
57
                               <td class="start">浮肿</td>
58
                               <td>
58
                               <td>
59
                                   <div class="jiange">
59
                                   <div class="jiange">
60
-                                      <span v-for="item in edema" class="rightjiange" @change="handleCheckedCitiesChange">
61
-                                          <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
60
+                                      <span v-for="item in edema" class="rightjiange" @change="fozhong_chang">
61
+                                          <label><input type="checkbox" class="checkbox3" name="ball" :value="item.value" />&nbsp;{{ item.label }}</label>
62
                                       </span>
62
                                       </span>
63
                                   </div>
63
                                   </div>
64
                               </td>
64
                               </td>
68
                               <td class="start">关节痉挛</td>
68
                               <td class="start">关节痉挛</td>
69
                                 <td>
69
                                 <td>
70
                                   <div class="jiange">
70
                                   <div class="jiange">
71
-                                      <span v-for="item in guanjie" class="rightjiange" @change="handleCheckedCitiesChange">
72
-                                          <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
71
+                                      <span v-for="item in guanjie" class="rightjiange" @change="guanjie_change">
72
+                                          <label><input type="checkbox" class="checkbox4" name="ball" :value="item.value" />&nbsp;{{ item.label }}</label>
73
                                       </span>
73
                                       </span>
74
                                   </div>
74
                                   </div>
75
                               </td>
75
                               </td>
137
               :data="history_OH"
137
               :data="history_OH"
138
               stripe
138
               stripe
139
               border
139
               border
140
+              @row-click="dele_click"
141
+              :highlight-current-row="true"
140
               :header-cell-style="{
142
               :header-cell-style="{
141
                   background: '#0077ff9f',color:'white'}"
143
                   background: '#0077ff9f',color:'white'}"
142
               style="width: 100%">
144
               style="width: 100%">
160
           </div>
162
           </div>
161
         </div>
163
         </div>
162
       </div>
164
       </div>
163
-      
165
+
166
+
167
+    </div>
168
+    <!-- 打印 -->
164
     <el-dialog
169
     <el-dialog
165
       title="提示"
170
       title="提示"
166
       :visible.sync="open_print"
171
       :visible.sync="open_print"
252
           </div>
257
           </div>
253
         </div>
258
         </div>
254
       </div>
259
       </div>
255
-      
260
+
261
+    </el-dialog>
262
+    <!-- 删除弹窗 -->
263
+    <el-dialog
264
+      title="提示"
265
+      :visible.sync="dele_dialogVisible"
266
+      width="30%">
267
+      <span>确认删除该数据</span>
268
+      <span slot="footer" class="dialog-footer">
269
+        <el-button @click="dele_Cancel">取 消</el-button>
270
+        <el-button type="primary" @click="deleclick">确 定</el-button>
271
+      </span>
256
     </el-dialog>
272
     </el-dialog>
257
-    </div>
258
   </div>
273
   </div>
259
 </template>
274
 </template>
260
 <script>
275
 <script>
267
   data(){
282
   data(){
268
     return{
283
     return{
269
       patientID:0,
284
       patientID:0,
270
-      Totalpoints:null,
285
+      tiwei_num:null,
286
+      bingli_num:null,
287
+      edema_num:null,
288
+      gaunjie_num:null,
271
       ball:'',
289
       ball:'',
272
       input:'',
290
       input:'',
273
-      history_OH:[{date:'2023-9-27',mark:'',evaluate:''}],
291
+      history_OH:[{id:'001',date:'2023-9-27',mark:'',evaluate:''}],
274
       form:[],
292
       form:[],
275
       appraiser:null,
293
       appraiser:null,
276
       value1:'',
294
       value1:'',
277
       options:[],
295
       options:[],
278
-      tiwei:['能(0分)','不能完全自立(1.5分)','不能(3分)'],
279
-      bingli:['无(0分)','轻度/中度(1.5分)','高度(3分)'],
280
-      edema:['无(0分)','有(3分)'],
281
-      guanjie:['无(0分)','有(1分)'],
296
+      tiwei:[{value:0,label:'能(0分)'},{value:1.5,label:'不能完全自立(1.5分)'},{value:3,label:'不能(3分)'}],
297
+      bingli:[{value:0,label:'无(0分)'},{value:1.5,label:'轻度/中度(1.5分)'},{value:3,label:'高度(3分)'}],
298
+      edema:[{value:0,label:'无(0分)'},{value:3,label:'有(3分)'}],
299
+      guanjie:[{value:0,label:'无(0分)'},{value:1,label:'有(1分)'}],
282
       pinggr:[{id:1,label:'小米'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
300
       pinggr:[{id:1,label:'小米'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
283
       checkList:[],
301
       checkList:[],
284
       checkList1:[],
302
       checkList1:[],
292
       zsgy_open:0,//控制编辑,删除,打印显示
310
       zsgy_open:0,//控制编辑,删除,打印显示
293
       cancel_num:0,//取消的条件
311
       cancel_num:0,//取消的条件
294
       open_print:false,
312
       open_print:false,
313
+      dele_id:'',//删除的索引
314
+      dele_dialogVisible:false
295
     }
315
     }
296
   },
316
   },
297
   methods:{
317
   methods:{
298
     //选择的总分
318
     //选择的总分
299
     handleCheckedCitiesChange(e){
319
     handleCheckedCitiesChange(e){
300
-      this.ball = e.target.value
301
-      var jiequ =(this.ball.split('(')[1].split('分')[0]) * 1
302
-      if(e.target.checked==true){
303
-        this.Totalpoints=this.Totalpoints + jiequ
304
-        console.log('22222 .slice(1)',this.ball);
305
-        console.log('3333333333',this.Totalpoints);
306
-        return this.Totalpoints
307
-      }else{
308
-        this.Totalpoints=this.Totalpoints-jiequ
309
-        return this.Totalpoints
320
+      const ball = e.target.value
321
+      const checkboxs=document.getElementsByClassName('checkbox1')
322
+      for(let i=0;i<checkboxs.length;i++){
323
+        if(ball==checkboxs[i].value ){
324
+            console.log('vvvv',ball,'bbbb',e.target.checked);
325
+            this.tiwei_num = checkboxs[i].value
326
+            e.target.checked=true
327
+            checkboxs[i].checked=true
328
+        }else{
329
+          checkboxs[i].checked = false
330
+        }
331
+        // if(checkboxs[i].checked == true){
332
+        //   if(ball==checkboxs[i].value){
333
+        //     checkboxs[i].checked=false
334
+        //   }
335
+        // }
336
+      }
337
+    },
338
+    bingligu(e){
339
+      const ball=e.target.value
340
+      const checkboxs=document.getElementsByClassName('checkbox2')
341
+      for(let i=0;i<checkboxs.length;i++){
342
+        if(ball==checkboxs[i].value ){
343
+          console.log('vvvv',ball,'bbbb',e.target.checked);
344
+          this.bingli_num = checkboxs[i].value
345
+          checkboxs[i].checked=true
346
+        }else{
347
+          checkboxs[i].checked = false
348
+        }
349
+      }
350
+    },
351
+    fozhong_chang(e){
352
+      const ball=e.target.value
353
+      const checkboxs=document.getElementsByClassName('checkbox3')
354
+      for(let i=0;i<checkboxs.length;i++){
355
+        if(ball==checkboxs[i].value ){
356
+          console.log('vvvv',ball,'bbbb',e.target.checked);
357
+          this.edema_num = checkboxs[i].value
358
+          checkboxs[i].checked=true
359
+        }else{
360
+          checkboxs[i].checked = false
361
+        }
362
+      }
363
+    },
364
+    guanjie_change(e){
365
+      const ball=e.target.value
366
+      const checkboxs=document.getElementsByClassName('checkbox4')
367
+      for(let i=0;i<checkboxs.length;i++){
368
+        if(ball==checkboxs[i].value ){
369
+          console.log('vvvv',ball,'bbbb',e.target.checked);
370
+          this.gaunjie_num= checkboxs[i].value
371
+          checkboxs[i].checked=true
372
+        }else{
373
+          checkboxs[i].checked = false
374
+        }
310
       }
375
       }
311
-
312
     },
376
     },
313
     // 新增
377
     // 新增
314
     OHadd(){
378
     OHadd(){
352
       this.baocun_open=1
416
       this.baocun_open=1
353
       this.cancel_num=1
417
       this.cancel_num=1
354
     },
418
     },
419
+    dele_click(row, column, event){
420
+      this.dele_id=row.id
421
+    },
355
     //删除
422
     //删除
356
     dele_OH(){
423
     dele_OH(){
357
       this.zsgy_open=0
424
       this.zsgy_open=0
358
       this.append=false
425
       this.append=false
426
+      this.dele_dialogVisible=true
427
+    },
428
+    deleclick(){
429
+      for(let i=0;i<this.history_OH.length;i++){
430
+        if(this.dele_id==this.history_OH[i].id){
431
+          this.history_OH.splice(i,1)
432
+        }
433
+      }
434
+      this.dele_dialogVisible=false
359
     },
435
     },
360
     //打印
436
     //打印
361
     print_OH(){
437
     print_OH(){
362
       this.open_print=true
438
       this.open_print=true
363
     },
439
     },
440
+    dele_Cancel(){
441
+      this.append=false
442
+      this.zsgy_open=1
443
+      this.add_show=true
444
+      this.dele_dialogVisible=false
445
+    },
364
     //取消
446
     //取消
365
     cancel_OH(){
447
     cancel_OH(){
448
+      const checkboxs=document.getElementsByClassName('ball')
366
       this.baocun_open=0
449
       this.baocun_open=0
367
       console.log('1111',this.cancel_num);
450
       console.log('1111',this.cancel_num);
368
       if(this.cancel_num==1){
451
       if(this.cancel_num==1){
372
         this.zsgy_open=0
455
         this.zsgy_open=0
373
         this.add_show=true
456
         this.add_show=true
374
         this.append=false
457
         this.append=false
458
+        this.tiwei_num=''
459
+        this.bingli_num=null
460
+        this.edema_num=null
461
+        this.gaunjie_num=null
462
+        for(let i=0;i<checkboxs.length;i++){
463
+          checkboxs[i].checked = false
464
+        }
375
       }
465
       }
376
 
466
 
377
     },
467
     },
385
       })
475
       })
386
       this.open_print=false
476
       this.open_print=false
387
     }
477
     }
478
+  },
479
+  computed:{
480
+    Totalpoints(){
481
+      return this.gaunjie_num*1 + this.edema_num*1 + this.bingli_num*1 + this.tiwei_num*1
482
+    }
388
   }
483
   }
389
 }
484
 }
390
 </script>
485
 </script>

+ 14 - 8
src/xt_pages/user/evaluationtool/RassAssessment.vue View File

1
 <template>
1
 <template>
2
     <div class="patient-container">
2
     <div class="patient-container">
3
-        <patient-sidebar :id="patientID" defaultActive="5-6"></patient-sidebar>
3
+        <patient-sidebar :id="patientID" defaultActive="5-7"></patient-sidebar>
4
         <div>
4
         <div>
5
             <div class="patient-app-container advice-container app-container">
5
             <div class="patient-app-container advice-container app-container">
6
                 <div class='content_top' style="width: 100%;margin-bottom: 20px;">
6
                 <div class='content_top' style="width: 100%;margin-bottom: 20px;">
196
                                         <img :src="item.imgs" alt="">
196
                                         <img :src="item.imgs" alt="">
197
                                       </div>
197
                                       </div>
198
                                       <span>
198
                                       <span>
199
-                                        <label >
199
+                                        <!-- <el-radio :label="item.text" :value="item.value" :key="index" style="color: black;" ></el-radio> -->
200
+                                        <!-- <label >
200
                                         <input type="radio" :value="item.value"  name="ttpggj-bqf" @click="radioclick($event,item.value)">
201
                                         <input type="radio" :value="item.value"  name="ttpggj-bqf" @click="radioclick($event,item.value)">
201
-                                        {{item.text}}</label>
202
+                                        {{item.text}}</label> -->
203
+                                        <el-radio-group v-model="radio1" @change="radioclick($event,item.value)">
204
+                                          <el-radio  :label="item.text" :value="item.value" :key="index" style="color: black;" >
205
+                                          </el-radio>
206
+                                      </el-radio-group>
202
                                       </span>
207
                                       </span>
203
                                     </div>
208
                                     </div>
204
                                   </div>
209
                                   </div>
544
           }
549
           }
545
         }
550
         }
546
       },
551
       },
547
-      radioclick(e,val){
548
-        if(e.target.checked == true){
549
-          this.radio_val =val
552
+      radioclick(e,value){
553
+        console.log('2222',e,value);
554
+        if(e == this.radio1){
555
+          this.radio_val =value
550
         }
556
         }
551
       },
557
       },
552
       yuyanchange(e){
558
       yuyanchange(e){
566
         // this.shijue = val
572
         // this.shijue = val
567
         this.shijue_val =val
573
         this.shijue_val =val
568
         console.log('00000',val);
574
         console.log('00000',val);
569
-         
575
+
570
       },
576
       },
571
       click_NRS(val){
577
       click_NRS(val){
572
         this.NRS_val = val
578
         this.NRS_val = val
594
           return this.behav_val
600
           return this.behav_val
595
           // this.$refs.behavior.getTotalpoints()
601
           // this.$refs.behavior.getTotalpoints()
596
         }
602
         }
597
-        
603
+
598
       }
604
       }
599
     }
605
     }
600
 }
606
 }

+ 67 - 50
src/xt_pages/user/evaluationtool/behavior.vue View File

51
           </table>
51
           </table>
52
         </div>
52
         </div>
53
         <div v-if="radio == '老年痴呆症量表'">
53
         <div v-if="radio == '老年痴呆症量表'">
54
-          <table border="1" class="table">
54
+          <table border="1" class="table" style="white-space:pre-wrap;">
55
             <thead>
55
             <thead>
56
               <tr>
56
               <tr>
57
-                <td>老年痴呆症疼痛估量表</td>
58
-                <td>0</td>
59
-                <td>1</td>
60
-                <td>2</td>
57
+                <td style="width: 17%;">老年痴呆症疼痛估量表</td>
58
+                <td style="width: 27%;">0</td>
59
+                <td style="width: 27%;">1</td>
60
+                <td style="width: 27%;">2</td>
61
               </tr>
61
               </tr>
62
             </thead>
62
             </thead>
63
-            <tbody>
64
-              <tr class="bg_color">
63
+             <tbody>
64
+             <tr class="bg_color">
65
                 <td>1、呼吸</td>
65
                 <td>1、呼吸</td>
66
-                <td v-for="(item,index) in laor_huxi" :key="index">
67
-                  <el-radio v-model="radio_lrhuxi" :label="item.value" @change="laorhuxi">{{ item.label }}</el-radio>
66
+                <td v-for="(item,index) in laor_huxi" :key="index" >
67
+                  <div>
68
+                    <el-radio v-model="radio_lrhuxi" :label="item.value" @change="laorhuxi"
69
+                    style="white-space: normal;">
70
+                    {{ item.label }}
71
+                    </el-radio>
72
+                  </div>
68
                 </td>
73
                 </td>
69
               </tr>
74
               </tr>
70
               <tr class="">
75
               <tr class="">
71
                 <td>2、负面声音表达</td>
76
                 <td>2、负面声音表达</td>
72
                 <td v-for="(item,index) in laor_fumian" :key="index">
77
                 <td v-for="(item,index) in laor_fumian" :key="index">
73
-                  <el-radio v-model="radio_lrfumian" :label="item.value" @change="laorhuxi">{{ item.label }}</el-radio>
78
+                  <div style="Word-break: break-all">
79
+                    <el-radio v-model="radio_lrfumian" :label="item.value" @change="laorhuxi"
80
+                    style="white-space: normal;">{{ item.label }}</el-radio>
81
+                  </div>
74
                 </td>
82
                 </td>
75
               </tr>
83
               </tr>
76
-              <tr class="bg_color">
84
+               <tr class="bg_color">
77
                 <td>3、面部表情</td>
85
                 <td>3、面部表情</td>
78
                 <td v-for="(item,index) in laor_mianbu" :key="index">
86
                 <td v-for="(item,index) in laor_mianbu" :key="index">
79
-                  <el-radio v-model="radio_lrmianbu" :label="item.value" @change="laorhuxi">{{ item.label }}</el-radio>
87
+                  <el-radio v-model="radio_lrmianbu" :label="item.value" @change="laorhuxi"
88
+                  style="white-space: normal;">{{ item.label }}</el-radio>
80
                 </td>
89
                 </td>
81
               </tr>
90
               </tr>
82
               <tr class="">
91
               <tr class="">
83
                 <td>4、身体语言</td>
92
                 <td>4、身体语言</td>
84
                 <td v-for="(item,index) in laor_shengti" :key="index">
93
                 <td v-for="(item,index) in laor_shengti" :key="index">
85
-                  <el-radio v-model="radio_lrshengti" :label="item.value" @change="laorhuxi">{{ item.label }}</el-radio>
94
+                  <el-radio v-model="radio_lrshengti" :label="item.value" @change="laorhuxi"
95
+                  style="white-space: normal;">{{ item.label }}</el-radio>
86
                 </td>
96
                 </td>
87
               </tr>
97
               </tr>
88
               <tr class="bg_color">
98
               <tr class="bg_color">
89
                 <td>5、可安抚程度</td>
99
                 <td>5、可安抚程度</td>
90
                 <td v-for="(item,index) in laor_keanfu" :key="index">
100
                 <td v-for="(item,index) in laor_keanfu" :key="index">
91
-                  <el-radio v-model="radio_lrkeanfu" :label="item.value" @change="laorhuxi">{{ item.label }}</el-radio>
101
+                  <el-radio v-model="radio_lrkeanfu" :label="item.value" @change="laorhuxi"
102
+                  style="white-space: normal;">{{ item.label }}</el-radio>
92
                 </td>
103
                 </td>
93
               </tr>
104
               </tr>
94
             </tbody>
105
             </tbody>
108
               <tr class="bg_color">
119
               <tr class="bg_color">
109
                 <td>1、面部表情</td>
120
                 <td>1、面部表情</td>
110
                 <td v-for="(item,index) in zhongzhen_mianbu" :key="index">
121
                 <td v-for="(item,index) in zhongzhen_mianbu" :key="index">
111
-                  <el-radio v-model="radio_zzmianbu" :label="item.value" @change="zhongzheng">{{ item.label }}</el-radio>
122
+                  <el-radio v-model="radio_zzmianbu" :label="item.value" @change="zhongzheng"
123
+                  style="white-space: normal;">{{ item.label }}</el-radio>
112
                 </td>
124
                 </td>
113
               </tr>
125
               </tr>
114
               <tr class="">
126
               <tr class="">
115
                 <td>2、身体运动</td>
127
                 <td>2、身体运动</td>
116
                 <td v-for="(item,index) in zhongzhen_shengti" :key="index">
128
                 <td v-for="(item,index) in zhongzhen_shengti" :key="index">
117
-                  <el-radio v-model="radio_zzshengti" :label="item.value" @change="zhongzheng">{{ item.label }}</el-radio>
129
+                  <el-radio v-model="radio_zzshengti" :label="item.value" @change="zhongzheng"
130
+                  style="white-space: normal;">{{ item.label }}</el-radio>
118
                 </td>
131
                 </td>
119
               </tr>
132
               </tr>
120
               <tr class="bg_color">
133
               <tr class="bg_color">
121
                 <td>3、肌紧张(对上肢被动屈伸的评估)</td>
134
                 <td>3、肌紧张(对上肢被动屈伸的评估)</td>
122
                 <td v-for="(item,index) in zhongzhen_jjinz" :key="index">
135
                 <td v-for="(item,index) in zhongzhen_jjinz" :key="index">
123
-                  <el-radio v-model="radio_zzjjinz" :label="item.value" @change="zhongzheng">{{ item.label }}</el-radio>
136
+                  <el-radio v-model="radio_zzjjinz" :label="item.value" @change="zhongzheng"
137
+                  style="white-space: normal;">{{ item.label }}</el-radio>
124
                 </td>
138
                 </td>
125
               </tr>
139
               </tr>
126
               <tr class="">
140
               <tr class="">
127
                 <td>4、机械通气的顺应(插管患者)</td>
141
                 <td>4、机械通气的顺应(插管患者)</td>
128
                 <td v-for="(item,index) in zhongzhen_jixie" :key="index">
142
                 <td v-for="(item,index) in zhongzhen_jixie" :key="index">
129
-                  <el-radio v-model="radio_zzjixie" :label="item.value" @change="zhongzheng">{{ item.label }}</el-radio>
143
+                  <el-radio v-model="radio_zzjixie" :label="item.value" @change="zhongzheng"
144
+                  style="white-space: normal;">{{ item.label }}</el-radio>
130
                 </td>
145
                 </td>
131
               </tr>
146
               </tr>
132
               <tr class="bg_color">
147
               <tr class="bg_color">
133
                 <td>5、发声(未插管患者)</td>
148
                 <td>5、发声(未插管患者)</td>
134
                 <td v-for="(item,index) in zhongzhen_fashen" :key="index">
149
                 <td v-for="(item,index) in zhongzhen_fashen" :key="index">
135
-                  <el-radio v-model="radio_zzfasheng" :label="item.value" @change="zhongzheng">{{ item.label }}</el-radio>
150
+                  <el-radio v-model="radio_zzfasheng" :label="item.value" @change="zhongzheng"
151
+                  style="white-space: normal;">{{ item.label }}</el-radio>
136
                 </td>
152
                 </td>
137
               </tr>
153
               </tr>
138
             </tbody>
154
             </tbody>
260
       mianbu_val:0,
276
       mianbu_val:0,
261
       shengti_val:0,
277
       shengti_val:0,
262
       keanfu_val:0,
278
       keanfu_val:0,
263
-      
279
+
264
       zzmian_val:0,
280
       zzmian_val:0,
265
       zzshengti_val:0,
281
       zzshengti_val:0,
266
       zzjjinz_val:0,
282
       zzjjinz_val:0,
353
     //   }else if (this.radio == '2月-7岁患者量表') {
369
     //   }else if (this.radio == '2月-7岁患者量表') {
354
     //     return this.hzface_val + this.hzleg_val + this.hzactiv_val + this.hzcry_val + this.hzcon_val
370
     //     return this.hzface_val + this.hzleg_val + this.hzactiv_val + this.hzcry_val + this.hzcon_val
355
     //   }
371
     //   }
356
-      
372
+
357
     // }
373
     // }
358
   }
374
   }
359
 
375
 
361
 </script>
377
 </script>
362
 
378
 
363
 <style lang="scss" scoped>
379
 <style lang="scss" scoped>
364
-    .jiange{
365
-        margin-left: 20px;
366
-        color: black;
367
-        line-height: 40px;
368
-    }
369
-    .table{
370
-        border: 1px solid #DCDFE6;
371
-        border-collapse:collapse;
372
-        border-spacing: 0;
373
-        width: 98%;
374
-        margin:10px auto;
375
-        thead td{
376
-            text-align: center;
377
-        }
378
-        tbody td{
379
-            font-size: 15px;
380
-            padding: 5px;
381
-        }
382
-        tr td{
383
-            line-height: 30px;
384
-        }
385
-        .bg_color{
386
-            background: rgb(243, 240, 240);
387
-        }
388
-        input{
389
-            -webkit-appearance: checkbox;
390
-        }
391
-    }
392
-</style>
380
+  .jiange{
381
+      margin-left: 20px;
382
+      color: black;
383
+      line-height: 40px;
384
+  }
385
+  .table{
386
+      border: 1px solid #DCDFE6;
387
+      border-collapse:collapse;
388
+      border-spacing: 0;
389
+      width: 98%;
390
+      margin:10px auto;
391
+      thead td{
392
+          text-align: center;
393
+      }
394
+      tbody td{
395
+          font-size: 15px;
396
+          padding: 5px;
397
+      }
398
+      tr td{
399
+          line-height: 30px;
400
+      }
401
+      .bg_color{
402
+          background: rgb(243, 240, 240);
403
+      }
404
+      input{
405
+          -webkit-appearance: checkbox;
406
+      }
407
+  }
408
+
409
+</style>

+ 239 - 184
src/xt_pages/user/evaluationtool/dailyLife.vue View File

1
 <!--  日常生活能力评估 -->
1
 <!--  日常生活能力评估 -->
2
 <template>
2
 <template>
3
     <div class="patient-container">
3
     <div class="patient-container">
4
-        <patient-sidebar :id="patientID" defaultActive="5-4"></patient-sidebar>
4
+        <patient-sidebar :id="patientID" defaultActive="5-5"></patient-sidebar>
5
         <div>
5
         <div>
6
             <div class="patient-app-container advice-container app-container">
6
             <div class="patient-app-container advice-container app-container">
7
 
7
 
14
 
14
 
15
                 <div>
15
                 <div>
16
                   <table class="table" border="1" style="width: 100%;">
16
                   <table class="table" border="1" style="width: 100%;">
17
-                      <thead>
18
-                        <tr>
19
-                          <th style="width: 150px;">项目</th>
20
-                          <th colspan="4">分值</th>
21
-                        </tr>
22
-                      </thead>
23
-                      <tbody>
24
-                        <tr class="bg_color">
25
-                          <td class="start">进食</td>
26
-                          <td v-for="(item,index) in jinshi" :key="index">
27
-                              <div class="jiange">
28
-                                <span>
29
-                                  <label><input type="checkbox" name="ball" :value="item.value" @click="jinshiclick($event,item.value)"/>&nbsp;
30
-                                      {{ item.label }}
31
-                                  </label>
32
-                                </span>
33
-                              </div>
34
-                          </td>
35
-                          <td>&nbsp;</td>
36
-                        </tr>
37
-                        <tr>
38
-                          <td class="start">洗澡</td>
39
-                          <td v-for="(item,index) in xizao" :key="index">
17
+                    <thead>
18
+                      <tr>
19
+                        <th style="width: 150px;">项目</th>
20
+                        <th colspan="4">分值</th>
21
+                      </tr>
22
+                    </thead>
23
+                    <tbody>
24
+                      <tr class="bg_color">
25
+                        <td class="start">进食</td>
26
+                        <td v-for="(item,index) in jinshi" :key="index">
27
+                          <div class="jiange">
28
+                            <span>
29
+                              <label><input type="checkbox" class="checkbox1" name="ball" :value="item.value" @click="jinshiclick($event,item.value)"/>&nbsp;
30
+                                  {{ item.label }}
31
+                              </label>
32
+                            </span>
33
+                          </div>
34
+                        </td>
35
+                        <td>&nbsp;</td>
36
+                      </tr>
37
+                      <tr>
38
+                        <td class="start">洗澡</td>
39
+                        <td v-for="(item,index) in xizao" :key="index">
40
+                          <div class="jiange">
41
+                            <span>
42
+                              <label><input type="checkbox" class="checkbox2" name="ball" :value="item.value" @click="xizaoclick($event,item.value)"/>&nbsp;
43
+                                  {{ item.label }}
44
+                              </label>
45
+                            </span>
46
+                          </div>
47
+                        </td>
48
+                        <td></td>
49
+                        <td></td>
50
+                      </tr>
51
+                      <tr class="bg_color">
52
+                        <td class="start">修饰</td>
53
+                        <td v-for="(item,index) in xiushi" :key="index">
40
                             <div class="jiange">
54
                             <div class="jiange">
41
                               <span>
55
                               <span>
42
-                                <label><input type="checkbox" name="ball" :value="item.value" @click="xizaoclick($event,item.value)"/>&nbsp;
43
-                                    {{ item.label }}
44
-                                </label>
45
-                              </span>
46
-                            </div>
47
-                          </td>
48
-                          <td></td>
49
-                          <td></td>
50
-                        </tr>
51
-                        <tr class="bg_color">
52
-                          <td class="start">修饰</td>
53
-                          <td v-for="(item,index) in xiushi" :key="index">
54
-                              <div class="jiange">
55
-                                <span>
56
-                                  <label><input type="checkbox" name="ball" :value="item.value" @click="xiushiclick($event,item.value)"/>&nbsp;
57
-                                      {{item.label}}
58
-                                  </label>
59
-                                </span>
60
-                              </div>
61
-                          </td>
62
-                          <td></td>
63
-                          <td></td>
64
-                        </tr>
65
-                        <tr>
66
-                          <td class="start">穿衣</td>
67
-                          <td v-for="(item,index) in chuanyi" :key="index">
68
-                            <div class="jiange">
69
-                              <span>
70
-                                <label><input type="checkbox" name="ball" :value="item.value" @click="chuanyiclick($event,item.value)"/>&nbsp;
71
-                                    {{item.label}}
72
-                                </label>
73
-                              </span>
74
-                            </div>
75
-                          </td>
76
-                          <td></td>
77
-                        </tr>
78
-                        <tr class="bg_color">
79
-                          <td class="start">控制大便</td>
80
-                          <td v-for="(item,index) in dabian" :key="index">
81
-                            <div class="jiange">
82
-                              <span>
83
-                                <label><input type="checkbox" name="ball" :value="item.value" @click="dabianclick($event,item.value)"/>&nbsp;
84
-                                    {{item.label}}
85
-                                </label>
86
-                              </span>
87
-                            </div>
88
-                          </td>
89
-                          <td></td>
90
-                        </tr>
91
-                        <tr>
92
-                          <td class="start">控制小便</td>
93
-                          <td v-for="(item,index) in xioabian" :key="index">
94
-                            <div class="jiange">
95
-                              <span>
96
-                                <label><input type="checkbox" name="ball" :value="item.value" @click="xioabianclick($event,item.value)"/>&nbsp;
97
-                                    {{item.label}}
98
-                                </label>
99
-                              </span>
100
-                            </div>
101
-                          </td>
102
-                          <td></td>
103
-                        </tr>
104
-                        <tr class="bg_color">
105
-                          <td class="start">如厕</td>
106
-                          <td v-for="(item,index) in ruce" :key="index">
107
-                            <div class="jiange">
108
-                              <span>
109
-                                <label><input type="checkbox" name="ball" :value="item.value" @click="ruceclick($event,item.value)"/>&nbsp;
110
-                                    {{item.label}}
111
-                                </label>
112
-                              </span>
113
-                            </div>
114
-                          </td>
115
-                          <td></td>
116
-                        </tr>
117
-                        <tr>
118
-                          <td class="start">床椅转移</td>
119
-                          <td v-for="(item,index) in chuangyi" :key="index">
120
-                            <div class="jiange">
121
-                              <span>
122
-                                <label><input type="checkbox" name="ball" :value="item.value" @click="chuangyiclick($event,item.value)"/>&nbsp;
56
+                                <label><input type="checkbox" class="checkbox3" name="ball" :value="item.value" @click="xiushiclick($event,item.value)"/>&nbsp;
123
                                     {{item.label}}
57
                                     {{item.label}}
124
                                 </label>
58
                                 </label>
125
                               </span>
59
                               </span>
126
                             </div>
60
                             </div>
127
-                          </td>
128
-                        </tr>
129
-                        <tr class="bg_color">
130
-                          <td class="start">平地行走</td>
131
-                          <td v-for="(item,index) in pingdi" :key="index">
132
-                            <div class="jiange">
133
-                              <span>
134
-                                <label><input type="checkbox" name="ball" :value="item.value" @click="pingdiclick($event,item.value)"/>&nbsp;
135
-                                    {{item.label}}
136
-                                </label>
137
-                              </span>
138
-                            </div>
139
-                          </td>
140
-                        </tr>
141
-                        <tr>
142
-                          <td class="start">上下楼梯</td>
143
-                          <td v-for="(item,index) in louti" :key="index">
144
-                            <div class="jiange">
145
-                              <span>
146
-                                <label><input type="checkbox" name="ball" :value="item.value" @click="louticlick($event,item.value)"/>&nbsp;
147
-                                    {{ item.label }}
148
-                                </label>
149
-                              </span>
150
-                            </div>
151
-                          </td>
152
-                          <td></td>
153
-                        </tr>
154
-                      </tbody>
61
+                        </td>
62
+                        <td></td>
63
+                        <td></td>
64
+                      </tr>
65
+                      <tr>
66
+                        <td class="start">穿衣</td>
67
+                        <td v-for="(item,index) in chuanyi" :key="index">
68
+                          <div class="jiange">
69
+                            <span>
70
+                              <label><input type="checkbox" class="checkbox4" name="ball" :value="item.value" @click="chuanyiclick($event,item.value)"/>&nbsp;
71
+                                  {{item.label}}
72
+                              </label>
73
+                            </span>
74
+                          </div>
75
+                        </td>
76
+                        <td></td>
77
+                      </tr>
78
+                      <tr class="bg_color">
79
+                        <td class="start">控制大便</td>
80
+                        <td v-for="(item,index) in dabian" :key="index">
81
+                          <div class="jiange">
82
+                            <span>
83
+                              <label><input type="checkbox" class="checkbox5" name="ball" :value="item.value" @click="dabianclick($event,item.value)"/>&nbsp;
84
+                                  {{item.label}}
85
+                              </label>
86
+                            </span>
87
+                          </div>
88
+                        </td>
89
+                        <td></td>
90
+                      </tr>
91
+                      <tr>
92
+                        <td class="start">控制小便</td>
93
+                        <td v-for="(item,index) in xioabian" :key="index">
94
+                          <div class="jiange">
95
+                            <span>
96
+                              <label><input type="checkbox" class="checkbox6" name="ball" :value="item.value" @click="xiaobianclick($event,item.value)"/>&nbsp;
97
+                                  {{item.label}}
98
+                              </label>
99
+                            </span>
100
+                          </div>
101
+                        </td>
102
+                        <td></td>
103
+                      </tr>
104
+                      <tr class="bg_color">
105
+                        <td class="start">如厕</td>
106
+                        <td v-for="(item,index) in ruce" :key="index">
107
+                          <div class="jiange">
108
+                            <span>
109
+                              <label><input type="checkbox" class="checkbox7" name="ball" :value="item.value" @click="ruceclick($event,item.value)"/>&nbsp;
110
+                                  {{item.label}}
111
+                              </label>
112
+                            </span>
113
+                          </div>
114
+                        </td>
115
+                        <td></td>
116
+                      </tr>
117
+                      <tr>
118
+                        <td class="start">床椅转移</td>
119
+                        <td v-for="(item,index) in chuangyi" :key="index">
120
+                          <div class="jiange">
121
+                            <span>
122
+                              <label><input type="checkbox" class="checkbox8" name="ball" :value="item.value" @click="chuangyiclick($event,item.value)"/>&nbsp;
123
+                                  {{item.label}}
124
+                              </label>
125
+                            </span>
126
+                          </div>
127
+                        </td>
128
+                      </tr>
129
+                      <tr class="bg_color">
130
+                        <td class="start">平地行走</td>
131
+                        <td v-for="(item,index) in pingdi" :key="index">
132
+                          <div class="jiange">
133
+                            <span>
134
+                              <label><input type="checkbox" class="checkbox9" name="ball" :value="item.value" @click="pingdiclick($event,item.value)"/>&nbsp;
135
+                                  {{item.label}}
136
+                              </label>
137
+                            </span>
138
+                          </div>
139
+                        </td>
140
+                      </tr>
141
+                      <tr>
142
+                        <td class="start">上下楼梯</td>
143
+                        <td v-for="(item,index) in louti" :key="index">
144
+                          <div class="jiange">
145
+                            <span>
146
+                              <label><input type="checkbox" class="checkbox10" name="ball" :value="item.value" @click="louticlick($event,item.value)"/>&nbsp;
147
+                                  {{ item.label }}
148
+                              </label>
149
+                            </span>
150
+                          </div>
151
+                        </td>
152
+                        <td></td>
153
+                      </tr>
154
+                    </tbody>
155
                   </table>
155
                   </table>
156
                 </div>
156
                 </div>
157
 
157
 
244
               {value:5,label:'偶尔失禁(5分)'},
244
               {value:5,label:'偶尔失禁(5分)'},
245
               {value:0,label:'完全失禁(0分)'}
245
               {value:0,label:'完全失禁(0分)'}
246
             ],
246
             ],
247
-      xioabian:[{value:10,label:'可控制便(10分)'},
247
+      xioabian:[{value:10,label:'可控制便(10分)'},
248
               {value:5,label:'偶尔失禁(5分)'},
248
               {value:5,label:'偶尔失禁(5分)'},
249
               {value:0,label:'完全失禁(0分)'}
249
               {value:0,label:'完全失禁(0分)'}
250
             ],
250
             ],
270
   },
270
   },
271
   methods:{
271
   methods:{
272
     jinshiclick(e,val){
272
     jinshiclick(e,val){
273
-     if(e.target.checked == true){
274
-      this.jinshi_val = val
275
-     }else{
276
-      this.jinshi_val =this.jinshi_val - val
277
-     }
273
+      const checkboxs=document.getElementsByClassName('checkbox1')
274
+      for(let i=0;i<checkboxs.length;i++){
275
+        if(val==checkboxs[i].value){
276
+          this.jinshi_val = val
277
+          checkboxs[i].value
278
+          checkboxs[i].checked=true
279
+        }else{
280
+          checkboxs[i].checked = false
281
+        }
282
+      }
278
     },
283
     },
279
     xizaoclick(e,val){
284
     xizaoclick(e,val){
280
-      if(e.target.checked == true){
281
-      this.xizao_val = val
282
-     }else{
283
-      this.xizao_val =this.xizao_val - val
284
-     }
285
+      const checkboxs=document.getElementsByClassName('checkbox2')
286
+      for(let i=0;i<checkboxs.length;i++){
287
+        if(val==checkboxs[i].value){
288
+          this.xizao_val = val
289
+          checkboxs[i].value
290
+          checkboxs[i].checked=true
291
+        }else{
292
+          checkboxs[i].checked = false
293
+        }
294
+      }
285
     },
295
     },
286
     xiushiclick(e,val){
296
     xiushiclick(e,val){
287
-     if(e.target.checked == true){
288
-      this.xiushi_val = val
289
-     }else{
290
-      this.xiushi_val =this.xiushi_val - val
291
-     }
297
+     const checkboxs=document.getElementsByClassName('checkbox3')
298
+      for(let i=0;i<checkboxs.length;i++){
299
+        if(val==checkboxs[i].value){
300
+          this.xiushi_val = val
301
+          checkboxs[i].value
302
+          checkboxs[i].checked=true
303
+        }else{
304
+          checkboxs[i].checked = false
305
+        }
306
+      }
292
     },
307
     },
293
     chuanyiclick(e,val){
308
     chuanyiclick(e,val){
294
-      if(e.target.checked == true){
295
-      this.chuanyi_val = val
296
-     }else{
297
-      this.chuanyi_val =this.chuanyi_val - val
298
-     }
309
+     const checkboxs=document.getElementsByClassName('checkbox4')
310
+      for(let i=0;i<checkboxs.length;i++){
311
+        if(val==checkboxs[i].value){
312
+          this.chuanyi_val = val
313
+          checkboxs[i].value
314
+          checkboxs[i].checked=true
315
+        }else{
316
+          checkboxs[i].checked = false
317
+        }
318
+      }
299
     },
319
     },
300
     dabianclick(e,val){
320
     dabianclick(e,val){
301
-     if(e.target.checked == true){
302
-      this.dabian_val = val
303
-     }else{
304
-      this.dabian_val =this.dabian_val - val
305
-     }
321
+     const checkboxs=document.getElementsByClassName('checkbox5')
322
+      for(let i=0;i<checkboxs.length;i++){
323
+        if(val==checkboxs[i].value){
324
+          this.dabian_val = val
325
+          checkboxs[i].value
326
+          checkboxs[i].checked=true
327
+        }else{
328
+          checkboxs[i].checked = false
329
+        }
330
+      }
306
     },
331
     },
307
     xiaobianclick(e,val){
332
     xiaobianclick(e,val){
308
-      if(e.target.checked == true){
309
-      this.xiaobian_val = val
310
-     }else{
311
-      this.xiaobian_val =this.xiaobian_val - val
312
-     }
333
+     const checkboxs=document.getElementsByClassName('checkbox6')
334
+      for(let i=0;i<checkboxs.length;i++){
335
+        if(val==checkboxs[i].value){
336
+          this.xiaobian_val = val
337
+          checkboxs[i].value
338
+          checkboxs[i].checked=true
339
+        }else{
340
+          checkboxs[i].checked = false
341
+        }
342
+      }
313
     },
343
     },
314
     ruceclick(e,val){
344
     ruceclick(e,val){
315
-     if(e.target.checked == true){
316
-      this.ruce_val = val
317
-     }else{
318
-      this.ruce_val =this.ruce_val - val
319
-     }
345
+     const checkboxs=document.getElementsByClassName('checkbox7')
346
+      for(let i=0;i<checkboxs.length;i++){
347
+        if(val==checkboxs[i].value){
348
+          this.ruce_val = val
349
+          checkboxs[i].value
350
+          checkboxs[i].checked=true
351
+        }else{
352
+          checkboxs[i].checked = false
353
+        }
354
+      }
320
     },
355
     },
321
     chuangyiclick(e,val){
356
     chuangyiclick(e,val){
322
-      if(e.target.checked == true){
323
-      this.chuangyi_val = val
324
-     }else{
325
-      this.chuangyi_val =this.chuangyi_val - val
326
-     }
357
+     const checkboxs=document.getElementsByClassName('checkbox8')
358
+      for(let i=0;i<checkboxs.length;i++){
359
+        if(val==checkboxs[i].value){
360
+          this.chuangyi_val = val
361
+          checkboxs[i].value
362
+          checkboxs[i].checked=true
363
+        }else{
364
+          checkboxs[i].checked = false
365
+        }
366
+      }
327
     },
367
     },
328
     pingdiclick(e,val){
368
     pingdiclick(e,val){
329
-     if(e.target.checked == true){
330
-      this.paingdi_val = val
331
-     }else{
332
-      this.paingdi_val =this.paingdi_val - val
333
-     }
369
+    //  if(e.target.checked == true){
370
+    //   this.paingdi_val = val
371
+    //  }else{
372
+    //   this.paingdi_val =this.paingdi_val - val
373
+    //  }
374
+     const checkboxs=document.getElementsByClassName('checkbox9')
375
+      for(let i=0;i<checkboxs.length;i++){
376
+        if(val==checkboxs[i].value){
377
+          this.paingdi_val = val
378
+          checkboxs[i].value
379
+          checkboxs[i].checked=true
380
+        }else{
381
+          checkboxs[i].checked = false
382
+        }
383
+      }
334
     },
384
     },
335
     louticlick(e,val){
385
     louticlick(e,val){
336
-      if(e.target.checked == true){
337
-      this.louti_val = val
338
-     }else{
339
-      this.louti_val =this.louti_val - val
340
-     }
386
+     const checkboxs=document.getElementsByClassName('checkbox10')
387
+      for(let i=0;i<checkboxs.length;i++){
388
+        if(val==checkboxs[i].value){
389
+          this.louti_val = val
390
+          checkboxs[i].value
391
+          checkboxs[i].checked=true
392
+        }else{
393
+          checkboxs[i].checked = false
394
+        }
395
+      }
341
     },
396
     },
342
     datehistory(){
397
     datehistory(){
343
       this.$router.push({path: '/patients/date_history'})
398
       this.$router.push({path: '/patients/date_history'})

+ 38 - 5
src/xt_pages/user/evaluationtool/hemodialysis.vue View File

642
                   :data="history_hemod"
642
                   :data="history_hemod"
643
                   stripe
643
                   stripe
644
                   border
644
                   border
645
+                  @row-click="hemod_click"
646
+                  :highlight-current-row="true"
645
                   :header-cell-style="{
647
                   :header-cell-style="{
646
                       background: '#0077ff9f',color:'white'}"
648
                       background: '#0077ff9f',color:'white'}"
647
                   style="width: 100%">
649
                   style="width: 100%">
1262
                       </tbody>
1264
                       </tbody>
1263
                   </table>
1265
                   </table>
1264
               </div>
1266
               </div>
1265
-              
1267
+
1266
             </div>
1268
             </div>
1267
           </div>
1269
           </div>
1268
         </div>
1270
         </div>
1269
       </div>
1271
       </div>
1270
-      
1272
+
1273
+    </el-dialog>
1274
+     <!-- 删除弹窗 -->
1275
+     <el-dialog
1276
+      title="提示"
1277
+      :visible.sync="dele_dialogVisible"
1278
+      width="30%">
1279
+      <span>确认删除该数据</span>
1280
+      <span slot="footer" class="dialog-footer">
1281
+        <el-button @click="dele_Cancel">取 消</el-button>
1282
+        <el-button type="primary" @click="deleclick">确 定</el-button>
1283
+      </span>
1271
     </el-dialog>
1284
     </el-dialog>
1272
   </div>
1285
   </div>
1273
 </template>
1286
 </template>
1318
       cancel_num:0,
1331
       cancel_num:0,
1319
       hemod_pinggu:null,
1332
       hemod_pinggu:null,
1320
       open_print:false,
1333
       open_print:false,
1334
+      dele_id:'',
1335
+      dele_dialogVisible:false,
1321
     }
1336
     }
1322
   },
1337
   },
1323
   methods:{
1338
   methods:{
1339
         const pinggrlen=this.pinggr
1354
         const pinggrlen=this.pinggr
1340
         for(let i=0;i<lent.length;i++){
1355
         for(let i=0;i<lent.length;i++){
1341
           for(let y=0;y<pinggrlen.length;y++){
1356
           for(let y=0;y<pinggrlen.length;y++){
1342
-            if(this.hemod_pinggu=pinggrlen[y].id){
1357
+            if(this.hemod_pinggu==pinggrlen[y].id){
1343
               lent[i].evaluate=pinggrlen[y].label
1358
               lent[i].evaluate=pinggrlen[y].label
1344
-              return lent[i].evaluate
1359
+              return lent
1345
             }
1360
             }
1346
           }
1361
           }
1347
         }
1362
         }
1366
       this.baocunqx=true
1381
       this.baocunqx=true
1367
       this.gsdayin=false
1382
       this.gsdayin=false
1368
     },
1383
     },
1384
+    dele_Cancel(){
1385
+      this.append=false
1386
+      this.append=true
1387
+      this.baocunqx=false
1388
+      this.dele_dialogVisible=false
1389
+    },
1369
     hemod_dele(){
1390
     hemod_dele(){
1370
       this.append=false
1391
       this.append=false
1371
       this.gsdayin=false
1392
       this.gsdayin=false
1372
       this.baocunqx=false
1393
       this.baocunqx=false
1373
       this.hemodadd_show=true
1394
       this.hemodadd_show=true
1374
       this.cancel_num=0
1395
       this.cancel_num=0
1396
+      this.dele_dialogVisible=true
1397
+    },
1398
+    hemod_click(row,column, event){
1399
+      this.dele_id=row.id
1400
+    },
1401
+    deleclick(){
1402
+      for(let i=0;i<this.history_hemod.length;i++){
1403
+        if(this.dele_id==this.history_hemod[i].id){
1404
+          this.history_hemod.splice(i,1)
1405
+        }
1406
+      }
1407
+      this.dele_dialogVisible=false
1375
     },
1408
     },
1376
     print_pingfen(){
1409
     print_pingfen(){
1377
       const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .tables thead th{ text-align: center;height: 20px;} .tables tbody td{height: 20px;padding:0 10px} .tables{font-size: 16px;}}'
1410
       const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .tables thead th{ text-align: center;height: 20px;} .tables tbody td{height: 20px;padding:0 10px} .tables{font-size: 16px;}}'
1446
   z-index: -1;
1479
   z-index: -1;
1447
 }
1480
 }
1448
 .tables {
1481
 .tables {
1449
-  
1482
+
1450
   thead th{
1483
   thead th{
1451
     text-align: center;
1484
     text-align: center;
1452
     height: 20px;
1485
     height: 20px;

+ 172 - 139
src/xt_pages/user/evaluationtool/pediatricFallAssessment.vue View File

13
               </div>
13
               </div>
14
 
14
 
15
               <div>
15
               <div>
16
-                  <table class="table" id="table" border="1" style="width: 100%;">
17
-                      <thead>
18
-                          <tr>
19
-                          <th style="width:10%;">项目</th>
20
-                          <th style="width: 22.4%;">4分</th>
21
-                          <th style="width: 22.4%;">3分</th>
22
-                          <th style="width: 22.4%;">2分</th>
23
-                          <th style="width: 22.4%;">1分</th>
24
-                          </tr>
25
-                      </thead>
26
-                      <tbody>
27
-                          <tr class="bg_color">
28
-                            <td class="start">年龄</td>
29
-                            <td v-for="(item,index) in age" :key="index">
30
-                              <div class="jiange">
31
-                                <label><input name="ball" type="checkbox"  :value="item.value" @click="ageChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
32
-                              </div>
33
-                            </td>
34
-                          </tr>
35
-                          <tr>
36
-                            <td style="border-right: none;">
37
-                              <div class="bing">性别</div>
38
-                            </td>
39
-                            <td colspan="2" style="border-left: none;"></td>
40
-                            <td v-for="(item,index) in sex" :key="index">
41
-                              <div class="jiange">
42
-                                <label><input name="ball" type="checkbox" :value="item.value" @click="sexChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
43
-                              </div>
44
-                            </td>
45
-                          </tr>
46
-                          <tr class="bg_color">
47
-                            <td class="start">诊断</td>
48
-                            <td v-for="(item,index) in diagnosis" :key="index">
49
-                              <div class="jiange">
50
-                                <label><input name="ball" type="checkbox" :value="item.value" @click="diagnosischange($event,item.value)"/>&nbsp;{{item.lable}}</label>
51
-                              </div>
52
-                            </td>
53
-                              
54
-                          </tr>
55
-                          <tr>
56
-                            <td style="border-right: none;">
57
-                                <div class="bing">认知障碍</div>
58
-                            </td>
59
-                            <td style="border-left: none;"></td>
60
-                            <td v-for="(item,index) in cognize" :key="index">
61
-                              <div class="jiange">
62
-                                <label><input name="ball" type="checkbox" :value="item.value" @click="cognizeChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
63
-                              </div>
64
-                            </td>
65
-                              
66
-                          </tr>
67
-                          <tr class="bg_color">
68
-                            <td class="start">环境因素</td>
69
-                            <td v-for="(item,index) in environment" :key="index">
70
-                              <div class="jiange">
71
-                                <label><input name="ball" type="checkbox" :value="item.value" @click="environChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
72
-                              </div>
73
-                            </td>
16
+                <table class="table" id="table" border="1" style="width: 100%;">
17
+                  <thead>
18
+                    <tr>
19
+                    <th style="width:10%;">项目</th>
20
+                    <th style="width: 22.4%;">4分</th>
21
+                    <th style="width: 22.4%;">3分</th>
22
+                    <th style="width: 22.4%;">2分</th>
23
+                    <th style="width: 22.4%;">1分</th>
24
+                    </tr>
25
+                  </thead>
26
+                  <tbody>
27
+                    <tr class="bg_color">
28
+                      <td class="start">年龄</td>
29
+                      <td v-for="(item,index) in age" :key="index">
30
+                        <div class="jiange">
31
+                          <label><input name="ball" class="checked1" type="checkbox" :value="item.value" @click="ageChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
32
+                        </div>
33
+                      </td>
34
+                    </tr>
35
+                    <tr>
36
+                      <td style="border-right: none;">
37
+                        <div class="bing">性别</div>
38
+                      </td>
39
+                      <td colspan="2" style="border-left: none;"></td>
40
+                      <td v-for="(item,index) in sex" :key="index">
41
+                        <div class="jiange">
42
+                          <label><input name="ball" class="checked2" type="checkbox" :value="item.value" @click="sexChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
43
+                        </div>
44
+                      </td>
45
+                    </tr>
46
+                    <tr class="bg_color">
47
+                      <td class="start">诊断</td>
48
+                      <td v-for="(item,index) in diagnosis" :key="index">
49
+                        <div class="jiange">
50
+                          <label><input name="ball" class="checked3" type="checkbox" :value="item.value" @click="diagnosischange($event,item.value)"/>&nbsp;{{item.lable}}</label>
51
+                        </div>
52
+                      </td>
74
 
53
 
75
-                          </tr>
76
-                          <tr>
77
-                            <td style="border-right: none;">
78
-                                <div class="bing">药物使用</div>
79
-                            </td>
80
-                            <td style="border-left: none;"></td>
81
-                            <td v-for="(item,index) in medicine" :key="index">
82
-                              <div class="jiange">
83
-                                <label><input name="ball" type="checkbox" :value="item.value" @click="medicineChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
84
-                              </div>
85
-                            </td>
54
+                    </tr>
55
+                    <tr>
56
+                      <td style="border-right: none;">
57
+                          <div class="bing">认知障碍</div>
58
+                      </td>
59
+                      <td style="border-left: none;"></td>
60
+                      <td v-for="(item,index) in cognize" :key="index">
61
+                        <div class="jiange">
62
+                          <label><input name="ball" class="checked4" type="checkbox" :value="item.value" @click="cognizeChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
63
+                        </div>
64
+                      </td>
86
 
65
 
87
-                          </tr>
88
-                          <tr class="bg_color">
89
-                          <td colspan="5" style="height: 30px;"></td>
66
+                    </tr>
67
+                    <tr class="bg_color">
68
+                      <td class="start">环境因素</td>
69
+                      <td v-for="(item,index) in environment" :key="index">
70
+                        <div class="jiange">
71
+                          <label><input name="ball" class="checked5" type="checkbox" :value="item.value" @click="environChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
72
+                        </div>
73
+                      </td>
90
 
74
 
91
-                          </tr>
92
-                          <tr>
93
-                          <td colspan="5">
94
-                            <div class="content_top" >
95
-                              <div>
96
-                                  <div class="bottoms">
97
-                                  <span>总分:</span>
98
-                                  <el-input v-model="pedia_Totalpoints" style="width: 100px;"></el-input>分
99
-                                  </div>
75
+                    </tr>
76
+                    <tr>
77
+                      <td style="border-right: none;">
78
+                          <div class="bing">药物使用</div>
79
+                      </td>
80
+                      <td style="border-left: none;"></td>
81
+                      <td v-for="(item,index) in medicine" :key="index">
82
+                        <div class="jiange">
83
+                          <label><input name="ball" class="checked6" type="checkbox" :value="item.value" @click="medicineChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
84
+                        </div>
85
+                      </td>
100
 
86
 
101
-                                  <div class="bottoms">
102
-                                      <span>评估日期:</span>
103
-                                      <el-date-picker
104
-                                          v-model="value1"
105
-                                          type="date"
106
-                                          placeholder="选择日期"
107
-                                          :clearable="false"
108
-                                          style="width: 150px;">
109
-                                      </el-date-picker>
110
-                                  </div>
87
+                    </tr>
88
+                    <tr class="bg_color">
89
+                    <td colspan="5" style="height: 30px;"></td>
111
 
90
 
112
-                                  <div class="bottoms">
113
-                                      <span>评估人:</span>
114
-                                      <el-select v-model="value" placeholder="请选择" >
115
-                                          <el-option
116
-                                          v-for="item in options"
117
-                                          :key="item.value"
118
-                                          :label="item.label"
119
-                                          :value="item.value"
120
-                                          style="width:150px;">
121
-                                          </el-option>
122
-                                      </el-select>
123
-                                  </div>
91
+                    </tr>
92
+                    <tr>
93
+                    <td colspan="5">
94
+                      <div class="content_top" >
95
+                        <div>
96
+                            <div class="bottoms">
97
+                            <span>总分:</span>
98
+                            <el-input v-model="pedia_Totalpoints" style="width: 100px;"></el-input>分
99
+                            </div>
100
+
101
+                            <div class="bottoms">
102
+                                <span>评估日期:</span>
103
+                                <el-date-picker
104
+                                    v-model="value1"
105
+                                    type="date"
106
+                                    placeholder="选择日期"
107
+                                    :clearable="false"
108
+                                    style="width: 150px;">
109
+                                </el-date-picker>
110
+                            </div>
124
 
111
 
125
-                              </div>
126
-                              <div style="margin:5px 10px;">
127
-                                <el-button type="primary">确认</el-button>
128
-                              </div>
112
+                            <div class="bottoms">
113
+                                <span>评估人:</span>
114
+                                <el-select v-model="value" placeholder="请选择" >
115
+                                    <el-option
116
+                                    v-for="item in options"
117
+                                    :key="item.value"
118
+                                    :label="item.label"
119
+                                    :value="item.value"
120
+                                    style="width:150px;">
121
+                                    </el-option>
122
+                                </el-select>
129
                             </div>
123
                             </div>
130
-                          </td>
131
-                          </tr>
132
-                      </tbody>
133
-                  </table>
124
+
125
+                        </div>
126
+                        <div style="margin:5px 10px;">
127
+                          <el-button type="primary">确认</el-button>
128
+                        </div>
129
+                      </div>
130
+                    </td>
131
+                    </tr>
132
+                  </tbody>
133
+                </table>
134
 
134
 
135
               </div>
135
               </div>
136
 
136
 
184
               ],
184
               ],
185
       cognize:[{value:3,lable:'没有意识到不能自我行动'},
185
       cognize:[{value:3,lable:'没有意识到不能自我行动'},
186
                 {value:2,lable:'忘记有行动的限制'},
186
                 {value:2,lable:'忘记有行动的限制'},
187
-                {value:1,lable:'能自我辨识方位;昏迷、无反应'}], 
187
+                {value:1,lable:'能自我辨识方位;昏迷、无反应'}],
188
       environment:[{value:4,lable:'住院期间有跌倒坠床史:患儿移动或活动时需要使用辅助工具(拐杖、助行器、转运床、轮椅等);婴幼儿放置在无护栏的成人床'},
188
       environment:[{value:4,lable:'住院期间有跌倒坠床史:患儿移动或活动时需要使用辅助工具(拐杖、助行器、转运床、轮椅等);婴幼儿放置在无护栏的成人床'},
189
                 {value:3,lable:'近1个月有跌倒坠床史:婴幼儿放置在有护栏的成人床'},
189
                 {value:3,lable:'近1个月有跌倒坠床史:婴幼儿放置在有护栏的成人床'},
190
                 {value:2,lable:'近3个月有跌倒坠床史:婴幼儿放置在有护栏的婴儿床'},
190
                 {value:2,lable:'近3个月有跌倒坠床史:婴幼儿放置在有护栏的婴儿床'},
191
-                {value:1,lable:'>3个月有跌倒坠床史/无跌倒坠床史'}],  
191
+                {value:1,lable:'>3个月有跌倒坠床史/无跌倒坠床史'}],
192
       medicine:[{value:3,lable:'联合用药:镇静剂、安眠药、巴比妥类药、吩噻嗪类药、抗抑郁药、利尿药、降压药、强心剂、麻醉药、化疗药、散瞳剂'},
192
       medicine:[{value:3,lable:'联合用药:镇静剂、安眠药、巴比妥类药、吩噻嗪类药、抗抑郁药、利尿药、降压药、强心剂、麻醉药、化疗药、散瞳剂'},
193
                 {value:2,lable:'以上其中一种药物'},
193
                 {value:2,lable:'以上其中一种药物'},
194
-                {value:1,lable:'其他药物/没有'}],                     
194
+                {value:1,lable:'其他药物/没有'}],
195
       checked:'',
195
       checked:'',
196
       checkList:[],
196
       checkList:[],
197
       dialogVisible:false,
197
       dialogVisible:false,
198
       text:'',
198
       text:'',
199
+      num:1
199
     }
200
     }
200
   },
201
   },
201
   methods:{
202
   methods:{
202
     ageChange(e,val){
203
     ageChange(e,val){
203
-      console.log('22222',val);
204
-      if(e.target.checked == true){
204
+      console.log('22222',e,val);
205
+      const checkboxs=document.getElementsByClassName('checked1')
206
+     for(let i=0;i<checkboxs.length;i++){
207
+      if(val==checkboxs[i].value){
205
         this.agevalue = val
208
         this.agevalue = val
209
+        checkboxs[i].value
210
+        checkboxs[i].checked=true
206
       }else{
211
       }else{
207
-        this.agevalue = this.agevalue - val
212
+        checkboxs[i].checked = false
208
       }
213
       }
214
+     }
209
     },
215
     },
210
     sexChange(e,val){
216
     sexChange(e,val){
211
-      if(e.target.checked == true){
212
-        this.sexvalue = val
213
-      }else{
214
-        this.sexvalue =  this.sexvalue - val
215
-      }
217
+      const checkboxs=document.getElementsByClassName('checked2')
218
+      for(let i=0;i<checkboxs.length;i++){
219
+        if(val==checkboxs[i].value ){
220
+          console.log('vvvv',val,'bbbb',e.target.checked);
221
+          this.sexvalue = val
222
+
223
+          checkboxs[i].checked=true
224
+
225
+        }else{
226
+          checkboxs[i].checked = false
227
+        }
228
+     }
216
     },
229
     },
217
     diagnosischange(e,val){
230
     diagnosischange(e,val){
218
-      if(e.target.checked == true){
219
-        this.diagnosis_val = val
220
-      }else{
221
-        this.diagnosis_val =  this.diagnosis_val - val
222
-      }
231
+      const checkboxs=document.getElementsByClassName('checked3')
232
+      for(let i=0;i<checkboxs.length;i++){
233
+        if(val==checkboxs[i].value ){
234
+          console.log('vvvv',val,'bbbb',e.target.checked);
235
+          this.diagnosis_val = val
236
+          checkboxs[i].checked=true
237
+        }else{
238
+          checkboxs[i].checked = false
239
+        }
240
+     }
223
     },
241
     },
224
     cognizeChange(e,val){
242
     cognizeChange(e,val){
225
-      if(e.target.checked == true){
226
-        this.cognize_val = val
227
-      }else{
228
-        this.cognize_val =  this.cognize_val - val
243
+      const checkboxs=document.getElementsByClassName('checked4')
244
+      for(let i=0;i<checkboxs.length;i++){
245
+        if(val==checkboxs[i].value ){
246
+          console.log('vvvv',val,'bbbb',e.target.checked);
247
+          this.cognize_val = val
248
+          checkboxs[i].checked=true
249
+        }else{
250
+          checkboxs[i].checked = false
251
+        }
229
       }
252
       }
230
     },
253
     },
231
     environChange(e,val){
254
     environChange(e,val){
232
-      if(e.target.checked == true){
233
-        this.environment_val = val
234
-      }else{
235
-        this.environment_val =  this.environment_val - val
255
+      const checkboxs=document.getElementsByClassName('checked5')
256
+      for(let i=0;i<checkboxs.length;i++){
257
+        if(val==checkboxs[i].value ){
258
+          console.log('vvvv',val,'bbbb',e.target.checked);
259
+          this.environment_val = val
260
+          checkboxs[i].checked=true
261
+        }else{
262
+          checkboxs[i].checked = false
263
+        }
236
       }
264
       }
237
     },
265
     },
238
     medicineChange(e,val){
266
     medicineChange(e,val){
239
-      if(e.target.checked == true){
240
-        this.medicine_val = val
241
-      }else{
242
-        this.medicine_val =  this.medicine_val - val
267
+      const checkboxs=document.getElementsByClassName('checked6')
268
+      for(let i=0;i<checkboxs.length;i++){
269
+        if(val==checkboxs[i].value ){
270
+          console.log('vvvv',val,'bbbb',e.target.checked);
271
+          this.medicine_val = val
272
+          checkboxs[i].checked=true
273
+        }else{
274
+          checkboxs[i].checked = false
275
+        }
243
       }
276
       }
244
     },
277
     },
245
     // 历史评估
278
     // 历史评估

+ 45 - 19
src/xt_pages/user/evaluationtool/pressuresore.vue View File

50
                       15~18分为低危;<br>
50
                       15~18分为低危;<br>
51
                       13~14分为中危;<br>
51
                       13~14分为中危;<br>
52
                       10~12分为高危;<br>
52
                       10~12分为高危;<br>
53
-                      ≤9分为极高危 
53
+                      ≤9分为极高危
54
                     </div>
54
                     </div>
55
                   </td>
55
                   </td>
56
                   <td rowspan="6" style="position: relative;vertical-align: top;">
56
                   <td rowspan="6" style="position: relative;vertical-align: top;">
72
                     <div class="jiange">
72
                     <div class="jiange">
73
                       <label><input name="ball" type="checkbox" value="football" />&nbsp;其他</label>
73
                       <label><input name="ball" type="checkbox" value="football" />&nbsp;其他</label>
74
                     </div>
74
                     </div>
75
-                    <div class="tianjia">
75
+                    <div class="tianjia" @click="add_press=true">
76
                       <!--  style="position: absolute;bottom: 0px;font-size: 17px;color:#4579C5;line-height: 40px;" -->
76
                       <!--  style="position: absolute;bottom: 0px;font-size: 17px;color:#4579C5;line-height: 40px;" -->
77
                       +添加
77
                       +添加
78
                     </div>
78
                     </div>
188
                   <th>D</th>
188
                   <th>D</th>
189
                   <th>E</th>
189
                   <th>E</th>
190
                   <th>F</th>
190
                   <th>F</th>
191
-                </tr> 
191
+                </tr>
192
               </thead>
192
               </thead>
193
               <tbody>
193
               <tbody>
194
                 <tr>
194
                 <tr>
202
                     </el-date-picker>
202
                     </el-date-picker>
203
                   </td>
203
                   </td>
204
                   <td class="start">
204
                   <td class="start">
205
-                    <el-input v-model="input" style="width:100px;"></el-input>
205
+                    <el-input v-model="ganzhi" style="width:80px;"></el-input>
206
                   </td>
206
                   </td>
207
                   <td class="start">
207
                   <td class="start">
208
-                    <el-input v-model="input" style="width:100px"></el-input>
208
+                    <el-input v-model="shidu" style="width:80px"></el-input>
209
                   </td>
209
                   </td>
210
                   <td class="start">
210
                   <td class="start">
211
-                    <el-input v-model="input" style="width:100px"></el-input>
211
+                    <el-input v-model="huodong" style="width:80px"></el-input>
212
                   </td>
212
                   </td>
213
                   <td class="start">
213
                   <td class="start">
214
-                    <el-input v-model="input" style="width:100px"></el-input>
214
+                    <el-input v-model="yidong" style="width:80px"></el-input>
215
                   </td>
215
                   </td>
216
                   <td class="start">
216
                   <td class="start">
217
-                    <el-input v-model="input" style="width:100px"></el-input>
217
+                    <el-input v-model="yingyang" style="width:80px"></el-input>
218
                   </td>
218
                   </td>
219
                   <td class="start">
219
                   <td class="start">
220
-                    <el-input v-model="input" style="width:100px"></el-input>
220
+                    <el-input v-model="mocha" style="width:80px"></el-input>
221
                   </td>
221
                   </td>
222
                   <td class="start">
222
                   <td class="start">
223
-                    <el-input v-model="input" style="width:100px"></el-input>
223
+                    <el-input v-model="mark" style="width:70px"></el-input>
224
                   </td>
224
                   </td>
225
                   <td class="start">
225
                   <td class="start">
226
-                    <el-select v-model="value" placeholder="请选择" >
226
+                    <el-select v-model="value" placeholder="请选择" style="width:120px;">
227
                         <el-option
227
                         <el-option
228
                           v-for="item in options"
228
                           v-for="item in options"
229
                           :key="item.value"
229
                           :key="item.value"
230
                           :label="item.label"
230
                           :label="item.label"
231
                           :value="item.value"
231
                           :value="item.value"
232
-                          style="width:150px;">
232
+                          >
233
                         </el-option>
233
                         </el-option>
234
                     </el-select>
234
                     </el-select>
235
                   </td>
235
                   </td>
264
             </div>
264
             </div>
265
             <div class="zhuangui">
265
             <div class="zhuangui">
266
                 <p style="display: inline-block; margin-right: 30px;">
266
                 <p style="display: inline-block; margin-right: 30px;">
267
-                    评估人签字: 
267
+                    评估人签字:
268
                     <el-input v-model="input" style="width:120px;"></el-input>
268
                     <el-input v-model="input" style="width:120px;"></el-input>
269
                 </p>
269
                 </p>
270
                 <p style="display: inline-block;">
270
                 <p style="display: inline-block;">
280
             <div class="content_top">
280
             <div class="content_top">
281
               <div class="zhuangui">
281
               <div class="zhuangui">
282
                 <p style="display: inline-block; margin-right: 30px;">
282
                 <p style="display: inline-block; margin-right: 30px;">
283
-                    护士长签字: 
283
+                    护士长签字:
284
                     <el-select v-model="value" placeholder="请选择" style="width: 120px;">
284
                     <el-select v-model="value" placeholder="请选择" style="width: 120px;">
285
                         <el-option
285
                         <el-option
286
                         v-for="item in options"
286
                         v-for="item in options"
318
 
318
 
319
         </div>
319
         </div>
320
       </div>
320
       </div>
321
-        
321
+      <!-- 添加弹窗页面 -->
322
+      <el-dialog
323
+        title="增加护理措施"
324
+        :visible.sync="add_press"
325
+        width="30%"
326
+      >
327
+        <span>
328
+          护理措施:
329
+          <input type="text" style="width: 290px;height: 36px;border: 1px solid #d7d7d7;">
330
+        </span>
331
+        <span slot="footer" class="dialog-footer">
332
+          <el-button @click="add_press = false">取 消</el-button>
333
+          <el-button type="primary" @click="add_press = false">确 定</el-button>
334
+        </span>
335
+      </el-dialog>
322
     </div>
336
     </div>
323
 </template>
337
 </template>
324
 <script>
338
 <script>
335
       input:'',
349
       input:'',
336
       options:[],
350
       options:[],
337
       value:'',
351
       value:'',
338
-      zhuangui:['出院','死亡','其他']
352
+      ganzhi:null,
353
+      shidu:null,
354
+      huodong:null,
355
+      yidong:null,
356
+      yingyang:null,
357
+      mocha:null,
358
+      zhuangui:['出院','死亡','其他'],
359
+      add_press:false,
339
     }
360
     }
340
    },
361
    },
341
    methods:{
362
    methods:{
342
     yachaunghistory(){
363
     yachaunghistory(){
343
       this.$router.push({path: '/patients/Pressure_history'})
364
       this.$router.push({path: '/patients/Pressure_history'})
344
     }
365
     }
366
+   },
367
+   computed:{
368
+    mark(){
369
+      return this.ganzhi*1 + this.shidu*1 + this.huodong*1 + this.yidong*1 + this.mocha*1 + this.yingyang*1
370
+    }
345
    }
371
    }
346
 }
372
 }
347
 </script>
373
 </script>
348
 <style lang="scss" scoped>
374
 <style lang="scss" scoped>
349
   .content_top{
375
   .content_top{
350
     display: flex;
376
     display: flex;
351
-    justify-content: space-between; 
377
+    justify-content: space-between;
352
   }
378
   }
353
   .table{
379
   .table{
354
         border: 1px solid #DCDFE6;
380
         border: 1px solid #DCDFE6;
364
         tbody td{
390
         tbody td{
365
            height: 40px;
391
            height: 40px;
366
            padding: 5px;
392
            padding: 5px;
367
-           
393
+
368
         }
394
         }
369
         .start{
395
         .start{
370
           vertical-align: top;
396
           vertical-align: top;
401
     .zhuangui{
427
     .zhuangui{
402
         margin-top: 10px;
428
         margin-top: 10px;
403
     }
429
     }
404
-</style>
430
+</style>

+ 110 - 24
src/xt_pages/user/evaluationtool/pruritusAssessment.vue View File

24
               <tr>
24
               <tr>
25
                 <td class="start">痒的部位</td>
25
                 <td class="start">痒的部位</td>
26
                 <td>
26
                 <td>
27
-                    <div class="jiange">
28
-                        <span v-for="item in buwei" class="rightjiange" @change="handleCheckedCitiesChange">
29
-                            <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
30
-                        </span> 
31
-                        <label @change="handleCheckedCitiesChange"><input type="checkbox" name="ball" value="其他" />
32
-                            &nbsp;其他 <el-input v-model="input" style="width: 100px;"></el-input>
33
-                        </label>
34
-                    </div>
27
+                  <div class="jiange">
28
+                    <span v-for="item in buwei" class="rightjiange" @change="handleCheckedCitiesChange">
29
+                        <label><input type="checkbox" class="check" name="ball" :value="item" />&nbsp;{{ item }}</label>
30
+                    </span>
31
+                    <label @change="handleCheckedCitiesChange"><input type="checkbox" class="check" name="ball" value="其他" />
32
+                        &nbsp;其他 <el-input v-model="input" style="width: 100px;"></el-input>
33
+                    </label>
34
+                    <!-- quan_change -->
35
+                    <label @change="handleCheckedCitiesChange">
36
+                      <input type="checkbox" class="check" name="ball" value="全身" />&nbsp;全身
37
+                    </label>
38
+                  </div>
35
                 </td>
39
                 </td>
36
                 <td class="start">{{checked_points}}</td>
40
                 <td class="start">{{checked_points}}</td>
37
                 <td class="saoyang">瘙痒部位:计分范围1~3分一个部位瘙痒计1分,最多得3分,选全身计3分</td>
41
                 <td class="saoyang">瘙痒部位:计分范围1~3分一个部位瘙痒计1分,最多得3分,选全身计3分</td>
44
                             <el-radio v-for="(item,index ) in chengdu" :label="item" :key="index" style="color: black;font-size: 15PX;">{{ item }}</el-radio>
48
                             <el-radio v-for="(item,index ) in chengdu" :label="item" :key="index" style="color: black;font-size: 15PX;">{{ item }}</el-radio>
45
                         </el-radio-group>
49
                         </el-radio-group>
46
                     </div>
50
                     </div>
47
-                </td> 
51
+                </td>
48
                 <td class="start">{{radio1_points}}</td>
52
                 <td class="start">{{radio1_points}}</td>
49
-                <td class="saoyang">瘙痒严重程度:计分范围1~5分</td>                          
53
+                <td class="saoyang">瘙痒严重程度:计分范围1~5分</td>
50
               </tr>
54
               </tr>
51
               <tr>
55
               <tr>
52
                 <td class="start">痒的频率</td>
56
                 <td class="start">痒的频率</td>
112
           <div style="margin:5px 10px;">
116
           <div style="margin:5px 10px;">
113
               <el-button type="primary">确认</el-button>
117
               <el-button type="primary">确认</el-button>
114
           </div>
118
           </div>
115
-        </div>  
119
+        </div>
116
       </div>
120
       </div>
117
     </div>
121
     </div>
118
-      
122
+
119
   </div>
123
   </div>
120
 </template>
124
 </template>
121
 <script>
125
 <script>
138
       radio3_points:0,
142
       radio3_points:0,
139
       checked_points:0,
143
       checked_points:0,
140
       // pruritus_Totalpoints:0,
144
       // pruritus_Totalpoints:0,
141
-      buwei:['躯体','上肢','下肢','头皮','全身'],
145
+      buwei:['躯体','上肢','下肢','头皮'],
142
       chengdu:['不要抓(1)','要抓但没有抓痕(2)','抓出抓痕才能止痒(3)','经常抓出抓痕(4)','完全坐立不安(5)'],
146
       chengdu:['不要抓(1)','要抓但没有抓痕(2)','抓出抓痕才能止痒(3)','经常抓出抓痕(4)','完全坐立不安(5)'],
143
       pinlv:['很少时候(1)','较少时候(2)','较多时候(3)','很多时候(4)','一直持续(5)'],
147
       pinlv:['很少时候(1)','较少时候(2)','较多时候(3)','很多时候(4)','一直持续(5)'],
144
       yingxiang:['无影响(0)','一夜痒醒一次(2)','一夜痒醒两次(4)','一夜痒醒三次(6)'],
148
       yingxiang:['无影响(0)','一夜痒醒一次(2)','一夜痒醒两次(4)','一夜痒醒三次(6)'],
149
   },
153
   },
150
   methods:{
154
   methods:{
151
     handleCheckedCitiesChange(e){
155
     handleCheckedCitiesChange(e){
152
-      this.ball = e.target.value
153
-      console.log('1111111',this.ball)
156
+      const ball = e.target.value
157
+      // const checkboxs=document.getElementsByClassName('checkbox1')
158
+      const checkbox2=document.getElementsByClassName('check')
159
+      // if(checkboxs[0].checked==true){
160
+      //   // if(e.target.value == '全身'){
161
+      //     this.checked_points = 3
162
+      //   // }else{
163
+      //   //   var checked =1
164
+      //   //   this.checked_points = this.checked_points + checked
165
+      //   // }
166
+      // }else{
167
+      //   // if(e.target.value == '全身'){
168
+      //     this.checked_points = 0
169
+      //   // }else{
170
+      //   //   var checked =1
171
+      //   //   this.checked_points = this.checked_points - checked
172
+      //   // }
173
+      // }
174
+      // for(let i=0;i<checkbox2.length;i++){
175
+      //   if(ball=='全身'){
176
+      //     if(ball==checkbox2[i].value){
177
+      //       console.log('1111',this.checked_points);
178
+      //       checkbox2[i].checked=true
179
+      //       this.checked_points = 3
180
+      //     }else{
181
+      //       console.log('2222',this.checked_points);
182
+      //       checkbox2[i].checked=false
183
+      //     }
184
+      //   }else{
185
+      //     if(checkbox2[i].value=='全身'){
186
+      //       console.log('3333',this.checked_points);
187
+      //       this.checked_points=0
188
+      //       checkbox2[i].checked=false
189
+      //     }else{
190
+      //       if(checkbox2[i].value==ball){
191
+      //         console.log('4444',this.checked_points);
192
+      //         var checked =1
193
+      //         e.target.checked=true
194
+      //         this.checked_points = this.checked_points + checked
195
+      //         // return this.checked_points
196
+      //       }
197
+
198
+      //     }
199
+
200
+      //   }
201
+      //   // if(checkboxs[0].checked==true){
202
+      //   //   this.checked_points = 3
203
+      //   //   checkbox2[i].checked=false
204
+      //   // }else{
205
+      //   //   if(ball==checkbox2[i].value){
206
+      //   //     console.log('2222',checkbox2[1].value);
207
+      //   //     checkboxs[0].checked=false
208
+      //   //     checkbox2[i].checked=true
209
+      //   //     var checked =1
210
+      //   //     this.checked_points = this.checked_points + checked
211
+      //   //   }
212
+      //   // }
213
+      // }
214
+      // console.log('1111111',ball)
215
+      // for(let i=0;i<checkbox2.length;i++){
216
+      //   if(ball=='全身'){
217
+      //     checkboxs[0].checked=true
218
+      //     checkbox2[i].checked=false
219
+      //     this.checked_points = 3
220
+      //   }else{
221
+      //     var checked =1
222
+      //     checkboxs[0].checked=false
223
+      //     e.target.checked=true
224
+      //     this.checked_points = this.checked_points + checked
225
+      //   }
226
+      // }
227
+
228
+      // if(ball=='全身'){
229
+      //   checkboxs[0].checked=true
230
+      // }else{
231
+      //   checkboxs[0].checked=false
232
+      // }
233
+
154
       if(e.target.checked==true){
234
       if(e.target.checked==true){
155
         if(e.target.value == '全身'){
235
         if(e.target.value == '全身'){
156
           this.checked_points = 3
236
           this.checked_points = 3
157
-          // this.pruritus_Totalpoints=this.pruritus_Totalpoints + this.checked_points
158
         }else{
237
         }else{
159
-          var checked =1
160
-          this.checked_points = this.checked_points + checked
161
-          // this.pruritus_Totalpoints=this.pruritus_Totalpoints + checked
238
+          // if(this.checked_points<3){
239
+            var checked =1
240
+            this.checked_points = this.checked_points + checked
241
+          // }else{
242
+          //   this.checked_points = 3
243
+          // }
162
         }
244
         }
163
       }else{
245
       }else{
164
         if(e.target.value == '全身'){
246
         if(e.target.value == '全身'){
165
           this.checked_points = 0
247
           this.checked_points = 0
166
-          // this.pruritus_Totalpoints=this.pruritus_Totalpoints - 3
167
         }else{
248
         }else{
168
           var checked =1
249
           var checked =1
169
           this.checked_points = this.checked_points - checked
250
           this.checked_points = this.checked_points - checked
170
-          // this.pruritus_Totalpoints=this.pruritus_Totalpoints - checked
171
         }
251
         }
172
       }
252
       }
173
     },
253
     },
254
+    quan_change(e){
255
+      const ball=e.target.value
256
+      if(ball=='全身'){
257
+
258
+      }
259
+    },
174
     radiochecked(e){
260
     radiochecked(e){
175
       const bal=e
261
       const bal=e
176
       const jiequ =(bal.split('(')[1].split(')')[0]) * 1
262
       const jiequ =(bal.split('(')[1].split(')')[0]) * 1
198
 <style lang="scss" scoped>
284
 <style lang="scss" scoped>
199
     .content_top{
285
     .content_top{
200
       display: flex;
286
       display: flex;
201
-      justify-content: space-between; 
287
+      justify-content: space-between;
202
     }
288
     }
203
     .table{
289
     .table{
204
         border: 1px solid #DCDFE6;
290
         border: 1px solid #DCDFE6;
241
     .bottoms{
327
     .bottoms{
242
         display: inline-block;
328
         display: inline-block;
243
         margin-left: 10px;
329
         margin-left: 10px;
244
-        margin-top: 5px; 
330
+        margin-top: 5px;
245
     }
331
     }
246
-</style>
332
+</style>

+ 93 - 35
src/xt_pages/user/history/Children_history.vue View File

58
             show-overflow-tooltip>
58
             show-overflow-tooltip>
59
             <template slot-scope="scope">
59
             <template slot-scope="scope">
60
               <el-button type="primary" icon="el-icon-edit-outline" @click="open_editor(scope.row)"></el-button>
60
               <el-button type="primary" icon="el-icon-edit-outline" @click="open_editor(scope.row)"></el-button>
61
-              <el-button type="primary" icon="el-icon-delete"></el-button>
61
+              <el-button type="primary" icon="el-icon-delete" @click="deletes(scope.row)"></el-button>
62
             </template>
62
             </template>
63
           </el-table-column>
63
           </el-table-column>
64
         </el-table>
64
         </el-table>
230
             <td class="start">年龄</td>
230
             <td class="start">年龄</td>
231
             <td v-for="(item,index) in age" :key="index">
231
             <td v-for="(item,index) in age" :key="index">
232
               <div class="jiange">
232
               <div class="jiange">
233
-                <label><input name="ball" type="checkbox"  :value="item.value" @click="ageChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
233
+                <label><input name="ball" class="checked1" type="checkbox" :value="item.value" @click="ageChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
234
               </div>
234
               </div>
235
             </td>
235
             </td>
236
           </tr>
236
           </tr>
241
             <td colspan="2" style="border-left: none;"></td>
241
             <td colspan="2" style="border-left: none;"></td>
242
             <td v-for="(item,index) in sex" :key="index">
242
             <td v-for="(item,index) in sex" :key="index">
243
               <div class="jiange">
243
               <div class="jiange">
244
-                <label><input name="ball" type="checkbox" :value="item.value" @click="sexChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
244
+                <label><input name="ball" class="checked2" type="checkbox" :value="item.value" @click="sexChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
245
               </div>
245
               </div>
246
             </td>
246
             </td>
247
           </tr>
247
           </tr>
249
             <td class="start">诊断</td>
249
             <td class="start">诊断</td>
250
             <td v-for="(item,index) in diagnosis" :key="index">
250
             <td v-for="(item,index) in diagnosis" :key="index">
251
               <div class="jiange">
251
               <div class="jiange">
252
-                <label><input name="ball" type="checkbox" :value="item.value" @click="diagnosischange($event,item.value)"/>&nbsp;{{item.lable}}</label>
252
+                <label><input name="ball" class="checked3" type="checkbox" :value="item.value" @click="diagnosischange($event,item.value)"/>&nbsp;{{item.lable}}</label>
253
               </div>
253
               </div>
254
             </td>
254
             </td>
255
 
255
 
261
             <td style="border-left: none;"></td>
261
             <td style="border-left: none;"></td>
262
             <td v-for="(item,index) in cognize" :key="index">
262
             <td v-for="(item,index) in cognize" :key="index">
263
               <div class="jiange">
263
               <div class="jiange">
264
-                <label><input name="ball" type="checkbox" :value="item.value" @click="cognizeChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
264
+                <label><input name="ball" class="checked4" type="checkbox" :value="item.value" @click="cognizeChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
265
               </div>
265
               </div>
266
             </td>
266
             </td>
267
 
267
 
270
             <td class="start">环境因素</td>
270
             <td class="start">环境因素</td>
271
             <td v-for="(item,index) in environment" :key="index">
271
             <td v-for="(item,index) in environment" :key="index">
272
               <div class="jiange">
272
               <div class="jiange">
273
-                <label><input name="ball" type="checkbox" :value="item.value" @click="environChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
273
+                <label><input name="ball" class="checked5" type="checkbox" :value="item.value" @click="environChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
274
               </div>
274
               </div>
275
             </td>
275
             </td>
276
 
276
 
282
             <td style="border-left: none;"></td>
282
             <td style="border-left: none;"></td>
283
             <td v-for="(item,index) in medicine" :key="index">
283
             <td v-for="(item,index) in medicine" :key="index">
284
               <div class="jiange">
284
               <div class="jiange">
285
-                <label><input name="ball" type="checkbox" :value="item.value" @click="medicineChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
285
+                <label><input name="ball" class="checked6" type="checkbox" :value="item.value" @click="medicineChange($event,item.value)"/>&nbsp;{{item.lable}}</label>
286
               </div>
286
               </div>
287
             </td>
287
             </td>
288
 
288
 
331
         </tbody>
331
         </tbody>
332
       </table>
332
       </table>
333
     </el-dialog>
333
     </el-dialog>
334
+     <!--删除 -->
335
+     <el-dialog
336
+      title="提示"
337
+      :visible.sync="delete_centerDialogVisible"
338
+      width="20%"
339
+      center>
340
+      <span>是否删除该记录</span>
341
+      <span slot="footer" class="dialog-footer">
342
+        <el-button @click="delete_centerDialogVisible=false">取 消</el-button>
343
+        <el-button type="primary" @click="delete_childer">确 定</el-button>
344
+      </span>
345
+    </el-dialog>
334
   </div>
346
   </div>
335
 </template>
347
 </template>
336
 <script>
348
 <script>
338
 export default{
350
 export default{
339
   data(){
351
   data(){
340
     return{
352
     return{
341
-      tableData:[{time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
353
+      tableData:[{id:1,time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{id:2,time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
342
       multipleSelection:[],
354
       multipleSelection:[],
343
       dialogVisible:false,
355
       dialogVisible:false,
344
       mingxi_dialogVisible:false,
356
       mingxi_dialogVisible:false,
345
       editor_dialogVisible:false,
357
       editor_dialogVisible:false,
358
+      delete_centerDialogVisible:false,
346
 
359
 
360
+      row:'',
347
       value1:'',
361
       value1:'',
348
       value:'',
362
       value:'',
349
       options:[],
363
       options:[],
374
       checked:'',
388
       checked:'',
375
       checkList:[],
389
       checkList:[],
376
       text:'',
390
       text:'',
391
+
377
     }
392
     }
378
   },
393
   },
379
   methods:{
394
   methods:{
400
     open_editor(row){
415
     open_editor(row){
401
       this.editor_dialogVisible =true
416
       this.editor_dialogVisible =true
402
     },
417
     },
403
-
418
+    deletes(row){
419
+      this.row=row.id
420
+      this.delete_centerDialogVisible = true
421
+    },
422
+    delete_childer(){
423
+      for(let i=0;i<this.tableData.length;i++){
424
+        if(this.row==this.tableData[i].id){
425
+          this.tableData.splice(i,1)
426
+        }
427
+      }
428
+      this.delete_centerDialogVisible=false
429
+    },
404
     print_pingfen(id){
430
     print_pingfen(id){
405
       this.dialogVisible=false
431
       this.dialogVisible=false
406
       this.mingxi_dialogVisible=false
432
       this.mingxi_dialogVisible=false
428
     },
454
     },
429
 
455
 
430
     ageChange(e,val){
456
     ageChange(e,val){
431
-      console.log('22222',val);
432
-      if(e.target.checked == true){
457
+      console.log('22222',e,val);
458
+      const checkboxs=document.getElementsByClassName('checked1')
459
+     for(let i=0;i<checkboxs.length;i++){
460
+      if(val==checkboxs[i].value){
433
         this.agevalue = val
461
         this.agevalue = val
462
+        checkboxs[i].value
463
+        checkboxs[i].checked=true
434
       }else{
464
       }else{
435
-        this.agevalue = this.agevalue - val
465
+        checkboxs[i].checked = false
436
       }
466
       }
467
+     }
437
     },
468
     },
438
     sexChange(e,val){
469
     sexChange(e,val){
439
-      if(e.target.checked == true){
440
-        this.sexvalue = val
441
-      }else{
442
-        this.sexvalue =  this.sexvalue - val
443
-      }
470
+      const checkboxs=document.getElementsByClassName('checked2')
471
+      for(let i=0;i<checkboxs.length;i++){
472
+        if(val==checkboxs[i].value ){
473
+          console.log('vvvv',val,'bbbb',e.target.checked);
474
+          this.sexvalue = val
475
+
476
+          checkboxs[i].checked=true
477
+
478
+        }else{
479
+          checkboxs[i].checked = false
480
+        }
481
+     }
444
     },
482
     },
445
     diagnosischange(e,val){
483
     diagnosischange(e,val){
446
-      if(e.target.checked == true){
447
-        this.diagnosis_val = val
448
-      }else{
449
-        this.diagnosis_val =  this.diagnosis_val - val
450
-      }
484
+      const checkboxs=document.getElementsByClassName('checked3')
485
+      for(let i=0;i<checkboxs.length;i++){
486
+        if(val==checkboxs[i].value ){
487
+          console.log('vvvv',val,'bbbb',e.target.checked);
488
+          this.diagnosis_val = val
489
+          checkboxs[i].checked=true
490
+        }else{
491
+          checkboxs[i].checked = false
492
+        }
493
+     }
451
     },
494
     },
452
     cognizeChange(e,val){
495
     cognizeChange(e,val){
453
-      if(e.target.checked == true){
454
-        this.cognize_val = val
455
-      }else{
456
-        this.cognize_val =  this.cognize_val - val
496
+      const checkboxs=document.getElementsByClassName('checked4')
497
+      for(let i=0;i<checkboxs.length;i++){
498
+        if(val==checkboxs[i].value ){
499
+          console.log('vvvv',val,'bbbb',e.target.checked);
500
+          this.cognize_val = val
501
+          checkboxs[i].checked=true
502
+        }else{
503
+          checkboxs[i].checked = false
504
+        }
457
       }
505
       }
458
     },
506
     },
459
     environChange(e,val){
507
     environChange(e,val){
460
-      if(e.target.checked == true){
461
-        this.environment_val = val
462
-      }else{
463
-        this.environment_val =  this.environment_val - val
508
+      const checkboxs=document.getElementsByClassName('checked5')
509
+      for(let i=0;i<checkboxs.length;i++){
510
+        if(val==checkboxs[i].value ){
511
+          console.log('vvvv',val,'bbbb',e.target.checked);
512
+          this.environment_val = val
513
+          checkboxs[i].checked=true
514
+        }else{
515
+          checkboxs[i].checked = false
516
+        }
464
       }
517
       }
465
     },
518
     },
466
     medicineChange(e,val){
519
     medicineChange(e,val){
467
-      if(e.target.checked == true){
468
-        this.medicine_val = val
469
-      }else{
470
-        this.medicine_val =  this.medicine_val - val
520
+      const checkboxs=document.getElementsByClassName('checked6')
521
+      for(let i=0;i<checkboxs.length;i++){
522
+        if(val==checkboxs[i].value ){
523
+          console.log('vvvv',val,'bbbb',e.target.checked);
524
+          this.medicine_val = val
525
+          checkboxs[i].checked=true
526
+        }else{
527
+          checkboxs[i].checked = false
528
+        }
471
       }
529
       }
472
     },
530
     },
473
   },
531
   },
474
   computed:{
532
   computed:{
475
     pedia_Totalpoints(){
533
     pedia_Totalpoints(){
476
       return this.agevalue + this.sexvalue + this.diagnosis_val +this.cognize_val + this.environment_val + this.medicine_val
534
       return this.agevalue + this.sexvalue + this.diagnosis_val +this.cognize_val + this.environment_val + this.medicine_val
477
-    }
535
+    },
478
   }
536
   }
479
 }
537
 }
480
 </script>
538
 </script>

+ 65 - 12
src/xt_pages/user/history/Pressure_history.vue View File

94
             show-overflow-tooltip>
94
             show-overflow-tooltip>
95
             <template slot-scope="scope">
95
             <template slot-scope="scope">
96
               <el-button type="primary" icon="el-icon-edit-outline" @click="open_editor(scope.row)"></el-button>
96
               <el-button type="primary" icon="el-icon-edit-outline" @click="open_editor(scope.row)"></el-button>
97
-              <el-button type="primary" icon="el-icon-delete"></el-button>
97
+              <el-button type="primary" icon="el-icon-delete" @click="open_delete(scope.row)"></el-button>
98
             </template>
98
             </template>
99
           </el-table-column>
99
           </el-table-column>
100
         </el-table>
100
         </el-table>
431
                   <div class="jiange">
431
                   <div class="jiange">
432
                     <label><input name="ball" type="checkbox" value="football" />&nbsp;其他</label>
432
                     <label><input name="ball" type="checkbox" value="football" />&nbsp;其他</label>
433
                   </div>
433
                   </div>
434
-                  <div class="tianjia">
434
+                  <div class="tianjia" @click="add_press=true">
435
                     <!--  style="position: absolute;bottom: 0px;font-size: 17px;color:#4579C5;line-height: 40px;" -->
435
                     <!--  style="position: absolute;bottom: 0px;font-size: 17px;color:#4579C5;line-height: 40px;" -->
436
                     +添加
436
                     +添加
437
                   </div>
437
                   </div>
561
                   </el-date-picker>
561
                   </el-date-picker>
562
                 </td>
562
                 </td>
563
                 <td class="start">
563
                 <td class="start">
564
-                  <el-input v-model="input" style="width:80px;"></el-input>
564
+                    <el-input v-model="ganzhi" style="width:80px;"></el-input>
565
                 </td>
565
                 </td>
566
                 <td class="start">
566
                 <td class="start">
567
-                  <el-input v-model="input" style="width:80px"></el-input>
567
+                  <el-input v-model="shidu" style="width:80px"></el-input>
568
                 </td>
568
                 </td>
569
                 <td class="start">
569
                 <td class="start">
570
-                  <el-input v-model="input" style="width:80px"></el-input>
570
+                  <el-input v-model="huodong" style="width:80px"></el-input>
571
                 </td>
571
                 </td>
572
                 <td class="start">
572
                 <td class="start">
573
-                  <el-input v-model="input" style="width:80px"></el-input>
573
+                  <el-input v-model="yidong" style="width:80px"></el-input>
574
                 </td>
574
                 </td>
575
                 <td class="start">
575
                 <td class="start">
576
-                  <el-input v-model="input" style="width:80px"></el-input>
576
+                  <el-input v-model="yingyang" style="width:80px"></el-input>
577
                 </td>
577
                 </td>
578
                 <td class="start">
578
                 <td class="start">
579
-                  <el-input v-model="input" style="width:80px"></el-input>
579
+                  <el-input v-model="mocha" style="width:80px"></el-input>
580
                 </td>
580
                 </td>
581
                 <td class="start">
581
                 <td class="start">
582
-                  <el-input v-model="input" style="width:80px"></el-input>
582
+                  <el-input v-model="mark" style="width:70px"></el-input>
583
                 </td>
583
                 </td>
584
                 <td class="start">
584
                 <td class="start">
585
-                  <el-select v-model="value" placeholder="请选择" >
585
+                  <el-select v-model="value" placeholder="请选择"  style="width:120px;">
586
                       <el-option
586
                       <el-option
587
                         v-for="item in options"
587
                         v-for="item in options"
588
                         :key="item.value"
588
                         :key="item.value"
589
                         :label="item.label"
589
                         :label="item.label"
590
                         :value="item.value"
590
                         :value="item.value"
591
-                        style="width:150px;">
591
+                       >
592
                       </el-option>
592
                       </el-option>
593
                   </el-select>
593
                   </el-select>
594
                 </td>
594
                 </td>
666
           </div>
666
           </div>
667
       </div>
667
       </div>
668
     </el-dialog>
668
     </el-dialog>
669
+    <!-- 编辑添加弹窗页面 -->
670
+    <el-dialog
671
+        title="增加护理措施"
672
+        :visible.sync="add_press"
673
+        width="30%"
674
+      >
675
+        <span>
676
+          护理措施:
677
+          <input type="text" style="width: 290px;height: 36px;border: 1px solid #d7d7d7;">
678
+        </span>
679
+        <span slot="footer" class="dialog-footer">
680
+          <el-button @click="add_press = false">取 消</el-button>
681
+          <el-button type="primary" @click="add_press = false">确 定</el-button>
682
+        </span>
683
+    </el-dialog>
684
+    <!--删除 -->
685
+    <el-dialog
686
+      title="提示"
687
+      :visible.sync="delete_centerDialogVisible"
688
+      width="20%"
689
+      center>
690
+      <span>是否删除该记录</span>
691
+      <span slot="footer" class="dialog-footer">
692
+        <el-button @click="delete_centerDialogVisible = false">取 消</el-button>
693
+        <el-button type="primary" @click="delete_press">确 定</el-button>
694
+      </span>
695
+    </el-dialog>
669
   </div>
696
   </div>
670
 </template>
697
 </template>
671
 <script>
698
 <script>
673
 export default{
700
 export default{
674
   data(){
701
   data(){
675
     return{
702
     return{
676
-      tableData:[{time:'2023-9-27',ganzhi:'2',shidu:'2',huodong:'3',yidong:'4',yingyang:'1',mocha:'3',mark:'15',evaluate:'千亦雪'}],
703
+      tableData:[{id:1,time:'2023-9-27',ganzhi:'2',shidu:'2',huodong:'3',yidong:'4',yingyang:'1',mocha:'3',mark:'15',evaluate:'千亦雪'}],
677
       multipleSelection:[],
704
       multipleSelection:[],
678
       dialogVisible:false,
705
       dialogVisible:false,
679
       mingxi_dialogVisible:false,
706
       mingxi_dialogVisible:false,
680
       editor_dialogVisible:false,
707
       editor_dialogVisible:false,
708
+      delete_centerDialogVisible:false,
681
 
709
 
710
+      ganzhi:null,
711
+      shidu:null,
712
+      huodong:null,
713
+      yidong:null,
714
+      yingyang:null,
715
+      mocha:null,
716
+      add_press:false,
682
       zhuangui:['出院','死亡','其他'],
717
       zhuangui:['出院','死亡','其他'],
683
       value1:'',
718
       value1:'',
684
       checkList:[],
719
       checkList:[],
685
       input:'',
720
       input:'',
686
       options:[],
721
       options:[],
687
       value:'',
722
       value:'',
723
+      row:''
688
     }
724
     }
689
   },
725
   },
690
   methods:{
726
   methods:{
711
     open_editor(row){
747
     open_editor(row){
712
       this.editor_dialogVisible =true
748
       this.editor_dialogVisible =true
713
     },
749
     },
750
+    open_delete(row){
751
+      this.row=row.id
752
+      this.delete_centerDialogVisible=true
753
+    },
754
+    delete_press(){
755
+      for(let i=0;i<this.tableData.length;i++){
756
+        if(this.row==this.tableData[i].id){
757
+          this.tableData.splice(i,1)
758
+        }
759
+      }
760
+      this.delete_centerDialogVisible=false
761
+    },
714
     print_pingfen(id){
762
     print_pingfen(id){
715
       const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .table tr td{padding:5px}}'
763
       const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .table tr td{padding:5px}}'
716
       if(id==1){
764
       if(id==1){
732
       }
780
       }
733
 
781
 
734
     },
782
     },
783
+  },
784
+  computed:{
785
+    mark(){
786
+      return this.ganzhi*1 + this.shidu*1 + this.huodong*1 + this.yidong*1 + this.mocha*1 + this.yingyang*1
787
+    }
735
   }
788
   }
736
 }
789
 }
737
 </script>
790
 </script>

+ 31 - 3
src/xt_pages/user/history/RASS_history.vue View File

61
             align="center"
61
             align="center"
62
             show-overflow-tooltip>
62
             show-overflow-tooltip>
63
             <template slot-scope="scope">
63
             <template slot-scope="scope">
64
-              <el-button type="primary" icon="el-icon-delete"></el-button>
64
+              <el-button type="primary" icon="el-icon-delete" @click="RASS_delete(scope.row)"></el-button>
65
             </template>
65
             </template>
66
           </el-table-column>
66
           </el-table-column>
67
         </el-table>
67
         </el-table>
288
         </div>
288
         </div>
289
       </div>
289
       </div>
290
     </el-dialog>
290
     </el-dialog>
291
+     <!--删除 -->
292
+     <el-dialog
293
+      title="提示"
294
+      :visible.sync="delete_centerDialogVisible"
295
+      width="20%"
296
+      center>
297
+      <span>是否删除该记录</span>
298
+      <span slot="footer" class="dialog-footer">
299
+        <el-button @click="delete_centerDialogVisible = false">取 消</el-button>
300
+        <el-button type="primary" @click="deletes">确 定</el-button>
301
+      </span>
302
+    </el-dialog>
291
   </div>
303
   </div>
292
 </template>
304
 </template>
293
 <script>
305
 <script>
301
       RASS_dialogVisible:false,
313
       RASS_dialogVisible:false,
302
       teng_dialogVisible:false,
314
       teng_dialogVisible:false,
303
       mingxi_dialogVisible:false,
315
       mingxi_dialogVisible:false,
304
-      tableData:[{time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
316
+      delete_centerDialogVisible:false,
317
+      row:'',
318
+
319
+      tableData:[{id:1,time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{id:1,time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
305
       LOS:[{title:'0分', value:'清醒'},{title:'1分', value:'有些昏昏欲睡,但容易唤醒'},
320
       LOS:[{title:'0分', value:'清醒'},{title:'1分', value:'有些昏昏欲睡,但容易唤醒'},
306
             {title:'2分', value:'频繁发生昏昏欲睡,容易唤醒,但不能持续处于觉醒状态'},
321
             {title:'2分', value:'频繁发生昏昏欲睡,容易唤醒,但不能持续处于觉醒状态'},
307
             {title:'3分', value:'无意识,无法唤醒'},{title:'S分', value:'正常意识,容易唤醒'}
322
             {title:'3分', value:'无意识,无法唤醒'},{title:'S分', value:'正常意识,容易唤醒'}
374
       this.teng_dialogVisible=false
389
       this.teng_dialogVisible=false
375
     },
390
     },
376
     teng_dele(row){
391
     teng_dele(row){
377
-      this.tableData.splice(row, 1);
392
+      this.row=row.id
393
+      this.delete_centerDialogVisible=true
394
+    },
395
+    RASS_delete(row){
396
+      this.row=row.id
397
+      this.delete_centerDialogVisible=true
398
+    },
399
+    deletes(){
400
+      for(let i=0;i<this.tableData.length;i++){
401
+        if(this.row==this.tableData[i].id){
402
+          this.tableData.splice(i,1)
403
+        }
404
+      }
405
+      this.delete_centerDialogVisible=false
378
     }
406
     }
379
   }
407
   }
380
 }
408
 }

+ 28 - 4
src/xt_pages/user/history/daoguan_history.vue View File

79
             show-overflow-tooltip>
79
             show-overflow-tooltip>
80
             <template slot-scope="scope">
80
             <template slot-scope="scope">
81
               <el-button type="primary" icon="el-icon-edit-outline" @click="open_xiugai(scope.row)"></el-button>
81
               <el-button type="primary" icon="el-icon-edit-outline" @click="open_xiugai(scope.row)"></el-button>
82
-              <el-button type="primary" icon="el-icon-delete"></el-button>
82
+              <el-button type="primary" icon="el-icon-delete" @click="open_delete(scope.row)"></el-button>
83
             </template>
83
             </template>
84
           </el-table-column>
84
           </el-table-column>
85
         </el-table>
85
         </el-table>
430
           <p>3.常规情况下,评分5~8分,至少每天评估一次;评分≥9,至少每班评估一次,紧急与特殊情况,应随时评估。</p>
430
           <p>3.常规情况下,评分5~8分,至少每天评估一次;评分≥9,至少每班评估一次,紧急与特殊情况,应随时评估。</p>
431
       </div>
431
       </div>
432
     </el-dialog>
432
     </el-dialog>
433
-
433
+     <!--删除 -->
434
+     <el-dialog
435
+      title="提示"
436
+      :visible.sync="delete_centerDialogVisible"
437
+      width="20%"
438
+      center>
439
+      <span>是否删除该记录</span>
440
+      <span slot="footer" class="dialog-footer">
441
+        <el-button @click="delete_centerDialogVisible = false">取 消</el-button>
442
+        <el-button type="primary" @click="delete_daogaun">确 定</el-button>
443
+      </span>
444
+    </el-dialog>
434
   </div>
445
   </div>
435
 </template>
446
 </template>
436
 <script>
447
 <script>
443
       dialogVisible:false,
454
       dialogVisible:false,
444
       mingxi_dialogVisible:false,
455
       mingxi_dialogVisible:false,
445
       editor_dialogVisible:false,
456
       editor_dialogVisible:false,
446
-      tableData:[{time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
457
+      delete_centerDialogVisible:false,
458
+      tableData:[{id:1,time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{id:2,time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
447
       tuoguan:['低危导管 (1分)','中危导管 (2分)','高危导管 (3分)'],
459
       tuoguan:['低危导管 (1分)','中危导管 (2分)','高危导管 (3分)'],
448
       yishi:['意识清醒 (0分)','中昏迷、深昏迷 (1分)','嗜睡、昏睡 (2分)','浅昏迷 (3分)','意识模糊 (4分)'],
460
       yishi:['意识清醒 (0分)','中昏迷、深昏迷 (1分)','嗜睡、昏睡 (2分)','浅昏迷 (3分)','意识模糊 (4分)'],
449
       peihe:['完全配合 (1分)','部分配合 (2分)','不配合 (3分)'],
461
       peihe:['完全配合 (1分)','部分配合 (2分)','不配合 (3分)'],
459
       options:[],
471
       options:[],
460
       input:'',
472
       input:'',
461
       value:'',
473
       value:'',
474
+      row:''
462
     }
475
     }
463
   },
476
   },
464
   methods:{
477
   methods:{
508
     open_xiugai(row){
521
     open_xiugai(row){
509
       this.editor_dialogVisible=true
522
       this.editor_dialogVisible=true
510
     },
523
     },
511
-
524
+    open_delete(row){
525
+      this.row=row.id
526
+      this.delete_centerDialogVisible=true
527
+    },
528
+    delete_daogaun(){
529
+      for(let i=0;i<this.tableData.length;i++){
530
+        if(this.row==this.tableData[i].id){
531
+          this.tableData.splice(i,1)
532
+        }
533
+      }
534
+      this.delete_centerDialogVisible=false
535
+    },
512
     handleCheckedCitiesChange(e){
536
     handleCheckedCitiesChange(e){
513
       const ball=e
537
       const ball=e
514
       const jiequ =(ball.split('(')[1].split('分')[0]) * 1
538
       const jiequ =(ball.split('(')[1].split('分')[0]) * 1

+ 150 - 70
src/xt_pages/user/history/date_history.vue View File

119
             >
119
             >
120
             <template slot-scope="scope">
120
             <template slot-scope="scope">
121
               <el-button type="primary" icon="el-icon-edit-outline" @click="open_xiugai(scope.row)"></el-button>
121
               <el-button type="primary" icon="el-icon-edit-outline" @click="open_xiugai(scope.row)"></el-button>
122
-              <el-button type="primary" icon="el-icon-delete"></el-button>
122
+              <el-button type="primary" icon="el-icon-delete" @click="open_delete(scope.row)"></el-button>
123
             </template>
123
             </template>
124
           </el-table-column>
124
           </el-table-column>
125
         </el-table>
125
         </el-table>
373
               <tr class="bg_color">
373
               <tr class="bg_color">
374
                 <td class="start">进食</td>
374
                 <td class="start">进食</td>
375
                 <td v-for="(item,index) in jinshi" :key="index">
375
                 <td v-for="(item,index) in jinshi" :key="index">
376
-                    <div class="jiange">
377
-                      <span>
378
-                        <label><input type="checkbox" name="ball" :value="item.value" @click="jinshiclick($event,item.value)"/>&nbsp;
379
-                            {{ item.label }}
380
-                        </label>
381
-                      </span>
382
-                    </div>
376
+                  <div class="jiange">
377
+                    <span>
378
+                      <label><input type="checkbox" class="checkbox1" name="ball" :value="item.value" @click="jinshiclick($event,item.value)"/>&nbsp;
379
+                          {{ item.label }}
380
+                      </label>
381
+                    </span>
382
+                  </div>
383
                 </td>
383
                 </td>
384
                 <td>&nbsp;</td>
384
                 <td>&nbsp;</td>
385
               </tr>
385
               </tr>
388
                 <td v-for="(item,index) in xizao" :key="index">
388
                 <td v-for="(item,index) in xizao" :key="index">
389
                   <div class="jiange">
389
                   <div class="jiange">
390
                     <span>
390
                     <span>
391
-                      <label><input type="checkbox" name="ball" :value="item.value" @click="xizaoclick($event,item.value)"/>&nbsp;
391
+                      <label><input type="checkbox" class="checkbox2" name="ball" :value="item.value" @click="xizaoclick($event,item.value)"/>&nbsp;
392
                           {{ item.label }}
392
                           {{ item.label }}
393
                       </label>
393
                       </label>
394
                     </span>
394
                     </span>
402
                 <td v-for="(item,index) in xiushi" :key="index">
402
                 <td v-for="(item,index) in xiushi" :key="index">
403
                     <div class="jiange">
403
                     <div class="jiange">
404
                       <span>
404
                       <span>
405
-                        <label><input type="checkbox" name="ball" :value="item.value" @click="xiushiclick($event,item.value)"/>&nbsp;
405
+                        <label><input type="checkbox" class="checkbox3" name="ball" :value="item.value" @click="xiushiclick($event,item.value)"/>&nbsp;
406
                             {{item.label}}
406
                             {{item.label}}
407
                         </label>
407
                         </label>
408
                       </span>
408
                       </span>
416
                 <td v-for="(item,index) in chuanyi" :key="index">
416
                 <td v-for="(item,index) in chuanyi" :key="index">
417
                   <div class="jiange">
417
                   <div class="jiange">
418
                     <span>
418
                     <span>
419
-                      <label><input type="checkbox" name="ball" :value="item.value" @click="chuanyiclick($event,item.value)"/>&nbsp;
419
+                      <label><input type="checkbox" class="checkbox4" name="ball" :value="item.value" @click="chuanyiclick($event,item.value)"/>&nbsp;
420
                           {{item.label}}
420
                           {{item.label}}
421
                       </label>
421
                       </label>
422
                     </span>
422
                     </span>
429
                 <td v-for="(item,index) in dabian" :key="index">
429
                 <td v-for="(item,index) in dabian" :key="index">
430
                   <div class="jiange">
430
                   <div class="jiange">
431
                     <span>
431
                     <span>
432
-                      <label><input type="checkbox" name="ball" :value="item.value" @click="dabianclick($event,item.value)"/>&nbsp;
432
+                      <label><input type="checkbox" class="checkbox5" name="ball" :value="item.value" @click="dabianclick($event,item.value)"/>&nbsp;
433
                           {{item.label}}
433
                           {{item.label}}
434
                       </label>
434
                       </label>
435
                     </span>
435
                     </span>
442
                 <td v-for="(item,index) in xioabian" :key="index">
442
                 <td v-for="(item,index) in xioabian" :key="index">
443
                   <div class="jiange">
443
                   <div class="jiange">
444
                     <span>
444
                     <span>
445
-                      <label><input type="checkbox" name="ball" :value="item.value" @click="xioabianclick($event,item.value)"/>&nbsp;
445
+                      <label><input type="checkbox" class="checkbox6" name="ball" :value="item.value" @click="xiaobianclick($event,item.value)"/>&nbsp;
446
                           {{item.label}}
446
                           {{item.label}}
447
                       </label>
447
                       </label>
448
                     </span>
448
                     </span>
455
                 <td v-for="(item,index) in ruce" :key="index">
455
                 <td v-for="(item,index) in ruce" :key="index">
456
                   <div class="jiange">
456
                   <div class="jiange">
457
                     <span>
457
                     <span>
458
-                      <label><input type="checkbox" name="ball" :value="item.value" @click="ruceclick($event,item.value)"/>&nbsp;
458
+                      <label><input type="checkbox" class="checkbox7" name="ball" :value="item.value" @click="ruceclick($event,item.value)"/>&nbsp;
459
                           {{item.label}}
459
                           {{item.label}}
460
                       </label>
460
                       </label>
461
                     </span>
461
                     </span>
468
                 <td v-for="(item,index) in chuangyi" :key="index">
468
                 <td v-for="(item,index) in chuangyi" :key="index">
469
                   <div class="jiange">
469
                   <div class="jiange">
470
                     <span>
470
                     <span>
471
-                      <label><input type="checkbox" name="ball" :value="item.value" @click="chuangyiclick($event,item.value)"/>&nbsp;
471
+                      <label><input type="checkbox" class="checkbox8" name="ball" :value="item.value" @click="chuangyiclick($event,item.value)"/>&nbsp;
472
                           {{item.label}}
472
                           {{item.label}}
473
                       </label>
473
                       </label>
474
                     </span>
474
                     </span>
480
                 <td v-for="(item,index) in pingdi" :key="index">
480
                 <td v-for="(item,index) in pingdi" :key="index">
481
                   <div class="jiange">
481
                   <div class="jiange">
482
                     <span>
482
                     <span>
483
-                      <label><input type="checkbox" name="ball" :value="item.value" @click="pingdiclick($event,item.value)"/>&nbsp;
483
+                      <label><input type="checkbox" class="checkbox9" name="ball" :value="item.value" @click="pingdiclick($event,item.value)"/>&nbsp;
484
                           {{item.label}}
484
                           {{item.label}}
485
                       </label>
485
                       </label>
486
                     </span>
486
                     </span>
492
                 <td v-for="(item,index) in louti" :key="index">
492
                 <td v-for="(item,index) in louti" :key="index">
493
                   <div class="jiange">
493
                   <div class="jiange">
494
                     <span>
494
                     <span>
495
-                      <label><input type="checkbox" name="ball" :value="item.value" @click="louticlick($event,item.value)"/>&nbsp;
495
+                      <label><input type="checkbox" class="checkbox10" name="ball" :value="item.value" @click="louticlick($event,item.value)"/>&nbsp;
496
                           {{ item.label }}
496
                           {{ item.label }}
497
                       </label>
497
                       </label>
498
                     </span>
498
                     </span>
544
         </table>
544
         </table>
545
       </div>
545
       </div>
546
     </el-dialog>
546
     </el-dialog>
547
+     <!--删除 -->
548
+     <el-dialog
549
+      title="提示"
550
+      :visible.sync="delete_centerDialogVisible"
551
+      width="20%"
552
+      center>
553
+      <span>是否删除该记录</span>
554
+      <span slot="footer" class="dialog-footer">
555
+        <el-button @click="delete_centerDialogVisible = false">取 消</el-button>
556
+        <el-button type="primary" @click="delete_date">确 定</el-button>
557
+      </span>
558
+    </el-dialog>
547
   </div>
559
   </div>
548
 </template>
560
 </template>
549
 <script>
561
 <script>
556
       dialogVisible:false,
568
       dialogVisible:false,
557
       mingxi_dialogVisible:false,
569
       mingxi_dialogVisible:false,
558
       editor_dialogVisible:false,
570
       editor_dialogVisible:false,
559
-      tableData:[{time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
571
+      delete_centerDialogVisible:false,
572
+      tableData:[{id:1,time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{id:2,time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
560
       jinshi:[{value:10,label:'可独立进食(10分)'},
573
       jinshi:[{value:10,label:'可独立进食(10分)'},
561
               {value:5,label:'需部分帮助(如协助夹菜等)(5分)'},
574
               {value:5,label:'需部分帮助(如协助夹菜等)(5分)'},
562
               {value:0,label:'需极大帮助或完全依赖他人(0分)'}
575
               {value:0,label:'需极大帮助或完全依赖他人(0分)'}
575
               {value:5,label:'偶尔失禁(5分)'},
588
               {value:5,label:'偶尔失禁(5分)'},
576
               {value:0,label:'完全失禁(0分)'}
589
               {value:0,label:'完全失禁(0分)'}
577
             ],
590
             ],
578
-      xioabian:[{value:10,label:'可控制便(10分)'},
591
+      xioabian:[{value:10,label:'可控制便(10分)'},
579
               {value:5,label:'偶尔失禁(5分)'},
592
               {value:5,label:'偶尔失禁(5分)'},
580
               {value:0,label:'完全失禁(0分)'}
593
               {value:0,label:'完全失禁(0分)'}
581
             ],
594
             ],
612
       chuangyi_val:null,
625
       chuangyi_val:null,
613
       paingdi_val:null,
626
       paingdi_val:null,
614
       louti_val:null,
627
       louti_val:null,
628
+      row:''
615
     }
629
     }
616
   },
630
   },
617
   methods:{
631
   methods:{
664
     open_xiugai(row){
678
     open_xiugai(row){
665
       this.editor_dialogVisible=true
679
       this.editor_dialogVisible=true
666
     },
680
     },
667
-
681
+    open_delete(row){
682
+      this.row=row.id
683
+      this.delete_centerDialogVisible=true
684
+    },
685
+    delete_date(){
686
+      for(let i=0;i<this.tableData.length;i++){
687
+        if(this.row==this.tableData[i].id){
688
+          this.tableData.splice(i,1)
689
+        }
690
+      }
691
+      this.delete_centerDialogVisible=false
692
+    },
668
     jinshiclick(e,val){
693
     jinshiclick(e,val){
669
-     if(e.target.checked == true){
670
-      this.jinshi_val = val
671
-     }else{
672
-      this.jinshi_val =this.jinshi_val - val
673
-     }
694
+      const checkboxs=document.getElementsByClassName('checkbox1')
695
+      for(let i=0;i<checkboxs.length;i++){
696
+        if(val==checkboxs[i].value){
697
+          this.jinshi_val = val
698
+          checkboxs[i].value
699
+          checkboxs[i].checked=true
700
+        }else{
701
+          checkboxs[i].checked = false
702
+        }
703
+      }
674
     },
704
     },
675
     xizaoclick(e,val){
705
     xizaoclick(e,val){
676
-      if(e.target.checked == true){
677
-      this.xizao_val = val
678
-     }else{
679
-      this.xizao_val =this.xizao_val - val
680
-     }
706
+      const checkboxs=document.getElementsByClassName('checkbox2')
707
+      for(let i=0;i<checkboxs.length;i++){
708
+        if(val==checkboxs[i].value){
709
+          this.xizao_val = val
710
+          checkboxs[i].value
711
+          checkboxs[i].checked=true
712
+        }else{
713
+          checkboxs[i].checked = false
714
+        }
715
+      }
681
     },
716
     },
682
     xiushiclick(e,val){
717
     xiushiclick(e,val){
683
-     if(e.target.checked == true){
684
-      this.xiushi_val = val
685
-     }else{
686
-      this.xiushi_val =this.xiushi_val - val
687
-     }
718
+     const checkboxs=document.getElementsByClassName('checkbox3')
719
+      for(let i=0;i<checkboxs.length;i++){
720
+        if(val==checkboxs[i].value){
721
+          this.xiushi_val = val
722
+          checkboxs[i].value
723
+          checkboxs[i].checked=true
724
+        }else{
725
+          checkboxs[i].checked = false
726
+        }
727
+      }
688
     },
728
     },
689
     chuanyiclick(e,val){
729
     chuanyiclick(e,val){
690
-      if(e.target.checked == true){
691
-      this.chuanyi_val = val
692
-     }else{
693
-      this.chuanyi_val =this.chuanyi_val - val
694
-     }
730
+     const checkboxs=document.getElementsByClassName('checkbox4')
731
+      for(let i=0;i<checkboxs.length;i++){
732
+        if(val==checkboxs[i].value){
733
+          this.chuanyi_val = val
734
+          checkboxs[i].value
735
+          checkboxs[i].checked=true
736
+        }else{
737
+          checkboxs[i].checked = false
738
+        }
739
+      }
695
     },
740
     },
696
     dabianclick(e,val){
741
     dabianclick(e,val){
697
-     if(e.target.checked == true){
698
-      this.dabian_val = val
699
-     }else{
700
-      this.dabian_val =this.dabian_val - val
701
-     }
742
+     const checkboxs=document.getElementsByClassName('checkbox5')
743
+      for(let i=0;i<checkboxs.length;i++){
744
+        if(val==checkboxs[i].value){
745
+          this.dabian_val = val
746
+          checkboxs[i].value
747
+          checkboxs[i].checked=true
748
+        }else{
749
+          checkboxs[i].checked = false
750
+        }
751
+      }
702
     },
752
     },
703
     xiaobianclick(e,val){
753
     xiaobianclick(e,val){
704
-      if(e.target.checked == true){
705
-      this.xiaobian_val = val
706
-     }else{
707
-      this.xiaobian_val =this.xiaobian_val - val
708
-     }
754
+     const checkboxs=document.getElementsByClassName('checkbox6')
755
+      for(let i=0;i<checkboxs.length;i++){
756
+        if(val==checkboxs[i].value){
757
+          this.xiaobian_val = val
758
+          checkboxs[i].value
759
+          checkboxs[i].checked=true
760
+        }else{
761
+          checkboxs[i].checked = false
762
+        }
763
+      }
709
     },
764
     },
710
     ruceclick(e,val){
765
     ruceclick(e,val){
711
-     if(e.target.checked == true){
712
-      this.ruce_val = val
713
-     }else{
714
-      this.ruce_val =this.ruce_val - val
715
-     }
766
+     const checkboxs=document.getElementsByClassName('checkbox7')
767
+      for(let i=0;i<checkboxs.length;i++){
768
+        if(val==checkboxs[i].value){
769
+          this.ruce_val = val
770
+          checkboxs[i].value
771
+          checkboxs[i].checked=true
772
+        }else{
773
+          checkboxs[i].checked = false
774
+        }
775
+      }
716
     },
776
     },
717
     chuangyiclick(e,val){
777
     chuangyiclick(e,val){
718
-      if(e.target.checked == true){
719
-      this.chuangyi_val = val
720
-     }else{
721
-      this.chuangyi_val =this.chuangyi_val - val
722
-     }
778
+     const checkboxs=document.getElementsByClassName('checkbox8')
779
+      for(let i=0;i<checkboxs.length;i++){
780
+        if(val==checkboxs[i].value){
781
+          this.chuangyi_val = val
782
+          checkboxs[i].value
783
+          checkboxs[i].checked=true
784
+        }else{
785
+          checkboxs[i].checked = false
786
+        }
787
+      }
723
     },
788
     },
724
     pingdiclick(e,val){
789
     pingdiclick(e,val){
725
-     if(e.target.checked == true){
726
-      this.paingdi_val = val
727
-     }else{
728
-      this.paingdi_val =this.paingdi_val - val
729
-     }
790
+    //  if(e.target.checked == true){
791
+    //   this.paingdi_val = val
792
+    //  }else{
793
+    //   this.paingdi_val =this.paingdi_val - val
794
+    //  }
795
+     const checkboxs=document.getElementsByClassName('checkbox9')
796
+      for(let i=0;i<checkboxs.length;i++){
797
+        if(val==checkboxs[i].value){
798
+          this.paingdi_val = val
799
+          checkboxs[i].value
800
+          checkboxs[i].checked=true
801
+        }else{
802
+          checkboxs[i].checked = false
803
+        }
804
+      }
730
     },
805
     },
731
     louticlick(e,val){
806
     louticlick(e,val){
732
-      if(e.target.checked == true){
733
-      this.louti_val = val
734
-     }else{
735
-      this.louti_val =this.louti_val - val
736
-     }
807
+     const checkboxs=document.getElementsByClassName('checkbox10')
808
+      for(let i=0;i<checkboxs.length;i++){
809
+        if(val==checkboxs[i].value){
810
+          this.louti_val = val
811
+          checkboxs[i].value
812
+          checkboxs[i].checked=true
813
+        }else{
814
+          checkboxs[i].checked = false
815
+        }
816
+      }
737
     },
817
     },
738
   },
818
   },
739
   computed:{
819
   computed:{

+ 38 - 12
src/xt_pages/user/history/mind_history.vue View File

2
 <template>
2
 <template>
3
   <div class="patient-container">
3
   <div class="patient-container">
4
     <div class="patient-app-containers advice-container app-container">
4
     <div class="patient-app-containers advice-container app-container">
5
-      <div style="display: flex;margin-bottom: 20px;"> 
5
+      <div style="display: flex;margin-bottom: 20px;">
6
         <div style="width: 50%;">
6
         <div style="width: 50%;">
7
           <el-button type="text" icon="el-icon-arrow-left" style="font-size: 18px;" @click="fanhui">返回</el-button>
7
           <el-button type="text" icon="el-icon-arrow-left" style="font-size: 18px;" @click="fanhui">返回</el-button>
8
           <div class="history">历史评分</div>
8
           <div class="history">历史评分</div>
16
           ref="multipleTable"
16
           ref="multipleTable"
17
           :data="tableData"
17
           :data="tableData"
18
           border
18
           border
19
-          
19
+
20
           tooltip-effect="dark"
20
           tooltip-effect="dark"
21
           :header-cell-style="{
21
           :header-cell-style="{
22
             background:'#4579c5',
22
             background:'#4579c5',
34
             label="评估日期"
34
             label="评估日期"
35
             width="150"
35
             width="150"
36
             align="center">
36
             align="center">
37
-            
37
+
38
           </el-table-column>
38
           </el-table-column>
39
           <el-table-column
39
           <el-table-column
40
             prop=""
40
             prop=""
74
             show-overflow-tooltip>
74
             show-overflow-tooltip>
75
             <template slot-scope="scope">
75
             <template slot-scope="scope">
76
               <el-button type="primary" icon="el-icon-edit-outline" @click="open_xiugai(scope.row)"></el-button>
76
               <el-button type="primary" icon="el-icon-edit-outline" @click="open_xiugai(scope.row)"></el-button>
77
-              <el-button type="primary" icon="el-icon-delete"></el-button>
77
+              <el-button type="primary" icon="el-icon-delete" @click="open_delet(scope.row)"></el-button>
78
             </template>
78
             </template>
79
           </el-table-column>
79
           </el-table-column>
80
         </el-table>
80
         </el-table>
120
           </div>
120
           </div>
121
         </div>
121
         </div>
122
       </div>
122
       </div>
123
-    </el-dialog>  
123
+    </el-dialog>
124
     <!-- 编辑 -->
124
     <!-- 编辑 -->
125
     <el-dialog
125
     <el-dialog
126
       title="提示"
126
       title="提示"
154
                             <el-radio v-for="(item,index ) in qingan" :label="item" :key="index" style="color: black;font-size: 15px;">{{ item }}</el-radio>
154
                             <el-radio v-for="(item,index ) in qingan" :label="item" :key="index" style="color: black;font-size: 15px;">{{ item }}</el-radio>
155
                         </el-radio-group>
155
                         </el-radio-group>
156
                     </div>
156
                     </div>
157
-                </td>                           
157
+                </td>
158
             </tr>
158
             </tr>
159
             <tr class="bg_color">
159
             <tr class="bg_color">
160
                 <td class="start">自伤</td>
160
                 <td class="start">自伤</td>
210
               <el-button type="primary">确认</el-button>
210
               <el-button type="primary">确认</el-button>
211
           </div>
211
           </div>
212
       </div>
212
       </div>
213
-    </el-dialog>  
213
+    </el-dialog>
214
+    <!-- 删除 -->
215
+    <el-dialog
216
+      title="提示"
217
+      :visible.sync="delete_centerDialogVisible"
218
+      width="20%"
219
+      center>
220
+      <span>是否删除该记录</span>
221
+      <span slot="footer" class="dialog-footer">
222
+        <el-button @click="delete_centerDialogVisible = false">取 消</el-button>
223
+        <el-button type="primary" @click="delete_mind">确 定</el-button>
224
+      </span>
225
+    </el-dialog>
214
   </div>
226
   </div>
215
 </template>
227
 </template>
216
 <script>
228
 <script>
222
       multipleSelection:[],
234
       multipleSelection:[],
223
       dialogVisible:false,
235
       dialogVisible:false,
224
       editor_dialogVisible:false,
236
       editor_dialogVisible:false,
225
-      tableData:[{time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
237
+      delete_centerDialogVisible:false,
238
+      row:'',
239
+      tableData:[{id:1,time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{id:2,time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
226
 
240
 
227
       checkList:'',
241
       checkList:'',
228
       radio1:'',
242
       radio1:'',
261
     },
275
     },
262
     open_xiugai(row){
276
     open_xiugai(row){
263
       this.editor_dialogVisible=true
277
       this.editor_dialogVisible=true
278
+    },
279
+    open_delet(row){
280
+      this.row=row.id
281
+      this.delete_centerDialogVisible=true
282
+    },
283
+    delete_mind(){
284
+      for(let i=0;i<this.tableData.length;i++){
285
+        if(this.row==this.tableData[i].id){
286
+          this.tableData.splice(i,1)
287
+        }
288
+      }
289
+      this.delete_centerDialogVisible=false
264
     }
290
     }
265
   }
291
   }
266
 }
292
 }
284
 }
310
 }
285
 .content_top{
311
 .content_top{
286
       display: flex;
312
       display: flex;
287
-      justify-content: space-between; 
313
+      justify-content: space-between;
288
     }
314
     }
289
 .tables{
315
 .tables{
290
     border: 1px solid #DCDFE6;
316
     border: 1px solid #DCDFE6;
317
       margin-right: 40px;
343
       margin-right: 40px;
318
       font-size: 15px;
344
       font-size: 15px;
319
     }
345
     }
320
-    
346
+
321
     input{
347
     input{
322
         -webkit-appearance: checkbox;
348
         -webkit-appearance: checkbox;
323
     }
349
     }
325
 .bottoms{
351
 .bottoms{
326
   display: inline-block;
352
   display: inline-block;
327
   margin-left: 10px;
353
   margin-left: 10px;
328
-  margin-top: 5px; 
354
+  margin-top: 5px;
329
 }
355
 }
330
-</style>
356
+</style>

+ 34 - 8
src/xt_pages/user/history/nourishment_history.vue View File

2
 <template>
2
 <template>
3
   <div class="patient-container">
3
   <div class="patient-container">
4
     <div class="patient-app-containers advice-container app-container">
4
     <div class="patient-app-containers advice-container app-container">
5
-      <div style="display: flex;margin-bottom: 20px;"> 
5
+      <div style="display: flex;margin-bottom: 20px;">
6
         <div style="width: 50%;">
6
         <div style="width: 50%;">
7
           <el-button type="text" icon="el-icon-arrow-left" style="font-size: 18px;" @click="fanhui">返回</el-button>
7
           <el-button type="text" icon="el-icon-arrow-left" style="font-size: 18px;" @click="fanhui">返回</el-button>
8
           <div class="history">历史评分</div>
8
           <div class="history">历史评分</div>
17
           ref="multipleTable"
17
           ref="multipleTable"
18
           :data="tableData"
18
           :data="tableData"
19
           border
19
           border
20
-          
20
+
21
           tooltip-effect="dark"
21
           tooltip-effect="dark"
22
           :header-cell-style="{
22
           :header-cell-style="{
23
             background:'#4579c5',
23
             background:'#4579c5',
74
             show-overflow-tooltip>
74
             show-overflow-tooltip>
75
             <template slot-scope="scope">
75
             <template slot-scope="scope">
76
               <el-button type="primary" icon="el-icon-edit-outline" @click="open_xiugai(scope.row)"></el-button>
76
               <el-button type="primary" icon="el-icon-edit-outline" @click="open_xiugai(scope.row)"></el-button>
77
-              <el-button type="primary" icon="el-icon-delete"></el-button>
77
+              <el-button type="primary" icon="el-icon-delete" @click="open_delet(scope.row)"></el-button>
78
             </template>
78
             </template>
79
           </el-table-column>
79
           </el-table-column>
80
         </el-table>
80
         </el-table>
120
           </div>
120
           </div>
121
         </div>
121
         </div>
122
       </div>
122
       </div>
123
-    </el-dialog>  
123
+    </el-dialog>
124
      <!-- 打印明细 -->
124
      <!-- 打印明细 -->
125
      <el-dialog
125
      <el-dialog
126
       title="提示"
126
       title="提示"
308
                       </tr>
308
                       </tr>
309
                     </tbody>
309
                     </tbody>
310
                 </table>
310
                 </table>
311
-              </div> 
312
-              
311
+              </div>
312
+
313
               <div style="font-size: 16px;">打印时间:</div>
313
               <div style="font-size: 16px;">打印时间:</div>
314
             </div>
314
             </div>
315
           </div>
315
           </div>
524
           </div>
524
           </div>
525
       </div>
525
       </div>
526
     </el-dialog>
526
     </el-dialog>
527
+    <!-- 删除 -->
528
+    <el-dialog
529
+      title="提示"
530
+      :visible.sync="delete_centerDialogVisible"
531
+      width="20%"
532
+      center>
533
+      <span>是否删除该记录</span>
534
+      <span slot="footer" class="dialog-footer">
535
+        <el-button @click="delete_centerDialogVisible = false">取 消</el-button>
536
+        <el-button type="primary" @click="delete_niouris">确 定</el-button>
537
+      </span>
538
+    </el-dialog>
527
   </div>
539
   </div>
528
 </template>
540
 </template>
529
 <script>
541
 <script>
536
       dialogVisible:false,
548
       dialogVisible:false,
537
       mingxi_dialogVisible:false,
549
       mingxi_dialogVisible:false,
538
       editor_dialogVisible:false,
550
       editor_dialogVisible:false,
539
-      tableData:[{time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
551
+      delete_centerDialogVisible:false,
552
+      tableData:[{id:1,time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{id:2,time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
540
       qingdu:['骸骨折','慢性疾病急性发作或有','COPD','血液透析','肝硬化','一般恶性肿瘤患者','糖尿病'],
553
       qingdu:['骸骨折','慢性疾病急性发作或有','COPD','血液透析','肝硬化','一般恶性肿瘤患者','糖尿病'],
541
       zhdu:['腹部大手术','脑卒中','重度肺炎','血液恶性肿瘤'],
554
       zhdu:['腹部大手术','脑卒中','重度肺炎','血液恶性肿瘤'],
542
       zhongsdu:['颅脑损伤','骨髓移植','大于APACHE分的ICU患者'],
555
       zhongsdu:['颅脑损伤','骨髓移植','大于APACHE分的ICU患者'],
553
       radio_val:null,
566
       radio_val:null,
554
       radio1_val:null,
567
       radio1_val:null,
555
       radio2_val:null,
568
       radio2_val:null,
569
+      row:'',
556
     }
570
     }
557
   },
571
   },
558
   methods:{
572
   methods:{
597
     open_xiugai(row){
611
     open_xiugai(row){
598
       this.editor_dialogVisible=true
612
       this.editor_dialogVisible=true
599
     },
613
     },
614
+    open_delet(row){
615
+      this.row=row.id
616
+      this.delete_centerDialogVisible=true
617
+    },
618
+    delete_niouris(){
619
+      for(let i=0;i<this.tableData.length;i++){
620
+        if(this.row==this.tableData[i].id){
621
+          this.tableData.splice(i,1)
622
+        }
623
+      }
624
+      this.delete_centerDialogVisible=false
625
+    },
600
     radio_change(e){
626
     radio_change(e){
601
       const ball=e * 1
627
       const ball=e * 1
602
       console.log('1111',e);
628
       console.log('1111',e);
688
   display: flex;
714
   display: flex;
689
   justify-content: space-between;
715
   justify-content: space-between;
690
 }
716
 }
691
-</style>
717
+</style>

+ 45 - 18
src/xt_pages/user/history/pruritus_history.vue View File

2
 <template>
2
 <template>
3
   <div class="patient-container">
3
   <div class="patient-container">
4
     <div class="patient-app-containers advice-container app-container">
4
     <div class="patient-app-containers advice-container app-container">
5
-      <div style="display: flex;margin-bottom: 20px;"> 
5
+      <div style="display: flex;margin-bottom: 20px;">
6
         <div style="width: 50%;">
6
         <div style="width: 50%;">
7
           <el-button type="text" icon="el-icon-arrow-left" style="font-size: 18px;" @click="fanhui">返回</el-button>
7
           <el-button type="text" icon="el-icon-arrow-left" style="font-size: 18px;" @click="fanhui">返回</el-button>
8
           <div class="history">历史评分</div>
8
           <div class="history">历史评分</div>
17
           ref="multipleTable"
17
           ref="multipleTable"
18
           :data="tableData"
18
           :data="tableData"
19
           border
19
           border
20
-          
20
+
21
           tooltip-effect="dark"
21
           tooltip-effect="dark"
22
           :header-cell-style="{
22
           :header-cell-style="{
23
             background:'#4579c5',
23
             background:'#4579c5',
80
             show-overflow-tooltip>
80
             show-overflow-tooltip>
81
             <template slot-scope="scope">
81
             <template slot-scope="scope">
82
               <el-button type="primary" icon="el-icon-edit-outline" @click="open_xiugai(scope.row)"></el-button>
82
               <el-button type="primary" icon="el-icon-edit-outline" @click="open_xiugai(scope.row)"></el-button>
83
-              <el-button type="primary" icon="el-icon-delete"></el-button>
83
+              <el-button type="primary" icon="el-icon-delete" @click="open_delet(scope.row)"></el-button>
84
             </template>
84
             </template>
85
           </el-table-column>
85
           </el-table-column>
86
         </el-table>
86
         </el-table>
128
           </div>
128
           </div>
129
         </div>
129
         </div>
130
       </div>
130
       </div>
131
-    </el-dialog>  
131
+    </el-dialog>
132
      <!-- 打印明细 -->
132
      <!-- 打印明细 -->
133
      <el-dialog
133
      <el-dialog
134
       title="提示"
134
       title="提示"
168
                           <div class="jiange">
168
                           <div class="jiange">
169
                               <span v-for="item in buwei" class="rightjiange" >
169
                               <span v-for="item in buwei" class="rightjiange" >
170
                                   <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
170
                                   <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
171
-                              </span> 
171
+                              </span>
172
                               <label ><input type="checkbox" name="ball" value="其他" />
172
                               <label ><input type="checkbox" name="ball" value="其他" />
173
                                   &nbsp;其他 <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 60px;"></span>
173
                                   &nbsp;其他 <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 60px;"></span>
174
                               </label>
174
                               </label>
185
                                   <el-radio v-for="(item,index ) in chengdu" :label="item" :key="index" style="color: black;font-size: 15PX;">{{ item }}</el-radio>
185
                                   <el-radio v-for="(item,index ) in chengdu" :label="item" :key="index" style="color: black;font-size: 15PX;">{{ item }}</el-radio>
186
                               </el-radio-group>
186
                               </el-radio-group>
187
                           </div>
187
                           </div>
188
-                      </td> 
188
+                      </td>
189
                       <td class="start">{{radio1_points}}</td>
189
                       <td class="start">{{radio1_points}}</td>
190
-                      <td class="saoyang">瘙痒严重程度:计分范围1~5分</td>                          
190
+                      <td class="saoyang">瘙痒严重程度:计分范围1~5分</td>
191
                     </tr>
191
                     </tr>
192
                     <tr>
192
                     <tr>
193
                       <td class="start">痒的频率</td>
193
                       <td class="start">痒的频率</td>
247
                     <div class="jiange">
247
                     <div class="jiange">
248
                         <span v-for="item in buwei" class="rightjiange" @change="handleCheckedCitiesChange">
248
                         <span v-for="item in buwei" class="rightjiange" @change="handleCheckedCitiesChange">
249
                             <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
249
                             <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
250
-                        </span> 
250
+                        </span>
251
                         <label @change="handleCheckedCitiesChange"><input type="checkbox" name="ball" value="其他" />
251
                         <label @change="handleCheckedCitiesChange"><input type="checkbox" name="ball" value="其他" />
252
                             &nbsp;其他 <el-input v-model="input" style="width: 100px;"></el-input>
252
                             &nbsp;其他 <el-input v-model="input" style="width: 100px;"></el-input>
253
                         </label>
253
                         </label>
264
                             <el-radio v-for="(item,index ) in chengdu" :label="item" :key="index" style="color: black;font-size: 15PX;">{{ item }}</el-radio>
264
                             <el-radio v-for="(item,index ) in chengdu" :label="item" :key="index" style="color: black;font-size: 15PX;">{{ item }}</el-radio>
265
                         </el-radio-group>
265
                         </el-radio-group>
266
                     </div>
266
                     </div>
267
-                </td> 
267
+                </td>
268
                 <td class="start">{{radio1_points}}</td>
268
                 <td class="start">{{radio1_points}}</td>
269
-                <td class="saoyang">瘙痒严重程度:计分范围1~5分</td>                          
269
+                <td class="saoyang">瘙痒严重程度:计分范围1~5分</td>
270
               </tr>
270
               </tr>
271
               <tr>
271
               <tr>
272
                 <td class="start">痒的频率</td>
272
                 <td class="start">痒的频率</td>
332
           <div style="margin:5px 10px;">
332
           <div style="margin:5px 10px;">
333
               <el-button type="primary">确认</el-button>
333
               <el-button type="primary">确认</el-button>
334
           </div>
334
           </div>
335
-        </div>   
336
-    </el-dialog>  
335
+        </div>
336
+    </el-dialog>
337
+     <!-- 删除 -->
338
+    <el-dialog
339
+      title="提示"
340
+      :visible.sync="delete_centerDialogVisible"
341
+      width="20%"
342
+      center>
343
+      <span>是否删除该记录</span>
344
+      <span slot="footer" class="dialog-footer">
345
+        <el-button @click="delete_centerDialogVisible = false">取 消</el-button>
346
+        <el-button type="primary" @click="delete_pruritus">确 定</el-button>
347
+      </span>
348
+    </el-dialog>
337
   </div>
349
   </div>
338
 </template>
350
 </template>
339
 <script>
351
 <script>
346
       dialogVisible:false,
358
       dialogVisible:false,
347
       mingxi_dialogVisible:false,
359
       mingxi_dialogVisible:false,
348
       editor_dialogVisible:false,
360
       editor_dialogVisible:false,
349
-      tableData:[{time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
361
+      delete_centerDialogVisible:false,
362
+
363
+      tableData:[{id:1,time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{id:2,time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
350
 
364
 
351
       buwei:['躯体','上肢','下肢','头皮','全身'],
365
       buwei:['躯体','上肢','下肢','头皮','全身'],
352
       chengdu:['不要抓(1)','要抓但没有抓痕(2)','抓出抓痕才能止痒(3)','经常抓出抓痕(4)','完全坐立不安(5)'],
366
       chengdu:['不要抓(1)','要抓但没有抓痕(2)','抓出抓痕才能止痒(3)','经常抓出抓痕(4)','完全坐立不安(5)'],
365
       options:[],
379
       options:[],
366
       value:'',
380
       value:'',
367
       value1:'',
381
       value1:'',
382
+      row:'',
368
     }
383
     }
369
   },
384
   },
370
   methods:{
385
   methods:{
404
         })
419
         })
405
         this.mingxi_dialogVisible=false
420
         this.mingxi_dialogVisible=false
406
       }
421
       }
407
-      
422
+
408
     },
423
     },
409
     open_xiugai(row){
424
     open_xiugai(row){
410
       this.editor_dialogVisible=true
425
       this.editor_dialogVisible=true
411
     },
426
     },
427
+    open_delet(row){
428
+      this.row=row.id
429
+      this.delete_centerDialogVisible=true
430
+    },
431
+    delete_pruritus(){
432
+      for(let i=0;i<this.tableData.length;i++){
433
+        if(this.row==this.tableData[i].id){
434
+          this.tableData.splice(i,1)
435
+        }
436
+      }
437
+      this.delete_centerDialogVisible=false
438
+    },
412
     handleCheckedCitiesChange(e){
439
     handleCheckedCitiesChange(e){
413
       this.ball = e.target.value
440
       this.ball = e.target.value
414
       console.log('1111111',this.ball)
441
       console.log('1111111',this.ball)
445
         this.radio3_points =jiequ
472
         this.radio3_points =jiequ
446
       }
473
       }
447
     },
474
     },
448
-    
475
+
449
   },
476
   },
450
   computed:{
477
   computed:{
451
     pruritus_Totalpoints(){
478
     pruritus_Totalpoints(){
473
 }
500
 }
474
 .content_top{
501
 .content_top{
475
       display: flex;
502
       display: flex;
476
-      justify-content: space-between; 
503
+      justify-content: space-between;
477
 }
504
 }
478
 .table{
505
 .table{
479
     border: 1px solid #DCDFE6;
506
     border: 1px solid #DCDFE6;
516
 .bottoms{
543
 .bottoms{
517
     display: inline-block;
544
     display: inline-block;
518
     margin-left: 10px;
545
     margin-left: 10px;
519
-    margin-top: 5px; 
546
+    margin-top: 5px;
520
 }
547
 }
521
-</style>
548
+</style>

+ 54 - 12
src/xt_pages/user/history/tumble_history.vue View File

604
         </div>
604
         </div>
605
       </div>
605
       </div>
606
     </el-dialog>
606
     </el-dialog>
607
+    <!--删除 -->
608
+    <el-dialog
609
+      title="提示"
610
+      :visible.sync="delete_centerDialogVisible"
611
+      width="20%"
612
+      center>
613
+      <span>是否删除该记录</span>
614
+      <span slot="footer" class="dialog-footer">
615
+        <el-button @click="delete_centerDialogVisible = false">取 消</el-button>
616
+        <el-button type="primary" @click="delete_tumble">确 定</el-button>
617
+      </span>
618
+    </el-dialog>
619
+    <!-- 添加弹窗页面 -->
620
+    <el-dialog
621
+        title="添加"
622
+        :visible.sync="add_centerDialogVisible"
623
+        width="30%"
624
+        center>
625
+        <span>
626
+          <el-input
627
+            type="textarea"
628
+            :autosize="{ minRows: 4, maxRows: 6}"
629
+            placeholder="请输入需要添加的内容.."
630
+            v-model="textarea2">
631
+          </el-input>
632
+        </span>
633
+        <span slot="footer" class="dialog-footer">
634
+          <el-button @click="add_centerDialogVisible = false">取 消</el-button>
635
+          <el-button type="primary" @click="add_tumble">确 定</el-button>
636
+        </span>
637
+      </el-dialog>
607
   </div>
638
   </div>
608
 </template>
639
 </template>
609
 <script>
640
 <script>
611
 export default{
642
 export default{
612
   data(){
643
   data(){
613
     return{
644
     return{
614
-      tableData:[{time:'2023-9-27',mark:'15',measures:'无',evaluate:'千亦雪'},{time:'2023-9-27',mark:'14',measures:'无',evaluate:'千任雪'}],
645
+      tableData:[{id:1,time:'2023-9-27',mark:'15',measures:'无',evaluate:'千亦雪'},{id:2,time:'2023-9-27',mark:'14',measures:'无',evaluate:'千任雪'}],
615
       multipleSelection:[],
646
       multipleSelection:[],
616
       dialogVisible:false,
647
       dialogVisible:false,
617
       mingxi_dialogVisible:false,
648
       mingxi_dialogVisible:false,
618
       bianji_dialogVisible:false,
649
       bianji_dialogVisible:false,
650
+      delete_centerDialogVisible:false,
651
+      add_centerDialogVisible:false,
619
 
652
 
653
+      row:'',
620
       pingdate:'',
654
       pingdate:'',
621
       Nurse:'',
655
       Nurse:'',
622
       input:'',
656
       input:'',
646
       console.log('0000',this.multipleSelection);
680
       console.log('0000',this.multipleSelection);
647
     },
681
     },
648
     open_pingfen(ids){
682
     open_pingfen(ids){
649
-      if(ids==1){
650
-        if(this.multipleSelection.length==0){
651
-          this.$message('至少选择一条数据')
652
-        }else{
683
+      if(this.multipleSelection.length==0){
684
+        this.$message('请选择需要打印的记录')
685
+      }else{
686
+        if(ids==1){
653
           this.dialogVisible=true
687
           this.dialogVisible=true
654
-        }
655
-      }
656
-      if(ids==2){
657
-        if(this.multipleSelection.length==0){
658
-          this.$message('至少选择一条数据')
659
         }else{
688
         }else{
660
           this.mingxi_dialogVisible=true
689
           this.mingxi_dialogVisible=true
661
         }
690
         }
662
-      }
663
 
691
 
692
+      }
664
     },
693
     },
665
     // open_mingxi(){
694
     // open_mingxi(){
666
     //   if(this.multipleSelection.length==0){
695
     //   if(this.multipleSelection.length==0){
696
       console.log('1111',row);
725
       console.log('1111',row);
697
     },
726
     },
698
     delete_fall(row){
727
     delete_fall(row){
728
+      this.row=row.id
729
+      this.delete_centerDialogVisible=true
699
       console.log('3333',row);
730
       console.log('3333',row);
700
       // this.tableData.splice(row)
731
       // this.tableData.splice(row)
701
     },
732
     },
733
+    delete_tumble(){
734
+      for(let i=0;i<this.tableData.length;i++){
735
+        if(this.row==this.tableData[i].id){
736
+          this.tableData.splice(i,1)
737
+        }
738
+      }
739
+      this.delete_centerDialogVisible=false
740
+    },
741
+    add_tumble(){
742
+      this.add_centerDialogVisible = false
743
+    },
702
     add(){
744
     add(){
703
-      this.centerDialogVisible =true
745
+      this.add_centerDialogVisible =true
704
     },
746
     },
705
     handleCheckedCitiesChange(e){
747
     handleCheckedCitiesChange(e){
706
       var ball = e.target.value
748
       var ball = e.target.value

+ 12 - 12
src/xt_pages/workforce/components/ScheduleItem.vue View File

2
   <!-- 排班表填充内容 -->
2
   <!-- 排班表填充内容 -->
3
     <div >
3
     <div >
4
 
4
 
5
-            <div>
6
-                <span :class='modeColor(scheduleDetail.mode_name)'>{{scheduleDetail.patient}}</span>
7
-                <template v-if="schedulMode">
8
-                  <br/>
9
-                  <span v-if="scheduleDetail.mode_name.length>0"  :class='modeColor(scheduleDetail.mode_name)' >{{'('+scheduleDetail.mode_name+')'}}</span>
10
-                </template>
11
-                <template v-if="schedulFlag">
12
-                  <br/><span >{{scheduleDetail.dialysis_machine_name}}</span>
13
-                </template>
14
-                
15
-            </div>
5
+      <div>
6
+          <span :class='modeColor(scheduleDetail.mode_name)'>{{scheduleDetail.patient}}</span>
7
+          <template v-if="schedulMode">
8
+            <br/>
9
+            <span v-if="scheduleDetail.mode_name.length>0"  :class='modeColor(scheduleDetail.mode_name)' >{{'('+scheduleDetail.mode_name+')'}}</span>
10
+          </template>
11
+          <template v-if="schedulFlag">
12
+            <br/><span >{{scheduleDetail.dialysis_machine_name}}</span>
13
+          </template>
14
+
15
+      </div>
16
     </div>
16
     </div>
17
 </template>
17
 </template>
18
 
18
 
43
   },
43
   },
44
   data() {
44
   data() {
45
     return {
45
     return {
46
-      
46
+
47
     }
47
     }
48
   },
48
   },
49
 
49