Sfoglia il codice sorgente

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

see999 3 anni fa
parent
commit
03d270f5de

+ 7 - 16
src/xt_pages/dialysis/dialysisDoctorAdvice.vue Vedi File

24
     </div>
24
     </div>
25
     <div class="app-container">
25
     <div class="app-container">
26
       <div class="filter-container">
26
       <div class="filter-container">
27
-       <!-- <el-autocomplete
28
-            style="margin:16px 5px"
29
-            popper-class="my-autocomplete"
30
-            v-model.trim="listQuery.keyword"
31
-            :fetch-suggestions="querySearchAsync"
32
-            :trigger-on-focus="false"
33
-            placeholder="病人名字"
34
-            @select="handleSelect"
35
-    >
36
-        <i class="el-icon-search el-input__icon" slot="suffix"> </i>
37
-        <template slot-scope="{ item }">
38
-            <div class="name">{{ item.name }}</div>
39
-        </template>
40
-     </el-autocomplete> -->
41
       <el-autocomplete
27
       <el-autocomplete
42
           class="checkSearch"
28
           class="checkSearch"
43
           popper-class="my-autocomplete"
29
           popper-class="my-autocomplete"
52
             <div class="name">{{ item.name }}</div>
38
             <div class="name">{{ item.name }}</div>
53
           </template>
39
           </template>
54
        </el-autocomplete>
40
        </el-autocomplete>
55
-       
41
+       <el-button type="primary" @click="toSeach">搜索</el-button>
56
       </div>
42
       </div>
57
       <div class="cell clearfix">
43
       <div class="cell clearfix">
58
         <label class="title">
44
         <label class="title">
433
       deliveryWay:[],
419
       deliveryWay:[],
434
       delivery_way:0,
420
       delivery_way:0,
435
       patient_id:0,
421
       patient_id:0,
422
+      org_id:0,
436
     };
423
     };
437
   },
424
   },
438
   created() {
425
   created() {
454
     this.getTemplateInfo();
441
     this.getTemplateInfo();
455
     this.requestSchedualDoctors(this.time)
442
     this.requestSchedualDoctors(this.time)
456
     // this.template_id = this.$store.getters.xt_user.template_info.template_id;
443
     // this.template_id = this.$store.getters.xt_user.template_info.template_id;
444
+  
457
   },
445
   },
458
   methods: {
446
   methods: {
459
     getTemplateInfo() {
447
     getTemplateInfo() {
1017
         return searchArray
1005
         return searchArray
1018
       },
1006
       },
1019
      handleSelect(val) {
1007
      handleSelect(val) {
1020
-       console.log("val23323232322323",val.id)
1021
        this.patient_id = val.id
1008
        this.patient_id = val.id
1022
        this.requestSchedualDoctors(this.time)
1009
        this.requestSchedualDoctors(this.time)
1023
       },
1010
       },
1011
+     toSeach(){
1012
+       this.patient_id = 0
1013
+       this.requestSchedualDoctors(this.time)
1014
+     }
1024
   },
1015
   },
1025
   components: {
1016
   components: {
1026
     BreadCrumb
1017
     BreadCrumb

+ 4 - 4
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Vedi File

286
                                         </el-table-column>
286
                                         </el-table-column>
287
                                         <el-table-column label="库存" width="60">
287
                                         <el-table-column label="库存" width="60">
288
                                             <template slot-scope="scope">
288
                                             <template slot-scope="scope">
289
-                                              <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088">
289
+                                              <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245">
290
                                                <span v-if="scope.row.count/scope.row.min_number>0">{{Math.floor(scope.row.count/scope.row.min_number)}}{{scope.row.max_unit}}</span>
290
                                                <span v-if="scope.row.count/scope.row.min_number>0">{{Math.floor(scope.row.count/scope.row.min_number)}}{{scope.row.max_unit}}</span>
291
                                                <span v-if="scope.row.count%scope.row.min_number>0"> {{scope.row.count%scope.row.min_number}}{{scope.row.min_unit}}</span>
291
                                                <span v-if="scope.row.count%scope.row.min_number>0"> {{scope.row.count%scope.row.min_number}}{{scope.row.min_unit}}</span>
292
                                               </span>
292
                                               </span>
383
                                         </el-table-column>
383
                                         </el-table-column>
384
                                         <el-table-column label="库存" width="40">
384
                                         <el-table-column label="库存" width="40">
385
                                             <template slot-scope="scope">
385
                                             <template slot-scope="scope">
386
-                                              <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088">
386
+                                              <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245">
387
                                                    {{scope.row.stock_count}}
387
                                                    {{scope.row.stock_count}}
388
                                               </span>
388
                                               </span>
389
                                               <span v-else> {{ scope.row.total }}</span>
389
                                               <span v-else> {{ scope.row.total }}</span>
2658
       selectDrugs(selection, row) {
2658
       selectDrugs(selection, row) {
2659
         console.log('selection', selection)
2659
         console.log('selection', selection)
2660
         console.log('row', row)
2660
         console.log('row', row)
2661
-        if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id == 3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10088 ){
2661
+        if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id == 3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10088 || this.org_id == 10245){
2662
             if (row.count <= 0) {
2662
             if (row.count <= 0) {
2663
               if (selection) {
2663
               if (selection) {
2664
                 selection.forEach(row => {
2664
                 selection.forEach(row => {
2933
       },
2933
       },
2934
       selectChange(selection, row) {
2934
       selectChange(selection, row) {
2935
         console.log('row', row)
2935
         console.log('row', row)
2936
-        if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10088){
2936
+        if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10088 || this.org_id ==10245 ){
2937
            if (row.stock_count <= 0) {
2937
            if (row.stock_count <= 0) {
2938
             if (row.type == 3) {
2938
             if (row.type == 3) {
2939
               if (selection) {
2939
               if (selection) {

+ 1 - 1
src/xt_pages/stock/cancelStockOrderAdd.vue Vedi File

283
 
283
 
284
 <script>
284
 <script>
285
 import { uParseTime } from "@/utils/tools";
285
 import { uParseTime } from "@/utils/tools";
286
-import { getCancelStockConfig, postCancelStock,GetAllConfig,GetAllGoodInfoByID,postSearchGoodList,getStockBatchNumber } from "@/api/stock";
286
+import { postCancelStock,GetAllConfig,GetAllGoodInfoByID,postSearchGoodList,getStockBatchNumber } from "@/api/stock";
287
 import BreadCrumb from "../components/bread-crumb";
287
 import BreadCrumb from "../components/bread-crumb";
288
 import StockInDialog from './Dialog/stockInDialog'
288
 import StockInDialog from './Dialog/stockInDialog'
289
 
289
 

+ 4 - 2
src/xt_pages/stock/drugs/cancelDrugStockOrderEdit.vue Vedi File

427
           }
427
           }
428
         }
428
         }
429
         return name;
429
         return name;
430
-      }, handleEdit: function(index, row) {
430
+      }, 
431
+      handleEdit: function(index, row) {
431
         this.canCelShow = false
432
         this.canCelShow = false
432
         const tempObj = {}
433
         const tempObj = {}
433
         tempObj['id'] = 0
434
         tempObj['id'] = 0
676
             return
677
             return
677
          }
678
          }
678
          this.getDrugBatchNumber(val.id)
679
          this.getDrugBatchNumber(val.id)
680
+         console.log("val2323232323223",val)
679
          for(let i=0;i<this.recordInfo.recordData.length;i++){
681
          for(let i=0;i<this.recordInfo.recordData.length;i++){
680
            if(i == this.currentIndex){
682
            if(i == this.currentIndex){
681
              this.recordInfo.recordData[i].drug_id  = val.id
683
              this.recordInfo.recordData[i].drug_id  = val.id
683
              this.recordInfo.recordData[i].drug_type = val.drug_type
685
              this.recordInfo.recordData[i].drug_type = val.drug_type
684
              this.recordInfo.recordData[i].name  = val.dose +val.dose_unit+"*"+val.min_number+ val.min_unit+"/"+val.max_unit
686
              this.recordInfo.recordData[i].name  = val.dose +val.dose_unit+"*"+val.min_number+ val.min_unit+"/"+val.max_unit
685
              this.recordInfo.recordData[i].last_price = val.last_price
687
              this.recordInfo.recordData[i].last_price = val.last_price
686
-             this.recordInfo.recordData[i].price = val.price
688
+             this.recordInfo.recordData[i].price = val.last_price
687
              this.recordInfo.recordData[i].manufacturer =  val.manufacturer
689
              this.recordInfo.recordData[i].manufacturer =  val.manufacturer
688
              this.recordInfo.recordData[i].number =  val.number
690
              this.recordInfo.recordData[i].number =  val.number
689
              this.recordInfo.recordData[i].max_unit = val.max_unit
691
              this.recordInfo.recordData[i].max_unit = val.max_unit

+ 1 - 2
src/xt_pages/stock/drugs/drugDamaged.vue Vedi File

130
               </el-table-column>
130
               </el-table-column>
131
               <el-table-column prop="address" label="损耗数量" align="center">
131
               <el-table-column prop="address" label="损耗数量" align="center">
132
                 <template slot-scope="scope">
132
                 <template slot-scope="scope">
133
-                  <span v-if="scope.row.last_stock_max_number>0">{{scope.row.last_stock_max_number}}{{scope.row.warehousing_unit}}</span>
134
-                   <span v-if="scope.row.last_stock_min_number>0">{{scope.row.last_stock_min_number}}{{scope.row.min_unit}}</span>
133
+                  <span v-if="scope.row.count>0">{{scope.row.count}}{{scope.row.min_unit}}</span>
135
                 </template>
134
                 </template>
136
               </el-table-column>
135
               </el-table-column>
137
               <el-table-column prop="address" label="药损比" align="center">
136
               <el-table-column prop="address" label="药损比" align="center">

+ 2 - 3
src/xt_pages/stock/drugs/drugStockOutOrderEdit.vue Vedi File

557
               }
557
               }
558
             }
558
             }
559
             for(let i=0;i<this.recordInfo.recordData.length;i++){
559
             for(let i=0;i<this.recordInfo.recordData.length;i++){
560
+              this.recordInfo.recordData[i].price = this.recordInfo.recordData[i].price.toString()
560
               if(this.recordInfo.recordData[i].dealer == ""){
561
               if(this.recordInfo.recordData[i].dealer == ""){
561
                 this.recordInfo.recordData[i].dealer = 0
562
                 this.recordInfo.recordData[i].dealer = 0
562
               }
563
               }
585
             const params = {
586
             const params = {
586
               'stockOut': this.recordInfo.recordData
587
               'stockOut': this.recordInfo.recordData
587
             }
588
             }
588
-          
589
+            console.log("param23322323233222323",params)
589
           
590
           
590
             editDrugWarehouseoutInfo(params, this.warehouse_out_time, this.$route.query.id, this.$route.query.type, this.form.manufacturer, this.form.dealer).then(response => {
591
             editDrugWarehouseoutInfo(params, this.warehouse_out_time, this.$route.query.id, this.$route.query.type, this.form.manufacturer, this.form.dealer).then(response => {
591
               if (response.data.state == 0) {
592
               if (response.data.state == 0) {
645
                 response.data.data.list[i].manufacturer = response.data.data.list[i].drug.manufacturer
646
                 response.data.data.list[i].manufacturer = response.data.data.list[i].drug.manufacturer
646
               }
647
               }
647
               
648
               
648
-             
649
               response.data.data.list[i].price = response.data.data.list[i].price.toString()
649
               response.data.data.list[i].price = response.data.data.list[i].price.toString()
650
               response.data.data.list[i].retail_price = response.data.data.list[i].price.toString()
650
               response.data.data.list[i].retail_price = response.data.data.list[i].price.toString()
651
               response.data.data.list[i].count = response.data.data.list[i].count.toString()
651
               response.data.data.list[i].count = response.data.data.list[i].count.toString()
657
              
657
              
658
               response.data.data.list[i].product_date = this.getTime(response.data.data.list[i].product_date,"{y}-{h}-{d}")
658
               response.data.data.list[i].product_date = this.getTime(response.data.data.list[i].product_date,"{y}-{h}-{d}")
659
               response.data.data.list[i].expiry_date = this.getTime(response.data.data.list[i].expiry_date,"{y}-{h}-{d}")
659
               response.data.data.list[i].expiry_date = this.getTime(response.data.data.list[i].expiry_date,"{y}-{h}-{d}")
660
-              
661
               this.recordInfo.recordData.push(response.data.data.list[i])
660
               this.recordInfo.recordData.push(response.data.data.list[i])
662
             }
661
             }
663
              for(let j=0;j<this.recordInfo.recordData.length;j++){
662
              for(let j=0;j<this.recordInfo.recordData.length;j++){

+ 1 - 0
src/xt_pages/stock/drugs/inventory.vue Vedi File

317
                         batch_number:item.batch_number,
317
                         batch_number:item.batch_number,
318
                         expiry_date:item.expiry_date,
318
                         expiry_date:item.expiry_date,
319
                         type:0,
319
                         type:0,
320
+                        
320
                       }
321
                       }
321
                     }
322
                     }
322
                   })
323
                   })

+ 0 - 18
src/xt_pages/stock/drugs/inventoryDetails.vue Vedi File

2
     <div>
2
     <div>
3
         <div style="display: flex;align-items: center;justify-content: space-between;margin-bottom:10px;">
3
         <div style="display: flex;align-items: center;justify-content: space-between;margin-bottom:10px;">
4
             <div>
4
             <div>
5
-                <!-- 耗材类别:
6
-                <el-select v-model="value" size="small" placeholder="请选择">
7
-                    <el-option
8
-                    v-for="item in options"
9
-                    :key="item.value"
10
-                    :label="item.label"
11
-                    :value="item.value">
12
-                    </el-option>
13
-                </el-select>
14
-                停用状态:
15
-                <el-select v-model="value" size="small" placeholder="请选择">
16
-                    <el-option
17
-                    v-for="item in options"
18
-                    :key="item.value"
19
-                    :label="item.label"
20
-                    :value="item.value">
21
-                    </el-option>
22
-                </el-select> -->
23
                 <el-input
5
                 <el-input
24
                 size="small"
6
                 size="small"
25
                 style="width: 200px;margin-left:10px;"
7
                 style="width: 200px;margin-left:10px;"

+ 36 - 36
src/xt_pages/stock/drugs/query.vue Vedi File

77
           >搜索
77
           >搜索
78
           </el-button>
78
           </el-button>
79
       </div>
79
       </div>
80
-      
80
+
81
        <el-table :data="tableList" border style="width: 100%">
81
        <el-table :data="tableList" border style="width: 100%">
82
-      
82
+
83
         <el-table-column prop="drug_type" label="药品类型" width="180" align="center">
83
         <el-table-column prop="drug_type" label="药品类型" width="180" align="center">
84
            <template slot-scope="scope">
84
            <template slot-scope="scope">
85
              {{getDrugType(scope.row.drug_type)}}
85
              {{getDrugType(scope.row.drug_type)}}
107
         </el-table-column>
107
         </el-table-column>
108
         <el-table-column prop="drug_name" label="入库数量" align="center">
108
         <el-table-column prop="drug_name" label="入库数量" align="center">
109
            <template slot-scope="scope">
109
            <template slot-scope="scope">
110
-            <span v-if="getWarehoseInfo(scope.row.drug_warehouse_info)!=0">{{getWarehoseInfo(scope.row.drug_warehouse_info)}}{{scope.row.max_unit}}</span> 
110
+            <span v-if="getWarehoseInfo(scope.row.drug_warehouse_info)!=0">{{getWarehoseInfo(scope.row.drug_warehouse_info)}}{{scope.row.max_unit}}</span>
111
            </template>
111
            </template>
112
         </el-table-column>
112
         </el-table-column>
113
         <el-table-column prop="drug_name" label="出库数量" align="center">
113
         <el-table-column prop="drug_name" label="出库数量" align="center">
114
            <template slot-scope="scope">
114
            <template slot-scope="scope">
115
-             <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10138 || org_id ==10028 || org_id == 10243 || org_id == 10088">
116
-                <span> 
115
+             <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10138 || org_id ==10028 || org_id == 10243 || org_id == 10088 || org_id == 10245">
116
+                <span>
117
                  {{getOutFlush(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_cancel_stock_info)}}
117
                  {{getOutFlush(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_cancel_stock_info)}}
118
-                </span> 
118
+                </span>
119
              </span>
119
              </span>
120
              <span v-else>{{getOutCount(scope.row.id)+getAutoCount(scope.row.id)}}{{scope.row.max_unit}}</span>
120
              <span v-else>{{getOutCount(scope.row.id)+getAutoCount(scope.row.id)}}{{scope.row.max_unit}}</span>
121
            </template>
121
            </template>
123
         <el-table-column prop="drug_name" label="剩余库存量" align="center">
123
         <el-table-column prop="drug_name" label="剩余库存量" align="center">
124
            <template slot-scope="scope">
124
            <template slot-scope="scope">
125
             <div v-if="getWarehoseInfo(scope.row.drug_warehouse_info)!=0">
125
             <div v-if="getWarehoseInfo(scope.row.drug_warehouse_info)!=0">
126
-               <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10138 || org_id == 10028 || org_id == 10243 || org_id == 10088">
126
+               <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10138 || org_id == 10028 || org_id == 10243 || org_id == 10088 || org_id == 10245">
127
                 {{ getOverFlushInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)?getOverFlushInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number):0}}
127
                 {{ getOverFlushInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)?getOverFlushInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number):0}}
128
                </span>
128
                </span>
129
-               
129
+
130
                <span v-else>{{getWarehoseInfo(scope.row.drug_warehouse_info) - getOutCount(scope.row.id) - getAutoCount(scope.row.id)}}{{scope.row.max_unit}} </span>
130
                <span v-else>{{getWarehoseInfo(scope.row.drug_warehouse_info) - getOutCount(scope.row.id) - getAutoCount(scope.row.id)}}{{scope.row.max_unit}} </span>
131
             </div>
131
             </div>
132
            </template>
132
            </template>
148
           </template>
148
           </template>
149
         </el-table-column>
149
         </el-table-column>
150
        </el-table>
150
        </el-table>
151
-       
151
+
152
     <el-pagination
152
     <el-pagination
153
         @size-change="handleSizeChange"
153
         @size-change="handleSizeChange"
154
         @current-change="handleCurrentChange"
154
         @current-change="handleCurrentChange"
194
       this.getlist()
194
       this.getlist()
195
       var drugCategory = getDictionaryDataConfig('system','drug_category')
195
       var drugCategory = getDictionaryDataConfig('system','drug_category')
196
       this.drugCategory.push(...drugCategory)
196
       this.drugCategory.push(...drugCategory)
197
-      var drugTypeList = getDictionaryDataConfig('system','drug_type') 
197
+      var drugTypeList = getDictionaryDataConfig('system','drug_type')
198
       this.drugTypeList.push(...drugTypeList)
198
       this.drugTypeList.push(...drugTypeList)
199
       this.org_id =  this.$store.getters.xt_user.org.id
199
       this.org_id =  this.$store.getters.xt_user.org.id
200
       console.log("机构ID",this.org_id)
200
       console.log("机构ID",this.org_id)
201
       this.getDrugCountList()
201
       this.getDrugCountList()
202
-     
203
-      
202
+
203
+
204
     },
204
     },
205
     components: {
205
     components: {
206
       SettingDialog,
206
       SettingDialog,
213
           { path: '/stock/drugs/stock/query', name: '药品库存查询' }
213
           { path: '/stock/drugs/stock/query', name: '药品库存查询' }
214
         ],
214
         ],
215
         keywords: '',
215
         keywords: '',
216
-       
216
+
217
         multipleSelection: [],
217
         multipleSelection: [],
218
         signAndWeighBoxPatients: 'sign-and-weigh-box-patients',
218
         signAndWeighBoxPatients: 'sign-and-weigh-box-patients',
219
         start_time: '',
219
         start_time: '',
279
                for(let z=0;z<list[i].drug_cancel_stock_info.length;z++){
279
                for(let z=0;z<list[i].drug_cancel_stock_info.length;z++){
280
                  if(list[i].drug_cancel_stock_info[z].max_unit == list[i].max_unit){
280
                  if(list[i].drug_cancel_stock_info[z].max_unit == list[i].max_unit){
281
                    list[i].drug_cancel_stock_info[z].count = list[i].drug_cancel_stock_info[z].count * list[i].min_number
281
                    list[i].drug_cancel_stock_info[z].count = list[i].drug_cancel_stock_info[z].count * list[i].min_number
282
-                 } 
282
+                 }
283
                }
283
                }
284
              }
284
              }
285
              console.log("列表list232323323232323223",list)
285
              console.log("列表list232323323232323223",list)
287
              var total = response.data.data.total
287
              var total = response.data.data.total
288
              this.total = total
288
              this.total = total
289
              this.manufacturerList = response.data.data.manufacturerList
289
              this.manufacturerList = response.data.data.manufacturerList
290
-           
290
+
291
            }
291
            }
292
         })
292
         })
293
       },
293
       },
337
           }
337
           }
338
         }
338
         }
339
       },
339
       },
340
-    
340
+
341
       getSpecificationName: function(id) {
341
       getSpecificationName: function(id) {
342
         let name = ''
342
         let name = ''
343
         for (let i = 0; i < this.goodInfo.length; i++) {
343
         for (let i = 0; i < this.goodInfo.length; i++) {
373
       calculate: function(val) {
373
       calculate: function(val) {
374
         return Math.round(parseFloat(val) * 100) / 100
374
         return Math.round(parseFloat(val) * 100) / 100
375
       },
375
       },
376
-  
376
+
377
     startTimeChange: function(val) {
377
     startTimeChange: function(val) {
378
       window.sessionStorage.removeItem('start_time')
378
       window.sessionStorage.removeItem('start_time')
379
       var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
379
       var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
381
         this.$message.error("开始时间不能大于结束时间");
381
         this.$message.error("开始时间不能大于结束时间");
382
         this.start_time = "";
382
         this.start_time = "";
383
       } else {
383
       } else {
384
-     
384
+
385
         this.getlist()
385
         this.getlist()
386
       }
386
       }
387
     },
387
     },
392
         this.$message.error("结束时间不能小于开始时间");
392
         this.$message.error("结束时间不能小于开始时间");
393
         this.end_time = "";
393
         this.end_time = "";
394
       } else {
394
       } else {
395
-       
395
+
396
         this.getlist()
396
         this.getlist()
397
       }
397
       }
398
-     
398
+
399
     },
399
     },
400
       stockInCount: function(row) {
400
       stockInCount: function(row) {
401
         let total = 0
401
         let total = 0
430
       search: function() {
430
       search: function() {
431
         this.getlist()
431
         this.getlist()
432
         this.getDrugCountList()
432
         this.getDrugCountList()
433
-      }, 
433
+      },
434
       setting: function() {
434
       setting: function() {
435
         this.$refs.dialog.show()
435
         this.$refs.dialog.show()
436
       },
436
       },
446
           this.tableList[i].outCount = this.getWarehouseOutInfo(this.tableList[i].drug_warehouse_out,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
446
           this.tableList[i].outCount = this.getWarehouseOutInfo(this.tableList[i].drug_warehouse_out,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
447
           this.tableList[i].overplusCount =  this.getOverFlushInfo(this.tableList[i].drug_warehouse_info,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
447
           this.tableList[i].overplusCount =  this.getOverFlushInfo(this.tableList[i].drug_warehouse_info,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
448
          }
448
          }
449
-       
449
+
450
          console.log("hhhhhhhadhfadf 列表",this.tableList)
450
          console.log("hhhhhhhadhfadf 列表",this.tableList)
451
          import('@/vendor/Export2Excel').then(excel => {
451
          import('@/vendor/Export2Excel').then(excel => {
452
          const tHeader = ['序号', '药品类型', '药品名称','规格型号&单位','进货单价','厂家','入库数量','出库数量','剩余库存量']
452
          const tHeader = ['序号', '药品类型', '药品名称','规格型号&单位','进货单价','厂家','入库数量','出库数量','剩余库存量']
453
          const filterVal = ['index', 'drug_type_name', 'drug_name','unit','last_price','manufacturer_name','inCount','outCount','overplusCount']
453
          const filterVal = ['index', 'drug_type_name', 'drug_name','unit','last_price','manufacturer_name','inCount','outCount','overplusCount']
454
-       
455
-        
454
+
455
+
456
          const data = this.formatJson(filterVal, this.tableList)
456
          const data = this.formatJson(filterVal, this.tableList)
457
          excel.export_json_to_excel({
457
          excel.export_json_to_excel({
458
            header: tHeader,
458
            header: tHeader,
483
         });
483
         });
484
       },
484
       },
485
       getDrugType(id){
485
       getDrugType(id){
486
-       
486
+
487
         var name = ""
487
         var name = ""
488
         for(let i=0;i<this.drugTypeList.length;i++){
488
         for(let i=0;i<this.drugTypeList.length;i++){
489
            if(this.drugTypeList[i].id == id){
489
            if(this.drugTypeList[i].id == id){
491
              name = this.drugTypeList[i].name
491
              name = this.drugTypeList[i].name
492
            }
492
            }
493
         }
493
         }
494
-     
494
+
495
         return name
495
         return name
496
       },
496
       },
497
       getManufacturerList(id){
497
       getManufacturerList(id){
630
             min_str =  total%min_number + min_unit
630
             min_str =  total%min_number + min_unit
631
           }
631
           }
632
         }
632
         }
633
-    
633
+
634
         return str + min_str
634
         return str + min_str
635
       },
635
       },
636
-  
636
+
637
       getCountOne(drug_id){
637
       getCountOne(drug_id){
638
         var count= 0
638
         var count= 0
639
         for(let i=0;i<this.drugOutList.length;i++){
639
         for(let i=0;i<this.drugOutList.length;i++){
644
         return count
644
         return count
645
       },
645
       },
646
      getCountTwo(drug_id,min_number,max_unit,min_unit){
646
      getCountTwo(drug_id,min_number,max_unit,min_unit){
647
-      
647
+
648
        var total_count = 0
648
        var total_count = 0
649
        var out_count = 0
649
        var out_count = 0
650
        var count = 0
650
        var count = 0
658
        if(parseInt(count/min_number)!=0){
658
        if(parseInt(count/min_number)!=0){
659
          str = parseInt(count/min_number) + max_unit
659
          str = parseInt(count/min_number) + max_unit
660
        }
660
        }
661
-     
661
+
662
        if((count%min_number)!=0){
662
        if((count%min_number)!=0){
663
          str_min = count%min_number + min_unit
663
          str_min = count%min_number + min_unit
664
        }
664
        }
683
         if(total == 0){
683
         if(total == 0){
684
            total = ""
684
            total = ""
685
         }
685
         }
686
-       
686
+
687
         return total
687
         return total
688
       },
688
       },
689
       getOverFlushInfo(arr,max_unit,min_unit,min_number){
689
       getOverFlushInfo(arr,max_unit,min_unit,min_number){
690
-       
690
+
691
          var max_str=  ""
691
          var max_str=  ""
692
          var min_str = ""
692
          var min_str = ""
693
          var total = 0
693
          var total = 0
711
            if(total%min_number!=0){
711
            if(total%min_number!=0){
712
               min_str = total%min_number + min_unit
712
               min_str = total%min_number + min_unit
713
            }
713
            }
714
-         
714
+
715
          }
715
          }
716
         return max_str + min_str
716
         return max_str + min_str
717
       },
717
       },
724
             total += parseInt(arr[i].count)
724
             total += parseInt(arr[i].count)
725
           }
725
           }
726
         }
726
         }
727
-      
727
+
728
         if (total < min_number){
728
         if (total < min_number){
729
            min_str = total + min_unit
729
            min_str = total + min_unit
730
          }
730
          }
739
            if(total%min_number!=0){
739
            if(total%min_number!=0){
740
               min_str = total%min_number + min_unit
740
               min_str = total%min_number + min_unit
741
            }
741
            }
742
-         
742
+
743
          }
743
          }
744
         return max_str + min_str
744
         return max_str + min_str
745
 
745
 
793
          return str + str_min
793
          return str + str_min
794
       },
794
       },
795
       getOutFlush(info,max_unit,min_unit,min_number,cancel_info){
795
       getOutFlush(info,max_unit,min_unit,min_number,cancel_info){
796
-        
796
+
797
         var str = ""
797
         var str = ""
798
         var str_min = ""
798
         var str_min = ""
799
         //总库存
799
         //总库存

+ 24 - 23
src/xt_pages/stock/inventory.vue Vedi File

62
                     {{scope.row.manufacturer_name}}
62
                     {{scope.row.manufacturer_name}}
63
                   </template> 
63
                   </template> 
64
               </el-table-column>
64
               </el-table-column>
65
-              <el-table-column prop="name" label="盘点前数量" width="100"  align="center">
65
+              <el-table-column prop="name" label="盘点前数量" width="120"  align="center">
66
                 <template slot-scope="scope">
66
                 <template slot-scope="scope">
67
                     <span><el-input style="width:80px" v-model="scope.row.stock_count" :disabled="true"></el-input>{{scope.row.max_unit}}</span> 
67
                     <span><el-input style="width:80px" v-model="scope.row.stock_count" :disabled="true"></el-input>{{scope.row.max_unit}}</span> 
68
                   </template> 
68
                   </template> 
69
               </el-table-column>
69
               </el-table-column>
70
 
70
 
71
-             <el-table-column prop="name" label="盘点后数量" width="100"  align="center">
71
+             <el-table-column prop="name" label="盘点后数量" width="120"  align="center">
72
                 <template slot-scope="scope">
72
                 <template slot-scope="scope">
73
                   <el-input style="width:80px" v-model="scope.row.last_stock_count"></el-input>
73
                   <el-input style="width:80px" v-model="scope.row.last_stock_count"></el-input>
74
                  </template> 
74
                  </template> 
272
           this.page = val
272
           this.page = val
273
           this.getlist()
273
           this.getlist()
274
         },
274
         },
275
-   getlist(){
276
-    var params = {
277
-          keyword:this.searchKey,
278
-          start_time:this.start_time,
279
-          end_time:this.end_time,
280
-          inventory_status:this.inventory_status, 
281
-          page:this.page,
282
-          limit:this.limit,
283
-         }
284
-        console.log("我爱你中国parasm",params)
285
-       getInventoryList(params).then(response=>{
286
-          if(response.data.state ==1 ){
287
-           var list =  response.data.data.list
288
-           console.log("列表23232323232",list)
289
-           this.tableList = list
290
-           var total = response.data.data.total
291
-           this.total = total
292
-           this.doctorList =  response.data.data.doctorlist
275
+    getlist(){
276
+      var params = {
277
+            keyword:this.searchKey,
278
+            start_time:this.start_time,
279
+            end_time:this.end_time,
280
+            inventory_status:this.inventory_status, 
281
+            page:this.page,
282
+            limit:this.limit,
293
           }
283
           }
294
-       })
295
-     },
284
+          console.log("我爱你中国parasm",params)
285
+        getInventoryList(params).then(response=>{
286
+            if(response.data.state ==1 ){
287
+            var list =  response.data.data.list
288
+            console.log("列表23232323232",list)
289
+            this.tableList = list
290
+            var total = response.data.data.total
291
+            this.total = total
292
+            this.doctorList =  response.data.data.doctorlist
293
+            }
294
+        })
295
+      },
296
      getChecker(id){
296
      getChecker(id){
297
        var name = ""
297
        var name = ""
298
        for(let i=0;i<this.doctorList.length;i++){
298
        for(let i=0;i<this.doctorList.length;i++){
452
           
452
           
453
             for(let i=0;i<this.WarehouseList.length;i++){
453
             for(let i=0;i<this.WarehouseList.length;i++){
454
               for(let j=0;j<newList.length;j++){
454
               for(let j=0;j<newList.length;j++){
455
-                if(this.WarehouseList[i].drug_id == newList[j].drug_id){
455
+                if(this.WarehouseList[i].good_id == newList[j].good_id){
456
                     newList[j].child.push(this.WarehouseList[i])
456
                     newList[j].child.push(this.WarehouseList[i])
457
                 }
457
                 }
458
               }
458
               }
459
             }
459
             }
460
           console.log("newList2333232323232",newList)
460
           console.log("newList2333232323232",newList)
461
+          
461
           this.tableData = newList
462
           this.tableData = newList
462
           this.showSearch = false
463
           this.showSearch = false
463
           this.showTable = true
464
           this.showTable = true

+ 8 - 2
src/xt_pages/stock/inventoryDetails.vue Vedi File

117
            }
117
            }
118
           this.$router.push({path:'/stock/inventoryDetailPrint?ids='+this.ids})
118
           this.$router.push({path:'/stock/inventoryDetailPrint?ids='+this.ids})
119
         },
119
         },
120
-        handleSizeChange(){},
121
-        handleCurrentChange(){},
120
+        handleSizeChange(val){
121
+          this.limit = val
122
+          this.getlist()
123
+        },
124
+        handleCurrentChange(val){
125
+          this.page = val
126
+          this.getlist()
127
+        },
122
         getlist(){
128
         getlist(){
123
          var params = {
129
          var params = {
124
             keyword:this.searchKey,
130
             keyword:this.searchKey,

+ 42 - 10
src/xt_pages/stock/stockDamaged.vue Vedi File

14
         type="primary"
14
         type="primary"
15
         icon="el-icon-search"
15
         icon="el-icon-search"
16
         @click="search">搜索</el-button>
16
         @click="search">搜索</el-button>
17
+
18
+         <el-date-picker
19
+          size="small"
20
+          v-model="start_time"
21
+          type="date"
22
+          style="margin-left:5px;width:140px;"
23
+          placeholder="选择日期"
24
+          @change="changeStartTime">
25
+          </el-date-picker>
26
+          <el-date-picker
27
+          size="small"
28
+          v-model="end_time"
29
+          type="date"
30
+          style="margin-left:5px;width:140px;"
31
+          placeholder="选择日期"
32
+          @change="changeEndTime">
33
+      </el-date-picker>
17
     </div>
34
     </div>
18
   
35
   
19
-    <el-table :data="tableList" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }" @selection-change="changePrice">
36
+    <el-table :data="tableList" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
20
         <el-table-column type="selection" width="55" align="center"> </el-table-column>
37
         <el-table-column type="selection" width="55" align="center"> </el-table-column>
38
+        <el-table-column  prop="date" label="报损日期" align="center">
39
+            <template slot-scope="scope">
40
+              {{getTime(scope.row.ctime)}}
41
+            </template>
42
+        </el-table-column>
21
         <el-table-column prop="date" label="耗材名称"  align="center">
43
         <el-table-column prop="date" label="耗材名称"  align="center">
22
           <template  slot-scope="scope">
44
           <template  slot-scope="scope">
23
             {{scope.row.good_name}}
45
             {{scope.row.good_name}}
276
             </el-col>
298
             </el-col>
277
             <el-col :span="8">
299
             <el-col :span="8">
278
               <el-form-item label="原因:">
300
               <el-form-item label="原因:">
279
-                  <el-select v-model="form.type" placeholder="请选择">
301
+                  <el-select v-model="form.type" placeholder="请选择" @change="changeReason">
280
                       <el-option
302
                       <el-option
281
                         v-for="item in reasonList"
303
                         v-for="item in reasonList"
282
                         :key="item.id"
304
                         :key="item.id"
730
           }
752
           }
731
         }
753
         }
732
         return count
754
         return count
755
+      },
756
+      changeReason(){
757
+
733
       },
758
       },
734
       toDamagedDetail(good_id){
759
       toDamagedDetail(good_id){
735
           var params = {
760
           var params = {
737
             warehousing_order:this.form.warehousing_order,
762
             warehousing_order:this.form.warehousing_order,
738
             type:this.form.type,
763
             type:this.form.type,
739
           }
764
           }
765
+          console.log("para2233232",params)
740
          getDamageDetailByGoodId(params).then(response=>{
766
          getDamageDetailByGoodId(params).then(response=>{
741
             if(response.data.state == 1){
767
             if(response.data.state == 1){
742
               var list = response.data.data.list
768
               var list = response.data.data.list
743
               console.log("list233232",list)
769
               console.log("list233232",list)
744
-              this.modifyDialogVisible = true
745
-              this.good_name = list[0].good_name
746
-              this.price = list[0].buy_price
747
-              this.good_id = list[0].good_id
748
-              this.goodList = []
749
-              this.goodList = list
750
-              this.damageList = []
751
-              this.damageList = response.data.data.damageList
770
+              if (list.length>0){
771
+                this.modifyDialogVisible = true
772
+                this.good_name = list[0].good_name
773
+                this.price = list[0].buy_price
774
+                this.good_id = list[0].good_id
775
+                this.goodList = []
776
+                this.goodList = list
777
+                this.damageList = []
778
+                this.damageList = response.data.data.damageList
779
+              }else{
780
+                this.damageList = []
781
+                this.goodList = []
782
+              }
783
+            
752
             }
784
             }
753
          })
785
          })
754
       },
786
       },

+ 11 - 11
src/xt_pages/stock/stockQuery.vue Vedi File

108
        </el-table-column>
108
        </el-table-column>
109
        <el-table-column label="出库数量" align="center">
109
        <el-table-column label="出库数量" align="center">
110
          <template slot-scope="scope">
110
          <template slot-scope="scope">
111
-          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088">
111
+          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id== 10245">
112
             <span>
112
             <span>
113
               {{getWareInfo(scope.row.xt_warehouse_info) - getOverFlushInfo(scope.row.xt_warehouse_info) + getCancelSotckInfo(scope.row.cancel_stock_info) }}
113
               {{getWareInfo(scope.row.xt_warehouse_info) - getOverFlushInfo(scope.row.xt_warehouse_info) + getCancelSotckInfo(scope.row.cancel_stock_info) }}
114
             </span>
114
             </span>
115
           </span>
115
           </span>
116
-          <span v-else>{{getAutoCount(scope.row.id) + getOutCount(scope.row.id)}} </span> 
116
+          <span v-else>{{getAutoCount(scope.row.id) + getOutCount(scope.row.id)}} </span>
117
          </template>
117
          </template>
118
        </el-table-column>
118
        </el-table-column>
119
 
119
 
120
        <el-table-column label="剩余库存量" align="center">
120
        <el-table-column label="剩余库存量" align="center">
121
          <template slot-scope="scope">
121
          <template slot-scope="scope">
122
-          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088">{{getOverFlushInfo(scope.row.xt_warehouse_info)}}</span>
123
-          <span v-else>{{getWareInfo(scope.row.xt_warehouse_info) - getAutoCount(scope.row.id) - getOutCount(scope.row.id) + getCancelCount(scope.row.id) }}</span> 
122
+          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088 || org_id == 10245">{{getOverFlushInfo(scope.row.xt_warehouse_info)}}</span>
123
+          <span v-else>{{getWareInfo(scope.row.xt_warehouse_info) - getAutoCount(scope.row.id) - getOutCount(scope.row.id) + getCancelCount(scope.row.id) }}</span>
124
          </template>
124
          </template>
125
        </el-table-column>
125
        </el-table-column>
126
        <el-table-column label="操作" align="center" width="260px">
126
        <el-table-column label="操作" align="center" width="260px">
171
 
171
 
172
     var start_time =  window.sessionStorage.getItem('start_time')
172
     var start_time =  window.sessionStorage.getItem('start_time')
173
     var end_time =  window.sessionStorage.getItem('end_time')
173
     var end_time =  window.sessionStorage.getItem('end_time')
174
-   
174
+
175
     if(start_time !=null){
175
     if(start_time !=null){
176
       this.start_time = start_time
176
       this.start_time = start_time
177
     }
177
     }
221
     };
221
     };
222
   },
222
   },
223
   methods: {
223
   methods: {
224
-  
224
+
225
     GetAllGoodType: function() {
225
     GetAllGoodType: function() {
226
       GetAllGoodType().then(response => {
226
       GetAllGoodType().then(response => {
227
         if (response.data.state == 0) {
227
         if (response.data.state == 0) {
259
       this.limit = val;
259
       this.limit = val;
260
       this.getlist()
260
       this.getlist()
261
       this.getStockDrugCount()
261
       this.getStockDrugCount()
262
-      
262
+
263
     },
263
     },
264
     handleCurrentChange(val) {
264
     handleCurrentChange(val) {
265
       this.page = val;
265
       this.page = val;
335
          const tHeader = ['耗材类型', '耗材名称', '规格&单位','进货单价','生产商','入库数量','出库数量','库存剩余量']
335
          const tHeader = ['耗材类型', '耗材名称', '规格&单位','进货单价','生产商','入库数量','出库数量','库存剩余量']
336
          const filterVal = ['type_name', 'good_name', 'unit','buy_price','prodect_name','inCount','outCount','overplus']
336
          const filterVal = ['type_name', 'good_name', 'unit','buy_price','prodect_name','inCount','outCount','overplus']
337
 
337
 
338
-       
338
+
339
          for(let i=0;i<this.tableList.length;i++){
339
          for(let i=0;i<this.tableList.length;i++){
340
            this.tableList[i].type_name = this.getGoodType(this.tableList[i].good_type_id)
340
            this.tableList[i].type_name = this.getGoodType(this.tableList[i].good_type_id)
341
            this.tableList[i].unit = this.tableList[i].specification_name + "/" + this.tableList[i].packing_unit
341
            this.tableList[i].unit = this.tableList[i].specification_name + "/" + this.tableList[i].packing_unit
347
           }else{
347
           }else{
348
              this.tableList[i].overplus = 0
348
              this.tableList[i].overplus = 0
349
           }
349
           }
350
-          
350
+
351
          }
351
          }
352
          const data = this.formatJson(filterVal, this.tableList)
352
          const data = this.formatJson(filterVal, this.tableList)
353
          excel.export_json_to_excel({
353
          excel.export_json_to_excel({
429
        var specification_name = ""
429
        var specification_name = ""
430
        for(let i=0;i<this.manufacturerList.length;i++){
430
        for(let i=0;i<this.manufacturerList.length;i++){
431
           if(val.manufacturer == this.manufacturerList[i].id){
431
           if(val.manufacturer == this.manufacturerList[i].id){
432
-            manufacturer_name = this.manufacturerList[i].manufacturer_name  
432
+            manufacturer_name = this.manufacturerList[i].manufacturer_name
433
           }
433
           }
434
        }
434
        }
435
       specification_name = val.specification_name + "/" + val.packing_unit
435
       specification_name = val.specification_name + "/" + val.packing_unit
443
        var specification_name = ""
443
        var specification_name = ""
444
        for(let i=0;i<this.manufacturerList.length;i++){
444
        for(let i=0;i<this.manufacturerList.length;i++){
445
           if(val.manufacturer == this.manufacturerList[i].id){
445
           if(val.manufacturer == this.manufacturerList[i].id){
446
-            manufacturer_name = this.manufacturerList[i].manufacturer_name  
446
+            manufacturer_name = this.manufacturerList[i].manufacturer_name
447
           }
447
           }
448
        }
448
        }
449
       specification_name = val.specification_name + "/" + val.packing_unit
449
       specification_name = val.specification_name + "/" + val.packing_unit

+ 9 - 8
src/xt_pages/user/doctorAdvice.vue Vedi File

159
           </template>
159
           </template>
160
         </el-table-column>
160
         </el-table-column>
161
 
161
 
162
+     、
163
+        
162
         <el-table-column
164
         <el-table-column
163
-          label="开始时间"
165
+          label="开时间"
164
           width="180"
166
           width="180"
165
-          property="start_time"
167
+          property="created_time"
166
           align="center"
168
           align="center"
167
         >
169
         >
168
           <template slot-scope="scope">
170
           <template slot-scope="scope">
169
-            <span>{{
170
-              scope.row.start_time | parseTime("{y}-{m}-{d} {h}:{i}")
171
-            }}</span>
171
+            <span v-if="org_id == 10215">{{ scope.row.created_time | parseTime("{y}-{m}-{d} {h}:{i}") }} </span> 
172
+            <span v-else>{{ scope.row.start_time | parseTime("{y}-{m}-{d} {h}:{i}") }} </span> 
172
           </template>
173
           </template>
173
         </el-table-column>
174
         </el-table-column>
174
-
175
         <el-table-column
175
         <el-table-column
176
           label="医嘱内容"
176
           label="医嘱内容"
177
           property="advice_name"
177
           property="advice_name"
2159
       current_drug_name:"",
2159
       current_drug_name:"",
2160
       current_drug_spec: "",
2160
       current_drug_spec: "",
2161
       drug_id: 0,
2161
       drug_id: 0,
2162
-      src_type:""
2162
+      src_type:"",
2163
+      org_id:0,
2163
     };
2164
     };
2164
   },
2165
   },
2165
   methods: {
2166
   methods: {
4644
       this.$router.push("/patients/patients");
4645
       this.$router.push("/patients/patients");
4645
     }
4646
     }
4646
     this.listQuery.id = this.patientID;
4647
     this.listQuery.id = this.patientID;
4647
-
4648
+    this.org_id = this.$store.getters.xt_user.template_info.org_id
4648
     // var nowDate = new Date()
4649
     // var nowDate = new Date()
4649
     // var nowYear = nowDate.getFullYear()
4650
     // var nowYear = nowDate.getFullYear()
4650
     // var nowMonth = nowDate.getMonth() + 1
4651
     // var nowMonth = nowDate.getMonth() + 1

+ 2 - 0
src/xt_pages/workforce/template.vue Vedi File

370
         for (let key in results[0]) {
370
         for (let key in results[0]) {
371
           headers.push(key)
371
           headers.push(key)
372
         }
372
         }
373
+        console.log("hhh2332323232",this.template_mode.mode)
374
+        console.log("result233232233223232323",results)
373
         if (this.template_mode.mode == 1) {
375
         if (this.template_mode.mode == 1) {
374
           if(results.length > 0) {
376
           if(results.length > 0) {
375
 
377