|
@@ -155,7 +155,7 @@
|
155
|
155
|
<el-button type="primary" @click="endispense" v-if="state == 2"
|
156
|
156
|
>退药</el-button
|
157
|
157
|
>
|
158
|
|
- <el-button type="primary" @click="toPrint">打印</el-button>
|
|
158
|
+ <el-button type="primary" @click="toPrint" v-if="printShow">打印</el-button>
|
159
|
159
|
<!-- <el-button @click="tiaoshi">调试</el-button>-->
|
160
|
160
|
<el-button type="primary" v-if="state == 1" @click="toSetting"
|
161
|
161
|
>设置</el-button
|
|
@@ -424,7 +424,8 @@ export default {
|
424
|
424
|
total_count:0,
|
425
|
425
|
newArrList:[],
|
426
|
426
|
textAreaList:[],
|
427
|
|
- scan_code:""
|
|
427
|
+ scan_code:"",
|
|
428
|
+ printShow:false,
|
428
|
429
|
};
|
429
|
430
|
},
|
430
|
431
|
|
|
@@ -542,11 +543,13 @@ export default {
|
542
|
543
|
if (this.state == 1) {
|
543
|
544
|
this.tableData = []
|
544
|
545
|
this.patients = {}
|
|
546
|
+ this.printShow = false
|
545
|
547
|
this.getpatientdetails(0);
|
546
|
548
|
}
|
547
|
549
|
if (this.state == 2) {
|
548
|
550
|
this.patients = {}
|
549
|
551
|
this.tableData = []
|
|
552
|
+ this.printShow = false
|
550
|
553
|
this.getpatientdetails(1);
|
551
|
554
|
}
|
552
|
555
|
},
|
|
@@ -859,6 +862,7 @@ export default {
|
859
|
862
|
getpharmacycontent(params).then((res) => {
|
860
|
863
|
if (res.data.state == 1) {
|
861
|
864
|
// loading.close()
|
|
865
|
+
|
862
|
866
|
var list = res.data.data.list;
|
863
|
867
|
console.log("hhhhawoowowow",res.data.data)
|
864
|
868
|
this.baseList =[]
|
|
@@ -889,6 +893,7 @@ export default {
|
889
|
893
|
this.tableData = []
|
890
|
894
|
this.tableData = list
|
891
|
895
|
}
|
|
896
|
+ this.printShow = true
|
892
|
897
|
// console.log("tableDatawoowow",this.tableData)
|
893
|
898
|
// loading.close()
|
894
|
899
|
} else {
|
|
@@ -1283,7 +1288,7 @@ export default {
|
1283
|
1288
|
getDrugCode(id,DataSources,DrugCode,index,DrugId){
|
1284
|
1289
|
|
1285
|
1290
|
// 针对百霖
|
1286
|
|
- if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278 || this.$store.getters.xt_user.org.id == 10610 || this.$store.getters.xt_user.org.id == 10537 || this.$store.getters.xt_user.org.id==0){
|
|
1291
|
+ if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278 || this.$store.getters.xt_user.org.id == 10610 || this.$store.getters.xt_user.org.id == 10537 || this.$store.getters.xt_user.org.id==0|| this.$store.getters.xt_user.org.id==10726){
|
1287
|
1292
|
var params = {
|
1288
|
1293
|
drug_id:DrugId,
|
1289
|
1294
|
start_time:moment().subtract(15, 'days').format("YYYY-MM-DD")
|
|
@@ -1412,7 +1417,7 @@ export default {
|
1412
|
1417
|
|
1413
|
1418
|
|
1414
|
1419
|
|
1415
|
|
- if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278|| this.$store.getters.xt_user.org.id == 10537 || this.$store.getters.xt_user.org.id == 10610){
|
|
1420
|
+ if(this.$store.getters.xt_user.org.id == 10138 || this.$store.getters.xt_user.org.id == 10278|| this.$store.getters.xt_user.org.id == 10537 || this.$store.getters.xt_user.org.id == 10610 || this.$store.getters.xt_user.org.id == 10726){
|
1416
|
1421
|
|
1417
|
1422
|
var drugindentificaitoncode = this.getDrugIdentificationCode(this.drug_id)
|
1418
|
1423
|
|
|
@@ -1463,12 +1468,17 @@ export default {
|
1463
|
1468
|
is_err_check = true
|
1464
|
1469
|
}
|
1465
|
1470
|
|
1466
|
|
- if(drugindentificaitoncode>0){
|
1467
|
|
- if(arr[i].substring(0,7)!= drugindentificaitoncode){
|
1468
|
|
- this.$message.error("药品标识码格式不正确,请重新扫码")
|
1469
|
|
- is_err_check = true
|
1470
|
|
- }
|
|
1471
|
+
|
|
1472
|
+ if(this.$store.getters.xt_user.org.id != 10726){
|
|
1473
|
+ if(drugindentificaitoncode>0){
|
|
1474
|
+ if(arr[i].substring(0,7)!= drugindentificaitoncode){
|
|
1475
|
+ this.$message.error("药品标识码格式不正确,请重新扫码")
|
|
1476
|
+ is_err_check = true
|
|
1477
|
+ }
|
|
1478
|
+ }
|
1471
|
1479
|
}
|
|
1480
|
+
|
|
1481
|
+
|
1472
|
1482
|
|
1473
|
1483
|
|
1474
|
1484
|
}
|