|
@@ -2,20 +2,12 @@
|
2
|
2
|
<div>
|
3
|
3
|
<div style="display: flex;align-items: center;justify-content: space-between;margin-bottom:10px;">
|
4
|
4
|
<div>
|
5
|
|
- <!-- <el-select v-model="value" size="small" placeholder="请选择">
|
6
|
|
- <el-option
|
7
|
|
- v-for="item in options"
|
8
|
|
- :key="item.value"
|
9
|
|
- :label="item.label"
|
10
|
|
- :value="item.value">
|
11
|
|
- </el-option>
|
12
|
|
- </el-select> -->
|
13
|
5
|
<el-input
|
14
|
6
|
size="small"
|
15
|
7
|
style="width: 200px;margin-left:10px;"
|
16
|
8
|
class="filter-item"
|
17
|
9
|
v-model.trim="searchKey"
|
18
|
|
- placeholder=""
|
|
10
|
+ placeholder="请输入单据编号或操作人姓名"
|
19
|
11
|
/>
|
20
|
12
|
<el-button
|
21
|
13
|
size="small"
|
|
@@ -30,21 +22,23 @@
|
30
|
22
|
v-model="start_time"
|
31
|
23
|
type="date"
|
32
|
24
|
style="margin-left:5px;width:140px;"
|
33
|
|
- placeholder="选择日期">
|
|
25
|
+ placeholder="选择日期"
|
|
26
|
+ @change="changeStartTime">
|
34
|
27
|
</el-date-picker>
|
35
|
28
|
<el-date-picker
|
36
|
29
|
size="small"
|
37
|
30
|
v-model="end_time"
|
38
|
31
|
type="date"
|
39
|
32
|
style="margin-left:5px;width:140px;"
|
40
|
|
- placeholder="选择日期">
|
|
33
|
+ placeholder="选择日期"
|
|
34
|
+ @change="changeEndTime">
|
41
|
35
|
</el-date-picker>
|
42
|
36
|
</div>
|
43
|
37
|
<div>
|
44
|
38
|
<el-button size="small" type="primary" @click="dialogVisible = true">新增</el-button>
|
45
|
39
|
<el-button size="small" type="primary" @click="toCheck">核对</el-button>
|
46
|
|
- <el-button size="small" type="primary" @click="print">打印</el-button>
|
47
|
|
- <el-button size="small" type="primary" @click="exportList">导出</el-button>
|
|
40
|
+ <!-- <el-button size="small" type="primary" @click="print">打印</el-button>
|
|
41
|
+ <el-button size="small" type="primary" @click="exportList">导出</el-button> -->
|
48
|
42
|
</div>
|
49
|
43
|
</div>
|
50
|
44
|
<el-table :data="tableList" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }" @selection-change="changePrice">
|
|
@@ -59,7 +53,7 @@
|
59
|
53
|
{{getTime(scope.row.start_time)}}
|
60
|
54
|
</template>
|
61
|
55
|
</el-table-column>
|
62
|
|
- <el-table-column prop="name" label="盘点数量" align="center">
|
|
56
|
+ <el-table-column prop="name" label="盘点数量" align="center">
|
63
|
57
|
<template slot-scope="scope">
|
64
|
58
|
{{scope.row.count}}
|
65
|
59
|
</template>
|
|
@@ -81,14 +75,16 @@
|
81
|
75
|
</el-table-column>
|
82
|
76
|
<el-table-column prop="name" label="状态" align="center">
|
83
|
77
|
<template slot-scope="scope">
|
84
|
|
- <span v-if="scope.row.checker_status == 1">已核对</span>
|
85
|
|
- <span v-if="scope.row.checker_status == 2">未核对</span>
|
|
78
|
+ <span v-if="scope.row.checker_status == 1">盘点完成</span>
|
|
79
|
+ <span v-if="scope.row.checker_status == 2">正在盘点</span>
|
86
|
80
|
</template>
|
87
|
81
|
</el-table-column>
|
88
|
|
- <el-table-column label="操作" align="center">
|
|
82
|
+ <el-table-column label="操作" align="center" width="260">
|
89
|
83
|
<template slot-scope="scope">
|
90
|
84
|
<el-button type="primary" size="small" @click="editInventory(scope.row.id,scope.row.checker_status,scope.$index)">编辑</el-button>
|
|
85
|
+ <el-button type="primary" size="small" @click="toProof(scope.row.id)">校正</el-button>
|
91
|
86
|
<el-button type="danger" size="small" @click="deleteDrugInventory(scope.row.id,scope.row.checker_status,scope.$index)">删除</el-button>
|
|
87
|
+
|
92
|
88
|
</template>
|
93
|
89
|
</el-table-column>
|
94
|
90
|
</el-table>
|
|
@@ -128,6 +124,17 @@
|
128
|
124
|
</template>
|
129
|
125
|
</el-autocomplete>
|
130
|
126
|
</el-form-item>
|
|
127
|
+ <el-form-item label="批次">
|
|
128
|
+ <el-select v-model="form.batch_number" filterable placeholder="请选择" @change="changeNumber">
|
|
129
|
+ <el-option
|
|
130
|
+ v-for="(item,index) in numberList"
|
|
131
|
+ :key="index"
|
|
132
|
+ :label="item.batch_number"
|
|
133
|
+ :value="item.id">
|
|
134
|
+ </el-option>
|
|
135
|
+ </el-select>
|
|
136
|
+ </el-form-item>
|
|
137
|
+
|
131
|
138
|
<el-form-item label="规格">
|
132
|
139
|
<el-input v-model="form.specification_name" :disabled="true"></el-input>
|
133
|
140
|
</el-form-item>
|
|
@@ -163,62 +170,58 @@
|
163
|
170
|
</el-form-item>
|
164
|
171
|
</el-form>
|
165
|
172
|
<el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
|
166
|
|
- <el-table-column prop="date" label="耗材ID" width="100">
|
|
173
|
+ <el-table-column prop="date" label="耗材ID" width="100" align="center">
|
167
|
174
|
<template slot-scope="scope">
|
168
|
175
|
{{scope.row.drug_id}}
|
169
|
176
|
</template>
|
170
|
177
|
</el-table-column>
|
171
|
|
- <el-table-column prop="date" label="耗材名称" width="100">
|
|
178
|
+ <el-table-column prop="date" label="耗材名称" width="100" align="center">
|
172
|
179
|
<template slot-scope="scope">
|
173
|
180
|
{{scope.row.drug_name}}
|
174
|
181
|
</template>
|
175
|
182
|
</el-table-column>
|
176
|
|
- <el-table-column prop="name" label="规格" width="100">
|
|
183
|
+ <el-table-column prop="name" label="规格" width="100" align="center">
|
177
|
184
|
<template slot-scope="scope">
|
178
|
185
|
{{scope.row.specification_name}}
|
179
|
186
|
</template>
|
180
|
187
|
</el-table-column>
|
181
|
|
- <el-table-column prop="name" label="单位" width="100">
|
|
188
|
+ <el-table-column prop="name" label="单位" width="100" align="center">
|
182
|
189
|
<template slot-scope="scope">
|
183
|
190
|
{{scope.row.warehousing_unit}}
|
184
|
191
|
</template>
|
185
|
192
|
</el-table-column>
|
186
|
|
- <el-table-column prop="name" label="盘点数量" width="100">
|
|
193
|
+ <el-table-column prop="name" label="盘点数量" width="100" align="center">
|
187
|
194
|
<template slot-scope="scope">
|
188
|
195
|
{{scope.row.count}}
|
189
|
196
|
</template>
|
190
|
197
|
</el-table-column>
|
191
|
|
- <el-table-column prop="name" label="原进货价" width="100">
|
|
198
|
+ <el-table-column prop="name" label="原进货价" width="100" align="center">
|
192
|
199
|
<template slot-scope="scope">
|
193
|
200
|
{{scope.row.last_price}}
|
194
|
201
|
</template>
|
195
|
202
|
</el-table-column>
|
196
|
|
- <el-table-column prop="name" label="原零售价" width="100">
|
|
203
|
+ <el-table-column prop="name" label="原零售价" width="100" align="center">
|
197
|
204
|
<template slot-scope="scope">
|
198
|
205
|
{{scope.row.retail_price}}
|
199
|
206
|
</template>
|
200
|
207
|
</el-table-column>
|
201
|
|
- <!-- <el-table-column prop="name" label="新零售价" width="100">
|
202
|
|
- <template slot-scope="scope">
|
203
|
|
- {{scope.row.new_price}}
|
204
|
|
- </template>
|
205
|
|
- </el-table-column> -->
|
206
|
|
- <el-table-column prop="name" label="生产厂商" width="100">
|
|
208
|
+
|
|
209
|
+ <el-table-column prop="name" label="生产厂商" width="100" align="center">
|
207
|
210
|
<template slot-scope="scope">
|
208
|
211
|
{{scope.row.manufacturer}}
|
209
|
212
|
</template>
|
210
|
213
|
</el-table-column>
|
211
|
|
- <el-table-column prop="name" label="产地" width="100">
|
|
214
|
+ <el-table-column prop="name" label="产地" width="100" align="center">
|
212
|
215
|
<template slot-scope="scope">
|
213
|
216
|
{{scope.row.drug_origin_place}}
|
214
|
217
|
</template>
|
215
|
218
|
</el-table-column>
|
216
|
|
- <el-table-column prop="name" label="批准文号" width="100">
|
|
219
|
+ <el-table-column prop="name" label="批准文号" width="100" align="center">
|
217
|
220
|
<template slot-scope="scope">
|
218
|
221
|
{{scope.row.number}}
|
219
|
222
|
</template>
|
220
|
223
|
</el-table-column>
|
221
|
|
- <el-table-column prop="name" label="备注" width="100">
|
|
224
|
+ <el-table-column prop="name" label="备注" width="100" align="center">
|
222
|
225
|
<template slot-scope="scope">
|
223
|
226
|
{{scope.row.remark}}
|
224
|
227
|
</template>
|
|
@@ -248,7 +251,7 @@
|
248
|
251
|
<el-form :model="form" class="modifyDialog" label-width="120px">
|
249
|
252
|
|
250
|
253
|
<el-form-item label="耗材ID">
|
251
|
|
- <el-input v-model="form.drug_id"></el-input>
|
|
254
|
+ <el-input v-model="form.drug_id" :disabled="true"></el-input>
|
252
|
255
|
</el-form-item>
|
253
|
256
|
<el-form-item label="药品名称">
|
254
|
257
|
<el-autocomplete
|
|
@@ -271,13 +274,13 @@
|
271
|
274
|
<el-input v-model="form.specification_name" :disabled="true"></el-input>
|
272
|
275
|
</el-form-item>
|
273
|
276
|
<el-form-item label="单位">
|
274
|
|
- <el-input v-model="form.warehousing_unit"></el-input>
|
|
277
|
+ <el-input v-model="form.warehousing_unit" :disabled="true"></el-input>
|
275
|
278
|
</el-form-item>
|
276
|
279
|
<el-form-item label="进货价">
|
277
|
|
- <el-input v-model="form.last_price"></el-input>
|
|
280
|
+ <el-input v-model="form.last_price" :disabled="true"></el-input>
|
278
|
281
|
</el-form-item>
|
279
|
282
|
<el-form-item label="零售价">
|
280
|
|
- <el-input v-model="form.retail_price"></el-input>
|
|
283
|
+ <el-input v-model="form.retail_price" :disabled="true"></el-input>
|
281
|
284
|
</el-form-item>
|
282
|
285
|
<el-form-item label="盘点数量">
|
283
|
286
|
<el-input v-model="form.count"></el-input>
|
|
@@ -413,12 +416,63 @@
|
413
|
416
|
<el-button type="primary" @click="modifyInventory">确 定</el-button>
|
414
|
417
|
</span>
|
415
|
418
|
</el-dialog>
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+ <el-dialog
|
|
422
|
+ title="校正"
|
|
423
|
+ :visible.sync="profdialogVisible"
|
|
424
|
+ width="1200px">
|
|
425
|
+ <el-form :model="form" class="modifyDialog" label-width="120px">
|
|
426
|
+
|
|
427
|
+ <el-form-item label="药品名称">
|
|
428
|
+ <el-autocomplete
|
|
429
|
+ class="checkSearch"
|
|
430
|
+ popper-class="my-autocomplete"
|
|
431
|
+ v-model="form.drug_name"
|
|
432
|
+ :fetch-suggestions="querySearchAsync"
|
|
433
|
+ :trigger-on-focus="true"
|
|
434
|
+ placeholder="请输入药品名称"
|
|
435
|
+ @select="handleSelect"
|
|
436
|
+ style="width:160px;"
|
|
437
|
+ >
|
|
438
|
+ <i class="el-icon-search el-input__icon" slot="suffix"></i>
|
|
439
|
+ <template slot-scope="{ item }">
|
|
440
|
+ <div class="name">{{ item.drug_name + item.dose + item.dose_unit + "*" +item.min_number + item.min_unit +"/" + item.max_unit + " "+item.manufacturer}}</div>
|
|
441
|
+ </template>
|
|
442
|
+ </el-autocomplete>
|
|
443
|
+ </el-form-item>
|
|
444
|
+ <el-form-item label="单位">
|
|
445
|
+ <el-input v-model="form.warehousing_unit"></el-input>
|
|
446
|
+ </el-form-item>
|
|
447
|
+ <el-form-item label="盘点数量">
|
|
448
|
+ <el-input v-model="form.count"></el-input>
|
|
449
|
+ </el-form-item>
|
|
450
|
+ <el-form-item label="校正数量">
|
|
451
|
+ <el-input v-model="form.proof_count" type="number"></el-input>
|
|
452
|
+ </el-form-item>
|
|
453
|
+
|
|
454
|
+ <el-form-item label="库存">
|
|
455
|
+ <el-input v-model="form.total" :disabled="true"></el-input>
|
|
456
|
+ </el-form-item>
|
|
457
|
+
|
|
458
|
+ <el-form-item label="备注">
|
|
459
|
+ <div style="display:flex;">
|
|
460
|
+ <el-input v-model="form.remark"></el-input>
|
|
461
|
+ </div>
|
|
462
|
+ </el-form-item>
|
|
463
|
+ </el-form>
|
|
464
|
+ <span slot="footer" class="dialog-footer">
|
|
465
|
+ <el-button @click="profdialogVisible = false">取 消</el-button>
|
|
466
|
+ <el-button type="primary" @click="proofInventory">确 定</el-button>
|
|
467
|
+ </span>
|
|
468
|
+ </el-dialog>
|
416
|
469
|
</div>
|
417
|
470
|
</template>
|
418
|
471
|
|
419
|
472
|
<script>
|
420
|
473
|
import { uParseTime } from '@/utils/tools'
|
421
|
|
-import { postSearchDrugWarehouseList,getDrugWarehouseInfoList,saveDrugInventory,getDrugInventoryList,SaveDrugCheckedInventory,getDrugInventoryDetail,modifyInventory} from "@/api/drug/drug"
|
|
474
|
+import { postSearchDrugWarehouseList,getDrugWarehouseInfoList,saveDrugInventory,getDrugInventoryList,SaveDrugCheckedInventory,getDrugInventoryDetail,modifyInventory,SaveDrugProofInventory} from "@/api/drug/drug"
|
|
475
|
+import { getDrugBatchNumber } from "@/api/drug/drug_stock"
|
422
|
476
|
export default {
|
423
|
477
|
name: "drugInventory",
|
424
|
478
|
data() {
|
|
@@ -456,6 +510,8 @@ export default {
|
456
|
510
|
batch_number:"",
|
457
|
511
|
product_date:"",
|
458
|
512
|
expiry_date:"",
|
|
513
|
+ warehouse_info_id:"",
|
|
514
|
+ proof_count:"",
|
459
|
515
|
},
|
460
|
516
|
total: 0,
|
461
|
517
|
editdialogVisible:false,
|
|
@@ -471,11 +527,16 @@ export default {
|
471
|
527
|
check_time:new Date(),
|
472
|
528
|
id:"",
|
473
|
529
|
modifydialogVisible:false,
|
|
530
|
+ numberList:[],
|
|
531
|
+ profdialogVisible:false,
|
474
|
532
|
}
|
475
|
533
|
},
|
476
|
534
|
methods:{
|
|
535
|
+ changeNumber(val){
|
|
536
|
+ this.form.warehouse_info_id = val
|
|
537
|
+ },
|
477
|
538
|
search(){
|
478
|
|
-
|
|
539
|
+ this.getlist()
|
479
|
540
|
},
|
480
|
541
|
print(){
|
481
|
542
|
if(this.ids == ""){
|
|
@@ -531,7 +592,8 @@ export default {
|
531
|
592
|
})
|
532
|
593
|
},
|
533
|
594
|
handleSelect(val){
|
534
|
|
- console.log("999999",val)
|
|
595
|
+ console.log("val233223232332",val)
|
|
596
|
+ this.getDrugBatchNumber(val.drug_id)
|
535
|
597
|
var params = {
|
536
|
598
|
id:val.drug_id
|
537
|
599
|
}
|
|
@@ -546,8 +608,6 @@ export default {
|
546
|
608
|
total += (list[i].stock_max_number+list[i].stock_min_number)
|
547
|
609
|
}
|
548
|
610
|
console.log("total",total)
|
549
|
|
-
|
550
|
|
-
|
551
|
611
|
console.log("库存",list)
|
552
|
612
|
this.form.id = val.id
|
553
|
613
|
this.form.drug_id = val.drug_id,
|
|
@@ -558,13 +618,14 @@ export default {
|
558
|
618
|
this.form.dealer = val.dealer
|
559
|
619
|
this.form.manufacturer = val.manufacturer
|
560
|
620
|
this.form.remark = val.remark
|
561
|
|
- this.form.warehousing_unit = val.warehouseing_unit
|
|
621
|
+ this.form.warehousing_unit = val.max_unit
|
562
|
622
|
this.form.total = this.getTotal(total,val.max_unit,val.min_unit,val.min_number)
|
563
|
623
|
this.form.batch_number = val.batch_number
|
564
|
624
|
this.form.last_price = val.last_price
|
565
|
625
|
this.form.specification_name = val.dose + val.dose_unit +"*"+val.min_number+val.min_unit+"/"+val.max_unit
|
566
|
626
|
this.form.expiry_date = val.expiry_date
|
567
|
627
|
this.form.product_date =val.product_date
|
|
628
|
+ this.form.drug_origin_place = val.drug_origin_place
|
568
|
629
|
}
|
569
|
630
|
})
|
570
|
631
|
},
|
|
@@ -617,9 +678,28 @@ export default {
|
617
|
678
|
specification_name:this.form.specification_name,
|
618
|
679
|
batch_number:this.form.batch_number,
|
619
|
680
|
expiry_date:this.form.expiry_date,
|
620
|
|
- product_date:this.form.product_date
|
|
681
|
+ product_date:this.form.product_date,
|
|
682
|
+ warehouse_info_id:this.form.warehouse_info_id,
|
621
|
683
|
}
|
622
|
|
- this.tableData.push(obj)
|
|
684
|
+ this.tableData.push(obj)
|
|
685
|
+ this.form.drug_name = ""
|
|
686
|
+ this.form.warehousing_unit = ""
|
|
687
|
+ this.form.count = ""
|
|
688
|
+ this.form.retail_price = ""
|
|
689
|
+ this.form.manufacturer = ""
|
|
690
|
+ this.form.drug_origin_place = ""
|
|
691
|
+ this.form.number = ""
|
|
692
|
+ this.form.remark = ""
|
|
693
|
+ this.form.new_price = ""
|
|
694
|
+ this.form.warehousing_order = ""
|
|
695
|
+ this.form.dealer = ""
|
|
696
|
+ this.form.last_price = ""
|
|
697
|
+ this.form.number = ""
|
|
698
|
+ this.form.total = ""
|
|
699
|
+ this.form.specification_name = ""
|
|
700
|
+ this.form.batch_number = ""
|
|
701
|
+ this.form.expiry_date = ""
|
|
702
|
+ this.form.product_date = ""
|
623
|
703
|
},
|
624
|
704
|
toDelete(index){
|
625
|
705
|
this.tableData.splice(index,1)
|
|
@@ -635,7 +715,7 @@ export default {
|
635
|
715
|
this.form.dealer = val.dealer
|
636
|
716
|
this.form.manufacturer = val.manufacturer
|
637
|
717
|
this.form.remark = val.remark
|
638
|
|
- this.form.warehousing_unit = val.warehouseing_unit
|
|
718
|
+ this.form.warehousing_unit = val.max_unit
|
639
|
719
|
this.form.total = val.total
|
640
|
720
|
this.form.batch_number = val.batch_number
|
641
|
721
|
this.form.last_price = val.last_price
|
|
@@ -643,6 +723,7 @@ export default {
|
643
|
723
|
this.form.expiry_date = val.expiry_date
|
644
|
724
|
this.form.product_date =val.product_date
|
645
|
725
|
this.form.count = val.count
|
|
726
|
+
|
646
|
727
|
this.editdialogVisible = true
|
647
|
728
|
},
|
648
|
729
|
saveInventory(){
|
|
@@ -703,7 +784,9 @@ export default {
|
703
|
784
|
if(response.data.state == 1){
|
704
|
785
|
var msg = response.data.data.msg
|
705
|
786
|
this.$message.success("保存成功")
|
|
787
|
+ this.getlist()
|
706
|
788
|
this.editdialogVisible = false
|
|
789
|
+ this.dialogVisible = false
|
707
|
790
|
}
|
708
|
791
|
})
|
709
|
792
|
},
|
|
@@ -767,6 +850,7 @@ export default {
|
767
|
850
|
this.$message.success("保存成功")
|
768
|
851
|
var msg = response.data.data.msg
|
769
|
852
|
this.checkDialogVisible = false
|
|
853
|
+ this.tableData = []
|
770
|
854
|
this.getlist()
|
771
|
855
|
}
|
772
|
856
|
})
|
|
@@ -790,7 +874,7 @@ export default {
|
790
|
874
|
this.form.manufacturer = detail.manufacturer
|
791
|
875
|
this.form.remark = detail.remark
|
792
|
876
|
this.form.warehousing_unit = detail.warehousing_unit
|
793
|
|
- this.form.total = parseInt(detail.total)
|
|
877
|
+ this.form.total = detail.total
|
794
|
878
|
|
795
|
879
|
this.form.last_price = detail.last_price
|
796
|
880
|
|
|
@@ -866,6 +950,69 @@ export default {
|
866
|
950
|
formatJson(filterVal, jsonData) {
|
867
|
951
|
return jsonData.map(v => filterVal.map(j => v[j]));
|
868
|
952
|
},
|
|
953
|
+ getDrugBatchNumber(id){
|
|
954
|
+ var params = {
|
|
955
|
+ id:id
|
|
956
|
+ }
|
|
957
|
+ getDrugBatchNumber(params).then(response=>{
|
|
958
|
+ if(response.data.state == 1){
|
|
959
|
+ var list = response.data.data.list
|
|
960
|
+ console.log("list2222",list)
|
|
961
|
+ this.numberList = list
|
|
962
|
+ }
|
|
963
|
+ })
|
|
964
|
+ },
|
|
965
|
+ toProof(id){
|
|
966
|
+ getDrugInventoryDetail(id).then(response=>{
|
|
967
|
+ if(response.data.state == 1){
|
|
968
|
+ var detail = response.data.data.detail
|
|
969
|
+ console.log("detail22222222",detail)
|
|
970
|
+ this.id = detail.id
|
|
971
|
+ this.form.drug_id = detail.drug_id
|
|
972
|
+ this.form.drug_name = detail.drug_name
|
|
973
|
+ this.form.specification_name = detail.specification_name
|
|
974
|
+ this.form.retail_price = detail.retail_price
|
|
975
|
+ this.form.warehousing_order =detail.warehousing_order
|
|
976
|
+ this.form.number = detail.number
|
|
977
|
+ this.form.manufacturer = detail.manufacturer
|
|
978
|
+ this.form.remark = detail.remark
|
|
979
|
+ this.form.warehousing_unit = detail.warehousing_unit
|
|
980
|
+ this.form.total = detail.total
|
|
981
|
+ this.form.last_price = detail.last_price
|
|
982
|
+ this.form.count = parseInt(detail.count)
|
|
983
|
+ this.form.drug_origin_place = detail.drug_origin_place
|
|
984
|
+ this.form.warehouse_info_id = detail.warehouse_info_id
|
|
985
|
+ this.profdialogVisible = true
|
|
986
|
+ }
|
|
987
|
+ })
|
|
988
|
+ },
|
|
989
|
+ proofInventory(){
|
|
990
|
+ var params = {
|
|
991
|
+ id:this.id,
|
|
992
|
+ warehouseing_unit:this.form.warehousing_unit,
|
|
993
|
+ warehouse_info_id:this.form.warehouse_info_id,
|
|
994
|
+ total:this.total.toString(),
|
|
995
|
+ remark:this.remark,
|
|
996
|
+ prof_count:parseInt(this.prof_count),
|
|
997
|
+ }
|
|
998
|
+ console.log("params",params)
|
|
999
|
+ SaveDrugProofInventory(params).then(response=>{
|
|
1000
|
+ if(response.data.state == 1){
|
|
1001
|
+ var inventory = response.data.data.inventory
|
|
1002
|
+ console.log("inventory",inventory)
|
|
1003
|
+ this.profdialogVisible = false
|
|
1004
|
+ this.getlist()
|
|
1005
|
+ }
|
|
1006
|
+ })
|
|
1007
|
+ },
|
|
1008
|
+ changeStartTime(val){
|
|
1009
|
+ this.start_time = this.getTime(val)
|
|
1010
|
+ this.getlist()
|
|
1011
|
+ },
|
|
1012
|
+ changeEndTime(val){
|
|
1013
|
+ this.end_time = this.getTime(val)
|
|
1014
|
+ this.getlist()
|
|
1015
|
+ }
|
869
|
1016
|
},
|
870
|
1017
|
created(){
|
871
|
1018
|
this.getlist()
|