Browse Source

新分支

28169 1 year ago
parent
commit
8e1da4c810

+ 9 - 2
src/api/schedule.js View File

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

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

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

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

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

+ 4 - 4
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

@@ -1288,11 +1288,11 @@
1288 1288
             v-if="org_template_info.template_id == 66">
1289 1289
 
1290 1290
           </DialysisPrintOrderSixtysix>
1291
-          <DialysisPrintOrdersixtySeven
1291
+          <!-- <DialysisPrintOrdersixtySeven
1292 1292
           v-bind:childResponse="childResponse"
1293 1293
             v-if="org_template_info.template_id == 67">
1294 1294
 
1295
-          </DialysisPrintOrdersixtySeven>
1295
+          </DialysisPrintOrdersixtySeven> -->
1296 1296
         </div>
1297 1297
       </el-container>
1298 1298
     </div>
@@ -1377,7 +1377,7 @@ import DialysisPrintOrderSixtyTwo from "./template/DialysisPrintOrderSixtyTwo"
1377 1377
 import DialysisPrintOrderSixtyfour from './template/DialysisPrintOrderSixtyfour'
1378 1378
 import DialysisPrintOrderSixtyFive from "./template/DialysisPrintOrderSixtyFive.vue"
1379 1379
 import DialysisPrintOrderSixtysix from './template/DialysisPrintOrderSixtysix.vue'
1380
-import DialysisPrintOrdersixtySeven from './template/DialysisPrintOrdersixtySeven.vue'
1380
+// import DialysisPrintOrdersixtySeven from './template/DialysisPrintOrdersixtySeven.vue'
1381 1381
 export default {
1382 1382
   name: "dialysisPrintOrder",
1383 1383
   components: {
@@ -1385,7 +1385,7 @@ export default {
1385 1385
     DialysisPrintOrderSixtyTwo,
1386 1386
     DialysisPrintOrderSixtyOne,
1387 1387
     DialysisPrintOrderSixty,
1388
-    DialysisPrintOrdersixtySeven,
1388
+    // DialysisPrintOrdersixtySeven,
1389 1389
     DialysisPrintOrderFiftyNine,
1390 1390
     DialysisPrintOrderFiftyEight,
1391 1391
     DialysisPrintOrderFiftySeven,

+ 8 - 8
src/xt_pages/outpatientCharges/invoiceTemplate/printSix.vue View File

@@ -1,12 +1,12 @@
1 1
 <template>
2
-    <div id='invoice-print'>
2
+    <div id='invoice-print' style="position: relative;">
3 3
         <div v-for='(i,index) in pageArr.length' :key="index" >
4 4
             <div :style="{position: 'absolute',top:(20 + (index * 660))  + 'px',left:200+ 'px',}">盐城大丰悦达金骆驼血液透析中心</div>
5
-            <div :style="{position: 'absolute',top:(70 + (index * 660))  + 'px',left:150+ 'px',}">{{ list.order_number }}</div>
5
+            <div :style="{position: 'absolute',top:(70 + (index * 660))  + 'px',left:90+ 'px',}">{{ list.order_number }}</div>
6 6
             <div style="display:flex;justify-content: space-between;">
7
-                <div :style="{position: 'absolute',top:(100 + (index * 660))  + 'px',left:100+ 'px',}">{{ paramsObj.name }}</div>
7
+                <div :style="{position: 'absolute',top:(110 + (index * 660))  + 'px',left:20+ 'px',}">{{ paramsObj.name }}</div>
8 8
             </div>
9
-            <div :style="{position: 'absolute',top:(130 + (index * 660))  + 'px',left:100+ 'px',}">
9
+            <div :style="{position: 'absolute',top:(160 + (index * 660))  + 'px',left:20+ 'px',}">
10 10
                 <div v-if="list.westernMedicineCostTotal">西药 {{ list.westernMedicineCostTotal }}</div>
11 11
                 <div v-if="list.treatCostTotal">治疗费 {{ list.treatCostTotal }}</div>
12 12
                 <div v-if="list.bedCostTotal">床位费 {{ list.bedCostTotal }}</div>
@@ -16,7 +16,7 @@
16 16
                 <div v-if="list.otherCostTotal">其他费 {{ list.otherCostTotal }}</div>
17 17
                 <div v-if="list.materialCostTotal">材料费 {{ list.materialCostTotal }}</div>
18 18
             </div>
19
-            <div :style="{position: 'absolute',top:(130 + (index * 660))  + 'px',left:280+ 'px'}">
19
+            <div :style="{position: 'absolute',top:(160 + (index * 660))  + 'px',left:220+ 'px'}">
20 20
                 <div v-for="item in list.order_info.slice(index * 10,(index * 10) + pageArr[index])">
21 21
                     <span style="display:inline-block;width:200px;">
22 22
                         <span v-if="item.advice.id == 0">
@@ -41,9 +41,9 @@
41 41
                     </span>
42 42
                 </div>
43 43
             </div>
44
-            <div :style="{position: 'absolute',top:(340 + (index * 660))  + 'px',left:100+ 'px'}">{{ zhongwen }}</div>
45
-            <div :style="{position: 'absolute',top:(340 + (index * 660))  + 'px',left:480+ 'px'}">{{ list.medfee_sumamt }}</div>
46
-            <div v-if="index == pageArr.length - 1" :style="{position: 'absolute',top:(370 + (index * 660))  + 'px',left:110+ 'px',width:100 + '%',fontSize:12+'px'}">
44
+            <div :style="{position: 'absolute',top:(370 + (index * 660))  + 'px',left:50+ 'px'}">{{ zhongwen }}</div>
45
+            <div :style="{position: 'absolute',top:(370 + (index * 660))  + 'px',left:480+ 'px'}">{{ list.medfee_sumamt }}</div>
46
+            <div v-if="index == pageArr.length - 1" :style="{position: 'absolute',top:(400 + (index * 660))  + 'px',left:110+ 'px',width:100 + '%',fontSize:12+'px'}">
47 47
                 <div style="display:flex;">
48 48
                   <div style="width:140px">医疗总费用:{{ list.order.medfee_sumamt }}</div>
49 49
                   <div style="width:140px">基金支付总额:{{ list.order.fund_pay_sumamt }}</div>

+ 166 - 337
src/xt_pages/outpatientDoctorStation/template/printOne.vue View File

@@ -21,304 +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 advicess" :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" style="border-right: 1px solid black; width: 80%;">
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
-                  <div>
110
-                    <template v-if="arr[0][0].groupno==it.groupno">
111
-                      <div >
112
-                        <!--  v-for="(its,indexs) in arr" :key="indexs"-->
113
-                        <span style="margin-left: 38px;">{{arr[0][0].advice_name ? arr[0][0].advice_name : ""}}</span>&nbsp;&nbsp;
114
-                        <span v-if="arr[0][0].drug.min_unit != arr[0][0].drug.dose_unit">
115
-                          {{ arr[0][0].drug.dose }}{{ arr[0][0].drug.dose_unit }}&nbsp;* {{ arr[0][0].drug.min_number }}{{ arr[0][0].drug.min_unit }}/
116
-                          {{arr[0][0].drug.max_unit}}
117
-                        </span>&nbsp;
118
-                      </div>
119
-                    </template>
120
-                  </div>
121
-                  
122
-                  <div style="margin-left: 70px">
123
-                    <span >用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
124
-                    >&nbsp;&nbsp;<span
125
-                      >{{ it.execution_frequency }}&nbsp;{{
126
-                        it.delivery_way
127
-                      }}&nbsp;</span>&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
128
-                  </div>
129
-                  
130
-                </div>
131
-                <div style="display: inline-block;position: absolute;left:85%;top:10px;margin-left: 10px;">
132
-                  ×&nbsp;{{ it.prescribing_number}}{{ it.prescribing_number_unit }}
133
-                </div>
134
-              </div>
135
-              <template v-if="index==yi&&item.advices.length>5">
136
-                <div style="margin: 20px 0px;">
137
-                  <div class="doctorBox" v-if="org_id != 10188 && org_id != 0">
138
-                    <p v-if="org_id == 10217 || org_id == 0">
139
-                      医师:
140
-                      <span
141
-                        style="width: 100px; display: inline-block"
142
-                        v-if="item.creator == ''"
143
-                      >
144
-                        {{ item.doctor }}
145
-                      </span>
146
-                      <span
147
-                        style="width: 100px; display: inline-block"
148
-                        v-else-if="doc_name != ''"
149
-                      >
150
-                        {{ doc_name }}
151
-                      </span>
152
-                      <img
153
-                        style="height: 50px;"
154
-                        :src="setAdminUserES(item.creator,item.doctor)"
155
-                        alt=""
156
-                        srcset=""
157
-
158
-                      />
159
-                    </p>
160
-                    <p v-else>
161
-                      医师: {{ item.doctor ? item.doctor : "" }}
162
-                    </p>
163
-                    <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
164
-                  </div>
165
-
166
-                  <div class="doctorBoxs" style="border-bottom: 2px solid #000;" v-if="org_id == 10188 || org_id == 0">
167
-                    <p>医师:{{ item.doctor ? item.doctor : "" }}</p>
168
-                  </div>
169
-                  <div class="actionBar" v-if="org_id != 10188 && org_id != 0">
170
-                    
171
-                    <p>审核:</p>
172
-                    <p>配对:</p>
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>药费:466.2元</p>-->
183
-                  </div>
184
-                  <div class="actionBar" v-else>
185
-                    <p >审核、调配:</p>
186
-                    <p >核对、发药:</p>
187
-                    <p >
188
-                      药费:{{
189
-                        getTotalOne(item.id).toFixed(2)
190
-                          ? getTotalOne(item.id).toFixed(2)
191
-                          : 0
192
-                      }}元
193
-                    </p>
194
-                    <!--            <p>药费:551.2元</p>-->
195
-                    <!--            <p>药费:466.2元</p>-->
196
-                  </div>
197
-                </div>
198
-              </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 }}
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>
199 82
             </div>
83
+          </div>
200 84
 
201
-            <div
202
-              class="drugsBox"
203
-              v-for="(it, i) in item.additionalcharge"
204
-              :key="i"
205
-            >
206
-              <div class="drugsOne">
207
-                {{ it.item_name ? it.item_name : "" }}:&nbsp;{{ it.price }}元/{{
208
-                  it.count
209
-                }}次
210
-              </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
+              }}次
211 94
             </div>
95
+          </div>
212 96
 
213
-            <div
214
-              class="drugsBox"
215
-              v-for="(it, index) in item.project"
216
-              :key="index"
217
-            >
218
-              <div class="drugsOne">
219
-                <span style="font-weight: bold">{{ index + 1 + "." }}</span
220
-                >{{
221
-                  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)
222 107
                     ? getProjectName(it.project_id)
223
-                      ? getProjectName(it.project_id)
224
-                      : ""
225
-                    : it.good_info.good_name
226
-                }}&nbsp;&nbsp;{{ it.single_dose
227
-                }}{{ it.single_dose_unit }}&nbsp;×&nbsp; {{ it.count }}{{ unit }}
228
-              </div>
229
-              <div style="margin-left: 100px">
230
-                <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
231
-                >&nbsp;&nbsp;<span>{{ it.delivery_way }}</span
232
-                >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
233
-              </div>
108
+                    : ""
109
+                  : it.good_info.good_name
110
+              }}&nbsp;&nbsp;{{ it.single_dose
111
+              }}{{ it.single_dose_unit }}&nbsp;×&nbsp; {{ it.count }}{{ unit }}
234 112
             </div>
235
-            
236
-            <div
237
-              class="drugsBox"
238
-              v-for="(it, i) in item.additionalcharge"
239
-              :key="i"
240
-            >
241
-              <div class="drugsOne">
242
-                {{ it.project_id ? it.project_id : "" }}:&nbsp;{{
243
-                  it.price.toFixed(2)
244
-                }}元/{{ it.count }}次
245
-              </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>
246 117
             </div>
247
-            <div style="text-align: center">(以下空白)</div>
248 118
           </div>
249
-        
250
-          <div class="doctorBox" v-if="org_id != 10188 && org_id != 0">
251
-            <p v-if="org_id == 10217 || org_id == 0">
252
-              医师:
253
-              <span
254
-                style="width: 100px; display: inline-block"
255
-                v-if="item.creator == ''"
256
-              >
257
-                {{ item.doctor }}
258
-              </span>
259
-              <span
260
-                style="width: 100px; display: inline-block"
261
-                v-else-if="doc_name != ''"
262
-              >
263
-                {{ doc_name }}
264
-              </span>
265
-              <img
266
-                style="height: 50px;"
267
-                :src="setAdminUserES(item.creator,item.doctor)"
268
-                alt=""
269
-                srcset=""
270
-
271
-              />
272
-            </p>
273
-            <p v-else>
274
-              医师: {{ item.doctor ? item.doctor : "" }}
275
-            </p>
276
-            <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>
277 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=""
278 153
 
279
-          <div class="doctorBoxs" style="border-bottom: 2px solid #000;" v-if="org_id == 10188 || org_id == 0">
280
-            <p>医师:{{ item.doctor ? item.doctor : "" }}</p>
281
-          </div>
282
-          <!-- <div class="doctorBoxtwo" v-if="org_id == 10188 || org_id == 0">
283
-            <p >审核、调配:</p>
284
-            <p >核对、发药:</p>
285
-            <p style="margin-right: 43px">药师:</p>
286
-          </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>
287 161
 
288
-          <div class="actionBar" v-if="org_id != 10188 && org_id != 0">
289
-            <!-- <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
290
-                  <p>配对:</p>
291
-                  <p>核对:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
292
-                  <p>发药:{{getDoctor(item.advices[0].execution_staff)?getDoctor(item.advices[0].execution_staff):""}}</p>
293
-                  <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> -->
294 170
 
295
-            <p>审核:</p>
296
-            <p>配对:</p>
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>药费:466.2元</p>-->
307
-          </div>
308
-          <div class="actionBar" v-else>
309
-            <p >审核、调配:</p>
310
-            <p >核对、发药:</p>
311
-            <p >
312
-              药费:{{
313
-                getTotalOne(item.id).toFixed(2)
314
-                  ? getTotalOne(item.id).toFixed(2)
315
-                  : 0
316
-              }}元
317
-            </p>
318
-            <!--            <p>药费:551.2元</p>-->
319
-            <!--            <p>药费:466.2元</p>-->
320
-          </div>
321
-        <!-- </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> -->
322 205
       </div>
323 206
     </div>
324 207
   </div>
@@ -344,10 +227,6 @@ export default{
344 227
       doctorList: [],
345 228
       advicePrint: {},
346 229
       yi:4,
347
-      arr:[],
348
-      arrs:{},
349
-      advicess:[],
350
-      page:sessionStorage.getItem('dayin'),
351 230
       patient: {},
352 231
       tableData: [],
353 232
       prescriptionInfo: [],
@@ -449,21 +328,6 @@ export default{
449 328
           this.prescriptions = advicePrint;
450 329
 
451 330
           this.doctorList_1 = response.data.data.eles;
452
-         for(let i=0;i<this.advicePrint.length;i++){
453
-          this.advicess=advicePrint[i].advices
454
-         }
455
-         for(let j=0;j<this.advicess.length;j++){
456
-            for(let x=j+1;x<this.advicess.length;x++){
457
-              if(this.advicess[j].groupno == this.advicess[x].groupno){
458
-                this.arr.push(this.advicess.splice(x,1))
459
-                // this.arrs=this.advicess.splice(x,1)
460
-              }
461
-            }
462
-          }
463
-        // this.merge(this.advicess)
464
-          // console.log('4444444',this.arrs);
465
-         console.log('55555555',this.arr);
466
-         console.log('6666666',this.advicess);
467 331
           console.log(this.doctorList_1, "医生列表");
468 332
           if (this.doctorList_1.length > 0) {
469 333
             var operatorsLen = this.doctorList_1.length;
@@ -596,26 +460,6 @@ export default{
596 460
       }
597 461
       return name;
598 462
     },
599
-    merge(arrA){
600
-      var len=arrA.lenfth
601
-      // for(let j=0;j<this.advicess.length;j++){
602
-      //   for(let x=j+1;x<this.advicess.length;x++){
603
-      //     if(this.advicess[j].groupno == this.advicess[x].groupno){
604
-      //       // this.arr.push(this.advicess.splice(x,1))
605
-      //       this.arrs=this.advicess.splice(x,1)
606
-      //     }
607
-      //   }
608
-      // }
609
-      for(let j=0;j<len;j++){
610
-        for(let x=j+1;x<len;x++){
611
-          if(arrA[j].groupno == arrA[x].groupno){
612
-            this.arr.push(arrA.splice(x,1))
613
-          }
614
-        }
615
-      }
616
-      console.log('777777777',this.arr);
617
-      return this.arr
618
-    }
619 463
   },
620 464
   created() {
621 465
     this.getAllDoctorList();
@@ -625,20 +469,7 @@ export default{
625 469
     var xtuser = this.$store.getters.xt_user;
626 470
     this.orgname = xtuser.org.org_name;
627 471
     this.org_id = xtuser.org.id;
628
-    
629
-    // for(let j=0;j<this.advicess.length;j++){
630
-    //   console.log('44444444');
631
-    //   for(let x=j+1;x<this.advicess.length;x++){
632
-    //     if(this.advicess[j].groupno == this.advicess[x].groupno){
633
-    //       this.arr.push(this.advicess.splice(x,1))
634
-    //     }
635
-    //   }
636
-    // }
637
-    // console.log('777777777',this.arr[0].advice_name);
638
-    // return this.arr
639
-    
640 472
   },
641
-  
642 473
   watch: {
643 474
     ids: function (val) {
644 475
       this.ids = val;
@@ -695,14 +526,12 @@ export default{
695 526
 .drugsBox {
696 527
   padding-left: 40px;
697 528
   margin-bottom: 10px;
698
-  position: relative;
699 529
 }
700 530
 .drugsBox div {
701 531
   line-height: 20px;
702 532
 }
703 533
 .drugsOne {
704 534
   line-height: 24px;
705
-  display: inline-block;
706 535
 }
707 536
 .drugsOne span {
708 537
   margin-right: 20px;

+ 75 - 2
src/xt_pages/workforce/components/editTableData.vue View File

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

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