|
@@ -82,7 +82,7 @@
|
82
|
82
|
type="primary"
|
83
|
83
|
@click="updatePurchaseOrder"
|
84
|
84
|
v-show="showOne"
|
85
|
|
- >修改</el-button
|
|
85
|
+ >保存</el-button
|
86
|
86
|
>
|
87
|
87
|
</div>
|
88
|
88
|
</div>
|
|
@@ -669,6 +669,9 @@ export default {
|
669
|
669
|
this.loading = false;
|
670
|
670
|
this.$message.success("保存成功!");
|
671
|
671
|
var warehouseInfo = response.data.data.warehouseInfo;
|
|
672
|
+ if(warehouseInfo.is_check == 1){
|
|
673
|
+ this.Reviewed = true
|
|
674
|
+ }
|
672
|
675
|
this.number = warehouseInfo.number;
|
673
|
676
|
this.id = warehouseInfo.id;
|
674
|
677
|
this.recordInfo.tableList = [];
|
|
@@ -704,25 +707,25 @@ export default {
|
704
|
707
|
}
|
705
|
708
|
console.log("orderINFO23323232", orderInfo);
|
706
|
709
|
this.recordInfo.tableList = orderInfo;
|
707
|
|
- // for(let i=0;i<orderInfo.length;i++){
|
708
|
|
- // orderInfo[i].name = ""
|
709
|
|
- // orderInfo[i].supply_name = ""
|
710
|
|
- // orderInfo[i].supply_specification_name = ""
|
711
|
|
- // if(orderInfo[i].is_source == 1){
|
712
|
|
- // for(let j=0;j<this.drugList.length;j++){
|
713
|
|
- // if(orderInfo[i].project_id == this.drugList[j].id){
|
714
|
|
- // orderInfo[i].name = this.drugList[j].drug_name
|
715
|
|
- // }
|
716
|
|
- // }
|
717
|
|
- // }
|
718
|
|
- // if(orderInfo[i].is_source == 2){
|
719
|
|
- // for(let y=0;y<this.goodList.length;y++){
|
720
|
|
- // if(orderInfo[i].project_id = this.goodList[y].id){
|
721
|
|
- // orderInfo[i].name = this.goodList[y].good_name
|
722
|
|
- // }
|
723
|
|
- // }
|
724
|
|
- // }
|
725
|
|
- // }
|
|
710
|
+ for(let i=0;i<orderInfo.length;i++){
|
|
711
|
+ orderInfo[i].name = ""
|
|
712
|
+ orderInfo[i].supply_name = ""
|
|
713
|
+ orderInfo[i].supply_specification_name = ""
|
|
714
|
+ if(orderInfo[i].is_source == 1){
|
|
715
|
+ for(let j=0;j<this.drugList.length;j++){
|
|
716
|
+ if(orderInfo[i].project_id == this.drugList[j].id){
|
|
717
|
+ orderInfo[i].name = this.drugList[j].drug_name
|
|
718
|
+ }
|
|
719
|
+ }
|
|
720
|
+ }
|
|
721
|
+ if(orderInfo[i].is_source == 2){
|
|
722
|
+ for(let y=0;y<this.goodList.length;y++){
|
|
723
|
+ if(orderInfo[i].project_id = this.goodList[y].id){
|
|
724
|
+ orderInfo[i].name = this.goodList[y].good_name
|
|
725
|
+ }
|
|
726
|
+ }
|
|
727
|
+ }
|
|
728
|
+ }
|
726
|
729
|
this.showTwo = false;
|
727
|
730
|
this.showOne = true;
|
728
|
731
|
}
|
|
@@ -831,7 +834,7 @@ export default {
|
831
|
834
|
if (response.data.state == 1) {
|
832
|
835
|
this.loading = false;
|
833
|
836
|
var warehousingInfo = response.data.data.warehousingInfo;
|
834
|
|
- this.$message.success("修改成功!");
|
|
837
|
+ this.$message.success("保存成功!");
|
835
|
838
|
}
|
836
|
839
|
});
|
837
|
840
|
}
|
|
@@ -845,11 +848,6 @@ export default {
|
845
|
848
|
this.recordInfo.tableList[i].supply_count;
|
846
|
849
|
}
|
847
|
850
|
this.total_price = total_price;
|
848
|
|
- // var discount_amount = 0
|
849
|
|
- // if(this.rate_of_concession >0){
|
850
|
|
- // discount_amount = (this.rate_of_concession/100*total_price)
|
851
|
|
- // }
|
852
|
|
- // this.discount_amount = discount_amount.toFixed(2)
|
853
|
851
|
return total_price.toFixed(2);
|
854
|
852
|
},
|
855
|
853
|
checkPurchaseOrder(id, index) {
|