Procházet zdrojové kódy

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

XMLWAN před 3 roky
rodič
revize
e9d2a22722

+ 9 - 0
src/xt_pages/data/components/addDrugs.vue Zobrazit soubor

@@ -267,6 +267,10 @@
267 267
                             <el-input v-model="form.medical_insurance_number" style="width:160px;" placeholder=""
268 268
                                       maxlength="30"></el-input>
269 269
                         </el-form-item>
270
+                      <el-form-item label="省编码 : " prop="provinces_code">
271
+                        <el-input v-model="form.provinces_code" style="width:160px;" placeholder=""
272
+                                  maxlength="30"></el-input>
273
+                      </el-form-item>
270 274
                         <el-form-item label="生产厂商 : " prop="manufacturer">
271 275
 
272 276
                             <el-select v-model="form.manufacturer" style="width:160px;" filterable placeholder="请选择">
@@ -543,6 +547,7 @@
543 547
           drug_dose: '',//药品剂量
544 548
           drug_dose_unit: '',
545 549
           medical_insurance_number: '',//医保编号
550
+          provinces_code:"",//省编码
546 551
           manufacturer: '', //生产产商
547 552
           pharmacology_category: '',//药理分类
548 553
           statistics_category: '',//统计分类
@@ -851,6 +856,10 @@
851 856
         form['drug_dose'] = this.form.drug_dose
852 857
         form['drug_dose_unit'] = this.form.drug_dose_unit
853 858
         form['medical_insurance_number'] = this.form.medical_insurance_number
859
+        form['provinces_code'] = this.form.provinces_code
860
+
861
+
862
+
854 863
         form['manufacturer'] = this.form.manufacturer
855 864
         form['pharmacology_category'] = this.form.pharmacology_category
856 865
         form['statistics_category'] = this.form.statistics_category

+ 3 - 3
src/xt_pages/data/components/addProject.vue Zobrazit soubor

@@ -230,7 +230,7 @@
230 230
                             :value="item.value">
231 231
                             </el-option>
232 232
                         </el-select>
233
-                    </el-form-item>       
233
+                    </el-form-item>
234 234
                 </el-form>
235 235
             </el-tab-pane>
236 236
         </el-tabs>
@@ -259,8 +259,8 @@ export default {
259 259
             form:{
260 260
               project_name:"",
261 261
               pinyin:"",
262
-              wubi:"", 
263
-              price:"", 
262
+              wubi:"",
263
+              price:"",
264 264
               unit:"",
265 265
               cost_classify:"",
266 266
               executive_section:"",

+ 29 - 14
src/xt_pages/data/components/consumables.vue Zobrazit soubor

@@ -307,6 +307,8 @@
307 307
               good_unit:'',
308 308
               retail_price:'',
309 309
               medical_insurance_number:'',
310
+              provinces_code:'',
311
+
310 312
               is_special_diseases:'',
311 313
               is_record:'',
312 314
               statistics_category:'',
@@ -598,6 +600,9 @@
598 600
             this.goodInfo.goodInfoDialog.formValue.medical_insurance_number =
599 601
               response.data.data.goodInfo.medical_insurance_number;
600 602
 
603
+            this.goodInfo.goodInfoDialog.formValue.provinces_code =
604
+                response.data.data.goodInfo.provinces_code;
605
+
601 606
 
602 607
             if (response.data.data.goodInfo.is_special_diseases <= 0) {
603 608
               this.goodInfo.goodInfoDialog.formValue.is_special_diseases = ''
@@ -810,7 +815,7 @@
810 815
         })
811 816
       },
812 817
       goodInfoDialogComfirm: function(val) {
813
-        
818
+
814 819
         if (val.isCreated == 2) {
815 820
           //修改
816 821
           val['id'] = this.goodInfo.editGoodId;
@@ -958,11 +963,11 @@
958 963
             this.$message.error(response.data.msg);
959 964
             return false
960 965
           } else {
961
-           
966
+
962 967
             for(let i=0;i<response.data.data.goodType.length;i++){
963 968
               this.goodTypeList.push(response.data.data.goodType[i])
964 969
             }
965
- 
970
+
966 971
             for (let i = 0; i < response.data.data.goodType.length; i++) {
967 972
               if (response.data.data.goodType[i].type == 1) {
968 973
                 response.data.data.goodType[i].type_name = response.data.data.goodType[i].type_name + '(系统设定)'
@@ -1036,6 +1041,8 @@
1036 1041
         this.goodInfo.goodInfoDialog.formValue.medical_insurance_level = '';
1037 1042
         this.goodInfo.goodInfoDialog.formValue.retail_price = '';
1038 1043
         this.goodInfo.goodInfoDialog.formValue.medical_insurance_number = '';
1044
+        this.goodInfo.goodInfoDialog.formValue.provinces_code = '';
1045
+
1039 1046
         this.goodInfo.goodInfoDialog.formValue.is_special_diseases = '';
1040 1047
         this.goodInfo.goodInfoDialog.formValue.is_record = '';
1041 1048
         this.goodInfo.goodInfoDialog.formValue.statistics_category = '';
@@ -1300,6 +1307,14 @@
1300 1307
               }
1301 1308
            }
1302 1309
 
1310
+           if (results[i]['省编码'] === undefined) {
1311
+             obj['provinces_code'] = ''
1312
+           } else {
1313
+             if (key == '省编码') {
1314
+               obj['provinces_code'] = results[i][key].replace(/\s/g,"")
1315
+             }
1316
+           }
1317
+
1303 1318
           if (results[i]['是否特病目录'] === undefined) {
1304 1319
                 obj['is_special_diseases'] = ''
1305 1320
               } else {
@@ -1498,7 +1513,7 @@
1498 1513
        getInitializtion().then(response=>{
1499 1514
          if(response.data.state == 1){
1500 1515
            var goodKindList = response.data.data.goodKindList;
1501
-           
1516
+
1502 1517
            this.goodKindList = goodKindList
1503 1518
            var medicalInsuranceLevelList =  response.data.data.medicalInsuranceLevelList
1504 1519
            console.log("医保等级",medicalInsuranceLevelList)
@@ -1509,7 +1524,7 @@
1509 1524
       exportList(){
1510 1525
         import('@/vendor/Export2Excel').then(excel => {
1511 1526
          console.log("this.table",this.goodInfo.goodInfoDialog.formValue.goodType)
1512
-         
1527
+
1513 1528
          for(let i=0;i<this.goodInfo.goodInfoData.length;i++){
1514 1529
            for(let j=0;j<this.goodKindList.length;j++){
1515 1530
               if(this.goodInfo.goodInfoData[i].good_kind == this.goodKindList[j].value){
@@ -1518,7 +1533,7 @@
1518 1533
            }
1519 1534
            for(let z=0;z<this.goodInfo.goodInfoDialog.formValue.goodType.length;z++){
1520 1535
               if(this.goodInfo.goodInfoData[i].good_type_id == this.goodInfo.goodInfoDialog.formValue.goodType[z].id){
1521
-                
1536
+
1522 1537
                  this.goodInfo.goodInfoData[i].good_type_name = this.goodInfo.goodInfoDialog.formValue.goodType[z].type_name
1523 1538
               }
1524 1539
            }
@@ -1534,27 +1549,27 @@
1534 1549
                 this.goodInfo.goodInfoData[i].manufacturer_name =  this.manufacturers[s].manufacturer_name
1535 1550
              }
1536 1551
            }
1537
-          
1552
+
1538 1553
           for(let a=0;a<this.dealers.length;a++){
1539 1554
              if(this.dealers[a].id == this.goodInfo.goodInfoData[i].dealer){
1540
-                 this.goodInfo.goodInfoData[i].dealer_name = this.dealers[a].dealer_name 
1541
-             } 
1555
+                 this.goodInfo.goodInfoData[i].dealer_name = this.dealers[a].dealer_name
1556
+             }
1542 1557
           }
1543 1558
          }
1544 1559
          console.log("hhhadhh233323232",this.goodInfo.goodInfoData)
1545
-       
1560
+
1546 1561
          const tHeader = ['耗材名称','耗材种类','耗材类型','医保等级','规格型号','生产厂商','单位','零价','库存警戒','经销商','最新进价','医保编码','社保目录编码']
1547
-         const filterVal = ['good_name', 'good_kind_name','good_type_name','medical_insurance_level_name','specification_name','manufacturer_name','packing_unit','packing_price','stock_warn_count','dealer_name','buy_price','medical_insurance_number','social_security_directory_code'] 
1548
-         
1562
+         const filterVal = ['good_name', 'good_kind_name','good_type_name','medical_insurance_level_name','specification_name','manufacturer_name','packing_unit','packing_price','stock_warn_count','dealer_name','buy_price','medical_insurance_number','social_security_directory_code']
1563
+
1549 1564
          const data = this.formatJson(filterVal,this.goodInfo.goodInfoData)
1550
-     
1565
+
1551 1566
          excel.export_json_to_excel({
1552 1567
            header: tHeader,
1553 1568
            data,
1554 1569
            filename: '耗材信息'
1555 1570
          })
1556 1571
           this.downloadLoading = false
1557
-    
1572
+
1558 1573
         })
1559 1574
        },
1560 1575
        formatJson(filterVal, jsonData) {

+ 29 - 16
src/xt_pages/data/components/drugs.vue Zobrazit soubor

@@ -96,13 +96,13 @@
96 96
           </div>
97 97
         </template>
98 98
       </el-table-column>
99
-  
99
+
100 100
       <el-table-column prop="date" label="进货价" width="100" align="center">
101 101
         <template slot-scope="scope">
102 102
           <div>{{scope.row.last_price}}</div>
103 103
         </template>
104 104
       </el-table-column>
105
-     
105
+
106 106
       <el-table-column label="拆零零售价" width="100" align="center">
107 107
         <template slot-scope="scope">
108 108
           <div>{{scope.row.min_price}}</div>
@@ -296,6 +296,7 @@
296 296
           drug_dose: '',//药品剂量
297 297
           drug_dose_unit: '',
298 298
           medical_insurance_number: '',//医保编号
299
+          provinces_code:'',//省编码
299 300
           manufacturer: '', //生产产商
300 301
           pharmacology_category: '',//药理分类
301 302
           statistics_category: '',//统计分类
@@ -349,6 +350,7 @@
349 350
           drug_dose: '',//药品剂量
350 351
           drug_dose_unit: '',
351 352
           medical_insurance_number: '',//医保编号
353
+          provinces_code:"",
352 354
           manufacturer: '', //生产产商
353 355
           pharmacology_category: '',//药理分类
354 356
           statistics_category: '',//统计分类
@@ -705,7 +707,7 @@
705 707
                  this.formValue.drug_classify = ""
706 708
               }
707 709
 
708
-              
710
+
709 711
 
710 712
               this.$refs.addDrugs.show(id, this.formValue)
711 713
 
@@ -970,7 +972,7 @@
970 972
            console.log("isHasMinUnit",isHasMinUnit)
971 973
           var isHasPackingUnit = header.includes('*包装单位')
972 974
           console.log("isHasPackingUnit",isHasPackingUnit)
973
-        
975
+
974 976
           var isHasDrugType =  header.includes('*药品类型');
975 977
           console.log("isHasDrugType",isHasDrugType)
976 978
           var isHasDrugStockLimit =  header.includes('*库存警戒');
@@ -979,14 +981,14 @@
979 981
           console.log("isHasDrugOriginPlace",isHasDrugOriginPlace)
980 982
           var isHasDrugDosageForm = header.includes('*药品剂型');
981 983
           console.log("isHasDrugDosageForm",isHasDrugDosageForm)
982
-         
984
+
983 985
           var isHasRetailPrice = header.includes('*拆零零售价');
984 986
           console.log("isHasRetailPrice",isHasRetailPrice)
985 987
           var isHasPackingPrice= header.includes('*包装零售价');
986 988
           console.log("isHasLastPrice",isHasPackingPrice)
987 989
           var isHasLastPrice = header.includes('*进货价');
988 990
           console.log("进货价",isHasLastPrice)
989
-          
991
+
990 992
           var isHasDrugClassifye = header.includes('*药物分类');
991 993
          console.log("isHasDrugClassifye",isHasDrugClassifye)
992 994
          var isHasManufacturer = header.includes('*生产厂商');
@@ -997,7 +999,7 @@
997 999
          console.log("isDrugDoseUnit",isDrugDoseUnit)
998 1000
           if (!(isHasDrugName  && isHasDosage && isHasMaxUnit && isHasUnval && isHasMinUnit && isHasPackingUnit && isHasDrugType &&  isHasDrugStockLimit && isHasDrugOriginPlace &&
999 1001
           isHasDrugDosageForm &&  isHasRetailPrice && isHasPackingPrice && isHasLastPrice && isHasDrugClassifye && isHasManufacturer && isHasDrugDose && isDrugDoseUnit)) {
1000
-           
1002
+
1001 1003
             this.dialogVisible = true;
1002 1004
             return
1003 1005
           }
@@ -1037,7 +1039,7 @@
1037 1039
            }
1038 1040
 
1039 1041
 
1040
-  
1042
+
1041 1043
           if (results[i]['*拆零'] === undefined) {
1042 1044
                 obj['min_number'] = ''
1043 1045
               } else {
@@ -1251,6 +1253,17 @@
1251 1253
               }
1252 1254
            }
1253 1255
 
1256
+           if (results[i]['省编码'] === undefined) {
1257
+             obj['provinces_code'] = ''
1258
+           } else {
1259
+             if (key == '省编码') {
1260
+               obj['provinces_code'] = results[i][key].replace(/\s/g,"")
1261
+             }
1262
+           }
1263
+
1264
+
1265
+
1266
+
1254 1267
             if (results[i]['药理分类'] === undefined) {
1255 1268
                 obj['pharmacology_category'] = ''
1256 1269
               } else {
@@ -1415,7 +1428,7 @@
1415 1428
           'drugs':tableData
1416 1429
         };
1417 1430
         console.log("params222222222",params)
1418
-        
1431
+
1419 1432
         postDrugInformation(params).then(response=>{
1420 1433
            if(response.data.state == 1){
1421 1434
              var msg =  response.data.data.msg;
@@ -1485,15 +1498,15 @@
1485 1498
 
1486 1499
       exportList(){
1487 1500
          import('@/vendor/Export2Excel').then(excel => {
1488
-         
1489
-        
1501
+
1502
+
1490 1503
          console.log("this.table",this.list)
1491 1504
 
1492 1505
          for(let i=0;i<this.list.length;i++){
1493 1506
           for(let j=0;j<this.drugCategoryList.length;j++){
1494 1507
               if(this.list[i].drug_category == this.drugCategoryList[j].value){
1495 1508
                  this.list[i].drug_category_name = this.drugCategoryList[j].name
1496
-              }  
1509
+              }
1497 1510
           }
1498 1511
            for(let z=0;z<this.drugDosageFormList.length;z++){
1499 1512
               if(this.list[i].drug_dosage_form == this.drugDosageFormList[z].value){
@@ -1525,17 +1538,17 @@
1525 1538
          }
1526 1539
 
1527 1540
          const tHeader = ['药品名称','药品规格','剂量','剂量单位','拆零','拆零单位','包装单位','药品类型','库存警戒','产地','药品剂型','拆零零售价','包装零售价','进货价','药物分类','默认单次用量','默认单次用量单位','生产厂商','经销商','医保编码','社保目录编码']
1528
-         const filterVal = ['drug_name', 'specification_name','dose','dose_unit','min_number','min_unit','max_unit','drug_category_name','drug_stock_limit','drug_origin_place','drug_dosage_form_name','min_price','retail_price','last_price','drug_classify_name','drug_dose','drug_dose_unit_name','manufacturer_name','dealer_name','medical_insurance_number','social_security_directory_code'] 
1529
-         
1541
+         const filterVal = ['drug_name', 'specification_name','dose','dose_unit','min_number','min_unit','max_unit','drug_category_name','drug_stock_limit','drug_origin_place','drug_dosage_form_name','min_price','retail_price','last_price','drug_classify_name','drug_dose','drug_dose_unit_name','manufacturer_name','dealer_name','medical_insurance_number','social_security_directory_code']
1542
+
1530 1543
          const data = this.formatJson(filterVal,this.list)
1531
-     
1544
+
1532 1545
          excel.export_json_to_excel({
1533 1546
            header: tHeader,
1534 1547
            data,
1535 1548
            filename: '药品信息'
1536 1549
          })
1537 1550
           this.downloadLoading = false
1538
-    
1551
+
1539 1552
         })
1540 1553
        },
1541 1554
        formatJson(filterVal, jsonData) {

+ 5 - 2
src/xt_pages/hospitalStation/chargeDetailManagement.vue Zobrazit soubor

@@ -1149,7 +1149,8 @@ export default {
1149 1149
                 fulamt_ownpay_amt: prescription.advices[b].order_info.fulamt_ownpay_amt,
1150 1150
                 overlmt_amt: prescription.advices[b].order_info.overlmt_amt,
1151 1151
                 preselfpay_amt: prescription.advices[b].order_info.preselfpay_amt,
1152
-                inscp_scp_amt: prescription.advices[b].order_info.inscp_scp_amt
1152
+                inscp_scp_amt: prescription.advices[b].order_info.inscp_scp_amt,
1153
+                execution_state: prescription.advices[b].execution_state,
1153 1154
 
1154 1155
               }
1155 1156
               tempAdvice.push(obj)
@@ -1175,7 +1176,9 @@ export default {
1175 1176
                 fulamt_ownpay_amt: prescription.project[b].order_info.fulamt_ownpay_amt,
1176 1177
                 overlmt_amt: prescription.project[b].order_info.overlmt_amt,
1177 1178
                 preselfpay_amt: prescription.project[b].order_info.preselfpay_amt,
1178
-                inscp_scp_amt: prescription.project[b].order_info.inscp_scp_amt
1179
+                inscp_scp_amt: prescription.project[b].order_info.inscp_scp_amt,
1180
+                execution_state: prescription.project[b].execution_state,
1181
+
1179 1182
 
1180 1183
               }
1181 1184
 

+ 13 - 0
src/xt_pages/hospitalStation/components/ChargePrescriptionTable.vue Zobrazit soubor

@@ -48,6 +48,13 @@
48 48
       </el-table-column>
49 49
 
50 50
 
51
+      <el-table-column align="center" prop="name" width="60" label="执行状态">
52
+        <template slot-scope="scope">
53
+          <div> {{scope.row.execution_state == 1?'已执行':'未执行'}}</div>
54
+        </template>
55
+      </el-table-column>
56
+
57
+
51 58
 
52 59
       <el-table-column align="center" prop="name" width="60" label="医保编码">
53 60
         <template slot-scope="scope">
@@ -170,6 +177,12 @@
170 177
         </template>
171 178
       </el-table-column>
172 179
 
180
+      <el-table-column align="center" prop="name" width="60" label="执行状态">
181
+        <template slot-scope="scope">
182
+          <div> {{scope.row.execution_state == 1?'已执行':'未执行'}}</div>
183
+        </template>
184
+      </el-table-column>
185
+
173 186
 
174 187
 
175 188
 

+ 1 - 1
src/xt_pages/hospitalStation/components/deskPrescription.vue Zobrazit soubor

@@ -1619,7 +1619,7 @@ export default {
1619 1619
       return total
1620 1620
 
1621 1621
     },
1622
-    getTotalTwo() {
1622
+    getTotalTwo() {de
1623 1623
       var total = 0
1624 1624
       for (let i = 0; i < this.month_prescriptions.length; i++) {
1625 1625
 

+ 23 - 2
src/xt_pages/hospitalStation/index.vue Zobrazit soubor

@@ -73,6 +73,17 @@
73 73
                         </el-select>
74 74
                     </el-form-item>
75 75
 
76
+                  <el-form-item label="参保地:">
77
+                    <el-select v-model="form.insuplc_admdvs" placeholder="请选择" style="width:100%;">
78
+                      <el-option
79
+                          v-for="item in InsuplcAdmdvs"
80
+                          :key="item.value"
81
+                          :label="item.label"
82
+                          :value="item.value">
83
+                      </el-option>
84
+                    </el-select>
85
+                  </el-form-item>
86
+
76 87
                     <!--<el-form-item class="specialFormItem" label="医保卡号:">-->
77 88
                     <!--<div style="display:flex;">-->
78 89
                     <!--<el-input v-model="form.medicalInsuranceCard"></el-input>-->
@@ -277,7 +288,8 @@
277 288
           phone: '',
278 289
           id_card_type: 2,
279 290
           med_type: '',
280
-          settlement_value: 1
291
+          settlement_value: 1,
292
+          insuplc_admdvs:''
281 293
 
282 294
         },
283 295
 
@@ -442,11 +454,19 @@
442 454
                 }).then(() => {
443 455
 
444 456
 
457
+
445 458
                 }).catch(() => {
446 459
                 })
447 460
               } else {
448 461
                 // console.log(parseNumber(response.data.data.info.output.insuinfo.psn_type))
449 462
                 // console.log(parseNumber(response.data.data.insutype))
463
+                for(let i =0; i < response.data.data.info.output.insuinfo.length; i++){
464
+                  that.InsuplcAdmdvs.push({
465
+                    value:response.data.data.info.output.insuinfo[i].insuplc_admdvs,
466
+                    label:response.data.data.info.output.insuinfo[i].insuplc_admdvs,
467
+                  })
468
+
469
+                }
450 470
 
451 471
                 that.form.psn_type = parseInt(response.data.data.info.output.insuinfo[0].psn_type)
452 472
                 that.form.social_type = parseInt(response.data.data.insutype)
@@ -693,7 +713,8 @@
693 713
               start_time: this.form.start_time,
694 714
               social_type: this.form.social_type,
695 715
               psn_type: this.form.psn_type,
696
-              balance_accounts_type: this.form.settlement_value
716
+              balance_accounts_type: this.form.settlement_value,
717
+              insuplc_admdvs: this.form.insuplc_admdvs
697 718
 
698 719
             }
699 720
             params['record_time'] = this.record_date

+ 11 - 0
src/xt_pages/outpatientCharges/components/prescriptionTable.vue Zobrazit soubor

@@ -47,6 +47,12 @@
47 47
         </template>
48 48
       </el-table-column>
49 49
 
50
+      <el-table-column align="center" prop="name" width="60" label="执行状态">
51
+        <template slot-scope="scope">
52
+          <div> {{scope.row.execution_state == 1 ? '已执行':'未执行'}}</div>
53
+        </template>
54
+      </el-table-column>
55
+
50 56
 
51 57
       <el-table-column align="center" prop="name" width="120" label="医保编码">
52 58
         <template slot-scope="scope">
@@ -150,6 +156,11 @@
150 156
         <template slot-scope="scope">{{scope.row.price}}元</template>
151 157
       </el-table-column>
152 158
 
159
+      <el-table-column align="center" prop="name" width="60" label="执行状态">
160
+        <template slot-scope="scope">
161
+          <div> {{scope.row.execution_state == 1 ? '已执行':'未执行'}}</div>
162
+        </template>
163
+      </el-table-column>
153 164
 
154 165
 
155 166
       <el-table-column align="center" prop="name" width="120" label="医保编码">

+ 64 - 0
src/xt_pages/outpatientCharges/components/registerDialog.vue Zobrazit soubor

@@ -110,6 +110,18 @@
110 110
       <!--</el-select>-->
111 111
       <!--</el-form-item>-->
112 112
 
113
+      <el-form-item label="参保地:">
114
+        <el-select v-model="form.insuplc_admdvs" placeholder="请选择" style="width:100%;">
115
+          <el-option
116
+              v-for="item in InsuplcAdmdvs"
117
+              :key="item.value"
118
+              :label="item.label"
119
+              :value="item.value">
120
+          </el-option>
121
+        </el-select>
122
+      </el-form-item>
123
+
124
+
113 125
 
114 126
       <el-form-item label="结算类型:">
115 127
         <el-select v-model="form.settlement_value" placeholder="请选择" style="width:100%;">
@@ -247,6 +259,7 @@
247 259
 
248 260
         form: {
249 261
           id: '',
262
+          insuplc_admdvs:'',
250 263
           settlement_value: 1,
251 264
           medical_insurance_card: '',
252 265
           name: '',
@@ -288,6 +301,7 @@
288 301
           { value: 7, label: '合同' },
289 302
           {value: 8, label: '医保自费'},
290 303
 
304
+        ],InsuplcAdmdvs:[
291 305
         ],
292 306
         sex: [{
293 307
           value: 1,
@@ -544,6 +558,55 @@
544 558
           '-' +
545 559
           birth.substr(6, 2)
546 560
         this.form.age = jsGetAge(births, '-')
561
+
562
+
563
+
564
+        var that = this
565
+        let params={
566
+          id_card_no: this.form.id_card,
567
+          admin_user_id:this.$store.getters.xt_user.user.id,
568
+
569
+        }
570
+        axios.get('http://127.0.0.1:9532/zh/api/patient/info', {
571
+          params: params,
572
+          headers: {
573
+            'Permission': 5
574
+          }
575
+        })
576
+            .then(function(response) {
577
+              if (response.data.state == 0) {
578
+                that.$message.error(response.data.msg)
579
+                that.loadingone = false
580
+                return false
581
+              } else {
582
+                that.loadingone = false
583
+                if (response.data.data.failed_code == -10) {
584
+                  // that.$message.error(response.data.data.msg)
585
+                  that.$confirm(response.data.data.msg, '医保错误信息', {
586
+                    confirmButtonText: '确 定',
587
+                    type: 'warning'
588
+                  }).then(() => {
589
+
590
+                  }).catch(() => {
591
+                  })
592
+                } else {
593
+                  for(let i =0; i < response.data.data.info.output.insuinfo.length; i++){
594
+                    that.InsuplcAdmdvs.push({
595
+                      value:response.data.data.info.output.insuinfo[i].insuplc_admdvs,
596
+                      label:response.data.data.info.output.insuinfo[i].insuplc_admdvs,
597
+                    })
598
+
599
+                  }
600
+
601
+
602
+                  that.form.social_type = parseInt(response.data.data.insutype)
603
+                }
604
+              }
605
+            })
606
+            .catch(function(error) {
607
+
608
+            })
609
+
547 610
       },
548 611
       querySearchAsync(keyword, cb) {
549 612
         let key = ''
@@ -630,6 +693,7 @@
630 693
         this.form.cost = ''
631 694
         this.form.phone = ''
632 695
         this.form.social_type = ''
696
+        this.form.insuplc_admdvs =''
633 697
 
634 698
         this.form.p_type = 14
635 699
         this.form.sick_type = this.sick[0].id

+ 10 - 3
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Zobrazit soubor

@@ -1232,6 +1232,7 @@ export default {
1232 1232
                 prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1233 1233
                 medical_insurance_number: prescription.advices[b].med_list_codg,
1234 1234
 
1235
+
1235 1236
                 code: prescription.advices[b].drug.medical_insurance_number,
1236 1237
                 spec: spec,
1237 1238
                 det_item_fee_sumamt: prescription.advices[b].order_info.det_item_fee_sumamt,
@@ -1239,7 +1240,8 @@ export default {
1239 1240
                 fulamt_ownpay_amt: prescription.advices[b].order_info.fulamt_ownpay_amt,
1240 1241
                 overlmt_amt: prescription.advices[b].order_info.overlmt_amt,
1241 1242
                 preselfpay_amt: prescription.advices[b].order_info.preselfpay_amt,
1242
-                inscp_scp_amt: prescription.advices[b].order_info.inscp_scp_amt
1243
+                inscp_scp_amt: prescription.advices[b].order_info.inscp_scp_amt,
1244
+                execution_state: prescription.advices[b].execution_state,
1243 1245
 
1244 1246
               }
1245 1247
               tempAdvice.push(obj)
@@ -1267,7 +1269,10 @@ export default {
1267 1269
                 fulamt_ownpay_amt: prescription.project[b].order_info.fulamt_ownpay_amt,
1268 1270
                 overlmt_amt: prescription.project[b].order_info.overlmt_amt,
1269 1271
                 preselfpay_amt: prescription.project[b].order_info.preselfpay_amt,
1270
-                inscp_scp_amt: prescription.project[b].order_info.inscp_scp_amt
1272
+                inscp_scp_amt: prescription.project[b].order_info.inscp_scp_amt,
1273
+
1274
+                execution_state: prescription.project[b].execution_state,
1275
+
1271 1276
 
1272 1277
               }
1273 1278
 
@@ -3611,7 +3616,8 @@ export default {
3611 3616
                       fulamt_ownpay_amt: prescription.advices[b].order_info.fulamt_ownpay_amt,
3612 3617
                       overlmt_amt: prescription.advices[b].order_info.overlmt_amt,
3613 3618
                       preselfpay_amt: prescription.advices[b].order_info.preselfpay_amt,
3614
-                      inscp_scp_amt: prescription.advices[b].order_info.inscp_scp_amt
3619
+                      inscp_scp_amt: prescription.advices[b].order_info.inscp_scp_amt,
3620
+                      execution_state:prescription.advices[b].execution_state,
3615 3621
 
3616 3622
                     }
3617 3623
                     tempAdvice.push(obj)
@@ -3634,6 +3640,7 @@ export default {
3634 3640
                       // medical_code: prescription.project[b].project.medical_code,
3635 3641
                       unit: prescription.project[b].unit,
3636 3642
                       type: prescription.project[b].type,
3643
+                      execution_state:prescription.project[b].execution_state,
3637 3644
 
3638 3645
                       det_item_fee_sumamt: prescription.project[b].order_info.det_item_fee_sumamt,
3639 3646
                       fulamt_ownpay_amt: prescription.project[b].order_info.fulamt_ownpay_amt,

+ 6 - 3
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Zobrazit soubor

@@ -2296,7 +2296,7 @@
2296 2296
                   this.prescriptions[i].addition[b].count = this.prescriptions[i].addition[b].count.toString()
2297 2297
                 }
2298 2298
               }
2299
-            
2299
+
2300 2300
               let data = {
2301 2301
                 'prescriptions': this.prescriptions
2302 2302
               }
@@ -2864,7 +2864,8 @@
2864 2864
                   medical_insurance_number: temp[b].medical_insurance_number,
2865 2865
                   drug: temp[b],
2866 2866
                   groupno: index + temp_index,
2867
-                  hosp_appr_flag: '1'
2867
+                  hosp_appr_flag: '1',
2868
+                  execution_state:2,
2868 2869
                 }
2869 2870
 
2870 2871
                 if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
@@ -2893,7 +2894,9 @@
2893 2894
                   remark: '',
2894 2895
                   medical_code: temp2[b].medical_code,
2895 2896
                   unit: temp2[b].unit,
2896
-                  type: temp2[b].type
2897
+                  type: temp2[b].type,
2898
+                  execution_state:2,
2899
+
2897 2900
                 }
2898 2901
 
2899 2902
                 if (temp2[b].type == 2){

+ 69 - 24
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Zobrazit soubor

@@ -983,6 +983,9 @@ export default {
983 983
             // price = price + project_month_prescriptions.project[a].price
984 984
             obj['price'] = parseFloat(project_month_prescriptions.project[a].price)
985 985
 
986
+
987
+
988
+
986 989
           }
987 990
         }
988 991
         obj['total'] = count
@@ -1445,7 +1448,8 @@ export default {
1445 1448
                   id: prescription.advices[b].drug_id,
1446 1449
                   drug: prescription.advices[b].drug,
1447 1450
                   groupno: prescription.advices[b].groupno,
1448
-                  hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString()
1451
+                  hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
1452
+                  execution_state: prescription.advices[b].execution_state,
1449 1453
 
1450 1454
                 }
1451 1455
                 tempAdvice.push(obj)
@@ -1467,7 +1471,9 @@ export default {
1467 1471
                   remark: prescription.project[b].remark,
1468 1472
                   medical_code: prescription.project[b].project.medical_code,
1469 1473
                   unit: prescription.project[b].project.unit,
1470
-                  type: prescription.project[b].type
1474
+                  type: prescription.project[b].type,
1475
+                  execution_state: prescription.project[b].execution_state,
1476
+
1471 1477
 
1472 1478
                 }
1473 1479
 
@@ -1575,7 +1581,9 @@ export default {
1575 1581
                     id: prescription.advices[b].drug_id,
1576 1582
                     drug: prescription.advices[b].drug,
1577 1583
                     groupno: prescription.advices[b].groupno,
1578
-                    hosp_appr_flag: '1'
1584
+                    hosp_appr_flag: '1',
1585
+                    execution_state: 2,
1586
+
1579 1587
 
1580 1588
                   }
1581 1589
 
@@ -1620,7 +1628,8 @@ export default {
1620 1628
                     remark: prescription.project[b].remark,
1621 1629
                     medical_code: prescription.project[b].project.medical_code,
1622 1630
                     unit: prescription.project[b].project.unit,
1623
-                    type: prescription.project[b].type
1631
+                    type: prescription.project[b].type,
1632
+                    execution_state: 2,
1624 1633
 
1625 1634
                   }
1626 1635
 
@@ -1845,7 +1854,9 @@ export default {
1845 1854
                         id: prescription.advices[b].drug_id,
1846 1855
                         drug: prescription.advices[b].drug,
1847 1856
                         groupno: prescription.advices[b].groupno,
1848
-                        hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString()
1857
+                        hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
1858
+                        execution_state: prescription.advices[b].execution_state,
1859
+
1849 1860
 
1850 1861
                       }
1851 1862
                       tempAdvice.push(obj)
@@ -1867,7 +1878,8 @@ export default {
1867 1878
                         remark: prescription.project[b].remark,
1868 1879
                         medical_code: prescription.project[b].project.medical_code,
1869 1880
                         unit: prescription.project[b].project.unit,
1870
-                        type: prescription.project[b].type
1881
+                        type: prescription.project[b].type,
1882
+                        execution_state: prescription.project[b].execution_state,
1871 1883
                       }
1872 1884
 
1873 1885
                       if (prescription.project[b].type == 2) {
@@ -1977,7 +1989,9 @@ export default {
1977 1989
                           drug: prescription.advices[b].drug,
1978 1990
                           groupno: prescription.advices[b].groupno,
1979 1991
 
1980
-                          hosp_appr_flag: '1'
1992
+                          hosp_appr_flag: '1',
1993
+                          execution_state: 2,
1994
+
1981 1995
 
1982 1996
                         }
1983 1997
                         console.log('看看数据1:')
@@ -2021,7 +2035,8 @@ export default {
2021 2035
                           remark: prescription.project[b].remark,
2022 2036
                           medical_code: prescription.project[b].project.medical_code,
2023 2037
                           unit: prescription.project[b].project.unit,
2024
-                          type: prescription.project[b].type
2038
+                          type: prescription.project[b].type,
2039
+                          execution_state: 2,
2025 2040
 
2026 2041
                         }
2027 2042
 
@@ -2344,7 +2359,8 @@ export default {
2344 2359
                         id: prescription.advices[b].drug_id,
2345 2360
                         drug: prescription.advices[b].drug,
2346 2361
                         groupno: prescription.advices[b].groupno,
2347
-                        hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString()
2362
+                        hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
2363
+                        execution_state: prescription.advices[b].execution_state,
2348 2364
 
2349 2365
                       }
2350 2366
                       tempAdvice.push(obj)
@@ -2365,7 +2381,9 @@ export default {
2365 2381
                         remark: prescription.project[b].remark,
2366 2382
                         medical_code: prescription.project[b].project.medical_code,
2367 2383
                         unit: prescription.project[b].project.unit,
2368
-                        type: prescription.project[b].type
2384
+                        type: prescription.project[b].type,
2385
+                        execution_state: prescription.project[b].execution_state,
2386
+
2369 2387
                       }
2370 2388
 
2371 2389
                       if (prescription.project[b].type == 2) {
@@ -2469,7 +2487,9 @@ export default {
2469 2487
                           drug: prescription.advices[b].drug,
2470 2488
                           groupno: prescription.advices[b].groupno,
2471 2489
 
2472
-                          hosp_appr_flag: '1'
2490
+                          hosp_appr_flag: '1',
2491
+                          execution_state: 2,
2492
+
2473 2493
 
2474 2494
                         }
2475 2495
                         console.log('看看数据2:')
@@ -2511,7 +2531,9 @@ export default {
2511 2531
                           remark: prescription.project[b].remark,
2512 2532
                           medical_code: prescription.project[b].project.medical_code,
2513 2533
                           unit: prescription.project[b].project.unit,
2514
-                          type: prescription.project[b].type
2534
+                          type: prescription.project[b].type,
2535
+                          execution_state: 2,
2536
+
2515 2537
                         }
2516 2538
 
2517 2539
                         if (prescription.project[b].type == 2) {
@@ -2823,7 +2845,9 @@ export default {
2823 2845
                       id: prescription.advices[b].drug_id,
2824 2846
                       drug: prescription.advices[b].drug,
2825 2847
                       groupno: prescription.advices[b].groupno,
2826
-                      hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString()
2848
+                      hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
2849
+                      execution_state: prescription.advices[b].execution_state
2850
+
2827 2851
 
2828 2852
                     }
2829 2853
                     tempAdvice.push(obj)
@@ -2844,7 +2868,9 @@ export default {
2844 2868
                       remark: prescription.project[b].remark,
2845 2869
                       medical_code: prescription.project[b].project.medical_code,
2846 2870
                       unit: prescription.project[b].project.unit,
2847
-                      type: prescription.project[b].type
2871
+                      type: prescription.project[b].type,
2872
+                      execution_state: prescription.project[b].execution_state
2873
+
2848 2874
                     }
2849 2875
 
2850 2876
                     if (prescription.project[b].type == 2) {
@@ -2948,7 +2974,9 @@ export default {
2948 2974
                         drug: prescription.advices[b].drug,
2949 2975
                         groupno: prescription.advices[b].groupno,
2950 2976
 
2951
-                        hosp_appr_flag: '1'
2977
+                        hosp_appr_flag: '1',
2978
+                        execution_state: 2
2979
+
2952 2980
 
2953 2981
                       }
2954 2982
                       console.log('看看数据3:')
@@ -2990,7 +3018,9 @@ export default {
2990 3018
                         remark: prescription.project[b].remark,
2991 3019
                         medical_code: prescription.project[b].project.medical_code,
2992 3020
                         unit: prescription.project[b].project.unit,
2993
-                        type: prescription.project[b].type
3021
+                        type: prescription.project[b].type,
3022
+                        execution_state: 2
3023
+
2994 3024
                       }
2995 3025
 
2996 3026
                       if (prescription.project[b].type == 2) {
@@ -3362,7 +3392,9 @@ export default {
3362 3392
                         id: prescription.advices[b].drug_id,
3363 3393
                         drug: prescription.advices[b].drug,
3364 3394
                         groupno: prescription.advices[b].groupno,
3365
-                        hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString()
3395
+                        hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
3396
+                        execution_state: prescription.advices[b].execution_state
3397
+
3366 3398
 
3367 3399
                       }
3368 3400
                       tempAdvice.push(obj)
@@ -3383,7 +3415,9 @@ export default {
3383 3415
                         remark: prescription.project[b].remark,
3384 3416
                         medical_code: prescription.project[b].project.medical_code,
3385 3417
                         unit: prescription.project[b].project.unit,
3386
-                        type: prescription.project[b].type
3418
+                        type: prescription.project[b].type,
3419
+                        execution_state: prescription.project[b].execution_state
3420
+
3387 3421
                       }
3388 3422
 
3389 3423
                       if (prescription.project[b].type == 2) {
@@ -3494,7 +3528,9 @@ export default {
3494 3528
                           drug: prescription.advices[b].drug,
3495 3529
                           groupno: prescription.advices[b].groupno,
3496 3530
 
3497
-                          hosp_appr_flag: '1'
3531
+                          hosp_appr_flag: '1',
3532
+                          execution_state: 2,
3533
+
3498 3534
 
3499 3535
                         }
3500 3536
                         console.log('看看数据4:')
@@ -3536,7 +3572,8 @@ export default {
3536 3572
                           remark: prescription.project[b].remark,
3537 3573
                           medical_code: prescription.project[b].project.medical_code,
3538 3574
                           unit: prescription.project[b].project.unit,
3539
-                          type: prescription.project[b].type
3575
+                          type: prescription.project[b].type,
3576
+                          execution_state: 2,
3540 3577
                         }
3541 3578
 
3542 3579
                         if (prescription.project[b].type == 2) {
@@ -3931,7 +3968,9 @@ export default {
3931 3968
                         id: prescription.advices[b].drug_id,
3932 3969
                         drug: prescription.advices[b].drug,
3933 3970
                         groupno: prescription.advices[b].groupno,
3934
-                        hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString()
3971
+                        hosp_appr_flag: prescription.advices[b].hosp_appr_flag.toString(),
3972
+                        execution_state: prescription.advices[b].execution_state
3973
+
3935 3974
 
3936 3975
                       }
3937 3976
                       tempAdvice.push(obj)
@@ -3953,7 +3992,9 @@ export default {
3953 3992
                         remark: prescription.project[b].remark,
3954 3993
                         medical_code: prescription.project[b].project.medical_code,
3955 3994
                         unit: prescription.project[b].project.unit,
3956
-                        type: prescription.project[b].type
3995
+                        type: prescription.project[b].type,
3996
+                        execution_state: prescription.project[b].execution_state
3997
+
3957 3998
                       }
3958 3999
 
3959 4000
                       if (prescription.project[b].type == 2) {
@@ -4064,7 +4105,9 @@ export default {
4064 4105
                           drug: prescription.advices[b].drug,
4065 4106
                           groupno: prescription.advices[b].groupno,
4066 4107
 
4067
-                          hosp_appr_flag: '1'
4108
+                          hosp_appr_flag: '1',
4109
+                          execution_state: 2
4110
+
4068 4111
 
4069 4112
                         }
4070 4113
                         console.log('看看数据5:')
@@ -4107,7 +4150,9 @@ export default {
4107 4150
                           remark: prescription.project[b].remark,
4108 4151
                           medical_code: prescription.project[b].project.medical_code,
4109 4152
                           unit: prescription.project[b].project.unit,
4110
-                          type: prescription.project[b].type
4153
+                          type: prescription.project[b].type,
4154
+                          execution_state: 2
4155
+
4111 4156
                         }
4112 4157
 
4113 4158
                         if (prescription.project[b].type == 2) {

+ 9 - 1
src/xt_pages/stock/Dialog/goodInfoDailog.vue Zobrazit soubor

@@ -108,7 +108,11 @@
108 108
             </el-form-item>
109 109
             <el-form-item label="医保编码 : " prop="medical_insurance_number">
110 110
               <el-input v-model="form.medical_insurance_number" style="width:160px;" placeholder=""
111
-                        maxlength="30"></el-input>
111
+                        ></el-input>
112
+            </el-form-item>
113
+            <el-form-item label="省编码 : " prop="provinces_code">
114
+              <el-input v-model="form.provinces_code" style="width:160px;" placeholder=""
115
+                        ></el-input>
112 116
             </el-form-item>
113 117
             <el-form-item label="是否特病目录:" prop="is_special_diseases">
114 118
               <el-select v-model="form.is_special_diseases" style="width:160px;" placeholder="请选择">
@@ -342,6 +346,7 @@
342 346
           good_unit: '',
343 347
           retail_price: '',
344 348
           medical_insurance_number: '',
349
+          provinces_code:'',
345 350
           is_special_diseases: '',
346 351
           is_record: '',
347 352
           statistics_category: '',
@@ -475,6 +480,7 @@
475 480
               good_unit: '',
476 481
               retail_price: '',
477 482
               medical_insurance_number: '',
483
+            provinces_code:'',
478 484
               is_special_diseases: '',
479 485
               is_record: '',
480 486
               statistics_category: '',
@@ -559,6 +565,8 @@
559 565
         form['manufacturer'] = this.form.manufacturer
560 566
         form['retail_price'] = this.form.retail_price
561 567
         form['medical_insurance_number'] = this.form.medical_insurance_number
568
+        form['provinces_code'] = this.form.provinces_code
569
+
562 570
         form['is_special_diseases'] = this.form.is_special_diseases
563 571
         form['is_record'] = this.form.is_record
564 572
         form['statistics_category'] = this.form.statistics_category