Selaa lähdekoodia

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

see999 4 vuotta sitten
vanhempi
commit
c86e873eae

+ 30 - 5
src/xt_pages/outpatientCharges/summary.vue Näytä tiedosto

96
         <el-table-column align="center" prop="name" label="操作">
96
         <el-table-column align="center" prop="name" label="操作">
97
           <template slot-scope="scope">
97
           <template slot-scope="scope">
98
             <el-button size="mini" type="primary" @click="toDetail(scope.row)">详情</el-button>
98
             <el-button size="mini" type="primary" @click="toDetail(scope.row)">详情</el-button>
99
-            <el-button size="mini" type="primary" @click="toPrint(scope.row)" v-if="scope.row.order_status == 2">结算单</el-button>
99
+            <el-button size="mini" type="primary" @click="toPrint(scope.row)" v-if="(scope.row.order_status == 2 || this.$store.getters.xt_user.org_id == 9504) && (scope.row.order_status == 2 || this.$store.getters.xt_user.org_id == 9919)">结算单</el-button>
100
           </template>
100
           </template>
101
         </el-table-column>
101
         </el-table-column>
102
       </el-table>
102
       </el-table>
137
       <allListPrint :paramsObj='paramsObj'></allListPrint>
137
       <allListPrint :paramsObj='paramsObj'></allListPrint>
138
     </el-dialog>
138
     </el-dialog>
139
 
139
 
140
+    <el-dialog
141
+            class="centerDialog"
142
+            width="1200px"
143
+            title="打印"
144
+            :visible.sync="statementVisible9504">
145
+      <!--<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>-->
146
+      <!--<new-statement-print ref="print" :paramsObj='orderObj9504'></new-statement-print>-->
147
+      <new-statement-print-two ref="print" :paramsObj='orderObj9504'></new-statement-print-two>
148
+    </el-dialog>
149
+
140
 
150
 
141
   </div>
151
   </div>
142
 </template>
152
 </template>
150
   import NewStatementPrint from './newStatementPrint'
160
   import NewStatementPrint from './newStatementPrint'
151
   import listPrint from './listPrint'
161
   import listPrint from './listPrint'
152
   import allListPrint from './allListPrint'
162
   import allListPrint from './allListPrint'
163
+  import NewStatementPrintTwo from './newStatementPrintTwo'
153
 
164
 
154
 
165
 
155
   export default {
166
   export default {
156
     components: {
167
     components: {
168
+      NewStatementPrintTwo,
157
       NewStatementPrint,
169
       NewStatementPrint,
158
       BreadCrumb,
170
       BreadCrumb,
159
       listPrint,
171
       listPrint,
163
       return {
175
       return {
164
         orderObj: {},
176
         orderObj: {},
165
         statementVisible: false,
177
         statementVisible: false,
178
+        statementVisible9504:false,
179
+        orderObj9504:{},
166
         crumbs: [
180
         crumbs: [
167
           { path: false, name: '门诊收费' },
181
           { path: false, name: '门诊收费' },
168
           { path: false, name: '项目消费明细汇总' }
182
           { path: false, name: '项目消费明细汇总' }
183
     },
197
     },
184
     methods: {
198
     methods: {
185
       toPrint(row){
199
       toPrint(row){
186
-        this.statementVisible = true
187
-        let obj = {
188
-          order_id: row.id
200
+        if(this.$store.getters.xt_user.org_id == 9504){
201
+          this.statementVisible9504 = true
202
+          let obj = {
203
+            order_id: row.id,
204
+            patient_id: row.patient_id,
205
+            record_time: this.getTimes(row.settle_accounts_date),
206
+            admin_user_id: this.$store.getters.xt_user.user.id,
207
+          }
208
+          this.orderObj9504 = obj
209
+        }else {
210
+          this.statementVisible = true
211
+          let obj = {
212
+            order_id: row.id
213
+          }
214
+          this.orderObj = obj
189
         }
215
         }
190
-        this.orderObj = obj
191
 
216
 
192
       },
217
       },
193
       export_detail(){
218
       export_detail(){

+ 34 - 1
src/xt_pages/role/components/AdminInfoForm.vue Näytä tiedosto

705
                 }
705
                 }
706
                 this.form.user_title = admin.user_title
706
                 this.form.user_title = admin.user_title
707
                 this.form.role = admin.role_ids
707
                 this.form.role = admin.role_ids
708
+               
708
                 this.form.department_id = admin.department_id
709
                 this.form.department_id = admin.department_id
710
+                if(admin.department_id == 0){
711
+                   this.form.department_id = ""
712
+                }
709
                 this.form.role_ids = []
713
                 this.form.role_ids = []
710
                 for (let i = 0; i < this.form.role.split(",").length; i++) {
714
                 for (let i = 0; i < this.form.role.split(",").length; i++) {
711
                   if (this.form.role.split(',')[i].length > 0) {
715
                   if (this.form.role.split(',')[i].length > 0) {
734
                 }
738
                 }
735
                 this.isSubSuperAdmin = resp.data.isSubSuperAdmin
739
                 this.isSubSuperAdmin = resp.data.isSubSuperAdmin
736
                 this.org = resp.data.org
740
                 this.org = resp.data.org
741
+                
742
+               
737
                 this.form.sex = admin.sex
743
                 this.form.sex = admin.sex
744
+                if(admin.sex == 0){
745
+                   this.form.sex = ""
746
+                }
738
                 this.form.age = admin.age
747
                 this.form.age = admin.age
748
+                if(admin.age == 0){
749
+                  this.form.age = ""
750
+                }
739
                 this.form.nation = admin.nation
751
                 this.form.nation = admin.nation
740
                 this.form.card_type = admin.card_type
752
                 this.form.card_type = admin.card_type
753
+                if(admin.card_type == 0){
754
+                  this.form.card_type = ""
755
+                }
741
                 this.form.id_card = admin.id_card
756
                 this.form.id_card = admin.id_card
742
                 this.form.education = admin.education
757
                 this.form.education = admin.education
758
+                if(admin.education == 0){
759
+                  this.form.education = ""
760
+                }
743
                 this.form.study_major_name = admin.study_major_name
761
                 this.form.study_major_name = admin.study_major_name
744
                 this.form.work_major_name = admin.work_major_name
762
                 this.form.work_major_name = admin.work_major_name
745
                 this.form.role_type = admin.role_type
763
                 this.form.role_type = admin.role_type
764
+                if(admin.role_type == 0){
765
+                  this.form.role_type = ""
766
+                }
746
                 this.form.medical_code = admin.medical_code
767
                 this.form.medical_code = admin.medical_code
747
                 this.form.doctor_code = admin.doctor_code
768
                 this.form.doctor_code = admin.doctor_code
748
                 this.form.licensing = admin.licensing
769
                 this.form.licensing = admin.licensing
770
+                if(admin.licensing == 0){
771
+                  this.form.licensing = ""
772
+                }
749
                 this.form.job_number = admin.job_number
773
                 this.form.job_number = admin.job_number
750
                 this.form.prescription_qualification_identification = admin.prescription_qualification_identification
774
                 this.form.prescription_qualification_identification = admin.prescription_qualification_identification
775
+                if(admin.prescription_qualification_identification == 0){
776
+                   this.form.prescription_qualification_identification = ""
777
+                }
751
                 this.form.identification_outpatients = admin.identification_outpatients
778
                 this.form.identification_outpatients = admin.identification_outpatients
752
                 this.form.start_time = this.getTime(admin.start_time)
779
                 this.form.start_time = this.getTime(admin.start_time)
753
                 this.form.medical_range_code = admin.medical_range_code
780
                 this.form.medical_range_code = admin.medical_range_code
760
                 this.form.doctor_number = admin.doctor_number
787
                 this.form.doctor_number = admin.doctor_number
761
                 this.form.is_active = admin.is_active
788
                 this.form.is_active = admin.is_active
762
                 console.log("2222222",this.form.is_active)
789
                 console.log("2222222",this.form.is_active)
790
+               
763
                 this.form.active_status = admin.active_status
791
                 this.form.active_status = admin.active_status
792
+                if(admin.active_status == 0){
793
+                   this.form.active_status = ""
794
+                }
764
               
795
               
765
                 var id = 0
796
                 var id = 0
766
                 for(let i=0;i<this.numberList.length;i++){
797
                 for(let i=0;i<this.numberList.length;i++){
770
                 }
801
                 }
771
                 console.log("id2222222",id)
802
                 console.log("id2222222",id)
772
                 this.form.outpatient_illnessCategory = id
803
                 this.form.outpatient_illnessCategory = id
773
-              
804
+                 if(id == 0){
805
+                   this.form.outpatient_illnessCategory = ""
806
+                 }
774
                 //如果当前用户是超级管理员而且编辑自己的信息
807
                 //如果当前用户是超级管理员而且编辑自己的信息
775
 
808
 
776
                 if(!this.isSubSuperAdmin) {
809
                 if(!this.isSubSuperAdmin) {