Pārlūkot izejas kodu

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

see999 3 gadus atpakaļ
vecāks
revīzija
cf39d30a03

+ 7 - 7
src/xt_pages/data/components/consumables.vue Parādīt failu

43
     </div>
43
     </div>
44
 
44
 
45
      <div style="display:flex; align-items:center;margin-bottom:10px;">
45
      <div style="display:flex; align-items:center;margin-bottom:10px;">
46
-        <el-button type="primary" size="mini" @click="BatchDelete()" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 10138">批量备案</el-button>
47
-        <el-button type="primary" size="mini" v-if="$store.getters.xt_user.org_id != 9504 && $store.getters.xt_user.org_id != 10028 && $store.getters.xt_user.org_id != 10138" @click="GDYBBatchPutOnRecord">批量备案</el-button>
46
+        <!--<el-button type="primary" size="mini" @click="BatchDelete()" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 10138">批量备案</el-button>-->
47
+        <!--<el-button type="primary" size="mini">批量备案</el-button>-->
48
         <el-link target="_blank" href="https://kuyi.shengws.com/stockTemplate.xlsx" :underline="false"
48
         <el-link target="_blank" href="https://kuyi.shengws.com/stockTemplate.xlsx" :underline="false"
49
                  style="margin-left:15px">
49
                  style="margin-left:15px">
50
           <el-button
50
           <el-button
130
           <!--<el-button type="primary" size="small" @click="clickSelfPayment(scope.row.id)">自付比例</el-button>-->
130
           <!--<el-button type="primary" size="small" @click="clickSelfPayment(scope.row.id)">自付比例</el-button>-->
131
           <el-button type="danger" size="small" @click="handleGoodInfoDelete(scope.$index, scope.row)">删除</el-button>
131
           <el-button type="danger" size="small" @click="handleGoodInfoDelete(scope.$index, scope.row)">删除</el-button>
132
 
132
 
133
-          <el-button type="primary" size="small" @click="toReturn(scope.row.id,scope.row.is_mark)" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 10138">
134
-             <span v-if="scope.row.is_mark == 0">备案</span>
135
-             <span v-if="scope.row.is_mark == 1">撤销</span>
136
-          </el-button>
133
+          <!--<el-button type="primary" size="small" @click="toReturn(scope.row.id,scope.row.is_mark)" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 10138">-->
134
+             <!--<span v-if="scope.row.is_mark == 0">备案</span>-->
135
+             <!--<span v-if="scope.row.is_mark == 1">撤销</span>-->
136
+          <!--</el-button>-->
137
 
137
 
138
-          <el-button type="primary" size="small" v-if="$store.getters.xt_user.org_id != 9504 && $store.getters.xt_user.org_id != 10028">
138
+          <el-button type="primary" size="small" >
139
             <span v-if="scope.row.is_mark == 0 || scope.row.is_mark == 2"  @click="putOnRecord(scope.row.id)" >目录对照</span>
139
             <span v-if="scope.row.is_mark == 0 || scope.row.is_mark == 2"  @click="putOnRecord(scope.row.id)" >目录对照</span>
140
             <span v-if="scope.row.is_mark == 1"  @click="putOnUnRecord(scope.row.id)" >撤消对照</span>
140
             <span v-if="scope.row.is_mark == 1"  @click="putOnUnRecord(scope.row.id)" >撤消对照</span>
141
           </el-button>
141
           </el-button>

+ 8 - 8
src/xt_pages/data/components/drugs.vue Parādīt failu

45
 
45
 
46
     </div>
46
     </div>
47
     <div style="display:flex; align-items:center;margin-bottom:10px;">
47
     <div style="display:flex; align-items:center;margin-bottom:10px;">
48
-        <el-button type="primary" size="small" @click="BatchDelete()" v-if="$store.getters.xt_user.org_id == 9504 ||  this.$store.getters.xt_user.org_id == 10138 || $store.getters.xt_user.org_id == 10028" >批量备案</el-button>
49
-        <el-button type="primary" size="small" v-if="$store.getters.xt_user.org_id != 9504 && $store.getters.xt_user.org_id != 10028  && $store.getters.xt_user.org_id != 10138 && $store.getters.xt_user.org_id != 10138" @click="GDYBBatchPutOnRecord()">批量备案</el-button>
48
+        <!--<el-button type="primary" size="small" @click="BatchDelete()" v-if="$store.getters.xt_user.org_id == 9504 ||  this.$store.getters.xt_user.org_id == 10138 || $store.getters.xt_user.org_id == 10028" >批量备案</el-button>-->
49
+        <el-button type="primary" size="small"  @click="GDYBBatchPutOnRecord()">批量备案</el-button>
50
         <el-link target="_blank" href="https://kuyi.shengws.com/drugTemplate.xlsx" :underline="false"
50
         <el-link target="_blank" href="https://kuyi.shengws.com/drugTemplate.xlsx" :underline="false"
51
                  style="margin-left:15px">
51
                  style="margin-left:15px">
52
           <el-button
52
           <el-button
149
           <el-button @click="openForm(scope.row.id)" type="primary" size="small">编辑</el-button>
149
           <el-button @click="openForm(scope.row.id)" type="primary" size="small">编辑</el-button>
150
           <el-button type="danger" size="small" @click="deleteDurg(scope.row.id,scope.$index)">删除</el-button>
150
           <el-button type="danger" size="small" @click="deleteDurg(scope.row.id,scope.$index)">删除</el-button>
151
 
151
 
152
-        <el-button type="primary" size="small" icon="el-icon-refresh-left" @click="toReturn(scope.row.id,scope.row.is_mark)" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 10138" >
153
-          <span v-if="scope.row.is_mark == 0">备案</span>
154
-          <span v-if="scope.row.is_mark == 1">撤消</span>
155
-        </el-button>
152
+        <!--<el-button type="primary" size="small" icon="el-icon-refresh-left" @click="toReturn(scope.row.id,scope.row.is_mark)" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 10138" >-->
153
+          <!--<span v-if="scope.row.is_mark == 0">备案</span>-->
154
+          <!--<span v-if="scope.row.is_mark == 1">撤消</span>-->
155
+        <!--</el-button>-->
156
 
156
 
157
 
157
 
158
-          <el-button type="primary" size="small" icon="el-icon-refresh-left" v-if="$store.getters.xt_user.org_id != 9504 && $store.getters.xt_user.org_id != 10028 && $store.getters.xt_user.org_id != 10138">
158
+          <el-button type="primary" size="small" icon="el-icon-refresh-left">
159
             <span v-if="scope.row.is_mark == 0 || scope.row.is_mark == 2"  @click="putOnRecord(scope.row.id)" >目录对照</span>
159
             <span v-if="scope.row.is_mark == 0 || scope.row.is_mark == 2"  @click="putOnRecord(scope.row.id)" >目录对照</span>
160
             <span v-if="scope.row.is_mark == 1"  @click="putOnUnRecord(scope.row.id)" >撤消对照</span>
160
             <span v-if="scope.row.is_mark == 1"  @click="putOnUnRecord(scope.row.id)" >撤消对照</span>
161
           </el-button>
161
           </el-button>
736
             return false
736
             return false
737
           } else {
737
           } else {
738
             this.total = response.data.data.total;
738
             this.total = response.data.data.total;
739
-          
739
+
740
             this.list = [];
740
             this.list = [];
741
             for (let i = 0; i < response.data.data.list.length; i++) {
741
             for (let i = 0; i < response.data.data.list.length; i++) {
742
               this.list.push(response.data.data.list[i])
742
               this.list.push(response.data.data.list[i])

+ 7 - 7
src/xt_pages/data/components/project.vue Parādīt failu

39
             </div>
39
             </div>
40
         </div>
40
         </div>
41
         <div style="display:flex; align-items:center;margin-bottom:10px;">
41
         <div style="display:flex; align-items:center;margin-bottom:10px;">
42
-        <el-button type="primary" size="small" @click="BatchDelete()" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028" >批量备案</el-button>
43
-        <el-button type="primary" size="small" v-if="$store.getters.xt_user.org_id != 9504 && $store.getters.xt_user.org_id != 10028" @click="GDYBBatchPutOnRecord()">批量备案</el-button>
42
+        <!--<el-button type="primary" size="small" @click="BatchDelete()" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028" >批量备案</el-button>-->
43
+        <el-button type="primary" size="small" @click="GDYBBatchPutOnRecord()">批量备案</el-button>
44
         <el-link target="_blank" href="https://kuyi.shengws.com/itemTemplate.xlsx" :underline="false"
44
         <el-link target="_blank" href="https://kuyi.shengws.com/itemTemplate.xlsx" :underline="false"
45
                  style="margin-left:15px">
45
                  style="margin-left:15px">
46
           <el-button
46
           <el-button
114
                 <template slot-scope="scope">
114
                 <template slot-scope="scope">
115
                     <el-button @click="editHisProject(scope.row.id)" type="primary" size="small">编辑</el-button>
115
                     <el-button @click="editHisProject(scope.row.id)" type="primary" size="small">编辑</el-button>
116
                     <el-button type="danger" size="small" @click="deleteProject(scope.row.id,scope.$index)">删除</el-button>
116
                     <el-button type="danger" size="small" @click="deleteProject(scope.row.id,scope.$index)">删除</el-button>
117
-                    <el-button type="primary" size="small" icon="el-icon-refresh-left" @click="toReturn(scope.row.id,scope.row.is_mark)" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 10138">
118
-                      <span v-if="scope.row.is_mark ==0">备案</span>
119
-                      <span v-if="scope.row.is_mark ==1">撤销</span>
120
-                    </el-button>
117
+                    <!--<el-button type="primary" size="small" icon="el-icon-refresh-left" @click="toReturn(scope.row.id,scope.row.is_mark)" v-if="$store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 10138">-->
118
+                      <!--<span v-if="scope.row.is_mark ==0">备案</span>-->
119
+                      <!--<span v-if="scope.row.is_mark ==1">撤销</span>-->
120
+                    <!--</el-button>-->
121
 
121
 
122
-                    <el-button type="primary" size="small" icon="el-icon-refresh-left" v-if="$store.getters.xt_user.org_id != 9504 && $store.getters.xt_user.org_id != 10028 && $store.getters.xt_user.org_id != 10138">
122
+                    <el-button type="primary" size="small" icon="el-icon-refresh-left">
123
                         <span v-if="scope.row.is_mark == 0 || scope.row.is_mark == 2"  @click="putOnRecord(scope.row.id)" >目录对照</span>
123
                         <span v-if="scope.row.is_mark == 0 || scope.row.is_mark == 2"  @click="putOnRecord(scope.row.id)" >目录对照</span>
124
                         <span v-if="scope.row.is_mark == 1"  @click="putOnUnRecord(scope.row.id)" >撤消对照</span>
124
                         <span v-if="scope.row.is_mark == 1"  @click="putOnUnRecord(scope.row.id)" >撤消对照</span>
125
                     </el-button>
125
                     </el-button>

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1111 - 1018
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue


+ 1 - 0
src/xt_pages/hospitalStation/outpatientChargesManagement.vue Parādīt failu

310
                              v-on:confirm="registerConfirm" v-on:cancel="registerCancel"></register-dialog9504>
310
                              v-on:confirm="registerConfirm" v-on:cancel="registerCancel"></register-dialog9504>
311
 
311
 
312
         <charge-dialog ref='charge' v-on:confirm="chargeConfirm" v-on:cancel="chargeCancel"></charge-dialog>
312
         <charge-dialog ref='charge' v-on:confirm="chargeConfirm" v-on:cancel="chargeCancel"></charge-dialog>
313
+
313
         <el-dialog
314
         <el-dialog
314
                 class="centerDialog"
315
                 class="centerDialog"
315
                 width="900px"
316
                 width="900px"

+ 12 - 12
src/xt_pages/outpatientCharges/components/registerDialog9504.vue Parādīt failu

50
             </el-form-item>
50
             </el-form-item>
51
 
51
 
52
 
52
 
53
-            <el-form-item label="医疗类别:" prop="medical_care">
54
-                <el-select v-model="form.medical_care"  placeholder="请选择" style="width:100%;">
55
-                    <el-option
56
-                            v-for="(item,index) in medical_care"
57
-                            :key="index"
58
-                            :label="item.label"
59
-                            :value="item.value">
60
-                    </el-option>
61
-                </el-select>
62
-            </el-form-item>
53
+            <!--<el-form-item label="医疗类别:" prop="medical_care">-->
54
+                <!--<el-select v-model="form.medical_care"  placeholder="请选择" style="width:100%;">-->
55
+                    <!--<el-option-->
56
+                            <!--v-for="(item,index) in medical_care"-->
57
+                            <!--:key="index"-->
58
+                            <!--:label="item.label"-->
59
+                            <!--:value="item.value">-->
60
+                    <!--</el-option>-->
61
+                <!--</el-select>-->
62
+            <!--</el-form-item>-->
63
 
63
 
64
 
64
 
65
             <el-form-item label="证件类型:" prop="certificates" >
65
             <el-form-item label="证件类型:" prop="certificates" >
320
           birthday: [{required: true, message: "患者出生日期不能为空", trigger: 'blur'}],
320
           birthday: [{required: true, message: "患者出生日期不能为空", trigger: 'blur'}],
321
           certificates: [{required: true, message: "证件类型不能为空", trigger: 'change'}],
321
           certificates: [{required: true, message: "证件类型不能为空", trigger: 'change'}],
322
           id_card_type: [{required: true, message: "读卡类型不能为空", trigger: 'change'}],
322
           id_card_type: [{required: true, message: "读卡类型不能为空", trigger: 'change'}],
323
-          medical_care: [{required: true, message: "医疗类别不能为空", trigger: 'change'}],
323
+          // medical_care: [{required: true, message: "医疗类别不能为空", trigger: 'change'}],
324
 
324
 
325
         },
325
         },
326
         visibility: false,
326
         visibility: false,
435
 
435
 
436
         }
436
         }
437
         this.read_loading = true
437
         this.read_loading = true
438
-        axios.get('http://127.0.0.1:9532/sz/api/readcard', {
438
+        axios.get('http://127.0.0.1:9532/api/readcard', {
439
           params: params
439
           params: params
440
         })
440
         })
441
           .then(function (response) {
441
           .then(function (response) {

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1214 - 2051
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue


+ 107 - 236
src/xt_pages/outpatientCharges/summary.vue Parādīt failu

6
         <div class="app-container">
6
         <div class="app-container">
7
             <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
7
             <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
8
                 <div>
8
                 <div>
9
-                    <el-input size="small" style="width:150px;" v-model="keywords" @input="searchAction" @keyup.enter.native='searchAction'
9
+                    <el-input size="small" style="width:150px;" v-model="keywords" @input="searchAction"
10
+                              @keyup.enter.native='searchAction'
10
                               class="filter-item"/>
11
                               class="filter-item"/>
11
                     <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"
12
                     <el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"
12
                                @click="searchAction">
13
                                @click="searchAction">
98
                 </el-table-column>
99
                 </el-table-column>
99
 
100
 
100
 
101
 
101
-
102
                 <el-table-column align="center" width="100" prop="name" label="收费日期">
102
                 <el-table-column align="center" width="100" prop="name" label="收费日期">
103
                     <template slot-scope="scope">
103
                     <template slot-scope="scope">
104
                         {{scope.row.setl_time?scope.row.setl_time:getTimes(scope.row.settle_accounts_date)}}
104
                         {{scope.row.setl_time?scope.row.setl_time:getTimes(scope.row.settle_accounts_date)}}
117
                 <el-table-column align="center" prop="name" label="操作">
117
                 <el-table-column align="center" prop="name" label="操作">
118
                     <template slot-scope="scope">
118
                     <template slot-scope="scope">
119
                         <el-button size="mini" type="primary" @click="toDetail(scope.row)">详情</el-button>
119
                         <el-button size="mini" type="primary" @click="toDetail(scope.row)">详情</el-button>
120
-                        <el-button size="mini" type="primary" @click="toPrint(scope.row)"
121
-                                   v-if="(scope.row.order_status == 2 && $store.getters.xt_user.org_id == 10138)  || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9504) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9919) ||  ($store.getters.xt_user.org_id == 10106) ||  (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 4) || (scope.row.order_status == 2 && $store.getters.xt_user.org_id == 9990)">
120
+                        <el-button size="mini" type="primary" @click="toPrint(scope.row)">
122
                             结算单
121
                             结算单
123
                         </el-button>
122
                         </el-button>
124
                         <el-button size="mini" type="primary" @click="uploadInfo(scope.row)"
123
                         <el-button size="mini" type="primary" @click="uploadInfo(scope.row)"
173
             <allListPrint :paramsObj='paramsObj'></allListPrint>
172
             <allListPrint :paramsObj='paramsObj'></allListPrint>
174
         </el-dialog>
173
         </el-dialog>
175
 
174
 
176
-        <el-dialog
177
-                class="centerDialog"
178
-                width="1200px"
179
-                title="打印"
180
-                :visible.sync="statementVisible9504">
181
-            <statementPrint ref="print" :paramsObj='orderObj9504'></statementPrint>
182
-            <!--<new-statement-print ref="print" :paramsObj='orderObj9504'></new-statement-print>-->
183
-            <!-- <new-statement-print-two ref="print" :paramsObj='orderObj9504'></new-statement-print-two> -->
184
-        </el-dialog>
175
+        <!--<el-dialog-->
176
+        <!--class="centerDialog"-->
177
+        <!--width="1200px"-->
178
+        <!--title="打印"-->
179
+        <!--:visible.sync="statementVisible9504">-->
180
+        <!--&lt;!&ndash;<statementPrint ref="print" :paramsObj='orderObj'></statementPrint>&ndash;&gt;-->
181
+        <!--&lt;!&ndash;<new-statement-print ref="print" :paramsObj='orderObj9504'></new-statement-print>&ndash;&gt;-->
182
+        <!--<new-statement-print-two ref="print" :paramsObj='orderObj9504'></new-statement-print-two>-->
183
+        <!--</el-dialog>-->
185
 
184
 
186
         <el-dialog
185
         <el-dialog
187
                 class="centerDialog"
186
                 class="centerDialog"
258
     methods: {
257
     methods: {
259
       getMedType(med_type) {
258
       getMedType(med_type) {
260
         var med_type = parseInt(med_type)
259
         var med_type = parseInt(med_type)
261
-        if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
262
-          switch (med_type) {
263
-            case 11:
264
-              return '普通门诊'
265
-
266
-              break
267
-            case 12:
268
-              return '家庭通道'
269
-
270
-              break
271
-            case 13:
272
-              return '门诊大病'
273
-
274
-              break
275
-
276
-            case 14:
277
-              return '重疾特药'
278
-              break
279
-
280
-            case 15:
281
-              return '门诊慢病'
282
-
283
-              break
284
-            case 16:
285
-              return '门诊特检'
286
-
287
-              break
288
-            case 17:
289
-              return '健康体检'
290
-
291
-              break
292
-            case 18:
293
-              return '预防接种'
294
-
295
-              break
296
-            case 19:
297
-              return '门诊输血'
298
-
299
-              break
300
-            case 91:
301
-              return '新冠肺炎门诊'
302
-              break
303
-            case 1111:
304
-              return '精一' + '处方'
305
-              break
306
-            case 1112:
307
-              return '精二' + '处方'
308
-              break
309
-          }
310
-
311
-        } else {
312
-
313
-          switch (med_type) {
314
-            case 11:
315
-              return '普通门诊'
316
-
317
-              break
318
-            case 12:
319
-              return '门诊挂号'
320
-
321
-              break
322
-            case 13:
323
-              return '急诊'
324
-
325
-              break
326
-
327
-            case 14:
328
-              return '门诊特殊病'
329
-              break
330
-
331
-            case 15:
332
-              return '门诊统筹'
333
-
334
-              break
335
-            case 16:
336
-              return '门诊慢性病'
337
-
338
-              break
339
-            case 21:
340
-              return '普通住院'
341
-              break
342
-
343
-          }
344
-
260
+        switch (med_type) {
261
+          case 11:
262
+            return '普通门诊'
263
+            break
264
+          case 12:
265
+            return '门诊挂号'
266
+            break
267
+          case 13:
268
+            return '急诊'
269
+            break
270
+          case 14:
271
+            return '门诊特殊病'
272
+            break
273
+
274
+          case 15:
275
+            return '门诊统筹'
276
+
277
+            break
278
+          case 16:
279
+            return '门诊慢性病'
280
+            break
281
+          case 21:
282
+            return '普通住院'
283
+            break
345
         }
284
         }
346
-
347
       },
285
       },
348
       uploadInfo(row) {
286
       uploadInfo(row) {
349
         var that = this
287
         var that = this
402
           }).then(() => {
340
           }).then(() => {
403
             let params = {
341
             let params = {
404
               'order_id': row.id,
342
               'order_id': row.id,
405
-              'patient_id':  row.patient_id,
406
-              'record_time':this.getTimes(row.settle_accounts_date),
343
+              'patient_id': row.patient_id,
344
+              'record_time': this.getTimes(row.settle_accounts_date)
407
             }
345
             }
408
             Refund(params).then(response => {
346
             Refund(params).then(response => {
409
               if (response.data.state == 0) {
347
               if (response.data.state == 0) {
419
 
357
 
420
         } else {
358
         } else {
421
 
359
 
422
-          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990) {
423
-            var that = this
424
-            this.$confirm('是否退费', '退费', {
425
-              confirmButtonText: '确 定',
426
-              cancelButtonText: '取 消',
427
-              type: 'warning'
428
-            }).then(() => {
429
-              let params = {
430
-                'order_id': row.id,
431
-                'patient_id': row.patient_id,
432
-                'record_time': that.getTimes(row.settle_accounts_date),
433
-                'admin_user_id': that.$store.getters.xt_user.user.id
434
-              }
435
-              axios.get('http://127.0.0.1:9532/api/refund/post', {
436
-                params: params
437
-              })
438
-                .then(function(response) {
439
-                  if (response.data.state == 0) {
440
-                    that.$message.error(response.data.msg)
441
-                    return false
442
-                  } else {
443
-                    if (response.data.data.failed_code == -10) {
444
-                      // that.$message.error(response.data.data.msg)
445
-                      that.$confirm(response.data.data.msg, '医保错误信息', {
446
-                        confirmButtonText: '确 定',
447
-                        type: 'warning'
448
-                      }).then(() => {
449
-
450
-                      }).catch(() => {
451
-                      })
452
-                    } else {
453
-                      that.$message({ message: '退费成功', type: 'success', duration: 5000 })
454
-                      that.getHisOrderList()
455
-
456
-                    }
457
-                  }
458
-                })
459
-                .catch(function(error) {
460
-                })
461
-            }).catch(() => {
462
-            })
463
-
464
-          } else if (this.$store.getters.xt_user.org_id == 0 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
465
-            var that = this
466
-            this.$confirm('是否退费', '退费', {
467
-              confirmButtonText: '确 定',
468
-              cancelButtonText: '取 消',
469
-              type: 'warning'
470
-            }).then(() => {
471
-              let params = {
472
-                'order_id': row.id,
473
-                'patient_id': row.patient_id,
474
-                'record_time': this.getTimes(row.settle_accounts_date),
475
-                'admin_user_id': this.$store.getters.xt_user.user.id
476
-              }
477
-              axios.get('http://127.0.0.1:9532/sz/api/refund/get', {
478
-                params: params
479
-              })
480
-                .then(function(response) {
481
-                  if (response.data.state == 0) {
482
-                    that.$message.error(response.data.msg)
483
-                    return false
484
-                  } else {
485
-                    if (response.data.data.failed_code == -10) {
486
-                      that.$confirm(response.data.data.msg, '医保错误信息', {
487
-                        confirmButtonText: '确 定',
488
-                        type: 'warning'
489
-                      }).then(() => {
490
-
491
-                      }).catch(() => {
492
-                      })
493
-
494
-                    } else {
495
-                      that.$message({ message: '退费成功', type: 'success', duration: 5000 })
496
-                      that.getHisOrderList()
497
-                    }
498
-                  }
499
-                })
500
-                .catch(function(error) {
501
-                })
502
-
503
-            }).catch(() => {
360
+          var that = this
361
+          this.$confirm('是否退费', '退费', {
362
+            confirmButtonText: '确 定',
363
+            cancelButtonText: '取 消',
364
+            type: 'warning'
365
+          }).then(() => {
366
+            let params = {
367
+              'order_id': row.id,
368
+              'patient_id': row.patient_id,
369
+              'record_time': that.getTimes(row.settle_accounts_date),
370
+              'admin_user_id': that.$store.getters.xt_user.user.id
371
+            }
372
+            axios.get('http://127.0.0.1:9532/api/refund/post', {
373
+              params: params
504
             })
374
             })
505
-
506
-          } else {
507
-            this.$confirm('是否退费', '退费', {
508
-              confirmButtonText: '确 定',
509
-              cancelButtonText: '取 消',
510
-              type: 'warning'
511
-            }).then(() => {
512
-              let params = {
513
-                'order_id': row.id,
514
-                'patient_id':  row.patient_id,
515
-                'record_time':this.getTimes(row.settle_accounts_date),
516
-
517
-              }
518
-              Refund(params).then(response => {
375
+              .then(function(response) {
519
                 if (response.data.state == 0) {
376
                 if (response.data.state == 0) {
520
-                  this.$message.error(response.data.msg)
377
+                  that.$message.error(response.data.msg)
521
                   return false
378
                   return false
522
                 } else {
379
                 } else {
523
-                  this.$message({ message: '退费成功', type: 'success' })
524
-                  this.getHisOrderList()
380
+                  if (response.data.data.failed_code == -10) {
381
+                    // that.$message.error(response.data.data.msg)
382
+                    that.$confirm(response.data.data.msg, '医保错误信息', {
383
+                      confirmButtonText: '确 定',
384
+                      type: 'warning'
385
+                    }).then(() => {
386
+
387
+                    }).catch(() => {
388
+                    })
389
+                  } else {
390
+                    that.$message({ message: '退费成功', type: 'success', duration: 5000 })
391
+                    that.getHisOrderList()
392
+
393
+                  }
525
                 }
394
                 }
526
               })
395
               })
527
-            }).catch(() => {
528
-            })
529
-          }
396
+              .catch(function(error) {
397
+              })
398
+          }).catch(() => {
399
+          })
530
         }
400
         }
531
       }, toPrint(row) {
401
       }, toPrint(row) {
532
-        if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 10138) {
533
-          if (row.mdtrt_id.indexOf('H') > -1) {
534
-            this.statementVisible9504 = true
535
-            let obj = {
536
-              order_id: row.id,
537
-              patient_id: row.patient_id,
538
-              record_time: this.getTimes(row.settle_accounts_date),
539
-              admin_user_id: this.$store.getters.xt_user.user.id
540
-            }
541
-            this.orderObj9504 = obj
542
-          } else {
543
-
544
-            this.statementVisible9504 = true
545
-            let obj = {
546
-              order_id: row.id,
547
-              patient_id: row.patient_id,
548
-              record_time: this.getTimes(row.settle_accounts_date),
549
-              admin_user_id: this.$store.getters.xt_user.user.id,
550
-              balance_accounts_type: 2
551
-            }
552
-            this.orderObj9504 = obj
553
-          }
554
-
555
-        } else {
556
-          this.statementVisible = true
557
-          let obj = {
558
-            order_id: row.id,
559
-            settle_type: row.settle_type,
560
-            start_time: row.settle_start_time,
561
-            end_time: row.settle_end_time
562
-          }
563
-          this.orderObj = obj
402
+        // if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 10138) {
403
+        //   if (row.mdtrt_id.indexOf('H') > -1) {
404
+        //     this.statementVisible9504 = true
405
+        //     let obj = {
406
+        //       order_id: row.id,
407
+        //       patient_id: row.patient_id,
408
+        //       record_time: this.getTimes(row.settle_accounts_date),
409
+        //       admin_user_id: this.$store.getters.xt_user.user.id
410
+        //     }
411
+        //     this.orderObj9504 = obj
412
+        //   } else {
413
+        //
414
+        //     this.statementVisible9504 = true
415
+        //     let obj = {
416
+        //       order_id: row.id,
417
+        //       patient_id: row.patient_id,
418
+        //       record_time: this.getTimes(row.settle_accounts_date),
419
+        //       admin_user_id: this.$store.getters.xt_user.user.id,
420
+        //       balance_accounts_type: 2
421
+        //     }
422
+        //     this.orderObj9504 = obj
423
+        //   }
424
+        //
425
+        // } else {
426
+        this.statementVisible = true
427
+        let obj = {
428
+          order_id: row.id,
429
+          settle_type: row.settle_type,
430
+          start_time: row.settle_start_time,
431
+          end_time: row.settle_end_time
564
         }
432
         }
433
+        this.orderObj = obj
565
 
434
 
566
       },
435
       },
567
       settlementPrint(row) {
436
       settlementPrint(row) {
819
         let paramsObj = {
688
         let paramsObj = {
820
           order_id: obj.id,
689
           order_id: obj.id,
821
           patient_id: obj.patient_id,
690
           patient_id: obj.patient_id,
822
-          number:obj.mdtrt_id,
691
+          number: obj.mdtrt_id,
823
           name: obj.patient.name,
692
           name: obj.patient.name,
824
           age: obj.age,
693
           age: obj.age,
825
           gend: obj.gend,
694
           gend: obj.gend,
828
         this.invoiceParams = paramsObj
697
         this.invoiceParams = paramsObj
829
         this.invoiceVisible = true
698
         this.invoiceVisible = true
830
       }
699
       }
831
-    }, created() {
700
+    }
701
+    ,
702
+    created() {
832
 
703
 
833
       this.fetchAllAdminUsers()
704
       this.fetchAllAdminUsers()
834
       this.getDoctorList()
705
       this.getDoctorList()

+ 11 - 10
src/xt_pages/outpatientDoctorStation/components/callPrescription.vue Parādīt failu

253
                 single_dose: prescription.doctor_advice[b].single_dose,
253
                 single_dose: prescription.doctor_advice[b].single_dose,
254
                 delivery_way: prescription.doctor_advice[b].delivery_way,
254
                 delivery_way: prescription.doctor_advice[b].delivery_way,
255
                 execution_frequency: prescription.doctor_advice[b].execution_frequency,
255
                 execution_frequency: prescription.doctor_advice[b].execution_frequency,
256
-                retail_price: prescription.doctor_advice[b].price.toString(),
256
+                // retail_price: prescription.doctor_advice[b].price.toString(),
257
                 remark: prescription.doctor_advice[b].remark,
257
                 remark: prescription.doctor_advice[b].remark,
258
                 day:prescription.doctor_advice[b].day,
258
                 day:prescription.doctor_advice[b].day,
259
                 prescribing_number:prescription.doctor_advice[b].prescribing_number.toString(),
259
                 prescribing_number:prescription.doctor_advice[b].prescribing_number.toString(),
262
                 medical_insurance_number:prescription.doctor_advice[b].med_list_codg,
262
                 medical_insurance_number:prescription.doctor_advice[b].med_list_codg,
263
                 id:prescription.doctor_advice[b].drug_id,
263
                 id:prescription.doctor_advice[b].drug_id,
264
                 drug:prescription.doctor_advice[b].drug,
264
                 drug:prescription.doctor_advice[b].drug,
265
-
266
               };
265
               };
266
+              if (obj.prescribing_number_unit == prescription.doctor_advice[b].drug.min_unit){
267
+                obj['retail_price'] =  prescription.doctor_advice[b].drug.min_price
268
+              } else if(obj.prescribing_number_unit == prescription.doctor_advice[b].drug.max_unit){
269
+                obj['retail_price'] =  prescription.doctor_advice[b].drug.retail_price
270
+              } else {
271
+                obj['retail_price'] =  prescription.doctor_advice[b].drug.min_price
272
+              }
273
+
267
               tempAdvice.push(obj)
274
               tempAdvice.push(obj)
268
 
275
 
269
             }
276
             }
281
                 execution_frequency: prescription.project[b].execution_frequency,
288
                 execution_frequency: prescription.project[b].execution_frequency,
282
                 number_days: prescription.project[b].day,
289
                 number_days: prescription.project[b].day,
283
                 total:prescription.project[b].count,
290
                 total:prescription.project[b].count,
284
-                price:prescription.project[b].price,
285
                 remark:prescription.project[b].remark,
291
                 remark:prescription.project[b].remark,
286
                 unit: prescription.project[b].unit,
292
                 unit: prescription.project[b].unit,
287
                 type: prescription.project[b].type
293
                 type: prescription.project[b].type
288
-
289
                 // medical_code:prescription.project[b].project.medical_code,
294
                 // medical_code:prescription.project[b].project.medical_code,
290
               };
295
               };
291
-              console.log(prescription.project[b].type)
292
               if(prescription.project[b].type == 2){
296
               if(prescription.project[b].type == 2){
293
-                console.log("pre")
294
-
295
                 obj['statistical_classification'] =  prescription.project[b].project.statistical_classification
297
                 obj['statistical_classification'] =  prescription.project[b].project.statistical_classification
296
                 obj['medical_code'] =  prescription.project[b].project.medical_code
298
                 obj['medical_code'] =  prescription.project[b].project.medical_code
297
                 obj['project_name'] =  prescription.project[b].project.project_name
299
                 obj['project_name'] =  prescription.project[b].project.project_name
298
-
300
+                obj['price'] = prescription.project[b].project.price
299
               }else if(prescription.project[b].type == 3){
301
               }else if(prescription.project[b].type == 3){
300
-                console.log("pre2")
301
-
302
                 obj['statistical_classification'] = ""
302
                 obj['statistical_classification'] = ""
303
                 obj['medical_code'] =  prescription.project[b].good_info.medical_insurance_number
303
                 obj['medical_code'] =  prescription.project[b].good_info.medical_insurance_number
304
                 obj['project_name'] =  prescription.project[b].good_info.good_name
304
                 obj['project_name'] =  prescription.project[b].good_info.good_name
305
+                obj['price'] = prescription.project[b].good_info.packing_price
305
               }
306
               }
306
 
307
 
307
               tempProject.push(obj)
308
               tempProject.push(obj)

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

48
 
48
 
49
                     <el-form-item label="诊断:" prop="name" label-position="right" style="width:66.6%;">
49
                     <el-form-item label="诊断:" prop="name" label-position="right" style="width:66.6%;">
50
 
50
 
51
-                        <el-select style="width:100%;" v-model="diagnose" placeholder="" multiple>
51
+                        <el-select style="width:100%;"  v-model="diagnose" placeholder="" multiple filterable>
52
                             <el-option
52
                             <el-option
53
                                     v-for="(item,index) in diagnoses"
53
                                     v-for="(item,index) in diagnoses"
54
                                     :key="index"
54
                                     :key="index"
127
                                         placeholder="选择日期">
127
                                         placeholder="选择日期">
128
                                 </el-date-picker>
128
                                 </el-date-picker>
129
 
129
 
130
-                                <el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"  v-if="($store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10138)" @change="changevalue" >
131
-                                    <el-option
132
-                                            v-for="(item,index) in medical_care"
133
-                                            :key="index"
134
-                                            :label="item.label"
135
-                                            :value="item.value">
136
-                                    </el-option>
137
-                                </el-select>
138
-                                <el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"  v-else @change="changevalue" >
130
+
131
+                                <el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"   @change="changevalue" >
139
                                     <el-option
132
                                     <el-option
140
                                             v-for="(item,index) in register"
133
                                             v-for="(item,index) in register"
141
                                             :key="index"
134
                                             :key="index"
1305
             (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (hours < 10 ? '0' + hours : hours) +
1298
             (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (hours < 10 ? '0' + hours : hours) +
1306
             ':' + (min < 10 ? '0' + min : min)
1299
             ':' + (min < 10 ? '0' + min : min)
1307
           this.prescriptions[i]['pre_time'] = nowTime
1300
           this.prescriptions[i]['pre_time'] = nowTime
1308
-          if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
1309
 
1301
 
1310
-            this.prescriptions[i]['med_type'] = 13
1311
-          }else{
1312
             this.prescriptions[i]['med_type'] = 14
1302
             this.prescriptions[i]['med_type'] = 14
1313
-          }
1303
+
1314
 
1304
 
1315
           this.prescriptions[i].name = '处方' + (i + 1)
1305
           this.prescriptions[i].name = '处方' + (i + 1)
1316
           if (i == 0) {
1306
           if (i == 0) {
1370
           this.prescriptions[i]['pre_time'] = nowTime
1360
           this.prescriptions[i]['pre_time'] = nowTime
1371
 
1361
 
1372
 
1362
 
1373
-          if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
1374
 
1363
 
1375
-            this.prescriptions[i]['med_type'] = 13
1376
-          }else{
1377
             this.prescriptions[i]['med_type'] = 14
1364
             this.prescriptions[i]['med_type'] = 14
1378
-          }
1365
+
1379
 
1366
 
1380
           if (i == 0) {
1367
           if (i == 0) {
1381
             if (this.prescriptions[0].advices.length > 0 && this.prescriptions[0].project.length == 0) {
1368
             if (this.prescriptions[0].advices.length > 0 && this.prescriptions[0].project.length == 0) {
1911
         }
1898
         }
1912
 
1899
 
1913
 
1900
 
1901
+        if (this.curPrescriptions.project.length == 0 && this.curPrescriptions.advices.length == 0) {
1902
+          this.curStatus = 1
1903
+          this.customTabIndex = 1
1904
+          this.rightTab = 1
1905
+          this.showOne = true
1906
+          this.showTwo = false
1907
+        }
1908
+
1909
+
1910
+
1914
 
1911
 
1915
         if (info.prescription_status == 0) {
1912
         if (info.prescription_status == 0) {
1916
           this.order_status = ''
1913
           this.order_status = ''
2313
 
2310
 
2314
 
2311
 
2315
         }
2312
         }
2316
-        if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
2317
-          obj.med_type = 13
2318
-        }else{
2313
+
2319
           obj.med_type = 14
2314
           obj.med_type = 14
2320
 
2315
 
2321
-        }
2316
+
2322
         this.prescriptions.push(obj)
2317
         this.prescriptions.push(obj)
2323
 
2318
 
2324
 
2319
 
2539
       },
2534
       },
2540
 
2535
 
2541
       comfirm() {
2536
       comfirm() {
2537
+        console.log(this.curPrescriptions.advices)
2538
+        console.log(this.curPrescriptions.project)
2539
+        console.log(this.curPrescriptions.advices.length)
2540
+        console.log(this.curPrescriptions.project.length)
2541
+
2542
+        if(this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0){
2543
+          if(this.$store.getters.xt_user.org_id == 10138) {
2544
+            for (let i = 0; i < this.curDrugs.length; i++) {
2545
+              if (this.curPrescriptions.med_type == 13 && this.curDrugs[i].is_special_diseases != 1) {
2546
+                this.$message.error('该处方属于特病类型处方,开非特病类型的药')
2547
+                return
2548
+              }
2549
+
2550
+            }
2551
+          }
2552
+        }
2553
+
2554
+
2555
+        if(this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0){
2556
+          if(this.$store.getters.xt_user.org_id == 10138) {
2557
+            for (let i = 0; i < this.curDrugs.length; i++) {
2558
+              if (this.curPrescriptions.med_type == 13 && this.curDrugs[i].is_special_diseases != 1) {
2559
+                this.$message.error('该处方属于特病类型处方,开非特病类型的药')
2560
+                return
2561
+              }
2562
+
2563
+            }
2564
+          }
2565
+        }
2566
+
2542
 
2567
 
2543
-        // if(this.curStatus == 1  && this.rightTab == 2){
2544
-        //   for(let i = 0; i < this.curDrugs.length; i++){
2545
-        //     if(this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138 || this.$store.getters.xt_user.org_id == 10028){
2546
-        //
2547
-        //       if(this.curPrescriptions.med_type != 13 && this.curDrugs[i].drug.is_special_diseases == 1){
2548
-        //         this.$message.error('该处方不属于特病类型处方,无法开特病类型的药')
2549
-        //         return
2550
-        //       }
2551
-        //
2552
-        //       if(this.curPrescriptions.med_type == 13 && this.curDrugs[i].drug.is_special_diseases != 1){
2553
-        //         this.$message.error('该处方属于特病类型处方,开非特病类型的药')
2554
-        //         return
2555
-        //       }
2556
-        //
2557
-        //
2558
-        //     }else{
2559
-        //
2560
-        //       if(this.curPrescriptions.med_type != 14 && this.curDrugs[i].drug.is_special_diseases == 1){
2561
-        //         this.$message.error('该处方不属于特病类型处方,无法开特病类型的药')
2562
-        //         return
2563
-        //       }
2564
-        //
2565
-        //       if(this.curPrescriptions.med_type == 14 && this.curDrugs[i].drug.is_special_diseases != 1){
2566
-        //         this.$message.error('该处方属于特病类型处方,开非特病类型的药')
2567
-        //         return
2568
-        //       }
2569
-        //
2570
-        //
2571
-        //
2572
-        //     }
2573
-        //
2574
-        //   }
2575
-        // }
2576
 
2568
 
2577
         // if (this.curPrescriptions.order_status == 2) {
2569
         // if (this.curPrescriptions.order_status == 2) {
2578
         //   this.$message.error('该处方已经结算,无法继续添加药品或者项目')
2570
         //   this.$message.error('该处方已经结算,无法继续添加药品或者项目')

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

310
                 single_dose: prescription.doctor_advice[b].single_dose,
310
                 single_dose: prescription.doctor_advice[b].single_dose,
311
                 delivery_way: prescription.doctor_advice[b].delivery_way,
311
                 delivery_way: prescription.doctor_advice[b].delivery_way,
312
                 execution_frequency: prescription.doctor_advice[b].execution_frequency,
312
                 execution_frequency: prescription.doctor_advice[b].execution_frequency,
313
-                retail_price: prescription.doctor_advice[b].price.toString(),
313
+                // retail_price: prescription.doctor_advice[b].price.toString(),
314
                 remark: prescription.doctor_advice[b].remark,
314
                 remark: prescription.doctor_advice[b].remark,
315
                 day:prescription.doctor_advice[b].day,
315
                 day:prescription.doctor_advice[b].day,
316
                 prescribing_number:prescription.doctor_advice[b].prescribing_number.toString(),
316
                 prescribing_number:prescription.doctor_advice[b].prescribing_number.toString(),
320
                 id:prescription.doctor_advice[b].drug_id,
320
                 id:prescription.doctor_advice[b].drug_id,
321
                 drug:prescription.doctor_advice[b].drug,
321
                 drug:prescription.doctor_advice[b].drug,
322
               };
322
               };
323
+
324
+              if (obj.prescribing_number_unit == prescription.doctor_advice[b].drug.min_unit){
325
+                obj['retail_price'] =  prescription.doctor_advice[b].drug.min_price
326
+              } else if(obj.prescribing_number_unit == prescription.doctor_advice[b].drug.max_unit){
327
+                obj['retail_price'] =  prescription.doctor_advice[b].drug.retail_price
328
+              } else {
329
+                obj['retail_price'] =  prescription.doctor_advice[b].drug.min_price
330
+              }
323
               tempAdvice.push(obj)
331
               tempAdvice.push(obj)
324
 
332
 
325
             }
333
             }
336
                 execution_frequency: prescription.project[b].execution_frequency,
344
                 execution_frequency: prescription.project[b].execution_frequency,
337
                 number_days: prescription.project[b].day,
345
                 number_days: prescription.project[b].day,
338
                 total:prescription.project[b].count.toString(),
346
                 total:prescription.project[b].count.toString(),
339
-                price:prescription.project[b].price,
347
+                // price:prescription.project[b].price,
340
                 remark:prescription.project[b].remark,
348
                 remark:prescription.project[b].remark,
341
                 unit: prescription.project[b].unit,
349
                 unit: prescription.project[b].unit,
342
                 type: prescription.project[b].type
350
                 type: prescription.project[b].type
348
                 obj['statistical_classification'] =  prescription.project[b].project.statistical_classification
356
                 obj['statistical_classification'] =  prescription.project[b].project.statistical_classification
349
                 obj['medical_code'] =  prescription.project[b].project.medical_code
357
                 obj['medical_code'] =  prescription.project[b].project.medical_code
350
                 obj['project_name'] =  prescription.project[b].project.project_name
358
                 obj['project_name'] =  prescription.project[b].project.project_name
351
-
359
+                obj['price'] = prescription.project[b].project.price
352
               }else if(prescription.project[b].type == 3){
360
               }else if(prescription.project[b].type == 3){
353
                 obj['statistical_classification'] = ""
361
                 obj['statistical_classification'] = ""
354
                 obj['medical_code'] =  prescription.project[b].good_info.medical_insurance_number
362
                 obj['medical_code'] =  prescription.project[b].good_info.medical_insurance_number
355
                 obj['project_name'] =  prescription.project[b].good_info.good_name
363
                 obj['project_name'] =  prescription.project[b].good_info.good_name
364
+                obj['price'] = prescription.project[b].good_info.packing_price
356
               }
365
               }
357
 
366
 
358
               tempProject.push(obj)
367
               tempProject.push(obj)

+ 208 - 96
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Parādīt failu

256
                       type="primary"
256
                       type="primary"
257
                       >打印</el-button
257
                       >打印</el-button
258
                     >
258
                     >
259
-                  </template>  
259
+                  </template>
260
                   <div id='printMain'>
260
                   <div id='printMain'>
261
                     <print ref="print" v-if="selecting_schs1.length > 0" :paramsObj='paramsObj'></print>
261
                     <print ref="print" v-if="selecting_schs1.length > 0" :paramsObj='paramsObj'></print>
262
                     <treatPrint ref="treatPrint" v-if="selecting_schs2.length > 0" :paramsObj='paramsObj2'></treatPrint>
262
                     <treatPrint ref="treatPrint" v-if="selecting_schs2.length > 0" :paramsObj='paramsObj2'></treatPrint>
263
                     <checkPrint ref="checkPrint" v-if="selecting_schs3.length > 0" :paramsObj='paramsObj3'></checkPrint>
263
                     <checkPrint ref="checkPrint" v-if="selecting_schs3.length > 0" :paramsObj='paramsObj3'></checkPrint>
264
                   </div>
264
                   </div>
265
-                
265
+
266
             </el-dialog>
266
             </el-dialog>
267
             <span slot="footer" class="dialog-footer">
267
             <span slot="footer" class="dialog-footer">
268
         <el-button @click="centerDialogVisible = false">取 消</el-button>
268
         <el-button @click="centerDialogVisible = false">取 消</el-button>
1457
                       single_dose: prescription.advices[b].single_dose,
1457
                       single_dose: prescription.advices[b].single_dose,
1458
                       delivery_way: prescription.advices[b].delivery_way,
1458
                       delivery_way: prescription.advices[b].delivery_way,
1459
                       execution_frequency: prescription.advices[b].execution_frequency,
1459
                       execution_frequency: prescription.advices[b].execution_frequency,
1460
-                      retail_price: prescription.advices[b].price.toString(),
1460
+                      // retail_price: prescription.advices[b].price.toString(),
1461
                       remark: prescription.advices[b].remark,
1461
                       remark: prescription.advices[b].remark,
1462
                       day: prescription.advices[b].day,
1462
                       day: prescription.advices[b].day,
1463
                       prescribing_number: prescription.advices[b].prescribing_number.toString(),
1463
                       prescribing_number: prescription.advices[b].prescribing_number.toString(),
1467
                       id: prescription.advices[b].drug_id,
1467
                       id: prescription.advices[b].drug_id,
1468
                       drug:prescription.advices[b].drug
1468
                       drug:prescription.advices[b].drug
1469
                     };
1469
                     };
1470
+
1471
+                    console.log("看看数据6:")
1472
+                    console.log(obj.prescribing_number_unit)
1473
+                    console.log(prescription.advices[b].drug.min_unit)
1474
+                    console.log(prescription.advices[b].drug.max_unit)
1475
+
1476
+
1477
+                    if (obj.prescribing_number_unit == prescription.advices[b].drug.min_unit){
1478
+                      obj['retail_price'] =  prescription.advices[b].drug.min_price
1479
+                      console.log("1")
1480
+
1481
+                      console.log(obj.retail_price)
1482
+
1483
+
1484
+                    } else if(obj.prescribing_number_unit == prescription.advices[b].drug.max_unit){
1485
+                      obj['retail_price'] =  prescription.advices[b].drug.retail_price
1486
+                      console.log("2")
1487
+
1488
+                      console.log(obj.retail_price)
1489
+
1490
+                    } else {
1491
+                      console.log("3")
1492
+                      obj['retail_price'] =  prescription.advices[b].drug.min_price
1493
+                      console.log(obj.retail_price)
1494
+
1495
+                    }
1470
                     tempAdvice.push(obj)
1496
                     tempAdvice.push(obj)
1471
                   }
1497
                   }
1472
 
1498
 
1482
                       execution_frequency: prescription.project[b].execution_frequency,
1508
                       execution_frequency: prescription.project[b].execution_frequency,
1483
                       number_days: prescription.project[b].day,
1509
                       number_days: prescription.project[b].day,
1484
                       total: prescription.project[b].count.toString(),
1510
                       total: prescription.project[b].count.toString(),
1485
-                      price: prescription.project[b].price,
1486
                       remark: prescription.project[b].remark,
1511
                       remark: prescription.project[b].remark,
1487
                       medical_code: prescription.project[b].project.medical_code,
1512
                       medical_code: prescription.project[b].project.medical_code,
1488
                       unit: prescription.project[b].project.unit,
1513
                       unit: prescription.project[b].project.unit,
1493
                       obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1518
                       obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1494
                       obj['medical_code'] = prescription.project[b].project.medical_code
1519
                       obj['medical_code'] = prescription.project[b].project.medical_code
1495
                       obj['project_name'] = prescription.project[b].project.project_name
1520
                       obj['project_name'] = prescription.project[b].project.project_name
1521
+                      obj['price'] = prescription.project[b].project.price
1522
+
1523
+
1496
 
1524
 
1497
                     } else if (prescription.project[b].type == 3) {
1525
                     } else if (prescription.project[b].type == 3) {
1498
                       obj['statistical_classification'] = ""
1526
                       obj['statistical_classification'] = ""
1499
                       obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1527
                       obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1500
                       obj['project_name'] = prescription.project[b].good_info.good_name
1528
                       obj['project_name'] = prescription.project[b].good_info.good_name
1529
+                      obj['price'] = prescription.project[b].good_info.packing_price
1530
+
1501
                     }
1531
                     }
1502
                     tempProject.push(obj)
1532
                     tempProject.push(obj)
1503
                   }
1533
                   }
1509
                   }else if(this.schedule.schedule_type == 3){
1539
                   }else if(this.schedule.schedule_type == 3){
1510
                     var preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "17:00"
1540
                     var preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "17:00"
1511
                   }
1541
                   }
1512
-                  
1542
+
1513
 
1543
 
1514
 
1544
 
1515
                   let index = i + 1;
1545
                   let index = i + 1;
1533
                     obj.med_type = parseInt(prescription.med_type)
1563
                     obj.med_type = parseInt(prescription.med_type)
1534
                   }
1564
                   }
1535
                   if(obj.med_type== 0 || obj.med_type == "") {
1565
                   if(obj.med_type== 0 || obj.med_type == "") {
1536
-                    if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
1537
-                      obj.med_type = 13
1538
-
1539
-                    } else {
1540
                       obj.med_type = 14
1566
                       obj.med_type = 14
1541
-
1542
-                    }
1543
                   }
1567
                   }
1544
                   this.prescriptions.push(obj)
1568
                   this.prescriptions.push(obj)
1545
                 }
1569
                 }
1556
                   med_type:"",
1580
                   med_type:"",
1557
 
1581
 
1558
                 };
1582
                 };
1559
-                if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
1560
-                  obj.med_type = 13
1561
-                }else{
1562
-                  obj.med_type = 14
1563
-
1564
-                }
1565
-
1583
+                obj.med_type = 14
1566
                 this.prescriptions.push(obj)
1584
                 this.prescriptions.push(obj)
1567
 
1585
 
1568
               }
1586
               }
1800
                             single_dose: prescription.advices[b].single_dose,
1818
                             single_dose: prescription.advices[b].single_dose,
1801
                             delivery_way: prescription.advices[b].delivery_way,
1819
                             delivery_way: prescription.advices[b].delivery_way,
1802
                             execution_frequency: prescription.advices[b].execution_frequency,
1820
                             execution_frequency: prescription.advices[b].execution_frequency,
1803
-                            retail_price: prescription.advices[b].price.toString(),
1821
+                            // retail_price: prescription.advices[b].price.toString(),
1804
                             remark: prescription.advices[b].remark,
1822
                             remark: prescription.advices[b].remark,
1805
                             day: prescription.advices[b].day,
1823
                             day: prescription.advices[b].day,
1806
                             prescribing_number: prescription.advices[b].prescribing_number.toString(),
1824
                             prescribing_number: prescription.advices[b].prescribing_number.toString(),
1809
                             medical_insurance_number: prescription.advices[b].med_list_codg,
1827
                             medical_insurance_number: prescription.advices[b].med_list_codg,
1810
                             id: prescription.advices[b].drug_id,
1828
                             id: prescription.advices[b].drug_id,
1811
                             drug:prescription.advices[b].drug
1829
                             drug:prescription.advices[b].drug
1812
-
1813
                           };
1830
                           };
1831
+                          console.log("看看数据1:")
1832
+                          console.log(obj.prescribing_number_unit)
1833
+                          console.log(prescription.advices[b].drug.min_unit)
1834
+                          console.log(prescription.advices[b].drug.max_unit)
1835
+
1836
+
1837
+
1838
+
1839
+                          if (obj.prescribing_number_unit == prescription.advices[b].drug.min_unit){
1840
+                            obj['retail_price'] =  prescription.advices[b].drug.min_price
1841
+                            console.log("1")
1842
+
1843
+                            console.log(obj.retail_price)
1844
+
1845
+
1846
+                          } else if(obj.prescribing_number_unit == prescription.advices[b].drug.max_unit){
1847
+                            obj['retail_price'] =  prescription.advices[b].drug.retail_price
1848
+                            console.log("2")
1849
+
1850
+                            console.log(obj.retail_price)
1851
+
1852
+                          } else {
1853
+                            console.log("3")
1854
+                            obj['retail_price'] =  prescription.advices[b].drug.min_price
1855
+                            console.log(obj.retail_price)
1856
+
1857
+                          }
1858
+
1814
                           tempAdvice.push(obj)
1859
                           tempAdvice.push(obj)
1815
                         }
1860
                         }
1816
 
1861
 
1826
                             execution_frequency: prescription.project[b].execution_frequency,
1871
                             execution_frequency: prescription.project[b].execution_frequency,
1827
                             number_days: prescription.project[b].day,
1872
                             number_days: prescription.project[b].day,
1828
                             total: prescription.project[b].count.toString(),
1873
                             total: prescription.project[b].count.toString(),
1829
-                            price: prescription.project[b].price,
1830
                             remark: prescription.project[b].remark,
1874
                             remark: prescription.project[b].remark,
1831
                             medical_code: prescription.project[b].project.medical_code,
1875
                             medical_code: prescription.project[b].project.medical_code,
1832
                             unit: prescription.project[b].project.unit,
1876
                             unit: prescription.project[b].project.unit,
1837
                             obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1881
                             obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1838
                             obj['medical_code'] = prescription.project[b].project.medical_code
1882
                             obj['medical_code'] = prescription.project[b].project.medical_code
1839
                             obj['project_name'] = prescription.project[b].project.project_name
1883
                             obj['project_name'] = prescription.project[b].project.project_name
1884
+                            obj['price'] = prescription.project[b].project.price
1885
+
1886
+
1840
 
1887
 
1841
                           } else if (prescription.project[b].type == 3) {
1888
                           } else if (prescription.project[b].type == 3) {
1842
                             obj['statistical_classification'] = ""
1889
                             obj['statistical_classification'] = ""
1843
                             obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1890
                             obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1844
                             obj['project_name'] = prescription.project[b].good_info.good_name
1891
                             obj['project_name'] = prescription.project[b].good_info.good_name
1892
+                            obj['price'] = prescription.project[b].good_info.packing_price
1893
+
1845
                           }
1894
                           }
1846
                           tempProject.push(obj)
1895
                           tempProject.push(obj)
1847
                         }
1896
                         }
1857
                           preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "17:00"
1906
                           preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "17:00"
1858
                         }
1907
                         }
1859
 
1908
 
1860
-
1861
-
1862
-
1863
                         let index = i + 1;
1909
                         let index = i + 1;
1864
                         let obj = {
1910
                         let obj = {
1865
                           id: 0,
1911
                           id: 0,
1878
 
1924
 
1879
                         }else{
1925
                         }else{
1880
 
1926
 
1881
-                          obj.med_type =  parseInt(prescription.med_type)
1927
+                          obj.med_type = parseInt(prescription.med_type)
1882
                         }
1928
                         }
1883
-
1884
-
1885
                         if(obj.med_type== 0 || obj.med_type == "") {
1929
                         if(obj.med_type== 0 || obj.med_type == "") {
1886
-                          if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
1887
-                            obj.med_type = 13
1888
 
1930
 
1889
-                          } else {
1890
                             obj.med_type = 14
1931
                             obj.med_type = 14
1891
 
1932
 
1892
-                          }
1933
+
1893
                         }
1934
                         }
1894
                         this.prescriptions.push(obj)
1935
                         this.prescriptions.push(obj)
1895
                       }
1936
                       }
1906
                         med_type:"",
1947
                         med_type:"",
1907
 
1948
 
1908
                       };
1949
                       };
1909
-                      if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
1910
-                        obj.med_type = 13
1911
-                      }else{
1950
+
1912
                         obj.med_type = 14
1951
                         obj.med_type = 14
1913
 
1952
 
1914
-                      }
1915
                       this.prescriptions.push(obj)
1953
                       this.prescriptions.push(obj)
1916
 
1954
 
1917
 
1955
 
2234
                             single_dose: prescription.advices[b].single_dose,
2272
                             single_dose: prescription.advices[b].single_dose,
2235
                             delivery_way: prescription.advices[b].delivery_way,
2273
                             delivery_way: prescription.advices[b].delivery_way,
2236
                             execution_frequency: prescription.advices[b].execution_frequency,
2274
                             execution_frequency: prescription.advices[b].execution_frequency,
2237
-                            retail_price: prescription.advices[b].price.toString(),
2275
+                            // retail_price: prescription.advices[b].price.toString(),
2238
                             remark: prescription.advices[b].remark,
2276
                             remark: prescription.advices[b].remark,
2239
                             day: prescription.advices[b].day,
2277
                             day: prescription.advices[b].day,
2240
                             prescribing_number: prescription.advices[b].prescribing_number.toString(),
2278
                             prescribing_number: prescription.advices[b].prescribing_number.toString(),
2243
                             medical_insurance_number: prescription.advices[b].med_list_codg,
2281
                             medical_insurance_number: prescription.advices[b].med_list_codg,
2244
                             id: prescription.advices[b].drug_id,
2282
                             id: prescription.advices[b].drug_id,
2245
                             drug:prescription.advices[b].drug
2283
                             drug:prescription.advices[b].drug
2246
-
2247
                           };
2284
                           };
2285
+                          console.log("看看数据2:")
2286
+                          console.log(obj.prescribing_number_unit)
2287
+                          console.log(prescription.advices[b].drug.min_unit)
2288
+                          console.log(prescription.advices[b].drug.max_unit)
2289
+                          if (obj.prescribing_number_unit == prescription.advices[b].drug.min_unit){
2290
+                            obj['retail_price'] =  prescription.advices[b].drug.min_price
2291
+                            console.log("1")
2292
+
2293
+                            console.log(obj.retail_price)
2294
+
2295
+
2296
+                          } else if(obj.prescribing_number_unit == prescription.advices[b].drug.max_unit){
2297
+                            obj['retail_price'] =  prescription.advices[b].drug.retail_price
2298
+                            console.log("2")
2299
+
2300
+                            console.log(obj.retail_price)
2301
+
2302
+                          } else {
2303
+                            console.log("3")
2304
+                            obj['retail_price'] =  prescription.advices[b].drug.min_price
2305
+                            console.log(obj.retail_price)
2306
+
2307
+                          }
2248
                           tempAdvice.push(obj)
2308
                           tempAdvice.push(obj)
2249
                         }
2309
                         }
2250
 
2310
 
2260
                             execution_frequency: prescription.project[b].execution_frequency,
2320
                             execution_frequency: prescription.project[b].execution_frequency,
2261
                             number_days: prescription.project[b].day,
2321
                             number_days: prescription.project[b].day,
2262
                             total: prescription.project[b].count.toString(),
2322
                             total: prescription.project[b].count.toString(),
2263
-                            price: prescription.project[b].price,
2264
                             remark: prescription.project[b].remark,
2323
                             remark: prescription.project[b].remark,
2265
                             medical_code: prescription.project[b].project.medical_code,
2324
                             medical_code: prescription.project[b].project.medical_code,
2266
                             unit: prescription.project[b].project.unit,
2325
                             unit: prescription.project[b].project.unit,
2271
                             obj['statistical_classification'] = prescription.project[b].project.statistical_classification
2330
                             obj['statistical_classification'] = prescription.project[b].project.statistical_classification
2272
                             obj['medical_code'] = prescription.project[b].project.medical_code
2331
                             obj['medical_code'] = prescription.project[b].project.medical_code
2273
                             obj['project_name'] = prescription.project[b].project.project_name
2332
                             obj['project_name'] = prescription.project[b].project.project_name
2333
+                            obj['price'] = prescription.project[b].project.price
2334
+
2335
+
2274
 
2336
 
2275
                           } else if (prescription.project[b].type == 3) {
2337
                           } else if (prescription.project[b].type == 3) {
2276
                             obj['statistical_classification'] = ""
2338
                             obj['statistical_classification'] = ""
2277
                             obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
2339
                             obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
2278
                             obj['project_name'] = prescription.project[b].good_info.good_name
2340
                             obj['project_name'] = prescription.project[b].good_info.good_name
2341
+                            obj['price'] = prescription.project[b].good_info.packing_price
2342
+
2279
                           }
2343
                           }
2280
                           tempProject.push(obj)
2344
                           tempProject.push(obj)
2281
                         }
2345
                         }
2283
 
2347
 
2284
                         var preTime = nowTime
2348
                         var preTime = nowTime
2285
 
2349
 
2350
+
2286
                         let index = i + 1;
2351
                         let index = i + 1;
2287
                         let obj = {
2352
                         let obj = {
2288
                           id: 0,
2353
                           id: 0,
2301
 
2366
 
2302
                         }else{
2367
                         }else{
2303
 
2368
 
2304
-                          obj.med_type =  parseInt(prescription.med_type)
2369
+                          obj.med_type = parseInt(prescription.med_type)
2305
                         }
2370
                         }
2306
-
2307
-
2308
                         if(obj.med_type== 0 || obj.med_type == "") {
2371
                         if(obj.med_type== 0 || obj.med_type == "") {
2309
-                          if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
2310
-                            obj.med_type = 13
2311
-
2312
-                          } else {
2313
                             obj.med_type = 14
2372
                             obj.med_type = 14
2314
-
2315
-                          }
2316
                         }
2373
                         }
2317
                         this.prescriptions.push(obj)
2374
                         this.prescriptions.push(obj)
2318
                       }
2375
                       }
2329
                         med_type: "",
2386
                         med_type: "",
2330
 
2387
 
2331
                       };
2388
                       };
2332
-                      if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
2333
-                        obj.med_type = 13
2334
-                      }else{
2389
+
2335
                         obj.med_type = 14
2390
                         obj.med_type = 14
2336
 
2391
 
2337
-                      }
2338
                       this.prescriptions.push(obj)
2392
                       this.prescriptions.push(obj)
2339
 
2393
 
2340
                       // if(response.data.data.count <= 1 ){
2394
                       // if(response.data.data.count <= 1 ){
2656
                             single_dose: prescription.advices[b].single_dose,
2710
                             single_dose: prescription.advices[b].single_dose,
2657
                             delivery_way: prescription.advices[b].delivery_way,
2711
                             delivery_way: prescription.advices[b].delivery_way,
2658
                             execution_frequency: prescription.advices[b].execution_frequency,
2712
                             execution_frequency: prescription.advices[b].execution_frequency,
2659
-                            retail_price: prescription.advices[b].price.toString(),
2713
+                            // retail_price: prescription.advices[b].price.toString(),
2660
                             remark: prescription.advices[b].remark,
2714
                             remark: prescription.advices[b].remark,
2661
                             day: prescription.advices[b].day,
2715
                             day: prescription.advices[b].day,
2662
                             prescribing_number: prescription.advices[b].prescribing_number.toString(),
2716
                             prescribing_number: prescription.advices[b].prescribing_number.toString(),
2665
                             medical_insurance_number: prescription.advices[b].med_list_codg,
2719
                             medical_insurance_number: prescription.advices[b].med_list_codg,
2666
                             id: prescription.advices[b].drug_id,
2720
                             id: prescription.advices[b].drug_id,
2667
                             drug:prescription.advices[b].drug
2721
                             drug:prescription.advices[b].drug
2668
-
2669
                           };
2722
                           };
2723
+                          console.log("看看数据3:")
2724
+                          console.log(obj.prescribing_number_unit)
2725
+                          console.log(prescription.advices[b].drug.min_unit)
2726
+                          console.log(prescription.advices[b].drug.max_unit)
2727
+                          if (obj.prescribing_number_unit == prescription.advices[b].drug.min_unit){
2728
+                            obj['retail_price'] =  prescription.advices[b].drug.min_price
2729
+                            console.log("1")
2730
+
2731
+                            console.log(obj.retail_price)
2732
+
2733
+
2734
+                          } else if(obj.prescribing_number_unit == prescription.advices[b].drug.max_unit){
2735
+                            obj['retail_price'] =  prescription.advices[b].drug.retail_price
2736
+                            console.log("2")
2737
+
2738
+                            console.log(obj.retail_price)
2739
+
2740
+                          } else {
2741
+                            console.log("3")
2742
+                            obj['retail_price'] =  prescription.advices[b].drug.min_price
2743
+                            console.log(obj.retail_price)
2744
+
2745
+                          }
2670
                           tempAdvice.push(obj)
2746
                           tempAdvice.push(obj)
2671
                         }
2747
                         }
2672
 
2748
 
2682
                             execution_frequency: prescription.project[b].execution_frequency,
2758
                             execution_frequency: prescription.project[b].execution_frequency,
2683
                             number_days: prescription.project[b].day,
2759
                             number_days: prescription.project[b].day,
2684
                             total: prescription.project[b].count.toString(),
2760
                             total: prescription.project[b].count.toString(),
2685
-                            price: prescription.project[b].price,
2686
                             remark: prescription.project[b].remark,
2761
                             remark: prescription.project[b].remark,
2687
                             medical_code: prescription.project[b].project.medical_code,
2762
                             medical_code: prescription.project[b].project.medical_code,
2688
                             unit: prescription.project[b].project.unit,
2763
                             unit: prescription.project[b].project.unit,
2693
                             obj['statistical_classification'] = prescription.project[b].project.statistical_classification
2768
                             obj['statistical_classification'] = prescription.project[b].project.statistical_classification
2694
                             obj['medical_code'] = prescription.project[b].project.medical_code
2769
                             obj['medical_code'] = prescription.project[b].project.medical_code
2695
                             obj['project_name'] = prescription.project[b].project.project_name
2770
                             obj['project_name'] = prescription.project[b].project.project_name
2771
+                            obj['price'] = prescription.project[b].project.price
2772
+
2773
+
2696
 
2774
 
2697
                           } else if (prescription.project[b].type == 3) {
2775
                           } else if (prescription.project[b].type == 3) {
2698
                             obj['statistical_classification'] = ""
2776
                             obj['statistical_classification'] = ""
2699
                             obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
2777
                             obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
2700
                             obj['project_name'] = prescription.project[b].good_info.good_name
2778
                             obj['project_name'] = prescription.project[b].good_info.good_name
2779
+                            obj['price'] = prescription.project[b].good_info.packing_price
2780
+
2701
                           }
2781
                           }
2702
                           tempProject.push(obj)
2782
                           tempProject.push(obj)
2703
                         }
2783
                         }
2727
                           obj.med_type = parseInt(prescription.med_type)
2807
                           obj.med_type = parseInt(prescription.med_type)
2728
                         }
2808
                         }
2729
                         if(obj.med_type== 0 || obj.med_type == "") {
2809
                         if(obj.med_type== 0 || obj.med_type == "") {
2730
-                          if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
2731
-                            obj.med_type = 13
2732
-
2733
-                          } else {
2734
                             obj.med_type = 14
2810
                             obj.med_type = 14
2735
 
2811
 
2736
-                          }
2737
                         }
2812
                         }
2738
                         this.prescriptions.push(obj)
2813
                         this.prescriptions.push(obj)
2739
                       }
2814
                       }
2750
                         med_type: "",
2825
                         med_type: "",
2751
 
2826
 
2752
                       };
2827
                       };
2753
-                      if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
2754
-                        obj.med_type = 13
2755
-                      }else{
2828
+
2756
                         obj.med_type = 14
2829
                         obj.med_type = 14
2757
 
2830
 
2758
-                      }
2831
+
2759
                       this.prescriptions.push(obj)
2832
                       this.prescriptions.push(obj)
2760
 
2833
 
2761
                       // if(response.data.data.count <= 1 ){
2834
                       // if(response.data.data.count <= 1 ){
3140
                           single_dose: prescription.advices[b].single_dose,
3213
                           single_dose: prescription.advices[b].single_dose,
3141
                           delivery_way: prescription.advices[b].delivery_way,
3214
                           delivery_way: prescription.advices[b].delivery_way,
3142
                           execution_frequency: prescription.advices[b].execution_frequency,
3215
                           execution_frequency: prescription.advices[b].execution_frequency,
3143
-                          retail_price: prescription.advices[b].price.toString(),
3216
+                          // retail_price: prescription.advices[b].price.toString(),
3144
                           remark: prescription.advices[b].remark,
3217
                           remark: prescription.advices[b].remark,
3145
                           day: prescription.advices[b].day,
3218
                           day: prescription.advices[b].day,
3146
                           prescribing_number: prescription.advices[b].prescribing_number.toString(),
3219
                           prescribing_number: prescription.advices[b].prescribing_number.toString(),
3149
                           medical_insurance_number: prescription.advices[b].med_list_codg,
3222
                           medical_insurance_number: prescription.advices[b].med_list_codg,
3150
                           id: prescription.advices[b].drug_id,
3223
                           id: prescription.advices[b].drug_id,
3151
                           drug:prescription.advices[b].drug
3224
                           drug:prescription.advices[b].drug
3152
-
3153
                         };
3225
                         };
3226
+                        console.log("看看数据4:")
3227
+                        console.log(obj.prescribing_number_unit)
3228
+                        console.log(prescription.advices[b].drug.min_unit)
3229
+                        console.log(prescription.advices[b].drug.max_unit)
3230
+                        if (obj.prescribing_number_unit == prescription.advices[b].drug.min_unit){
3231
+                          obj['retail_price'] =  prescription.advices[b].drug.min_price
3232
+                          console.log("1")
3233
+
3234
+                          console.log(obj.retail_price)
3235
+
3236
+
3237
+                        } else if(obj.prescribing_number_unit == prescription.advices[b].drug.max_unit){
3238
+                          obj['retail_price'] =  prescription.advices[b].drug.retail_price
3239
+                          console.log("2")
3240
+
3241
+                          console.log(obj.retail_price)
3242
+
3243
+                        } else {
3244
+                          console.log("3")
3245
+                          obj['retail_price'] =  prescription.advices[b].drug.min_price
3246
+                          console.log(obj.retail_price)
3247
+
3248
+                        }
3154
                         tempAdvice.push(obj)
3249
                         tempAdvice.push(obj)
3155
                       }
3250
                       }
3156
 
3251
 
3166
                           execution_frequency: prescription.project[b].execution_frequency,
3261
                           execution_frequency: prescription.project[b].execution_frequency,
3167
                           number_days: prescription.project[b].day,
3262
                           number_days: prescription.project[b].day,
3168
                           total: prescription.project[b].count.toString(),
3263
                           total: prescription.project[b].count.toString(),
3169
-                          price: prescription.project[b].price,
3170
                           remark: prescription.project[b].remark,
3264
                           remark: prescription.project[b].remark,
3171
                           medical_code: prescription.project[b].project.medical_code,
3265
                           medical_code: prescription.project[b].project.medical_code,
3172
                           unit: prescription.project[b].project.unit,
3266
                           unit: prescription.project[b].project.unit,
3177
                           obj['statistical_classification'] = prescription.project[b].project.statistical_classification
3271
                           obj['statistical_classification'] = prescription.project[b].project.statistical_classification
3178
                           obj['medical_code'] = prescription.project[b].project.medical_code
3272
                           obj['medical_code'] = prescription.project[b].project.medical_code
3179
                           obj['project_name'] = prescription.project[b].project.project_name
3273
                           obj['project_name'] = prescription.project[b].project.project_name
3274
+                          obj['price'] = prescription.project[b].project.price
3275
+
3276
+
3180
 
3277
 
3181
                         } else if (prescription.project[b].type == 3) {
3278
                         } else if (prescription.project[b].type == 3) {
3182
                           obj['statistical_classification'] = ""
3279
                           obj['statistical_classification'] = ""
3183
                           obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
3280
                           obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
3184
                           obj['project_name'] = prescription.project[b].good_info.good_name
3281
                           obj['project_name'] = prescription.project[b].good_info.good_name
3282
+                          obj['price'] = prescription.project[b].good_info.packing_price
3283
+
3185
                         }
3284
                         }
3186
                         tempProject.push(obj)
3285
                         tempProject.push(obj)
3187
                       }
3286
                       }
3197
                         preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "17:00"
3296
                         preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + " " + "17:00"
3198
                       }
3297
                       }
3199
 
3298
 
3299
+
3200
                       let index = i + 1;
3300
                       let index = i + 1;
3201
                       let obj = {
3301
                       let obj = {
3202
                         id: 0,
3302
                         id: 0,
3218
                         obj.med_type = parseInt(prescription.med_type)
3318
                         obj.med_type = parseInt(prescription.med_type)
3219
                       }
3319
                       }
3220
                       if(obj.med_type== 0 || obj.med_type == "") {
3320
                       if(obj.med_type== 0 || obj.med_type == "") {
3221
-                        if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
3222
-                          obj.med_type = 13
3223
 
3321
 
3224
-                        } else {
3225
                           obj.med_type = 14
3322
                           obj.med_type = 14
3226
 
3323
 
3227
                         }
3324
                         }
3228
-                      }
3229
                       this.prescriptions.push(obj)
3325
                       this.prescriptions.push(obj)
3230
                     }
3326
                     }
3231
 
3327
 
3241
                       med_type: "",
3337
                       med_type: "",
3242
 
3338
 
3243
                     };
3339
                     };
3244
-                    if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
3245
-                      obj.med_type = 13
3246
-                    }else{
3340
+
3247
                       obj.med_type = 14
3341
                       obj.med_type = 14
3248
 
3342
 
3249
-                    }
3343
+
3250
                     this.prescriptions.push(obj)
3344
                     this.prescriptions.push(obj)
3251
 
3345
 
3252
                     // if(response.data.data.count <= 1 ){
3346
                     // if(response.data.data.count <= 1 ){
3530
                   }
3624
                   }
3531
 
3625
 
3532
                   var preTime = "";
3626
                   var preTime = "";
3533
-                  
3627
+
3534
 
3628
 
3535
                   if (prescription.pre_time == 0) {
3629
                   if (prescription.pre_time == 0) {
3536
                     // preTime = nowTime
3630
                     // preTime = nowTime
3576
                         single_dose: prescription.advices[b].single_dose,
3670
                         single_dose: prescription.advices[b].single_dose,
3577
                         delivery_way: prescription.advices[b].delivery_way,
3671
                         delivery_way: prescription.advices[b].delivery_way,
3578
                         execution_frequency: prescription.advices[b].execution_frequency,
3672
                         execution_frequency: prescription.advices[b].execution_frequency,
3579
-                        retail_price: prescription.advices[b].price.toString(),
3673
+                        // retail_price: prescription.advices[b].price.toString(),
3580
                         remark: prescription.advices[b].remark,
3674
                         remark: prescription.advices[b].remark,
3581
                         day: prescription.advices[b].day,
3675
                         day: prescription.advices[b].day,
3582
                         prescribing_number: prescription.advices[b].prescribing_number.toString(),
3676
                         prescribing_number: prescription.advices[b].prescribing_number.toString(),
3585
                         medical_insurance_number: prescription.advices[b].med_list_codg,
3679
                         medical_insurance_number: prescription.advices[b].med_list_codg,
3586
                         id: prescription.advices[b].drug_id,
3680
                         id: prescription.advices[b].drug_id,
3587
                         drug:prescription.advices[b].drug
3681
                         drug:prescription.advices[b].drug
3588
-
3589
                       };
3682
                       };
3683
+                      console.log("看看数据5:")
3684
+                      console.log(obj.prescribing_number_unit)
3685
+                      console.log(prescription.advices[b].drug.min_unit)
3686
+                      console.log(prescription.advices[b].drug.max_unit)
3687
+                      if (obj.prescribing_number_unit == prescription.advices[b].drug.min_unit){
3688
+                        obj['retail_price'] =  prescription.advices[b].drug.min_price
3689
+                        console.log("1")
3690
+
3691
+                        console.log(obj.retail_price)
3692
+
3693
+
3694
+                      } else if(obj.prescribing_number_unit == prescription.advices[b].drug.max_unit){
3695
+                        obj['retail_price'] =  prescription.advices[b].drug.retail_price
3696
+                        console.log("2")
3697
+
3698
+                        console.log(obj.retail_price)
3699
+
3700
+                      } else {
3701
+                        console.log("3")
3702
+                        obj['retail_price'] =  prescription.advices[b].drug.min_price
3703
+                        console.log(obj.retail_price)
3704
+
3705
+                      }
3590
                       tempAdvice.push(obj)
3706
                       tempAdvice.push(obj)
3591
                     }
3707
                     }
3592
 
3708
 
3602
                         execution_frequency: prescription.project[b].execution_frequency,
3718
                         execution_frequency: prescription.project[b].execution_frequency,
3603
                         number_days: prescription.project[b].day,
3719
                         number_days: prescription.project[b].day,
3604
                         total: prescription.project[b].count.toString(),
3720
                         total: prescription.project[b].count.toString(),
3605
-                        price: prescription.project[b].price,
3606
                         remark: prescription.project[b].remark,
3721
                         remark: prescription.project[b].remark,
3607
                         medical_code: prescription.project[b].project.medical_code,
3722
                         medical_code: prescription.project[b].project.medical_code,
3608
                         unit: prescription.project[b].project.unit,
3723
                         unit: prescription.project[b].project.unit,
3613
                         obj['statistical_classification'] = prescription.project[b].project.statistical_classification
3728
                         obj['statistical_classification'] = prescription.project[b].project.statistical_classification
3614
                         obj['medical_code'] = prescription.project[b].project.medical_code
3729
                         obj['medical_code'] = prescription.project[b].project.medical_code
3615
                         obj['project_name'] = prescription.project[b].project.project_name
3730
                         obj['project_name'] = prescription.project[b].project.project_name
3731
+                        obj['price'] = prescription.project[b].project.price
3732
+
3733
+
3616
 
3734
 
3617
                       } else if (prescription.project[b].type == 3) {
3735
                       } else if (prescription.project[b].type == 3) {
3618
                         obj['statistical_classification'] = ""
3736
                         obj['statistical_classification'] = ""
3619
                         obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
3737
                         obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
3620
                         obj['project_name'] = prescription.project[b].good_info.good_name
3738
                         obj['project_name'] = prescription.project[b].good_info.good_name
3739
+                        obj['price'] = prescription.project[b].good_info.packing_price
3740
+
3621
                       }
3741
                       }
3622
                       tempProject.push(obj)
3742
                       tempProject.push(obj)
3623
                     }
3743
                     }
3652
 
3772
 
3653
                     }else{
3773
                     }else{
3654
 
3774
 
3655
-                      obj.med_type =  parseInt(prescription.med_type)
3775
+                      obj.med_type = parseInt(prescription.med_type)
3656
                     }
3776
                     }
3657
                     if(obj.med_type== 0 || obj.med_type == "") {
3777
                     if(obj.med_type== 0 || obj.med_type == "") {
3658
-                      if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
3659
-                        obj.med_type = 13
3660
-
3661
-                      } else {
3662
                         obj.med_type = 14
3778
                         obj.med_type = 14
3663
 
3779
 
3664
-                      }
3665
                     }
3780
                     }
3666
                     this.prescriptions.push(obj)
3781
                     this.prescriptions.push(obj)
3667
                   }
3782
                   }
3679
 
3794
 
3680
 
3795
 
3681
                   };
3796
                   };
3682
-                  if(this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138){
3683
-                    obj.med_type = 13
3684
-                  }else{
3797
+
3685
                     obj.med_type = 14
3798
                     obj.med_type = 14
3686
 
3799
 
3687
-                  }
3688
                   this.prescriptions.push(obj)
3800
                   this.prescriptions.push(obj)
3689
 
3801
 
3690
                   // if(response.data.data.count <= 1 ){
3802
                   // if(response.data.data.count <= 1 ){
3932
               this.tableData2 = arr2
4044
               this.tableData2 = arr2
3933
               this.tableData4 = arr4
4045
               this.tableData4 = arr4
3934
               this.tableData3 = [arr3[0]]
4046
               this.tableData3 = [arr3[0]]
3935
-              
4047
+
3936
             }else{
4048
             }else{
3937
               var list = response.data.data.list
4049
               var list = response.data.data.list
3938
               let arr = []
4050
               let arr = []
3945
               }
4057
               }
3946
               console.log('arrrrrrrrrr',arr)
4058
               console.log('arrrrrrrrrr',arr)
3947
               this.selecting_schs = arr
4059
               this.selecting_schs = arr
3948
-              
4060
+
3949
               this.savePrint()
4061
               this.savePrint()
3950
             }
4062
             }
3951
-            
4063
+
3952
           }
4064
           }
3953
         })
4065
         })
3954
       },
4066
       },
4009
           };
4121
           };
4010
           this.paramsObj = obj1;
4122
           this.paramsObj = obj1;
4011
         }
4123
         }
4012
-        
4124
+
4013
         //治疗
4125
         //治疗
4014
         var arr2 = [];
4126
         var arr2 = [];
4015
         if(this.selecting_schs2.length > 0){
4127
         if(this.selecting_schs2.length > 0){
4039
           };
4151
           };
4040
           this.paramsObj3 = obj3;
4152
           this.paramsObj3 = obj3;
4041
         }
4153
         }
4042
-          
4043
-        
4044
-        
4045
-        
4154
+
4155
+
4156
+
4157
+
4046
         this.innerVisible = true
4158
         this.innerVisible = true
4047
 
4159
 
4048
         // if(this.index == 20){
4160
         // if(this.index == 20){

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

210
           this.$message.error('请选择病人')
210
           this.$message.error('请选择病人')
211
           return
211
           return
212
         }
212
         }
213
-        this.$router.push('/outpatientDoctorStation/prescriptionTemplatedetail?id=' + 0 + '&patient_id=' + this.patient_id)
213
+        this.$router.push('/outpatientDoctorStation/prescriptionTemplatedetail?id=' + 0 + '&patient_id=' + this.patient_id+ '&patient_name=' + this.patient_name)
214
 
214
 
215
       }
215
       }
216
     },
216
     },

+ 135 - 128
src/xt_pages/outpatientDoctorStation/prescriptionTemplatedetail.vue Parādīt failu

3
 
3
 
4
         <div style="height: calc(100% - 0px);display: flex;flex-direction: column;">
4
         <div style="height: calc(100% - 0px);display: flex;flex-direction: column;">
5
             <div style="display:flex;justify-content: space-between;align-items:center;margin:10px 0;padding:0 10px;color:#606266;">
5
             <div style="display:flex;justify-content: space-between;align-items:center;margin:10px 0;padding:0 10px;color:#606266;">
6
-              <div style="font-size:14px;">姓名:{{ $route.query.patient_name }}</div>
7
-              <el-button size="small" @click="save" type="primary">保存</el-button>
6
+                <div style="font-size:14px;">姓名:{{ $route.query.patient_name }}</div>
7
+                <el-button size="small" @click="save" type="primary">保存</el-button>
8
             </div>
8
             </div>
9
 
9
 
10
             <div class="mainCenter" style="padding:0 10px;" v-loading="loading">
10
             <div class="mainCenter" style="padding:0 10px;" v-loading="loading">
38
                                     :name="item.name"
38
                                     :name="item.name"
39
                             >
39
                             >
40
 
40
 
41
-                                <el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"  v-if="($store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10138)" @change="changevalue" >
42
-                                    <el-option
43
-                                            v-for="(item,index) in medical_care"
44
-                                            :key="index"
45
-                                            :label="item.label"
46
-                                            :value="item.value">
47
-                                    </el-option>
48
-                                </el-select>
49
-                                <el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"  v-else @change="changevalue" >
41
+                                <!--<el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"  v-if="($store.getters.xt_user.org_id == 10028 || $store.getters.xt_user.org_id == 9504 || $store.getters.xt_user.org_id == 10138)" @change="changevalue" >-->
42
+                                <!--<el-option-->
43
+                                <!--v-for="(item,index) in medical_care"-->
44
+                                <!--:key="index"-->
45
+                                <!--:label="item.label"-->
46
+                                <!--:value="item.value">-->
47
+                                <!--</el-option>-->
48
+                                <!--</el-select>-->
49
+                                <el-select style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
50
+                                           @change="changevalue">
50
                                     <el-option
51
                                     <el-option
51
                                             v-for="(item,index) in register"
52
                                             v-for="(item,index) in register"
52
                                             :key="index"
53
                                             :key="index"
131
                             </el-tabs>
132
                             </el-tabs>
132
                         </div>
133
                         </div>
133
                         <div style="height:100%;" v-show="showTwo">
134
                         <div style="height:100%;" v-show="showTwo">
134
-                        <div style="height:100%;" v-show="showTwo">
135
-                            <el-tabs class="rightTabs" v-model="activeName">
136
-                                <el-tab-pane label="项目列表" name="1">
137
-                                    <div style="margin-bottom:5px;">
138
-                                        <!--<el-input style="width:50%;" v-model="input" placeholder=""></el-input>-->
139
-                                        <el-input style="width:50%;" @input="searchProjectAction"
140
-                                                  @keyup.enter.native='searchProjectAction'
141
-                                                  v-model.trim="search_project_keyword"
142
-                                                  placeholder="请输入项目名称"></el-input>
143
-                                        <el-select style="float: right;width: 49%;" v-model="value" placeholder=""
144
-                                                   @change="changeClass">
145
-                                            <el-option
146
-                                                    label="全部"
147
-                                                    value="0">
148
-                                            </el-option>
149
-                                            <el-option
150
-                                                    v-for="(item, index) in getDictionaryDataConfig('system','cost_classify')"
151
-                                                    :key="index"
152
-                                                    :label="item.name"
153
-                                                    :value="item.id">
154
-                                            </el-option>
155
-                                        </el-select>
156
-                                    </div>
157
-                                    <div style="width: 100%;flex:1;overflow-y: auto;">
158
-                                        <el-table ref="tables"
159
-                                                  :height="multipleTableHeight != '' ? multipleTableHeight : '200'"
160
-                                                  :data="tabProject" border @select='selectChange'
161
-                                                  :row-style="{ color: '#303133' }"
162
-                                                  @select-all="changeAllGoodInfoTableDataTwo"
163
-                                                  :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
164
-                                                  highlight-current-row>
165
-                                            <el-table-column type="selection" width="40"
166
-                                                             align="center"></el-table-column>
167
-                                            <el-table-column prop="name" label="名称">
168
-                                                <template slot-scope="scope">{{ scope.row.project_name }}</template>
169
-                                            </el-table-column>
170
-                                            <el-table-column label="规格" width="60">
171
-                                                <template slot-scope="scope">{{ scope.row.single_dose }}</template>
172
-                                            </el-table-column>
173
-                                            <el-table-column label="单价" width="40">
174
-                                                <template slot-scope="scope">{{ scope.row.price }}</template>
175
-                                            </el-table-column>
176
-                                        </el-table>
177
-                                    </div>
178
-                                </el-tab-pane>
179
-                                <el-tab-pane label="项目组套" name="2">
180
-                                    <div style="width: 100%;flex:1;overflow-y: auto;">
181
-                                        <el-table :data="tabPrjectTeam" border ref="tabProjectTeam"
182
-                                                  :height="multipleTableHeight != '' ? multipleTableHeight : '200'"
183
-                                                  :row-style="{ color: '#303133' }"
184
-                                                  :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
185
-                                                  highlight-current-row
186
-                                                  @select='selectTeam'>
187
-                                            <el-table-column type="selection" width="40"
188
-                                                             align="center"></el-table-column>
189
-                                            <el-table-column prop="name" label="名称">
190
-                                                <template slot-scope="scope">{{scope.row.project_team}}</template>
191
-                                            </el-table-column>
192
-                                        </el-table>
193
-                                    </div>
194
-                                </el-tab-pane>
195
-                            </el-tabs>
196
-                        </div>
135
+                            <div style="height:100%;" v-show="showTwo">
136
+                                <el-tabs class="rightTabs" v-model="activeName">
137
+                                    <el-tab-pane label="项目列表" name="1">
138
+                                        <div style="margin-bottom:5px;">
139
+                                            <!--<el-input style="width:50%;" v-model="input" placeholder=""></el-input>-->
140
+                                            <el-input style="width:50%;" @input="searchProjectAction"
141
+                                                      @keyup.enter.native='searchProjectAction'
142
+                                                      v-model.trim="search_project_keyword"
143
+                                                      placeholder="请输入项目名称"></el-input>
144
+                                            <el-select style="float: right;width: 49%;" v-model="value" placeholder=""
145
+                                                       @change="changeClass">
146
+                                                <el-option
147
+                                                        label="全部"
148
+                                                        value="0">
149
+                                                </el-option>
150
+                                                <el-option
151
+                                                        v-for="(item, index) in getDictionaryDataConfig('system','cost_classify')"
152
+                                                        :key="index"
153
+                                                        :label="item.name"
154
+                                                        :value="item.id">
155
+                                                </el-option>
156
+                                            </el-select>
157
+                                        </div>
158
+                                        <div style="width: 100%;flex:1;overflow-y: auto;">
159
+                                            <el-table ref="tables"
160
+                                                      :height="multipleTableHeight != '' ? multipleTableHeight : '200'"
161
+                                                      :data="tabProject" border @select='selectChange'
162
+                                                      :row-style="{ color: '#303133' }"
163
+                                                      @select-all="changeAllGoodInfoTableDataTwo"
164
+                                                      :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
165
+                                                      highlight-current-row>
166
+                                                <el-table-column type="selection" width="40"
167
+                                                                 align="center"></el-table-column>
168
+                                                <el-table-column prop="name" label="名称">
169
+                                                    <template slot-scope="scope">{{ scope.row.project_name }}</template>
170
+                                                </el-table-column>
171
+                                                <el-table-column label="规格" width="60">
172
+                                                    <template slot-scope="scope">{{ scope.row.single_dose }}</template>
173
+                                                </el-table-column>
174
+                                                <el-table-column label="单价" width="40">
175
+                                                    <template slot-scope="scope">{{ scope.row.price }}</template>
176
+                                                </el-table-column>
177
+                                            </el-table>
178
+                                        </div>
179
+                                    </el-tab-pane>
180
+                                    <el-tab-pane label="项目组套" name="2">
181
+                                        <div style="width: 100%;flex:1;overflow-y: auto;">
182
+                                            <el-table :data="tabPrjectTeam" border ref="tabProjectTeam"
183
+                                                      :height="multipleTableHeight != '' ? multipleTableHeight : '200'"
184
+                                                      :row-style="{ color: '#303133' }"
185
+                                                      :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
186
+                                                      highlight-current-row
187
+                                                      @select='selectTeam'>
188
+                                                <el-table-column type="selection" width="40"
189
+                                                                 align="center"></el-table-column>
190
+                                                <el-table-column prop="name" label="名称">
191
+                                                    <template slot-scope="scope">{{scope.row.project_team}}</template>
192
+                                                </el-table-column>
193
+                                            </el-table>
194
+                                        </div>
195
+                                    </el-tab-pane>
196
+                                </el-tabs>
197
+                            </div>
197
                         </div>
198
                         </div>
198
                     </el-tabs>
199
                     </el-tabs>
199
 
200
 
200
 
201
 
201
-                <template>
202
+                    <template>
202
 
203
 
203
 
204
 
204
                         <div class="comfirmBox">
205
                         <div class="comfirmBox">
290
         crumbs: [
291
         crumbs: [
291
           { path: false, name: '门诊医生站' },
292
           { path: false, name: '门诊医生站' },
292
           { path: false, name: '处方模版' },
293
           { path: false, name: '处方模版' },
293
-          { path: false, name: '模版详情' },
294
+          { path: false, name: '模版详情' }
294
         ],
295
         ],
295
         tempForm: {
296
         tempForm: {
296
           name: '',
297
           name: '',
394
         }
395
         }
395
 
396
 
396
         for (let i = 0; i < this.prescriptions.length; i++) {
397
         for (let i = 0; i < this.prescriptions.length; i++) {
398
+          console.log(this.prescriptions[i].med_type)
397
           if (this.prescriptions[i].med_type == 0 || this.prescriptions[i].med_type == '') {
399
           if (this.prescriptions[i].med_type == 0 || this.prescriptions[i].med_type == '') {
398
             this.$message.error('处方医疗类型不能为空')
400
             this.$message.error('处方医疗类型不能为空')
399
             return
401
             return
409
         }
411
         }
410
 
412
 
411
         for (let i = 0; i < this.prescriptions.length; i++) {
413
         for (let i = 0; i < this.prescriptions.length; i++) {
414
+
415
+          this.prescriptions[i].med_type = parseInt(this.prescriptions[i].med_type)
416
+
412
           if (this.prescriptions[i].advices.length > 0 && this.prescriptions[i].project.length == 0) {
417
           if (this.prescriptions[i].advices.length > 0 && this.prescriptions[i].project.length == 0) {
413
             this.prescriptions[i]['type'] = 1
418
             this.prescriptions[i]['type'] = 1
414
           }
419
           }
436
         createdTemplate(params, data).then(response => {
441
         createdTemplate(params, data).then(response => {
437
           if (response.data.state == 1) {
442
           if (response.data.state == 1) {
438
             this.$message.success('保存成功')
443
             this.$message.success('保存成功')
439
-          }else{
444
+          } else {
440
             this.$message.error(response.data.msg)
445
             this.$message.error(response.data.msg)
441
           }
446
           }
442
         })
447
         })
545
         } else {
550
         } else {
546
           let arr = []
551
           let arr = []
547
           for (let i = 0; i < this.allProject.length; i++) {
552
           for (let i = 0; i < this.allProject.length; i++) {
548
-            if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1 ) {
553
+            if (this.allProject[i].project_name.indexOf(this.search_project_keyword) != -1) {
549
               arr = arr.concat(this.allProject[i])
554
               arr = arr.concat(this.allProject[i])
550
             }
555
             }
551
           }
556
           }
1042
           '-' +
1047
           '-' +
1043
           (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (hours < 10 ? '0' + hours : hours) +
1048
           (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + (hours < 10 ? '0' + hours : hours) +
1044
           ':' + (min < 10 ? '0' + min : min)
1049
           ':' + (min < 10 ? '0' + min : min)
1045
-        this.prescriptions.push({
1050
+
1051
+        let obj = {
1046
           id: 0,
1052
           id: 0,
1047
           name: newTabName,
1053
           name: newTabName,
1048
           order_status: 0,
1054
           order_status: 0,
1050
           project: [],
1056
           project: [],
1051
           addition: [],
1057
           addition: [],
1052
           pre_time: this.prescriptions[0].pre_time
1058
           pre_time: this.prescriptions[0].pre_time
1059
+
1053
           // pre_time: nowTime
1060
           // pre_time: nowTime
1054
 
1061
 
1055
-        })
1062
+        }
1063
+
1064
+
1065
+
1066
+          obj.med_type = 14
1067
+
1068
+
1069
+
1070
+        this.prescriptions.push(obj)
1071
+
1056
         this.editableTabsValue = newTabName
1072
         this.editableTabsValue = newTabName
1057
         this.curPrescriptions = this.prescriptions[this.prescriptions.length - 1]
1073
         this.curPrescriptions = this.prescriptions[this.prescriptions.length - 1]
1058
         this.curStatus = 0
1074
         this.curStatus = 0
1263
         //   this.$refs.multipleTable.clearSelection()
1279
         //   this.$refs.multipleTable.clearSelection()
1264
         //   return
1280
         //   return
1265
         // }
1281
         // }
1266
-        // if(this.curStatus == 1  && this.rightTab == 2){
1267
-        //   for(let i = 0; i < this.curDrugs.length; i++){
1268
-        //     if(this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138 || this.$store.getters.xt_user.org_id == 10028){
1269
-        //
1270
-        //       if(this.curPrescriptions.med_type != 13 && this.curDrugs[i].drug.is_special_diseases == 1){
1271
-        //         this.$message.error('该处方不属于特病类型处方,无法开特病类型的药')
1272
-        //         return
1273
-        //       }
1274
-        //
1275
-        //       if(this.curPrescriptions.med_type == 13 && this.curDrugs[i].drug.is_special_diseases != 1){
1276
-        //         this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1277
-        //         return
1278
-        //       }
1279
-        //
1280
-        //
1281
-        //     }else{
1282
-        //
1283
-        //       if(this.curPrescriptions.med_type != 14 && this.curDrugs[i].drug.is_special_diseases == 1){
1284
-        //         this.$message.error('该处方不属于特病类型处方,无法开特病类型的药')
1285
-        //         return
1286
-        //       }
1287
-        //
1288
-        //       if(this.curPrescriptions.med_type == 14 && this.curDrugs[i].drug.is_special_diseases != 1){
1289
-        //         this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1290
-        //         return
1291
-        //       }
1292
-        //
1293
-        //
1294
-        //
1295
-        //     }
1296
-        //
1297
-        //   }
1298
-        // }
1282
+        if (this.curPrescriptions.advices.length > 0 && this.curPrescriptions.project.length == 0) {
1283
+          if (this.$store.getters.xt_user.org_id == 10138) {
1284
+            for (let i = 0; i < this.curDrugs.length; i++) {
1285
+              if (this.curPrescriptions.med_type == 13 && this.curDrugs[i].is_special_diseases != 1) {
1286
+                this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1287
+                return
1288
+              }
1299
 
1289
 
1290
+            }
1291
+          }
1292
+        }
1293
+
1294
+        if (this.curPrescriptions.advices.length == 0 && this.curPrescriptions.project.length == 0) {
1295
+          if (this.$store.getters.xt_user.org_id == 10138) {
1296
+            for (let i = 0; i < this.curDrugs.length; i++) {
1297
+              if (this.curPrescriptions.med_type == 13 && this.curDrugs[i].is_special_diseases != 1) {
1298
+                this.$message.error('该处方属于特病类型处方,开非特病类型的药')
1299
+                return
1300
+              }
1301
+
1302
+            }
1303
+          }
1304
+        }
1300
         if (this.curStatus == 1 && this.rightTab == 2) {
1305
         if (this.curStatus == 1 && this.rightTab == 2) {
1301
           this.$message.error('改处方是药品,无法添加项目')
1306
           this.$message.error('改处方是药品,无法添加项目')
1302
           this.teamList = []
1307
           this.teamList = []
1397
                   single_dose: temp[b].single_dose,
1402
                   single_dose: temp[b].single_dose,
1398
                   delivery_way: temp[b].delivery_way,
1403
                   delivery_way: temp[b].delivery_way,
1399
                   execution_frequency: temp[b].execution_frequency,
1404
                   execution_frequency: temp[b].execution_frequency,
1400
-                  retail_price: temp[b].retail_price.toString(),
1405
+                  retail_price: temp[b].prescribing_number_unit == temp[b].max_unit ? temp[b].retail_price.toString() : temp[b].min_price.toString(),
1401
                   remark: '',
1406
                   remark: '',
1402
                   day: 1,
1407
                   day: 1,
1403
                   prescribing_number: temp[b].prescribing_number,
1408
                   prescribing_number: temp[b].prescribing_number,
1404
-                  single_dose_unit: temp[b].min_unit,
1405
-                  prescribing_number_unit: temp[b].max_unit,
1409
+                  single_dose_unit: temp[b].dose_unit,
1410
+                  prescribing_number_unit: temp[b].prescribing_number_unit,
1406
                   medical_insurance_number: temp[b].medical_insurance_number,
1411
                   medical_insurance_number: temp[b].medical_insurance_number,
1407
                   drug: temp[b]
1412
                   drug: temp[b]
1408
                 }
1413
                 }
1510
                     prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1515
                     prescribing_number_unit: prescription.advices[b].prescribing_number_unit,
1511
                     medical_insurance_number: prescription.advices[b].med_list_codg,
1516
                     medical_insurance_number: prescription.advices[b].med_list_codg,
1512
                     id: prescription.advices[b].drug_id,
1517
                     id: prescription.advices[b].drug_id,
1513
-                    drug: prescription.advices[b].drug,
1518
+                    drug: prescription.advices[b].drug
1514
                   }
1519
                   }
1515
                   tempAdvice.push(obj)
1520
                   tempAdvice.push(obj)
1516
                 }
1521
                 }
1556
                   advices: tempAdvice,
1561
                   advices: tempAdvice,
1557
                   project: tempProject,
1562
                   project: tempProject,
1558
                   addition: tempAddition,
1563
                   addition: tempAddition,
1559
-                  order_status: 1,
1564
+                  order_status: 1
1560
                   // pre_time: preTime
1565
                   // pre_time: preTime
1561
                 }
1566
                 }
1562
 
1567
 
1563
-                if(prescription.med_type == "" || prescription.med_type == 0){
1568
+                if (prescription.med_type == '' || prescription.med_type == 0) {
1564
 
1569
 
1565
-                  obj['med_type'] = ""
1566
-                }else{
1570
+                  obj['med_type'] = ''
1571
+                } else {
1567
 
1572
 
1568
                   obj['med_type'] = parseInt(prescription.med_type)
1573
                   obj['med_type'] = parseInt(prescription.med_type)
1569
 
1574
 
1570
                 }
1575
                 }
1571
 
1576
 
1572
-
1573
                 this.prescriptions.push(obj)
1577
                 this.prescriptions.push(obj)
1574
               }
1578
               }
1575
-              if (this.prescriptions.length > 0) {
1576
-                this.curPrescriptions = this.prescriptions[0]
1577
-                console.log(  this.curPrescriptions)
1578
-              }
1579
+              this.curPrescriptions = this.prescriptions[0]
1579
 
1580
 
1580
             } else {
1581
             } else {
1581
               let obj = {
1582
               let obj = {
1585
                 project: [],
1586
                 project: [],
1586
                 addition: [],
1587
                 addition: [],
1587
                 order_status: 0,
1588
                 order_status: 0,
1588
-                med_type:'',
1589
+                med_type: ''
1589
               }
1590
               }
1591
+
1592
+
1593
+                obj.med_type = 14
1594
+
1595
+
1596
+
1590
               this.prescriptions.push(obj)
1597
               this.prescriptions.push(obj)
1591
               this.curPrescriptions = this.prescriptions[0]
1598
               this.curPrescriptions = this.prescriptions[0]
1592
             }
1599
             }
1673
           }
1680
           }
1674
         })
1681
         })
1675
       },
1682
       },
1676
-      changevalue(val){
1683
+      changevalue(val) {
1677
 
1684
 
1678
         this.$forceUpdate()
1685
         this.$forceUpdate()
1679
 
1686
 

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 539 - 597
src/xt_pages/outpatientRegistration/index.vue


+ 226 - 226
src/xt_pages/outpatientRegistration/registrationHistory.vue Parādīt failu

3
         <div class="position">
3
         <div class="position">
4
             <bread-crumb :crumbs='crumbs'></bread-crumb>
4
             <bread-crumb :crumbs='crumbs'></bread-crumb>
5
         </div>
5
         </div>
6
-        <div v-if="this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 10138"
7
-             class="app-container">
8
-            <div class="cell clearfix">
9
-                <!-- <el-input style="width: 180px;" v-model.trim="search_input" class="filter-item"/> -->
10
-                <el-autocomplete
11
-                        style="margin:16px 5px"
12
-                        popper-class="my-autocomplete"
13
-                        v-model.trim="search_input"
14
-                        :fetch-suggestions="querySearchAsync"
15
-                        :trigger-on-focus="false"
16
-                        placeholder="病人名字或者透析号"
17
-                        @select="handleSelect"
18
-                >
19
-                    <i class="el-icon-search el-input__icon" slot="suffix"> </i>
20
-                    <template slot-scope="{ item }">
21
-                        <div class="name">{{ item.name }}</div>
22
-                    </template>
23
-                </el-autocomplete>
24
-                <el-button style="margin-right:10px;" class="filter-item" type="primary" icon="el-icon-search"
25
-                           @click="searchAction">搜索
26
-                </el-button>
27
-                <!-- <el-date-picker
28
-                v-model="value1"
29
-                @change="changeTime"
30
-                style="margin-right:10px;"
31
-                type="daterange"
32
-                range-separator="-"
33
-                start-placeholder="开始日期"
34
-                end-placeholder="结束日期">
35
-                </el-date-picker> -->
36
-                <el-date-picker type="datetime" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
37
-                                placeholder="选择时间" v-model="start_time" style="width:200px"
38
-                                @change="changeStart"
39
-                >
40
-                </el-date-picker>
41
-                -
42
-                <el-date-picker type="datetime" format="yyyy-MM-dd" value-format="yyyy-MM-dd"
43
-                                placeholder="选择时间" v-model="end_time" style="width:200px"
44
-                                @change="changeEnd"
45
-                >
46
-                </el-date-picker>
47
-                <label class="title"><span class="name">挂号类型</span> : </label>
48
-                <el-select v-model="register_type" placeholder="请选择" style="width:150px;" @change="changeRegister">
49
-                    <el-option
50
-                            v-for="item in register"
51
-                            :key="item.value"
52
-                            :label="item.label"
53
-                            :value="item.value">
54
-                    </el-option>
55
-                </el-select>
56
-            </div>
57
-            <el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }"
58
-                      :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
59
-                      highlight-current-row>
60
-                <el-table-column align="center" type="index" label="序号" width="60">
61
-                </el-table-column>
62
-                <el-table-column align="center" prop="name" label="时间" width="100">
63
-                    <template slot-scope="scope">{{getTime(scope.row.ctime,'{y}-{m}-{d} {h}:{i}:{s}')}}</template>
64
-                </el-table-column>
65
-                <el-table-column align="center" prop="dialysis_no" label="姓名" width="80">
66
-                    <template slot-scope="scope">{{scope.row.name }}</template>
67
-                </el-table-column>
68
-                <el-table-column align="center" prop="name" label="科室" width="80">
69
-                    <template slot-scope="scope">{{getDepartMent(scope.row.departments)}}</template>
70
-                </el-table-column>
71
-                <el-table-column align="center" prop="name" label="挂号类型" width="90">
72
-                    <template slot-scope="scope">
73
-                        <span v-if="scope.row.register_type == 1">普通</span>
74
-                        <span v-if="scope.row.register_type == 2">主治</span>
75
-                        <span v-if="scope.row.register_type == 3">主任</span>
76
-                        <span v-if="scope.row.register_type == 4">免收诊金</span>
77
-                        <span v-if="scope.row.register_type == 5">专家</span>
78
-                    </template>
79
-                </el-table-column>
80
-                <el-table-column align="center" prop="name" label="就诊号" width="80">
81
-                    <template slot-scope="scope">
82
-                        {{scope.row.number}}
83
-                    </template>
84
-                </el-table-column>
85
-                <el-table-column align="center" prop="name" label="证件号" width='180'>
86
-                    <template slot-scope="scope">{{ scope.row.id_card_no }}</template>
87
-                </el-table-column>
88
-                <el-table-column align="center" label="社保类型">
89
-                    <template slot-scope="scope">{{getMedicalTreatment(scope.row.social_type)}}</template>
90
-                </el-table-column>
91
-                <el-table-column align="center" prop="name" label="医生" width="80">
92
-                    <template slot-scope="scope">{{getDoctor(scope.row.doctor) }}</template>
93
-                </el-table-column>
94
-                <el-table-column align="center" prop="name" label="挂号费" width="70">
95
-                    <template slot-scope="scope">{{ scope.row.register_cost }}</template>
96
-                </el-table-column>
97
-                <el-table-column align="center" prop="name" label="诊疗费" width="70">
98
-                    <template slot-scope="scope">{{ scope.row.treatment_cost }}</template>
99
-                </el-table-column>
100
-                <el-table-column align="center" prop="name" label="工本费" width="70">
101
-                    <template slot-scope="scope">{{ scope.row.cost_of_production }}</template>
102
-                </el-table-column>
103
-                <el-table-column align="center" prop="name" label="结算类型" width="70">
104
-                    <template slot-scope="scope">{{getBanlance(scope.row.balance_accounts_type) }}</template>
105
-                </el-table-column>
106
-                <el-table-column align="center" prop="name" label="操作人" width="70">
107
-                    <template slot-scope="scope">{{creator}}</template>
108
-                </el-table-column>
109
-                <el-table-column align="center" prop="name" label="操作" width="180">
110
-                    <template slot-scope="scope">
111
-                        <!--<el-button size="mini" type="primary" v-if=" scope.row.record_date < startUnix" :disabled="true">已过号</el-button>-->
112
-                        <el-button size="mini" type="primary" v-if="scope.row.status == 1"
113
-                                   @click="toReturnSZPatient(scope.row)">退号
114
-                        </el-button>
115
-                        <el-button size="mini" type="primary" :disabled="true" v-if="scope.row.status == 0">已退号
116
-                        </el-button>
117
-
118
-                        <!--<el-button size="mini" type="primary" v-if="scope.row.record_date == startUnix && scope.row.is_return == 2" :disabled="true">已退号</el-button>-->
119
-                        <!--<el-button size="mini" type="primary" v-if="scope.row.record_date == startUnix && scope.row.is_return == 3" :disabled="true">已就诊</el-button>-->
120
-                        <!--<el-button size="mini" type="primary" @click="open(scope.row)">详情</el-button>-->
121
-                    </template>
122
-                </el-table-column>
123
-            </el-table>
124
-
125
-            <el-pagination
126
-                    @size-change="handleSizeChange"
127
-                    @current-change="handleCurrentChange"
128
-                    :page-sizes="[10, 50, 100]"
129
-                    :page-size="10"
130
-                    background
131
-                    style="margin-top:20px;float: right"
132
-                    layout="total, sizes, prev, pager, next, jumper"
133
-                    :total="total"
134
-            >
135
-            </el-pagination>
136
-            <el-dialog
137
-                    title="挂号历史详情"
138
-                    :visible.sync="dialogVisible"
139
-                    width="1100px"
140
-                    :before-close="handleClose">
141
-                <div>
142
-                    <div class="formMain">
143
-                        <el-form class="basicForm" :model="form" ref="form" label-width="130px">
144
-                            <el-form-item label="患者姓名:" prop="name">
145
-                                <div>{{ form.name }}</div>
146
-                            </el-form-item>
147
-
148
-                            <el-form-item label="性别:" prop="gender">
149
-                                <div v-if="form.gender == 1">男</div>
150
-                                <div v-if="form.gender == 2">女</div>
151
-                            </el-form-item>
152
-
153
-                            <el-form-item label="年龄:" prop="age">
154
-                                <div>{{ form.age }}</div>
155
-                            </el-form-item>
156
-
157
-
158
-                            <el-form-item label="出生日期:" prop="birthday">
159
-                                <div>{{ getTime(form.birthday,'{y}-{m}-{d}') }}</div>
160
-                            </el-form-item>
161
-
162
-                            <el-form-item label="手机号码:" prop="phone">
163
-                                <div>{{ form.phone }}</div>
164
-                            </el-form-item>
165
-
166
-
167
-                            <el-form-item label="医疗类别:">
168
-                                <div>{{ getDictionaryDataConfig(form.medical_treatment_type) }}</div>
169
-                            </el-form-item>
170
-
171
-
172
-                            <el-form-item label="证件类型:">
173
-                                <div>{{ getCertificates(form.id_type) }}</div>
174
-                            </el-form-item>
175
-
176
-                            <el-form-item label="证件号码:" prop="idCard">
177
-                                {{ form.id_card_no }}
178
-                            </el-form-item>
179
-
180
-
181
-                            <el-form-item label="结算类型:">
182
-                                {{ getSettlement(form.balance_accounts_type) }}
183
-                            </el-form-item>
184
-
185
-
186
-                            <el-form-item label="社保类型:">
187
-                                <div>{{ getMedicalCare(form.social_type) }}</div>
188
-                            </el-form-item>
189
-                            <el-form-item class="specialFormItem" style="width:66.5%;" label="医保卡号:">
190
-                                <div>{{ form.medical_insurance_number }}</div>
191
-                            </el-form-item>
192
-                            <el-form-item label="挂号类型:" prop="register" :validate-event="is_Name">
193
-                                <div>{{ getRegister(form.register_type) }}</div>
194
-                            </el-form-item>
195
-                            <el-form-item label="医生:" prop="doctor" :validate-event="is_Name">
196
-                                <div>{{ getDoctor(form.doctor) }}</div>
197
-                            </el-form-item>
198
-                            <el-form-item label="科室:" prop="department" :validate-event="is_Name">
199
-                                <div>{{ getDepartMent(form.departments) }}</div>
200
-                            </el-form-item>
201
-                            <!-- <el-form-item label="是否需要工本费:">
202
-                              <div v-if="form.is_need_cost_of_production == 1">是</div>
203
-                              <div v-else>否</div>
204
-                            </el-form-item> -->
205
-
206
-                            <el-form-item label="挂号费:">
207
-                                <div>{{ form.register_cost }}</div>
208
-                            </el-form-item>
209
-                            <el-form-item label="诊疗费:">
210
-                                <div>{{ form.treatment_cost }}</div>
211
-                            </el-form-item>
212
-                            <el-form-item label="工本费:">
213
-                                <div>{{ form.cost_of_production }}</div>
214
-                            </el-form-item>
215
-                            <el-form-item label="合计:">
216
-                                <div>{{ form.total }}</div>
217
-                            </el-form-item>
218
-                            <el-form-item>
219
-                                <!-- <el-input v-model="form.name"></el-input> -->
220
-                            </el-form-item>
221
-                        </el-form>
222
-                    </div>
223
-                </div>
224
-                <span slot="footer" class="dialog-footer">
225
-                <el-button @click="dialogVisible = false">取 消</el-button>
226
-                <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
227
-              </span>
228
-            </el-dialog>
229
-        </div>
230
-
231
-        <div v-else class="app-container">
6
+        <!--<div v-if="this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 10138"-->
7
+             <!--class="app-container">-->
8
+            <!--<div class="cell clearfix">-->
9
+                <!--&lt;!&ndash; <el-input style="width: 180px;" v-model.trim="search_input" class="filter-item"/> &ndash;&gt;-->
10
+                <!--<el-autocomplete-->
11
+                        <!--style="margin:16px 5px"-->
12
+                        <!--popper-class="my-autocomplete"-->
13
+                        <!--v-model.trim="search_input"-->
14
+                        <!--:fetch-suggestions="querySearchAsync"-->
15
+                        <!--:trigger-on-focus="false"-->
16
+                        <!--placeholder="病人名字或者透析号"-->
17
+                        <!--@select="handleSelect"-->
18
+                <!--&gt;-->
19
+                    <!--<i class="el-icon-search el-input__icon" slot="suffix"> </i>-->
20
+                    <!--<template slot-scope="{ item }">-->
21
+                        <!--<div class="name">{{ item.name }}</div>-->
22
+                    <!--</template>-->
23
+                <!--</el-autocomplete>-->
24
+                <!--<el-button style="margin-right:10px;" class="filter-item" type="primary" icon="el-icon-search"-->
25
+                           <!--@click="searchAction">搜索-->
26
+                <!--</el-button>-->
27
+                <!--&lt;!&ndash; <el-date-picker-->
28
+                <!--v-model="value1"-->
29
+                <!--@change="changeTime"-->
30
+                <!--style="margin-right:10px;"-->
31
+                <!--type="daterange"-->
32
+                <!--range-separator="-"-->
33
+                <!--start-placeholder="开始日期"-->
34
+                <!--end-placeholder="结束日期">-->
35
+                <!--</el-date-picker> &ndash;&gt;-->
36
+                <!--<el-date-picker type="datetime" format="yyyy-MM-dd" value-format="yyyy-MM-dd"-->
37
+                                <!--placeholder="选择时间" v-model="start_time" style="width:200px"-->
38
+                                <!--@change="changeStart"-->
39
+                <!--&gt;-->
40
+                <!--</el-date-picker>-->
41
+                <!-- - -->
42
+                <!--<el-date-picker type="datetime" format="yyyy-MM-dd" value-format="yyyy-MM-dd"-->
43
+                                <!--placeholder="选择时间" v-model="end_time" style="width:200px"-->
44
+                                <!--@change="changeEnd"-->
45
+                <!--&gt;-->
46
+                <!--</el-date-picker>-->
47
+                <!--<label class="title"><span class="name">挂号类型</span> : </label>-->
48
+                <!--<el-select v-model="register_type" placeholder="请选择" style="width:150px;" @change="changeRegister">-->
49
+                    <!--<el-option-->
50
+                            <!--v-for="item in register"-->
51
+                            <!--:key="item.value"-->
52
+                            <!--:label="item.label"-->
53
+                            <!--:value="item.value">-->
54
+                    <!--</el-option>-->
55
+                <!--</el-select>-->
56
+            <!--</div>-->
57
+            <!--<el-table :data="tableData" border style="width: 100%;" :row-style="{ color: '#303133' }"-->
58
+                      <!--:header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"-->
59
+                      <!--highlight-current-row>-->
60
+                <!--<el-table-column align="center" type="index" label="序号" width="60">-->
61
+                <!--</el-table-column>-->
62
+                <!--<el-table-column align="center" prop="name" label="时间" width="100">-->
63
+                    <!--<template slot-scope="scope">{{getTime(scope.row.ctime,'{y}-{m}-{d} {h}:{i}:{s}')}}</template>-->
64
+                <!--</el-table-column>-->
65
+                <!--<el-table-column align="center" prop="dialysis_no" label="姓名" width="80">-->
66
+                    <!--<template slot-scope="scope">{{scope.row.name }}</template>-->
67
+                <!--</el-table-column>-->
68
+                <!--<el-table-column align="center" prop="name" label="科室" width="80">-->
69
+                    <!--<template slot-scope="scope">{{getDepartMent(scope.row.departments)}}</template>-->
70
+                <!--</el-table-column>-->
71
+                <!--<el-table-column align="center" prop="name" label="挂号类型" width="90">-->
72
+                    <!--<template slot-scope="scope">-->
73
+                        <!--<span v-if="scope.row.register_type == 1">普通</span>-->
74
+                        <!--<span v-if="scope.row.register_type == 2">主治</span>-->
75
+                        <!--<span v-if="scope.row.register_type == 3">主任</span>-->
76
+                        <!--<span v-if="scope.row.register_type == 4">免收诊金</span>-->
77
+                        <!--<span v-if="scope.row.register_type == 5">专家</span>-->
78
+                    <!--</template>-->
79
+                <!--</el-table-column>-->
80
+                <!--<el-table-column align="center" prop="name" label="就诊号" width="80">-->
81
+                    <!--<template slot-scope="scope">-->
82
+                        <!--{{scope.row.number}}-->
83
+                    <!--</template>-->
84
+                <!--</el-table-column>-->
85
+                <!--<el-table-column align="center" prop="name" label="证件号" width='180'>-->
86
+                    <!--<template slot-scope="scope">{{ scope.row.id_card_no }}</template>-->
87
+                <!--</el-table-column>-->
88
+                <!--<el-table-column align="center" label="社保类型">-->
89
+                    <!--<template slot-scope="scope">{{getMedicalTreatment(scope.row.social_type)}}</template>-->
90
+                <!--</el-table-column>-->
91
+                <!--<el-table-column align="center" prop="name" label="医生" width="80">-->
92
+                    <!--<template slot-scope="scope">{{getDoctor(scope.row.doctor) }}</template>-->
93
+                <!--</el-table-column>-->
94
+                <!--<el-table-column align="center" prop="name" label="挂号费" width="70">-->
95
+                    <!--<template slot-scope="scope">{{ scope.row.register_cost }}</template>-->
96
+                <!--</el-table-column>-->
97
+                <!--<el-table-column align="center" prop="name" label="诊疗费" width="70">-->
98
+                    <!--<template slot-scope="scope">{{ scope.row.treatment_cost }}</template>-->
99
+                <!--</el-table-column>-->
100
+                <!--<el-table-column align="center" prop="name" label="工本费" width="70">-->
101
+                    <!--<template slot-scope="scope">{{ scope.row.cost_of_production }}</template>-->
102
+                <!--</el-table-column>-->
103
+                <!--<el-table-column align="center" prop="name" label="结算类型" width="70">-->
104
+                    <!--<template slot-scope="scope">{{getBanlance(scope.row.balance_accounts_type) }}</template>-->
105
+                <!--</el-table-column>-->
106
+                <!--<el-table-column align="center" prop="name" label="操作人" width="70">-->
107
+                    <!--<template slot-scope="scope">{{creator}}</template>-->
108
+                <!--</el-table-column>-->
109
+                <!--<el-table-column align="center" prop="name" label="操作" width="180">-->
110
+                    <!--<template slot-scope="scope">-->
111
+                        <!--&lt;!&ndash;<el-button size="mini" type="primary" v-if=" scope.row.record_date < startUnix" :disabled="true">已过号</el-button>&ndash;&gt;-->
112
+                        <!--<el-button size="mini" type="primary" v-if="scope.row.status == 1"-->
113
+                                   <!--@click="toReturnSZPatient(scope.row)">退号-->
114
+                        <!--</el-button>-->
115
+                        <!--<el-button size="mini" type="primary" :disabled="true" v-if="scope.row.status == 0">已退号-->
116
+                        <!--</el-button>-->
117
+
118
+                        <!--&lt;!&ndash;<el-button size="mini" type="primary" v-if="scope.row.record_date == startUnix && scope.row.is_return == 2" :disabled="true">已退号</el-button>&ndash;&gt;-->
119
+                        <!--&lt;!&ndash;<el-button size="mini" type="primary" v-if="scope.row.record_date == startUnix && scope.row.is_return == 3" :disabled="true">已就诊</el-button>&ndash;&gt;-->
120
+                        <!--&lt;!&ndash;<el-button size="mini" type="primary" @click="open(scope.row)">详情</el-button>&ndash;&gt;-->
121
+                    <!--</template>-->
122
+                <!--</el-table-column>-->
123
+            <!--</el-table>-->
124
+
125
+            <!--<el-pagination-->
126
+                    <!--@size-change="handleSizeChange"-->
127
+                    <!--@current-change="handleCurrentChange"-->
128
+                    <!--:page-sizes="[10, 50, 100]"-->
129
+                    <!--:page-size="10"-->
130
+                    <!--background-->
131
+                    <!--style="margin-top:20px;float: right"-->
132
+                    <!--layout="total, sizes, prev, pager, next, jumper"-->
133
+                    <!--:total="total"-->
134
+            <!--&gt;-->
135
+            <!--</el-pagination>-->
136
+            <!--<el-dialog-->
137
+                    <!--title="挂号历史详情"-->
138
+                    <!--:visible.sync="dialogVisible"-->
139
+                    <!--width="1100px"-->
140
+                    <!--:before-close="handleClose">-->
141
+                <!--<div>-->
142
+                    <!--<div class="formMain">-->
143
+                        <!--<el-form class="basicForm" :model="form" ref="form" label-width="130px">-->
144
+                            <!--<el-form-item label="患者姓名:" prop="name">-->
145
+                                <!--<div>{{ form.name }}</div>-->
146
+                            <!--</el-form-item>-->
147
+
148
+                            <!--<el-form-item label="性别:" prop="gender">-->
149
+                                <!--<div v-if="form.gender == 1">男</div>-->
150
+                                <!--<div v-if="form.gender == 2">女</div>-->
151
+                            <!--</el-form-item>-->
152
+
153
+                            <!--<el-form-item label="年龄:" prop="age">-->
154
+                                <!--<div>{{ form.age }}</div>-->
155
+                            <!--</el-form-item>-->
156
+
157
+
158
+                            <!--<el-form-item label="出生日期:" prop="birthday">-->
159
+                                <!--<div>{{ getTime(form.birthday,'{y}-{m}-{d}') }}</div>-->
160
+                            <!--</el-form-item>-->
161
+
162
+                            <!--<el-form-item label="手机号码:" prop="phone">-->
163
+                                <!--<div>{{ form.phone }}</div>-->
164
+                            <!--</el-form-item>-->
165
+
166
+
167
+                            <!--<el-form-item label="医疗类别:">-->
168
+                                <!--<div>{{ getDictionaryDataConfig(form.medical_treatment_type) }}</div>-->
169
+                            <!--</el-form-item>-->
170
+
171
+
172
+                            <!--<el-form-item label="证件类型:">-->
173
+                                <!--<div>{{ getCertificates(form.id_type) }}</div>-->
174
+                            <!--</el-form-item>-->
175
+
176
+                            <!--<el-form-item label="证件号码:" prop="idCard">-->
177
+                                <!--{{ form.id_card_no }}-->
178
+                            <!--</el-form-item>-->
179
+
180
+
181
+                            <!--<el-form-item label="结算类型:">-->
182
+                                <!--{{ getSettlement(form.balance_accounts_type) }}-->
183
+                            <!--</el-form-item>-->
184
+
185
+
186
+                            <!--<el-form-item label="社保类型:">-->
187
+                                <!--<div>{{ getMedicalCare(form.social_type) }}</div>-->
188
+                            <!--</el-form-item>-->
189
+                            <!--<el-form-item class="specialFormItem" style="width:66.5%;" label="医保卡号:">-->
190
+                                <!--<div>{{ form.medical_insurance_number }}</div>-->
191
+                            <!--</el-form-item>-->
192
+                            <!--<el-form-item label="挂号类型:" prop="register" :validate-event="is_Name">-->
193
+                                <!--<div>{{ getRegister(form.register_type) }}</div>-->
194
+                            <!--</el-form-item>-->
195
+                            <!--<el-form-item label="医生:" prop="doctor" :validate-event="is_Name">-->
196
+                                <!--<div>{{ getDoctor(form.doctor) }}</div>-->
197
+                            <!--</el-form-item>-->
198
+                            <!--<el-form-item label="科室:" prop="department" :validate-event="is_Name">-->
199
+                                <!--<div>{{ getDepartMent(form.departments) }}</div>-->
200
+                            <!--</el-form-item>-->
201
+                            <!--&lt;!&ndash; <el-form-item label="是否需要工本费:">-->
202
+                              <!--<div v-if="form.is_need_cost_of_production == 1">是</div>-->
203
+                              <!--<div v-else>否</div>-->
204
+                            <!--</el-form-item> &ndash;&gt;-->
205
+
206
+                            <!--<el-form-item label="挂号费:">-->
207
+                                <!--<div>{{ form.register_cost }}</div>-->
208
+                            <!--</el-form-item>-->
209
+                            <!--<el-form-item label="诊疗费:">-->
210
+                                <!--<div>{{ form.treatment_cost }}</div>-->
211
+                            <!--</el-form-item>-->
212
+                            <!--<el-form-item label="工本费:">-->
213
+                                <!--<div>{{ form.cost_of_production }}</div>-->
214
+                            <!--</el-form-item>-->
215
+                            <!--<el-form-item label="合计:">-->
216
+                                <!--<div>{{ form.total }}</div>-->
217
+                            <!--</el-form-item>-->
218
+                            <!--<el-form-item>-->
219
+                                <!--&lt;!&ndash; <el-input v-model="form.name"></el-input> &ndash;&gt;-->
220
+                            <!--</el-form-item>-->
221
+                        <!--</el-form>-->
222
+                    <!--</div>-->
223
+                <!--</div>-->
224
+                <!--<span slot="footer" class="dialog-footer">-->
225
+                <!--<el-button @click="dialogVisible = false">取 消</el-button>-->
226
+                <!--<el-button type="primary" @click="dialogVisible = false">确 定</el-button>-->
227
+              <!--</span>-->
228
+            <!--</el-dialog>-->
229
+        <!--</div>-->
230
+
231
+        <div ]class="app-container">
232
             <div class="cell clearfix">
232
             <div class="cell clearfix">
233
                 <!-- <el-input style="width: 180px;" v-model.trim="search_input" class="filter-item"/> -->
233
                 <!-- <el-input style="width: 180px;" v-model.trim="search_input" class="filter-item"/> -->
234
                 <el-autocomplete
234
                 <el-autocomplete

+ 116 - 9
src/xt_pages/user/dialysisSolution.vue Parādīt failu

533
             </el-form-item>
533
             </el-form-item>
534
           </el-col>
534
           </el-col>
535
 
535
 
536
-          
536
+
537
            <el-col :span="8" v-if="isShows('吸氧') && oxygenShow == true">
537
            <el-col :span="8" v-if="isShows('吸氧') && oxygenShow == true">
538
              <el-form-item label="吸氧流量(L/分):">
538
              <el-form-item label="吸氧流量(L/分):">
539
                 <el-input v-model="addPlan.oxygen_flow"></el-input>
539
                 <el-input v-model="addPlan.oxygen_flow"></el-input>
540
              </el-form-item>
540
              </el-form-item>
541
           </el-col>
541
           </el-col>
542
-         
542
+
543
          <el-col :span="8" v-if="isShows('吸氧') && oxygenShow == true">
543
          <el-col :span="8" v-if="isShows('吸氧') && oxygenShow == true">
544
              <el-form-item label="吸氧时长(h):">
544
              <el-form-item label="吸氧时长(h):">
545
                 <el-input v-model="addPlan.oxygen_time"></el-input>
545
                 <el-input v-model="addPlan.oxygen_time"></el-input>
551
               <el-input v-model="addPlan.target_ktv"></el-input>
551
               <el-input v-model="addPlan.target_ktv"></el-input>
552
             </el-form-item>
552
             </el-form-item>
553
           </el-col>
553
           </el-col>
554
-        </el-row>
555
 
554
 
556
-    
557
-    
555
+
556
+          <el-col :span="8" v-if="isShows('透析管路')">
557
+            <el-form-item label="透析管路:">
558
+              <el-select v-model="addPlan.hemodialysis_pipelines" >
559
+                <el-option
560
+                        v-for="item in hemodialysisPipelinesOptions"
561
+                        :label="item.name"
562
+                        :key="item.id"
563
+                        :value="item.name"
564
+                ></el-option>
565
+              </el-select>
566
+            </el-form-item>
567
+          </el-col>
568
+
569
+          <el-col :span="8" v-if="isShows('透析管路支数')">
570
+            <el-form-item label="透析管路支数">
571
+              <el-input v-model="addPlan.hemodialysis_pipelines_count"></el-input>
572
+            </el-form-item>
573
+          </el-col>
574
+
575
+
576
+
577
+          <el-col :span="8" v-if="isShows('穿刺针')">
578
+            <el-form-item label="穿刺针:">
579
+              <el-input v-model="addPlan.puncture_needle" @focus="showInnerDialog('10')"></el-input>
580
+            </el-form-item>
581
+          </el-col>
582
+
583
+
584
+
585
+          <el-col :span="8" v-if="isShows('穿刺针支数')">
586
+            <el-form-item label="穿刺针支数">
587
+              <el-input v-model="addPlan.puncture_needle_count"></el-input>
588
+            </el-form-item>
589
+          </el-col>
590
+
591
+          <el-col :span="8" v-if="isShows('促红素')">
592
+            <el-form-item label="促红素:">
593
+              <el-select v-model="addPlan.epo" @change="changeBodyFluid">
594
+                <el-option
595
+                        v-for="item in epo"
596
+                        :label="item.name"
597
+                        :key="item.id"
598
+                        :value="item.name"
599
+                ></el-option>
600
+              </el-select>
601
+            </el-form-item>
602
+          </el-col>
603
+
604
+          <el-col :span="8" v-if="isShows('促红素支数')">
605
+            <el-form-item label="促红素支数">
606
+              <el-input v-model="addPlan.epo_count"></el-input>
607
+            </el-form-item>
608
+          </el-col>
609
+
610
+        </el-row>
558
 
611
 
559
 
612
 
560
         <el-row :gutter="24">
613
         <el-row :gutter="24">
665
       callback()
718
       callback()
666
     }
719
     }
667
     return {
720
     return {
721
+      hemodialysisPipelinesOptions:[],
722
+      punctureNeedleOptions:[],
723
+      epoOptions:[],
668
       zhiShow:false,
724
       zhiShow:false,
669
       huShow:false,
725
       huShow:false,
670
       totalShow:false,
726
       totalShow:false,
751
         oxygen_flow:"",
807
         oxygen_flow:"",
752
         oxygen_time:"",
808
         oxygen_time:"",
753
 
809
 
810
+        hemodialysis_pipelines:'',
811
+        hemodialysis_pipelines_count:'',
812
+        puncture_needle:"",
813
+        puncture_needle_count:"",
814
+        epo:"",
815
+        epo_count:"",
816
+
817
+
754
       },
818
       },
755
       childPlan: {
819
       childPlan: {
756
         mode: '',
820
         mode: '',
966
 
1030
 
967
           break
1031
           break
968
         case '8':
1032
         case '8':
969
-         
1033
+
970
           this.InnerDialogProps.values = this.plasmaSeparatorList
1034
           this.InnerDialogProps.values = this.plasmaSeparatorList
971
           this.InnerDialogProps.titles = '血浆分离器'
1035
           this.InnerDialogProps.titles = '血浆分离器'
972
           this.InnerDialogProps.type = 'plasma_separator'
1036
           this.InnerDialogProps.type = 'plasma_separator'
975
 
1039
 
976
           break
1040
           break
977
          case '9':
1041
          case '9':
978
-         
1042
+
979
           this.InnerDialogProps.values = this.bilirubinAdsorptionColumn
1043
           this.InnerDialogProps.values = this.bilirubinAdsorptionColumn
980
           this.InnerDialogProps.titles = '胆红素吸附柱'
1044
           this.InnerDialogProps.titles = '胆红素吸附柱'
981
           this.InnerDialogProps.type = 'bilirubin_adsorption_column'
1045
           this.InnerDialogProps.type = 'bilirubin_adsorption_column'
982
           this.InnerDialogProps.selected = this.addPlan.bilirubin_adsorption_column
1046
           this.InnerDialogProps.selected = this.addPlan.bilirubin_adsorption_column
983
           this.InnerDialogProps.isShowTextArea = false
1047
           this.InnerDialogProps.isShowTextArea = false
984
 
1048
 
1049
+          break
1050
+
1051
+        case '10':
1052
+
1053
+          this.InnerDialogProps.values = this.punctureNeedleOptions
1054
+          this.InnerDialogProps.titles = '穿刺针'
1055
+          this.InnerDialogProps.type = 'puncture_needle'
1056
+          this.InnerDialogProps.selected = this.addPlan.puncture_needle
1057
+          this.InnerDialogProps.isShowTextArea = false
1058
+
985
           break
1059
           break
986
       }
1060
       }
987
     },
1061
     },
1004
         case 'bilirubin_adsorption_column':
1078
         case 'bilirubin_adsorption_column':
1005
           this.addPlan.bilirubin_adsorption_column = val.value.join(',')
1079
           this.addPlan.bilirubin_adsorption_column = val.value.join(',')
1006
           break
1080
           break
1081
+        case 'puncture_needle':
1082
+          this.addPlan.puncture_needle = val.value.join(',')
1083
+          break
1007
       }
1084
       }
1008
     },
1085
     },
1009
     innerDialogCancle: function() {
1086
     innerDialogCancle: function() {
1315
           }
1392
           }
1316
           this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1393
           this.addPlan.dialysis_dialyszers = this.dialysis_dialyszers
1317
           this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1394
           this.addPlan.dialysis_irrigation = this.dialysis_irrigation
1318
-          console.log("2233333",this.addPlan)
1319
-          
1395
+
1320
           editPatientDialysisSolution(this.patientID,this.addPlan.id,this.addPlan, mode).then(response => {
1396
           editPatientDialysisSolution(this.patientID,this.addPlan.id,this.addPlan, mode).then(response => {
1321
             if (response.data.state == 0) {
1397
             if (response.data.state == 0) {
1322
               this.$message.error(response.data.msg)
1398
               this.$message.error(response.data.msg)
1440
       this.addPlan.kalium = row.kalium.toString()
1516
       this.addPlan.kalium = row.kalium.toString()
1441
       this.addPlan.sodium = row.sodium.toString()
1517
       this.addPlan.sodium = row.sodium.toString()
1442
       this.addPlan.calcium = row.calcium.toString()
1518
       this.addPlan.calcium = row.calcium.toString()
1519
+
1520
+
1521
+
1443
       this.addPlan.bicarbonate = row.bicarbonate.toString()
1522
       this.addPlan.bicarbonate = row.bicarbonate.toString()
1444
       this.addPlan.glucose = row.glucose.toString()
1523
       this.addPlan.glucose = row.glucose.toString()
1445
       this.addPlan.dialysate_flow = row.dialysate_flow.toString()
1524
       this.addPlan.dialysate_flow = row.dialysate_flow.toString()
1447
       this.addPlan.conductivity = row.conductivity.toString()
1526
       this.addPlan.conductivity = row.conductivity.toString()
1448
       this.addPlan.remark = row.remark
1527
       this.addPlan.remark = row.remark
1449
 
1528
 
1529
+      this.addPlan.hemodialysis_pipelines  = row.hemodialysis_pipelines
1530
+      this.addPlan.hemodialysis_pipelines_count  = row.hemodialysis_pipelines_count.toString()
1531
+      this.addPlan.puncture_needle  = row.puncture_needle
1532
+      this.addPlan.puncture_needle_count = row.puncture_needle_count.toString()
1533
+      this.addPlan.epo  = row.epo
1534
+      this.addPlan.epo_count  = row.epo_count.toString()
1535
+
1536
+
1450
       this.addPlan.dialyzer_perfusion_apparatus = row.dialyzer_perfusion_apparatus.toString()
1537
       this.addPlan.dialyzer_perfusion_apparatus = row.dialyzer_perfusion_apparatus.toString()
1451
       this.addPlan.plasma_separator = row.plasma_separator.toString()
1538
       this.addPlan.plasma_separator = row.plasma_separator.toString()
1452
       this.addPlan.bilirubin_adsorption_column = row.bilirubin_adsorption_column.toString()
1539
       this.addPlan.bilirubin_adsorption_column = row.bilirubin_adsorption_column.toString()
1553
         ultrafiltration: '',
1640
         ultrafiltration: '',
1554
         blood_access: '',
1641
         blood_access: '',
1555
 
1642
 
1643
+
1644
+        hemodialysis_pipelines:'',
1645
+        hemodialysis_pipelines_count:'',
1646
+        puncture_needle:"",
1647
+        puncture_needle_count:"",
1648
+        epo:"",
1649
+        epo_count:"",
1650
+
1651
+
1556
         dialysis_duration: '3.30',
1652
         dialysis_duration: '3.30',
1557
         dialysis_duration_hour: '3',
1653
         dialysis_duration_hour: '3',
1558
         dialysis_duration_minute: '30',
1654
         dialysis_duration_minute: '30',
1803
               oxygen_time:"",
1899
               oxygen_time:"",
1804
               oxygen_uptake:"",
1900
               oxygen_uptake:"",
1805
               oxygen_flow:"",
1901
               oxygen_flow:"",
1902
+
1903
+              hemodialysis_pipelines:'',
1904
+              hemodialysis_pipelines_count:'',
1905
+              puncture_needle:"",
1906
+              puncture_needle_count:"",
1907
+              epo:"",
1908
+              epo_count:"",
1909
+
1806
             }
1910
             }
1807
 
1911
 
1808
             for (const key in tempAddPlan) {
1912
             for (const key in tempAddPlan) {
1884
       })
1988
       })
1885
       this.$router.back(-1)
1989
       this.$router.back(-1)
1886
     }
1990
     }
1991
+    this.hemodialysisPipelinesOptions = getDataConfig('hemodialysis', 'hemodialysis_pipelines')
1992
+    this.punctureNeedleOptions =  getDataConfig('hemodialysis', 'puncture_needle')
1993
+    this.epoOptions =getDataConfig('hemodialysis', 'epo')
1887
 
1994
 
1888
     this.GetDeviceData()
1995
     this.GetDeviceData()
1889
     this.fetchAllAdminUsers()
1996
     this.fetchAllAdminUsers()