|
@@ -55,28 +55,38 @@
|
55
|
55
|
{{scope.row.warehousing_order}}
|
56
|
56
|
</template>
|
57
|
57
|
</el-table-column>
|
58
|
|
- <el-table-column prop="date" label="调价日期" width="200px" align="center">
|
|
58
|
+ <el-table-column prop="date" label="调价日期" width="150px" align="center">
|
59
|
59
|
<template slot-scope="scope">
|
60
|
60
|
{{getTime(scope.row.start_time)}}
|
61
|
61
|
</template>
|
62
|
62
|
</el-table-column>
|
63
|
|
- <el-table-column prop="date" label="现价格" width="200px" align="center">
|
|
63
|
+ <el-table-column prop="date" label="药品名称" width="200px" align="center">
|
|
64
|
+ <template slot-scope="scope">
|
|
65
|
+ {{scope.row.drug_name}}
|
|
66
|
+ </template>
|
|
67
|
+ </el-table-column>
|
|
68
|
+ <el-table-column prop="date" label="药品规格" width="100px" align="center">
|
|
69
|
+ <template slot-scope="scope">
|
|
70
|
+ {{scope.row.specification_name}}
|
|
71
|
+ </template>
|
|
72
|
+ </el-table-column>
|
|
73
|
+ <el-table-column prop="date" label="现价格" width="100px" align="center">
|
64
|
74
|
<template slot-scope="scope">
|
65
|
75
|
{{scope.row.new_price}}
|
66
|
76
|
</template>
|
67
|
77
|
</el-table-column>
|
68
|
|
- <el-table-column prop="name" label="操作人" width="200px" align="center">
|
|
78
|
+ <el-table-column prop="name" label="操作人" width="100px" align="center">
|
69
|
79
|
<template slot-scope="scope">
|
70
|
80
|
{{getDoctorName(scope.row.creater)}}
|
71
|
81
|
</template>
|
72
|
82
|
</el-table-column>
|
73
|
|
- <el-table-column prop="name" label="状态" align="center">
|
|
83
|
+ <el-table-column prop="name" label="状态" align="center" width="100px">
|
74
|
84
|
<template slot-scope="scope">
|
75
|
85
|
<span v-if="scope.row.checker_status == 1">已核对</span>
|
76
|
86
|
<span v-if="scope.row.checker_status == 2">未核对</span>
|
77
|
87
|
</template>
|
78
|
88
|
</el-table-column>
|
79
|
|
- <el-table-column prop="name" label="核对人" align="center">
|
|
89
|
+ <el-table-column prop="name" label="核对人" align="center" width="100px">
|
80
|
90
|
<template slot-scope="scope">
|
81
|
91
|
{{getDoctorName(scope.row.checker)}}
|
82
|
92
|
</template>
|
|
@@ -117,7 +127,7 @@
|
117
|
127
|
placeholder="请输入药品名称"
|
118
|
128
|
@select="handleSelect"
|
119
|
129
|
@input="changeGoodName(scope.$index)"
|
120
|
|
- style="width:160px;"
|
|
130
|
+ style="width:300px;"
|
121
|
131
|
>
|
122
|
132
|
<i class="el-icon-search el-input__icon" slot="suffix"></i>
|
123
|
133
|
<template slot-scope="{ item }">
|
|
@@ -126,7 +136,7 @@
|
126
|
136
|
</el-autocomplete>
|
127
|
137
|
</el-form-item>
|
128
|
138
|
<el-form-item label="原价格">
|
129
|
|
- <el-input v-model="form.retail_price"></el-input>
|
|
139
|
+ <el-input v-model="form.retail_price" :disabled="true"></el-input>
|
130
|
140
|
</el-form-item>
|
131
|
141
|
<el-form-item label="现价格">
|
132
|
142
|
<el-input v-model="form.new_price"></el-input>
|
|
@@ -192,9 +202,9 @@
|
192
|
202
|
{{scope.row.number}}
|
193
|
203
|
</template>
|
194
|
204
|
</el-table-column>
|
195
|
|
- <el-table-column prop="name" label="供应商" width="100" align="center">
|
|
205
|
+ <el-table-column prop="name" label="经销商" width="100" align="center">
|
196
|
206
|
<template slot-scope="scope">
|
197
|
|
- {{scope.row.manufacturer}}
|
|
207
|
+ {{scope.row.dealer}}
|
198
|
208
|
</template>
|
199
|
209
|
</el-table-column>
|
200
|
210
|
<el-table-column prop="name" label="备注" width="100" align="center">
|
|
@@ -281,7 +291,7 @@
|
281
|
291
|
placeholder="请输入药品名称"
|
282
|
292
|
@select="handleSelect"
|
283
|
293
|
@input="changeGoodName(scope.$index)"
|
284
|
|
- style="width:160px;"
|
|
294
|
+ style="width:300px;"
|
285
|
295
|
>
|
286
|
296
|
<i class="el-icon-search el-input__icon" slot="suffix"></i>
|
287
|
297
|
<template slot-scope="{ item }">
|
|
@@ -289,19 +299,25 @@
|
289
|
299
|
</template>
|
290
|
300
|
</el-autocomplete>
|
291
|
301
|
</el-form-item>
|
|
302
|
+ <el-form-item label="规格:">
|
|
303
|
+ <el-input v-model="form.specification_name" style="width:200px" :disabled="true"></el-input>
|
|
304
|
+ </el-form-item>
|
292
|
305
|
<el-form-item label="原价格:">
|
293
|
|
- <el-input v-model="form.retail_price" style="width:200px"></el-input>
|
|
306
|
+ <el-input v-model="form.retail_price" style="width:200px" :disabled="true"></el-input>
|
294
|
307
|
</el-form-item>
|
295
|
308
|
<el-form-item label="现价格:">
|
296
|
309
|
<el-input v-model="form.new_price" style="width:200px"></el-input>
|
297
|
310
|
</el-form-item>
|
|
311
|
+ <el-form-item label="生产厂商:">
|
|
312
|
+ <el-input v-model="form.manufacturer" style="width:200px" :disabled="true"></el-input>
|
|
313
|
+ </el-form-item>
|
|
314
|
+ <el-form-item label="经销商:">
|
|
315
|
+ <el-input v-model="form.dealer" style="width:200px" :disabled="true"></el-input>
|
|
316
|
+ </el-form-item>
|
298
|
317
|
</el-col>
|
299
|
318
|
</el-row>
|
300
|
319
|
<el-row>
|
301
|
320
|
<el-col>
|
302
|
|
- <!-- <el-form-item label="调价数量:">
|
303
|
|
- <el-input v-model="form.count" style="width:200px"></el-input>
|
304
|
|
- </el-form-item> -->
|
305
|
321
|
<el-form-item label="备注:">
|
306
|
322
|
<div style="display:flex;">
|
307
|
323
|
<el-input v-model="form.remark" style="width:200px"></el-input>
|
|
@@ -336,7 +352,7 @@
|
336
|
352
|
placeholder="请输入药品名称"
|
337
|
353
|
@select="handleSelect"
|
338
|
354
|
@input="changeGoodName(scope.$index)"
|
339
|
|
- style="width:160px;"
|
|
355
|
+ style="width:200px;"
|
340
|
356
|
>
|
341
|
357
|
<i class="el-icon-search el-input__icon" slot="suffix"></i>
|
342
|
358
|
<template slot-scope="{ item }">
|
|
@@ -344,19 +360,31 @@
|
344
|
360
|
</template>
|
345
|
361
|
</el-autocomplete>
|
346
|
362
|
</el-form-item>
|
|
363
|
+ <el-form-item label="规格:">
|
|
364
|
+ <el-input v-model="form.specification_name" style="width:200px" :disabled="true"></el-input>
|
|
365
|
+ </el-form-item>
|
|
366
|
+ <el-form-item label="单位:">
|
|
367
|
+ <el-input v-model="form.warehousing_unit" style="width:200px" :disabled="true"></el-input>
|
|
368
|
+ </el-form-item>
|
347
|
369
|
<el-form-item label="原价格:">
|
348
|
|
- <el-input v-model="form.retail_price" style="width:200px"></el-input>
|
|
370
|
+ <el-input v-model="form.retail_price" style="width:200px" :disabled="true"></el-input>
|
349
|
371
|
</el-form-item>
|
350
|
372
|
<el-form-item label="现价格:">
|
351
|
373
|
<el-input v-model="form.new_price" style="width:200px"></el-input>
|
352
|
374
|
</el-form-item>
|
|
375
|
+ <el-form-item label="生产厂商:">
|
|
376
|
+ <el-input v-model="form.manufacturer" style="width:200px" :disabled="true"></el-input>
|
|
377
|
+ </el-form-item>
|
|
378
|
+ <el-form-item label="批准文号:">
|
|
379
|
+ <el-input v-model="form.number" style="width:200px" :disabled="true"></el-input>
|
|
380
|
+ </el-form-item>
|
|
381
|
+ <el-form-item label="经销商:">
|
|
382
|
+ <el-input v-model="form.number" style="width:200px" :disabled="true"></el-input>
|
|
383
|
+ </el-form-item>
|
353
|
384
|
</el-col>
|
354
|
385
|
</el-row>
|
355
|
386
|
<el-row>
|
356
|
387
|
<el-col>
|
357
|
|
- <!-- <el-form-item label="调价数量:">
|
358
|
|
- <el-input v-model="form.count" style="width:200px"></el-input>
|
359
|
|
- </el-form-item> -->
|
360
|
388
|
<el-form-item label="备注:">
|
361
|
389
|
<div style="display:flex;">
|
362
|
390
|
<el-input v-model="form.remark" style="width:200px"></el-input>
|
|
@@ -456,7 +484,16 @@ export default {
|
456
|
484
|
}
|
457
|
485
|
},
|
458
|
486
|
addPrice(){
|
|
487
|
+ if(this.form.drug_name == ""){
|
|
488
|
+ this.$message.error("请输入药品名称")
|
|
489
|
+ return
|
|
490
|
+ }
|
|
491
|
+ if(this.form.new_price == ""){
|
|
492
|
+ this.$message.error("请输入现价格")
|
|
493
|
+ return
|
|
494
|
+ }
|
459
|
495
|
var obj = {
|
|
496
|
+ id:this.form.id,
|
460
|
497
|
drug_id:this.form.drug_id,
|
461
|
498
|
drug_name:this.form.drug_name,
|
462
|
499
|
warehousing_unit:this.form.warehousing_unit,
|
|
@@ -472,7 +509,7 @@ export default {
|
472
|
509
|
last_price:this.form.last_price,
|
473
|
510
|
start_time:this.getTime(new Date()),
|
474
|
511
|
specification_name:this.form.specification_name,
|
475
|
|
- }
|
|
512
|
+ }
|
476
|
513
|
this.tableData.push(obj)
|
477
|
514
|
},
|
478
|
515
|
querySearchAsync(keyword, cb) {
|
|
@@ -523,7 +560,11 @@ export default {
|
523
|
560
|
this.form.retail_price = val.retail_price
|
524
|
561
|
this.form.warehousing_order = val.warehousing_order
|
525
|
562
|
this.form.number = val.number
|
526
|
|
- this.form.dealer = val.dealer
|
|
563
|
+ if(val.dealer == 0){
|
|
564
|
+ this.form.dealer = ""
|
|
565
|
+ }else{
|
|
566
|
+ this.form.dealer = val.dealer
|
|
567
|
+ }
|
527
|
568
|
this.form.manufacturer = val.manufacturer
|
528
|
569
|
this.form.remark = val.remark
|
529
|
570
|
this.form.warehousing_unit = val.max_unit
|
|
@@ -531,6 +572,7 @@ export default {
|
531
|
572
|
this.form.batch_number = val.batch_number
|
532
|
573
|
this.form.last_price = val.last_price
|
533
|
574
|
this.form.specification_name = val.dose + val.dose_unit +"*"+val.min_number+val.min_unit+"/"+val.max_unit
|
|
575
|
+ this.form.new_price = ""
|
534
|
576
|
},
|
535
|
577
|
getTime(val) {
|
536
|
578
|
if(val < 0){
|
|
@@ -635,12 +677,17 @@ export default {
|
635
|
677
|
this.tableData.splice(index,1)
|
636
|
678
|
},
|
637
|
679
|
toEdit(row){
|
|
680
|
+ console.log("row2222",row)
|
638
|
681
|
this.form.drug_name = row.drug_name
|
639
|
682
|
this.form.retail_price = row.retail_price
|
640
|
683
|
this.form.new_price = row.new_price
|
641
|
|
- this.form.count = row.count
|
642
|
684
|
this.form.remark = row.remark
|
643
|
685
|
this.form.id = row.id
|
|
686
|
+ this.form.specification_name = row.specification_name
|
|
687
|
+ this.form.last_price = row.last_price
|
|
688
|
+ this.form.number = row.number
|
|
689
|
+ this.form.manufacturer = row.manufacturer
|
|
690
|
+ this.form.dealer = row.dealer
|
644
|
691
|
this.editPriceDialogVisible = true
|
645
|
692
|
},
|
646
|
693
|
upatePrice(){
|
|
@@ -651,6 +698,12 @@ export default {
|
651
|
698
|
this.tableData[i].new_price = this.form.new_price
|
652
|
699
|
this.tableData[i].count = this.form.count
|
653
|
700
|
this.tableData[i].remark = this.form.remark
|
|
701
|
+ }else{
|
|
702
|
+ this.tableData[i].drug_name = this.form.drug_name
|
|
703
|
+ this.tableData[i].retail_price = this.form.retail_price
|
|
704
|
+ this.tableData[i].new_price - this.form.new_price
|
|
705
|
+ this.tableData[i].count = this.form.count
|
|
706
|
+ this.tableData[i].remark = this.form.remark
|
654
|
707
|
}
|
655
|
708
|
}
|
656
|
709
|
this.editPriceDialogVisible = false
|
|
@@ -668,12 +721,20 @@ export default {
|
668
|
721
|
getDrugModiftyPrice(id).then(response=>{
|
669
|
722
|
if(response.data.state == 1){
|
670
|
723
|
var detail = response.data.data.detail
|
|
724
|
+ console.log("detail",detail)
|
671
|
725
|
this.form.drug_name = detail.drug_name
|
|
726
|
+ this.form.specification_name = detail.specification_name
|
|
727
|
+ this.form.last_price = detail.last_price
|
|
728
|
+ this.form.dealer = detail.dealer
|
|
729
|
+ this.form.manufacturer = detail.manufacturer
|
672
|
730
|
this.form.retail_price = detail.retail_price
|
673
|
731
|
this.form.new_price = detail.new_price
|
674
|
732
|
this.form.count = detail.count
|
675
|
733
|
this.form.remark = detail.remark
|
676
|
734
|
this.id = detail.id
|
|
735
|
+ this.form.warehousing_unit = detail.warehousing_unit
|
|
736
|
+ this.form.number = detail.number
|
|
737
|
+ this.form.drug_id = detail.drug_id
|
677
|
738
|
this.modifyPriceDialogVisible = true
|
678
|
739
|
}
|
679
|
740
|
})
|
|
@@ -681,12 +742,18 @@ export default {
|
681
|
742
|
modifyDrugPrice(){
|
682
|
743
|
var params = {
|
683
|
744
|
drug_name:this.form.drug_name,
|
|
745
|
+ specification_name:this.form.specification_name,
|
|
746
|
+ warehousing_unit:this.form.warehousing_unit,
|
684
|
747
|
retail_price:this.form.retail_price.toString(),
|
685
|
748
|
new_price:this.form.new_price.toString(),
|
|
749
|
+ manufacturer:this.form.manufacturer,
|
|
750
|
+ number:this.form.number,
|
686
|
751
|
count:parseInt(this.form.count),
|
687
|
752
|
remark:this.form.remark,
|
688
|
|
- id:this.id
|
|
753
|
+ id:this.id,
|
|
754
|
+ drug_id:this.form.drug_id,
|
689
|
755
|
}
|
|
756
|
+
|
690
|
757
|
modifyDrugPrice(params).then(response=>{
|
691
|
758
|
if(response.data.state == 1){
|
692
|
759
|
var adjustPrice = response.data.data.adjustPrice
|