Pārlūkot izejas kodu

Merge branch '20200710_pc_vue_new_branch' into 20200916_pc_vue_new_branch

csx 4 gadus atpakaļ
vecāks
revīzija
e4c2c2bc60

+ 10 - 1
src/api/project/project.js Parādīt failu

@@ -443,4 +443,13 @@ export function changePatient(id,params){
443 443
       method:"Get",
444 444
       params:params
445 445
     })
446
-  }
446
+  }
447
+
448
+  export function getAllDePartmentList(params){
449
+   
450
+    return request({
451
+      url:"/api/hispatient/getalldepartmentlist",
452
+      method:"Get",
453
+      params:params
454
+    })
455
+  } 

+ 13 - 4
src/api/role/admin.js Parādīt failu

@@ -26,7 +26,7 @@ export function getAddAdminInitData() {
26 26
   })
27 27
 }
28 28
 
29
-export function addAdmin(mobile, name, type, title, role, intro, user_title_name) {
29
+export function addAdmin(mobile, name, type, title, role, intro, user_title_name,department,department_id) {
30 30
   const params = {
31 31
     mobile: mobile,
32 32
     name: name,
@@ -34,8 +34,12 @@ export function addAdmin(mobile, name, type, title, role, intro, user_title_name
34 34
     title: title,
35 35
     role: role,
36 36
     intro: intro,
37
-    user_title_name: user_title_name
37
+    user_title_name: user_title_name,
38
+    department:department,
39
+    department_id:department_id,
38 40
   }
41
+  console.log("epa",department_id,department)
42
+  
39 43
   return request({
40 44
     url: '/api/admin/add',
41 45
     method: 'post',
@@ -54,7 +58,8 @@ export function getModifyAdminInitData(uid) {
54 58
   })
55 59
 }
56 60
 
57
-export function modifyAdmin(uid, name, type, title, role, intro, user_title_name, sort) {
61
+export function modifyAdmin(uid, name, type, title, role, intro, user_title_name, sort,department,department_id) {
62
+  console.log("进来",department,department_id)
58 63
   const params = {
59 64
     uid: uid,
60 65
     name: name,
@@ -63,8 +68,12 @@ export function modifyAdmin(uid, name, type, title, role, intro, user_title_name
63 68
     role: role,
64 69
     intro: intro,
65 70
     user_title_name: user_title_name,
66
-    sort: sort
71
+    sort: sort,
72
+    department:department,
73
+    department_id:department_id
67 74
   }
75
+ 
76
+ 
68 77
   return request({
69 78
     url: '/api/admin/edit',
70 79
     method: 'post',

+ 5 - 0
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Parādīt failu

@@ -387,6 +387,7 @@
387 387
         console.log('val', val.name)
388 388
         for (let i = 0; i < this.prescriptions.length; i++) {
389 389
           if (this.prescriptions[i].name == val.name) {
390
+
390 391
             this.curPrescriptions = {}
391 392
             var temp = this.deepClone(this.prescriptions[i])
392 393
             this.curPrescriptions = temp
@@ -692,6 +693,9 @@
692 693
             this.addtions_charge = response.data.data.addtions_charge
693 694
 
694 695
             this.prescriptions = []
696
+            console.log("9991323242r5253535",response.data.data.prescription)
697
+            this.prescription_id = response.data.data.prescription[0].advices[0].prescription_id
698
+            console.log("222222",this.prescription_id)
695 699
             for (let i = 0; i < response.data.data.prescription.length; i++) {
696 700
               var prescription = response.data.data.prescription[i]
697 701
 
@@ -881,6 +885,7 @@
881 885
     margin-left: 5px;
882 886
     display: flex;
883 887
     flex-direction: column;
888
+    overflow-y: auto;
884 889
   }
885 890
 
886 891
   .RP {

+ 1 - 1
src/xt_pages/outpatientCharges/print.vue Parādīt failu

@@ -218,7 +218,7 @@ export default {
218 218
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
219 219
 
220 220
       const style =
221
-        '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain p{width: 50%;line-height: 1px;}.prescriptionBox{padding:0 10px;height:750px;}.Rp{font-size: 22px;font-weight: bold;line-height:1px;}.drugsBox{padding-left: 40px;margin-bottom: 10px;margin-bottom: 10px;}.drugsBox p{line-height: 1px;padding-bottom:10px !important;} .drugsOne{line-height: 1px;margin-bottom:10px !important;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .actionBar p{width:150px;}}';
221
+        '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{padding:0 10px;min-height:450px;}.Rp{font-size: 22px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;} .drugsOne{line-height: 1px;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .actionBar p{width:150px;}}';
222 222
       printJS({
223 223
         printable: "prescription-print",
224 224
         type: "html",

+ 15 - 15
src/xt_pages/outpatientCharges/template/printOne.vue Parādīt failu

@@ -7,22 +7,22 @@
7 7
             <p>年龄:12岁</p>
8 8
         </div>
9 9
         <div class="infoMain">
10
-            <p style="margin-bottom: 10px;">门诊号:111111111111</p>
11
-            <p style="margin-bottom: 10px;">科室:全科</p>
12
-            <p style="margin-bottom: 10px;">医保卡号:111111111111</p>
13
-            <p style="margin-bottom: 10px;">电话:111111111111</p>
14
-            <p>地址:加上来看待就卢萨卡的及拉丝机的了</p>
15
-            <p>临床诊断:拉胯手机上的拉丝机的</p>
10
+            <div style="margin-bottom: 10px;">门诊号:111111111111</div>
11
+            <div style="margin-bottom: 10px;">科室:全科</div>
12
+            <div style="margin-bottom: 10px;">医保卡号:111111111111</div>
13
+            <div style="margin-bottom: 10px;">电话:111111111111</div>
14
+            <div>地址:加上来看待就卢萨卡的及拉丝机的了</div>
15
+            <div>临床诊断:拉胯手机上的拉丝机的</div>
16 16
         </div>
17 17
         <div class="prescriptionBox">
18
-            <p class="Rp">Rp:</p>
18
+            <div class="Rp">Rp:</div>
19 19
             <div class="drugsBox">
20
-                <p class="drugsOne">重组人促红素(CHO细胞)注射液&nbsp;&nbsp;0.5毫升&nbsp;×&nbsp; 2支</p>
21
-                <p style="margin-left:100px;"><span>用法:0.5毫升</span>&nbsp;&nbsp;<span>一天一次</span>&nbsp;&nbsp;<span>静脉注射</span></p>
20
+                <div class="drugsOne">重组人促红素(CHO细胞)注射液&nbsp;&nbsp;0.5毫升&nbsp;×&nbsp; 2支</div>
21
+                <div style="margin-left:100px;"><span>用法:0.5毫升</span>&nbsp;&nbsp;<span>一天一次</span>&nbsp;&nbsp;<span>静脉注射</span></div>
22 22
             </div>
23 23
             <div class="drugsBox">
24
-                <p class="drugsOne">重组人促红素(CHO细胞)注射液&nbsp;&nbsp;0.5毫升&nbsp;×&nbsp; 2支</p>
25
-                <p style="margin-left:100px;"><span>用法:0.5毫升</span>&nbsp;&nbsp;<span>一天一次</span>&nbsp;&nbsp;<span>静脉注射</span></p>
24
+                <div class="drugsOne">重组人促红素(CHO细胞)注射液&nbsp;&nbsp;0.5毫升&nbsp;×&nbsp; 2支</div>
25
+                <div style="margin-left:100px;"><span>用法:0.5毫升</span>&nbsp;&nbsp;<span>一天一次</span>&nbsp;&nbsp;<span>静脉注射</span></div>
26 26
             </div>
27 27
         </div>
28 28
         <div class="doctorBox">
@@ -63,13 +63,13 @@
63 63
     border-bottom: 2px solid #000;
64 64
     padding:0 10px;
65 65
 }
66
-.infoMain p{
66
+.infoMain div{
67 67
     width: 50%;
68 68
     line-height: 24px;
69 69
 }
70 70
 .prescriptionBox{
71 71
     padding:0 10px;
72
-    height:600px;
72
+    min-height:450px;
73 73
 }
74 74
 .Rp{
75 75
     font-size: 22px;
@@ -79,8 +79,8 @@
79 79
     padding-left: 40px;
80 80
     margin-bottom: 10px;
81 81
 }
82
-.drugsBox p{
83
-    line-height: 30px;
82
+.drugsBox div{
83
+    line-height: 20px;
84 84
 }
85 85
 .drugsOne{
86 86
     line-height: 24px;

+ 170 - 135
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Parādīt failu

@@ -1,5 +1,5 @@
1 1
 <template>
2
-  <div style="height: calc(100% - 36px);display: flex;flex-direction: column;margin-top: 36px;">
2
+  <div style="height: calc(100% - 54px);display: flex;flex-direction: column;margin-top: 54px;">
3 3
     <!-- <div style="border-top:1px solid #e5e5e5;margin-top:5px;">
4 4
       <div class="mainCell" style="margin-bottom:10px;float:right">
5 5
         <el-button size="small" @click="open(1)" type="primary" style="margin-left:10px;">保存</el-button>
@@ -8,10 +8,10 @@
8 8
         <el-button size="small" @click="open(5)" type="primary">存模板</el-button>
9 9
       </div>
10 10
     </div> -->
11
-    <div class="backColor"></div>
11
+    <!-- <div class="backColor"></div> -->
12 12
     <div class="mainCenter">
13 13
       <div class="centerLeft">
14
-        <el-form :model="form" ref="form" label-width="80px">
14
+        <el-form :model="form" ref="form" label-width="80px" style="display: flex;flex-wrap: wrap;justify-content: space-between;">
15 15
           <el-form-item label="姓名:" prop="name">
16 16
             <el-input v-model="patientInfo.name" placeholder="" readonly></el-input>
17 17
           </el-form-item>
@@ -22,7 +22,7 @@
22 22
           <!--<el-input v-model="hisPatientInfo.register_type" placeholder="" readonly></el-input>-->
23 23
           <!--</el-form-item>-->
24 24
           <el-form-item label="挂号类型: " prop="name">
25
-            <el-select style="margin-right:5px;" v-model="register_type" placeholder="">
25
+            <el-select style="width:100%;" v-model="register_type" placeholder="">
26 26
               <el-option
27 27
                 v-for="(item,index) in getDictionaryDataConfig('system','register_type')"
28 28
                 :key="index"
@@ -31,19 +31,9 @@
31 31
               </el-option>
32 32
             </el-select>
33 33
           </el-form-item>
34
-          <!--<el-form-item label="医疗类型: " prop="name">-->
35
-          <!--<el-select style="margin-right:5px;" v-model="register_type" placeholder="">-->
36
-          <!--<el-option-->
37
-          <!--v-for="(item,index) in getDictionaryDataConfig('system','register_type')"-->
38
-          <!--:key="index"-->
39
-          <!--:label="item.name"-->
40
-          <!--:value="item.name">-->
41
-          <!--</el-option>-->
42
-          <!--</el-select>-->
43
-          <!--</el-form-item>-->
44 34
           <el-form-item label="疾病类型:" prop="name">
45 35
 
46
-            <el-select style="margin-right:5px;" v-model="state1" placeholder="">
36
+            <el-select style="width:100%;" v-model="state1" placeholder="">
47 37
               <el-option
48 38
                 v-for="(item,index) in sick"
49 39
                 :key="index"
@@ -112,120 +102,134 @@
112 102
         </div>
113 103
       </div>
114 104
       <div class='centerRight'>
115
-        <div class="rightTab">
105
+        <!-- <div class="rightTab">
116 106
           <p :class="rightTab == 1 ? 'activeP' : ''" @click="clickTab(1)">药品</p>
117 107
           <p :class="rightTab == 2 ? 'activeP' : ''" @click="clickTab(2)">项目</p>
118
-        </div>
119
-        <template>
120
-          <div style="height:84%;overflow-y: auto;margin-bottom: 60px;" v-show="showOne">
121
-            <el-tabs class="rightTabs" v-model="activeName">
122
-              <el-tab-pane label="药品列表" name="1">
123
-                <div style="margin-bottom:5px;display:flex;">
124
-                  <el-input style="width:50%;" @input="searchAction" @keyup.enter.native='searchAction'
125
-                            v-model.trim="search_keyword"
126
-                            placeholder="请输入药品名字"></el-input>
127
-                  <el-select style="margin-left:5px;width:50%;" v-model="value" placeholder="" @change="changeKind">
128
-                    <el-option
129
-                      label="全部"
130
-                      value="0">
131
-                    </el-option>
132
-                    <el-option
133
-                      v-for="(item,index) in getDictionaryDataConfig('system','drug_type')"
134
-                      :key="index"
135
-                      :label="item.name"
136
-                      :value="item.id">
137
-                    </el-option>
138
-                  </el-select>
139
-                </div>
140
-                <el-table ref="multipleTable" :data="drugs" border @select='selectDrugs'
141
-                          style="width: 100%;flex:1;overflow-y: auto;"
142
-                          :row-style="{ color: '#303133' }"
143
-                          @select-all="changeAllGoodInfoTableData"
144
-                          :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
145
-                          highlight-current-row>
146
-                  <el-table-column type="selection" width="40" align="center"></el-table-column>
147
-                  <el-table-column prop="name" label="名称">
148
-                    <template slot-scope="scope">{{ scope.row.drug_name }}</template>
149
-                  </el-table-column>
150
-                  <el-table-column label="规格" width="60">
151
-                    <template slot-scope="scope">{{ scope.row.drug_spec }}</template>
152
-                  </el-table-column>
153
-                  <el-table-column label="单价" width="40">
154
-                    <template slot-scope="scope">{{ scope.row.retail_price }}</template>
155
-                  </el-table-column>
156
-                </el-table>
108
+        </div> -->
109
+        <el-tabs class="borderCard" type="border-card" v-model="rightTab" @tab-click="clickTab">
110
+              <el-tab-pane label="药品" :name="1">
157 111
 
158 112
               </el-tab-pane>
159
-              <el-tab-pane label="医嘱模板" name="2">
160
-                <div style="margin-bottom:5px;">
161
-                  <!--<el-input style="width:50%;" v-model="input" placeholder=""></el-input>-->
162
-                  <el-select style="float: right;width: 49%;" v-model="value" placeholder="">
163
-                    <el-option
164
-                      v-for="item in options"
165
-                      :key="item.value"
166
-                      :label="item.label"
167
-                      :value="item.value">
168
-                    </el-option>
169
-                  </el-select>
170
-                </div>
171
-                <el-table ref="multipleTableTwo" :data="advices_template" border
172
-                          style="width: 100%;flex:1;overflow-y: auto;"
173
-                          :row-style="{ color: '#303133' }"
174
-                          :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
175
-                          highlight-current-row>
176
-                  <el-table-column type="selection" width="40" align="center"></el-table-column>
177
-                  <el-table-column prop="name" label="名称">
178
-                    <template slot-scope="scope">{{}}</template>
179
-                  </el-table-column>
180
-                  <el-table-column label="规格" width="60">
181
-                    <template slot-scope="scope">33</template>
182
-                  </el-table-column>
183
-                  <el-table-column label="库存" width="60">
184
-                    <template slot-scope="scope">22</template>
185
-                  </el-table-column>
186
-                  <el-table-column label="单价" width="40">
187
-                    <template slot-scope="scope">12</template>
188
-                  </el-table-column>
189
-                </el-table>
190
-              </el-tab-pane>
191
-            </el-tabs>
192
-          </div>
113
+              <el-tab-pane label="项目" :name="2">
193 114
 
194
-          <div style="height:84%;overflow-y: auto;margin-bottom: 60px;" v-show="showTwo">
195
-            <el-tabs class="rightTabs" v-model="activeName">
196
-              <el-tab-pane label="项目列表" name="1">
197
-                <el-table ref="tables" :data="tabProject" border @select='selectChange'
198
-                          style="width: 100%;flex:1;overflow-y: auto;"
199
-                          :row-style="{ color: '#303133' }"
200
-                          @select-all="changeAllGoodInfoTableDataTwo"
201
-                          :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
202
-                          highlight-current-row>
203
-                  <el-table-column type="selection" width="40" align="center"></el-table-column>
204
-                  <el-table-column prop="name" label="名称">
205
-                    <template slot-scope="scope">{{ scope.row.project_name }}</template>
206
-                  </el-table-column>
207
-                  <el-table-column label="规格" width="60">
208
-                    <template slot-scope="scope">{{ scope.row.single_dose }}</template>
209
-                  </el-table-column>
210
-                  <el-table-column label="单价" width="40">
211
-                    <template slot-scope="scope">{{ scope.row.price }}</template>
212
-                  </el-table-column>
213
-                </el-table>
214 115
               </el-tab-pane>
215
-              <el-tab-pane label="项目组套" name="2">
216
-                <el-table :data="tabPrjectTeam" border style="width: 100%;flex:1;overflow-y: auto;"
217
-                          :row-style="{ color: '#303133' }"
218
-                          :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
219
-                          highlight-current-row
220
-                          @select='selectTeam'>
221
-                  <el-table-column type="selection" width="40" align="center"></el-table-column>
222
-                  <el-table-column prop="name" label="名称">
223
-                    <template slot-scope="scope">{{scope.row.project_team}}</template>
224
-                  </el-table-column>
225
-                </el-table>
226
-              </el-tab-pane>
227
-            </el-tabs>
228
-          </div>
116
+              <div style="height:100%;" v-show="showOne">
117
+                  <el-tabs class="rightTabs" v-model="activeName">
118
+                    <el-tab-pane label="药品列表" name="1">
119
+                      <div style="margin-bottom:5px;display:flex;">
120
+                        <el-input style="width:50%;"  @input="searchAction" @keyup.enter.native='searchAction' v-model.trim="search_keyword"
121
+                                  placeholder="请输入药品名字"></el-input>
122
+                        <el-select style="margin-left:5px;width:50%;" v-model="value" placeholder="" @change="changeKind">
123
+                          <el-option
124
+                            label="全部"
125
+                            value="0">
126
+                          </el-option>
127
+                          <el-option
128
+                            v-for="(item,index) in getDictionaryDataConfig('system','drug_type')"
129
+                            :key="index"
130
+                            :label="item.name"
131
+                            :value="item.id">
132
+                          </el-option>
133
+                        </el-select>
134
+                      </div>
135
+                      <div style="width: 100%;flex:1;overflow-y: auto;">
136
+                        <el-table ref="multipleTable" :data="drugs" border @select='selectDrugs'
137
+                                  :row-style="{ color: '#303133' }"
138
+                                  @select-all="changeAllGoodInfoTableData"
139
+                                  :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
140
+                                  highlight-current-row>
141
+                          <el-table-column type="selection" width="40" align="center"></el-table-column>
142
+                          <el-table-column prop="name" label="名称">
143
+                            <template slot-scope="scope">{{ scope.row.drug_name }}</template>
144
+                          </el-table-column>
145
+                          <el-table-column label="规格" width="60">
146
+                            <template slot-scope="scope">{{ scope.row.drug_spec }}</template>
147
+                          </el-table-column>
148
+                          <el-table-column label="单价" width="40">
149
+                            <template slot-scope="scope">{{ scope.row.retail_price }}</template>
150
+                          </el-table-column>
151
+                        </el-table>
152
+                      </div>
153
+
154
+                    </el-tab-pane>
155
+                    <el-tab-pane label="医嘱模板" name="2">
156
+                      <div style="margin-bottom:5px;">
157
+                        <!--<el-input style="width:50%;" v-model="input" placeholder=""></el-input>-->
158
+                        <el-select style="float: right;width: 49%;" v-model="value" placeholder="">
159
+                          <el-option
160
+                            v-for="item in options"
161
+                            :key="item.value"
162
+                            :label="item.label"
163
+                            :value="item.value">
164
+                          </el-option>
165
+                        </el-select>
166
+                      </div>
167
+                      <div style="width: 100%;flex:1;overflow-y: auto;">
168
+                        <el-table ref="multipleTableTwo" :data="advices_template" border
169
+                                  :row-style="{ color: '#303133' }"
170
+                                  :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
171
+                                  highlight-current-row>
172
+                          <el-table-column type="selection" width="40" align="center"></el-table-column>
173
+                          <el-table-column prop="name" label="名称">
174
+                            <template slot-scope="scope">{{}}</template>
175
+                          </el-table-column>
176
+                          <el-table-column label="规格" width="60">
177
+                            <template slot-scope="scope">33</template>
178
+                          </el-table-column>
179
+                          <el-table-column label="库存" width="60">
180
+                            <template slot-scope="scope">22</template>
181
+                          </el-table-column>
182
+                          <el-table-column label="单价" width="40">
183
+                            <template slot-scope="scope">12</template>
184
+                          </el-table-column>
185
+                        </el-table>
186
+                      </div>
187
+                    </el-tab-pane>
188
+                  </el-tabs>
189
+              </div>
190
+              <div style="height:100%;" v-show="showTwo">
191
+                <el-tabs class="rightTabs" v-model="activeName">
192
+                  <el-tab-pane label="项目列表" name="1">
193
+                    <div style="width: 100%;flex:1;overflow-y: auto;">
194
+                      <el-table ref="tables" :data="tabProject" border @select='selectChange'
195
+                                :row-style="{ color: '#303133' }"
196
+                                @select-all="changeAllGoodInfoTableDataTwo"
197
+                                :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
198
+                                highlight-current-row>
199
+                        <el-table-column type="selection" width="40" align="center"></el-table-column>
200
+                        <el-table-column prop="name" label="名称">
201
+                          <template slot-scope="scope">{{ scope.row.project_name }}</template>
202
+                        </el-table-column>
203
+                        <el-table-column label="规格" width="60">
204
+                          <template slot-scope="scope">{{ scope.row.single_dose }}</template>
205
+                        </el-table-column>
206
+                        <el-table-column label="单价" width="40">
207
+                          <template slot-scope="scope">{{ scope.row.price }}</template>
208
+                        </el-table-column>
209
+                      </el-table>
210
+                    </div>
211
+                  </el-tab-pane>
212
+                  <el-tab-pane label="项目组套" name="2">
213
+                    <div style="width: 100%;flex:1;overflow-y: auto;">
214
+                      <el-table :data="tabPrjectTeam" border
215
+                                :row-style="{ color: '#303133' }"
216
+                                :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
217
+                                highlight-current-row
218
+                                @select='selectTeam'>
219
+                        <el-table-column type="selection" width="40" align="center"></el-table-column>
220
+                        <el-table-column prop="name" label="名称">
221
+                          <template slot-scope="scope">{{scope.row.project_team}}</template>
222
+                        </el-table-column>
223
+                      </el-table>
224
+                    </div>
225
+                  </el-tab-pane>
226
+                </el-tabs>
227
+              </div>
228
+        </el-tabs>
229
+        <template>
230
+
231
+
232
+
229 233
 
230 234
           <div class="comfirmBox">
231 235
             <!-- <div>
@@ -243,7 +247,7 @@
243 247
                 </el-option>
244 248
               </el-select>
245 249
             </div> -->
246
-            <el-button type="primary" size="small" @click="comfirm">确定添加</el-button>
250
+            <el-button type="primary" size="small" style="width:100%;" @click="comfirm">确定添加</el-button>
247 251
           </div>
248 252
         </template>
249 253
       </div>
@@ -523,12 +527,10 @@
523 527
 
524 528
       },
525 529
       tabclickEvent(val) {
526
-        console.log(this.editableTabsValue)
527
-
528 530
         for (let i = 0; i < this.prescriptions.length; i++) {
529 531
           console.log(this.prescriptions[i].name)
530 532
           if (this.prescriptions[i].name == val.name) {
531
-            console.log('2323323', this.prescriptions)
533
+            console.log("2323323",this.prescriptions)
532 534
             this.prescription_id = this.prescriptions[i].id
533 535
             this.$emit('event1', this.prescription_id)
534 536
             this.curPrescriptions = this.prescriptions[i]
@@ -818,7 +820,8 @@
818 820
           })
819 821
 
820 822
       },
821
-      clickTab(index) {
823
+      clickTab(tab) {
824
+        let index = parseInt(tab.name)
822 825
         if (index == 1) {
823 826
           if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length > 0) {
824 827
             this.$message.error('当前处方为项目,无法切换为药品,需要新开处方')
@@ -1129,6 +1132,7 @@
1129 1132
   .mainCenter {
1130 1133
     display: flex;
1131 1134
     flex: 1;
1135
+    height: 100%;
1132 1136
   }
1133 1137
 
1134 1138
   .centerLeft {
@@ -1138,9 +1142,8 @@
1138 1142
     position: relative;
1139 1143
 
1140 1144
   .el-form-item {
1141
-    width: 32%;
1142
-    margin-right: 1%;
1143
-    float: left;
1145
+    width: 33%;
1146
+    margin-bottom: 14px;
1144 1147
   }
1145 1148
 
1146 1149
   .el-form-item__label {
@@ -1156,7 +1159,7 @@
1156 1159
 
1157 1160
   .RP {
1158 1161
     color: #409EFF;
1159
-    font-size: 20px;
1162
+    font-size: 14px;
1160 1163
     margin-bottom: 5px;
1161 1164
   }
1162 1165
 
@@ -1165,7 +1168,7 @@
1165 1168
     height: 76%;
1166 1169
     overflow-y: auto;
1167 1170
     margin-bottom: 60px;
1168
-
1171
+    margin-top: 4px;
1169 1172
   .el-tabs__item {
1170 1173
     padding: 0 10px;
1171 1174
   }
@@ -1202,7 +1205,7 @@
1202 1205
 
1203 1206
   .centerRight {
1204 1207
     width: 300px;
1205
-    margin-left: 5px;
1208
+    margin-left: 10px;
1206 1209
     display: flex;
1207 1210
     flex-direction: column;
1208 1211
     position: relative;
@@ -1249,9 +1252,31 @@
1249 1252
     align-items: center;
1250 1253
     justify-content: space-between;
1251 1254
   }
1255
+  .borderCard{
1256
+    height: 100%;
1257
+    display: flex;
1258
+    flex-direction: column;
1259
+    margin-bottom: 60px;
1260
+    .el-tabs--border-card>.el-tabs__content{
1261
+      padding: 0;
1262
+    }
1263
+  }
1252 1264
 </style>
1253 1265
 
1254 1266
 <style lang="scss">
1267
+.borderCard{
1268
+  .el-tabs__nav{
1269
+    width: 100%;
1270
+  }
1271
+  .el-tabs__item{
1272
+    width: 50%;
1273
+    text-align: center;
1274
+  }
1275
+  .el-tabs__content{
1276
+    padding: 5px;
1277
+    flex: 1;
1278
+  }
1279
+}
1255 1280
   .centerLeft {
1256 1281
 
1257 1282
   .el-form-item__label {
@@ -1298,12 +1323,22 @@
1298 1323
   .el-tabs__content {
1299 1324
     flex: 1;
1300 1325
     overflow-y: auto;
1326
+    padding: 5px 0 5px 5px;
1301 1327
   }
1302 1328
 
1303 1329
   }
1304 1330
   .rightTabs {
1305 1331
     height: 100%;
1306
-
1332
+    .el-tabs__nav{
1333
+      width: auto;
1334
+    }
1335
+    .el-tabs__header{
1336
+      margin-bottom: 5px;
1337
+    }
1338
+  .el-tabs__item{
1339
+    width: auto;
1340
+    text-align: inherit;
1341
+  }
1307 1342
   .el-tabs__content {
1308 1343
     flex: 1;
1309 1344
     overflow-y: auto;

+ 3 - 3
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue Parādīt failu

@@ -1,5 +1,5 @@
1 1
 <template>
2
-  <div class="deskRecord" style="margin-top:36px;">
2
+  <div class="deskRecord" style="margin-top:54px;">
3 3
     <!-- <div style="overflow:hidden;border-top:1px solid #e5e5e5;margin-top:5px;">
4 4
       <div class="mainCell" style="margin-bottom:10px;float:right">
5 5
         <el-button size="small" @click="open(1)" type="primary" style="margin-left:10px;">保存</el-button>
@@ -8,7 +8,6 @@
8 8
         <el-button size="small" @click="open(4)" type="primary">存模板</el-button>
9 9
       </div>
10 10
     </div> -->
11
-    <div class="backColor"></div>
12 11
     <div class="mainTitle">基本信息:</div>
13 12
     <el-form class="basicForm" :model="patientInfo" ref="form" label-width="120px">
14 13
       <el-form-item label="姓名:" prop="name">
@@ -223,7 +222,6 @@
223 222
 
224 223
       // },
225 224
       createCaseHistory() {
226
-        console.log("触发了吗")
227 225
           if(this.patientInfo.id == undefined){
228 226
             this.$message.error("请先选择病人")
229 227
             return
@@ -269,6 +267,8 @@
269 267
               var caseHistory = response.data.data.caseHistory
270 268
               console.log("caseHistory",caseHistory)
271 269
               this.$message.success("保存成功")
270
+              this.doctor_advice = ""
271
+              this.remark = ""
272 272
             }
273 273
           })
274 274
        

+ 14 - 11
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Parādīt failu

@@ -3,11 +3,11 @@
3 3
     <div class="position">
4 4
       <bread-crumb :crumbs='crumbs'></bread-crumb>
5 5
     </div>
6
-    <div class="app-container" style="display:flex;flex: 1;padding: 20px 20px 0px 20px;">
6
+    <div class="app-container" style="display:flex;flex: 1;padding: 10px 20px 0px 20px;">
7 7
       <div class="mainLeft">
8 8
         <div class="mainCell" style="justify-content: space-between;">
9
-          <p>未就诊:<span>{{cal_one}}</span>人</p>
10
-          <p>已就诊:<span>{{cal_two}}</span>人</p>
9
+          <p style="font-size:14px;">未就诊:<span>{{cal_one}}</span>人</p>
10
+          <p style="font-size:14px;">已就诊:<span>{{cal_two}}</span>人</p>
11 11
         </div>
12 12
         <div class="mainCell">
13 13
           <el-radio-group v-model="radio" @change="change">
@@ -40,12 +40,12 @@
40 40
       </div>
41 41
       <div class="mainRight">
42 42
         <div class="mainHeader">
43
-          <el-radio-group class="titleBox" v-model="titleType" @change="changeTab">
44
-            <el-radio-button label="电子处方"></el-radio-button>
45
-            <el-radio-button label="电子病历"></el-radio-button>
46
-          </el-radio-group>
43
+          <el-tabs v-model="titleType" @tab-click="handleClick" style="position: fixed;width: calc(100% - 490px);background:#fff;">
44
+            <el-tab-pane label="电子处方" name="电子处方"></el-tab-pane>
45
+            <el-tab-pane label="电子病历" name="电子病历"></el-tab-pane>
46
+          </el-tabs>
47 47
           <div class="mainCell fixedCell" style="float:right" v-if="titleType == '电子处方'">
48
-            <el-button size="small" ref="button_one"   @click="open(1)" type="primary" style="margin-left:10px;">保存</el-button>
48
+            <el-button size="small" ref="button_one"   @click="open(1)" type="primary">保存</el-button>
49 49
             <el-popover
50 50
               placement="bottom"
51 51
               width="200"
@@ -58,7 +58,7 @@
58 58
             <el-button size="small" ref="button_four"  @click="open(5)" type="primary">存模板</el-button>
59 59
           </div>
60 60
           <div class="mainCell fixedCell" style="float:right" v-if="titleType == '电子病历'">
61
-            <el-button size="small" @click="opentwo(1)" type="primary" style="margin-left:10px;">保存</el-button>
61
+            <el-button size="small" @click="opentwo(1)" type="primary">保存</el-button>
62 62
             <el-button size="small" @click="opentwo(2)" type="primary">打印</el-button>
63 63
             <el-button size="small" @click="opentwo(3)" type="primary">病历调用</el-button>
64 64
             <el-button size="small" @click="opentwo(4)" type="primary">存模板</el-button>
@@ -454,7 +454,7 @@
454 454
 
455 455
   }
456 456
   .mainRight {
457
-    margin-left: 20px;
457
+    margin-left: 10px;
458 458
     flex: 1;
459 459
     height: 100%;
460 460
     display: flex;
@@ -530,7 +530,7 @@
530 530
 
531 531
   .centerRight {
532 532
     width: 300px;
533
-    margin-left: 5px;
533
+    margin-left: 10px;
534 534
     display: flex;
535 535
     flex-direction: column;
536 536
     position: relative;
@@ -589,6 +589,9 @@
589 589
     z-index: 99;
590 590
     right: 30px;
591 591
     background: #fff;
592
+    width: 300px;
593
+    display: flex;
594
+    justify-content: space-between;
592 595
   }
593 596
 </style>
594 597
 

+ 6 - 2
src/xt_pages/outpatientDoctorStation/print.vue Parādīt failu

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="main-contain">
3 3
     <div class="position">
4
-      <!-- <bread-crumb :crumbs="crumbs"></bread-crumb> -->
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5 5
        <template>
6 6
         <el-button
7 7
           :loading="loading"
@@ -59,6 +59,10 @@ export default {
59 59
   },
60 60
   data() {
61 61
     return {
62
+      crumbs: [
63
+        { path: false, name: '门诊医生站' },
64
+        { path: false, name: '打印' }
65
+      ],
62 66
        record_date:"",
63 67
        patientTableData:[],
64 68
        advicePrint:[],
@@ -77,7 +81,7 @@ export default {
77 81
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
78 82
 
79 83
       const style =
80
-        '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain p{width: 50%;line-height: 1px;}.prescriptionBox{padding:0 10px;height:750px;}.Rp{font-size: 22px;font-weight: bold;line-height:1px;}.drugsBox{padding-left: 40px;margin-bottom: 10px;margin-bottom: 10px;}.drugsBox p{line-height: 1px;padding-bottom:10px !important;} .drugsOne{line-height: 1px;margin-bottom:10px !important;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .actionBar p{width:150px;}}';
84
+        '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{padding:0 10px;min-height:450px;}.Rp{font-size: 22px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;} .drugsOne{line-height: 1px;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .actionBar p{width:150px;}}';
81 85
       printJS({
82 86
         printable: "prescription-print",
83 87
         type: "html",

+ 29 - 22
src/xt_pages/outpatientDoctorStation/printtwo.vue Parādīt failu

@@ -32,7 +32,7 @@
32 32
             </div>
33 33
             
34 34
             <div class='dialysisPage' style="flex: 1;height: calc(100vh - 178px);overflow-x:auto;::-webkit-scrollbar:height:15px">
35
-              <printTwo v-bind:childResponse="childResponse" :advicePrint="advicePrint" :patient="patient" :hisPatient="hisPatient"></printTwo>
35
+              <printTwo v-bind:childResponse="childResponse" :advicePrint="advicePrint" :patient="patient" :hisPatient="hisPatient" :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printTwo>
36 36
             </div>
37 37
         </el-container>
38 38
     </div>
@@ -63,7 +63,9 @@ export default {
63 63
        patientTableData:[],
64 64
        advicePrint:[],
65 65
        hisPatient:{},
66
-       patient:{}
66
+       patient:{},
67
+       patient_id:0,
68
+       prescription_id:0,
67 69
     };
68 70
   },
69 71
   methods:{
@@ -72,7 +74,7 @@ export default {
72 74
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
73 75
 
74 76
       const style =
75
-        '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain p{width: 50%;line-height: 1px;}.prescriptionBox{padding:0 10px;height:750px;}.Rp{font-size: 22px;font-weight: bold;line-height:1px;}.drugsBox{padding-left: 40px;margin-bottom: 10px;margin-bottom: 10px;}.drugsBox p{line-height: 1px;padding-bottom:10px !important;} .drugsOne{line-height: 1px;margin-bottom:10px !important;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .actionBar p{width:150px;}}';
77
+        '@media print {#prescription-print{font-size:14px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{padding:0 10px;min-height:450px;}.Rp{font-size: 22px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;} .drugsOne{line-height: 1px;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .actionBar p{width:150px;}}';
76 78
       printJS({
77 79
         printable: "prescription-print",
78 80
         type: "html",
@@ -129,25 +131,28 @@ export default {
129 131
 
130 132
     changePatient(row){
131 133
       console.log("row",row)
132
-        var params = {
133
-          patient_id:row.patient_id,
134
-          record_date:this.record_date,
135
-        }
136
-      getPrescriptionPrint(params).then(response=>{
137
-          if(response.data.state == 1){
138
-            var advicePrint =  response.data.data.advicePrint
139
-            console.log("adviceprint",advicePrint)
140
-            this.advicePrint = advicePrint
141
-            // var hisPatient =  response.data.data.hisPatient
142
-            // console.log("hispatient",hisPatient)
143
-            // this.hisPatient = hisPatient
144
-            var patient =  response.data.data.patient
145
-            console.log("patient",patient)
146
-            this.patient = patient
147
-            var doctorPorject = response.data.data.doctorPorject
148
-            console.log("doctorporject",doctorPorject)
149
-          }
150
-      })
134
+      this.patient_id = row.patient_id
135
+      this.record_date = this.record_date
136
+      this.prescription_id = this.prescription_id
137
+      //   var params = {
138
+      //     patient_id:row.patient_id,
139
+      //     record_date:this.record_date,
140
+      //   }
141
+      // getPrescriptionPrint(params).then(response=>{
142
+      //     if(response.data.state == 1){
143
+      //       var advicePrint =  response.data.data.advicePrint
144
+      //       console.log("adviceprint",advicePrint)
145
+      //       this.advicePrint = advicePrint
146
+      //       // var hisPatient =  response.data.data.hisPatient
147
+      //       // console.log("hispatient",hisPatient)
148
+      //       // this.hisPatient = hisPatient
149
+      //       var patient =  response.data.data.patient
150
+      //       console.log("patient",patient)
151
+      //       this.patient = patient
152
+      //       var doctorPorject = response.data.data.doctorPorject
153
+      //       console.log("doctorporject",doctorPorject)
154
+      //     }
155
+      // })
151 156
     }
152 157
     
153 158
   },
@@ -157,6 +162,8 @@ export default {
157 162
     var record_date = this.$route.query.record
158 163
     this.record_date = record_date
159 164
     console.log("record_date",record_date)
165
+    this.patient_id = this.$route.query.patient_id
166
+    this.prescription_id = this.$route.query.prescription_id
160 167
     this.getAllHisPatientList(record_date)
161 168
   },
162 169
 

+ 1 - 1
src/xt_pages/outpatientDoctorStation/recordPrint.vue Parādīt failu

@@ -101,7 +101,7 @@ export default {
101 101
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
102 102
 
103 103
       const style =
104
-        '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;line-height: 1px;padding:0 10px;}.infoTitle p{width: 200px;}.otherInfo{display: flex;margin-top:10px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;}.recordTitle p{width: 200px;}}';
104
+        '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;margin-top:10px;padding:0 10px;}.infoTitle div{width: 200px;}.otherInfo{display: flex;margin-top:20px;padding:0 10px;}.otherInfo span{display:inline-block;}.recordTitle{display: flex;margin-top:10px;line-height: 24px;padding:0 10px;border-bottom: 2px solid #000;}.recordTitle div{width: 200px;}}';
105 105
       printJS({
106 106
         printable: "prescription-print",
107 107
         type: "html",

+ 42 - 42
src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue Parādīt failu

@@ -2,88 +2,88 @@
2 2
     <div id='prescription-print' class="prescription-print">
3 3
         <div class="printTitle">门诊病历</div>
4 4
         <div class="infoTitle">
5
-            <p>姓名:{{patient.name}}</p>
6
-            <p>性别:
5
+            <div>姓名:{{patient.name}}</div>
6
+            <div>性别:
7 7
                 <span v-if="patient.gender == 1">男</span>
8 8
                 <span v-if="patient.gender == 2">女</span>
9
-            </p>
10
-            <p>年龄:{{patient.age}}岁</p>
9
+            </div>
10
+            <div>年龄:{{patient.age}}岁</div>
11 11
         </div>
12 12
         <div class="infoTitle">
13
-            <p>婚姻状况:
13
+            <div>婚姻状况:
14 14
               <span v-if="patient.marital_status == 1">已婚 </span>
15 15
               <span v-if="patient.marital_status == 2">未婚 </span>
16
-            </p>
17
-            <p>职业:{{getProfession(patient.profession)}}</p>
16
+            </div>
17
+            <div>职业:{{getProfession(patient.profession)}}</div>
18 18
         </div>
19 19
         <div class="otherInfo">
20
-            <p>医保号:</p>
21
-            <p style="flex:1;">{{patient.health_care_no}}</p>
20
+            <div>医保号:</div>
21
+            <div style="flex:1;">{{patient.health_care_no}}</div>
22 22
         </div>
23 23
         <div class="otherInfo">
24
-            <p>联系电话:</p>
25
-            <p style="flex:1;">{{patient.phone}}</p>
24
+            <div>联系电话:</div>
25
+            <div style="flex:1;">{{patient.phone}}</div>
26 26
         </div>
27 27
         <div class="otherInfo">
28
-            <p>通讯地址:</p>
29
-            <p style="flex:1;">{{patient.home_address}}</p>
28
+            <div>通讯地址:</div>
29
+            <div style="flex:1;">{{patient.home_address}}</div>
30 30
         </div>
31 31
         <div class="otherInfo">
32
-            <p>药物过敏史:</p>
33
-            <p style="flex:1;">{{patient.past_history}}</p>
32
+            <div>药物过敏史:</div>
33
+            <div style="flex:1;">{{patient.past_history}}</div>
34 34
         </div>
35 35
         <div class="otherInfo">
36
-            <p>病历编号:</p>
37
-            <p style="flex:1;">{{patient.id}}</p>
36
+            <div>病历编号:</div>
37
+            <div style="flex:1;">{{patient.id}}</div>
38 38
         </div>
39 39
         <div style="page-break-after:always;margin-top:50px;"></div>
40 40
 
41 41
 
42 42
         <div class="printTitle">病历内容</div>
43 43
         <div class="recordTitle">
44
-            <p>科别:{{hispatient.departments}}</p>
45
-            <p>姓名:{{hispatient.name}}</p>
46
-            <p>性别:
44
+            <div>科别:{{hispatient.departments}}</div>
45
+            <div>姓名:{{hispatient.name}}</div>
46
+            <div>性别:
47 47
                 <span v-if="hispatient.gender == 1">男</span>
48 48
                 <span v-if="hispatient.gender == 2">女</span>
49
-            </p>
50
-            <p>年龄:{{hispatient.age}}岁</p>
49
+            </div>
50
+            <div>年龄:{{hispatient.age}}岁</div>
51 51
         </div>
52 52
         <div class="otherInfo">
53
-            <p class="otherName">主诉:</p>
54
-            <p style="flex:1;">{{history.chief_conplaint}}</p>
53
+            <div class="otherName">主诉:</div>
54
+            <div style="flex:1;">{{history.chief_conplaint}}</div>
55 55
         </div>
56 56
         <div class="otherInfo">
57
-            <p class="otherName">现病史:</p>
58
-            <p style="flex:1;">{{history.history_of_present_illness}}</p>
57
+            <div class="otherName">现病史:</div>
58
+            <div style="flex:1;">{{history.history_of_present_illness}}</div>
59 59
         </div>
60 60
         <div class="otherInfo">
61
-            <p class="otherName">既往史:</p>
62
-            <p style="flex:1;">{{history.past_history}}</p>
61
+            <div class="otherName">既往史:</div>
62
+            <div style="flex:1;">{{history.past_history}}</div>
63 63
         </div>
64 64
         <div class="otherInfo">
65
-            <p class="otherName">药物过敏史:</p>
66
-            <p style="flex:1;">{{history.past_history}}</p>
65
+            <div class="otherName">药物过敏史:</div>
66
+            <div style="flex:1;">{{history.past_history}}</div>
67 67
         </div>
68 68
         <div class="otherInfo">
69
-            <p class="otherName">个人史:</p>
70
-            <p style="flex:1;">{{history.personal_history}}</p>
69
+            <div class="otherName">个人史:</div>
70
+            <div style="flex:1;">{{history.personal_history}}</div>
71 71
         </div>
72 72
         <div class="otherInfo">
73
-            <p class="otherName">家族史:</p>
74
-            <p style="flex:1;">{{history.family_history}}</p>
73
+            <div class="otherName">家族史:</div>
74
+            <div style="flex:1;">{{history.family_history}}</div>
75 75
         </div>
76 76
         <div class="otherInfo">
77
-            <p class="otherName">体格检查:</p>
78
-            <p style="flex:1;">无</p>
77
+            <div class="otherName">体格检查:</div>
78
+            <div style="flex:1;">无</div>
79 79
         </div>
80 80
         <div class="otherInfo">
81
-            <p class="otherName">门诊诊断:</p>
82
-            <p style="flex:1;">{{history.diagnostic}}</p>
81
+            <div class="otherName">门诊诊断:</div>
82
+            <div style="flex:1;">{{history.diagnostic}}</div>
83 83
         </div>
84 84
         <div class="otherInfo">
85
-            <p class="otherName">门诊医嘱:</p>
86
-            <p style="flex:1;">{{history.doctor_advice}}</p>
85
+            <div class="otherName">门诊医嘱:</div>
86
+            <div style="flex:1;">{{history.doctor_advice}}</div>
87 87
         </div>
88 88
         <div style="margin-top:20px;text-align:right;">
89 89
             医生签名:{{getDoctor(history.doctor)}}
@@ -160,7 +160,7 @@ export default {
160 160
     line-height: 24px;
161 161
     padding:0 10px;
162 162
 }
163
-.infoTitle p{
163
+.infoTitle div{
164 164
     width: 200px;
165 165
 }
166 166
 .otherInfo{
@@ -176,7 +176,7 @@ export default {
176 176
     padding:0 10px;
177 177
     border-bottom: 2px solid #000;
178 178
 }
179
-.recordTitle p{
179
+.recordTitle div{
180 180
     width: 200px;
181 181
 }
182 182
 

+ 13 - 13
src/xt_pages/outpatientDoctorStation/template/printOne.vue Parādīt failu

@@ -10,18 +10,18 @@
10 10
             <p>年龄:{{patient.age}}岁</p>
11 11
         </div>
12 12
         <div class="infoMain">
13
-            <p style="margin-bottom: 10px;">门诊号:{{this.hisPatient.number?this.hisPatient.number:""}}</p>
14
-            <p style="margin-bottom: 10px;">科室:{{getDepart(this.hisPatient.departments?this.hisPatient.departments:"")}}</p>
15
-            <p style="margin-bottom: 10px;">医保卡号:{{this.hisPatient.number?this.hisPatient.number:""}}</p>
16
-            <p style="margin-bottom: 10px;">电话:{{patient.phone}}</p>
17
-            <p>地址:{{patient.home_address}}</p>
18
-            <p>临床诊断:{{patient.diagnose}}</p>
13
+            <div style="margin-bottom: 10px;">门诊号:{{this.hisPatient.number?this.hisPatient.number:""}}</div>
14
+            <div style="margin-bottom: 10px;">科室:{{getDepart(this.hisPatient.departments?this.hisPatient.departments:"")}}</div>
15
+            <div style="margin-bottom: 10px;">医保卡号:{{this.hisPatient.number?this.hisPatient.number:""}}</div>
16
+            <div style="margin-bottom: 10px;">电话:{{patient.phone}}</div>
17
+            <div>地址:{{patient.home_address}}</div>
18
+            <div style="display:flex;width:50%;">临床诊断:{{patient.diagnose}}</div>
19 19
         </div>
20 20
         <div class="prescriptionBox">
21
-            <p class="Rp">Rp:</p>
21
+            <div class="Rp">Rp:</div>
22 22
             <div class="drugsBox" v-for="(item,index) in advicePrint" :key="index">
23
-                <p class="drugsOne">{{item.advice_name?item.advice_name:""}}&nbsp;&nbsp;{{item.single_dose}}{{item.single_dose_unit}}&nbsp;×&nbsp; {{item.prescribing_number}}{{item.prescribing_number_unit}}</p>
24
-                <p style="margin-left:100px;"><span>用法:{{item.single_dose}}{{item.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{item.execution_frequency}}</span>&nbsp;&nbsp;<span>{{item.advice_desc}}</span></p>
23
+                <div class="drugsOne">{{item.advice_name?item.advice_name:""}}&nbsp;&nbsp;{{item.single_dose}}{{item.single_dose_unit}}&nbsp;×&nbsp; {{item.prescribing_number}}{{item.prescribing_number_unit}}</div>
24
+                <div style="margin-left:100px;"><span>用法:{{item.single_dose}}{{item.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{item.execution_frequency}}</span>&nbsp;&nbsp;<span>{{item.advice_desc}}</span></div>
25 25
             </div>
26 26
         </div>
27 27
         <div class="doctorBox">
@@ -182,13 +182,13 @@ export default {
182 182
     border-bottom: 2px solid #000;
183 183
     padding:0 10px;
184 184
 }
185
-.infoMain p{
185
+.infoMain div{
186 186
     width: 50%;
187 187
     line-height: 24px;
188 188
 }
189 189
 .prescriptionBox{
190 190
     padding:0 10px;
191
-    height:600px;
191
+    min-height:450px;
192 192
 }
193 193
 .Rp{
194 194
     font-size: 22px;
@@ -198,8 +198,8 @@ export default {
198 198
     padding-left: 40px;
199 199
     margin-bottom: 10px;
200 200
 }
201
-.drugsBox p{
202
-    line-height: 30px;
201
+.drugsBox div{
202
+    line-height: 20px;
203 203
 }
204 204
 .drugsOne{
205 205
     line-height: 24px;

+ 100 - 26
src/xt_pages/outpatientDoctorStation/template/printTwo.vue Parādīt failu

@@ -10,45 +10,52 @@
10 10
             <p>年龄:{{patient.age}}岁</p>
11 11
         </div>
12 12
         <div class="infoMain">
13
-            <p style="margin-bottom: 10px;">门诊号:</p>
14
-            <p style="margin-bottom: 10px;">科室:</p>
15
-            <p style="margin-bottom: 10px;">医保卡号:</p>
16
-            <p style="margin-bottom: 10px;">电话:{{patient.phone}}</p>
17
-            <p>地址:{{patient.home_address}}</p>
18
-            <p>临床诊断:{{patient.diagnose}}</p>
13
+            <div style="margin-bottom: 10px;">门诊号:{{this.hisPatient.number?this.hisPatient.number:""}}</div>
14
+            <div style="margin-bottom: 10px;">科室:{{getDepart(this.hisPatient.departments?this.hisPatient.departments:"")}}</div>
15
+            <div style="margin-bottom: 10px;">医保卡号:{{this.hisPatient.number?this.hisPatient.number:""}}</div>
16
+            <div style="margin-bottom: 10px;">电话:{{patient.phone}}</div>
17
+            <div>地址:{{patient.home_address}}</div>
18
+            <div style="display:flex;width:50%;">临床诊断:{{patient.diagnose}}</div>
19 19
         </div>
20 20
         <div class="prescriptionBox">
21
-            <p class="Rp">Rp:</p>
21
+            <div class="Rp">Rp:</div>
22 22
             <div class="drugsBox" v-for="(item,index) in advicePrint" :key="index">
23
-                <p class="drugsOne">{{item.advice_name}}&nbsp;&nbsp;{{item.single_dose}}{{item.single_dose_unit}}&nbsp;×&nbsp; {{item.prescribing_number}}{{item.prescribing_number_unit}}</p>
24
-                <p style="margin-left:100px;"><span>用法:{{item.single_dose}}{{item.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{item.execution_frequency}}</span>&nbsp;&nbsp;<span>{{item.advice_desc}}</span></p>
23
+                <div class="drugsOne">{{item.advice_name?item.advice_name:""}}&nbsp;&nbsp;{{item.single_dose}}{{item.single_dose_unit}}&nbsp;×&nbsp; {{item.prescribing_number}}{{item.prescribing_number_unit}}</div>
24
+                <div style="margin-left:100px;"><span>用法:{{item.single_dose}}{{item.single_dose_unit}}</span>&nbsp;&nbsp;<span>{{item.execution_frequency}}</span>&nbsp;&nbsp;<span>{{item.advice_desc}}</span></div>
25 25
             </div>
26 26
         </div>
27 27
         <div class="doctorBox">
28
-            <p>医师:{{getDoctor(advicePrint[0].advice_doctor)}}</p>
29
-            <p>日期:{{getTime(advicePrint[0].advice_date)}}</p>
28
+            <p>医师:{{getDoctor(advicePrint[0].advice_doctor)?getDoctor(advicePrint[0].advice_doctor):""}}</p>
29
+            <p>日期:{{getTime(advicePrint[0].advice_date)?getTime(advicePrint[0].advice_date):""}}</p>
30 30
         </div>
31 31
         <div class="actionBar">
32
-            <p>审核:{{getDoctor(advicePrint[0].advice_doctor)}}</p>
33
-            <p>配对:{{getDoctor(advicePrint[0].advice_doctor)}}</p>
34
-            <p>核对:{{getDoctor(advicePrint[0].checker)}}</p>
35
-            <p>发药:{{getDoctor(advicePrint[0].execution_staff)}}</p>
36
-            <p>药费:{{advicePrint[0].price}}</p>
32
+            <p>审核:{{getDoctor(advicePrint[0].advice_doctor)?getDoctor(advicePrint[0].advice_doctor):""}}</p>
33
+            <p>配对:{{getDoctor(advicePrint[0].advice_doctor)?getDoctor(advicePrint[0].advice_doctor):""}}</p>
34
+            <p>核对:{{getDoctor(advicePrint[0].checker)?getDoctor(advicePrint[0].checker):""}}</p>
35
+            <p>发药:{{getDoctor(advicePrint[0].execution_staff)?getDoctor(advicePrint[0].execution_staff):""}}</p>
36
+            <p>药费:{{advicePrint[0].price?advicePrint[0].price:""}}</p>
37 37
         </div>
38 38
     </div>
39 39
 </template>
40 40
 <script>
41 41
 import { jsGetAge, uParseTime } from '@/utils/tools'
42
-  import {getAllDoctorList} from "@/api/project/project"
42
+import {getAllDoctorList,getPrescriptionPrint,getHisPatientDetail} from "@/api/project/project"
43
+import {getInitData} from "@/api/his/his"
43 44
 export default {
44 45
     props:{
45
-      patient:Object,
46
-      advicePrint:Array,
47
-      hisPatient:Object,
46
+      patient_id:Number,
47
+      record_date:String,
48
+      prescription_id:Number
48 49
     }, 
49 50
     data(){
50
-      return{
51
-        doctorList:[]
51
+      return {
52
+        doctorList:[],
53
+        advicePrint:{},
54
+        patient:{},
55
+        tableData:[],
56
+        prescriptionInfo:[],
57
+        hisPatient:{},
58
+        department:[]
52 59
       }
53 60
     },
54 61
    methods:{
@@ -78,9 +85,76 @@ export default {
78 85
         }
79 86
         return ''
80 87
      },
88
+       getPrescriptionPrint(){
89
+         var params = {
90
+          patient_id:this.patient_id,
91
+          record_date:this.record_date,
92
+          prescription_id:this.prescription_id,
93
+        }
94
+        console.log("params---",params)
95
+       getPrescriptionPrint(params).then(response=>{
96
+         if(response.data.state == 1){
97
+            var advicePrint =  response.data.data.advicePrint
98
+            console.log("adviceprint",advicePrint)
99
+            this.advicePrint = advicePrint
100
+            var patient =  response.data.data.patient
101
+            console.log("patient",patient)
102
+            this.patient = patient
103
+            var doctorPorject = response.data.data.doctorPorject
104
+          
105
+            var arr = doctorPorject.project
106
+              console.log("我的中谷歌",arr)
107
+            for(let i=0;i<arr.length;i++){
108
+              console.log("arr",arr[i].project_name)
109
+            }
110
+            this.tableData = arr
111
+            console.log("3333",this.tableData)
112
+            var prescriptioninfo = response.data.data.prescriptionInfo
113
+            console.log("prescriptioninfo",prescriptioninfo)
114
+            this.prescriptionInfo = prescriptioninfo
115
+          }
116
+       })
117
+     },
118
+     getHisPatientDetail(){
119
+          const params = {
120
+              patient_id:this.patient_id
121
+          }
122
+       getHisPatientDetail(params).then(response=>{
123
+          if(response.data.state == 1){
124
+             var hisPatient =  response.data.data.hisPatient
125
+             console.log("挂号病人",hisPatient)
126
+             this.hisPatient = hisPatient
127
+          }
128
+       })
129
+     },
130
+     getInitData(){
131
+       getInitData().then(response=>{
132
+          if(response.data.state == 1){
133
+            this.department = response.data.data.department
134
+           
135
+          }
136
+       })
137
+     },
138
+     getDepart(id){
139
+         var name = ""
140
+       for(let i=0;i<this.department.length;i++){
141
+           if(id == this.department[i].id){
142
+               name = this.department[i].name
143
+           }
144
+       }
145
+       return name
146
+     }
81 147
    },
82 148
    created(){
83 149
       this.getAllDoctorList()
150
+      this.getInitData()
151
+   },
152
+   watch:{
153
+     patient_id:function(val){
154
+       console.log("999999888888",this.patient_id,this.record_date,this.prescription_id)
155
+       this.getPrescriptionPrint()
156
+       this.getHisPatientDetail()
157
+     }
84 158
    }
85 159
 }
86 160
 </script>
@@ -108,13 +182,13 @@ export default {
108 182
     border-bottom: 2px solid #000;
109 183
     padding:0 10px;
110 184
 }
111
-.infoMain p{
185
+.infoMain div{
112 186
     width: 50%;
113 187
     line-height: 24px;
114 188
 }
115 189
 .prescriptionBox{
116 190
     padding:0 10px;
117
-    height:600px;
191
+    min-height:450px;
118 192
 }
119 193
 .Rp{
120 194
     font-size: 22px;
@@ -124,8 +198,8 @@ export default {
124 198
     padding-left: 40px;
125 199
     margin-bottom: 10px;
126 200
 }
127
-.drugsBox p{
128
-    line-height: 30px;
201
+.drugsBox div{
202
+    line-height: 20px;
129 203
 }
130 204
 .drugsOne{
131 205
     line-height: 24px;

+ 1 - 1
src/xt_pages/outpatientDoctorStation/treatPrint.vue Parādīt failu

@@ -76,7 +76,7 @@ export default {
76 76
       this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
77 77
 
78 78
       const style =
79
-        '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 300px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain p{width: 50%;line-height: 1px;}.prescriptionBox{padding:0 10px;height:600px;}.Rp{font-size: 22px;font-weight: bold;line-height:1px;}.drugsBox{padding-left: 40px;margin-bottom: 10px;margin-bottom: 10px;}.drugsBox p{line-height: 1px;padding-bottom:10px !important;} .drugsOne{line-height: 1px;margin-bottom:10px !important;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .actionBar p{width:150px;}}';
79
+        '@media print {.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 300px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain p{width: 50%;line-height: 1px;}.prescriptionBox{padding:0 10px;min-height:600px;}.Rp{font-size: 22px;font-weight: bold;line-height:1px;}.drugsBox{padding-left: 40px;margin-bottom: 10px;margin-bottom: 10px;}.drugsBox p{line-height: 1px;padding-bottom:10px !important;} .drugsOne{line-height: 1px;margin-bottom:10px !important;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .actionBar p{width:150px;}}';
80 80
       printJS({
81 81
         printable: "prescription-print",
82 82
         type: "html",

+ 1 - 1
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue Parādīt failu

@@ -220,7 +220,7 @@ export default {
220 220
 }
221 221
 .prescriptionBox{
222 222
     padding:0 10px;
223
-    height:600px;
223
+    min-height:600px;
224 224
 }
225 225
 .Rp{
226 226
     font-size: 22px;

+ 73 - 34
src/xt_pages/outpatientRegistration/index.vue Parādīt failu

@@ -7,22 +7,6 @@
7 7
             <div class="nameTitle">患者基本信息:</div>
8 8
             <div class="formMain">
9 9
                 <el-form class="basicForm" :model="form"  :rules="rules"  ref="form"  label-width="100px">
10
-                    <el-form-item label="结算类型:">
11
-                        <el-select v-model="form.settlementValue" placeholder="请选择">
12
-                            <el-option
13
-                            v-for="item in settlement"
14
-                            :key="item.value"
15
-                            :label="item.label"
16
-                            :value="item.value">
17
-                            </el-option>
18
-                        </el-select>
19
-                    </el-form-item>
20
-                    <el-form-item class="specialFormItem" label="医保卡号:">
21
-                        <div style="display:flex;">
22
-                            <el-input v-model="form.medicalInsuranceCard"></el-input>
23
-                            <el-button style="margin-left:10px;" type="primary" @click="reading">读卡</el-button>
24
-                        </div>
25
-                    </el-form-item>
26 10
                     <el-form-item label="患者姓名:"  prop="name" :validate-event="is_Name">
27 11
                         <!-- <el-input  v-model="form.name"></el-input> -->
28 12
                        <el-select v-model="form.name" placeholder="请选择">
@@ -34,6 +18,7 @@
34 18
                             </el-option>
35 19
                         </el-select>
36 20
                     </el-form-item>
21
+
37 22
                     <el-form-item label="性别:" prop="sex" :validate-event="is_Name">
38 23
                         <el-select v-model="form.sex" placeholder="请选择">
39 24
                             <el-option
@@ -44,7 +29,34 @@
44 29
                             </el-option>
45 30
                         </el-select>
46 31
                     </el-form-item>
47
-                    <el-form-item label="证件类型:">
32
+
33
+                    <el-form-item label="年龄:" prop="age" :validate-event="is_Name">
34
+                        <el-input v-model="form.age"></el-input>
35
+                    </el-form-item>
36
+
37
+
38
+                    <el-form-item label="出生日期:" prop="birthday" :validate-event="is_Name">
39
+                        <el-date-picker v-model="form.birthday" type="date" @change="getBirthday" placeholder="选择日期"></el-date-picker>
40
+                    </el-form-item>
41
+
42
+                    <el-form-item label="手机号码" prop="phone">
43
+                        <el-input v-model="form.phone"></el-input>
44
+                    </el-form-item>
45
+
46
+
47
+                      <el-form-item label="医疗类别:">
48
+                        <el-select v-model="form.medicalCare" placeholder="请选择">
49
+                            <el-option
50
+                            v-for="item in medicalCare"
51
+                            :key="item.value"
52
+                            :label="item.label"
53
+                            :value="item.value">
54
+                            </el-option>
55
+                        </el-select>
56
+                    </el-form-item>
57
+
58
+
59
+                  <el-form-item label="证件类型:">
48 60
                         <el-select v-model="form.certificates" placeholder="请选择">
49 61
                             <el-option
50 62
                             v-for="item in certificates"
@@ -54,24 +66,39 @@
54 66
                             </el-option>
55 67
                         </el-select>
56 68
                     </el-form-item>
57
-                    <el-form-item label="医疗类别:">
58
-                        <el-select v-model="form.medicalCare" placeholder="请选择">
69
+
70
+                   <el-form-item label="证件号码:" prop="idCard"  :validate-event="is_Name">
71
+                        <el-input v-model="form.idCard"></el-input>
72
+                    </el-form-item>
73
+
74
+
75
+                    <el-form-item label="结算类型:">
76
+                        <el-select v-model="form.settlementValue" placeholder="请选择">
59 77
                             <el-option
60
-                            v-for="item in medicalCare"
78
+                            v-for="item in settlement"
61 79
                             :key="item.value"
62 80
                             :label="item.label"
63 81
                             :value="item.value">
64 82
                             </el-option>
65 83
                         </el-select>
66 84
                     </el-form-item>
67
-                    <el-form-item label="出生日期:" prop="birthday" :validate-event="is_Name">
68
-                        <el-date-picker v-model="form.birthday" type="date" @change="getBirthday" placeholder="选择日期"></el-date-picker>
69
-                    </el-form-item>
70
-                    <el-form-item label="年龄:" prop="age" :validate-event="is_Name">
71
-                        <el-input v-model="form.age"></el-input>
85
+
86
+
87
+                   <el-form-item label="社保类型:">
88
+                        <el-select v-model="form.social_type" placeholder="请选择">
89
+                            <el-option
90
+                            v-for="(item,index) in getDictionaryDataConfig('system','social_type')"
91
+                            :key="index"
92
+                            :label="item.name"
93
+                            :value="item.id">
94
+                            </el-option>
95
+                        </el-select>
72 96
                     </el-form-item>
73
-                    <el-form-item label="证件号码:" prop="idCard"  :validate-event="is_Name">
74
-                        <el-input v-model="form.idCard"></el-input>
97
+                    <el-form-item class="specialFormItem" label="医保卡号:">
98
+                        <div style="display:flex;">
99
+                            <el-input v-model="form.medicalInsuranceCard"></el-input>
100
+                            <!-- <el-button style="margin-left:10px;" type="primary" @click="reading">读卡</el-button> -->
101
+                        </div>
75 102
                     </el-form-item>
76 103
 
77 104
                 </el-form>
@@ -138,7 +165,8 @@
138 165
 <script>
139 166
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
140 167
 import { basename } from 'path'
141
-import { getAllDoctorList,saveHisPatient } from "@/api/project/project"
168
+import { getAllDoctorList,saveHisPatient,getTodaySchedulePatient } from "@/api/project/project"
169
+import { getDictionaryDataConfig } from '@/utils/data'
142 170
 const moment = require('moment')
143 171
 export default {
144 172
     components:{
@@ -167,7 +195,9 @@ export default {
167 195
                 registrationFee:'',
168 196
                 medicalExpenses:'',
169 197
                 cost:'',
170
-                total: ''
198
+                total: '',
199
+                phone:'',
200
+                social_type:'',
171 201
             },
172 202
             settlement: [{
173 203
                 value: 1,
@@ -267,6 +297,7 @@ export default {
267 297
            show:false,
268 298
            is_Name:false,
269 299
            patient:[],
300
+           scialType:[]
270 301
         }
271 302
     },
272 303
     computed:{
@@ -376,7 +407,7 @@ export default {
376 407
              this.is_Name = true
377 408
              return
378 409
            }
379
-          
410
+
380 411
 
381 412
            if(this.form.sex == ""){
382 413
              this.$message.error("患者性别不能为空")
@@ -443,10 +474,12 @@ export default {
443 474
                     registrationFee:this.form.registrationFee,
444 475
                     medicalExpenses:this.form.medicalExpenses,
445 476
                     cost:this.form.cost,
446
-                    total:this.total
477
+                    total:this.total,
478
+                    phone:this.form.phone,
479
+                    social_type:this.form.social_type
447 480
                 }
448 481
                 console.log("params",params)
449
-                return
482
+
450 483
                 saveHisPatient(params).then(response=>{
451 484
                    if(response.data.state == 1){
452 485
                      var patient =  response.data.data.patient
@@ -468,7 +501,9 @@ export default {
468 501
                      this.form.registrationFee = "",
469 502
                      this.form.medicalExpenses = "",
470 503
                      this.form.cost="",
471
-                     this.form.total= ""
504
+                     this.form.total= "" ,
505
+                     this.form.phone = "",
506
+                     this.form.social_type = ""
472 507
                    }
473 508
                 })
474 509
              }
@@ -482,7 +517,11 @@ export default {
482 517
                this.patient = patient
483 518
              }
484 519
           })
485
-       }
520
+       },
521
+       getDictionaryDataConfig(module, filed_name) {
522
+        return getDictionaryDataConfig(module, filed_name)
523
+
524
+      },
486 525
     },
487 526
     created(){
488 527
       //获取当前机构有人员信息

+ 60 - 14
src/xt_pages/role/components/AdminInfoForm.vue Parādīt failu

@@ -37,10 +37,24 @@
37 37
         </el-select>
38 38
       </el-form-item>
39 39
 
40
+
41
+      <el-form-item label="科室:">
42
+         <el-select v-model="form.department_id" placeholder="科室">
43
+          <el-option
44
+            v-for="item in departMent"
45
+            :label="item.name"
46
+            :value="item.id"
47
+            :key="item.id"
48
+          ></el-option>
49
+        </el-select>
50
+      </el-form-item>
51
+
40 52
       <el-form-item label="职位 : ">
41 53
         <el-input v-model="form.user_title_name" placeholder="输入职位"></el-input>
42 54
       </el-form-item>
43 55
 
56
+       
57
+
44 58
       <el-form-item label="介绍 : ">
45 59
         <Tinymce :height="400" menubar ref="editor" v-model="form.intro" :show_upload_img="false"/>
46 60
       </el-form-item>
@@ -55,7 +69,7 @@
55 69
 <script>
56 70
   import Tinymce from '@/components/Tinymce'
57 71
   import { addAdmin, getAddAdminInitData, getModifyAdminInitData, modifyAdmin } from '@/api/role/admin'
58
-
72
+  import { getAllDePartmentList } from "@/api/project/project"
59 73
   export default {
60 74
     name: 'AdminInfoForm',
61 75
     components: {
@@ -118,7 +132,10 @@
118 132
           user_title: '',
119 133
           role: '', // 其实应该是 int 类型
120 134
           intro: '',
135
+          department:'',
136
+          department_id:"",
121 137
         },
138
+        departMent:[],
122 139
         rules: {
123 140
           mobile: [{ required: true, validator: checkMobile, trigger: 'blur' }],
124 141
           name: [{ required: true, validator: checkName, trigger: 'blur' }],
@@ -209,6 +226,7 @@
209 226
                 }
210 227
                 this.form.user_title = admin.user_title
211 228
                 this.form.role = admin.role_ids
229
+                this.form.department_id = admin.department_id
212 230
                 this.form.role_ids = []
213 231
                 for (let i = 0; i < this.form.role.split(",").length; i++) {
214 232
                   if (this.form.role.split(',')[i].length > 0) {
@@ -255,7 +273,16 @@
255 273
 
256 274
         this.dialogFormVisible = true
257 275
       },
258
-      submitAction: function() {     
276
+      submitAction: function() {   
277
+       console.log("第是",this.form.department_id)  
278
+        var department = ""
279
+        for(let i=0;i<this.departMent.length;i++){
280
+          if(this.form.department_id == this.departMent[i].id){
281
+              department = this.departMent[i].name
282
+          }
283
+        }
284
+        this.form.department = department
285
+        
259 286
         if (this.admin_id < 0) {
260 287
           return
261 288
         }
@@ -267,6 +294,7 @@
267 294
             }
268 295
 
269 296
             this.loading = true
297
+            console.log("id-----",this.form.id)
270 298
             if (this.form.id === 0) {
271 299
               this.form.role = this.form.role_ids.join(',')
272 300
               addAdmin(
@@ -276,7 +304,9 @@
276 304
                 this.form.user_title,
277 305
                 this.form.role,
278 306
                 this.form.intro,
279
-                this.form.user_title_name
307
+                this.form.user_title_name,
308
+                this.form.department,
309
+                this.form.department_id,
280 310
               ).then(rs => {
281 311
                   this.loading = false
282 312
                   var resp = rs.data
@@ -297,17 +327,17 @@
297 327
                 })
298 328
             } else {
299 329
               this.form.role = this.form.role_ids.join(',')
300
-
301
-              modifyAdmin(
302
-                this.form.id,
303
-                this.form.name,
304
-                this.form.user_type,
305
-                this.form.user_title,
306
-                this.form.role,
307
-                this.form.intro,
308
-                this.form.user_title_name,
309
-              )
310
-                .then(rs => {
330
+             
331
+               var department = ""
332
+               for(let i=0;i<this.departMent.length;i++){
333
+                if(this.form.department_id == this.departMent[i].id){
334
+                    department = this.departMent[i].name
335
+                }
336
+              }
337
+              this.form.department = department
338
+           
339
+             
340
+              modifyAdmin(this.form.id,this.form.name,this.form.user_type,this.form.user_title,this.form.role,this.form.intro, this.form.user_title_name,this.form.sort,this.form.department,this.form.department_id).then(rs => {
311 341
                   this.loading = false
312 342
                   var resp = rs.data
313 343
                   if (resp.state === 1) {
@@ -331,7 +361,23 @@
331 361
             return false
332 362
           }
333 363
         })
364
+      },
365
+
366
+      getlist(){
367
+        getAllDePartmentList().then(response=>{
368
+         if(response.data.state == 1){
369
+           var department =   response.data.data.departMent
370
+           console.log("department2222",department)
371
+           this.departMent = department
372
+         
373
+         }
374
+        })
334 375
       }
376
+    },
377
+
378
+    created(){
379
+        //获取所有科室
380
+       this.getlist()
335 381
     }
336 382
   }
337 383
 </script>

+ 1 - 1
src/xt_pages/role/components/AdminRoleInfoForm.vue Parādīt failu

@@ -43,7 +43,7 @@
43 43
       <el-form-item label="职位 : ">
44 44
         <el-input v-model="form.user_title_name" placeholder="输入职位"></el-input>
45 45
       </el-form-item>
46
-
46
+      
47 47
       <el-form-item label="介绍 : ">
48 48
         <Tinymce :height="400" menubar ref="editor" v-model="form.intro" :show_upload_img="false"/>
49 49
       </el-form-item>

+ 1 - 0
src/xt_pages/role/components/EditAdminInfo.vue Parādīt failu

@@ -168,6 +168,7 @@ export default {
168 168
                     this.form.user_title = admin.user_title
169 169
                     this.form.role = admin.role_id
170 170
                     this.form.intro = admin.intro
171
+                    this.form.deparment_id = admin.deparment_id
171 172
                 } else {
172 173
                     this.$message.error(resp.msg)
173 174
                 }