|
@@ -341,9 +341,8 @@
|
341
|
341
|
|
342
|
342
|
<el-table-column label="药品追溯码" width="150" align="center">
|
343
|
343
|
<template slot-scope="scope">
|
344
|
|
- <!-- <el-input v-model="scope.row.drug_code" placeholder="请输入药品追溯码" :disabled="disabled"></el-input> -->
|
345
|
344
|
<div @click="changeDrugCode(scope.row,scope.$index)">
|
346
|
|
- <el-input v-model="scope.row.drug_code" placeholder="请输入药品追溯码" :disabled="disabled"></el-input>
|
|
345
|
+ <el-input v-model="scope.row.drug_code" placeholder="请输入药品追溯码"></el-input>
|
347
|
346
|
</div>
|
348
|
347
|
</template>
|
349
|
348
|
</el-table-column>
|
|
@@ -354,7 +353,7 @@
|
354
|
353
|
</template>
|
355
|
354
|
</el-table-column>
|
356
|
355
|
|
357
|
|
-
|
|
356
|
+
|
358
|
357
|
|
359
|
358
|
<el-table-column
|
360
|
359
|
label="操作"
|
|
@@ -553,7 +552,7 @@ export default {
|
553
|
552
|
|
554
|
553
|
for(let i=0;i<this.recordInfo.recordData.length;i++){
|
555
|
554
|
if(this.currentIndex == i){
|
556
|
|
- this.recordInfo.recordData[i].drug_code = this.textarea
|
|
555
|
+ this.recordInfo.recordData[i].drug_code = this.textarea
|
557
|
556
|
}
|
558
|
557
|
}
|
559
|
558
|
this.dialogVisible = false
|
|
@@ -782,7 +781,7 @@ export default {
|
782
|
781
|
stockIn: this.recordInfo.recordData
|
783
|
782
|
};
|
784
|
783
|
console.log("params---------",params)
|
785
|
|
-
|
|
784
|
+
|
786
|
785
|
EditDrugWarehouse(
|
787
|
786
|
params,
|
788
|
787
|
this.warehousing_time,
|
|
@@ -903,7 +902,7 @@ export default {
|
903
|
902
|
if(response.data.data.info[i].dealer == 0){
|
904
|
903
|
response.data.data.info[i].dealer = ""
|
905
|
904
|
}
|
906
|
|
-
|
|
905
|
+
|
907
|
906
|
response.data.data.info[i].unitList = []
|
908
|
907
|
var obj = {id:1,name:""}
|
909
|
908
|
var objOne = {id:2,name:""}
|
|
@@ -911,7 +910,7 @@ export default {
|
911
|
910
|
objOne.name = response.data.data.info[i].drug.min_unit
|
912
|
911
|
response.data.data.info[i].unitList.push(obj)
|
913
|
912
|
response.data.data.info[i].unitList.push(objOne)
|
914
|
|
-
|
|
913
|
+
|
915
|
914
|
|
916
|
915
|
this.recordInfo.recordData.push(response.data.data.info[i]);
|
917
|
916
|
|
|
@@ -927,7 +926,7 @@ export default {
|
927
|
926
|
}
|
928
|
927
|
}
|
929
|
928
|
|
930
|
|
-
|
|
929
|
+
|
931
|
930
|
}
|
932
|
931
|
this.warehouse = response.data.data.warehousing;
|
933
|
932
|
this.storehouse_id = response.data.data.warehousing.storehouse_id
|
|
@@ -1081,10 +1080,10 @@ export default {
|
1081
|
1080
|
}
|
1082
|
1081
|
},
|
1083
|
1082
|
getTotalPirce(){
|
1084
|
|
-
|
|
1083
|
+
|
1085
|
1084
|
var total_price = 0
|
1086
|
1085
|
if(this.recordInfo.recordData!=null && this.recordInfo.recordData.length>0){
|
1087
|
|
-
|
|
1086
|
+
|
1088
|
1087
|
for(let i=0;i<this.recordInfo.recordData.length;i++){
|
1089
|
1088
|
total_price += this.recordInfo.recordData[i].last_price * parseInt(this.recordInfo.recordData[i].warehousing_count)
|
1090
|
1089
|
}
|