Преглед изворни кода

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

杨青 пре 2 година
родитељ
комит
6ae50589cb

+ 17 - 7
src/xt_pages/data/components/addInspection.vue Прегледај датотеку

79
             </el-option>
79
             </el-option>
80
           </el-select>
80
           </el-select>
81
         </el-form-item>
81
         </el-form-item>
82
+        <el-form-item label="排序 : " prop="sort" style="width: 50%">
83
+          <el-input
84
+            v-model="form.sort"
85
+            placeholder=""
86
+            maxlength="30"
87
+          ></el-input>
88
+        </el-form-item>
82
         <el-form-item label="备注 : " prop="name" style="width: 100%">
89
         <el-form-item label="备注 : " prop="name" style="width: 100%">
83
           <el-input
90
           <el-input
84
             type="textarea"
91
             type="textarea"
219
         remark: "",
226
         remark: "",
220
         project_detail: "",
227
         project_detail: "",
221
         number: "1",
228
         number: "1",
229
+        sort:0,
222
       },
230
       },
223
       options: [
231
       options: [
224
         { value: 1, label: "是" },
232
         { value: 1, label: "是" },
306
           tube_color: this.form.tube_color,
314
           tube_color: this.form.tube_color,
307
           team_type: this.form.team_type,
315
           team_type: this.form.team_type,
308
           remark: this.form.remark,
316
           remark: this.form.remark,
317
+          sort:parseInt(this.form.sort),
309
         };
318
         };
310
         let data = {
319
         let data = {
311
           info: this.tableData,
320
           info: this.tableData,
316
            
325
            
317
             this.$message.success("保存成功");
326
             this.$message.success("保存成功");
318
             this.visible = false;
327
             this.visible = false;
319
-            (this.form.project_team = ""),
320
-              (this.form.price = ""),
321
-              (this.form.pinyin = ""),
322
-              (this.form.wubi = ""),
323
-              (this.form.tube_color = ""),
324
-              (this.form.team_type = ""),
325
-              (this.form.remark = "");
328
+            this.form.project_team = "",
329
+            this.form.price = "",
330
+            this.form.pinyin = "",
331
+            this.form.wubi = "",
332
+            this.form.tube_color = "",
333
+            this.form.team_type = "",
334
+            this.form.remark = "";
326
             this.tableData = [];
335
             this.tableData = [];
327
             this.form.number = "";
336
             this.form.number = "";
337
+            this.form.sort = ""
328
             this.$parent.getlist();
338
             this.$parent.getlist();
329
           } else {
339
           } else {
330
             this.$message.error("项目组套名称已存在!");
340
             this.$message.error("项目组套名称已存在!");

+ 15 - 5
src/xt_pages/data/components/diagnoseOther.vue Прегледај датотеку

64
               </template>
64
               </template>
65
             </el-table-column>
65
             </el-table-column>
66
 
66
 
67
+            <el-table-column label="排序" align="center">
68
+              <template slot-scope="scope">
69
+                {{ scope.row.sort }}
70
+              </template>
71
+            </el-table-column>
72
+
67
             <el-table-column label="备注" align="center">
73
             <el-table-column label="备注" align="center">
68
               <template slot-scope="scope">
74
               <template slot-scope="scope">
69
                 {{ scope.row.remark }}
75
                 {{ scope.row.remark }}
164
             country_content_name: '',
170
             country_content_name: '',
165
             remark: '',
171
             remark: '',
166
             pinyin: '',
172
             pinyin: '',
167
-            wubi: ''
173
+            wubi: '',
174
+            sort:0,
168
 
175
 
169
           },
176
           },
170
           resetForm: {
177
           resetForm: {
205
               response.data.data.sick.pinyin
212
               response.data.data.sick.pinyin
206
             this.Dialog.formValue.wubi =
213
             this.Dialog.formValue.wubi =
207
               response.data.data.sick.wubi
214
               response.data.data.sick.wubi
208
-
215
+            this.Dialog.formValue.sort = response.data.data.sick.sort
209
             this.Dialog.isCreated = 2
216
             this.Dialog.isCreated = 2
210
             this.$refs.dialog.show()
217
             this.$refs.dialog.show()
211
 
218
 
258
               response.data.data.sick.pinyin
265
               response.data.data.sick.pinyin
259
             this.Dialog.formValue.wubi =
266
             this.Dialog.formValue.wubi =
260
               response.data.data.sick.wubi
267
               response.data.data.sick.wubi
261
-
268
+            this.Dialog.formValue.sort =
269
+              response.data.data.sick.sort
262
             this.Dialog.isCreated = 3
270
             this.Dialog.isCreated = 3
263
             this.Dialog.isVisibility = true
271
             this.Dialog.isVisibility = true
264
           }
272
           }
277
             remark: val.remark,
285
             remark: val.remark,
278
             id: this.editId,
286
             id: this.editId,
279
             pinyin: val.pinyin,
287
             pinyin: val.pinyin,
280
-            wubi: val.wubi
281
-
288
+            wubi: val.wubi,
289
+            sort:parseInt(val.sort)
282
           }
290
           }
283
           modifyDiagnose(params).then(response => {
291
           modifyDiagnose(params).then(response => {
284
             if (response.data.state == 0) {
292
             if (response.data.state == 0) {
301
                 response.data.data.sick.pinyin
309
                 response.data.data.sick.pinyin
302
               this.manufacturerData[this.editIndex].wubi =
310
               this.manufacturerData[this.editIndex].wubi =
303
                 response.data.data.sick.wubi
311
                 response.data.data.sick.wubi
312
+              this.manufacturerData[this.editIndex].sort =
313
+                response.data.data.sick.sort
304
 
314
 
305
               this.$message.success('修改成功')
315
               this.$message.success('修改成功')
306
             }
316
             }

+ 8 - 1
src/xt_pages/data/components/diagnoseOtherDialog.vue Прегледај датотеку

41
             <el-input v-model="formValue.country_content_name"></el-input>
41
             <el-input v-model="formValue.country_content_name"></el-input>
42
           </el-form-item>
42
           </el-form-item>
43
         </el-col>
43
         </el-col>
44
+
45
+        <el-col :span="8">
46
+          <el-form-item label="排序" prop="">
47
+            <el-input v-model="formValue.sort"></el-input>
48
+          </el-form-item>
49
+        </el-col>
44
       </el-row>
50
       </el-row>
45
 
51
 
46
       <el-col>
52
       <el-col>
78
           country_content_name: '',
84
           country_content_name: '',
79
           remark: '',
85
           remark: '',
80
           pinyin: '',
86
           pinyin: '',
81
-          wubi: ''
87
+          wubi: '',
88
+          sort:0,
82
 
89
 
83
         },
90
         },
84
         resetForm: {
91
         resetForm: {

+ 4 - 0
src/xt_pages/data/components/diagnosis.vue Прегледај датотеку

72
                 {{ scope.row.country_content_name }}
72
                 {{ scope.row.country_content_name }}
73
               </template>
73
               </template>
74
             </el-table-column>
74
             </el-table-column>
75
+            
76
+           
77
+
78
+        
75
 
79
 
76
             <el-table-column label="备注" align="center">
80
             <el-table-column label="备注" align="center">
77
               <template slot-scope="scope">
81
               <template slot-scope="scope">

+ 12 - 2
src/xt_pages/data/components/editInspection.vue Прегледај датотеку

41
                         </el-option>
41
                         </el-option>
42
                     </el-select>
42
                     </el-select>
43
                 </el-form-item>
43
                 </el-form-item>
44
+                <el-form-item label="排序 : " prop="sort" style="width: 50%">
45
+                  <el-input
46
+                    v-model="form.sort"
47
+                    placeholder=""
48
+                    maxlength="30"
49
+                  ></el-input>
50
+                </el-form-item>
44
                 <el-form-item label="备注 : " prop="name" style="width:100%;">
51
                 <el-form-item label="备注 : " prop="name" style="width:100%;">
45
                     <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="form.remark"></el-input>
52
                     <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="form.remark"></el-input>
46
                 </el-form-item>
53
                 </el-form-item>
145
           remark: '',
152
           remark: '',
146
           project_detail: '',
153
           project_detail: '',
147
           number: '',
154
           number: '',
148
-          item_id: ''
155
+          item_id: '',
156
+          sort:'',
149
         },
157
         },
150
         options: [{
158
         options: [{
151
           value: 1,
159
           value: 1,
285
             this.form.pinyin = projectTeamDetail.pinyin
293
             this.form.pinyin = projectTeamDetail.pinyin
286
             this.form.wubi = projectTeamDetail.wubi
294
             this.form.wubi = projectTeamDetail.wubi
287
             this.form.tube_color = projectTeamDetail.tube_color
295
             this.form.tube_color = projectTeamDetail.tube_color
296
+            this.form.sort = projectTeamDetail.sort
288
             if (projectTeamDetail.tube_color == 0) {
297
             if (projectTeamDetail.tube_color == 0) {
289
               this.form.tube_color = ''
298
               this.form.tube_color = ''
290
             }
299
             }
316
               wubi: this.form.wubi,
325
               wubi: this.form.wubi,
317
               tube_color: this.form.tube_color,
326
               tube_color: this.form.tube_color,
318
               team_type: this.form.team_type,
327
               team_type: this.form.team_type,
319
-              remark: this.form.remark
328
+              remark: this.form.remark,
329
+              sort:parseInt(this.form.sort)
320
             }
330
             }
321
             let data = {
331
             let data = {
322
               'info': arr
332
               'info': arr

+ 5 - 0
src/xt_pages/data/components/inspection.vue Прегледај датотеку

42
                    {{scope.row.price}}
42
                    {{scope.row.price}}
43
                 </template>
43
                 </template>
44
             </el-table-column>
44
             </el-table-column>
45
+            <el-table-column label="排序" width="100" align="center">
46
+                <template slot-scope="scope">
47
+                   {{scope.row.sort}}
48
+                </template>
49
+            </el-table-column>
45
             <el-table-column prop="date" label="备注" align="center">
50
             <el-table-column prop="date" label="备注" align="center">
46
                 <template slot-scope="scope">
51
                 <template slot-scope="scope">
47
                    {{scope.row.remark}}
52
                    {{scope.row.remark}}

+ 40 - 1
src/xt_pages/device/objectTableDisinfectTwo.vue Прегледај датотеку

1320
                 }else{
1320
                 }else{
1321
                     this.form.last_modifications = 0
1321
                     this.form.last_modifications = 0
1322
                 }
1322
                 }
1323
+
1324
+                if(this.form.first_start_time == null){
1325
+                   this.form.first_start_time = ""
1326
+                }
1327
+
1328
+                if(this.form.first_end_time == null){
1329
+                   this.form.first_end_time = ""
1330
+                }
1331
+
1332
+                if(this.form.sencond_start_time == null){
1333
+                   this.form.sencond_start_time = ""
1334
+                }
1335
+
1336
+                if(this.form.sencond_end_time == null){
1337
+                   this.form.sencond_end_time = ""
1338
+                }
1339
+
1340
+                if(this.form.third_start_time == null){
1341
+                   this.form.third_start_time = ""
1342
+                }
1343
+
1344
+                if(this.form.third_end_time == null){
1345
+                   this.form.third_end_time = ""
1346
+                }
1347
+
1348
+                if(this.form.fourth_start_time == null){
1349
+                   this.form.fourth_start_time = ""
1350
+                }
1351
+
1352
+                if(this.form.fourth_end_time == null){
1353
+                   this.form.fourth_end_time = ""
1354
+                }
1323
               
1355
               
1324
-              
1356
+                if(this.form.last_start_time == null){
1357
+                   this.form.last_start_time = ""
1358
+                }
1359
+
1360
+                if(this.form.last_end_time == null){
1361
+                   this.form.last_end_time = ""
1362
+                }
1363
+               console.log("param23333333333333333",this.form)
1325
                
1364
                
1326
               saveObjectTableDisinfect(this.form).then(response=>{
1365
               saveObjectTableDisinfect(this.form).then(response=>{
1327
                  if(response.data.state == 1){
1366
                  if(response.data.state == 1){

+ 1 - 1
src/xt_pages/dialysis/dialysisPrintOrder.vue Прегледај датотеку

2611
         "/dialysis/print?xtdate=" +
2611
         "/dialysis/print?xtdate=" +
2612
           xtdate +
2612
           xtdate +
2613
           "&xtno=" +
2613
           "&xtno=" +
2614
-          schedual.patient.dialysis_no
2614
+          schedual.patient.dialysis_no+"&patient_id="+schedual.patient.id
2615
       );
2615
       );
2616
       //   this.patient_id = schedual.patient_id;
2616
       //   this.patient_id = schedual.patient_id;
2617
       //   this.date = schedual.schedule_date;
2617
       //   this.date = schedual.schedule_date;

+ 8 - 2
src/xt_pages/dialysis/signPrint.vue Прегледај датотеку

302
                    }
302
                    }
303
                   }
303
                   }
304
                   for(let i=0;i<schedules.length;i++){
304
                   for(let i=0;i<schedules.length;i++){
305
+                    schedules[i].sort = 0
306
+                    schedules[i].sort = schedules[i].device_number.sort
305
                     for(let j=0;j<schedules[i].parent_advice.length;j++){
307
                     for(let j=0;j<schedules[i].parent_advice.length;j++){
306
                       schedules[i].parent_advice[j].childAdvice = []
308
                       schedules[i].parent_advice[j].childAdvice = []
307
                       for(let z=0;z<schedules[i].doctor_advice.length;z++){
309
                       for(let z=0;z<schedules[i].doctor_advice.length;z++){
312
                     }
314
                     }
313
                   }
315
                   }
314
                   console.log("scheduleMap999999999999",schedules)
316
                   console.log("scheduleMap999999999999",schedules)
315
-                  this.list = schedules
317
+                  this.list = schedules.sort(this.compare('sort'))
316
                 }
318
                 }
317
                
319
                
318
                  if(config.is_open == 1){
320
                  if(config.is_open == 1){
481
                   }
483
                   }
482
 
484
 
483
                   for(let i=0;i<schedules.length;i++){
485
                   for(let i=0;i<schedules.length;i++){
486
+                    schedules[i].sort = 0
487
+                    schedules[i].sort = schedules[i].device_number.sort
484
                     for(let j=0;j<schedules[i].parent_advice.length;j++){
488
                     for(let j=0;j<schedules[i].parent_advice.length;j++){
485
                       schedules[i].parent_advice[j].childAdvice = []
489
                       schedules[i].parent_advice[j].childAdvice = []
486
                       for(let z=0;z<schedules[i].doctor_advice.length;z++){
490
                       for(let z=0;z<schedules[i].doctor_advice.length;z++){
490
                       }
494
                       }
491
                     }
495
                     }
492
                   }
496
                   }
493
-                   this.list = schedules
497
+                  console.log("哈哈哈",schedules)
498
+                   this.list = schedules.sort(this.compare('sort'))
499
+                 
494
                    this.scheduleMap = scheduleMap  
500
                    this.scheduleMap = scheduleMap  
495
                  }
501
                  }
496
                 console.log("this.list",this.list)
502
                 console.log("this.list",this.list)

+ 1 - 1
src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue Прегледај датотеку

1932
     },
1932
     },
1933
     getDialysisRecord() {
1933
     getDialysisRecord() {
1934
       this.loading = true;
1934
       this.loading = true;
1935
-
1935
+      this.queryParams.patient_id = parseInt(this.$route.query.patient_id)
1936
       getDialysisRecord(this.queryParams).then((response) => {
1936
       getDialysisRecord(this.queryParams).then((response) => {
1937
         if (response.data.state === 1) {
1937
         if (response.data.state === 1) {
1938
           this.total = response.data.data.total;
1938
           this.total = response.data.data.total;

+ 1 - 1
src/xt_pages/hospitalStation/checkTemplate/printOne.vue Прегледај датотеку

19
                     </div>
19
                     </div>
20
                     <div>年龄:{{advicePrint[0].patient.age?advicePrint[0].patient.age:""}}岁</div>
20
                     <div>年龄:{{advicePrint[0].patient.age?advicePrint[0].patient.age:""}}岁</div>
21
                 </div>
21
                 </div>
22
-                <div style="margin-bottom:20px;padding:10px 10px 0;">病史摘要:{{history.history_of_present_illness?history.history_of_present_illness:''}}</div>
22
+                <div style="margin-bottom:20px;padding:10px 10px 0;" v-if="org_id!=10138&&org_id!=10278 && org_id!=0">病史摘要:{{history.history_of_present_illness?history.history_of_present_illness:''}}</div>
23
                 <!-- <div style="margin-bottom:20px;padding:0 10px;">体格检查:
23
                 <!-- <div style="margin-bottom:20px;padding:0 10px;">体格检查:
24
                     <span>体温:{{ history.temperature ? history.temperature + '℃' : '/' }}</span>
24
                     <span>体温:{{ history.temperature ? history.temperature + '℃' : '/' }}</span>
25
                     <span>脉搏:{{ history.pulse ? history.pulse + '次/分' : '/' }}</span>
25
                     <span>脉搏:{{ history.pulse ? history.pulse + '次/分' : '/' }}</span>

+ 1 - 1
src/xt_pages/hospitalStation/components/dialysisIndex.vue Прегледај датотеку

808
     printOrder() {
808
     printOrder() {
809
       var xtdate = parseTime(this.date, '{y}-{m}-{d}')
809
       var xtdate = parseTime(this.date, '{y}-{m}-{d}')
810
       this.$router.push(
810
       this.$router.push(
811
-        '/dialysis/print?xtdate=' + xtdate + '&xtno=' + this.patient.dialysis_no
811
+        '/dialysis/print?xtdate=' + xtdate + '&xtno=' + this.patient.dialysis_no+"&patient_id="+this.patient.id
812
       )
812
       )
813
     },
813
     },
814
     processedDialysisSchedules: function(schedules, zone_options) {
814
     processedDialysisSchedules: function(schedules, zone_options) {

+ 5 - 5
src/xt_pages/management/home.vue Прегледај датотеку

2017
                              </el-row>
2017
                              </el-row>
2018
                               <el-row>
2018
                               <el-row>
2019
                                 <el-col :span="24">
2019
                                 <el-col :span="24">
2020
-                                 <el-form-item label="检测结果:(EU/ml)" label-width="100px">
2020
+                                 <el-form-item label="检测结果:(ppm)" label-width="100px">
2021
                                      <el-input
2021
                                      <el-input
2022
                                         type="textarea"
2022
                                         type="textarea"
2023
                                         :rows="2"
2023
                                         :rows="2"
2102
                                 <el-row>
2102
                                 <el-row>
2103
                                   <el-col :span="8">
2103
                                   <el-col :span="8">
2104
                                     <el-form-item label="取样者:" required prop="samplerb">
2104
                                     <el-form-item label="取样者:" required prop="samplerb">
2105
-                                        <el-select style="width:150px"  v-model="qualityFormSix.samplerb">
2105
+                                        <el-select style="width:150px"  v-model="qualityFormSix.samplerb" filterable >
2106
                                           <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
2106
                                           <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
2107
                                         </el-select>
2107
                                         </el-select>
2108
                                     </el-form-item>
2108
                                     </el-form-item>
2144
                               </el-row>
2144
                               </el-row>
2145
                                 <el-row>
2145
                                 <el-row>
2146
                                   <el-col :span="24">
2146
                                   <el-col :span="24">
2147
-                                  <el-form-item label="检测结果:(EU/ml)" label-width="100px">
2147
+                                  <el-form-item label="检测结果:(Mg/L)" label-width="100px">
2148
                                       <el-input
2148
                                       <el-input
2149
                                           type="textarea"
2149
                                           type="textarea"
2150
                                           :rows="2"
2150
                                           :rows="2"
2228
                               <el-row>
2228
                               <el-row>
2229
                                 <el-col :span="8">
2229
                                 <el-col :span="8">
2230
                                    <el-form-item label="取样者:" required prop="samplerb">
2230
                                    <el-form-item label="取样者:" required prop="samplerb">
2231
-                                      <el-select style="width:150px"  v-model="qualityFormSeven.samplerb">
2231
+                                      <el-select style="width:150px"  v-model="qualityFormSeven.samplerb" filterable >
2232
                                         <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
2232
                                         <el-option v-for="item in sampling" :key="item.addmin_user_id" :label="item.user_name" :value="item.admin_user_id"></el-option>
2233
                                       </el-select>
2233
                                       </el-select>
2234
                                    </el-form-item>
2234
                                    </el-form-item>
2270
                              </el-row>
2270
                              </el-row>
2271
                               <el-row>
2271
                               <el-row>
2272
                                 <el-col :span="24">
2272
                                 <el-col :span="24">
2273
-                                 <el-form-item label="检测结果:(EU/ml)" label-width="100px">
2273
+                                 <el-form-item label="检测结果:" label-width="100px">
2274
                                      <el-input
2274
                                      <el-input
2275
                                         type="textarea"
2275
                                         type="textarea"
2276
                                         :rows="2"
2276
                                         :rows="2"

+ 1 - 1
src/xt_pages/outpatientCharges/print.vue Прегледај датотеку

794
               console.log(schedual)
794
               console.log(schedual)
795
               var xtdate = parseTime(schedual.schedule_date, '{y}-{m}-{d}')
795
               var xtdate = parseTime(schedual.schedule_date, '{y}-{m}-{d}')
796
               this.$router.push(
796
               this.$router.push(
797
-                '/dialysis/print?xtdate=' + xtdate + '&xtno=' + schedual.patient.dialysis_no
797
+                '/dialysis/print?xtdate=' + xtdate + '&xtno=' + schedual.patient.dialysis_no+"&patient_id="+schedual.patient.id
798
               )
798
               )
799
             //   this.patient_id = schedual.patient_id;
799
             //   this.patient_id = schedual.patient_id;
800
             //   this.date = schedual.schedule_date;
800
             //   this.date = schedual.schedule_date;

+ 1 - 1
src/xt_pages/outpatientDoctorStation/checkTemplate/printOne.vue Прегледај датотеку

69
           <div>年龄:{{getAge(advicePrint[0].patient)?getAge(advicePrint[0].patient):""}}岁</div>
69
           <div>年龄:{{getAge(advicePrint[0].patient)?getAge(advicePrint[0].patient):""}}岁</div>
70
 
70
 
71
         </div>
71
         </div>
72
-        <div style="margin-bottom: 20px; padding: 10px 10px 0">
72
+        <div style="margin-bottom: 20px; padding: 10px 10px 0" v-if="org_id!=10278 && org_id!=10138 && org_id!=0">
73
           病史摘要:{{
73
           病史摘要:{{
74
             history.history_of_present_illness
74
             history.history_of_present_illness
75
               ? history.history_of_present_illness
75
               ? history.history_of_present_illness

+ 16 - 2
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Прегледај датотеку

1893
 
1893
 
1894
       },
1894
       },
1895
       setData(data, info, admin_info, doctors, department, hisPatientInfo, month_data, last_info,sick,diagnoses) {
1895
       setData(data, info, admin_info, doctors, department, hisPatientInfo, month_data, last_info,sick,diagnoses) {
1896
-
1896
+        console.log("诊断23333333333333",this.diagnose)
1897
         this.sick = sick
1897
         this.sick = sick
1898
         this.diagnoses = diagnoses
1898
         this.diagnoses = diagnoses
1899
         this.department = department
1899
         this.department = department
2004
 
2004
 
2005
 
2005
 
2006
         this.diagnose = []
2006
         this.diagnose = []
2007
-
2007
+        console.log("处方----------------------------------------------",info.id)
2008
         if (info.id == 0) {
2008
         if (info.id == 0) {
2009
           if (last_info.diagnosis.length == 0) {
2009
           if (last_info.diagnosis.length == 0) {
2010
             this.diagnose = []
2010
             this.diagnose = []
2022
             this.state2 = last_info.sick_history
2022
             this.state2 = last_info.sick_history
2023
           }
2023
           }
2024
 
2024
 
2025
+          if(this.org_id == 0 || this.org_id == 10138){
2026
+             this.diagnose = []
2027
+             this.diagnose.push(24)
2028
+             this.diagnose.push(85)
2029
+             this.diagnose.push(252)
2030
+          }
2031
+
2032
+          if(this.org_id == 10278){
2033
+             this.diagnose = []
2034
+             this.diagnose.push(203)
2035
+             this.diagnose.push(309)
2036
+             this.diagnose.push(202)
2037
+          }
2038
+
2025
         } else {
2039
         } else {
2026
           this.state2 = info.sick_history
2040
           this.state2 = info.sick_history
2027
           if (this.state2 == 0) {
2041
           if (this.state2 == 0) {

+ 1 - 1
src/xt_pages/outpatientDoctorStation/components/dialysisIndex.vue Прегледај датотеку

819
     printOrder() {
819
     printOrder() {
820
       var xtdate = parseTime(this.date, '{y}-{m}-{d}')
820
       var xtdate = parseTime(this.date, '{y}-{m}-{d}')
821
       this.$router.push(
821
       this.$router.push(
822
-        '/dialysis/print?xtdate=' + xtdate + '&xtno=' + this.patient.dialysis_no
822
+        '/dialysis/print?xtdate=' + xtdate + '&xtno=' + this.patient.dialysis_no+"&patient_id="+this.patient.id
823
       )
823
       )
824
     },
824
     },
825
     processedDialysisSchedules: function(schedules, zone_options) {
825
     processedDialysisSchedules: function(schedules, zone_options) {

+ 16 - 1
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Прегледај датотеку

1433
 
1433
 
1434
           this.department = response.data.data.department
1434
           this.department = response.data.data.department
1435
           this.sick = response.data.data.sick
1435
           this.sick = response.data.data.sick
1436
-          this.diagnoses = response.data.data.diagnose
1436
+          var diagnoses = response.data.data.diagnose
1437
+          console.log("hhhhhshshsh",diagnoses.sort(this.compare('sort')))
1438
+          if(diagnoses!=null && diagnoses.length > 0){
1439
+            this.diagnoses = diagnoses.sort(this.compare('sort'))
1440
+          }else{
1441
+            this.diagnoses = []
1442
+          }
1443
+         
1437
           this.additions = response.data.data.additions
1444
           this.additions = response.data.data.additions
1438
 
1445
 
1439
         }
1446
         }
1440
       })
1447
       })
1441
 
1448
 
1442
     },
1449
     },
1450
+    compare(p) { //这是比较函数
1451
+        return function (m, n) {
1452
+          var a = m[p];
1453
+          var b = n[p];
1454
+          return a - b; //升序
1455
+        }
1456
+      },
1443
     getList() {
1457
     getList() {
1444
       let params = {
1458
       let params = {
1445
         'record_date': this.record_date,
1459
         'record_date': this.record_date,
2014
                 // this.setMonthPrescription(month_prescriptions)
2028
                 // this.setMonthPrescription(month_prescriptions)
2015
 
2029
 
2016
                 this.patientInfo = response.data.data.xt_info
2030
                 this.patientInfo = response.data.data.xt_info
2031
+                console.log("patientInfo++++++++++++++++",this.patientInfo)
2017
                 this.hisPatientInfo = response.data.data.his_info
2032
                 this.hisPatientInfo = response.data.data.his_info
2018
                 this.case_history = response.data.data.case_history
2033
                 this.case_history = response.data.data.case_history
2019
 
2034