csx 6 年之前
父節點
當前提交
b4ef4788f3
共有 2 個文件被更改,包括 182 次插入102 次删除
  1. 34 30
      src/xt_pages/stock/stockInOrder.vue
  2. 148 72
      src/xt_pages/stock/stockOutOrder.vue

+ 34 - 30
src/xt_pages/stock/stockInOrder.vue 查看文件

@@ -1,39 +1,35 @@
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="handleWarehouse" type="primary">新增</el-button>
11
-      </el-row>
3
+  <div class="main-contain">
4
+    <div class="position">
5
+      <!--<bread-crumb :crumbs='crumbs'></bread-crumb>-->
6
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
7
+      <el-button size="small"  @click="handleWarehouse" class="filter-item" style="float:right;" type="primary" icon="el-icon-circle-plus-outline" >新增</el-button>
12 8
     </div>
13 9
 
14
-    <div class="filter-container" style="margin-top:20px">
10
+    <div class="app-container">
11
+
12
+    <div class="cell">
15 13
       <el-input style="width: 300px;" class="filter-item" placeholder="单据日期/单据编码/制单人/供应商"/>
16 14
       <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
17 15
     </div>
18 16
 
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>
17
+      <div class="cell">
18
+        <span>入库时间:</span>
19
+        <el-date-picker v-model="start_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
20
+                        type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
21
+                        value-format="yyyy-MM-dd" @change="startTimeChange"></el-date-picker>
22
+        <span class="">-</span>
23
+        <el-date-picker v-model="end_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
24
+                        type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
25
+                        value-format="yyyy-MM-dd" @change="endTimeChange"></el-date-picker>
26
+      </div>
27
+
28
+      <div class="cell clearfix">
29
+        <el-checkbox style="width: 30px" v-model="checked" @change="changeAllSelected">全选</el-checkbox>
30
+        <el-button size="small" icon="el-icon-delete" @click="batchDelete">删除</el-button>
31
+      </div>
35 32
 
36
-    <el-row :gutter="12" style="margin-top: 10px">
37 33
       <el-table
38 34
         :data="Warehouse.warehouseDate"
39 35
         :class="signAndWeighBoxPatients"
@@ -42,14 +38,17 @@
42 38
         v-loading="Warehouse.loading"
43 39
         ref="multipleTable"
44 40
         @selection-change="select"
41
+        :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
42
+
45 43
 
46 44
       >
47 45
         <el-table-column
46
+          align="center"
48 47
           type="selection"
49 48
           width="55">
50 49
         </el-table-column>
51 50
 
52
-        <el-table-column label="单据日期" align="center">
51
+        <el-table-column label="单据日期"  align="center">
53 52
           <template slot-scope="scope">
54 53
             {{ scope.row.warehousing_time | parseTime('{y}-{m}-{d}')}}
55 54
           </template>
@@ -111,8 +110,7 @@
111 110
         layout="total, sizes, prev, pager, next, jumper"
112 111
         :total="total">
113 112
       </el-pagination>
114
-
115
-    </el-row>
113
+    </div>
116 114
   </div>
117 115
 </template>
118 116
 
@@ -127,9 +125,11 @@
127 125
     getWarehouseInfoList,
128 126
     getWarehouseList
129 127
   } from '@/api/stock'
128
+  import BreadCrumb from '../components/bread-crumb'
130 129
 
131 130
   export default {
132 131
     name: 'stockIn',
132
+    components: { BreadCrumb },
133 133
     created() {
134 134
       var year = new Date().getFullYear()
135 135
       var month = new Date().getMonth() + 1
@@ -160,6 +160,10 @@
160 160
     },
161 161
     data() {
162 162
       return {
163
+        crumbs:[
164
+          {path:false, name:'库存管理'},
165
+          {path:'/stock/out', name:'入库单'},
166
+        ],
163 167
         page: 1,
164 168
         limit: 7,
165 169
         checked: false,

+ 148 - 72
src/xt_pages/stock/stockOutOrder.vue 查看文件

@@ -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
+