XMLWAN пре 2 година
родитељ
комит
45e53aa437

+ 6 - 6
src/router/modules/stock.js Прегледај датотеку

12
     isChild: true
12
     isChild: true
13
   },
13
   },
14
   children: [
14
   children: [
15
-    {
16
-      path: '/stock/query',
17
-      component: () => import('@/xt_pages/stock/stockQuery'),
18
-      name: 'stockQuery',
19
-      meta: { title: 'stockQuery', noCache: true }
20
-    },
15
+    // {
16
+    //   path: '/stock/query',
17
+    //   component: () => import('@/xt_pages/stock/stockQuery'),
18
+    //   name: 'stockQuery',
19
+    //   meta: { title: 'stockQuery', noCache: true }
20
+    // },
21
     {
21
     {
22
       path: '/stock/new/query',
22
       path: '/stock/new/query',
23
       component: () => import('@/xt_pages/stock/stockNewQuery'),
23
       component: () => import('@/xt_pages/stock/stockNewQuery'),

+ 74 - 9
src/xt_pages/dialysis/details/consumable/dialysisGood.vue Прегледај датотеку

131
     >
131
     >
132
     </el-pagination>
132
     </el-pagination>
133
 
133
 
134
-   
134
+    
135
+    <el-dialog
136
+      title="耗材统计表"
137
+      :visible.sync="startDialogVisible"
138
+      width="70%">
139
+      <span>
140
+        <div class="cell clearfix">
141
+          <label class="title"> <span class="name">排班班次</span> : </label>
142
+           <el-select v-model="schedulType" placeholder="请选择">
143
+            <el-option
144
+              v-for="item in schedulArr"
145
+              :key="item.value"
146
+              :label="item.label"
147
+              :value="item.value">
148
+            </el-option>
149
+           </el-select>
150
+           <label class="title"> <span class="name">病区选择</span> : </label>
151
+           <el-select v-model="partitionType" placeholder="请选择">
152
+            <el-option
153
+              v-for="item in partitionArr"
154
+              :key="item.id"
155
+              :label="item.name"
156
+              :value="item.id">
157
+            </el-option>
158
+           </el-select>
159
+        </div> 
160
+       <el-table
161
+        :data="tableList"
162
+        border
163
+        :row-style="{ color: '#303133' }"
164
+        :header-cell-style="{
165
+          backgroundColor: 'rgb(245, 247, 250)',
166
+          color: '#606266'
167
+        }"
168
+      >
169
+         <el-table-column  align="center" width="55" label="序号">
170
+           <template slot-scope="scope">
171
+            
172
+           </template>
173
+        </el-table-column>
174
+        <el-table-column  align="center"  width="55" label="耗材名称">
175
+         <template slot-scope="scope">
176
+           
177
+           </template>
178
+        </el-table-column>
179
+        <el-table-column  align="center"  width="55" label="规格">
180
+           <template slot-scope="scope">
181
+          
182
+           </template>
183
+        </el-table-column>
184
+       
185
+        <el-table-column  align="center"  width="55" label="数量">
186
+           <template slot-scope="scope">
187
+          
188
+           </template>
189
+        </el-table-column>
190
+        
191
+     
192
+
193
+      </el-table>
194
+      </span>
195
+      <span slot="footer" class="dialog-footer">
196
+        <el-button @click="dialogVisible = false">取 消</el-button>
197
+        <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
198
+      </span>
199
+    </el-dialog>
200
+
135
   </div>
201
   </div>
136
 </template>
202
 </template>
137
 
203
 
200
         body_fluid_option:[],
266
         body_fluid_option:[],
201
         displace_liqui_part_option:[],
267
         displace_liqui_part_option:[],
202
         blood_access_option:[],
268
         blood_access_option:[],
203
-        hemodialysisPipelinesOptions:[]
269
+        hemodialysisPipelinesOptions:[],
270
+        startDialogVisible:false,
271
+        tableList:[],
204
       }
272
       }
205
     },
273
     },
206
     created() {
274
     created() {
293
         this.schedulType = scheduleType
361
         this.schedulType = scheduleType
294
         this.query.schedule_type = scheduleType
362
         this.query.schedule_type = scheduleType
295
         this.query.page = 1
363
         this.query.page = 1
296
-        
297
-
364
+        this.getlist()
298
       },
365
       },
299
       selectPartitionType(partitionType) {
366
       selectPartitionType(partitionType) {
300
         this.partitionType = partitionType
367
         this.partitionType = partitionType
301
         this.query.partition_id = partitionType
368
         this.query.partition_id = partitionType
302
         this.query.page = 1
369
         this.query.page = 1
303
-
304
-       
305
-
370
+        this.getlist()
306
       },
371
       },
307
       selectGoodType(goodType){
372
       selectGoodType(goodType){
308
         this.goodType = goodType
373
         this.goodType = goodType
309
         this.query.good_type = goodType
374
         this.query.good_type = goodType
310
-       
375
+        this.getlist()
311
       },
376
       },
312
       getAllZone: function() {
377
       getAllZone: function() {
313
         GetAllZone().then(response => {
378
         GetAllZone().then(response => {
321
         })
386
         })
322
       },
387
       },
323
       statistics() {
388
       statistics() {
324
-        this.$refs.consumables.show()
389
+        this.startDialogVisible = true
325
       },
390
       },
326
       handleScheduleDateChange(val) {
391
       handleScheduleDateChange(val) {
327
         this.query.schedule_date = val
392
         this.query.schedule_date = val

+ 2 - 2
src/xt_pages/stock/drugs/components/drugQuery.vue Прегледај датотеку

31
          </div>
31
          </div>
32
         
32
         
33
          <div>
33
          <div>
34
-          <el-button
34
+          <!-- <el-button
35
             size="small"
35
             size="small"
36
             class="filter-item"
36
             class="filter-item"
37
             type="primary"
37
             type="primary"
38
             @click="toCheck"
38
             @click="toCheck"
39
             >脚本
39
             >脚本
40
-          </el-button>
40
+          </el-button> -->
41
           <el-button
41
           <el-button
42
             size="small"
42
             size="small"
43
             class="filter-item"
43
             class="filter-item"

+ 31 - 1
src/xt_pages/stock/drugs/components/purchaseDrugQueryPrint.vue Прегледај датотеку

153
             this.loading = false
153
             this.loading = false
154
             var list = response.data.data.list
154
             var list = response.data.data.list
155
             for (let i = 0; i < list.length; i++) {
155
             for (let i = 0; i < list.length; i++) {
156
-                   //期初结余入库
156
+
157
+              //期初结余入库
157
               if(list[i].DrugWarehouseInfoStart!=null && list[i].DrugWarehouseInfoStart.length > 0){
158
               if(list[i].DrugWarehouseInfoStart!=null && list[i].DrugWarehouseInfoStart.length > 0){
158
                 for(let j=0;j<list[i].DrugWarehouseInfoStart.length;j++){
159
                 for(let j=0;j<list[i].DrugWarehouseInfoStart.length;j++){
159
                   if(list[i].max_unit == list[i].DrugWarehouseInfoStart[j].max_unit){
160
                   if(list[i].max_unit == list[i].DrugWarehouseInfoStart[j].max_unit){
171
                 }
172
                 }
172
               }
173
               }
173
 
174
 
175
+              //期初结余退库
176
+               if(list[i].WareStartStockCancelInfo!=null && list[i].WareStartStockCancelInfo.length>0){
177
+                for(let j=0;j<list[i].WareStartStockCancelInfo.length;j++){
178
+                  if(list[i].max_unit == list[i].WareStartStockCancelInfo[j].max_unit){
179
+                    list[i].WareStartStockCancelInfo[j].count =  list[i].WareStartStockCancelInfo[j].count*list[i].min_number
180
+                  }
181
+                }
182
+              }
183
+
184
+
174
               //期末结余入库
185
               //期末结余入库
175
               if(list[i].DrugWarehouseInfoEnd!=null && list[i].DrugWarehouseInfoEnd.length > 0){
186
               if(list[i].DrugWarehouseInfoEnd!=null && list[i].DrugWarehouseInfoEnd.length > 0){
176
                 for(let j=0;j<list[i].DrugWarehouseInfoEnd.length;j++){
187
                 for(let j=0;j<list[i].DrugWarehouseInfoEnd.length;j++){
189
                 }
200
                 }
190
               }
201
               }
191
 
202
 
203
+              //期末结余退库
204
+               if(list[i].WareEndStockCancelInfo!=null && list[i].WareEndStockCancelInfo.length>0){
205
+                for(let j=0;j<list[i].WareEndStockCancelInfo.length;j++){
206
+                  if(list[i].max_unit == list[i].WareEndStockCancelInfo[j].max_unit){
207
+                    list[i].WareEndStockCancelInfo[j].count =  list[i].WareEndStockCancelInfo[j].count*list[i].min_number
208
+                  }
209
+                }
210
+              }
211
+
192
               //期中增加
212
               //期中增加
193
               if(list[i].DrugWarehouseInfoStartEnd!=null && list[i].DrugWarehouseInfoStartEnd.length > 0){
213
               if(list[i].DrugWarehouseInfoStartEnd!=null && list[i].DrugWarehouseInfoStartEnd.length > 0){
194
                 for(let j=0;j<list[i].DrugWarehouseInfoStartEnd.length;j++){
214
                 for(let j=0;j<list[i].DrugWarehouseInfoStartEnd.length;j++){
206
                    }
226
                    }
207
                 }
227
                 }
208
               }
228
               }
229
+
230
+              //期中退库
231
+              if(list[i].WareStartEndStockCancelInfo!=null && list[i].WareStartEndStockCancelInfo.length > 0){
232
+                for(let j=0;j<list[i].WareStartEndStockCancelInfo.length;j++){
233
+                   if(list[i].max_unit == list[i].WareStartEndStockCancelInfo[j].max_unit){
234
+                     list[i].WareStartEndStockCancelInfo[j].count =list[i].min_number * list[i].WareStartEndStockCancelInfo[j].count
235
+                   }
236
+                }
237
+              }
209
            
238
            
210
            
239
            
211
 
240
 
264
              }
293
              }
265
             }
294
             }
266
 
295
 
296
+
267
            
297
            
268
              for(let i=0;i<list.length;i++){
298
              for(let i=0;i<list.length;i++){
269
               list[i].last_price_in = 0
299
               list[i].last_price_in = 0

+ 6 - 1
src/xt_pages/stock/drugs/drugStockFlow.vue Прегледај датотеку

118
        
118
        
119
         <el-table-column prop="drug_name" label="单价" align="center">
119
         <el-table-column prop="drug_name" label="单价" align="center">
120
            <template slot-scope="scope">
120
            <template slot-scope="scope">
121
+             <span v-if="scope.row.consumable_type == 2 && scope.row.xt_drug_warehouse_out_info!=null">{{scope.row.xt_drug_warehouse_out_info.price}}</span>
122
+             <span v-else>
121
               <span v-if="scope.row.price >0">{{scope.row.price}}</span>
123
               <span v-if="scope.row.price >0">{{scope.row.price}}</span>
122
               <span v-if="scope.row.price == 0">{{getPrice(scope.row.drug_id)}}</span>
124
               <span v-if="scope.row.price == 0">{{getPrice(scope.row.drug_id)}}</span>
125
+             </span>
126
+            
123
            </template>
127
            </template>
124
         </el-table-column>
128
         </el-table-column>
125
          <el-table-column prop="drug_name" label="有效期" align="center">
129
          <el-table-column prop="drug_name" label="有效期" align="center">
278
             var manufacturerList = response.data.data.manufacturerList
282
             var manufacturerList = response.data.data.manufacturerList
279
             this.manufacturerList = manufacturerList
283
             this.manufacturerList = manufacturerList
280
             this.drug =  response.data.data.drug
284
             this.drug =  response.data.data.drug
281
-         
285
+            var outlist = response.data.data.outlist
286
+            console.log("outlist",outlist)
282
            }
287
            }
283
          })  
288
          })  
284
        },
289
        },

+ 17 - 5
src/xt_pages/stock/drugs/drugStockOutOrder.vue Прегледај датотеку

665
       outList:[],
665
       outList:[],
666
       warehouseOutList:[],
666
       warehouseOutList:[],
667
       exportLoding:false,
667
       exportLoding:false,
668
+      outInfoList:[],
668
     };
669
     };
669
   },
670
   },
670
   methods: {
671
   methods: {
1475
           this.exportLoding = false
1476
           this.exportLoding = false
1476
           this.manufacturerList = response.data.data.manufacturerList;
1477
           this.manufacturerList = response.data.data.manufacturerList;
1477
           this.dealerList = response.data.data.dealerList;
1478
           this.dealerList = response.data.data.dealerList;
1479
+          this.outInfoList = response.data.data.outInfoList
1480
+          console.log("outInfoList2233232232",this.outInfoList)
1478
         }
1481
         }
1479
       });
1482
       });
1480
     },
1483
     },
1481
     toExport() {
1484
     toExport() {
1482
-     
1485
+      console.log("exportlist23323232233",this.exportList)
1483
       if (this.order_id == "") {
1486
       if (this.order_id == "") {
1484
         this.$message.error("请勾选出库单");
1487
         this.$message.error("请勾选出库单");
1485
         return;
1488
         return;
1486
       }
1489
       }
1487
      
1490
      
1488
       for (let i = 0; i < this.exportList.length; i++) {
1491
       for (let i = 0; i < this.exportList.length; i++) {
1492
+        this.exportList[i].retail_price_one = 0
1493
+        if(this.outInfoList.length!=null){
1494
+          for(let j=0;j<this.outInfoList.length;j++){
1495
+           if(this.exportList[i].warehouse_out_id == this.outInfoList[j].warehouse_out_id && this.exportList[i].drug_id == this.outInfoList[j].drug_id){
1496
+            this.exportList[i].retail_price_one = this.outInfoList[j].price
1497
+           }
1498
+        }
1499
+        }
1500
+       
1489
         if (this.exportList[i].dealer == 0) {
1501
         if (this.exportList[i].dealer == 0) {
1490
           this.exportList[i].dealer = "";
1502
           this.exportList[i].dealer = "";
1491
         }
1503
         }
1501
           "/" +
1513
           "/" +
1502
           this.exportList[i].max_unit;
1514
           this.exportList[i].max_unit;
1503
 
1515
 
1504
-        this.exportList[i].total_price = (this.exportList[i].count * this.exportList[i].price).toFixed(2);
1516
+        // this.exportList[i].total_price = (this.exportList[i].count * this.exportList[i].price).toFixed(2);
1505
         this.exportList[i].out_count = this.getAllOut(this.exportList[i].count,this.exportList[i].max_unit,this.exportList[i].min_unit,this.exportList[i].min_number)
1517
         this.exportList[i].out_count = this.getAllOut(this.exportList[i].count,this.exportList[i].max_unit,this.exportList[i].min_unit,this.exportList[i].min_number)
1506
         this.exportList[i].expiry_date = this.getTime(
1518
         this.exportList[i].expiry_date = this.getTime(
1507
           this.exportList[i].expire_date
1519
           this.exportList[i].expire_date
1554
           "unit",
1566
           "unit",
1555
           "batch_number",
1567
           "batch_number",
1556
           "out_count",
1568
           "out_count",
1557
-          "retail_price",
1569
+          "retail_price_one",
1558
           "price",
1570
           "price",
1559
-          "total_price",
1571
+          "retail_price",
1560
           "manufacturer",
1572
           "manufacturer",
1561
           "product_date",
1573
           "product_date",
1562
           "expiry_date",
1574
           "expiry_date",
2074
        if(drug_id == this.warehouseOutList[i].drug_id){
2086
        if(drug_id == this.warehouseOutList[i].drug_id){
2075
           price = this.warehouseOutList[i].price
2087
           price = this.warehouseOutList[i].price
2076
        }
2088
        }
2077
-       return price
2078
       }
2089
       }
2090
+      return price
2079
     }
2091
     }
2080
   },
2092
   },
2081
 };
2093
 };

+ 1 - 1
src/xt_pages/stock/query/goodNewQuery.vue Прегледај датотеку

31
           <el-button  type="primary" icon="el-icon-search" @click="seach">搜索</el-button>
31
           <el-button  type="primary" icon="el-icon-search" @click="seach">搜索</el-button>
32
          </div>
32
          </div>
33
           <div>
33
           <div>
34
-            <el-button size="small" type="primary" @click="toClickTwo">脚本</el-button>
34
+            <!-- <el-button size="small" type="primary" @click="toClickTwo">脚本</el-button> -->
35
             <el-button size="small" type="primary" @click="exportList">导出</el-button>
35
             <el-button size="small" type="primary" @click="exportList">导出</el-button>
36
             <el-button size="small" type="primary" @click="toPrint">打印</el-button>
36
             <el-button size="small" type="primary" @click="toPrint">打印</el-button>
37
           </div>
37
           </div>

+ 19 - 13
src/xt_pages/stock/stockOutOrder.vue Прегледај датотеку

837
                   <span>使用数量</span>
837
                   <span>使用数量</span>
838
                 </template>
838
                 </template>
839
                 <template slot-scope="scope">
839
                 <template slot-scope="scope">
840
-                  <span v-if="scope.row.is_total == 0"
841
-                    >{{ scope.row.count - scope.row.cancel_count}}{{ scope.row.packing_unit }}</span
842
-                  >
843
-                  <span v-if="scope.row.is_total == 1"
844
-                    >{{ scope.row.total }}
845
-                  </span>
840
+                  <span v-if="scope.row.is_total == 0">{{ scope.row.count - scope.row.cancel_count}}{{ scope.row.packing_unit }}</span>
841
+                  <span v-if="scope.row.is_total == 1">{{ scope.row.total}}</span>
846
                 </template>
842
                 </template>
847
               </el-table-column>
843
               </el-table-column>
848
               <el-table-column min-width="60" align="center">
844
               <el-table-column min-width="60" align="center">
1383
     },
1379
     },
1384
 
1380
 
1385
     handleSearch(val) {
1381
     handleSearch(val) {
1382
+      console.log("val322332232332i",val)
1386
       this.is_sys = val.is_sys;
1383
       this.is_sys = val.is_sys;
1387
       this.tableList = [];
1384
       this.tableList = [];
1388
       this.editdialogVisibleThree = false;
1385
       this.editdialogVisibleThree = false;
1389
-      this.GetOrderDetailOne(val.id);
1386
+      this.GetOrderDetailOne(val.id,val.warehouse_out_time);
1390
 
1387
 
1391
       this.GetTotalCount(val.warehouse_out_time);
1388
       this.GetTotalCount(val.warehouse_out_time);
1392
     },
1389
     },
1393
 
1390
 
1394
-    GetOrderDetailOne(id) {
1391
+    GetOrderDetailOne(id,warehouse_out_time) {
1395
       const params = {
1392
       const params = {
1396
         id: id,
1393
         id: id,
1394
+        warehouse_out_time:warehouse_out_time,
1397
       };
1395
       };
1398
       getOrderDetailByOrderId(params).then((response) => {
1396
       getOrderDetailByOrderId(params).then((response) => {
1399
         if (response.data.state == 1) {
1397
         if (response.data.state == 1) {
1924
             }
1922
             }
1925
           }
1923
           }
1926
           console.log("2o32o3o3232j32oo23o2332oj2wo",arr)
1924
           console.log("2o32o3o3232j32oo23o2332oj2wo",arr)
1927
-          for (let i = 0; i <arr.length; i++) {
1928
-            var obj = arr[i];
1925
+          var arrTwo= []
1926
+          for(let i=0;i<arr.length;i++){
1927
+            if((arr[i].count - arr[i].cancel_count)!=0){
1928
+               arrTwo.push(arr[i])
1929
+            }
1930
+          }
1931
+          console.log("arrTwo8888888",arrTwo)
1932
+          for (let i = 0; i <arrTwo.length; i++) {
1933
+            var obj = arrTwo[i];
1929
             obj["is_total"] = 0;
1934
             obj["is_total"] = 0;
1930
             this.userList.push(obj);
1935
             this.userList.push(obj);
1931
-            if(arr[i].is_sys == 1){
1932
-              total = total + arr[i].count - arr[i].cancel_count;
1936
+            if(arrTwo[i].is_sys == 1){
1937
+              total = total + arrTwo[i].count - arrTwo[i].cancel_count;
1933
             }else{
1938
             }else{
1934
-              total = total + arr[i].count;
1939
+              total = total + arrTwo[i].count;
1935
             }
1940
             }
1936
             
1941
             
1937
           }
1942
           }
1943
+          console.log("user_list23322323232323",this.userList)
1938
           this.userList.push({
1944
           this.userList.push({
1939
             is_total: 1,
1945
             is_total: 1,
1940
             total: total,
1946
             total: total,

+ 91 - 353
src/xt_pages/user/dialysisSolution.vue Прегледај датотеку

3
     <patient-sidebar :id="patientID" defaultActive="2-1"></patient-sidebar>
3
     <patient-sidebar :id="patientID" defaultActive="2-1"></patient-sidebar>
4
     <div class="patient-app-container app-container">
4
     <div class="patient-app-container app-container">
5
       <div class="Total">
5
       <div class="Total">
6
+        <!-- <div class="plan" >透析计划</div> -->
7
+        <!-- <table-title title="长期透析处方"></table-title> -->
6
         <div class="sum">
8
         <div class="sum">
9
+          <!-- <span>透析总频率:<el-input :value="totalrate" disabled style="width:180px"></el-input></span> -->
7
           <el-button
10
           <el-button
8
             type="primary"
11
             type="primary"
9
             size="small"
12
             size="small"
39
           min-width="50"
42
           min-width="50"
40
         >
43
         >
41
           <template slot-scope="scope">
44
           <template slot-scope="scope">
42
-            {{modeOptions[scope.row.mode_id]?modeOptions[scope.row.mode_id].name:''}}
45
+            {{ modeOptions[scope.row.mode_id]?modeOptions[scope.row.mode_id].name:'' }}
43
           </template>
46
           </template>
44
         </el-table-column>
47
         </el-table-column>
45
         <el-table-column
48
         <el-table-column
53
             {{ scope.row.dialysis_duration_minute }} 分钟
56
             {{ scope.row.dialysis_duration_minute }} 分钟
54
           </template>
57
           </template>
55
         </el-table-column>
58
         </el-table-column>
56
-      
59
+        <!-- <el-table-column
60
+          prop="period"
61
+          label="频率"
62
+          align="center"
63
+          min-width="50">
64
+          <template slot-scope="scope" >
65
+              <span v-if="scope.row.parent_id === 0" >{{scope.row.period}}{{scope.row.times}}</span>
66
+              <span v-else >--</span>
67
+          </template>
68
+        </el-table-column> -->
69
+        <!-- <el-table-column
70
+          prop="name"
71
+          label="处方名"
72
+          align="center"
73
+          min-width="50">
74
+          <template slot-scope="scope" >
75
+              <span >{{scope.row.name}}{{scope.row.sub_name}}</span>
76
+          </template>
77
+        </el-table-column> -->
57
         <el-table-column
78
         <el-table-column
58
           prop="doctor"
79
           prop="doctor"
59
           label="医生"
80
           label="医生"
86
             <span>{{ scope.row.updated_time | parseTime("{y}-{m}-{d}") }}</span>
107
             <span>{{ scope.row.updated_time | parseTime("{y}-{m}-{d}") }}</span>
87
           </template>
108
           </template>
88
         </el-table-column>
109
         </el-table-column>
89
-
90
-        <el-table-column  align="center" label="状态" width="60">
91
-          <template slot-scope="scope">
92
-            <span v-if="scope.row.solution_status == 1">生效</span>
93
-            <span v-if="scope.row.solution_status == 2">失效</span>
94
-          </template>
95
-        </el-table-column>
110
+        <!-- <el-table-column
111
+           prop="state"
112
+           label="状态"
113
+           align="center"
114
+           min-width="40">
115
+           <template slot-scope="scope" >
116
+               <span v-if="scope.row.initiate_mode==1">启用</span>
117
+               <span v-else-if="scope.row.initiate_mode==2">停用</span>
118
+               <span v-else>未知</span>
119
+             </template>
120
+        </el-table-column> -->
96
         <el-table-column label="操作" align="center" min-width="140">
121
         <el-table-column label="操作" align="center" min-width="140">
97
           <template slot-scope="scope">
122
           <template slot-scope="scope">
98
             <el-tooltip
123
             <el-tooltip
108
                 @click="openEdit(scope.$index, scope.row)"
133
                 @click="openEdit(scope.$index, scope.row)"
109
               ></el-button>
134
               ></el-button>
110
             </el-tooltip>
135
             </el-tooltip>
111
-
112
-
113
-             <el-tooltip
114
-              class="item"
115
-              effect="dark"
116
-              content="查看更多"
117
-              placement="top"
118
-            >
119
-              <el-button
120
-                size="small"
121
-                type="primary"
122
-                @click="toClick(scope.row)">
123
-                查看更多
124
-              </el-button>
125
-            </el-tooltip>
126
-         
136
+            <!--   <el-button
137
+                 size="mini"
138
+                 type="primary"
139
+                 @click="openChildEdit(scope.$index, scope.row)" v-else>编辑</el-button>
140
+
141
+               <el-button
142
+                 size="mini"
143
+                 type="success"
144
+                 @click="openNewChild(scope.$index, scope.row)" v-if="scope.row.parent_id===0">新增</el-button>
145
+               <el-button
146
+                 size="mini"
147
+                 type="danger"
148
+                 @click="handleDelete(scope.$index, scope.row)">删除</el-button>-->
127
           </template>
149
           </template>
128
         </el-table-column>
150
         </el-table-column>
129
       </el-table>
151
       </el-table>
140
         :total="total"
162
         :total="total"
141
       >
163
       >
142
       </el-pagination>
164
       </el-pagination>
143
-      
144
-      <div v-show="startShow">
145
-        <el-row :gutter="20">
146
-          <el-col :span="6"><div class="grid-content bg-purple">透析模式:{{modeOptions[current_solution.mode_id]?modeOptions[current_solution.mode_id].name:''}}</div></el-col>
147
-        </el-row>
148
-         <el-row :gutter="20">
149
-          <el-col :span="6"><div class="grid-content bg-purple">透析时长:{{current_solution.dialysis_duration_hour}}小时{{current_solution.dialysis_duration_minute}}分钟</div></el-col>
150
-          <el-col :span="6"><div class="grid-content bg-purple">血流量(ml/min):{{current_solution.blood_flow_volume}}</div></el-col>
151
-          <el-col :span="6"><div class="grid-content bg-purple">透析液配方:{{getDialysateFormulation(current_solution.dialysate_formulation)}}</div></el-col>
152
-          <el-col :span="6"><div class="grid-content bg-purple">抗凝剂:{{getAnticoagulant(current_solution.anticoagulant)}}</div></el-col>
153
-        </el-row>
154
-
155
-         <el-row :gutter="20">
156
-          <el-col :span="6"><div class="grid-content bg-purple">首剂:
157
-            <span v-if="current_solution.anticoagulant == 6">(iu)</span>
158
-            <span v-if="current_solution.anticoagulant == 7">(iu)</span>
159
-            <span v-if="current_solution.anticoagulant == 5">(mg)</span>
160
-            <span v-if="current_solution.anticoagulant == 4">(mg)</span>
161
-            <span v-if="current_solution.anticoagulant == 3">(iu)</span>
162
-            <span v-if="current_solution.anticoagulant == 2">(mg)</span>
163
-            <span v-if="current_solution.anticoagulant == 1">(mg)</span>
164
-            {{current_solution.anticoagulant_shouji}}</div></el-col>
165
-          <el-col :span="6"><div class="grid-content bg-purple">维持:
166
-              <span v-if="current_solution.anticoagulant == 7">(iu/h)</span>
167
-              <span v-if="current_solution.anticoagulant == 6">(iu/h)</span>
168
-              <span v-if="current_solution.anticoagulant == 5">(ml/h)</span>
169
-              <span v-if="current_solution.anticoagulant == 4">(mg/h)</span>
170
-              <span v-if="current_solution.anticoagulant == 3">(iu/h)</span>
171
-              <span v-if="current_solution.anticoagulant == 2">(mg/h)</span>
172
-              <span v-if="current_solution.anticoagulant == 1">(mg/h)</span>
173
-            {{current_solution.anticoagulant_weichi}}</div></el-col>
174
-          <el-col :span="6"><div class="grid-content bg-purple">总量:
175
-            <span v-if="current_solution.anticoagulant == 5">(mg)</span>
176
-            <span v-if="current_solution.anticoagulant == 6">(iu)</span>
177
-            <span v-if="current_solution.anticoagulant == 7">(iu)</span>
178
-            <span v-if="current_solution.anticoagulant == 4">(mg)</span>
179
-            <span v-if="current_solution.anticoagulant == 3">(iu)</span>
180
-            <span v-if="current_solution.anticoagulant == 2">(mg)</span>
181
-            <span v-if="current_solution.anticoagulant == 1">(mg)</span>
182
-            {{current_solution.anticoagulant_zongliang}}</div></el-col>
183
-          <el-col :span="6"><div class="grid-content bg-purple">钾(mmol/L):{{current_solution.kalium}}</div></el-col>
184
-        </el-row>
185
-
186
-       <el-row :gutter="20">
187
-          <el-col :span="6"><div class="grid-content bg-purple">钠(mmol/L):{{current_solution.sodium}}</div></el-col>
188
-          <el-col :span="6"><div class="grid-content bg-purple">钙:(mmol/L){{current_solution.calcium}}</div></el-col>
189
-          <el-col :span="6"><div class="grid-content bg-purple">透析器/灌流器:{{current_solution.dialyzer_perfusion_apparatus}}</div></el-col>
190
-        </el-row>
191
-
192
-          <el-row :gutter="20">
193
-            <el-col :span="6"><div class="grid-content bg-purple">透析器:{{current_solution.dialysis_dialyszers}}</div></el-col>
194
-            <el-col :span="6"><div class="grid-content bg-purple">灌流器:{{current_solution.dialysis_irrigation}}</div></el-col>
195
-            <el-col :span="6"><div class="grid-content bg-purple">碳酸氢盐(mmol/L):{{current_solution.bicarbonate}}</div></el-col>
196
-            <el-col :span="6"><div class="grid-content bg-purple">葡萄糖(mmol/L):{{current_solution.glucose}}</div></el-col>
197
-         </el-row>
198
-
199
-            <el-row :gutter="20">
200
-            <el-col :span="6"><div class="grid-content bg-purple">透析液流量(ml/min):{{current_solution.dialysate_flow}}</div></el-col>
201
-            <el-col :span="6"><div class="grid-content bg-purple">透析液温度(℃):{{current_solution.dialysate_temperature}}</div></el-col>
202
-            <el-col :span="6"><div class="grid-content bg-purple">电导度(mS/cm):{{current_solution.conductivity}}</div></el-col>
203
-            <el-col :span="6"><div class="grid-content bg-purple">体液过多症状:{{getBodyFluid(current_solution.body_fluid)}}</div></el-col>
204
-         </el-row>
205
-
206
-           <el-row :gutter="20">
207
-            <el-col :span="6"><div class="grid-content bg-purple">体液过多其他症状:{{current_solution.body_fluid_other}}</div></el-col>
208
-            <el-col :span="6"><div class="grid-content bg-purple">透析前使用特殊药物:{{current_solution.special_medicine}}</div></el-col>
209
-            <el-col :span="6"><div class="grid-content bg-purple">使用其他特殊药物:{{current_solution.special_medicine_other}}</div></el-col>
210
-            <el-col :span="6"><div class="grid-content bg-purple">血管通路:{{getBloodAccess(current_solution.blood_access)}}</div></el-col>
211
-         </el-row>
212
-
213
-           <el-row :gutter="20">
214
-            <el-col :span="6"><div class="grid-content bg-purple">血浆分离器:{{current_solution.plasma_separator}}</div></el-col>
215
-            <el-col :span="6"><div class="grid-content bg-purple">透析管路:{{getHemodialysisPipelines(current_solution.hemodialysis_pipelines)}}</div></el-col>
216
-            <el-col :span="6"><div class="grid-content bg-purple">透析管路支数:{{current_solution.hemodialysis_pipelines_count}}</div></el-col>
217
-            <el-col :span="6"><div class="grid-content bg-purple">穿刺针:{{current_solution.puncture_needle}}</div></el-col>
218
-         </el-row>
219
-
220
-           <el-row :gutter="20">
221
-            <el-col :span="6"><div class="grid-content bg-purple">穿刺针支数:{{current_solution.puncture_needle_count}}</div></el-col>
222
-            <el-col :span="6"><div class="grid-content bg-purple">促红素:{{current_solution.epo_count}}</div></el-col>
223
-            <el-col :span="6"><div class="grid-content bg-purple">促红素支数:{{current_solution.epo_count}}</div></el-col>
224
-            <el-col :span="6"><div class="grid-content bg-purple">最大超滤率(ml/h):{{current_solution.max_ultrafiltration_rate}}</div></el-col>
225
-         </el-row>
226
-           <el-row :gutter="20">
227
-            <el-col :span="6"><div class="grid-content bg-purple">备注:{{current_solution.remark}}</div></el-col>
228
-         </el-row>
229
-      </div>
230
-
231
     </div>
165
     </div>
232
 
166
 
233
-   
234
-
235
-
236
     <el-dialog
167
     <el-dialog
237
       :title="isEdit ? '编辑透析处方' : '新增透析处方'"
168
       :title="isEdit ? '编辑透析处方' : '新增透析处方'"
238
       :visible.sync="dialogVisible"
169
       :visible.sync="dialogVisible"
606
               </el-select>
537
               </el-select>
607
             </el-form-item>
538
             </el-form-item>
608
 
539
 
540
+            <!-- <el-form-item
541
+              label="置换方式:"
542
+              v-if="
543
+                isShows('置换液')   && (addPlan.mode == 2 || addPlan.mode == 5 || addPlan.mode == 12)
544
+              "
545
+            >
546
+              <el-select
547
+                v-model="addPlan.displace_liqui_part"
548
+                placeholder="请选择"
549
+              >
550
+                <el-option :key="0" label="请选择" :value="0"></el-option>
551
+                <el-option
552
+                  v-for="(option, index) in displace_liqui_part_option"
553
+                  :key="index"
554
+                  :label="option.name"
555
+                  :value="option.id"
556
+                ></el-option>
557
+              </el-select>
558
+            </el-form-item> -->
609
           </el-col>
559
           </el-col>
610
 
560
 
611
           <el-col :span="8" v-if="isShows('置换液总量')  && (addPlan.mode == 2 || addPlan.mode == 5 || addPlan.mode == 12)">
561
           <el-col :span="8" v-if="isShows('置换液总量')  && (addPlan.mode == 2 || addPlan.mode == 5 || addPlan.mode == 12)">
629
             </el-form-item>
579
             </el-form-item>
630
           </el-col>
580
           </el-col>
631
 
581
 
582
+          <!-- </el-row>
583
+          <el-row :gutter="20" > -->
632
           <el-col :span="8" v-if="isShows('实际超滤量')">
584
           <el-col :span="8" v-if="isShows('实际超滤量')">
633
             <el-form-item label="实际超滤量(L)">
585
             <el-form-item label="实际超滤量(L)">
634
               <el-input v-model="addPlan.ultrafiltration"></el-input>
586
               <el-input v-model="addPlan.ultrafiltration"></el-input>
777
       v-on:dialog-comfirm="innerDialogComfirm"
729
       v-on:dialog-comfirm="innerDialogComfirm"
778
       v-on:dialog-cancle="innerDialogCancle">
730
       v-on:dialog-cancle="innerDialogCancle">
779
     </multi-select-box>
731
     </multi-select-box>
780
-     
781
 
732
 
782
 
733
 
783
-
784
-    <el-dialog
785
-      :visible.sync="startDialogVisible"
786
-      width="1010px"
787
-    >
788
-      <el-table
789
-        ref="solutionTable"
790
-        :data="tableList"
791
-        border
792
-        fit
793
-        highlight-current-row
794
-        :header-cell-style="{
795
-          backgroundColor: 'rgb(245, 247, 250)',
796
-          color: '#606266'
797
-        }"
798
-        :row-style="{ color: '#303133' }"
799
-        style="width: 100%"
800
-      >
801
-        <el-table-column type="index" align="center" label="序号" width="60">
802
-        </el-table-column>
803
-        <el-table-column
804
-          prop="mode_name"
805
-          align="center"
806
-          label="透析模式"
807
-          min-width="50"
808
-        >
809
-          <template slot-scope="scope">
810
-            {{modeOptions[scope.row.mode_id]?modeOptions[scope.row.mode_id].name:''}}
811
-          </template>
812
-        </el-table-column>
813
-        <el-table-column
814
-          prop="dialysis_duration"
815
-          align="center"
816
-          label="透析时长"
817
-          min-width="50"
818
-        >
819
-          <template slot-scope="scope">
820
-            {{ scope.row.dialysis_duration_hour }} 小时
821
-            {{ scope.row.dialysis_duration_minute }} 分钟
822
-          </template>
823
-        </el-table-column>
824
-      
825
-        <el-table-column
826
-          prop="doctor"
827
-          label="医生"
828
-          align="center"
829
-          min-width="110"
830
-        >
831
-          <template slot-scope="scope">
832
-            <span>{{ getAdminUserName(scope.row.registrars_id) }}</span>
833
-          </template>
834
-        </el-table-column>
835
-
836
-        <el-table-column
837
-          prop="created_time"
838
-          align="center"
839
-          label="创建日期"
840
-          min-width="60"
841
-        >
842
-          <template slot-scope="scope">
843
-            <span>{{ scope.row.created_time | parseTime("{y}-{m}-{d}") }}</span>
844
-          </template>
845
-        </el-table-column>
846
-
847
-        <el-table-column
848
-          prop="updated_time"
849
-          align="center"
850
-          label="更新日期"
851
-          min-width="60"
852
-        >
853
-          <template slot-scope="scope">
854
-            <span>{{ scope.row.updated_time | parseTime("{y}-{m}-{d}") }}</span>
855
-          </template>
856
-        </el-table-column>
857
-        <el-table-column  align="center" label="状态" width="60">
858
-          <template slot-scope="scope">
859
-            <span v-if="scope.row.solution_status == 1">生效</span>
860
-            <span v-if="scope.row.solution_status == 2">失效</span>
861
-          </template>
862
-        </el-table-column>
863
-      </el-table>
864
-      <el-pagination
865
-        align="right"
866
-        @size-change="handleSizeChangeOne"
867
-        @current-change="handleCurrentChangeOne"
868
-        :current-page="pageOne"
869
-        :page-sizes="[10, 20, 50, 100]"
870
-        :page-size="10"
871
-        background
872
-        style="margin-top:20px;"
873
-        layout="total, sizes, prev, pager, next, jumper"
874
-        :total="totalOne"
875
-      >
876
-      </el-pagination>
877
-      <span slot="footer" class="dialog-footer">
878
-        <el-button
879
-          type="primary"
880
-          @click="startDialogVisible = false"
881
-          >取消</el-button
882
-        >
883
-        <el-button
884
-          type="primary"
885
-          @click="startDialogVisible = false"
886
-         
887
-          >确定</el-button
888
-        >
889
-      </span>
890
-    </el-dialog>
891
-
892
   </div>
734
   </div>
893
 </template>
735
 </template>
894
 
736
 
903
   editChildPatientDialysisSolution,
745
   editChildPatientDialysisSolution,
904
   editDialysisSolutionDetail,
746
   editDialysisSolutionDetail,
905
   editPatientDialysisSolution,
747
   editPatientDialysisSolution,
906
-  findePatientDialysisLongSolutions,
907
-  getDialysisSolutionDetailList
748
+  fetchPatientDialysisSolutions
908
 } from '@/api/patient'
749
 } from '@/api/patient'
909
 
750
 
910
 import { getSystemPrescription } from '@/api/config'
751
 import { getSystemPrescription } from '@/api/config'
1190
       {id:2,name:"无"}
1031
       {id:2,name:"无"}
1191
      ],
1032
      ],
1192
      oxygenShow:false,
1033
      oxygenShow:false,
1193
-     startDialogVisible:false,
1194
-     tableList:[],
1195
-     totalOne:0,
1196
-     pageOne:1,
1197
-     limitOne:10,
1198
-     startShow:false,
1199
     }
1034
     }
1200
   },
1035
   },
1201
   watch: {
1036
   watch: {
1361
     },
1196
     },
1362
 
1197
 
1363
     tableCurrentChange(current) {
1198
     tableCurrentChange(current) {
1364
-      console.log("current",current)
1365
-      this.startShow = true
1366
       if (typeof current === 'undefined' || current == null) {
1199
       if (typeof current === 'undefined' || current == null) {
1367
         this.current_solution = {
1200
         this.current_solution = {
1368
           id: 0,
1201
           id: 0,
1487
               duration: 2000
1320
               duration: 2000
1488
             })
1321
             })
1489
             this.tableData.splice(index, 1)
1322
             this.tableData.splice(index, 1)
1490
-           
1323
+            // if (row.parent_id>0) {
1324
+            //   this.tableData.splice(index,1);
1325
+            // }else {
1326
+            //     var resetTableData = this.tableData;
1327
+            //     this.tableData = [];
1328
+            //     var that = this;
1329
+            //     resetTableData.forEach(function(item, itemindex){
1330
+            //         if (item.id != row.id && item.parent_id != row.id) {
1331
+            //             that.tableData.push(item);
1332
+            //         }
1333
+            //     });
1334
+            // }
1491
           }
1335
           }
1492
         })
1336
         })
1493
       })
1337
       })
1671
               // this.tableData[this.current_index].updated_time = response.data.data.solution.updated_time;
1515
               // this.tableData[this.current_index].updated_time = response.data.data.solution.updated_time;
1672
 
1516
 
1673
               this.current_index = -1
1517
               this.current_index = -1
1674
-              this.FindePatientDialysisLongSolutions()
1518
+              this.fetchPatientDialysisSolutions()
1675
               return false
1519
               return false
1676
             }
1520
             }
1677
           })
1521
           })
1713
               }
1557
               }
1714
               this.total += 1
1558
               this.total += 1
1715
               // this.$refs[formName].resetFields()
1559
               // this.$refs[formName].resetFields()
1716
-              this.FindePatientDialysisLongSolutions()
1560
+              this.fetchPatientDialysisSolutions()
1717
               return false
1561
               return false
1718
             }
1562
             }
1719
           })
1563
           })
1725
     },
1569
     },
1726
     handleSizeChange(val) {
1570
     handleSizeChange(val) {
1727
       this.queryParams.limit = val
1571
       this.queryParams.limit = val
1728
-      this.FindePatientDialysisLongSolutions()
1729
-    },
1730
-    handleCurrentChange(val) {
1731
-      this.queryParams.page = val
1732
-      this.FindePatientDialysisLongSolutions()
1733
-    },
1734
-   handleSizeChangeOne(val) {
1735
-      this.queryParams.limit = val
1736
-      this.FindePatientDialysisLongSolutions()
1572
+      this.fetchPatientDialysisSolutions()
1737
     },
1573
     },
1738
     handleCurrentChange(val) {
1574
     handleCurrentChange(val) {
1739
       this.queryParams.page = val
1575
       this.queryParams.page = val
1740
-      this.FindePatientDialysisLongSolutions()
1741
-    },
1742
-     handleCurrentChangeOne(val) {
1743
-      this.queryParams.page = val
1744
-      this.FindePatientDialysisLongSolutions()
1576
+      this.fetchPatientDialysisSolutions()
1745
     },
1577
     },
1746
     openEdit(index, row) {
1578
     openEdit(index, row) {
1747
       console.log("ro233344433344444444",row)
1579
       console.log("ro233344433344444444",row)
2049
         }
1881
         }
2050
       })
1882
       })
2051
     },
1883
     },
2052
-    FindePatientDialysisLongSolutions() {
2053
-      findePatientDialysisLongSolutions(this.queryParams).then(response => {
1884
+    fetchPatientDialysisSolutions() {
1885
+      fetchPatientDialysisSolutions(this.queryParams).then(response => {
2054
         if (response.data.state == 1) {
1886
         if (response.data.state == 1) {
2055
           this.tableData = response.data.data.solutions
1887
           this.tableData = response.data.data.solutions
2056
           this.total = response.data.data.total
1888
           this.total = response.data.data.total
2139
       ) {
1971
       ) {
2140
         return false
1972
         return false
2141
       }
1973
       }
1974
+      // this.current_model = this.modeOptions[thismode];
2142
       this.addPlan.mode_name = this.modeOptions[thismode].name
1975
       this.addPlan.mode_name = this.modeOptions[thismode].name
2143
       const params = {
1976
       const params = {
2144
         id: thismode
1977
         id: thismode
2145
       }
1978
       }
1979
+
2146
       getSystemPrescription(params).then(response => {
1980
       getSystemPrescription(params).then(response => {
2147
         if (response.data.state == 1) {
1981
         if (response.data.state == 1) {
2148
            var prescription =   response.data.data.prescription
1982
            var prescription =   response.data.data.prescription
2326
       this.addPlan.oxygen_time = ""
2160
       this.addPlan.oxygen_time = ""
2327
      }
2161
      }
2328
     },
2162
     },
2329
-    toClick(val){
2330
-      var params = {
2331
-        mode_id:val.mode_id,
2332
-        patient_id:val.patient_id,
2333
-        page:this.pageOne,
2334
-        limit:this.limitOne,
2335
-      }
2336
-      getDialysisSolutionDetailList(params).then(response=>{
2337
-        if(response.data.state == 1){
2338
-          this.startDialogVisible = true
2339
-          var list = response.data.data.list
2340
-          this.totalOne = response.data.data.total
2341
-          this.tableList = list
2342
-        }
2343
-      })
2344
-    },
2345
-
2346
-    //修改
2347
-    getDialysateFormulation(id){
2348
-      var name = ""
2349
-      for(let i=0;i<this.dialysate_formulation.length;i++){
2350
-        if(id == this.dialysate_formulation[i].id){
2351
-          name = this.dialysate_formulation[i].name
2352
-        }
2353
-      }
2354
-      return name
2355
-    },
2356
-    getAnticoagulant(id){
2357
-      var name = ""
2358
-      if(id == 1){
2359
-         name = "无肝素"
2360
-      }
2361
-      if(id == 2){
2362
-        name = "普通肝素"
2363
-      }
2364
-      if(id == 3){
2365
-        name = "低分子肝素"
2366
-      }
2367
-      if(id == 4){
2368
-        name = "阿加曲班"
2369
-      }
2370
-      if(id == 5){
2371
-         name ="枸橼酸钠"
2372
-      }
2373
-      if(id == 6){
2374
-        name = "低分子肝素钙"
2375
-      }
2376
-      if(id == 7){
2377
-        name = "低分子肝素钠"
2378
-      }
2379
-      if(id ==8){
2380
-        name = "依诺肝素"
2381
-      }
2382
-      if(id ==9){
2383
-        name = "达肝素"
2384
-      }
2385
-      if(id ==10){
2386
-        name = "体外抗凝"
2387
-      }
2388
-      if(id ==11){
2389
-        name = "那曲肝素"
2390
-      }
2391
-      if(id ==12){
2392
-        name = "无抗凝剂"
2393
-      }
2394
-     if(id ==13){
2395
-        name = "那曲肝素钙"
2396
-      }
2397
-      return name
2398
-    },
2399
-    getBodyFluid(id){
2400
-     var name = ""
2401
-     for(let i=0;i<this.body_fluid_option.length;i++){
2402
-       if(id == this.body_fluid_option[i].id){
2403
-          name = this.body_fluid_option[i].name
2404
-       }
2405
-     }
2406
-     return name
2407
-    },
2408
-    getBloodAccess(id){
2409
-      var name = ""
2410
-      for(let i=0;i<this.blood_access_option.length;i++){
2411
-        if(id == this.blood_access_option[i].id){
2412
-           name = this.blood_access_option[i].name
2413
-        }
2414
-      }
2415
-      return name
2416
-    },
2417
-    getHemodialysisPipelines(id){
2418
-      var name = ""
2419
-      for(let i=0;i<this.hemodialysisPipelinesOptions.length;i++){
2420
-        if(id == this.hemodialysisPipelinesOptions[i].id){
2421
-            name = this.hemodialysisPipelinesOptions[i].name
2422
-        }
2423
-      }
2424
-      return name
2425
-    }
2426
   },
2163
   },
2427
   created() {
2164
   created() {
2428
     const id = this.$route.params && this.$route.params.id
2165
     const id = this.$route.params && this.$route.params.id
2440
 
2177
 
2441
     this.GetDeviceData()
2178
     this.GetDeviceData()
2442
     this.fetchAllAdminUsers()
2179
     this.fetchAllAdminUsers()
2443
-    this.FindePatientDialysisLongSolutions()
2180
+    this.fetchPatientDialysisSolutions()
2444
     this.modeOptions = this.$store.getters.treatment_mode
2181
     this.modeOptions = this.$store.getters.treatment_mode
2445
     this.anticoagulantsSet = this.$store.getters.anticoagulants_set
2182
     this.anticoagulantsSet = this.$store.getters.anticoagulants_set
2446
     this.replacementWays = this.$store.getters.replacement_ways
2183
     this.replacementWays = this.$store.getters.replacement_ways
2531
   background-color: #d0d3da;
2268
   background-color: #d0d3da;
2532
 }
2269
 }
2533
 </style>
2270
 </style>
2271
+