Browse Source

新分支

28169 5 months ago
parent
commit
e1143d2c4c

+ 9 - 0
src/api/drug/drug_stock.js View File

670
     method:"Get",
670
     method:"Get",
671
     params:params,
671
     params:params,
672
   })
672
   })
673
+}
674
+
675
+export function ModityDrugCodeWarehouseInfo(data){
676
+ 
677
+  return request({
678
+    url:"/api/drug/modifydrugcodewarehouseinfo",
679
+    method:"post",
680
+    data:data,
681
+  })
673
 }
682
 }

+ 1 - 1
src/xt_pages/dialysis/details/dialysisMonitoring.vue View File

108
           <td v-if="isShow('透析液温度1')"> {{ monitor.dialysate_temperature_one ? monitor.dialysate_temperature_one : "/" }} </td>
108
           <td v-if="isShow('透析液温度1')"> {{ monitor.dialysate_temperature_one ? monitor.dialysate_temperature_one : "/" }} </td>
109
           <td v-if="isShow('置换率')"> {{ monitor.replacement_rate ? monitor.replacement_rate : "0" }} </td>
109
           <td v-if="isShow('置换率')"> {{ monitor.replacement_rate ? monitor.replacement_rate : "0" }} </td>
110
           <td v-if="isShow('置换率1')"> {{ monitor.replacement_rate ? monitor.replacement_rate : "/" }} </td>
110
           <td v-if="isShow('置换率1')"> {{ monitor.replacement_rate ? monitor.replacement_rate : "/" }} </td>
111
-          <td v-if="isShow('置换量')"> {{ monitor.displacement_quantity ? monitor.displacement_quantity : "" }} </td>
111
+          <td v-if="isShow('置换量')"> {{ monitor.displacement_quantity ? monitor.displacement_quantity : "0" }} </td>
112
           <td v-if="isShow('置换量1')"> {{ monitor.displacement_quantity_one ? monitor.displacement_quantity_one : "/" }} </td>
112
           <td v-if="isShow('置换量1')"> {{ monitor.displacement_quantity_one ? monitor.displacement_quantity_one : "/" }} </td>
113
           <td v-if="isShow('SpO₂')"> {{ monitor.blood_oxygen_saturation ? monitor.blood_oxygen_saturation : "" }} </td>
113
           <td v-if="isShow('SpO₂')"> {{ monitor.blood_oxygen_saturation ? monitor.blood_oxygen_saturation : "" }} </td>
114
           <td v-if="isShow('SpO₂') && org_id == 9829" width="92px" >{{ monitor.blood_oxygen_saturation ? monitor.blood_oxygen_saturation : "" }} </td>
114
           <td v-if="isShow('SpO₂') && org_id == 9829" width="92px" >{{ monitor.blood_oxygen_saturation ? monitor.blood_oxygen_saturation : "" }} </td>

+ 1 - 1
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

5773
       this.$refs.prescriptions.open_three()
5773
       this.$refs.prescriptions.open_three()
5774
     },
5774
     },
5775
     open(index) {
5775
     open(index) {
5776
-
5776
+      console.log("index",index)
5777
       this.index = index
5777
       this.index = index
5778
       if (index == 1) {
5778
       if (index == 1) {
5779
         this.$refs.prescriptions.open(1, this.saveLoading)
5779
         this.$refs.prescriptions.open(1, this.saveLoading)

+ 69 - 2
src/xt_pages/stock/drugs/components/drugInOrder.vue View File

169
             {{scope.row.total_price}}
169
             {{scope.row.total_price}}
170
           </template>
170
           </template>
171
         </el-table-column>
171
         </el-table-column>
172
+
173
+        <el-table-column label="药品追溯码" width="150" align="center">
174
+            <template slot-scope="scope">
175
+              <div  @click="changeDrugCode(scope.row,scope.$index)">
176
+                <el-input v-model="scope.row.drug_code"  placeholder="请输入药品追溯码"></el-input>
177
+              </div>
178
+            </template>
179
+          </el-table-column>
172
       </el-table>
180
       </el-table>
173
 
181
 
174
       <el-pagination
182
       <el-pagination
183
       >
191
       >
184
       </el-pagination>
192
       </el-pagination>
185
     <!-- </el-row> -->
193
     <!-- </el-row> -->
194
+
195
+    <el-dialog
196
+      title="药品追溯码"
197
+      :visible.sync="dialogVisible"
198
+      width="40%">
199
+      <span>
200
+        <el-input
201
+         @keyup.native="changeText"
202
+          type="textarea"
203
+          placeholder="请输入内容"
204
+          v-model="textarea"
205
+          :rows="10"
206
+        >
207
+        </el-input>
208
+      </span>
209
+      <span slot="footer" class="dialog-footer">
210
+        <el-button @click="dialogVisible = false">取 消</el-button>
211
+        <el-button type="primary" @click="saveTextArea()">确 定</el-button>
212
+      </span>
213
+    </el-dialog>
186
   </div>
214
   </div>
187
 </template>
215
 </template>
188
 
216
 
190
 import { uParseTime } from "@/utils/tools";
218
 import { uParseTime } from "@/utils/tools";
191
 import { fetchAllAdminUsers } from "@/api/doctor";
219
 import { fetchAllAdminUsers } from "@/api/doctor";
192
 import { GetAllConfig } from "@/api/stock";
220
 import { GetAllConfig } from "@/api/stock";
193
-import { getDrugIndetail,getDrugWarehouseInfoPrint} from "@/api/drug/drug_stock"
221
+import { getDrugIndetail,getDrugWarehouseInfoPrint,ModityDrugCodeWarehouseInfo} from "@/api/drug/drug_stock"
194
 export default {
222
 export default {
195
   name: "stockInDetail",
223
   name: "stockInDetail",
196
 
224
 
232
     //获取入库单数据
260
     //获取入库单数据
233
     this.getlist()
261
     this.getlist()
234
     this.getDrugWarehouseInfoPrint() 
262
     this.getDrugWarehouseInfoPrint() 
235
-
263
+    
236
   },
264
   },
237
   data() {
265
   data() {
238
     return {
266
     return {
269
       drugTypeList:[],
297
       drugTypeList:[],
270
       storehouse_id:0,
298
       storehouse_id:0,
271
       houseList:[],
299
       houseList:[],
300
+      dialogVisible:false,
301
+      currentRow:{},
302
+      currentIndex:0,
303
+      textarea:"",
304
+      id:0,
272
     };
305
     };
273
   },
306
   },
274
   methods: {
307
   methods: {
308
+    changeText(event){
309
+      // 检查是否为特定的按键,例如回车键,来确认扫码枪输入完成
310
+      if (event.key === 'Enter') {
311
+        var textarea = ""
312
+        textarea += this.textarea + ","
313
+        this.textarea = textarea
314
+
315
+      }
316
+   },
317
+    changeDrugCode(row,index){
318
+      this.textarea=""
319
+      this.textarea = row.drug_code
320
+      this.currentRow = row
321
+      this.currentIndex =index
322
+      this.id = row.id
323
+      this.dialogVisible = true
324
+    },
325
+    saveTextArea(){
326
+        var params = {
327
+           id:this.id,
328
+           drug_code:this.textarea,
329
+        }
330
+        console.log("params=-==---",params)
331
+       ModityDrugCodeWarehouseInfo(params).then(response=>{
332
+          if(response.data.state == 1){
333
+            var info =  response.data.data.info
334
+            this.$message.success("保存成功!")
335
+            this.dialogVisible = false
336
+            this.getlist()
337
+          }
338
+       })
339
+   
340
+     
341
+    },
275
     changeType: function(val) {
342
     changeType: function(val) {
276
      
343
      
277
       this.order_type = val;
344
       this.order_type = val;

+ 9 - 10
src/xt_pages/stock/drugs/drugStockInOrderEdit.vue View File

341
 
341
 
342
           <el-table-column label="药品追溯码" width="150" align="center">
342
           <el-table-column label="药品追溯码" width="150" align="center">
343
             <template slot-scope="scope">
343
             <template slot-scope="scope">
344
-              <!-- <el-input v-model="scope.row.drug_code"  placeholder="请输入药品追溯码" :disabled="disabled"></el-input> -->
345
               <div  @click="changeDrugCode(scope.row,scope.$index)">
344
               <div  @click="changeDrugCode(scope.row,scope.$index)">
346
-                <el-input v-model="scope.row.drug_code"  placeholder="请输入药品追溯码" :disabled="disabled"></el-input>
345
+                <el-input v-model="scope.row.drug_code"  placeholder="请输入药品追溯码"></el-input>
347
               </div>
346
               </div>
348
             </template>
347
             </template>
349
           </el-table-column>
348
           </el-table-column>
354
             </template>
353
             </template>
355
           </el-table-column>
354
           </el-table-column>
356
 
355
 
357
-         
356
+
358
 
357
 
359
           <el-table-column
358
           <el-table-column
360
             label="操作"
359
             label="操作"
553
 
552
 
554
       for(let i=0;i<this.recordInfo.recordData.length;i++){
553
       for(let i=0;i<this.recordInfo.recordData.length;i++){
555
          if(this.currentIndex == i){
554
          if(this.currentIndex == i){
556
-           this.recordInfo.recordData[i].drug_code = this.textarea 
555
+           this.recordInfo.recordData[i].drug_code = this.textarea
557
          }
556
          }
558
       }
557
       }
559
       this.dialogVisible = false
558
       this.dialogVisible = false
782
             stockIn: this.recordInfo.recordData
781
             stockIn: this.recordInfo.recordData
783
           };
782
           };
784
           console.log("params---------",params)
783
           console.log("params---------",params)
785
-         
784
+
786
           EditDrugWarehouse(
785
           EditDrugWarehouse(
787
             params,
786
             params,
788
             this.warehousing_time,
787
             this.warehousing_time,
903
            if(response.data.data.info[i].dealer == 0){
902
            if(response.data.data.info[i].dealer == 0){
904
                response.data.data.info[i].dealer = ""
903
                response.data.data.info[i].dealer = ""
905
             }
904
             }
906
-           
905
+
907
             response.data.data.info[i].unitList = []
906
             response.data.data.info[i].unitList = []
908
             var obj = {id:1,name:""}
907
             var obj = {id:1,name:""}
909
             var objOne = {id:2,name:""}
908
             var objOne = {id:2,name:""}
911
             objOne.name = response.data.data.info[i].drug.min_unit
910
             objOne.name = response.data.data.info[i].drug.min_unit
912
             response.data.data.info[i].unitList.push(obj)
911
             response.data.data.info[i].unitList.push(obj)
913
             response.data.data.info[i].unitList.push(objOne)
912
             response.data.data.info[i].unitList.push(objOne)
914
-            
913
+
915
 
914
 
916
             this.recordInfo.recordData.push(response.data.data.info[i]);
915
             this.recordInfo.recordData.push(response.data.data.info[i]);
917
 
916
 
927
                }
926
                }
928
             }
927
             }
929
 
928
 
930
-          
929
+
931
           }
930
           }
932
           this.warehouse = response.data.data.warehousing;
931
           this.warehouse = response.data.data.warehousing;
933
           this.storehouse_id = response.data.data.warehousing.storehouse_id
932
           this.storehouse_id = response.data.data.warehousing.storehouse_id
1081
         }
1080
         }
1082
     },
1081
     },
1083
     getTotalPirce(){
1082
     getTotalPirce(){
1084
-      
1083
+
1085
       var total_price = 0
1084
       var total_price = 0
1086
       if(this.recordInfo.recordData!=null && this.recordInfo.recordData.length>0){
1085
       if(this.recordInfo.recordData!=null && this.recordInfo.recordData.length>0){
1087
-        
1086
+
1088
         for(let i=0;i<this.recordInfo.recordData.length;i++){
1087
         for(let i=0;i<this.recordInfo.recordData.length;i++){
1089
            total_price += this.recordInfo.recordData[i].last_price * parseInt(this.recordInfo.recordData[i].warehousing_count)
1088
            total_price += this.recordInfo.recordData[i].last_price * parseInt(this.recordInfo.recordData[i].warehousing_count)
1090
         }
1089
         }