瀏覽代碼

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

csx 3 年之前
父節點
當前提交
a9b3d117eb

+ 10 - 2
src/xt_pages/outpatientCharges/components/chargeDialog.vue 查看文件

111
           found_price:'',
111
           found_price:'',
112
           total:0,
112
           total:0,
113
           fapiao_code:"",
113
           fapiao_code:"",
114
-          fapiao_number:""
114
+          fapiao_number:"",
115
+          order:null
115
 
116
 
116
 
117
 
117
         },
118
         },
164
       }
165
       }
165
     },
166
     },
166
     methods: {
167
     methods: {
167
-      show: function (total) {
168
+      show: function (total,order) {
168
         this.total = total
169
         this.total = total
169
         this.form.private_price = total
170
         this.form.private_price = total
170
         this.form.pay_price = total
171
         this.form.pay_price = total
174
 
175
 
175
         this.form.fapiao_code =""
176
         this.form.fapiao_code =""
176
         this.form.fapiao_number = ""
177
         this.form.fapiao_number = ""
178
+        this.order = order
179
+
180
+        if(this.order && this.order.id > 0){
181
+          this.total = this.order.medfee_sumamt
182
+          this.medical_insurance_price = this.order.fund_pay_sumamt
183
+          this.private_price =  this.order.psn_part_amt
177
 
184
 
178
 
185
 
186
+        }
179
 
187
 
180
         this.visibility = true
188
         this.visibility = true
181
 
189
 

+ 4 - 4
src/xt_pages/outpatientCharges/components/registerDialog.vue 查看文件

423
           }
423
           }
424
         })
424
         })
425
       },
425
       },
426
-      reading(medicalInsuranceCard) {
426
+      reading() {
427
         var that = this
427
         var that = this
428
         if (this.form.id_card_type.length == 0 || this.form.id_card_type == 0) {
428
         if (this.form.id_card_type.length == 0 || this.form.id_card_type == 0) {
429
           this.$message.error('请先选择读卡类型')
429
           this.$message.error('请先选择读卡类型')
431
         }
431
         }
432
         let params = {
432
         let params = {
433
           'id_card_type': this.form.id_card_type,
433
           'id_card_type': this.form.id_card_type,
434
-          'admin_user_id': this.$store.getters.xt_user.user.id
435
-
434
+          'admin_user_id': this.$store.getters.xt_user.user.id,
435
+          'certificates':this.form.certificates,
436
         }
436
         }
437
-        axios.get('http://127.0.0.1:9532/api/sscard', {
437
+        axios.get('http://127.0.0.1:9532/api/readcard', {
438
           params: params
438
           params: params
439
         })
439
         })
440
           .then(function(response) {
440
           .then(function(response) {

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

44
                             </div>
44
                             </div>
45
                             <div class="chargeUl" style="border-top:1px solid #000;">
45
                             <div class="chargeUl" style="border-top:1px solid #000;">
46
                                 <p style="width:50%;">个人账号</p>
46
                                 <p style="width:50%;">个人账号</p>
47
-                                <p style="width:50%;">{{info.transBody.akc266?info.transBody.akc266:0}}元</p>
47
+                                <p style="width:50%;">{{info.transBody.akb066?info.transBody.akb066:0}}元</p>
48
                             </div>
48
                             </div>
49
                             <div class="chargeUl" style="border-top:1px solid #000;border-bottom:1px solid #000;">
49
                             <div class="chargeUl" style="border-top:1px solid #000;border-bottom:1px solid #000;">
50
                                 <p style="width:50%;">现金支付</p>
50
                                 <p style="width:50%;">现金支付</p>

+ 83 - 27
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue 查看文件

64
 
64
 
65
                         </el-button>
65
                         </el-button>
66
 
66
 
67
-                        <!--<el-button-->
68
-                                <!--size="small" @click="sz_open(8)" type="primary"-->
69
-                        <!--&gt;预结算-->
70
-                        <!--</el-button>-->
67
+                        <el-button
68
+                                size="small" @click="sz_open(8)" type="primary"
69
+                        >预结算
70
+                        </el-button>
71
 
71
 
72
-                        <!--<el-button-->
73
-                                <!--v-if="this.order.order_status == 1"-->
74
-                                <!--size="small" @click="sz_open(7)" type="primary"-->
75
-                        <!--&gt;撤销明细-->
76
-                        <!--</el-button>-->
72
+                        <el-button
73
+                                v-if="this.order.order_status == 1"
74
+                                size="small" @click="sz_open(7)" type="primary"
75
+                        >撤销明细
76
+                        </el-button>
77
 
77
 
78
                         <el-button
78
                         <el-button
79
                                 v-if="(this.hisPatientInfo.id > 0 && this.order.id == 0) || this.order.order_status == 1"
79
                                 v-if="(this.hisPatientInfo.id > 0 && this.order.id == 0) || this.order.order_status == 1"
120
                                    type="primary">挂号
120
                                    type="primary">挂号
121
                         </el-button>
121
                         </el-button>
122
 
122
 
123
+                        <el-button
124
+                                size="small" @click="open(8)" type="primary"
125
+                        >预结算
126
+                        </el-button>
127
+
123
 
128
 
124
                         <el-button v-loading="loadingtwo"
129
                         <el-button v-loading="loadingtwo"
125
                                    v-if="(this.hisPatientInfo.id > 0 && this.order.id == 0) || this.order.order_status == 1 ||  this.order.order_status == 3"
130
                                    v-if="(this.hisPatientInfo.id > 0 && this.order.id == 0) || this.order.order_status == 1 ||  this.order.order_status == 3"
1809
 
1814
 
1810
           if (this.activeName == 'first') {
1815
           if (this.activeName == 'first') {
1811
 
1816
 
1812
-            this.$refs.charge.show(this.getTotal())
1817
+            this.$refs.charge.show(this.getTotal(),this.order)
1813
 
1818
 
1814
           } else {
1819
           } else {
1815
-            this.$refs.charge.show(this.getTotalTwo())
1820
+            this.$refs.charge.show(this.getTotalTwo(),this.order)
1816
 
1821
 
1817
           }
1822
           }
1818
 
1823
 
1944
           }
1949
           }
1945
 
1950
 
1946
         } else if (index == 8) {
1951
         } else if (index == 8) {
1947
-          let params = {
1948
-            start_time: '2020-12-28',
1949
-            end_time: '2020-12-30'
1950
-          }
1951
-          var that = this
1952
-          axios.get('http://127.0.0.1:9532/api/checkdetailaccount/get', {
1953
-            params: params
1954
-          })
1955
-            .then(function(response) {
1956
-              if (response.data.state == 0) {
1957
-                that.$message.error(response.data.msg)
1958
-                that.loadingtwo = false
1959
-                return false
1960
-              } else {
1961
 
1952
 
1953
+          var that = this
1954
+          let form = {}
1955
+          form['id'] = this.patientInfo.id
1956
+          form['his_patient_id'] = this.hisPatientInfo.id
1957
+          form['record_time'] = this.record_date
1958
+          form['admin_user_id'] = this.$store.getters.xt_user.user.id
1959
+          form['org_id'] = this.$store.getters.xt_user.org_id
1960
+          if (this.activeName == 'first') {
1961
+            form['settle_accounts_type'] = 1
1962
+          } else {
1963
+            form['start_time'] = this.other_start_time
1964
+            form['end_time'] = this.other_end_time
1965
+            form['settle_accounts_type'] = 2
1966
+          }
1967
+          this.$confirm('是否进行预结算', '预结算', {
1968
+            confirmButtonText: '确 定',
1969
+            cancelButtonText: '取 消',
1970
+            type: 'warning'
1971
+          }).then(() => {
1972
+            axios.get('http://127.0.0.1:9532/api/presettle/get', {
1973
+              params:form,
1974
+              headers: {
1975
+                'Permission': 5
1962
               }
1976
               }
1963
             })
1977
             })
1964
-            .catch(function(error) {
1978
+              .then(function(response) {
1979
+                if (response.data.state == 0) {
1980
+                  that.$message.error(response.data.msg)
1981
+                  return false
1982
+                } else {
1983
+                  if (response.data.data.failed_code == -10) {
1984
+                    that.$confirm(response.data.data.msg, '医保错误信息', {
1985
+                      confirmButtonText: '确 定',
1986
+                      type: 'warning'
1987
+                    }).then(() => {
1965
 
1988
 
1966
-            })
1989
+                    }).catch(() => {
1990
+                    })
1991
+                  } else {
1992
+                    that.changeRadioAndPatient(1)
1993
+                    that.$message({ message: '预结算成功', type: 'success', duration: 5000 })
1994
+                  }
1995
+                }
1996
+              })
1997
+              .catch(function(error) {
1998
+
1999
+              })
2000
+          }).catch(() => {
2001
+
2002
+          })
2003
+          // let params = {
2004
+          //   start_time: '2020-12-28',
2005
+          //   end_time: '2020-12-30'
2006
+          // }
2007
+          // var that = this
2008
+          // axios.get('http://127.0.0.1:9532/api/checkdetailaccount/get', {
2009
+          //   params: params
2010
+          // })
2011
+          //   .then(function(response) {
2012
+          //     if (response.data.state == 0) {
2013
+          //       that.$message.error(response.data.msg)
2014
+          //       that.loadingtwo = false
2015
+          //       return false
2016
+          //     } else {
2017
+          //
2018
+          //     }
2019
+          //   })
2020
+          //   .catch(function(error) {
2021
+          //
2022
+          //   })
1967
 
2023
 
1968
         } else if (index == 9) {
2024
         } else if (index == 9) {
1969
           this.statementVisible = true
2025
           this.statementVisible = true

+ 13 - 8
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

1817
       setData(data, info, admin_info, doctors, department, hisPatientInfo, month_data) {
1817
       setData(data, info, admin_info, doctors, department, hisPatientInfo, month_data) {
1818
         this.curMonthPrescriptions = {}
1818
         this.curMonthPrescriptions = {}
1819
         this.curPrescriptions = {}
1819
         this.curPrescriptions = {}
1820
+        // this.$refs.tabProjectTeam.clearSelection()
1821
+
1822
+
1820
 
1823
 
1821
         console.log(doctors)
1824
         console.log(doctors)
1822
         for (let i = 0; i < doctors.length; i++) {
1825
         for (let i = 0; i < doctors.length; i++) {
1950
           return false
1953
           return false
1951
         }
1954
         }
1952
       }, open_three() {
1955
       }, open_three() {
1956
+        console.log(this.prescriptions)
1953
         for (let i = 0; i < this.prescriptions.length; i++) {
1957
         for (let i = 0; i < this.prescriptions.length; i++) {
1954
           for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
1958
           for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
1955
             if (this.prescriptions[i].advices[b].prescribing_number == 0 || this.prescriptions[i].advices[b].prescribing_number == '') {
1959
             if (this.prescriptions[i].advices[b].prescribing_number == 0 || this.prescriptions[i].advices[b].prescribing_number == '') {
2019
             this.$message.error('疾病类型不能为空')
2023
             this.$message.error('疾病类型不能为空')
2020
             return
2024
             return
2021
           }
2025
           }
2026
+          console.log(this.prescriptions)
2022
           for (let i = 0; i < this.prescriptions.length; i++) {
2027
           for (let i = 0; i < this.prescriptions.length; i++) {
2023
             for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
2028
             for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
2024
               if (this.prescriptions[i].advices[b].prescribing_number == 0 || this.prescriptions[i].advices[b].prescribing_number == '') {
2029
               if (this.prescriptions[i].advices[b].prescribing_number == 0 || this.prescriptions[i].advices[b].prescribing_number == '') {
2085
             }
2090
             }
2086
             isLoading = true
2091
             isLoading = true
2087
 
2092
 
2088
-            createHisPrescription(data, params).then(response => {
2089
-              if (response.data.state == 1) {
2090
-                this.$emit('change', this.patientInfo.id)
2091
-                this.$message.success('保存成功')
2092
-              } else {
2093
-                this.$message.error(response.data.msg)
2094
-              }
2095
-            })
2093
+            // createHisPrescription(data, params).then(response => {
2094
+            //   if (response.data.state == 1) {
2095
+            //     this.$emit('change', this.patientInfo.id)
2096
+            //     this.$message.success('保存成功')
2097
+            //   } else {
2098
+            //     this.$message.error(response.data.msg)
2099
+            //   }
2100
+            // })
2096
           } else if (index == 2) {
2101
           } else if (index == 2) {
2097
             this.$router.push('/outpatientDoctorStation/print')
2102
             this.$router.push('/outpatientDoctorStation/print')
2098
           } else if (index == 4) {
2103
           } else if (index == 4) {