ソースを参照

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

xiaoming_global 6 年 前
コミット
c4319d3f66

File diff suppressed because it is too large
+ 1791 - 113
src/router/index.js


+ 50 - 15
src/xt_pages/sign/index.vue ファイルの表示

@@ -39,7 +39,7 @@
39 39
                     <el-table-column prop="sign" label="签到" min-width="30" align="center" ></el-table-column>
40 40
                     <el-table-column prop="weight" label="称重(透前/透后)" min-width="50" align="center">
41 41
                         <template slot-scope="scope">
42
-                            {{scope.row.before}} / {{scope.row.after}}
42
+                             {{scope.row.before}} / {{scope.row.after}}
43 43
                         </template>
44 44
                     </el-table-column>
45 45
                 </el-table>
@@ -47,34 +47,69 @@
47 47
 
48 48
             <el-col :span="16">
49 49
                 <div class="dataTitle">患者信息</div>
50
-                <el-form class="information" label-position="left">
50
+                <el-form class="information">
51 51
                   <div class="inforTitle">
52 52
                   <el-button  @click="change()" style="float:right;">修改</el-button>
53 53
                    <span class="name">姓名:{{weigh_form.name}} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;透析号:{{weigh_form.dialysis_no}} &nbsp;&nbsp;</span>
54 54
                    </div>
55 55
                     <div class="border"></div>
56
+                    <!-- <el-row :gutter="20">
57
+                    <el-col :span="8">
58
+                       <el-form-item label="透前称重(kg):" label-width="100px">
59
+                       <el-input :disabled="disa" v-model="weigh_list.weight_before"></el-input>
60
+                    </el-form-item>
61
+                    </el-col> 
62
+                    <el-col :span="8">
63
+                      <el-form-item label="干体重(kg):" label-width="100px">
64
+                       <el-input :disabled="disa" v-model="weigh_list.dry_weight"></el-input>
65
+                      </el-form-item>
66
+                      </el-col>
67
+                    </el-row>
68
+                      <el-row :gutter="20">
69
+                        <el-col :span="4">
70
+                            <el-form-item label="体温(℃):" label-width="80px">
71
+                               <el-input :disabled="disa" v-model="weigh_list.temperature" style="width: 70px"></el-input>
72
+                            </el-form-item>
73
+                        </el-col>
74
+                        <el-col :span="5">
75
+                            <el-form-item label="呼吸(次/分):" label-width="100px">
76
+                                <el-input :disabled="disa" v-model="weigh_list.breathing_rate"></el-input>
77
+                            </el-form-item>
78
+                        </el-col>
79
+                        <el-col :span="9">
80
+                            <el-form-item label="血压(mmHg):" label-width="100px">
81
+                                <el-input :disabled="disa" v-model="weigh_list.systolic_blood_pressure" style="width: 70px"></el-input>
82
+                                <span> / </span>
83
+                                <el-input :disabled="disa" v-model="weigh_list.diastolic_blood_pressure" style="width: 70px"></el-input>
84
+                            </el-form-item>
85
+                        </el-col>
86
+                         <el-col :span="5">
87
+                            <el-form-item label="脉搏(次/分):" label-width="100px">
88
+                                <el-input :disabled="disa" v-model="weigh_list.pulse_frequency"></el-input>
89
+                            </el-form-item>
90
+                        </el-col>
91
+                    </el-row> -->
56 92
                     <div style="margin-bottom:20px;color:rgb(96,96,96);font-size:14px">
57 93
                     透前体重(kg):&nbsp;<el-input v-model="weigh_list.weight_before" :disabled="disa" style="width:200px"></el-input> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
58 94
                     干体重(kg):&nbsp;<el-input v-model="weigh_list.dry_weight" :disabled="disa" style="width:200px"></el-input><br>
59 95
                     </div>
60 96
                     <div style="margin-bottom:12px;color:rgb(96,96,96);font-size:14px">
61
-                     体温(℃):&nbsp;<el-input v-model="weigh_list.temperature" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
62
-                     呼吸(次/分):&nbsp;<el-input v-model="weigh_list.breathing_rate" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
63
-                     血压(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>&nbsp;&nbsp;&nbsp;
64
-                     脉搏(次/分):&nbsp;<el-input v-model="weigh_list.pulse_frequency" :disabled="disa" style="width:70px"></el-input>
65
-                    </div>
66
-                    <div class="border"></div>
67
-                    <div style="margin-bottom:20px;color:rgb(96,96,96);font-size:14px">
97
+                     体温(℃):&nbsp;<el-input v-model="weigh_list.temperature" :disabled="disa" style="width:90px"></el-input>&nbsp;&nbsp;&nbsp;
98
+                     <!-- 呼吸(次/分):&nbsp;<el-input v-model="weigh_list.breathing_rate" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp; -->
99
+                     血压(mmHg):&nbsp;<el-input v-model="weigh_list.systolic_blood_pressure" style="width: 90px" :disabled="disa"></el-input><span> / </span> <el-input v-model="weigh_list.diastolic_blood_pressure" style="width: 90px" :disabled="disa"></el-input>&nbsp;&nbsp;&nbsp;
100
+                     脉率(次/分):&nbsp;<el-input v-model="weigh_list.pulse_frequency" :disabled="disa" style="width:90px"></el-input>
101
+                    </div> 
102
+                     <div class="border"></div> 
103
+                     <div style="margin-bottom:20px;color:rgb(96,96,96);font-size:14px">
68 104
                      透后称重(kg):&nbsp;<el-input v-model="weigh_infor.weight_after" style="width:200px" :disabled="disa"></el-input>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
69 105
                      干体重(kg):&nbsp;<el-input v-model="weigh_list.dry_weight" :disabled="disa" style="width:200px"></el-input>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
70 106
                     </div>
71 107
                     <div style="margin-bottom:12px;color:rgb(96,96,96);font-size:14px">
72
-                      体温(℃):&nbsp;<el-input v-model="weigh_infor.temperature" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
73
-                      呼吸(次/分):&nbsp;<el-input v-model="weigh_infor.breathing_rate" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp;
74
-                      血压(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>&nbsp;&nbsp;&nbsp;
75
-                      脉搏(次/分):&nbsp;<el-input v-model="weigh_infor.pulse_frequency" :disabled="disa" style="width:70px"></el-input>
76
-                    </div>
77
-
108
+                      体温(℃):&nbsp;<el-input v-model="weigh_infor.temperature" :disabled="disa" style="width:90px"></el-input>&nbsp;&nbsp;&nbsp;
109
+                      <!-- 呼吸(次/分):&nbsp;<el-input v-model="weigh_infor.breathing_rate" :disabled="disa" style="width:70px"></el-input>&nbsp;&nbsp;&nbsp; -->
110
+                      血压(mmHg):&nbsp;<el-input v-model="weigh_infor.systolic_blood_pressure" style="width: 90px" :disabled="disa"></el-input> <span> / </span><el-input v-model="weigh_infor.diastolic_blood_pressure" style="width: 90px" :disabled="disa"></el-input>&nbsp;&nbsp;&nbsp;
111
+                      脉率(次/分):&nbsp;<el-input v-model="weigh_infor.pulse_frequency" :disabled="disa" style="width:90px"></el-input>
112
+                    </div>      
78 113
                     <div class="border"></div>
79 114
                     <div v-if="show">
80 115
                     <el-row :gutter="20">

+ 21 - 23
src/xt_pages/stock/cancelStockOrder.vue ファイルの表示

@@ -131,29 +131,27 @@
131 131
     name: 'salesReturnOrder',
132 132
     components: { BreadCrumb },
133 133
     created() {
134
-      var year = new Date().getFullYear()
135
-      var month = new Date().getMonth() + 1
136
-      var day = new Date().getDate()
137
-      if (parseInt(month) < 10) {
138
-        month = '0' + month
139
-      }
140
-      if (parseInt(day) < 10) {
141
-        day = '0' + day
142
-      }
143
-      const endTime = year + '-' + month + '-' + day
144
-      this.end_time = endTime
145
-
146
-      var year = new Date().getFullYear()
147
-      var month = new Date().getMonth()
148
-      var day = new Date().getDate()
149
-      if (parseInt(month) < 10) {
150
-        month = '0' + month
151
-      }
152
-      if (parseInt(day) < 10) {
153
-        day = '0' + day
154
-      }
155
-      const startTime = year + '-' + month + '-' + day
156
-      this.start_time = startTime
134
+      var nowDate = new Date();
135
+      var nowYear = nowDate.getFullYear();
136
+      var nowMonth = nowDate.getMonth() + 1;
137
+      var nowDay = nowDate.getDate();
138
+      this.end_time =
139
+        nowYear +
140
+        "-" +
141
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
142
+        "-" +
143
+        (nowDay < 10 ? "0" + nowDay : nowDay);
144
+      nowDate.setMonth(nowDate.getMonth() - 1);
145
+      nowYear = nowDate.getFullYear();
146
+      nowMonth = nowDate.getMonth() + 1;
147
+      nowDay = nowDate.getDate();
148
+      this.start_time =
149
+        nowYear +
150
+        "-" +
151
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
152
+        "-" +
153
+        (nowDay < 10 ? "0" + nowDay : nowDay);
154
+
157 155
       this.GetCancelStock()
158 156
       this.GetConfigInfo()
159 157
       this.fetchAllAdminUsers()

+ 11 - 11
src/xt_pages/stock/cancelStockOrderAdd.vue ファイルの表示

@@ -361,17 +361,17 @@
361 361
       }
362 362
     },
363 363
     created() {
364
-      var year = new Date().getFullYear()
365
-      var month = new Date().getMonth() + 1
366
-      var day = new Date().getDate()
367
-      if (parseInt(month) < 10) {
368
-        month = '0' + month
369
-      }
370
-      if (parseInt(day) < 10) {
371
-        day = '0' + day
372
-      }
373
-      const endTime = year + '-' + month + '-' + day
374
-      this.return_time = endTime
364
+      var nowDate = new Date();
365
+      var nowYear = nowDate.getFullYear();
366
+      var nowMonth = nowDate.getMonth() + 1;
367
+      var nowDay = nowDate.getDate();
368
+      this.return_time =
369
+        nowYear +
370
+        "-" +
371
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
372
+        "-" +
373
+        (nowDay < 10 ? "0" + nowDay : nowDay);
374
+
375 375
       const tempObj = {}
376 376
       tempObj['good_type_id'] = 0
377 377
       tempObj['good_id'] = 0

+ 20 - 23
src/xt_pages/stock/detail/cancelStockDetail.vue ファイルの表示

@@ -116,29 +116,26 @@
116 116
     name: 'cancelStockDetail',
117 117
 
118 118
     created() {
119
-      var year = new Date().getFullYear()
120
-      var month = new Date().getMonth() + 1
121
-      var day = new Date().getDate()
122
-      if (parseInt(month) < 10) {
123
-        month = '0' + month
124
-      }
125
-      if (parseInt(day) < 10) {
126
-        day = '0' + day
127
-      }
128
-      const endTime = year + '-' + month + '-' + day
129
-      this.end_time = endTime
130
-
131
-      var year = new Date().getFullYear()
132
-      var month = new Date().getMonth()
133
-      var day = new Date().getDate()
134
-      if (parseInt(month) < 10) {
135
-        month = '0' + month
136
-      }
137
-      if (parseInt(day) < 10) {
138
-        day = '0' + day
139
-      }
140
-      const startTime = year + '-' + month + '-' + day
141
-      this.start_time = startTime
119
+      var nowDate = new Date();
120
+      var nowYear = nowDate.getFullYear();
121
+      var nowMonth = nowDate.getMonth() + 1;
122
+      var nowDay = nowDate.getDate();
123
+      this.end_time =
124
+        nowYear +
125
+        "-" +
126
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
127
+        "-" +
128
+        (nowDay < 10 ? "0" + nowDay : nowDay);
129
+      nowDate.setMonth(nowDate.getMonth() - 1);
130
+      nowYear = nowDate.getFullYear();
131
+      nowMonth = nowDate.getMonth() + 1;
132
+      nowDay = nowDate.getDate();
133
+      this.start_time =
134
+        nowYear +
135
+        "-" +
136
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
137
+        "-" +
138
+        (nowDay < 10 ? "0" + nowDay : nowDay);
142 139
       this.GetCancelStock()
143 140
       this.GetConfigInfo()
144 141
       this.fetchAllAdminUsers()

+ 20 - 23
src/xt_pages/stock/detail/salesReturnDetail.vue ファイルの表示

@@ -119,29 +119,26 @@
119 119
     name: 'salesReturnDetail',
120 120
 
121 121
     created() {
122
-      var year = new Date().getFullYear()
123
-      var month = new Date().getMonth() + 1
124
-      var day = new Date().getDate()
125
-      if (parseInt(month) < 10) {
126
-        month = '0' + month
127
-      }
128
-      if (parseInt(day) < 10) {
129
-        day = '0' + day
130
-      }
131
-      const endTime = year + '-' + month + '-' + day
132
-      this.end_time = endTime
133
-
134
-      var year = new Date().getFullYear()
135
-      var month = new Date().getMonth()
136
-      var day = new Date().getDate()
137
-      if (parseInt(month) < 10) {
138
-        month = '0' + month
139
-      }
140
-      if (parseInt(day) < 10) {
141
-        day = '0' + day
142
-      }
143
-      const startTime = year + '-' + month + '-' + day
144
-      this.start_time = startTime
122
+      var nowDate = new Date();
123
+      var nowYear = nowDate.getFullYear();
124
+      var nowMonth = nowDate.getMonth() + 1;
125
+      var nowDay = nowDate.getDate();
126
+      this.end_time =
127
+        nowYear +
128
+        "-" +
129
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
130
+        "-" +
131
+        (nowDay < 10 ? "0" + nowDay : nowDay);
132
+      nowDate.setMonth(nowDate.getMonth() - 1);
133
+      nowYear = nowDate.getFullYear();
134
+      nowMonth = nowDate.getMonth() + 1;
135
+      nowDay = nowDate.getDate();
136
+      this.start_time =
137
+        nowYear +
138
+        "-" +
139
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
140
+        "-" +
141
+        (nowDay < 10 ? "0" + nowDay : nowDay);
145 142
       this.GetCancelStock()
146 143
       this.GetConfigInfo()
147 144
       this.fetchAllAdminUsers()

+ 20 - 23
src/xt_pages/stock/detail/stockInDetail.vue ファイルの表示

@@ -124,29 +124,26 @@
124 124
     name: 'stockInDetail',
125 125
 
126 126
     created() {
127
-      var year = new Date().getFullYear()
128
-      var month = new Date().getMonth() + 1
129
-      var day = new Date().getDate()
130
-      if (parseInt(month) < 10) {
131
-        month = '0' + month
132
-      }
133
-      if (parseInt(day) < 10) {
134
-        day = '0' + day
135
-      }
136
-      const endTime = year + '-' + month + '-' + day
137
-      this.end_time = endTime
138
-
139
-      var year = new Date().getFullYear()
140
-      var month = new Date().getMonth()
141
-      var day = new Date().getDate()
142
-      if (parseInt(month) < 10) {
143
-        month = '0' + month
144
-      }
145
-      if (parseInt(day) < 10) {
146
-        day = '0' + day
147
-      }
148
-      const startTime = year + '-' + month + '-' + day
149
-      this.start_time = startTime
127
+      var nowDate = new Date();
128
+      var nowYear = nowDate.getFullYear();
129
+      var nowMonth = nowDate.getMonth() + 1;
130
+      var nowDay = nowDate.getDate();
131
+      this.end_time =
132
+        nowYear +
133
+        "-" +
134
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
135
+        "-" +
136
+        (nowDay < 10 ? "0" + nowDay : nowDay);
137
+      nowDate.setMonth(nowDate.getMonth() - 1);
138
+      nowYear = nowDate.getFullYear();
139
+      nowMonth = nowDate.getMonth() + 1;
140
+      nowDay = nowDate.getDate();
141
+      this.start_time =
142
+        nowYear +
143
+        "-" +
144
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
145
+        "-" +
146
+        (nowDay < 10 ? "0" + nowDay : nowDay);
150 147
       this.GetCancelStock()
151 148
       this.GetConfigInfo()
152 149
       this.fetchAllAdminUsers()

+ 20 - 23
src/xt_pages/stock/detail/stockOutDetail.vue ファイルの表示

@@ -129,29 +129,26 @@
129 129
     name: 'stockOutDetail',
130 130
 
131 131
     created() {
132
-      var year = new Date().getFullYear()
133
-      var month = new Date().getMonth() + 1
134
-      var day = new Date().getDate()
135
-      if (parseInt(month) < 10) {
136
-        month = '0' + month
137
-      }
138
-      if (parseInt(day) < 10) {
139
-        day = '0' + day
140
-      }
141
-      const endTime = year + '-' + month + '-' + day
142
-      this.end_time = endTime
143
-
144
-      var year = new Date().getFullYear()
145
-      var month = new Date().getMonth()
146
-      var day = new Date().getDate()
147
-      if (parseInt(month) < 10) {
148
-        month = '0' + month
149
-      }
150
-      if (parseInt(day) < 10) {
151
-        day = '0' + day
152
-      }
153
-      const startTime = year + '-' + month + '-' + day
154
-      this.start_time = startTime
132
+      var nowDate = new Date();
133
+      var nowYear = nowDate.getFullYear();
134
+      var nowMonth = nowDate.getMonth() + 1;
135
+      var nowDay = nowDate.getDate();
136
+      this.end_time =
137
+        nowYear +
138
+        "-" +
139
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
140
+        "-" +
141
+        (nowDay < 10 ? "0" + nowDay : nowDay);
142
+      nowDate.setMonth(nowDate.getMonth() - 1);
143
+      nowYear = nowDate.getFullYear();
144
+      nowMonth = nowDate.getMonth() + 1;
145
+      nowDay = nowDate.getDate();
146
+      this.start_time =
147
+        nowYear +
148
+        "-" +
149
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
150
+        "-" +
151
+        (nowDay < 10 ? "0" + nowDay : nowDay);
155 152
       this.GetCancelStock()
156 153
       this.GetConfigInfo()
157 154
       this.fetchAllAdminUsers()

+ 20 - 23
src/xt_pages/stock/otherCancelStockOrder.vue ファイルの表示

@@ -128,29 +128,26 @@
128 128
     name: 'salesReturnOrder',
129 129
     components: { BreadCrumb },
130 130
     created() {
131
-      var year = new Date().getFullYear()
132
-      var month = new Date().getMonth() + 1
133
-      var day = new Date().getDate()
134
-      if (parseInt(month) < 10) {
135
-        month = '0' + month
136
-      }
137
-      if (parseInt(day) < 10) {
138
-        day = '0' + day
139
-      }
140
-      const endTime = year + '-' + month + '-' + day
141
-      this.end_time = endTime
142
-
143
-      var year = new Date().getFullYear()
144
-      var month = new Date().getMonth()
145
-      var day = new Date().getDate()
146
-      if (parseInt(month) < 10) {
147
-        month = '0' + month
148
-      }
149
-      if (parseInt(day) < 10) {
150
-        day = '0' + day
151
-      }
152
-      const startTime = year + '-' + month + '-' + day
153
-      this.start_time = startTime
131
+      var nowDate = new Date();
132
+      var nowYear = nowDate.getFullYear();
133
+      var nowMonth = nowDate.getMonth() + 1;
134
+      var nowDay = nowDate.getDate();
135
+      this.end_time =
136
+        nowYear +
137
+        "-" +
138
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
139
+        "-" +
140
+        (nowDay < 10 ? "0" + nowDay : nowDay);
141
+      nowDate.setMonth(nowDate.getMonth() - 1);
142
+      nowYear = nowDate.getFullYear();
143
+      nowMonth = nowDate.getMonth() + 1;
144
+      nowDay = nowDate.getDate();
145
+      this.start_time =
146
+        nowYear +
147
+        "-" +
148
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
149
+        "-" +
150
+        (nowDay < 10 ? "0" + nowDay : nowDay);
154 151
       this.GetCancelStock()
155 152
       this.GetConfigInfo()
156 153
       this.fetchAllAdminUsers()

+ 20 - 23
src/xt_pages/stock/otherSalesReturnOrder.vue ファイルの表示

@@ -140,29 +140,26 @@
140 140
     name: 'salesReturnOrder',
141 141
     components: { BreadCrumb },
142 142
     created() {
143
-      var year = new Date().getFullYear()
144
-      var month = new Date().getMonth() + 1
145
-      var day = new Date().getDate()
146
-      if (parseInt(month) < 10) {
147
-        month = '0' + month
148
-      }
149
-      if (parseInt(day) < 10) {
150
-        day = '0' + day
151
-      }
152
-      const endTime = year + '-' + month + '-' + day
153
-      this.end_time = endTime
154
-
155
-      var year = new Date().getFullYear()
156
-      var month = new Date().getMonth()
157
-      var day = new Date().getDate()
158
-      if (parseInt(month) < 10) {
159
-        month = '0' + month
160
-      }
161
-      if (parseInt(day) < 10) {
162
-        day = '0' + day
163
-      }
164
-      const startTime = year + '-' + month + '-' + day
165
-      this.start_time = startTime
143
+      var nowDate = new Date();
144
+      var nowYear = nowDate.getFullYear();
145
+      var nowMonth = nowDate.getMonth() + 1;
146
+      var nowDay = nowDate.getDate();
147
+      this.end_time =
148
+        nowYear +
149
+        "-" +
150
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
151
+        "-" +
152
+        (nowDay < 10 ? "0" + nowDay : nowDay);
153
+      nowDate.setMonth(nowDate.getMonth() - 1);
154
+      nowYear = nowDate.getFullYear();
155
+      nowMonth = nowDate.getMonth() + 1;
156
+      nowDay = nowDate.getDate();
157
+      this.start_time =
158
+        nowYear +
159
+        "-" +
160
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
161
+        "-" +
162
+        (nowDay < 10 ? "0" + nowDay : nowDay);
166 163
       this.GetSalesReturn()
167 164
       this.GetConfigInfo()
168 165
       this.fetchAllAdminUsers()

+ 20 - 23
src/xt_pages/stock/otherStockInOrder.vue ファイルの表示

@@ -134,29 +134,26 @@
134 134
     name: 'stockIn',
135 135
     components: { BreadCrumb },
136 136
     created() {
137
-      var year = new Date().getFullYear()
138
-      var month = new Date().getMonth() + 1
139
-      var day = new Date().getDate()
140
-      if (parseInt(month) < 10) {
141
-        month = '0' + month
142
-      }
143
-      if (parseInt(day) < 10) {
144
-        day = '0' + day
145
-      }
146
-      const endTime = year + '-' + month + '-' + day
147
-      this.end_time = endTime
148
-
149
-      var year = new Date().getFullYear()
150
-      var month = new Date().getMonth()
151
-      var day = new Date().getDate()
152
-      if (parseInt(month) < 10) {
153
-        month = '0' + month
154
-      }
155
-      if (parseInt(day) < 10) {
156
-        day = '0' + day
157
-      }
158
-      const startTime = year + '-' + month + '-' + day
159
-      this.start_time = startTime
137
+      var nowDate = new Date();
138
+      var nowYear = nowDate.getFullYear();
139
+      var nowMonth = nowDate.getMonth() + 1;
140
+      var nowDay = nowDate.getDate();
141
+      this.end_time =
142
+        nowYear +
143
+        "-" +
144
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
145
+        "-" +
146
+        (nowDay < 10 ? "0" + nowDay : nowDay);
147
+      nowDate.setMonth(nowDate.getMonth() - 1);
148
+      nowYear = nowDate.getFullYear();
149
+      nowMonth = nowDate.getMonth() + 1;
150
+      nowDay = nowDate.getDate();
151
+      this.start_time =
152
+        nowYear +
153
+        "-" +
154
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
155
+        "-" +
156
+        (nowDay < 10 ? "0" + nowDay : nowDay);
160 157
       this.GetWarehouse()
161 158
       this.GetConfigInfo()
162 159
       this.fetchAllAdminUsers()

+ 20 - 23
src/xt_pages/stock/otherStockOutOrder.vue ファイルの表示

@@ -132,29 +132,26 @@ export default {
132 132
   name: "salesReturnOrder",
133 133
   components: { BreadCrumb },
134 134
   created() {
135
-    var year = new Date().getFullYear();
136
-    var month = new Date().getMonth() + 1;
137
-    var day = new Date().getDate();
138
-    if (parseInt(month) < 10) {
139
-      month = "0" + month;
140
-    }
141
-    if (parseInt(day) < 10) {
142
-      day = "0" + day;
143
-    }
144
-    const endTime = year + "-" + month + "-" + day;
145
-    this.end_time = endTime;
146
-
147
-    var year = new Date().getFullYear();
148
-    var month = new Date().getMonth();
149
-    var day = new Date().getDate();
150
-    if (parseInt(month) < 10) {
151
-      month = "0" + month;
152
-    }
153
-    if (parseInt(day) < 10) {
154
-      day = "0" + day;
155
-    }
156
-    const startTime = year + "-" + month + "-" + day;
157
-    this.start_time = startTime;
135
+    var nowDate = new Date();
136
+    var nowYear = nowDate.getFullYear();
137
+    var nowMonth = nowDate.getMonth() + 1;
138
+    var nowDay = nowDate.getDate();
139
+    this.end_time =
140
+      nowYear +
141
+      "-" +
142
+      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
143
+      "-" +
144
+      (nowDay < 10 ? "0" + nowDay : nowDay);
145
+    nowDate.setMonth(nowDate.getMonth() - 1);
146
+    nowYear = nowDate.getFullYear();
147
+    nowMonth = nowDate.getMonth() + 1;
148
+    nowDay = nowDate.getDate();
149
+    this.start_time =
150
+      nowYear +
151
+      "-" +
152
+      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
153
+      "-" +
154
+      (nowDay < 10 ? "0" + nowDay : nowDay);
158 155
     this.GetWarehouseOut();
159 156
     this.GetConfigInfo();
160 157
     this.fetchAllAdminUsers();

+ 21 - 23
src/xt_pages/stock/salesReturnOrder.vue ファイルの表示

@@ -135,29 +135,27 @@
135 135
     name: 'salesReturnOrder',
136 136
     components: { BreadCrumb },
137 137
     created() {
138
-      var year = new Date().getFullYear()
139
-      var month = new Date().getMonth() + 1
140
-      var day = new Date().getDate()
141
-      if (parseInt(month) < 10) {
142
-        month = '0' + month
143
-      }
144
-      if (parseInt(day) < 10) {
145
-        day = '0' + day
146
-      }
147
-      const endTime = year + '-' + month + '-' + day
148
-      this.end_time = endTime
149
-
150
-      var year = new Date().getFullYear()
151
-      var month = new Date().getMonth()
152
-      var day = new Date().getDate()
153
-      if (parseInt(month) < 10) {
154
-        month = '0' + month
155
-      }
156
-      if (parseInt(day) < 10) {
157
-        day = '0' + day
158
-      }
159
-      const startTime = year + '-' + month + '-' + day
160
-      this.start_time = startTime
138
+      var nowDate = new Date();
139
+      var nowYear = nowDate.getFullYear();
140
+      var nowMonth = nowDate.getMonth() + 1;
141
+      var nowDay = nowDate.getDate();
142
+      this.end_time =
143
+        nowYear +
144
+        "-" +
145
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
146
+        "-" +
147
+        (nowDay < 10 ? "0" + nowDay : nowDay);
148
+      nowDate.setMonth(nowDate.getMonth() - 1);
149
+      nowYear = nowDate.getFullYear();
150
+      nowMonth = nowDate.getMonth() + 1;
151
+      nowDay = nowDate.getDate();
152
+      this.start_time =
153
+        nowYear +
154
+        "-" +
155
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
156
+        "-" +
157
+        (nowDay < 10 ? "0" + nowDay : nowDay);
158
+
161 159
       this.GetSalesReturn()
162 160
       this.GetConfigInfo()
163 161
       this.fetchAllAdminUsers()

+ 10 - 11
src/xt_pages/stock/salesReturnOrderAdd.vue ファイルの表示

@@ -373,17 +373,16 @@
373 373
       }
374 374
     },
375 375
     created() {
376
-      var year = new Date().getFullYear()
377
-      var month = new Date().getMonth() + 1
378
-      var day = new Date().getDate()
379
-      if (parseInt(month) < 10) {
380
-        month = '0' + month
381
-      }
382
-      if (parseInt(day) < 10) {
383
-        day = '0' + day
384
-      }
385
-      const endTime = year + '-' + month + '-' + day
386
-      this.return_time = endTime
376
+      var nowDate = new Date();
377
+      var nowYear = nowDate.getFullYear();
378
+      var nowMonth = nowDate.getMonth() + 1;
379
+      var nowDay = nowDate.getDate();
380
+      this.return_time =
381
+        nowYear +
382
+        "-" +
383
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
384
+        "-" +
385
+        (nowDay < 10 ? "0" + nowDay : nowDay);
387 386
       const tempObj = {}
388 387
       tempObj['good_type_id'] = 0
389 388
       tempObj['good_id'] = 0

+ 53 - 23
src/xt_pages/stock/stockInOrder.vue ファイルの表示

@@ -133,29 +133,59 @@
133 133
     name: 'stockIn',
134 134
     components: { BreadCrumb },
135 135
     created() {
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
136
+      // var nowDate = new Date();
137
+      //
138
+      // var year = new Date().getFullYear()
139
+      // var month = new Date().getMonth() + 1
140
+      // var day = nowDate.getDate()
141
+      // if (parseInt(month) < 10) {
142
+      //   month = '0' + month
143
+      // }
144
+      // if (parseInt(day) < 10) {
145
+      //   day = '0' + day
146
+      // }
147
+      // const endTime = year + '-' + month + '-' + day
148
+      // this.end_time = endTime
149
+      //
150
+      //
151
+      // var year = new Date().getFullYear()
152
+      // var month = new Date().getMonth()
153
+      // var day = new Date().getDate()
154
+      //
155
+      // day.setMonth(day.getMonth() - 3);
156
+      //
157
+      // if (parseInt(month) < 10) {
158
+      //   month = '0' + month
159
+      // }
160
+      // if (parseInt(day) < 10) {
161
+      //   day = '0' + day
162
+      // }
163
+      // const startTime = year + '-' + month + '-' + day
164
+      // this.start_time = startTime
165
+
166
+      var nowDate = new Date();
167
+      var nowYear = nowDate.getFullYear();
168
+      var nowMonth = nowDate.getMonth() + 1;
169
+      var nowDay = nowDate.getDate();
170
+      this.end_time =
171
+        nowYear +
172
+        "-" +
173
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
174
+        "-" +
175
+        (nowDay < 10 ? "0" + nowDay : nowDay);
176
+      nowDate.setMonth(nowDate.getMonth() - 1);
177
+      nowYear = nowDate.getFullYear();
178
+      nowMonth = nowDate.getMonth() + 1;
179
+      nowDay = nowDate.getDate();
180
+      this.start_time =
181
+        nowYear +
182
+        "-" +
183
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
184
+        "-" +
185
+        (nowDay < 10 ? "0" + nowDay : nowDay);
186
+
187
+
188
+
159 189
       this.GetWarehouse()
160 190
       this.GetConfigInfo()
161 191
       this.fetchAllAdminUsers()

+ 11 - 13
src/xt_pages/stock/stockInOrderAdd.vue ファイルの表示

@@ -341,7 +341,7 @@
341 341
       }, comfirm: function(val) {
342 342
         this.$refs.dialog.hide()
343 343
         if (val.selectedGoodInfo.length > 0) {
344
-          for (let i = val.selectedGoodInfo.length - 1; ; i--) {
344
+          for (let i = val.selectedGoodInfo.length - 1; i >= 0; i--) {
345 345
             if (i == 0) {
346 346
               this.recordInfo.recordData[this.currentIndex].good_type_id = val.goodTypeId
347 347
               this.recordInfo.recordData[this.currentIndex].good_id = val.selectedGoodInfo[i].id
@@ -581,18 +581,16 @@
581 581
       }
582 582
     },
583 583
     created() {
584
-      var year = new Date().getFullYear()
585
-      var month = new Date().getMonth() + 1
586
-      var day = new Date().getDate()
587
-      if (parseInt(month) < 10) {
588
-        month = '0' + month
589
-      }
590
-      if (parseInt(day) < 10) {
591
-        day = '0' + day
592
-      }
593
-      const endTime = year + '-' + month + '-' + day
594
-      this.warehousing_time = endTime
595
-
584
+      var nowDate = new Date();
585
+      var nowYear = nowDate.getFullYear();
586
+      var nowMonth = nowDate.getMonth() + 1;
587
+      var nowDay = nowDate.getDate();
588
+      this.warehousing_time =
589
+        nowYear +
590
+        "-" +
591
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
592
+        "-" +
593
+        (nowDay < 10 ? "0" + nowDay : nowDay);
596 594
       const tempObj = {}
597 595
       tempObj['good_type_id'] = 0
598 596
       tempObj['good_id'] = 0

+ 20 - 23
src/xt_pages/stock/stockOutOrder.vue ファイルの表示

@@ -131,29 +131,26 @@ export default {
131 131
   name: "salesReturnOrder",
132 132
   components: { BreadCrumb },
133 133
   created() {
134
-    var year = new Date().getFullYear();
135
-    var month = new Date().getMonth() + 1;
136
-    var day = new Date().getDate();
137
-    if (parseInt(month) < 10) {
138
-      month = "0" + month;
139
-    }
140
-    if (parseInt(day) < 10) {
141
-      day = "0" + day;
142
-    }
143
-    const endTime = year + "-" + month + "-" + day;
144
-    this.end_time = endTime;
145
-
146
-    var year = new Date().getFullYear();
147
-    var month = new Date().getMonth();
148
-    var day = new Date().getDate();
149
-    if (parseInt(month) < 10) {
150
-      month = "0" + month;
151
-    }
152
-    if (parseInt(day) < 10) {
153
-      day = "0" + day;
154
-    }
155
-    const startTime = year + "-" + month + "-" + day;
156
-    this.start_time = startTime;
134
+    var nowDate = new Date();
135
+    var nowYear = nowDate.getFullYear();
136
+    var nowMonth = nowDate.getMonth() + 1;
137
+    var nowDay = nowDate.getDate();
138
+    this.end_time =
139
+      nowYear +
140
+      "-" +
141
+      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
142
+      "-" +
143
+      (nowDay < 10 ? "0" + nowDay : nowDay);
144
+    nowDate.setMonth(nowDate.getMonth() - 1);
145
+    nowYear = nowDate.getFullYear();
146
+    nowMonth = nowDate.getMonth() + 1;
147
+    nowDay = nowDate.getDate();
148
+    this.start_time =
149
+      nowYear +
150
+      "-" +
151
+      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
152
+      "-" +
153
+      (nowDay < 10 ? "0" + nowDay : nowDay);
157 154
     this.GetWarehouseOut();
158 155
     this.GetConfigInfo();
159 156
     this.fetchAllAdminUsers();

+ 10 - 11
src/xt_pages/stock/stockOutOrderAdd.vue ファイルの表示

@@ -397,17 +397,16 @@
397 397
       }
398 398
     },
399 399
     created() {
400
-      var year = new Date().getFullYear()
401
-      var month = new Date().getMonth() + 1
402
-      var day = new Date().getDate()
403
-      if (parseInt(month) < 10) {
404
-        month = '0' + month
405
-      }
406
-      if (parseInt(day) < 10) {
407
-        day = '0' + day
408
-      }
409
-      const endTime = year + '-' + month + '-' + day
410
-      this.warehouse_out_time = endTime
400
+      var nowDate = new Date();
401
+      var nowYear = nowDate.getFullYear();
402
+      var nowMonth = nowDate.getMonth() + 1;
403
+      var nowDay = nowDate.getDate();
404
+      this.warehouse_out_time =
405
+        nowYear +
406
+        "-" +
407
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
408
+        "-" +
409
+        (nowDay < 10 ? "0" + nowDay : nowDay);
411 410
       const tempObj = {}
412 411
       tempObj['good_type_id'] = 0
413 412
       tempObj['good_id'] = 0

+ 1 - 1
src/xt_pages/user/components/PatientForm.vue ファイルの表示

@@ -148,7 +148,7 @@
148 148
                   </el-form-item> -->
149 149
                 </el-col>
150 150
                 <el-col :span="8" :style="isEdit?'width:360px':''">
151
-                  <el-form-item label="住院(门诊)号 : " prop="admissionNumber" >
151
+                  <el-form-item label="住院(门诊)号 : "  >
152 152
                     <el-input v-model="form.admissionNumber"></el-input>
153 153
                   </el-form-item>
154 154
                 </el-col>

+ 20 - 24
src/xt_pages/user/courseOfDisease.vue ファイルの表示

@@ -132,30 +132,26 @@ export default {
132 132
 
133 133
 
134 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
135
+      var nowDate = new Date();
136
+      var nowYear = nowDate.getFullYear();
137
+      var nowMonth = nowDate.getMonth() + 1;
138
+      var nowDay = nowDate.getDate();
139
+      this.end_time =
140
+        nowYear +
141
+        "-" +
142
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
143
+        "-" +
144
+        (nowDay < 10 ? "0" + nowDay : nowDay);
145
+      nowDate.setMonth(nowDate.getMonth() - 1);
146
+      nowYear = nowDate.getFullYear();
147
+      nowMonth = nowDate.getMonth() + 1;
148
+      nowDay = nowDate.getDate();
149
+      this.start_time =
150
+        nowYear +
151
+        "-" +
152
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
153
+        "-" +
154
+        (nowDay < 10 ? "0" + nowDay : nowDay);
159 155
 
160 156
 
161 157
       this.requestCourseRecords()

+ 4 - 0
src/xt_pages/user/patients.vue ファイルの表示

@@ -385,6 +385,10 @@
385 385
 
386 386
     methods: {
387 387
       EditLapseto() {
388
+        if (this.lapsetoForm.lapseto_time == ''){
389
+          this.$message.error("请选择时间")
390
+          return
391
+        }
388 392
         EditLapseto(this.lapsetoForm.patient_id, this.lapsetoForm).then(response => {
389 393
           if (response.data.state === 1) {
390 394
             this.$notify({

+ 20 - 26
src/xt_pages/user/rescueRecord.vue ファイルの表示

@@ -123,32 +123,26 @@
123 123
         this.$router.push('/patients/patients')
124 124
         return
125 125
       }
126
-      var now = new Date()
127
-      this.date = [now.getTime() - (7 * 24 * 60 * 60 * 1000), now.getTime()]
128
-
129
-      var year = new Date().getFullYear()
130
-      var month = new Date().getMonth() + 1
131
-      var day = new Date().getDate()
132
-      if (parseInt(month) < 10) {
133
-        month = '0' + month
134
-      }
135
-      if (parseInt(day) < 10) {
136
-        day = '0' + day
137
-      }
138
-      const endTime = year + '-' + month + '-' + day
139
-      this.end_time = endTime
140
-
141
-      var year = new Date().getFullYear()
142
-      var month = new Date().getMonth()
143
-      var day = new Date().getDate()
144
-      if (parseInt(month) < 10) {
145
-        month = '0' + month
146
-      }
147
-      if (parseInt(day) < 10) {
148
-        day = '0' + day
149
-      }
150
-      const startTime = year + '-' + month + '-' + day
151
-      this.start_time = startTime
126
+      var nowDate = new Date();
127
+      var nowYear = nowDate.getFullYear();
128
+      var nowMonth = nowDate.getMonth() + 1;
129
+      var nowDay = nowDate.getDate();
130
+      this.end_time =
131
+        nowYear +
132
+        "-" +
133
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
134
+        "-" +
135
+        (nowDay < 10 ? "0" + nowDay : nowDay);
136
+      nowDate.setMonth(nowDate.getMonth() - 1);
137
+      nowYear = nowDate.getFullYear();
138
+      nowMonth = nowDate.getMonth() + 1;
139
+      nowDay = nowDate.getDate();
140
+      this.start_time =
141
+        nowYear +
142
+        "-" +
143
+        (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
144
+        "-" +
145
+        (nowDay < 10 ? "0" + nowDay : nowDay);
152 146
 
153 147
       this.requestRescueRecords()
154 148
     },