瀏覽代碼

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

csx 3 年之前
父節點
當前提交
c455e50554

+ 2 - 2
config/index.js 查看文件

@@ -29,8 +29,8 @@ module.exports = {
29 29
 
30 30
     // host: 'xt.test.sgjyun.com',
31 31
     //  host: 'xt.kuyicloud.com',
32
-    // host: 'xt.test.sgjyun.com',
33
-    host: 'localhost',
32
+    host: 'xt.test.sgjyun.com',
33
+   // host: 'localhost',
34 34
     port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
35 35
     autoOpenBrowser: true,
36 36
     errorOverlay: true,

+ 1 - 0
src/api/patient.js 查看文件

@@ -502,6 +502,7 @@ export function getInspectionItemList(params) {
502 502
 }
503 503
 
504 504
 export function saveCreation(params) {
505
+  console.log('中国龚3223呃3额', params)
505 506
   return request({
506 507
     url: '/api/patient/savecreationinspection',
507 508
     method: 'get',

+ 16 - 0
src/api/stock.js 查看文件

@@ -761,3 +761,19 @@ export function SaveCheckedPrice(params) {
761 761
     params: params
762 762
   })
763 763
 }
764
+
765
+export function getAdjustPriceById(params) {
766
+  return request({
767
+    url: '/api/stock/getadjustpriceinfo',
768
+    method: 'get',
769
+    params: params
770
+  })
771
+}
772
+
773
+export function saveReportStock(data) {
774
+  return request({
775
+    url: '/api/stock/savereportstock',
776
+    method: 'post',
777
+    data: data
778
+  })
779
+}

+ 58 - 43
src/store/modules/globalConfig.js 查看文件

@@ -706,6 +706,21 @@ const global_config = {
706 706
         zongliang_unit: 'mg',
707 707
         gaimingcheng_unit: '',
708 708
         gaijiliang_unit: ''
709
+      },
710
+      11: {
711
+        id: 11,
712
+        name: '那曲肝素',
713
+        type: 1,
714
+        shouji: 1,
715
+        weichi: 1,
716
+        zongliang: 1,
717
+        gaimingcheng: -1,
718
+        gaijiliang: -1,
719
+        shouji_unit: 'mg',
720
+        weichi_unit: 'mg/h',
721
+        zongliang_unit: 'mg',
722
+        gaimingcheng_unit: '',
723
+        gaijiliang_unit: ''
709 724
       }
710 725
     },
711 726
     anticoagulants_set: {
@@ -1866,49 +1881,49 @@ const global_config = {
1866 1881
       id: 27,
1867 1882
       name: '万u'
1868 1883
     }, {
1869
-        id: 28,
1870
-        name: '片'
1871
-      },{
1872
-        id: 29,
1873
-        name: '只'
1874
-      },{
1875
-        id: 30,
1876
-        name: '次'
1877
-      },{
1878
-        id: 31,
1879
-        name: '米'
1880
-      },{
1881
-        id: 32,
1882
-        name: '对'
1883
-      },
1884
-      {
1885
-        id: 31,
1886
-        name: '米'
1887
-      },
1888
-      {
1889
-        id: 32,
1890
-        name: '对'
1891
-      },
1892
-      {
1893
-        id: 33,
1894
-        name: '万份'
1895
-      },
1896
-      {
1897
-        id: 34,
1898
-        name: '副'
1899
-      },
1900
-      {
1901
-        id: 35,
1902
-        name: '本'
1903
-      },
1904
-      {
1905
-        id: 36,
1906
-        name: '轴'
1907
-      },
1908
-      {
1909
-        id: 37,
1910
-        name: '辆'
1911
-      },
1884
+      id: 28,
1885
+      name: '片'
1886
+    }, {
1887
+      id: 29,
1888
+      name: '只'
1889
+    }, {
1890
+      id: 30,
1891
+      name: '次'
1892
+    }, {
1893
+      id: 31,
1894
+      name: '米'
1895
+    }, {
1896
+      id: 32,
1897
+      name: '对'
1898
+    },
1899
+    {
1900
+      id: 31,
1901
+      name: '米'
1902
+    },
1903
+    {
1904
+      id: 32,
1905
+      name: '对'
1906
+    },
1907
+    {
1908
+      id: 33,
1909
+      name: '万份'
1910
+    },
1911
+    {
1912
+      id: 34,
1913
+      name: '副'
1914
+    },
1915
+    {
1916
+      id: 35,
1917
+      name: '本'
1918
+    },
1919
+    {
1920
+      id: 36,
1921
+      name: '轴'
1922
+    },
1923
+    {
1924
+      id: 37,
1925
+      name: '辆'
1926
+    }
1912 1927
     ],
1913 1928
     body_fluid: [{
1914 1929
       id: 1,

+ 51 - 33
src/xt_pages/dialysis/details/DialysisPrescription.vue 查看文件

@@ -56,17 +56,23 @@
56 56
         <li v-if=" isShow('总量') && getValueStr('anticoagulant', 'anticoagulant') != 5 " >
57 57
           <label>总量: </label>
58 58
           <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{anticoagulant_zongliang != "0" ? anticoagulant_zongliang : ""}}</span>
59
-          <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
60
-          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13 &&  this.$store.getters.xt_user.template_info.template_id != 23 &&  this.$store.getters.xt_user.template_info.template_id != 40">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
61
-          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && (this.$store.getters.xt_user.template_info.template_id == 13 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40)">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
62
-          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3" >{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
63
-          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
64
-          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
65
-          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 5">{{ anticoagulant_zongliang != "0" ? "ml" : "" }}</span>
66
-          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
67
-          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
68
-          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 8">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
69
-          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 9">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
59
+          <span v-if="this.$store.getters.xt_user.template_info.org_id != 10101">
60
+            <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
61
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13 &&  this.$store.getters.xt_user.template_info.template_id != 23 &&  this.$store.getters.xt_user.template_info.template_id != 40">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
62
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && (this.$store.getters.xt_user.template_info.template_id == 13 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40)">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
63
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3" >{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
64
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
65
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
66
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 5">{{ anticoagulant_zongliang != "0" ? "ml" : "" }}</span>
67
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
68
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
69
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 8">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
70
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 9">{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
71
+          </span>
72
+          <span v-else>
73
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2">{{ anticoagulant_zongliang != "0" ? "mg" : "" }}</span>
74
+            <span class="unit" v-else>{{ anticoagulant_zongliang != "0" ? "iu" : "" }}</span>
75
+          </span>
70 76
         </li>
71 77
 
72 78
         <li v-if="isShow('透析器/灌流器')">
@@ -134,17 +140,23 @@
134 140
         <li v-if=" isShow('首剂') && getValueStr('anticoagulant', 'anticoagulant') != 5 " >
135 141
           <label>首剂 : </label>
136 142
           <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ anticoagulant_shouji != "0" ? anticoagulant_shouji : "" }}</span>
137
-          <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
138
-          <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && this.$store.getters.xt_user.template_info.template_id != 13  && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
139
-          <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && (this.$store.getters.xt_user.template_info.template_id == 13 ||  this.$store.getters.xt_user.template_info.template_id == 23 ||  this.$store.getters.xt_user.template_info.template_id == 40)" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
140
-          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
141
-          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
142
-          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span >
143
-          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 5" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
144
-          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span >
145
-          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
146
-          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 8" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
147
-          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 9" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
143
+          <span v-if="this.$store.getters.xt_user.template_info.org_id != 10101">
144
+            <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
145
+            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && this.$store.getters.xt_user.template_info.template_id != 13  && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
146
+            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && (this.$store.getters.xt_user.template_info.template_id == 13 ||  this.$store.getters.xt_user.template_info.template_id == 23 ||  this.$store.getters.xt_user.template_info.template_id == 40)" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
147
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
148
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
149
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span >
150
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 5" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
151
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span >
152
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
153
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 8" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
154
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 9" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
155
+          </span>
156
+          <span v-else>
157
+            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2">{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
158
+            <span class="unit"  v-else>{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
159
+          </span>
148 160
         </li>
149 161
 
150 162
         <li v-if="isShow('钙')">
@@ -224,17 +236,23 @@
224 236
         <li v-if="isShow('维持') && getValueStr('anticoagulant', 'anticoagulant') != 5">
225 237
           <label>维持 : </label>
226 238
           <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ anticoagulant_weichi != "0" ? anticoagulant_weichi : "" }}</span>
227
-          <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1"></span>
228
-          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
229
-          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && (this.$store.getters.xt_user.template_info.template_id == 13 ||  this.$store.getters.xt_user.template_info.template_id == 23 ||  this.$store.getters.xt_user.template_info.template_id == 40)">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
230
-          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
231
-          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
232
-          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
233
-          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 5">{{ anticoagulant_weichi != "0" ? "ml/h" : "" }}</span>
234
-          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
235
-          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
236
-          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 8">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
237
-          <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 9">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
239
+          <span v-if="this.$store.getters.xt_user.template_info.org_id != 10101">
240
+            <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1"></span>
241
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
242
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && (this.$store.getters.xt_user.template_info.template_id == 13 ||  this.$store.getters.xt_user.template_info.template_id == 23 ||  this.$store.getters.xt_user.template_info.template_id == 40)">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
243
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
244
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
245
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
246
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 5">{{ anticoagulant_weichi != "0" ? "ml/h" : "" }}</span>
247
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 6">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
248
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 7">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
249
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 8">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
250
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 9">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
251
+          </span>
252
+          <span v-else>
253
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
254
+            <span class="unit" v-else>{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
255
+          </span>
238 256
         </li>
239 257
 
240 258
         <li

+ 4 - 0
src/xt_pages/dialysis/details/assessmentAfter.vue 查看文件

@@ -309,6 +309,10 @@
309 309
           <label>跌倒风险: </label>
310 310
           <span class="content" >{{ getFallrisk(this.record.fallrisk)}}</span>
311 311
         </li>
312
+        <li v-if="isShow('机器运行')">
313
+          <label>机器运行: </label>
314
+          <span class="content" >{{ this.record.machine_run}}</span>
315
+        </li>
312 316
       </ul>
313 317
     </div>
314 318
     <div class="note">

+ 22 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue 查看文件

@@ -678,6 +678,21 @@
678 678
              </el-select>
679 679
             </el-form-item>
680 680
         </el-col>
681
+
682
+      <el-col :span="8" v-if="isShow('机器运行')">
683
+            <el-form-item label="机器运行: ">
684
+              <el-select v-model="form.machine_run">
685
+                <el-option :key="0" label="请选择" :value="0"></el-option>
686
+
687
+                <el-option
688
+                  v-for="item in machineList"
689
+                  :label="item.name"
690
+                  :value="item.name"
691
+                  :key="item.value"
692
+                ></el-option>
693
+              </el-select>
694
+            </el-form-item>
695
+       </el-col>
681 696
         <el-col :span="24" v-if="isShow('KT/V')">
682 697
             <el-form-item label="KT/V:">
683 698
               <el-input type="textarea" :rows="4" v-model="form.ktv"></el-input>
@@ -853,11 +868,13 @@ export default {
853 868
         lapse:"",
854 869
         consciousness:"",
855 870
         fallrisk:"",
871
+        machine_run:"",
856 872
       },
857 873
       lapseList:[],
858 874
       leaveOfficeMethod:[],
859 875
       consciousnessList:[],
860
-      fallriskList:[]
876
+      fallriskList:[],
877
+      machineList:[],
861 878
     }
862 879
   },
863 880
   watch: {
@@ -1068,7 +1085,9 @@ export default {
1068 1085
       data["lapse"] = this.form.lapse
1069 1086
       data["consciousness"] = this.form.consciousness
1070 1087
       data["fallrisk"] = this.form.fallrisk
1088
+      data["machine_run"] = this.form.machine_run
1071 1089
       console.log("Paramsquery",data)
1090
+     
1072 1091
       postAssessmentAfterDislysis(ParamsQuery, data)
1073 1092
         .then(response => {
1074 1093
           this.loading = false
@@ -1350,6 +1369,8 @@ export default {
1350 1369
     this.leaveOfficeMethod = getDataConfig('hemodialysis','leave_office_method')
1351 1370
     this.consciousnessList = getDataConfig("hemodialysis","consciousness")
1352 1371
     this.fallriskList = getDataConfig("hemodialysis","fallrisk")
1372
+     this.machineList = getDataConfig("hemodialysis","machine_run")
1373
+     console.log("机器运行",this.machineList)
1353 1374
     this.internalFistulaTremorAcOptions = this.$store.getters.internal_fistula_tremor_ac
1354 1375
     this.patientGoseOptions = this.$store.getters.patient_gose
1355 1376
     this.observationContentOptions = this.$store.getters.observation_content

+ 61 - 2
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

@@ -201,6 +201,7 @@
201 201
 
202 202
                     <el-col :span="8" v-if="anticoagulant.shouji != -1 && isShows('首剂')">
203 203
                         <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157">
204
+                          <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101">
204 205
                             <el-form-item
205 206
                                     v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.org_id != 9987 '
206 207
                                     :label="'首剂(' + anticoagulant.shouji_unit + ') : '">
@@ -218,6 +219,21 @@
218 219
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
219 220
                                           v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
220 221
                             </el-form-item>
222
+                          </div>
223
+                          <div v-else>
224
+                            <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'首剂(mg) : '">
225
+                                <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
226
+                                          v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
227
+                                <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
228
+                                          v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
229
+                            </el-form-item>
230
+                            <el-form-item v-else :label="'首剂(iu) : '">
231
+                                <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
232
+                                          v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
233
+                                <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
234
+                                          v-model="dialysisPrescription.no_anticoagulant_shouji"></el-input>
235
+                            </el-form-item>
236
+                          </div>
221 237
                         </div>
222 238
                         <div v-else>
223 239
                             <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'首剂(mg) : '">
@@ -239,6 +255,7 @@
239 255
 
240 256
                     <el-col :span="8" v-if="anticoagulant.weichi != -1 && isShows('维持')">
241 257
                         <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157">
258
+                          <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101">
242 259
                             <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
243 260
                                           v-if="anticoagulant.weichi != -1 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.org_id != 9987">
244 261
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
@@ -253,6 +270,23 @@
253 270
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
254 271
                                           v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
255 272
                             </el-form-item>
273
+                          </div>
274
+                          <div v-else>
275
+                            <el-form-item :label="'维持(iu/h) : '"
276
+                                          v-if="anticoagulant.weichi != -1 && dialysisPrescription.anticoagulant != 2">
277
+                                <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
278
+                                          v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
279
+                                <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
280
+                                          v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
281
+                            </el-form-item>
282
+                            <el-form-item :label="'维持(mg/h) : '"
283
+                                          v-if="anticoagulant.weichi != -1 && dialysisPrescription.anticoagulant == 2">
284
+                                <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
285
+                                          v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
286
+                                <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
287
+                                          v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
288
+                            </el-form-item>
289
+                          </div>
256 290
                         </div>
257 291
                         <div v-else>
258 292
                             <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'维持(mg/h) : '">
@@ -273,6 +307,7 @@
273 307
 
274 308
                     <el-col :span="8" v-if="anticoagulant.zongliang != -1 && isShows('总量')">
275 309
                         <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157">
310
+                          <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101">
276 311
                             <el-form-item
277 312
                                     v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.org_id != 9987'
278 313
                                     :label="'总量(' + anticoagulant.zongliang_unit + ') : '">
@@ -289,6 +324,25 @@
289 324
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
290 325
                                           v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
291 326
                             </el-form-item>
327
+                          </div>
328
+                          <div v-else>
329
+                            <el-form-item
330
+                                    v-if='dialysisPrescription.anticoagulant != 2'
331
+                                    :label="'总量(iu) : '">
332
+                                <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
333
+                                          v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
334
+                                <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
335
+                                          v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
336
+                            </el-form-item>
337
+                            <el-form-item
338
+                                    v-if='dialysisPrescription.anticoagulant == 2'
339
+                                    :label="'总量(mg) : '">
340
+                                <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
341
+                                          v-model="dialysisPrescription.anticoagulant_zongliang"></el-input>
342
+                                <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
343
+                                          v-model="dialysisPrescription.no_anticoagulant_zongliang"></el-input>
344
+                            </el-form-item>
345
+                          </div>
292 346
                         </div>
293 347
                         <div v-else>
294 348
                             <el-form-item v-if="dialysisPrescription.anticoagulant == 2" :label="'总量(mg) : '">
@@ -2072,8 +2126,13 @@
2072 2126
         if (val > 2) {
2073 2127
           this.anticoagulant = this.anticoagulantsConfit[thismode - 2]
2074 2128
         }
2075
-        if (this.$store.getters.xt_user.template_info.template_id == 13 && val == 2) {
2076
-          this.anticoagulant.shouji_unit = 'mg'
2129
+        if ((this.$store.getters.xt_user.template_info.template_id == 13 || this.$store.getters.xt_user.template_info.template_id == 41) && val == 2) {
2130
+           if(val == 2){
2131
+             this.anticoagulant.shouji_unit = 'mg'
2132
+           }else{
2133
+             this.anticoagulant.shouji_unit = 'iu'
2134
+           }
2135
+         
2077 2136
           this.anticoagulant.weichi_unit = 'mg/h'
2078 2137
           this.anticoagulant.zongliang_unit = 'mg'
2079 2138
         }

+ 8 - 6
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue 查看文件

@@ -168,6 +168,7 @@
168 168
                   template_id == 38 ||
169 169
                   template_id == 39 ||
170 170
                   template_id == 40 ||
171
+                  template_id == 41 ||
171 172
                   org_id == 9555)
172 173
             "
173 174
           >
@@ -212,6 +213,7 @@
212 213
                 template_id != 38 &&
213 214
                 template_id != 39 &&
214 215
                 template_id != 40 &&
216
+                template_id != 41 &&
215 217
                 org_id!=9555
216 218
             "
217 219
           >
@@ -229,7 +231,7 @@
229 231
             align="center"
230 232
             label="超滤率(ml/h)"
231 233
             width="100"
232
-            v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38) "
234
+            v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38  || template_id == 41) "
233 235
           >
234 236
             <template slot-scope="scope">
235 237
               {{ scope.row.ultrafiltration_rate ? scope.row.ultrafiltration_rate : ""  }}
@@ -240,7 +242,7 @@
240 242
             align="center"
241 243
             label="超滤率(L/h)"
242 244
             width="100"
243
-            v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22  && template_id != 23 && template_id != 24 && template_id != 26 && template_id != 29 && template_id != 30 && template_id != 31 && template_id != 34 && template_id != 35 && template_id != 38"
245
+            v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22  && template_id != 23 && template_id != 24 && template_id != 26 && template_id != 29 && template_id != 30 && template_id != 31 && template_id != 34 && template_id != 35 && template_id != 38  && template_id != 41"
244 246
           >
245 247
             <template slot-scope="scope">
246 248
               {{ scope.row.ultrafiltration_rate ? scope.row.ultrafiltration_rate : ""  }}
@@ -578,12 +580,12 @@
578 580
             </el-form-item>
579 581
           </el-col>
580 582
 
581
-          <el-col :span="8" v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38) ">
583
+          <el-col :span="8" v-if="isShow('超滤率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38 || template_id == 41) ">
582 584
             <el-form-item label="超滤率(ml/h)">
583 585
               <el-input v-model="form.ultrafiltration_rate"></el-input>
584 586
             </el-form-item>
585 587
           </el-col>
586
-          <el-col :span="8" v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id != 29 && template_id != 30 && template_id != 31 && template_id != 34 && template_id != 35 && template_id != 38">
588
+          <el-col :span="8" v-if="isShow('超滤率') && template_id != 6 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id != 29 && template_id != 30 && template_id != 31 && template_id != 34 && template_id != 35 && template_id != 38 && template_id != 41">
587 589
             <el-form-item label="超滤率(L/h)">
588 590
               <el-input v-model="form.ultrafiltration_rate"></el-input>
589 591
             </el-form-item>
@@ -591,7 +593,7 @@
591 593
 
592 594
           <el-col
593 595
             :span="8"
594
-            v-if=" isShow('超滤量') && (template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || org_id == 9555) " >
596
+            v-if=" isShow('超滤量') && (template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 41 || org_id == 9555) " >
595 597
             <el-form-item label="超滤量(ml):">
596 598
               <el-input v-model="form.ultrafiltration_volume"></el-input>
597 599
             </el-form-item>
@@ -599,7 +601,7 @@
599 601
 
600 602
           <el-col
601 603
             :span="8"
602
-            v-if=" isShow('超滤量') && template_id != 6 && template_id !=9 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id!=27 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && org_id !=9555" >
604
+            v-if=" isShow('超滤量') && template_id != 6 && template_id !=9 && template_id != 10 && template_id != 11 && template_id != 12 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id!=27 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38  && template_id!=41 && org_id !=9555" >
603 605
             <el-form-item label="超滤量(L):">
604 606
               <el-input v-model="form.ultrafiltration_volume"></el-input>
605 607
             </el-form-item>

+ 4 - 4
src/xt_pages/dialysis/details/dialysisMonitoring.vue 查看文件

@@ -14,10 +14,10 @@
14 14
           <th width="76px">静脉压/动脉压({{monitores[0]&&monitores[0]['venous_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
15 15
           <th v-if="isShow('血流量')" width="92px">血流量(ml/min)</th>
16 16
           <th v-if="isShow('跨膜压')" width="76px">跨膜压({{monitores[0]&&monitores[0]['transmembrane_pressure_type'] == 2 ? 'kpa' : 'mmHg'}})</th>
17
-          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 39 || template_id == 40 || this.$store.getters.xt_user.template_info.org_id == 9555)" width="76px" > 超滤量(ml)</th>
18
-          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && template_id != 39 && template_id != 40 && this.$store.getters.xt_user.template_info.org_id != 9555"  width="76px"> 超滤量(L) </th>
19
-          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38)" width="50px"> 超滤率 <br />(ml/h) </th>
20
-          <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38" width="50px"> 超滤率 <br />(L/h) </th>
17
+          <th v-if=" isShow('超滤量') &&(template_id == 6 || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 27 || template_id == 28 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 35 || template_id == 36 || template_id == 38 || template_id == 39 || template_id == 40  || template_id == 41 || this.$store.getters.xt_user.template_info.org_id == 9555)" width="76px" > 超滤量(ml)</th>
18
+          <th v-if=" isShow('超滤量') && template_id != 6 && template_id != 9 && template_id != 10 && template_id != 11 && template_id != 13 && template_id != 17 && template_id != 18 && template_id != 19 && template_id != 20 && template_id != 21 && template_id != 22 && template_id != 23 && template_id != 24 && template_id != 26 && template_id !=27 && template_id!=28 && template_id!=29 && template_id!=30 && template_id!=31 && template_id!=32 && template_id!=34 && template_id!=35 && template_id!=36 && template_id!=38 && template_id != 39 && template_id != 40  && template_id != 41  && this.$store.getters.xt_user.template_info.org_id != 9555"  width="76px"> 超滤量(L) </th>
19
+          <th v-if="isShow('超滤率') && (template_id ==6 || template_id == 10 || template_id == 11 || template_id == 12 || template_id == 13 || template_id == 17 || template_id == 18 || template_id == 19 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 34 || template_id == 35 || template_id == 38 || template_id == 41)" width="50px"> 超滤率 <br />(ml/h) </th>
20
+          <th v-if="isShow('超滤率') && template_id !=6 && template_id !=10 && template_id !=11 && template_id !=12 && template_id !=13 && template_id !=17 && template_id !=18 && template_id !=19 && template_id !=20 && template_id !=21 && template_id !=22 && template_id !=23 && template_id !=24 && template_id !=26 && template_id !=29 && template_id !=30 && template_id !=31 && template_id !=34 && template_id !=35 && template_id !=38  && template_id !=41" width="50px"> 超滤率 <br />(L/h) </th>
21 21
           <th v-if="isShow('钠浓度')" width="92px">钠浓度(mmol/L)</th>
22 22
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
23 23
           <th v-if=" isShow('置换率') && (template_id == 6 || template_id == 10 || template_id == 11 || template_id == 20 || template_id == 26 || template_id == 29) " width="92px" > 置换率(ml/min) </th>

+ 1 - 1
src/xt_pages/outpatientCharges/statementTemplate/printThree.vue 查看文件

@@ -93,7 +93,7 @@
93 93
                           </div>
94 94
                           <div style="display:flex;flez-wrap:wrap;font-size:16px;">
95 95
                               <div style="width:33%;">个人支付金额:{{ info.psn_pay?info.psn_pay:0 }}元</div>
96
-                              <div style="width:33%;">个人账户金额:{{info.balc}}元</div>
96
+                              <div style="width:33%;">个人账户金额:{{info.balc >= 0 ? info.balc : 0 }}元</div>
97 97
                           </div>
98 98
                       </td>
99 99
                       <td style="font-size:16px;">合计:{{info.medfee_sumamt?info.medfee_sumamt:0}}元</td>

+ 220 - 92
src/xt_pages/stock/stockDamaged.vue 查看文件

@@ -23,14 +23,14 @@
23 23
                 >
24 24
                 <el-date-picker
25 25
                 size="small"
26
-                v-model="value1"
26
+                v-model="start_time"
27 27
                 type="date"
28 28
                 style="margin-left:5px;width:140px;"
29 29
                 placeholder="选择日期">
30 30
                 </el-date-picker>
31 31
                 <el-date-picker
32 32
                 size="small"
33
-                v-model="value2"
33
+                v-model="end_time"
34 34
                 type="date"
35 35
                 style="margin-left:5px;width:140px;"
36 36
                 placeholder="选择日期">
@@ -89,117 +89,132 @@
89 89
         </el-pagination>
90 90
     </div>
91 91
     <el-dialog
92
-        title="库房调价"
92
+        title="耗材报损"
93 93
         :visible.sync="dialogVisible"
94 94
         width="1200px"
95
-        :before-close="handleClose">
95
+        >
96 96
         <el-form :model="form" class="modifyDialog" label-width="120px">
97 97
             <el-form-item label="耗材ID">
98
-                <el-input v-model="form.name"></el-input>
98
+                <el-input v-model="form.good_id"></el-input>
99 99
             </el-form-item>
100
-            <el-form-item label="药品名称">
101
-                <el-input v-model="form.name"></el-input>
100
+            <el-form-item label="耗材名称">
101
+                  <el-autocomplete
102
+                    class="checkSearch"
103
+                    popper-class="my-autocomplete"
104
+                    v-model="form.good_name"
105
+                    :fetch-suggestions="querySearchAsync"
106
+                    :trigger-on-focus="true"
107
+                    placeholder="请输入耗材名称"
108
+                    @select="handleSelect"
109
+                    @input="changeGoodName(scope.$index)"
110
+                    style="width:160px;"
111
+                  >
112
+                    <i class="el-icon-search el-input__icon" slot="suffix"></i>
113
+                  <template slot-scope="{ item }">
114
+                    <div class="name">{{ item.good_name +"  " +item.specification_name + "  "+item.manufacturer }}</div>
115
+                  </template>
116
+                 </el-autocomplete>
102 117
             </el-form-item>
103 118
             <el-form-item label="规格">
104
-                <el-input v-model="form.name"></el-input>
119
+                <el-input v-model="form.specification_name"></el-input>
105 120
             </el-form-item>
106 121
             <el-form-item label="单位">
107
-                <el-input v-model="form.name"></el-input>
122
+                <el-input v-model="form.warehousing_unit"></el-input>
108 123
             </el-form-item>
109 124
             <el-form-item label="进货价">
110
-                <el-input v-model="form.name"></el-input>
125
+                <el-input v-model="form.buy_price"></el-input>
111 126
             </el-form-item>
112 127
             <el-form-item label="零售价">
113
-                <el-input v-model="form.name"></el-input>
128
+                <el-input v-model="form.packing_price"></el-input>
129
+            </el-form-item>
130
+            <el-form-item label="新零售价">
131
+                <el-input v-model="form.new_price"></el-input>
114 132
             </el-form-item>
115 133
             <el-form-item label="报损数量">
116
-                <el-input v-model="form.name"></el-input>
134
+                <el-input v-model="form.count"></el-input>
117 135
             </el-form-item>
118 136
             <el-form-item label="库存">
119
-                <el-input v-model="form.name"></el-input>
137
+                <el-input v-model="form.total"></el-input>
120 138
             </el-form-item>
121 139
             <el-form-item label="产地">
122
-                <el-input v-model="form.name"></el-input>
140
+                <el-input v-model="form.good_origin_place"></el-input>
123 141
             </el-form-item>
124 142
             <el-form-item label="批准文号">
125
-                <el-input v-model="form.name"></el-input>
143
+                <el-input v-model="form.license_number"></el-input>
126 144
             </el-form-item>
127 145
             <el-form-item label="生产厂商">
128
-                <el-input v-model="form.name"></el-input>
146
+                <el-input v-model="form.manufacturer"></el-input>
129 147
             </el-form-item>
130 148
             <el-form-item label="备注">
131 149
                 <div style="display:flex;">
132
-                    <el-input v-model="form.name"></el-input>
133
-                    <el-button style="margin-left:5px;" type="primary">添加</el-button>
150
+                    <el-input v-model="form.remark"></el-input>
151
+                    <el-button style="margin-left:5px;" type="primary" @click="addStock">添加</el-button>
134 152
                 </div>
135 153
             </el-form-item>
136 154
         </el-form>
137 155
         <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
138
-            <el-table-column
139
-            prop="date"
140
-            label="耗材ID"
141
-            width="100">
156
+            <el-table-column prop="date" label="耗材ID" width="100">
157
+               <template  slot-scope="scope">
158
+                 {{scope.row.good_id}}
159
+               </template>
142 160
             </el-table-column>
143
-            <el-table-column
144
-            prop="date"
145
-            label="耗材名称"
146
-            width="100">
161
+            <el-table-column prop="date" label="耗材名称" width="100">
162
+               <template  slot-scope="scope">
163
+                {{scope.row.good_name}}
164
+               </template>
147 165
             </el-table-column>
148
-            <el-table-column
149
-            prop="name"
150
-            label="规格"
151
-            width="100">
166
+            <el-table-column  prop="name" label="规格" width="100">
167
+              <template  slot-scope="scope">
168
+                {{scope.row.specification_name}}
169
+               </template>
152 170
             </el-table-column>
153
-            <el-table-column
154
-            prop="name"
155
-            label="单位"
156
-            width="100">
171
+            <el-table-column prop="name" label="单位" width="100">
172
+              <template  slot-scope="scope">
173
+                {{scope.row.warehousing_unit}}
174
+               </template>
157 175
             </el-table-column>
158
-            <el-table-column
159
-            prop="name"
160
-            label="调价数量"
161
-            width="100">
176
+            <el-table-column prop="name" label="报损数量" width="100">
177
+              <template  slot-scope="scope">
178
+                {{scope.row.count}}
179
+               </template>
162 180
             </el-table-column>
163
-            <el-table-column
164
-            prop="name"
165
-            label="原进货价"
166
-            width="100">
181
+            <el-table-column prop="name" label="原进货价" width="100">
182
+               <template  slot-scope="scope">
183
+                {{scope.row.buy_price}}
184
+               </template>
167 185
             </el-table-column>
168
-            <el-table-column
169
-            prop="name"
170
-            label="原零售价"
171
-            width="100">
186
+            <el-table-column prop="name" label="原零售价" width="100">
187
+               <template  slot-scope="scope">
188
+                {{scope.row.packing_price}}
189
+               </template>
172 190
             </el-table-column>
173
-            <el-table-column
174
-            prop="name"
175
-            label="新零售价"
176
-            width="100">
191
+            <el-table-column prop="name" label="新零售价" width="100">
192
+               <template  slot-scope="scope">
193
+                {{scope.row.new_price}}
194
+               </template>
177 195
             </el-table-column>
178
-            <el-table-column
179
-            prop="name"
180
-            label="生产厂商"
181
-            width="100">
196
+            <el-table-column prop="name" label="生产厂商" width="100">
197
+              <template  slot-scope="scope">
198
+                {{scope.row.manufacturer}}
199
+               </template>
182 200
             </el-table-column>
183
-            <el-table-column
184
-            prop="name"
185
-            label="产地"
186
-            width="100">
201
+            <el-table-column prop="name" label="产地" width="100">
202
+               <template  slot-scope="scope">
203
+                {{scope.row.good_origin_place}}
204
+               </template>
187 205
             </el-table-column>
188
-            <el-table-column
189
-            prop="name"
190
-            label="批准文号"
191
-            width="100">
206
+            <el-table-column prop="name" label="批准文号" width="100">
207
+              <template  slot-scope="scope">
208
+                {{scope.row.license_number}}
209
+               </template>
192 210
             </el-table-column>
193
-            <el-table-column
194
-            prop="name"
195
-            label="备注"
196
-            width="100">
211
+            <el-table-column  prop="name" label="备注" width="100">
212
+              <template  slot-scope="scope">
213
+                {{scope.row.remark}}
214
+               </template>
197 215
             </el-table-column>
198
-            <el-table-column
199
-            fixed="right"
200
-            width="100"
201
-            label="操作">
202
-                <template slot-scope="scope">
216
+            <el-table-column fixed="right" width="100" label="操作">
217
+                <template  slot-scope="scope">
203 218
                     <el-button type="text" size="small">删除</el-button>
204 219
                     <el-button type="text" size="small">编辑</el-button>
205 220
                 </template>
@@ -207,7 +222,7 @@
207 222
         </el-table>
208 223
         <span slot="footer" class="dialog-footer">
209 224
             <el-button @click="dialogVisible = false">取 消</el-button>
210
-            <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
225
+            <el-button type="primary" @click="saveReportStock">确 定</el-button>
211 226
         </span>
212 227
     </el-dialog>
213 228
   
@@ -216,7 +231,8 @@
216 231
 
217 232
 <script>
218 233
 import BreadCrumb from "../components/bread-crumb";
219
-
234
+import { uParseTime } from '@/utils/tools'
235
+import { postSearchGoodWarehouseList,saveReportStock} from "@/api/stock"
220 236
 export default {
221 237
     name: "stockModifyPrice",
222 238
     components:{
@@ -232,28 +248,35 @@ export default {
232 248
             searchKey:'',
233 249
             value1:'',
234 250
             value2:'',
235
-            tableData: [{
236
-                date: '2016-05-02',
237
-                name: '王小虎',
238
-                address: '上海市普陀区金沙江路 1518 弄'
239
-                }, {
240
-                date: '2016-05-04',
241
-                name: '王小虎',
242
-                address: '上海市普陀区金沙江路 1517 弄'
243
-                }, {
244
-                date: '2016-05-01',
245
-                name: '王小虎',
246
-                address: '上海市普陀区金沙江路 1519 弄'
247
-                }, {
248
-                date: '2016-05-03',
249
-                name: '王小虎',
250
-                address: '上海市普陀区金沙江路 1516 弄'
251
-            }],
251
+            tableData: [],
252 252
             dialogVisible:false,
253 253
             form: {
254
-                name: '',
254
+                id:"",
255
+                good_name: '',
256
+                packing_price:'',
257
+                new_price:"",
258
+                count:"",
259
+                remark:"",
260
+                warehousing_order:"",
261
+                manufacturer:"",
262
+                dealer:"",
263
+                license_number:"",
264
+                warehousing_unit:"",
265
+                specification_name:"",
266
+                buy_price:"",
267
+                good_id:"",
268
+                packing_unit:"",
269
+                good_origin_place:"",
270
+                report_count:"",
271
+                total:"",
255 272
             },
256 273
             total: 0,
274
+            currentIndex: 0,
275
+            manufacturerList:[],
276
+            dealerList:[],
277
+            goodList:[],
278
+            start_time:"",
279
+            end_time:"",
257 280
         }
258 281
     },
259 282
     methods:{
@@ -265,10 +288,115 @@ export default {
265 288
             
266 289
         },
267 290
         handleSizeChange(){},
268
-        handleCurrentChange(){}
291
+        handleCurrentChange(){},
292
+         changeGoodName(val){
293
+         this.currentIndex = val
294
+        },
295
+      querySearchAsync(keyword, cb) {
296
+        let key = '';
297
+        if (keyword != undefined) {
298
+            key = keyword
299
+        }
300
+        postSearchGoodWarehouseList(key).then(response => {
301
+        if (response.data.state == 1) {
302
+        
303
+            var list = response.data.data.list
304
+            console.log("列表数据",list)
305
+            this.goodList = list
306
+            var manufacturerList = response.data.data.manufacturerList
307
+            this.manufacturerList = manufacturerList
308
+            var dealer =  response.data.data.dealerList
309
+            this.dealerList = dealer
310
+            for(let i=0;i<this.goodList.length;i++){
311
+                for(let j=0;j<this.manufacturerList.length;j++){
312
+                if(this.goodList[i].manufacturer == this.manufacturerList[j].id){
313
+                    this.goodList[i].manufacturer = this.manufacturerList[j].manufacturer_name
314
+                }
315
+                }
316
+            }
317
+
318
+            for(let i=0;i<this.goodList.length;i++){
319
+                for(let j=0;j<this.dealerList.length;j++){
320
+                    if(this.goodList[i].dealer == this.dealerList[j].id){
321
+                    this.goodList[i].dealer = this.dealerList[j].dealer_name
322
+                    }
323
+                }
324
+            }
325
+        
326
+            cb(this.goodList)
327
+         } else {
328
+            cb([])
329
+          }
330
+         })
331
+        },
332
+        handleSelect(val){
333
+          console.log("val23232323",val)
334
+          this.form.id = val.id
335
+          this.form.good_id = val.good_id,
336
+          this.form.good_name = val.good_name
337
+          this.form.packing_price = val.packing_price
338
+          this.form.warehousing_order = val.warehousing_order
339
+          this.form.license_number = val.license_number
340
+          this.form.dealer = val.dealer
341
+          this.form.manufacturer = val.manufacturer
342
+          this.form.specification_name = val.specification_name
343
+          this.form.remark = val.remark
344
+          this.form.buy_price = val.buy_price
345
+          this.form.warehousing_unit = val.packing_unit  
346
+          this.form.total = val.total
347
+          this.form.new_price = val.new_price
348
+      },
349
+      addStock(){
350
+        var obj = {
351
+          good_id:this.form.good_id,
352
+          good_name:this.form.good_name,
353
+          specification_name:this.form.specification_name,
354
+          warehousing_unit:this.form.warehousing_unit,
355
+          count:parseInt(this.form.count),
356
+          buy_price:this.form.buy_price.toString(),
357
+          packing_price:this.form.packing_price.toString(),
358
+          manufacturer:this.form.manufacturer,
359
+          good_origin_place:this.form.good_origin_place,
360
+          license_number:this.form.license_number,
361
+          remark:this.form.remark,
362
+          new_price:this.form.new_price.toString(),
363
+          warehousing_order:this.form.warehousing_order,
364
+          dealer:this.form.dealer,
365
+          start_time:this.getTime(new Date()),
366
+        } 
367
+        this.tableData.push(obj)
368
+      },
369
+      saveReportStock(){
370
+          var params = {
371
+            tableData:this.tableData,
372
+          }
373
+          console.log("params",params)
374
+        saveReportStock(params).then(response=>{
375
+           if(response.data.state == 1){
376
+             var msg = response.data.data.msg
377
+             this.$message.success("保存成功")
378
+             this.dialogVisible = false
379
+           }
380
+        })
381
+      },
382
+      getTime(val) {
383
+         if(val < 0){
384
+           return ""
385
+         }
386
+         if(val == ""){
387
+          return ""
388
+         }else {
389
+          return uParseTime(val, '{y}-{m}-{d}')
390
+         }
391
+      },
392
+      getlist(){
393
+       getReportStockList().then(response=>{
269 394
 
395
+       })   
396
+      }
270 397
     },
271 398
     created(){
399
+      this.getlist()
272 400
     },
273 401
     mounted() {
274 402
     },

+ 13 - 6
src/xt_pages/stock/stockModifyPrice.vue 查看文件

@@ -200,12 +200,11 @@
200 200
     <el-dialog
201 201
         title="库房调价"
202 202
         :visible.sync="dialogVisible"
203
-        width="1200px"
204
-        :before-close="handleClose">
203
+        width="1200px">
205 204
         <el-form :model="form" class="modifyDialog" label-width="120px">
206 205
             <el-form-item label="耗材名称">
207 206
                 <!-- <el-input v-model="form.name"></el-input> -->
208
-              <el-autocomplete
207
+               <el-autocomplete
209 208
                     class="checkSearch"
210 209
                     popper-class="my-autocomplete"
211 210
                     v-model="form.good_name"
@@ -465,7 +464,7 @@ export default {
465 464
             end_time:"",
466 465
             ids:"",
467 466
             check_time:new Date(),
468
-            checker:this.$store.getters.xt_user.user.user_name,
467
+            checker:this.$store.getters.xt_user.user.id,
469 468
             checkDialogVisible:false,
470 469
         }
471 470
     },
@@ -474,7 +473,11 @@ export default {
474 473
 
475 474
         },
476 475
         print(){
477
-            this.$router.push({path:'/stock/stockModifyPricePrint'})
476
+            if(this.ids == ""){
477
+              this.$message.error("请勾选打印数据")
478
+              return
479
+            }
480
+            this.$router.push({path:'/stock/stockModifyPricePrint?ids='+this.ids})
478 481
             
479 482
         },
480 483
         querySearchAsync(keyword, cb) {
@@ -676,6 +679,7 @@ export default {
676 679
     
677 680
      },
678 681
      SaveCheckedPrice(){
682
+       
679 683
          var params = {
680 684
             ids:this.ids,
681 685
             check_time:this.getTime(this.check_time),
@@ -684,7 +688,10 @@ export default {
684 688
        console.log("params",params)
685 689
        SaveCheckedPrice(params).then(response=>{
686 690
          if(response.data.state == 1){
687
-            
691
+           var adjustPrice = response.data.data.adjustPrice
692
+           this.$message.success("保存成功")
693
+           this.getAllStockPrice() 
694
+           this.checkDialogVisible = false
688 695
          }
689 696
        })
690 697
      }

+ 47 - 19
src/xt_pages/stock/stockModifyPricePrint.vue 查看文件

@@ -8,20 +8,20 @@
8 8
             </el-col>
9 9
         </el-row>
10 10
         </div>
11
-        <div class="app-container" style="background-color: white;">
11
+        <div class="app-container" style="background-color: white;" v-for="(item,index) in tableList">
12 12
             <div id="print_content">
13 13
                 <div class="printTitle">耗材调价登记单</div>
14 14
                 <div class="flex">
15 15
                     <div>药库类别:</div>
16
-                    <div>调价日期:</div>
16
+                    <div>调价日期:{{getTime(item.start_time)}}</div>
17 17
                 </div>
18 18
                 <div class="flex">
19
-                    <div>单据编号:</div>
20
-                    <div>打印日期:</div>
19
+                    <div>单据编号:{{item.warehousing_order}}</div>
20
+                    <div>打印日期:{{nowtime}}</div>
21 21
                 </div>
22 22
                 <div class="tableTitle">
23 23
                     <div style="width:8%">货号</div>
24
-                    <div style="width:8%">药品名称</div>
24
+                    <div style="width:8%">耗材名称</div>
25 25
                     <div style="width:8%">规格</div>
26 26
                     <div style="width:8%">单位</div>
27 27
                     <div style="width:8%">批次</div>
@@ -33,19 +33,19 @@
33 33
                     <div style="width:8%">新零售价</div>
34 34
                     <div style="width:8%">零售差价</div>
35 35
                 </div>
36
-                <div class="tableTr" v-for="item in 3">
37
-                    <div style="width:8%">上三</div>
38
-                    <div style="width:8%">上三名称</div>
39
-                    <div style="width:8%">上三</div>
40
-                    <div style="width:8%">上三</div>
41
-                    <div style="width:8%">上三</div>
42
-                    <div style="width:8%">上三数量</div>
43
-                    <div style="width:8%">上三货价</div>
44
-                    <div style="width:8%">上三货价</div>
45
-                    <div style="width:8%">上三差价</div>
46
-                    <div style="width:8%">上三售价</div>
47
-                    <div style="width:8%">上三售价</div>
48
-                    <div style="width:8%">上三差价</div>
36
+                <div class="tableTr">
37
+                    <div style="width:8%"></div>
38
+                    <div style="width:8%">{{item.good_name}}</div>
39
+                    <div style="width:8%">{{item.specification_name}}</div>
40
+                    <div style="width:8%">{{item.warehousing_unit}}</div>
41
+                    <div style="width:8%">{{item.license_number}}</div>
42
+                    <div style="width:8%">{{item.count}}</div>
43
+                    <div style="width:8%">{{item.buy_price}}</div>
44
+                    <div style="width:8%">{{item.new_price}}</div>
45
+                    <div style="width:8%"></div>
46
+                    <div style="width:8%">{{item.buy_price}}</div>
47
+                    <div style="width:8%">{{item.new_price}}</div>
48
+                    <div style="width:8%"></div>
49 49
                 </div>
50 50
                 <div class="tableBottom">
51 51
                     <div style="width:8%">合计:</div>
@@ -77,6 +77,8 @@
77 77
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
78 78
 const moment = require('moment');
79 79
 import { uParseTime } from '@/utils/tools'
80
+import { getAdjustPriceById} from "@/api/stock"
81
+
80 82
 export default {
81 83
     components:{
82 84
         BreadCrumb
@@ -88,6 +90,8 @@ export default {
88 90
             { path: false, name: '耗材管理' },
89 91
             { path: false, name: '耗材调价打印' },
90 92
           ],
93
+          tableList:[],
94
+          nowtime: moment(new Date()).format('YYYY-MM-DD'),
91 95
         }
92 96
     },
93 97
     methods:{
@@ -101,10 +105,34 @@ export default {
101 105
             scanStyles: false
102 106
             })
103 107
         },
104
-
108
+       getAdjustPriceById(ids){
109
+           var params = {
110
+            ids:ids,
111
+           }
112
+         getAdjustPriceById(params).then(response=>{
113
+           if(response.data.state == 1){
114
+             var list = response.data.data.list
115
+             console.log("打印列表",list)
116
+             this.tableList = list
117
+           }
118
+         })
119
+       },
120
+       getTime(val) {
121
+         if(val < 0){
122
+           return ""
123
+         }
124
+         if(val == ""){
125
+          return ""
126
+         }else {
127
+          return uParseTime(val, '{y}-{m}-{d}')
128
+         }
129
+      },
105 130
 
106 131
     },
107 132
     created(){
133
+      var ids = this.$route.query.ids
134
+      console.log("ids",ids)
135
+      this.getAdjustPriceById(ids)
108 136
     }
109 137
 }
110 138
 </script>

+ 1 - 1
src/xt_pages/user/coursePrint.vue 查看文件

@@ -115,7 +115,7 @@
115 115
     },
116 116
     methods: {
117 117
       printAction: function() {
118
-        const style = '@media print {.printP div{margin-bottom:5px;} .option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 5px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:1000px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top:1050px;left: 50%;}.print-yema5{position: absolute;top:1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}'
118
+        const style = '@media print {.printP div{margin-bottom:5px;} .option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 20px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 5px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:1000px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top:1050px;left: 50%;}.print-yema5{position: absolute;top:1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}'
119 119
         printJS({
120 120
           printable: 'print_content',
121 121
           type: 'html',

+ 81 - 1
src/xt_pages/user/dialysisSolution.vue 查看文件

@@ -249,7 +249,33 @@
249 249
             :span="8"
250 250
             v-if="anticoagulant.shouji != -1 && isShows('首剂')"
251 251
           >
252
-            <el-form-item
252
+            <div v-if="this.$store.getters.xt_user.template_info.org_id == 10101">
253
+              <el-form-item
254
+                :label="'首剂(mg): '"
255
+                prop="anticoagulant_shouji"
256
+                v-if="addPlan.anticoagulant == 2"
257
+              >
258
+                <el-input
259
+                  v-model="addPlan.anticoagulant_shouji"
260
+                  :disabled="anticoagulant.shouji == 1 ? false : true"
261
+                  type="number"
262
+                ></el-input>
263
+              </el-form-item>
264
+              <el-form-item
265
+                :label="'首剂(iu): '"
266
+                prop="anticoagulant_shouji"
267
+                v-else
268
+              >
269
+                <el-input
270
+                  v-model="addPlan.anticoagulant_shouji"
271
+                  :disabled="anticoagulant.shouji == 1 ? false : true"
272
+                  type="number"
273
+                ></el-input>
274
+              </el-form-item>
275
+
276
+            </div>
277
+            <div v-else>
278
+              <el-form-item
253 279
               :label="'首剂(' + anticoagulant.shouji_unit + '): '"
254 280
               prop="anticoagulant_shouji"
255 281
             >
@@ -259,11 +285,38 @@
259 285
                 type="number"
260 286
               ></el-input>
261 287
             </el-form-item>
288
+            </div>
289
+            
262 290
           </el-col>
263 291
           <el-col
264 292
             :span="8"
265 293
             v-if="anticoagulant.weichi != -1 && isShows('维持')"
266 294
           >
295
+          <div v-if="this.$store.getters.xt_user.template_info.org_id == 10101">
296
+            <el-form-item
297
+              :label="'维持(mg/h): '"
298
+              prop="anticoagulant_weichi"
299
+              v-if="addPlan.anticoagulant == 2"
300
+            >
301
+              <el-input
302
+                v-model="addPlan.anticoagulant_weichi"
303
+                :disabled="anticoagulant.weichi == 1 ? false : true"
304
+                type="number"
305
+              ></el-input>
306
+            </el-form-item>
307
+            <el-form-item
308
+              :label="'维持(iu/h): '"
309
+              prop="anticoagulant_weichi"
310
+              v-else
311
+            >
312
+              <el-input
313
+                v-model="addPlan.anticoagulant_weichi"
314
+                :disabled="anticoagulant.weichi == 1 ? false : true"
315
+                type="number"
316
+              ></el-input>
317
+            </el-form-item>
318
+          </div>
319
+          <div v-else>
267 320
             <el-form-item
268 321
               :label="'维持(' + anticoagulant.weichi_unit + '): '"
269 322
               prop="anticoagulant_weichi"
@@ -274,11 +327,37 @@
274 327
                 type="number"
275 328
               ></el-input>
276 329
             </el-form-item>
330
+          </div>
277 331
           </el-col>
278 332
           <el-col
279 333
             :span="8"
280 334
             v-if="anticoagulant.zongliang != -1 && isShows('总量')"
281 335
           >
336
+          <div v-if="this.$store.getters.xt_user.template_info.org_id == 10101">
337
+            <el-form-item
338
+              :label="'总量(mg): '"
339
+              prop="anticoagulant_zongliang"
340
+              v-if="addPlan.anticoagulant == 2"
341
+            >
342
+              <el-input
343
+                v-model="addPlan.anticoagulant_zongliang"
344
+                :disabled="anticoagulant.zongliang == 1 ? false : true"
345
+                type="number"
346
+              ></el-input>
347
+            </el-form-item>
348
+            <el-form-item
349
+              :label="'总量(iu): '"
350
+              prop="anticoagulant_zongliang"
351
+              v-else
352
+            >
353
+              <el-input
354
+                v-model="addPlan.anticoagulant_zongliang"
355
+                :disabled="anticoagulant.zongliang == 1 ? false : true"
356
+                type="number"
357
+              ></el-input>
358
+            </el-form-item>
359
+          </div>
360
+          <div v-else>
282 361
             <el-form-item
283 362
               :label="'总量(' + anticoagulant.zongliang_unit + '): '"
284 363
               prop="anticoagulant_zongliang"
@@ -289,6 +368,7 @@
289 368
                 type="number"
290 369
               ></el-input>
291 370
             </el-form-item>
371
+          </div>
292 372
           </el-col>
293 373
           <el-col
294 374
             :span="8"

+ 397 - 130
src/xt_pages/user/templateSummary.vue 查看文件

@@ -39,54 +39,74 @@
39 39
                         border highlight-current-row @current-change="changeCurrentRecordTwo"
40 40
                         :row-class-name="tableRow"
41 41
               >
42
-                <el-table-column type="selection" width="40" align="center"></el-table-column>
43
-                <el-table-column label="检查项目" align="center">
42
+                <el-table-column type="selection" width="60" align="center"></el-table-column>
43
+                <el-table-column label="阶段小结名称" align="center">
44 44
                   <template slot-scope="scope">
45 45
                      {{scope.row.title}}
46 46
                   </template>
47 47
                 </el-table-column>
48
+                <el-table-column label="记录时间" align="center">
49
+                  <template slot-scope="scope">
50
+                     {{getTime(scope.row.record_time)}}
51
+                  </template>
52
+                </el-table-column>
53
+                <el-table-column label="记录医生" align="center">
54
+                  <template slot-scope="scope">
55
+                     {{getDoctor(scope.row.admin_user_id)}}
56
+                  </template>
57
+                </el-table-column>
48 58
               </el-table>
49 59
             </el-col>
50 60
             <el-col :span="14">
51 61
               <div class="record_content_panel">
52 62
                 <div style="background-color:rgb(245, 247, 250)" class="title">阶段小结内容</div>
53 63
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;">阶段小结时间:{{getTime(editObj.record_time)}}</div>  
54
-                <!-- <el-divider></el-divider> -->
55 64
                 <div style="padding: 10px 10px 0;">阶段小结概要:</div>  
56 65
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;">
57
-                  <span style="margin-right:10px;line-height:20px;">干体重:{{editObj.drg_weight}}</span>
58
-                  <span style="margin-right:10px;line-height:20px;">共透析:{{editObj.dialysis_count}}</span>
59
-                  <span style="margin-right:10px;line-height:20px;">HD:{{editObj.hd_count}}</span>
66
+                  <span style="margin-right:10px;line-height:30px;">干体重(kg):{{editObj.dry_weight}}</span>
67
+                  <span style="margin-right:10px;line-height:30px;">共透析:{{editObj.dialysis_count}}次</span>
68
+                  <span style="margin-right:10px;line-height:30px;">HD:{{editObj.hd_count}}次</span>
60 69
                   <br>
61
-                  <span style="margin-right:10px;line-height:20px;">HDF:{{editObj.hdf_count}}</span>
62
-                  <span style="margin-right:10px;line-height:20px;">HP:{{editObj.hp_count}}</span>
63
-                  <span style="margin-right:10px;line-height:20px;">其他:{{editObj.other_count}}</span>
70
+                  <span style="margin-right:10px;line-height:30px;">HDF:{{editObj.hdf_count}}次</span>
71
+                  <span style="margin-right:10px;line-height:30px;">HP:{{editObj.hp_count}}次</span>
72
+                  <span style="margin-right:10px;line-height:30px;">其他:{{editObj.other_count}}次</span>
64 73
                    <br>
65
-                  <span style="margin-right:10px;line-height:20px;">透析器:{{editObj.dialzer_apparatus}}</span>
66
-                  <span style="margin-right:10px;line-height:20px;">抗凝剂:{{editObj.anticoagulant}}</span>
67
-                  <span style="margin-right:10px;line-height:20px;">透析液:(钾:{{editObj.kalium}} 钙:{{editObj.autunite}} Na:{{editObj.natrium}})</span>
74
+                  <span style="margin-right:10px;line-height:30px;">透析器:{{editObj.dialzer_apparatus}}</span>
75
+                  <span style="margin-right:10px;line-height:30px;">抗凝剂:
76
+                    <span> {{getAnticoagulant(editObj.anticoagulant)}}</span>
77
+                  </span>
78
+                  <span style="margin-right:10px;line-height:30px;">透析液:(钾:{{editObj.kalium}} 钙:{{editObj.autunite}} Na:{{editObj.natrium}})</span>
68 79
                   <br>
69
-                  <span style="margin-right:10px;line-height:20px;">每次透析(小时):{{editObj.hour}}</span>
70
-                  <span style="margin-right:10px;line-height:20px;">透前体重(kg):{{editObj.befor_weight}}</span>
71
-                  <span style="margin-right:10px;line-height:20px;">透后体重(kg):{{editObj.after_weight}}</span>
80
+                  <span style="margin-right:10px;line-height:30px;">每次透析:<span v-if="editObj.hour!=''"> {{editObj.hour}}小时</span>
81
+                   <span v-if="editObj.minute!=''">{{editObj.minute}}</span>分</span>
82
+                  <span style="margin-right:10px;line-height:30px;">透前体重(kg):{{editObj.befor_weight}}</span>
83
+                  <span style="margin-right:10px;line-height:30px;">透后体重(kg):{{editObj.after_weight}}</span>
72 84
                   <br>
73
-                  <span style="margin-right:10px;line-height:20px;">透前血压(mmHg):{{editObj.befor_pressure}}</span>
74
-                  <span style="margin-right:10px;line-height:20px;">透后血压(mmHg):{{editObj.after_pressure}}</span>
85
+                  <span style="margin-right:10px;line-height:30px;">透前血压(mmHg):{{editObj.befor_pressure}}</span>
86
+                  <span style="margin-right:10px;line-height:30px;">透后血压(mmHg):{{editObj.after_pressure}}</span>
75 87
                 </div>
76
-                <!-- <el-divider></el-divider> -->
77
-                <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结总结:
88
+                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结总结:
89
+                   {{editObj.template_summary_content}}
90
+                 </div>
91
+                <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结化验结果:
78 92
                   <div>
79 93
                     <div v-for="item in editObj.template_inspection_content">
80
-                    <p style="font-weight: bold;margin: 10px 0;">{{ item.project_name }}</p>
94
+                    <p style="font-weight: bold;margin: 10px 0;">{{ item.project_name }} 检查日期:{{getTime(item.arr[0].inspect_date)}}</p>
81 95
                     <div style="display:flex;flex-wrap: wrap;">
82
-                      <div v-for="it in item.arr" style="width:33%;">
83
-                        {{ it.item_name }} {{ it.inspect_value }}
96
+                      <div v-for="it in item.arr" style="width:33%;margin-bottom:5px;">
97
+                        {{ it.item_name }} <span v-if="it.unit!=''">[{{it.unit}}]</span>:
98
+                        <span v-if="parseInt(it.inspect_value) < parseInt(it.range_min)">
99
+                            {{it.inspect_value}}↓
100
+                          </span> 
101
+                          <span v-if="parseInt(it.inspect_value) > parseInt(it.range_max)">
102
+                            {{it.inspect_value}}↑
103
+                        </span> 
84 104
                       </div>
85 105
                     </div>
86 106
                   </div>
87 107
                   </div>
88 108
                 </div>  
89
-                <!-- <el-divider></el-divider> -->
109
+               
90 110
                 <div style="padding:10px;line-height:20px;">阶段小结个体化透析方案:{{editObj.template_plan_content}}</div>
91 111
               </div>
92 112
             </el-col>
@@ -110,9 +130,10 @@
110 130
                   <el-col :span="8">
111 131
                     <el-form-item label="阶段小结时间:">
112 132
                         <el-date-picker
133
+                            @change="changeStartYear"
113 134
                             v-model="form.start_year"
114 135
                             type="year"
115
-                            value-format="yyyy-MM-dd"
136
+                            value-format="yyyy"
116 137
                             placeholder="选择年">
117 138
                         </el-date-picker>
118 139
                     </el-form-item> 
@@ -128,7 +149,16 @@
128 149
                   
129 150
                   <el-col :span="8" v-if="form.radio == 1">
130 151
                     <el-form-item>
152
+                       <!-- <el-select v-model="form.start_month" placeholder="请选择" @change="changeStartMonth">
153
+                        <el-option
154
+                          v-for="item in monthType"
155
+                          :key="item.id"
156
+                          :label="item.name"
157
+                          :value="item.id">
158
+                        </el-option>
159
+                      </el-select> -->
131 160
                       <el-date-picker
161
+                        @change="changeStartMonth"
132 162
                         value-format="MM"
133 163
                         v-model="form.start_month"
134 164
                         type="month"
@@ -138,7 +168,7 @@
138 168
                   </el-col>
139 169
                   <el-col :span="8" v-if="form.radio == 2">
140 170
                     <el-form-item>
141
-                       <el-select v-model="form.quarter" placeholder="请选择">
171
+                       <el-select v-model="form.quarter" placeholder="请选择" @change="changeQuarter">
142 172
                         <el-option
143 173
                           v-for="item in timeType"
144 174
                           :key="item.id"
@@ -204,7 +234,7 @@
204 234
 
205 235
                     <el-col :span="8">
206 236
                      <el-form-item label="抗凝剂">
207
-                      <!-- <el-input v-model="form.anticoagulant"></el-input> -->
237
+                    
208 238
                        <el-select v-model="form.anticoagulant" placeholder="请选择" style="width:100%;">
209 239
                           <el-option :key="0" label="请选择" :value="0"></el-option>
210 240
                           <el-option v-for="(item, index) in anticoagulantList" :label="item.name" :key="index + 'e'"
@@ -296,13 +326,19 @@
296 326
                   <el-row>
297 327
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
298 328
                     <el-button type="primary" @click="toInspection">选择检验检查</el-button>
299
-                     <!-- <el-input style="margin:10px 0;" type="textarea" v-model="form.template_inspection_content"></el-input> -->
329
+                
300 330
                      <div class="borderBox">
301 331
                        <div v-for="item in form.template_inspection_content">
302 332
                         <p>{{ item.project_name }}</p>
303 333
                         <div style="display:flex;flex-wrap: wrap;">
304 334
                           <div v-for="it in item.arr" style="width:33%;">
305
-                            {{ it.item_name }} {{ it.inspect_value }}
335
+                           {{ it.item_name }} <span v-if="it.unit!=''"> [{{it.unit}}] </span>:
336
+                             <span v-if="parseInt(it.inspect_value) < parseInt(it.range_min)">
337
+                             {{it.inspect_value}}↓
338
+                           </span> 
339
+                           <span v-if="parseInt(it.inspect_value) > parseInt(it.range_max)">
340
+                             {{it.inspect_value}}↑
341
+                          </span> 
306 342
                           </div>
307 343
                         </div>
308 344
                       </div>
@@ -552,13 +588,19 @@
552 588
                         <p>{{ item.project_name }}</p>
553 589
                         <div style="display:flex;flex-wrap: wrap;">
554 590
                           <div v-for="it in item.arr" style="width:33%;">
555
-                            {{ it.item_name }} {{ it.inspect_value }}
591
+                            {{ it.item_name }} <span v-if="it.unit!=''"> [{{it.unit}}] </span>:
592
+                             <span v-if="parseInt(it.inspect_value) < parseInt(it.range_min)">
593
+                             {{it.inspect_value}}↓
594
+                           </span> 
595
+                           <span v-if="parseInt(it.inspect_value) > parseInt(it.range_max)">
596
+                             {{it.inspect_value}}↑
597
+                          </span> 
556 598
                           </div>
557 599
                         </div>
558 600
                       </div>
559 601
                      </div>
560 602
                   </el-row>
561
-                  <el-row>
603
+                  <el-row style="margin-top:10px;">
562 604
                     <el-col :span="8">
563 605
                       <el-form-item label="记录医生">
564 606
                         <el-select v-model="form.admin_user_id" placeholder="请选择">
@@ -604,11 +646,12 @@
604 646
                 <span>选择检验检查时间:</span>
605 647
                 <div>
606 648
                   <el-form-item
607
-                   label="年份:"
649
+                   label="时间:"
608 650
                    prop="startYear"
609 651
                    style="width:100%;"
610 652
                  >
611 653
                  <el-date-picker 
654
+                    @change="changeYear"
612 655
                     v-model="startYear" 
613 656
                     class="timePicker" 
614 657
                     type="month" 
@@ -640,14 +683,17 @@
640 683
                           backgroundColor: 'rgb(245, 247, 250)',
641 684
                           color: '#606266'
642 685
                         }"
643
-                        :row-style="{ color: '#303133' }" :data="tableList"
644
-                                border highlight-current-row @current-change="changeCurrentRecord"
645
-                                @selection-change="selectionChangeOne"
646
-                                :row-class-name="tableRow"
647
-                                @row-click="onRowClick"
648
-                                ref="single_table"
686
+                        :row-style="{ color: '#303133' }"
687
+                        ref="single_table"
688
+                        :data="tableList"
689
+                        border highlight-current-row 
690
+                        @current-change="changeCurrentRecord"
691
+                        @selection-change="selectionChangeOne"
692
+                        :row-class-name="tableRow"
693
+                        @row-click="onRowClick"
694
+                      
649 695
                       >
650
-                        <el-table-column type="selection" width="40" align="center"></el-table-column>
696
+                        <el-table-column type="selection" width="60" align="center"></el-table-column>
651 697
                         <el-table-column label="检验项目" align="center">
652 698
                           <template slot-scope="scope">
653 699
                             {{scope.row.project_name}}
@@ -674,6 +720,7 @@
674 720
                         </el-table-column>
675 721
                         <el-table-column label="结果" align="center">
676 722
                           <template slot-scope="scope">
723
+                            {{scope.row.project_name}} <span v-if="scope.row.unit!=''">[{{scope.row.unit}}]</span>
677 724
                            <span v-if="parseInt(scope.row.inspect_value) < parseInt(scope.row.range_min)">
678 725
                              {{scope.row.inspect_value}}↓
679 726
                           </span> 
@@ -733,6 +780,7 @@
733 780
   import { getDataConfig } from '@/utils/data'
734 781
   import multiSelectBox from '../dialysis/details/dialog/MultiSelectBox'
735 782
  import MsgTip from '../dialysis/details/dialog/MsgTip'
783
+ 
736 784
   const moment = require('moment')
737 785
   export default {
738 786
     name: 'templateSummary',
@@ -795,7 +843,7 @@
795 843
           kalium:"",
796 844
           autunite:"",
797 845
           natrium:"",
798
-          houer:"",
846
+          hour:"",
799 847
           minute:"",
800 848
           befor_weight:"",
801 849
           after_weight:"",
@@ -819,14 +867,28 @@
819 867
           {id:3,name:"第三季度"},
820 868
           {id:4,name:"第四季度"},
821 869
         ],
870
+        monthType:[
871
+          {id:1,name:"一月"},
872
+          {id:2,name:"二月"},
873
+          {id:3,name:"三月"},
874
+          {id:4,name:"四月"},
875
+          {id:5,name:"五月"},
876
+          {id:6,name:"六月"},
877
+          {id:7,name:"七月"},
878
+          {id:8,name:"八月"},
879
+          {id:9,name:"九月"},
880
+          {id:10,name:"十月"},
881
+          {id:11,name:"十一月"},
882
+          {id:12,name:"十二月"},
883
+        ],
822 884
         options:[],
823 885
         dialogVisibleInspection:false,
824 886
         editDialogVisible:false,
825 887
         edit_show_dialog:false,
826 888
         InspectionMajor:[],
827 889
         other_start_time:"",
828
-        startYear:new Date(),
829
-        startMonth:(new Date().getMonth+1).toString(),
890
+        startYear:moment(new Date()).endOf('month').subtract('month', +1).endOf('month').format("YYYY-MM-DD") ,
891
+        // startMonth:(new Date().getMonth - 1).toString(),
830 892
         tableList:[],
831 893
         tableData:[],
832 894
         inspectDataList:[],
@@ -842,6 +904,12 @@
842 904
         stockType:[],
843 905
         summaryList:[],
844 906
         planList:[],
907
+        projectStr:"",
908
+        projectIndate:"",
909
+        start_year:"2021",
910
+        start_month:"",
911
+        start_date: moment(new Date()).startOf("month").format("YYYY-MM-DD"),
912
+        end_date: moment(new Date()).endOf('month').format("YYYY-MM-DD"),
845 913
       }
846 914
     },
847 915
     created() {
@@ -852,6 +920,7 @@
852 920
       var nowDate = new Date()
853 921
       var nowYear = nowDate.getFullYear()
854 922
       var nowMonth = nowDate.getMonth() + 1
923
+      
855 924
       var nowDay = nowDate.getDate()
856 925
       this.end_time =
857 926
         nowYear +
@@ -880,21 +949,31 @@
880 949
 
881 950
       this.anticoagulantList = arrFour
882 951
       console.log("抗凝剂量",this.anticoagulantList)
883
-  
952
+      var endtime= moment(new Date()).endOf('month').subtract('month', +1).endOf('month').format("YYYY-MM-DD") 
953
+      console.log("endtime",endtime)
884 954
       this.getlist()
885 955
       this.getInspectionMajor()
886 956
       this.getTemplateSummaryList()
887 957
      
888 958
     },
889 959
     methods: {
890
-      getTime(val) {
960
+    getTime(value, temp) {
961
+      if (value == 0) {
962
+        return ''
963
+      }
964
+      if (value != undefined) {
965
+        return uParseTime(value, temp)
966
+      }
967
+      return ''
968
+    },
969
+      getTimeOne(val) {
891 970
          if(val < 0){
892 971
            return ""
893 972
          }
894 973
          if(val == ""){
895 974
           return ""
896 975
          }else {
897
-          return uParseTime(val, '{y}-{m}-{d}')
976
+          return uParseTime(val, '{m}')
898 977
          }
899 978
       },
900 979
       showEdit(){
@@ -911,18 +990,21 @@
911 990
 
912 991
       },
913 992
       changeCurrentRecord(val){
993
+       
914 994
         this.getInspectionDetai(val)
915 995
       },
916 996
       selectionChangeOne(val){
917
-        console.log("val23232323",val)
918
-       
997
+        // console.log("hhhhhhhhh",val)
919 998
         this.getInspectionItemList(val)
920 999
       },
921
-      startTimeChange(){
922
-
1000
+      startTimeChange(val){
1001
+       console.log("val",val)
1002
+       this.start_time = val
1003
+       this.getTemplateSummaryList()
923 1004
       },
924
-      endTimeChange(){
925
-
1005
+      endTimeChange(val){
1006
+       this.end_time = val
1007
+       this.getTemplateSummaryList()
926 1008
       },
927 1009
       print(){
928 1010
         this.$router.push({path:"/patient/patient/templateSummary/print?id="+this.form.id})
@@ -935,25 +1017,6 @@
935 1017
         if(quarter == 1){
936 1018
            
937 1019
         }
938
-
939
-        // DateTime dt = new DateTime();
940
-        // switch (quarter)
941
-        // {
942
-        //     case "第一季度":
943
-        //         dt = new DateTime(year, 1, 1);
944
-        //         break;
945
-        //     case "第二季度":
946
-        //         dt = new DateTime(year, 4, 1);         
947
-        //         break;
948
-        //     case "第三季度":
949
-        //         dt = new DateTime(year, 7, 1);           
950
-        //         break;
951
-        //     case "第四季度":
952
-        //         dt = new DateTime(year, 10, 1);             
953
-        //         break;
954
-
955
-        // }
956
-
957 1020
       },
958 1021
       didSelectionChange(){
959 1022
 
@@ -971,14 +1034,14 @@
971 1034
           start_month:this.getTime(this.form.start_month),
972 1035
           quarter:this.form.quarter,
973 1036
           patient_id:this.patient_id,
1037
+          start_time:this.start_date,
1038
+          end_time:this.end_date,
974 1039
         }
975
-        console.log("param222222",params)
1040
+        console.log("世纪时间",params)
976 1041
         console.log(moment(moment(2020 + '-01-01').toDate()).quarter(2).format("YYYY-MM-DD"))
977 1042
         getInitDataList(params).then(response=>{
978 1043
           if(response.data.state == 1){
979 1044
              var prescription_list =  response.data.data.prescription_list
980
-             console.log("prescription_list",prescription_list)
981
-           
982 1045
              this.form.dialzer_apparatus = prescription_list.dialysis_dialyszers
983 1046
              this.form.perfusion_apparatus = prescription_list.dialysis_irrigation
984 1047
              this.form.anticoagulant = prescription_list.anticoagulant
@@ -988,17 +1051,18 @@
988 1051
              this.form.natrium = prescription_list.sodium
989 1052
              this.form.autunite = prescription_list.calcium
990 1053
              var beforlist = response.data.data.beforlist
991
-             console.log("beforlist",beforlist)
992
-             this.form.befor_weight = beforlist.befor_weight
1054
+             console.log("透前数据565665565656",beforlist)
1055
+             this.form.befor_weight = beforlist.weight_before
993 1056
              this.form.dry_weight = beforlist.dry_weight
994 1057
              var afterlist =  response.data.data.after_list
995
-             console.log("afterlist",afterlist)
1058
+             console.log("透后数据232332323232",afterlist)
996 1059
              this.form.after_weight = afterlist.weight_after
997 1060
              this.form.after_pressure = afterlist.systolic_blood_pressure + "/"+afterlist.diastolic_blood_pressure
998 1061
              this.form.befor_pressure = beforlist.systolic_blood_pressure +"/"+beforlist.diastolic_blood_pressure
999 1062
              var modelist = response.data.data.modelist
1063
+             console.log("modelist",modelist)
1000 1064
              var docList = response.data.data.docList
1001
-             console.log("doctlist",docList)
1065
+            //  console.log("doctlist",docList)
1002 1066
              this.docList = docList
1003 1067
              var stockType = response.data.data.stockType
1004 1068
              var arr = []
@@ -1019,15 +1083,15 @@
1019 1083
               }
1020 1084
             }
1021 1085
             this.dialyzerList = dialyzator
1022
-            console.log("arrtt2323232332232323",arrTwo)
1086
+            // console.log("arrtt2323232332232323",arrTwo)
1023 1087
             for(let i=0;i<arrTwo.length;i++){
1024 1088
               for(let j=0;j<arrTwo[i].GoodInfo.length;j++){
1025 1089
                   irrigation.push(arrTwo[i].GoodInfo[j])
1026 1090
               }
1027 1091
             }
1028 1092
             this.irrigationList = irrigation
1029
-            console.log("透析器233223",this.dialyzerList)
1030
-            console.log("灌流器323323223",this.irrigationList)
1093
+            // console.log("透析器233223",this.dialyzerList)
1094
+            // console.log("灌流器323323223",this.irrigationList)
1031 1095
              var count = ""
1032 1096
              var total_count = 0
1033 1097
              for(let i=0;i<modelist.length;i++){
@@ -1048,13 +1112,14 @@
1048 1112
 
1049 1113
              }
1050 1114
              this.form.other_count = count
1115
+             
1051 1116
              this.form.dialysis_count = total_count
1052
-             console.log("modelist",modelist)
1117
+            //  console.log("modelist",modelist)
1053 1118
              var summaryList = response.data.data.summaryList
1054
-             console.log("summaryList",summaryList)
1119
+            //  console.log("summaryList",summaryList)
1055 1120
              this.summaryList = summaryList
1056 1121
              var planList = response.data.data.planList
1057
-             console.log("planlist",planList)
1122
+            //  console.log("planlist",planList)
1058 1123
              this.planList = planList
1059 1124
           }
1060 1125
        })
@@ -1066,17 +1131,19 @@
1066 1131
 
1067 1132
       //获取大项数据来源
1068 1133
       getInspectionMajor(){
1134
+          console.log("start_year",this.startYear)
1069 1135
           var params = {
1070
-            other_start_time:this.getTime(this.startYear),
1136
+            other_start_time:this.startYear,
1071 1137
             patient_id:this.patient_id,
1072 1138
           }
1073
-        console.log("params",params)
1139
+         console.log("开始数据",params)
1074 1140
         getInspectionMajorItem(params).then(response=>{
1075 1141
           if(response.data.state == 1){
1076 1142
             var list = response.data.data.list
1077
-            console.log("list23232323",list)
1143
+            console.log("列表23232232323",list)
1144
+            // this.$refs.single_table.setCurrentRow(list[0])
1078 1145
             this.tableList = list
1079
-            // this.$refs.single_table.setCurrentRow(this.tableList[0])
1146
+           
1080 1147
           }
1081 1148
         })
1082 1149
       },
@@ -1087,23 +1154,24 @@
1087 1154
           patient_id:val.patient_id,
1088 1155
           inspect_date:val.inspect_date,
1089 1156
         }
1090
-        console.log("param2233233223",params)
1157
+        // console.log("param2233233223",params)
1091 1158
        getInspectionDetail(params).then(response=>{
1092 1159
           if(response.data.state ==1){
1093 1160
             var list = response.data.data.list
1094
-            console.log("详情222",list)
1161
+            // console.log("详情222",list)
1162
+           
1095 1163
             this.tableData = list
1096 1164
           }
1097 1165
        })
1098 1166
       },
1099 1167
       selectionChange(val){
1100
-        console.log("val233223",val)
1168
+        // console.log("val233223",val)
1101 1169
         selectionChange().then(response=>{
1102 1170
 
1103 1171
         })
1104 1172
       },
1105 1173
       getInspectionItemList(val){
1106
-       
1174
+        // console.log("中国龚23232323232332",val)
1107 1175
        for(let i=0;i<val.length;i++){
1108 1176
         this.projectList.push(val[i].project_id)
1109 1177
         this.inspectDataList.push(val[i].inspect_date)
@@ -1113,23 +1181,20 @@
1113 1181
       toContent(){
1114 1182
       
1115 1183
          var str = this.projectList.join(",")
1184
+         this.projectStr = str
1116 1185
          var inspe_date = this.inspectDataList.join(",")
1186
+         this.projectIndate = inspe_date
1117 1187
          var params = {
1118 1188
            ids:str,
1119 1189
            inspect_date:inspe_date,
1120 1190
            patient_id:this.patient_id,
1121 1191
          }
1122
-         console.log("params",params)
1192
+        //  console.log("params",params)
1123 1193
         getInspectionItemList(params).then(response=>{
1124 1194
            if(response.data.state == 1){
1125 1195
              var list = response.data.data.list
1126
-             
1127
-            //  var str = ""
1128
-            //  for(let i=0;i<list.length;i++){
1129
-            //    str += (list[i].item_name + ":" + list[i].inspect_value+"<br>")
1130
-            //  }
1131 1196
             let arr = this.unique(list,'project_name')
1132
-            console.log("选择检验检查",arr)
1197
+            // console.log("选择检验检查",arr)
1133 1198
            
1134 1199
             this.form.template_inspection_content = arr
1135 1200
             this.dialogVisibleInspection = false
@@ -1139,10 +1204,56 @@
1139 1204
         })  
1140 1205
       },
1141 1206
       saveCreation(){
1142
-        console.log("hh2h32232332",this.form.title)
1207
+   
1208
+        if (this.form.dry_weight == ""){
1209
+          this.form.dry_weight = 0
1210
+        }
1211
+        if (this.form.dialysis_count == ""){
1212
+          this.form.dialysis_count = 0
1213
+        }
1214
+        if (this.form.hd_count == ""){
1215
+          this.form.hd_count = 0
1216
+        }
1217
+        if (this.form.hdf_count == ""){
1218
+          this.form.hdf_count = 0
1219
+        }
1220
+       if (this.form.hp_count == ""){
1221
+          this.form.hp_count = 0
1222
+        }
1223
+        if (this.form.other_count == ""){
1224
+          this.form.other_count = 0
1225
+        }
1226
+        if (this.form.kalium == ""){
1227
+          this.form.kalium = 0
1228
+        }
1229
+        if (this.form.autunite == ""){
1230
+          this.form.autunite = 0
1231
+        }
1232
+       if (this.form.natrium == ""){
1233
+          this.form.natrium = 0
1234
+        }
1235
+        if (this.form.hour == ""){
1236
+          this.form.hour = 0
1237
+        }
1238
+        if (this.form.minute == ""){
1239
+          this.form.minute = 0
1240
+        }
1241
+        if(this.form.befor_weight == ""){
1242
+          this.form.befor_weight = 0
1243
+        }
1244
+        if(this.form.after_weight == ""){
1245
+          this.form.after_weight = 0
1246
+        }
1247
+        if(this.form.befor_pressure == ""){
1248
+          this.form.befor_pressure = 0
1249
+        }
1250
+        var year = this.form.start_year+"-"+"01"+"-"+"01"
1251
+        console.log("年",year)
1252
+        var month = this.form.start_year+"-"+this.form.start_month+"-"+"01"
1253
+        console.log("月",month)
1143 1254
          var params = {
1144 1255
             title:this.form.title,
1145
-            dry_weight:parseInt(this.form.dry_weight),
1256
+            dry_weight:this.form.dry_weight.toString(),
1146 1257
             dialysis_count:parseInt(this.form.dialysis_count),
1147 1258
             hd_count:parseInt(this.form.hd_count),
1148 1259
             hdf_count:parseInt(this.form.hdf_count),
@@ -1151,31 +1262,38 @@
1151 1262
             dialzer_apparatus:this.form.dialzer_apparatus,
1152 1263
             perfusion_apparatus:this.form.perfusion_apparatus,
1153 1264
             anticoagulant:this.form.anticoagulant,
1154
-            kalium:parseInt(this.form.kalium),
1155
-            autunite:parseInt(this.form.autunite),
1156
-            natrium:parseInt(this.form.natrium),
1265
+            kalium:this.form.kalium.toString(),
1266
+            autunite:this.form.autunite.toString(),
1267
+            natrium:this.form.natrium.toString(),
1157 1268
             hour:parseInt(this.form.hour),
1158 1269
             minute:parseInt(this.form.minute),
1159
-            befor_weight:parseInt(this.form.befor_weight),
1160
-            after_weight:parseInt(this.form.after_weight),
1161
-            befor_pressure:parseInt(this.form.befor_pressure),
1270
+            befor_weight:this.form.befor_weight.toString(),
1271
+            after_weight:this.form.after_weight.toString(),
1272
+            befor_pressure:this.form.befor_pressure,
1162 1273
             template_summary_content:this.form.template_summary_content,
1163 1274
             template_plan_content:this.form.template_plan_content,
1164
-            template_inspection_content:this.form.template_inspection_content,
1275
+            // template_inspection_content:JSON.stringify(this.form.template_inspection_content),
1165 1276
             admin_user_id:this.form.admin_user_id,
1166
-            record_time:this.form.record_time,
1277
+            record_time:this.getTime(this.form.record_time),
1167 1278
             after_pressure:this.form.after_pressure,
1168 1279
             template_summary_id:this.form.template_summary_id,
1169 1280
             template_summary_content:this.form.template_summary_content,
1170 1281
             template_plan_id:this.form.template_plan_id,
1171 1282
             template_inspection_id:this.form.template_inspection_id,
1172
-            patient_id:this.patient_id,
1283
+            patient_id:parseInt(this.patient_id),
1284
+            project_id:this.projectStr,
1285
+            inspect_date:this.projectIndate,
1286
+            start_year:year,
1287
+            start_month:month,
1288
+            radio:this.form.radio,
1173 1289
          }
1174
-         console.log("parawm232323223",params)
1290
+          console.log("parawm232323223",params)
1291
+        
1175 1292
         saveCreation(params).then(response=>{
1176 1293
            if(response.data.state ==1){
1177 1294
              var summary =  response.data.data.summary
1178
-             console.log("summary",summary)
1295
+            //  console.log("summary",summary)
1296
+             this.getTemplateSummaryList()
1179 1297
              this.$message.success("保存成功!");
1180 1298
              this.show_dialog = false
1181 1299
              this.form.title = ""
@@ -1210,8 +1328,11 @@
1210 1328
       },
1211 1329
       getTemplateSummaryList(){
1212 1330
           var params = {
1213
-            patient_id:this.patient_id
1331
+            patient_id:this.patient_id,
1332
+            start_time:this.start_time,
1333
+            end_time:this.end_time,
1214 1334
           }
1335
+        console.log("param2222",params)
1215 1336
         getTemplateSummaryList(params).then(response=>{
1216 1337
            if(response.data.state ==1){
1217 1338
               var list = response.data.data.list
@@ -1228,8 +1349,10 @@
1228 1349
          getTemplateSummaryDetail(params).then(response=>{
1229 1350
            if(response.data.state == 1){
1230 1351
               var list = response.data.data.list
1231
-              console.log("🔎3232322323232332",list)
1232
-              let arr = list.template_inspection_content ? JSON.parse(list.template_inspection_content) : []
1352
+              var inspectlist = response.data.data.inspectlist
1353
+              console.log("inspectlist2322332",list)
1354
+              let arr = this.unique(inspectlist,'project_name')
1355
+              console.log("hhh23h2323223223232323",arr)
1233 1356
               list.template_inspection_content = arr
1234 1357
               this.editObj = list
1235 1358
 
@@ -1293,7 +1416,9 @@
1293 1416
          getTemplateSummaryDetail(params).then(response=>{
1294 1417
            if(response.data.state == 1){
1295 1418
               var list = response.data.data.list
1296
-              console.log("详情22333223",list)
1419
+              var inspectlist =  response.data.data.inspectlist
1420
+              let arr = this.unique(inspectlist,'project_name')
1421
+              this.form.template_inspection_content = arr
1297 1422
               this.edit_show_dialog = true
1298 1423
               this.form.title = list.title
1299 1424
               this.form.id = list.id
@@ -1316,11 +1441,12 @@
1316 1441
                this.form.natrium =list.natrium
1317 1442
                this.form.perfusion_apparatus= list.perfusion_apparatus
1318 1443
                this.form.record_time = this.getTime(list.record_time)
1319
-               this.form.template_inspection_content = list.template_inspection_content
1320 1444
                this.form.template_inspection_id = list.template_inspection_id
1321 1445
                this.form.template_plan_content = list.template_plan_content
1322 1446
                this.form.template_summary_content =list.template_summary_content
1323 1447
                this.form.template_summary_id = list.template_summary_id
1448
+               this.projectIndate = list.inspect_date
1449
+               this.projectStr = list.project_id
1324 1450
            }
1325 1451
         })  
1326 1452
       },
@@ -1349,7 +1475,7 @@
1349 1475
         var params = {
1350 1476
             id:this.form.id,
1351 1477
             title:this.form.title,
1352
-            dry_weight:parseInt(this.form.dry_weight),
1478
+            dry_weight:this.form.dry_weight.toString(),
1353 1479
             dialysis_count:parseInt(this.form.dialysis_count),
1354 1480
             hd_count:parseInt(this.form.hd_count),
1355 1481
             hdf_count:parseInt(this.form.hdf_count),
@@ -1358,28 +1484,28 @@
1358 1484
             dialzer_apparatus:this.form.dialzer_apparatus,
1359 1485
             perfusion_apparatus:this.form.perfusion_apparatus,
1360 1486
             anticoagulant:this.form.anticoagulant,
1361
-            kalium:parseInt(this.form.kalium),
1362
-            autunite:parseInt(this.form.autunite),
1363
-            natrium:parseInt(this.form.natrium),
1487
+            kalium:this.form.kalium.toString(),
1488
+            autunite:this.form.autunite.toString(),
1489
+            natrium:this.form.natrium.toString(),
1364 1490
             hour:parseInt(this.form.hour),
1365 1491
             minute:parseInt(this.form.minute),
1366
-            befor_weight:parseInt(this.form.befor_weight),
1367
-            after_weight:parseInt(this.form.after_weight),
1368
-            befor_pressure:parseInt(this.form.befor_pressure),
1492
+            befor_weight:this.form.befor_weight.toString(),
1493
+            after_weight:this.form.after_weight.toString(),
1494
+            befor_pressure:this.form.befor_pressure,
1369 1495
             template_summary_content:this.form.template_summary_content,
1370 1496
             template_plan_content:this.form.template_plan_content,
1371
-            template_inspection_content:JSON.stringify(this.form.template_inspection_content),
1372 1497
             admin_user_id:this.form.admin_user_id,
1373 1498
             record_time:this.form.record_time,
1374 1499
             after_pressure:this.form.after_pressure,
1375 1500
             template_summary_id:this.form.template_summary_id,
1376
-            template_summary_content:this.form.template_summary_content,
1377 1501
             template_plan_id:this.form.template_plan_id,
1378 1502
             template_inspection_id:this.form.template_inspection_id,
1379
-            patient_id:this.patient_id,
1503
+            patient_id:parseInt(this.patient_id),
1504
+            project_id:this.projectStr,
1505
+            inspect_date:this.projectIndate,
1380 1506
          }
1381 1507
          console.log("parawm232323223",params)
1382
-
1508
+        
1383 1509
         UpdateTemplateSummary(params).then(response=>{
1384 1510
           if(response.data.state == 1){
1385 1511
             var list = response.data.data.list
@@ -1392,9 +1518,7 @@
1392 1518
         let lastData = [];
1393 1519
         data.forEach(item => {
1394 1520
           let status = lastData.some(project_name => project_name[key] == item[key]);
1395
-          console.log('status',status)
1396 1521
           if (!status) {
1397
-            // item.value0 = item.value;
1398 1522
             let obj = {
1399 1523
               project_name:'',
1400 1524
               arr:[]
@@ -1402,18 +1526,161 @@
1402 1526
             obj.project_name = item.project_name
1403 1527
             obj.arr.push(item);
1404 1528
             lastData.push(obj);
1405
-            console.log('item',item)
1406 1529
           } else {
1407 1530
             lastData.forEach((project_name, index) => {
1408 1531
               if (project_name[key] === item[key]) {
1409
-                console.log('item222',item)
1410 1532
                 project_name.arr.push(item);
1411 1533
               }
1412 1534
             });
1413 1535
           }
1414 1536
         });
1415 1537
         return lastData;
1538
+      },
1539
+      getDoctor(id){
1540
+        var user_name = ""
1541
+        for(let i=0;i<this.docList.length;i++){
1542
+          if(id == this.docList[i].admin_user_id){
1543
+             user_name = this.docList[i].user_name
1544
+          }
1545
+        }
1546
+        return user_name
1547
+      },
1548
+      changeStartYear(){
1549
+        this.form.title = ""
1550
+        this.form.dry_weight = ""
1551
+        this.form.dialysis_count =""
1552
+        this.form.hd_count= ""
1553
+        this.form.hdf_count = ""
1554
+        this.form.hp_count = ""
1555
+        this.form.other_count =""
1556
+        this.form.dialzer_apparatus = ""
1557
+        this.form.perfusion_apparatus = ""
1558
+        this.form.anticoagulant  = ""
1559
+        this.form.kalium = ""
1560
+        this.form.autunite = ""
1561
+        this.form.natrium = ""
1562
+        this.form.hour =""
1563
+        this.form.minute = ""
1564
+        this.form.befor_weight = ""
1565
+        this.form.after_weight = ""
1566
+        this.form.befor_pressure = ""
1567
+        this.form.template_summary_content = ""
1568
+        this.form.template_plan_content = ""
1569
+        this.form.template_inspection_content = ""
1570
+        this.form.admin_user_id = ""
1571
+        this.form.record_time = ""
1572
+        this.from.after_pressure = ""
1573
+        this.form.template_summary_id = ""
1574
+        this.form.template_plan_id = ""
1575
+        this.form.template_inspection_id = ""
1576
+        this.start_year = this.form.start_year
1577
+        console.log("年份",this.form.start_year)
1578
+        console.log("月份",this.getTimeOne(this.form.start_month))
1579
+        var start = this.form.start_year + "-" + this.getTimeOne(this.form.start_month) + "-"+"01"
1580
+        var end = this.form.start_year + "-" + this.getTimeOne(this.form.start_month) + "-"+"30"
1581
+        this.start_date = start
1582
+        this.end_date = end
1583
+        this.getlist()
1584
+      },
1585
+      changeStartMonth(){
1586
+        this.form.title = ""
1587
+        this.form.dry_weight = ""
1588
+        this.form.dialysis_count =""
1589
+        this.form.hd_count= ""
1590
+        this.form.hdf_count = ""
1591
+        this.form.hp_count = ""
1592
+        this.form.other_count =""
1593
+        this.form.dialzer_apparatus = ""
1594
+        this.form.perfusion_apparatus = ""
1595
+        this.form.anticoagulant  = ""
1596
+        this.form.kalium = ""
1597
+        this.form.autunite = ""
1598
+        this.form.natrium = ""
1599
+        this.form.hour =""
1600
+        this.form.minute = ""
1601
+        this.form.befor_weight = ""
1602
+        this.form.after_weight = ""
1603
+        this.form.befor_pressure = ""
1604
+        this.form.template_summary_content = ""
1605
+        this.form.template_plan_content = ""
1606
+        this.form.template_inspection_content = ""
1607
+        this.form.admin_user_id = ""
1608
+        this.form.record_time = ""
1609
+        this.from.after_pressure = ""
1610
+        this.form.template_summary_id = ""
1611
+        this.form.template_plan_id = ""
1612
+        this.form.template_inspection_id = ""
1613
+        var start = this.start_year +"-"+ this.form.start_month+"-"+"01"
1614
+        var end = this.start_year +"-"+ this.form.start_month + "-"+"30"
1615
+        this.start_date  = start
1616
+        this.end_date = end 
1617
+        console.log("开始时间",this.start_date)
1618
+        console.log("结束时间",this.end_date)
1619
+        this.getlist()
1620
+       
1621
+      },
1622
+      changeQuarter(val){
1623
+        this.form.title = ""
1624
+        this.form.dry_weight = ""
1625
+        this.form.dialysis_count =""
1626
+        this.form.hd_count= ""
1627
+        this.form.hdf_count = ""
1628
+        this.form.hp_count = ""
1629
+        this.form.other_count =""
1630
+        this.form.dialzer_apparatus = ""
1631
+        this.form.perfusion_apparatus = ""
1632
+        this.form.anticoagulant  = ""
1633
+        this.form.kalium = ""
1634
+        this.form.autunite = ""
1635
+        this.form.natrium = ""
1636
+        this.form.hour =""
1637
+        this.form.minute = ""
1638
+        this.form.befor_weight = ""
1639
+        this.form.after_weight = ""
1640
+        this.form.befor_pressure = ""
1641
+        this.form.template_summary_content = ""
1642
+        this.form.template_plan_content = ""
1643
+        this.form.template_inspection_content = ""
1644
+        this.form.admin_user_id = ""
1645
+        this.form.record_time = ""
1646
+        this.from.after_pressure = ""
1647
+        this.form.template_summary_id = ""
1648
+        this.form.template_plan_id = ""
1649
+        this.form.template_inspection_id = ""
1650
+        if(val == 1){
1651
+          this.start_date = this.start_year+"-"+"01"+"-"+"01"
1652
+          this.end_date = this.start_year +"-"+"03"+"-"+"31"
1653
+        }
1654
+        if(val == 2){
1655
+          this.start_date = this.start_year +"-"+ "04"+"-"+"01"
1656
+          this.end_date = this.start_year +"-"+ "06"+"-"+"30"
1657
+        }
1658
+        if(val == 3){
1659
+          this.start_date = this.start_year +"-"+ "07"+"-"+"01"
1660
+          this.end_date = this.start_year +"-"+ "09"+"-"+"30"
1661
+        }
1662
+        if(val == 4){
1663
+          this.start_date = this.start_year +"-"+ "09"+"-"+"01"
1664
+          this.end_date = this.start_year +"-"+ "12"+"-"+"31"
1665
+        }
1666
+        this.getlist()
1667
+      },
1668
+      getAnticoagulant(id){
1669
+        
1670
+        var name = ""
1671
+        for(let i=0;i<this.anticoagulantList.length;i++){
1672
+          if(id == this.anticoagulantList[i].id){
1673
+              name = this.anticoagulantList[i].name
1674
+          }
1675
+        }
1676
+        return name
1677
+      },
1678
+      changeYear(val){
1679
+        console.log("val2323323223",val)
1680
+        this.startYear = val+"-" + "30"
1681
+        this.getInspectionMajor()
1416 1682
       }
1683
+
1417 1684
     },
1418 1685
   //  watch: {
1419 1686
   //   inspectionList: function() {

+ 75 - 20
src/xt_pages/user/templateSummaryPrint.vue 查看文件

@@ -10,12 +10,12 @@
10 10
       
11 11
       <div style="padding-bottom:20px;border-bottom:1px solid #000;margin-top:40px;">
12 12
          <span>姓名:{{patientList.patient.name}}</span>  
13
-         <span>年龄:{{getNewAge(patientList.patient.id_card_no)}}</span>  
14
-         <span>性别:
13
+         <span style="margin-left:20px;">年龄:{{getNewAge(patientList.patient.id_card_no)}}</span>  
14
+         <span style="margin-left:20px;">性别:
15 15
              <span v-if="patientList.patient.gender == 1">男</span>
16 16
              <span v-if="patientList.patient.gender == 2">女</span>
17 17
          </span> 
18
-         <span>诊断:{{patientList.patient.diagnose}}</span> 
18
+         <span style="margin-left:20px;">诊断:{{patientList.patient.diagnose}}</span> 
19 19
       </div>
20 20
       <div style="padding:20px 0;border-bottom:1px solid #000;font-weight:bold;">
21 21
         <span>阶段评估时间:{{getTime(patientList.record_time)}}</span>  
@@ -24,24 +24,24 @@
24 24
         <span style="font-weight:bold;">阶段小结概要:</span>  
25 25
         <div style="margin-top:20px;">
26 26
           <div style="display:flex;justify-content: space-between;">
27
-            <span>干体重:{{patientList.patient.dry_weight}}(kg)</span>  
28
-            <span>共透析:{{patientList.patient.dialysis_count}}</span>  
29
-            <span>HD:{{patientList.hd_count}}</span>  
30
-            <span>HDF:{{patientList.hdf_count}}</span>  
31
-            <span>HP:{{patientList.hp_count}}</span>  
32
-            <span>其他:{{patientList.other_count}}</span> 
27
+            <span>干体重(kg):{{patientList.dry_weight}}</span>  
28
+            <span>共透析:{{patientList.dialysis_count}}</span>  
29
+            <span>HD:{{patientList.hd_count}}</span>  
30
+            <span>HDF:{{patientList.hdf_count}}</span>  
31
+            <span>HP:{{patientList.hp_count}}</span>  
32
+            <span>其他:{{patientList.other_count}}</span> 
33 33
           </div>
34 34
           <div style="display:flex;justify-content: space-between;margin-top:10px;">
35 35
             <span>透析器:{{patientList.dialzer_apparatus}}</span>  
36
-            <span>抗凝剂:{{patientList.anticoagulant}}</span>  
36
+            <span>抗凝剂:{{getAnticoagulant(patientList.anticoagulant)}}</span>  
37 37
             <span>透析液(钾:{{patientList.kalium}} 钙:{{patientList.autunite}} Na:{{patientList.natrium}} ):</span> 
38 38
             <span>每次透析(小时):{{patientList.hour}}时{{patientList.minute}}分</span>
39 39
           </div>
40 40
           <div style="display:flex;justify-content: space-between;margin-top:10px;">
41
-            <span>透前体重:{{patientList.befor_weight}}</span>
42
-            <span>透后体重:{{patientList.after_weight}}</span>
43
-            <span>透前血压:{{patientList.befor_pressure}}</span>
44
-            <span>透后血压:{{patientList.after_pressure}}</span>
41
+            <span>透前体重(kg):{{patientList.befor_weight}}</span>
42
+            <span>透后体重(kg):{{patientList.after_weight}}</span>
43
+            <span>透前血压(mmHg):{{patientList.befor_pressure}}</span>
44
+            <span>透后血压(mmHg):{{patientList.after_pressure}}</span>
45 45
           </div>
46 46
         </div>
47 47
       </div>
@@ -52,10 +52,16 @@
52 52
         <span style="font-weight:bold;">阶段小结化验结果:</span>
53 53
         <div class="borderBox">
54 54
           <div v-for="item in patientList.template_inspection_content">
55
-            <p>{{ item.project_name }}</p>
55
+            <p>{{ item.project_name }} 检查日期:{{getTime(item.arr[0].inspect_date)}}</p>
56 56
             <div style="display:flex;flex-wrap: wrap;">
57
-              <div v-for="it in item.arr" style="width:33%;">
58
-                {{ it.item_name }} {{ it.inspect_value }}
57
+              <div v-for="it in item.arr" style="width:33%;margin-bottom:10px;">
58
+                {{ it.item_name }} <span v-if="it.unit!=''"> [{{it.unit}}] </span>:
59
+                <span v-if="parseInt(it.inspect_value) < parseInt(it.range_min)">
60
+                  {{it.inspect_value}}↓
61
+                </span> 
62
+                <span v-if="parseInt(it.inspect_value) > parseInt(it.range_max)">
63
+                    {{it.inspect_value}}↑
64
+                </span> 
59 65
               </div>
60 66
             </div>
61 67
           </div>
@@ -67,7 +73,7 @@
67 73
       </div>
68 74
      <div style="margin-top:10px;">
69 75
        <span>记录医生:{{getPatientList(patientList.admin_user_id)}}</span>  
70
-       <span>记录时间:{{getTime(patientList.record_time)}}</span>  
76
+       <span style="margin-left:20px;">记录时间:{{getTime(patientList.record_time)}}</span>  
71 77
      </div>
72 78
     </div>
73 79
   </div>
@@ -253,6 +259,7 @@ export default {
253 259
       newTableAdvice: [],
254 260
       patientList:{},
255 261
       doctorList:[],
262
+      anticoagulantList:[],
256 263
     }
257 264
   },
258 265
   methods: {
@@ -309,7 +316,10 @@ export default {
309 316
         if(response.data.state == 1){
310 317
           var list = response.data.data.list
311 318
           console.log("listw23222323",list)
312
-          let arr = JSON.parse(list.template_inspection_content)
319
+          // let arr = JSON.parse(list.template_inspection_content)
320
+          // list.template_inspection_content = arr
321
+          var inspectlist = response.data.data.inspectlist
322
+          let arr = this.unique(inspectlist,'project_name')
313 323
           list.template_inspection_content = arr
314 324
           this.patientList = list
315 325
           var doctorList = response.data.data.doctorList
@@ -350,13 +360,58 @@ export default {
350 360
       }
351 361
       return name
352 362
     },
353
-    
363
+   unique(data, key) {
364
+        let lastData = [];
365
+        data.forEach(item => {
366
+          let status = lastData.some(project_name => project_name[key] == item[key]);
367
+          console.log('status',status)
368
+          if (!status) {
369
+            // item.value0 = item.value;
370
+            let obj = {
371
+              project_name:'',
372
+              arr:[]
373
+            }
374
+            obj.project_name = item.project_name
375
+            obj.arr.push(item);
376
+            lastData.push(obj);
377
+            console.log('item',item)
378
+          } else {
379
+            lastData.forEach((project_name, index) => {
380
+              if (project_name[key] === item[key]) {
381
+                console.log('item222',item)
382
+                project_name.arr.push(item);
383
+              }
384
+            });
385
+          }
386
+        });
387
+        return lastData;
388
+      },
389
+      getAnticoagulant(id){
390
+        
391
+        var name = ""
392
+        for(let i=0;i<this.anticoagulantList.length;i++){
393
+          if(id == this.anticoagulantList[i].id){
394
+              name = this.anticoagulantList[i].name
395
+          }
396
+        }
397
+        return name
398
+      }
354 399
   },
355 400
  
356 401
   created() {
402
+     var anticoagulantsConfitOne = this.$store.getters.anticoagulants_confit
403
+     const arrFour = []
404
+     Object.keys(anticoagulantsConfitOne).map((item, index) => {
405
+     if (index != 2) {
406
+        arrFour.push(anticoagulantsConfitOne[item])
407
+       }
408
+     })
409
+    this.anticoagulantList = arrFour
410
+    console.log("抗凝剂",this.anticoagulantList)
357 411
     var xtuser = this.$store.getters.xt_user
358 412
     this.orgname = xtuser.org.org_name
359 413
     var id = this.$route.query.id
414
+    
360 415
     this.getTemplateSummaryPrintDetail(id)
361 416
     
362 417
   }