浏览代码

Merge branch 'superman' of http://git.shengws.com/zhangbj/xt_vue into superman

柳香萍 6 年前
父节点
当前提交
a4b0acde1d

+ 8 - 8
src/api/stock.js 查看文件

@@ -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/icons/svg/dashboard.svg 查看文件

@@ -1 +1 @@
1
-<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1509611822979" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10379" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M219.428571 658.285714q0-30.285714-21.428571-51.714285T146.285714 585.142857t-51.714285 21.428572T73.142857 658.285714t21.428572 51.714286T146.285714 731.428571t51.714286-21.428571T219.428571 658.285714z m109.714286-256q0-30.285714-21.428571-51.714285T256 329.142857t-51.714286 21.428572T182.857143 402.285714t21.428571 51.714286T256 475.428571t51.714286-21.428571T329.142857 402.285714z m244.571429 274.857143l57.714285-218.285714q3.428571-14.857143-4.285714-27.714286T605.142857 414.285714t-27.428571 3.714286-17.142857 22.571429l-57.714286 218.285714q-34.285714 2.857143-61.142857 24.857143t-36 56.285714q-11.428571 44 11.428571 83.428571t66.857143 50.857143 83.428571-11.428571 50.857143-66.857143q9.142857-34.285714-3.428571-66.857143t-41.142857-52z m377.142857-18.857143q0-30.285714-21.428572-51.714285T877.714286 585.142857t-51.714286 21.428572-21.428571 51.714285 21.428571 51.714286 51.714286 21.428571 51.714285-21.428571 21.428572-51.714286z m-365.714286-365.714285q0-30.285714-21.428571-51.714286T512 219.428571t-51.714286 21.428572T438.857143 292.571429t21.428571 51.714285T512 365.714286t51.714286-21.428572T585.142857 292.571429z m256 109.714285q0-30.285714-21.428571-51.714285T768 329.142857t-51.714286 21.428572T694.857143 402.285714t21.428571 51.714286T768 475.428571t51.714286-21.428571T841.142857 402.285714z m182.857143 256q0 149.142857-80.571429 276-10.857143 16.571429-30.857142 16.571429H111.428571q-20 0-30.857142-16.571429Q0 808 0 658.285714q0-104 40.571429-198.857143t109.142857-163.428571 163.428571-109.142857 198.857143-40.571429 198.857143 40.571429 163.428571 109.142857 109.142857 163.428571 40.571429 198.857143z" p-id="10380"></path></svg>
1
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1559126278025" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4738" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M553.86203002 156.61769104a59.43740844 59.43740844 0 0 0-79.86785887 0L151.037323 463.27838135a29.79286192 29.79286192 0 0 0 39.89685059 44.25361632l5.13542175-4.87586974V822.72082519a59.58572388 59.58572388 0 0 0 59.58572388 59.6598816h173.39927672v-179.3875122a41.95472718 41.95472718 0 0 1 41.97326661-42.01034547h81.59202576a41.95472718 41.95472718 0 0 1 41.97326659 42.01034547v179.3875122h177.51502992a59.58572388 59.58572388 0 0 0 59.6042633-59.6598816V506.56794739c13.2371521 11.97647094 32.01759338 11.06803894 43.03001403-1.20506286a29.79286192 29.79286192 0 0 0-2.15057372-42.08450318L553.86203002 156.63623047z" fill="#333333" p-id="4739"></path></svg>

+ 1 - 1
src/icons/svg/sign.svg 查看文件

@@ -1 +1 @@
1
-<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1558939526756" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="9518" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M 879.646 245.609 v 599.999 h -728.57 V 245.609 h 728.57 m 0 -85.714 h -728.57 c -47.338 0 -85.716 38.377 -85.716 85.715 v 599.999 c 0 47.338 38.378 85.715 85.716 85.715 h 728.57 c 47.338 0 85.715 -38.377 85.715 -85.715 v -600 c -0.001 -47.338 -38.378 -85.714 -85.715 -85.714 Z" p-id="9519"></path><path d="M 482.506 755.331 h -0.021 c -16.541 0 -32.059 -6.495 -43.695 -18.276 L 306.62 603.377 c -16.637 -16.835 -16.479 -43.967 0.348 -60.613 c 16.822 -16.625 43.954 -16.479 60.609 0.343 l 114.93 116.248 l 220.668 -223.211 c 16.646 -16.813 43.778 -16.972 60.614 -0.348 c 16.826 16.646 16.98 43.778 0.347 60.614 L 526.2 737.076 c -11.644 11.778 -27.161 18.255 -43.694 18.255 Z M 707.145 318.818 c -23.669 0 -42.86 -19.187 -42.86 -42.855 V 104.532 c 0 -23.665 19.191 -42.855 42.86 -42.855 c 23.664 0 42.855 19.19 42.855 42.855 v 171.431 c 0 23.669 -19.191 42.855 -42.855 42.855 Z M 318.211 318.818 c -23.67 0 -42.855 -19.187 -42.855 -42.855 V 104.532 c 0 -23.665 19.186 -42.855 42.855 -42.855 c 23.668 0 42.855 19.19 42.855 42.855 v 171.431 c 0 23.669 -19.187 42.855 -42.855 42.855 Z" p-id="9520"></path></svg>
1
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1509611822979" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10379" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M219.428571 658.285714q0-30.285714-21.428571-51.714285T146.285714 585.142857t-51.714285 21.428572T73.142857 658.285714t21.428572 51.714286T146.285714 731.428571t51.714286-21.428571T219.428571 658.285714z m109.714286-256q0-30.285714-21.428571-51.714285T256 329.142857t-51.714286 21.428572T182.857143 402.285714t21.428571 51.714286T256 475.428571t51.714286-21.428571T329.142857 402.285714z m244.571429 274.857143l57.714285-218.285714q3.428571-14.857143-4.285714-27.714286T605.142857 414.285714t-27.428571 3.714286-17.142857 22.571429l-57.714286 218.285714q-34.285714 2.857143-61.142857 24.857143t-36 56.285714q-11.428571 44 11.428571 83.428571t66.857143 50.857143 83.428571-11.428571 50.857143-66.857143q9.142857-34.285714-3.428571-66.857143t-41.142857-52z m377.142857-18.857143q0-30.285714-21.428572-51.714285T877.714286 585.142857t-51.714286 21.428572-21.428571 51.714285 21.428571 51.714286 51.714286 21.428571 51.714285-21.428571 21.428572-51.714286z m-365.714286-365.714285q0-30.285714-21.428571-51.714286T512 219.428571t-51.714286 21.428572T438.857143 292.571429t21.428571 51.714285T512 365.714286t51.714286-21.428572T585.142857 292.571429z m256 109.714285q0-30.285714-21.428571-51.714285T768 329.142857t-51.714286 21.428572T694.857143 402.285714t21.428571 51.714286T768 475.428571t51.714286-21.428571T841.142857 402.285714z m182.857143 256q0 149.142857-80.571429 276-10.857143 16.571429-30.857142 16.571429H111.428571q-20 0-30.857142-16.571429Q0 808 0 658.285714q0-104 40.571429-198.857143t109.142857-163.428571 163.428571-109.142857 198.857143-40.571429 198.857143 40.571429 163.428571 109.142857 109.142857 163.428571 40.571429 198.857143z" p-id="10380"></path></svg>

+ 1 - 1
src/xt_pages/data/components/tableson.vue 查看文件

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

+ 32 - 70
src/xt_pages/sign/index.vue 查看文件

@@ -51,80 +51,36 @@
51 51
                       <span class="button"><el-button  @click="change()">修改</el-button></span>
52 52
                     </div>
53 53
                     <div class="border"></div>
54
-
55
-                    <el-row :gutter="20">
56
-                        <el-col :span="8">
57
-                            <el-form-item label="透前称重(kg):" label-width="100px">
58
-                                <el-input v-model="weigh_list.weight_before" :disabled="disa" ></el-input>
59
-                            </el-form-item>
60
-                        </el-col> 
61
-                        <el-col :span="8">
62
-                            <el-form-item label="干体重(kg):" label-width="100px">
63
-                                <el-input v-model="weigh_list.dry_weight" :disabled="disa"></el-input>
64
-                            </el-form-item>
65
-                        </el-col>
66
-                    </el-row>
67
-                    <el-row :gutter="20">
68
-                        <el-col :span="4">
69
-                            <el-form-item label="体温(℃):" label-width="80px">
70
-                               <el-input v-model="weigh_list.temperature" :disabled="disa" style="width:70px"></el-input>
71
-                            </el-form-item>
72
-                        </el-col>
73
-                        <el-col :span="5">
74
-                            <el-form-item label="脉搏(次/分):" label-width="90px">
75
-                                <el-input v-model="weigh_list.pulse_frequency" :disabled="disa" style="width:70px"></el-input>
76
-                            </el-form-item>
77
-                        </el-col>
78
-                        <el-col :span="5">
79
-                            <el-form-item label="呼吸(次/分):" label-width="100px">
80
-                                <el-input v-model="weigh_list.breathing_rate" :disabled="disa" style="width:70px"></el-input>
81
-                            </el-form-item>
82
-                        </el-col>
83
-                        <el-col :span="9">
84
-                            <el-form-item label="血压(mmHg):" label-width="100px">
85
-                                <el-input v-model="weigh_list.systolic_blood_pressure" style="width: 70px" :disabled="disa"></el-input>
86
-                                <span> / </span>
87
-                                <el-input v-model="weigh_list.diastolic_blood_pressure" style="width: 70px" :disabled="disa"></el-input>
88
-                            </el-form-item>
89
-                        </el-col>
90
-                    </el-row>
91
-                    <div class="border"></div>                  
92
-                    <el-row :gutter="20">
93
-                        <el-col :span="8">
94
-                            <el-form-item label="透后称重(kg):" label-width="100px">
95
-                                <el-input v-model="weigh_infor.weight_after"  :disabled="disa"></el-input>
96
-                            </el-form-item>
97
-                        </el-col>
98
-                        <el-col :span="8">
99
-                            <el-form-item label="干体重(kg):" label-width="100px">
100
-                                <el-input v-model="weigh_list.dry_weight" :disabled="disa"></el-input>
101
-                            </el-form-item>
102
-                        </el-col>
54
+                    <div style="margin-bottom:20px;color:rgb(96,96,96)">
55
+                    透前体重(kg):&nbsp;<el-input v-model="weigh_list.weight_before" :disabled="disa" style="width:200px"></el-input> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
56
+                    干体重(kg):&nbsp;<el-input v-model="weigh_list.dry_weight" :disabled="disa" style="width:200px"></el-input><br>
57
+                    </div>
58
+                    <div style="margin-bottom:12px;color:rgb(96,96,96)">
59
+                     体温(℃):&nbsp;<el-input v-model="weigh_list.temperature" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
60
+                     脉搏(次/分):&nbsp;<el-input v-model="weigh_list.pulse_frequency" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
61
+                     呼吸(次/分):&nbsp;<el-input v-model="weigh_list.breathing_rate" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
62
+                     血压(mmHg):&nbsp;<el-input v-model="weigh_list.systolic_blood_pressure" style="width: 70px" :disabled="disa"></el-input><span> / </span> <el-input v-model="weigh_list.diastolic_blood_pressure" style="width: 70px" :disabled="disa"></el-input>
63
+                    </div>
64
+                    <div class="border"></div>  
65
+                    <div style="margin-bottom:20px;color:rgb(96,96,96)">
66
+                     透后称重(kg):&nbsp;<el-input v-model="weigh_infor.weight_after" style="width:200px" :disabled="disa"></el-input>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
67
+                     干体重(kg):&nbsp;<el-input v-model="weigh_list.dry_weight" :disabled="disa" style="width:200px"></el-input>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
68
+                    </div> 
69
+                    <div style="margin-bottom:12px;color:rgb(96,96,96)">
70
+                      体温(℃):&nbsp;<el-input v-model="weigh_infor.temperature" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
71
+                      脉搏(次/分):&nbsp;<el-input v-model="weigh_infor.pulse_frequency" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
72
+                      呼吸(次/分):&nbsp;<el-input v-model="weigh_infor.breathing_rate" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
73
+                      血压(mmHg):&nbsp;<el-input v-model="weigh_infor.systolic_blood_pressure" style="width: 70px" :disabled="disa"></el-input> <span> / </span><el-input v-model="weigh_infor.diastolic_blood_pressure" style="width: 70px" :disabled="disa"></el-input>
74
+                    </div>               
75
+                    <!-- <el-row :gutter="20">
103 76
                     </el-row>
104 77
                     <el-row :gutter="20">
105
-                        <el-col :span="4">
106
-                            <el-form-item label="体温(℃):" label-width="80px">
107
-                                <el-input v-model="weigh_infor.temperature" :disabled="disa" style="width:70px"></el-input>
108
-                            </el-form-item>
109
-                        </el-col>
110 78
                         <el-col :span="5">
111 79
                             <el-form-item label="脉搏(次/分):" label-width="90px">
112 80
                                 <el-input v-model="weigh_infor.pulse_frequency" :disabled="disa" style="width:70px"></el-input>
113 81
                             </el-form-item>
114 82
                         </el-col>
115
-                        <el-col :span="5">
116
-                            <el-form-item label="呼吸(次/分):" label-width="100px">
117
-                                <el-input v-model="weigh_infor.breathing_rate" :disabled="disa" style="width:70px"></el-input>
118
-                            </el-form-item>
119
-                        </el-col>
120
-                        <el-col :span="9">
121
-                            <el-form-item label="血压(mmHg):" label-width="100px">
122
-                                <el-input v-model="weigh_infor.systolic_blood_pressure" style="width: 70px" :disabled="disa"></el-input>
123
-                                <span> / </span>
124
-                                <el-input v-model="weigh_infor.diastolic_blood_pressure" style="width: 70px" :disabled="disa"></el-input>
125
-                            </el-form-item>
126
-                        </el-col>
127
-                    </el-row>
83
+                    </el-row> -->
128 84
                     
129 85
                     <div class="border"></div>
130 86
                     <div v-if="show">
@@ -209,7 +165,7 @@ export default {
209 165
         diastolic_blood_pressure: ''
210 166
       },
211 167
       shiftOptions: [
212
-        { value: 0, label: '班次' },
168
+        { value: 0, label: '全部' },
213 169
         { value: 1, label: '上午' },
214 170
         { value: 2, label: '下午' },
215 171
         { value: 3, label: '晚上' }
@@ -248,6 +204,8 @@ export default {
248 204
         this.patients = []
249 205
         if (response.data.state === 1) {
250 206
           this.patients = response.data.data.patients
207
+          console.log("排班数据是什么呢?")
208
+          console.log(this.patients)
251 209
           this.queryParams.schedule_type = response.data.data.schedule_type
252 210
           this.querySignParams.date_time = response.data.data.today
253 211
            
@@ -540,10 +498,14 @@ export default {
540 498
                     var sl = this.schedules.length
541 499
                     for(let j = 0; j < sl; j++){
542 500
                          if(this.schedules[j].type === this.patients[index].schedule.schedule_type){
543
-                              if(this.weigh_form.id > 0){
544
-                                  this.schedules[j].sign++
501
+                              // if(this.weigh_form.id>= 0){
502
+                              //     this.schedules[j].sign++
503
+                              // }
504
+                              if((signin.weigh_before_time === 0 && response.data.data.signs.weigh_before_time > 0)||(signin.weigh_time === 0 && response.data.data.signs.weigh_time > 0)){
505
+                                    this.schedules[j].sign++
545 506
                               }
546 507
                               if(signin.weigh_before_time === 0 && response.data.data.signs.weigh_before_time > 0){
508
+                                   
547 509
                                    this.schedules[j].before++
548 510
                               }
549 511
                               if(signin.weigh_time === 0 && response.data.data.signs.weigh_time > 0){

+ 8 - 31
src/xt_pages/stock/Dialog/goodInfoDailog.vue 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

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