|
@@ -15,7 +15,7 @@
|
15
|
15
|
type="primary"
|
16
|
16
|
v-if="orgId !=10480"
|
17
|
17
|
>明细导出
|
18
|
|
-
|
|
18
|
+
|
19
|
19
|
</el-button>
|
20
|
20
|
<el-button
|
21
|
21
|
style="float: right;margin-right:10px"
|
|
@@ -24,7 +24,7 @@
|
24
|
24
|
type="primary"
|
25
|
25
|
v-if="orgId ==10480"
|
26
|
26
|
>明细导出
|
27
|
|
-
|
|
27
|
+
|
28
|
28
|
</el-button>
|
29
|
29
|
<el-button
|
30
|
30
|
style="float: right;margin-right:10px"
|
|
@@ -142,7 +142,7 @@
|
142
|
142
|
{{ getManufactuerName(scope.row.manufacturer) }}
|
143
|
143
|
</template>
|
144
|
144
|
</el-table-column>
|
145
|
|
-<!--
|
|
145
|
+<!--
|
146
|
146
|
<el-table-column label="进销商" align="center">
|
147
|
147
|
<template slot-scope="scope">
|
148
|
148
|
{{ getDealerName(scope.row.dealer) }}
|
|
@@ -189,13 +189,13 @@
|
189
|
189
|
<span v-if="scope.row.is_total == 0">
|
190
|
190
|
<span v-if="orgId!=9583">{{ scope.row.count }}</span>
|
191
|
191
|
<span v-if="orgId ==9583">{{getStockCount(scope.row.good_id) }}</span>
|
192
|
|
- </span>
|
|
192
|
+ </span>
|
193
|
193
|
<span v-if="scope.row.is_total == 1">
|
194
|
194
|
{{scope.row.count}}
|
195
|
195
|
</span>
|
196
|
196
|
</template>
|
197
|
197
|
</el-table-column>
|
198
|
|
-
|
|
198
|
+
|
199
|
199
|
<el-table-column label="总价" align="center">
|
200
|
200
|
<template slot-scope="scope">
|
201
|
201
|
<span v-if="scope.row.is_total == 0 && scope.row.price > 0">{{getTotal(scope.row.price, scope.row.count)}}</span>
|
|
@@ -265,7 +265,7 @@ export default {
|
265
|
265
|
this.fetchAllAdminUsers();
|
266
|
266
|
this.goodUnit = this.$store.getters.good_unit
|
267
|
267
|
var org_id = this.$store.getters.xt_user.org.id
|
268
|
|
-
|
|
268
|
+
|
269
|
269
|
this.orgId = org_id
|
270
|
270
|
|
271
|
271
|
|
|
@@ -388,7 +388,7 @@ export default {
|
388
|
388
|
this.wareOutList = response.data.data.list
|
389
|
389
|
this.patientsList = []
|
390
|
390
|
this.patientsList = response.data.data.patientsList
|
391
|
|
-
|
|
391
|
+
|
392
|
392
|
var total = 0
|
393
|
393
|
var objOne = {
|
394
|
394
|
warehouse_out_order_number: "合计",
|
|
@@ -408,7 +408,7 @@ export default {
|
408
|
408
|
this.cancelStockDate.push(obj);
|
409
|
409
|
objOne.count += response.data.data.list[i].count
|
410
|
410
|
}
|
411
|
|
-
|
|
411
|
+
|
412
|
412
|
this.cancelStockDate.push(objOne);
|
413
|
413
|
|
414
|
414
|
}
|
|
@@ -479,7 +479,7 @@ export default {
|
479
|
479
|
}
|
480
|
480
|
objOne.count +=response.data.data.list[i].count
|
481
|
481
|
obj["is_total"] = 0;
|
482
|
|
-
|
|
482
|
+
|
483
|
483
|
this.cancelStockDate.push(obj);
|
484
|
484
|
}
|
485
|
485
|
|
|
@@ -602,14 +602,14 @@ export default {
|
602
|
602
|
},
|
603
|
603
|
getDealerNameOne(id){
|
604
|
604
|
var dealer_name = ""
|
605
|
|
-
|
|
605
|
+
|
606
|
606
|
for(let i=0;i<this.dealerList.length;i++){
|
607
|
607
|
if(id == this.dealerList[i].id){
|
608
|
608
|
dealer_name = this.dealerList[i].dealer_name
|
609
|
609
|
}
|
610
|
610
|
}
|
611
|
611
|
return dealer_name
|
612
|
|
- },
|
|
612
|
+ },
|
613
|
613
|
getManufactuerName: function(manufacturer_id) {
|
614
|
614
|
for (let i = 0; i < this.manufacturer.length; i++) {
|
615
|
615
|
if (this.manufacturer[i].id == manufacturer_id) {
|
|
@@ -755,7 +755,7 @@ export default {
|
755
|
755
|
PrintAction: function() {
|
756
|
756
|
window.sessionStorage.setItem('start',this.start_time)
|
757
|
757
|
window.sessionStorage.setItem('end',this.end_time)
|
758
|
|
-
|
|
758
|
+
|
759
|
759
|
if(this.orgId != 9671){
|
760
|
760
|
this.$router.push({
|
761
|
761
|
path: "/stock/print",
|
|
@@ -782,7 +782,7 @@ export default {
|
782
|
782
|
}
|
783
|
783
|
});
|
784
|
784
|
}
|
785
|
|
-
|
|
785
|
+
|
786
|
786
|
},
|
787
|
787
|
// getPrintStockGood(){
|
788
|
788
|
// const params = {
|
|
@@ -887,7 +887,7 @@ export default {
|
887
|
887
|
},
|
888
|
888
|
|
889
|
889
|
exportList(){
|
890
|
|
-
|
|
890
|
+
|
891
|
891
|
for(let i=0;i<this.tableOut.length;i++){
|
892
|
892
|
this.tableOut[i].index = i+1
|
893
|
893
|
this.tableOut[i].good_name = this.tableOut[i].good_name
|
|
@@ -933,32 +933,32 @@ export default {
|
933
|
933
|
this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
|
934
|
934
|
}else if(this.orgId==10445){
|
935
|
935
|
this.tableOut[i].total_price = (this.getStockCount(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
|
|
936
|
+ }else if(this.orgId==10635){
|
|
937
|
+ this.tableOut[i].total_price = (this.getWarehouseOut(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
|
936
|
938
|
}else{
|
937
|
939
|
this.tableOut[i].total_price = (this.getStockCount(this.tableOut[i].good_id) * this.tableOut[i].retail_price).toFixed(2)
|
938
|
940
|
}
|
939
|
941
|
|
940
|
942
|
if(this.orgId == 10265 || this.orgId ==10215 || this.orgId == 9919 || this.orgId == 9671 || this.orgId == 10402 || this.orgId==10138 || this.orgId==10278||this.orgId==10537||this.orgId==10610||this.orgId==0){
|
941
|
|
-
|
942
|
|
- this.tableOut[i].out_count = this.getMySelfCount(this.tableOut[i].good_id)
|
|
943
|
+ this.tableOut[i].out_count = this.getMySelfCount(this.tableOut[i].good_id)
|
943
|
944
|
}
|
944
|
|
- if(this.orgId == 10210 || this.orgId == 9675 || this.orgId == 9956 || this.orgId == 10217 || this.orgId == 10188 || this.orgId == 10191 || this.orgId == 0 || this.orgId ==10489 || this.orgId == 10375 || this.orgId == 10485 || this.org_id ==10635 || this.org_id ==10726 || this.org_id == 10724 || this.org_id ==10635 || this.org_id ==10724 || this.org_id ==10726 || this.org_id ==10721){
|
|
945
|
+ if(this.orgId == 10210 || this.orgId == 9675 || this.orgId == 9956 || this.orgId == 10217 || this.orgId == 10188 || this.orgId == 10191 || this.orgId == 0 || this.orgId ==10489 || this.orgId == 10375 || this.orgId == 10485 || this.orgId ==10635 || this.orgId ==10726 || this.orgId == 10724 || this.orgId ==10635 || this.orgId ==10724 || this.orgId ==10726 || this.orgId ==10721){
|
945
|
946
|
this.tableOut[i].out_count = this.getWarehouseOut(this.tableOut[i].good_id)
|
946
|
|
-
|
947
|
947
|
}
|
948
|
948
|
if(this.orgId ==10445){
|
949
|
949
|
this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
|
950
|
950
|
}
|
951
|
|
- if(this.orgId!=10265 && this.orgId !=10215 && this.orgId != 9671 &&this.orgId!=10210&&this.orgId!=9675 && this.orgId!=9956&& this.orgId!=10217 && this.orgId!=10188 && this.orgId!=10191 && this.orgId!=9919 && this.orgId!=0&& this.orgId!=10402 && this.orgId != 10489 && this.orgId!=10375 && this.orgId!=10485&&this.orgId!=0&&this.orgId!=10138&&this.orgId!=10278&&this.orgId!=10537&&this.orgId!=10610 &&this.orgId!=10445 && this.org_id !=10635 && this.org_id !=10724 && this.org_id !=10726 && this.org_id !=10721){
|
|
951
|
+ if(this.orgId!=10265 && this.orgId !=10215 && this.orgId != 9671 &&this.orgId!=10210&&this.orgId!=9675 && this.orgId!=9956&& this.orgId!=10217 && this.orgId!=10188 && this.orgId!=10191 && this.orgId!=9919 && this.orgId!=0&& this.orgId!=10402 && this.orgId != 10489 && this.orgId!=10375 && this.orgId!=10485&&this.orgId!=0&&this.orgId!=10138&&this.orgId!=10278&&this.orgId!=10537&&this.orgId!=10610 &&this.orgId!=10445 && this.orgId !=10635 && this.orgId !=10724 && this.orgId !=10726 && this.orgId !=10721){
|
952
|
952
|
this.tableOut[i].out_count = this.getStockCount(this.tableOut[i].good_id)
|
953
|
953
|
}
|
954
|
954
|
this.tableOut[i].manufacturer_name = this.getManufacturerNameOne(this.tableOut[i].manufacturer)
|
955
|
|
-
|
|
955
|
+
|
956
|
956
|
this.tableOut[i].dealer_name = this.getDealerNameOne(this.tableOut[i].dealer)
|
957
|
957
|
|
958
|
958
|
this.tableOut[i].order_time = this.start_time + " ~ " + this.end_time
|
959
|
959
|
}
|
960
|
960
|
console.log("retusoossoso",this.tableOut)
|
961
|
|
-
|
|
961
|
+
|
962
|
962
|
import('@/vendor/Export2Excel').then(excel => {
|
963
|
963
|
const tHeader = ['序号','耗材名称', '规格型号','生产厂商','进销商', '单位','数量','出货价','总价','出库时间','备注']
|
964
|
964
|
|
|
@@ -977,7 +977,7 @@ export default {
|
977
|
977
|
},
|
978
|
978
|
exportListDetail(){
|
979
|
979
|
console.log("hahhdhafhhahdf",this.tableDataList)
|
980
|
|
-
|
|
980
|
+
|
981
|
981
|
var obj = {index:"合计",total_price:0}
|
982
|
982
|
var total = 0
|
983
|
983
|
for(let i=0;i<this.tableDataList.length;i++){
|
|
@@ -1007,7 +1007,7 @@ export default {
|
1007
|
1007
|
}
|
1008
|
1008
|
obj.total_price = total.toFixed(2)
|
1009
|
1009
|
console.log("WOHHAHHAHAH",this.tableDataList)
|
1010
|
|
-
|
|
1010
|
+
|
1011
|
1011
|
this.tableDataList.push(obj)
|
1012
|
1012
|
import('@/vendor/Export2Excel').then(excel => {
|
1013
|
1013
|
const tHeader = ['序号','单据编号', '耗材类型', '耗材名称','规格型号','生产厂商','进销商','批号','生产日期','有效日期','操作时间','制单人','进货价','出货价','使用患者','数量','总价']
|
|
@@ -1049,7 +1049,7 @@ export default {
|
1049
|
1049
|
this.tableDataList[i].ctimeTwo = this.getTimeOne(this.tableDataList[i].ctime)
|
1050
|
1050
|
this.tableDataList[i].expiry_date = this.getTime(this.tableDataList[i].expiry_date)
|
1051
|
1051
|
this.tableDataList[i].project_name ="居民报销"
|
1052
|
|
-
|
|
1052
|
+
|
1053
|
1053
|
out_total += this.tableDataList[i].count * this.tableDataList[i].price
|
1054
|
1054
|
in_total += this.tableDataList[i].count *this.tableDataList[i].WarehousingInfoNight.price
|
1055
|
1055
|
|
|
@@ -1166,7 +1166,7 @@ export default {
|
1166
|
1166
|
return total
|
1167
|
1167
|
},
|
1168
|
1168
|
getPatientName(id){
|
1169
|
|
-
|
|
1169
|
+
|
1170
|
1170
|
var name =""
|
1171
|
1171
|
for(let i=0;i<this.patientsList.length;i++){
|
1172
|
1172
|
if(id == this.patientsList[i].id){
|
|
@@ -1199,7 +1199,7 @@ export default {
|
1199
|
1199
|
// display: flex;
|
1200
|
1200
|
// flex-direction: column;
|
1201
|
1201
|
// .el-table__header-wrapper {
|
1202
|
|
-// height: 70px !important;
|
|
1202
|
+// height: 70px !important;
|
1203
|
1203
|
// }
|
1204
|
1204
|
// }
|
1205
|
1205
|
</style>
|