Procházet zdrojové kódy

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

28169 před 2 roky
rodič
revize
75665f24a9

+ 7 - 0
src/xt_pages/dialysis/details/NavIgation.vue Zobrazit soubor

@@ -663,6 +663,7 @@ export default {
663 663
       this.$refs.finish_dialog.show(this.dialysis_order);
664 664
     },
665 665
     showPrescription: function() {
666
+      console.log("prescirpiton+++++++++++",this.prescription)
666 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 669
     showAccepts: function() {
@@ -686,6 +687,12 @@ export default {
686 687
         this.assessment_after_dislysis
687 688
       );
688 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 Zobrazit soubor

@@ -1118,9 +1118,18 @@
1118 1118
       },
1119 1119
       toStatistics(){
1120 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 1130
          var params = {
1122 1131
           schedule_type:this.schedule_type,
1123
-          partion_type:this.partion_type,
1132
+          partion_type:str,
1124 1133
           selected_date:this.query.schedule_date,
1125 1134
         }
1126 1135
         getHisDialysisGoodCount(params).then(response=>{

+ 6 - 2
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Zobrazit soubor

@@ -1367,7 +1367,11 @@
1367 1367
               type: 'success',
1368 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 1375
             const assessment_before_dislysis_resp = response.data.data.assessmentBeforeDislysis
1372 1376
            
1373 1377
             var predialysis_evaluation = this.predialysis_evaluation
@@ -1375,7 +1379,7 @@
1375 1379
               // predialysis_evaluation[index] = assessment_before_dislysis_resp[index];
1376 1380
               this.$set(predialysis_evaluation, index, assessment_before_dislysis_resp[index])
1377 1381
             }
1378
-           
1382
+             
1379 1383
            
1380 1384
             let orgId = parseInt(sessionStorage.getItem("org_id"));
1381 1385
             axios.get('/api/index/patientsign/'+ orgId + '/'+ this.patient.id).then((res) => {

+ 43 - 1
src/xt_pages/dialysis/details/dialog/doubleCheckDialog.vue Zobrazit soubor

@@ -121,6 +121,7 @@
121 121
           <el-checkbox :label="dialys_mode"></el-checkbox>
122 122
           <el-checkbox :label="long_time"></el-checkbox>
123 123
           <el-checkbox :label="target_ultrafiltration"></el-checkbox>
124
+          <el-checkbox :label="prescription_water"></el-checkbox>
124 125
           <el-checkbox :label="anticoagulant"></el-checkbox>
125 126
           <el-checkbox :label="anticoagulant_shouji"></el-checkbox>
126 127
           <el-checkbox :label="anticoagulant_weichi"></el-checkbox>
@@ -333,6 +334,7 @@ export default {
333 334
       dialys_mode: "透析模式:",
334 335
       long_time: "透析时长:",
335 336
       target_ultrafiltration: "目标超滤量:",
337
+      prescription_water:"处方脱水量:",
336 338
       anticoagulant: "抗凝剂:",
337 339
       anticoagulant_shouji: "首剂:",
338 340
       anticoagulant_weichi: "维持:",
@@ -818,9 +820,27 @@ export default {
818 820
               : "")
819 821
         );
820 822
       }
821
-      if (str.indexOf("目标超滤量") != -1 && this.prescription == null) {
823
+       if (str.indexOf("目标超滤量") != -1 && this.prescription == null) {
822 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 844
       if (str.indexOf("抗凝剂") != -1 && this.prescription != null) {
825 845
         arr.push(
826 846
           "抗凝剂:" +
@@ -1333,6 +1353,17 @@ export default {
1333 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 1367
         if (this.prescription.anticoagulant != "") {
1337 1368
           this.anticoagulant = "抗凝剂:";
1338 1369
           this.anticoagulant =
@@ -1490,6 +1521,17 @@ export default {
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 1535
         if (this.double_check.dialysis_parameter_desc.indexOf("抗凝剂") != -1) {
1494 1536
           this.checkListOne.push(
1495 1537
             "抗凝剂:" +

+ 1 - 0
src/xt_pages/dialysis/details/index.vue Zobrazit soubor

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

+ 31 - 21
src/xt_pages/stock/detail/stockOutDetail.vue Zobrazit soubor

@@ -149,8 +149,13 @@
149 149
         </el-table-column>
150 150
         <el-table-column label="数量" align="center">
151 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 159
           </template>
155 160
         </el-table-column>
156 161
         <el-table-column label="总价" align="center">
@@ -341,7 +346,15 @@ export default {
341 346
           this.wareOutList =  response.data.data.list
342 347
           console.log("党的20大长长",this.wareOutList)
343 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 358
           for (let i = 0; i < response.data.data.list.length; i++) {
346 359
             this.tableData.push(response.data.data.list[i])
347 360
 
@@ -349,16 +362,10 @@ export default {
349 362
             total += response.data.data.list[i].price * response.data.data.list[i].count
350 363
             obj["is_total"] = 0;
351 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,6 +406,15 @@ export default {
399 406
           this.wareOutList =  response.data.data.list
400 407
           console.log("党的20大长长",this.wareOutList)
401 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 418
           for (let i = 0; i < response.data.data.list.length; i++) {
403 419
             this.tableData.push(response.data.data.list[i])
404 420
             var obj = response.data.data.list[i];
@@ -408,21 +424,15 @@ export default {
408 424
             if(response.data.data.list[i].price == 0){
409 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 428
             obj["is_total"] = 0;
429
+            
413 430
             this.cancelStockDate.push(obj);
414 431
           }
415 432
 
416 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 Zobrazit soubor

@@ -252,39 +252,48 @@
252 252
       >
253 253
         <el-table-column label="药品名称" align="center">
254 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 258
           </template>
257 259
         </el-table-column>
258 260
         <el-table-column label="药品类型" align="center">
259 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 263
           </template>
262 264
         </el-table-column>
263 265
         <el-table-column label="规格&单位" align="center">
264 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 268
               scope.row.drug.min_number
267 269
             }}{{ scope.row.drug.min_unit }}/{{ scope.row.drug.max_unit }}
270
+            </span> 
268 271
           </template>
269 272
         </el-table-column>
270 273
         <el-table-column label="国家编码" align="center">
271 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 278
           </template>
274 279
         </el-table-column>
275 280
         <el-table-column label="批号" align="center">
276 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 283
           </template>
279 284
         </el-table-column>
280 285
         <el-table-column label="仓库名称" align="center">
281 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 290
           </template>
284 291
         </el-table-column>
285 292
         <el-table-column label="入库数量" align="center">
286 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 297
           </template>
289 298
         </el-table-column>
290 299
         <!-- <el-table-column label="拆零零售价" align="center">
@@ -294,43 +303,56 @@
294 303
         </el-table-column> -->
295 304
         <el-table-column label="进货价" align="center">
296 305
           <template slot-scope="scope">
297
-            {{ scope.row.price }}
306
+            <span v-if="scope.row.is_total == 0">{{ scope.row.price }}</span> 
298 307
           </template>
299 308
         </el-table-column>
300 309
         <el-table-column label="总价" align="center">
301 310
           <template slot-scope="scope">
302 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 316
           </template>
305 317
         </el-table-column>
306 318
         <el-table-column label="生产厂家" align="center">
307 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 323
           </template>
310 324
         </el-table-column>
311 325
         <el-table-column label="生产日期" align="center">
312 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 328
           </template>
315 329
         </el-table-column>
316 330
         <el-table-column label="有效日期" align="center">
317 331
           <template slot-scope="scope">
332
+           <span v-if="scope.row.is_total == 0">
318 333
             {{ getTime(scope.row.expiry_date) }}
334
+            </span> 
319 335
           </template>
320 336
         </el-table-column>
321 337
         <el-table-column label="经销商" align="center">
322 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 342
           </template>
325 343
         </el-table-column>
326 344
         <el-table-column label="批准文号" align="center">
327 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 349
           </template>
330 350
         </el-table-column>
331 351
         <el-table-column label="备注" align="center">
332 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 356
           </template>
335 357
         </el-table-column>
336 358
       </el-table>
@@ -774,12 +796,17 @@ export default {
774 796
           this.$message.error(response.data.msg);
775 797
           return false;
776 798
         } else {
799
+          var obj = {total_count:0,is_total:1}
777 800
           for (let i = 0; i < response.data.data.info.length; i++) {
801
+            response.data.data.info[i].is_total = 0
778 802
             this.showOne = true;
779 803
             this.WarehouseInfo.warehouseInfoDate.push(
780 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 810
           this.WarehouseInfo.warehouse = response.data.data.warehousing;
784 811
           this.getAllDrugList();
785 812
         }

+ 54 - 16
src/xt_pages/stock/stockInOrder.vue Zobrazit soubor

@@ -239,38 +239,50 @@
239 239
         >
240 240
         <el-table-column label="耗材名称" align="center">
241 241
           <template slot-scope="scope">
242
+           <span v-if="scope.row.is_total == 0">
242 243
             {{ scope.row.GoodInfo.good_name }}
244
+            </span> 
243 245
           </template>
244 246
         </el-table-column>
245 247
         <el-table-column label="耗材类型" align="center">
246 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 252
           </template>
249 253
         </el-table-column>
250 254
         <el-table-column label="规格&单位" align="center">
251 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 259
           </template>
254 260
         </el-table-column>
255 261
         <el-table-column label="国家编码" align="center">
256 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 266
           </template>
259 267
         </el-table-column>
260 268
         <el-table-column label="批号" align="center">
261 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 273
           </template>
264 274
         </el-table-column>
265 275
          <el-table-column label="仓库名称" align="center">
266 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 280
           </template>
269 281
         </el-table-column>
270 282
 
271 283
         <el-table-column label="入库数量" align="center">
272 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 286
           </template>
275 287
         </el-table-column>
276 288
          <!-- <el-table-column label="零售价" align="center">
@@ -280,47 +292,66 @@
280 292
         </el-table-column> -->
281 293
         <el-table-column label="进货价" align="center">
282 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 298
           </template>
285 299
         </el-table-column>
286 300
         <el-table-column label="总价" align="center">
287 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 308
           </template>
290 309
         </el-table-column>
291 310
         <el-table-column label="生产厂家" align="center">
292 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 315
           </template>
295 316
         </el-table-column>
296 317
         <el-table-column label="生产日期" align="center">
297 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 322
           </template>
300 323
         </el-table-column>
301 324
         <el-table-column label="有效期" align="center">
302 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 329
           </template>
305 330
         </el-table-column>
306 331
        <el-table-column label="经销商" align="center">
307 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 336
           </template>
310 337
         </el-table-column>
311 338
        <el-table-column label="批准文号" align="center">
312 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 341
           </template>
315 342
         </el-table-column>
316 343
         <el-table-column label="注册编码" align="center">
317 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 348
           </template>
320 349
         </el-table-column>
321 350
         <el-table-column label="备注" align="center">
322 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 355
           </template>
325 356
         </el-table-column>
326 357
         </el-table>
@@ -423,6 +454,7 @@
423 454
           <el-table-column label="总价" min-width="20" align="center">
424 455
             <template slot-scope="scope">
425 456
               {{ calculate(scope.row.price * scope.row.warehousing_count) }}
457
+             
426 458
             </template>
427 459
           </el-table-column>
428 460
 
@@ -1325,14 +1357,20 @@ export default {
1325 1357
           return false;
1326 1358
         } else {
1327 1359
           this.tableShow = true
1360
+          var  obj = {name:"总计",total_count:0,is_total:1}
1328 1361
           for (let i = 0; i < response.data.data.info.length; i++) {
1329 1362
             this.WarehouseInfo.warehouseInfoDate.push(response.data.data.info[i]);
1330 1363
             response.data.data.info[i].price = response.data.data.info[i].price.toString();
1331 1364
             response.data.data.info[i].warehousing_count = response.data.data.info[i].warehousing_count.toString();
1332
-
1365
+           
1333 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 1371
             this.tableList.push(response.data.data.info[i])
1335 1372
           }
1373
+           this.tableList.push(obj)
1336 1374
            this.warehouse = response.data.data.warehousing;
1337 1375
            this.warehousing_time = this.getTime(this.warehouse.warehousing_time,"{y}-{m}-{d}");
1338 1376
 

+ 31 - 3
src/xt_pages/user/firstDiseasePrint.vue Zobrazit soubor

@@ -57,8 +57,13 @@
57 57
               </div>
58 58
 
59 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 67
               </div>
63 68
           </div>
64 69
 
@@ -95,6 +100,8 @@ export default {
95 100
      patient:{},
96 101
      doctorList:[],
97 102
     educationOptions:[],
103
+    operators:[],
104
+    operatorMaps: {},
98 105
     }
99 106
   },
100 107
   methods: {
@@ -169,7 +176,18 @@ export default {
169 176
       getAllDoctorList().then(response=>{
170 177
         if(response.data.state == 1){
171 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,6 +233,16 @@ export default {
215 233
         }
216 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 248
   created() {