Browse Source

修改报修

seimin 2 years ago
parent
commit
a0f1aa7237

+ 8 - 9
src/app/views/hushijiandan/hushijiandan.component.html

@@ -1764,9 +1764,9 @@
1764 1764
                           <th nzWidth="7%">序号</th>
1765 1765
                           <th nzWidth="16%">报修内容</th>
1766 1766
                           <th nzWidth="16%">报修时间</th>
1767
-                          <th nzWidth="16%">报修</th>
1768
-                          <th nzWidth="15%">状态</th>
1769
-                          <th nzWidth="15%">处理人</th>
1767
+                          <th nzWidth="16%">报修科室</th>
1768
+                          <th nzWidth="10%">状态</th>
1769
+                          <th nzWidth="20%">维修人</th>
1770 1770
                           <th nzWidth="15%"></th>
1771 1771
                         </tr>
1772 1772
                       </thead>
@@ -1778,18 +1778,17 @@
1778 1778
                             {{ data.createTime | date: "MM-dd HH:mm" }}
1779 1779
                           </td>
1780 1780
                           <td>
1781
-                            {{ data.requester ? data.requester.name : "无" }}
1781
+                            {{ data.departmentDTO ? data.departmentDTO.dept : "无" }}
1782 1782
                           </td>
1783 1783
                           <td>{{ data.state?data.state.name:'无' }}</td>
1784 1784
                           <td>
1785
-                            无
1786
-                            <!-- {{
1785
+                            {{
1787 1786
                               data.incident
1788
-                                ? data.incident.contacts
1789
-                                  ? data.incident.contacts
1787
+                                ? data.incident.handlingPersonnelUser
1788
+                                  ? data.incident.handlingPersonnelUser.name + (data.incident.handlingPersonnelUser.phone?'('+ data.incident.handlingPersonnelUser.phone +')':'')
1790 1789
                                   : "无"
1791 1790
                                 : "无"
1792
-                            }} -->
1791
+                            }}
1793 1792
                           </td>
1794 1793
                           <td>
1795 1794
                             <!-- <button (click)="viewBx(data)">查看</button> -->

+ 6 - 4
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -883,8 +883,9 @@ export class HushijiandanComponent implements OnInit {
883 883
         let postData: any = {
884 884
           verification: "true",
885 885
           incident: {
886
-            contacts: this.loginUser.name,
887
-            contactsInformation: this.loginUser.phone,
886
+            deptId:this.loginUser.dept.id,
887
+            // contacts: this.loginUser.name,
888
+            // contactsInformation: this.loginUser.phone,
888 889
             description: this.coopBx.content,
889 890
             requester: { account: this.loginUser.account },
890 891
             sourceType: "wechatUserIncident",
@@ -2584,8 +2585,9 @@ export class HushijiandanComponent implements OnInit {
2584 2585
         let postData = {
2585 2586
           verification: "true",
2586 2587
           incident: {
2587
-            contacts: this.loginUser.name,
2588
-            contactsInformation: this.loginUser.phone,
2588
+            // contacts: this.loginUser.name,
2589
+            deptId:this.loginUser.dept.id,
2590
+            // contactsInformation: this.loginUser.phone,
2589 2591
             // address: this.bxForm.controls.address.value,
2590 2592
             // areaId: this.bxForm.controls.hospital.value,
2591 2593
             // contacts: this.bxForm.controls.name.value,