瀏覽代碼

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

XMLWAN 4 年之前
父節點
當前提交
a392b2aeb7

+ 0 - 2
src/main.js 查看文件

58
 Vue.prototype.Base64 = require('js-base64').Base64
58
 Vue.prototype.Base64 = require('js-base64').Base64
59
 
59
 
60
 
60
 
61
-
62
-

+ 1 - 1
src/xt_pages/outpatientCharges/newStatementPrint.vue 查看文件

152
 
152
 
153
       },
153
       },
154
       getInfo(order_id) {
154
       getInfo(order_id) {
155
-        if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 9671 ) {
155
+        if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4  || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671) {
156
 
156
 
157
           var that = this
157
           var that = this
158
 
158
 

+ 8 - 9
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue 查看文件

136
                         </el-button>
136
                         </el-button>
137
 
137
 
138
                         <el-button
138
                         <el-button
139
-                                v-if="this.$store.getters.xt_user.org_id == 9919  || this.$store.getters.xt_user.org_id == 9671 "
139
+                                v-if="this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4  || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671"
140
                                 size="small" @click="open(10)" type="primary"
140
                                 size="small" @click="open(10)" type="primary"
141
                         >退号
141
                         >退号
142
                         </el-button>
142
                         </el-button>
527
     },
527
     },
528
     methods: {
528
     methods: {
529
       query() {
529
       query() {
530
-        if (this.$store.getters.xt_user.org_id == 9919) {
530
+        if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4  || this.$store.getters.xt_user.org_id == 9538) {
531
           var that = this
531
           var that = this
532
           axios.get('http://127.0.0.1:9532/api/org/info', {
532
           axios.get('http://127.0.0.1:9532/api/org/info', {
533
             params: {}
533
             params: {}
645
 
645
 
646
             })
646
             })
647
 
647
 
648
-        } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 9671 ) {
649
-
648
+        } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4  || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671) {
650
           var that = this
649
           var that = this
651
           axios.get('http://127.0.0.1:9532/api/upload/get', {
650
           axios.get('http://127.0.0.1:9532/api/upload/get', {
652
             params: form,
651
             params: form,
796
         var that = this
795
         var that = this
797
 
796
 
798
         if ( this.$store.getters.xt_user.org_id == 10028 ||  this.$store.getters.xt_user.org_id == 9504 ) {
797
         if ( this.$store.getters.xt_user.org_id == 10028 ||  this.$store.getters.xt_user.org_id == 9504 ) {
799
-         
798
+
800
           axios.get('http://127.0.0.1:9532/sz/api/register/get', {
799
           axios.get('http://127.0.0.1:9532/sz/api/register/get', {
801
             params: forms,
800
             params: forms,
802
             headers: {
801
             headers: {
868
 
867
 
869
             })
868
             })
870
 
869
 
871
-        } else if (this.$store.getters.xt_user.org_id == 9919  ||  this.$store.getters.xt_user.org_id == 9671   ) {
870
+        } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4  || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671) {
872
 
871
 
873
           axios.get('http://127.0.0.1:9532/api/register/get', {
872
           axios.get('http://127.0.0.1:9532/api/register/get', {
874
             params: forms,
873
             params: forms,
1488
           }
1487
           }
1489
 
1488
 
1490
         } else if (index == 5) {
1489
         } else if (index == 5) {
1491
-          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 9671) {
1492
-            console.log("处方222")
1490
+          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4  || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671) {
1491
+
1493
             var that = this
1492
             var that = this
1494
             this.$confirm('是否退费', '退费', {
1493
             this.$confirm('是否退费', '退费', {
1495
               confirmButtonText: '确 定',
1494
               confirmButtonText: '确 定',
1720
             })
1719
             })
1721
         } else if (index == 15) {
1720
         } else if (index == 15) {
1722
           var that = this
1721
           var that = this
1723
-          if (this.$store.getters.xt_user.org_id == 9919) {
1722
+          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4  || this.$store.getters.xt_user.org_id == 9538) {
1724
 
1723
 
1725
             if (this.diagnosis.length || this.diagnosis == 0) {
1724
             if (this.diagnosis.length || this.diagnosis == 0) {
1726
               that.$message.error('诊断不能为空,请选择诊断内容')
1725
               that.$message.error('诊断不能为空,请选择诊断内容')

+ 99 - 6
src/xt_pages/outpatientRecord/outpatientRecord.vue 查看文件

13
                         搜索
13
                         搜索
14
                     </el-button>
14
                     </el-button>
15
                 </div>
15
                 </div>
16
-                <el-button size="small" type="primary" @click="dialogFormVisible = true">医保对账</el-button>
16
+                <!--<el-button size="small" type="primary" @click="dialogFormVisible = true">医保对账</el-button>-->
17
             </div>
17
             </div>
18
             <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }"
18
             <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }"
19
                       :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
19
                       :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
28
                 >
28
                 >
29
                 </el-table-column>
29
                 </el-table-column>
30
                 <el-table-column align="center" prop="name" label="流水号">
30
                 <el-table-column align="center" prop="name" label="流水号">
31
-                    <template slot-scope="scope">{{scope.row.trt_dcla_detl_sn}}</template>
31
+                    <template slot-scope="scope">{{scope.row.record.trt_dcla_detl_sn}}</template>
32
                 </el-table-column>
32
                 </el-table-column>
33
                 <el-table-column align="center" prop="name" label="时间">
33
                 <el-table-column align="center" prop="name" label="时间">
34
                     <template slot-scope="scope" v-if="scope.row.ctime > 0">{{getTimes(scope.row.ctime)}}</template>
34
                     <template slot-scope="scope" v-if="scope.row.ctime > 0">{{getTimes(scope.row.ctime)}}</template>
38
                 </el-table-column>
38
                 </el-table-column>
39
                 <el-table-column align="center" prop="name" label="人员编号">
39
                 <el-table-column align="center" prop="name" label="人员编号">
40
                     <template slot-scope="scope">
40
                     <template slot-scope="scope">
41
-                        <div>{{scope.row.psn_no}}</div>
41
+                        <div>{{scope.row.record.psn_no}}</div>
42
                     </template>
42
                     </template>
43
                 </el-table-column>
43
                 </el-table-column>
44
                 <el-table-column align="center" prop="name" label="联系电话">
44
                 <el-table-column align="center" prop="name" label="联系电话">
96
 
96
 
97
                 <el-table-column align="center" prop="name" label="疾病类型">
97
                 <el-table-column align="center" prop="name" label="疾病类型">
98
                     <template slot-scope="scope">
98
                     <template slot-scope="scope">
99
-                        <el-select style="width:100%;" v-model="scope.row.sick_type" placeholder="请选择">
99
+                        <el-select style="width:100%;" v-model="scope.row.record.sick_type" placeholder="请选择">
100
                             <el-option
100
                             <el-option
101
                                     v-for="(item,index) in sick"
101
                                     v-for="(item,index) in sick"
102
                                     :key="index"
102
                                     :key="index"
120
             <el-dialog title="备案" :visible.sync="dialogFormVisible">
120
             <el-dialog title="备案" :visible.sync="dialogFormVisible">
121
                 <el-form :model="form" label-width="100px">
121
                 <el-form :model="form" label-width="100px">
122
                     <el-form-item label="险种类型" :label-width="formLabelWidth">
122
                     <el-form-item label="险种类型" :label-width="formLabelWidth">
123
-                        <el-select v-model="insutype" placeholder="请选择" style="width: 200px;">
123
+                        <el-select v-model="insutype_value" placeholder="请选择" style="width: 200px;">
124
                             <el-option
124
                             <el-option
125
                                     v-for="item in insutypes"
125
                                     v-for="item in insutypes"
126
                                     :key="item.value"
126
                                     :key="item.value"
177
         patientLoading: false,
177
         patientLoading: false,
178
         sick: [],
178
         sick: [],
179
         limit: 10,
179
         limit: 10,
180
+        insutype_value:"",
181
+        psn_no:"",
180
         page: 1,
182
         page: 1,
181
         dialogFormVisible: false,
183
         dialogFormVisible: false,
182
         total: 0,
184
         total: 0,
195
             label: '明细'
197
             label: '明细'
196
           }
198
           }
197
         ],
199
         ],
200
+        insutype_arr: [
201
+          {
202
+            value: '310',
203
+            label: '职工基本医疗保险'
204
+          }, {
205
+            value: '320',
206
+            label: '公务员医疗补助'
207
+          }, {
208
+            value: '330',
209
+            label: '大额医疗费用补助'
210
+          }, {
211
+            value: '340',
212
+            label: '离休人员医疗保障'
213
+          },
214
+          {
215
+            value: '390',
216
+            label: '城乡居民基本医疗保险'
217
+          }, {
218
+            value: '392',
219
+            label: '城乡居民大病医疗保险'
220
+          }, {
221
+            value: '510',
222
+            label: '生育保险'
223
+          }
224
+
225
+        ],
198
 
226
 
199
         insutypes: [
227
         insutypes: [
200
           {
228
           {
226
       }
254
       }
227
     },
255
     },
228
     methods: {
256
     methods: {
257
+      getName(value){
258
+        console.log(value)
259
+        for(let i = 0; i < this.insutype_arr.length; i++){
260
+          console.log(this.insutype_arr[i].value)
261
+          if(this.insutype_arr[i].value == value){
262
+            return this.insutype_arr[i].label
263
+          }
264
+        }
265
+        return "未知"
266
+      },
267
+      getGdybPatientInfo(){
268
+        let params ={
269
+          id_card_no:this.currentObject.id_card_no,
270
+          admin_user_id:  this.$store.getters.xt_user.user.id,
271
+        }
272
+        var that = this
273
+        axios.get('http://127.0.0.1:9532/api/patient/info', {
274
+          params: params
275
+        })
276
+          .then(function(response) {
277
+            if (response.data.state == 0) {
278
+              that.$message.error(response.data.msg)
279
+              return false
280
+            } else {
281
+
282
+              if(response.data.data.failed_code == -10){
283
+                that.$message.error(response.data.data.msg)
284
+              }else{
285
+                that.dialogFormVisible = true
286
+                that.insutypes = []
287
+                that.psn_no =  response.data.data.info.output.baseinfo.psn_no
288
+                for (let i =0; i < response.data.data.info.output.insuinfo.length; i++){
289
+                  let obj = {
290
+                    value:response.data.data.info.output.insuinfo[i].insutype,
291
+                    label:""
292
+                  }
293
+                  for(let b = 0; b < that.insutype_arr.length; b++){
294
+                    if(that.insutype_arr[b].value == response.data.data.info.output.insuinfo[i].insutype){
295
+                      obj.label = that.insutype_arr[b].label
296
+                    }
297
+                  }
298
+                  that.insutypes.push(obj)
299
+
300
+                }
301
+              }
302
+            }
303
+          })
304
+          .catch(function(error) {
305
+
306
+          })
307
+      },
229
       putOnRecord(type, row) {
308
       putOnRecord(type, row) {
230
         if (type == 1) {
309
         if (type == 1) {
231
-          this.dialogFormVisible = true
232
           this.currentObject = row
310
           this.currentObject = row
311
+
312
+          this.getGdybPatientInfo()
313
+
233
         } else {
314
         } else {
234
           this.$confirm('是否撤销备案', '撤销备案', {
315
           this.$confirm('是否撤销备案', '撤销备案', {
235
             confirmButtonText: '确 定',
316
             confirmButtonText: '确 定',
302
         let params = {
383
         let params = {
303
           record_type: 0,
384
           record_type: 0,
304
           patient_id: this.currentObject.id,
385
           patient_id: this.currentObject.id,
386
+          insutype: this.insutype_value,
387
+          psn_no: this.psn_no,
388
+          sick_id: this.currentObject.record.sick_type,
389
+          doctor_id: this.currentObject.record.doctor_id,
390
+          department_id:this.currentObject.record.department_id,
305
           admin_user_id: this.$store.getters.xt_user.user.id
391
           admin_user_id: this.$store.getters.xt_user.user.id
306
         }
392
         }
307
 
393
 
320
                 for (let i = 0; i < that.tableData.length; i++) {
406
                 for (let i = 0; i < that.tableData.length; i++) {
321
                   if (that.tableData[i].id == that.currentObject.id) {
407
                   if (that.tableData[i].id == that.currentObject.id) {
322
                     that.tableData[i].record.is_cancel == 1
408
                     that.tableData[i].record.is_cancel == 1
409
+                    that.tableData[i].record.trt_dcla_detl_sn = response.data.data.result.trt_dcla_detl_sn
410
+
411
+                    that.tableData[i].record.psn_no = response.data.data.result.psn_no
412
+                    that.tableData[i].record.doctor_id = response.data.data.result.doctor_id
413
+                    that.tableData[i].record.trt_dcla_detl_sn = response.data.data.result.trt_dcla_detl_sn
414
+
415
+
323
                   }
416
                   }
324
                 }
417
                 }
325
               }
418
               }