浏览代码

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 9 个月前
父节点
当前提交
2da4b78305

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

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

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

776
        return false
776
        return false
777
       }
777
       }
778
        var params = {
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
      const loading = this.$loading({
785
      const loading = this.$loading({
783
         lock: true,
786
         lock: true,
784
         text: 'Loading',
787
         text: 'Loading',

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

28
             <div>
28
             <div>
29
               <el-button type="primary" @click="toprint">打印</el-button>
29
               <el-button type="primary" @click="toprint">打印</el-button>
30
               <el-button type="primary" @click="inventoryExportList">盘点模版打印</el-button>
30
               <el-button type="primary" @click="inventoryExportList">盘点模版打印</el-button>
31
+             
31
             </div>
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
         </div>
33
         </div>
37
         <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }" @selection-change="changePrice" >
34
         <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }" @selection-change="changePrice" >
38
             <el-table-column type="selection" width="55" align="center"> </el-table-column>
35
             <el-table-column type="selection" width="55" align="center"> </el-table-column>

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

397
           this.tableData[i].last_stock_count = parseInt(this.tableData[i].last_stock_count)
397
           this.tableData[i].last_stock_count = parseInt(this.tableData[i].last_stock_count)
398
         }
398
         }
399
         this.tableData[i].storehouse_id = this.storehouse_id
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
       var arr = []
403
       var arr = []
402
       for(let i=0;i<this.tableData.length;i++){
404
       for(let i=0;i<this.tableData.length;i++){
412
       var params = {
414
       var params = {
413
          tableData:arr,
415
          tableData:arr,
414
          storehouse_id:this.storehouse_id,
416
          storehouse_id:this.storehouse_id,
417
+         newTableData:this.tableData,
415
       }
418
       }
416
       
419
       
417
       console.log("param23323232323232323",params)
420
       console.log("param23323232323232323",params)
421
+
422
+      
418
       saveStockInentoryList(params).then(response=>{
423
       saveStockInentoryList(params).then(response=>{
419
         if(response.data.state == 1){
424
         if(response.data.state == 1){
420
            loading.close()
425
            loading.close()

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

21
             <el-tab-pane label="报损列表" name="three">
21
             <el-tab-pane label="报损列表" name="three">
22
                 <stockDamaged ref="childOne"></stockDamaged>
22
                 <stockDamaged ref="childOne"></stockDamaged>
23
             </el-tab-pane>
23
             </el-tab-pane>
24
+
25
+            <!-- <el-tab-pane label="盘点记录表" name="seven">
26
+                <inventory-record ref="childSeven"></inventory-record>
27
+            </el-tab-pane> -->
24
         </el-tabs>
28
         </el-tabs>
25
         
29
         
26
     </div>
30
     </div>
36
 import historyInventory from './historyInventory.vue'
40
 import historyInventory from './historyInventory.vue'
37
 import inventoryDetails from './inventoryDetails.vue'
41
 import inventoryDetails from './inventoryDetails.vue'
38
 import stockDamaged from "./stockDamaged.vue"
42
 import stockDamaged from "./stockDamaged.vue"
43
+import inventoryRecord from "./inventoryRecord.vue"
39
 export default {
44
 export default {
40
     name: "stockModifyPrice",
45
     name: "stockModifyPrice",
41
     components:{
46
     components:{
44
         inventoryDetails,
49
         inventoryDetails,
45
         stockDamaged,
50
         stockDamaged,
46
         newInventory,
51
         newInventory,
47
-        historyInventory
52
+        historyInventory,
53
+        inventoryRecord
48
     },
54
     },
49
     data() {
55
     data() {
50
         return{
56
         return{
70
         if(this.activeName =="three"){
76
         if(this.activeName =="three"){
71
           this.$refs.childOne.getlist()
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
   
353
   
354
         <el-button type="primary" size="small" style="float:right" @click="toExport">导出</el-button>
354
         <el-button type="primary" size="small" style="float:right" @click="toExport">导出</el-button>
355
         <el-button type="primary" size="small" style="float:right" @click="toExportOne">导出2</el-button>
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
       </div>
358
       </div>
357
       <div  class="cell clearfix">
359
       <div  class="cell clearfix">
358
 
360
 
743
 
745
 
744
 <script>
746
 <script>
745
   import { fetchAllAdminUsers } from "@/api/doctor";
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
   import { generateLog } from '@/api/config'
749
   import { generateLog } from '@/api/config'
748
   import QRCode from 'qrcodejs2'
750
   import QRCode from 'qrcodejs2'
749
   import Vue from 'vue'
751
   import Vue from 'vue'
1423
         )
1425
         )
1424
       },
1426
       },
1425
       OpenSetLapseto(row, index) {
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
       LapsetoInfo(row) {
1448
       LapsetoInfo(row) {
1447
         // console.log("row",row)
1449
         // console.log("row",row)
1859
       }
1861
       }
1860
     },
1862
     },
1861
     toOpen(id){
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
     GetPatientName(id){
1874
     GetPatientName(id){
1871
        var name = ""
1875
        var name = ""
1886
        }
1890
        }
1887
        return work_unit
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
 
12
 
13
 router.beforeEach((to, from, next) => {
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
   NProgress.start()
29
   NProgress.start()
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))