Browse Source

新分支

28169 5 months ago
parent
commit
e1143d2c4c

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

@@ -670,4 +670,13 @@ export function getDrugPatientName(params){
670 670
     method:"Get",
671 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,7 +108,7 @@
108 108
           <td v-if="isShow('透析液温度1')"> {{ monitor.dialysate_temperature_one ? monitor.dialysate_temperature_one : "/" }} </td>
109 109
           <td v-if="isShow('置换率')"> {{ monitor.replacement_rate ? monitor.replacement_rate : "0" }} </td>
110 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 112
           <td v-if="isShow('置换量1')"> {{ monitor.displacement_quantity_one ? monitor.displacement_quantity_one : "/" }} </td>
113 113
           <td v-if="isShow('SpO₂')"> {{ monitor.blood_oxygen_saturation ? monitor.blood_oxygen_saturation : "" }} </td>
114 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,7 +5773,7 @@ export default {
5773 5773
       this.$refs.prescriptions.open_three()
5774 5774
     },
5775 5775
     open(index) {
5776
-
5776
+      console.log("index",index)
5777 5777
       this.index = index
5778 5778
       if (index == 1) {
5779 5779
         this.$refs.prescriptions.open(1, this.saveLoading)

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

@@ -169,6 +169,14 @@
169 169
             {{scope.row.total_price}}
170 170
           </template>
171 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 180
       </el-table>
173 181
 
174 182
       <el-pagination
@@ -183,6 +191,26 @@
183 191
       >
184 192
       </el-pagination>
185 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 214
   </div>
187 215
 </template>
188 216
 
@@ -190,7 +218,7 @@
190 218
 import { uParseTime } from "@/utils/tools";
191 219
 import { fetchAllAdminUsers } from "@/api/doctor";
192 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 222
 export default {
195 223
   name: "stockInDetail",
196 224
 
@@ -232,7 +260,7 @@ export default {
232 260
     //获取入库单数据
233 261
     this.getlist()
234 262
     this.getDrugWarehouseInfoPrint() 
235
-
263
+    
236 264
   },
237 265
   data() {
238 266
     return {
@@ -269,9 +297,48 @@ export default {
269 297
       drugTypeList:[],
270 298
       storehouse_id:0,
271 299
       houseList:[],
300
+      dialogVisible:false,
301
+      currentRow:{},
302
+      currentIndex:0,
303
+      textarea:"",
304
+      id:0,
272 305
     };
273 306
   },
274 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 342
     changeType: function(val) {
276 343
      
277 344
       this.order_type = val;

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

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