Przeglądaj źródła

11月14日 库存扣减更新

XMLWAN 3 lat temu
rodzic
commit
bbf68178bf

+ 1 - 3
src/api/his/his.js Wyświetl plik

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

+ 6 - 6
src/xt_pages/dialysis/batch_print/batch_print_order_fortyThree.vue Wyświetl plik

462
                         </td>
462
                         </td>
463
                         <td height="32px" colspan="2" class="advice-name" style="padding-left:7px;">
463
                         <td height="32px" colspan="2" class="advice-name" style="padding-left:7px;">
464
                             <span style="padding-left:5px;display:inline-block;">
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
                             </span>
466
                             </span>
467
                         </td>
467
                         </td>
468
 
468
 
757
               this.records[recordIndex].his_advices &&
757
               this.records[recordIndex].his_advices &&
758
               this.records[recordIndex].his_advices.length + this.records[recordIndex].his_project.length < 6
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
             } else {
761
             } else {
762
               delghThree = 0
762
               delghThree = 0
763
             }
763
             }
764
 
764
 
765
             if (delghThree > 0) {
765
             if (delghThree > 0) {
766
               if (
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
               for (let index = 0; index < delghThree; index++) {
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
             this.records[recordIndex].his_advices = this.records[recordIndex].his_advices.sort((a,b)=>{ return a.id-b.id})
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 Wyświetl plik

431
                   </span>
431
                   </span>
432
                   </td>
432
                   </td>
433
                   <td height="32px" colspan="2" class="advice-name" style="padding-left:7px;">
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
                   </td>
435
                   </td>
436
                   <td height="32px">
436
                   <td height="32px">
437
                       <span v-if="setAdminUserES(advice.doctor) == ''">{{ getAdminUser(advice.doctor) }}</span>
437
                       <span v-if="setAdminUserES(advice.doctor) == ''">{{ getAdminUser(advice.doctor) }}</span>
1260
           }
1260
           }
1261
         })
1261
         })
1262
         this.projects = projects
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
           this.print_length = 6
1265
           this.print_length = 6
1266
 
1266
 
1267
           for (let index = 0; index < nl; index++) {
1267
           for (let index = 0; index < nl; index++) {
1268
             if (
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
             } else {
1273
             } else {
1274
               continue
1274
               continue
1275
             }
1275
             }

+ 12 - 12
src/xt_pages/hospitalStation/components/deskPrescription.vue Wyświetl plik

2299
             isLoading = true
2299
             isLoading = true
2300
             console.log('this.prescriptionsthis.prescriptions', this.prescriptions)
2300
             console.log('this.prescriptionsthis.prescriptions', this.prescriptions)
2301
             let num = 0
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
             if (num == 0) {
2314
             if (num == 0) {
2315
               createHisPrescription(data, params).then(response => {
2315
               createHisPrescription(data, params).then(response => {
2316
                 if (response.data.state == 1) {
2316
                 if (response.data.state == 1) {

+ 13 - 12
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Wyświetl plik

2297
             isLoading = true
2297
             isLoading = true
2298
             console.log('this.prescriptionsthis.prescriptions', this.prescriptions)
2298
             console.log('this.prescriptionsthis.prescriptions', this.prescriptions)
2299
             let num = 0
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
             if (num == 0) {
2312
             if (num == 0) {
2313
+             
2313
               createHisPrescription(data, params).then(response => {
2314
               createHisPrescription(data, params).then(response => {
2314
                 if (response.data.state == 1) {
2315
                 if (response.data.state == 1) {
2315
                   this.$emit('change', this.patientInfo.id)
2316
                   this.$emit('change', this.patientInfo.id)

+ 4 - 3
src/xt_pages/stock/inventory.vue Wyświetl plik

217
                 this.dealerList = dealer
217
                 this.dealerList = dealer
218
                 for(let i=0;i<this.goodList.length;i++){
218
                 for(let i=0;i<this.goodList.length;i++){
219
                     for(let j=0;j<this.manufacturerList.length;j++){
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
               list[i].type = 6
423
               list[i].type = 6
424
               list[i].good_name = list[i].GoodInfo.good_name
424
               list[i].good_name = list[i].GoodInfo.good_name
425
               list[i].specification_name = list[i].GoodInfo.specification_name
425
               list[i].specification_name = list[i].GoodInfo.specification_name
426
+              list[i].manufacturer_name = ""
426
               for(let j=0;j<this.manufacturerList.length;j++){
427
               for(let j=0;j<this.manufacturerList.length;j++){
427
                 if(list[i].manufacturer == this.manufacturerList[j].id){
428
                 if(list[i].manufacturer == this.manufacturerList[j].id){
428
                   list[i].manufacturer_name = this.manufacturerList[j].manufacturer_name
429
                   list[i].manufacturer_name = this.manufacturerList[j].manufacturer_name

+ 1 - 1
src/xt_pages/workforce/remind_print_setting.vue Wyświetl plik

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