瀏覽代碼

龙岗二院需求

csx 5 年之前
父節點
當前提交
4ff9d0ad0a

+ 1 - 0
src/store/getters.js 查看文件

@@ -66,6 +66,7 @@ const getters = {
66 66
   good_unit: state => state.global_config.good_unit,
67 67
 
68 68
   temp_params: state => state.temp_params,
69
+  puncture_needle: state => state.global_config.puncture_needle,
69 70
 
70 71
 
71 72
 

+ 6 - 0
src/store/modules/globalConfig.js 查看文件

@@ -573,6 +573,12 @@ const global_config = {
573 573
       {id: 9, name: "皮下出血"},
574 574
     ],
575 575
 
576
+    puncture_needle: [
577
+      {id: 1, name: 'V钝针'},
578
+      {id: 2, name: 'V锐针'},
579
+      {id: 3, name: 'A锐针'},
580
+      {id: 4, name: 'A钝针'},
581
+    ],
576 582
 
577 583
   },
578 584
   mutations: {

+ 15 - 14
src/xt_pages/data/druguseTemplate.vue 查看文件

@@ -90,16 +90,18 @@
90 90
                 </template>
91 91
               </el-table-column>
92 92
 
93
+
93 94
               <el-table-column
94 95
                 prop="amount1"
95 96
                 align="center"
96 97
                 label="药品规格">
97 98
                   <!-- {{drugDesc(scope.row)}} -->
98 99
                   <template slot-scope="scope">
99
-                    <span v-if="scope.row.drug_spec">{{scope.row.drug_spec}}{{scope.row.drug_spec_unit}}</span>
100
+                    <span v-if="scope.row.advice_desc">{{scope.row.advice_desc}}{{scope.row.drug_spec_unit}}</span>
100 101
                   </template>
101 102
               </el-table-column>
102 103
 
104
+
103 105
               <el-table-column
104 106
                 prop="amount2"
105 107
                 width="90"
@@ -218,12 +220,9 @@
218 220
                     </template>
219 221
                   </el-table-column>
220 222
                   <el-table-column align="center" label="药品规格">
221
-
222
-                      <!-- {{drugDescTwo(scope.row)}} -->
223 223
                       <template slot-scope="scope">
224
-                        <span v-if="scope.row.drug_spec">{{scope.row.drug_spec}}{{scope.row.drug_spec_unit}}</span>
224
+                        <span v-if="scope.row.advice_desc">{{scope.row.advice_desc}}{{scope.row.drug_spec_unit}}</span>
225 225
                       </template>
226
-
227 226
                   </el-table-column>
228 227
                   <el-table-column prop="prescribing_number" align="center" label="开药数量">
229 228
                     <template slot-scope="scope" v-if="scope.row.prescribing_number != ''">
@@ -278,10 +277,13 @@
278 277
                       <el-input v-model="templateForm.advice_name"></el-input>
279 278
                     </el-form-item>
280 279
                   </el-col>
280
+
281
+
282
+
281 283
                   <el-col :span="12">
282
-                    <el-form-item label="药品规格 :" prop="drug_spec">
284
+                    <el-form-item label="药品规格 :" prop="advice_desc">
283 285
                       <el-col :span="8">
284
-                        <el-input v-model="templateForm.drug_spec"></el-input>
286
+                        <el-input v-model="templateForm.advice_desc"></el-input>
285 287
                       </el-col>
286 288
                       <el-col class="line" :span="2">&nbsp;</el-col>
287 289
                       <el-col :span="14">
@@ -443,13 +445,12 @@
443 445
                     <el-form-item :label="edit_advice_name" required prop="advice_name">
444 446
                       <el-input v-model="templateFormEdit.advice_name"></el-input>
445 447
                     </el-form-item>
446
-
447 448
                   </el-col>
448 449
                   <el-col :span="12">
449 450
 
450
-                  <el-form-item label="药品规格 :" prop="drug_spec">
451
+                  <el-form-item label="药品规格 :" prop="advice_desc">
451 452
                       <el-col :span="8">
452
-                        <el-input v-model="templateFormEdit.drug_spec"></el-input>
453
+                        <el-input v-model="templateFormEdit.advice_desc"></el-input>
453 454
                       </el-col>
454 455
                       <el-col class="line" :span="1">&nbsp;</el-col>
455 456
                       <el-col :span="14">
@@ -629,7 +630,7 @@
629 630
                   <el-table-column align="center" label="药品规格">
630 631
                       <!-- {{drugDesc(scope.row)}} -->
631 632
                       <template slot-scope="scope">
632
-                        <span v-if="scope.row.drug_spec">{{scope.row.drug_spec}}{{scope.row.drug_spec_unit}}</span>
633
+                        <span v-if="scope.row.advice_desc">{{scope.row.advice_desc}}{{scope.row.drug_spec_unit}}</span>
633 634
                       </template>
634 635
                   </el-table-column>
635 636
                   <el-table-column prop="prescribing_number" align="center" label="开药数量">
@@ -686,9 +687,9 @@
686 687
                   </el-col>
687 688
                   <el-col :span="12">
688 689
 
689
-                <el-form-item label="药品规格 :" prop="drug_spec">
690
+                <el-form-item label="药品规格 :" prop="advice_desc">
690 691
                       <el-col :span="9">
691
-                        <el-input v-model="templateForm.drug_spec"></el-input>
692
+                        <el-input v-model="templateForm.advice_desc"></el-input>
692 693
                       </el-col>
693 694
                       <el-col class="line" :span="1">&nbsp;</el-col>
694 695
                       <el-col :span="14">
@@ -1247,7 +1248,7 @@
1247 1248
         },
1248 1249
 
1249 1250
         templateFormEdit: {
1250
-          frequency_type: '',
1251
+          frequency_type: 0,
1251 1252
           day_count: '',
1252 1253
           weekday: [],
1253 1254
           week_days: '',

+ 2 - 4
src/xt_pages/dialysis/batch_print/batch_print_order.vue 查看文件

@@ -598,8 +598,7 @@
598 598
                           <div>▲</div>
599 599
                           <div>
600 600
                             <span>{{child.advice_name }}</span>
601
-                            <span>{{child.advice_desc}}</span>
602
-                            <span v-if="child.drug_spec">{{child.drug_spec}}{{child.drug_spec_unit}}</span>
601
+                            <span v-if="child.advice_desc">{{child.advice_desc}}{{child.drug_spec_unit}}</span>
603 602
                             <span
604 603
                               v-if="child.prescribing_number">* {{child.prescribing_number}}{{child.prescribing_number_unit}}</span>
605 604
                             <span
@@ -650,8 +649,7 @@
650 649
                           <div>▲</div>
651 650
                           <div>
652 651
                             <span>{{child.advice_name }}</span>
653
-                            <span>{{child.advice_desc}}</span>
654
-                            <span v-if="child.drug_spec">{{child.drug_spec}}{{child.drug_spec_unit}}</span>
652
+                            <span v-if="child.advice_desc">{{child.drug_spec}}{{child.drug_spec_unit}}</span>
655 653
                             <span
656 654
                               v-if="child.prescribing_number">* {{child.prescribing_number}}{{child.prescribing_number_unit}}</span>
657 655
                             <span

+ 4 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_five.vue 查看文件

@@ -983,7 +983,7 @@
983 983
                     </td>
984 984
                     <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
985 985
                       <span>{{advice.advice_name }}</span>
986
-                      <span>{{advice.advice_desc}}</span>
986
+                      <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
987 987
                       <!-- <span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
988 988
                       <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
989 989
                       <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
@@ -1085,7 +1085,9 @@
1085 1085
                       </td>
1086 1086
                       <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
1087 1087
                         <span>{{advice.advice_name }}</span>
1088
-                        <span>{{advice.advice_desc}}</span>
1088
+                        <!--<span>{{advice.advice_desc}}</span>-->
1089
+                        <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
1090
+
1089 1091
                         <!-- <span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
1090 1092
                         <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
1091 1093
                         <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>

+ 3 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_five_two.vue 查看文件

@@ -315,8 +315,8 @@
315 315
                     </td>
316 316
                     <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
317 317
                       <span>{{advice.advice_name }}</span>
318
-                      <span>{{advice.advice_desc}}</span>
319
-                      <!-- <span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
318
+                      <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
319
+                       <!--<span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
320 320
                       <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
321 321
                       <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
322 322
                       <span v-if="advice.parent_id == 0  &&advice.children && advice.children.length == 0">{{advice.delivery_way}}</span>
@@ -417,7 +417,7 @@
417 417
                       </td>
418 418
                       <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
419 419
                         <span>{{advice.advice_name }}</span>
420
-                        <span>{{advice.advice_desc}}</span>
420
+                        <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
421 421
                         <!-- <span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
422 422
                         <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
423 423
                         <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>

+ 2 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_other_two.vue 查看文件

@@ -298,8 +298,7 @@
298 298
                     </td>
299 299
                     <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
300 300
                       <span>{{advice.advice_name }}</span>
301
-                      <span>{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
302
-                      <!-- <span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
301
+                      <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
303 302
                       <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
304 303
                       <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
305 304
                       <span v-if="advice.parent_id == 0  &&advice.children && advice.children.length == 0">{{advice.delivery_way}}</span>
@@ -402,7 +401,7 @@
402 401
                     </td>
403 402
                     <td height="60px" class="advice-name" style="padding-left:7px;" :colspan="advice.children && advice.children.length > 0 || advice.parent_id > 0 ? 1 :2" v-if="advice.isShow == 2">
404 403
                       <span>{{advice.advice_name }}</span>
405
-                      <span>{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
404
+                      <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
406 405
                       <!-- <span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
407 406
                       <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
408 407
                       <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>

+ 12 - 0
src/xt_pages/dialysis/details/assessmentAfter.vue 查看文件

@@ -92,6 +92,12 @@
92 92
           <span class="content" v-if="pulse_frequency!='0'">{{ pulse_frequency }}</span>
93 93
           <span class="unit" v-if="pulse_frequency!='0'">次/分</span>
94 94
         </li>
95
+        <li v-if="isShow('呼吸频率')">
96
+          <label>呼吸频率 : </label>
97
+          <span class="content" v-if="breathing_rate !='0'">{{ breathing_rate }}</span>
98
+          <span class="unit" v-if="breathing_rate !='0'">次/min</span>
99
+        </li>
100
+
95 101
         <li v-if="isShow('实际治疗时长')">
96 102
           <label>实际治疗时长 : </label>
97 103
           <span class="content" v-if="actual_treatment_hour!='0'">{{ actual_treatment_hour }}时</span>
@@ -366,6 +372,12 @@
366 372
           return '-'
367 373
           break
368 374
       }
375
+    },breathing_rate:function(){
376
+      if (this.record.id == 0) {
377
+        return '-'
378
+      }
379
+      return this.record.breathing_rate
380
+
369 381
     },
370 382
     temperature: function() {
371 383
       if (this.record.id == 0) {

+ 5 - 0
src/xt_pages/dialysis/details/assessmentBefore.vue 查看文件

@@ -93,6 +93,11 @@
93 93
           <span class="content">{{getBloodAccessNoise(this.record.blood_access_noise)}}</span>
94 94
         </li>
95 95
 
96
+        <li v-if="isShow('穿刺针')">
97
+          <label>穿刺针 : </label>
98
+          <span class="content">{{this.record.puncture_needle}}</span>
99
+        </li>
100
+
96 101
         <li v-if="isShow('穿刺方式')">
97 102
           <label>穿刺方式 : </label>
98 103
           <span class="content">{{getWay(this.record.puncture_way)}}</span>

+ 13 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue 查看文件

@@ -42,6 +42,12 @@
42 42
               <el-input v-model="form.pulse_frequency"></el-input>
43 43
             </el-form-item>
44 44
           </el-col>
45
+
46
+          <el-col :span="8" v-if="isShow('呼吸频率')">
47
+            <el-form-item label="呼吸频率(次/min): " >
48
+              <el-input v-model="form.breathing_rate"></el-input>
49
+            </el-form-item>
50
+          </el-col>
45 51
         <!-- </el-row>
46 52
 
47 53
         <el-row :gutter="20"> -->
@@ -470,7 +476,8 @@
470 476
           disequilibrium_syndrome_option: '',
471 477
           arterial_tube: '',
472 478
           intravenous_tube: '',
473
-          dialyzer: ''
479
+          dialyzer: '',
480
+          breathing_rate:'',
474 481
 
475 482
         }
476 483
       }
@@ -512,6 +519,9 @@
512 519
           if (this.assessment_after_dislysis['pulse_frequency'] == 0) {
513 520
             this.form['pulse_frequency'] = ''
514 521
           }
522
+          if (this.assessment_after_dislysis['breathing_rate'] == 0) {
523
+            this.form['breathing_rate'] = ''
524
+          }
515 525
           if (this.assessment_after_dislysis['actual_ultrafiltration'] == 0) {
516 526
             this.form['actual_ultrafiltration'] = ''
517 527
           }
@@ -583,6 +593,8 @@
583 593
         data['remark'] = this.form.remark
584 594
         data['dialysis_order_id'] = this.form.dialysis_order_id ? parseFloat(this.form.dialysis_order_id) : 0
585 595
 
596
+        data['breathing_rate'] = this.form.breathing_rate ? parseFloat(this.form.breathing_rate) : 0
597
+
586 598
 
587 599
         data['dialysis_process'] = this.form.dialysis_process ? parseFloat(this.form.dialysis_process) : 0
588 600
         data['in_advance_minute'] = this.form.in_advance_minute ? parseFloat(this.form.in_advance_minute) : 0

+ 10 - 9
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue 查看文件

@@ -142,7 +142,7 @@
142 142
         <el-row :gutter="20">
143 143
           <el-col :span="8">
144 144
             <el-form-item label="药品规格:">
145
-              <el-input v-model="form.drug_spec" style="width: 40%;"></el-input>
145
+              <el-input v-model="form.advice_desc" style="width: 40%;"></el-input>
146 146
               <el-select v-model="form.drug_spec_unit" style="width: 56%;" filterable placeholder="选择">
147 147
                 <el-option v-for="item in unitsOption" :key="item.id" :label="item.name " :value="item.name">
148 148
                 </el-option>
@@ -746,7 +746,7 @@ export default {
746 746
           advice_date: this.record_date,
747 747
           start_time: uParseTime(
748 748
             this.currentRow.start_time,
749
-            '{y}-{m}-{d} {h}:{i}:{s}'
749
+            '{y}-{m}-{d} {h}:{i}'
750 750
           ),
751 751
           advice_name: '',
752 752
           drug_spec: '',
@@ -783,7 +783,7 @@ export default {
783 783
           advice_date: this.record_date,
784 784
           start_time: uParseTime(
785 785
             this.currentRow.start_time,
786
-            '{y}-{m}-{d} {h}:{i}:{s}'
786
+            '{y}-{m}-{d} {h}:{i}'
787 787
           ),
788 788
           advice_name: '',
789 789
           drug_spec: '',
@@ -820,7 +820,7 @@ export default {
820 820
           ),
821 821
           start_time: uParseTime(
822 822
             row.start_time,
823
-            '{y}-{m}-{d} {h}:{i}:{s}'
823
+            '{y}-{m}-{d} {h}:{i}'
824 824
           ),
825 825
           advice_name: row.advice_name,
826 826
           drug_spec: row.drug_spec != 0 ? '' + row.drug_spec : '',
@@ -1269,21 +1269,22 @@ export default {
1269 1269
         let tempSingleDoseDesc = ''
1270 1270
         const tempDrugSpecDesc = ''
1271 1271
         let tempPrescribingNumberDesc = ''
1272
+        let tempDrugDesc = ''
1273
+
1274
+
1272 1275
 
1273 1276
         if (row.single_dose) {
1274 1277
           tempSingleDoseDesc = ' 单次用量 ' + '  ' + row.single_dose + '' + row.single_dose_unit
1275 1278
         }
1276
-        // if(row.drug_spec){
1277
-        //   tempDrugSpecDesc = "  "+row.drug_spec + "" + row.drug_spec_unit
1278
-        // }
1279
+
1279 1280
         if (row.prescribing_number) {
1280 1281
           tempPrescribingNumberDesc = '*' + row.prescribing_number + '' + row.prescribing_number_unit
1281 1282
         }
1282 1283
 
1283 1284
         if (isChild == 1) { // 不是子药
1284
-          return row.advice_name + row.advice_desc + tempDrugSpecDesc + tempPrescribingNumberDesc + tempSingleDoseDesc + ' ' + row.delivery_way + ' ' + row.execution_frequency
1285
+          return row.advice_name + row.advice_desc + row.drug_spec_unit + tempPrescribingNumberDesc + tempSingleDoseDesc + ' ' + row.delivery_way + ' ' + row.execution_frequency
1285 1286
         } else { // 是子药
1286
-          return row.advice_name + row.advice_desc + tempDrugSpecDesc + tempPrescribingNumberDesc + tempSingleDoseDesc
1287
+          return row.advice_name + row.advice_desc + row.drug_spec_unit +  tempPrescribingNumberDesc + tempSingleDoseDesc
1287 1288
         }
1288 1289
       }
1289 1290
 

+ 24 - 12
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue 查看文件

@@ -91,11 +91,17 @@
91 91
               ></el-table-column>
92 92
 
93 93
               <el-table-column
94
-                label="规格"
95
-                property="advice_desc"
94
+                label="药品规格"
96 95
                 align="center"
97 96
 
98
-              ></el-table-column>
97
+              >
98
+                <template slot-scope="scope">
99
+                  <span
100
+                    v-if="scope.row.advice_desc"
101
+                  >{{scope.row.advice_desc}}{{scope.row.drug_spec_unit}}</span>
102
+                </template>
103
+
104
+              </el-table-column>
99 105
               <!-- <el-table-column label="药品规格*数量" min-width="80" property="drug_spec" align="center">
100 106
                 <template slot-scope="scope">
101 107
                   <span
@@ -194,10 +200,16 @@
194 200
               align="center"
195 201
             ></el-table-column>
196 202
             <el-table-column
197
-              label="规格"
198
-              property="advice_desc"
203
+              label="药品规格"
199 204
               align="center"
200
-            ></el-table-column>
205
+            >
206
+              <template slot-scope="scope">
207
+                  <span
208
+                    v-if="scope.row.advice_desc"
209
+                  >{{scope.row.advice_desc}}{{scope.row.drug_spec_unit}}</span>
210
+              </template>
211
+
212
+            </el-table-column>
201 213
             <el-table-column label="开药数量" min-width="80" property="prescribing_number" align="center">
202 214
               <template slot-scope="scope">
203 215
                   <span
@@ -285,12 +297,12 @@
285 297
             </el-form-item>
286 298
           </el-col>
287 299
           <el-col :span="12">
288
-            <el-form-item label="规格 :" prop="advice_desc">
289
-              <el-input v-model="nameForm.advice_desc"></el-input>
290
-            </el-form-item>
291
-            <!-- <el-form-item label="药品规格 :" prop="drug_spec">
300
+            <!--<el-form-item label="规格 :" prop="advice_desc">-->
301
+              <!--<el-input v-model="nameForm.advice_desc"></el-input>-->
302
+            <!--</el-form-item>-->
303
+           <el-form-item label="药品规格 :" prop="advice_desc">
292 304
               <el-col :span="8">
293
-                <el-input v-model="nameForm.drug_spec"></el-input>
305
+                <el-input v-model="nameForm.advice_desc"></el-input>
294 306
               </el-col>
295 307
               <el-col class="line" :span="2">&nbsp;</el-col>
296 308
               <el-col :span="14">
@@ -309,7 +321,7 @@
309 321
                   ></el-option>
310 322
                 </el-select>
311 323
               </el-col>
312
-            </el-form-item> -->
324
+            </el-form-item>
313 325
           </el-col>
314 326
         </el-row>
315 327
         <el-row>

+ 22 - 10
src/xt_pages/dialysis/details/dialog/adviceDialog/EditGroupAdvice.vue 查看文件

@@ -90,11 +90,17 @@
90 90
                 style="word-break: keep-all;white-space:nowrap;"
91 91
               ></el-table-column>
92 92
               <el-table-column
93
-                label="规格"
93
+                label="药品规格"
94 94
                 property="advice_desc"
95 95
                 align="center"
96 96
 
97
-              ></el-table-column>
97
+              >
98
+                <template slot-scope="scope">
99
+                  <span
100
+                    v-if="scope.row.advice_desc"
101
+                  >{{scope.row.advice_desc}}{{scope.row.drug_spec_unit}}</span>
102
+                </template>
103
+              </el-table-column>
98 104
               <!-- <el-table-column label="药品规格*数量" min-width="80" property="drug_spec" align="center">
99 105
                 <template slot-scope="scope">
100 106
                   <span
@@ -188,8 +194,14 @@
188 194
               label="规格"
189 195
               align="center"
190 196
 
191
-              property="advice_desc"
192
-            ></el-table-column>
197
+            >
198
+              <template slot-scope="scope">
199
+                  <span
200
+                    v-if="scope.row.advice_desc"
201
+                  >{{scope.row.advice_desc}}{{scope.row.drug_spec_unit}}</span>
202
+              </template>
203
+
204
+            </el-table-column>
193 205
             <el-table-column label="开药数量" min-width="80" property="prescribing_number" align="center">
194 206
               <template slot-scope="scope">
195 207
                   <span
@@ -277,12 +289,12 @@
277 289
             </el-form-item>
278 290
           </el-col>
279 291
           <el-col :span="12">
280
-            <el-form-item label="规格 :" prop="advice_desc">
281
-              <el-input v-model="nameForm.advice_desc"></el-input>
282
-            </el-form-item>
283
-            <!-- <el-form-item label="药品规格 :" prop="drug_spec">
292
+            <!--<el-form-item label="规格 :" prop="advice_desc">-->
293
+              <!--<el-input v-model="nameForm.advice_desc"></el-input>-->
294
+            <!--</el-form-item>-->
295
+            <el-form-item label="药品规格 :" prop="advice_desc">
284 296
               <el-col :span="8">
285
-                <el-input v-model="nameForm.drug_spec"></el-input>
297
+                <el-input v-model="nameForm.advice_desc"></el-input>
286 298
               </el-col>
287 299
               <el-col class="line" :span="2">&nbsp;</el-col>
288 300
               <el-col :span="14">
@@ -301,7 +313,7 @@
301 313
                   ></el-option>
302 314
                 </el-select>
303 315
               </el-col>
304
-            </el-form-item> -->
316
+            </el-form-item>
305 317
           </el-col>
306 318
         </el-row>
307 319
         <el-row>

+ 18 - 0
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue 查看文件

@@ -161,6 +161,12 @@
161 161
             <el-input v-model="assessmentBeforeDislysis.complication" @focus="showInnerDialog('5')"></el-input>
162 162
           </el-form-item>
163 163
         </el-col>
164
+
165
+        <el-col :span="8">
166
+          <el-form-item label="穿刺针: " v-if="isShow('穿刺针')">
167
+            <el-input v-model="assessmentBeforeDislysis.puncture_needle" @focus="showInnerDialog('11')"></el-input>
168
+          </el-form-item>
169
+        </el-col>
164 170
         <el-col :span="8">
165 171
           <el-form-item label="前次透析后:" v-if="isShow('前次透析后')">
166 172
             <el-input v-model="assessmentBeforeDislysis.last_post_dialysis" @focus="showInnerDialog('1')"></el-input>
@@ -431,6 +437,7 @@ export default {
431 437
         puncture_method:[],
432 438
         isVisibiltyForCruorDialog: false,
433 439
         assessmentBeforeDislysis: {
440
+          puncture_needle:'',
434 441
           catheter_bend: '',
435 442
           internal_fistula_skin: '',
436 443
           weight_before: '',
@@ -617,6 +624,14 @@ export default {
617 624
             this.InnerDialogProps.selected = this.assessmentBeforeDislysis.ductus_arantii
618 625
             this.InnerDialogProps.isShowTextArea = false
619 626
 
627
+            break
628
+          case '11': //
629
+            this.InnerDialogProps.values =  this.$store.getters.puncture_needle
630
+            this.InnerDialogProps.titles = '穿刺针'
631
+            this.InnerDialogProps.type = 'puncture_needle'
632
+            this.InnerDialogProps.selected = this.assessmentBeforeDislysis.puncture_needle
633
+            this.InnerDialogProps.isShowTextArea = false
634
+
620 635
             break
621 636
         }
622 637
       }, innerDialogComfirm: function(val) {
@@ -656,6 +671,9 @@ export default {
656 671
           case 'ductus_arantii':
657 672
             this.assessmentBeforeDislysis.ductus_arantii = val.value.join(',')
658 673
             break
674
+          case 'puncture_needle':
675
+            this.assessmentBeforeDislysis.puncture_needle = val.value.join(',')
676
+            break
659 677
 
660 678
 
661 679
 

+ 1 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

@@ -198,7 +198,7 @@
198 198
         <el-row :gutter="20" > -->
199 199
 
200 200
         <el-col :span="8" v-if="isShows('体液过多其他症状')">
201
-          <el-form-item label="其他体液过多症状">
201
+          <el-form-item label="体液过多其他症状">
202 202
             <el-input v-model="dialysisPrescription.body_fluid_other"></el-input>
203 203
           </el-form-item>
204 204
         </el-col>

+ 1 - 1
src/xt_pages/dialysis/details/statOrder.vue 查看文件

@@ -21,7 +21,7 @@
21 21
           <span v-if="advice.parent_id>0">&nbsp;&nbsp;&nbsp;&nbsp;</span>
22 22
           <span >&nbsp;{{advice.advice_name }}</span>
23 23
           <span >{{advice.advice_desc}}</span>
24
-          <!-- <span v-if="advice.drug_spec">{{advice.drug_spec}}{{advice.drug_spec_unit}}</span> -->
24
+           <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
25 25
           <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
26 26
           <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
27 27
           <span >{{advice.delivery_way}}</span>

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderFour.vue 查看文件

@@ -907,7 +907,7 @@
907 907
                   <div>
908 908
                     <span>{{child.advice_name }}</span>
909 909
                     <span>{{child.advice_desc}}</span>
910
-                    <span v-if="child.drug_spec">{{child.drug_spec}}{{child.drug_spec_unit}}</span>
910
+                    <span v-if="child.advice_desc">{{child.advice_desc}}{{child.drug_spec_unit}}</span>
911 911
                     <span
912 912
                       v-if="child.prescribing_number">* {{child.prescribing_number}}{{child.prescribing_number_unit}}</span>
913 913
                     <span v-if="child.single_dose != 0">单次用量 {{child.single_dose}}{{child.single_dose_unit}}</span>
@@ -974,7 +974,7 @@
974 974
                   <div>
975 975
                     <span>{{child.advice_name }}</span>
976 976
                     <span>{{child.advice_desc}}</span>
977
-                    <span v-if="child.drug_spec">{{child.drug_spec}}{{child.drug_spec_unit}}</span>
977
+                    <span v-if="child.advice_desc">{{child.advice_desc}}{{child.drug_spec_unit}}</span>
978 978
                     <span
979 979
                       v-if="child.prescribing_number">* {{child.prescribing_number}}{{child.prescribing_number_unit}}</span>
980 980
                     <span v-if="child.single_dose != 0">单次用量 {{child.single_dose}}{{child.single_dose_unit}}</span>

+ 4 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue 查看文件

@@ -836,7 +836,7 @@
836 836
               <td class="advice-name">
837 837
                 <span v-if="advice[0].parent_id>0">└</span>
838 838
                 <span>{{advice[0].advice_name }}</span>
839
-                <span>{{advice[0].advice_desc}}{{advice[0].drug_spec_unit}}</span>
839
+                <span v-if="advice[0].advice_desc">{{advice[0].advice_desc}}{{advice[0].drug_spec_unit}}</span>
840 840
                 <!-- <span v-if="advice[0].drug_spec">{{advice[0].drug_spec}}{{advice[0].drug_spec_unit}}</span> -->
841 841
                 <span v-if="advice[0].prescribing_number">* {{advice[0].prescribing_number}}{{advice[0].prescribing_number_unit}}</span>
842 842
                 <span
@@ -847,8 +847,8 @@
847 847
                   <div>▲</div>
848 848
                   <div>
849 849
                     <span>{{child.advice_name }}</span>
850
-                    <span>{{child.advice_desc}}</span>
851
-                    <span v-if="child.drug_spec">{{child.drug_spec}}{{child.drug_spec_unit}}</span>
850
+
851
+                    <span v-if="child.advice_desc">{{child.advice_desc}}{{child.drug_spec_unit}}</span>
852 852
                     <span
853 853
                       v-if="child.prescribing_number">* {{child.prescribing_number}}{{child.prescribing_number_unit}}</span>
854 854
                     <span v-if="child.single_dose != 0">单次用量 {{child.single_dose}}{{child.single_dose_unit}}</span>
@@ -915,7 +915,7 @@
915 915
                   <div>
916 916
                     <span>{{child.advice_name }}</span>
917 917
                     <span>{{child.advice_desc}}</span>
918
-                    <span v-if="child.drug_spec">{{child.drug_spec}}{{child.drug_spec_unit}}</span>
918
+                    <span v-if="child.advice_desc">{{child.advice_desc}}{{child.drug_spec_unit}}</span>
919 919
                     <span
920 920
                       v-if="child.prescribing_number">* {{child.prescribing_number}}{{child.prescribing_number_unit}}</span>
921 921
                     <span v-if="child.single_dose != 0">单次用量 {{child.single_dose}}{{child.single_dose_unit}}</span>

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderThree.vue 查看文件

@@ -882,7 +882,7 @@
882 882
                   <div>
883 883
                     <span>{{child.advice_name }}</span>
884 884
                     <span>{{child.advice_desc}}</span>
885
-                    <span v-if="child.drug_spec">{{child.drug_spec}}{{child.drug_spec_unit}}</span>
885
+                    <span v-if="child.advice_desc">{{child.advice_desc}}{{child.drug_spec_unit}}</span>
886 886
                     <span
887 887
                       v-if="child.prescribing_number">* {{child.prescribing_number}}{{child.prescribing_number_unit}}</span>
888 888
                     <span v-if="child.single_dose != 0">单次用量 {{child.single_dose}}{{child.single_dose_unit}}</span>
@@ -949,7 +949,7 @@
949 949
                   <div>
950 950
                     <span>{{child.advice_name }}</span>
951 951
                     <span>{{child.advice_desc}}</span>
952
-                    <span v-if="child.drug_spec">{{child.drug_spec}}{{child.drug_spec_unit}}</span>
952
+                    <span v-if="child.advice_desc">{{child.advice_desc}}{{child.drug_spec_unit}}</span>
953 953
                     <span
954 954
                       v-if="child.prescribing_number">* {{child.prescribing_number}}{{child.prescribing_number_unit}}</span>
955 955
                     <span v-if="child.single_dose != 0">单次用量 {{child.single_dose}}{{child.single_dose_unit}}</span>

+ 22 - 7
src/xt_pages/user/components/EditGroupAdvice.vue 查看文件

@@ -104,10 +104,10 @@
104 104
               ></el-table-column>
105 105
               <el-table-column
106 106
                 label="药品规格"
107
-                property="drug_spec"
107
+                property="advice_desc"
108 108
               >
109 109
                 <template slot-scope="scope">
110
-                  <span v-if="scope.row.drug_spec">{{scope.row.drug_spec}}{{scope.row.drug_spec_unit}}</span>
110
+                  <span v-if="scope.row.advice_desc">{{scope.row.advice_desc}}{{scope.row.drug_spec_unit}}</span>
111 111
                 </template>
112 112
               </el-table-column>
113 113
 
@@ -199,10 +199,10 @@
199 199
             ></el-table-column>
200 200
             <el-table-column
201 201
               label="药品规格"
202
-              property="drug_spec"
202
+              property="advice_desc"
203 203
             >
204 204
               <template slot-scope="scope">
205
-                <span v-if="scope.row.drug_spec">{{scope.row.drug_spec}}{{scope.row.drug_spec_unit}}</span>
205
+                <span v-if="scope.row.advice_desc">{{scope.row.advice_desc}}{{scope.row.drug_spec_unit}}</span>
206 206
               </template>
207 207
 
208 208
             </el-table-column>
@@ -296,9 +296,9 @@
296 296
             <!--<el-form-item label="规格 :" prop="advice_desc">-->
297 297
               <!--<el-input v-model="nameForm.advice_desc"></el-input>-->
298 298
             <!--</el-form-item>-->
299
-             <el-form-item label="药品规格 :" prop="drug_spec">
299
+             <el-form-item label="药品规格 :" prop="advice_desc">
300 300
               <el-col :span="8">
301
-                <el-input v-model="nameForm.drug_spec"></el-input>
301
+                <el-input v-model="nameForm.advice_desc"></el-input>
302 302
               </el-col>
303 303
               <el-col class="line" :span="2">&nbsp;</el-col>
304 304
               <el-col :span="14">
@@ -910,6 +910,7 @@
910 910
                       prescribing_number_unit: _this.nameForm.prescribing_number_unit,
911 911
                       delivery_way: _this.nameForm.delivery_way,
912 912
                       execution_frequency: _this.nameForm.execution_frequency,
913
+                      template_id:"D" + new Date().getTime() + this.getRandValue(),
913 914
 
914 915
                       frequency_type: _this.nameForm.frequency_type,
915 916
                       day_count: _this.nameForm.day_count.toString(),
@@ -1053,8 +1054,20 @@
1053 1054
             _this.nameFormVisible = false;
1054 1055
           }
1055 1056
         });
1056
-      },
1057
+      },getRandValue(){
1058
+        var charactors="1234567890";
1059
+
1060
+        var value='',i;
1061
+
1062
+        for(let j=1;j<=4;j++){
1063
+
1064
+          i = parseInt(10*Math.random());
1057 1065
 
1066
+          value = value + charactors.charAt(i);
1067
+
1068
+        }
1069
+        return value
1070
+      },
1058 1071
       openGroupChild() {
1059 1072
         if (this.groupSelectRow === null) {
1060 1073
 
@@ -1137,6 +1150,7 @@
1137 1150
             prescribing_number_unit: "",
1138 1151
             delivery_way: "",
1139 1152
             execution_frequency: "",
1153
+            template_id:"",
1140 1154
             isEdit: 0,
1141 1155
             index: 0,
1142 1156
             id: 0,
@@ -1395,6 +1409,7 @@
1395 1409
             prescribing_number_unit: this.allSelectedTemplate[index].prescribing_number_unit,
1396 1410
             delivery_way: this.allSelectedTemplate[index].delivery_way,
1397 1411
             execution_frequency: this.allSelectedTemplate[index].execution_frequency,
1412
+
1398 1413
             isEdit: 0,
1399 1414
             id: 0,
1400 1415
             children: [],

+ 46 - 16
src/xt_pages/user/doctorAdvice.vue 查看文件

@@ -141,9 +141,9 @@
141 141
 
142 142
                     </template>
143 143
                 </el-table-column> -->
144
-        <el-table-column label="药品规格" width="180" property="drug_spec" align="center">
144
+        <el-table-column label="药品规格" width="180" property="advice_desc" align="center">
145 145
           <template slot-scope="scope">
146
-            <span v-if="scope.row.drug_spec!=0">{{scope.row.drug_spec}}{{scope.row.drug_spec_unit}}</span>
146
+            <span v-if="scope.row.advice_desc">{{scope.row.advice_desc}}{{scope.row.drug_spec_unit}}</span>
147 147
           </template>
148 148
         </el-table-column>
149 149
         <el-table-column label="开药数量" width="180" property="prescribing_number" align="center">
@@ -353,9 +353,9 @@
353 353
                                 <span v-if="scope.row.prescribing_number!=0">*{{scope.row.prescribing_number}}{{scope.row.prescribing_number_unit}}</span>
354 354
                             </template>
355 355
                         </el-table-column> -->
356
-                <el-table-column label="药品规格" min-width="80" property="drug_spec" align="center">
356
+                <el-table-column label="药品规格" min-width="80" property="advice_desc" align="center">
357 357
                   <template slot-scope="scope">
358
-                    <span v-if="scope.row.drug_spec">{{scope.row.drug_spec}}{{scope.row.drug_spec_unit}}</span>
358
+                    <span v-if="scope.row.advice_desc">{{scope.row.advice_desc}}{{scope.row.drug_spec_unit}}</span>
359 359
                   </template>
360 360
                 </el-table-column>
361 361
                 <el-table-column label="开药数量" min-width="80" property="prescribing_number" align="center">
@@ -443,10 +443,10 @@
443 443
               ></el-table-column>
444 444
               <el-table-column
445 445
                 label="药品规格"
446
-                property="drug_spec"
446
+                property="advice_desc"
447 447
               >
448 448
                 <template slot-scope="scope">
449
-                  <span v-if="scope.row.drug_spec">{{scope.row.drug_spec}}{{scope.row.drug_spec_unit}}</span>
449
+                  <span v-if="scope.row.advice_desc">{{scope.row.advice_desc}}{{scope.row.drug_spec_unit}}</span>
450 450
                 </template>
451 451
               </el-table-column>
452 452
               <el-table-column label="开药数量" min-width="80" property="prescribing_number" align="center">
@@ -542,9 +542,9 @@
542 542
             </el-col>
543 543
 
544 544
             <el-col :span="12">
545
-              <el-form-item label="药品规格 :" prop="drug_spec">
545
+              <el-form-item label="药品规格 :" prop="advice_desc">
546 546
                 <el-col :span="8">
547
-                  <el-input v-model="nameForm.drug_spec"></el-input>
547
+                  <el-input v-model="nameForm.advice_desc"></el-input>
548 548
                 </el-col>
549 549
                 <el-col class="line" :span="2">&nbsp;</el-col>
550 550
                 <el-col :span="14">
@@ -709,9 +709,9 @@
709 709
             </el-col>
710 710
 
711 711
             <el-col :span="12">
712
-              <el-form-item label="药品规格 :" prop="drug_spec">
712
+              <el-form-item label="药品规格 :" prop="advice_desc">
713 713
                 <el-col :span="9">
714
-                  <el-input v-model="adviceForm.drug_spec"></el-input>
714
+                  <el-input v-model="adviceForm.advice_desc"></el-input>
715 715
                 </el-col>
716 716
                 <el-col class="line" :span="1">&nbsp;</el-col>
717 717
                 <el-col :span="14">
@@ -909,7 +909,7 @@
909 909
             <td style="text-align:left">
910 910
               <span v-if="advice.parent_id>0">▲</span>
911 911
               <span>{{advice.advice_name }}</span>
912
-              <span>{{advice.advice_desc}}</span>
912
+              <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
913 913
               <!-- <span v-if="advice.drug_spec">{{advice.drug_spec}}{{advice.drug_spec_unit}}</span> -->
914 914
               <span
915 915
                 v-if="advice.prescribing_number">*{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
@@ -1021,7 +1021,7 @@
1021 1021
               <span v-if="advice.parent_id>0">▲</span>
1022 1022
               <span>{{advice.advice_name }}</span>
1023 1023
               <span>{{advice.advice_desc}}</span>
1024
-              <span v-if="advice.drug_spec">{{advice.drug_spec}}{{advice.drug_spec_unit}}</span>
1024
+              <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
1025 1025
               <span
1026 1026
                 v-if="advice.prescribing_number">*{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
1027 1027
               <span v-if="advice.single_dose != 0">单次用量 {{advice.single_dose}}{{advice.single_dose_unit}}</span>
@@ -1141,7 +1141,7 @@
1141 1141
               <span>{{advice.advice_name }}</span>
1142 1142
               <span>{{advice.advice_desc}}</span>
1143 1143
               <span v-if="advice.single_dose">{{advice.single_dose}}{{advice.single_dose_unit}}</span>
1144
-              <span v-if="advice.drug_spec">{{advice.drug_spec}}{{advice.drug_spec_unit}}</span>
1144
+              <span v-if="advice.advice_desc">{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
1145 1145
               <span
1146 1146
                 v-if="advice.prescribing_number">*{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
1147 1147
               <span>{{advice.delivery_way}}</span>
@@ -1285,6 +1285,7 @@
1285 1285
           advice_name: '',
1286 1286
           advice_desc: '',
1287 1287
           single_dose: '',
1288
+          template_id: 0,
1288 1289
           single_dose_unit: '',
1289 1290
           prescribing_number: '',
1290 1291
           prescribing_number_unit: '',
@@ -1304,6 +1305,8 @@
1304 1305
           prescribing_number_unit: '',
1305 1306
           delivery_way: '',
1306 1307
           execution_frequency: '',
1308
+          template_id: 0,
1309
+
1307 1310
           isEdit: 0,
1308 1311
           index: 0,
1309 1312
           id: 0,
@@ -1763,7 +1766,8 @@
1763 1766
             execution_frequency: '',
1764 1767
             day_count: '',
1765 1768
             week_days: '',
1766
-            frequency_type: '',
1769
+            frequency_type: 0,
1770
+            template_id:'',
1767 1771
             isEdit: 0,
1768 1772
             index: 0,
1769 1773
             id: 0,
@@ -2571,7 +2575,6 @@
2571 2575
             )
2572 2576
           }
2573 2577
         }
2574
-
2575 2578
         //下面两步的作用是为了上选中的数据的输出顺序不变
2576 2579
         for (const index in this.selectedTemp.list) {
2577 2580
           this.$refs.selecttemplatetable.toggleRowSelection(
@@ -2585,7 +2588,6 @@
2585 2588
             }
2586 2589
           }
2587 2590
         }
2588
-
2589 2591
         for (const index in this.selectedTemp.list) {
2590 2592
           this.$refs.selecttemplatetable.toggleRowSelection(
2591 2593
             this.selectedTemp.list[index]
@@ -2734,6 +2736,7 @@
2734 2736
         }
2735 2737
       },
2736 2738
       newAddTempForm() {
2739
+        console.log(this.adviceTemplateMaps)
2737 2740
         this.allSelectedTemplate = []
2738 2741
         var thisRowKey = 0
2739 2742
         for (const indexs in this.adviceTemplateMaps) {
@@ -2741,6 +2744,7 @@
2741 2744
           for (const index in adviceTemplate.DoctorAdviceTemplate) {
2742 2745
             if (adviceTemplate.DoctorAdviceTemplate[index].selection) {
2743 2746
               thisRowKey++
2747
+              console.log(adviceTemplate.DoctorAdviceTemplate[index].id)
2744 2748
               var item = {
2745 2749
                 advice_name:
2746 2750
                 adviceTemplate.DoctorAdviceTemplate[index].advice_name,
@@ -2770,6 +2774,7 @@
2770 2774
                 day_count: adviceTemplate.DoctorAdviceTemplate[index].day_count,
2771 2775
                 frequency_type: adviceTemplate.DoctorAdviceTemplate[index].frequency_type,
2772 2776
                 week_days: adviceTemplate.DoctorAdviceTemplate[index].week_days,
2777
+                template_id:"T"+adviceTemplate.DoctorAdviceTemplate[index].id,
2773 2778
 
2774 2779
                 isEdit: 0,
2775 2780
                 id: 0,
@@ -2788,6 +2793,8 @@
2788 2793
                   thisRowKey++
2789 2794
                   var child = {
2790 2795
                     advice_id: children[key].id,
2796
+                    template_id:"T"+children[key].id,
2797
+
2791 2798
                     advice_name: children[key].advice_name,
2792 2799
                     advice_desc: children[key].advice_desc,
2793 2800
                     single_dose: '' + children[key].single_dose,
@@ -2811,6 +2818,7 @@
2811 2818
                 this.$set(item, 'children', item.children)
2812 2819
               }
2813 2820
               this.allSelectedTemplate.unshift(item)
2821
+              console.log(this.allSelectedTemplate)
2814 2822
               adviceTemplate.DoctorAdviceTemplate[index].selection = false
2815 2823
             }
2816 2824
           }
@@ -2833,7 +2841,9 @@
2833 2841
             continue
2834 2842
           }
2835 2843
           this.rowKey++
2844
+          console.log(this.allSelectedTemplate[index])
2836 2845
           var item = {
2846
+            template_id: this.allSelectedTemplate[index].template_id,
2837 2847
             advice_name: this.allSelectedTemplate[index].advice_name,
2838 2848
             advice_desc: this.allSelectedTemplate[index].advice_desc,
2839 2849
             single_dose: '' + this.allSelectedTemplate[index].single_dose,
@@ -2866,6 +2876,7 @@
2866 2876
               for (const key in children) {
2867 2877
                 this.rowKey++
2868 2878
                 var child = {
2879
+                  template_id: children[key].template_id,
2869 2880
                   advice_name: children[key].advice_name,
2870 2881
                   advice_desc: children[key].advice_desc,
2871 2882
                   single_dose: '' + children[key].single_dose,
@@ -2889,6 +2900,10 @@
2889 2900
           }
2890 2901
           this.groupForm.adviceNames.push(item)
2891 2902
         }
2903
+
2904
+        console.log(this.groupForm)
2905
+
2906
+
2892 2907
         this.templateFormVisible = false
2893 2908
         //清除数据源的选中记录
2894 2909
       },
@@ -3146,6 +3161,8 @@
3146 3161
                 }
3147 3162
               } else {
3148 3163
 
3164
+                _this.nameForm.template_id =  "D" + new Date().getTime() + this.getRandValue()
3165
+
3149 3166
                 if (_this.nameForm.frequency_type == 1) {
3150 3167
                   _this.nameForm.frequency_type = _this.nameForm.frequency_type
3151 3168
                   _this.nameForm.day_count = '0'
@@ -3305,6 +3322,19 @@
3305 3322
           }
3306 3323
         })
3307 3324
 
3325
+      },getRandValue(){
3326
+        var charactors="1234567890";
3327
+
3328
+        var value='',i;
3329
+
3330
+        for(let j=1;j<=4;j++){
3331
+
3332
+          i = parseInt(10*Math.random());
3333
+
3334
+          value = value + charactors.charAt(i);
3335
+
3336
+        }
3337
+        return value
3308 3338
       }
3309 3339
     },
3310 3340
     watch: {

+ 2 - 2
src/xt_pages/workforce/remind_print.vue 查看文件

@@ -137,8 +137,8 @@
137 137
             single_dose = ' 单次用量 ' + doctor_advice[i].single_dose + doctor_advice[i].single_dose_unit
138 138
           }
139 139
 
140
-          if (doctor_advice[i].drug_spec > 0) {
141
-            drug_spec =  doctor_advice[i].drug_spec + doctor_advice[i].drug_spec_unit
140
+          if (doctor_advice[i].advice_desc > 0) {
141
+            drug_spec =  doctor_advice[i].advice_desc + doctor_advice[i].drug_spec_unit
142 142
           }
143 143
 
144 144
           name = name + doctor_advice[i].advice_name +" "+ drug_spec +" " + prescribing_number + single_dose + doctor_advice[i].delivery_way+" "+ doctor_advice[i].execution_frequency + doctor_advice[i].remark +"\n"