XMLWAN 3 years ago
parent
commit
acc6b2b2e1

+ 40 - 0
src/api/patient.js View File

500
     params: params
500
     params: params
501
   })
501
   })
502
 }
502
 }
503
+
504
+export function saveCreation(params) {
505
+  return request({
506
+    url: '/api/patient/savecreationinspection',
507
+    method: 'get',
508
+    params: params
509
+  })
510
+}
511
+
512
+export function getTemplateSummaryList(params) {
513
+  return request({
514
+    url: '/api/patient/getemlatesummarylist',
515
+    method: 'Get',
516
+    params: params
517
+  })
518
+}
519
+
520
+export function getTemplateSummaryDetail(params) {
521
+  return request({
522
+    url: '/api/patient/gettemplatesummarydetail',
523
+    method: 'Get',
524
+    params: params
525
+  })
526
+}
527
+
528
+export function getTemplateSummaryPrintDetail(params) {
529
+  return request({
530
+    url: '/api/patient/gettemplatesummaryprintdetail',
531
+    method: 'Get',
532
+    params: params
533
+  })
534
+}
535
+
536
+export function UpdateTemplateSummary(params) {
537
+  return request({
538
+    url: '/api/patient/updatetemplatesummary',
539
+    method: 'get',
540
+    params: params
541
+  })
542
+}

+ 14 - 3
src/router/modules/patient.js View File

150
     }
150
     }
151
   },
151
   },
152
   {
152
   {
153
-    path: '/patients/patients/:id/templateSummary',
153
+    path: '/patient/patient/:id/templateSummary',
154
     component: () => import('@/xt_pages/user/templateSummary'),
154
     component: () => import('@/xt_pages/user/templateSummary'),
155
     hidden: true,
155
     hidden: true,
156
     is_menu: false,
156
     is_menu: false,
192
       title: 'proeducation',
192
       title: 'proeducation',
193
       noCache: true
193
       noCache: true
194
     }
194
     }
195
-  }, {
195
+  },
196
+  {
196
     path: '/course/print',
197
     path: '/course/print',
197
     component: () => import('@/xt_pages/user/coursePrint'),
198
     component: () => import('@/xt_pages/user/coursePrint'),
198
     hidden: true,
199
     hidden: true,
202
       title: 'coursePrint',
203
       title: 'coursePrint',
203
       noCache: true
204
       noCache: true
204
     }
205
     }
206
+  },
207
+  {
208
+    path: '/patient/patient/templateSummary/print',
209
+    component: () => import('@/xt_pages/user/templateSummaryPrint'),
210
+    hidden: true,
211
+    is_menu: false,
212
+    name: 'templateSummary',
213
+    meta: {
214
+      title: 'templateSummary',
215
+      noCache: true
216
+    }
205
   }
217
   }
206
-
207
   ]
218
   ]
208
 }
219
 }

+ 1 - 1
src/xt_pages/stock/drugs/components/drugOutDetail.vue View File

582
         var min_str = ""
582
         var min_str = ""
583
         for(let i=0;i<arr.length;i++){
583
         for(let i=0;i<arr.length;i++){
584
           if(arr[i].count_unit == max_unit){
584
           if(arr[i].count_unit == max_unit){
585
-            arr[i].count = arr[i].count * arr[i].min_number
585
+            arr[i].count = arr[i].count * min_number
586
           }
586
           }
587
         }
587
         }
588
         for(let i=0;i<arr.length;i++){
588
         for(let i=0;i<arr.length;i++){

+ 1 - 1
src/xt_pages/stock/drugs/drugOutOrderPrint.vue View File

315
         var min_str = ""
315
         var min_str = ""
316
         for(let i=0;i<arr.length;i++){
316
         for(let i=0;i<arr.length;i++){
317
           if(arr[i].count_unit == max_unit){
317
           if(arr[i].count_unit == max_unit){
318
-            arr[i].count = arr[i].count * arr[i].min_number
318
+            arr[i].count = arr[i].count * min_number
319
           }
319
           }
320
         }
320
         }
321
         for(let i=0;i<arr.length;i++){
321
         for(let i=0;i<arr.length;i++){

+ 2 - 1
src/xt_pages/stock/stockInOrderAdd.vue View File

347
         dealerList: [],
347
         dealerList: [],
348
         goodType: [],
348
         goodType: [],
349
         manufacturerList:[],
349
         manufacturerList:[],
350
-        goodList:[]
350
+        goodList:[],
351
+       
351
       }
352
       }
352
     },
353
     },
353
     methods: {
354
     methods: {

+ 104 - 9
src/xt_pages/stock/stockModifyPrice.vue View File

164
         width="1200px"
164
         width="1200px"
165
         :before-close="handleClose">
165
         :before-close="handleClose">
166
         <el-form :model="form" class="modifyDialog" label-width="120px">
166
         <el-form :model="form" class="modifyDialog" label-width="120px">
167
-            <el-form-item label="药品名称">
168
-                <el-input v-model="form.name"></el-input>
167
+            <el-form-item label="耗材名称">
168
+                <!-- <el-input v-model="form.name"></el-input> -->
169
+              <el-autocomplete
170
+                    class="checkSearch"
171
+                    popper-class="my-autocomplete"
172
+                    v-model="form.good_name"
173
+                    :fetch-suggestions="querySearchAsync"
174
+                    :trigger-on-focus="true"
175
+                    placeholder="请输入耗材名称"
176
+                    @select="handleSelect"
177
+                    @input="changeGoodName(scope.$index)"
178
+                    style="width:160px;"
179
+                  >
180
+                    <i class="el-icon-search el-input__icon" slot="suffix"></i>
181
+                  <template slot-scope="{ item }">
182
+                    <div class="name">{{ item.good_name +"  " +item.specification_name + "  "+item.manufacturer }}</div>
183
+                  </template>
184
+                 </el-autocomplete>
169
             </el-form-item>
185
             </el-form-item>
170
             <el-form-item label="原价格">
186
             <el-form-item label="原价格">
171
-                <el-input v-model="form.name"></el-input>
187
+                <el-input v-model="form.packing_price"></el-input>
172
             </el-form-item>
188
             </el-form-item>
173
             <el-form-item label="现价格">
189
             <el-form-item label="现价格">
174
-                <el-input v-model="form.name"></el-input>
190
+                <el-input v-model="form.new_price"></el-input>
175
             </el-form-item>
191
             </el-form-item>
176
             <el-form-item label="调价数量">
192
             <el-form-item label="调价数量">
177
-                <el-input v-model="form.name"></el-input>
193
+                <el-input v-model="form.count"></el-input>
178
             </el-form-item>
194
             </el-form-item>
179
             <el-form-item label="备注" style="width:66%;">
195
             <el-form-item label="备注" style="width:66%;">
180
                 <div style="display:flex;">
196
                 <div style="display:flex;">
181
-                    <el-input v-model="form.name"></el-input>
197
+                    <el-input v-model="form.remark"></el-input>
182
                     <el-button style="margin-left:5px;" type="primary">添加</el-button>
198
                     <el-button style="margin-left:5px;" type="primary">添加</el-button>
183
                 </div>
199
                 </div>
184
             </el-form-item>
200
             </el-form-item>
265
 
281
 
266
 <script>
282
 <script>
267
 import BreadCrumb from "../components/bread-crumb";
283
 import BreadCrumb from "../components/bread-crumb";
268
-
284
+import { postSearchGoodList} from "@/api/stock"
269
 export default {
285
 export default {
270
     name: "stockModifyPrice",
286
     name: "stockModifyPrice",
271
     components:{
287
     components:{
302
             }],
318
             }],
303
             dialogVisible:false,
319
             dialogVisible:false,
304
             form: {
320
             form: {
305
-                name: '',
321
+                good_name: '',
322
+                packing_price:'',
323
+                new_price:"",
324
+                count:"",
325
+                remark:"",
306
             },
326
             },
327
+            goodList:[],
328
+            manufacturerList:[],
329
+            dealerList:[],
330
+            currentIndex: 0,
331
+
307
         }
332
         }
308
     },
333
     },
309
     methods:{
334
     methods:{
313
         print(){
338
         print(){
314
             this.$router.push({path:'/stock/stockModifyPricePrint'})
339
             this.$router.push({path:'/stock/stockModifyPricePrint'})
315
             
340
             
316
-        }
341
+        },
342
+        querySearchAsync(keyword, cb) {
343
+            let key = '';
344
+            if (keyword != undefined) {
345
+            key = keyword
346
+            }
347
+            postSearchGoodList(key).then(response => {
348
+            if (response.data.state == 1) {
349
+            
350
+                var list = response.data.data.list
351
+                
352
+                this.goodList = list
353
+                var manufacturerList = response.data.data.manufacturerList
354
+                this.manufacturerList = manufacturerList
355
+                var dealer =  response.data.data.dealerList
356
+                this.dealerList = dealer
357
+                // for(let i=0;i<this.goodList.length;i++){
358
+                //     for(let j=0;j<this.manufacturerList.length;j++){
359
+                //     if(this.goodList[i].manufacturer == this.manufacturerList[j].id){
360
+                //         this.goodList[i].manufacturer = this.manufacturerList[j].manufacturer_name
361
+                //     }
362
+                //     }
363
+                // }
364
+
365
+                // for(let i=0;i<this.goodList.length;i++){
366
+                // for(let j=0;j<this.dealerList.length;j++){
367
+                //     if(this.goodList[i].dealer == this.dealerList[j].id){
368
+                //         this.goodList[i].dealer = this.dealerList[j].dealer_name
369
+                //     }
370
+                // }
371
+                // }
372
+            
373
+                cb(this.goodList)
374
+            } else {
375
+                cb([])
376
+            }
377
+            })
378
+        },
379
+        changeGoodName(val){
380
+            console.log("val",val)
381
+            this.currentIndex = val
382
+        },
383
+        handleSelect(val){
384
+          this.form.good_name = val.good_name
385
+        //  for(let i=0;i<this.recordInfo.recordData.length;i++){
386
+        //    if(this.currentIndex == i){
387
+        //       this.recordInfo.recordData[i].good_type_id = val.id
388
+        //       this.recordInfo.recordData[i].good_name = val.good_name
389
+        //       this.recordInfo.recordData[i].good_type_id = val.good_type_id
390
+        //       this.recordInfo.recordData[i].name = val.specification_name +"/"+val.packing_unit
391
+        //       this.recordInfo.recordData[i].number =  val.number
392
+        //       this.recordInfo.recordData[i].manufacturer = val.manufacturer
393
+        //       this.recordInfo.recordData[i].remark = val.remark
394
+        //       if(val.buy_price == 0){
395
+        //        this.recordInfo.recordData[i].price = ""
396
+        //       }else{
397
+        //         this.recordInfo.recordData[i].price = val.buy_price
398
+        //       }
399
+              
400
+        //       this.recordInfo.recordData[i].specification_name = val.specification_name
401
+        //       this.recordInfo.recordData[i].good_id = val.id
402
+        //       this.recordInfo.recordData[i].packing_unit = val.packing_unit
403
+        //       if(val.dealer == 0){
404
+        //         this.recordInfo.recordData[i].dealer = ""
405
+        //       }else{
406
+        //         this.recordInfo.recordData[i].dealer = val.dealer
407
+        //       }
408
+             
409
+        //    }
410
+        //  }
411
+      }
317
     },
412
     },
318
     created(){
413
     created(){
319
         let tableHeight = document.body.clientHeight - 200;
414
         let tableHeight = document.body.clientHeight - 200;

+ 1 - 3
src/xt_pages/user/components/PatientSidebar.vue View File

188
       }else if (name == '1-8'){
188
       }else if (name == '1-8'){
189
         this.$router.push({path:'/patients/patients/'+this.id+'/inspectionInfectious'})
189
         this.$router.push({path:'/patients/patients/'+this.id+'/inspectionInfectious'})
190
       }else if (name == '1-9'){
190
       }else if (name == '1-9'){
191
-        this.$router.push({path:'/patients/patients/'+this.id+'/templateSummary'})
191
+        this.$router.push({path:'/patient/patient/'+this.id+'/templateSummary'})
192
       }
192
       }
193
     },
193
     },
194
     changePatient(value) {
194
     changePatient(value) {
333
         this.$router.push({
333
         this.$router.push({
334
           path: '/patients/patient/' + this.id + '/proeducation'
334
           path: '/patients/patient/' + this.id + '/proeducation'
335
         })
335
         })
336
-      }else if (patientKey == '1-9'){
337
-        this.$router.push({path:'/patients/patients/'+2448+'/templateSummary'})
338
       }
336
       }
339
     
337
     
340
      }else{
338
      }else{

File diff suppressed because it is too large
+ 713 - 83
src/xt_pages/user/templateSummary.vue