XMLWAN пре 2 година
родитељ
комит
cb44148f51

+ 11 - 8
src/xt_pages/data/components/dialysisAfter.vue Прегледај датотеку

48
               @click="handleHide(scope.$index, scope.row)"
48
               @click="handleHide(scope.$index, scope.row)"
49
             >
49
             >
50
             </el-button>
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
             <el-button
61
             <el-button
52
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
62
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
53
               size="small"
63
               size="small"
57
             >
67
             >
58
             </el-button>
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
             <el-button
71
             <el-button
69
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
72
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
70
               size="small"
73
               size="small"

+ 10 - 8
src/xt_pages/data/components/dialysisBefore.vue Прегледај датотеку

47
               icon="el-icon-remove-outline"
47
               icon="el-icon-remove-outline"
48
               @click="handleHide(scope.$index, scope.row)"
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
             </el-button>
50
             </el-button>
59
 
51
 
60
              <el-button
52
              <el-button
65
               @click="handleShow(scope.$index, scope.row)"
57
               @click="handleShow(scope.$index, scope.row)"
66
             >
58
             >
67
             </el-button>
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
             <el-button
70
             <el-button
69
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
71
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
70
               size="small"
72
               size="small"

+ 9 - 8
src/xt_pages/data/components/dialysisComputer.vue Прегледај датотеку

50
               @click="handleHide(scope.$index, scope.row)"
50
               @click="handleHide(scope.$index, scope.row)"
51
             >
51
             >
52
             </el-button>
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
             <el-button
61
             <el-button
54
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
62
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
55
               size="small"
63
               size="small"
59
             >
67
             >
60
             </el-button>
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
             <el-button
71
             <el-button
71
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
72
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
72
               size="small"
73
               size="small"

+ 11 - 8
src/xt_pages/data/components/dialysisMonitor.vue Прегледај датотеку

48
               @click="handleHide(scope.$index, scope.row)"
48
               @click="handleHide(scope.$index, scope.row)"
49
             >
49
             >
50
             </el-button>
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
             <el-button
61
             <el-button
52
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
62
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
53
               size="small"
63
               size="small"
57
             >
67
             >
58
             </el-button>
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
             <el-button
71
             <el-button
69
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
72
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
70
               size="small"
73
               size="small"

+ 11 - 8
src/xt_pages/data/components/dialysisOff.vue Прегледај датотеку

47
               @click="handleHide(scope.$index, scope.row)"
47
               @click="handleHide(scope.$index, scope.row)"
48
             >
48
             >
49
             </el-button>
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
             <el-button
60
             <el-button
51
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
61
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
52
               size="small"
62
               size="small"
56
             >
66
             >
57
             </el-button>
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
             <el-button
70
             <el-button
68
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
71
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
69
               size="small"
72
               size="small"

+ 15 - 10
src/xt_pages/data/components/dialysisPrescription.vue Прегледај датотеку

48
               @click="handleHide(scope.$index, scope.row)"
48
               @click="handleHide(scope.$index, scope.row)"
49
             >
49
             >
50
             </el-button>
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
              <el-button
53
              <el-button
61
               v-if="scope.row.is_show == 2"
54
               v-if="scope.row.is_show == 2"
65
               @click="handleShow(scope.$index, scope.row)"
58
               @click="handleShow(scope.$index, scope.row)"
66
             >
59
             >
67
             </el-button>
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
             <el-button
71
             <el-button
69
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
72
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
70
               size="small"
73
               size="small"
103
             if (response.data.state == 1) {
106
             if (response.data.state == 1) {
104
               let params = {
107
               let params = {
105
                 id: response.data.data.id,
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
               store.dispatch("updateFiledConfigList", params).then(() => {});
112
               store.dispatch("updateFiledConfigList", params).then(() => {});
109
               this.$emit("change", params);
113
               this.$emit("change", params);
127
             if (response.data.state == 1) {
131
             if (response.data.state == 1) {
128
               let params = {
132
               let params = {
129
                 id: response.data.data.id,
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
               store.dispatch("updateFiledConfigList", params).then(() => {});
137
               store.dispatch("updateFiledConfigList", params).then(() => {});
133
               this.$emit("change", params);
138
               this.$emit("change", params);

+ 12 - 9
src/xt_pages/data/components/dialysisSummary.vue Прегледај датотеку

48
               @click="handleHide(scope.$index, scope.row)"
48
               @click="handleHide(scope.$index, scope.row)"
49
             >
49
             >
50
             </el-button>
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
             <el-button
60
             <el-button
52
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
61
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
53
               size="small"
62
               size="small"
57
             >
66
             >
58
             </el-button>
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
             <el-button
70
             <el-button
69
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
71
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
70
               size="small"
72
               size="small"
127
             if (response.data.state == 1) {
129
             if (response.data.state == 1) {
128
               let params = {
130
               let params = {
129
                 id: response.data.data.id,
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
               store.dispatch("updateFiledConfigList", params).then(() => {});
134
               store.dispatch("updateFiledConfigList", params).then(() => {});
133
               this.$emit("change", params);
135
               this.$emit("change", params);
169
     },
171
     },
170
   
172
   
171
     handleShowOne: function(index, row) {
173
     handleShowOne: function(index, row) {
174
+      console.log("row233223322332332wo",row)
172
       this.$confirm("是否将该字段设为必填?", "提示", {
175
       this.$confirm("是否将该字段设为必填?", "提示", {
173
         confirmButtonText: "确 定",
176
         confirmButtonText: "确 定",
174
         cancelButtonText: "取 消",
177
         cancelButtonText: "取 消",

+ 10 - 8
src/xt_pages/data/components/doubleCheck.vue Прегледај датотеку

48
               @click="handleHide(scope.$index, scope.row)"
48
               @click="handleHide(scope.$index, scope.row)"
49
             >
49
             >
50
             </el-button>
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
             <el-button
61
             <el-button
52
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
62
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
53
               size="small"
63
               size="small"
57
             >
67
             >
58
             </el-button>
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
             <el-button
70
             <el-button
69
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
71
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
70
               size="small"
72
               size="small"

+ 11 - 8
src/xt_pages/data/components/receiveTreatmentAsses.vue Прегледај датотеку

48
               @click="handleHide(scope.$index, scope.row)"
48
               @click="handleHide(scope.$index, scope.row)"
49
             >
49
             >
50
             </el-button>
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
             <el-button
61
             <el-button
52
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
62
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 1"
53
               size="small"
63
               size="small"
57
             >
67
             >
58
             </el-button>
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
             <el-button
71
             <el-button
69
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
72
               v-if="scope.row.is_write!=undefined&&scope.row.is_write == 0"
70
               size="small"
73
               size="small"

+ 1 - 0
src/xt_pages/data/showConfig.vue Прегледај датотеку

123
         if (this.dialysis_prescription_data[i].id == object.id) {
123
         if (this.dialysis_prescription_data[i].id == object.id) {
124
           this.dialysis_prescription_data[i].is_show = object.is_show;
124
           this.dialysis_prescription_data[i].is_show = object.is_show;
125
            if(object.is_write!=undefined){
125
            if(object.is_write!=undefined){
126
+            console.log("obj3323322332",object.is_write)
126
            this.dialysis_prescription_data[i].is_write = object.is_write
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 Прегледај датотеку

106
 
106
 
107
 
107
 
108
                     <el-col :span="8"
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
                         <el-form-item label="目标超滤量(L):">
110
                         <el-form-item label="目标超滤量(L):">
111
                             <el-input
111
                             <el-input
112
                                     type="number"
112
                                     type="number"

Разлика између датотеке није приказан због своје велике величине
+ 504 - 488
src/xt_pages/dialysis/doctorAdvicePrint.vue


+ 6 - 7
src/xt_pages/dialysis/newDoctorAdvice.vue Прегледај датотеку

737
                         parent_id:0,
737
                         parent_id:0,
738
                         groupno:0,
738
                         groupno:0,
739
                         sort:item.device_number.sort,
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
                       item.doctor_advice.push(obj)
742
                       item.doctor_advice.push(obj)
743
                     })
743
                     })
762
            if(this.is_sort == 1){
762
            if(this.is_sort == 1){
763
               schedules.map(item => {
763
               schedules.map(item => {
764
                   item.is_sort = item.device_number.sort
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
                newList = schedules.sort(this.compare('is_sort'))
768
                newList = schedules.sort(this.compare('is_sort'))
799
                     it.number = item.device_number.number
799
                     it.number = item.device_number.number
800
                     it.zone_name = item.device_number.zone.name
800
                     it.zone_name = item.device_number.zone.name
801
                     it.sort = item.device_number.sort,
801
                     it.sort = item.device_number.sort,
802
-                   
803
                     arr.push(it)
802
                     arr.push(it)
804
                 })
803
                 })
805
                 item.is_sort = item.device_number.sort
804
                 item.is_sort = item.device_number.sort
868
            if(this.is_sort == 1){
867
            if(this.is_sort == 1){
869
               schedules.map(item => {
868
               schedules.map(item => {
870
                   item.is_sort = item.device_number.sort
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
                newList = schedules.sort(this.compare('is_sort'))
873
                newList = schedules.sort(this.compare('is_sort'))
879
             if(this.is_sort == 2){
878
             if(this.is_sort == 2){
880
               schedules.map(item => {
879
               schedules.map(item => {
881
                   item.is_sort = item.device_number.sort
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
                newList = schedules.sort(this.compare('assess_time'))
883
                newList = schedules.sort(this.compare('assess_time'))
885
             }
884
             }
898
                     it.number = item.device_number.number
897
                     it.number = item.device_number.number
899
                     it.zone_name = item.device_number.zone.name
898
                     it.zone_name = item.device_number.zone.name
900
                     it.sort = item.device_number.sort,
899
                     it.sort = item.device_number.sort,
901
-                   
902
                     arr.push(it)
900
                     arr.push(it)
903
                 })
901
                 })
904
               item.is_sort = item.device_number.sort
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
             if(this.schedulType == 0){
906
             if(this.schedulType == 0){
908
                 newSchedules = arr
907
                 newSchedules = arr

+ 1 - 0
src/xt_pages/stock/drugs/drugStockFlow.vue Прегледај датотеку

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

+ 55 - 13
src/xt_pages/stock/drugs/drugStockOutOrder.vue Прегледај датотеку

293
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
293
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
294
                   <td style="border-right: none; border-inline-end:none;text-align: center">
294
                   <td style="border-right: none; border-inline-end:none;text-align: center">
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>
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
                     <span v-if="is_sys == 0"> {{getOutCountOne(item.batch_number,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}} </span>
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
                   </td>
298
                   </td>
299
                </tr>
299
                </tr>
303
             <template slot-scope="scope">
303
             <template slot-scope="scope">
304
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
304
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
305
                   <td style="border-right: none; border-inline-end:none;text-align: center">
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
                     <span v-if="is_sys == 0">{{getBatchNumberOne(item.batch_number)}}</span>
307
                     <span v-if="is_sys == 0">{{getBatchNumberOne(item.batch_number)}}</span>
308
                   </td>
308
                   </td>
309
                </tr>
309
                </tr>
322
             <template slot-scope="scope">
322
             <template slot-scope="scope">
323
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
323
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
324
                   <td style="border-right: none; border-inline-end: none;text-align: center">
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
                     <span v-if="is_sys == 0">
326
                     <span v-if="is_sys == 0">
327
                       <span v-if="scope.row.child.length == 1">
327
                       <span v-if="scope.row.child.length == 1">
328
                          {{getPriceTwo(item.warehouse_out_id,item.drug_id)}}
328
                          {{getPriceTwo(item.warehouse_out_id,item.drug_id)}}
341
             <template slot-scope="scope">
341
             <template slot-scope="scope">
342
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
342
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
343
                   <td style="border-right: none; border-inline-end: none;text-align: center">
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
                     <span v-if="is_sys == 0">
345
                     <span v-if="is_sys == 0">
346
                       <span v-if="scope.row.child.length == 1">{{item.retail_price}}</span> 
346
                       <span v-if="scope.row.child.length == 1">{{item.retail_price}}</span> 
347
                       <span v-if="scope.row.child.length > 1">{{item.count * item.price}}</span> 
347
                       <span v-if="scope.row.child.length > 1">{{item.count * item.price}}</span> 
355
             <template slot-scope="scope">
355
             <template slot-scope="scope">
356
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
356
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
357
                   <td style="border-right: none; border-inline-end: none;text-align: center">
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
                     <span v-if="is_sys == 0"> {{getManufacturerName(scope.row.manufacturer)}}</span>
359
                     <span v-if="is_sys == 0"> {{getManufacturerName(scope.row.manufacturer)}}</span>
360
                   </td>
360
                   </td>
361
                </tr>
361
                </tr>
365
             <template slot-scope="scope">
365
             <template slot-scope="scope">
366
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
366
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
367
                   <td style="border-right: none; border-inline-end: none;text-align: center">
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
                     <span v-if="is_sys == 0"> {{getTime(scope.row.product_date)}}</span>
369
                     <span v-if="is_sys == 0"> {{getTime(scope.row.product_date)}}</span>
370
                   </td>
370
                   </td>
371
                </tr>
371
                </tr>
375
             <template slot-scope="scope">
375
             <template slot-scope="scope">
376
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
376
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
377
                   <td style="border-right: none; border-inline-end: none;text-align: center">
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
                    <span v-if="is_sys == 0"> {{getTime(scope.row.expiry_date)}}</span>
379
                    <span v-if="is_sys == 0"> {{getTime(scope.row.expiry_date)}}</span>
380
                   </td>
380
                   </td>
381
                </tr>
381
                </tr>
385
             <template slot-scope="scope">
385
             <template slot-scope="scope">
386
                 <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
386
                 <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
387
                   <td style="border-right: none; border-inline-end: none;text-align: center">
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
                     <span v-if="is_sys ==0">{{getDealerName(scope.row.dealer)}}</span>  
389
                     <span v-if="is_sys ==0">{{getDealerName(scope.row.dealer)}}</span>  
390
                   </td>
390
                   </td>
391
                </tr>
391
                </tr>
395
             <template slot-scope="scope">
395
             <template slot-scope="scope">
396
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
396
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
397
                   <td style="border-right: none; border-inline-end: none;text-align: center">
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
                     <span v-if="is_sys == 0">{{scope.row.number}}</span> 
399
                     <span v-if="is_sys == 0">{{scope.row.number}}</span> 
400
                   </td>
400
                   </td>
401
                </tr>
401
                </tr>
405
             <template slot-scope="scope">
405
             <template slot-scope="scope">
406
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
406
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
407
                   <td style="border-right: none; border-inline-end: none;text-align: center">
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
                     <span v-if="is_sys == 0">{{scope.row.remark}}</span>
409
                     <span v-if="is_sys == 0">{{scope.row.remark}}</span>
410
                   </td>
410
                   </td>
411
                </tr>
411
                </tr>
1277
               list[i].number = "";
1277
               list[i].number = "";
1278
             }
1278
             }
1279
             list[i].child = []
1279
             list[i].child = []
1280
-            if(list[i].is_sys == 1){
1280
+            if(list[i].is_sys == 1 ){
1281
               for(let j=0;j<drugListOne.length;j++){
1281
               for(let j=0;j<drugListOne.length;j++){
1282
                 if(list[i].drug_id == drugListOne[j].drug_id){
1282
                 if(list[i].drug_id == drugListOne[j].drug_id){
1283
                   list[i].child.push(drugListOne[j])
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
               for(let j=0;j<drugListTwo.length;j++){
1288
               for(let j=0;j<drugListTwo.length;j++){
1289
                 if(list[i].drug_id == drugListTwo[j].drug_id){
1289
                 if(list[i].drug_id == drugListTwo[j].drug_id){
1290
                   list[i].child.push(drugListTwo[j])
1290
                   list[i].child.push(drugListTwo[j])
1656
       var total = 0
1656
       var total = 0
1657
       var max_str = ""
1657
       var max_str = ""
1658
       var min_str = ""
1658
       var min_str = ""
1659
+      console.log("outlist",this.outList)
1660
+      console.log("warehouse_info_id",warehouse_info_id)
1659
       for(let j=0;j<this.outList.length;j++){
1661
       for(let j=0;j<this.outList.length;j++){
1660
         if(warehouse_info_id == this.outList[j].warehouse_info_id && drug_id == this.outList[j].drug_id){
1662
         if(warehouse_info_id == this.outList[j].warehouse_info_id && drug_id == this.outList[j].drug_id){
1661
            arr.push(this.outList[j])
1663
            arr.push(this.outList[j])
1662
         }
1664
         }
1663
       }
1665
       }
1664
-      
1666
+       console.log("arr23322332",arr)
1665
       if(arr.length > 0){
1667
       if(arr.length > 0){
1666
         for(let i=0;i<arr.length;i++){
1668
         for(let i=0;i<arr.length;i++){
1667
            total +=arr[i].count
1669
            total +=arr[i].count
1685
       }
1687
       }
1686
       return max_str + min_str;
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
     getOutCount(warehouse_info_id,max_unit,min_unit,min_number){
1730
     getOutCount(warehouse_info_id,max_unit,min_unit,min_number){
1689
       var arr = []
1731
       var arr = []
1690
       var total = 0
1732
       var total = 0

+ 3 - 0
src/xt_pages/stock/stockFlow.vue Прегледај датотеку

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

+ 24 - 2
src/xt_pages/stock/stockOutOrder.vue Прегледај датотеку

602
               <template slot="header" slot-scope="scope">
602
               <template slot="header" slot-scope="scope">
603
                 <span>使用人</span>
603
                 <span>使用人</span>
604
               </template>
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
             </el-table-column>
609
             </el-table-column>
610
+
607
             <el-table-column min-width="35" align="center">
611
             <el-table-column min-width="35" align="center">
608
               <template slot="header" slot-scope="scope">
612
               <template slot="header" slot-scope="scope">
609
                 <span>使用数量</span>
613
                 <span>使用数量</span>
1968
           for (let i = 0; i <arrTwo.length; i++) {
1972
           for (let i = 0; i <arrTwo.length; i++) {
1969
             var obj = arrTwo[i];
1973
             var obj = arrTwo[i];
1970
             obj["is_total"] = 0;
1974
             obj["is_total"] = 0;
1975
+            
1971
             this.userList.push(obj);
1976
             this.userList.push(obj);
1972
             if(arrTwo[i].is_sys == 1){
1977
             if(arrTwo[i].is_sys == 1){
1973
               total = total + arrTwo[i].count - arrTwo[i].cancel_count;
1978
               total = total + arrTwo[i].count - arrTwo[i].cancel_count;
1976
             }
1981
             }
1977
             
1982
             
1978
           }
1983
           }
1984
+
1985
+
1979
          
1986
          
1980
           this.userList.push({
1987
           this.userList.push({
1981
             is_total: 1,
1988
             is_total: 1,
1987
           if (val.is_sys == 0 || val.is_sys == 5) {
1994
           if (val.is_sys == 0 || val.is_sys == 5) {
1988
             this.editdialogVisibleTwo = true;
1995
             this.editdialogVisibleTwo = true;
1989
           }
1996
           }
1990
-          }
1997
+
1998
+           console.log("我的世界332323223我",this.userList)
1999
+         }
1991
 
2000
 
1992
    
2001
    
1993
         }
2002
         }
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
 };