|
@@ -28,7 +28,7 @@
|
28
|
28
|
style="width: 196px;" type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
|
29
|
29
|
value-format="yyyy-MM-dd"></el-date-picker>
|
30
|
30
|
<div class="titleOne">制单人:{{this.$store.getters.xt_user.user.user_name}}</div>
|
31
|
|
- <div class="titleOne">当前进货价合计:</div>
|
|
31
|
+ <!-- <div class="titleOne">当前进货价合计:</div> -->
|
32
|
32
|
</div>
|
33
|
33
|
|
34
|
34
|
<!-- <div class="cell clearfix">
|
|
@@ -80,7 +80,7 @@
|
80
|
80
|
v-model="scope.row.drug_name"
|
81
|
81
|
:fetch-suggestions="querySearchAsync"
|
82
|
82
|
:trigger-on-focus="false"
|
83
|
|
- placeholder="请输入病人名字"
|
|
83
|
+ placeholder="请输入药品名称"
|
84
|
84
|
@select="handleSelect"
|
85
|
85
|
@input="changeDrugName(scope.$index)"
|
86
|
86
|
style="width:160px;"
|
|
@@ -528,7 +528,7 @@
|
528
|
528
|
let name = ""
|
529
|
529
|
for(let i=0;i<this.recordInfo.recordData.length;i++){
|
530
|
530
|
if(drug_id == this.recordInfo.recordData[i].id){
|
531
|
|
- name = this.recordInfo.recordData[i].dosage + this.recordInfo.recordData[i].max_unit + "*" + this.recordInfo.recordData[i].min_number + this.recordInfo.recordData[i].min_unit + "/"+this.recordInfo.recordData[i].packing_unit
|
|
531
|
+ name = this.recordInfo.recordData[i].dose + this.recordInfo.recordData[i].dose_unit + "*" + this.recordInfo.recordData[i].min_number + this.recordInfo.recordData[i].min_unit + "/"+this.recordInfo.recordData[i].max_unit
|
532
|
532
|
}
|
533
|
533
|
}
|
534
|
534
|
return name
|
|
@@ -549,6 +549,8 @@
|
549
|
549
|
tempObj['min_unit'] = ''
|
550
|
550
|
tempObj["drug_type"] = ''
|
551
|
551
|
tempObj['batch_number'] = ''
|
|
552
|
+ tempObj['dose']= ''
|
|
553
|
+ tempObj['dose_unit']=''
|
552
|
554
|
this.recordInfo.recordData.push(tempObj)
|
553
|
555
|
}, handleDelete: function(index, row) {
|
554
|
556
|
if (this.recordInfo.recordData.length <= 1) {
|
|
@@ -594,7 +596,7 @@
|
594
|
596
|
|
595
|
597
|
} else {
|
596
|
598
|
loading.close()
|
597
|
|
- console.log("3333333",response.data.data.drugs)
|
|
599
|
+
|
598
|
600
|
if (response.data.data.drugs.length <= 0) {
|
599
|
601
|
this.$message.error('该厂商或经销商没有药品信息')
|
600
|
602
|
return
|
|
@@ -681,6 +683,7 @@
|
681
|
683
|
'stockIn': this.recordInfo.recordData
|
682
|
684
|
}
|
683
|
685
|
console.log("params2222222",params)
|
|
686
|
+
|
684
|
687
|
postDrugWarehouse(params, this.warehousing_time, this.form.manufacturer, this.form.dealer, this.type).then(response => {
|
685
|
688
|
if (response.data.state == 0) {
|
686
|
689
|
this.$message.error(response.data.msg)
|
|
@@ -732,7 +735,6 @@
|
732
|
735
|
},
|
733
|
736
|
|
734
|
737
|
changeDrugName(val){
|
735
|
|
- console.log("val22222",val)
|
736
|
738
|
this.showOne = false
|
737
|
739
|
this.showTwo = true
|
738
|
740
|
},
|
|
@@ -781,6 +783,7 @@
|
781
|
783
|
this.recordInfo.recordData[i].manufacturer = val.manufacturer
|
782
|
784
|
this.recordInfo.recordData[i].batch_number = val.number
|
783
|
785
|
this.recordInfo.recordData[i].max_unit = val.max_unit
|
|
786
|
+ this.recordInfo.recordData[i].min_unit = val.min_unit
|
784
|
787
|
}
|
785
|
788
|
}
|
786
|
789
|
console.log("333333",this.recordInfo.recordData)
|
|
@@ -808,7 +811,6 @@
|
808
|
811
|
tempObj['dosage'] = ''
|
809
|
812
|
tempObj['max_unit'] = ''
|
810
|
813
|
tempObj['min_unit'] = '',
|
811
|
|
- tempObj['packing_unit'] = '',
|
812
|
814
|
tempObj['lot_number'] = ''
|
813
|
815
|
tempObj['product_date'] = ''
|
814
|
816
|
tempObj['expiry_date'] = ''
|