huangyw преди 2 години
родител
ревизия
f091eb2ecd

+ 41 - 0
src/xt_pages/stock/drugs/drugStockInOrder.vue Целия файл

@@ -77,6 +77,23 @@
77 77
             @change="endTimeChange"
78 78
           ></el-date-picker>
79 79
         </div>
80
+        <div style="margin-left: 10px">
81
+          <span>审核状态:</span>
82
+          <el-select
83
+            v-model="check_id"
84
+            style="width: 140px; margin-right: 10px"
85
+            placeholder="请选择"
86
+            @change="changeTypeName"
87
+          >
88
+            <el-option
89
+              v-for="item in checkList"
90
+              :key="item.id"
91
+              :label="item.name"
92
+              :value="item.id"
93
+            >
94
+            </el-option>
95
+          </el-select>
96
+        </div>
80 97
       </div>
81 98
 
82 99
       <div class="cell clearfix">
@@ -469,6 +486,7 @@ export default {
469 486
         loading: false,
470 487
         warehouseInfoDate: [],
471 488
       },
489
+      check_id: 0,
472 490
 
473 491
       startTime: "",
474 492
       dialogVisible: false,
@@ -484,6 +502,29 @@ export default {
484 502
   },
485 503
 
486 504
   methods: {
505
+    changeTypeName() {
506
+      this.getlist();
507
+    },
508
+    getlist() {
509
+      var params = {
510
+        check_id: this.check_id,
511
+        start_time: this.start_time,
512
+        end_time: this.end_time,
513
+        keyword: this.keywords,
514
+        page: this.page,
515
+        limit: this.limit,
516
+      };
517
+      getAllSecondOrderList(params).then((response) => {
518
+        if (response.data.state == 1) {
519
+          var list = response.data.data.list;
520
+          this.tableList = list;
521
+          var total = response.data.data.total;
522
+          this.total = total;
523
+          this.houseList = response.data.data.houseList;
524
+          this.doctorList = response.data.data.doctorList;
525
+        }
526
+      });
527
+    },
487 528
     search: function () {
488 529
       const Params = {
489 530
         page: this.page,

+ 42 - 0
src/xt_pages/stock/drugs/drugStockOutOrder.vue Целия файл

@@ -76,6 +76,23 @@
76 76
             @change="endTimeChange"
77 77
           ></el-date-picker>
78 78
         </div>
79
+         <div style="margin-left: 10px">
80
+          <span>审核状态:</span>
81
+          <el-select
82
+            v-model="check_id"
83
+            style="width: 140px; margin-right: 10px"
84
+            placeholder="请选择"
85
+            @change="changeTypeName"
86
+          >
87
+            <el-option
88
+              v-for="item in checkList"
89
+              :key="item.id"
90
+              :label="item.name"
91
+              :value="item.id"
92
+            >
93
+            </el-option>
94
+          </el-select>
95
+        </div>
79 96
       </div>
80 97
 
81 98
       <div class="cell clearfix">
@@ -530,6 +547,7 @@ export default {
530 547
       ],
531 548
       page: 1,
532 549
       limit: 5,
550
+      check_id: 0,
533 551
       checked: false,
534 552
       total: 0,
535 553
       pageTotal: 0,
@@ -591,6 +609,30 @@ export default {
591 609
     };
592 610
   },
593 611
   methods: {
612
+      changeTypeName() {
613
+      this.getlist();
614
+    },
615
+    getlist() {
616
+      var params = {
617
+        check_id: this.check_id,
618
+        start_time: this.start_time,
619
+        end_time: this.end_time,
620
+        keyword: this.keywords,
621
+        page: this.page,
622
+        limit: this.limit,
623
+      };
624
+      getAllSecondOrderList(params).then((response) => {
625
+        if (response.data.state == 1) {
626
+          var list = response.data.data.list;
627
+          this.tableList = list;
628
+          var total = response.data.data.total;
629
+          this.total = total;
630
+          this.houseList = response.data.data.houseList;
631
+          this.doctorList = response.data.data.doctorList;
632
+        }
633
+      });
634
+    },
635
+
594 636
     search: function () {
595 637
       const Params = {
596 638
         page: this.page,

+ 42 - 0
src/xt_pages/stock/stockInOrder.vue Целия файл

@@ -71,6 +71,24 @@
71 71
             @change="endTimeChange"
72 72
           ></el-date-picker>
73 73
         </div>
74
+        <div style="margin-left: 10px">
75
+          <span>审核状态:</span>
76
+          <el-select
77
+            v-model="check_id"
78
+            style="width: 140px; margin-right: 10px"
79
+            placeholder="请选择"
80
+            @change="changeTypeName"
81
+          >
82
+            <el-option
83
+              v-for="item in checkList"
84
+              :key="item.id"
85
+              :label="item.name"
86
+              :value="item.id"
87
+            >
88
+            </el-option>
89
+          </el-select>
90
+        </div>
91
+ 
74 92
       </div>
75 93
 
76 94
 
@@ -811,11 +829,35 @@ export default {
811 829
       checkAllStatus:false,
812 830
       list:[],
813 831
       storehouse_id:0,
832
+      check_id: 0,
814 833
     };
815 834
 
816 835
 
817 836
   },
818 837
   methods: {
838
+          changeTypeName() {
839
+      this.getlist();
840
+    },
841
+    getlist() {
842
+      var params = {
843
+        check_id: this.check_id,
844
+        start_time: this.start_time,
845
+        end_time: this.end_time,
846
+        keyword: this.keywords,
847
+        page: this.page,
848
+        limit: this.limit,
849
+      };
850
+      getAllSecondOrderList(params).then((response) => {
851
+        if (response.data.state == 1) {
852
+          var list = response.data.data.list;
853
+          this.tableList = list;
854
+          var total = response.data.data.total;
855
+          this.total = total;
856
+          this.houseList = response.data.data.houseList;
857
+          this.doctorList = response.data.data.doctorList;
858
+        }
859
+      });
860
+    },
819 861
      changeCheck() {
820 862
       this.$refs.multipleTable.clearSelection();
821 863
       if (this.checkAllStatus) {

Файловите разлики са ограничени, защото са твърде много
+ 1215 - 999
src/xt_pages/stock/stockOutOrder.vue


+ 468 - 470
src/xt_pages/stock/testOrderQuery.vue Целия файл

@@ -1,494 +1,492 @@
1
-<template>
2
-  <div class="main-contain">
3
-    <div class="position">
4
-      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
-    </div>
6
-    <div class="app-container">
7
-      <div
8
-        style="
9
-          justify-content: space-between;
10
-          margin: 0px 0 12px 0;
11
-          display: flex;
12
-          align-items: center;
13
-        "
14
-      >
15
-        <div>
16
-          <el-date-picker
17
-            size="small"
18
-            v-model="start_time"
19
-            prefix-icon="el-icon-date"
20
-            :editable="false"
21
-            style="width: 196px"
22
-            type="date"
23
-            placeholder="选择日期时间"
24
-            align="right"
25
-            format="yyyy-MM-dd"
26
-            value-format="yyyy-MM-dd"
27
-            @change="startTimeChange"
28
-          ></el-date-picker
29
-          >-
30
-          <el-date-picker
31
-            size="small"
32
-            v-model="end_time"
33
-            prefix-icon="el-icon-date"
34
-            :editable="false"
35
-            style="width: 196px"
36
-            type="date"
37
-            placeholder="选择日期时间"
38
-            align="right"
39
-            format="yyyy-MM-dd"
40
-            value-format="yyyy-MM-dd"
41
-            @change="endTimeChange"
42
-          ></el-date-picker>
43
-          <span>审核状态:</span>
44
-          <el-select
45
-            v-model="check_id"
46
-            style="width: 140px; margin-right: 10px"
47
-            placeholder="请选择"
48
-            @change="changeTypeName"
49
-          >
50
-            <el-option
51
-              v-for="item in checkList"
52
-              :key="item.id"
53
-              :label="item.name"
54
-              :value="item.id"
55
-            >
56
-            </el-option>
57
-          </el-select>
58
-          <el-input
59
-            size="small"
60
-            style="width: 200px; margin-left: 10px"
61
-            class="filter-item"
62
-            v-model.trim="keywords"
63
-            placeholder="单据编号,仓库名称"
64
-          />
65
-          <el-button
66
-            size="small"
67
-            class="filter-item"
68
-            type="primary"
69
-            icon="el-icon-search"
70
-            @click="search"
71
-            >搜索</el-button
72
-          >
73
-        </div>
74
-        <div>
75
-          <el-button size="small" type="primary" @click="toAdd">新增</el-button>
76
-        </div>
77
-      </div>
1
+// <template>
2
+//   <div class="main-contain">
3
+//     <div class="position">
4
+//       <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+//     </div>
6
+//     <div class="app-container">
7
+//       <div
8
+//         style="
9
+//           justify-content: space-between;
10
+//           margin: 0px 0 12px 0;
11
+//           display: flex;
12
+//           align-items: center;
13
+//         "
14
+//       >
15
+//         <div>
16
+//           <el-date-picker
17
+//             size="small"
18
+//             v-model="start_time"
19
+//             prefix-icon="el-icon-date"
20
+//             :editable="false"
21
+//             style="width: 196px"
22
+//             type="date"
23
+//             placeholder="选择日期时间"
24
+//             align="right"
25
+//             format="yyyy-MM-dd"
26
+//             value-format="yyyy-MM-dd"
27
+//             @change="startTimeChange"
28
+//           ></el-date-picker
29
+//           >-
30
+//           <el-date-picker
31
+//             size="small"
32
+//             v-model="end_time"
33
+//             prefix-icon="el-icon-date"
34
+//             :editable="false"
35
+//             style="width: 196px"
36
+//             type="date"
37
+//             placeholder="选择日期时间"
38
+//             align="right"
39
+//             format="yyyy-MM-dd"
40
+//             value-format="yyyy-MM-dd"
41
+//             @change="endTimeChange"
42
+//           ></el-date-picker>
43
+//           <span>审核状态:</span>
44
+//           <el-select
45
+//             v-model="check_id"
46
+//             style="width: 140px; margin-right: 10px"
47
+//             placeholder="请选择"
48
+//             @change="changeTypeName"
49
+//           >
50
+//             <el-option
51
+//               v-for="item in checkList"
52
+//               :key="item.id"
53
+//               :label="item.name"
54
+//               :value="item.id"
55
+//             >
56
+//             </el-option>
57
+//           </el-select>
58
+//           <el-input
59
+//             size="small"
60
+//             style="width: 200px; margin-left: 10px"
61
+//             class="filter-item"
62
+//             v-model.trim="keywords"
63
+//             placeholder="单据编号,仓库名称"
64
+//           />
65
+//           <el-button
66
+//             size="small"
67
+//             class="filter-item"
68
+//             type="primary"
69
+//             icon="el-icon-search"
70
+//             @click="search"
71
+//             >搜索</el-button
72
+//           >
73
+//         </div>
74
+//         <div>
75
+//           <el-button size="small" type="primary" @click="toAdd">新增</el-button>
76
+//         </div>
77
+//       </div>
78 78
 
79
-      <el-table
80
-        :row-style="{ color: '#303133' }"
81
-        :header-cell-style="{
82
-          backgroundColor: 'rgb(245, 247, 250)',
83
-          color: '#606266',
84
-        }"
85
-        :data="tableList"
86
-        :class="signAndWeighBoxPatients"
87
-        border
88
-      >
89
-        <el-table-column label="单据编号" align="center">
90
-          <template slot-scope="scope">
91
-            {{scope.row.second_order_number}}
92
-          </template>
93
-        </el-table-column>
94
-        <el-table-column label="单据日期" align="center">
95
-          <template slot-scope="scope">
96
-            {{getTime(scope.row.record_date)}}
97
-          </template>
98
-        </el-table-column>
79
+//       <el-table
80
+//         :row-style="{ color: '#303133' }"
81
+//         :header-cell-style="{
82
+//           backgroundColor: 'rgb(245, 247, 250)',
83
+//           color: '#606266',
84
+//         }"
85
+//         :data="tableList"
86
+//         :class="signAndWeighBoxPatients"
87
+//         border
88
+//       >
89
+//         <el-table-column label="单据编号" align="center">
90
+//           <template slot-scope="scope">
91
+//             {{scope.row.second_order_number}}
92
+//           </template>
93
+//         </el-table-column>
94
+//         <el-table-column label="单据日期" align="center">
95
+//           <template slot-scope="scope">
96
+//             {{getTime(scope.row.record_date)}}
97
+//           </template>
98
+//         </el-table-column>
99 99
        
100
-        <el-table-column label="调出仓库" align="center" width="150">
101
-          <template slot-scope="scope">
102
-            {{getHouseName(scope.row.storehouse_out_id)}}
103
-          </template>
104
-        </el-table-column>
105
-        <el-table-column label="调入仓库" align="center">
106
-          <template slot-scope="scope">
107
-            {{getHouseName(scope.row.storehouse_in_id)}}
108
-          </template>
109
-        </el-table-column>
100
+//         <el-table-column label="调出仓库" align="center" width="150">
101
+//           <template slot-scope="scope">
102
+//             {{getHouseName(scope.row.storehouse_out_id)}}
103
+//           </template>
104
+//         </el-table-column>
105
+//         <el-table-column label="调入仓库" align="center">
106
+//           <template slot-scope="scope">
107
+//             {{getHouseName(scope.row.storehouse_in_id)}}
108
+//           </template>
109
+//         </el-table-column>
110 110
 
111
-        <el-table-column label="制单人" align="center">
112
-          <template slot-scope="scope">
113
-            {{getDocName(scope.row.creater)}}
114
-          </template>
115
-        </el-table-column>
116
-        <el-table-column label="审核人" align="center">
117
-          <template slot-scope="scope">
118
-           {{getDocName(scope.row.checker)}}
119
-          </template>
120
-        </el-table-column>
111
+//         <el-table-column label="制单人" align="center">
112
+//           <template slot-scope="scope">
113
+//             {{getDocName(scope.row.creater)}}
114
+//           </template>
115
+//         </el-table-column>
116
+//         <el-table-column label="审核人" align="center">
117
+//           <template slot-scope="scope">
118
+//            {{getDocName(scope.row.checker)}}
119
+//           </template>
120
+//         </el-table-column>
121 121
 
122
-        <el-table-column label="审核时间" align="center">
123
-          <template slot-scope="scope">
124
-          {{getTime(scope.row.checker)}}
125
-          </template>
126
-        </el-table-column>
122
+//         <el-table-column label="审核时间" align="center">
123
+//           <template slot-scope="scope">
124
+//           {{getTime(scope.row.checker)}}
125
+//           </template>
126
+//         </el-table-column>
127 127
 
128 128
     
129
-        <el-table-column label="操作" align="center" width="300px">
130
-          <template slot-scope="scope">
131
-            <el-button
132
-              icon="el-icon-edit-outline"
133
-              size="small"
134
-              type="primary"
135
-              @click="toClick(scope.row.id)"
136
-              >编辑
137
-            </el-button>
138
-             <el-button
139
-              icon="el-icon-edit-outline"
140
-              size="small"
141
-              type="primary"
142
-              @click="toDetail(scope.row.id)"
143
-              >详情
144
-            </el-button>
145
-            <el-button
146
-              icon="el-icon-delete"
147
-              size="small"
148
-              type="danger"
149
-              @click="toDelete(scope.row, scope.$index)"
150
-              >删除
151
-            </el-button>
152
-          </template>
153
-        </el-table-column>
154
-      </el-table>
155
-      <el-pagination
156
-        @size-change="handleSizeChange"
157
-        @current-change="handleCurrentChange"
158
-        :page-sizes="[10, 50, 100, 200, 500, 1000]"
159
-        :page-size="10"
160
-        background
161
-        align="right"
162
-        style="margin-top: 20px"
163
-        layout="total, sizes, prev, pager, next, jumper"
164
-        :total="total"
165
-      >
166
-      </el-pagination>
167
-    </div>
168
-  </div>
169
-</template>
129
+//         <el-table-column label="操作" align="center" width="300px">
130
+//           <template slot-scope="scope">
131
+//             <el-button
132
+//               icon="el-icon-edit-outline"
133
+//               size="small"
134
+//               type="primary"
135
+//               @click="toClick(scope.row.id)"
136
+//               >编辑
137
+//             </el-button>
138
+//              <el-button
139
+//               icon="el-icon-edit-outline"
140
+//               size="small"
141
+//               type="primary"
142
+//               @click="toDetail(scope.row.id)"
143
+//               >详情
144
+//             </el-button>
145
+//             <el-button
146
+//               icon="el-icon-delete"
147
+//               size="small"
148
+//               type="danger"
149
+//               @click="toDelete(scope.row, scope.$index)"
150
+//               >删除
151
+//             </el-button>
152
+//           </template>
153
+//         </el-table-column>
154
+//       </el-table>
155
+//       <el-pagination
156
+//         @size-change="handleSizeChange"
157
+//         @current-change="handleCurrentChange"
158
+//         :page-sizes="[10, 50, 100, 200, 500, 1000]"
159
+//         :page-size="10"
160
+//         background
161
+//         align="right"
162
+//         style="margin-top: 20px"
163
+//         layout="total, sizes, prev, pager, next, jumper"
164
+//         :total="total"
165
+//       >
166
+//       </el-pagination>
167
+//     </div>
168
+//   </div>
169
+// </template>
170 170
 
171
-<script>
172
-import BreadCrumb from "@/xt_pages/components/bread-crumb";
171
+// <script>
172
+// import BreadCrumb from "@/xt_pages/components/bread-crumb";
173 173
 
174
-import {
175
-  getAllSecondOrderList
176
-} from "@/api/seconde";
177
-import { uParseTime } from "@/utils/tools";
178
-export default {
179
-  name: "stockIn",
180
-  components: {},
181
-  components: {
182
-    BreadCrumb,
183
-  },
184
-  data() {
185
-    return {
186
-      isActive: false,
187
-      Color_txt: true,
188
-      crumbs: [
189
-        { path: false, name: "采购管理" },
190
-        { path: "/supply/query", name: "采购订单" },
191
-      ],
192
-      keywords: "",
193
-      total: 0,
194
-      multipleSelection: [],
195
-      signAndWeighBoxPatients: "sign-and-weigh-box-patients",
196
-      start_time: "",
197
-      end_time: "",
198
-      page: 1,
199
-      limit: 10,
200
-      goodType: [],
201
-      goodInfo: [],
202
-      org_id: 0,
203
-      types: [],
204
-      tableList: [{}],
205
-      type_name: "",
206
-      checkList: [
207
-        { id: 0, name: "请选择" },
208
-        { id: 1, name: "已审核" },
209
-        { id: 2, name: "未审核" },
210
-      ],
211
-      supplyList: [],
212
-      check_id: 0,
213
-      doctorList: [],
214
-      houseList:[],
215
-    };
216
-  },
217
-  methods: {
218
-    toAdd() {
219
-      this.$router.push({ path: "/purchase/order/add" });
220
-    },
221
-    changeTypeName() {
222
-      this.getlist();
223
-    },
224
-    startTimeChange() {
225
-      this.getlist();
226
-    },
227
-    endTimeChange() {
228
-      this.getlist();
229
-    },
230
-    search() {
231
-      this.getlist();
232
-    },
233
-    handleSizeChange(val) {
234
-      this.limit = val;
235
-      this.getlist();
236
-    },
237
-    handleCurrentChange(val) {
238
-      this.page = val;
239
-      this.getlist();
240
-    },
241
-    getTimes(time) {
242
-      if (time === "") {
243
-        return "";
244
-      }
245
-      return uParseTime(time, "{y}-{m}-{d}");
246
-    },
247
-    getlist() {
248
-      var params = {
249
-        check_id: this.check_id,
250
-        start_time: this.start_time,
251
-        end_time: this.end_time,
252
-        keyword: this.keywords,
253
-        page: this.page,
254
-        limit: this.limit,
255
-      };
256
-      console.log("params2332232332", params);
257
-      getAllSecondOrderList(params).then((response) => {
258
-        if (response.data.state == 1) {
259
-          var list = response.data.data.list;
260
-          console.log("list2323322332323232232323",list)
261
-          this.tableList = list;
262
-          var total = response.data.data.total;
263
-          this.total = total;
264
-          this.houseList = response.data.data.houseList
265
-          this.doctorList = response.data.data.doctorList
266
-        }
267
-      });
268
-    },
269
-    getName(id) {
270
-      var name = "";
271
-      for (let i = 0; i < this.supplyList.length; i++) {
272
-        if (id == this.supplyList[i].id) {
273
-          name = this.supplyList[i].supplier_name;
274
-        }
275
-      }
276
-      return name;
277
-    },
278
-    getDocName(id) {
279
-      var user_name = "";
280
-      for (let i = 0; i < this.doctorList.length; i++) {
281
-        if (id == this.doctorList[i].admin_user_id) {
282
-          user_name = this.doctorList[i].user_name;
283
-        }
284
-      }
285
-      return user_name;
286
-    },
287
-    getAllBuyPrice(arr) {
288
-      var buy_price = 0;
289
-      if (arr != undefined && arr.length > 0) {
290
-        for (let i = 0; i < arr.length; i++) {
291
-          buy_price += arr[i].count * arr[i].price;
292
-        }
293
-      }
294
-      return buy_price.toFixed(2);
295
-    },
296
-    getAllCount(arr) {
297
-      var count = 0;
298
-      if (arr != undefined && arr.length > 0) {
299
-        for (let i = 0; i < arr.length; i++) {
300
-          count += parseInt(arr[i].count);
301
-        }
302
-      }
303
-      if (count == 0) {
304
-        return "";
305
-      }
306
-      if (count > 0) {
307
-        return count;
308
-      }
309
-    },
310
-    toClick(id) {
311
-      window.sessionStorage.setItem('purchase_start_time',this.start_time)
312
-      window.sessionStorage.setItem('purchase_end_time',this.end_time)
313
-      this.$router.push({ path: "/stock/in/test/edit?id=" + id });
314
-    },
315
-    toDetail(id){
316
-      this.$router.push({ path: "/stock/in/test/detail?id=" + id });
317
-    },
318
-    toDelete(val, index) {
319
-      if (val.is_check == 1) {
320
-        this.$message.error("已审核单据,不能删除!");
321
-        return false;
322
-      }
323
-      if (val.orderOut.length > 0) {
324
-        this.$message.error("已关联单据,不能删除!");
325
-        return false;
326
-      }
327
-      this.$confirm("确认删除吗?", "删除", {
328
-        confirmButtonText: "确 定",
329
-        cancelButtonText: "取 消",
330
-        type: "warning",
331
-      }) .then(() => {
332
-          deletePurchaseOrder(val.id).then((response) => {
333
-            if (response.data.state == 1) {
334
-              var msg = response.data.data.msg;
335
-              this.tableList.splice(index, 1);
336
-              this.getlist()
337
-              this.$message.success("删除成功");
338
-            } else {
339
-              this.$message.error("删除失败");
340
-            }
341
-          });
342
-        }).catch(() => {});
343
-    },
344
-    // 动态改变表格样式
345
-    Color_Change() {
346
-      this.Color_txt = true;
347
-      console.log(this.Color_txt, "op");
348
-    },
174
+// import {
175
+//   getAllSecondOrderList
176
+// } from "@/api/seconde";
177
+// import { uParseTime } from "@/utils/tools";
178
+// export default {
179
+//   name: "stockIn",
180
+//   components: {},
181
+//   components: {
182
+//     BreadCrumb,
183
+//   },
184
+//   data() {
185
+//     return {
186
+//       isActive: false,
187
+//       Color_txt: true,
188
+//       crumbs: [
189
+//         { path: false, name: "采购管理" },
190
+//         { path: "/supply/query", name: "采购订单" },
191
+//       ],
192
+//       keywords: "",
193
+//       total: 0,
194
+//       multipleSelection: [],
195
+//       signAndWeighBoxPatients: "sign-and-weigh-box-patients",
196
+//       start_time: "",
197
+//       end_time: "",
198
+//       page: 1,
199
+//       limit: 10,
200
+//       goodType: [],
201
+//       goodInfo: [],
202
+//       org_id: 0,
203
+//       types: [],
204
+//       tableList: [{}],
205
+//       type_name: "",
206
+//       checkList: [
207
+//         { id: 0, name: "请选择" },
208
+//         { id: 1, name: "已审核" },
209
+//         { id: 2, name: "未审核" },
210
+//       ],
211
+//       supplyList: [],
212
+//       check_id: 0,
213
+//       doctorList: [],
214
+//       houseList:[],
215
+//     };
216
+//   },
217
+//   methods: {
218
+//     toAdd() {
219
+//       this.$router.push({ path: "/purchase/order/add" });
220
+//     },
221
+//     changeTypeName() {
222
+//       this.getlist();
223
+//     },
224
+//     startTimeChange() {
225
+//       this.getlist();
226
+//     },
227
+//     endTimeChange() {
228
+//       this.getlist();
229
+//     },
230
+//     search() {
231
+//       this.getlist();
232
+//     },
233
+//     handleSizeChange(val) {
234
+//       this.limit = val;
235
+//       this.getlist();
236
+//     },
237
+//     handleCurrentChange(val) {
238
+//       this.page = val;
239
+//       this.getlist();
240
+//     },
241
+//     getTimes(time) {
242
+//       if (time === "") {
243
+//         return "";
244
+//       }
245
+//       return uParseTime(time, "{y}-{m}-{d}");
246
+//     },
247
+//     getlist() {
248
+//       var params = {
249
+//         check_id: this.check_id,
250
+//         start_time: this.start_time,
251
+//         end_time: this.end_time,
252
+//         keyword: this.keywords,
253
+//         page: this.page,
254
+//         limit: this.limit,
255
+//       };
256
+//       getAllSecondOrderList(params).then((response) => {
257
+//         if (response.data.state == 1) {
258
+//           var list = response.data.data.list;
259
+//           this.tableList = list;
260
+//           var total = response.data.data.total;
261
+//           this.total = total;
262
+//           this.houseList = response.data.data.houseList
263
+//           this.doctorList = response.data.data.doctorList
264
+//         }
265
+//       });
266
+//     },
267
+//     getName(id) {
268
+//       var name = "";
269
+//       for (let i = 0; i < this.supplyList.length; i++) {
270
+//         if (id == this.supplyList[i].id) {
271
+//           name = this.supplyList[i].supplier_name;
272
+//         }
273
+//       }
274
+//       return name;
275
+//     },
276
+//     getDocName(id) {
277
+//       var user_name = "";
278
+//       for (let i = 0; i < this.doctorList.length; i++) {
279
+//         if (id == this.doctorList[i].admin_user_id) {
280
+//           user_name = this.doctorList[i].user_name;
281
+//         }
282
+//       }
283
+//       return user_name;
284
+//     },
285
+//     getAllBuyPrice(arr) {
286
+//       var buy_price = 0;
287
+//       if (arr != undefined && arr.length > 0) {
288
+//         for (let i = 0; i < arr.length; i++) {
289
+//           buy_price += arr[i].count * arr[i].price;
290
+//         }
291
+//       }
292
+//       return buy_price.toFixed(2);
293
+//     },
294
+//     getAllCount(arr) {
295
+//       var count = 0;
296
+//       if (arr != undefined && arr.length > 0) {
297
+//         for (let i = 0; i < arr.length; i++) {
298
+//           count += parseInt(arr[i].count);
299
+//         }
300
+//       }
301
+//       if (count == 0) {
302
+//         return "";
303
+//       }
304
+//       if (count > 0) {
305
+//         return count;
306
+//       }
307
+//     },
308
+//     toClick(id) {
309
+//       window.sessionStorage.setItem('purchase_start_time',this.start_time)
310
+//       window.sessionStorage.setItem('purchase_end_time',this.end_time)
311
+//       this.$router.push({ path: "/stock/in/test/edit?id=" + id });
312
+//     },
313
+//     toDetail(id){
314
+//       this.$router.push({ path: "/stock/in/test/detail?id=" + id });
315
+//     },
316
+//     toDelete(val, index) {
317
+//       if (val.is_check == 1) {
318
+//         this.$message.error("已审核单据,不能删除!");
319
+//         return false;
320
+//       }
321
+//       if (val.orderOut.length > 0) {
322
+//         this.$message.error("已关联单据,不能删除!");
323
+//         return false;
324
+//       }
325
+//       this.$confirm("确认删除吗?", "删除", {
326
+//         confirmButtonText: "确 定",
327
+//         cancelButtonText: "取 消",
328
+//         type: "warning",
329
+//       }) .then(() => {
330
+//           deletePurchaseOrder(val.id).then((response) => {
331
+//             if (response.data.state == 1) {
332
+//               var msg = response.data.data.msg;
333
+//               this.tableList.splice(index, 1);
334
+//               this.getlist()
335
+//               this.$message.success("删除成功");
336
+//             } else {
337
+//               this.$message.error("删除失败");
338
+//             }
339
+//           });
340
+//         }).catch(() => {});
341
+//     },
342
+//     // 动态改变表格样式
343
+//     Color_Change() {
344
+//       this.Color_txt = true;
345
+//       console.log(this.Color_txt, "op");
346
+//     },
349 347
 
350
-    Color_Changeleave() {
351
-      this.Color_txt = false;
352
-      console.log(this.Color_txt, "false");
353
-    },
354
-    getTime(time) {
355
-      if (time === '') {
356
-      return ''
357
-      }
358
-      return uParseTime(time, '{y}-{m}-{d}')
359
-     },
360
-    getHouseName(id){
361
-      var storehouse_name = ""
362
-      for(let i=0;i<this.houseList.length;i++){
363
-         if(id == this.houseList[i].id){
364
-           storehouse_name = this.houseList[i].storehouse_name
365
-         }
366
-      }
367
-      return storehouse_name
368
-    },
369
-   getDocName(id){
370
-      var user_name = ""
371
-      for(let i=0;i<this.doctorList.length;i++){
372
-        if(id == this.doctorList[i].admin_user_id){
373
-          user_name = this.doctorList[i].user_name
374
-        }
375
-      }
376
-      return user_name
377
-     },
378
-  },
379
-  created() {
348
+//     Color_Changeleave() {
349
+//       this.Color_txt = false;
350
+//       console.log(this.Color_txt, "false");
351
+//     },
352
+//     getTime(time) {
353
+//       if (time === '') {
354
+//       return ''
355
+//       }
356
+//       return uParseTime(time, '{y}-{m}-{d}')
357
+//      },
358
+//     getHouseName(id){
359
+//       var storehouse_name = ""
360
+//       for(let i=0;i<this.houseList.length;i++){
361
+//          if(id == this.houseList[i].id){
362
+//            storehouse_name = this.houseList[i].storehouse_name
363
+//          }
364
+//       }
365
+//       return storehouse_name
366
+//     },
367
+//    getDocName(id){
368
+//       var user_name = ""
369
+//       for(let i=0;i<this.doctorList.length;i++){
370
+//         if(id == this.doctorList[i].admin_user_id){
371
+//           user_name = this.doctorList[i].user_name
372
+//         }
373
+//       }
374
+//       return user_name
375
+//      },
376
+//   },
377
+//   created() {
380 378
  
381
-    var now = new Date(); //当前日期
382
-    var nowMonth = now.getMonth(); //当前月
383
-    var nowYear = now.getFullYear(); //当前年
384
-    //本月的开始时间
385
-    var monthStartDate = new Date(nowYear, nowMonth, 1);
386
-    this.start_time = this.getTimes(monthStartDate);
387
-    this.end_time = this.getTimes(new Date());
379
+//     var now = new Date(); //当前日期
380
+//     var nowMonth = now.getMonth(); //当前月
381
+//     var nowYear = now.getFullYear(); //当前年
382
+//     //本月的开始时间
383
+//     var monthStartDate = new Date(nowYear, nowMonth, 1);
384
+//     this.start_time = this.getTimes(monthStartDate);
385
+//     this.end_time = this.getTimes(new Date());
388 386
 
389
-    this.org_id = this.$store.getters.xt_user.org_id;
390
-    var start_time =  window.sessionStorage.getItem('purchase_start_time')
387
+//     this.org_id = this.$store.getters.xt_user.org_id;
388
+//     var start_time =  window.sessionStorage.getItem('purchase_start_time')
391 389
     
392
-    var end_time =  window.sessionStorage.getItem('purchase_end_time')
390
+//     var end_time =  window.sessionStorage.getItem('purchase_end_time')
393 391
    
394
-    if(start_time !=null){
395
-      this.start_time = ""
396
-      this.start_time = start_time
397
-    }
398
-    if(end_time!=null){
399
-      this.end_time = ""
400
-      this.end_time = end_time
401
-    }
402
-    window.sessionStorage.removeItem('purchase_start_time')
403
-    window.sessionStorage.removeItem('purchase_end_time')
392
+//     if(start_time !=null){
393
+//       this.start_time = ""
394
+//       this.start_time = start_time
395
+//     }
396
+//     if(end_time!=null){
397
+//       this.end_time = ""
398
+//       this.end_time = end_time
399
+//     }
400
+//     window.sessionStorage.removeItem('purchase_start_time')
401
+//     window.sessionStorage.removeItem('purchase_end_time')
404 402
    
405 403
 
406
-    this.getlist();
404
+//     this.getlist();
407 405
    
408
-  },
409
-};
410
-</script>
411
-<style lang="scss">
412
-.cluster-rs {
413
-  text-align: center;
414
-}
415
-.annotation-rs {
416
-  width: 100%;
417
-  height: 100%;
418
-  border: none;
419
-  td {
420
-    width: 155px;
421
-    padding: 5px;
422
-    border-right: none;
423
-    text-align: center;
424
-    vertical-align: middle;
425
-  }
426
-}
427
-tr:last-child {
428
-  td {
429
-    border-bottom: none;
430
-  }
431
-}
432
-</style>
406
+//   },
407
+// };
408
+// </script>
409
+// <style lang="scss" scoped>
410
+// .cluster-rs {
411
+//   text-align: center;
412
+// }
413
+// .annotation-rs {
414
+//   width: 100%;
415
+//   height: 100%;
416
+//   border: none;
417
+//   td {
418
+//     width: 155px;
419
+//     padding: 5px;
420
+//     border-right: none;
421
+//     text-align: center;
422
+//     vertical-align: middle;
423
+//   }
424
+// }
425
+// tr:last-child {
426
+//   td {
427
+//     border-bottom: none;
428
+//   }
429
+// }
430
+// </style>
433 431
 
434
-<style rel="stylesheet/css" lang="scss" scoped>
435
-.information {
436
-  border: 1px #dcdfe6 solid;
437
-  padding: 30px 20px 30px 20px;
432
+// <style rel="stylesheet/css" lang="scss" scoped>
433
+// .information {
434
+//   border: 1px #dcdfe6 solid;
435
+//   padding: 30px 20px 30px 20px;
438 436
 
439
-  .border {
440
-    border-bottom: 1px #dcdfe6 solid;
441
-    margin: 0px 0 20px 0;
442
-  }
443
-}
437
+//   .border {
438
+//     border-bottom: 1px #dcdfe6 solid;
439
+//     margin: 0px 0 20px 0;
440
+//   }
441
+// }
444 442
 
445
-.title {
446
-  background: #409eff;
447
-  height: 44px;
448
-  line-height: 44px;
449
-  padding: 0 0 0 10px;
450
-  color: #fff;
451
-  margin: 0 0 10px 0;
452
-}
443
+// .title {
444
+//   background: #409eff;
445
+//   height: 44px;
446
+//   line-height: 44px;
447
+//   padding: 0 0 0 10px;
448
+//   color: #fff;
449
+//   margin: 0 0 10px 0;
450
+// }
453 451
 
454
-.edit_separater {
455
-  border-top: 1px solid rgb(233, 233, 233);
456
-  margin-top: 15px;
457
-  margin-bottom: 15px;
458
-}
459
-/deep/ .el-table__body-wrapper::-webkit-scrollbar {
460
-  width: 10px;
461
-  height: 10px;
462
-}
463
-</style>
452
+// .edit_separater {
453
+//   border-top: 1px solid rgb(233, 233, 233);
454
+//   margin-top: 15px;
455
+//   margin-bottom: 15px;
456
+// }
457
+// /deep/ .el-table__body-wrapper::-webkit-scrollbar {
458
+//   width: 10px;
459
+//   height: 10px;
460
+// }
461
+// </style>
464 462
 
465
-<style>
466
-.sign-and-weigh-box .sign-and-weigh-box-patients .cell {
467
-  font-size: 12px;
468
-}
463
+// <style scoped>
464
+// .sign-and-weigh-box .sign-and-weigh-box-patients .cell {
465
+//   font-size: 12px;
466
+// }
469 467
 
470
-.sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
471
-  background: #6fb5fa;
472
-}
468
+// .sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
469
+//   background: #6fb5fa;
470
+// }
473 471
 
474
-.count {
475
-  color: #bd2c00;
476
-}
477
-.el-table td,
478
-.el-table th.is-leaf,
479
-.el-table--border,
480
-.el-table--group {
481
-  border-color: #d0d3da;
482
-}
483
-.el-table--border::after,
484
-.el-table--group::after,
485
-.el-table::before {
486
-  background-color: #d0d3da;
487
-}
472
+// .count {
473
+//   color: #bd2c00;
474
+// }
475
+// .el-table td,
476
+// .el-table th.is-leaf,
477
+// .el-table--border,
478
+// .el-table--group {
479
+//   border-color: #d0d3da;
480
+// }
481
+// .el-table--border::after,
482
+// .el-table--group::after,
483
+// .el-table::before {
484
+//   background-color: #d0d3da;
485
+// }
488 486
 
489
-.color {
490
-  background: none !important;
491
-  display: flex;
492
-  flex-direction: column;
493
-}
494
-</style>
487
+// .color {
488
+//   background: none !important;
489
+//   display: flex;
490
+//   flex-direction: column;
491
+// }
492
+// </style>