XMLWAN před 4 roky
rodič
revize
dc9dc61dd0

+ 2 - 2
src/xt_pages/device/airDisinfect.vue Zobrazit soubor

@@ -68,7 +68,7 @@
68 68
                    <span v-if="scope.row.modifications == 2">撤消</span>
69 69
                 </template>
70 70
             </el-table-column>
71
-            <el-table-column label="操作" align="center">
71
+            <el-table-column label="操作" align="center" width="180">
72 72
                 <template slot-scope="scope">
73 73
                     <el-button
74 74
                     size="mini"
@@ -304,7 +304,7 @@
304 304
           class:"",
305 305
           disinfection_methods:"",
306 306
           disinfection_fluid:"",
307
-          sort:"",
307
+          sort:"1",
308 308
           creator:"",
309 309
           detection_time:"",
310 310
           detection_result:"",

+ 2 - 2
src/xt_pages/device/objectTableDisinfect.vue Zobrazit soubor

@@ -68,7 +68,7 @@
68 68
                    <span v-if="scope.row.modifications == 2">撤消</span>
69 69
                 </template>
70 70
             </el-table-column>
71
-            <el-table-column label="操作" align="center">
71
+            <el-table-column label="操作" align="center" width="180">
72 72
                 <template slot-scope="scope">
73 73
                     <el-button
74 74
                     size="mini"
@@ -304,7 +304,7 @@
304 304
           class:"",
305 305
           disinfection_methods:"",
306 306
           disinfection_fluid:"",
307
-          sort:"",
307
+          sort:"1",
308 308
           creator:"",
309 309
           detection_time:"",
310 310
           detection_result:"",

+ 383 - 25
src/xt_pages/management/components/QualityForm.vue Zobrazit soubor

@@ -407,10 +407,11 @@
407 407
               effect="dark"
408 408
               content="删除"
409 409
               placement="top"
410
+           
410 411
             >
411 412
               <el-button
412 413
                 size="mini"
413
-                type="primary"
414
+                type="danger"
414 415
                 icon="el-icon-delete"
415 416
                 @click="DeleteDialystates(scope.row.id, scope.$index)"
416 417
               ></el-button>
@@ -625,7 +626,7 @@
625 626
             >
626 627
               <el-button
627 628
                 size="mini"
628
-                type="primary"
629
+                type="danger"
629 630
                 icon="el-icon-delete"
630 631
                 @click="DeleteIons(scope.row.id, scope.$index)"
631 632
               ></el-button>
@@ -795,7 +796,7 @@
795 796
             >
796 797
               <el-button
797 798
                 size="mini"
798
-                type="primary"
799
+                type="danger"
799 800
                 icon="el-icon-delete"
800 801
                 @click="DeleteOxygenates(scope.row.id, scope.$index)"
801 802
               ></el-button>
@@ -965,7 +966,7 @@
965 966
             >
966 967
               <el-button
967 968
                 size="mini"
968
-                type="primary"
969
+                type="danger"
969 970
                 icon="el-icon-delete"
970 971
                 @click="DeleteHadWater(scope.row.id, scope.$index)"
971 972
               ></el-button>
@@ -1135,7 +1136,7 @@
1135 1136
             >
1136 1137
               <el-button
1137 1138
                 size="mini"
1138
-                type="primary"
1139
+                type="danger"
1139 1140
                 icon="el-icon-delete"
1140 1141
                 @click="DeleteWater(scope.row.id, scope.$index)"
1141 1142
               ></el-button>
@@ -1306,7 +1307,7 @@
1306 1307
             >
1307 1308
               <el-button
1308 1309
                 size="mini"
1309
-                type="primary"
1310
+                type="danger"
1310 1311
                 icon="el-icon-delete"
1311 1312
                 @click="DeleteDevicePh(scope.row.id, scope.$index)"
1312 1313
               ></el-button>
@@ -1409,7 +1410,7 @@
1409 1410
             </el-form-item>
1410 1411
           </el-col>
1411 1412
           <el-col :span="8">
1412
-            <el-form-item label="出报告日期:">
1413
+            <el-form-item label="出报告日期:" required prop="reporting_date">
1413 1414
               <el-date-picker
1414 1415
                 v-model="form.reporting_date"
1415 1416
                 prefix-icon="none"
@@ -1560,7 +1561,7 @@
1560 1561
             </el-form-item>
1561 1562
           </el-col>
1562 1563
           <el-col :span="8">
1563
-            <el-form-item label="出报告日期:">
1564
+            <el-form-item label="出报告日期:" required prop="reporting_dateb">
1564 1565
               <el-date-picker
1565 1566
                 v-model="diaForm.reporting_dateb"
1566 1567
                 prefix-icon="none"
@@ -1572,6 +1573,26 @@
1572 1573
               ></el-date-picker>
1573 1574
             </el-form-item>
1574 1575
           </el-col>
1576
+          <el-col :span="8">
1577
+            <el-form-item label="顺序号:" required prop="sort">
1578
+               <el-input v-model="diaForm.sort" style="width:150px"></el-input>
1579
+            </el-form-item>
1580
+         </el-col>
1581
+        </el-row>
1582
+        <el-row>
1583
+           <el-col :span="12">
1584
+             <el-form-item label="检测合格:" required prop="pass_examination">
1585
+               <el-radio v-model="diaForm.pass_examination" label="1">是</el-radio>
1586
+               <el-radio v-model="diaForm.pass_examination" label="2">否</el-radio>
1587
+             </el-form-item>
1588
+          </el-col>
1589
+         <el-col :span="12">
1590
+           <el-form-item label="修改标志:" required prop="modifications">
1591
+             <el-select style="width:150px"  v-model="diaForm.modifications">
1592
+              <el-option v-for="(item,index) in modifications" :key="index" :label="item.name" :value="item.id"></el-option>
1593
+            </el-select>
1594
+          </el-form-item>
1595
+        </el-col>
1575 1596
         </el-row>
1576 1597
         <el-row>
1577 1598
           <el-col :span="24">
@@ -1657,7 +1678,7 @@
1657 1678
               </el-form-item>
1658 1679
             </el-col>
1659 1680
             <el-col :span="8">
1660
-              <el-form-item label="出报告日期:">
1681
+              <el-form-item label="出报告日期:" required prop="date_reportc">
1661 1682
                 <el-date-picker
1662 1683
                   v-model="ionForm.date_reportc"
1663 1684
                   prefix-icon="none"
@@ -1739,8 +1760,31 @@
1739 1760
                 ></el-input>
1740 1761
               </el-form-item>
1741 1762
             </el-col>
1763
+            <el-col :span="8">
1764
+              <el-form-item label="顺序号:" required prop="sort">
1765
+                <el-input
1766
+                  style="width:100px"
1767
+                  v-model="ionForm.sort"
1768
+                ></el-input>
1769
+              </el-form-item>
1770
+            </el-col>
1742 1771
           </el-row>
1743 1772
           <el-row>
1773
+            <el-col :span="12">
1774
+              <el-form-item label="检测合格:" required prop="pass_examination">
1775
+                <el-radio v-model="ionForm.pass_examination" label="1">是</el-radio>
1776
+                <el-radio v-model="ionForm.pass_examination" label="2">否</el-radio>
1777
+              </el-form-item>
1778
+            </el-col>
1779
+            <el-col :span="12">
1780
+              <el-form-item label="修改标志:" required prop="modifications">
1781
+                <el-select style="width:150px"  v-model="ionForm.modifications">
1782
+                  <el-option v-for="(item,index) in modifications" :key="index" :label="item.name" :value="item.id"></el-option>
1783
+                </el-select>
1784
+              </el-form-item>
1785
+            </el-col>
1786
+          </el-row>
1787
+           <el-row>
1744 1788
             <el-col :span="24">
1745 1789
               <el-form-item label="备注:">
1746 1790
                 <el-input
@@ -1770,7 +1814,7 @@
1770 1814
       width="60%"
1771 1815
       center
1772 1816
     >
1773
-      <el-form :model="diaForm" ref="diaForm" rules="diaRules">
1817
+      <el-form :model="diaForm" ref="diaForm" rules="rulesOne">
1774 1818
         <el-row>
1775 1819
           <el-col :span="8">
1776 1820
             <el-form-item label="取样日期:">
@@ -1859,7 +1903,7 @@
1859 1903
             </el-form-item>
1860 1904
           </el-col>
1861 1905
           <el-col :span="8">
1862
-            <el-form-item label="出报告日期:">
1906
+            <el-form-item label="出报告日期:" required prop="reporting_dateb">
1863 1907
               <el-date-picker
1864 1908
                 v-model="diaForm.reporting_dateb"
1865 1909
                 prefix-icon="none"
@@ -1871,6 +1915,29 @@
1871 1915
               ></el-date-picker>
1872 1916
             </el-form-item>
1873 1917
           </el-col>
1918
+           <el-col :span="8">
1919
+              <el-form-item label="顺序号:" required prop="sort">
1920
+                <el-input
1921
+                  style="width:100px"
1922
+                  v-model="diaForm.sort"
1923
+                ></el-input>
1924
+              </el-form-item>
1925
+            </el-col>
1926
+        </el-row>
1927
+         <el-row>
1928
+            <el-col :span="12">
1929
+               <el-form-item label="检测合格:" required prop="pass_examination">
1930
+                  <el-radio v-model="diaForm.pass_examination" label="1">是</el-radio>
1931
+                  <el-radio v-model="diaForm.pass_examination" label="2">否</el-radio>
1932
+               </el-form-item>
1933
+            </el-col>
1934
+            <el-col :span="12">
1935
+               <el-form-item label="修改标志:" required prop="modifications">
1936
+                 <el-select style="width:150px"  v-model="diaForm.modifications">
1937
+                   <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
1938
+                 </el-select>
1939
+              </el-form-item>
1940
+            </el-col>
1874 1941
         </el-row>
1875 1942
         <el-row>
1876 1943
           <el-col :span="24">
@@ -1887,7 +1954,7 @@
1887 1954
         </el-row>
1888 1955
       </el-form>
1889 1956
       <span slot="footer" class="dialog-footer">
1890
-        <el-button @click="dialogVisibleTwo = false">取 消</el-button>
1957
+        <el-button @click="dialogVisibleFour = false">取 消</el-button>
1891 1958
         <el-button type="primary" @click="UpdateOxygenates('diaForm')"
1892 1959
           >保存</el-button
1893 1960
         >
@@ -1992,7 +2059,7 @@
1992 2059
             </el-form-item>
1993 2060
           </el-col>
1994 2061
           <el-col :span="8">
1995
-            <el-form-item label="出报告日期:">
2062
+            <el-form-item label="出报告日期:" required prop="reporting_dateb">
1996 2063
               <el-date-picker
1997 2064
                 v-model="diaForm.reporting_dateb"
1998 2065
                 prefix-icon="none"
@@ -2004,6 +2071,29 @@
2004 2071
               ></el-date-picker>
2005 2072
             </el-form-item>
2006 2073
           </el-col>
2074
+           <el-col :span="8">
2075
+              <el-form-item label="顺序号:" required prop="sort">
2076
+                <el-input
2077
+                  style="width:100px"
2078
+                  v-model="diaForm.sort"
2079
+                ></el-input>
2080
+              </el-form-item>
2081
+            </el-col>
2082
+        </el-row>
2083
+         <el-row>
2084
+            <el-col :span="12">
2085
+               <el-form-item label="检测合格:" required prop="pass_examination">
2086
+                  <el-radio v-model="diaForm.pass_examination" label="1">是</el-radio>
2087
+                  <el-radio v-model="diaForm.pass_examination" label="2">否</el-radio>
2088
+               </el-form-item>
2089
+            </el-col>
2090
+            <el-col :span="12">
2091
+               <el-form-item label="修改标志:" required prop="modifications">
2092
+                 <el-select style="width:150px"  v-model="diaForm.modifications">
2093
+                   <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
2094
+                 </el-select>
2095
+              </el-form-item>
2096
+            </el-col>
2007 2097
         </el-row>
2008 2098
         <el-row>
2009 2099
           <el-col :span="24">
@@ -2125,7 +2215,7 @@
2125 2215
             </el-form-item>
2126 2216
           </el-col>
2127 2217
           <el-col :span="8">
2128
-            <el-form-item label="出报告日期:">
2218
+            <el-form-item label="出报告日期:" required prop="reporting_dateb">
2129 2219
               <el-date-picker
2130 2220
                 v-model="diaForm.reporting_dateb"
2131 2221
                 prefix-icon="none"
@@ -2137,6 +2227,29 @@
2137 2227
               ></el-date-picker>
2138 2228
             </el-form-item>
2139 2229
           </el-col>
2230
+           <el-col :span="8">
2231
+              <el-form-item label="顺序号:" required prop="sort">
2232
+                <el-input
2233
+                  style="width:100px"
2234
+                  v-model="diaForm.sort"
2235
+                ></el-input>
2236
+              </el-form-item>
2237
+            </el-col>
2238
+        </el-row>
2239
+         <el-row>
2240
+            <el-col :span="12">
2241
+               <el-form-item label="检测合格:" required prop="pass_examination">
2242
+                  <el-radio v-model="diaForm.pass_examination" label="1">是</el-radio>
2243
+                  <el-radio v-model="diaForm.pass_examination" label="2">否</el-radio>
2244
+               </el-form-item>
2245
+            </el-col>
2246
+            <el-col :span="12">
2247
+               <el-form-item label="修改标志:" required prop="modifications">
2248
+                 <el-select style="width:150px"  v-model="diaForm.modifications">
2249
+                   <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
2250
+                 </el-select>
2251
+              </el-form-item>
2252
+            </el-col>
2140 2253
         </el-row>
2141 2254
         <el-row>
2142 2255
           <el-col :span="24">
@@ -2258,7 +2371,7 @@
2258 2371
             </el-form-item>
2259 2372
           </el-col>
2260 2373
           <el-col :span="8">
2261
-            <el-form-item label="出报告日期:">
2374
+            <el-form-item label="出报告日期:" required prop="reporting_dateb">
2262 2375
               <el-date-picker
2263 2376
                 v-model="diaForm.reporting_dateb"
2264 2377
                 prefix-icon="none"
@@ -2270,6 +2383,29 @@
2270 2383
               ></el-date-picker>
2271 2384
             </el-form-item>
2272 2385
           </el-col>
2386
+          <el-col :span="8">
2387
+              <el-form-item label="顺序号:" required prop="sort">
2388
+                <el-input
2389
+                  style="width:100px"
2390
+                  v-model="diaForm.sort"
2391
+                ></el-input>
2392
+              </el-form-item>
2393
+         </el-col>
2394
+        </el-row>
2395
+        <el-row>
2396
+            <el-col :span="12">
2397
+               <el-form-item label="检测合格:" required prop="pass_examination">
2398
+                  <el-radio v-model="diaForm.pass_examination" label="1">是</el-radio>
2399
+                  <el-radio v-model="diaForm.pass_examination" label="2">否</el-radio>
2400
+               </el-form-item>
2401
+            </el-col>
2402
+            <el-col :span="12">
2403
+               <el-form-item label="修改标志:" required prop="modifications">
2404
+                 <el-select style="width:150px"  v-model="diaForm.modifications">
2405
+                   <el-option v-for="item in modifications" :key="item.id" :label="item.name" :value="item.id"></el-option>
2406
+                 </el-select>
2407
+              </el-form-item>
2408
+            </el-col>
2273 2409
         </el-row>
2274 2410
         <el-row>
2275 2411
           <el-col :span="24">
@@ -2388,7 +2524,10 @@ export default {
2388 2524
         detection_unit: "",
2389 2525
         samplerb: "",
2390 2526
         reporting_dateb: "",
2391
-        detection_resultb: ""
2527
+        detection_resultb: "",
2528
+        sort:"",
2529
+        pass_examination:"",
2530
+        modifications:""
2392 2531
       },
2393 2532
       sampling: [],
2394 2533
       samplingSpecimen: [
@@ -2409,15 +2548,35 @@ export default {
2409 2548
       ],
2410 2549
       rules: {
2411 2550
         detection_unit: [{ required: true, message: "请填写检测单位" }],
2412
-        sampler: [{ required: true, message: "请填写取样者" }]
2551
+        sampler: [{ required: true, message: "请填写取样者" }],
2552
+        sort:[{required:true,message:"请输入顺序号"}],
2553
+        reporting_date:[{required:true,message:"请选择出报告日期"}],
2554
+        pass_examination:[{required:true,message:"请选择检测合格"}],
2555
+        modifications:[{required:true,message:"请选择修改标志"}]
2413 2556
       },
2414 2557
       diaRules: {
2415 2558
         detection_unit: [{ required: true, message: "请填写检测单位" }],
2416
-        samplerb: [{ required: true, message: "请填写取样者" }]
2559
+        samplerb: [{ required: true, message: "请填写取样者" }],
2560
+        sort:[{required:true,message:"请输入顺序号"}],
2561
+        pass_examination:[{required:true,message:"请选择检测合格"}],
2562
+        modifications:[{required:true,message:"请选择修改标志"}],
2563
+        reporting_dateb:[{required:true,message:"请选择出报告日期"}],
2564
+      },
2565
+      rulesOne:{
2566
+        detection_unit: [{ required: true, message: "请填写检测单位" }],
2567
+        samplerb: [{ required: true, message: "请填写取样者" }],
2568
+        sort:[{required:true,message:"请输入顺序号"}],
2569
+        pass_examination:[{required:true,message:"请选择检测合格"}],
2570
+        modifications:[{required:true,message:"请选择修改标志"}],
2571
+        reporting_dateb:[{required:true,message:"请选择出报告日期"}],
2417 2572
       },
2418 2573
       ionrule: {
2419 2574
         detection_unit: [{ required: true, message: "请填写检测单位" }],
2420
-        samplerc: [{ required: true, message: "请填写取样者" }]
2575
+        samplerc: [{ required: true, message: "请填写取样者" }],
2576
+        date_reportc:[{required:true,message:"请选择出报告日期"}],
2577
+        sort:[{required:true,message:"请输入顺序号"}],
2578
+        pass_examination:[{required:true,message:"请选择检测合格"}],
2579
+        modifications:[{required:true,message:"请选择修改标志"}]
2421 2580
       },
2422 2581
       selectCulture: [],
2423 2582
       ionForm: {
@@ -2434,7 +2593,10 @@ export default {
2434 2593
         actual_ci: "",
2435 2594
         actual_hco: "",
2436 2595
         actual_mg: "",
2437
-        actual_ph: ""
2596
+        actual_ph: "",
2597
+        sort:"",
2598
+        pass_examination:"",
2599
+        modifications:""
2438 2600
       },
2439 2601
      modifications:[
2440 2602
        {id:1,name:"正常"},
@@ -3074,13 +3236,16 @@ export default {
3074 3236
             dialysate.reporting_dateb
3075 3237
           );
3076 3238
           this.diaForm.detection_resultb = dialysate.detection_resultb;
3239
+          this.diaForm.sort = dialysate.sort
3240
+          this.diaForm.pass_examination = dialysate.pass_examination.toString()
3241
+          this.diaForm.modifications = dialysate.modifications
3077 3242
         }
3078 3243
       });
3079 3244
     },
3080 3245
     UpdateDialyState(formName) {
3081 3246
       this.$refs[formName].validate(valid => {
3082 3247
         console.log("333333",this.diaForm)
3083
-       
3248
+        this.diaForm.pass_examination = parseInt(this.diaForm.pass_examination)
3084 3249
         if (valid) {
3085 3250
           UpdateDialyState(this.diaForm).then(response => {
3086 3251
             if (response.data.state === 1) {
@@ -3097,6 +3262,7 @@ export default {
3097 3262
 
3098 3263
     UpdateOxygenates(formName){
3099 3264
        this.$refs[formName].validate(valid=>{
3265
+         this.diaForm.pass_examination = parseInt(this.diaForm.pass_examination)
3100 3266
          if(valid){
3101 3267
            UpdateOxygenates(this.diaForm).then(response=>{
3102 3268
               if(response.data.state == 1){
@@ -3112,6 +3278,7 @@ export default {
3112 3278
     },
3113 3279
     UpdateHadWater(formName){
3114 3280
        this.$refs[formName].validate(valid=>{
3281
+         this.diaForm.pass_examination = parseInt(this.diaForm.pass_examination)
3115 3282
          if(valid){
3116 3283
            UpdateHadWater(this.diaForm).then(response=>{
3117 3284
               if(response.data.state == 1){
@@ -3128,6 +3295,7 @@ export default {
3128 3295
     updateWater(formName){
3129 3296
        this.$refs[formName].validate(valid=>{
3130 3297
          if(valid){
3298
+           this.diaForm.pass_examination = parseInt(this.diaForm.pass_examination)
3131 3299
            updateWater(this.diaForm).then(response=>{
3132 3300
               if(response.data.state == 1){
3133 3301
                 var hadwater =  response.data.data.hadWater
@@ -3142,6 +3310,7 @@ export default {
3142 3310
     },
3143 3311
     updateDevicePh(formName){
3144 3312
        this.$refs[formName].validate(valid=>{
3313
+         this.diaForm.pass_examination = parseInt(this.diaForm.pass_examination)
3145 3314
          if(valid){
3146 3315
            updateDevicePh(this.diaForm).then(response=>{
3147 3316
               if(response.data.state == 1){
@@ -3316,11 +3485,15 @@ export default {
3316 3485
           this.ionForm.actual_mg = ion.actual_mg;
3317 3486
           this.ionForm.actual_ph = ion.actual_ph;
3318 3487
           this.ionForm.remakes = ion.remakes;
3488
+          this.ionForm.sort = ion.sort;
3489
+          this.ionForm.pass_examination = ion.pass_examination.toString()
3490
+          this.ionForm.modifications = ion.modifications
3319 3491
         }
3320 3492
       });
3321 3493
     },
3322 3494
     UpdateIon(formName) {
3323 3495
       this.$refs[formName].validate(valid => {
3496
+        this.ionForm.pass_examination = parseInt(this.ionForm.pass_examination)
3324 3497
         if (valid) {
3325 3498
           UpdateIon(this.ionForm).then(response => {
3326 3499
             if (response.data.state === 1) {
@@ -3396,6 +3569,7 @@ export default {
3396 3569
       ).then(response => {
3397 3570
         if (response.data.state === 1) {
3398 3571
           var cultures = response.data.data.cultures;
3572
+          
3399 3573
           for (let index = 0; index < cultures.length; index++) {
3400 3574
             if (cultures[index].specimen === 0) {
3401 3575
               cultures[index].specimen = "";
@@ -3437,7 +3611,9 @@ export default {
3437 3611
             }
3438 3612
           }
3439 3613
           this.tableData = cultures;
3440
-          var dialysate = response.data.data.dialysate;
3614
+
3615
+          var dialyste = response.data.data.dialysate;
3616
+          
3441 3617
           for (let index = 0; index < dialyste.length; index++) {
3442 3618
             if (dialyste[index].specimenb === 0) {
3443 3619
               dialyste[index].specimenb = "";
@@ -3478,15 +3654,184 @@ export default {
3478 3654
               dialyste[index].sampling_locationb = "反渗水末端取样口";
3479 3655
             }
3480 3656
           }
3481
-          this.table = dialysate;
3657
+          this.table = dialyste;
3482 3658
 
3483 3659
           var ions = response.data.data.ions;
3484
-
3660
+          console.log("ions",ions)
3661
+          this.tableDatas = ions;
3485 3662
           var oxygenates =  response.data.data.oxygenates
3663
+          for (let index = 0; index < oxygenates.length; index++) {
3664
+            if (oxygenates[index].specimenb === 0) {
3665
+              oxygenates[index].specimenb = "";
3666
+            }
3667
+            if (oxygenates[index].specimenb === 1) {
3668
+              oxygenates[index].specimenb = "透析液";
3669
+            }
3670
+            if (oxygenates[index].specimenb === 2) {
3671
+              oxygenates[index].specimenb = "A浓缩液";
3672
+            }
3673
+            if (oxygenates[index].specimenb === 3) {
3674
+              oxygenates[index].specimenb = "B浓缩液";
3675
+            }
3676
+            if (oxygenates[index].specimenb === 4) {
3677
+              oxygenates[index].specimenb = "置换液";
3678
+            }
3679
+            if (oxygenates[index].specimenb === 5) {
3680
+              oxygenates[index].specimenb = "透析用水";
3681
+            }
3682
+
3683
+            if (oxygenates[index].sampling_locationb === 0) {
3684
+              oxygenates[index].sampling_locationb = "";
3685
+            }
3686
+
3687
+            if (oxygenates[index].sampling_locationb === 1) {
3688
+              oxygenates[index].sampling_locationb = "透析液入口";
3689
+            }
3690
+            if (oxygenates[index].sampling_locationb === 2) {
3691
+              oxygenates[index].sampling_locationb = "透析液取样口";
3692
+            }
3693
+            if (oxygenates[index].sampling_locationb === 3) {
3694
+              oxygenates[index].sampling_locationb = "置换液出口";
3695
+            }
3696
+            if (oxygenates[index].sampling_locationb === 4) {
3697
+              oxygenates[index].sampling_locationb = "透析机反渗水入口";
3698
+            }
3699
+            if (oxygenates[index].sampling_locationb === 5) {
3700
+              oxygenates[index].sampling_locationb = "反渗水末端取样口";
3701
+            }
3702
+          } 
3703
+          this.tableOne = oxygenates
3704
+
3486 3705
           var hadwater = response.data.data.hadwater
3706
+          for (let index = 0; index < hadwater.length; index++) {
3707
+            if (hadwater[index].specimenb === 0) {
3708
+              hadwater[index].specimenb = "";
3709
+            }
3710
+            if (hadwater[index].specimenb === 1) {
3711
+              hadwater[index].specimenb = "透析液";
3712
+            }
3713
+            if (hadwater[index].specimenb === 2) {
3714
+              hadwater[index].specimenb = "A浓缩液";
3715
+            }
3716
+            if (hadwater[index].specimenb === 3) {
3717
+              hadwater[index].specimenb = "B浓缩液";
3718
+            }
3719
+            if (hadwater[index].specimenb === 4) {
3720
+              hadwater[index].specimenb = "置换液";
3721
+            }
3722
+            if (hadwater[index].specimenb === 5) {
3723
+              hadwater[index].specimenb = "透析用水";
3724
+            }
3725
+
3726
+            if (hadwater[index].sampling_locationb === 0) {
3727
+              hadwater[index].sampling_locationb = "";
3728
+            }
3729
+
3730
+            if (hadwater[index].sampling_locationb === 1) {
3731
+              hadwater[index].sampling_locationb = "透析液入口";
3732
+            }
3733
+            if (hadwater[index].sampling_locationb === 2) {
3734
+              hadwater[index].sampling_locationb = "透析液取样口";
3735
+            }
3736
+            if (hadwater[index].sampling_locationb === 3) {
3737
+              hadwater[index].sampling_locationb = "置换液出口";
3738
+            }
3739
+            if (hadwater[index].sampling_locationb === 4) {
3740
+              hadwater[index].sampling_locationb = "透析机反渗水入口";
3741
+            }
3742
+            if (hadwater[index].sampling_locationb === 5) {
3743
+              hadwater[index].sampling_locationb = "反渗水末端取样口";
3744
+            }
3745
+          } 
3746
+          this.tableTwo = hadwater
3487 3747
           var water = response.data.data.water
3748
+          
3749
+          for (let index = 0; index < water.length; index++) {
3750
+            if (water[index].specimenb === 0) {
3751
+              water[index].specimenb = "";
3752
+            }
3753
+            if (water[index].specimenb === 1) {
3754
+              water[index].specimenb = "透析液";
3755
+            }
3756
+            if (water[index].specimenb === 2) {
3757
+              water[index].specimenb = "A浓缩液";
3758
+            }
3759
+            if (water[index].specimenb === 3) {
3760
+              water[index].specimenb = "B浓缩液";
3761
+            }
3762
+            if (water[index].specimenb === 4) {
3763
+              water[index].specimenb = "置换液";
3764
+            }
3765
+            if (water[index].specimenb === 5) {
3766
+              water[index].specimenb = "透析用水";
3767
+            }
3768
+
3769
+            if (water[index].sampling_locationb === 0) {
3770
+              water[index].sampling_locationb = "";
3771
+            }
3772
+
3773
+            if (water[index].sampling_locationb === 1) {
3774
+              water[index].sampling_locationb = "透析液入口";
3775
+            }
3776
+            if (water[index].sampling_locationb === 2) {
3777
+              water[index].sampling_locationb = "透析液取样口";
3778
+            }
3779
+            if (water[index].sampling_locationb === 3) {
3780
+              water[index].sampling_locationb = "置换液出口";
3781
+            }
3782
+            if (water[index].sampling_locationb === 4) {
3783
+              water[index].sampling_locationb = "透析机反渗水入口";
3784
+            }
3785
+            if (water[index].sampling_locationb === 5) {
3786
+              water[index].sampling_locationb = "反渗水末端取样口";
3787
+            }
3788
+          } 
3789
+
3790
+          this.tableThree = water
3791
+          
3488 3792
           var deviceph = response.data.data.deviceph
3489
-          this.tableDatas = ions;
3793
+                  
3794
+          for (let index = 0; index < deviceph.length; index++) {
3795
+            if (deviceph[index].specimenb === 0) {
3796
+              deviceph[index].specimenb = "";
3797
+            }
3798
+            if (deviceph[index].specimenb === 1) {
3799
+              deviceph[index].specimenb = "透析液";
3800
+            }
3801
+            if (deviceph[index].specimenb === 2) {
3802
+              deviceph[index].specimenb = "A浓缩液";
3803
+            }
3804
+            if (deviceph[index].specimenb === 3) {
3805
+              deviceph[index].specimenb = "B浓缩液";
3806
+            }
3807
+            if (deviceph[index].specimenb === 4) {
3808
+              deviceph[index].specimenb = "置换液";
3809
+            }
3810
+            if (deviceph[index].specimenb === 5) {
3811
+              deviceph[index].specimenb = "透析用水";
3812
+            }
3813
+
3814
+            if (deviceph[index].sampling_locationb === 0) {
3815
+              deviceph[index].sampling_locationb = "";
3816
+            }
3817
+
3818
+            if (deviceph[index].sampling_locationb === 1) {
3819
+              deviceph[index].sampling_locationb = "透析液入口";
3820
+            }
3821
+            if (deviceph[index].sampling_locationb === 2) {
3822
+              deviceph[index].sampling_locationb = "透析液取样口";
3823
+            }
3824
+            if (deviceph[index].sampling_locationb === 3) {
3825
+              deviceph[index].sampling_locationb = "置换液出口";
3826
+            }
3827
+            if (deviceph[index].sampling_locationb === 4) {
3828
+              deviceph[index].sampling_locationb = "透析机反渗水入口";
3829
+            }
3830
+            if (deviceph[index].sampling_locationb === 5) {
3831
+              deviceph[index].sampling_locationb = "反渗水末端取样口";
3832
+            }
3833
+          } 
3834
+          this.tableFour = deviceph
3490 3835
         }
3491 3836
       });
3492 3837
     },
@@ -3536,6 +3881,9 @@ export default {
3536 3881
             dialysate.reporting_dateb
3537 3882
           );
3538 3883
           this.diaForm.detection_resultb = dialysate.detection_resultb;
3884
+          this.diaForm.sort = dialysate.sort
3885
+          this.diaForm.pass_examination = dialysate.pass_examination.toString()
3886
+          this.diaForm.modifications = dialysate.modifications
3539 3887
          }
3540 3888
       })
3541 3889
       
@@ -3586,6 +3934,9 @@ export default {
3586 3934
             dialysate.reporting_dateb
3587 3935
           );
3588 3936
           this.diaForm.detection_resultb = dialysate.detection_resultb;
3937
+          this.diaForm.sort = dialysate.sort
3938
+          this.diaForm.pass_examination = dialysate.pass_examination.toString()
3939
+          this.diaForm.modifications = dialysate.modifications
3589 3940
          }
3590 3941
       })
3591 3942
     },
@@ -3635,6 +3986,10 @@ export default {
3635 3986
             dialysate.reporting_dateb
3636 3987
           );
3637 3988
           this.diaForm.detection_resultb = dialysate.detection_resultb;
3989
+
3990
+          this.diaForm.sort = dialysate.sort
3991
+          this.diaForm.pass_examination = parseInt(dialysate.pass_examination)
3992
+          this.diaForm.modifications = dialysate.modifications
3638 3993
         }
3639 3994
       })
3640 3995
     },
@@ -3684,6 +4039,9 @@ export default {
3684 4039
             dialysate.reporting_dateb
3685 4040
           );
3686 4041
           this.diaForm.detection_resultb = dialysate.detection_resultb;
4042
+          this.diaForm.sort = dialysate.sort
4043
+          this.diaForm.pass_examination = dialysate.pass_examination.toString()
4044
+          this.diaForm.modifications = dialysate.modifications
3687 4045
         }
3688 4046
       })
3689 4047
     }

Diff nebyl zobrazen, protože je příliš veliký
+ 246 - 188
src/xt_pages/management/home.vue


+ 1 - 1
src/xt_pages/user/inspectionInfectious.vue Zobrazit soubor

@@ -616,7 +616,7 @@ export default {
616 616
       this.fetchPatientInspections(this.queryParams)
617 617
     },
618 618
     fetchPatientInspections(params) {
619
-        console.log("重复了吗",params)
619
+       
620 620
       this.items = []
621 621
       fetchPatientInspections(params)
622 622
         .then(response => {

+ 1 - 6
src/xt_pages/user/vascularAccess.vue Zobrazit soubor

@@ -37,12 +37,7 @@
37 37
             <span>{{ getTime(scope.row.first_start_time, "{y}-{m}-{d}")}}</span>
38 38
           </template>
39 39
       </el-table-column>
40
-      <el-table-column prop="date" label="默认到处方" align="center" width="100">
41
-          <template slot-scope="scope">
42
-             <span v-if="scope.row.user_status == 1">启用</span>
43
-             <span v-if="scope.row.user_status == 2">停用</span>
44
-          </template>
45
-      </el-table-column>
40
+     
46 41
        <el-table-column prop="date" label="停用日期" align="center" width="100">
47 42
           <template slot-scope="scope">
48 43
             <span v-if="scope.row.stop_time>0">{{ getTime(scope.row.stop_time, "{y}-{m}-{d}")}}</span>