|
@@ -24,14 +24,14 @@
|
24
|
24
|
>
|
25
|
25
|
<el-date-picker
|
26
|
26
|
size="small"
|
27
|
|
- v-model="value1"
|
|
27
|
+ v-model="start_time"
|
28
|
28
|
type="date"
|
29
|
29
|
style="margin-left:5px;width:140px;"
|
30
|
30
|
placeholder="选择日期">
|
31
|
31
|
</el-date-picker>
|
32
|
32
|
<el-date-picker
|
33
|
33
|
size="small"
|
34
|
|
- v-model="value2"
|
|
34
|
+ v-model="end_time"
|
35
|
35
|
type="date"
|
36
|
36
|
style="margin-left:5px;width:140px;"
|
37
|
37
|
placeholder="选择日期">
|
|
@@ -39,14 +39,15 @@
|
39
|
39
|
</div>
|
40
|
40
|
<div>
|
41
|
41
|
<el-button size="small" type="primary" @click="dialogVisible = true">新增</el-button>
|
42
|
|
- <el-button size="small" type="primary">核对</el-button>
|
|
42
|
+ <el-button size="small" type="primary" @click="toCheck">核对</el-button>
|
43
|
43
|
<el-button size="small" type="primary" @click="print">打印</el-button>
|
44
|
44
|
<el-button size="small" type="primary">导出</el-button>
|
45
|
45
|
</div>
|
46
|
46
|
</div>
|
47
|
47
|
<div>
|
48
|
48
|
<div style="width:100%;margin-right:10px;margin-top:10px">
|
49
|
|
- <el-table :data="tableList" border :height="tableHeight" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
|
|
49
|
+ <el-table :data="tableList" border :height="tableHeight" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }" @selection-change="changePrice">
|
|
50
|
+ <el-table-column type="selection" width="55" align="center"> </el-table-column>
|
50
|
51
|
<el-table-column prop="date" label="单据编码" width="100">
|
51
|
52
|
<template slot-scope="scope" align="center">
|
52
|
53
|
{{scope.row.warehousing_order}}
|
|
@@ -64,7 +65,7 @@
|
64
|
65
|
</el-table-column>
|
65
|
66
|
<el-table-column label="单位" width="100">
|
66
|
67
|
<template slot-scope="scope">
|
67
|
|
- {{scope.row.GoodInfo.packing_unit}}
|
|
68
|
+ {{scope.row.packing_unit}}
|
68
|
69
|
</template>
|
69
|
70
|
</el-table-column>
|
70
|
71
|
<el-table-column label="调价数量" width="100">
|
|
@@ -368,12 +369,54 @@
|
368
|
369
|
<el-button type="primary" @click="upatePrice">保存</el-button>
|
369
|
370
|
</span>
|
370
|
371
|
</el-dialog>
|
|
372
|
+
|
|
373
|
+ <el-dialog
|
|
374
|
+ title="耗材调价核对"
|
|
375
|
+ :visible.sync="checkDialogVisible"
|
|
376
|
+ width="30%"
|
|
377
|
+ >
|
|
378
|
+ <span>
|
|
379
|
+ <el-form :model="form">
|
|
380
|
+ <el-row>
|
|
381
|
+ <el-col>
|
|
382
|
+ <el-form-item label="核对时间">
|
|
383
|
+ <el-date-picker
|
|
384
|
+ size="small"
|
|
385
|
+ v-model="check_time"
|
|
386
|
+ type="date"
|
|
387
|
+ style="margin-left:5px;width:140px;"
|
|
388
|
+ placeholder="选择日期">
|
|
389
|
+ </el-date-picker>
|
|
390
|
+ </el-form-item>
|
|
391
|
+ </el-col>
|
|
392
|
+ </el-row>
|
|
393
|
+ <el-row>
|
|
394
|
+ <el-col>
|
|
395
|
+ <el-form-item label="核对人">
|
|
396
|
+ <el-select v-model="checker" placeholder="请选择">
|
|
397
|
+ <el-option
|
|
398
|
+ v-for="item in doctorList"
|
|
399
|
+ :key="item.admin_user_id"
|
|
400
|
+ :label="item.user_name"
|
|
401
|
+ :value="item.admin_user_id">
|
|
402
|
+ </el-option>
|
|
403
|
+ </el-select>
|
|
404
|
+ </el-form-item>
|
|
405
|
+ </el-col>
|
|
406
|
+ </el-row>
|
|
407
|
+ </el-form>
|
|
408
|
+ </span>
|
|
409
|
+ <span slot="footer" class="dialog-footer">
|
|
410
|
+ <el-button @click="checkDialogVisible = false">取 消</el-button>
|
|
411
|
+ <el-button type="primary" @click="SaveCheckedPrice">保 存</el-button>
|
|
412
|
+ </span>
|
|
413
|
+ </el-dialog>
|
371
|
414
|
</div>
|
372
|
415
|
</template>
|
373
|
416
|
|
374
|
417
|
<script>
|
375
|
418
|
import BreadCrumb from "../components/bread-crumb";
|
376
|
|
-import { postSearchGoodWarehouseList,saveAdjustPrice,getAllStockPrice} from "@/api/stock"
|
|
419
|
+import { postSearchGoodWarehouseList,saveAdjustPrice,getAllStockPrice,SaveCheckedPrice} from "@/api/stock"
|
377
|
420
|
import { uParseTime } from '@/utils/tools'
|
378
|
421
|
export default {
|
379
|
422
|
name: "stockModifyPrice",
|
|
@@ -417,7 +460,13 @@ export default {
|
417
|
460
|
currentIndex: 0,
|
418
|
461
|
editPriceDialogVisible:false,
|
419
|
462
|
tableList:[],
|
420
|
|
- doctorList:[]
|
|
463
|
+ doctorList:[],
|
|
464
|
+ start_time:"",
|
|
465
|
+ end_time:"",
|
|
466
|
+ ids:"",
|
|
467
|
+ check_time:new Date(),
|
|
468
|
+ checker:this.$store.getters.xt_user.user.user_name,
|
|
469
|
+ checkDialogVisible:false,
|
421
|
470
|
}
|
422
|
471
|
},
|
423
|
472
|
methods:{
|
|
@@ -582,6 +631,7 @@ export default {
|
582
|
631
|
start_time:this.start_time,
|
583
|
632
|
end_time:this.end_time,
|
584
|
633
|
}
|
|
634
|
+ console.log("params",params)
|
585
|
635
|
getAllStockPrice(params).then(response=>{
|
586
|
636
|
if(response.data.state == 1){
|
587
|
637
|
var list = response.data.data.list
|
|
@@ -601,6 +651,42 @@ export default {
|
601
|
651
|
}
|
602
|
652
|
}
|
603
|
653
|
return user_name
|
|
654
|
+ },
|
|
655
|
+ changePrice(val){
|
|
656
|
+ console.log("val23232322323",val)
|
|
657
|
+
|
|
658
|
+ var arr = []
|
|
659
|
+
|
|
660
|
+ for(let i=0;i<val.length;i++){
|
|
661
|
+ arr.push(val[i].id)
|
|
662
|
+ }
|
|
663
|
+ var str = arr.join(",")
|
|
664
|
+
|
|
665
|
+ console.log("str",str)
|
|
666
|
+ this.ids = str
|
|
667
|
+
|
|
668
|
+ },
|
|
669
|
+ toCheck(){
|
|
670
|
+ if(this.ids.length <=0){
|
|
671
|
+ this.$message.error("请勾选核对数据")
|
|
672
|
+ return
|
|
673
|
+ }else{
|
|
674
|
+ this.checkDialogVisible = true
|
|
675
|
+ }
|
|
676
|
+
|
|
677
|
+ },
|
|
678
|
+ SaveCheckedPrice(){
|
|
679
|
+ var params = {
|
|
680
|
+ ids:this.ids,
|
|
681
|
+ check_time:this.getTime(this.check_time),
|
|
682
|
+ checker:this.checker,
|
|
683
|
+ }
|
|
684
|
+ console.log("params",params)
|
|
685
|
+ SaveCheckedPrice(params).then(response=>{
|
|
686
|
+ if(response.data.state == 1){
|
|
687
|
+
|
|
688
|
+ }
|
|
689
|
+ })
|
604
|
690
|
}
|
605
|
691
|
},
|
606
|
692
|
created(){
|