Browse Source

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

csx 3 years ago
parent
commit
dfbec65ab6

+ 8 - 5
src/xt_pages/outpatientDoctorStation/components/prescriptionTemplateTable.vue View File

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

+ 14 - 10
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

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