|
@@ -126,7 +126,7 @@
|
126
|
126
|
placeholder="请输入批号"
|
127
|
127
|
v-model="scope.row.batch_number"
|
128
|
128
|
></el-input> -->
|
129
|
|
- <el-select v-model="scope.row.batch_number" filterable placeholder="请选择" >
|
|
129
|
+ <el-select v-model="scope.row.batch_number" filterable placeholder="请选择" @change="changeBatchNumber(scope.row)">
|
130
|
130
|
<el-option
|
131
|
131
|
v-for="(item,index) in numberList"
|
132
|
132
|
:key="index"
|
|
@@ -573,6 +573,7 @@ export default {
|
573
|
573
|
this.recordInfo.recordData[i].batch_number = this.numberList[y].batch_number
|
574
|
574
|
this.recordInfo.recordData[i].warehouse_info_id = this.numberList[y].id
|
575
|
575
|
}
|
|
576
|
+
|
576
|
577
|
}
|
577
|
578
|
}
|
578
|
579
|
const params = {
|
|
@@ -689,6 +690,7 @@ export default {
|
689
|
690
|
this.recordInfo.recordData[i].min_price = val.min_price
|
690
|
691
|
this.recordInfo.recordData[i].number = val.number
|
691
|
692
|
this.recordInfo.recordData[i].unit = val.max_unit
|
|
693
|
+
|
692
|
694
|
if(val.retail_price == 0){
|
693
|
695
|
this.recordInfo.recordData[i].price = ""
|
694
|
696
|
}else{
|
|
@@ -717,6 +719,7 @@ export default {
|
717
|
719
|
if(response.data.state == 1){
|
718
|
720
|
var list = response.data.data.list
|
719
|
721
|
console.log("list2222",list)
|
|
722
|
+ this.numberList = []
|
720
|
723
|
this.numberList = list
|
721
|
724
|
}
|
722
|
725
|
})
|
|
@@ -739,6 +742,20 @@ export default {
|
739
|
742
|
}
|
740
|
743
|
}
|
741
|
744
|
}
|
|
745
|
+ },
|
|
746
|
+ changeBatchNumber(val){
|
|
747
|
+ console.log("val",val)
|
|
748
|
+ this.getDrugBatchNumber(val.drug_id)
|
|
749
|
+ for(let i=0;i<this.recordInfo.recordData.length;i++){
|
|
750
|
+ if(this.currentIndex == i){
|
|
751
|
+ for(let j=0;j<this.numberList.length;j++){
|
|
752
|
+ if(this.recordInfo.recordData[i].batch_number == this.numberList[j].id){
|
|
753
|
+ this.recordInfo.recordData[i].batch_number = this.numberList[j].batch_number
|
|
754
|
+ this.recordInfo.recordData[i].warehouse_info_id = this.numberList[j].id
|
|
755
|
+ }
|
|
756
|
+ }
|
|
757
|
+ }
|
|
758
|
+ }
|
742
|
759
|
}
|
743
|
760
|
},
|
744
|
761
|
created() {
|