瀏覽代碼

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

yq1 6 月之前
父節點
當前提交
6e6b9c9056

+ 60 - 0
src/api/project/project.js 查看文件

@@ -549,4 +549,64 @@ export function getAllGoodInfoList(params){
549 549
     method:"Get",
550 550
     params:params
551 551
   })
552
+}
553
+
554
+
555
+export function saveGoodList(params,data){
556
+  
557
+  return request({
558
+    url:"/api/savegoodlist",
559
+    method:"post",
560
+    params:params,
561
+    data:data,
562
+   
563
+  })
564
+}
565
+
566
+export function getGoodList(params){
567
+ 
568
+  return request({
569
+    url:"/api/getgoodlist",
570
+    method:"get",
571
+    params:params,
572
+  })
573
+}
574
+
575
+
576
+export function getGoodNameDetail(id,params){
577
+  
578
+  return request({
579
+    url:"/api/getgoodnamedetail?id="+id,
580
+    method:"get",
581
+    params:params
582
+  })
583
+}
584
+
585
+export function updateGoodList(params,data){
586
+
587
+  return request({
588
+    url:"/api/updategoodlist",
589
+    method:"post",
590
+    params:params,
591
+    data:data,
592
+   
593
+  })
594
+}
595
+
596
+export function DeleteGoodTeam(id,params){
597
+ 
598
+  return  request({
599
+    url:"/api/deletegoodteam?id="+id,
600
+    method:"Get",
601
+    params:params
602
+  })
603
+}
604
+
605
+export function DeleteGood(id,params){
606
+ 
607
+  return request({
608
+    url:"/api/deletegood?id="+id,
609
+    method:"get",
610
+    params:params
611
+  })
552 612
 }

+ 1 - 0
src/lang/en.js 查看文件

@@ -106,6 +106,7 @@ export default {
106 106
     DrugDispensing: 'DrugDispensing',
107 107
     DispensingDetails: 'DispensingDetails',
108 108
     // ConsumablesManagement:'ConsumablesManagement',
109
+    DrugCodeList:'DrugCodeList',
109 110
     MedicianManagement: 'MedicianManagement',
110 111
     patiantDispensing: 'patiantDispensing',
111 112
     supplyManage: 'Supply Manage',

+ 1 - 1
src/lang/zh.js 查看文件

@@ -169,7 +169,7 @@ export default {
169 169
     DispensingDetails: '发药明细',
170 170
     // ConsumablesManagement:'耗材管理',
171 171
     MedicianManagement: '药品管理',
172
-
172
+    DrugCodeList:"药品追溯",
173 173
     otherManagement: '其他管理',
174 174
     drugsExpiryDate: '药品有效期预警',
175 175
     drugsSurplus: '药品剩余预警',

+ 2 - 0
src/router/index.js 查看文件

@@ -46,6 +46,7 @@ import supply from './modules/supply'
46 46
 import PatientDispensing from './modules/PatientDispensing'
47 47
 import DrugDispensing from './modules/DrugDispensing'
48 48
 import DispensingDetails from './modules/DispensingDetails'
49
+import DrugCodeList  from './modules/DrugCodeList'
49 50
 // import ConsumablesManagement from './modules/ConsumablesManagement'
50 51
 import MedicianManagement from './modules/MedicianManagement'
51 52
 
@@ -173,6 +174,7 @@ var _asy_router_map = [
173 174
   PatientDispensing, // 患者发药模块
174 175
   DrugDispensing, // 药房管理模块
175 176
   DispensingDetails, // 药房管理模块
177
+  DrugCodeList,//药品追溯码
176 178
   //ConsumablesManagement, // 药房管理模块
177 179
   MedicianManagement, // 药房管理模块
178 180
 

+ 4 - 2
src/router/modules/DispensingDetails.js 查看文件

@@ -12,6 +12,8 @@ export default {
12 12
     meta: {
13 13
       title: '发药明细',
14 14
       noCache: true
15
-    }
16
-  },]
15
+     }
16
+    },
17
+
18
+  ]
17 19
 }

+ 18 - 0
src/router/modules/DrugCodeList.js 查看文件

@@ -0,0 +1,18 @@
1
+
2
+import Layout from '@/views/layout/Layout'
3
+
4
+export default {
5
+  path: '/DrugCodeList',
6
+  component: Layout,
7
+  name:'DrugCodeList',
8
+  redirct: 'noredirect',
9
+  children: [{
10
+    path: '/Pharmacy/drugCode',
11
+    component: () => import('@/xt_pages/Pharmacy/drugCode.vue'),
12
+    name: '药房管理',
13
+    meta: {
14
+      title: '药品追溯',
15
+      noCache: true
16
+    }
17
+  },]
18
+}

+ 1 - 1
src/views/layout/Layout.vue 查看文件

@@ -139,7 +139,7 @@ export default {
139 139
     let caigou = ['supplyManage','supplyList'];
140 140
     let peizhi = ['system','roleManage','DepartManage', 'bedManagement', 'dictionaryManagement', 'templateManagement','showconfig','printTemplate','integration_config','basicConfig'];
141 141
     let kuyishopping = ['kuyiShopping'];
142
-    let medician = ['PatientDispensing','DrugDispensing','DispensingDetails','stockDrugs']
142
+    let medician = ['PatientDispensing','DrugDispensing','DispensingDetails','stockDrugs','DrugCodeList']
143 143
     let menzhenArr = [];
144 144
     let bingliArr = [];
145 145
     let touxiArr = [];

+ 1 - 1
src/views/layout/components/Sidebar/index.vue 查看文件

@@ -103,7 +103,7 @@ export default {
103 103
             this.$emit('func',a)
104 104
           }
105 105
         }else if(newVal == '药房管理'){
106
-          let nameArr = ['PatientDispensing','DrugDispensing','DispensingDetails','stockDrugs']
106
+          let nameArr = ['PatientDispensing','DrugDispensing','DispensingDetails','stockDrugs','DrugCodeList']
107 107
           // console.log('permission_routers',this.permission_routers)
108 108
           let routerArr = [];
109 109
           this.permission_routers.map(item => {

+ 420 - 0
src/xt_pages/Pharmacy/drugCode.vue 查看文件

@@ -0,0 +1,420 @@
1
+<template>
2
+    <div>
3
+      <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
4
+        <div class="cell clearfix">
5
+          <span>发药时间:</span>
6
+          <el-date-picker
7
+            size="small"
8
+            v-model="start_time"
9
+            prefix-icon="el-icon-date"
10
+            :editable="false"
11
+            style="width: 196px;"
12
+            type="date"
13
+            placeholder="选择日期时间"
14
+            align="right"
15
+            format="yyyy-MM-dd"
16
+            value-format="yyyy-MM-dd"
17
+            @change="changeStartTime"
18
+          ></el-date-picker>-
19
+          <el-date-picker
20
+           @change="changeEndTime"
21
+            size="small"
22
+            v-model="end_time"
23
+            prefix-icon="el-icon-date"
24
+            :editable="false"
25
+            style="width: 196px;margin-right:10px;"
26
+            type="date"
27
+            placeholder="选择日期时间"
28
+            align="right"
29
+            format="yyyy-MM-dd"
30
+            value-format="yyyy-MM-dd"
31
+          ></el-date-picker>
32
+        </div>
33
+
34
+
35
+        <div>
36
+          <div>上传状态:
37
+            <el-select size="small" v-model="is_sale" placeholder="请选择" style="width:100px;" @change="changeStock">
38
+                <el-option
39
+                  v-for="item,index in items"
40
+                  :key="index"
41
+                  :label="item.name"
42
+                  :value="item.id">
43
+                </el-option>
44
+            </el-select>
45
+         </div>
46
+        </div>
47
+
48
+        <div>
49
+          <el-button type="primary" @click="query()">查询</el-button>
50
+          <el-button type="primary" @click="exportdata()">导出</el-button>
51
+        </div>
52
+      </div>
53
+      <el-table :data="tableData" border :row-style="{ color: '#303133' }" ref="table2"
54
+                :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
55
+                max-height="800"
56
+                @select="selectCostInfo"
57
+                @selection-change="changeCostInfoTableData"
58
+                @select-all="changeAllCostInfoTableData"
59
+                highlight-current-row>
60
+        <el-table-column align="center" prop="name" label="患者姓名">
61
+          <template slot-scope="scope">{{getPatientName(scope.row.patient_id) }}</template>
62
+        </el-table-column>
63
+        <el-table-column align="center" prop="name" label="处方日期">
64
+          <template slot-scope="scope">{{getTime(scope.row.advice_date)}}</template>
65
+        </el-table-column>
66
+        <el-table-column align="center" prop="name" label="药品名称">
67
+          <template slot-scope="scope">{{ scope.row.advice_name }}</template>
68
+        </el-table-column>
69
+        <el-table-column align="center" prop="name" label="规格">
70
+          <template slot-scope="scope">{{getDrugSpec(scope.row.drug_id)}}</template>
71
+        </el-table-column>
72
+        <el-table-column align="center" prop="name" label="开药总量">
73
+          <template slot-scope="scope">{{scope.row.prescribing_number}}{{ scope.row.prescribing_number_unit }}</template>
74
+        </el-table-column>
75
+        <el-table-column align="center" prop="name" label="药品追溯码">
76
+          <template slot-scope="scope">
77
+            <div @click="getDrugCode(scope.row.id,scope.row.DataSources,scope.row.drug_code,scope.$index)"><el-input style="width: 100;" v-model="scope.row.drug_code"></el-input></div>
78
+          </template>
79
+        </el-table-column>
80
+        <el-table-column align="center" prop="name" label="上传状态">
81
+          <template slot-scope="scope">
82
+            <div v-if="scope.row.is_upload == 1">已上传</div>
83
+            <div v-if="scope.row.is_upload == 2 || scope.row.is_upload == 0">未上传</div>
84
+          </template>
85
+        </el-table-column>
86
+
87
+        <el-table-column align="center" prop="name" label="发药状态">
88
+          <template slot-scope="scope">
89
+            <div v-if="scope.row.is_medicine == 1">已发药</div>
90
+            <div v-if="scope.row.is_medicine == 2 || scope.row.is_medicine == 0">未发药</div>
91
+          </template>
92
+        </el-table-column>
93
+
94
+        <el-table-column align="center" prop="name" label="操作" width="200">
95
+          <template slot-scope="scope">
96
+            <div>
97
+             <el-button v-if="scope.row.is_upload == 1" type="primary" @click="sigle_stock(scope.row)">未上传</el-button>
98
+            <el-button type="primary" v-if="scope.row.is_upload == 0 || scope.row.is_upload == 2" @click="toUpload(scope.row)">上传</el-button>
99
+            <el-button v-if="faShow == true" type="primary" @click="toFaYao(scope.row)">发药</el-button>
100
+            </div>
101
+          </template>
102
+        </el-table-column>
103
+
104
+
105
+      </el-table>
106
+      <el-pagination
107
+        @size-change="handleSizeChange"
108
+        @current-change="handleCurrentChange"
109
+        :page-size="5"
110
+        :page-sizes="[10, 20, 50, 100,500,1000,2000]"
111
+        background
112
+        style="margin-top:20px;float: right"
113
+        :total="value"
114
+      ></el-pagination>
115
+
116
+
117
+
118
+
119
+
120
+      <el-dialog
121
+        title="药品追溯码"
122
+        :visible.sync="dialogVisibleOne"
123
+         width="40%">
124
+       <span>
125
+        <el-input
126
+          @keyup.native="changeText"
127
+          type="textarea"
128
+          placeholder="请输入内容"
129
+          v-model="textarea"
130
+          :rows="10"
131
+        >
132
+        </el-input>
133
+      </span>
134
+      <span slot="footer" class="dialog-footer">
135
+        <el-button @click="dialogVisibleOne = false">取 消</el-button>
136
+        <el-button type="primary" @click="saveTextArea()">确 定</el-button>
137
+      </span>
138
+      </el-dialog>
139
+    </div>
140
+
141
+
142
+  </template>
143
+
144
+
145
+  <script>
146
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
147
+  import { getHisDrugCodeQueryList,createUploadDrugCode,getPatientDrugCode } from '../../api/new_stock/stock'
148
+  import { getDictionaryDataConfig } from "@/utils/data";
149
+  import { uParseTime } from '@/utils/tools'
150
+  import { changeDrugCode } from "@/api/pharmacy";
151
+  
152
+  import axios from 'axios'
153
+  const moment = require('moment')
154
+  export default {
155
+    components: {
156
+      BreadCrumb
157
+    },
158
+    data() {
159
+      return {
160
+        drugTypeList: [{ id: 0, name: "全部" }],
161
+        start_time: new Date(new Date().getFullYear(), new Date().getMonth(), 1).toLocaleDateString('en-CA'),
162
+        end_time: new Date(new Date().getFullYear(), new Date().getMonth() + 1, 0).toLocaleDateString('en-CA'),
163
+
164
+        tableData: [],
165
+        change_type:"3",
166
+        selection:[],
167
+        page:1,
168
+        limit:10,
169
+        value:0,
170
+        is_sale:"0",
171
+        items: [
172
+          { id: "0", name: '全部' },
173
+          { id: "1", name: '已上传' },
174
+          { id: "2", name: '未上传' },
175
+        ],
176
+        patientList:[],
177
+        drugList:[],
178
+        dialogVisibleOne:false,
179
+        id:0,
180
+        is_source:0,
181
+        drug_code:0,
182
+        currentRow:{},
183
+        currentIndex:0,
184
+        is_drug_open:"2",
185
+        textarea:'',
186
+        total:0,
187
+        faShow:false,
188
+        is_open:false,
189
+      }
190
+    },
191
+    methods: {
192
+        changeText(event){
193
+        // 检查是否为特定的按键,例如回车键,来确认扫码枪输入完成
194
+        if (event.key === 'Enter') {
195
+            var textarea = ""
196
+            textarea += this.textarea + ","
197
+            this.textarea = textarea
198
+        }
199
+       },
200
+       getDrugCode(id,DataSources,DrugCode,index){
201
+            this.id = id
202
+            this.textarea = DrugCode
203
+            this.currentIndex = index
204
+            this.dialogVisibleOne = true
205
+      },
206
+      saveTextArea(){
207
+       var params = {
208
+        id:this.id,
209
+        data_source:1,
210
+        drug_code:this.textarea,
211
+       }
212
+       console.log("paramss",params)
213
+      changeDrugCode(params).then(response=>{
214
+         if(response.data.state == 1){
215
+            this.$message.success("保存成功!")
216
+            for(let i=0;i<this.tableData.length;i++){
217
+             if(this.currentIndex == i){
218
+                this.tableData[i].drug_code = this.textarea
219
+             }
220
+            }
221
+            this.dialogVisibleOne = false
222
+         }
223
+      })
224
+    },
225
+    getPatientName(id){
226
+       var name = ""
227
+       for(let i=0;i<this.patientList.length;i++){
228
+          if(id == this.patientList[i].id){
229
+             name = this.patientList[i].name
230
+          }
231
+       }
232
+       return name
233
+      },
234
+      getTime(val) {
235
+         if(val < 0){
236
+           return ""
237
+         }
238
+         if(val == ""){
239
+          return ""
240
+         }else {
241
+          return uParseTime(val, '{y}-{m}-{d}')
242
+         }
243
+      },
244
+      getDrugName(drug_id){
245
+        var drug_name = ""
246
+        for(let i=0;i<this.drugList.length;i++){
247
+           if(drug_id == this.drugList[i].id){
248
+              drug_name = this.drugList[i].drug_name
249
+           }
250
+        }
251
+        return drug_name
252
+      },
253
+      getDrugSpec(drug_id){
254
+        var specification_name = ""
255
+        for(let i=0;i<this.drugList.length;i++){
256
+          if(drug_id == this.drugList[i].id){
257
+            specification_name = this.drugList[i].specification_name
258
+          }
259
+        }
260
+        return specification_name
261
+      },
262
+      handleSizeChange(val) {
263
+        this.limit = val
264
+        this.getlist()
265
+      },
266
+      handleCurrentChange(val) {
267
+        this.page = val
268
+        this.getlist()
269
+      },
270
+      selectCostInfo(selection, row) {
271
+        this.selection = selection
272
+      },
273
+       changeCostInfoTableData(val) {
274
+        this.selection = val
275
+      }, changeAllCostInfoTableData(selection) {
276
+        this.selection = selection
277
+      },
278
+      delete(){
279
+
280
+
281
+      },
282
+      exportdata(){
283
+        console.log("hahahahh",this.tableData)
284
+        if(this.tableData!=null && this.tableData.length>0){
285
+           for(let i=0;i<this.tableData.length;i++){
286
+             this.tableData[i].patient_name = this.getPatientName(this.tableData[i].patient_id)
287
+             this.tableData[i].advice_date_str = this.getTime(this.tableData[i].advice_date)
288
+             if(this.tableData[i].is_upload == 1){
289
+                this.tableData[i].is_upload_name = "已上传"
290
+             }
291
+             if(this.tableData[i].is_upload == 2 || this.tableData[i].is_upload == 0){
292
+                this.tableData[i].is_upload_name = "未上传"
293
+             }
294
+
295
+             if(this.tableData[i].is_medicine == 1){
296
+                this.tableData[i].is_medicine_name = "已发药"
297
+             }
298
+             if(this.tableData[i].is_medicine == 2 || this.tableData[i].is_medicine == 0){
299
+                this.tableData[i].is_medicine_name = "未发药"
300
+             }
301
+             this.tableData[i].specification_name = this.getDrugSpec(this.tableData[i].drug_id)
302
+           }
303
+        }
304
+
305
+        import('@/vendor/Export2Excel').then(excel => {
306
+          const tHeader = ['患者姓名', '处方日期', '药品名称', '规格', '开药总量', '药品追溯码','上传状态','发药状态']
307
+          const filterVal = ['patient_name', 'advice_date_str', 'advice_name', 'specification_name', 'prescribing_numbers', 'drug_code','is_upload_name','is_medicine_name']
308
+
309
+          const data = this.formatJson(filterVal, this.tableData)
310
+           excel.export_json_to_excel({
311
+           header: tHeader,
312
+           data,
313
+           filename: '药品追溯'
314
+         })
315
+        })
316
+
317
+      },formatJson(filterVal, jsonData) {
318
+        return jsonData.map(v => filterVal.map(j => v[j]))
319
+      },
320
+
321
+      query(){
322
+        this.getlist()
323
+      },
324
+      getDrugType(id) {
325
+        var name = "";
326
+        for (let i = 0; i < this.drugTypeList.length; i++) {
327
+          if (this.drugTypeList[i].id == id) {
328
+            name = this.drugTypeList[i].name;
329
+          }
330
+        }
331
+
332
+        return name;
333
+      },
334
+      getTime(val) {
335
+        if(val == "" || val == undefined){
336
+          return ""
337
+        }else {
338
+          return uParseTime(val, '{y}-{m}-{d}')
339
+        }
340
+      },
341
+      getlist(){
342
+        this.tableData = []
343
+        let params = {
344
+          start_time: this.start_time,
345
+          end_time: this.end_time,
346
+          page:this.page,
347
+          limit:this.limit,
348
+          is_sale:this.is_sale,
349
+
350
+        }
351
+        getHisDrugCodeQueryList(params).then(response => {
352
+          if (response.data.state == 0) {
353
+            this.$message.error(response.data.msg)
354
+            return false
355
+          } else {
356
+             this.tableData = response.data.data.list
357
+             this.total = response.data.data.total
358
+             this.drugList = response.data.data.drug
359
+             this.patientList = response.data.data.patients
360
+             this.is_open = response.data.data.codeConfig.is_open
361
+          }
362
+        })
363
+      },
364
+      changeStock(val){
365
+        this.is_sale = val
366
+        this.getlist()
367
+      },
368
+      changeStartTime(val){
369
+        this.start_time = val
370
+      },
371
+      changeEndTime(val){
372
+        this.end_time = val
373
+      },
374
+      toUpload(row){
375
+        if(row.is_medicine == 0 || row.is_is_medicine == 2){
376
+          this.$message.error("该药品未发药,请先发药")
377
+          this.faShow = true
378
+          return
379
+        }
380
+        var params = {
381
+          drug_id:row.drug_id,
382
+          patient_id:row.patient_id,
383
+         advice_date:row.advice_date,
384
+        }
385
+        createUploadDrugCode(params).then(response=>{
386
+          if(response.data.state == 1){
387
+            this.$message.success("上传成功!")
388
+          }
389
+        })
390
+      },
391
+      toFaYao(row){
392
+
393
+        if(this.is_open == 1){
394
+          if(row.drug_code==''){
395
+             this.$message.error("药品追溯码不能为空!")
396
+             return
397
+          }
398
+        }
399
+          var params= {
400
+            drug_id:row.drug_id,
401
+            patient_id:row.patient_id,
402
+            advice_date:row.advice_date,
403
+          }
404
+        getPatientDrugCode(params).then(response=>{
405
+          if(response.data.state == 1){
406
+             this.$message.success("发药成功!")
407
+             this.getlist()
408
+          }
409
+        })
410
+      }
411
+    },
412
+    created() {
413
+      var drugTypeList = getDictionaryDataConfig("system", "drug_type");
414
+      this.drugTypeList.push(...drugTypeList);
415
+      this.getlist()
416
+    }
417
+  }
418
+  </script>
419
+
420
+

+ 2 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue 查看文件

@@ -3152,7 +3152,8 @@
3152 3152
                               : "/"
3153 3153
                           }}
3154 3154
                         </div>
3155
-                        ml
3155
+                        <span v-if="org_id!=9675&&org_id!=10447 &&org_id!=10624 && org_id!=10471"> ml</span>
3156
+                        <span v-if="org_id ==9675||org_id==10447 || org_id==10624 || org_id == 10471">L</span>
3156 3157
                       </div>
3157 3158
 
3158 3159
                       <div class="inline_block" style="flex: 1" v-if="org_id ==10598 || org_id == 0">

+ 17 - 4
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

@@ -153,7 +153,7 @@
153 153
 
154 154
 
155 155
                     <el-col :span="8"
156
-                            v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 43 &&  this.$store.getters.xt_user.template_info.template_id != 45 &&  this.$store.getters.xt_user.template_info.template_id != 46  &&  this.$store.getters.xt_user.template_info.template_id != 48 &&  this.$store.getters.xt_user.template_info.template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10345 &&  this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10249 &&  this.$store.getters.xt_user.template_info.org_id != 10395 &&  this.$store.getters.xt_user.template_info.template_id != 60 &&  this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10430 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id!=10441 && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469&& this.$store.getters.xt_user.template_info.org_id != 10471 && this.$store.getters.xt_user.template_info.org_id != 10460 && this.$store.getters.xt_user.template_info.org_id != 10644  && this.$store.getters.xt_user.template_info.org_id != 10667 && this.$store.getters.xt_user.template_info.org_id != 10723">
156
+                            v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 43 &&  this.$store.getters.xt_user.template_info.template_id != 45 &&  this.$store.getters.xt_user.template_info.template_id != 46  &&  this.$store.getters.xt_user.template_info.template_id != 48 &&  this.$store.getters.xt_user.template_info.template_id != 56 && this.$store.getters.xt_user.template_info.org_id != 9555 &&  this.$store.getters.xt_user.template_info.org_id != 10345 &&  this.$store.getters.xt_user.template_info.org_id != 10346 && this.$store.getters.xt_user.template_info.org_id != 10249 &&  this.$store.getters.xt_user.template_info.org_id != 10395 &&  this.$store.getters.xt_user.template_info.template_id != 60 &&  this.$store.getters.xt_user.template_info.org_id != 10340 && this.$store.getters.xt_user.template_info.org_id != 10430 && this.$store.getters.xt_user.template_info.org_id != 10432 && this.$store.getters.xt_user.template_info.org_id!=10441 && this.$store.getters.xt_user.template_info.org_id!=10445 && this.$store.getters.xt_user.template_info.org_id!=9829 && this.$store.getters.xt_user.template_info.org_id != 10440 && this.$store.getters.xt_user.template_info.org_id != 10469&& this.$store.getters.xt_user.template_info.org_id != 10471 && this.$store.getters.xt_user.template_info.org_id != 10460 && this.$store.getters.xt_user.template_info.org_id != 10644  && this.$store.getters.xt_user.template_info.org_id != 10667 && this.$store.getters.xt_user.template_info.org_id != 10723">
157 157
                         <el-form-item
158 158
                         label="目标超滤量(L):" prop="target_ultrafiltration" :rules="isCheckmust('目标超滤量')">
159 159
                             <el-input
@@ -2635,7 +2635,7 @@ mu
2635 2635
       },
2636 2636
       show(pre, schedual, last, his_is_open,is_advice_open,admins) {
2637 2637
 
2638
-        if(this.$store.getters.xt_user.template_info.org_id==10702 || this.$store.getters.xt_user.template_info.org_id==10635){
2638
+        if(this.$store.getters.xt_user.template_info.org_id==10702 || this.$store.getters.xt_user.template_info.org_id==10635  || this.$store.getters.xt_user.template_info.org_id==0){
2639 2639
           if(this.predialysis!=undefined){
2640 2640
             if(this.dialysisPrescription.target_ultrafiltration==0 || this.dialysisPrescription.target_ultrafiltration==""){
2641 2641
               this.dialysisPrescription.target_ultrafiltration = (this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(2)
@@ -3063,6 +3063,7 @@ mu
3063 3063
           this.dialysisPrescription.mode_id = pre.mode_id
3064 3064
           this.dialysisPrescription.water_machine = pre.water_machine
3065 3065
           this.zongliang = this.dialysisPrescription.anticoagulant_zongliang
3066
+
3066 3067
         }
3067 3068
         // console.log('this.dialysisPrescription.mode_id', this.dialysisPrescription.mode_id)
3068 3069
         // console.log('this.schedual', schedual.mode_id)
@@ -3224,8 +3225,18 @@ mu
3224 3225
             this.adminRoles.push(admins[i])
3225 3226
           }
3226 3227
         }
3227
-        console.log("---------",this.targetAdvices)
3228
-        console.log("admin_user_+id2332323223332", this.adminRoles)
3228
+
3229
+        if(this.$store.getters.xt_user.template_info.org_id ==10635 || this.$store.getters.xt_user.template_info.org_id ==0){
3230
+          // console.log("中国====================",this.dialysisPrescription.target_ultrafiltration)
3231
+          // console.log("predialysis",this.predialysis)
3232
+          if(this.dialysisPrescription.target_ultrafiltration == 0 || this.dialysisPrescription.target_ultrafiltration=="" || this.dialysisPrescription.target_ultrafiltration == "undefined" || this.dialysisPrescription.target_ultrafiltration == undefined){
3233
+            //  console.log("进货哈哈好哈哈哈哈")
3234
+             this.dialysisPrescription.target_ultrafiltration = (this.predialysis.weight_before - this.predialysis.dry_weight - this.predialysis.additional_weight).toFixed(2)
3235
+            //  console.log("日本====================", this.dialysisPrescription.target_ultrafiltration)
3236
+          }
3237
+        }
3238
+        // console.log("---------",this.targetAdvices)
3239
+        // console.log("admin_user_+id2332323223332", this.adminRoles)
3229 3240
       },
3230 3241
       hide() {
3231 3242
         this.isVisibility = false
@@ -5489,6 +5500,8 @@ mu
5489 5500
 
5490 5501
         }
5491 5502
 
5503
+      
5504
+
5492 5505
       },
5493 5506
       stockType: function() {
5494 5507
         console.log('stockType', this.stockType)

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSeventyeight.vue 查看文件

@@ -519,7 +519,7 @@
519 519
                       超滤总量:
520 520
                       <div class="under_line" style="width: 50px; text-align: center">
521 521
                         {{ afterdialysis.actual_ultrafiltration ? afterdialysis.actual_ultrafiltration : "/" }}
522
-                      </div>L
522
+                      </div>ml
523 523
                     </div>
524 524
                     <div class="inline_block" style="flex: 1">
525 525
                       透析时长:

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue 查看文件

@@ -2901,8 +2901,8 @@
2901 2901
                             : "/"
2902 2902
                         }}
2903 2903
                       </div>
2904
-                      <span v-if="org_id!=9675&&org_id!=10447 &&org_id!=10624"> ml</span>
2905
-                      <span v-if="org_id ==9675||org_id==10447 || org_id==10624">L</span>
2904
+                      <span v-if="org_id!=9675&&org_id!=10447 &&org_id!=10624 && org_id!=10471"> ml</span>
2905
+                      <span v-if="org_id ==9675||org_id==10447 || org_id==10624 || org_id == 10471">L</span>
2906 2906
                     </div>
2907 2907
 
2908 2908
                     <div class="inline_block" style="flex: 1" v-if="org_id ==10598 || org_id == 0">

+ 84 - 4
src/xt_pages/drugSourceCode/drugChange.vue 查看文件

@@ -92,11 +92,17 @@
92 92
       </el-table-column>
93 93
 
94 94
       <el-table-column  align="center" prop="name" label="追溯码">
95
-        <template slot-scope="scope">{{scope.row.drug_code}}</template>
95
+        <template slot-scope="scope">
96
+            <div @click="getDrugCode(scope.row.advice_id,scope.row.drug_code,scope.$index)"><el-input style="width: 100;" v-model="scope.row.drug_code"></el-input></div> 
97
+          </template>
98
+        <!-- <template slot-scope="scope">{{scope.row.drug_code}}</template> -->
96 99
       </el-table-column>
97 100
 
98 101
       <el-table-column align="center" prop="name" label="患者姓名">
99
-        <template slot-scope="scope">{{scope.row.p.name}}</template>
102
+        <template slot-scope="scope">
103
+          <!-- {{scope.row.p.name}} -->
104
+           {{ getPatientName(scope.row.patient_id) }}
105
+        </template>
100 106
       </el-table-column>
101 107
 
102 108
       <el-table-column align="center" prop="name" label="批号">
@@ -217,6 +223,26 @@
217 223
 
218 224
     </el-table>
219 225
 
226
+    <el-dialog
227
+        title="药品追溯码"
228
+        :visible.sync="dialogVisibleOne"
229
+         width="40%">
230
+       <span>
231
+        <el-input
232
+          @keyup.native="changeText"
233
+          type="textarea"
234
+          placeholder="请输入内容"
235
+          v-model="textarea"
236
+          :rows="10"
237
+        >
238
+        </el-input>
239
+      </span>
240
+      <span slot="footer" class="dialog-footer">
241
+        <el-button @click="dialogVisibleOne = false">取 消</el-button>
242
+        <el-button type="primary" @click="saveTextArea()">确 定</el-button>
243
+      </span>
244
+    </el-dialog>
245
+
220 246
   </div>
221 247
 
222 248
   <!-- </div> -->
@@ -228,6 +254,7 @@ import BreadCrumb from '@/xt_pages/components/bread-crumb'
228 254
 import { GetDrugChangeStock } from '../../api/new_stock/stock'
229 255
 import { getDictionaryDataConfig } from "@/utils/data";
230 256
 import { uParseTime } from '@/utils/tools'
257
+import { changeDrugCode } from "@/api/pharmacy";
231 258
 import axios from 'axios'
232 259
 const moment = require('moment')
233 260
 export default {
@@ -255,10 +282,48 @@ export default {
255 282
       changes: [
256 283
         { id: 1, name: '已变更' },
257 284
         { id: 2, name: '未变更' },
258
-      ]
285
+      ],
286
+      textarea:'',
287
+      dialogVisibleOne:false,
288
+      currentRow:{},
289
+      currentIndex:0,
290
+      patientList:[]
259 291
     }
260 292
   },
261 293
   methods: {
294
+     changeText(event){
295
+        // 检查是否为特定的按键,例如回车键,来确认扫码枪输入完成
296
+        if (event.key === 'Enter') {
297
+            var textarea = ""
298
+            textarea += this.textarea + ","
299
+            this.textarea = textarea
300
+        }
301
+       },
302
+       getDrugCode(id,DrugCode,index){
303
+            this.id = id 
304
+            this.textarea = DrugCode
305
+            this.currentIndex = index
306
+            this.dialogVisibleOne = true
307
+      },
308
+      saveTextArea(){
309
+       var params = {
310
+        id:this.id,
311
+        data_source:1,
312
+        drug_code:this.textarea,
313
+       }
314
+       console.log("paramss",params)
315
+      changeDrugCode(params).then(response=>{
316
+         if(response.data.state == 1){
317
+            this.$message.success("保存成功!")
318
+            for(let i=0;i<this.tableData.length;i++){
319
+             if(this.currentIndex == i){
320
+                this.tableData[i].drug_code = this.textarea
321
+             }
322
+            }
323
+            this.dialogVisibleOne = false
324
+         }
325
+      })
326
+    },
262 327
     deleteStock(row){
263 328
       let ids  = row.id
264 329
       var that = this;
@@ -446,6 +511,7 @@ export default {
446 511
           return false
447 512
         } else {
448 513
           this.value = response.data.data.total
514
+          this.patientList =  response.data.data.patientList
449 515
           for(let i =0; i < response.data.data.info.length; i++){
450 516
             let obj = {
451 517
               id:response.data.data.info[i].id,
@@ -460,7 +526,10 @@ export default {
460 526
               is_sale:response.data.data.info[i].is_sale,
461 527
               pc_date:response.data.data.info[i].pc_date,
462 528
               is_bg:response.data.data.info[i].is_change,
463
-              unit:response.data.data.info[i].Unit
529
+              unit:response.data.data.info[i].Unit,
530
+              patient_id:response.data.data.info[i].patient_id,
531
+              drug_code:response.data.data.info[i].his_advice_info.drug_code,
532
+              advice_id:response.data.data.info[i].his_advice_info.id
464 533
             }
465 534
             this.tableData.push(obj)
466 535
           }
@@ -471,6 +540,17 @@ export default {
471 540
 
472 541
 
473 542
     },
543
+    getPatientName(id){
544
+      console.log("id=-=--------------",id)
545
+      console.log("patinetlist===========",this.patientList)
546
+      var name = ""
547
+      for(let i=0;i<this.patientList.length;i++){
548
+        if(id == this.patientList[i].id){
549
+          name = this.patientList[i].name
550
+        }
551
+      }
552
+      return name
553
+    }
474 554
   },
475 555
   created() {
476 556
     var drugTypeList = getDictionaryDataConfig("system", "drug_type");

+ 1 - 0
src/xt_pages/drugSourceCode/drugCodeQuery.vue 查看文件

@@ -148,6 +148,7 @@
148 148
   import { getDictionaryDataConfig } from "@/utils/data";
149 149
   import { uParseTime } from '@/utils/tools'
150 150
   import { changeDrugCode } from "@/api/pharmacy";
151
+  
151 152
   import axios from 'axios'
152 153
   const moment = require('moment')
153 154
   export default {

+ 287 - 61
src/xt_pages/stock/config/goodList.vue 查看文件

@@ -14,40 +14,20 @@
14 14
                     {{scope.$index + 1}}
15 15
                 </template>
16 16
             </el-table-column>
17
-            <el-table-column prop="date" label="名称" align="center">
17
+            <el-table-column prop="date" label="组套名称" align="center">
18 18
                 <template slot-scope="scope">
19
-                    {{scope.row.project_team}}
19
+                    {{scope.row.project_name}}
20 20
                 </template>
21 21
             </el-table-column>
22
-            <el-table-column prop="date" label="拼音助记符" width="140" align="center">
22
+            <el-table-column prop="date" label="排序" width="140" align="center">
23 23
                 <template slot-scope="scope">
24
-                    {{scope.row.pinyin}}
25
-                </template>
26
-            </el-table-column>
27
-            <el-table-column prop="date" label="五笔助记符" width="140" align="center">
28
-                <template slot-scope="scope">
29
-                   {{scope.row.wubi}}
30
-                </template>
31
-            </el-table-column>
32
-            <el-table-column label="价格" width="100" align="center">
33
-                <template slot-scope="scope">
34
-                   {{scope.row.price}}
35
-                </template>
36
-            </el-table-column>
37
-            <el-table-column label="排序" width="100" align="center">
38
-                <template slot-scope="scope">
39
-                   {{scope.row.sort}}
40
-                </template>
41
-            </el-table-column>
42
-            <el-table-column prop="date" label="备注" align="center">
43
-                <template slot-scope="scope">
44
-                   {{scope.row.remark}}
24
+                    {{scope.row.sort}}
45 25
                 </template>
46 26
             </el-table-column>
47 27
             <el-table-column prop="date" label="操作" width="300" align="center">
48 28
                 <template slot-scope="scope">
49
-                    <el-button @click="editProjectTeam(scope.row.id)" type="primary" size="small">编辑</el-button>
50
-                    <el-button type="danger" size="small" @click="DeleteProjectTeam(scope.row.id,scope.$index)">删除</el-button>
29
+                    <el-button @click="editProject(scope.row.id)" type="primary" size="small">编辑</el-button>
30
+                    <el-button type="danger" size="small" @click="DeleteGood(scope.row.id,scope.$index)">删除</el-button>
51 31
                 </template>
52 32
             </el-table-column>
53 33
         </el-table>
@@ -65,9 +45,9 @@
65 45
         </el-pagination> 
66 46
 
67 47
         <el-dialog
68
-        title="组套详情"
69
-        :visible.sync="dialogVisible"
70
-        width="50%"
48
+          title="组套详情"
49
+          :visible.sync="dialogVisible"
50
+          width="50%"
71 51
        >
72 52
         <span>
73 53
         <el-form :model="form">
@@ -111,9 +91,7 @@
111 91
                     v-model="form.project_detail"
112 92
                     filterable
113 93
                     placeholder="请选择"
114
-                    @change="changeProject"
115
-                    
116
-                >
94
+                    @change="changeProject">
117 95
                     <el-option
118 96
                     v-for="item in goodList"
119 97
                     :key="item.id"
@@ -136,22 +114,28 @@
136 114
             
137 115
             <el-form-item>
138 116
               <el-table
139
-                :data="tableData"
117
+                :data="tableDataList"
140 118
                 border
141 119
                 style="width: 100%">
142
-                <el-table-column
143
-                prop="date"
144
-                label="耗材名称&规格"
145
-                width="180">
120
+                <el-table-column prop="date" label="耗材名称" width="180" align="center">
121
+                    <template  slot-scope="scope" >
122
+                        {{ scope.row.good_name }}
123
+                    </template>
146 124
                 </el-table-column>
147
-                <el-table-column
148
-                  prop="name"
149
-                  label="数量"
150
-                  width="180">
125
+                <el-table-column prop="date" label="规格" width="180" align="center">
126
+                    <template  slot-scope="scope">
127
+                        {{ scope.row.specification_name }}
128
+                   </template>
151 129
                 </el-table-column>
152
-                <el-table-column
153
-                 prop="address"
154
-                  label="操作">
130
+                <el-table-column  prop="name" label="数量" width="180" align="center">
131
+                    <template  slot-scope="scope">
132
+                        {{ scope.row.number }}
133
+                    </template>
134
+                </el-table-column>
135
+                <el-table-column prop="address" label="操作" align="center">
136
+                    <template slot-scope="scope">
137
+                        <el-button type="danger" size="small" @click="DeleteProject(scope.row.id,scope.$index)">删除</el-button>
138
+                    </template>
155 139
                 </el-table-column>
156 140
               </el-table>
157 141
             </el-form-item>
@@ -160,17 +144,122 @@
160 144
         </span>
161 145
         <span slot="footer" class="dialog-footer">
162 146
             <el-button @click="dialogVisible = false">取 消</el-button>
163
-            <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
147
+            <el-button type="primary" @click="saveGoodList">确 定</el-button>
164 148
         </span>
165
-    </el-dialog>
149
+        </el-dialog>
150
+
151
+         
152
+        <el-dialog
153
+          title="组套详情"
154
+          :visible.sync="editDialogVisible"
155
+          width="50%"
156
+       >
157
+        <span>
158
+        <el-form :model="form">
159
+          <el-row>
160
+            <el-col :span="24">
161
+                <el-form-item
162
+                    label="组套名称 : "
163
+                    prop="project_team"
164
+                    style="width: 100%"
165
+                    >
166
+                    <el-input
167
+                        style="width:200px"
168
+                        v-model="form.project_name"
169
+                        placeholder=""
170
+                        maxlength="30"
171
+                    ></el-input>
172
+              </el-form-item>
173
+            </el-col>
174
+
175
+          </el-row> 
176
+          <el-row>
177
+             <el-col :span="24">
178
+                <el-form-item
179
+                    label="排序 : "
180
+                    prop="project_team"
181
+                    style="width: 100%"
182
+                    >
183
+                    <el-input
184
+                        style="width:200px"
185
+                        v-model="form.sort"
186
+                        placeholder=""
187
+                        maxlength="30"
188
+                    ></el-input>
189
+                </el-form-item>
190
+             </el-col>
191
+          </el-row>
192
+        
193
+     
194
+            <el-form-item label="组套明细:" style="width: 50%">
195
+                <el-select
196
+                    v-model="form.project_detail"
197
+                    filterable
198
+                    placeholder="请选择"
199
+                    @change="changeProject">
200
+                    <el-option
201
+                    v-for="item in goodList"
202
+                    :key="item.id"
203
+                    :label="item.good_str"
204
+                    :value="item.id"
205
+                    >
206
+                    </el-option>
207
+                </el-select>
208
+            </el-form-item>
209
+
210
+            <el-form-item label="数量" style="width: 50%">
211
+                    <div style="display: flex">
212
+                        <el-input
213
+                        v-model="form.number"
214
+                        style="margin-right: 10px"
215
+                        ></el-input>
216
+                        <el-button type="primary" @click="addProjectList">添加</el-button>
217
+                    </div>
218
+            </el-form-item>
219
+            
220
+            <el-form-item>
221
+              <el-table
222
+                :data="tableDataList"
223
+                border
224
+                style="width: 100%">
225
+                <el-table-column prop="date" label="耗材名称" width="180" align="center">
226
+                    <template  slot-scope="scope" >
227
+                        {{ scope.row.good_name }}
228
+                    </template>
229
+                </el-table-column>
230
+                <el-table-column prop="date" label="规格" width="180" align="center">
231
+                    <template  slot-scope="scope">
232
+                        {{ scope.row.specification_name }}
233
+                   </template>
234
+                </el-table-column>
235
+                <el-table-column  prop="name" label="数量" width="180" align="center">
236
+                    <template  slot-scope="scope">
237
+                        {{ scope.row.number }}
238
+                    </template>
239
+                </el-table-column>
240
+                <el-table-column prop="address" label="操作" align="center">
241
+                    <template slot-scope="scope">
242
+                        <el-button type="danger" size="small" @click="DeleteGoodTeam(scope.row.id,scope.$index)">删除</el-button>
243
+                    </template>
244
+                </el-table-column>
245
+              </el-table>
246
+            </el-form-item>
247
+
248
+        </el-form>
249
+        </span>
250
+        <span slot="footer" class="dialog-footer">
251
+            <el-button @click="editDialogVisible = false">取 消</el-button>
252
+            <el-button type="primary" @click="updateGoodList">确 定</el-button>
253
+        </span>
254
+        </el-dialog>
255
+     
166 256
     </div>
167 257
     
168 258
   </div>
169 259
 </template>
170 260
 
171 261
 <script>
172
-import { getDictionaryDataConfig,getDataConfig } from "@/utils/data";
173
-import { getAllGoodInfoList,DeleteProjectTeam } from "@/api/project/project"
262
+import { getAllGoodInfoList,saveGoodList,getGoodList,getGoodNameDetail,updateGoodList,DeleteGoodTeam,DeleteGood } from "@/api/project/project"
174 263
 export default {
175 264
    
176 265
     data(){
@@ -189,6 +278,7 @@ export default {
189 278
             page:1,
190 279
             total:0,
191 280
             dialogVisible:false,
281
+            editDialogVisible:false,
192 282
             form:{
193 283
                 project_name:"",
194 284
                 sort:"", 
@@ -196,27 +286,85 @@ export default {
196 286
                 project_detail:""
197 287
             },
198 288
             projectList:[],
199
-            goodList:[]
289
+            goodList:[],
290
+            good_id:0,
291
+            ids:[],
292
+            tableDataList:[],
293
+            goodNameDetail:{}
200 294
         }
201 295
     },
202 296
     methods:{
203
-        changeProject(){
204
-            
297
+        editProject(id){
298
+         getGoodNameDetail(id).then(response=>{
299
+           if(response.data.state == 1){
300
+             var goodNameDetail = response.data.data.goodNameDetail
301
+             console.log("goodNameDetail",goodNameDetail)
302
+             this.form.project_name = goodNameDetail.project_name
303
+             this.form.sort = goodNameDetail.sort
304
+             this.form.id = goodNameDetail.id
305
+             this.goodList = []
306
+             this.goodList =  response.data.data.goodList
307
+             this.goodNameDetail = goodNameDetail
308
+             this.editDialogVisible = true
309
+             if(goodNameDetail!=null){
310
+               for(let i=0;i<goodNameDetail.xt_good_team_list.length;i++){
311
+                  goodNameDetail.xt_good_team_list[i].id = goodNameDetail.xt_good_team_list[i].id
312
+                  goodNameDetail.xt_good_team_list[i].good_name = this.getGoodName(goodNameDetail.xt_good_team_list[i].good_id)
313
+                  goodNameDetail.xt_good_team_list[i].specification_name = this.getGoodSpecicalName(goodNameDetail.xt_good_team_list[i].good_id)
314
+                  goodNameDetail.xt_good_team_list[i].number = goodNameDetail.xt_good_team_list[i].count
315
+               }
316
+             }
317
+             this.tableDataList = goodNameDetail.xt_good_team_list
318
+             
319
+           }
320
+         })
205 321
         },
206
-        getlist(){
207
-
322
+        changeProject(val){
323
+          this.good_id = val
208 324
         },
209
-        handleCurrentChange(){
210
-
325
+        getGoodList(){
326
+            var params = {
327
+               limit:this.limit,
328
+               page:this.page,
329
+               keyword:this.search_input
330
+            }
331
+          getGoodList(params).then(response=>{
332
+            if(response.data.state == 1){
333
+              var list = response.data.data.list
334
+              this.tableData = list
335
+              var total = response.data.data.total
336
+              this.total = total
337
+             
338
+            }
339
+          })
211 340
         },
212
-        handleSizeChange(){
213
-
341
+        handleCurrentChange(val){
342
+           this.page = val;
343
+           this.getGoodList()
344
+        },
345
+        handleSizeChange(val){
346
+          this.limit = val
347
+          this.getGoodList()
214 348
         },
215 349
         searchAction(){
216
-
350
+          this.getGoodList()
217 351
         },
218 352
         addProjectList(){
219
-            
353
+           if(this.form.number == ""){
354
+             this.$message.error("请输入数量!")
355
+             return
356
+           }
357
+           var obj= {id:0,good_id:"",good_name:"",specification_name:"",number:0}  
358
+           for(let i=0;i<this.goodList.length;i++){
359
+            if(this.good_id == this.goodList[i].id){
360
+               obj.id = 0
361
+               obj.good_id = this.goodList[i].id
362
+               obj.good_name = this.goodList[i].good_name
363
+               obj.specification_name = this.goodList[i].specification_name
364
+               obj.number = parseInt(this.form.number) 
365
+            }
366
+           }
367
+           this.tableDataList.push(obj)
220 368
         },
221 369
         openForm(){
222 370
          getAllGoodInfoList().then(response=>{
@@ -232,11 +380,89 @@ export default {
232 380
             }
233 381
          })
234 382
          
383
+        },
384
+        DeleteProjectTeam(id,index){
385
+
386
+        },
387
+        DeleteProject(id,index){
388
+         this.ids.push(id)
389
+         this.tableData.splice(index,1)
390
+        },
391
+        saveGoodList(){
392
+           var params = {
393
+            project_name:this.form.project_name,
394
+            sort:parseInt(this.form.sort),
395
+            number:parseInt(this.form.number),
396
+           } 
397
+           var data = {
398
+            info:this.tableDataList
399
+           }
400
+         saveGoodList(params,data).then(response=>{
401
+            if(response.data.state ==1){
402
+              var lastGoodTeam = response.data.data.lastGoodTeam
403
+              this.$message.success("保存成功")
404
+              this.dialogVisible = false
405
+            }
406
+         })  
407
+        },
408
+        getGoodName(id){
409
+          var good_name = ""
410
+          for(let i=0;i<this.goodList.length;i++){
411
+             if(id == this.goodList[i].id){
412
+                good_name = this.goodList[i].good_name
413
+             }
414
+          }
415
+          return good_name
416
+        },
417
+        getGoodSpecicalName(id){
418
+          var specification_name = ""
419
+          for(let i=0;i<this.goodList.length;i++){
420
+            if(id == this.goodList[i].id){
421
+              specification_name = this.goodList[i].specification_name
422
+            }
423
+          }
424
+          return specification_name
425
+        },
426
+        updateGoodList(){
427
+            var params = {
428
+            id:this.id,
429
+            project_name:this.form.project_name,
430
+            sort:parseInt(this.form.sort),
431
+            number:parseInt(this.form.number),
432
+           } 
433
+           var data = {
434
+            info:this.tableDataList
435
+           }
436
+          updateGoodList(params,data).then(response=>{
437
+             if(response.data.state == 1){
438
+               var lastGoodTeam = response.data.data.lastGoodTeam
439
+               this.$message.success("保存成功!")
440
+               this.editDialogVisible = true
441
+             }
442
+          })  
443
+        },
444
+        DeleteGoodTeam(id,index){
445
+          DeleteGoodTeam(id,index).then(response=>{
446
+            if(response.data.state == 1){
447
+              var team = response.data.data.team
448
+              this.tableDataList.splice(index,1)
449
+              this.$message.success("删除成功!")
450
+            }
451
+         })
452
+        },
453
+        DeleteGood(id,index){
454
+         DeleteGood(id,index).then(response=>{
455
+           if(response.data.state == 1){
456
+             var good = response.data.data.good
457
+             this.tableData.splice(index,1)
458
+             this.$message.success("删除成功!")
459
+           }
460
+         })
235 461
         }
236 462
     },
237 463
     created(){
238
-     
239
-       this.getlist() 
464
+       
465
+       this.getGoodList() 
240 466
       
241 467
     }
242 468
 }

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

@@ -23,7 +23,7 @@
23 23
             <automatic-reduce></automatic-reduce>
24 24
           </el-tab-pane>
25 25
 
26
-          <!-- <el-tab-pane label="耗材套装">
26
+         <!-- <el-tab-pane label="耗材套装">
27 27
             <good-list></good-list>
28 28
           </el-tab-pane> -->
29 29
 

+ 4 - 4
src/xt_pages/stock/selfPreparedMedicine/addWarehouseInfo.vue 查看文件

@@ -149,7 +149,7 @@
149 149
                 </el-form-item>
150 150
               </template>
151 151
             </el-table-column>
152
-            <el-table-column align="center" width="150">
152
+            <!-- <el-table-column align="center" width="150">
153 153
               <template slot="header" slot-scope="scope">
154 154
                 <span>批号<span style="color: red">*</span></span>
155 155
               </template>
@@ -166,7 +166,7 @@
166 166
                 </el-form-item>
167 167
               </template>
168 168
             </el-table-column>
169
-  
169
+   -->
170 170
             <el-table-column align="center" width="200">
171 171
               <template slot="header" slot-scope="scope">
172 172
                 <span>入库数量<span style="color: red">*</span></span>
@@ -211,7 +211,7 @@
211 211
             </el-table-column>
212 212
         
213 213
             
214
-            <el-table-column width="180" align="center">
214
+            <!-- <el-table-column width="180" align="center">
215 215
               <template slot="header" slot-scope="scope">
216 216
                 <span>有效日期<span style="color: red">*</span></span>
217 217
               </template>
@@ -232,7 +232,7 @@
232 232
                   ></el-date-picker>
233 233
                 </el-form-item>
234 234
               </template>
235
-            </el-table-column>
235
+            </el-table-column> -->
236 236
   
237 237
             <el-table-column label="生产日期" width="180" align="center">
238 238
               <template slot-scope="scope">

+ 2 - 2
src/xt_pages/stock/selfPreparedMedicine/addWarehouseOut.vue 查看文件

@@ -150,7 +150,7 @@
150 150
                 </el-form-item>
151 151
               </template>
152 152
             </el-table-column>
153
-            <el-table-column align="center" width="150">
153
+            <!-- <el-table-column align="center" width="150">
154 154
               <template slot="header" slot-scope="scope">
155 155
                 <span>批号<span style="color: red">*</span></span>
156 156
               </template>
@@ -166,7 +166,7 @@
166 166
                   ></el-input>
167 167
                 </el-form-item>
168 168
               </template>
169
-            </el-table-column>
169
+            </el-table-column> -->
170 170
   
171 171
             <el-table-column align="center" width="200">
172 172
               <template slot="header" slot-scope="scope">

+ 4 - 4
src/xt_pages/stock/selfPreparedMedicine/editWarehouseInfo.vue 查看文件

@@ -157,7 +157,7 @@
157 157
                 </el-form-item>
158 158
               </template>
159 159
             </el-table-column>
160
-            <el-table-column align="center" width="150">
160
+            <!-- <el-table-column align="center" width="150">
161 161
               <template slot="header" slot-scope="scope">
162 162
                 <span>批号<span style="color: red">*</span></span>
163 163
               </template>
@@ -173,7 +173,7 @@
173 173
                   ></el-input>
174 174
                 </el-form-item>
175 175
               </template>
176
-            </el-table-column>
176
+            </el-table-column> -->
177 177
   
178 178
             <el-table-column align="center" width="200">
179 179
               <template slot="header" slot-scope="scope">
@@ -219,7 +219,7 @@
219 219
             </el-table-column>
220 220
         
221 221
             
222
-            <el-table-column width="180" align="center">
222
+            <!-- <el-table-column width="180" align="center">
223 223
               <template slot="header" slot-scope="scope">
224 224
                 <span>有效日期<span style="color: red">*</span></span>
225 225
               </template>
@@ -240,7 +240,7 @@
240 240
                   ></el-date-picker>
241 241
                 </el-form-item>
242 242
               </template>
243
-            </el-table-column>
243
+            </el-table-column> -->
244 244
   
245 245
             <el-table-column label="生产日期" width="180" align="center">
246 246
               <template slot-scope="scope">

+ 2 - 2
src/xt_pages/stock/selfPreparedMedicine/editWarehouseOut.vue 查看文件

@@ -159,7 +159,7 @@
159 159
                 </el-form-item>
160 160
               </template>
161 161
             </el-table-column>
162
-            <el-table-column align="center" width="150">
162
+            <!-- <el-table-column align="center" width="150">
163 163
               <template slot="header" slot-scope="scope">
164 164
                 <span>批号<span style="color: red">*</span></span>
165 165
               </template>
@@ -176,7 +176,7 @@
176 176
                 </el-form-item>
177 177
               </template>
178 178
             </el-table-column>
179
-  
179
+   -->
180 180
             <el-table-column align="center" width="200">
181 181
               <template slot="header" slot-scope="scope">
182 182
                 <span>出库数量<span style="color: red">*</span></span>

+ 2 - 1
src/xt_pages/stock/selfPreparedMedicine/newDrugQuery.vue 查看文件

@@ -172,7 +172,7 @@
172 172
         this.getlist()
173 173
       },
174 174
       toClick(val){
175
-       
175
+        console.log("val0000000000000000",val)
176 176
          var manufacturer_name = ""
177 177
          var specification_name = ""
178 178
          for(let i=0;i<this.manufacturerList.length;i++){
@@ -224,6 +224,7 @@
224 224
                       child: [],
225 225
                       count:0,
226 226
                       patient_id:0,
227
+                      flush_count:item.flush_count,
227 228
                     }
228 229
                   }
229 230
                 })

+ 8 - 6
src/xt_pages/stock/selfPreparedMedicine/selfDrugFlow.vue 查看文件

@@ -112,24 +112,23 @@
112 112
   
113 113
        
114 114
         
115
-           <el-table-column prop="drug_name" label="有效期" align="center">
115
+           <!-- <el-table-column prop="drug_name" label="有效期" align="center">
116 116
              <template slot-scope="scope">
117 117
                 {{getTime(scope.row.expire_date,"{y}-{h}-{d}")}}
118 118
               
119 119
              </template>
120
-          </el-table-column>
120
+          </el-table-column> -->
121 121
          
122 122
           <el-table-column prop="drug_name" label="使用人" align="center">
123 123
              <template slot-scope="scope">
124 124
                <span > {{getPatientName(scope.row.patient_id)}}</span>
125 125
              </template>
126 126
           </el-table-column>
127
-          <el-table-column prop="drug_name" label="剩余库存" align="center">
127
+          <!-- <el-table-column prop="drug_name" label="剩余库存" align="center" v-if="patient_id>0">
128 128
              <template slot-scope="scope">
129
-               <!-- <span > {{getDrugCount(scope.row.over_count,scope.row.BaseDrugLib.max_unit,scope.row.BaseDrugLib.min_unit,scope.row.BaseDrugLib.min_number)}}</span> -->
130 129
                  {{ scope.row.over_count }} {{ drug.min_unit }}
131 130
              </template>
132
-          </el-table-column>
131
+          </el-table-column> -->
133 132
           <el-table-column prop="remark" label="备注" align="center">
134 133
              <template slot-scope="scope">
135 134
                <span > {{scope.row.remark}}</span>
@@ -221,10 +220,13 @@
221 220
         houseList:[],
222 221
         patientList:[],
223 222
         drug:{},
224
-        patients:[]
223
+        patients:[],
224
+        patient_id:0,
225 225
       }
226 226
     },
227 227
     created(){
228
+      this.patient_id = this.$route.query.patient_id
229
+      console.log("病人ID=----------------",this.patient_id)
228 230
       this.getlist()
229 231
     },
230 232
     methods:{

+ 4 - 4
src/xt_pages/stock/selfPreparedMedicine/selfPatientDrugFlow.vue 查看文件

@@ -112,23 +112,23 @@
112 112
   
113 113
        
114 114
         
115
-           <el-table-column prop="drug_name" label="有效期" align="center">
115
+           <!-- <el-table-column prop="drug_name" label="有效期" align="center">
116 116
              <template slot-scope="scope">
117 117
                 {{getTime(scope.row.expire_date,"{y}-{h}-{d}")}}
118 118
               
119 119
              </template>
120
-          </el-table-column>
120
+          </el-table-column> -->
121 121
          
122 122
           <el-table-column prop="drug_name" label="使用人" align="center">
123 123
              <template slot-scope="scope">
124 124
                <span > {{getPatientName(scope.row.patient_id)}}</span>
125 125
              </template>
126 126
           </el-table-column>
127
-          <!-- <el-table-column prop="drug_name" label="剩余库存" align="center">
127
+          <el-table-column prop="drug_name" label="剩余库存" align="center">
128 128
              <template slot-scope="scope">
129 129
                  {{ scope.row.over_count }} {{ drug.min_unit }}
130 130
              </template>
131
-          </el-table-column> -->
131
+          </el-table-column>
132 132
           <el-table-column prop="remark" label="备注" align="center">
133 133
              <template slot-scope="scope">
134 134
                <span > {{scope.row.remark}}</span>