XMLWAN 3 yıl önce
ebeveyn
işleme
060f0a4f7b

+ 8 - 0
src/api/stock.js Dosyayı Görüntüle

@@ -930,3 +930,11 @@ export function getGoodWarehouseList(params) {
930 930
     params: params
931 931
   })
932 932
 }
933
+
934
+export function proofInventory(params) {
935
+  return request({
936
+    url: '/api/stock/proofinventory',
937
+    method: 'get',
938
+    params: params
939
+  })
940
+}

+ 7 - 0
src/xt_pages/dialysis/details/DialysisPrescription.vue Dosyayı Görüntüle

@@ -388,6 +388,13 @@
388 388
             <span>{{this.prescription.oxygen_time}}</span>
389 389
            </span>
390 390
         </li>
391
+
392
+         <li v-if="isShow('最大超滤率')">
393
+          <label>最大超滤率(ml/h):</label>
394
+          <span class="content">
395
+            <span>{{this.prescription.max_ultrafiltration_rate}}</span>
396
+           </span>
397
+        </li>
391 398
        
392 399
       </ul>
393 400
     </div>

+ 8 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Dosyayı Görüntüle

@@ -805,6 +805,13 @@
805 805
                     </el-col>
806 806
 
807 807
 
808
+                     <el-col :span="8" v-if="isShows('最大超滤率')">
809
+                        <el-form-item label="最大超滤率(ml/h)">
810
+                            <el-input oninput="value=value.replace(/\D|^0/g,'')" v-model="dialysisPrescription.max_ultrafiltration_rate"></el-input>
811
+                        </el-form-item>
812
+                    </el-col>
813
+
814
+
808 815
                 </el-row>
809 816
 
810 817
 
@@ -1318,7 +1325,7 @@
1318 1325
           puncture_needle_count: '',
1319 1326
           epo: '',
1320 1327
           epo_count: '',
1321
-
1328
+          max_ultrafiltration_rate:'',
1322 1329
           hemodialysisPipelinesOptions: [],
1323 1330
           punctureNeedleOptions: [],
1324 1331
           epoOptions: []

+ 46 - 16
src/xt_pages/stock/inventory.vue Dosyayı Görüntüle

@@ -2,7 +2,7 @@
2 2
     <div>
3 3
         <div style="display: flex;align-items: center;justify-content: space-between;margin-bottom:10px;">
4 4
             <div>
5
-                <el-select v-model="inventory_status" size="small" placeholder="请选择">
5
+                <el-select v-model="inventory_status" size="small" placeholder="请选择" @change="changeInventory">
6 6
                     <el-option
7 7
                     v-for="item in inventoryList"
8 8
                     :key="item.id"
@@ -15,7 +15,7 @@
15 15
                 style="width: 200px;margin-left:10px;"
16 16
                 class="filter-item"
17 17
                 v-model.trim="searchKey"
18
-                placeholder=""
18
+                placeholder="请输入单据编号或操作人姓名"
19 19
                 />
20 20
                 <el-button
21 21
                 size="small"
@@ -26,6 +26,7 @@
26 26
                 >搜索</el-button
27 27
                 >
28 28
                 <el-date-picker
29
+                @change="changeStartTime"
29 30
                 size="small"
30 31
                 v-model="start_time"
31 32
                 type="date"
@@ -37,7 +38,8 @@
37 38
                 v-model="end_time"
38 39
                 type="date"
39 40
                 style="margin-left:5px;width:140px;"
40
-                placeholder="选择日期">
41
+                placeholder="选择日期"
42
+                @change="changeEndTime">
41 43
                 </el-date-picker>
42 44
             </div>
43 45
             <div>
@@ -414,28 +416,19 @@
414 416
                <el-form-item label="盘点数量:">
415 417
                  <el-input v-model="form.count" style="width:200px" :disabled="true"></el-input>
416 418
                </el-form-item>
417
-               <el-form-item label="库存数量:" :disabled="true">
418
-                 <el-input v-model="form.total" style="width:200px"></el-input>
419
+               <el-form-item label="库存数量:">
420
+                 <el-input v-model="form.total" style="width:200px" :disabled="true"></el-input>
419 421
                </el-form-item>
420 422
                <el-form-item label="校对数量:">
421 423
                  <el-input v-model="form.proof_count" style="width:200px"></el-input>
422 424
                </el-form-item>
423 425
              </el-col> 
424 426
             </el-row>
425
-            <el-row>
426
-             <el-col>
427
-                <el-form-item label="备注:">
428
-                    <div style="display:flex;">
429
-                        <el-input v-model="form.remark"  style="width:200px"></el-input>
430
-                    </div>
431
-                </el-form-item>
432
-              </el-col>  
433
-            </el-row>
434 427
           </el-form>
435 428
         </span>
436 429
         <span slot="footer" class="dialog-footer">
437 430
             <el-button @click="proofPriceDialogVisible = false">取 消</el-button>
438
-            <el-button type="primary" @click="modifyInventory">保存</el-button>
431
+            <el-button type="primary" @click="proofInventory">保存</el-button>
439 432
         </span>
440 433
       </el-dialog>
441 434
     </div>
@@ -443,7 +436,7 @@
443 436
 
444 437
 <script> 
445 438
 import { uParseTime } from '@/utils/tools'
446
-import { postSearchGoodWarehouseList,saveInventory,getInventoryList,SaveCheckedInventory,getInventoryDetail,modifyInventory,deleteInventory,getStockBatchNumber,getGoodWarehouseList } from "@/api/stock"
439
+import { postSearchGoodWarehouseList,saveInventory,getInventoryList,SaveCheckedInventory,getInventoryDetail,modifyInventory,deleteInventory,getStockBatchNumber,getGoodWarehouseList,proofInventory } from "@/api/stock"
447 440
 export default {
448 441
     name: "inventory",
449 442
     data() {
@@ -664,6 +657,7 @@ export default {
664 657
           page:this.page,
665 658
           limit:this.limit,
666 659
          }
660
+        console.log("parasm",params)
667 661
        getInventoryList(params).then(response=>{
668 662
           if(response.data.state ==1 ){
669 663
            var list =  response.data.data.list
@@ -755,6 +749,8 @@ export default {
755 749
             this.form.count = detail.count
756 750
             this.form.remark = detail.remark
757 751
             this.form.total = detail.total
752
+            this.form.warehousing_info_id = detail.warehousing_info_id
753
+            this.form.good_id  = detail.good_id
758 754
             this.id = detail.id
759 755
             this.proofPriceDialogVisible = true
760 756
 
@@ -871,6 +867,40 @@ export default {
871 867
            console.log("list23232",list)
872 868
          }
873 869
       })
870
+     },
871
+     proofInventory(){
872
+        var params = {
873
+          id:this.id,
874
+          good_id:this.form.good_id,
875
+          warehousing_info_id:this.form.warehousing_info_id,
876
+          proof_count:parseInt(this.form.proof_count),
877
+          total:parseInt(this.form.total)
878
+        }
879
+        console.log("parasm",params)
880
+       proofInventory(params).then(response=>{
881
+          if(response.data.state == 1){
882
+             var info = response.data.data.info
883
+             this.$message.success("保存成功!")
884
+             this.proofPriceDialogVisible = false
885
+             this.form.good_name = ""
886
+             this.form.specification_name = ""
887
+             this.form.proof_count = ""
888
+             this.form.total = ""
889
+             this.form.good_id = ""
890
+             this.getlist()
891
+          }
892
+       })
893
+     },
894
+     changeInventory(){
895
+       this.getlist()
896
+     },
897
+     changeStartTime(val){
898
+       this.start_time = this.getTime(val)
899
+       this.getlist()
900
+     },
901
+     changeEndTime(val){
902
+       this.end_time = this.getTime(val)
903
+       this.getlist()
874 904
      }
875 905
     },
876 906
     created(){

+ 27 - 11
src/xt_pages/stock/inventoryDetails.vue Dosyayı Görüntüle

@@ -25,23 +25,21 @@
25 25
                 style="width: 200px;margin-left:10px;"
26 26
                 class="filter-item"
27 27
                 v-model.trim="searchKey"
28
-                placeholder=""
28
+                placeholder="请输入单据编号或操作人姓名"
29 29
                 />
30 30
                 <el-button
31 31
                 size="small"
32 32
                 class="filter-item"
33 33
                 type="primary"
34 34
                 icon="el-icon-search"
35
-                @click="search"
36
-                >搜索</el-button
37
-                >
35
+                @click="search">搜索</el-button>
38 36
             </div>
39
-            <div>
37
+            <!-- <div>
40 38
                 <el-button size="small" type="primary" @click="print">打印</el-button>
41 39
                 <el-button size="small" type="primary" @click="exportList">导出</el-button>
42
-            </div>
40
+            </div> -->
43 41
         </div>
44
-        <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }" @selection-change="changePrice">
42
+        <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }" @selection-change="changePrice" style="width:100%">
45 43
             <el-table-column type="selection" width="55" align="center"> </el-table-column>
46 44
             <el-table-column prop="date" label="耗材名称"  width="100" align="center">
47 45
                 <template slot-scope="scope">
@@ -83,7 +81,7 @@
83 81
             <!-- <el-table-column prop="name" label="产地"  width="100">
84 82
               {{scope.row.now_g}}
85 83
             </el-table-column> -->
86
-            <el-table-column  prop="name" label="生产厂商" width="100" align="center">
84
+            <el-table-column  prop="name" label="生产厂商" width="260" align="center">
87 85
               <template slot-scope="scope">
88 86
                 {{scope.row.manufacturer}}
89 87
              </template>
@@ -93,11 +91,17 @@
93 91
                     {{scope.row.count}}
94 92
                 </template>
95 93
             </el-table-column>
96
-            <el-table-column  prop="name" label="亏损价格" width="100" align="center">
97
-            </el-table-column>
94
+            <!-- <el-table-column  prop="name" label="亏损价格" width="100" align="center">
95
+            </el-table-column> -->
98 96
             <el-table-column prop="name" label="生产日期" width="100" align="center">
97
+              <template slot-scope="scope">
98
+               {{getTime(scope.row.expire_date)}}
99
+               </template>
99 100
             </el-table-column>
100 101
             <el-table-column  prop="name" label="有效日期" width="100" align="center">
102
+               <template slot-scope="scope">
103
+                 {{getTime(scope.row.product_date)}}
104
+               </template>
101 105
             </el-table-column>
102 106
         </el-table>
103 107
         <el-pagination
@@ -115,6 +119,7 @@
115 119
 </template>
116 120
 
117 121
 <script>
122
+import { uParseTime } from '@/utils/tools'
118 123
 import { getInventoryDetailList } from "@/api/stock"
119 124
 export default {
120 125
     name: "inventory",
@@ -136,7 +141,7 @@ export default {
136 141
     },
137 142
     methods:{
138 143
         search(){
139
-
144
+         this.getlist()
140 145
         },
141 146
         print(){
142 147
            if(this.ids == ""){
@@ -190,6 +195,17 @@ export default {
190 195
        formatJson(filterVal, jsonData) {
191 196
         return jsonData.map(v => filterVal.map(j => v[j]));
192 197
       },
198
+
199
+      getTime(val) {
200
+         if(val < 0){
201
+            return ""
202
+          }
203
+         if(val == ""){
204
+            return ""
205
+          }else {
206
+            return uParseTime(val, '{y}-{m}-{d}')
207
+         }
208
+       },
193 209
     },
194 210
     created(){
195 211
       this.getlist()

+ 13 - 12
src/xt_pages/stock/stockDamaged.vue Dosyayı Görüntüle

@@ -11,17 +11,17 @@
11 11
                 style="width: 200px;"
12 12
                 class="filter-item"
13 13
                 v-model.trim="searchKey"
14
-                placeholder=""
14
+                placeholder="请输入单据编号或操作人姓名"
15 15
                 />
16 16
                 <el-button
17 17
                 size="small"
18 18
                 class="filter-item"
19 19
                 type="primary"
20 20
                 icon="el-icon-search"
21
-                @click="search"
22
-                placeholder="请输入单据编号或操作人姓名">搜索</el-button>
21
+                @click="search">搜索</el-button>
23 22
                 <el-date-picker
24 23
                 size="small"
24
+                @change="changeStartTime"
25 25
                 v-model="start_time"
26 26
                 type="date"
27 27
                 style="margin-left:5px;width:140px;"
@@ -29,6 +29,7 @@
29 29
                 </el-date-picker>
30 30
                 <el-date-picker
31 31
                 size="small"
32
+                @change="changeEndTime"
32 33
                 v-model="end_time"
33 34
                 type="date"
34 35
                 style="margin-left:5px;width:140px;"
@@ -149,9 +150,6 @@
149 150
             <el-form-item label="零售价">
150 151
                 <el-input v-model="form.packing_price"></el-input>
151 152
             </el-form-item>
152
-            <!-- <el-form-item label="新零售价">
153
-                <el-input v-model="form.new_price"></el-input>
154
-            </el-form-item> -->
155 153
             <el-form-item label="报损数量">
156 154
                 <el-input v-model="form.count"></el-input>
157 155
             </el-form-item>
@@ -210,11 +208,6 @@
210 208
                 {{scope.row.packing_price}}
211 209
                </template>
212 210
             </el-table-column>
213
-            <!-- <el-table-column prop="name" label="新零售价" width="100">
214
-               <template  slot-scope="scope">
215
-                {{scope.row.new_price}}
216
-               </template>
217
-            </el-table-column> -->
218 211
             <el-table-column prop="name" label="生产厂商" width="100" align="center">
219 212
               <template  slot-scope="scope">
220 213
                 {{scope.row.manufacturer}}
@@ -438,7 +431,7 @@ export default {
438 431
     },
439 432
     methods:{
440 433
         search(){
441
-
434
+           this.getlist()
442 435
         },
443 436
         print(){
444 437
           if(this.ids == ""){
@@ -809,6 +802,14 @@ export default {
809 802
            console.log("list23232",list)
810 803
          }
811 804
       })
805
+     },
806
+     changeStartTime(val){
807
+        this.start_time = this.getTime(val)
808
+        this.getlist()
809
+     },
810
+     changeEndTime(val){
811
+       this.end_time = this.getTime(val)
812
+       this.getlist()
812 813
      }
813 814
     },
814 815
     created(){

+ 9 - 1
src/xt_pages/user/dialysisSolution.vue Dosyayı Görüntüle

@@ -687,6 +687,12 @@
687 687
             </el-form-item>
688 688
           </el-col>
689 689
 
690
+         <el-col :span="8" v-if="isShows('最大超滤率')">
691
+            <el-form-item label="最大超滤率(ml/h)">
692
+              <el-input v-model="addPlan.max_ultrafiltration_rate"></el-input>
693
+            </el-form-item>
694
+          </el-col>
695
+
690 696
         </el-row>
691 697
 
692 698
 
@@ -893,7 +899,7 @@ export default {
893 899
         puncture_needle_count:"",
894 900
         epo:"",
895 901
         epo_count:"",
896
-
902
+        max_ultrafiltration_rate:"",
897 903
 
898 904
       },
899 905
       childPlan: {
@@ -1568,6 +1574,7 @@ export default {
1568 1574
       this.addPlan.dialysis_duration_minute = '' + row.dialysis_duration_minute
1569 1575
       this.addPlan.hemodialysis_machine = row.hemodialysis_machine + ''
1570 1576
       this.addPlan.perfusion_apparatus = row.perfusion_apparatus + ''
1577
+      this.addPlan.max_ultrafiltration_rate = row.max_ultrafiltration_rate
1571 1578
       if(row.blood_flow_volume!="" || row.blood_flow_volume!=undefined){
1572 1579
         this.addPlan.blood_flow_volume = row.blood_flow_volume.toString()
1573 1580
       }
@@ -1674,6 +1681,7 @@ export default {
1674 1681
       this.dialysis_irrigation = row.dialysis_irrigation
1675 1682
       this.dialysis_dialyszers = row.dialysis_dialyszers
1676 1683
       this.addPlan.oxygen_uptake = row.oxygen_uptake
1684
+      this.addPlan.max_ultrafiltration_rate = row.max_ultrafiltration_rate
1677 1685
       if(row.oxygen_uptake == 1){
1678 1686
         this.oxygenShow = true
1679 1687
       }