ソースを参照

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

杨青 1 年間 前
コミット
1d8448d8e6

+ 9 - 2
src/api/schedule.js ファイルの表示

@@ -305,5 +305,12 @@ export function CreateScheduleTwo(id, schedule,id_two) {
305 305
 }
306 306
 
307 307
 
308
-
309
-
308
+export function ChangeScheduleTen(id,schedule){
309
+  
310
+  console.log('schedule', schedule)
311
+  return request({
312
+    url: '/api/schedule/changeschedule?id=' + id,
313
+    method: 'Put',
314
+    data: schedule
315
+  })
316
+}

+ 2 - 0
src/router/index.js ファイルの表示

@@ -9,6 +9,7 @@ import dialysis from './modules/dialysis'
9 9
 import patient from './modules/patient'
10 10
 import qcd from './modules/qcd'
11 11
 import Dialysisanalysis from './modules/Dialysisanalysis'
12
+import DialysisIndex from './modules/dialysisIndex'
12 13
 import stock from './modules/stock'
13 14
 import weight_sign from './modules/weight_sign'
14 15
 import workforce from './modules/workforce'
@@ -204,6 +205,7 @@ var _asy_router_map = [
204 205
   basicConfig,
205 206
   supply,
206 207
   Dialysisanalysis,// 新菜单6.1
208
+  DialysisIndex,
207 209
 ]
208 210
 
209 211
 var is_asy_router = process.env.NODE_ENV === 'production' // true; 设置为 true 强制进行路由验证

+ 1 - 1
src/views/layout/Layout.vue ファイルの表示

@@ -134,7 +134,7 @@ export default {
134 134
   created(){
135 135
     let menzhen = ['hospitalStation',"hospitalRecord","hospitalCharges","DepositManagement","hisTool",'outpatientRegistration','outpatientDoctorStation','outpatientCharges','outpatientPharmacy','outpatientRecord'];
136 136
     let bingli = ['User','createPatient'];
137
-    let touxi = ['home','workforce', 'dialysisrecord', 'dialysis', 'medicalScheduling', 'signIndex', 'qcd', 'device', 'quality_control'];
137
+    let touxi = ['home','workforce', 'dialysisrecord', 'dialysis', 'medicalScheduling', 'signIndex', 'qcd', 'device', 'quality_control','dialysis_index'];
138 138
     let kucun = ['stockManage','stockDrugs','selfPreparedMedicine','inventoryTransfer','wareHouseManage','otherManagement'];
139 139
     let caigou = ['supplyManage','supplyList'];
140 140
     let peizhi = ['system','roleManage','DepartManage', 'bedManagement', 'dictionaryManagement', 'templateManagement','showconfig','printTemplate','integration_config','basicConfig'];

+ 1 - 1
src/views/layout/components/Sidebar/index.vue ファイルの表示

@@ -120,7 +120,7 @@ export default {
120 120
             this.$emit('func',a)
121 121
           }
122 122
         }else if(newVal == '透析管理'){
123
-          let nameArr = ['home','workforce', 'dialysisrecord', 'dialysis', 'medicalScheduling', 'signIndex', 'qcd', 'device', 'quality_control','Dialysisanalysis'];
123
+          let nameArr = ['home','workforce', 'dialysisrecord', 'dialysis', 'medicalScheduling', 'signIndex', 'qcd', 'device', 'quality_control','dialysis_index','Dialysisanalysis'];
124 124
           // console.log('permission_routers',this.permission_routers)
125 125
           let routerArr = [];
126 126
           this.permission_routers.map(item => {

+ 2 - 1
src/xt_pages/dialysis/details/BasicInfor.vue ファイルの表示

@@ -29,7 +29,8 @@
29 29
       </li>
30 30
       <li>
31 31
         <label>年龄:</label>
32
-        <span>{{ getNewAge(patient)}}</span>
32
+        <span v-if="getNewAge(patient)>150">{{patient.age}}</span>
33
+        <span v-if="getNewAge(patient)<150">{{ getNewAge(patient)}}</span>
33 34
       </li>
34 35
       <li>
35 36
         <label>透析号 : </label>

+ 166 - 325
src/xt_pages/outpatientDoctorStation/template/printOne.vue ファイルの表示

@@ -21,292 +21,187 @@
21 21
         >
22 22
           {{ orgname }}处方笺
23 23
         </div>
24
-        <div >
25
-          <div class="infoTitle">
26
-            <p>姓名:{{ item.patient.name ? item.patient.name : "" }}</p>
27
-            <p>
28
-              性别:
29
-              <span v-if="item.patient.gender == 1">男</span>
30
-              <span v-if="item.patient.gender == 2">女</span>
31
-            </p>
32
-            <p>年龄:{{ getAge(item.patient) ? getAge(item.patient) : "" }}岁</p>
24
+        <!--<div class="printTitle">{{orgname}}处方笺</div>-->
25
+        <div class="infoTitle">
26
+          <p>姓名:{{ item.patient.name ? item.patient.name : "" }}</p>
27
+          <p>
28
+            性别:
29
+            <span v-if="item.patient.gender == 1">男</span>
30
+            <span v-if="item.patient.gender == 2">女</span>
31
+          </p>
32
+          <p>年龄:{{ getAge(item.patient) ? getAge(item.patient) : "" }}岁</p>
33
+        </div>
34
+        <div class="infoMain">
35
+          <div style="margin-bottom: 10px">
36
+            门诊号:{{ hisPatient.number ? hisPatient.number : "" }}
33 37
           </div>
34
-          <div class="infoMain">
35
-            <div style="margin-bottom: 10px">
36
-              门诊号:{{ hisPatient.number ? hisPatient.number : "" }}
37
-            </div>
38
-            <div style="margin-bottom: 10px">
39
-              科室:{{ item.info ? getDepart(item.info.departments) : "" }}
40
-            </div>
41
-            <div style="margin-bottom: 10px">
42
-              医保卡号:{{ item.hisPatient.number ? item.hisPatient.number : "" }}
43
-            </div>
44
-            <div style="margin-bottom: 10px" v-if="org_id != 10188">
45
-              电话:{{ item.patient.phone }}
46
-            </div>
47
-            <div style="margin-bottom: 10px" v-else>
48
-              日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}
49
-            </div>
50
-            <div>地址:{{ item.patient.home_address }}</div>
51
-            <div style="display: flex; width: 50%">
52
-              临床诊断:{{ getDiagnosis(item.info.diagnosis) }}
53
-            </div>
38
+          <div style="margin-bottom: 10px">
39
+            科室:{{ item.info ? getDepart(item.info.departments) : "" }}
40
+          </div>
41
+          <div style="margin-bottom: 10px">
42
+            医保卡号:{{ item.hisPatient.number ? item.hisPatient.number : "" }}
43
+          </div>
44
+          <div style="margin-bottom: 10px" v-if="org_id != 10188">
45
+            电话:{{ item.patient.phone }}
46
+          </div>
47
+          <div style="margin-bottom: 10px" v-else>
48
+            日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}
49
+          </div>
50
+          <div>地址:{{ item.patient.home_address }}</div>
51
+          <div style="display: flex; width: 50%">
52
+            临床诊断:{{ getDiagnosis(item.info.diagnosis) }}
54 53
           </div>
55 54
         </div>
56
-          <div class="prescriptionBox" >
57
-            <div class="Rp">Rp:</div>
58
-            <div
59
-              class="drugsBox"
60
-              v-for="(it, index) in item.advices" :key="index" 
61
-              :style="{'page-break-after':index==yi&&item.advices.length>5? 'always':'auto'}"
62
-            >
63
-            <!-- class="drugsBox"  item.advices.length>=5 ? 'danzhang' : 'drugsBox'  :style="{'page-break-after':index==yi&&item.advices.length>3? 'always':'auto'}"-->
64
-              <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div> -->
65
-              <template v-if="index==yi+1&&item.advices.length>5">
66
-                <div style="margin: 20px 0px;">
67
-                  <div class="infoTitle">
68
-                    <p>姓名:{{ item.patient.name ? item.patient.name : "" }}</p>
69
-                    <p>
70
-                      性别:
71
-                      <span v-if="item.patient.gender == 1">男</span>
72
-                      <span v-if="item.patient.gender == 2">女</span>
73
-                    </p>
74
-                    <p>年龄:{{ getAge(item.patient) ? getAge(item.patient) : "" }}岁</p>
75
-                  </div>
76
-                  <div class="infoMain">
77
-                    <div style="margin-bottom: 10px">
78
-                      门诊号:{{ hisPatient.number ? hisPatient.number : "" }}
79
-                    </div>
80
-                    <div style="margin-bottom: 10px">
81
-                      科室:{{ item.info ? getDepart(item.info.departments) : "" }}
82
-                    </div>
83
-                    <div style="margin-bottom: 10px">
84
-                      医保卡号:{{ item.hisPatient.number ? item.hisPatient.number : "" }}
85
-                    </div>
86
-                    <div style="margin-bottom: 10px" v-if="org_id != 10188">
87
-                      电话:{{ item.patient.phone }}
88
-                    </div>
89
-                    <div style="margin-bottom: 10px" v-else>
90
-                      日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}
91
-                    </div>
92
-                    <div>地址:{{ item.patient.home_address }}</div>
93
-                    <div style="display: flex; width: 50%">
94
-                      临床诊断:{{ getDiagnosis(item.info.diagnosis) }}
95
-                    </div>
96
-                  </div>
97
-                </div>
98
-              </template>
99
-              <div style="position: relative;">
100
-                <div class="drugsOne" >
101
-                  <span style="font-weight: bold" >
102
-                    {{ index + 1 + "." }}
103
-                  </span>
104
-                  {{ it.advice_name ? it.advice_name : "" }}&nbsp;&nbsp;
105
-                  <span v-if="it.drug.min_unit != it.drug.dose_unit">
106
-                    {{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* {{ it.drug.min_number }}{{ it.drug.min_unit }}/
107
-                    {{it.drug.max_unit}}
108
-                  </span>&nbsp;
109
-                 
110
-                  <div style="margin-left: 70px">
111
-                    <span >用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
112
-                    >&nbsp;&nbsp;<span
113
-                      >{{ it.execution_frequency }}&nbsp;{{
114
-                        it.delivery_way
115
-                      }}&nbsp;</span>&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
116
-                  </div>
117
-                  
118
-                </div>
119
-                <div style="display: inline-block;position: absolute;left:85%;top:10px;margin-left: 10px;">
120
-                  ×&nbsp;{{ it.prescribing_number}}{{ it.prescribing_number_unit }}
121
-                </div>
122
-              </div>
123
-              <template v-if="index==yi&&item.advices.length>5">
124
-                <div style="margin: 20px 0px;">
125
-                  <div class="doctorBox" v-if="org_id != 10188 && org_id != 0">
126
-                    <p v-if="org_id == 10217 || org_id == 0">
127
-                      医师:
128
-                      <span
129
-                        style="width: 100px; display: inline-block"
130
-                        v-if="item.creator == ''"
131
-                      >
132
-                        {{ item.doctor }}
133
-                      </span>
134
-                      <span
135
-                        style="width: 100px; display: inline-block"
136
-                        v-else-if="doc_name != ''"
137
-                      >
138
-                        {{ doc_name }}
139
-                      </span>
140
-                      <img
141
-                        style="height: 50px;"
142
-                        :src="setAdminUserES(item.creator,item.doctor)"
143
-                        alt=""
144
-                        srcset=""
145
-
146
-                      />
147
-                    </p>
148
-                    <p v-else>
149
-                      医师: {{ item.doctor ? item.doctor : "" }}
150
-                    </p>
151
-                    <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
152
-                  </div>
153
-
154
-                  <div class="doctorBoxs" style="border-bottom: 2px solid #000;" v-if="org_id == 10188 || org_id == 0">
155
-                    <p>医师:{{ item.doctor ? item.doctor : "" }}</p>
156
-                  </div>
157
-                  <div class="actionBar" v-if="org_id != 10188 && org_id != 0">
158
-                    
159
-                    <p>审核:</p>
160
-                    <p>配对:</p>
161
-                    <p>核对:</p>
162
-                    <p>发药:</p>
163
-                    <p>
164
-                      药费:{{
165
-                        getTotalOne(item.id).toFixed(2)
166
-                          ? getTotalOne(item.id).toFixed(2)
167
-                          : 0
168
-                      }}元
169
-                    </p>
170
-                    <!--            <p>药费:466.2元</p>-->
171
-                  </div>
172
-                  <div class="actionBar" v-else>
173
-                    <p >审核、调配:</p>
174
-                    <p >核对、发药:</p>
175
-                    <p >
176
-                      药费:{{
177
-                        getTotalOne(item.id).toFixed(2)
178
-                          ? getTotalOne(item.id).toFixed(2)
179
-                          : 0
180
-                      }}元
181
-                    </p>
182
-                    <!--            <p>药费:551.2元</p>-->
183
-                    <!--            <p>药费:466.2元</p>-->
184
-                  </div>
185
-                </div>
186
-              </template>
55
+        <div class="prescriptionBox" >
56
+          <div class="Rp">Rp:</div>
57
+          <div
58
+            class="drugsBox"
59
+            v-for="(it, index) in item.advices"
60
+            :key="index"
61
+            :style="{'page-break-after':index==yi&&item.advices.length>5? 'always':'auto'}"
62
+          >
63
+          <!-- class="drugsBox"  item.advices.length>=5 ? 'danzhang' : 'drugsBox'  'page-break-after':item.advices.length>=3&& item.advices[2]?'always':'auto'-->
64
+            <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div> -->
65
+            <div class="drugsOne">
66
+              <span style="font-weight: bold">{{ index + 1 + "." }}</span
67
+              >{{ it.advice_name ? it.advice_name : "" }}&nbsp;&nbsp;<span
68
+                v-if="it.drug.min_unit != it.drug.dose_unit"
69
+                >{{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* &nbsp;</span
70
+              >{{ it.drug.min_number }}{{ it.drug.min_unit }}/{{
71
+                it.drug.max_unit
72
+              }}&nbsp;×&nbsp; {{ it.prescribing_number
73
+              }}{{ it.prescribing_number_unit }}
187 74
             </div>
75
+            <div style="margin-left: 100px">
76
+              <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
77
+              >&nbsp;&nbsp;<span
78
+                >{{ it.execution_frequency }}&nbsp;{{
79
+                  it.delivery_way
80
+                }}&nbsp;</span
81
+              >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
82
+            </div>
83
+          </div>
188 84
 
189
-            <div
190
-              class="drugsBox"
191
-              v-for="(it, i) in item.additionalcharge"
192
-              :key="i"
193
-            >
194
-              <div class="drugsOne">
195
-                {{ it.item_name ? it.item_name : "" }}:&nbsp;{{ it.price }}元/{{
196
-                  it.count
197
-                }}次
198
-              </div>
85
+          <div
86
+            class="drugsBox"
87
+            v-for="(it, i) in item.additionalcharge"
88
+            :key="i"
89
+          >
90
+            <div class="drugsOne">
91
+              {{ it.item_name ? it.item_name : "" }}:&nbsp;{{ it.price }}元/{{
92
+                it.count
93
+              }}次
199 94
             </div>
95
+          </div>
200 96
 
201
-            <div
202
-              class="drugsBox"
203
-              v-for="(it, index) in item.project"
204
-              :key="index"
205
-            >
206
-              <div class="drugsOne">
207
-                <span style="font-weight: bold">{{ index + 1 + "." }}</span
208
-                >{{
209
-                  it.type == 2
97
+          <div
98
+            class="drugsBox"
99
+            v-for="(it, index) in item.project"
100
+            :key="index"
101
+          >
102
+            <div class="drugsOne">
103
+              <span style="font-weight: bold">{{ index + 1 + "." }}</span
104
+              >{{
105
+                it.type == 2
106
+                  ? getProjectName(it.project_id)
210 107
                     ? getProjectName(it.project_id)
211
-                      ? getProjectName(it.project_id)
212
-                      : ""
213
-                    : it.good_info.good_name
214
-                }}&nbsp;&nbsp;{{ it.single_dose
215
-                }}{{ it.single_dose_unit }}&nbsp;×&nbsp; {{ it.count }}{{ unit }}
216
-              </div>
217
-              <div style="margin-left: 100px">
218
-                <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
219
-                >&nbsp;&nbsp;<span>{{ it.delivery_way }}</span
220
-                >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
221
-              </div>
108
+                    : ""
109
+                  : it.good_info.good_name
110
+              }}&nbsp;&nbsp;{{ it.single_dose
111
+              }}{{ it.single_dose_unit }}&nbsp;×&nbsp; {{ it.count }}{{ unit }}
222 112
             </div>
223
-            
224
-            <div
225
-              class="drugsBox"
226
-              v-for="(it, i) in item.additionalcharge"
227
-              :key="i"
228
-            >
229
-              <div class="drugsOne">
230
-                {{ it.project_id ? it.project_id : "" }}:&nbsp;{{
231
-                  it.price.toFixed(2)
232
-                }}元/{{ it.count }}次
233
-              </div>
113
+            <div style="margin-left: 100px">
114
+              <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
115
+              >&nbsp;&nbsp;<span>{{ it.delivery_way }}</span
116
+              >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
234 117
             </div>
235
-            <div style="text-align: center">(以下空白)</div>
236 118
           </div>
237
-        
238
-          <div class="doctorBox" v-if="org_id != 10188 && org_id != 0">
239
-            <p v-if="org_id == 10217 || org_id == 0">
240
-              医师:
241
-              <span
242
-                style="width: 100px; display: inline-block"
243
-                v-if="item.creator == ''"
244
-              >
245
-                {{ item.doctor }}
246
-              </span>
247
-              <span
248
-                style="width: 100px; display: inline-block"
249
-                v-else-if="doc_name != ''"
250
-              >
251
-                {{ doc_name }}
252
-              </span>
253
-              <img
254
-                style="height: 50px;"
255
-                :src="setAdminUserES(item.creator,item.doctor)"
256
-                alt=""
257
-                srcset=""
258
-
259
-              />
260
-            </p>
261
-            <p v-else>
262
-              医师: {{ item.doctor ? item.doctor : "" }}
263
-            </p>
264
-            <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
119
+          
120
+          <div
121
+            class="drugsBox"
122
+            v-for="(it, i) in item.additionalcharge"
123
+            :key="i"
124
+          >
125
+            <div class="drugsOne">
126
+              {{ it.project_id ? it.project_id : "" }}:&nbsp;{{
127
+                it.price.toFixed(2)
128
+              }}元/{{ it.count }}次
129
+            </div>
265 130
           </div>
131
+          <div style="text-align: center">(以下空白)</div>
132
+        </div>
133
+        <div class="doctorBox" v-if="org_id != 10188 && org_id != 0">
134
+          <p v-if="org_id == 10217 || org_id == 0">
135
+            医师:
136
+            <span
137
+              style="width: 100px; display: inline-block"
138
+              v-if="item.creator == ''"
139
+            >
140
+              {{ item.doctor }}
141
+            </span>
142
+            <span
143
+              style="width: 100px; display: inline-block"
144
+              v-else-if="doc_name != ''"
145
+            >
146
+              {{ doc_name }}
147
+            </span>
148
+            <img
149
+              style="height: 50px;"
150
+              :src="setAdminUserES(item.creator,item.doctor)"
151
+              alt=""
152
+              srcset=""
266 153
 
267
-          <div class="doctorBoxs" style="border-bottom: 2px solid #000;" v-if="org_id == 10188 || org_id == 0">
268
-            <p>医师:{{ item.doctor ? item.doctor : "" }}</p>
269
-          </div>
270
-          <!-- <div class="doctorBoxtwo" v-if="org_id == 10188 || org_id == 0">
271
-            <p >审核、调配:</p>
272
-            <p >核对、发药:</p>
273
-            <p style="margin-right: 43px">药师:</p>
274
-          </div> -->
154
+            />
155
+          </p>
156
+          <p v-else>
157
+            医师: {{ item.doctor ? item.doctor : "" }}
158
+          </p>
159
+          <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
160
+        </div>
275 161
 
276
-          <div class="actionBar" v-if="org_id != 10188 && org_id != 0">
277
-            <!-- <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
278
-                  <p>配对:</p>
279
-                  <p>核对:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
280
-                  <p>发药:{{getDoctor(item.advices[0].execution_staff)?getDoctor(item.advices[0].execution_staff):""}}</p>
281
-                  <p>药费:{{getTotalOne(item.id)?getTotalOne(item.id):0}}元</p> -->
162
+        <div class="doctorBoxs" style="border-bottom: 2px solid #000;" v-if="org_id == 10188 || org_id == 0">
163
+          <p>医师:{{ item.doctor ? item.doctor : "" }}</p>
164
+        </div>
165
+        <!-- <div class="doctorBoxtwo" v-if="org_id == 10188 || org_id == 0">
166
+          <p >审核、调配:</p>
167
+          <p >核对、发药:</p>
168
+          <p style="margin-right: 43px">药师:</p>
169
+        </div> -->
282 170
 
283
-            <p>审核:</p>
284
-            <p>配对:</p>
285
-            <p>核对:</p>
286
-            <p>发药:</p>
287
-            <p>
288
-              药费:{{
289
-                getTotalOne(item.id).toFixed(2)
290
-                  ? getTotalOne(item.id).toFixed(2)
291
-                  : 0
292
-              }}元
293
-            </p>
294
-            <!--            <p>药费:466.2元</p>-->
295
-          </div>
296
-          <div class="actionBar" v-else>
297
-            <p >审核、调配:</p>
298
-            <p >核对、发药:</p>
299
-            <p >
300
-              药费:{{
301
-                getTotalOne(item.id).toFixed(2)
302
-                  ? getTotalOne(item.id).toFixed(2)
303
-                  : 0
304
-              }}元
305
-            </p>
306
-            <!--            <p>药费:551.2元</p>-->
307
-            <!--            <p>药费:466.2元</p>-->
308
-          </div>
309
-        <!-- </div> -->
171
+        <div class="actionBar" v-if="org_id != 10188 && org_id != 0">
172
+          <!-- <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
173
+                 <p>配对:</p>
174
+                 <p>核对:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
175
+                 <p>发药:{{getDoctor(item.advices[0].execution_staff)?getDoctor(item.advices[0].execution_staff):""}}</p>
176
+                 <p>药费:{{getTotalOne(item.id)?getTotalOne(item.id):0}}元</p> -->
177
+
178
+          <p>审核:</p>
179
+          <p>配对:</p>
180
+          <p>核对:</p>
181
+          <p>发药:</p>
182
+          <p>
183
+            药费:{{
184
+              getTotalOne(item.id).toFixed(2)
185
+                ? getTotalOne(item.id).toFixed(2)
186
+                : 0
187
+            }}元
188
+          </p>
189
+          <!--            <p>药费:466.2元</p>-->
190
+        </div>
191
+        <div class="actionBar" v-else>
192
+          <p >审核、调配:</p>
193
+          <p >核对、发药:</p>
194
+          <p >
195
+            药费:{{
196
+              getTotalOne(item.id).toFixed(2)
197
+                ? getTotalOne(item.id).toFixed(2)
198
+                : 0
199
+            }}元
200
+          </p>
201
+          <!--            <p>药费:551.2元</p>-->
202
+          <!--            <p>药费:466.2元</p>-->
203
+        </div>
204
+        <!-- <div style="page-break-after: always"></div> -->
310 205
       </div>
311 206
     </div>
312 207
   </div>
@@ -332,10 +227,6 @@ export default{
332 227
       doctorList: [],
333 228
       advicePrint: {},
334 229
       yi:4,
335
-      arr:[],
336
-      arrs:{},
337
-      advicess:[],
338
-      page:sessionStorage.getItem('dayin'),
339 230
       patient: {},
340 231
       tableData: [],
341 232
       prescriptionInfo: [],
@@ -437,21 +328,6 @@ export default{
437 328
           this.prescriptions = advicePrint;
438 329
 
439 330
           this.doctorList_1 = response.data.data.eles;
440
-        //  for(let i=0;i<this.advicePrint.length;i++){
441
-        //   this.advicess=advicePrint[i].advices
442
-        //  }
443
-        //  for(let j=0;j<this.advicess.length;j++){
444
-        //     for(let x=j+1;x<this.advicess.length;x++){
445
-        //       if(this.advicess[j].groupno == this.advicess[x].groupno){
446
-        //         this.arr.push(this.advicess.splice(x,1))
447
-        //         // this.arrs=this.advicess.splice(x,1)
448
-        //       }
449
-        //     }
450
-        //   }
451
-        // this.merge(this.advicess)
452
-          // console.log('4444444',this.arrs);
453
-        //  console.log('55555555',this.arr);
454
-        //  console.log('6666666',this.advicess);
455 331
           console.log(this.doctorList_1, "医生列表");
456 332
           if (this.doctorList_1.length > 0) {
457 333
             var operatorsLen = this.doctorList_1.length;
@@ -584,26 +460,6 @@ export default{
584 460
       }
585 461
       return name;
586 462
     },
587
-    merge(arrA){
588
-      var len=arrA.lenfth
589
-      // for(let j=0;j<this.advicess.length;j++){
590
-      //   for(let x=j+1;x<this.advicess.length;x++){
591
-      //     if(this.advicess[j].groupno == this.advicess[x].groupno){
592
-      //       // this.arr.push(this.advicess.splice(x,1))
593
-      //       this.arrs=this.advicess.splice(x,1)
594
-      //     }
595
-      //   }
596
-      // }
597
-      for(let j=0;j<len;j++){
598
-        for(let x=j+1;x<len;x++){
599
-          if(arrA[j].groupno == arrA[x].groupno){
600
-            this.arr.push(arrA.splice(x,1))
601
-          }
602
-        }
603
-      }
604
-      console.log('777777777',this.arr);
605
-      return this.arr
606
-    }
607 463
   },
608 464
   created() {
609 465
     this.getAllDoctorList();
@@ -613,20 +469,7 @@ export default{
613 469
     var xtuser = this.$store.getters.xt_user;
614 470
     this.orgname = xtuser.org.org_name;
615 471
     this.org_id = xtuser.org.id;
616
-    
617
-    // for(let j=0;j<this.advicess.length;j++){
618
-    //   console.log('44444444');
619
-    //   for(let x=j+1;x<this.advicess.length;x++){
620
-    //     if(this.advicess[j].groupno == this.advicess[x].groupno){
621
-    //       this.arr.push(this.advicess.splice(x,1))
622
-    //     }
623
-    //   }
624
-    // }
625
-    // console.log('777777777',this.arr[0].advice_name);
626
-    // return this.arr
627
-    
628 472
   },
629
-  
630 473
   watch: {
631 474
     ids: function (val) {
632 475
       this.ids = val;
@@ -683,14 +526,12 @@ export default{
683 526
 .drugsBox {
684 527
   padding-left: 40px;
685 528
   margin-bottom: 10px;
686
-  position: relative;
687 529
 }
688 530
 .drugsBox div {
689 531
   line-height: 20px;
690 532
 }
691 533
 .drugsOne {
692 534
   line-height: 24px;
693
-  display: inline-block;
694 535
 }
695 536
 .drugsOne span {
696 537
   margin-right: 20px;

+ 75 - 2
src/xt_pages/workforce/components/editTableData.vue ファイルの表示

@@ -1339,6 +1339,8 @@
1339 1339
           >
1340 1340
           </el-option>
1341 1341
         </el-select>
1342
+
1343
+       
1342 1344
       </div>
1343 1345
       <span slot="footer" class="dialog-footer" style="text-align: center">
1344 1346
         <el-button
@@ -1362,7 +1364,7 @@
1362 1364
 
1363 1365
     <!-- 双击弹窗 -->
1364 1366
     <el-dialog
1365
-        title="调整模式"
1367
+        title="调整模式99999"
1366 1368
         :visible.sync="msDialogVisible"
1367 1369
         width="500px"
1368 1370
         v-loading="changing_mode"
@@ -1376,12 +1378,12 @@
1376 1378
             :rules="changeRules"
1377 1379
         >
1378 1380
           <el-form-item label="" prop="mode_id">
1381
+            <span>透析模式:</span>
1379 1382
             <el-select
1380 1383
                 v-model="changeSchedule.mode_id"
1381 1384
                 placeholder="请选择"
1382 1385
                 style="width: 100%"
1383 1386
             >
1384
-            <!-- @change="changeSchedulemodeid" -->
1385 1387
               <el-option
1386 1388
                   :disabled="item.id == currentData.mode_id"
1387 1389
                   v-for="item in modeOptions"
@@ -1392,6 +1394,59 @@
1392 1394
               </el-option>
1393 1395
             </el-select>
1394 1396
           </el-form-item>
1397
+          
1398
+          <el-form-item>
1399
+            <span>透析班次:</span>
1400
+            <el-select
1401
+                v-model="changeSchedule.schedule_type"
1402
+                placeholder="请选择"
1403
+                style="width: 100%"
1404
+                @change="changeScheduleType"
1405
+            >
1406
+              <el-option
1407
+                  v-for="item in scheduleType"
1408
+                  :key="item.id"
1409
+                  :label="item.name"
1410
+                  :value="item.id"
1411
+              >
1412
+              </el-option>
1413
+            </el-select>
1414
+          </el-form-item>
1415
+        
1416
+          <el-form-item>
1417
+            <span>透析分区:</span>
1418
+            <el-select
1419
+              v-model="changeSchedule.partition_id"
1420
+              placeholder="请选择"
1421
+              style="width: 100%"
1422
+              @change="changePartition"
1423
+              >
1424
+              <el-option
1425
+                  v-for="(item, index) in zone_names"
1426
+                  :key="index"
1427
+                  :label="item"
1428
+                  :value="item"
1429
+              >
1430
+              </el-option>
1431
+              </el-select>
1432
+          </el-form-item>
1433
+
1434
+          <el-form-item>
1435
+            <span>透析床位:</span>
1436
+            <el-select
1437
+                v-model="device_id"
1438
+                placeholder="请选择"
1439
+                style="width: 100%"
1440
+            >
1441
+              <el-option
1442
+                  v-for="item in current_devices"
1443
+                  :key="item.id"
1444
+                  :label="item.number"
1445
+                  :value="item.id"
1446
+              >
1447
+              </el-option>
1448
+            </el-select>
1449
+          </el-form-item>
1395 1450
         </el-form>
1396 1451
       </div>
1397 1452
       <span slot="footer" class="dialog-footer">
@@ -1719,6 +1774,7 @@ import {
1719 1774
   getUrgentScheduleInitData,
1720 1775
   getWeekPanelsOne,
1721 1776
   getAllZones,
1777
+  ChangeScheduleTen
1722 1778
 } from "@/api/schedule";
1723 1779
 import ScheduleItem from "./ScheduleItem";
1724 1780
 
@@ -4951,6 +5007,20 @@ export default {
4951 5007
           this.tiaoZhengType = 1;
4952 5008
           this.msDialogVisible=true
4953 5009
         }
5010
+        console.log("ROW22O2O2OWOOW",row)
5011
+        console.log("CHANGESHCUEL2O2O2O",this.changeSchedule)
5012
+        console.log("WOOWOWOWOWOW",this.zones)
5013
+        this.changeSchedule.mode_id = row[column.property].mode_id
5014
+        var zone_names = ""
5015
+        for(let i=0;i<this.zones.length;i++){
5016
+          if(row.zone_id == this.zones[i].id){
5017
+           zone_names = this.zones[i].name
5018
+          }
5019
+        }
5020
+        this.changeSchedule.partition_id = zone_names
5021
+        this.changeSchedule.schedule_type = week[1];
5022
+        this.changeSchedule.bed_id = row.jihao_id;
5023
+        this.changeSchedule.schedule_week = week[0];
4954 5024
       }
4955 5025
 
4956 5026
     },
@@ -4995,8 +5065,10 @@ export default {
4995 5065
 
4996 5066
     //  双击弹窗确认按钮
4997 5067
     submitMode(formName) {
5068
+      console.log("wowowoowow",this.changeSchedule)
4998 5069
       this.changing_mode = true;
4999 5070
       this.changeSchedule.change_action = "change_mode";
5071
+
5000 5072
       ChangeSchedule(this.currentData.id, this.changeSchedule)
5001 5073
           .then((response) => {
5002 5074
             if (response.data.state == 0) {
@@ -5698,6 +5770,7 @@ export default {
5698 5770
             this.zoneIdList.push(zones[i].id);
5699 5771
           }
5700 5772
           this.zones.push(...zones);
5773
+          console.log("zoneswoowowow",this.zones)
5701 5774
           var strArr = this.zoneIdList.join(",");
5702 5775
 
5703 5776
           this.strArr = strArr;

+ 7 - 3
src/xt_pages/workforce/components/tableData.vue ファイルの表示

@@ -542,6 +542,11 @@
542 542
               >
543 543
               </el-option>
544 544
             </el-select>
545
+
546
+
547
+           
548
+
549
+
545 550
           </el-form-item>
546 551
         </el-form>
547 552
       </div>
@@ -1010,7 +1015,7 @@ export default {
1010 1015
     this.modeOptions = this.$store.getters.treatment_mode;
1011 1016
 
1012 1017
     this.partitions = this.partitionsProp;
1013
-
1018
+    console.log("分区oowowoow",this.partitions)
1014 1019
 
1015 1020
     var contagions = this.$store.getters.contagions;
1016 1021
     if (contagions.length > 0) {
@@ -2649,8 +2654,7 @@ export default {
2649 2654
     submitMode(formName) {
2650 2655
       this.changing_mode = true;
2651 2656
       this.changeSchedule.change_action = "change_mode";
2652
-      ChangeSchedule(this.currentData.id, this.changeSchedule)
2653
-        .then(response => {
2657
+      ChangeSchedule(this.currentData.id, this.changeSchedule).then(response => {
2654 2658
           if (response.data.state == 0) {
2655 2659
             this.$message.error(response.data.msg);
2656 2660
           } else {