ソースを参照

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

28169 2 年 前
コミット
75665f24a9

+ 7 - 0
src/xt_pages/dialysis/details/NavIgation.vue ファイルの表示

663
       this.$refs.finish_dialog.show(this.dialysis_order);
663
       this.$refs.finish_dialog.show(this.dialysis_order);
664
     },
664
     },
665
     showPrescription: function() {
665
     showPrescription: function() {
666
+      console.log("prescirpiton+++++++++++",this.prescription)
666
       this.$refs.prescription.show(this.prescription,this.schedual,this.last_dialysis_prescribe,this.his_is_open,this.is_advice_open,this.admin_users);
667
       this.$refs.prescription.show(this.prescription,this.schedual,this.last_dialysis_prescribe,this.his_is_open,this.is_advice_open,this.admin_users);
667
     },
668
     },
668
     showAccepts: function() {
669
     showAccepts: function() {
686
         this.assessment_after_dislysis
687
         this.assessment_after_dislysis
687
       );
688
       );
688
       this.$emit("assessmentAfterDislysis", this.assessment_after_dislysis);
689
       this.$emit("assessmentAfterDislysis", this.assessment_after_dislysis);
690
+    },
691
+    showPre(){
692
+
693
+    },
694
+    getParentMethods:function(val){
695
+      this.$parent.getScheduleDetail()
689
     }
696
     }
690
   }
697
   }
691
 };
698
 };

+ 10 - 1
src/xt_pages/dialysis/details/consumable/dialysisGood.vue ファイルの表示

1118
       },
1118
       },
1119
       toStatistics(){
1119
       toStatistics(){
1120
         this.tableList = []
1120
         this.tableList = []
1121
+        var arr = this.zoneIdList.join(",")
1122
+        var str = ""
1123
+         if(this.partion_type == 0){
1124
+            str = arr
1125
+         }
1126
+         if(this.partion_type != 0){
1127
+            str = this.partion_type.join(',')
1128
+         }
1129
+        
1121
          var params = {
1130
          var params = {
1122
           schedule_type:this.schedule_type,
1131
           schedule_type:this.schedule_type,
1123
-          partion_type:this.partion_type,
1132
+          partion_type:str,
1124
           selected_date:this.query.schedule_date,
1133
           selected_date:this.query.schedule_date,
1125
         }
1134
         }
1126
         getHisDialysisGoodCount(params).then(response=>{
1135
         getHisDialysisGoodCount(params).then(response=>{

+ 6 - 2
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue ファイルの表示

1367
               type: 'success',
1367
               type: 'success',
1368
               duration: 2000
1368
               duration: 2000
1369
             })
1369
             })
1370
-
1370
+            
1371
+            if(this.$store.getters.xt_user.template_info.org_id == 9671 || this.$store.getters.xt_user.template_info.org_id==3877 || this.$store.getters.xt_user.template_info.org_id ==10469){
1372
+              this.$parent.getParentMethods()
1373
+            }
1374
+            
1371
             const assessment_before_dislysis_resp = response.data.data.assessmentBeforeDislysis
1375
             const assessment_before_dislysis_resp = response.data.data.assessmentBeforeDislysis
1372
            
1376
            
1373
             var predialysis_evaluation = this.predialysis_evaluation
1377
             var predialysis_evaluation = this.predialysis_evaluation
1375
               // predialysis_evaluation[index] = assessment_before_dislysis_resp[index];
1379
               // predialysis_evaluation[index] = assessment_before_dislysis_resp[index];
1376
               this.$set(predialysis_evaluation, index, assessment_before_dislysis_resp[index])
1380
               this.$set(predialysis_evaluation, index, assessment_before_dislysis_resp[index])
1377
             }
1381
             }
1378
-           
1382
+             
1379
            
1383
            
1380
             let orgId = parseInt(sessionStorage.getItem("org_id"));
1384
             let orgId = parseInt(sessionStorage.getItem("org_id"));
1381
             axios.get('/api/index/patientsign/'+ orgId + '/'+ this.patient.id).then((res) => {
1385
             axios.get('/api/index/patientsign/'+ orgId + '/'+ this.patient.id).then((res) => {

+ 43 - 1
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue ファイルの表示

121
           <el-checkbox :label="dialys_mode"></el-checkbox>
121
           <el-checkbox :label="dialys_mode"></el-checkbox>
122
           <el-checkbox :label="long_time"></el-checkbox>
122
           <el-checkbox :label="long_time"></el-checkbox>
123
           <el-checkbox :label="target_ultrafiltration"></el-checkbox>
123
           <el-checkbox :label="target_ultrafiltration"></el-checkbox>
124
+          <el-checkbox :label="prescription_water"></el-checkbox>
124
           <el-checkbox :label="anticoagulant"></el-checkbox>
125
           <el-checkbox :label="anticoagulant"></el-checkbox>
125
           <el-checkbox :label="anticoagulant_shouji"></el-checkbox>
126
           <el-checkbox :label="anticoagulant_shouji"></el-checkbox>
126
           <el-checkbox :label="anticoagulant_weichi"></el-checkbox>
127
           <el-checkbox :label="anticoagulant_weichi"></el-checkbox>
333
       dialys_mode: "透析模式:",
334
       dialys_mode: "透析模式:",
334
       long_time: "透析时长:",
335
       long_time: "透析时长:",
335
       target_ultrafiltration: "目标超滤量:",
336
       target_ultrafiltration: "目标超滤量:",
337
+      prescription_water:"处方脱水量:",
336
       anticoagulant: "抗凝剂:",
338
       anticoagulant: "抗凝剂:",
337
       anticoagulant_shouji: "首剂:",
339
       anticoagulant_shouji: "首剂:",
338
       anticoagulant_weichi: "维持:",
340
       anticoagulant_weichi: "维持:",
818
               : "")
820
               : "")
819
         );
821
         );
820
       }
822
       }
821
-      if (str.indexOf("目标超滤量") != -1 && this.prescription == null) {
823
+       if (str.indexOf("目标超滤量") != -1 && this.prescription == null) {
822
         arr.push("目标超滤量:");
824
         arr.push("目标超滤量:");
823
       }
825
       }
826
+      if (str.indexOf("处方脱水量") != -1 && this.prescription == null) {
827
+        arr.push("处方脱水量:");
828
+      }
829
+      
830
+      if (str.indexOf("处方脱水量") != -1 && this.prescription != null) {
831
+        arr.push(
832
+          "处方脱水量:" +
833
+            (this.prescription.prescription_water
834
+              ? this.prescription.prescription_water
835
+              : "")
836
+        );
837
+      }
838
+
839
+        if (str.indexOf("处方脱水量") != -1 && this.prescription == null) {
840
+        arr.push("处方脱水量:");
841
+      }
842
+     
843
+
824
       if (str.indexOf("抗凝剂") != -1 && this.prescription != null) {
844
       if (str.indexOf("抗凝剂") != -1 && this.prescription != null) {
825
         arr.push(
845
         arr.push(
826
           "抗凝剂:" +
846
           "抗凝剂:" +
1333
           this.target_ultrafiltration = this.target_ultrafiltration;
1353
           this.target_ultrafiltration = this.target_ultrafiltration;
1334
         }
1354
         }
1335
 
1355
 
1356
+         if (this.prescription.prescription_water != "") {
1357
+          this.prescription_water = "处方脱水量:";
1358
+          this.prescription_water =
1359
+            this.prescription_water +
1360
+            (this.prescription.prescription_water
1361
+              ? this.prescription.prescription_water
1362
+              : "");
1363
+        } else {
1364
+          this.prescription_water = this.prescription_water;
1365
+        }
1366
+
1336
         if (this.prescription.anticoagulant != "") {
1367
         if (this.prescription.anticoagulant != "") {
1337
           this.anticoagulant = "抗凝剂:";
1368
           this.anticoagulant = "抗凝剂:";
1338
           this.anticoagulant =
1369
           this.anticoagulant =
1490
                 : "")
1521
                 : "")
1491
           );
1522
           );
1492
         }
1523
         }
1524
+
1525
+         if (
1526
+          this.double_check.dialysis_parameter_desc.indexOf("处方脱水量") != -1
1527
+        ) {
1528
+          this.checkListOne.push(
1529
+            "处方脱水量:" +
1530
+              (this.prescription.prescription_water
1531
+                ? this.prescription.prescription_water
1532
+                : "")
1533
+          );
1534
+        }
1493
         if (this.double_check.dialysis_parameter_desc.indexOf("抗凝剂") != -1) {
1535
         if (this.double_check.dialysis_parameter_desc.indexOf("抗凝剂") != -1) {
1494
           this.checkListOne.push(
1536
           this.checkListOne.push(
1495
             "抗凝剂:" +
1537
             "抗凝剂:" +

+ 1 - 0
src/xt_pages/dialysis/details/index.vue ファイルの表示

1718
       }
1718
       }
1719
     },
1719
     },
1720
     requestDialysisSchedules: function() {
1720
     requestDialysisSchedules: function() {
1721
+      console.log("时间人民站起来了呃")
1721
       var ymd = parseTime(this.selected_date, '{y}-{m}-{d}')
1722
       var ymd = parseTime(this.selected_date, '{y}-{m}-{d}')
1722
       getDialysisSchedules(ymd).then(rs => {
1723
       getDialysisSchedules(ymd).then(rs => {
1723
         var resp = rs.data
1724
         var resp = rs.data

+ 31 - 21
src/xt_pages/stock/detail/stockOutDetail.vue ファイルの表示

149
         </el-table-column>
149
         </el-table-column>
150
         <el-table-column label="数量" align="center">
150
         <el-table-column label="数量" align="center">
151
           <template slot-scope="scope">
151
           <template slot-scope="scope">
152
-            <span v-if="orgId!=9583">{{ scope.row.count }}</span>
153
-            <span v-if="orgId ==9583">{{getStockCount(scope.row.good_id) }}</span>
152
+            <span v-if="scope.row.is_total == 0">
153
+              <span v-if="orgId!=9583">{{ scope.row.count }}</span>
154
+              <span v-if="orgId ==9583">{{getStockCount(scope.row.good_id) }}</span>
155
+            </span> 
156
+            <span v-if="scope.row.is_total == 1">
157
+              {{scope.row.count}}
158
+            </span>
154
           </template>
159
           </template>
155
         </el-table-column>
160
         </el-table-column>
156
         <el-table-column label="总价" align="center">
161
         <el-table-column label="总价" align="center">
341
           this.wareOutList =  response.data.data.list
346
           this.wareOutList =  response.data.data.list
342
           console.log("党的20大长长",this.wareOutList)
347
           console.log("党的20大长长",this.wareOutList)
343
           var total = 0
348
           var total = 0
344
-
349
+          var objOne = {
350
+            warehouse_out_order_number: "合计",
351
+            is_total: 1,
352
+            total:total.toFixed(2),
353
+            WarehouseOut: {
354
+              warehouse_out_time: 0
355
+            },
356
+            count:0
357
+          }
345
           for (let i = 0; i < response.data.data.list.length; i++) {
358
           for (let i = 0; i < response.data.data.list.length; i++) {
346
             this.tableData.push(response.data.data.list[i])
359
             this.tableData.push(response.data.data.list[i])
347
 
360
 
349
             total += response.data.data.list[i].price * response.data.data.list[i].count
362
             total += response.data.data.list[i].price * response.data.data.list[i].count
350
             obj["is_total"] = 0;
363
             obj["is_total"] = 0;
351
             this.cancelStockDate.push(obj);
364
             this.cancelStockDate.push(obj);
352
-
365
+            objOne.count += response.data.data.list[i].count
353
           }
366
           }
354
-          this.cancelStockDate.push({
355
-            warehouse_out_order_number: "合计",
356
-            is_total: 1,
357
-            total:total.toFixed(2),
358
-            WarehouseOut: {
359
-              warehouse_out_time: 0
360
-            }
361
-          });
367
+       
368
+          this.cancelStockDate.push(objOne);
362
 
369
 
363
         }
370
         }
364
       });
371
       });
399
           this.wareOutList =  response.data.data.list
406
           this.wareOutList =  response.data.data.list
400
           console.log("党的20大长长",this.wareOutList)
407
           console.log("党的20大长长",this.wareOutList)
401
           var total = 0
408
           var total = 0
409
+          var objOne = {
410
+            warehouse_out_order_number: "合计",
411
+            is_total: 1,
412
+            total: total.toFixed(2),
413
+            WarehouseOut: {
414
+              warehouse_out_time: 0
415
+            },
416
+            count:0,
417
+          }
402
           for (let i = 0; i < response.data.data.list.length; i++) {
418
           for (let i = 0; i < response.data.data.list.length; i++) {
403
             this.tableData.push(response.data.data.list[i])
419
             this.tableData.push(response.data.data.list[i])
404
             var obj = response.data.data.list[i];
420
             var obj = response.data.data.list[i];
408
             if(response.data.data.list[i].price == 0){
424
             if(response.data.data.list[i].price == 0){
409
                total += response.data.data.list[i].GoodInfo.packing_price * response.data.data.list[i].count
425
                total += response.data.data.list[i].GoodInfo.packing_price * response.data.data.list[i].count
410
             }
426
             }
411
-
427
+            objOne.count +=response.data.data.list[i].count
412
             obj["is_total"] = 0;
428
             obj["is_total"] = 0;
429
+            
413
             this.cancelStockDate.push(obj);
430
             this.cancelStockDate.push(obj);
414
           }
431
           }
415
 
432
 
416
           this.tableDataList = response.data.data.list
433
           this.tableDataList = response.data.data.list
417
 
434
 
418
-          this.cancelStockDate.push({
419
-            warehouse_out_order_number: "合计",
420
-            is_total: 1,
421
-            total: total.toFixed(2),
422
-            WarehouseOut: {
423
-              warehouse_out_time: 0
424
-            }
425
-          });
435
+          this.cancelStockDate.push(objOne);
426
 
436
 
427
         }
437
         }
428
       });
438
       });

+ 41 - 14
src/xt_pages/stock/drugs/drugStockInOrder.vue ファイルの表示

252
       >
252
       >
253
         <el-table-column label="药品名称" align="center">
253
         <el-table-column label="药品名称" align="center">
254
           <template slot-scope="scope">
254
           <template slot-scope="scope">
255
-            {{ scope.row.drug.drug_name }}
255
+            <span v-if="scope.row.is_total == 0">
256
+              {{ scope.row.drug.drug_name }}
257
+            </span> 
256
           </template>
258
           </template>
257
         </el-table-column>
259
         </el-table-column>
258
         <el-table-column label="药品类型" align="center">
260
         <el-table-column label="药品类型" align="center">
259
           <template slot-scope="scope">
261
           <template slot-scope="scope">
260
-            {{ getDrugType(scope.row.drug.drug_type) }}
262
+            <span v-if="scope.row.is_total == 0"> {{ getDrugType(scope.row.drug.drug_type) }}</span>
261
           </template>
263
           </template>
262
         </el-table-column>
264
         </el-table-column>
263
         <el-table-column label="规格&单位" align="center">
265
         <el-table-column label="规格&单位" align="center">
264
           <template slot-scope="scope">
266
           <template slot-scope="scope">
265
-            {{ scope.row.drug.dose }}&nbsp;{{ scope.row.drug.dose_unit }}*{{
267
+            <span v-if="scope.row.is_total ==0">{{ scope.row.drug.dose }}&nbsp;{{ scope.row.drug.dose_unit }}*{{
266
               scope.row.drug.min_number
268
               scope.row.drug.min_number
267
             }}{{ scope.row.drug.min_unit }}/{{ scope.row.drug.max_unit }}
269
             }}{{ scope.row.drug.min_unit }}/{{ scope.row.drug.max_unit }}
270
+            </span> 
268
           </template>
271
           </template>
269
         </el-table-column>
272
         </el-table-column>
270
         <el-table-column label="国家编码" align="center">
273
         <el-table-column label="国家编码" align="center">
271
           <template slot-scope="scope">
274
           <template slot-scope="scope">
272
-            {{ scope.row.drug.medical_insurance_number }}
275
+            <span v-if="scope.row.is_total == 0">
276
+               {{ scope.row.drug.medical_insurance_number }}
277
+            </span>
273
           </template>
278
           </template>
274
         </el-table-column>
279
         </el-table-column>
275
         <el-table-column label="批号" align="center">
280
         <el-table-column label="批号" align="center">
276
           <template slot-scope="scope">
281
           <template slot-scope="scope">
277
-            {{ scope.row.batch_number }}
282
+            <span v-if="scope.row.is_total == 0"> {{ scope.row.batch_number }}</span>
278
           </template>
283
           </template>
279
         </el-table-column>
284
         </el-table-column>
280
         <el-table-column label="仓库名称" align="center">
285
         <el-table-column label="仓库名称" align="center">
281
           <template slot-scope="scope">
286
           <template slot-scope="scope">
282
-            {{ getHouseName(scope.row.storehouse_id) }}
287
+            <span v-if="scope.row.is_total == 0">
288
+               {{ getHouseName(scope.row.storehouse_id) }}
289
+            </span>
283
           </template>
290
           </template>
284
         </el-table-column>
291
         </el-table-column>
285
         <el-table-column label="入库数量" align="center">
292
         <el-table-column label="入库数量" align="center">
286
           <template slot-scope="scope">
293
           <template slot-scope="scope">
287
-            {{ scope.row.warehousing_count }}{{ scope.row.max_unit }}
294
+            <span v-if="scope.row.is_total == 0">
295
+               {{ scope.row.warehousing_count }}{{ scope.row.max_unit }}
296
+            </span>
288
           </template>
297
           </template>
289
         </el-table-column>
298
         </el-table-column>
290
         <!-- <el-table-column label="拆零零售价" align="center">
299
         <!-- <el-table-column label="拆零零售价" align="center">
294
         </el-table-column> -->
303
         </el-table-column> -->
295
         <el-table-column label="进货价" align="center">
304
         <el-table-column label="进货价" align="center">
296
           <template slot-scope="scope">
305
           <template slot-scope="scope">
297
-            {{ scope.row.price }}
306
+            <span v-if="scope.row.is_total == 0">{{ scope.row.price }}</span> 
298
           </template>
307
           </template>
299
         </el-table-column>
308
         </el-table-column>
300
         <el-table-column label="总价" align="center">
309
         <el-table-column label="总价" align="center">
301
           <template slot-scope="scope">
310
           <template slot-scope="scope">
302
             <!-- {{scope.row.total_price}} -->
311
             <!-- {{scope.row.total_price}} -->
303
-            {{ (scope.row.warehousing_count * scope.row.price).toFixed(2) }}
312
+            <span v-if="scope.row.is_total == 0">{{ (scope.row.warehousing_count * scope.row.price).toFixed(2) }}</span> 
313
+            <span v-if="scope.row.is_total == 1">
314
+              {{(scope.row.total_count).toFixed(2)}}
315
+            </span>
304
           </template>
316
           </template>
305
         </el-table-column>
317
         </el-table-column>
306
         <el-table-column label="生产厂家" align="center">
318
         <el-table-column label="生产厂家" align="center">
307
           <template slot-scope="scope">
319
           <template slot-scope="scope">
308
-            {{ getManufacturer(scope.row.manufacturer) }}
320
+            <span v-if="scope.row.is_total== 0">
321
+               {{ getManufacturer(scope.row.manufacturer) }}
322
+            </span>
309
           </template>
323
           </template>
310
         </el-table-column>
324
         </el-table-column>
311
         <el-table-column label="生产日期" align="center">
325
         <el-table-column label="生产日期" align="center">
312
           <template slot-scope="scope">
326
           <template slot-scope="scope">
313
-            {{ getTime(scope.row.product_date) }}
327
+           <span v-if="scope.row.is_total ==0">{{ getTime(scope.row.product_date) }} </span>  
314
           </template>
328
           </template>
315
         </el-table-column>
329
         </el-table-column>
316
         <el-table-column label="有效日期" align="center">
330
         <el-table-column label="有效日期" align="center">
317
           <template slot-scope="scope">
331
           <template slot-scope="scope">
332
+           <span v-if="scope.row.is_total == 0">
318
             {{ getTime(scope.row.expiry_date) }}
333
             {{ getTime(scope.row.expiry_date) }}
334
+            </span> 
319
           </template>
335
           </template>
320
         </el-table-column>
336
         </el-table-column>
321
         <el-table-column label="经销商" align="center">
337
         <el-table-column label="经销商" align="center">
322
           <template slot-scope="scope">
338
           <template slot-scope="scope">
323
-            {{ getDealer(scope.row.dealer) }}
339
+            <span v-if="scope.row.is_total == 0">
340
+               {{ getDealer(scope.row.dealer) }}
341
+            </span>
324
           </template>
342
           </template>
325
         </el-table-column>
343
         </el-table-column>
326
         <el-table-column label="批准文号" align="center">
344
         <el-table-column label="批准文号" align="center">
327
           <template slot-scope="scope">
345
           <template slot-scope="scope">
328
-            {{ scope.row.number }}
346
+            <span v-if="scope.row.is_total == 0">
347
+               {{ scope.row.number }}
348
+            </span>
329
           </template>
349
           </template>
330
         </el-table-column>
350
         </el-table-column>
331
         <el-table-column label="备注" align="center">
351
         <el-table-column label="备注" align="center">
332
           <template slot-scope="scope">
352
           <template slot-scope="scope">
333
-            {{ scope.row.remark }}
353
+           <span v-if="scope.row.is_total == 0">
354
+             {{ scope.row.remark }}
355
+           </span>
334
           </template>
356
           </template>
335
         </el-table-column>
357
         </el-table-column>
336
       </el-table>
358
       </el-table>
774
           this.$message.error(response.data.msg);
796
           this.$message.error(response.data.msg);
775
           return false;
797
           return false;
776
         } else {
798
         } else {
799
+          var obj = {total_count:0,is_total:1}
777
           for (let i = 0; i < response.data.data.info.length; i++) {
800
           for (let i = 0; i < response.data.data.info.length; i++) {
801
+            response.data.data.info[i].is_total = 0
778
             this.showOne = true;
802
             this.showOne = true;
779
             this.WarehouseInfo.warehouseInfoDate.push(
803
             this.WarehouseInfo.warehouseInfoDate.push(
780
               response.data.data.info[i]
804
               response.data.data.info[i]
781
             );
805
             );
806
+            obj.total_count += (response.data.data.info[i].warehousing_count *response.data.data.info[i].price)
782
           }
807
           }
808
+          this.WarehouseInfo.warehouseInfoDate.push(obj)
809
+        
783
           this.WarehouseInfo.warehouse = response.data.data.warehousing;
810
           this.WarehouseInfo.warehouse = response.data.data.warehousing;
784
           this.getAllDrugList();
811
           this.getAllDrugList();
785
         }
812
         }

+ 54 - 16
src/xt_pages/stock/stockInOrder.vue ファイルの表示

239
         >
239
         >
240
         <el-table-column label="耗材名称" align="center">
240
         <el-table-column label="耗材名称" align="center">
241
           <template slot-scope="scope">
241
           <template slot-scope="scope">
242
+           <span v-if="scope.row.is_total == 0">
242
             {{ scope.row.GoodInfo.good_name }}
243
             {{ scope.row.GoodInfo.good_name }}
244
+            </span> 
243
           </template>
245
           </template>
244
         </el-table-column>
246
         </el-table-column>
245
         <el-table-column label="耗材类型" align="center">
247
         <el-table-column label="耗材类型" align="center">
246
           <template slot-scope="scope">
248
           <template slot-scope="scope">
247
-            {{  getTypeName(scope.row.GoodInfo.good_type_id)}}
249
+            <span v-if="scope.row.is_total ==0">
250
+              {{ getTypeName(scope.row.GoodInfo.good_type_id)}}
251
+            </span> 
248
           </template>
252
           </template>
249
         </el-table-column>
253
         </el-table-column>
250
         <el-table-column label="规格&单位" align="center">
254
         <el-table-column label="规格&单位" align="center">
251
           <template slot-scope="scope">
255
           <template slot-scope="scope">
252
-            {{ scope.row.GoodInfo.specification_name}} / {{scope.row.GoodInfo.packing_unit}}
256
+            <span v-if="scope.row.is_total == 0">
257
+               {{ scope.row.GoodInfo.specification_name}} / {{scope.row.GoodInfo.packing_unit}}
258
+            </span>
253
           </template>
259
           </template>
254
         </el-table-column>
260
         </el-table-column>
255
         <el-table-column label="国家编码" align="center">
261
         <el-table-column label="国家编码" align="center">
256
           <template slot-scope="scope">
262
           <template slot-scope="scope">
257
-            {{ scope.row.GoodInfo.social_security_directory_code}}
263
+            <span v-if="scope.row.is_total == 0">
264
+              {{ scope.row.GoodInfo.social_security_directory_code}}
265
+            </span> 
258
           </template>
266
           </template>
259
         </el-table-column>
267
         </el-table-column>
260
         <el-table-column label="批号" align="center">
268
         <el-table-column label="批号" align="center">
261
           <template slot-scope="scope">
269
           <template slot-scope="scope">
262
-            {{ scope.row.number}}
270
+            <span v-if="scope.row.is_total== 0">
271
+               {{ scope.row.number}}
272
+            </span>
263
           </template>
273
           </template>
264
         </el-table-column>
274
         </el-table-column>
265
          <el-table-column label="仓库名称" align="center">
275
          <el-table-column label="仓库名称" align="center">
266
           <template slot-scope="scope">
276
           <template slot-scope="scope">
267
-            {{getHouseName(scope.row.storehouse_id)}}
277
+            <span v-if="scope.row.is_total == 0">
278
+              {{getHouseName(scope.row.storehouse_id)}}
279
+            </span> 
268
           </template>
280
           </template>
269
         </el-table-column>
281
         </el-table-column>
270
 
282
 
271
         <el-table-column label="入库数量" align="center">
283
         <el-table-column label="入库数量" align="center">
272
           <template slot-scope="scope">
284
           <template slot-scope="scope">
273
-            {{ scope.row.warehousing_count}}{{scope.row.GoodInfo.packing_unit}}
285
+           <span v-if="scope.row.is_total == 0">{{ scope.row.warehousing_count}}{{scope.row.GoodInfo.packing_unit}} </span> 
274
           </template>
286
           </template>
275
         </el-table-column>
287
         </el-table-column>
276
          <!-- <el-table-column label="零售价" align="center">
288
          <!-- <el-table-column label="零售价" align="center">
280
         </el-table-column> -->
292
         </el-table-column> -->
281
         <el-table-column label="进货价" align="center">
293
         <el-table-column label="进货价" align="center">
282
           <template slot-scope="scope">
294
           <template slot-scope="scope">
283
-            {{ scope.row.price}}
295
+            <span v-if="scope.row.is_total == 0">
296
+              {{ scope.row.price}}
297
+            </span> 
284
           </template>
298
           </template>
285
         </el-table-column>
299
         </el-table-column>
286
         <el-table-column label="总价" align="center">
300
         <el-table-column label="总价" align="center">
287
           <template slot-scope="scope">
301
           <template slot-scope="scope">
288
-            {{ (scope.row.warehousing_count * scope.row.price).toFixed(2)}}
302
+            <span v-if="scope.row.is_total==0">
303
+               {{ (scope.row.warehousing_count * scope.row.price).toFixed(2)}}
304
+            </span>
305
+            <span v-if="scope.row.is_total== 1">
306
+              {{(scope.row.total_count).toFixed(2)}}
307
+            </span>
289
           </template>
308
           </template>
290
         </el-table-column>
309
         </el-table-column>
291
         <el-table-column label="生产厂家" align="center">
310
         <el-table-column label="生产厂家" align="center">
292
           <template slot-scope="scope">
311
           <template slot-scope="scope">
293
-            {{ getManufactuerName(scope.row.manufacturer)}}
312
+            <span v-if="scope.row.is_total == 0">
313
+              {{ getManufactuerName(scope.row.manufacturer)}}
314
+             </span> 
294
           </template>
315
           </template>
295
         </el-table-column>
316
         </el-table-column>
296
         <el-table-column label="生产日期" align="center">
317
         <el-table-column label="生产日期" align="center">
297
           <template slot-scope="scope">
318
           <template slot-scope="scope">
298
-            {{ getTime(scope.row.product_date,"{y}-{m}-{d}")}}
319
+           <span v-if="scope.row.is_total == 0">
320
+             {{ getTime(scope.row.product_date,"{y}-{m}-{d}")}}
321
+            </span> 
299
           </template>
322
           </template>
300
         </el-table-column>
323
         </el-table-column>
301
         <el-table-column label="有效期" align="center">
324
         <el-table-column label="有效期" align="center">
302
           <template slot-scope="scope">
325
           <template slot-scope="scope">
303
-            {{ getTime(scope.row.expiry_date,"{y}-{m}-{d}")}}
326
+            <span v-if="scope.row.is_total == 0">
327
+               {{ getTime(scope.row.expiry_date,"{y}-{m}-{d}")}}
328
+            </span>
304
           </template>
329
           </template>
305
         </el-table-column>
330
         </el-table-column>
306
        <el-table-column label="经销商" align="center">
331
        <el-table-column label="经销商" align="center">
307
           <template slot-scope="scope">
332
           <template slot-scope="scope">
308
-            {{ getDealerName(scope.row.dealer)}}
333
+          <span v-if="scope.row.is_total == 0">
334
+             {{ getDealerName(scope.row.dealer)}}
335
+            </span>  
309
           </template>
336
           </template>
310
         </el-table-column>
337
         </el-table-column>
311
        <el-table-column label="批准文号" align="center">
338
        <el-table-column label="批准文号" align="center">
312
           <template slot-scope="scope">
339
           <template slot-scope="scope">
313
-            {{ scope.row.license_number}}
340
+           <span v-if="scope.row.is_total ==0"> {{ scope.row.license_number}}</span>
314
           </template>
341
           </template>
315
         </el-table-column>
342
         </el-table-column>
316
         <el-table-column label="注册编码" align="center">
343
         <el-table-column label="注册编码" align="center">
317
           <template slot-scope="scope">
344
           <template slot-scope="scope">
318
-            {{ scope.row.register_number}}
345
+            <span v-if="scope.row.is_total == 0">
346
+               {{ scope.row.register_number}}
347
+            </span>
319
           </template>
348
           </template>
320
         </el-table-column>
349
         </el-table-column>
321
         <el-table-column label="备注" align="center">
350
         <el-table-column label="备注" align="center">
322
           <template slot-scope="scope">
351
           <template slot-scope="scope">
323
-            {{ scope.row.remark }}
352
+            <span v-if="scope.row.is_total == 0">
353
+               {{ scope.row.remark }}
354
+            </span>
324
           </template>
355
           </template>
325
         </el-table-column>
356
         </el-table-column>
326
         </el-table>
357
         </el-table>
423
           <el-table-column label="总价" min-width="20" align="center">
454
           <el-table-column label="总价" min-width="20" align="center">
424
             <template slot-scope="scope">
455
             <template slot-scope="scope">
425
               {{ calculate(scope.row.price * scope.row.warehousing_count) }}
456
               {{ calculate(scope.row.price * scope.row.warehousing_count) }}
457
+             
426
             </template>
458
             </template>
427
           </el-table-column>
459
           </el-table-column>
428
 
460
 
1325
           return false;
1357
           return false;
1326
         } else {
1358
         } else {
1327
           this.tableShow = true
1359
           this.tableShow = true
1360
+          var  obj = {name:"总计",total_count:0,is_total:1}
1328
           for (let i = 0; i < response.data.data.info.length; i++) {
1361
           for (let i = 0; i < response.data.data.info.length; i++) {
1329
             this.WarehouseInfo.warehouseInfoDate.push(response.data.data.info[i]);
1362
             this.WarehouseInfo.warehouseInfoDate.push(response.data.data.info[i]);
1330
             response.data.data.info[i].price = response.data.data.info[i].price.toString();
1363
             response.data.data.info[i].price = response.data.data.info[i].price.toString();
1331
             response.data.data.info[i].warehousing_count = response.data.data.info[i].warehousing_count.toString();
1364
             response.data.data.info[i].warehousing_count = response.data.data.info[i].warehousing_count.toString();
1332
-
1365
+           
1333
             this.recordInfo.recordData.push(response.data.data.info[i]);
1366
             this.recordInfo.recordData.push(response.data.data.info[i]);
1367
+            console.log("tablelist+++==+",this.tableList)
1368
+            response.data.data.info[i].total_count = (response.data.data.info[i].warehousing_count * response.data.data.info[i].price).toFixed(2)
1369
+            response.data.data.info[i].is_total = 0
1370
+            obj.total_count += (response.data.data.info[i].warehousing_count * response.data.data.info[i].price)
1334
             this.tableList.push(response.data.data.info[i])
1371
             this.tableList.push(response.data.data.info[i])
1335
           }
1372
           }
1373
+           this.tableList.push(obj)
1336
            this.warehouse = response.data.data.warehousing;
1374
            this.warehouse = response.data.data.warehousing;
1337
            this.warehousing_time = this.getTime(this.warehouse.warehousing_time,"{y}-{m}-{d}");
1375
            this.warehousing_time = this.getTime(this.warehouse.warehousing_time,"{y}-{m}-{d}");
1338
 
1376
 

+ 31 - 3
src/xt_pages/user/firstDiseasePrint.vue ファイルの表示

57
               </div>
57
               </div>
58
 
58
 
59
              <div class="inline_block" style="float:right;margin-right:50px">
59
              <div class="inline_block" style="float:right;margin-right:50px">
60
-               <span style="font-size:20px">医生签名: {{getDoctor(hosDetail.doctor)}}</span>
61
-               
60
+               <span style="font-size:20px">医生签名:</span>
61
+                <span v-if="setAdminUserES(hosDetail==null?0:(hosDetail.doctor?hosDetail.doctor:hosDetail.doctor)) == ''">
62
+                  {{getDoctor(hosDetail==null?0:(hosDetail.doctor?hosDetail.doctor:hosDetail.doctor))}}
63
+                  </span>
64
+                  <span v-else>
65
+                    <img style="height:30px;" :src="setAdminUserES(hosDetail==null?0:(hosDetail.doctor?hosDetail.doctor:hosDetail.doctor))" alt="" srcset="">
66
+                  </span>
62
               </div>
67
               </div>
63
           </div>
68
           </div>
64
 
69
 
95
      patient:{},
100
      patient:{},
96
      doctorList:[],
101
      doctorList:[],
97
     educationOptions:[],
102
     educationOptions:[],
103
+    operators:[],
104
+    operatorMaps: {},
98
     }
105
     }
99
   },
106
   },
100
   methods: {
107
   methods: {
169
       getAllDoctorList().then(response=>{
176
       getAllDoctorList().then(response=>{
170
         if(response.data.state == 1){
177
         if(response.data.state == 1){
171
         var list = response.data.data.list
178
         var list = response.data.data.list
172
-        this.doctorList = list
179
+         this.doctorList = list
180
+         this.operators = response.data.data.operators
181
+           if (this.operators.length > 0) {
182
+            var operatorsLen = this.operators.length
183
+            for (var index = 0; index < operatorsLen; index++) {
184
+              this.$set(
185
+                this.operatorMaps,
186
+                this.operators[index].creator,
187
+                this.operators[index]
188
+              )
189
+            }
190
+          }
173
         }
191
         }
174
        })
192
        })
175
      },
193
      },
215
         }
233
         }
216
        return name
234
        return name
217
      },
235
      },
236
+    setAdminUserES(id) {
237
+      if (id === 0) {
238
+        return ''
239
+      }
240
+      if (id in this.operatorMaps) {
241
+        return this.operatorMaps[id].url
242
+      } else {
243
+        return ''
244
+      }
245
+    },
218
   },
246
   },
219
  
247
  
220
   created() {
248
   created() {