|
@@ -1,47 +1,42 @@
|
1
|
1
|
<template>
|
2
|
2
|
|
3
|
|
- <div class="app-container sign-and-weigh-box">
|
4
|
|
-
|
5
|
|
-
|
6
|
|
- <div class="filter-container">
|
7
|
|
-
|
8
|
|
-
|
9
|
|
- <el-row style="float:right;">
|
10
|
|
- <el-button @click="AddNewOrder" type="primary">新增</el-button>
|
11
|
|
- </el-row>
|
12
|
|
- </div>
|
13
|
|
-
|
14
|
|
- <div class="filter-container" style="margin-top:20px">
|
15
|
|
- <el-input style="width: 300px;" class="filter-item" placeholder="单据日期/单据编码/制单人/供应商"/>
|
16
|
|
- <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
|
|
3
|
+ <div class="main-contain">
|
|
4
|
+ <div class="position">
|
|
5
|
+ <bread-crumb :crumbs='crumbs'></bread-crumb>
|
|
6
|
+ <el-button size="small" @click="AddNewOrder" class="filter-item" style="float:right;" type="primary" icon="el-icon-circle-plus-outline" >新增</el-button>
|
17
|
7
|
</div>
|
|
8
|
+ <div class="app-container">
|
|
9
|
+ <div class="cell">
|
|
10
|
+ <el-input style="width: 300px;" class="filter-item" placeholder="单据日期/单据编码/制单人/供应商"/>
|
|
11
|
+ <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
|
|
12
|
+ </div>
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+ <div class="cell">
|
|
16
|
+ <span>出库时间:</span>
|
|
17
|
+ <el-date-picker v-model="start_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
|
|
18
|
+ type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
|
|
19
|
+ value-format="yyyy-MM-dd" @change="startTimeChange"></el-date-picker>
|
|
20
|
+ <span class="">-</span>
|
|
21
|
+ <el-date-picker v-model="end_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
|
|
22
|
+ type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
|
|
23
|
+ value-format="yyyy-MM-dd" @change="endTimeChange"></el-date-picker>
|
|
24
|
+ </div>
|
|
25
|
+
|
|
26
|
+ <div class="cell clearfix">
|
|
27
|
+ <el-checkbox style="width: 30px" v-model="checked" @change="changeAllSelected">全选</el-checkbox>
|
|
28
|
+ <el-button size="small" icon="el-icon-delete" @click="batchDelete">删除</el-button>
|
|
29
|
+ </div>
|
18
|
30
|
|
19
|
|
- <div class="filter-container">
|
20
|
|
- <span>入库时间:</span>
|
21
|
|
- <el-date-picker v-model="start_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
|
22
|
|
- type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
|
23
|
|
- value-format="yyyy-MM-dd" @change="startTimeChange"></el-date-picker>
|
24
|
|
- <span class="">-</span>
|
25
|
|
- <el-date-picker v-model="end_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
|
26
|
|
- type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
|
27
|
|
- value-format="yyyy-MM-dd" @change="endTimeChange"></el-date-picker>
|
28
|
|
- </div>
|
29
|
|
-
|
30
|
|
- <div class="filter-container" style="margin-top: 10px">
|
31
|
|
- <el-checkbox style="width: 30px" v-model="checked" @change="changeAllSelected">全选</el-checkbox>
|
32
|
|
- <el-button size="small" icon="el-icon-delete" @click="batchDelete">删除</el-button>
|
33
|
|
-
|
34
|
|
- </div>
|
35
|
|
-
|
36
|
|
- <el-row :gutter="12" style="margin-top: 10px">
|
37
|
31
|
<el-table
|
38
|
32
|
:data="warehouseOutDate"
|
39
|
33
|
:class="signAndWeighBoxPatients"
|
40
|
34
|
style="width: 100%" border
|
41
|
35
|
highlight-current-row
|
42
|
36
|
ref="multipleTable"
|
|
37
|
+
|
43
|
38
|
@selection-change="select"
|
44
|
|
-
|
|
39
|
+ :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
|
45
|
40
|
>
|
46
|
41
|
<el-table-column
|
47
|
42
|
type="selection"
|
|
@@ -65,8 +60,6 @@
|
65
|
60
|
{{getXuserName(scope.row.creater)}}
|
66
|
61
|
</template>
|
67
|
62
|
</el-table-column>
|
68
|
|
-
|
69
|
|
-
|
70
|
63
|
<el-table-column label="厂家" align="center">
|
71
|
64
|
<template slot-scope="scope">
|
72
|
65
|
{{getManufactuerName(scope.row.manufacturer)}}
|
|
@@ -94,12 +87,9 @@
|
94
|
87
|
icon="el-icon-delete"
|
95
|
88
|
@click="handleDelete(scope.$index, scope.row)">
|
96
|
89
|
</el-button>
|
97
|
|
-
|
98
|
90
|
</template>
|
99
|
91
|
</el-table-column>
|
100
|
|
-
|
101
|
92
|
</el-table>
|
102
|
|
-
|
103
|
93
|
<el-pagination
|
104
|
94
|
@size-change="handleSizeChange"
|
105
|
95
|
@current-change="handleCurrentChange"
|
|
@@ -111,21 +101,30 @@
|
111
|
101
|
:total="total">
|
112
|
102
|
</el-pagination>
|
113
|
103
|
|
114
|
|
- </el-row>
|
|
104
|
+
|
|
105
|
+ </div>
|
115
|
106
|
</div>
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
116
|
112
|
</template>
|
117
|
113
|
|
118
|
114
|
<script>
|
119
|
115
|
import { uParseTime } from '@/utils/tools'
|
120
|
116
|
import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from '@/api/doctor'
|
|
117
|
+
|
121
|
118
|
import {
|
122
|
119
|
deleteWarehouseOut,
|
123
|
120
|
GetAllConfig,
|
124
|
121
|
getWarehouseOutList,
|
125
|
122
|
} from '@/api/stock'
|
|
123
|
+ import BreadCrumb from '../components/bread-crumb'
|
126
|
124
|
|
127
|
125
|
export default {
|
128
|
126
|
name: 'salesReturnOrder',
|
|
127
|
+ components: { BreadCrumb },
|
129
|
128
|
created() {
|
130
|
129
|
var year = new Date().getFullYear()
|
131
|
130
|
var month = new Date().getMonth() + 1
|
|
@@ -156,6 +155,10 @@
|
156
|
155
|
},
|
157
|
156
|
data() {
|
158
|
157
|
return {
|
|
158
|
+ crumbs:[
|
|
159
|
+ {path:false, name:'库存管理'},
|
|
160
|
+ {path:'/stock/out', name:'出库单'},
|
|
161
|
+ ],
|
159
|
162
|
page: 1,
|
160
|
163
|
limit: 7,
|
161
|
164
|
checked: false,
|
|
@@ -361,48 +364,121 @@
|
361
|
364
|
}
|
362
|
365
|
</script>
|
363
|
366
|
|
364
|
|
-<style rel="stylesheet/css" lang="scss" scoped>
|
365
|
|
- .information {
|
|
367
|
+<style rel="stylesheet/scss" lang="scss" scoped>
|
|
368
|
+ .app-container {
|
|
369
|
+ // margin: 20px;
|
|
370
|
+ font-size: 15px;
|
|
371
|
+ .filter-container {
|
|
372
|
+ padding-bottom: 5px;
|
|
373
|
+ }
|
|
374
|
+ .search-component {
|
|
375
|
+ width: 500px;
|
|
376
|
+ .searchBox {
|
|
377
|
+ width: 300px;
|
|
378
|
+ height: 36px;
|
|
379
|
+ line-height: 36px;
|
|
380
|
+ padding-left: 15px;
|
366
|
381
|
border: 1px #dcdfe6 solid;
|
367
|
|
- padding: 30px 20px 30px 20px;
|
368
|
|
-
|
369
|
|
- .border {
|
370
|
|
- border-bottom: 1px #dcdfe6 solid;
|
371
|
|
- margin: 0px 0 20px 0;
|
|
382
|
+ border-right: none;
|
|
383
|
+ outline: none;
|
|
384
|
+ float: left;
|
|
385
|
+ border-radius: 6px 0 0 6px;
|
|
386
|
+ font-size: 14px;
|
|
387
|
+ color: #333;
|
|
388
|
+ background: #fff;
|
|
389
|
+ box-shadow: 3px 3px 4px rgba(135, 135, 135, 0.05);
|
372
|
390
|
}
|
373
|
|
-
|
|
391
|
+ .searchBtn {
|
|
392
|
+ background-color: #409eff;
|
|
393
|
+ color: #fff;
|
|
394
|
+ font-size: 15px;
|
|
395
|
+ text-align: center;
|
|
396
|
+ height: 36px;
|
|
397
|
+ line-height: 36px;
|
|
398
|
+ float: left;
|
|
399
|
+ outline: none;
|
|
400
|
+ width: 70px;
|
|
401
|
+ border: none;
|
|
402
|
+ border-radius: 0 6px 6px 0;
|
|
403
|
+ font-family: "Microsoft Yahei";
|
|
404
|
+ cursor: pointer;
|
374
|
405
|
}
|
375
|
|
-
|
|
406
|
+ }
|
|
407
|
+ .cell {
|
|
408
|
+ margin: 0px 0 15px 0;
|
|
409
|
+ -moz-box-sizing: border-box;
|
|
410
|
+ -webkit-box-sizing: border-box;
|
|
411
|
+ -o-box-sizing: border-box;
|
|
412
|
+ -ms-box-sizing: border-box;
|
|
413
|
+ box-sizing: border-box;
|
|
414
|
+ display: -webkit-box;
|
|
415
|
+ display: -ms-flexbox;
|
|
416
|
+ // display: flex;
|
|
417
|
+ -webkit-box-align: flex-start;
|
|
418
|
+ -ms-flex-align: flex-start;
|
|
419
|
+ align-items: flex-start;
|
|
420
|
+ text-align: left;
|
|
421
|
+ justify-content: flex-start;
|
|
422
|
+ color: #333;
|
376
|
423
|
.title {
|
|
424
|
+ width: 80px;
|
|
425
|
+ display: inline-block;
|
|
426
|
+ font-weight: normal;
|
|
427
|
+ color: #909399;
|
|
428
|
+ padding: 6px 0;
|
|
429
|
+ font-weight: 700;
|
|
430
|
+ .name {
|
|
431
|
+ width: 60px;
|
|
432
|
+ text-align: justify;
|
|
433
|
+ text-justify: distribute-all-lines;
|
|
434
|
+ text-align-last: justify;
|
|
435
|
+ -moz-text-align-last: justify;
|
|
436
|
+ -webkit-text-align-last: justify;
|
|
437
|
+ display: inline-block;
|
|
438
|
+ }
|
|
439
|
+ }
|
|
440
|
+ .time {
|
|
441
|
+ -webkit-box-flex: 1;
|
|
442
|
+ -ms-flex: 1;
|
|
443
|
+ flex: 1;
|
|
444
|
+ ul {
|
|
445
|
+ padding: 0;
|
|
446
|
+ margin: 0;
|
|
447
|
+ li {
|
|
448
|
+ float: left;
|
|
449
|
+ list-style: none;
|
|
450
|
+ cursor: pointer;
|
|
451
|
+ padding: 3px 0;
|
|
452
|
+ width: 70px;
|
|
453
|
+ color: #606266;
|
|
454
|
+ border-radius: 4px;
|
|
455
|
+ margin: 0 10px 0 0;
|
|
456
|
+ color: #409eff;
|
|
457
|
+ border: 1px #409eff solid;
|
|
458
|
+ text-align:center;
|
|
459
|
+ &:hover {
|
|
460
|
+ background: #409eff;
|
|
461
|
+ color: #fff;
|
|
462
|
+ }
|
|
463
|
+ }
|
|
464
|
+ .active {
|
377
|
465
|
background: #409eff;
|
378
|
|
- height: 44px;
|
379
|
|
- line-height: 44px;
|
380
|
|
- padding: 0 0 0 10px;
|
381
|
466
|
color: #fff;
|
382
|
|
- margin: 0 0 10px 0;
|
383
|
|
-
|
384
|
467
|
}
|
385
|
|
-
|
386
|
|
- .edit_separater {
|
387
|
|
- border-top: 1px solid rgb(233, 233, 233);
|
388
|
|
- margin-top: 15px;
|
389
|
|
- margin-bottom: 15px;
|
390
|
468
|
}
|
391
|
|
-
|
392
|
|
-</style>
|
393
|
|
-
|
394
|
|
-<style>
|
395
|
|
- .sign-and-weigh-box .sign-and-weigh-box-patients .cell {
|
396
|
|
- font-size: 12px;
|
397
|
469
|
}
|
398
|
|
-
|
399
|
|
- .sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
|
400
|
|
- background: #6fb5fa;
|
401
|
470
|
}
|
402
|
|
-
|
403
|
|
- .count {
|
404
|
|
- color: #bd2c00;
|
405
|
|
-
|
|
471
|
+ .amount {
|
|
472
|
+ font-weight: normal;
|
|
473
|
+ padding: 10px 0 0 0;
|
|
474
|
+ color: #606266;
|
|
475
|
+ font-size: 14px;
|
|
476
|
+ span {
|
|
477
|
+ color: #ef2525;
|
|
478
|
+ font-family: "Arial";
|
|
479
|
+ padding: 0 2px;
|
|
480
|
+ }
|
|
481
|
+ }
|
406
|
482
|
}
|
407
|
|
-
|
408
|
483
|
</style>
|
|
484
|
+
|