XMLWAN 2 anni fa
parent
commit
cb44148f51

+ 11 - 8
src/xt_pages/data/components/dialysisAfter.vue Vedi File

@@ -48,6 +48,16 @@
48 48
               @click="handleHide(scope.$index, scope.row)"
49 49
             >
50 50
             </el-button>
51
+
52
+            <el-button
53
+              v-if="scope.row.is_show == 2"
54
+              size="small"
55
+              type="primary"
56
+              icon="el-icon-view"
57
+              @click="handleShow(scope.$index, scope.row)"
58
+            >
59
+            </el-button>
60
+            
51 61
             <el-button
52 62
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
53 63
               size="small"
@@ -57,14 +67,7 @@
57 67
             >
58 68
             </el-button>
59 69
 
60
-             <el-button
61
-              v-if="scope.row.is_show == 2"
62
-              size="small"
63
-              type="primary"
64
-              icon="el-icon-view"
65
-              @click="handleShow(scope.$index, scope.row)"
66
-            >
67
-            </el-button>
70
+           
68 71
             <el-button
69 72
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
70 73
               size="small"

+ 10 - 8
src/xt_pages/data/components/dialysisBefore.vue Vedi File

@@ -47,14 +47,6 @@
47 47
               icon="el-icon-remove-outline"
48 48
               @click="handleHide(scope.$index, scope.row)"
49 49
             >
50
-            </el-button>
51
-            <el-button
52
-              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
53
-              size="small"
54
-              type="danger"
55
-              icon="el-icon-remove-outline"
56
-              @click="handleHideOne(scope.$index, scope.row)"
57
-            >
58 50
             </el-button>
59 51
 
60 52
              <el-button
@@ -65,6 +57,16 @@
65 57
               @click="handleShow(scope.$index, scope.row)"
66 58
             >
67 59
             </el-button>
60
+
61
+            <el-button
62
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
63
+              size="small"
64
+              type="danger"
65
+              icon="el-icon-remove-outline"
66
+              @click="handleHideOne(scope.$index, scope.row)"
67
+            >
68
+            </el-button>
69
+
68 70
             <el-button
69 71
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
70 72
               size="small"

+ 9 - 8
src/xt_pages/data/components/dialysisComputer.vue Vedi File

@@ -50,6 +50,14 @@
50 50
               @click="handleHide(scope.$index, scope.row)"
51 51
             >
52 52
             </el-button>
53
+            <el-button
54
+              v-if="scope.row.is_show == 2"
55
+              size="small"
56
+              type="primary"
57
+              icon="el-icon-view"
58
+              @click="handleShow(scope.$index, scope.row)"
59
+            >
60
+            </el-button>
53 61
             <el-button
54 62
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
55 63
               size="small"
@@ -59,14 +67,7 @@
59 67
             >
60 68
             </el-button>
61 69
 
62
-             <el-button
63
-              v-if="scope.row.is_show == 2"
64
-              size="small"
65
-              type="primary"
66
-              icon="el-icon-view"
67
-              @click="handleShow(scope.$index, scope.row)"
68
-            >
69
-            </el-button>
70
+            
70 71
             <el-button
71 72
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
72 73
               size="small"

+ 11 - 8
src/xt_pages/data/components/dialysisMonitor.vue Vedi File

@@ -48,6 +48,16 @@
48 48
               @click="handleHide(scope.$index, scope.row)"
49 49
             >
50 50
             </el-button>
51
+
52
+           <el-button
53
+              v-if="scope.row.is_show == 2"
54
+              size="small"
55
+              type="primary"
56
+              icon="el-icon-view"
57
+              @click="handleShow(scope.$index, scope.row)"
58
+            >
59
+            </el-button>
60
+            
51 61
             <el-button
52 62
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
53 63
               size="small"
@@ -57,14 +67,7 @@
57 67
             >
58 68
             </el-button>
59 69
 
60
-             <el-button
61
-              v-if="scope.row.is_show == 2"
62
-              size="small"
63
-              type="primary"
64
-              icon="el-icon-view"
65
-              @click="handleShow(scope.$index, scope.row)"
66
-            >
67
-            </el-button>
70
+            
68 71
             <el-button
69 72
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
70 73
               size="small"

+ 11 - 8
src/xt_pages/data/components/dialysisOff.vue Vedi File

@@ -47,6 +47,16 @@
47 47
               @click="handleHide(scope.$index, scope.row)"
48 48
             >
49 49
             </el-button>
50
+          
51
+            <el-button
52
+              v-if="scope.row.is_show == 2"
53
+              size="small"
54
+              type="primary"
55
+              icon="el-icon-view"
56
+              @click="handleShow(scope.$index, scope.row)"
57
+            >
58
+            </el-button>
59
+
50 60
             <el-button
51 61
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
52 62
               size="small"
@@ -56,14 +66,7 @@
56 66
             >
57 67
             </el-button>
58 68
 
59
-             <el-button
60
-              v-if="scope.row.is_show == 2"
61
-              size="small"
62
-              type="primary"
63
-              icon="el-icon-view"
64
-              @click="handleShow(scope.$index, scope.row)"
65
-            >
66
-            </el-button>
69
+           
67 70
             <el-button
68 71
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
69 72
               size="small"

+ 15 - 10
src/xt_pages/data/components/dialysisPrescription.vue Vedi File

@@ -48,14 +48,7 @@
48 48
               @click="handleHide(scope.$index, scope.row)"
49 49
             >
50 50
             </el-button>
51
-            <el-button
52
-              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
53
-              size="small"
54
-              type="danger"
55
-              icon="el-icon-remove-outline"
56
-              @click="handleHideOne(scope.$index, scope.row)"
57
-            >
58
-            </el-button>
51
+           
59 52
 
60 53
              <el-button
61 54
               v-if="scope.row.is_show == 2"
@@ -65,6 +58,16 @@
65 58
               @click="handleShow(scope.$index, scope.row)"
66 59
             >
67 60
             </el-button>
61
+
62
+           <el-button
63
+              v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
64
+              size="small"
65
+              type="danger"
66
+              icon="el-icon-remove-outline"
67
+              @click="handleHideOne(scope.$index, scope.row)"
68
+            >
69
+            </el-button>
70
+
68 71
             <el-button
69 72
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
70 73
               size="small"
@@ -103,7 +106,8 @@ export default {
103 106
             if (response.data.state == 1) {
104 107
               let params = {
105 108
                 id: response.data.data.id,
106
-                is_show: response.data.data.is_show
109
+                is_show: response.data.data.is_show,
110
+                is_write:response.data.data.is_write,
107 111
               };
108 112
               store.dispatch("updateFiledConfigList", params).then(() => {});
109 113
               this.$emit("change", params);
@@ -127,7 +131,8 @@ export default {
127 131
             if (response.data.state == 1) {
128 132
               let params = {
129 133
                 id: response.data.data.id,
130
-                is_show: response.data.data.is_show
134
+                is_show: response.data.data.is_show,
135
+                is_write:response.data.data.is_write,
131 136
               };
132 137
               store.dispatch("updateFiledConfigList", params).then(() => {});
133 138
               this.$emit("change", params);

+ 12 - 9
src/xt_pages/data/components/dialysisSummary.vue Vedi File

@@ -48,6 +48,15 @@
48 48
               @click="handleHide(scope.$index, scope.row)"
49 49
             >
50 50
             </el-button>
51
+          
52
+            <el-button
53
+              v-if="scope.row.is_show == 2"
54
+              size="small"
55
+              type="primary"
56
+              icon="el-icon-view"
57
+              @click="handleShow(scope.$index, scope.row)"
58
+            >
59
+            </el-button>
51 60
             <el-button
52 61
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
53 62
               size="small"
@@ -57,14 +66,7 @@
57 66
             >
58 67
             </el-button>
59 68
 
60
-             <el-button
61
-              v-if="scope.row.is_show == 2"
62
-              size="small"
63
-              type="primary"
64
-              icon="el-icon-view"
65
-              @click="handleShow(scope.$index, scope.row)"
66
-            >
67
-            </el-button>
69
+            
68 70
             <el-button
69 71
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
70 72
               size="small"
@@ -127,7 +129,7 @@ export default {
127 129
             if (response.data.state == 1) {
128 130
               let params = {
129 131
                 id: response.data.data.id,
130
-                is_show: response.data.data.is_show
132
+                is_show: response.data.data.is_show,
131 133
               };
132 134
               store.dispatch("updateFiledConfigList", params).then(() => {});
133 135
               this.$emit("change", params);
@@ -169,6 +171,7 @@ export default {
169 171
     },
170 172
   
171 173
     handleShowOne: function(index, row) {
174
+      console.log("row233223322332332wo",row)
172 175
       this.$confirm("是否将该字段设为必填?", "提示", {
173 176
         confirmButtonText: "确 定",
174 177
         cancelButtonText: "取 消",

+ 10 - 8
src/xt_pages/data/components/doubleCheck.vue Vedi File

@@ -48,6 +48,16 @@
48 48
               @click="handleHide(scope.$index, scope.row)"
49 49
             >
50 50
             </el-button>
51
+
52
+           <el-button
53
+              v-if="scope.row.is_show == 2"
54
+              size="small"
55
+              type="primary"
56
+              icon="el-icon-view"
57
+              @click="handleShow(scope.$index, scope.row)"
58
+            >
59
+            </el-button>
60
+
51 61
             <el-button
52 62
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
53 63
               size="small"
@@ -57,14 +67,6 @@
57 67
             >
58 68
             </el-button>
59 69
 
60
-             <el-button
61
-              v-if="scope.row.is_show == 2"
62
-              size="small"
63
-              type="primary"
64
-              icon="el-icon-view"
65
-              @click="handleShow(scope.$index, scope.row)"
66
-            >
67
-            </el-button>
68 70
             <el-button
69 71
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
70 72
               size="small"

+ 11 - 8
src/xt_pages/data/components/receiveTreatmentAsses.vue Vedi File

@@ -48,6 +48,16 @@
48 48
               @click="handleHide(scope.$index, scope.row)"
49 49
             >
50 50
             </el-button>
51
+
52
+           <el-button
53
+              v-if="scope.row.is_show == 2"
54
+              size="small"
55
+              type="primary"
56
+              icon="el-icon-view"
57
+              @click="handleShow(scope.$index, scope.row)"
58
+            >
59
+            </el-button>
60
+          
51 61
             <el-button
52 62
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
53 63
               size="small"
@@ -57,14 +67,7 @@
57 67
             >
58 68
             </el-button>
59 69
 
60
-             <el-button
61
-              v-if="scope.row.is_show == 2"
62
-              size="small"
63
-              type="primary"
64
-              icon="el-icon-view"
65
-              @click="handleShow(scope.$index, scope.row)"
66
-            >
67
-            </el-button>
70
+            
68 71
             <el-button
69 72
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
70 73
               size="small"

+ 1 - 0
src/xt_pages/data/showConfig.vue Vedi File

@@ -123,6 +123,7 @@ export default {
123 123
         if (this.dialysis_prescription_data[i].id == object.id) {
124 124
           this.dialysis_prescription_data[i].is_show = object.is_show;
125 125
            if(object.is_write!=undefined){
126
+            console.log("obj3323322332",object.is_write)
126 127
            this.dialysis_prescription_data[i].is_write = object.is_write
127 128
           }
128 129
         }

+ 1 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Vedi File

@@ -106,7 +106,7 @@
106 106
 
107 107
 
108 108
                     <el-col :span="8"
109
-                            v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 43 &&  this.$store.getters.xt_user.template_info.template_id != 45 &&  this.$store.getters.xt_user.template_info.template_id != 46  &&  this.$store.getters.xt_user.template_info.template_id != 48 &&  this.$store.getters.xt_user.template_info.template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10345 &&  this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10249 &&  this.$store.getters.xt_user.template_info.org_id != 10395 &&  this.$store.getters.xt_user.template_info.template_id != 60 &&  this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10430 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id!=10441">
109
+                            v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 43 &&  this.$store.getters.xt_user.template_info.template_id != 45 &&  this.$store.getters.xt_user.template_info.template_id != 46  &&  this.$store.getters.xt_user.template_info.template_id != 48 &&  this.$store.getters.xt_user.template_info.template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10345 &&  this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10249 &&  this.$store.getters.xt_user.template_info.org_id != 10395 &&  this.$store.getters.xt_user.template_info.template_id != 60 &&  this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10430 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id!=10441 && this.$store.getters.xt_user.template_info.org_id!=10445">
110 110
                         <el-form-item label="目标超滤量(L):">
111 111
                             <el-input
112 112
                                     type="number"

File diff suppressed because it is too large
+ 504 - 488
src/xt_pages/dialysis/doctorAdvicePrint.vue


+ 6 - 7
src/xt_pages/dialysis/newDoctorAdvice.vue Vedi File

@@ -737,7 +737,7 @@ export default {
737 737
                         parent_id:0,
738 738
                         groupno:0,
739 739
                         sort:item.device_number.sort,
740
-                        assess_time:item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
740
+                        assess_time:item.dialysisassesmentbefor&&item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
741 741
                       }
742 742
                       item.doctor_advice.push(obj)
743 743
                     })
@@ -762,7 +762,7 @@ export default {
762 762
            if(this.is_sort == 1){
763 763
               schedules.map(item => {
764 764
                   item.is_sort = item.device_number.sort
765
-                  item.assess_time = item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
765
+                  item.assess_time = item.dialysisassesmentbefor&&item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
766 766
               })
767 767
               
768 768
                newList = schedules.sort(this.compare('is_sort'))
@@ -799,7 +799,6 @@ export default {
799 799
                     it.number = item.device_number.number
800 800
                     it.zone_name = item.device_number.zone.name
801 801
                     it.sort = item.device_number.sort,
802
-                   
803 802
                     arr.push(it)
804 803
                 })
805 804
                 item.is_sort = item.device_number.sort
@@ -868,7 +867,7 @@ export default {
868 867
            if(this.is_sort == 1){
869 868
               schedules.map(item => {
870 869
                   item.is_sort = item.device_number.sort
871
-                  item.assess_time = item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
870
+                  item.assess_time = item.dialysisassesmentbefor&&item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
872 871
               })
873 872
               
874 873
                newList = schedules.sort(this.compare('is_sort'))
@@ -879,7 +878,7 @@ export default {
879 878
             if(this.is_sort == 2){
880 879
               schedules.map(item => {
881 880
                   item.is_sort = item.device_number.sort
882
-                  item.assess_time = item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
881
+                  item.assess_time = item.dialysisassesmentbefor&&item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
883 882
               })
884 883
                newList = schedules.sort(this.compare('assess_time'))
885 884
             }
@@ -898,11 +897,11 @@ export default {
898 897
                     it.number = item.device_number.number
899 898
                     it.zone_name = item.device_number.zone.name
900 899
                     it.sort = item.device_number.sort,
901
-                   
902 900
                     arr.push(it)
903 901
                 })
904 902
               item.is_sort = item.device_number.sort
905
-              it.assess_time = item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
903
+              
904
+              item.assess_time = item.dialysisassesmentbefor&&item.dialysisassesmentbefor?item.dialysisassesmentbefor.created_time:"3753619200"
906 905
             })
907 906
             if(this.schedulType == 0){
908 907
                 newSchedules = arr

+ 1 - 0
src/xt_pages/stock/drugs/drugStockFlow.vue Vedi File

@@ -498,6 +498,7 @@
498 498
        getDrugFlow(params).then(response=>{
499 499
           if(response.data.state ==1){
500 500
             var list = response.data.data.list
501
+
501 502
             console.log("list2o2o33o23233o3oowo",list)
502 503
             this.tableList = list
503 504
             var total = response.data.data.total

+ 55 - 13
src/xt_pages/stock/drugs/drugStockOutOrder.vue Vedi File

@@ -293,7 +293,7 @@
293 293
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
294 294
                   <td style="border-right: none; border-inline-end:none;text-align: center">
295 295
                     <span v-if="is_sys==1 || is_sys == 5">{{getOutCountSix(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_id)}}</span>
296
-                    <!-- <span v-if="is_sys == 1"> {{getOutCount(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span> -->
296
+                    <span v-if="is_sys == 12">{{getOutCountSeven(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_id)}}</span>
297 297
                     <span v-if="is_sys == 0"> {{getOutCountOne(item.batch_number,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}} </span>
298 298
                   </td>
299 299
                </tr>
@@ -303,7 +303,7 @@
303 303
             <template slot-scope="scope">
304 304
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
305 305
                   <td style="border-right: none; border-inline-end:none;text-align: center">
306
-                    <span v-if="is_sys == 1 || is_sys == 5">{{getBatchNumber(item.warehousing_detail_id)}}</span> 
306
+                    <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12">{{getBatchNumber(item.warehousing_detail_id)}}</span> 
307 307
                     <span v-if="is_sys == 0">{{getBatchNumberOne(item.batch_number)}}</span>
308 308
                   </td>
309 309
                </tr>
@@ -322,7 +322,7 @@
322 322
             <template slot-scope="scope">
323 323
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
324 324
                   <td style="border-right: none; border-inline-end: none;text-align: center">
325
-                    <span v-if="is_sys == 1 || is_sys == 5">{{getPrice(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span> 
325
+                    <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12">{{getPrice(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span> 
326 326
                     <span v-if="is_sys == 0">
327 327
                       <span v-if="scope.row.child.length == 1">
328 328
                          {{getPriceTwo(item.warehouse_out_id,item.drug_id)}}
@@ -341,7 +341,7 @@
341 341
             <template slot-scope="scope">
342 342
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
343 343
                   <td style="border-right: none; border-inline-end: none;text-align: center">
344
-                    <span v-if="is_sys == 1 || is_sys == 5">{{getTotalPrice(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
344
+                    <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12">{{getTotalPrice(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
345 345
                     <span v-if="is_sys == 0">
346 346
                       <span v-if="scope.row.child.length == 1">{{item.retail_price}}</span> 
347 347
                       <span v-if="scope.row.child.length > 1">{{item.count * item.price}}</span> 
@@ -355,7 +355,7 @@
355 355
             <template slot-scope="scope">
356 356
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
357 357
                   <td style="border-right: none; border-inline-end: none;text-align: center">
358
-                    <span v-if="is_sys == 1 || is_sys == 5"> {{getAllManufacturerName(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
358
+                    <span v-if="is_sys == 1 || is_sys == 5  || is_sys == 12"> {{getAllManufacturerName(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
359 359
                     <span v-if="is_sys == 0"> {{getManufacturerName(scope.row.manufacturer)}}</span>
360 360
                   </td>
361 361
                </tr>
@@ -365,7 +365,7 @@
365 365
             <template slot-scope="scope">
366 366
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
367 367
                   <td style="border-right: none; border-inline-end: none;text-align: center">
368
-                    <span v-if="is_sys == 1 || is_sys == 5"> {{getProductDate(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
368
+                    <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12"> {{getProductDate(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
369 369
                     <span v-if="is_sys == 0"> {{getTime(scope.row.product_date)}}</span>
370 370
                   </td>
371 371
                </tr>
@@ -375,7 +375,7 @@
375 375
             <template slot-scope="scope">
376 376
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
377 377
                   <td style="border-right: none; border-inline-end: none;text-align: center">
378
-                   <span v-if="is_sys == 1 || is_sys == 5"> {{getExpiryDate(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
378
+                   <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12"> {{getExpiryDate(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
379 379
                    <span v-if="is_sys == 0"> {{getTime(scope.row.expiry_date)}}</span>
380 380
                   </td>
381 381
                </tr>
@@ -385,7 +385,7 @@
385 385
             <template slot-scope="scope">
386 386
                 <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
387 387
                   <td style="border-right: none; border-inline-end: none;text-align: center">
388
-                    <span v-if="is_sys ==1 || is_sys ==5">{{getDealer(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
388
+                    <span v-if="is_sys ==1 || is_sys ==5 || is_sys ==12">{{getDealer(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
389 389
                     <span v-if="is_sys ==0">{{getDealerName(scope.row.dealer)}}</span>  
390 390
                   </td>
391 391
                </tr>
@@ -395,7 +395,7 @@
395 395
             <template slot-scope="scope">
396 396
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
397 397
                   <td style="border-right: none; border-inline-end: none;text-align: center">
398
-                    <span v-if="is_sys == 1 || is_sys == 5">{{getNumber(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span> 
398
+                    <span v-if="is_sys == 1 || is_sys == 5  || is_sys == 12">{{getNumber(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span> 
399 399
                     <span v-if="is_sys == 0">{{scope.row.number}}</span> 
400 400
                   </td>
401 401
                </tr>
@@ -405,7 +405,7 @@
405 405
             <template slot-scope="scope">
406 406
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
407 407
                   <td style="border-right: none; border-inline-end: none;text-align: center">
408
-                    <span v-if="is_sys == 1 || is_sys == 5">{{getRemark(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
408
+                    <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12">{{getRemark(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
409 409
                     <span v-if="is_sys == 0">{{scope.row.remark}}</span>
410 410
                   </td>
411 411
                </tr>
@@ -1277,14 +1277,14 @@ export default {
1277 1277
               list[i].number = "";
1278 1278
             }
1279 1279
             list[i].child = []
1280
-            if(list[i].is_sys == 1){
1280
+            if(list[i].is_sys == 1 ){
1281 1281
               for(let j=0;j<drugListOne.length;j++){
1282 1282
                 if(list[i].drug_id == drugListOne[j].drug_id){
1283 1283
                   list[i].child.push(drugListOne[j])
1284 1284
                 }
1285 1285
              }
1286 1286
             }
1287
-            if(list[i].is_sys == 0){
1287
+            if(list[i].is_sys == 0 || list[i].is_sys == 5  || list[i].is_sys == 12){
1288 1288
               for(let j=0;j<drugListTwo.length;j++){
1289 1289
                 if(list[i].drug_id == drugListTwo[j].drug_id){
1290 1290
                   list[i].child.push(drugListTwo[j])
@@ -1656,12 +1656,14 @@ export default {
1656 1656
       var total = 0
1657 1657
       var max_str = ""
1658 1658
       var min_str = ""
1659
+      console.log("outlist",this.outList)
1660
+      console.log("warehouse_info_id",warehouse_info_id)
1659 1661
       for(let j=0;j<this.outList.length;j++){
1660 1662
         if(warehouse_info_id == this.outList[j].warehouse_info_id && drug_id == this.outList[j].drug_id){
1661 1663
            arr.push(this.outList[j])
1662 1664
         }
1663 1665
       }
1664
-      
1666
+       console.log("arr23322332",arr)
1665 1667
       if(arr.length > 0){
1666 1668
         for(let i=0;i<arr.length;i++){
1667 1669
            total +=arr[i].count
@@ -1685,6 +1687,46 @@ export default {
1685 1687
       }
1686 1688
       return max_str + min_str;
1687 1689
     },
1690
+     getOutCountSeven(warehouse_info_id,max_unit,min_unit,min_number,drug_id){
1691
+      var arr = []
1692
+      var total = 0
1693
+      var max_str = ""
1694
+      var min_str = ""
1695
+      console.log("outlist",this.outList)
1696
+      console.log("warehouse_info_id",warehouse_info_id)
1697
+      for(let j=0;j<this.outList.length;j++){
1698
+        if(this.outList[i].count_unit == max_unit){
1699
+           this.outList[i].count = this.outList[i].count * min_number
1700
+        }
1701
+        if(warehouse_info_id == this.outList[j].warehouse_info_id && drug_id == this.outList[j].drug_id){
1702
+           arr.push(this.outList[j])
1703
+        }
1704
+      }
1705
+       console.log("arr23322332",arr)
1706
+      if(arr.length > 0){
1707
+        for(let i=0;i<arr.length;i++){
1708
+
1709
+           total +=arr[i].count
1710
+        }
1711
+      }
1712
+     
1713
+      if (total < min_number) {
1714
+        min_str = total + min_unit;
1715
+      }
1716
+      if (total == 0) {
1717
+        min_str = "";
1718
+        max_str = "";
1719
+      }
1720
+      if (total >= min_number) {
1721
+        if (parseInt(total / min_number) != 0) {
1722
+          max_str = parseInt(total / min_number) + max_unit;
1723
+        }
1724
+        if (total % min_number != 0) {
1725
+          min_str = (total % min_number) + min_unit;
1726
+        }
1727
+      }
1728
+      return max_str + min_str;
1729
+    },
1688 1730
     getOutCount(warehouse_info_id,max_unit,min_unit,min_number){
1689 1731
       var arr = []
1690 1732
       var total = 0

+ 3 - 0
src/xt_pages/stock/stockFlow.vue Vedi File

@@ -70,6 +70,7 @@
70 70
              <span v-if="scope.row.consumable_type == 11">盘亏</span>
71 71
              <span v-if="scope.row.consumable_type == 12">调拨出库</span>
72 72
              <span v-if="scope.row.consumable_type == 13">调拨入库</span>
73
+             <span v-if="scope.row.consumable_type == 15">结算出库</span>
73 74
            </template>
74 75
         </el-table-column>
75 76
         <el-table-column prop="drug_name" label="出/入库单据编码" align="center">
@@ -82,6 +83,7 @@
82 83
             <span v-if="scope.row.consumable_type == 11">{{scope.row.warehouse_out_order_number}}</span>
83 84
             <span v-if="scope.row.consumable_type == 12">{{scope.row.warehouse_out_order_number}}</span>
84 85
             <span v-if="scope.row.consumable_type == 13">{{scope.row.warehousing_order}}</span>
86
+            <span v-if="scope.row.consumable_type == 15">{{scope.row.warehouse_out_order_number}}</span>
85 87
            </template>
86 88
         </el-table-column>
87 89
         <el-table-column prop="drug_name" label="操作日期" align="center">
@@ -223,6 +225,7 @@
223 225
           {id:11,name:"盘亏"},
224 226
           {id:12,name:"调拨出库"},
225 227
           {id:13,name:"调拨入库"},
228
+          {id:15,name:"结算出库"},
226 229
         ],
227 230
         countList:[],
228 231
         outCountList:[],

+ 24 - 2
src/xt_pages/stock/stockOutOrder.vue Vedi File

@@ -602,8 +602,12 @@
602 602
               <template slot="header" slot-scope="scope">
603 603
                 <span>使用人</span>
604 604
               </template>
605
-              <template slot-scope="scope"> 系统 </template>
605
+              <template slot-scope="scope"> 
606
+                <span v-if="scope.row.is_sys == 0">系统 </span> 
607
+                <span v-if="scope.row.is_sys == 5"> {{getRow(scope.row)}} </span> 
608
+              </template>
606 609
             </el-table-column>
610
+
607 611
             <el-table-column min-width="35" align="center">
608 612
               <template slot="header" slot-scope="scope">
609 613
                 <span>使用数量</span>
@@ -1968,6 +1972,7 @@ export default {
1968 1972
           for (let i = 0; i <arrTwo.length; i++) {
1969 1973
             var obj = arrTwo[i];
1970 1974
             obj["is_total"] = 0;
1975
+            
1971 1976
             this.userList.push(obj);
1972 1977
             if(arrTwo[i].is_sys == 1){
1973 1978
               total = total + arrTwo[i].count - arrTwo[i].cancel_count;
@@ -1976,6 +1981,8 @@ export default {
1976 1981
             }
1977 1982
             
1978 1983
           }
1984
+
1985
+
1979 1986
          
1980 1987
           this.userList.push({
1981 1988
             is_total: 1,
@@ -1987,7 +1994,9 @@ export default {
1987 1994
           if (val.is_sys == 0 || val.is_sys == 5) {
1988 1995
             this.editdialogVisibleTwo = true;
1989 1996
           }
1990
-          }
1997
+
1998
+           console.log("我的世界332323223我",this.userList)
1999
+         }
1991 2000
 
1992 2001
    
1993 2002
         }
@@ -2361,6 +2370,19 @@ export default {
2361 2370
      }
2362 2371
      
2363 2372
      
2373
+    },
2374
+    getRow(row){
2375
+      console.log("row233323232",row)
2376
+      var name = ""
2377
+      if(this.stockFlowList!=null && this.stockFlowList.length > 0){
2378
+        for(let i=0;i<this.stockFlowList.length;i++){
2379
+          if(row.patient_id == this.stockFlowList[i].patient_id){
2380
+              name = this.stockFlowList[i].name
2381
+          }
2382
+        }
2383
+      }
2384
+     
2385
+      return name
2364 2386
     }
2365 2387
   },
2366 2388
 };