Просмотр исходного кода

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

XMLWAN 3 лет назад
Родитель
Сommit
616772835a

+ 8 - 5
src/xt_pages/outpatientDoctorStation/components/prescriptionTemplateTable.vue Просмотреть файл

@@ -108,11 +108,11 @@
108 108
             </el-table-column>
109 109
 
110 110
 
111
-            <el-table-column align="center" width="40" prop="name" label="操作">
111
+            <el-table-column align="center" width="100" prop="name" label="操作">
112 112
                 <template slot-scope="scope">
113 113
                     <!--<i class="el-icon-delete" @click="deleteDrug(scope.$index, scope.row)"></i>-->
114 114
                     <el-button size="mini" type="primary" @click="handleEdit(scope.row,scope.$index)">推送</el-button>
115
-                    <el-button size="mini" type="danger" @click="deleteDrug(scope.row.id,scope.$index)">删除</el-button>
115
+                    <el-button size="mini" type="danger" @click="deleteDrug(scope.row,scope.$index)">删除</el-button>
116 116
                 </template>
117 117
             </el-table-column>
118 118
         </el-table>
@@ -196,10 +196,10 @@
196 196
 
197 197
                 </template>
198 198
             </el-table-column>
199
-            <el-table-column align="center" width="40" prop="name" label="操作">
199
+            <el-table-column align="center" width="100" prop="name" label="操作">
200 200
                 <template slot-scope="scope">
201 201
                     <el-button size="mini" type="primary" @click="handleEdit(scope.row,scope.$index)">推送</el-button>
202
-                    <el-button size="mini" type="danger" @click="deleteProject(scope.row.id,scope.$index)">删除
202
+                    <el-button size="mini" type="danger" @click="deleteProject(scope.row,scope.$index)">删除
203 203
                     </el-button>
204 204
                     <!--<i class="el-icon-delete" @click="deleteProject(scope.row,scope.$index)"></i>-->
205 205
                     <!--<button class="el-icon-delete" @click="deleteProject(scope.row,scope.$index)">删除</>-->
@@ -413,7 +413,7 @@
413 413
           }
414 414
         })
415 415
 
416
-      }, deleteDrug: function(index, row) {
416
+      }, deleteDrug: function(row, index) {
417 417
 
418 418
         this.$confirm('药品删除后不可恢复,是否确认删除', '删除', {
419 419
           confirmButtonText: '确 定',
@@ -427,6 +427,9 @@
427 427
               let params = {
428 428
                 'id': row.advice_id
429 429
               }
430
+              console.log(row)
431
+
432
+              console.log(params)
430 433
               delHisPrescriptionAdviceTemplate(params).then(response => {
431 434
                 if (response.data.state == 0) {
432 435
                   this.$message.error(response.data.msg)

+ 14 - 10
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Просмотреть файл

@@ -117,7 +117,7 @@
117 117
                                    v-loading="saveLoading">保存
118 118
                         </el-button>
119 119
                         <el-button size="small" ref="button_three" @click="open_two()" type="primary">处方调用</el-button>
120
-                        <el-button size="small" @click="open_three()" type="primary">存模板</el-button>
120
+                        <!--<el-button size="small" @click="open_three()" type="primary">存模板</el-button>-->
121 121
 
122 122
                         <!-- <el-popover
123 123
                                 placement="bottom"
@@ -1528,7 +1528,6 @@
1528 1528
 
1529 1529
                   //药品
1530 1530
                   for (let b = 0; b < prescription.advices.length; b++) {
1531
-                    let index = b + 1
1532 1531
                     let obj = {
1533 1532
                       advice_id: 0,
1534 1533
                       drug_name: prescription.advices[b].advice_name,
@@ -1544,7 +1543,7 @@
1544 1543
                       medical_insurance_number: prescription.advices[b].med_list_codg,
1545 1544
                       id: prescription.advices[b].drug_id,
1546 1545
                       drug: prescription.advices[b].drug,
1547
-                      groupno: index,
1546
+                      groupno: prescription.advices[b].groupno,
1548 1547
                       hosp_appr_flag: '1'
1549 1548
 
1550 1549
                     }
@@ -1927,7 +1926,7 @@
1927 1926
 
1928 1927
                         //药品
1929 1928
                         for (let b = 0; b < prescription.advices.length; b++) {
1930
-                          let index = b + 1
1929
+
1931 1930
                           let obj = {
1932 1931
                             advice_id: 0,
1933 1932
                             drug_name: prescription.advices[b].advice_name,
@@ -1943,7 +1942,8 @@
1943 1942
                             medical_insurance_number: prescription.advices[b].med_list_codg,
1944 1943
                             id: prescription.advices[b].drug_id,
1945 1944
                             drug: prescription.advices[b].drug,
1946
-                            groupno: index,
1945
+                            groupno: prescription.advices[b].groupno,
1946
+
1947 1947
                             hosp_appr_flag: '1'
1948 1948
 
1949 1949
                           }
@@ -2417,7 +2417,7 @@
2417 2417
 
2418 2418
                         //药品
2419 2419
                         for (let b = 0; b < prescription.advices.length; b++) {
2420
-                          let index = b + 1
2420
+
2421 2421
                           let obj = {
2422 2422
                             advice_id: 0,
2423 2423
                             drug_name: prescription.advices[b].advice_name,
@@ -2433,7 +2433,8 @@
2433 2433
                             medical_insurance_number: prescription.advices[b].med_list_codg,
2434 2434
                             id: prescription.advices[b].drug_id,
2435 2435
                             drug: prescription.advices[b].drug,
2436
-                            groupno: index,
2436
+                            groupno: prescription.advices[b].groupno,
2437
+
2437 2438
                             hosp_appr_flag: '1'
2438 2439
 
2439 2440
                           }
@@ -2910,7 +2911,8 @@
2910 2911
                           medical_insurance_number: prescription.advices[b].med_list_codg,
2911 2912
                           id: prescription.advices[b].drug_id,
2912 2913
                           drug: prescription.advices[b].drug,
2913
-                          groupno: index,
2914
+                          groupno: prescription.advices[b].groupno,
2915
+
2914 2916
                           hosp_appr_flag: '1'
2915 2917
 
2916 2918
                         }
@@ -3454,7 +3456,8 @@
3454 3456
                             medical_insurance_number: prescription.advices[b].med_list_codg,
3455 3457
                             id: prescription.advices[b].drug_id,
3456 3458
                             drug: prescription.advices[b].drug,
3457
-                            groupno: index,
3459
+                            groupno: prescription.advices[b].groupno,
3460
+
3458 3461
                             hosp_appr_flag: '1'
3459 3462
 
3460 3463
                           }
@@ -4021,7 +4024,8 @@
4021 4024
                             medical_insurance_number: prescription.advices[b].med_list_codg,
4022 4025
                             id: prescription.advices[b].drug_id,
4023 4026
                             drug: prescription.advices[b].drug,
4024
-                            groupno: index,
4027
+                            groupno: prescription.advices[b].groupno,
4028
+
4025 4029
                             hosp_appr_flag: '1'
4026 4030
 
4027 4031
                           }