瀏覽代碼

医废展示单价和总价

seimin 10 月之前
父節點
當前提交
71b8d6065c

+ 1 - 1
proxy.conf.json

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "/service": {
3
-    "target": "http://192.168.4.163",
3
+    "target": "http://192.168.3.108",
4 4
     "logLevel": "debug",
5 5
     "changeOrigin": true,
6 6
     "pathRewrite": {

+ 7 - 5
src/app/views/medical-waste-information/medical-waste-information.component.html

@@ -75,11 +75,12 @@
75 75
             <th nzWidth="10%">序号</th>
76 76
             <th nzWidth="10%">重量(KG)</th>
77 77
             <th nzWidth="10%">科室名称</th>
78
-            <th nzWidth="11%">收取人</th>
79
-            <th nzWidth="11%">收取时间</th>
80
-            <th nzWidth="11%">医废状态</th>
81
-            <th nzWidth="11%">备注</th>
82
-            <th nzWidth="11%">操作</th>
78
+            <th nzWidth="10%">收取人</th>
79
+            <th nzWidth="10%">收取时间</th>
80
+            <th nzWidth="8%">医废状态</th>
81
+            <th nzWidth="10%">备注</th>
82
+            <th nzWidth="7%">总价</th>
83
+            <th nzWidth="10%">操作</th>
83 84
           </tr>
84 85
         </thead>
85 86
         <tbody>
@@ -93,6 +94,7 @@
93 94
             <td>{{ data.receiveTime | date:"yyyy-MM-dd HH:mm:ss" }}</td>
94 95
             <td>{{ data.status ? data.status.name : '' }}</td>
95 96
             <td>{{ data.remark }}</td>
97
+            <td>{{ data.totalPrice }}</td>
96 98
             <td>
97 99
               <div class="coop">
98 100
                 <span *ngIf="coopBtns.look" (click)="viewHistory(data)">查看日志</span>

+ 14 - 4
src/app/views/medical-waste-type/medical-waste-type.component.html

@@ -12,15 +12,17 @@
12 12
         <thead>
13 13
           <tr class="thead">
14 14
             <th nzWidth="20%">类型名称</th>
15
-            <th nzWidth="20%">单位</th>
16
-            <th nzWidth="20%">储存单位</th>
17
-            <th nzWidth="20%">库存限制天数</th>
18
-            <th nzWidth="20%">操作</th>
15
+            <th nzWidth="16%">单价</th>
16
+            <th nzWidth="16%">单位</th>
17
+            <th nzWidth="16%">储存单位</th>
18
+            <th nzWidth="16%">库存限制天数</th>
19
+            <th nzWidth="16%">操作</th>
19 20
           </tr>
20 21
         </thead>
21 22
         <tbody>
22 23
           <tr *ngFor="let data of listOfData;let index=index;">
23 24
             <td>{{ data.typeName }}</td>
25
+            <td>{{ data.unitPrice }}</td>
24 26
             <td>{{ data.unit ? data.unit.name : '' }}</td>
25 27
             <td>{{ data.storageUnit ? data.storageUnit.name : '' }}</td>
26 28
             <td>{{ data.inventoryDays }}</td>
@@ -57,6 +59,14 @@
57 59
           </nz-form-control>
58 60
         </nz-form-item>
59 61
         <nz-form-item>
62
+          <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="unitPrice">单价</nz-form-label>
63
+          <nz-form-control nzErrorTip="请输入单价!">
64
+            <nz-input-group>
65
+              <nz-input-number formControlName="unitPrice" placeholder="请输入单价" [nzMin]="0" [nzStep]="1" [nzPrecision]="2"></nz-input-number>
66
+            </nz-input-group>
67
+          </nz-form-control>
68
+        </nz-form-item>
69
+        <nz-form-item>
60 70
           <nz-form-label [nzSm]="6" [nzXs]="24" nzRequired nzFor="unit">单位</nz-form-label>
61 71
           <nz-form-control nzErrorTip="请选择单位!">
62 72
             <nz-select [nzDropdownMatchSelectWidth]="false" nzShowSearch nzAllowClear

+ 3 - 0
src/app/views/medical-waste-type/medical-waste-type.component.ts

@@ -114,6 +114,7 @@ export class MedicalWasteTypeComponent implements OnInit {
114 114
     this.validateForm = this.fb.group({
115 115
       typeName: [null, [Validators.required]],
116 116
       inventoryDays: [0, [Validators.required]],
117
+      unitPrice: [0, [Validators.required]],
117 118
       unit: [null, [Validators.required]],
118 119
       storageUnit: [null, [Validators.required]],
119 120
     });
@@ -130,6 +131,7 @@ export class MedicalWasteTypeComponent implements OnInit {
130 131
     let data:any = {
131 132
       typeName: that.validateForm.value.typeName,
132 133
       inventoryDays: that.validateForm.value.inventoryDays,
134
+      unitPrice: that.validateForm.value.unitPrice || undefined,
133 135
       unit: that.validateForm.value.unit ? { id: that.validateForm.value.unit } : undefined,
134 136
       storageUnit: that.validateForm.value.storageUnit ? { id: that.validateForm.value.storageUnit } : undefined,
135 137
       hosId: that.hosId,
@@ -161,6 +163,7 @@ export class MedicalWasteTypeComponent implements OnInit {
161 163
     this.coopData = data;
162 164
     this.validateForm.controls.typeName.setValue(data.typeName);
163 165
     this.validateForm.controls.inventoryDays.setValue(data.inventoryDays);
166
+    this.validateForm.controls.unitPrice.setValue(data.unitPrice);
164 167
     this.validateForm.controls.unit.setValue(data.unit.id);
165 168
     this.validateForm.controls.storageUnit.setValue(data.storageUnit.id);
166 169
   }