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
0601b7a4ff

+ 1 - 5
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

2310
             //   }
2310
             //   }
2311
             // })
2311
             // })
2312
             if (num == 0) {
2312
             if (num == 0) {
2313
-             
2313
+
2314
               createHisPrescription(data, params).then(response => {
2314
               createHisPrescription(data, params).then(response => {
2315
                 if (response.data.state == 1) {
2315
                 if (response.data.state == 1) {
2316
                   this.$emit('change', this.patientInfo.id)
2316
                   this.$emit('change', this.patientInfo.id)
2482
           this.$message.error('该处方已经结算,无法删除')
2482
           this.$message.error('该处方已经结算,无法删除')
2483
           return
2483
           return
2484
         }
2484
         }
2485
-        if (targetName == '处方1') {
2486
-          this.$message.error('该处方无法删除')
2487
-          return
2488
-        }
2489
         this.$confirm('处方删除后不可恢复,是否确认删除', '删除', {
2485
         this.$confirm('处方删除后不可恢复,是否确认删除', '删除', {
2490
           confirmButtonText: '确 定',
2486
           confirmButtonText: '确 定',
2491
           cancelButtonText: '取 消',
2487
           cancelButtonText: '取 消',

+ 2 - 2
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

1185
             var drugs = response.data.data.drugs
1185
             var drugs = response.data.data.drugs
1186
             for(let i=0;i<drugs.length;i++){
1186
             for(let i=0;i<drugs.length;i++){
1187
                 drugs[i].count = 0
1187
                 drugs[i].count = 0
1188
-              if(drugs[i].stock_in.length > 0){
1189
-                if(drugs[i].stock_in != null) {
1188
+              if(drugs[i].stock_in != null) {
1189
+                if(drugs[i].stock_in.length > 0){
1190
                   for (let j = 0; j < drugs[i].stock_in.length; j++) {
1190
                   for (let j = 0; j < drugs[i].stock_in.length; j++) {
1191
                     drugs[i].count += (drugs[i].stock_in[j].stock_max_number * drugs[i].min_number + drugs[i].stock_in[j].stock_min_number)
1191
                     drugs[i].count += (drugs[i].stock_in[j].stock_max_number * drugs[i].min_number + drugs[i].stock_in[j].stock_min_number)
1192
                   }
1192
                   }

+ 1 - 1
src/xt_pages/outpatientTool/labelPrint.vue View File

194
         this.current_project_name = row.project_name
194
         this.current_project_name = row.project_name
195
         this.current_name = row.patient_name
195
         this.current_name = row.patient_name
196
         this.$nextTick(() => {
196
         this.$nextTick(() => {
197
-          JsBarcode('#barcode',row.p_project_id, {
197
+          JsBarcode('#barcode',row.id, {
198
             format: 'CODE39',
198
             format: 'CODE39',
199
             lineColor: '#000',
199
             lineColor: '#000',
200
             background: '#EBEEF5',
200
             background: '#EBEEF5',