Browse Source

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

csx 4 years ago
parent
commit
1038adf109

+ 1 - 1
src/lang/zh.js View File

199
     system_prescription: '透析方案模版',
199
     system_prescription: '透析方案模版',
200
     integration_config: '集成配置',
200
     integration_config: '集成配置',
201
     his_config: 'HIS集成配置',
201
     his_config: 'HIS集成配置',
202
-
202
+    medical_template:'门诊模版',
203
     slow: '慢病管理',
203
     slow: '慢病管理',
204
     scrm: 'SCRM',
204
     scrm: 'SCRM',
205
     shop: '分销商城',
205
     shop: '分销商城',

+ 8 - 0
src/router/modules/templateManagement.js View File

46
         title: 'histemplate'
46
         title: 'histemplate'
47
       }
47
       }
48
     },
48
     },
49
+    {
50
+      path:'/data/medicaltemplate',
51
+      component:() => import('@/xt_pages/data/medicalTemplate'),
52
+      name:'medical_template',
53
+      meta:{
54
+        title:'medical_template'
55
+      }
49
 
56
 
57
+    },
50
   ]
58
   ]
51
 }
59
 }

+ 3 - 2
src/xt_pages/outpatientCharges/components/prescriptionTable.vue View File

3
     <el-table v-if="prescription.type == 1" :data="prescription.advices" border style="width: 99%;"
3
     <el-table v-if="prescription.type == 1" :data="prescription.advices" border style="width: 99%;"
4
               :row-style="{ color: '#303133' }"
4
               :row-style="{ color: '#303133' }"
5
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
5
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
6
+      <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
6
       <el-table-column align="center" prop="name" label="名称">
7
       <el-table-column align="center" prop="name" label="名称">
7
         <template slot-scope="scope"><span :title='scope.row.drug_name'>{{ scope.row.drug_name }}</span></template>
8
         <template slot-scope="scope"><span :title='scope.row.drug_name'>{{ scope.row.drug_name }}</span></template>
8
       </el-table-column>
9
       </el-table-column>
55
     <el-table v-if="prescription.type == 2" :data="prescription.project" border style="width: 99%;"
56
     <el-table v-if="prescription.type == 2" :data="prescription.project" border style="width: 99%;"
56
               :row-style="{ color: '#303133' }"
57
               :row-style="{ color: '#303133' }"
57
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
58
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
58
-
59
+      <el-table-column align="center" type="index" width="40" label="序号"></el-table-column>
59
       <el-table-column align="center" prop="project_name" label="名称">
60
       <el-table-column align="center" prop="project_name" label="名称">
60
         <template slot-scope="scope">{{ scope.row.project_name }}</template>
61
         <template slot-scope="scope">{{ scope.row.project_name }}</template>
61
       </el-table-column>
62
       </el-table-column>
189
           white-space: nowrap;
190
           white-space: nowrap;
190
           overflow: hidden;
191
           overflow: hidden;
191
           text-overflow: ellipsis;
192
           text-overflow: ellipsis;
192
-          width:60px;
193
+          width:80px;
193
           display: inline-block;
194
           display: inline-block;
194
           font-size: 14px;
195
           font-size: 14px;
195
         }
196
         }

+ 4 - 1
src/xt_pages/outpatientCharges/treatTemplate/printOne.vue View File

1
 <template>
1
 <template>
2
     <div id='prescription-print' class="prescription-print">
2
     <div id='prescription-print' class="prescription-print">
3
-        <div class="printTitle">血液透析中心医药费收据及收费项目清单</div>
3
+        <div class="printTitle">{{orgname}}&nbsp;&nbsp; 血液透析中心医药费收据及收费项目清单</div>
4
         <div class="infoMain">
4
         <div class="infoMain">
5
             <p class="infoP">医院(药店)编号:</p>
5
             <p class="infoP">医院(药店)编号:</p>
6
             <p class="infoP">名称:血液透析中心</p>
6
             <p class="infoP">名称:血液透析中心</p>
91
           list:{},
91
           list:{},
92
           prescription:[],
92
           prescription:[],
93
           patient:{},
93
           patient:{},
94
+          orgname:""
94
       } 
95
       } 
95
     },
96
     },
96
     methods:{
97
     methods:{
123
        console.log("patient_id",patient_id)
124
        console.log("patient_id",patient_id)
124
        var prescription_id = this.$route.query.prescription_id
125
        var prescription_id = this.$route.query.prescription_id
125
        this.getChargePrint(record_date,patient_id,prescription_id)
126
        this.getChargePrint(record_date,patient_id,prescription_id)
127
+       var xtuser = this.$store.getters.xt_user
128
+       this.orgname = xtuser.org.org_name
126
 
129
 
127
     }
130
     }
128
 }
131
 }

+ 4 - 4
src/xt_pages/outpatientDoctorStation/components/additionalCharges.vue View File

1
 <template>
1
 <template>
2
   <el-dialog
2
   <el-dialog
3
     title="附加收费"
3
     title="附加收费"
4
-    width="300px"
4
+    width="600px"
5
     :visible.sync="visible"
5
     :visible.sync="visible"
6
     :before-close="_close"
6
     :before-close="_close"
7
   >
7
   >
8
-    <el-table :data="chargeTable" border style="width: 100%;" height="300" :row-style="{ color: '#303133' }"
8
+    <el-table :data="chargeTable" border style="width: 100%;" height="350" :row-style="{ color: '#303133' }"
9
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row
9
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row
10
               @select-all="handleSelectionChange"
10
               @select-all="handleSelectionChange"
11
               @select='selectDrugs'>
11
               @select='selectDrugs'>
12
-      <el-table-column align="center" type="selection" width="40"></el-table-column>
13
-      <el-table-column align="center" prop="name" label="名称" width="100">
12
+      <el-table-column align="center" type="selection" width="60"></el-table-column>
13
+      <el-table-column align="center" prop="name" label="名称" width="160">
14
         <template slot-scope="scope">{{ scope.row.item_name }}</template>
14
         <template slot-scope="scope">{{ scope.row.item_name }}</template>
15
       </el-table-column>
15
       </el-table-column>
16
       <el-table-column align="center" prop="name" label="金额(元)">
16
       <el-table-column align="center" prop="name" label="金额(元)">

+ 9 - 9
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue View File

11
     <div class="mainTitle">基本信息:</div>
11
     <div class="mainTitle">基本信息:</div>
12
     <el-form class="basicForm" :model="patientInfo" ref="form" label-width="120px">
12
     <el-form class="basicForm" :model="patientInfo" ref="form" label-width="120px">
13
       <el-form-item label="姓名:" prop="name">
13
       <el-form-item label="姓名:" prop="name">
14
-        <el-input v-model="patientInfo.name" placeholder="" readonly></el-input>
14
+        <el-input v-model="patientInfo.name" placeholder="" :disabled="true"></el-input>
15
       </el-form-item>
15
       </el-form-item>
16
       <el-form-item label="性别: " prop="name">
16
       <el-form-item label="性别: " prop="name">
17
-        <el-input v-model="patientInfo.gender" placeholder="" readonly></el-input>
17
+        <el-input v-model="patientInfo.gender" placeholder="" :disabled="true"></el-input>
18
       </el-form-item>
18
       </el-form-item>
19
       <el-form-item label="年龄: " prop="name">
19
       <el-form-item label="年龄: " prop="name">
20
-        <el-input v-model="patientInfo.age" placeholder="" readonly></el-input>
20
+        <el-input v-model="patientInfo.age" placeholder="" :disabled="true"></el-input>
21
       </el-form-item>
21
       </el-form-item>
22
       <el-form-item label="证件号:" prop="name">
22
       <el-form-item label="证件号:" prop="name">
23
-        <el-input v-model="patientInfo.id_card_no" placeholder="" readonly></el-input>
23
+        <el-input v-model="patientInfo.id_card_no" placeholder="" :disabled="true"></el-input>
24
       </el-form-item>
24
       </el-form-item>
25
       <el-form-item label="出生日期: " prop="name">
25
       <el-form-item label="出生日期: " prop="name">
26
         <el-date-picker
26
         <el-date-picker
27
           style="width:100%;"
27
           style="width:100%;"
28
           v-model="patientInfo.birth"
28
           v-model="patientInfo.birth"
29
           type="date"
29
           type="date"
30
-          readonly
30
+          :disabled="true"
31
           placeholder="选择日期">
31
           placeholder="选择日期">
32
         </el-date-picker>
32
         </el-date-picker>
33
       </el-form-item>
33
       </el-form-item>
34
       <el-form-item label="联系电话: " prop="name">
34
       <el-form-item label="联系电话: " prop="name">
35
-        <el-input v-model="patientInfo.phone" placeholder="" readonly></el-input>
35
+        <el-input v-model="patientInfo.phone" placeholder="" :disabled="true"></el-input>
36
       </el-form-item>
36
       </el-form-item>
37
       <el-form-item label="医保类型: " prop="name">
37
       <el-form-item label="医保类型: " prop="name">
38
-        <el-select v-model="delivery_way" placeholder="请选择">
38
+        <el-select v-model="delivery_way" style="width:100%;" placeholder="请选择">
39
          <el-option
39
          <el-option
40
             v-for="item in wayOptions"
40
             v-for="item in wayOptions"
41
            :key="item.id"
41
            :key="item.id"
45
         </el-select>
45
         </el-select>
46
       </el-form-item>
46
       </el-form-item>
47
       <el-form-item label="医保证号: " prop="name">
47
       <el-form-item label="医保证号: " prop="name">
48
-        <el-input v-model="patientInfo.health_care_no" placeholder="" readonly></el-input>
48
+        <el-input v-model="patientInfo.health_care_no" placeholder="" :disabled="true"></el-input>
49
       </el-form-item>
49
       </el-form-item>
50
       <el-form-item label="家庭住址: " prop="name">
50
       <el-form-item label="家庭住址: " prop="name">
51
-        <el-input v-model="patientInfo.home_address" placeholder="" readonly></el-input>
51
+        <el-input v-model="patientInfo.home_address" placeholder="" :disabled="true"></el-input>
52
       </el-form-item>
52
       </el-form-item>
53
     </el-form>
53
     </el-form>
54
     <div class="mainTitle">体格信息:</div>
54
     <div class="mainTitle">体格信息:</div>

+ 15 - 7
src/xt_pages/outpatientDoctorStation/components/inquiriesDetail.vue View File

11
       <el-button v-if="activeName == 'second'" @click="open(2)" type="primary">打印</el-button>
11
       <el-button v-if="activeName == 'second'" @click="open(2)" type="primary">打印</el-button>
12
     </div>
12
     </div>
13
     <el-tabs v-model="activeName">
13
     <el-tabs v-model="activeName">
14
-      
14
+
15
       <el-tab-pane label="处方详情" name="first">
15
       <el-tab-pane label="处方详情" name="first">
16
         <el-tabs class="preTabs" v-model="editableTabsValue" type="card" @tab-click="tabclickEvent">
16
         <el-tabs class="preTabs" v-model="editableTabsValue" type="card" @tab-click="tabclickEvent">
17
           <el-tab-pane
17
           <el-tab-pane
38
             <span style="width:240px;">证件号:{{order.patient.id_card_no}}</span>
38
             <span style="width:240px;">证件号:{{order.patient.id_card_no}}</span>
39
             <span style="width:180px;">联系电话:{{order.patient.phone}}</span>
39
             <span style="width:180px;">联系电话:{{order.patient.phone}}</span>
40
             <span style="width:260px;">医生:{{order.doctor}}</span>
40
             <span style="width:260px;">医生:{{order.doctor}}</span>
41
-            <span style="width:180px;">科室:{{order.departments}}</span>
41
+            <span style="width:180px;">科室:{{getDepartMent(order.departments)}}</span>
42
             <span style="width:240px;">创建时间: {{getTimes(order.ctime,"{y}-{m}-{d} {h}:{i}")}}</span>
42
             <span style="width:240px;">创建时间: {{getTimes(order.ctime,"{y}-{m}-{d} {h}:{i}")}}</span>
43
             <!-- <span style="width:180px;">疾病名称:{{case_history.diagnostic}}</span>
43
             <!-- <span style="width:180px;">疾病名称:{{case_history.diagnostic}}</span>
44
             <span style="width:180px;">症状:{{case_history.diagnostic}}</span> -->
44
             <span style="width:180px;">症状:{{case_history.diagnostic}}</span> -->
45
-            
45
+
46
 
46
 
47
           </div>
47
           </div>
48
         </div>
48
         </div>
153
     methods: {
153
     methods: {
154
       open(index){
154
       open(index){
155
         if(index == 1){
155
         if(index == 1){
156
+           var arr= []
157
+           for(let i=0;i<this.prescriptions.length;i++){
158
+              arr.push(this.prescriptions[i].id)
159
+           }
160
+           var prescription_id = arr[0]
161
+           var record_date = this.format(this.order.record_date)
162
+           var ids = arr.toString()
163
+           this.$router.push("/outpatientDoctorStation/print?record="+record_date+"&prescription_id="+prescription_id+"&ids="+ids+"&patient_id="+this.patientInfo.id)
156
 
164
 
157
-          //  /outpatientDoctorStation/print?record=2020-12-11&prescription_id=157&ids=157,159&patient_id=1064
158
         }else if(index == 2){
165
         }else if(index == 2){
159
-           var record_date = this.format(this.case_history.sick_date)    
166
+           var record_date = this.format(this.case_history.sick_date)
160
           this.$router.push("/outpatientDoctorStation/recordPrint?record="+record_date+"&patient_id="+this.case_history.patient_id)
167
           this.$router.push("/outpatientDoctorStation/recordPrint?record="+record_date+"&patient_id="+this.case_history.patient_id)
161
         }
168
         }
162
       },
169
       },
212
             return false
219
             return false
213
           } else {
220
           } else {
214
             this.patientInfo = response.data.data.order.patient
221
             this.patientInfo = response.data.data.order.patient
222
+            console.log("患者信息",this.patientInfo)
215
             this.hisPatientInfo = response.data.data.order.his_patient
223
             this.hisPatientInfo = response.data.data.order.his_patient
216
             this.case_history = response.data.data.order.case_history
224
             this.case_history = response.data.data.order.case_history
217
             console.log("历史详情",this.case_history)
225
             console.log("历史详情",this.case_history)
287
      getAllDoctorList(){
295
      getAllDoctorList(){
288
       getAllDoctorList().then(response=>{
296
       getAllDoctorList().then(response=>{
289
         if(response.data.state == 1){
297
         if(response.data.state == 1){
290
-            var doctor =  response.data.data.doctor 
298
+            var doctor =  response.data.data.doctor
291
             this.doctorList = doctor
299
             this.doctorList = doctor
292
              var department = response.data.data.department
300
              var department = response.data.data.department
293
              console.log("department",department)
301
              console.log("department",department)
294
              this.departmentList = department
302
              this.departmentList = department
295
             }
303
             }
296
-         })   
304
+         })
297
       },
305
       },
298
       getDepartMent(id){
306
       getDepartMent(id){
299
          var name = ""
307
          var name = ""

+ 2 - 2
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue View File

129
 
129
 
130
     <div class="additionalBox">
130
     <div class="additionalBox">
131
       <div class="additionalOne" v-for="(item,index) in prescription.addition" :key="index">
131
       <div class="additionalOne" v-for="(item,index) in prescription.addition" :key="index">
132
-        <span>{{item.item_name}}</span>
132
+        <span :title="item.item_name">{{item.item_name}}</span>
133
         <el-input v-model="item.price" placeholder="" style="width:50px;"></el-input>
133
         <el-input v-model="item.price" placeholder="" style="width:50px;"></el-input>
134
134
135
         <el-input v-model="item.count" placeholder="" style="width:50px;"></el-input>
135
         <el-input v-model="item.count" placeholder="" style="width:50px;"></el-input>
371
           white-space: nowrap;
371
           white-space: nowrap;
372
           overflow: hidden;
372
           overflow: hidden;
373
           text-overflow: ellipsis;
373
           text-overflow: ellipsis;
374
-          width:60px;
374
+          width:80px;
375
           display: inline-block;
375
           display: inline-block;
376
           font-size: 14px;
376
           font-size: 14px;
377
         }
377
         }

+ 32 - 5
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

92
 
92
 
93
       @selection-change="handleSelectionChange">
93
       @selection-change="handleSelectionChange">
94
       <el-table-column
94
       <el-table-column
95
+        align='center'
95
         type="selection"
96
         type="selection"
96
         width="50">
97
         width="50">
97
       </el-table-column>
98
       </el-table-column>
98
       <el-table-column
99
       <el-table-column
100
+        align='center'
99
         label="处方编号"
101
         label="处方编号"
100
         width="120">
102
         width="120">
101
         <template  slot-scope="scope">
103
         <template  slot-scope="scope">
102
           <span>处方编号</span>
104
           <span>处方编号</span>
103
         </template>
105
         </template>
104
       </el-table-column>
106
       </el-table-column>
105
-      <el-table-column
106
-        label="处方号"
107
-        width="200">
107
+      <el-table-column label="处方号">
108
         <template slot-scope="scope">
108
         <template slot-scope="scope">
109
           <span>
109
           <span>
110
            <el-input v-model="scope.row.prescription_number" :disabled="true"></el-input>
110
            <el-input v-model="scope.row.prescription_number" :disabled="true"></el-input>
112
         </template>
112
         </template>
113
       </el-table-column>
113
       </el-table-column>
114
     </el-table>
114
     </el-table>
115
+    <el-dialog
116
+      class="centerDialog"
117
+      width="560px"
118
+      title="打印"
119
+      :visible.sync="innerVisible"
120
+      append-to-body>
121
+      
122
+      <print :paramsObj='paramsObj'></print>
123
+    </el-dialog>
115
       <span slot="footer" class="dialog-footer">
124
       <span slot="footer" class="dialog-footer">
116
         <el-button @click="centerDialogVisible = false">取 消</el-button>
125
         <el-button @click="centerDialogVisible = false">取 消</el-button>
117
         <el-button type="primary" @click="savePrint">确 定</el-button>
126
         <el-button type="primary" @click="savePrint">确 定</el-button>
131
   import saveRecordTemplate from './components/saveRecordTemplate'
140
   import saveRecordTemplate from './components/saveRecordTemplate'
132
   import { uParseTime } from '@/utils/tools'
141
   import { uParseTime } from '@/utils/tools'
133
   import { getPrescriptionList } from "@/api/project/project"
142
   import { getPrescriptionList } from "@/api/project/project"
143
+  import print from './print'
134
   export default {
144
   export default {
135
     components: {
145
     components: {
136
       BreadCrumb,
146
       BreadCrumb,
137
       deskPrescription,
147
       deskPrescription,
138
       deskRecord,
148
       deskRecord,
139
       medicalRecord,
149
       medicalRecord,
140
-      saveRecordTemplate
150
+      saveRecordTemplate,
151
+      print
141
     },
152
     },
142
     data() {
153
     data() {
143
       return {
154
       return {
184
         index:0,
195
         index:0,
185
         admin_info:{},
196
         admin_info:{},
186
         saveLoading:false,
197
         saveLoading:false,
198
+        innerVisible:false,
199
+        paramsObj:{}
187
 
200
 
188
       }
201
       }
189
     },
202
     },
841
          var ids = arr.join(",")
854
          var ids = arr.join(",")
842
          console.log("ids",ids)
855
          console.log("ids",ids)
843
          if(this.index == 2){
856
          if(this.index == 2){
844
-           this.$router.push("/outpatientDoctorStation/print?record="+this.record_date+"&prescription_id="+this.prescription_id+"&ids="+ids+"&patient_id="+this.patientid)
857
+           let obj = {
858
+             record:this.record_date,
859
+             prescription_id:this.prescription_id,
860
+             ids:ids,
861
+             patient_id:this.patientid
862
+           }
863
+           this.paramsObj = obj
864
+           this.innerVisible = true
865
+           
866
+          //  this.$router.push("/outpatientDoctorStation/print?record="+this.record_date+"&prescription_id="+this.prescription_id+"&ids="+ids+"&patient_id="+this.patientid)
845
          }
867
          }
846
          if(this.index == 6){
868
          if(this.index == 6){
847
             this.$router.push("/outpatientDoctorStation/treatPrint?record="+this.record_date+"&prescription_id="+this.prescription_id+"&ids="+ids+"&patient_id="+this.patientid)
869
             this.$router.push("/outpatientDoctorStation/treatPrint?record="+this.record_date+"&prescription_id="+this.prescription_id+"&ids="+ids+"&patient_id="+this.patientid)
1131
   }
1153
   }
1132
 
1154
 
1133
   }
1155
   }
1156
+  .centerDialog{
1157
+    .el-dialog__body{
1158
+      max-height: calc(100vh - 100px) !important;
1159
+    }
1160
+  }
1134
 </style>
1161
 </style>

+ 36 - 31
src/xt_pages/outpatientDoctorStation/print.vue View File

1
 <template>
1
 <template>
2
-  <div class="main-contain">
3
-    <div class="position">
4
-      <bread-crumb :crumbs="crumbs"></bread-crumb>
2
+  <div>
5
        <template>
3
        <template>
6
         <el-button
4
         <el-button
7
           :loading="loading"
5
           :loading="loading"
12
           >打印</el-button
10
           >打印</el-button
13
         >
11
         >
14
       </template>
12
       </template>
15
-    </div>
16
-    <div class="app-container" style="min-height:0;">
17
-        <el-container class="newContainer">
18
-            <!-- <div style="width:270px;margin-right:20px;">
19
-                <div class="cell clearfix" style="margin-bottom:10px;">
20
-                    <el-input size="small"  v-model.trim="search_input" class="filter-item"/>
21
-                    <el-button size="small" class="filter-item" type="primary" @click="searchAction">搜索</el-button>
22
-                </div>
23
-                <el-table ref="tab"   @current-change="changePatient" highlight-current-row :data="patientTableData" 
24
-                 height="480" border style="width: 100%">
25
-                    <el-table-column prop="date"  label="患者">   
26
-                      <template slot-scope="scope">{{scope.row.patients?scope.row.patients.name:''}}</template> 
27
-                    </el-table-column>
28
-                    <el-table-column prop="name" label="就诊号">
29
-                        <template slot-scope="scope">{{ scope.row.his_patient ?scope.row.his_patient.number:''}}</template>
30
-                    </el-table-column>
31
-                </el-table>
32
-            </div> -->
33
             
13
             
34
-            <div class='dialysisPage' style="flex: 1;height: calc(100vh - 178px);overflow-x:auto;::-webkit-scrollbar:height:15px;margin:0 auto;width:960px;">
35
-              <printOne v-bind:childResponse="childResponse" :advicePrint="advicePrint" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
36
-            </div>
37
-        </el-container>
14
+    <div class='dialysisPage'>
15
+      <printOne v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
38
     </div>
16
     </div>
39
   </div>
17
   </div>
40
 </template>
18
 </template>
57
     BreadCrumb,
35
     BreadCrumb,
58
     printOne
36
     printOne
59
   },
37
   },
38
+  props:{
39
+    paramsObj:Object
40
+  },
60
   data() {
41
   data() {
61
     return {
42
     return {
62
       crumbs: [
43
       crumbs: [
72
        search_input:"",
53
        search_input:"",
73
        loading:false,
54
        loading:false,
74
        patient_id:"",
55
        patient_id:"",
75
-       prescription_id:""
56
+       prescription_id:"",
57
+       ids:'',
58
+       paramsObj:{}
76
     };
59
     };
77
   },
60
   },
78
   methods:{
61
   methods:{
127
                 cal_two = cal_two + 1
110
                 cal_two = cal_two + 1
128
               }
111
               }
129
             }
112
             }
130
-            this.$refs.tab.setCurrentRow(this.patientTableData[0])
131
-            console.log(this.patientTableData[0])
132
-            this.choosePatient(this.patientTableData[0])
113
+            // this.$refs.tab.setCurrentRow(this.patientTableData[0])
114
+            // console.log(this.patientTableData[0])
115
+            // this.choosePatient(this.patientTableData[0])
133
             this.cal_one = cal_one
116
             this.cal_one = cal_one
134
             this.cal_two = cal_two   
117
             this.cal_two = cal_two   
135
          }
118
          }
171
 
154
 
172
   created() {
155
   created() {
173
     this.getAllDoctorList()
156
     this.getAllDoctorList()
174
-    var record_date = this.$route.query.record
157
+    var record_date = this.paramsObj.record
175
     this.record_date = record_date
158
     this.record_date = record_date
176
     console.log("record_date",record_date)
159
     console.log("record_date",record_date)
177
-    var prescription_id = this.$route.query.prescription_id
160
+    var prescription_id = this.paramsObj.prescription_id
178
     this.prescription_id = prescription_id
161
     this.prescription_id = prescription_id
162
+    this.patient_id = this.paramsObj.patient_id
163
+    this.ids = this.paramsObj.ids
164
+    // var record_date = this.$route.query.record
165
+    // this.record_date = record_date
166
+    // console.log("record_date",record_date)
167
+    // var prescription_id = this.$route.query.prescription_id
168
+    // this.prescription_id = prescription_id
179
     this.getAllHisPatientList(record_date)
169
     this.getAllHisPatientList(record_date)
180
   },
170
   },
171
+  watch:{
172
+    paramsObj:{//深度监听,可监听到对象、数组的变化
173
+      handler(val, oldVal){
174
+        this.paramsObj = val
175
+        this.patient_id = this.paramsObj.patient_id
176
+        var record_date = this.paramsObj.record
177
+        this.record_date = record_date
178
+        console.log("record_date",record_date)
179
+        var prescription_id = this.paramsObj.prescription_id
180
+        this.prescription_id = prescription_id
181
+        this.ids = this.paramsObj.ids
182
+      },
183
+      deep:true
184
+    }
185
+  }
181
 
186
 
182
 };
187
 };
183
 </script>
188
 </script>

+ 10 - 6
src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue View File

1
 <template>
1
 <template>
2
     <div id='prescription-print' class="prescription-print">
2
     <div id='prescription-print' class="prescription-print">
3
-        <div class="printTitle">门诊病历</div>
3
+        <div class="printTitle">{{orgname}} &nbsp;&nbsp; 门诊病历</div>
4
         <div class="infoTitle">
4
         <div class="infoTitle">
5
             <div>姓名:{{patient.name?patient.name:''}}</div>
5
             <div>姓名:{{patient.name?patient.name:''}}</div>
6
             <div>性别:
6
             <div>性别:
103
     data(){
103
     data(){
104
         return{
104
         return{
105
             educationOptions:[],
105
             educationOptions:[],
106
-            departmentList:[]
106
+            departmentList:[],
107
+            orgname:''
107
         }                   
108
         }                   
108
     },
109
     },
109
     methods:{
110
     methods:{
146
       getPatientCaseHistory(params).then(response=>{
147
       getPatientCaseHistory(params).then(response=>{
147
          if(response.data.state == 1){
148
          if(response.data.state == 1){
148
            var patient = response.data.data.patient
149
            var patient = response.data.data.patient
149
-           console.log("patinet",patient)
150
+        //    console.log("patinet",patient)
150
            this.patient = patient
151
            this.patient = patient
151
            var history = response.data.data.history
152
            var history = response.data.data.history
152
-           console.log("history",history)
153
+           console.log("中国history222222",history)
153
            this.history = history
154
            this.history = history
154
            var hispatient = response.data.data.hispatient
155
            var hispatient = response.data.data.hispatient
155
-           console.log("hispatient",hispatient)
156
+        //    console.log("hispatient",hispatient)
156
            this.hispatient = hispatient
157
            this.hispatient = hispatient
157
          }
158
          }
158
       })
159
       })
159
     },
160
     },
160
     getDeparment(id){
161
     getDeparment(id){
161
-    console.log("id---",id)
162
+  
162
      var name = ''
163
      var name = ''
163
      for(let i=0;i<this.departmentList.length;i++){
164
      for(let i=0;i<this.departmentList.length;i++){
164
          if(id == this.departmentList[i].id){
165
          if(id == this.departmentList[i].id){
173
       console.log("22222",this.educationOptions)
174
       console.log("22222",this.educationOptions)
174
       this.getAllDoctorList()
175
       this.getAllDoctorList()
175
       this.getPatientCaseHistory()
176
       this.getPatientCaseHistory()
177
+
178
+     var xtuser = this.$store.getters.xt_user
179
+     this.orgname = xtuser.org.org_name
176
     }
180
     }
177
 }
181
 }
178
 </script>
182
 </script>

+ 21 - 14
src/xt_pages/outpatientDoctorStation/template/printOne.vue View File

2
   <div id='prescriptionPrint'>
2
   <div id='prescriptionPrint'>
3
     <div v-for="(item,index) in advicePrint" :key="index">
3
     <div v-for="(item,index) in advicePrint" :key="index">
4
       <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
4
       <div id='prescription-print' class="prescription-print" style="page-break-after: always;">
5
-          <div class="printTitle">血液透析中心处方笺</div>
5
+          <div class="printTitle">{{orgname}} &nbsp;&nbsp; 血液透析中心处方笺</div>
6
           <div class="infoTitle">
6
           <div class="infoTitle">
7
               <p>姓名:{{item.patient.name?item.patient.name:""}}</p>
7
               <p>姓名:{{item.patient.name?item.patient.name:""}}</p>
8
               <p>性别:
8
               <p>性别:
57
     props:{
57
     props:{
58
       patient_id:Number,
58
       patient_id:Number,
59
       record_date:String,
59
       record_date:String,
60
-      prescription_id:Number
60
+      prescription_id:Number,
61
+      ids:String
61
     }, 
62
     }, 
62
     data(){
63
     data(){
63
       return {
64
       return {
68
         prescriptionInfo:[],
69
         prescriptionInfo:[],
69
         hisPatient:{},
70
         hisPatient:{},
70
         department:[],
71
         department:[],
71
-        prescriptions:[]
72
-
72
+        prescriptions:[],
73
+        orgname:""
73
       }
74
       }
74
     },
75
     },
75
    methods:{
76
    methods:{
104
           // patient_id:this.patient_id,
105
           // patient_id:this.patient_id,
105
           // record_date:this.record_date,
106
           // record_date:this.record_date,
106
           // prescription_id:this.prescription_id,
107
           // prescription_id:this.prescription_id,
107
-          patient_id:this.$route.query.patient_id,
108
-          record_date:this.$route.query.record,
109
-          prescription_id:this.$route.query.prescription_id,
110
-          ids:this.$route.query.ids
108
+          patient_id:this.patient_id,
109
+          record_date:this.record_date,
110
+          prescription_id:this.prescription_id,
111
+          ids:this.ids
111
         }
112
         }
112
         console.log("params",params)
113
         console.log("params",params)
113
        getPrescriptionPrint(params).then(response=>{
114
        getPrescriptionPrint(params).then(response=>{
149
        return name
150
        return name
150
      },
151
      },
151
      getTotalOne(id) {
152
      getTotalOne(id) {
152
-        console.log("处方数据",this.prescriptions)
153
         var total = 0
153
         var total = 0
154
         var addtotal = 0
154
         var addtotal = 0
155
         for (let i = 0; i < this.prescriptions.length; i++) {
155
         for (let i = 0; i < this.prescriptions.length; i++) {
161
             }
161
             }
162
           
162
           
163
             if (this.prescriptions[i].additionalcharge != null) {
163
             if (this.prescriptions[i].additionalcharge != null) {
164
-              for (let a = 0; a < this.prescriptions[i].additionalcharge.length; a++) {
165
-                addtotal = addtotal + this.prescriptions[i].additionalcharge[a].price * this.prescriptions[i].additionalcharge[a].count
164
+              for (let b = 0; b < this.prescriptions[i].additionalcharge.length; b++) {
165
+                addtotal = addtotal + this.prescriptions[i].additionalcharge[b].price * this.prescriptions[i].additionalcharge[b].count
166
               }
166
               }
167
             }
167
             }
168
               addtotal =  Math.floor(addtotal * 100) / 100
168
               addtotal =  Math.floor(addtotal * 100) / 100
169
         }
169
         }
170
-        
171
-        return total + addtotal
172
        }
170
        }
171
+       return total + addtotal
173
       }, 
172
       }, 
174
 
173
 
175
 
174
 
179
       this.getInitData()
178
       this.getInitData()
180
       this.getPrescriptionPrint()
179
       this.getPrescriptionPrint()
181
       this.getHisPatientDetail()
180
       this.getHisPatientDetail()
182
-
181
+      var xtuser = this.$store.getters.xt_user
182
+      this.orgname = xtuser.org.org_name
183
      
183
      
184
    },
184
    },
185
   //  watch:{
185
   //  watch:{
194
 
194
 
195
 
195
 
196
 <style lang="scss" scoped>
196
 <style lang="scss" scoped>
197
+.prescription-print{
198
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
199
+    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset; 
200
+    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
201
+    margin-bottom: 20px;
202
+    padding:20px 0px;
203
+}
197
 .printTitle{
204
 .printTitle{
198
     font-size: 22px;
205
     font-size: 22px;
199
     text-align: center;
206
     text-align: center;

+ 4 - 2
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue View File

13
             <p>就诊日期:{{getTime(item.ctime)}}</p>
13
             <p>就诊日期:{{getTime(item.ctime)}}</p>
14
         </div>
14
         </div>
15
 
15
 
16
-        <div class="printTitle">血液透析中心</div>
16
+        <div class="printTitle">{{orgname}} &nbsp;&nbsp; 血液透析中心处方、治疗单</div>
17
 
17
 
18
-        <div class="printTitle">处方、治疗单</div>
18
+        <!-- <div class="printTitle">处方、治疗单</div> -->
19
 
19
 
20
         <div class="infoTitle">
20
         <div class="infoTitle">
21
             <p>门诊编号:</p>
21
             <p>门诊编号:</p>
335
    created(){
335
    created(){
336
       this.getAllDoctorList()
336
       this.getAllDoctorList()
337
       this.getPrescriptionPrint()
337
       this.getPrescriptionPrint()
338
+      var xtuser = this.$store.getters.xt_user
339
+      this.orgname = xtuser.org.org_name
338
    },
340
    },
339
    watch:{
341
    watch:{
340
      patient_id:function(val){
342
      patient_id:function(val){

+ 245 - 9
src/xt_pages/outpatientRegistration/registrationHistory.vue View File

97
                 <el-table-column align="center" prop="name" label="操作人" width="70">
97
                 <el-table-column align="center" prop="name" label="操作人" width="70">
98
                     <template slot-scope="scope">{{creator}}</template>
98
                     <template slot-scope="scope">{{creator}}</template>
99
                 </el-table-column>
99
                 </el-table-column>
100
-                <el-table-column align="center" prop="name" label="操作" width="80">
100
+                <el-table-column align="center" prop="name" label="操作" width="180">
101
                     <template slot-scope="scope">
101
                     <template slot-scope="scope">
102
-                        <el-button size="mini" type="primary" v-if="scope.row.is_return == 1 && scope.row.record_date < startUnix" :disabled="true">已过号</el-button> 
103
-                        <el-button size="mini" type="primary" v-if="scope.row.is_return == 1 && scope.row.record_date >= startUnix" @click ="toReturnPatient(scope.row.id)">退号</el-button> 
104
-                        <el-button size="mini" type="primary" v-if="scope.row.is_return == 2" :disabled="true">已退号</el-button>
105
-                        <el-button size="mini" type="primary" v-if="scope.row.is_return == 3" >已就诊</el-button>  
102
+                      <el-button size="mini" type="primary" v-if="scope.row.is_return == 1 && scope.row.record_date < startUnix" :disabled="true">已过号</el-button> 
103
+                      <el-button size="mini" type="primary" v-if="scope.row.is_return == 1 && scope.row.record_date >= startUnix" @click ="toReturnPatient(scope.row.id)">退号</el-button> 
104
+                      <el-button size="mini" type="primary" v-if="scope.row.is_return == 2" :disabled="true">已退号</el-button>
105
+                      <el-button size="mini" type="primary" v-if="scope.row.is_return == 3" >已就诊</el-button>  
106
+                      <el-button size="mini" type="primary" @click="open(scope.row)">详情</el-button>
106
                     </template>
107
                     </template>
107
                 </el-table-column>
108
                 </el-table-column>
108
             </el-table>
109
             </el-table>
118
                 :total="total"
119
                 :total="total"
119
             >
120
             >
120
             </el-pagination>
121
             </el-pagination>
122
+            <el-dialog
123
+              title="挂号历史详情"
124
+              :visible.sync="dialogVisible"
125
+              width="1100px"
126
+              :before-close="handleClose">
127
+              <div>
128
+                <div class="formMain">
129
+                  <el-form class="basicForm" :model="form"  ref="form"  label-width="130px">
130
+                    <el-form-item label="患者姓名:"  prop="name">
131
+                       <div>{{ form.name }}</div>
132
+                    </el-form-item>
133
+
134
+                    <el-form-item label="性别:" prop="gender">
135
+                      <div v-if="form.gender == 1">男</div>
136
+                      <div v-if="form.gender == 2">女</div>
137
+                    </el-form-item>
138
+
139
+                    <el-form-item label="年龄:" prop="age">
140
+                      <div>{{ form.age }}</div>
141
+                    </el-form-item>
142
+
143
+
144
+                    <el-form-item label="出生日期:" prop="birthday">
145
+                      <div>{{ getTime(form.birthday,"{y}-{m}-{d}") }}</div>
146
+                    </el-form-item>
147
+
148
+                    <el-form-item label="手机号码:" prop="phone">
149
+                      <div>{{ form.phone }}</div>
150
+                    </el-form-item>
151
+
152
+
153
+                    <el-form-item label="医疗类别:">
154
+                      <div>{{ getDictionaryDataConfig(form.medical_treatment_type) }}</div>
155
+                    </el-form-item>
156
+
157
+
158
+                    <el-form-item label="证件类型:">
159
+                      <div>{{ getCertificates(form.id_type) }}</div>
160
+                    </el-form-item>
161
+
162
+                    <el-form-item label="证件号码:" prop="idCard">
163
+                      {{ form.id_card_no }}
164
+                    </el-form-item>
165
+
166
+
167
+                      <el-form-item label="结算类型:">
168
+                        {{ getSettlement(form.balance_accounts_type) }}
169
+                      </el-form-item>
170
+
171
+
172
+                    <el-form-item label="社保类型:">
173
+                      <div>{{ getMedicalCare(form.social_type) }}</div>
174
+                    </el-form-item>
175
+                    <el-form-item class="specialFormItem" style="width:66.5%;" label="医保卡号:">
176
+                      <div>{{ form.medical_insurance_number }}</div>
177
+                    </el-form-item>
178
+                    <el-form-item label="挂号类型:"  prop="register"  :validate-event="is_Name">
179
+                      <div>{{ getRegister(form.register_type) }}</div>
180
+                    </el-form-item>
181
+                    <el-form-item label="医生:"  prop="doctor" :validate-event="is_Name" >
182
+                      <div>{{ getDoctor(form.admin_user_id) }}</div>
183
+                    </el-form-item>
184
+                    <el-form-item label="科室:"  prop="department" :validate-event="is_Name">
185
+                      <div>{{ getDepartMent(form.departments) }}</div>
186
+                    </el-form-item>
187
+                    <el-form-item label="是否需要工本费:"> 
188
+                      <div v-if="form.is_need_cost_of_production == 1">是</div>
189
+                      <div v-else>否</div>
190
+                    </el-form-item>
191
+                    <el-form-item label="挂号费:">
192
+                      <div>{{ form.register_cost }}</div>
193
+                    </el-form-item>
194
+                    <el-form-item label="诊疗费:">
195
+                      <div>{{ form.treatment_cost }}</div>
196
+                    </el-form-item>
197
+                    <el-form-item label="工本费:">
198
+                      <div>{{ form.cost_of_production }}</div>
199
+                    </el-form-item>
200
+                    <el-form-item label="合计:">
201
+                      <div>{{ form.total }}</div>
202
+                    </el-form-item>
203
+                    <el-form-item>
204
+                        <!-- <el-input v-model="form.name"></el-input> -->
205
+                    </el-form-item>
206
+                  </el-form>
207
+                </div>
208
+              </div>
209
+              <span slot="footer" class="dialog-footer">
210
+                <el-button @click="dialogVisible = false">取 消</el-button>
211
+                <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
212
+              </span>
213
+            </el-dialog>
121
         </div>
214
         </div>
122
     </div>
215
     </div>
123
 </template>
216
 </template>
127
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
220
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
128
 import { getHisPatientHistory,changePatient,getHisPatient } from "@/api/project/project"
221
 import { getHisPatientHistory,changePatient,getHisPatient } from "@/api/project/project"
129
 import { uParseTime } from "@/utils/tools";
222
 import { uParseTime } from "@/utils/tools";
223
+import { getDictionaryDataConfig } from '@/utils/data'
130
 
224
 
131
 export default {
225
 export default {
132
     components:{
226
     components:{
180
                 id: 7,
274
                 id: 7,
181
                 name: "生育保险"
275
                 name: "生育保险"
182
             }],
276
             }],
277
+            certificates: [{
278
+              value: 1,
279
+              label: '内地身份证'
280
+              }, {
281
+              value: 2,
282
+              label: "社保卡"
283
+              },{
284
+              value: 3,
285
+              label: "护照"
286
+              },{
287
+              value: 4,
288
+              label: "军官证"
289
+              },{
290
+              value: 5,
291
+              label: "台胞证"
292
+              },{
293
+              value: 6,
294
+              label: "港澳地区身份证"
295
+            }],
296
+            settlement: 
297
+            [
298
+              {value: 1,label: '医保'},
299
+              {value: 2,label: '自费'},
300
+              {value: 3,label:'公费'},
301
+              {value: 4,label:'农保'},
302
+              {value: 5,label:'会员'},
303
+              {value: 6,label:'职工'},
304
+              {value: 7,label:'合同'}
305
+            ],
306
+            medicalCare: [{
307
+              value: 1,
308
+              label: '职工基本医疗保险'
309
+              }, {
310
+              value: 2,
311
+              label: "公务员医疗补助"
312
+              },{
313
+              value: 3,
314
+              label: "大额医疗费用补助"
315
+              },{
316
+              value: 4,
317
+              label: "离休人员医疗"
318
+              },{
319
+              value: 5,
320
+              label: "城乡居民基本医疗保险"
321
+              },{
322
+              value: 6,
323
+              label: "城乡居民大病医疗保险"
324
+              },
325
+              {
326
+              value: 7,
327
+              label: "生育保险"
328
+            }],
329
+            newRegister: [{
330
+              value: 1,
331
+              label: '普通'
332
+              }, {
333
+              value: 2,
334
+              label: "主治"
335
+              },{
336
+              value: 3,
337
+              label: "主任"
338
+              },{
339
+              value: 4,
340
+              label: "免收诊金"
341
+              },{
342
+              value: 5,
343
+              label: "专家"
344
+            }],
183
             
345
             
184
             tablePatient:[],
346
             tablePatient:[],
185
             creator:"",
347
             creator:"",
186
-            startUnix:''
348
+            startUnix:'',
349
+
350
+            dialogVisible:false,
351
+            form:{}
187
         }
352
         }
188
     },
353
     },
189
     created(){
354
     created(){
205
        this.startUnix = todayUnix - 28800
370
        this.startUnix = todayUnix - 28800
206
       
371
       
207
        this.getlist()
372
        this.getlist()
373
+       this.getDictionaryDataConfig()
208
     },
374
     },
209
     methods:{
375
     methods:{
210
         searchAction(){
376
         searchAction(){
349
       },
515
       },
350
 
516
 
351
       handleSelect(val){   
517
       handleSelect(val){   
352
-          this.search_input = val.name
353
-          this.getlist()
354
-       },
518
+        this.search_input = val.name
519
+        this.getlist()
520
+      },
521
+      handleClose(done){
522
+        done()
523
+      },
524
+      open(obj){
525
+        this.dialogVisible = true
526
+        this.form = obj
527
+        console.log(obj)
528
+      },
529
+      getDictionaryDataConfig(type){
530
+        let arr = getDictionaryDataConfig('system','social_type')
531
+        let str = ''
532
+        arr.map(item => {
533
+          if(item.id == type)
534
+          str = item.name
535
+        })
536
+        return str
537
+      },
538
+      getCertificates(type){
539
+        let arr = this.certificates
540
+        let str = ''
541
+        arr.map(item => {
542
+          if(item.value == type)
543
+          str = item.label
544
+        })
545
+        return str
546
+      },
547
+      getSettlement(type){
548
+        let arr = this.settlement
549
+        let str = ''
550
+        arr.map(item => {
551
+          if(item.value == type)
552
+          str = item.label
553
+        })
554
+        return str
555
+      },
556
+      getMedicalCare(type){
557
+        let arr = this.medicalCare
558
+        let str = ''
559
+        arr.map(item => {
560
+          if(item.value == type)
561
+          str = item.label
562
+        })
563
+        return str
564
+      },
565
+      getRegister(type){
566
+        let arr = this.newRegister
567
+        let str = ''
568
+        arr.map(item => {
569
+          if(item.value == type)
570
+          str = item.label
571
+        })
572
+        return str
573
+      },
574
+      getDepartMent(type){
575
+        let arr = this.departMent
576
+        let str = ''
577
+        arr.map(item => {
578
+          if(item.id == type)
579
+          str = item.name
580
+        })
581
+        return str
582
+      },
355
 
583
 
356
     }
584
     }
357
 }
585
 }
358
 </script>
586
 </script>
359
 
587
 
360
 <style lang="scss" scoped>
588
 <style lang="scss" scoped>
589
+.basicForm{
590
+  display: flex;
591
+  flex-wrap: wrap;
592
+  justify-content: space-between;
593
+  .el-form-item{
594
+    width: 33%;
595
+  }
596
+}
361
 </style>
597
 </style>

+ 1 - 1
src/xt_pages/stock/stockPrint.vue View File

12
             <div id="print_content">
12
             <div id="print_content">
13
                 <div class="print_main_content">
13
                 <div class="print_main_content">
14
                     <div class="order_title_panl">
14
                     <div class="order_title_panl">
15
-                        <span class="main_title">自备药查询表</span>
15
+                        <span class="main_title">耗材管理查询表</span>
16
                     </div>
16
                     </div>
17
                     <div style="text-align:right;margin-bottom:20px;font-size: 18px;">
17
                     <div style="text-align:right;margin-bottom:20px;font-size: 18px;">
18
                       打印时间:{{time_now}}
18
                       打印时间:{{time_now}}

+ 10 - 3
src/xt_pages/stock/stockQuery.vue View File

9
           <el-select v-model="type_name" style="width:140px;margin-right:10px;" placeholder="请选择"
9
           <el-select v-model="type_name" style="width:140px;margin-right:10px;" placeholder="请选择"
10
           @change="changeTypeName">
10
           @change="changeTypeName">
11
             <el-option
11
             <el-option
12
-              v-for="item in goodType"
12
+              v-for="item in types"
13
               :key="item.id"
13
               :key="item.id"
14
               :label="item.type_name"
14
               :label="item.type_name"
15
               :value="item.id">
15
               :value="item.id">
206
       },
206
       },
207
       options:[],
207
       options:[],
208
       value:"",
208
       value:"",
209
-      type_name:""
209
+      type_name:"",
210
+      types:[],
210
     };
211
     };
211
   },
212
   },
212
   methods: {
213
   methods: {
265
           this.$message.error(response.data.msg);
266
           this.$message.error(response.data.msg);
266
           return false;
267
           return false;
267
         } else {
268
         } else {
269
+           var obj = {
270
+            id:0,
271
+            type_name:'全部'
272
+          }
273
+          this.types.push(obj)
268
           for (let i = 0; i < response.data.data.goodType.length; i++) {
274
           for (let i = 0; i < response.data.data.goodType.length; i++) {
269
             this.goodType.push(response.data.data.goodType[i]);
275
             this.goodType.push(response.data.data.goodType[i]);
276
+            this.types.push(response.data.data.goodType[i])
270
           }
277
           }
271
-          console.log("商品类型",this.goodType)
278
+          console.log("商品类型",this.types)
272
         }
279
         }
273
       });
280
       });
274
     },
281
     },