Browse Source

11月14日 库存扣减更新

XMLWAN 3 years ago
parent
commit
bbf68178bf

+ 1 - 3
src/api/his/his.js View File

@@ -41,6 +41,7 @@ export function getDoctors() {
41 41
 }
42 42
 
43 43
 export function createHisPrescription(data, params) {
44
+  console.log('param2323232323233223233223332322323', params)
44 45
   return request({
45 46
     url: '/api/hisprescription/create',
46 47
     method: 'post',
@@ -516,7 +517,6 @@ export function GetSummarySettle(params) {
516 517
   })
517 518
 }
518 519
 
519
-
520 520
 export function GetLabelList(params) {
521 521
   return request({
522 522
     url: '/api/his/inspectionlist/get',
@@ -525,8 +525,6 @@ export function GetLabelList(params) {
525 525
   })
526 526
 }
527 527
 
528
-
529
-
530 528
 export function GetLabelInfo(params) {
531 529
   return request({
532 530
     url: '/api/his/inspectioninfo/get',

+ 6 - 6
src/xt_pages/dialysis/batch_print/batch_print_order_fortyThree.vue View File

@@ -462,7 +462,7 @@
462 462
                         </td>
463 463
                         <td height="32px" colspan="2" class="advice-name" style="padding-left:7px;">
464 464
                             <span style="padding-left:5px;display:inline-block;">
465
-                              <span>{{ advice.project.project_name }}</span>
465
+                              <span>{{ advice && advice.project ? advice.project.project_name : '' }}</span>
466 466
                             </span>
467 467
                         </td>
468 468
 
@@ -757,20 +757,20 @@ export default {
757 757
               this.records[recordIndex].his_advices &&
758 758
               this.records[recordIndex].his_advices.length + this.records[recordIndex].his_project.length < 6
759 759
             ) {
760
-              delghThree = 6 - this.records[recordIndex].his_advices.length
760
+              delghThree = 6 - (this.records[recordIndex].his_advices.length + this.records[recordIndex].his_project.length)
761 761
             } else {
762 762
               delghThree = 0
763 763
             }
764 764
 
765 765
             if (delghThree > 0) {
766 766
               if (
767
-                typeof this.records[recordIndex].his_advices === 'undefined' ||
768
-                this.records[recordIndex].his_advices == null
767
+                typeof this.records[recordIndex].his_project === 'undefined' ||
768
+                this.records[recordIndex].his_project == null
769 769
               ) {
770
-                this.records[recordIndex].his_advices = []
770
+                this.records[recordIndex].his_project = []
771 771
               }
772 772
               for (let index = 0; index < delghThree; index++) {
773
-                this.records[recordIndex].his_advices.push([])
773
+                this.records[recordIndex].his_project.push([])
774 774
               }
775 775
             }
776 776
             this.records[recordIndex].his_advices = this.records[recordIndex].his_advices.sort((a,b)=>{ return a.id-b.id})

+ 6 - 6
src/xt_pages/dialysis/template/DialysisPrintOrderFortyThree.vue View File

@@ -431,7 +431,7 @@
431 431
                   </span>
432 432
                   </td>
433 433
                   <td height="32px" colspan="2" class="advice-name" style="padding-left:7px;">
434
-                    <span>{{ advice.project.project_name }}</span>
434
+                    <span>{{ advice && advice.project ? advice.project.project_name : '' }}</span>
435 435
                   </td>
436 436
                   <td height="32px">
437 437
                       <span v-if="setAdminUserES(advice.doctor) == ''">{{ getAdminUser(advice.doctor) }}</span>
@@ -1260,16 +1260,16 @@ export default {
1260 1260
           }
1261 1261
         })
1262 1262
         this.projects = projects
1263
-        if (this.doctor_advices.length + this.projects.length <= 6) {
1264
-          var nl = 6
1263
+        if ((this.doctor_advices.length + this.projects.length) <= 6) {
1264
+          var nl = 6 - (this.doctor_advices.length + this.projects.length)
1265 1265
           this.print_length = 6
1266 1266
 
1267 1267
           for (let index = 0; index < nl; index++) {
1268 1268
             if (
1269
-              this.doctor_advices[index] == undefined ||
1270
-              this.doctor_advices[index].length <= 0
1269
+              this.projects[index] == undefined ||
1270
+              this.projects[index].length <= 0
1271 1271
             ) {
1272
-              this.doctor_advices.push([])
1272
+              this.projects.push([])
1273 1273
             } else {
1274 1274
               continue
1275 1275
             }

+ 12 - 12
src/xt_pages/hospitalStation/components/deskPrescription.vue View File

@@ -2299,18 +2299,18 @@
2299 2299
             isLoading = true
2300 2300
             console.log('this.prescriptionsthis.prescriptions', this.prescriptions)
2301 2301
             let num = 0
2302
-            this.prescriptions.map(item => {
2303
-              if (item.advices.length > 0) {
2304
-                item.advices.map(it => {
2305
-                  if (it.drug.total <= 0) {
2306
-                    num++
2307
-                    setTimeout(() => {
2308
-                      this.$message.error(it.drug.drug_name + '库存不足')
2309
-                    }, 100)
2310
-                  }
2311
-                })
2312
-              }
2313
-            })
2302
+            // this.prescriptions.map(item => {
2303
+            //   if (item.advices.length > 0) {
2304
+            //     item.advices.map(it => {
2305
+            //       if (it.drug.total <= 0) {
2306
+            //         num++
2307
+            //         setTimeout(() => {
2308
+            //           this.$message.error(it.drug.drug_name + '库存不足')
2309
+            //         }, 100)
2310
+            //       }
2311
+            //     })
2312
+            //   }
2313
+            // })
2314 2314
             if (num == 0) {
2315 2315
               createHisPrescription(data, params).then(response => {
2316 2316
                 if (response.data.state == 1) {

+ 13 - 12
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

@@ -2297,19 +2297,20 @@
2297 2297
             isLoading = true
2298 2298
             console.log('this.prescriptionsthis.prescriptions', this.prescriptions)
2299 2299
             let num = 0
2300
-            this.prescriptions.map(item => {
2301
-              if (item.advices.length > 0) {
2302
-                item.advices.map(it => {
2303
-                  if (it.drug.total <= 0) {
2304
-                    num++
2305
-                    setTimeout(() => {
2306
-                      this.$message.error(it.drug.drug_name + '库存不足')
2307
-                    }, 100)
2308
-                  }
2309
-                })
2310
-              }
2311
-            })
2300
+            // this.prescriptions.map(item => {
2301
+            //   if (item.advices.length > 0) {
2302
+            //     item.advices.map(it => {
2303
+            //       if (it.drug.total <= 0) {
2304
+            //         num++
2305
+            //         setTimeout(() => {
2306
+            //           this.$message.error(it.drug.drug_name + '库存不足')
2307
+            //         }, 100)
2308
+            //       }
2309
+            //     })
2310
+            //   }
2311
+            // })
2312 2312
             if (num == 0) {
2313
+             
2313 2314
               createHisPrescription(data, params).then(response => {
2314 2315
                 if (response.data.state == 1) {
2315 2316
                   this.$emit('change', this.patientInfo.id)

+ 4 - 3
src/xt_pages/stock/inventory.vue View File

@@ -217,9 +217,9 @@ export default {
217 217
                 this.dealerList = dealer
218 218
                 for(let i=0;i<this.goodList.length;i++){
219 219
                     for(let j=0;j<this.manufacturerList.length;j++){
220
-                    if(this.goodList[i].manufacturer == this.manufacturerList[j].id){
221
-                        this.goodList[i].manufacturer = this.manufacturerList[j].manufacturer_name
222
-                    }
220
+                      if(this.goodList[i].manufacturer == this.manufacturerList[j].id){
221
+                          this.goodList[i].manufacturer = this.manufacturerList[j].manufacturer_name
222
+                      }
223 223
                     }
224 224
                 }
225 225
 
@@ -423,6 +423,7 @@ export default {
423 423
               list[i].type = 6
424 424
               list[i].good_name = list[i].GoodInfo.good_name
425 425
               list[i].specification_name = list[i].GoodInfo.specification_name
426
+              list[i].manufacturer_name = ""
426 427
               for(let j=0;j<this.manufacturerList.length;j++){
427 428
                 if(list[i].manufacturer == this.manufacturerList[j].id){
428 429
                   list[i].manufacturer_name = this.manufacturerList[j].manufacturer_name

+ 1 - 1
src/xt_pages/workforce/remind_print_setting.vue View File

@@ -59,7 +59,7 @@
59 59
                    {{main_collection.dialysissolution.anticoagulant_zongliang}}iu
60 60
                   </span>
61 61
                   <span v-if="main_collection.dialysissolution.anticoagulant == 7">
62
-                    {main_collection.dialysissolution.anticoagulant_zongliang}}iu
62
+                    {{main_collection.dialysissolution.anticoagulant_zongliang}}iu
63 63
                    </span>
64 64
                   <span v-if="main_collection.dialysissolution.anticoagulant == 8">
65 65
                      {{main_collection.dialysissolution.anticoagulant_zongliang}}iu