XMLWAN 3 years ago
parent
commit
040494e4ae

+ 5 - 5
src/store/modules/globalConfig.js View File

220
       }
220
       }
221
     ],
221
     ],
222
     contagions: [ // 传染病
222
     contagions: [ // 传染病
223
-      {
224
-        id: 1,
225
-        name: '普通',
226
-        type: 1
227
-      },
223
+      // {
224
+      //   id: 1,
225
+      //   name: '普通',
226
+      //   type: 1
227
+      // },
228
       {
228
       {
229
         id: 2,
229
         id: 2,
230
         name: '乙肝',
230
         name: '乙肝',

+ 6 - 1
src/xt_pages/data/components/addDrugs.vue View File

20
                                       maxlength="30"></el-input>
20
                                       maxlength="30"></el-input>
21
                         </el-form-item>
21
                         </el-form-item>
22
 
22
 
23
+                        <!-- <el-form-item label="药品规格 : ">
24
+                            <el-input v-model="form.specification_name" style="width:160px;" placeholder=""
25
+                                      maxlength="30"></el-input>
26
+                        </el-form-item> -->
27
+
23
                         <el-form-item label="药品类别 : " prop="drug_category">
28
                         <el-form-item label="药品类别 : " prop="drug_category">
24
                             <el-select v-model="form.drug_category" style="width:160px;" placeholder="请选择">
29
                             <el-select v-model="form.drug_category" style="width:160px;" placeholder="请选择">
25
                                 <el-option
30
                                 <el-option
145
                         <el-input v-model="form.drug_day" style="width:160px;" placeholder=""
150
                         <el-input v-model="form.drug_day" style="width:160px;" placeholder=""
146
                                   maxlength="30"></el-input>
151
                                   maxlength="30"></el-input>
147
                     </el-form-item>
152
                     </el-form-item>
148
-                       <el-form-item label="库存警戒:" prop="drug_stock_limit">
153
+                       <el-form-item label="库存警戒:">
149
                             <el-input v-model="form.drug_stock_limit" style="width:160px;" placeholder=""
154
                             <el-input v-model="form.drug_stock_limit" style="width:160px;" placeholder=""
150
                                       maxlength="30"></el-input>
155
                                       maxlength="30"></el-input>
151
                         </el-form-item>
156
                         </el-form-item>

+ 8 - 3
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue View File

836
         current_drug_name:"",
836
         current_drug_name:"",
837
         current_drug_spec: "",
837
         current_drug_spec: "",
838
         drug_id: 0,
838
         drug_id: 0,
839
-        src_type:""
839
+        src_type:"",
840
+        org_id:0,
840
       }
841
       }
841
     },
842
     },
842
     watch: {
843
     watch: {
2172
         let tempPrescribingNumberDesc = ''
2173
         let tempPrescribingNumberDesc = ''
2173
 
2174
 
2174
         if (row.prescribing_number) {
2175
         if (row.prescribing_number) {
2175
-          tempPrescribingNumberDesc =
2176
-            row.prescribing_number + '' + row.prescribing_number_unit
2176
+           tempPrescribingNumberDesc = row.prescribing_number + '' + row.prescribing_number_unit
2177
+        }
2178
+
2179
+        if(this.org_id == 10188 ){
2180
+            tempPrescribingNumberDesc = ""
2177
         }
2181
         }
2178
 
2182
 
2179
         if (row.single_dose) {
2183
         if (row.single_dose) {
2548
       this.getAdviceConfig()
2552
       this.getAdviceConfig()
2549
       this.unitsOption = getDataConfig('hemodialysis', 'units')
2553
       this.unitsOption = getDataConfig('hemodialysis', 'units')
2550
       this.template_id = this.$store.getters.xt_user.template_info.template_id
2554
       this.template_id = this.$store.getters.xt_user.template_info.template_id
2555
+      this.org_id = this.$store.getters.xt_user.org.id
2551
       this.patientid = this.$route.query.patient_id
2556
       this.patientid = this.$route.query.patient_id
2552
       this.request_record_date = this.record_date
2557
       this.request_record_date = this.record_date
2553
 
2558
 

+ 6 - 21
src/xt_pages/stock/drugs/query.vue View File

79
       </div>
79
       </div>
80
       
80
       
81
        <el-table :data="tableList" border style="width: 100%">
81
        <el-table :data="tableList" border style="width: 100%">
82
-        <!-- <el-table-column prop="date" label="药品编号" width="180">
83
-           <template  slot-scope="scope">
84
-              
85
-           </template>
86
-        </el-table-column> -->
82
+      
87
         <el-table-column prop="drug_type" label="药品类型" width="180" align="center">
83
         <el-table-column prop="drug_type" label="药品类型" width="180" align="center">
88
            <template slot-scope="scope">
84
            <template slot-scope="scope">
89
              {{getDrugType(scope.row.drug_type)}}
85
              {{getDrugType(scope.row.drug_type)}}
116
         </el-table-column>
112
         </el-table-column>
117
         <el-table-column prop="drug_name" label="出库数量" align="center">
113
         <el-table-column prop="drug_name" label="出库数量" align="center">
118
            <template slot-scope="scope">
114
            <template slot-scope="scope">
119
-              <span v-if="org_id == 10028 || org_id == 9671">{{getOutCount(scope.row.id)+getAutoCount(scope.row.id)}}</span>
120
-              <span v-else>{{getWarehouseOutInfo(scope.row.drug_warehouse_out,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span> 
115
+              <span>{{getOutCount(scope.row.id)+getAutoCount(scope.row.id)}}{{scope.row.max_unit}}</span>
116
+              <!-- <span v-else>{{getWarehouseOutInfo(scope.row.drug_warehouse_out,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>  -->
121
            </template>
117
            </template>
122
         </el-table-column>
118
         </el-table-column>
123
         <el-table-column prop="drug_name" label="剩余库存量" align="center">
119
         <el-table-column prop="drug_name" label="剩余库存量" align="center">
124
            <template slot-scope="scope">
120
            <template slot-scope="scope">
125
             <div v-if="getWarehoseInfo(scope.row.drug_warehouse_info)!=0">
121
             <div v-if="getWarehoseInfo(scope.row.drug_warehouse_info)!=0">
126
-               <span v-if="(org_id == 10028 || org_id == 9671)">{{getWarehoseInfo(scope.row.drug_warehouse_info) - getOutCount(scope.row.id) - getAutoCount(scope.row.id)}} </span>
127
-               <span v-else>{{getOverFlushInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span> 
122
+               <span>{{getWarehoseInfo(scope.row.drug_warehouse_info) - getOutCount(scope.row.id) - getAutoCount(scope.row.id)}}{{scope.row.max_unit}} </span>
123
+               <!-- <span v-else>{{getOverFlushInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>  -->
128
             </div>
124
             </div>
129
            </template>
125
            </template>
130
         </el-table-column>
126
         </el-table-column>
178
     name: 'stockIn',
174
     name: 'stockIn',
179
     created() {
175
     created() {
180
       
176
       
181
-      // var nowDate = new Date();
182
-      // var nowYear = nowDate.getFullYear();
183
-      // var nowMonth = nowDate.getMonth() + 1;
184
-      // var nowDay = nowDate.getDate();
185
-      // this.end_time =nowYear +"-" +(nowMonth < 10 ? "0" + nowMonth : nowMonth) +"-" +(nowDay < 10 ? "0" + nowDay : nowDay);
186
-      // nowDate.setMonth(nowDate.getMonth() - 1);
187
-      // nowYear = nowDate.getFullYear();
188
-      // nowMonth = nowDate.getMonth() + 1;
189
-      // nowDay = nowDate.getDate();
190
-      // this.start_time =nowYear +"-" +(nowMonth < 10 ? "0" + nowMonth : nowMonth) +"-" +(nowDay < 10 ? "0" + nowDay : nowDay);
191
       this.getlist()
177
       this.getlist()
192
       var drugCategory = getDictionaryDataConfig('system','drug_category')
178
       var drugCategory = getDictionaryDataConfig('system','drug_category')
193
       this.drugCategory.push(...drugCategory)
179
       this.drugCategory.push(...drugCategory)
524
          console.log("paramsw2ww",params)
510
          console.log("paramsw2ww",params)
525
         getDrugCountList(params).then(response=>{
511
         getDrugCountList(params).then(response=>{
526
           if(response.data.state == 1){
512
           if(response.data.state == 1){
527
-            var countlist =  response.data.data.countList
528
-            this.countList = countlist
529
             var minCount = response.data.data.minCount
513
             var minCount = response.data.data.minCount
530
             console.log("minCount",minCount)
514
             console.log("minCount",minCount)
531
             this.minCount = minCount
515
             this.minCount = minCount
537
                  info[i].count = info[i].count * info[i].min_number
521
                  info[i].count = info[i].count * info[i].min_number
538
               }
522
               }
539
             }
523
             }
524
+
540
             this.outCountList = response.data.data.outCountList
525
             this.outCountList = response.data.data.outCountList
541
             console.log("手动出库",this.outCountList)
526
             console.log("手动出库",this.outCountList)
542
             this.auCountList = response.data.data.auCountList
527
             this.auCountList = response.data.data.auCountList

+ 3 - 1
src/xt_pages/workforce/components/tableData.vue View File

818
             return false
818
             return false
819
           }
819
           }
820
           var partitions = response.data.data.partitions
820
           var partitions = response.data.data.partitions
821
-        
821
+          console.log("partitions",partitions)
822
           this.theWeek.thisWeek = response.data.data.theWeek
822
           this.theWeek.thisWeek = response.data.data.theWeek
823
+          console.log("这个周",response.data.data.theWeek)
823
           this.theWeek.lastWeek = this.theWeek.thisWeek - 1
824
           this.theWeek.lastWeek = this.theWeek.thisWeek - 1
824
           this.theWeek.nextWeek = this.theWeek.thisWeek + 1
825
           this.theWeek.nextWeek = this.theWeek.thisWeek + 1
825
           this.theWeek.nextTwoWeek = this.theWeek.thisWeek + 2
826
           this.theWeek.nextTwoWeek = this.theWeek.thisWeek + 2
840
                   zone_type: partition.type,
841
                   zone_type: partition.type,
841
                   cut: jihao.number,
842
                   cut: jihao.number,
842
                   jihao_id: jihao.id,
843
                   jihao_id: jihao.id,
844
+                  sort:jihao.sort,
843
                   Mon_M: {
845
                   Mon_M: {
844
                     schedule_id: 0,
846
                     schedule_id: 0,
845
                     mode_id: 0,
847
                     mode_id: 0,