|
@@ -844,6 +844,7 @@ export default {
|
844
|
844
|
exportListDetai(){
|
845
|
845
|
console.log("hwhhwhwhwhwhw",this.tableData)
|
846
|
846
|
|
|
847
|
+
|
847
|
848
|
import('@/vendor/Export2Excel').then(excel => {
|
848
|
849
|
const tHeader = ['序号','单据编号', '药品类型', '药品名称','规格型号','生产厂商','进销商','批号','生产日期','有效日期','操作时间','制单人','进货价','出货价','使用人','数量','总价']
|
849
|
850
|
const filterVal = ['index','warehouse_out_order_number', 'drugtype', 'drug_name','specification_name','manufacturer_name','dealer_name','number_bath','product_date_name','expiry_date_name','time','user_name','in_price','price','patient_name','count','total_price']
|
|
@@ -892,18 +893,25 @@ export default {
|
892
|
893
|
if(this.tableData[i].count_unit == this.tableData[i].max_unit && this.tableData[i].max_unit ==this.tableData[i].min_unit){
|
893
|
894
|
this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].price)*this.tableData[i].min_number
|
894
|
895
|
}
|
|
896
|
+ }
|
895
|
897
|
|
896
|
|
- this.tableData[i].number_bath =""
|
897
|
|
- this.tableData[i].number_bath = this.tableData[i].batch_number
|
|
898
|
+ this.tableData[i].number_bath =""
|
|
899
|
+ this.tableData[i].number_bath = this.tableData[i].batch_number
|
898
|
900
|
|
899
|
|
- this.tableData[i].expiry_date_name = this.getTime(this.tableData[i].expiry_date)
|
|
901
|
+ console.log("批次额",this.tableData[i].number_bath)
|
900
|
902
|
|
901
|
|
- this.tableData[i].product_date_name = this.getTime(this.tableData[i].product_date)
|
902
|
|
- }
|
|
903
|
+ this.tableData[i].expiry_date_name = this.getTime(this.tableData[i].expiry_date)
|
|
904
|
+
|
|
905
|
+ console.log("经销商",this.tableData[i].expiry_date_name)
|
|
906
|
+
|
|
907
|
+ this.tableData[i].product_date_name = this.getTime(this.tableData[i].product_date)
|
|
908
|
+
|
|
909
|
+ console.log("生产日期",this.tableData[i].product_date_name)
|
903
|
910
|
}
|
904
|
911
|
}
|
905
|
|
-
|
906
|
|
-
|
|
912
|
+
|
|
913
|
+ console.log("tabldateData",this.tableData)
|
|
914
|
+
|
907
|
915
|
const data = this.formatJson(filterVal, this.tableData)
|
908
|
916
|
|
909
|
917
|
|
|
@@ -954,6 +962,18 @@ export default {
|
954
|
962
|
}
|
955
|
963
|
|
956
|
964
|
}
|
|
965
|
+ this.tableData[i].number_bath =""
|
|
966
|
+ this.tableData[i].number_bath = this.tableData[i].batch_number
|
|
967
|
+
|
|
968
|
+ console.log("批次额",this.tableData[i].number_bath)
|
|
969
|
+
|
|
970
|
+ this.tableData[i].expiry_date_name = this.getTime(this.tableData[i].expiry_date)
|
|
971
|
+
|
|
972
|
+ console.log("经销商",this.tableData[i].expiry_date_name)
|
|
973
|
+
|
|
974
|
+ this.tableData[i].product_date_name = this.getTime(this.tableData[i].product_date)
|
|
975
|
+
|
|
976
|
+ console.log("生产日期",this.tableData[i].product_date_name)
|
957
|
977
|
}
|
958
|
978
|
const data = this.formatJson(filterVal, this.tableData)
|
959
|
979
|
|
|
@@ -1101,6 +1121,7 @@ export default {
|
1101
|
1121
|
|
1102
|
1122
|
this.dealerList = response.data.data.dealerList
|
1103
|
1123
|
this.manufacturerList = response.data.data.manufacturerList
|
|
1124
|
+ console.log("生产昌吉-----------",this.manufacturerList)
|
1104
|
1125
|
let objInfo = {}
|
1105
|
1126
|
if(this.org_id == 9919){
|
1106
|
1127
|
list.forEach((item,index)=>{
|