csx před 6 roky
rodič
revize
7731ab5270

+ 8 - 8
src/api/stock.js Zobrazit soubor

@@ -385,9 +385,9 @@ export function DeleteWarehouseInfoItem(params) {
385 385
   })
386 386
 }
387 387
 
388
-export function EditWarehouse(params, warehousing_time, id) {
388
+export function EditWarehouse(params, warehousing_time, id,type) {
389 389
   return request({
390
-    url: '/api/warehouse/edit?warehousing_time=' + warehousing_time + '&id=' + id,
390
+    url: '/api/warehouse/edit?warehousing_time=' + warehousing_time + '&id=' + id+"&type="+type,
391 391
     method: 'post',
392 392
     data: params
393 393
   })
@@ -433,9 +433,9 @@ export function deleteSalesReturnInfo(params) {
433 433
   })
434 434
 }
435 435
 
436
-export function editSalesReturnInfo(params, return_time, id) {
436
+export function editSalesReturnInfo(params, return_time, id,type) {
437 437
   return request({
438
-    url: '/api/salesreturn/edit?return_time=' + return_time + '&id=' + id,
438
+    url: '/api/salesreturn/edit?return_time=' + return_time + '&id=' + id+"&type="+type,
439 439
     method: 'post',
440 440
     data: params
441 441
   })
@@ -473,9 +473,9 @@ export function getWarehouseOutInfo(params) {
473 473
   })
474 474
 }
475 475
 
476
-export function editWarehouseoutInfo(params, warehouse_out_time, id) {
476
+export function editWarehouseoutInfo(params, warehouse_out_time, id,type) {
477 477
   return request({
478
-    url: '/api/warehouseout/edit?warehouse_out_time=' + warehouse_out_time + '&id=' + id,
478
+    url: '/api/warehouseout/edit?warehouse_out_time=' + warehouse_out_time + '&id=' + id+"&type="+type,
479 479
     method: 'post',
480 480
     data: params
481 481
   })
@@ -489,9 +489,9 @@ export function getCancelStockList(params) {
489 489
   })
490 490
 }
491 491
 
492
-export function editCancelStockInfo(params, cancel_stock_time, id) {
492
+export function editCancelStockInfo(params, cancel_stock_time, id,type) {
493 493
   return request({
494
-    url: '/api/cancelstockinfo/edit?cancel_time=' + cancel_stock_time + '&id=' + id,
494
+    url: '/api/cancelstockinfo/edit?cancel_time=' + cancel_stock_time + '&id=' + id+"&type="+type,
495 495
     method: 'post',
496 496
     data: params
497 497
   })

+ 1 - 1
src/xt_pages/data/components/tableson.vue Zobrazit soubor

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="">
3 3
     <div class="filter-container">
4
-      <el-button style="float: right;margin-right: 20px" class="filter-item" size="small" :disabled="addState"  @click="handleCreate" type="primary" icon="el-icon-circle-plus-outline">{{$t('table.add')}}</el-button>
4
+      <el-button style="float: right" class="filter-item" size="small" :disabled="addState"  @click="handleCreate" type="primary" icon="el-icon-circle-plus-outline">{{$t('table.add')}}</el-button>
5 5
     </div>
6 6
 
7 7
     <el-table :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}" :key='tableKey' :data="list" v-loading="listLoading" border fit highlight-current-row

+ 8 - 31
src/xt_pages/stock/Dialog/goodInfoDailog.vue Zobrazit soubor

@@ -41,61 +41,38 @@
41 41
       </el-row>
42 42
 
43 43
       <el-row>
44
-        <el-col :span="8">
45
-          <el-form-item label="生产厂家" prop="dealer">
46
-            <el-select  v-model="form.manufacturer" placeholder="请选择">
47
-              <el-option
48
-                v-for="item in form.manufacturers"
49
-                :key="item.id"
50
-                :label="item.manufacturer_name"
51
-                :value="item.id">
52
-              </el-option>
53
-            </el-select>
54
-          </el-form-item>
55
-        </el-col>
56
-
57
-        <el-col :span="8">
58
-          <el-form-item label="经销商" prop="manufacturer">
59
-            <el-select  v-model="form.dealer" placeholder="请选择">
60
-              <el-option
61
-                v-for="item in form.dealers"
62
-                :key="item.id"
63
-                :label="item.dealer_name"
64
-                :value="item.id">
65
-              </el-option>
66
-            </el-select>
67
-          </el-form-item>
68
-        </el-col>
69 44
 
70 45
         <el-col :span="8">
71 46
           <el-form-item label="进货价" prop="buy_price">
72 47
             <el-input  type="number" v-model="form.buy_price"></el-input>
73 48
           </el-form-item>
74 49
         </el-col>
75
-      </el-row>
76 50
 
77
-      <el-row>
78 51
         <el-col :span="8">
79 52
           <el-form-item label="出货价" prop="sell_price">
80 53
             <el-input  type="number" v-model="form.sell_price"></el-input>
81 54
           </el-form-item>
82 55
         </el-col>
83
-
84 56
         <el-col :span="8">
85 57
           <el-form-item label="有效期预警天数" prop="expiry_date_warn_day_count">
86 58
             <el-input type="number" v-model="form.expiry_date_warn_day_count"></el-input>
87 59
           </el-form-item>
88 60
         </el-col>
89 61
 
62
+
63
+      </el-row>
64
+
65
+
66
+      <el-row>
67
+
90 68
         <el-col :span="8">
91 69
           <el-form-item label="库存预警数量" prop="stock_warn_count">
92 70
             <el-input  type="number" v-model="form.stock_warn_count"></el-input>
93 71
           </el-form-item>
94 72
         </el-col>
95
-      </el-row>
96 73
 
97
-      <el-row>
98
-       <el-col :span="16">
74
+
75
+        <el-col :span="16">
99 76
         <el-form-item label="是否可复用" prop="is_reuse">
100 77
             <el-radio v-model="form.is_reuse" label="1">可以</el-radio>
101 78
             <el-radio v-model="form.is_reuse" label="2">不可以</el-radio>

+ 1 - 1
src/xt_pages/stock/cancelStockOrderEdit.vue Zobrazit soubor

@@ -302,7 +302,7 @@
302 302
             const params = {
303 303
               'cancelStock': this.recordInfo.recordData
304 304
             }
305
-            editCancelStockInfo(params, this.return_time, this.$route.query.id).then(response => {
305
+            editCancelStockInfo(params, this.return_time, this.$route.query.id,this.$route.query.type).then(response => {
306 306
               if (response.data.state == 0) {
307 307
                 this.$message.error(response.data.msg)
308 308
                 return false

+ 1 - 1
src/xt_pages/stock/detail/cancelStockDetail.vue Zobrazit soubor

@@ -53,7 +53,7 @@
53 53
           :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}"
54 54
         >
55 55
 
56
-          <el-table-column label="单据编号" align="center">
56
+          <el-table-column label="单据编号" align="center" width="200">
57 57
             <template slot-scope="scope">
58 58
               {{scope.row.order_number}}
59 59
             </template>

+ 3 - 3
src/xt_pages/stock/detail/salesReturnDetail.vue Zobrazit soubor

@@ -2,7 +2,7 @@
2 2
   <div class="main-contain">
3 3
     <div class="app-container">
4 4
       <div class="cell clearfix" >
5
-        <el-input style="width: 300px;" class="filter-item" v-model="searchKey" placeholder="单据编码/制单人/商品类型"/>
5
+        <el-input style="width: 300px;" class="filter-item" v-model="searchKey" placeholder="单据编码/制单人/商品"/>
6 6
         <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
7 7
       </div>
8 8
 
@@ -56,9 +56,9 @@
56 56
 
57 57
 
58 58
 
59
-          <el-table-column label="单据编号" align="center">
59
+          <el-table-column label="单据编号" align="center"  width="200">
60 60
             <template slot-scope="scope">
61
-              {{scope.row.order_number}}
61
+              {{scope.row.SalesReturn.order_number}}
62 62
             </template>
63 63
           </el-table-column>
64 64
 

+ 2 - 2
src/xt_pages/stock/detail/stockInDetail.vue Zobrazit soubor

@@ -2,7 +2,7 @@
2 2
   <div class="main-contain">
3 3
     <div class="app-container">
4 4
       <div class="cell clearfix">
5
-        <el-input style="width: 300px;" class="filter-item" v-model="searchKey" placeholder="单据编码/制单人/商品类型"/>
5
+        <el-input style="width: 300px;" class="filter-item" v-model="searchKey" placeholder="单据编码/制单人/商品"/>
6 6
         <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
7 7
       </div>
8 8
 
@@ -53,7 +53,7 @@
53 53
 
54 54
         >
55 55
 
56
-          <el-table-column label="单据编号" align="center">
56
+          <el-table-column label="单据编号" align="center"  width="200">
57 57
             <template slot-scope="scope">
58 58
               {{scope.row.warehousing_order}}
59 59
             </template>

+ 2 - 2
src/xt_pages/stock/detail/stockOutDetail.vue Zobrazit soubor

@@ -2,7 +2,7 @@
2 2
   <div class="main-contain">
3 3
     <div class="app-container">
4 4
       <div class="cell clearfix" >
5
-        <el-input style="width: 300px;" class="filter-item" v-model="searchKey" placeholder="单据编码/制单人/商品类型"/>
5
+        <el-input style="width: 300px;" class="filter-item" v-model="searchKey" placeholder="单据编码/制单人/商品"/>
6 6
         <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
7 7
       </div>
8 8
 
@@ -57,7 +57,7 @@
57 57
 
58 58
 
59 59
 
60
-          <el-table-column label="单据编号" align="center">
60
+          <el-table-column label="单据编号" align="center"  width="200">
61 61
             <template slot-scope="scope">
62 62
               {{scope.row.warehouse_out_order_number}}
63 63
             </template>

+ 1 - 1
src/xt_pages/stock/salesReturnEdit.vue Zobrazit soubor

@@ -315,7 +315,7 @@
315 315
             const params = {
316 316
               'salesReturn': this.recordInfo.recordData
317 317
             }
318
-            editSalesReturnInfo(params, this.return_time, this.$route.query.id).then(response => {
318
+            editSalesReturnInfo(params, this.return_time, this.$route.query.id,this.$route.query.type).then(response => {
319 319
               if (response.data.state == 0) {
320 320
                 this.$message.error(response.data.msg)
321 321
                 return false

+ 1 - 1
src/xt_pages/stock/stockInOrderEdit.vue Zobrazit soubor

@@ -423,7 +423,7 @@ export default {
423 423
             const params = {
424 424
               'stockIn': this.recordInfo.recordData
425 425
             }
426
-            EditWarehouse(params, this.warehousing_time, this.$route.query.id).then(response => {
426
+            EditWarehouse(params, this.warehousing_time, this.$route.query.id,this.$route.query.type).then(response => {
427 427
               if (response.data.state == 0) {
428 428
                 this.$message.error(response.data.msg)
429 429
                 return false

+ 1 - 1
src/xt_pages/stock/stockOutOrderEdit.vue Zobrazit soubor

@@ -336,7 +336,7 @@
336 336
             const params = {
337 337
               'stockOut': this.recordInfo.recordData
338 338
             }
339
-            editWarehouseoutInfo(params, this.warehouse_out_time, this.$route.query.id).then(response => {
339
+            editWarehouseoutInfo(params, this.warehouse_out_time, this.$route.query.id,this.$route.query.type).then(response => {
340 340
               if (response.data.state == 0) {
341 341
                 this.$message.error(response.data.msg)
342 342
                 return false

+ 61 - 12
src/xt_pages/user/courseOfDisease.vue Zobrazit soubor

@@ -3,19 +3,31 @@
3 3
     <div class="position">
4 4
        <bread-crumb></bread-crumb>
5 5
     </div> -->
6
-    <div class="patient-container ">
6
+    <div class="patient-container">
7 7
         <patient-sidebar :id="patient_id" defaultActive="1-2"></patient-sidebar>
8 8
         <!-- <div class="app-container"> -->
9
-            <div class="container" v-loading="loading">
10
-                <div>
9
+            <div  v-loading="loading">
10
+              <div class="patient-app-container advice-container app-container">
11
+
12
+              <div>
11 13
                     <span style="margin-left: 10px;float:right;">
12 14
                         <el-button type="primary" icon="el-icon-circle-plus-outline" size="small" @click="show_dialog = true">新增</el-button>
13 15
                         <el-button  size="small" v-show="selectingRows.length > 0" type="danger" @click="deleteAction">删除</el-button>
14 16
                     </span>
15
-                    <span class="filter_title">日期查询</span>
16
-                    <el-date-picker size="small" v-model="date" type="daterange" range-separator="至" start-placeholde="开始日期" end-placeholde="结束日期" value-format="timestamp" :clearable="false" @change="requestCourseRecords()"></el-date-picker>
17
-
17
+                    <!--<span class="filter_title">日期查询</span>-->
18
+                    <!--<el-date-picker size="small" v-model="date" type="daterange" range-separator="至" start-placeholde="开始日期" end-placeholde="结束日期" value-format="timestamp" :clearable="false" @change="requestCourseRecords()"></el-date-picker>-->
18 19
                 </div>
20
+              <!--<div></div>-->
21
+              <div class="cell clearfix">
22
+                <label class="title"><span class="name">日期查询</span> : </label>
23
+                <el-date-picker v-model="start_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="startTimeChange"></el-date-picker>
26
+                <span class="">-</span>
27
+                <el-date-picker v-model="end_time" prefix-icon="el-icon-date" :editable="false" style="width: 196px;"
28
+                                type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
29
+                                value-format="yyyy-MM-dd" @change="endTimeChange"></el-date-picker>
30
+              </div>
19 31
                 <div class="record">
20 32
                     <el-row :gutter="15">
21 33
                         <el-col :span="10">
@@ -66,7 +78,9 @@
66 78
             </div>
67 79
         </el-dialog>
68 80
     </div>
69
-<!-- </div> -->
81
+    </div>
82
+
83
+  <!-- </div> -->
70 84
 </template>
71 85
 
72 86
 <script>
@@ -87,6 +101,8 @@ export default {
87 101
 
88 102
             patient_id: 0,
89 103
             date: [],
104
+            start_time: '',
105
+            end_time: '',
90 106
 
91 107
             records: [],
92 108
             doctors: [],
@@ -114,14 +130,43 @@ export default {
114 130
         var now = new Date()
115 131
         this.date = [now.getTime() - (7 * 24 * 60 * 60 * 1000), now.getTime()]
116 132
 
117
-        this.requestCourseRecords()
133
+
134
+
135
+
136
+      var year = new Date().getFullYear()
137
+      var month = new Date().getMonth() + 1
138
+      var day = new Date().getDate()
139
+      if (parseInt(month) < 10) {
140
+        month = '0' + month
141
+      }
142
+      if (parseInt(day) < 10) {
143
+        day = '0' + day
144
+      }
145
+      const endTime = year + '-' + month + '-' + day
146
+      this.end_time = endTime
147
+
148
+      var year = new Date().getFullYear()
149
+      var month = new Date().getMonth()
150
+      var day = new Date().getDate()
151
+      if (parseInt(month) < 10) {
152
+        month = '0' + month
153
+      }
154
+      if (parseInt(day) < 10) {
155
+        day = '0' + day
156
+      }
157
+      const startTime = year + '-' + month + '-' + day
158
+      this.start_time = startTime
159
+
160
+
161
+      this.requestCourseRecords()
162
+
163
+
164
+
118 165
     },
119 166
     methods: {
120 167
         requestCourseRecords: function() {
121
-            var startTime = new Date(this.date[0])
122
-            var endTime = new Date(this.date[1])
123 168
             this.loading = true
124
-            getCourseOfDiseaseRecords(this.patient_id, parseTime(startTime, "{y}-{m}-{d}"), parseTime(endTime, "{y}-{m}-{d}")).then(rs => {
169
+            getCourseOfDiseaseRecords(this.patient_id, this.start_time,this.end_time).then(rs => {
125 170
                 this.loading = false
126 171
                 var resp = rs.data
127 172
                 if (resp.state == 1) {
@@ -223,7 +268,11 @@ export default {
223 268
                 this.loading = false
224 269
                 this.$message.error(err)
225 270
             })
226
-        },
271
+        },startTimeChange(val) {
272
+        this.requestCourseRecords()
273
+      }, endTimeChange(val) {
274
+        this.requestCourseRecords()
275
+      }
227 276
     },
228 277
 }
229 278
 </script>