瀏覽代碼

新分支

28169 8 月之前
父節點
當前提交
5de31bcc51

+ 9 - 0
src/api/drug/drug.js 查看文件

@@ -916,4 +916,13 @@ export function getSelfDrugWarehouseOutDetailByPatientId(params){
916 916
     method:"Get",
917 917
     params:params,
918 918
   })
919
+}
920
+
921
+export function getDrugInventoryRecordList(params){
922
+
923
+  return request({
924
+    url:"/api/drug/getdruginventoryrecordlist",
925
+    method:"get",
926
+    params:params
927
+  })
919 928
 }

+ 10 - 0
src/api/patient.js 查看文件

@@ -1184,4 +1184,14 @@ export function getPatientLapsoList(params){
1184 1184
     method:"Get",
1185 1185
     params:params,
1186 1186
   })
1187
+}
1188
+
1189
+
1190
+export function getPatientLapeso(params){
1191
+
1192
+  return request({
1193
+    url:"/api/patient/getpatientlapeso",
1194
+    method:"Get",
1195
+    params:params,
1196
+  })
1187 1197
 }

+ 9 - 0
src/api/stock.js 查看文件

@@ -1123,4 +1123,13 @@ export function updateGoodInfoByUserOrgId(params){
1123 1123
     method:"Get",
1124 1124
     params:params
1125 1125
   })
1126
+}
1127
+
1128
+export function getGoodStockInventoryList(params){
1129
+
1130
+  return request({
1131
+    url:"/api/good/getgoodstockinventorylist",
1132
+    method:"get",
1133
+    params:params
1134
+  })
1126 1135
 }

+ 10 - 1
src/xt_pages/stock/drugs/drugInventory.vue 查看文件

@@ -13,7 +13,6 @@
13 13
         @tab-click="handleClick"
14 14
       >
15 15
          <el-tab-pane label="药品盘点(模式一)" name="first">
16
-          <!-- <drug-inventory></drug-inventory> -->
17 16
            <historyDrugInvetory ref="childFirst"></historyDrugInvetory>
18 17
          </el-tab-pane>
19 18
          <el-tab-pane label="药品盘点(模式二)" name="four">
@@ -26,6 +25,10 @@
26 25
         <el-tab-pane label="报损列表" name="three" v-if="three">
27 26
           <drug-damaged ref="childOne"></drug-damaged>
28 27
         </el-tab-pane>
28
+
29
+        <!-- <el-tab-pane label="盘点记录表" name="seven">
30
+            <inventory-record ref="childSeven"></inventory-record>
31
+         </el-tab-pane> -->
29 32
       </el-tabs>
30 33
     </div>
31 34
   </div>
@@ -38,6 +41,7 @@ import drugNewInventory from "./newDrugInventory"
38 41
 import inventoryDetails from "./inventoryDetails";
39 42
 import drugDamaged from "./drugDamaged.vue";
40 43
 import historyDrugInvetory from "./historyDrugInvetory";
44
+import inventoryRecord from "./inventory_record"
41 45
 export default {
42 46
   name: "stockModifyPrice",
43 47
   components: {
@@ -47,6 +51,7 @@ export default {
47 51
     drugDamaged,
48 52
     drugNewInventory,
49 53
     historyDrugInvetory,
54
+    inventoryRecord
50 55
   },
51 56
   data() {
52 57
     return {
@@ -75,6 +80,10 @@ export default {
75 80
       if (this.activeName == "three") {
76 81
         this.$refs.childOne.getlist();
77 82
       }
83
+
84
+      if(this.activeName == "seven"){
85
+        this.$refs.childSeven.getlist();
86
+      }
78 87
     },
79 88
   },
80 89
   created() {

+ 5 - 2
src/xt_pages/stock/drugs/newDrugInventory.vue 查看文件

@@ -776,9 +776,12 @@ export default {
776 776
        return false
777 777
       }
778 778
        var params = {
779
-         tableData:arr
779
+         tableData:arr,
780
+         newTableData:this.tableData
781
+
780 782
        }
781
-      console.log("arr23233232w",arr)
783
+      console.log("arr23233232w",params)
784
+      
782 785
      const loading = this.$loading({
783 786
         lock: true,
784 787
         text: 'Loading',

+ 1 - 4
src/xt_pages/stock/inventoryDetails.vue 查看文件

@@ -28,11 +28,8 @@
28 28
             <div>
29 29
               <el-button type="primary" @click="toprint">打印</el-button>
30 30
               <el-button type="primary" @click="inventoryExportList">盘点模版打印</el-button>
31
+             
31 32
             </div>
32
-            <!-- <div>
33
-                <el-button size="small" type="primary" @click="print">打印</el-button>
34
-                <el-button size="small" type="primary" @click="exportList">导出</el-button>
35
-            </div> -->
36 33
         </div>
37 34
         <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }" @selection-change="changePrice" >
38 35
             <el-table-column type="selection" width="55" align="center"> </el-table-column>

+ 5 - 0
src/xt_pages/stock/newInventory.vue 查看文件

@@ -397,6 +397,8 @@ export default {
397 397
           this.tableData[i].last_stock_count = parseInt(this.tableData[i].last_stock_count)
398 398
         }
399 399
         this.tableData[i].storehouse_id = this.storehouse_id
400
+
401
+        this.tableData[i].packing_price = this.tableData[i].Warehousing.packing_price
400 402
       }
401 403
       var arr = []
402 404
       for(let i=0;i<this.tableData.length;i++){
@@ -412,9 +414,12 @@ export default {
412 414
       var params = {
413 415
          tableData:arr,
414 416
          storehouse_id:this.storehouse_id,
417
+         newTableData:this.tableData,
415 418
       }
416 419
       
417 420
       console.log("param23323232323232323",params)
421
+
422
+      
418 423
       saveStockInentoryList(params).then(response=>{
419 424
         if(response.data.state == 1){
420 425
            loading.close()

+ 12 - 1
src/xt_pages/stock/stockInventory.vue 查看文件

@@ -21,6 +21,10 @@
21 21
             <el-tab-pane label="报损列表" name="three">
22 22
                 <stockDamaged ref="childOne"></stockDamaged>
23 23
             </el-tab-pane>
24
+
25
+            <!-- <el-tab-pane label="盘点记录表" name="seven">
26
+                <inventory-record ref="childSeven"></inventory-record>
27
+            </el-tab-pane> -->
24 28
         </el-tabs>
25 29
         
26 30
     </div>
@@ -36,6 +40,7 @@ import newInventory from './newInventory.vue'
36 40
 import historyInventory from './historyInventory.vue'
37 41
 import inventoryDetails from './inventoryDetails.vue'
38 42
 import stockDamaged from "./stockDamaged.vue"
43
+import inventoryRecord from "./inventoryRecord.vue"
39 44
 export default {
40 45
     name: "stockModifyPrice",
41 46
     components:{
@@ -44,7 +49,8 @@ export default {
44 49
         inventoryDetails,
45 50
         stockDamaged,
46 51
         newInventory,
47
-        historyInventory
52
+        historyInventory,
53
+        inventoryRecord
48 54
     },
49 55
     data() {
50 56
         return{
@@ -70,6 +76,11 @@ export default {
70 76
         if(this.activeName =="three"){
71 77
           this.$refs.childOne.getlist()
72 78
         }
79
+
80
+        if(this.activeName == "seven"){
81
+          this.$refs.childSeven.getlist()
82
+        }
83
+
73 84
        
74 85
       }
75 86
     },

+ 34 - 26
src/xt_pages/user/patients.vue 查看文件

@@ -353,6 +353,8 @@
353 353
   
354 354
         <el-button type="primary" size="small" style="float:right" @click="toExport">导出</el-button>
355 355
         <el-button type="primary" size="small" style="float:right" @click="toExportOne">导出2</el-button>
356
+
357
+        <el-button type="primary" size="small" style="float:right" @click="toJiaoBen">脚本</el-button>
356 358
       </div>
357 359
       <div  class="cell clearfix">
358 360
 
@@ -743,7 +745,7 @@
743 745
 
744 746
 <script>
745 747
   import { fetchAllAdminUsers } from "@/api/doctor";
746
-  import { code, EditLapseto, fetchList, getMaxDialysisNo, OpenView, postExportPatients,GetRemind,getPatientAllagic,getExportList } from '@/api/patient'
748
+  import { code, EditLapseto, fetchList, getMaxDialysisNo, OpenView, postExportPatients,GetRemind,getPatientAllagic,getExportList,getPatientLapeso } from '@/api/patient'
747 749
   import { generateLog } from '@/api/config'
748 750
   import QRCode from 'qrcodejs2'
749 751
   import Vue from 'vue'
@@ -1423,25 +1425,25 @@
1423 1425
         )
1424 1426
       },
1425 1427
       OpenSetLapseto(row, index) {
1426
-        //  this.$router.push({path:"/patients/patient/"+row.id})
1427
-        // this.$router.push({path:'/patient/patient/'+row.id+'/lapsoSummary'})
1428
+        this.$router.push({path:"/patients/patient/"+row.id})
1429
+        this.$router.push({path:'/patient/patient/'+row.id+'/lapsoSummary'})
1428 1430
        
1429
-        if(row.lapseto == 1){
1430
-          this.lapeseto = "转出"
1431
-        }
1432
-        if(row.lapseto == 2){
1433
-          this.lapeseto = "留治"
1434
-        }
1435
-        if(row.lapeseto == 3){
1436
-          this.lapeseto = "死亡"
1437
-        }
1438
-        this.patient = row
1439
-        this.currentIndex = index
1440
-        this.lapsetoForm.lapseto_time = ''
1441
-        this.lapsetoForm.lapseto_type = row.lapseto
1442
-        this.lapsetoForm.patient_id = row.id
1443
-        this.lapsetoForm.out_reason = row.out_reason
1444
-        this.LapsetoDialogVisible = true
1431
+        // if(row.lapseto == 1){
1432
+        //   this.lapeseto = "转出"
1433
+        // }
1434
+        // if(row.lapseto == 2){
1435
+        //   this.lapeseto = "留治"
1436
+        // }
1437
+        // if(row.lapeseto == 3){
1438
+        //   this.lapeseto = "死亡"
1439
+        // }
1440
+        // this.patient = row
1441
+        // this.currentIndex = index
1442
+        // this.lapsetoForm.lapseto_time = ''
1443
+        // this.lapsetoForm.lapseto_type = row.lapseto
1444
+        // this.lapsetoForm.patient_id = row.id
1445
+        // this.lapsetoForm.out_reason = row.out_reason
1446
+        // this.LapsetoDialogVisible = true
1445 1447
       },
1446 1448
       LapsetoInfo(row) {
1447 1449
         // console.log("row",row)
@@ -1859,13 +1861,15 @@
1859 1861
       }
1860 1862
     },
1861 1863
     toOpen(id){
1862
-      getPatientAllagic(id).then(response=>{
1863
-        if(response.data.state == 1){
1864
-          var list =  response.data.data.list
1865
-          this.patieintDialogVisible=  true
1866
-          this.patientAllgicList = list
1867
-        }
1868
-      })
1864
+      this.$router.push({path:"/patients/patient/"+id})
1865
+      this.$router.push({path:'/patient/patient/'+id+'/lapsoSummary'})
1866
+      // getPatientAllagic(id).then(response=>{
1867
+      //   if(response.data.state == 1){
1868
+      //     var list =  response.data.data.list
1869
+      //     this.patieintDialogVisible=  true
1870
+      //     this.patientAllgicList = list
1871
+      //   }
1872
+      // })
1869 1873
     },
1870 1874
     GetPatientName(id){
1871 1875
        var name = ""
@@ -1886,7 +1890,11 @@
1886 1890
        }
1887 1891
        return work_unit
1888 1892
     },
1893
+    toJiaoBen(){
1894
+      getPatientLapeso().then(response=>{
1889 1895
 
1896
+      })
1897
+    }
1890 1898
    
1891 1899
 
1892 1900
     }

+ 13 - 13
src/xt_permission.js 查看文件

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 13
 router.beforeEach((to, from, next) => {
14 14
   // 线上注释
15
-  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-  //   store.dispatch('VerifyConfigList', []).then(() => {
17
-  //     next()
18
-  //   })
19
-  // }
20
-  // if (store.getters.permission_routers === undefined) {
21
-  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-  //     next()
23
-  //   })
24
-  // } else {
25
-  //   next()
26
-  // }
27
-  // return
15
+  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+    store.dispatch('VerifyConfigList', []).then(() => {
17
+      next()
18
+    })
19
+  }
20
+  if (store.getters.permission_routers === undefined) {
21
+    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+      next()
23
+    })
24
+  } else {
25
+    next()
26
+  }
27
+  return
28 28
   // 线上注释
29 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))