You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7191 lines
297 KiB

​
2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
6 months ago
​
6 months ago
​
6 months ago
​
6 months ago
​
​
​
​
​
​
​
​
​
6 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
4 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
7 days ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
7 days ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
7 days ago
​
​
​
2 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 months ago
​
​
​
​
​
2 months ago
​
​
​
​
​
​
​
​
​
​
​
2 months ago
​
​
​
​
​
​
​
​
​
2 months ago
​
​
​
​
​
​
​
​
2 months ago
​
​
​
​
​
​
​
2 months ago
​
​
​
​
​
​
​
2 months ago
​
​
​
​
​
​
​
2 months ago
​
​
​
​
​
​
​
2 months ago
​
​
​
​
​
​
​
2 months ago
​
​
​
​
​
​
​
2 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 months ago
​
​
​
​
​
​
​
​
​
2 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
7 days ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 months ago
​
​
​
​
​
​
​
​
​
​
​
2 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 months ago
​
​
​
​
​
​
​
​
​
​
2 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 months ago
​
​
2 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 months ago
3 months ago
​
3 months ago
​
3 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 months ago
​
​
2 months ago
​
​
2 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 months ago
​
​
2 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 months ago
3 months ago
​
3 months ago
​
3 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 months ago
​
​
2 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 months ago
3 months ago
​
3 months ago
​
3 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 months ago
​
​
2 months ago
​
​
​
​
​
​
​
7 days ago
2 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 months ago
​
​
2 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 months ago
2 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 months ago
2 months ago
​
​
​
​
​
2 months ago
​
​
​
​
​
​
​
​
​
​
​
2 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 months ago
2 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
2 months ago
​
​
​
​
​
​
​
​
​
2 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 months ago
2 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 months ago
​
​
2 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
7 days ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
7 days ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <template>
  2. <div class="mod-config">
  3. <!-- <div>-->
  4. <!-- <span @click="favoriteFunction()">-->
  5. <!-- <icon-svg :name="favorite?'xiangqufill':'xiangqu'" class="sl-svg"></icon-svg>-->
  6. <!-- </span>-->
  7. <!-- </div>-->
  8. <el-form :inline="true" label-position="top" :model="searchData" @keyup.enter.native="getDataList()">
  9. <el-form-item :label="'BU'">
  10. <el-select v-model="searchData.buDesc" placeholder="请选择" clearable style="width: 130px" @change="searchBuChangeHandle">
  11. <el-option
  12. v-for = "i in userBuList"
  13. :key = "i.buNo"
  14. :label = "i.buDesc"
  15. :value = "i.buDesc">
  16. </el-option>
  17. </el-select>
  18. </el-form-item>
  19. <el-form-item :label="'项目编码'">
  20. <el-input v-model="searchData.projectNo" style="width: 120px" clearable></el-input>
  21. </el-form-item>
  22. <el-form-item :label="'项目名称'">
  23. <el-input v-model="searchData.projectDesc" style="width: 120px" clearable></el-input>
  24. </el-form-item>
  25. <el-form-item :label="'项目料号'">
  26. <el-input v-model="searchData.testPartNo" style="width: 120px" clearable></el-input>
  27. </el-form-item>
  28. <el-form-item :label="'料号描述'">
  29. <el-input v-model="searchData.partDesc" style="width: 120px" clearable></el-input>
  30. </el-form-item>
  31. <el-form-item :label="'分类'">
  32. <el-select v-model="searchData.dryWetType" placeholder="请选择" clearable style="width: 100px">
  33. <el-option
  34. v-for="i in dryWetTypeList"
  35. :key="i"
  36. :label="i"
  37. :value="i">
  38. </el-option>
  39. </el-select>
  40. </el-form-item>
  41. <el-form-item :label="'客户编码'">
  42. <el-input v-model="searchData.customerNo" style="width: 120px" clearable></el-input>
  43. </el-form-item>
  44. <el-form-item :label="'客户名称'">
  45. <el-select
  46. v-model="searchData.customerDesc"
  47. filterable
  48. clearable
  49. remote
  50. reserve-keyword
  51. placeholder="请输入客户名称"
  52. style="width: 160px"
  53. :remote-method="handleSearchCustomerRemote"
  54. :loading="searchCustomerOptionLoading"
  55. @visible-change="handleSearchCustomerVisibleChange">
  56. <el-option
  57. v-for="item in searchCustomerOptions"
  58. :key="item.customerNo + '_' + item.customerDesc"
  59. :label="item.customerDesc"
  60. :value="item.customerDesc">
  61. </el-option>
  62. </el-select>
  63. </el-form-item>
  64. <el-form-item :label="'项目分类'">
  65. <el-select v-model="searchData.projectCategory" placeholder="请选择" clearable style="width: 130px">
  66. <el-option
  67. v-for = "i in projectCategoryList"
  68. :key = "i.projectCategory"
  69. :label = "i.projectCategory"
  70. :value = "i.projectCategory">
  71. </el-option>
  72. </el-select>
  73. </el-form-item>
  74. <el-form-item :label="'项目状态'">
  75. <el-select v-model="searchData.status" placeholder="请选择" clearable style="width: 130px">
  76. <el-option
  77. v-for = "i in statusList"
  78. :key = "i.status"
  79. :label = "i.status"
  80. :value = "i.status">
  81. </el-option>
  82. </el-select>
  83. </el-form-item>
  84. <el-form-item :label="'PM/Sales'">
  85. <el-select v-model="searchData.projectManager" placeholder="请选择" clearable style="width: 130px">
  86. <el-option
  87. v-for = "i in projectManagersList"
  88. :key = "i.projectManagerId"
  89. :label = "i.projectManagerName"
  90. :value = "i.projectManager">
  91. </el-option>
  92. </el-select>
  93. </el-form-item>
  94. <el-form-item :label="'PjM'">
  95. <el-select v-model="searchData.projectOwner" placeholder="请选择" clearable style="width: 130px">
  96. <el-option
  97. v-for = "i in projectOwnersList"
  98. :key = "i.projectOwnerId"
  99. :label = "i.projectOwnerName"
  100. :value = "i.projectOwner">
  101. </el-option>
  102. </el-select>
  103. </el-form-item>
  104. <el-form-item :label="'Engineer'">
  105. <el-select v-model="searchData.engineer" placeholder="请选择" clearable style="width: 130px">
  106. <el-option
  107. v-for = "i in engineersList"
  108. :key = "i.engineerId"
  109. :label = "i.engineerName"
  110. :value = "i.engineer">
  111. </el-option>
  112. </el-select>
  113. </el-form-item>
  114. <el-form-item :label="'区域'">
  115. <el-select clearable v-model="searchData.cProjectRegion" style="width: 120px">
  116. <el-option
  117. v-for = "i in cProjectRegionList"
  118. :key = "i.cProjectRegion"
  119. :label = "i.cProjectRegion"
  120. :value = "i.cProjectRegion">
  121. </el-option>
  122. </el-select>
  123. </el-form-item>
  124. <el-form-item :label="'ERP正式料号'">
  125. <el-select v-model="searchData.finalPartNo" filterable placeholder="请选择" clearable style="width: 130px">
  126. <el-option
  127. v-for = "i in finalPartNosList"
  128. :key = "i.finalPartNoId"
  129. :label = "i.finalPartNo"
  130. :value = "i.finalPartNo">
  131. </el-option>
  132. </el-select>
  133. </el-form-item>
  134. <el-form-item :label="'转量产日期:'">
  135. <el-date-picker
  136. style="width: 120px"
  137. v-model="searchData.massProductionStartDate"
  138. type="date"
  139. value-format="yyyy-MM-dd"
  140. placeholder="选择日期">
  141. </el-date-picker>
  142. -
  143. <el-date-picker
  144. style="width: 120px"
  145. v-model="searchData.massProductionEndDate"
  146. type="date"
  147. value-format="yyyy-MM-dd"
  148. placeholder="选择日期">
  149. </el-date-picker>
  150. </el-form-item>
  151. <el-form-item :label="'立项日期:'">
  152. <el-date-picker
  153. style="width: 120px"
  154. v-model="searchData.startDate"
  155. type="date"
  156. value-format="yyyy-MM-dd"
  157. placeholder="选择日期">
  158. </el-date-picker>
  159. -
  160. <el-date-picker
  161. style="width: 120px"
  162. v-model="searchData.endDate"
  163. type="date"
  164. value-format="yyyy-MM-dd"
  165. placeholder="选择日期">
  166. </el-date-picker>
  167. </el-form-item>
  168. <el-form-item :label="'是否存在打料记录'">
  169. <el-select v-model="searchData.feedingFlag" style="width: 100px">
  170. <el-option value="0" label="全部"></el-option>
  171. <el-option value="1" label="存在"></el-option>
  172. <el-option value="2" label="不存在"></el-option>
  173. </el-select>
  174. </el-form-item>
  175. <!-- <el-form-item :label="'在用'">-->
  176. <!-- <el-select filterable v-model="searchData.active" style="width: 130px">-->
  177. <!-- <el-option label="全部" value=""></el-option>-->
  178. <!-- <el-option label="是" value="Y"></el-option>-->
  179. <!-- <el-option label="否" value="N"></el-option>-->
  180. <!-- </el-select>-->
  181. <!-- </el-form-item>-->
  182. <el-form-item :label="' '">
  183. <el-button @click="agencyMatter()">查询</el-button>
  184. <download-excel
  185. :fields="fields()"
  186. :data="exportData"
  187. type="xls"
  188. :name="exportName"
  189. :header="exportHeader"
  190. :footer="exportFooter"
  191. :fetch="createExportData"
  192. :before-generate="startDownload"
  193. :before-finish="finishDownload"
  194. worksheet="导出信息"
  195. class="el-button el-button--primary el-button--medium">
  196. {{ "导出" }}
  197. </download-excel>
  198. </el-form-item>
  199. </el-form>
  200. <el-table
  201. @header-dragend="handleColumnResize"
  202. :height="this.height + 350"
  203. :data="dataList"
  204. ref="mainTable"
  205. highlight-current-row
  206. @row-click="proofingClickRow"
  207. @current-change="changeCurrentRow"
  208. :row-class-name="tableRowClassName"
  209. :cell-style="getCellStyle"
  210. border
  211. style="width: 100%;">
  212. <el-table-column
  213. v-for="(item,index) in visibleColumnList"
  214. :key="item.serialNumber || item.columnProp || index"
  215. :sortable="item.columnSortable"
  216. :prop="item.columnProp"
  217. :header-align="item.headerAlign"
  218. :show-overflow-tooltip="item.showOverflowTooltip"
  219. :align="item.align"
  220. :fixed="item.fixed==''?false:item.fixed"
  221. :min-width="item.columnWidth"
  222. :label="item.columnLabel">
  223. <template slot-scope="scope">
  224. <div v-if="item.columnProp === 'partType'">
  225. <span style="color: black">
  226. {{ scope.row[item.columnProp] }}
  227. </span>
  228. </div>
  229. <div v-else-if="item.columnProp === 'projectCategory'">
  230. <span :style="{ color: scope.row.projectCategory === 'High Risk' ? 'rgb(255, 62, 62)' : (scope.row.projectCategory === 'Sustaining' ? 'rgb(34, 254, 4)' : 'rgb(255,224,89)') , fontSize: '14px'}">
  231. {{ scope.row[item.columnProp] }}
  232. </span>
  233. </div>
  234. <div v-else>
  235. <span v-if="!item.columnHidden"> {{scope.row[item.columnProp]}}</span>
  236. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  237. style="width: 100px; height: 80px"/></span>
  238. </div>
  239. </template>
  240. </el-table-column>
  241. <el-table-column
  242. v-if="this.$store.state.user.name === 'admin' || !this.authUpdate"
  243. fixed="right"
  244. header-align="center"
  245. align="center"
  246. width="220"
  247. label="操作">
  248. <template slot-scope="scope">
  249. <div v-if="scope.row.partType !== 'Active'">
  250. <a v-if="scope.row.status === '草稿' && scope.row.status !== '已量产'" style="color: gray; pointer-events: none;">下达</a>
  251. <a v-if="scope.row.status !== '草稿' && scope.row.status !== '已量产'" @click="addProofRecord(scope.row)">新增打样</a>
  252. <a @click="showProofDetailModal(scope.row)">详情</a>
  253. <a v-if="scope.row.status !== '草稿' && scope.row.status !== '已量产'" style="color: gray; pointer-events: none;">转正式料号</a>
  254. <a v-if="scope.row.status === '进行中' && scope.row.status !== '已量产'" style="color: gray; pointer-events: none;">转量产</a>
  255. </div>
  256. <div v-else-if="scope.row.status !== '已量产' && scope.row.status !== '正式量产'">
  257. <a v-if="scope.row.status === '草稿' && scope.row.status !== '已量产'" type="text" size="small" @click="updateModalStatus(scope.row)">下达</a>
  258. <a v-if="scope.row.status !== '草稿'" type="text" size="small" @click="addProofRecord(scope.row)">新增打样</a>
  259. <a type="text" size="small" @click="showProofDetailModal(scope.row)">详情</a>
  260. <a v-if="scope.row.status !== '草稿' && scope.row.status !== '已量产'" type="text" size="small" @click="changeFormalPartNo(scope.row)">转正式料号</a>
  261. <a v-if="scope.row.status === '进行中' || scope.row.status === '已量产'" type="text" size="small" @click="updateModalStatus(scope.row)">转量产</a>
  262. </div>
  263. <div v-else-if="scope.row.status === '已量产'">
  264. <a style="color: #0c4dbb" type="text" size="small" @click="addProofRecord(scope.row)">新增打样</a>
  265. <a style="color: #0c4dbb" type="text" size="small" @click="showProofDetailModal(scope.row)">详情</a>
  266. <a style="color: #0c4dbb" type="text" size="small" @click="changeFormalPartNo(scope.row)">转正式料号</a>
  267. <a style="color: #0c4dbb" type="text" size="small" @click="updateModalStatus(scope.row)">转量产</a>
  268. <a style="color: #0c4dbb" type="text" size="small" @click="cancelModalStatus(scope.row)">撤销</a>
  269. </div>
  270. <div v-else>
  271. <a style="color: red" type="text" size="small" @click="addProofRecord(scope.row)">新增打样</a>
  272. <a style="color: red" type="text" size="small" @click="showProofDetailModal(scope.row)">详情</a>
  273. <a style="color: red" type="text" size="small" @click="changeFormalPartNo(scope.row)">转正式料号</a>
  274. <a style="color: red" type="text" size="small" @click="updateModalStatus(scope.row)">转量产</a>
  275. </div>
  276. </template>
  277. </el-table-column>
  278. <el-table-column
  279. v-else
  280. fixed="right"
  281. header-align="center"
  282. align="center"
  283. width="70"
  284. label="操作">
  285. <template slot-scope="scope">
  286. <div v-if="scope.row.partType !== 'Active'">
  287. <a style="color: gray; pointer-events: none;">详情</a>
  288. </div>
  289. <div v-else-if="scope.row.status !== '已量产' && scope.row.status !== '正式量产'">
  290. <a type="text" size="small" @click="showProofDetailModal(scope.row)">详情</a>
  291. </div>
  292. <div v-else-if="scope.row.status === '已量产'">
  293. <a style="color: #0c4dbb" type="text" size="small" @click="showProofDetailModal(scope.row)">详情</a>
  294. </div>
  295. <div v-else>
  296. <a style="color: red" type="text" size="small" @click="showProofDetailModal(scope.row)">详情</a>
  297. </div>
  298. </template>
  299. </el-table-column>
  300. </el-table>
  301. <el-pagination
  302. @size-change="sizeChangeHandle"
  303. @current-change="currentChangeHandle"
  304. :current-page="pageIndex"
  305. :page-sizes="[20, 50, 100, 200, 500]"
  306. :page-size="pageSize"
  307. :total="totalPage"
  308. layout="total, sizes, prev, pager, next, jumper">
  309. </el-pagination>
  310. <el-dialog title="转正式料号" :visible.sync="formalPartNoFlag" width="508px" v-drag :close-on-click-modal="false">
  311. <el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
  312. <el-form-item label="客户编码" prop="customerNo" >
  313. <el-input v-model="modalData.customerNo" style="width: 151px;" disabled></el-input>
  314. </el-form-item>
  315. <el-form-item label="客户名称" style="margin-left: 15px" prop="customerDesc" >
  316. <el-input v-model="modalData.customerDesc" style="width: 291px;" disabled></el-input>
  317. </el-form-item>
  318. </el-form>
  319. <el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: 20px;">
  320. <el-form-item label="项目编码" prop="projectNo" >
  321. <el-input v-model="modalData.projectNo" style="width: 151px;" disabled></el-input>
  322. </el-form-item>
  323. <el-form-item label="项目名称" style="margin-left: 15px" prop="projectDesc" >
  324. <el-input v-model="modalData.projectDesc" style="width: 175px;" disabled></el-input>
  325. </el-form-item>
  326. <el-form-item label="BU" prop="bu" >
  327. <el-input v-model="modalData.bu" style="width: 102px;" disabled></el-input>
  328. </el-form-item>
  329. </el-form>
  330. <el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: 20px;">
  331. <el-form-item label="项目料号" prop="testPartNo" >
  332. <el-input v-model="modalData.testPartNo" style="width: 151px;" disabled></el-input>
  333. </el-form-item>
  334. <el-form-item label="料号描述" style="margin-left: 15px" prop="partDesc" >
  335. <el-input v-model="modalData.partDesc" style="width: 291px;" disabled></el-input>
  336. </el-form-item>
  337. </el-form>
  338. <el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: 20px;">
  339. <el-form-item label="ERP正式料号" prop="finalPartNo" :rules="rules.finalPartNo">
  340. <el-input v-model="modalData.finalPartNo"
  341. @blur="getFinalPartDesc()"
  342. style="width: 151px"></el-input>
  343. </el-form-item>
  344. <el-form-item label="ERP正式料号描述" style="margin-left: 15px" prop="finalPartDesc">
  345. <el-input v-model="modalData.finalPartDesc" style="width: 291px" disabled></el-input>
  346. </el-form-item>
  347. </el-form>
  348. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  349. <el-button type="primary" @click="saveFormalPartNo()">保存</el-button>
  350. <el-button @click="formalPartNoFlag = false">关闭</el-button>
  351. </el-footer>
  352. </el-dialog>
  353. <!-- <el-tabs style="margin-top: 0px; width: 100%; height: 100%;" v-model="activeName" class="customer-tab" type="border-card" @tab-click="tabClick">-->
  354. <!-- <el-tab-pane label="打样记录" name="proofRecord" style="margin-left: -10px">-->
  355. <!-- <proofRecord ref="proofRecord"></proofRecord>-->
  356. <!-- </el-tab-pane>-->
  357. <!-- <el-tab-pane label="转量产阶段文档" name="massProductionStage">-->
  358. <!-- <el-button type="primary" v-if="!this.authUpdate" icon="el-icon-upload" style="margin-top: -5px" @click="projectDocumentList()">文档清单定义</el-button>-->
  359. <!-- <el-button type="primary" v-if="this.proofingCurrentRow.status !== '草稿'" icon="el-icon-upload" style="margin-top: -5px" @click="uploadOtherDocument()">上传其他文档</el-button>-->
  360. <!-- <el-button type="primary" v-if="this.sendMassMailFlag === true && !this.authUpdate" style="margin-top: -5px" @click="sendMassMailHandle()">邮件提醒</el-button>-->
  361. <!-- <el-table-->
  362. <!-- :data="projectOtherDocumentList"-->
  363. <!-- border-->
  364. <!-- style="width: 100%;margin-top: 5px;"-->
  365. <!-- :height="this.height + 110"-->
  366. <!-- ref="proofDocumentTable"-->
  367. <!-- @row-click="projectOtherDocumentClickRow"-->
  368. <!-- @current-change="changeCurrentRow1"-->
  369. <!-- :row-class-name="tableRowClassName"-->
  370. <!-- v-loading="dataListLoading">-->
  371. <!-- <el-table-column-->
  372. <!-- v-if="this.authUpdate"-->
  373. <!-- header-align="center"-->
  374. <!-- align="center"-->
  375. <!-- width="140"-->
  376. <!-- fixed="left"-->
  377. <!-- label="操作">-->
  378. <!-- <template slot-scope="scope">-->
  379. <!-- <a type="primary" v-if="scope.row.documentDefinitionListId !== '-1'" @click="uploadFile(scope.row)">上传文件</a>-->
  380. <!-- <a type="primary" size="small" v-if="scope.row.documentDefinitionListId !== '-1' && scope.row.documentId === null"-->
  381. <!-- @click="copyFile(scope.row)">复制</a>-->
  382. <!-- <a type="text" size="small" v-if="shouldShowDelete(scope.row) || scope.row.projectPhase === 'SOP文档'" @click="viewMassDocumentFile(scope.row)">查看附件</a>-->
  383. <!-- <a type="text" size="small" v-if="shouldShowDelete(scope.row) && scope.row.createdBy === $store.state.user.name"-->
  384. <!-- @click="massProductionDocumentDelete(scope.row)">删除</a>-->
  385. <!-- </template>-->
  386. <!-- </el-table-column>-->
  387. <!-- <el-table-column-->
  388. <!-- v-else-->
  389. <!-- header-align="center"-->
  390. <!-- align="center"-->
  391. <!-- width="150"-->
  392. <!-- fixed="left"-->
  393. <!-- label="操作">-->
  394. <!-- <template slot-scope="scope">-->
  395. <!-- <a type="primary" v-if="scope.row.documentDefinitionListId !== '-1'" @click="uploadFile(scope.row)">上传文件</a>-->
  396. <!-- <a type="primary" size="small" v-if="scope.row.documentDefinitionListId !== '-1' && scope.row.documentId === null"-->
  397. <!-- @click="copyFile(scope.row)">复制</a>-->
  398. <!-- <a type="text" size="small" v-if="scope.row.documentDefinitionListId !== '-1' && !shouldShowDelete(scope.row)" @click="warnSendMail(scope.row)">提醒</a>-->
  399. <!-- <a type="text" size="small" v-if="shouldShowDelete(scope.row) || scope.row.projectPhase === 'SOP文档'" @click="viewMassDocumentFile(scope.row)">查看附件</a>-->
  400. <!-- <a type="text" size="small" v-if="shouldShowDelete(scope.row)" @click="massProductionDocumentDelete(scope.row)">删除</a>-->
  401. <!-- </template>-->
  402. <!-- </el-table-column>-->
  403. <!-- <el-table-column label="序号" type="index" align="center" :index="indexMethod">-->
  404. <!-- <template slot-scope="scope">-->
  405. <!-- <span>-->
  406. <!-- {{ scope.$index + 1 }}-->
  407. <!-- </span>-->
  408. <!-- </template>-->
  409. <!-- </el-table-column>-->
  410. <!-- <el-table-column label="文档类型" align="left">-->
  411. <!-- <template slot-scope="scope">-->
  412. <!-- <span>-->
  413. <!-- {{ getCombinedDocumentType(scope.row) }}-->
  414. <!-- </span>-->
  415. <!-- </template>-->
  416. <!-- </el-table-column>-->
  417. <!-- <el-table-column-->
  418. <!-- v-for="(item,index) in columnFileContentArray" :key="index"-->
  419. <!-- :sortable="item.columnSortable"-->
  420. <!-- :prop="item.columnProp"-->
  421. <!-- :header-align="item.headerAlign"-->
  422. <!-- :show-overflow-tooltip="item.showOverflowTooltip"-->
  423. <!-- :align="item.align"-->
  424. <!-- :fixed="item.fixed==''?false:item.fixed"-->
  425. <!-- :min-width="item.columnWidth"-->
  426. <!-- :label="item.columnLabel">-->
  427. <!-- <template slot-scope="scope">-->
  428. <!-- <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>-->
  429. <!-- <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"-->
  430. <!-- style="width: 100px; height: 80px"/></span>-->
  431. <!-- </template>-->
  432. <!-- </el-table-column>-->
  433. <!-- </el-table>-->
  434. <!-- </el-tab-pane>-->
  435. <!-- <el-tab-pane label="所有文档" name="allDocument">-->
  436. <!-- <el-button type="primary" v-if="this.proofingCurrentRow.status !== '草稿' && !this.authUpdate" icon="el-icon-upload" style="margin-top: -5px" @click="projectProductionValidationDocument()">选择生产确认文档</el-button>-->
  437. <!-- <el-table-->
  438. <!-- :data="projectAllDocumentList"-->
  439. <!-- border-->
  440. <!-- style="width: 100%;margin-top: 5px;"-->
  441. <!-- :height="this.height + 50"-->
  442. <!-- ref="projectAllDocumentDocumentTable"-->
  443. <!-- @row-click="projectAllDocumentClickRow"-->
  444. <!-- v-loading="dataListLoading"-->
  445. <!-- :row-class-name="tableRowClassName">-->
  446. <!-- <el-table-column-->
  447. <!-- v-if="this.authUpdate"-->
  448. <!-- header-align="center"-->
  449. <!-- fixed="left"-->
  450. <!-- align="center"-->
  451. <!-- width="90"-->
  452. <!-- label="操作">-->
  453. <!-- <template slot-scope="scope">-->
  454. <!-- <a type="text" size="small" v-if="shouldShowDelete(scope.row) || scope.row.uploadedFlag === 'Y'" @click="viewMassDocumentFile(scope.row)">查看附件</a>-->
  455. <!-- <a type="primary" size="small" v-if="scope.row.documentDefinitionListId !== '-1' && scope.row.documentId === null"-->
  456. <!-- @click="copyFile(scope.row)">复制</a>-->
  457. <!-- <a type="text" size="small" v-if="scope.row.uploadedFlag === 'N'" @click="uploadAllDocumentFile(scope.row)">上传文件</a>-->
  458. <!-- <a type="text" size="small" v-if="shouldShowDelete(scope.row) && scope.row.createdBy === $store.state.user.name"-->
  459. <!-- @click="massProductionDocumentDelete(scope.row)">删除</a>-->
  460. <!-- </template>-->
  461. <!-- </el-table-column>-->
  462. <!-- <el-table-column-->
  463. <!-- v-else-->
  464. <!-- header-align="center"-->
  465. <!-- fixed="left"-->
  466. <!-- align="center"-->
  467. <!-- width="90"-->
  468. <!-- label="操作">-->
  469. <!-- <template slot-scope="scope">-->
  470. <!-- <a type="text" size="small" v-if="shouldShowDelete(scope.row) || scope.row.uploadedFlag === 'Y'" @click="viewMassDocumentFile(scope.row)">查看附件</a>-->
  471. <!-- <a type="primary" size="small" v-if="scope.row.documentDefinitionListId !== '-1' && scope.row.documentId === null"-->
  472. <!-- @click="copyFile(scope.row)">复制</a>-->
  473. <!-- <a type="text" size="small" v-if="scope.row.uploadedFlag === 'N'" @click="uploadAllDocumentFile(scope.row)">上传文件</a>-->
  474. <!-- <a type="text" size="small" v-if="shouldShowDelete(scope.row)"-->
  475. <!-- @click="massProductionDocumentDelete(scope.row)">删除</a>-->
  476. <!-- </template>-->
  477. <!-- </el-table-column>-->
  478. <!-- <el-table-column label="序号" type="index" align="center" :index="indexMethod">-->
  479. <!-- <template slot-scope="scope">-->
  480. <!-- <span>-->
  481. <!-- {{ scope.$index + 1 }}-->
  482. <!-- </span>-->
  483. <!-- </template>-->
  484. <!-- </el-table-column>-->
  485. <!-- <el-table-column label="文档类型" align="left">-->
  486. <!-- <template slot-scope="scope">-->
  487. <!-- <span>-->
  488. <!-- {{ getCombinedDocumentType(scope.row) }}-->
  489. <!-- </span>-->
  490. <!-- </template>-->
  491. <!-- </el-table-column>-->
  492. <!-- <el-table-column-->
  493. <!-- v-for="(item,index) in columnProjectAllDocumentList" :key="index"-->
  494. <!-- :sortable="item.columnSortable"-->
  495. <!-- :prop="item.columnProp"-->
  496. <!-- :header-align="item.headerAlign"-->
  497. <!-- :show-overflow-tooltip="item.showOverflowTooltip"-->
  498. <!-- :align="item.align"-->
  499. <!-- :fixed="item.fixed==''?false:item.fixed"-->
  500. <!-- :min-width="item.columnWidth"-->
  501. <!-- :label="item.columnLabel">-->
  502. <!-- <template slot-scope="scope">-->
  503. <!-- <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>-->
  504. <!-- <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"-->
  505. <!-- style="width: 100px; height: 80px"/></span>-->
  506. <!-- </template>-->
  507. <!-- </el-table-column>-->
  508. <!-- </el-table>-->
  509. <!-- </el-tab-pane>-->
  510. <!-- <el-tab-pane label="生产文档确认进度" name="productionDocumentsConfirmProgress">-->
  511. <!-- <el-row>-->
  512. <!-- <el-col :span="8" class="left-section">-->
  513. <!-- <div class="table-container" style="height: 100%;margin-top: -5px">-->
  514. <!-- <p style="margin-top: -5px">文档清单</p>-->
  515. <!-- <el-table :data="confirmProgressDocumentList"-->
  516. <!-- border-->
  517. <!-- style="width: 100%;margin-top: -5px;"-->
  518. <!-- :height="this.height + 95">-->
  519. <!-- <el-table-column header-align="center" align="center" width="50" prop="itemNo" label="序号"></el-table-column>-->
  520. <!-- <el-table-column header-align="center" align="left" prop="documentType" label="文档类型"></el-table-column>-->
  521. <!-- <el-table-column header-align="center" align="left" prop="fileName" label="文件名"></el-table-column>-->
  522. <!-- <el-table-column-->
  523. <!-- header-align="center"-->
  524. <!-- align="center"-->
  525. <!-- width="90"-->
  526. <!-- fixed="right"-->
  527. <!-- label="操作">-->
  528. <!-- <template slot-scope="scope">-->
  529. <!-- <a type="text" size="small" @click="viewMassDocumentFile(scope.row)">查看附件</a>-->
  530. <!-- </template>-->
  531. <!-- </el-table-column>-->
  532. <!-- </el-table>-->
  533. <!-- </div>-->
  534. <!-- </el-col>-->
  535. <!-- <el-col :span="15" class="right-section">-->
  536. <!-- <div class="table-container" style="height: 100%;margin-top: -5px">-->
  537. <!-- <p style="margin-top: -5px">推送人员清单</p>-->
  538. <!-- <el-table :data="confirmProgressPusherList"-->
  539. <!-- border-->
  540. <!-- style="width: 100%;margin-top: -5px;"-->
  541. <!-- :height="this.height + 95">-->
  542. <!-- <el-table-column header-align="center" align="center" width="40" prop="itemNo" label="序号"></el-table-column>-->
  543. <!-- <el-table-column header-align="center" align="left" width="70" prop="userDisplay" label="指定确认人"></el-table-column>-->
  544. <!-- <el-table-column header-align="center" align="center" :formatter="formatDate" prop="wantedConfirmDate" label="要求确认日期"></el-table-column>-->
  545. <!-- <el-table-column header-align="center" align="center" prop="confirmFlag" label="是否确认"></el-table-column>-->
  546. <!-- <el-table-column header-align="center" align="left" prop="confirmedBy" label="实际确认人"></el-table-column>-->
  547. <!-- <el-table-column header-align="center" align="left" prop="remark" label="备注"></el-table-column>-->
  548. <!-- <el-table-column header-align="center" align="center" prop="confirmedDate" label="实际确认时间"></el-table-column>-->
  549. <!-- <el-table-column header-align="center" align="center" prop="createDate" label="推送时间"></el-table-column>-->
  550. <!-- <el-table-column header-align="center" align="left" prop="createBy" label="推送人"></el-table-column>-->
  551. <!-- <el-table-column-->
  552. <!-- header-align="center"-->
  553. <!-- align="center"-->
  554. <!-- width="90"-->
  555. <!-- fixed="left"-->
  556. <!-- label="操作">-->
  557. <!-- <template slot-scope="scope">-->
  558. <!-- <a type="text" size="small" @click="confirmDocument(scope.row)">确认</a>-->
  559. <!-- <a type="text" size="small" @click="viewDocumentFile(scope.row)">查看附件</a>-->
  560. <!-- </template>-->
  561. <!-- </el-table-column>-->
  562. <!-- </el-table>-->
  563. <!-- </div>-->
  564. <!-- </el-col>-->
  565. <!-- </el-row>-->
  566. <!-- </el-tab-pane>-->
  567. <!-- <el-tab-pane label="量产BOM" name="massProductionBOM">-->
  568. <!-- <el-table-->
  569. <!-- :data="projectPartBomList"-->
  570. <!-- row-key="levelCode"-->
  571. <!-- border-->
  572. <!-- style="width: 100%; margin-top: 5px;"-->
  573. <!-- :height="this.height + 50"-->
  574. <!-- ref="projectBomTable"-->
  575. <!-- v-loading="dataListLoading"-->
  576. <!-- :tree-props="{ children: 'children' }">-->
  577. <!-- &lt;!&ndash; 数据列 &ndash;&gt;-->
  578. <!-- <el-table-column-->
  579. <!-- label=""-->
  580. <!-- prop=""-->
  581. <!-- header-align="center"-->
  582. <!-- align="center"-->
  583. <!-- width="80">-->
  584. <!-- </el-table-column>-->
  585. <!-- <el-table-column-->
  586. <!-- v-for="(item, index) in columnProjectBomList"-->
  587. <!-- :key="index"-->
  588. <!-- :sortable="item.columnSortable"-->
  589. <!-- :prop="item.columnProp"-->
  590. <!-- :header-align="item.headerAlign"-->
  591. <!-- :show-overflow-tooltip="item.showOverflowTooltip"-->
  592. <!-- :align="item.align"-->
  593. <!-- :fixed="item.fixed === '' ? false : item.fixed"-->
  594. <!-- :min-width="item.columnWidth"-->
  595. <!-- :label="item.columnLabel">-->
  596. <!-- <template slot-scope="scope">-->
  597. <!-- <div v-if="item.columnProp === 'levelCode'">-->
  598. <!-- <span v-if="scope.row.levelCode === '1'">{{ '主BOM' }}</span>-->
  599. <!-- <span v-else>{{ scope.row.levelCode }}</span>-->
  600. <!-- </div>-->
  601. <!-- <div v-else>-->
  602. <!-- <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>-->
  603. <!-- <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>-->
  604. <!-- </div>-->
  605. <!-- </template>-->
  606. <!-- </el-table-column>-->
  607. <!-- </el-table>-->
  608. <!-- </el-tab-pane>-->
  609. <!-- <el-tab-pane label="产品工艺路线" name="Routing">-->
  610. <!-- <el-table-->
  611. <!-- :data="projectPartRoutingList"-->
  612. <!-- border-->
  613. <!-- style="width: 100%; margin-top: 5px;"-->
  614. <!-- :height="this.height + 50"-->
  615. <!-- ref="projectBomTable"-->
  616. <!-- v-loading="dataListLoading"-->
  617. <!-- >-->
  618. <!-- &lt;!&ndash; 数据列 &ndash;&gt;-->
  619. <!-- <el-table-column-->
  620. <!-- v-for="(item, index) in columnProjectRoutingList"-->
  621. <!-- :key="index"-->
  622. <!-- :sortable="item.columnSortable"-->
  623. <!-- :prop="item.columnProp"-->
  624. <!-- :header-align="item.headerAlign"-->
  625. <!-- :show-overflow-tooltip="item.showOverflowTooltip"-->
  626. <!-- :align="item.align"-->
  627. <!-- :fixed="item.fixed === '' ? false : item.fixed"-->
  628. <!-- :min-width="item.columnWidth"-->
  629. <!-- :label="item.columnLabel">-->
  630. <!-- <template slot-scope="scope">-->
  631. <!-- <div v-if="item.columnProp === 'levelCode'">-->
  632. <!-- <span v-if="scope.row.levelCode === '1'">{{ '1' }}</span>-->
  633. <!-- <span v-else>{{ scope.row.levelCode }}</span>-->
  634. <!-- </div>-->
  635. <!-- <div v-else>-->
  636. <!-- <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>-->
  637. <!-- <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>-->
  638. <!-- </div>-->
  639. <!-- </template>-->
  640. <!-- </el-table-column>-->
  641. <!-- </el-table>-->
  642. <!-- </el-tab-pane>-->
  643. <!-- </el-tabs>-->
  644. <el-dialog title="文档清单定义" @close="projectDocumentListVisibleFalse" :visible.sync="projectDocumentListVisible" width="768px" style="margin-top: 7px" :close-on-click-modal="false">
  645. <el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
  646. <el-form-item prop="projectNo">
  647. <template #label>
  648. <span class="big-label">项目编码</span>
  649. </template>
  650. <el-input v-model="modalData.projectNo" disabled style="width: 151px;"></el-input>
  651. </el-form-item>
  652. <el-form-item prop="projectDesc" style="margin-left: 15px">
  653. <template #label>
  654. <span class="big-label">项目名称</span>
  655. </template>
  656. <el-input v-model="modalData.projectDesc" disabled style="width: 191px;"></el-input>
  657. </el-form-item>
  658. <el-form-item prop="bu" style="margin-left: 15px">
  659. <template #label>
  660. <span class="big-label">BU</span>
  661. </template>
  662. <el-input v-model="modalData.bu" disabled style="width: 151px;"></el-input>
  663. </el-form-item>
  664. </el-form>
  665. <el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: 20px;">
  666. <el-form-item prop="customerNo">
  667. <template #label>
  668. <span class="big-label">客户编码</span>
  669. </template>
  670. <el-input v-model="modalData.customerNo" disabled style="width: 151px;"></el-input>
  671. </el-form-item>
  672. <el-form-item prop="customerDesc" style="margin-left: 15px">
  673. <template #label>
  674. <span class="big-label">客户名称</span>
  675. </template>
  676. <el-input v-model="modalData.customerDesc" disabled style="width: 191px;"></el-input>
  677. </el-form-item>
  678. <el-form-item prop="cProjectTypeDb" style="margin-left: 15px">
  679. <template #label>
  680. <span class="big-label">项目分类</span>
  681. </template>
  682. <el-input v-model="modalData.cProjectTypeDb" disabled style="width: 151px;"></el-input>
  683. </el-form-item>
  684. </el-form>
  685. <el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: 20px;">
  686. <el-form-item prop="testPartNo" :rules="rules.testPartNo">
  687. <template #label>
  688. <span class="big-label">项目料号</span>
  689. </template>
  690. <el-input v-model="modalData.testPartNo" disabled style="width: 151px;"></el-input>
  691. </el-form-item>
  692. <el-form-item prop="partDesc" style="margin-left: 15px">
  693. <template #label>
  694. <span class="big-label">料号描述</span>
  695. </template>
  696. <el-input v-model="modalData.partDesc" disabled style="width: 191px;"></el-input>
  697. </el-form-item>
  698. <el-form-item prop="proofingNo" style="margin-left: 15px">
  699. <template #label>
  700. <span class="big-label">打样单号</span>
  701. </template>
  702. <el-input v-model="modalData.proofingNo" disabled style="width: 151px;"></el-input>
  703. </el-form-item>
  704. </el-form>
  705. <el-button type="primary" icon="el-icon-upload" style="margin-top: -5px" @click="addProjectDocumentTypeFlag = true">新增</el-button>
  706. <el-table
  707. :height="this.height + 50"
  708. :data="proofDocumentListDefinition"
  709. border
  710. style="width: 100%;">
  711. <el-table-column
  712. v-for="(item,index) in columnProjectDocumentManifestDefinitionList" :key="index"
  713. :sortable="item.columnSortable"
  714. :prop="item.columnProp"
  715. :header-align="item.headerAlign"
  716. :show-overflow-tooltip="item.showOverflowTooltip"
  717. :align="item.align"
  718. :fixed="item.fixed==''?false:item.fixed"
  719. :min-width="item.columnWidth"
  720. :label="item.columnLabel">
  721. <template slot-scope="scope">
  722. <span v-if="!item.columnHidden">{{ getColumnValue(scope.row, item) }}</span>
  723. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  724. </template>
  725. </el-table-column>
  726. <el-table-column
  727. header-align="center"
  728. align="center"
  729. width="100"
  730. label="操作">
  731. <template slot-scope="scope">
  732. <a v-if="!authDelete" type="text" size="small" @click="deleteProjectDocumentType(scope.row)">删除</a>
  733. </template>
  734. </el-table-column>
  735. </el-table>
  736. <el-footer style="height:40px;margin-top: 25px;text-align:center">
  737. <el-button @click="projectDocumentListVisible = false">关闭</el-button>
  738. </el-footer>
  739. </el-dialog>
  740. <!-- 新增文档类型 -->
  741. <el-dialog title="新增文档类型" @close="closeAddProjectDocumentTypeFlag" @open="searchProjectDocumentTypeList" :visible.sync="addProjectDocumentTypeFlag" width="768px" style="margin-top: 7px" v-drag :close-on-click-modal="false">
  742. <el-form inline="inline" label-position="top" :model="searchProjectDocumentTypeData" style="margin-left: 7px;margin-top: -5px;">
  743. <el-form-item label="文档类型ID">
  744. <el-input v-model="searchProjectDocumentTypeData.documentTypeId" clearable style="width: 151px"></el-input>
  745. </el-form-item>
  746. <el-form-item label="文档类型">
  747. <el-input v-model="searchProjectDocumentTypeData.documentType" clearable style="width: 151px"></el-input>
  748. </el-form-item>
  749. <el-form-item label="责任部门">
  750. <el-input v-model="searchProjectDocumentTypeData.responsibleDepartment" clearable style="width: 151px"></el-input>
  751. </el-form-item>
  752. <el-form-item label=" ">
  753. <el-button type="primary" style="padding: 3px 12px" @click="searchProjectDocumentTypeList()">查询</el-button>
  754. </el-form-item>
  755. </el-form>
  756. <el-table
  757. :height="this.height + 150"
  758. :data="extraProjectDocumentList"
  759. stripe
  760. border
  761. @selection-change="selectionProjectDocument"
  762. style="width: 100%;">
  763. <el-table-column
  764. header-align="center"
  765. type="selection"
  766. align="center"
  767. width="55">
  768. </el-table-column>
  769. <el-table-column
  770. prop="documentTypeId"
  771. header-align="center"
  772. align="center"
  773. width="100"
  774. label="文档类型ID">
  775. </el-table-column>
  776. <el-table-column
  777. prop="documentType"
  778. header-align="center"
  779. align="left"
  780. label="文档类型">
  781. </el-table-column>
  782. <el-table-column
  783. prop="responsibleDepartment"
  784. header-align="center"
  785. align="left"
  786. label="责任部门">
  787. </el-table-column>
  788. </el-table>
  789. <el-footer style="height:40px;margin-top: 25px;text-align:center">
  790. <el-button type="primary" @click="saveSelectionProjectDocumentType()">确定</el-button>
  791. <el-button @click="addProjectDocumentTypeFlag = false">关闭</el-button>
  792. </el-footer>
  793. </el-dialog>
  794. <el-dialog title="选择生产确认文档" :visible.sync="projectProductionValidationDocumentVisible" width="1050px" style="margin-top: -5vh" :close-on-click-modal="false">
  795. <el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
  796. <el-form-item label="项目编码" prop="projectNo" class="red-label">
  797. <el-input v-model="modalData.projectNo" style="width: 110px;" disabled></el-input>
  798. </el-form-item>
  799. <el-form-item label="项目名称" prop="projectDesc" >
  800. <el-input v-model="modalData.projectDesc" style="width: 170px;" disabled></el-input>
  801. </el-form-item>
  802. <el-form-item label="BU" prop="bu">
  803. <el-input v-model="modalData.bu" style="width: 110px;" disabled></el-input>
  804. </el-form-item>
  805. <el-form-item label="项目料号" prop="testPartNo" >
  806. <el-input v-model="modalData.testPartNo" style="width: 110px;" disabled></el-input>
  807. </el-form-item>
  808. <el-form-item label="料号描述" prop="partDesc" >
  809. <el-input v-model="modalData.partDesc" style="width: 170px;" disabled></el-input>
  810. </el-form-item>
  811. </el-form>
  812. <el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
  813. <el-form-item label="客户编码" prop="customerNo" >
  814. <el-input v-model="modalData.customerNo" style="width: 110px;" disabled></el-input>
  815. </el-form-item>
  816. <el-form-item label="客户名称" prop="customerDesc" >
  817. <el-input v-model="modalData.customerDesc" style="width: 170px;" disabled></el-input>
  818. </el-form-item>
  819. <el-form-item label="项目分类" prop="cProjectTypeDb">
  820. <el-input v-model="modalData.cProjectTypeDb" style="width: 110px;" disabled></el-input>
  821. </el-form-item>
  822. <el-form-item label="要求最晚确认日期" prop="wantedConfirmDate" :rules="rules.wantedConfirmDate">
  823. <el-date-picker
  824. v-model="modalData.wantedConfirmDate"
  825. type="date"
  826. placeholder="选择日期"
  827. style="width: 110px;">
  828. </el-date-picker>
  829. </el-form-item>
  830. </el-form>
  831. <el-tabs v-model="activeName1" style="margin-top: 0px; width: 100%; height: 100%;" type="border-card" @tab-click="tabClick" class="customer-tab">
  832. <el-tab-pane label="文档选择" name="selectDocument" style="width: 104%">
  833. <el-table
  834. v-model="selectedDocumentItems"
  835. :height="height + 250"
  836. :data="projectAllDocumentList1"
  837. border
  838. style="width: 100%;margin-top: -13px;margin-left: -14px !important; margin-right: 0 !important;"
  839. @selection-change="handleDocumentSelectionChange">
  840. <el-table-column
  841. type="selection"
  842. header-align="center"
  843. align="center"
  844. width="50">
  845. </el-table-column>
  846. <el-table-column label="序号" type="index" align="center" :index="indexMethod"></el-table-column>
  847. <el-table-column label="文档类型" align="center">
  848. <template slot-scope="scope">
  849. {{ getCombinedDocumentType(scope.row) }}
  850. </template>
  851. </el-table-column>
  852. <el-table-column
  853. v-for="(item,index) in columnProjectAllDocumentList" :key="index"
  854. :sortable="item.columnSortable"
  855. :prop="item.columnProp"
  856. :header-align="item.headerAlign"
  857. :show-overflow-tooltip="item.showOverflowTooltip"
  858. :align="item.align"
  859. :fixed="item.fixed==''?false:item.fixed"
  860. :min-width="item.columnWidth"
  861. :label="item.columnLabel">
  862. <template slot-scope="scope">
  863. <span v-if="!item.columnHidden">{{ getColumnValue(scope.row, item) }}</span>
  864. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  865. </template>
  866. </el-table-column>
  867. </el-table>
  868. </el-tab-pane>
  869. <el-tab-pane label="确认人员清单" name="confirmatory" style="width: 104%">
  870. <div style="font-size: 12px;margin-top: -15px">
  871. <el-form :inline="true" label-position="top" :model="confirmatoryData">
  872. <el-form-item :label="'用户账号'">
  873. <el-input v-model="confirmatoryData.username" clearable style="width: 120px"></el-input>
  874. </el-form-item>
  875. <el-form-item :label="'用户名称'">
  876. <el-input v-model="confirmatoryData.userDisplay" clearable style="width: 200px"></el-input>
  877. </el-form-item>
  878. <el-form-item :label="' '">
  879. <el-button type="primary" @click="searchConfirmatorList()">查询</el-button>
  880. </el-form-item>
  881. </el-form>
  882. </div>
  883. <el-container style="margin-top: -5px;margin-left: -10px">
  884. <el-main style="width: 400px; padding: 1px">
  885. <span style="font-size: 12px" >可选人员</span>
  886. <el-table
  887. :height="height + 200"
  888. :data="projectANotDocumentConfirmatorList"
  889. border
  890. ref="confirmatoryTable1"
  891. @row-click="confirmatoryClickRow1"
  892. @selection-change="selectionConfirmatory1"
  893. highlight-current-row
  894. style="width: 100%">
  895. <el-table-column
  896. type="selection"
  897. header-align="center"
  898. align="center"
  899. :selectable="selectFlag"
  900. width="50">
  901. </el-table-column>
  902. <el-table-column
  903. prop="username"
  904. header-align="center"
  905. align="center"
  906. min-width="80"
  907. label="用户账号">
  908. </el-table-column>
  909. <el-table-column
  910. prop="userDisplay"
  911. header-align="center"
  912. align="center"
  913. min-width="120"
  914. label="用户名称">
  915. </el-table-column>
  916. </el-table>
  917. </el-main>
  918. <el-main style="width: 111px;padding: 1px;margin-right: -20px">
  919. <div style="margin-top: 126px;margin-left: 7px">
  920. <el-button type="primary" @click="addConfirmatory()">添加>></el-button>
  921. </div>
  922. <div style="margin-top: 15px;margin-left: 7px">
  923. <el-button type="primary" @click="deleteConfirmatory()">删除<<</el-button>
  924. </div>
  925. </el-main>
  926. <el-main style="width: 400px;padding: 1px;margin-left: -90px">
  927. <span style="font-size: 12px" >确认人员</span>
  928. <el-table
  929. :height="height + 200"
  930. :data="projectAllDocumentConfirmatorList"
  931. border
  932. ref="confirmatoryTable2"
  933. @row-click="confirmatoryClickRow2"
  934. @selection-change="selectionConfirmatory2"
  935. highlight-current-row
  936. style="width: 96%">
  937. <el-table-column
  938. type="selection"
  939. header-align="center"
  940. align="center"
  941. :selectable="selectFlag"
  942. width="50">
  943. </el-table-column>
  944. <el-table-column
  945. prop="username"
  946. header-align="center"
  947. align="center"
  948. min-width="80"
  949. label="用户账号">
  950. </el-table-column>
  951. <el-table-column
  952. prop="userDisplay"
  953. header-align="center"
  954. align="center"
  955. min-width="120"
  956. label="用户名称">
  957. </el-table-column>
  958. </el-table>
  959. </el-main>
  960. </el-container>
  961. </el-tab-pane>
  962. </el-tabs>
  963. <div slot="footer" class="dialog-footer" style="margin-top: 6px">
  964. <el-button type="primary" @click="saveProductionValidationDocument()">确定</el-button>
  965. <el-button @click="closeProjectProductionValidationDocumentVisibleDialog">关闭</el-button>
  966. </div>
  967. </el-dialog>
  968. <el-dialog title="确认" @close="closeUploadFileVisible" :visible.sync="confirmVisible" width="619px" style="margin-top: 0vh;height: 100%;" :close-on-click-modal="false">
  969. <el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
  970. <el-form-item label="项目编码" prop="projectNo" class="red-label">
  971. <el-input v-model="modalData.projectNo" style="width: 110px;" disabled></el-input>
  972. </el-form-item>
  973. <el-form-item label="项目名称" prop="projectDesc" >
  974. <el-input v-model="modalData.projectDesc" style="width: 210px;" disabled></el-input>
  975. </el-form-item>
  976. <el-form-item label="BU" prop="bu">
  977. <el-input v-model="modalData.bu" style="width: 110px;" disabled></el-input>
  978. </el-form-item>
  979. <el-form-item label="项目分类" prop="cProjectTypeDb">
  980. <el-input v-model="modalData.cProjectTypeDb" style="width: 110px;" disabled></el-input>
  981. </el-form-item>
  982. </el-form>
  983. <el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
  984. <el-form-item label="项目料号" prop="testPartNo" >
  985. <el-input v-model="modalData.testPartNo" style="width: 110px;" disabled></el-input>
  986. </el-form-item>
  987. <el-form-item label="料号描述" prop="partDesc" >
  988. <el-input v-model="modalData.partDesc" style="width: 210px;" disabled></el-input>
  989. </el-form-item>
  990. <el-form-item label="指定确认人" prop="userDisplay">
  991. <el-input v-model="confirmData.userDisplay" disabled style="width: 110px;"></el-input>
  992. </el-form-item>
  993. <el-form-item label="要求确认日期" prop="wantedConfirmDate">
  994. <el-input v-model="confirmData.wantedConfirmDate" style="width: 110px;" disabled></el-input>
  995. </el-form-item>
  996. </el-form>
  997. <el-form :inline="true" label-position="top" :model="confirmData" style="margin-left: 7px;margin-top: -5px;">
  998. <el-form-item label="备注" prop="remark">
  999. <el-input v-model="confirmData.remark" style="width: 581px" type="textarea" :rows="1"></el-input>
  1000. </el-form-item>
  1001. </el-form>
  1002. <el-form :inline="true" label-position="top" :model="confirmData" style="margin-left: 7px;margin-top: -15px;">
  1003. <el-form-item label=" ">
  1004. <a href="javascript:void(0);" @click="triggerUpload" type="text" size="small">点击选择文件</a>
  1005. <tr></tr>
  1006. <el-input v-model="this.fileName" readonly placeholder="文件名称" style="width: 581px"></el-input>
  1007. <el-upload class="custom-upload" :file-list="fileList"
  1008. action="javascript:void(0);" ref="uploadFile"
  1009. :on-change="onChange" :on-close="closeFileUpdate"
  1010. multiple :auto-upload="false"
  1011. style="text-align: left;margin-top: 0px;margin-left: 6px;display: none;">
  1012. </el-upload>
  1013. </el-form-item>
  1014. </el-form>
  1015. <el-table
  1016. :height="this.height + 70"
  1017. :data="projectConfirmatorFileList"
  1018. border
  1019. style="width: 100%;margin-top: 25px;margin-left: 0px;">
  1020. <el-table-column
  1021. prop="fileName"
  1022. header-align="center"
  1023. align="center"
  1024. min-width="180"
  1025. label="文件名">
  1026. </el-table-column>
  1027. <el-table-column
  1028. prop="createDate"
  1029. header-align="center"
  1030. align="center"
  1031. min-width="80"
  1032. label="上传时间">
  1033. </el-table-column>
  1034. <el-table-column
  1035. prop="createdBy"
  1036. header-align="center"
  1037. align="center"
  1038. min-width="60"
  1039. label="上传人">
  1040. </el-table-column>
  1041. </el-table>
  1042. <div slot="footer" class="dialog-footer" style="margin-top: 0px">
  1043. <el-button type="primary" @click="saveUploadFile()">确定</el-button>
  1044. <el-button @click="closeUploadFileVisible()">关闭</el-button>
  1045. </div>
  1046. </el-dialog>
  1047. <el-dialog title="查看附件" @close="closeViewDocumentFileVisible" :visible.sync="viewDocumentFileVisible" width="770px" style="margin-top: 0vh" :close-on-click-modal="false">
  1048. <el-table
  1049. :height="height + 200"
  1050. :data="projectConfirmatorFileList"
  1051. border
  1052. style="width: 100%;margin-top: 0px;margin-left: 0px;">
  1053. <el-table-column
  1054. prop="fileName"
  1055. header-align="center"
  1056. align="left"
  1057. min-width="250"
  1058. label="文件名">
  1059. </el-table-column>
  1060. <el-table-column
  1061. prop="createDate"
  1062. header-align="center"
  1063. align="center"
  1064. min-width="80"
  1065. label="上传时间">
  1066. </el-table-column>
  1067. <el-table-column
  1068. prop="createdBy"
  1069. header-align="center"
  1070. align="center"
  1071. min-width="50"
  1072. label="上传人">
  1073. </el-table-column>
  1074. <el-table-column
  1075. header-align="center"
  1076. align="center"
  1077. width="100"
  1078. label="操作">
  1079. <template slot-scope="scope">
  1080. <a type="text" size="small" @click="viewFile(scope.row)">查看</a>
  1081. <a type="text" size="small" @click="downloadFile(scope.row)">下载</a>
  1082. <a type="text" size="small" @click="deleteFile(scope.row)">删除</a>
  1083. </template>
  1084. </el-table-column>
  1085. </el-table>
  1086. <div slot="footer" class="dialog-footer" style="margin-top: 0px">
  1087. <el-button @click="closeViewDocumentFileVisible()">关闭</el-button>
  1088. </div>
  1089. </el-dialog>
  1090. <el-dialog title="查看附件" @close="closeViewMassDocumentFileVisible" :visible.sync="viewMassDocumentFileVisible" width="770px" style="margin-top: 0vh" :close-on-click-modal="false">
  1091. <el-table
  1092. :height="height + 200"
  1093. :data="projectConfirmatorFileList"
  1094. border
  1095. style="width: 100%;margin-top: 0px;margin-left: 0px;">
  1096. <el-table-column
  1097. prop="fileName"
  1098. header-align="center"
  1099. align="left"
  1100. min-width="250"
  1101. label="文件名">
  1102. </el-table-column>
  1103. <el-table-column
  1104. prop="createDate"
  1105. header-align="center"
  1106. align="center"
  1107. min-width="80"
  1108. label="上传时间">
  1109. </el-table-column>
  1110. <el-table-column
  1111. prop="createdBy"
  1112. header-align="center"
  1113. align="center"
  1114. min-width="50"
  1115. label="上传人">
  1116. </el-table-column>
  1117. <el-table-column
  1118. header-align="center"
  1119. align="center"
  1120. width="100"
  1121. label="操作">
  1122. <template slot-scope="scope">
  1123. <a type="text" size="small" @click="viewFile(scope.row)">查看</a>
  1124. <a type="text" size="small" @click="downloadFile(scope.row)">下载</a>
  1125. </template>
  1126. </el-table-column>
  1127. </el-table>
  1128. <div slot="footer" class="dialog-footer" style="margin-top: 0px">
  1129. <el-button @click="closeViewMassDocumentFileVisible()">关闭</el-button>
  1130. </div>
  1131. </el-dialog>
  1132. <el-dialog title="新增打样" :visible.sync="visible" v-drag width="768px" style="margin-top: 7px" :close-on-click-modal="false">
  1133. <el-form :inline="true" label-position="top" :model="newProofingRecordData" style="margin-left: 7px;margin-top: -5px;">
  1134. <el-form-item prop="projectNo">
  1135. <template #label>
  1136. <span class="big-label">项目编码</span>
  1137. </template>
  1138. <el-input v-model="newProofingRecordData.projectNo" style="width: 189px;" disabled></el-input>
  1139. </el-form-item>
  1140. <el-form-item prop="projectDesc" style="margin-left: 15px">
  1141. <template #label>
  1142. <span class="big-label">项目名称</span>
  1143. </template>
  1144. <el-input v-model="newProofingRecordData.projectDesc" style="width: 330px;" disabled></el-input>
  1145. </el-form-item>
  1146. <el-form-item prop="bu" style="margin-left: 15px" :rules="rules.bu">
  1147. <template #label>
  1148. <span class="big-label">BU</span>
  1149. </template>
  1150. <el-select v-model="newProofingRecordData.bu" placeholder="请选择" style="width: 154px" disabled>
  1151. <el-option
  1152. v-for="i in userBuList"
  1153. :key="i.buNo"
  1154. :label="i.buDesc"
  1155. :value="i.buNo">
  1156. </el-option>
  1157. </el-select>
  1158. </el-form-item>
  1159. </el-form>
  1160. <el-form :inline="true" label-position="top" :model="newProofingRecordData" style="margin-left: 7px;margin-top: 20px;">
  1161. <el-form-item prop="customerNo">
  1162. <template #label>
  1163. <span class="big-label">客户编码</span>
  1164. </template>
  1165. <el-input v-model="newProofingRecordData.customerNo" style="width: 189px;" disabled></el-input>
  1166. </el-form-item>
  1167. <el-form-item prop="customerDesc" style="margin-left: 15px">
  1168. <template #label>
  1169. <span class="big-label">客户名称</span>
  1170. </template>
  1171. <el-input v-model="newProofingRecordData.customerDesc" style="width: 330px;" disabled></el-input>
  1172. </el-form-item>
  1173. </el-form>
  1174. <el-form :inline="true" label-position="top" :model="newProofingRecordData" :rules="rules" style="margin-left: 7px;margin-top: 20px;">
  1175. <el-form-item prop="testPartNo" :rules="rules.testPartNo">
  1176. <template #label>
  1177. <span class="big-label">项目料号</span>
  1178. </template>
  1179. <el-input v-model="newProofingRecordData.testPartNo" style="width: 189px;" disabled></el-input>
  1180. </el-form-item>
  1181. <el-form-item prop="partDesc" style="margin-left: 15px">
  1182. <template #label>
  1183. <span class="big-label">料号描述</span>
  1184. </template>
  1185. <el-input v-model="newProofingRecordData.partDesc" style="width: 330px;" disabled></el-input>
  1186. </el-form-item>
  1187. </el-form>
  1188. <el-form :inline="true" label-position="top" :model="newProofingRecordData" :rules="rules" style="margin-left: 7px;margin-top: 20px;">
  1189. <el-form-item prop="cProjectTypeDb">
  1190. <template #label>
  1191. <span class="big-label">项目分类</span>
  1192. </template>
  1193. <el-select v-model="newProofingRecordData.cProjectTypeDb" placeholder="请选择" clearable style="width: 189px">
  1194. <el-option
  1195. v-for="i in cProjectTypeDbList"
  1196. :key="i.cProjectTypeDb"
  1197. :label="i.cProjectTypeDb"
  1198. :value="i.cProjectTypeDb">
  1199. </el-option>
  1200. </el-select>
  1201. </el-form-item>
  1202. <el-form-item prop="projectPhase" style="margin-left: 15px" :rules="rules.projectPhase">
  1203. <template #label>
  1204. <span class="big-label">项目阶段</span>
  1205. </template>
  1206. <el-select v-model="newProofingRecordData.projectPhase" placeholder="请选择" clearable style="width: 150px">
  1207. <el-option
  1208. v-for="i in projectPhaseList"
  1209. :key="i.projectPhase"
  1210. :label="i.projectPhase"
  1211. :value="i.projectPhase">
  1212. </el-option>
  1213. </el-select>
  1214. </el-form-item>
  1215. <el-form-item prop="proofingNo" style="margin-left: 15px" :rules="rules.proofingNo">
  1216. <template #label>
  1217. <span class="big-label">打样单号</span>
  1218. </template>
  1219. <el-input v-model="newProofingRecordData.proofingNo" style="width: 151px;"></el-input>
  1220. </el-form-item>
  1221. <el-form-item prop="proofingNumber" style="margin-left: 15px" :rules="rules.proofingNo">
  1222. <template #label>
  1223. <span class="big-label">数量</span>
  1224. </template>
  1225. <el-input v-model="newProofingRecordData.proofingNumber" style="width: 154px"></el-input>
  1226. </el-form-item>
  1227. </el-form>
  1228. <el-form :inline="true" label-position="top" :model="newProofingRecordData" :rules="rules" style="margin-left: 7px;margin-top: 20px;">
  1229. <el-form-item prop="" :rules="rules.planStartDate">
  1230. <template #label>
  1231. <span class="big-label">打样开始日期</span>
  1232. </template>
  1233. <el-date-picker
  1234. v-model="newProofingRecordData.planStartDate"
  1235. type="date"
  1236. placeholder="选择日期"
  1237. style="width: 189px;"
  1238. >
  1239. </el-date-picker>
  1240. </el-form-item>
  1241. <el-form-item prop="" style="margin-left: 15px" :rules="rules.requiredDeliveryDate">
  1242. <template #label>
  1243. <span class="big-label">预计完成日期</span>
  1244. </template>
  1245. <el-date-picker
  1246. v-model="newProofingRecordData.requiredDeliveryDate"
  1247. type="date"
  1248. placeholder="选择日期"
  1249. style="width: 150px;"
  1250. >
  1251. </el-date-picker>
  1252. </el-form-item>
  1253. <el-form-item prop="" style="margin-left: 15px">
  1254. <template #label>
  1255. <span class="big-label">实际完成日期</span>
  1256. </template>
  1257. <el-date-picker
  1258. v-model="newProofingRecordData.actualityDeliveryDate"
  1259. type="date"
  1260. placeholder="选择日期"
  1261. style="width: 151px;"
  1262. disabled>
  1263. </el-date-picker>
  1264. </el-form-item>
  1265. </el-form>
  1266. <el-form :inline="true" label-position="top" :model="newProofingRecordData" :rules="rules" style="margin-left: 7px;margin-top: 20px;">
  1267. <el-form-item prop="remark">
  1268. <template #label>
  1269. <span class="big-label">备注</span>
  1270. </template>
  1271. <el-input v-model="newProofingRecordData.remark" style="width: 731px" type="textarea" :rows="2"></el-input>
  1272. </el-form-item>
  1273. </el-form>
  1274. <el-footer style="height:40px;margin-top: 45px;text-align:center">
  1275. <el-button @click="visible = false">取 消</el-button>
  1276. <el-button type="primary" @click="newProofingRecord()">确 定</el-button>
  1277. </el-footer>
  1278. </el-dialog>
  1279. <!-- 模态框:详情 -->
  1280. <el-dialog :visible.sync="dialogVisible" width="80%" style="margin-top: -15px">
  1281. <el-tabs style="margin-top: -2px; width: 100%; height: 100%;" v-model="activeModalTab" type="border-card" @tab-click="tabClick">
  1282. <el-tab-pane label="打样记录" name="proofRecord">
  1283. <!-- 注意这里使用了一个新的 ref,用于模态框内部的 proofRecord 组件 -->
  1284. <proofRecord ref="proofRecordModal" :inModal="true" :selected-site="proofingCurrentRow.site"></proofRecord>
  1285. </el-tab-pane>
  1286. <el-tab-pane label="转量产阶段文档" name="massProductionStage">
  1287. <el-button type="primary" v-if="!this.authUpdate" icon="el-icon-upload" style="margin-top: -5px" @click="projectDocumentList()">文档清单定义</el-button>
  1288. <el-button type="primary" v-if="this.proofingCurrentRow.status !== '草稿'" icon="el-icon-upload" style="margin-top: -5px" @click="uploadOtherDocument()">上传其他文档</el-button>
  1289. <el-button type="primary" v-if="this.sendMassMailFlag === true && !this.authUpdate" style="margin-top: -5px" @click="sendMassMailHandle()">邮件提醒</el-button>
  1290. <el-button type="primary" v-loading="this.downloadLoading" v-if="projectOtherDocumentList.length>0" style="margin-top: -3px;" @click="dowloadAllFile()">一键下载</el-button>
  1291. <el-table
  1292. :data="projectOtherDocumentList"
  1293. border
  1294. style="width: 100%;margin-top: 5px;"
  1295. :height="this.height + 250"
  1296. ref="proofDocumentTable"
  1297. @row-click="projectOtherDocumentClickRow"
  1298. @current-change="changeCurrentRow1"
  1299. :row-class-name="tableRowClassName"
  1300. v-loading="dataListLoading">
  1301. <el-table-column
  1302. v-if="this.authUpdate"
  1303. header-align="center"
  1304. align="center"
  1305. width="120"
  1306. fixed="left"
  1307. label="操作">
  1308. <template slot-scope="scope">
  1309. <a type="primary" v-if="scope.row.documentDefinitionListId !== '-1'" @click="uploadFile(scope.row)">上传文件</a>
  1310. <a type="primary" size="small" v-if="scope.row.documentDefinitionListId !== '-1' && scope.row.documentId === null"
  1311. @click="copyFile(scope.row)">复制</a>
  1312. <a type="text" size="small" v-if="shouldShowDelete(scope.row) || scope.row.projectPhase === 'SOP文档'" @click="viewMassDocumentFile(scope.row)">查看附件</a>
  1313. <a type="text" size="small" v-if="shouldShowDelete(scope.row) && scope.row.createdBy === $store.state.user.name"
  1314. @click="massProductionDocumentDelete(scope.row)">删除</a>
  1315. </template>
  1316. </el-table-column>
  1317. <el-table-column
  1318. v-else
  1319. header-align="center"
  1320. align="center"
  1321. width="150"
  1322. fixed="left"
  1323. label="操作">
  1324. <template slot-scope="scope">
  1325. <a type="primary" v-if="scope.row.documentDefinitionListId !== '-1'" @click="uploadFile(scope.row)">上传文件</a>
  1326. <a type="primary" size="small" v-if="scope.row.documentDefinitionListId !== '-1' && scope.row.documentId === null"
  1327. @click="copyFile(scope.row)">复制</a>
  1328. <a type="text" size="small" v-if="scope.row.documentDefinitionListId !== '-1' && !shouldShowDelete(scope.row)" @click="warnSendMail(scope.row)">提醒</a>
  1329. <a type="text" size="small" v-if="shouldShowDelete(scope.row) || scope.row.projectPhase === 'SOP文档'" @click="viewMassDocumentFile(scope.row)">查看附件</a>
  1330. <a type="text" size="small" v-if="shouldShowDelete(scope.row)" @click="massProductionDocumentDelete(scope.row)">删除</a>
  1331. </template>
  1332. </el-table-column>
  1333. <el-table-column label="序号" type="index" align="center" :index="indexMethod">
  1334. <template slot-scope="scope">
  1335. <span>
  1336. {{ scope.$index + 1 }}
  1337. </span>
  1338. </template>
  1339. </el-table-column>
  1340. <el-table-column label="文档类型" align="left">
  1341. <template slot-scope="scope">
  1342. <span>
  1343. {{ getCombinedDocumentType(scope.row) }}
  1344. </span>
  1345. </template>
  1346. </el-table-column>
  1347. <el-table-column
  1348. v-for="(item,index) in columnFileContentArray" :key="index"
  1349. :sortable="item.columnSortable"
  1350. :prop="item.columnProp"
  1351. :header-align="item.headerAlign"
  1352. :show-overflow-tooltip="item.showOverflowTooltip"
  1353. :align="item.align"
  1354. :fixed="item.fixed==''?false:item.fixed"
  1355. :min-width="item.columnWidth"
  1356. :label="item.columnLabel">
  1357. <template slot-scope="scope">
  1358. <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
  1359. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  1360. style="width: 100px; height: 80px"/></span>
  1361. </template>
  1362. </el-table-column>
  1363. </el-table>
  1364. </el-tab-pane>
  1365. <el-tab-pane label="所有文档" name="allDocument">
  1366. <el-button type="primary" v-if="this.proofingCurrentRow.status !== '草稿' && !this.authUpdate" icon="el-icon-upload" style="margin-top: -5px" @click="projectProductionValidationDocument()">选择生产确认文档</el-button>
  1367. <el-button type="primary" v-loading="this.downloadLoading" v-if="projectAllDocumentList.length>0" style="margin-top: -3px;" @click="dowloadAllFile2()">一键下载</el-button>
  1368. <el-table
  1369. :data="projectAllDocumentList"
  1370. border
  1371. style="width: 100%;margin-top: 5px;"
  1372. :height="this.height + 250"
  1373. ref="projectAllDocumentDocumentTable"
  1374. @row-click="projectAllDocumentClickRow"
  1375. v-loading="dataListLoading"
  1376. :row-class-name="tableRowClassName">
  1377. <el-table-column
  1378. v-if="this.authUpdate"
  1379. header-align="center"
  1380. fixed="left"
  1381. align="center"
  1382. width="90"
  1383. label="操作">
  1384. <template slot-scope="scope">
  1385. <a type="text" size="small" v-if="shouldShowDelete(scope.row) || scope.row.uploadedFlag === 'Y'" @click="viewMassDocumentFile(scope.row)">查看附件</a>
  1386. <a type="text" size="small" v-if="scope.row.uploadedFlag === 'N'" @click="uploadAllDocumentFile(scope.row)">上传文件</a>
  1387. <a type="primary" size="small" v-if="scope.row.documentDefinitionListId !== '-1' && scope.row.documentId === null"
  1388. @click="copyFile(scope.row)">复制</a>
  1389. <a type="text" size="small" v-if="shouldShowDelete(scope.row) && scope.row.createdBy === $store.state.user.name"
  1390. @click="massProductionDocumentDelete(scope.row)">删除</a>
  1391. </template>
  1392. </el-table-column>
  1393. <el-table-column
  1394. v-else
  1395. header-align="center"
  1396. fixed="left"
  1397. align="center"
  1398. width="90"
  1399. label="操作">
  1400. <template slot-scope="scope">
  1401. <a type="text" size="small" v-if="shouldShowDelete(scope.row) || scope.row.uploadedFlag === 'Y'" @click="viewMassDocumentFile(scope.row)">查看附件</a>
  1402. <a type="text" size="small" v-if="scope.row.uploadedFlag === 'N'" @click="uploadAllDocumentFile(scope.row)">上传文件</a>
  1403. <a type="primary" size="small" v-if="scope.row.documentDefinitionListId !== '-1' && scope.row.documentId === null"
  1404. @click="copyFile(scope.row)">复制</a>
  1405. <a type="text" size="small" v-if="shouldShowDelete(scope.row)" @click="massProductionDocumentDelete(scope.row)">删除</a>
  1406. </template>
  1407. </el-table-column>
  1408. <el-table-column label="序号" type="index" align="center" :index="indexMethod">
  1409. <template slot-scope="scope">
  1410. <span>
  1411. {{ scope.$index + 1 }}
  1412. </span>
  1413. </template>
  1414. </el-table-column>
  1415. <el-table-column label="文档类型" align="left">
  1416. <template slot-scope="scope">
  1417. <span>
  1418. {{ getCombinedDocumentType(scope.row) }}
  1419. </span>
  1420. </template>
  1421. </el-table-column>
  1422. <el-table-column
  1423. v-for="(item,index) in columnProjectAllDocumentList" :key="index"
  1424. :sortable="item.columnSortable"
  1425. :prop="item.columnProp"
  1426. :header-align="item.headerAlign"
  1427. :show-overflow-tooltip="item.showOverflowTooltip"
  1428. :align="item.align"
  1429. :fixed="item.fixed==''?false:item.fixed"
  1430. :min-width="item.columnWidth"
  1431. :label="item.columnLabel">
  1432. <template slot-scope="scope">
  1433. <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
  1434. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
  1435. style="width: 100px; height: 80px"/></span>
  1436. </template>
  1437. </el-table-column>
  1438. </el-table>
  1439. </el-tab-pane>
  1440. <el-tab-pane label="生产文档确认进度" name="productionDocumentsConfirmProgress">
  1441. <el-row>
  1442. <el-col :span="8" class="left-section">
  1443. <div class="table-container" style="height: 100%;margin-top: -5px">
  1444. <p style="margin-top: -5px">文档清单</p>
  1445. <el-table :data="confirmProgressDocumentList"
  1446. border
  1447. style="width: 100%;margin-top: -5px;"
  1448. :height="this.height + 95">
  1449. <el-table-column header-align="center" align="center" width="50" prop="itemNo" label="序号"></el-table-column>
  1450. <el-table-column header-align="center" align="left" prop="documentType" label="文档类型"></el-table-column>
  1451. <el-table-column header-align="center" align="left" prop="fileName" label="文件名"></el-table-column>
  1452. <el-table-column
  1453. header-align="center"
  1454. align="center"
  1455. width="90"
  1456. fixed="right"
  1457. label="操作">
  1458. <template slot-scope="scope">
  1459. <a type="text" size="small" @click="viewMassDocumentFile(scope.row)">查看附件</a>
  1460. </template>
  1461. </el-table-column>
  1462. </el-table>
  1463. </div>
  1464. </el-col>
  1465. <el-col :span="15" class="right-section">
  1466. <div class="table-container" style="height: 100%;margin-top: -5px">
  1467. <p style="margin-top: -5px">推送人员清单</p>
  1468. <el-table :data="confirmProgressPusherList"
  1469. border
  1470. style="width: 100%;margin-top: -5px;"
  1471. :height="this.height + 95">
  1472. <el-table-column header-align="center" align="center" width="40" prop="itemNo" label="序号"></el-table-column>
  1473. <el-table-column header-align="center" align="left" width="70" prop="userDisplay" label="指定确认人"></el-table-column>
  1474. <el-table-column header-align="center" align="center" :formatter="formatDate" prop="wantedConfirmDate" label="要求确认日期"></el-table-column>
  1475. <el-table-column header-align="center" align="center" prop="confirmFlag" label="是否确认"></el-table-column>
  1476. <el-table-column header-align="center" align="left" prop="confirmedBy" label="实际确认人"></el-table-column>
  1477. <el-table-column header-align="center" align="left" prop="remark" label="备注"></el-table-column>
  1478. <el-table-column header-align="center" align="center" prop="confirmedDate" label="实际确认时间"></el-table-column>
  1479. <el-table-column header-align="center" align="center" prop="createDate" label="推送时间"></el-table-column>
  1480. <el-table-column header-align="center" align="left" prop="createBy" label="推送人"></el-table-column>
  1481. <el-table-column
  1482. header-align="center"
  1483. align="center"
  1484. width="90"
  1485. fixed="left"
  1486. label="操作">
  1487. <template slot-scope="scope">
  1488. <a type="text" size="small" @click="confirmDocument(scope.row)">确认</a>
  1489. <a type="text" size="small" @click="viewDocumentFile(scope.row)">查看附件</a>
  1490. </template>
  1491. </el-table-column>
  1492. </el-table>
  1493. </div>
  1494. </el-col>
  1495. </el-row>
  1496. </el-tab-pane>
  1497. <el-tab-pane label="量产BOM" name="massProductionBOM">
  1498. <el-table
  1499. :data="projectPartBomList"
  1500. row-key="levelCode"
  1501. border
  1502. style="width: 100%; margin-top: 5px;"
  1503. :height="this.height + 250"
  1504. ref="projectBomTable"
  1505. v-loading="dataListLoading"
  1506. :tree-props="{ children: 'children' }">
  1507. <!-- 数据列 -->
  1508. <el-table-column
  1509. label=""
  1510. prop=""
  1511. header-align="center"
  1512. align="center"
  1513. width="80">
  1514. </el-table-column>
  1515. <el-table-column
  1516. v-for="(item, index) in columnProjectBomList"
  1517. :key="index"
  1518. :sortable="item.columnSortable"
  1519. :prop="item.columnProp"
  1520. :header-align="item.headerAlign"
  1521. :show-overflow-tooltip="item.showOverflowTooltip"
  1522. :align="item.align"
  1523. :fixed="item.fixed === '' ? false : item.fixed"
  1524. :min-width="item.columnWidth"
  1525. :label="item.columnLabel">
  1526. <template slot-scope="scope">
  1527. <div v-if="item.columnProp === 'levelCode'">
  1528. <span v-if="scope.row.levelCode === '1'">{{ '主BOM' }}</span>
  1529. <span v-else>{{ scope.row.levelCode }}</span>
  1530. </div>
  1531. <div v-else>
  1532. <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
  1533. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  1534. </div>
  1535. </template>
  1536. </el-table-column>
  1537. </el-table>
  1538. </el-tab-pane>
  1539. <el-tab-pane label="产品工艺路线" name="Routing">
  1540. <el-table
  1541. :data="projectPartRoutingList"
  1542. border
  1543. style="width: 100%; margin-top: 5px;"
  1544. :height="this.height + 250"
  1545. ref="projectBomTable"
  1546. v-loading="dataListLoading"
  1547. >
  1548. <!-- 数据列 -->
  1549. <el-table-column
  1550. v-for="(item, index) in columnProjectRoutingList"
  1551. :key="index"
  1552. :sortable="item.columnSortable"
  1553. :prop="item.columnProp"
  1554. :header-align="item.headerAlign"
  1555. :show-overflow-tooltip="item.showOverflowTooltip"
  1556. :align="item.align"
  1557. :fixed="item.fixed === '' ? false : item.fixed"
  1558. :min-width="item.columnWidth"
  1559. :label="item.columnLabel">
  1560. <template slot-scope="scope">
  1561. <div v-if="item.columnProp === 'levelCode'">
  1562. <span v-if="scope.row.levelCode === '1'">{{ '1' }}</span>
  1563. <span v-else>{{ scope.row.levelCode }}</span>
  1564. </div>
  1565. <div v-else>
  1566. <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
  1567. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  1568. </div>
  1569. </template>
  1570. </el-table-column>
  1571. </el-table>
  1572. </el-tab-pane>
  1573. <el-tab-pane label="项目打样记录" name="projectProofRecord">
  1574. <el-table
  1575. :data="projectProofRecordList"
  1576. border
  1577. style="width: 100%; margin-top: 5px;"
  1578. :height="this.height + 250"
  1579. v-loading="dataListLoading">
  1580. <el-table-column
  1581. v-for="(item, index) in columnProjectProofRecordList"
  1582. :key="index"
  1583. :sortable="item.columnSortable"
  1584. :prop="item.columnProp"
  1585. :header-align="item.headerAlign"
  1586. :show-overflow-tooltip="true"
  1587. :align="item.align"
  1588. :fixed="item.fixed === '' ? false : item.fixed"
  1589. :min-width="item.columnWidth"
  1590. :label="item.columnLabel">
  1591. <template slot-scope="scope">
  1592. <span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
  1593. </template>
  1594. </el-table-column>
  1595. </el-table>
  1596. </el-tab-pane>
  1597. </el-tabs>
  1598. <div slot="footer" class="dialog-footer" style="margin-top: 0px">
  1599. <el-button @click="dialogVisible = false">关闭</el-button>
  1600. </div>
  1601. </el-dialog>
  1602. <!-- 复制文件模态框 -->
  1603. <el-dialog title="复制" @close="closeCopyDocumentFileFlag" @open="searchCopyDocumentFileList"
  1604. :visible.sync="copyDialog" width="1168px" style="margin-top: -15px" v-drag
  1605. :close-on-click-modal="false" append-to-body>
  1606. <el-form inline="inline" label-position="top" :model="copyModalData" style="margin-left: 7px;margin-top: -5px;">
  1607. <el-form-item label="项目编码">
  1608. <el-input v-model="copyModalData.projectNo" readonly style="width: 101px"></el-input>
  1609. </el-form-item>
  1610. <el-form-item label="项目名称">
  1611. <el-input v-model="copyModalData.projectDesc" readonly style="width: 181px"></el-input>
  1612. </el-form-item>
  1613. <el-form-item label="物料编码">
  1614. <el-input v-model="copyModalData.testPartNo" readonly style="width: 101px"></el-input>
  1615. </el-form-item>
  1616. <el-form-item label="物料描述">
  1617. <el-input v-model="copyModalData.partDesc" readonly style="width: 181px"></el-input>
  1618. </el-form-item>
  1619. <el-form-item label="打样单号">
  1620. <el-input v-model="copyModalData.proofingNo" readonly style="width: 101px"></el-input>
  1621. </el-form-item>
  1622. </el-form>
  1623. <el-form inline="inline" label-position="top" :model="copyModalData" style="margin-left: 7px;margin-top: -5px;">
  1624. <el-form-item label="文档类型ID">
  1625. <el-input v-model="copyModalData.documentTypeId" readonly style="width: 101px"></el-input>
  1626. </el-form-item>
  1627. <el-form-item label="文档类型">
  1628. <el-input v-model="copyModalData.documentType" readonly style="width: 181px"></el-input>
  1629. </el-form-item>
  1630. <el-form-item label="结论" :rules="rules.conclusion" v-if="copyModalData.proofingNo !== '*'">
  1631. <el-select v-model="copyModalData.conclusion" placeholder="请选择" clearable style="width: 101px">
  1632. <el-option label = "合格" value = "合格"></el-option>
  1633. <el-option label = "不合格" value = "不合格"></el-option>
  1634. <el-option label = "让步接受" value = "让步接受"></el-option>
  1635. <el-option label = "N/A" value = "N/A"></el-option>
  1636. </el-select>
  1637. </el-form-item>
  1638. </el-form>
  1639. <el-table
  1640. :height="this.height + 200"
  1641. :data="copyDocumentList"
  1642. border
  1643. @selection-change="selectionCopyDocument"
  1644. style="width: 100%;">
  1645. <el-table-column
  1646. type="selection"
  1647. align="center"
  1648. width="55">
  1649. </el-table-column>
  1650. <el-table-column
  1651. prop="testPartNo"
  1652. header-align="center"
  1653. align="left"
  1654. width="141"
  1655. label="物料编码">
  1656. </el-table-column>
  1657. <el-table-column
  1658. prop="partDesc"
  1659. header-align="center"
  1660. align="left"
  1661. width="191"
  1662. label="物料描述">
  1663. </el-table-column>
  1664. <el-table-column
  1665. prop="proofingNo"
  1666. header-align="center"
  1667. align="left"
  1668. label="打样单号">
  1669. </el-table-column>
  1670. <el-table-column
  1671. prop="documentTypeId"
  1672. header-align="center"
  1673. align="left"
  1674. label="文档类型ID">
  1675. </el-table-column>
  1676. <el-table-column
  1677. prop="documentType"
  1678. header-align="center"
  1679. align="left"
  1680. label="文档类型">
  1681. </el-table-column>
  1682. <el-table-column
  1683. prop="fileName"
  1684. header-align="center"
  1685. align="left"
  1686. width="191"
  1687. label="文档文件">
  1688. </el-table-column>
  1689. <el-table-column
  1690. prop="createDate"
  1691. header-align="center"
  1692. align="center"
  1693. label="上传时间">
  1694. </el-table-column>
  1695. <el-table-column
  1696. prop="createdBy"
  1697. header-align="center"
  1698. align="left"
  1699. label="上传人">
  1700. </el-table-column>
  1701. </el-table>
  1702. <el-footer style="height:40px;margin-top: 25px;text-align:center">
  1703. <el-button type="primary" @click="saveSelectionCopyDocumentType()">确定</el-button>
  1704. <el-button @click="copyDialog = false">关闭</el-button>
  1705. </el-footer>
  1706. </el-dialog>
  1707. <upload-file-list-1 folder="projectPMPDocumentFiles" title="上传文档" :file-list.sync="fileList" :label="'文档类型ID:'" :no="otherDocumentCurrentRow.documentTypeId" :no-type="otherDocumentCurrentRow.documentType"
  1708. :proofing-id="proofingCurrentRow.proofingId" :proofing-no="proofingCurrentRow.proofingNo" :bu="proofingCurrentRow.buNo" :site="proofingCurrentRow.site" :upload-dialog.sync="uploadDialog" :no-desc="otherDocumentCurrentRow.documentDesc" :id="otherDocumentCurrentRow.id"
  1709. :project-id="proofingCurrentRow.projectId" :project-no="proofingCurrentRow.projectNo" :project-desc="proofingCurrentRow.projectDesc" :document-type="proofingCurrentRow.documentType" :conclusion="'N/A'"
  1710. :customer-no="proofingCurrentRow.customerNo" :customer-desc="proofingCurrentRow.customerDesc" :test-part-no="proofingCurrentRow.testPartNo" :project-part-id="proofingCurrentRow.projectPartId" :project-part-no="proofingCurrentRow.projectPartId"
  1711. :part-desc="proofingCurrentRow.partDesc" :column-file-content-array="columnFileContentArray" :proof-document-list="projectOtherDocumentList"
  1712. path="/upload/test" :is-editable="isEditable" :is-mass-production-stage="isMassProductionStage"></upload-file-list-1>
  1713. <upload-file-list-2 :folder="this.folder" title="上传文档" :file-list.sync="fileList" :label="'文档类型ID:'" :no="projectAllDocumentCurrentRow.documentTypeId" :no-type="projectAllDocumentCurrentRow.documentType"
  1714. :proofing-id="projectAllDocumentCurrentRow.proofingId" :proofing-no="projectAllDocumentCurrentRow.proofingNo" :bu="proofingCurrentRow.buNo" :site="proofingCurrentRow.site" :upload-dialog.sync="uploadDialog1" :no-desc="projectAllDocumentCurrentRow.documentDesc" :id="projectAllDocumentCurrentRow.id"
  1715. :project-id="proofingCurrentRow.projectId" :project-no="proofingCurrentRow.projectNo" :project-desc="proofingCurrentRow.projectDesc" :document-type="proofingCurrentRow.documentType" :conclusion="'N/A'"
  1716. :customer-no="proofingCurrentRow.customerNo" :customer-desc="proofingCurrentRow.customerDesc" :test-part-no="proofingCurrentRow.testPartNo" :project-part-id="proofingCurrentRow.projectPartId" :project-part-no="proofingCurrentRow.projectPartId"
  1717. :part-desc="proofingCurrentRow.partDesc" :column-file-content-array="columnFileContentArray" :proof-document-list="projectPartDocumentList"
  1718. path="/upload/test" :is-editable="isEditable" :is-mass-production-stage="isMassProductionStage"></upload-file-list-2>
  1719. <Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
  1720. </div>
  1721. </template>
  1722. <script>
  1723. import {getProjectCategoryByBu, getSiteAndBuByUserName} from "@/api/eam/eam.js"
  1724. import {
  1725. searchBusinessInfo,
  1726. searchBusinessInfo1,
  1727. searchBusinessInfo2,
  1728. searchBusinessInfo3,
  1729. searchBusinessInfo4,
  1730. searchBusinessInfo5,
  1731. searchBusinessInfo6
  1732. } from "@/api/factory/site.js"
  1733. import Chooselist from '@/views/modules/common/Chooselist_eam'
  1734. import {removeUserFavorite, saveUserFavorite, userFavoriteList} from '@/api/userFavorite.js'
  1735. import {getTableDefaultListLanguage, getTableUserListLanguage,} from "@/api/table.js";
  1736. import proofRecord from "./com_project_proof_record";
  1737. import {
  1738. eamProjectInfoDelete,
  1739. eamProjectInfoEdit,
  1740. eamProjectInfoSave,
  1741. eamProjectInfoSearch,
  1742. saveFormalPartNo
  1743. } from "@/api/eam/eamProject.js";
  1744. import {getProjectOtherDocument} from "@/api/eam/eamProofing.js";
  1745. import UploadFileList1 from "../common/uploadFileList1.vue";
  1746. import UploadFileList2 from "../common/uploadFileList1.vue";
  1747. import {
  1748. copyDocumentFileToDoc,
  1749. deleteDocumentType, deleteProofDocument,
  1750. editProjectDocument, getCopyDocumentFileList,
  1751. getExtraDocumentList, getProofDocument,
  1752. projectDocumentSave,
  1753. proofingDocumentNEW, proofingDocumentSave, proofingInformationSave,
  1754. searchProjectAllDocument,
  1755. searchAllProofing
  1756. } from "../../../api/eam/eamProofing";
  1757. import {
  1758. deleteAndSaveHandle,
  1759. saveHandle,
  1760. checkConfirmationRecord,
  1761. checkProductionValidationDocument,
  1762. deleteDocumentInformation,
  1763. deleteProjectFile,
  1764. saveProductionValidationDocument,
  1765. saveProductionValidationDocumentConfirmator,
  1766. searchConfirmatorList,
  1767. searchConfirmProgressDocumentList,
  1768. searchConfirmProgressPusherList,
  1769. searchProjectConfirmatorFileList,
  1770. sendMailHandle,
  1771. updateProjectDocumentConfirm,
  1772. uploadProjectFile,
  1773. warnSendMailHandle,
  1774. confirmatorSendMailHandle,
  1775. eamProjectPartSearch,
  1776. queryProjectPartCustomerOptions,
  1777. eamProjectPartInfoEdit,
  1778. eamProjectPartInfoCancelEdit,
  1779. getFinalPartDesc,
  1780. addConfirmatory,
  1781. deleteConfirmatory,
  1782. queryEamProjectPart,
  1783. searchMassProductionBomList,
  1784. searchRoutingList
  1785. } from "../../../api/eam/eamProject";
  1786. import row from "element-ui/packages/row";
  1787. import moment from 'moment';
  1788. import 'moment/locale/zh-cn';
  1789. import {downLoadObjectFile2} from "../../../api/eam/eam_object_list";
  1790. import {EventBus} from "../../../main";
  1791. import {arrayToTreeByLevelCode} from "../../../utils/arrayToTreeByLevelCode";
  1792. import {updateColumnSize} from "../../../api/table";
  1793. import {uploadFileList} from '@/api/base/baseFunction.js';
  1794. /*打样记录組件*/
  1795. export default {
  1796. computed: {
  1797. row() {
  1798. return row
  1799. },
  1800. projectOwnersList() {
  1801. return this.allPersonnelInfoList.filter(item => item.projectOwnerId !== undefined);
  1802. },
  1803. projectManagersList() {
  1804. return this.allPersonnelInfoList.filter(item => item.projectManagerId !== undefined);
  1805. },
  1806. engineersList() {
  1807. return this.allPersonnelInfoList.filter(item => item.engineerId !== undefined);
  1808. },
  1809. finalPartNosList() {
  1810. return this.allPersonnelInfoList.filter(item => item.finalPartNoId !== undefined);
  1811. },
  1812. visibleColumnList() {
  1813. return this.columnList.filter(item => item.status !== false && item.status !== 0);
  1814. },
  1815. },
  1816. components: {
  1817. UploadFileList1,
  1818. UploadFileList2,
  1819. Chooselist,
  1820. proofRecord,
  1821. },
  1822. watch: {
  1823. searchData: {
  1824. deep: true,
  1825. handler: function (newV, oldV) {
  1826. this.searchData.customerNo = this.searchData.customerNo.toUpperCase()
  1827. }
  1828. },
  1829. projectProductionValidationDocumentVisible(newVal) {
  1830. if (newVal) {
  1831. this.activeName1 = 'selectDocument';
  1832. }
  1833. },
  1834. // 如果projectOtherDocumentList改变,遍历projectOtherDocumentList
  1835. projectOtherDocumentList: {
  1836. deep: true,
  1837. handler: function (newV, oldV) {
  1838. const sendMassMailFlags = [];
  1839. this.projectOtherDocumentList.forEach(item => {
  1840. if (item.uploadedFlag === 'N') {
  1841. sendMassMailFlags.push(item.uploadedFlag)
  1842. }
  1843. })
  1844. this.sendMassMailFlag = sendMassMailFlags.includes('N');
  1845. }
  1846. },
  1847. },
  1848. data () {
  1849. return {
  1850. // 是否收藏
  1851. favorite: false,
  1852. // 导出 start
  1853. exportData: [],
  1854. exportName: "项目物料" + this.dayjs().format('YYYYMMDDHHmmss'),
  1855. exportHeader: ["项目物料"],
  1856. exportFooter: [],
  1857. exportList:[],
  1858. authSearch: false,
  1859. authSave: false,
  1860. authUpdate: false,
  1861. authDelete: false,
  1862. dialogVisible: false, // 控制模态框显示
  1863. activeModalTab: 'proofRecord',
  1864. // 导出 end
  1865. tagNo:'',
  1866. searchCustomerOptions: [],
  1867. searchCustomerOptionLoading: false,
  1868. searchCustomerQueryToken: 0,
  1869. searchCustomerOptionInitialized: false,
  1870. fileName:'',
  1871. folder: '',
  1872. selectTypeFlag: [],
  1873. searchData: {
  1874. site: this.$store.state.user.site,
  1875. userName: this.$store.state.user.name,
  1876. projectId: '',
  1877. projectNo: '',
  1878. projectDesc: '',
  1879. testPartNo: '',
  1880. partDesc: '',
  1881. dryWetType: '',
  1882. customerNo: '',
  1883. customerDesc: '',
  1884. buDesc: '',
  1885. projectCategory: '',
  1886. status: '',
  1887. startDate:'',
  1888. endDate:'',
  1889. projectCreationDate: new Date(),
  1890. projectCloseDate:'',
  1891. needDate:'',
  1892. projectManager: '',
  1893. projectOwner: '',
  1894. engineer: '',
  1895. cProjectRegion: '',
  1896. finalPartNo: '',
  1897. massProductionStartDate: '',
  1898. massProductionEndDate: '',
  1899. feedingFlag: '0',
  1900. // active: 'Y',
  1901. page: 1,
  1902. limit: 10,
  1903. },
  1904. searchData1: {
  1905. site: this.$store.state.user.site,
  1906. userName: this.$store.state.user.name,
  1907. projectId: '',
  1908. projectNo: '',
  1909. projectDesc: '',
  1910. projectPartId: '',
  1911. testPartNo: '',
  1912. partDesc: '',
  1913. dryWetType: '',
  1914. customerNo: '',
  1915. customerDesc: '',
  1916. buDesc: '',
  1917. projectCategory: '',
  1918. status: '',
  1919. startDate:'',
  1920. endDate:'',
  1921. projectCreationDate: new Date(),
  1922. projectCloseDate:'',
  1923. needDate:'',
  1924. // active: 'Y',
  1925. page: 1,
  1926. limit: 10,
  1927. },
  1928. height: 200,
  1929. pageIndex: 1,
  1930. pageSize: 20,
  1931. totalPage: 0,
  1932. businessDataList: [],
  1933. businessDataList1: [],
  1934. businessDataList2: [],
  1935. businessDataList3: [],
  1936. businessDataList4: [],
  1937. businessDataList5: [],
  1938. businessDataList6: [],
  1939. dataList: [],
  1940. dataListSelections: [],
  1941. roleDescList: [],
  1942. projectPartDocumentList: [],
  1943. allPersonnelInfoList: [],
  1944. allMFGList: [],
  1945. //用于储存选中的行数据
  1946. selectedDocumentItems: [],
  1947. // ======== 复选数据集 ========
  1948. businessSelections: [],
  1949. // ======== 选中的当前行数据 ========
  1950. proofingCurrentRow: {},
  1951. otherDocumentCurrentRow: {},
  1952. projectAllDocumentCurrentRow: {},
  1953. fileList: [],
  1954. downloadLoading: false,
  1955. projectOtherDocumentList: [],
  1956. extraProjectDocumentList: [],
  1957. projectDocumentSelection: [],
  1958. projectAllDocumentList: [],
  1959. projectAllDocumentList1: [],
  1960. confirmatoryList: [],
  1961. projectAllDocumentConfirmatorList: [],
  1962. projectANotDocumentConfirmatorList: [],
  1963. projectPartBomList: [],// 量产BOM原始平面数据数组
  1964. projectPartRoutingList: [],// 原始平面数据数组
  1965. projectProofRecordList: [],
  1966. confirmatorySelection1: [],
  1967. confirmatorySelection2: [],
  1968. proofDocumentListDefinition: [],
  1969. confirmProgressPusherList: [],
  1970. confirmProgressDocumentList: [],
  1971. projectConfirmatorFileList: [],
  1972. viewDocumentFileVisible: false,
  1973. viewMassDocumentFileVisible: false,
  1974. sendMassMailFlag: false,
  1975. searchProjectDocumentTypeData: {
  1976. site: '',
  1977. projectId: '',
  1978. projectNo: '',
  1979. proofingNo: '*',
  1980. documentTypeId: '',
  1981. documentType: '',
  1982. documentDesc: '',
  1983. responsibleDepartment: '',
  1984. estimatedCompletionDays: '',
  1985. page: 1,
  1986. limit: 1000
  1987. },
  1988. dataListLoading: false,
  1989. modalFlag:false,
  1990. modalDisableFlag:false,
  1991. formalPartNoFlag:false,
  1992. projectManagerFlag:false,
  1993. projectOwnerFlag:false,
  1994. engineerFlag:false,
  1995. engineer6Flag:false,
  1996. IPQCFlag:false,
  1997. FQC1Flag:false,
  1998. MFGlag:false,
  1999. uploadDialog:false,
  2000. uploadDialog1:false,
  2001. isEditable: true,
  2002. isMassProductionStage: true,
  2003. projectDocumentListVisible: false,
  2004. addProjectDocumentTypeFlag: false,
  2005. projectProductionValidationDocumentVisible: false,
  2006. confirmVisible: false,
  2007. confirmationPrompted: false, // 是否已经进行过确认提示的标志
  2008. agencyMatters: false, // 是否代办事项
  2009. lastAppliedRouteQueryKey: '',
  2010. finalPartFlag: false,
  2011. visible: false, // 新增打样模态框
  2012. dataListIndex: 0,
  2013. modalData:{
  2014. flag:'',
  2015. id:'',
  2016. bu: '',
  2017. buNo: '',
  2018. site: '',
  2019. projectId: '',
  2020. projectNo: '',
  2021. oriProjectId: '',
  2022. projectDesc:'',
  2023. projectCloseDate:'',
  2024. proofingNo:'',
  2025. needDate:'',
  2026. customerNo:'',
  2027. finalCustomerId:'',
  2028. customerDesc:'',
  2029. projectCategory:'',
  2030. testPartNo:'',
  2031. partDesc:'',
  2032. priority:'',
  2033. projectManager:'',
  2034. projectManagerName:'',
  2035. projectOwner:'',
  2036. projectOwnerName:'',
  2037. cProjectRegion:'',
  2038. cProjectBuildDate:'',
  2039. cQualityEngineer1:'',
  2040. cQualityEngineer1Name:'',
  2041. cQualityEngineer2:'',
  2042. cQualityEngineer2Name:'',
  2043. cQualityEngineer3:'',
  2044. cQualityEngineer3Name:'',
  2045. cQualityEngineer4:'',
  2046. cQualityEngineer4Name:'',
  2047. cQualityEngineer5:'',
  2048. cQualityEngineer5Name:'',
  2049. cQualityEngineer6:'',
  2050. cQualityEngineer6Name:'',
  2051. cManufactureEngineer:'',
  2052. cManufactureEngineerName:'',
  2053. docEngineer:'',
  2054. docEngineerName:'',
  2055. docEngineer2:'',
  2056. docEngineer2Name:'',
  2057. engineer:'',
  2058. engineerName:'',
  2059. ipqcHardTag:'',
  2060. ipqcHardTagName:'',
  2061. cQualityEngineer7:'',
  2062. cQualityEngineer7Name:'',
  2063. qcEngineer:'',
  2064. qcEngineerName:'',
  2065. peEngineer:'',
  2066. peEngineerName:'',
  2067. eeEngineer:'',
  2068. eeEngineerName:'',
  2069. sqemeEngineer:'',
  2070. sqemeEngineerName:'',
  2071. sqeeeEngineer:'',
  2072. sqeeeEngineerName:'',
  2073. //projectCreationDate为当前服务器的时间
  2074. projectCreationDate: new Date(),
  2075. finalPartNo:'',
  2076. finalPartDesc:'',
  2077. wantedConfirmDate: new Date(),
  2078. // active:'',
  2079. createBy: this.$store.state.user.name,
  2080. updateBy: this.$store.state.user.name,
  2081. },
  2082. newProofingRecordData:{
  2083. site: '',
  2084. projectId: '',
  2085. projectNo: '',
  2086. projectDesc: '',
  2087. bu: '',
  2088. buNo: '',
  2089. customerNo: '',
  2090. customerDesc: '',
  2091. testPartNo: '',
  2092. partDesc: '',
  2093. cProjectTypeDb: '',
  2094. sqemeEngineer: '',
  2095. sqeeeEngineer: '',
  2096. projectPhase: '',
  2097. proofingNo: '',
  2098. proofingNumber: '',
  2099. planStartDate: '',
  2100. requiredDeliveryDate: '',
  2101. actualityDeliveryDate: '',
  2102. remark: '',
  2103. createBy: this.$store.state.user.name,
  2104. updateBy: this.$store.state.user.name,
  2105. },
  2106. searchBusinessData:{
  2107. site: '',
  2108. username: '',
  2109. roleDesc: '',
  2110. userDisplay: '',
  2111. active: '',
  2112. page: 1,
  2113. limit: 10,
  2114. },
  2115. searchBusinessData1:{
  2116. site: '',
  2117. username: '',
  2118. roleDesc: '',
  2119. userDisplay: '',
  2120. active: '',
  2121. page: 1,
  2122. limit: 10,
  2123. },
  2124. searchBusinessData2:{
  2125. site: '',
  2126. username: '',
  2127. roleDesc: '',
  2128. userDisplay: '',
  2129. active: '',
  2130. page: 1,
  2131. limit: 10,
  2132. },
  2133. searchBusinessData3:{
  2134. site: '',
  2135. username: '',
  2136. roleDesc: '',
  2137. userDisplay: '',
  2138. active: '',
  2139. page: 1,
  2140. limit: 10,
  2141. },
  2142. searchBusinessData4:{
  2143. site: '',
  2144. username: '',
  2145. roleDesc: '',
  2146. userDisplay: '',
  2147. active: '',
  2148. page: 1,
  2149. limit: 10,
  2150. },
  2151. searchBusinessData5:{
  2152. site: '',
  2153. username: '',
  2154. roleDesc: '',
  2155. userDisplay: '',
  2156. active: '',
  2157. page: 1,
  2158. limit: 10,
  2159. },
  2160. searchBusinessData6:{
  2161. site: '',
  2162. username: '',
  2163. roleDesc: '',
  2164. userDisplay: '',
  2165. active: '',
  2166. page: 1,
  2167. limit: 10,
  2168. },
  2169. confirmData:{
  2170. site: '',
  2171. projectId: '',
  2172. projectNo: '',
  2173. orderRef1: '',
  2174. orderRef2: '',
  2175. documentId: '',
  2176. documentType: '',
  2177. itemNo: '',
  2178. userid: '',
  2179. wantedConfirmDate: '',
  2180. confirmFlag: '',
  2181. confirmedBy: '',
  2182. remark: '',
  2183. confirmedDate: '',
  2184. createDate: '',
  2185. createBy: '',
  2186. page: 1,
  2187. limit: 1000
  2188. },
  2189. confirmatoryData:{
  2190. username: '',
  2191. userDisplay: ''
  2192. },
  2193. copyModalData: {
  2194. site: '',
  2195. username: this.$store.state.user.name,
  2196. projectId: '',
  2197. projectNo: '',
  2198. proofingId: '',
  2199. proofingNo: '',
  2200. documentTypeId: ''
  2201. },
  2202. documentCopySelection: [],
  2203. copyDocumentList: [],
  2204. copyDialog: false,
  2205. departmentList:[],
  2206. cProjectTypeDbList: [],
  2207. projectPhaseList: [
  2208. {projectPhase: 'Prototype'},
  2209. {projectPhase: 'Alpha'},
  2210. {projectPhase: 'Beta'},
  2211. {projectPhase: 'Pre-launch'},
  2212. ],
  2213. activeName: 'proofRecord',
  2214. activeName1: 'selectDocument',
  2215. // 日期限制
  2216. // pickerOptions: {
  2217. // disabledDate(time) {
  2218. // return time.getTime() > Date.now();
  2219. // },
  2220. // },
  2221. // 展示列集
  2222. columnList: [
  2223. {
  2224. userId: this.$store.state.user.name,
  2225. functionId: 401004,
  2226. serialNumber: '401004Table1BuDesc',
  2227. tableId: "401004Table1",
  2228. tableName: "项目物料表",
  2229. columnProp: 'buDesc',
  2230. headerAlign: "center",
  2231. align: "center",
  2232. columnLabel: 'BU',
  2233. columnHidden: false,
  2234. columnImage: false,
  2235. columnSortable: false,
  2236. sortLv: 0,
  2237. status: true,
  2238. fixed: '',
  2239. columnWidth: 100,
  2240. },
  2241. {
  2242. userId: this.$store.state.user.name,
  2243. functionId: 401004,
  2244. serialNumber: '401004Table1ProjectNo',
  2245. tableId: "401004Table1",
  2246. tableName: "项目物料表",
  2247. columnProp: 'projectNo',
  2248. headerAlign: "center",
  2249. align: "center",
  2250. columnLabel: '项目编码',
  2251. columnHidden: false,
  2252. columnImage: false,
  2253. columnSortable: false,
  2254. sortLv: 0,
  2255. status: true,
  2256. fixed: '',
  2257. columnWidth: 100,
  2258. },
  2259. {
  2260. userId: this.$store.state.user.name,
  2261. functionId: 401004,
  2262. serialNumber: '401004Table1ProjectDesc',
  2263. tableId: "401004Table1",
  2264. tableName: "项目物料表",
  2265. columnProp: 'projectDesc',
  2266. headerAlign: "center",
  2267. align: "center",
  2268. columnLabel: '项目名称',
  2269. columnHidden: false,
  2270. columnImage: false,
  2271. columnSortable: false,
  2272. sortLv: 0,
  2273. status: true,
  2274. fixed: '',
  2275. columnWidth: 100,
  2276. },
  2277. {
  2278. userId: this.$store.state.user.name,
  2279. functionId: 401004,
  2280. serialNumber: '401004Table1TestPartNo',
  2281. tableId: "401004Table1",
  2282. tableName: "项目物料表",
  2283. columnProp: 'testPartNo',
  2284. headerAlign: "center",
  2285. align: "center",
  2286. columnLabel: '项目料号',
  2287. columnHidden: false,
  2288. columnImage: false,
  2289. columnSortable: false,
  2290. sortLv: 0,
  2291. status: true,
  2292. fixed: '',
  2293. columnWidth: 100,
  2294. },
  2295. {
  2296. userId: this.$store.state.user.name,
  2297. functionId: 401004,
  2298. serialNumber: '401004Table1PartDesc',
  2299. tableId: "401004Table1",
  2300. tableName: "项目物料表",
  2301. columnProp: 'partDesc',
  2302. headerAlign: "center",
  2303. align: "center",
  2304. columnLabel: '料号描述',
  2305. columnHidden: false,
  2306. columnImage: false,
  2307. columnSortable: false,
  2308. sortLv: 0,
  2309. status: true,
  2310. fixed: '',
  2311. columnWidth: 100,
  2312. },
  2313. {
  2314. userId: this.$store.state.user.name,
  2315. functionId: 401004,
  2316. serialNumber: '401004Table1customerNo',
  2317. tableId: "401004Table1",
  2318. tableName: "项目物料表",
  2319. columnProp: "customerNo",
  2320. headerAlign: "center",
  2321. align: "left",
  2322. columnLabel: "客户编码",
  2323. columnHidden: false,
  2324. columnImage: false,
  2325. columnSortable: false,
  2326. sortLv: 0,
  2327. status: true,
  2328. fixed: '',
  2329. columnWidth: 100
  2330. },
  2331. {
  2332. userId: this.$store.state.user.name,
  2333. functionId: 401004,
  2334. serialNumber: '401004Table1customerDesc',
  2335. tableId: "401004Table1",
  2336. tableName: "项目物料表",
  2337. columnProp: "customerDesc",
  2338. headerAlign: "center",
  2339. align: "left",
  2340. columnLabel: "客户名称",
  2341. columnHidden: false,
  2342. columnImage: false,
  2343. columnSortable: false,
  2344. sortLv: 0,
  2345. status: true,
  2346. fixed: '',
  2347. columnWidth: 150
  2348. },
  2349. {
  2350. userId: this.$store.state.user.name,
  2351. functionId: 401004,
  2352. serialNumber: '401004Table1BuildDate',
  2353. tableId: "401004Table1",
  2354. tableName: "项目物料表",
  2355. columnProp: "buildDate",
  2356. headerAlign: "center",
  2357. align: "center",
  2358. columnLabel: "立项日期",
  2359. columnHidden: false,
  2360. columnImage: false,
  2361. columnSortable: false,
  2362. sortLv: 0,
  2363. status: true,
  2364. fixed: '',
  2365. columnWidth: 120
  2366. },
  2367. {
  2368. userId: this.$store.state.user.name,
  2369. functionId: 401004,
  2370. serialNumber: '401004Table1ProjectCategory',
  2371. tableId: "401004Table1",
  2372. tableName: "项目物料表",
  2373. columnProp: 'projectCategory',
  2374. headerAlign: "center",
  2375. align: "left",
  2376. columnLabel: '项目分类',
  2377. columnHidden: false,
  2378. columnImage: false,
  2379. columnSortable: false,
  2380. sortLv: 0,
  2381. status: true,
  2382. fixed: '',
  2383. columnWidth: 120,
  2384. },
  2385. {
  2386. userId: this.$store.state.user.name,
  2387. functionId: 401004,
  2388. serialNumber: '401004Table1Priority',
  2389. tableId: "401004Table1",
  2390. tableName: "项目物料表",
  2391. columnProp: 'priority',
  2392. headerAlign: "center",
  2393. align: "left",
  2394. columnLabel: '优先级',
  2395. columnHidden: false,
  2396. columnImage: false,
  2397. columnSortable: false,
  2398. sortLv: 0,
  2399. status: true,
  2400. fixed: '',
  2401. columnWidth: 80,
  2402. },
  2403. {
  2404. userId: this.$store.state.user.name,
  2405. functionId: 401004,
  2406. serialNumber: '401004Table1CProjectRegion',
  2407. tableId: "401004Table1",
  2408. tableName: "项目物料表",
  2409. columnProp: 'cProjectRegion',
  2410. headerAlign: "center",
  2411. align: "left",
  2412. columnLabel: '区域',
  2413. columnHidden: false,
  2414. columnImage: false,
  2415. columnSortable: false,
  2416. sortLv: 0,
  2417. status: true,
  2418. fixed: '',
  2419. columnWidth: 120,
  2420. },
  2421. {
  2422. userId: this.$store.state.user.name,
  2423. functionId: 401004,
  2424. serialNumber: '401004Table1ProjectManager',
  2425. tableId: "401004Table1",
  2426. tableName: "项目物料表",
  2427. columnProp: 'projectManagerName',
  2428. headerAlign: "center",
  2429. align: "left",
  2430. columnLabel: 'PM/Sales',
  2431. columnHidden: false,
  2432. columnImage: false,
  2433. columnSortable: false,
  2434. sortLv: 0,
  2435. status: true,
  2436. fixed: '',
  2437. columnWidth: 120,
  2438. },
  2439. {
  2440. userId: this.$store.state.user.name,
  2441. functionId: 401004,
  2442. serialNumber: '401004Table1ProjectOwner',
  2443. tableId: "401004Table1",
  2444. tableName: "项目物料表",
  2445. columnProp: 'projectOwnerName',
  2446. headerAlign: "center",
  2447. align: "left",
  2448. columnLabel: 'PjM',
  2449. columnHidden: false,
  2450. columnImage: false,
  2451. columnSortable: false,
  2452. sortLv: 0,
  2453. status: true,
  2454. fixed: '',
  2455. columnWidth: 120,
  2456. },
  2457. {
  2458. userId: this.$store.state.user.name,
  2459. functionId: 401004,
  2460. serialNumber: '401004Table1Engineer',
  2461. tableId: "401004Table1",
  2462. tableName: "项目物料表",
  2463. columnProp: 'engineerName',
  2464. headerAlign: "center",
  2465. align: "left",
  2466. columnLabel: 'Engineer',
  2467. columnHidden: false,
  2468. columnImage: false,
  2469. columnSortable: false,
  2470. sortLv: 0,
  2471. status: true,
  2472. fixed: '',
  2473. columnWidth: 120,
  2474. },
  2475. {
  2476. userId: this.$store.state.user.name,
  2477. functionId: 401004,
  2478. serialNumber: '401004Table1CQualityEngineer1',
  2479. tableId: "401004Table1",
  2480. tableName: "项目物料表",
  2481. columnProp: 'cQualityEngineer1Name',
  2482. headerAlign: "center",
  2483. align: "left",
  2484. columnLabel: 'IPQC-Lam/Pri/Etch/Slit',
  2485. columnHidden: false,
  2486. columnImage: false,
  2487. columnSortable: false,
  2488. sortLv: 0,
  2489. status: true,
  2490. fixed: '',
  2491. columnWidth: 170,
  2492. },
  2493. {
  2494. userId: this.$store.state.user.name,
  2495. functionId: 401004,
  2496. serialNumber: '401004Table1CQualityEngineer2',
  2497. tableId: "401004Table1",
  2498. tableName: "项目物料表",
  2499. columnProp: 'cQualityEngineer2Name',
  2500. headerAlign: "center",
  2501. align: "left",
  2502. columnLabel: 'IPQC-Converting',
  2503. columnHidden: false,
  2504. columnImage: false,
  2505. columnSortable: false,
  2506. sortLv: 0,
  2507. status: true,
  2508. fixed: '',
  2509. columnWidth: 150,
  2510. },
  2511. {
  2512. userId: this.$store.state.user.name,
  2513. functionId: 401004,
  2514. serialNumber: '401004Table1CQualityEngineer3',
  2515. tableId: "401004Table1",
  2516. tableName: "项目物料表",
  2517. columnProp: 'cQualityEngineer3Name',
  2518. headerAlign: "center",
  2519. align: "left",
  2520. columnLabel: 'FQC1',
  2521. columnHidden: false,
  2522. columnImage: false,
  2523. columnSortable: false,
  2524. sortLv: 0,
  2525. status: true,
  2526. fixed: '',
  2527. columnWidth: 120,
  2528. },
  2529. {
  2530. userId: this.$store.state.user.name,
  2531. functionId: 401004,
  2532. serialNumber: '401004Table1CQualityEngineer5',
  2533. tableId: "401004Table1",
  2534. tableName: "项目信息物料表",
  2535. columnProp: 'cQualityEngineer5Name',
  2536. headerAlign: "center",
  2537. align: "left",
  2538. columnLabel: 'FQC2',
  2539. columnHidden: false,
  2540. columnImage: false,
  2541. columnSortable: false,
  2542. sortLv: 0,
  2543. status: true,
  2544. fixed: '',
  2545. columnWidth: 120,
  2546. },
  2547. {
  2548. userId: this.$store.state.user.name,
  2549. functionId: 401004,
  2550. serialNumber: '401004Table1CQualityEngineer6',
  2551. tableId: "401004Table1",
  2552. tableName: "项目信息物料表",
  2553. columnProp: 'cQualityEngineer6Name',
  2554. headerAlign: "center",
  2555. align: "left",
  2556. columnLabel: 'IQC',
  2557. columnHidden: false,
  2558. columnImage: false,
  2559. columnSortable: false,
  2560. sortLv: 0,
  2561. status: true,
  2562. fixed: '',
  2563. columnWidth: 120,
  2564. },
  2565. {
  2566. userId: this.$store.state.user.name,
  2567. functionId: 401004,
  2568. serialNumber: '401004Table1CManufactureEngineer',
  2569. tableId: "401004Table1",
  2570. tableName: "项目物料表",
  2571. columnProp: 'cManufactureEngineerName',
  2572. headerAlign: "center",
  2573. align: "left",
  2574. columnLabel: 'MFG',
  2575. columnHidden: false,
  2576. columnImage: false,
  2577. columnSortable: false,
  2578. sortLv: 0,
  2579. status: true,
  2580. fixed: '',
  2581. columnWidth: 120,
  2582. },
  2583. {
  2584. userId: this.$store.state.user.name,
  2585. functionId: 401004,
  2586. serialNumber: '401004Table1CQualityEngineer4',
  2587. tableId: "401004Table1",
  2588. tableName: "项目物料表",
  2589. columnProp: 'cQualityEngineer4Name',
  2590. headerAlign: "center",
  2591. align: "left",
  2592. columnLabel: 'SQE',
  2593. columnHidden: false,
  2594. columnImage: false,
  2595. columnSortable: false,
  2596. sortLv: 0,
  2597. status: true,
  2598. fixed: '',
  2599. columnWidth: 120,
  2600. },
  2601. {
  2602. userId: this.$store.state.user.name,
  2603. functionId: 401004,
  2604. serialNumber: '401004Table1DocEngineer',
  2605. tableId: "401004Table1",
  2606. tableName: "项目物料表",
  2607. columnProp: 'docEngineerName',
  2608. headerAlign: "center",
  2609. align: "left",
  2610. columnLabel: '文档工程师',
  2611. columnHidden: false,
  2612. columnImage: false,
  2613. columnSortable: false,
  2614. sortLv: 0,
  2615. status: true,
  2616. fixed: '',
  2617. columnWidth: 120,
  2618. },
  2619. {
  2620. userId: this.$store.state.user.name,
  2621. functionId: 401004,
  2622. serialNumber: '401004Table1DocEngineer2',
  2623. tableId: "401004Table1",
  2624. tableName: "项目物料表",
  2625. columnProp: 'docEngineer2Name',
  2626. headerAlign: "center",
  2627. align: "left",
  2628. columnLabel: '文档工程师2',
  2629. columnHidden: false,
  2630. columnImage: false,
  2631. columnSortable: false,
  2632. sortLv: 0,
  2633. status: true,
  2634. fixed: '',
  2635. columnWidth: 120,
  2636. },
  2637. {
  2638. userId: this.$store.state.user.name,
  2639. functionId: 401004,
  2640. serialNumber: '401004Table1IpqcHardTag',
  2641. tableId: "401004Table1",
  2642. tableName: "项目物料表",
  2643. columnProp: 'ipqcHardTagName',
  2644. headerAlign: "center",
  2645. align: "left",
  2646. columnLabel: 'IPQC-Hardtag',
  2647. columnHidden: false,
  2648. columnImage: false,
  2649. columnSortable: false,
  2650. sortLv: 0,
  2651. status: true,
  2652. fixed: '',
  2653. columnWidth: 120,
  2654. },
  2655. {
  2656. userId: this.$store.state.user.name,
  2657. functionId: 401004,
  2658. serialNumber: '401004Table1CQualityEngineer7',
  2659. tableId: "401004Table1",
  2660. tableName: "项目物料表",
  2661. columnProp: 'cQualityEngineer7Name',
  2662. headerAlign: "center",
  2663. align: "left",
  2664. columnLabel: '前道工程师',
  2665. columnHidden: false,
  2666. columnImage: false,
  2667. columnSortable: false,
  2668. sortLv: 0,
  2669. status: true,
  2670. fixed: '',
  2671. columnWidth: 120,
  2672. },
  2673. {
  2674. userId: this.$store.state.user.name,
  2675. functionId: 401004,
  2676. serialNumber: '401004Table1Status',
  2677. tableId: "401004Table1",
  2678. tableName: "项目物料表",
  2679. columnProp: 'status',
  2680. headerAlign: "center",
  2681. align: "left",
  2682. columnLabel: '项目状态' ,
  2683. columnHidden: false,
  2684. columnImage: false,
  2685. columnSortable: false,
  2686. sortLv: 0,
  2687. status: true,
  2688. fixed: '',
  2689. columnWidth: 100,
  2690. },
  2691. {
  2692. userId: this.$store.state.user.name,
  2693. functionId: 401004,
  2694. serialNumber: '401004Table2PartType',
  2695. tableId: "401004Table2",
  2696. tableName: "项目信息物料表",
  2697. columnProp: 'partType',
  2698. headerAlign: "center",
  2699. align: "center",
  2700. columnLabel: '料号状态' ,
  2701. columnHidden: false,
  2702. columnImage: false,
  2703. columnSortable: false,
  2704. sortLv: 0,
  2705. status: true,
  2706. fixed: '',
  2707. columnWidth: 100,
  2708. },
  2709. {
  2710. userId: this.$store.state.user.name,
  2711. functionId: 401004,
  2712. serialNumber: '401004Table1DryWetType',
  2713. tableId: "401004Table1",
  2714. tableName: "项目物料表",
  2715. columnProp: 'dryWetType',
  2716. headerAlign: "center",
  2717. align: "center",
  2718. columnLabel: '分类',
  2719. columnHidden: false,
  2720. columnImage: false,
  2721. columnSortable: false,
  2722. sortLv: 0,
  2723. status: true,
  2724. fixed: '',
  2725. columnWidth: 80,
  2726. },
  2727. {
  2728. userId: this.$store.state.user.name,
  2729. functionId: 401004,
  2730. serialNumber: '401004Table1NeedDate',
  2731. tableId: "401004Table1",
  2732. tableName: "项目物料表",
  2733. columnProp: 'needDate',
  2734. headerAlign: "center",
  2735. align: "center",
  2736. columnLabel: '预计完成日期',
  2737. columnHidden: false,
  2738. columnImage: false,
  2739. columnSortable: false,
  2740. sortLv: 0,
  2741. status: true,
  2742. fixed: '',
  2743. columnWidth: 120,
  2744. },
  2745. {
  2746. userId: this.$store.state.user.name,
  2747. functionId: 401004,
  2748. serialNumber: '401004Table1closeDate',
  2749. tableId: "401004Table1",
  2750. tableName: "项目物料表",
  2751. columnProp: 'closeDate',
  2752. headerAlign: "center",
  2753. align: "left",
  2754. columnLabel: '转量产日期',
  2755. columnHidden: false,
  2756. columnImage: false,
  2757. columnSortable: false,
  2758. sortLv: 0,
  2759. status: true,
  2760. fixed: '',
  2761. columnWidth: 120,
  2762. },
  2763. {
  2764. userId: this.$store.state.user.name,
  2765. functionId: 401004,
  2766. serialNumber: '401004Table1FinalPartNo',
  2767. tableId: "401004Table1",
  2768. tableName: "项目物料表",
  2769. columnProp: 'finalPartNo',
  2770. headerAlign: "center",
  2771. align: "left",
  2772. columnLabel: 'ERP正式料号',
  2773. columnHidden: false,
  2774. columnImage: false,
  2775. columnSortable: false,
  2776. sortLv: 0,
  2777. status: true,
  2778. fixed: '',
  2779. columnWidth: 120,
  2780. },
  2781. {
  2782. userId: this.$store.state.user.name,
  2783. functionId: 401004,
  2784. serialNumber: '401004Table1Remark',
  2785. tableId: "401004Table1",
  2786. tableName: "项目物料表",
  2787. columnProp: 'remark',
  2788. headerAlign: "center",
  2789. align: "left",
  2790. columnLabel: '备注',
  2791. columnHidden: false,
  2792. columnImage: false,
  2793. columnSortable: false,
  2794. sortLv: 0,
  2795. status: true,
  2796. fixed: '',
  2797. columnWidth: 160,
  2798. },
  2799. {
  2800. userId: this.$store.state.user.name,
  2801. functionId: 401004,
  2802. serialNumber: '401004Table1CreateDate',
  2803. tableId: "401004Table1",
  2804. tableName: "项目物料表",
  2805. columnProp: 'createDate',
  2806. headerAlign: "center",
  2807. align: "center",
  2808. columnLabel: '创建时间',
  2809. columnHidden: false,
  2810. columnImage: false,
  2811. columnSortable: false,
  2812. sortLv: 0,
  2813. status: true,
  2814. fixed: '',
  2815. columnWidth: 130,
  2816. },
  2817. {
  2818. userId: this.$store.state.user.name,
  2819. functionId: 401004,
  2820. serialNumber: '401004Table1CreateBy',
  2821. tableId: "401004Table1",
  2822. tableName: "项目物料表",
  2823. columnProp: 'createBy',
  2824. headerAlign: "center",
  2825. align: "left",
  2826. columnLabel: '创建人',
  2827. columnHidden: false,
  2828. columnImage: false,
  2829. columnSortable: false,
  2830. sortLv: 0,
  2831. status: true,
  2832. fixed: '',
  2833. columnWidth: 120,
  2834. },
  2835. {
  2836. userId: this.$store.state.user.name,
  2837. functionId: 401004,
  2838. serialNumber: '401004Table1UpdateDate',
  2839. tableId: "401004Table1",
  2840. tableName: "项目物料表",
  2841. columnProp: 'updateDate',
  2842. headerAlign: "center",
  2843. align: "center",
  2844. columnLabel: '更新时间',
  2845. columnHidden: false,
  2846. columnImage: false,
  2847. columnSortable: false,
  2848. sortLv: 0,
  2849. status: true,
  2850. fixed: '',
  2851. columnWidth: 130,
  2852. },
  2853. {
  2854. userId: this.$store.state.user.name,
  2855. functionId: 401004,
  2856. serialNumber: '401004Table1UpdateBy',
  2857. tableId: "401004Table1",
  2858. tableName: "项目物料表",
  2859. columnProp: 'updateBy',
  2860. headerAlign: "center",
  2861. align: "left",
  2862. columnLabel: '更新人',
  2863. columnHidden: false,
  2864. columnImage: false,
  2865. columnSortable: false,
  2866. sortLv: 0,
  2867. status: true,
  2868. fixed: '',
  2869. columnWidth: 120,
  2870. },
  2871. ],
  2872. columnFileContentArray: [
  2873. {
  2874. userId: this.$store.state.user.name,
  2875. functionId: 401004,
  2876. serialNumber: '401004Table1FileName',
  2877. tableId: "401004Table1",
  2878. tableName: "打样文档表",
  2879. columnProp: 'fileName',
  2880. headerAlign: "center",
  2881. align: "left",
  2882. columnLabel: '文件名',
  2883. columnHidden: false,
  2884. columnImage: false,
  2885. columnSortable: false,
  2886. sortLv: 0,
  2887. status: true,
  2888. fixed: '',
  2889. columnWidth: 180,
  2890. },
  2891. //是否上传
  2892. {
  2893. userId: this.$store.state.user.name,
  2894. functionId: 401004,
  2895. serialNumber: '401004Table1UploadedFlag',
  2896. tableId: "401004Table1",
  2897. tableName: "打样文档表",
  2898. columnProp: 'uploadedFlag',
  2899. headerAlign: "center",
  2900. align: "center",
  2901. columnLabel: '是否上传',
  2902. columnHidden: false,
  2903. columnImage: false,
  2904. columnSortable: false,
  2905. sortLv: 0,
  2906. status: true,
  2907. fixed: '',
  2908. columnWidth: 70,
  2909. },
  2910. {
  2911. userId: this.$store.state.user.name,
  2912. functionId: 401004,
  2913. serialNumber: '401004Table1ProjectLeader',
  2914. tableId: "401004Table1",
  2915. tableName: "打样文档表",
  2916. columnProp: 'projectLeader',
  2917. headerAlign: "center",
  2918. align: "left",
  2919. columnLabel: '文档负责人',
  2920. columnHidden: false,
  2921. columnImage: false,
  2922. columnSortable: false,
  2923. sortLv: 0,
  2924. status: true,
  2925. fixed: '',
  2926. columnWidth: 70,
  2927. },
  2928. {
  2929. userId: this.$store.state.user.name,
  2930. functionId: 401004,
  2931. serialNumber: '401004Table1Conclusion',
  2932. tableId: "401004Table1",
  2933. tableName: "打样文档表",
  2934. columnProp: 'conclusion',
  2935. headerAlign: "center",
  2936. align: "center",
  2937. columnLabel: '结论',
  2938. columnHidden: false,
  2939. columnImage: false,
  2940. columnSortable: false,
  2941. sortLv: 0,
  2942. status: true,
  2943. fixed: '',
  2944. columnWidth: 70,
  2945. },
  2946. {
  2947. userId: this.$store.state.user.name,
  2948. functionId: 401004,
  2949. serialNumber: '401004Table1DocumentGroupDesc',
  2950. tableId: "401004Table1",
  2951. tableName: "打样文档表",
  2952. columnProp: 'documentGroupDesc',
  2953. headerAlign: "center",
  2954. align: "center",
  2955. columnLabel: '文档种类',
  2956. columnHidden: false,
  2957. columnImage: false,
  2958. columnSortable: false,
  2959. sortLv: 0,
  2960. status: true,
  2961. fixed: '',
  2962. columnWidth: 70,
  2963. },
  2964. {
  2965. userId: this.$store.state.user.name,
  2966. functionId: 103001,
  2967. serialNumber: '103001Table1CreateDate',
  2968. tableId: '103001Table1',
  2969. tableName: '打样文档表',
  2970. columnProp: 'createDate',
  2971. headerAlign: 'center',
  2972. align: 'center',
  2973. columnLabel: '上传时间',
  2974. columnHidden: false,
  2975. columnImage: false,
  2976. columnSortable: false,
  2977. sortLv: 0,
  2978. status: true,
  2979. fixed: '',
  2980. columnWidth: 130
  2981. },
  2982. {
  2983. userId: this.$store.state.user.name,
  2984. functionId: 103001,
  2985. serialNumber: '103001Table1CreateBy',
  2986. tableId: '103001Table1',
  2987. tableName: '打样文档表',
  2988. columnProp: 'createdBy',
  2989. headerAlign: 'center',
  2990. align: 'left',
  2991. columnLabel: '上传人',
  2992. columnHidden: false,
  2993. columnImage: false,
  2994. columnSortable: false,
  2995. sortLv: 0,
  2996. status: true,
  2997. fixed: '',
  2998. columnWidth: 80
  2999. }
  3000. ],
  3001. columnProjectDocumentManifestDefinitionList:[
  3002. {
  3003. userId: this.$store.state.user.name,
  3004. functionId: 401004,
  3005. serialNumber: '401004Table1DocumentTypeId',
  3006. tableId: "401004Table1",
  3007. tableName: "BU文档清单表",
  3008. columnProp: 'documentTypeId',
  3009. headerAlign: "center",
  3010. align: "center",
  3011. columnLabel: '文档类型ID',
  3012. columnHidden: false,
  3013. columnImage: false,
  3014. columnSortable: false,
  3015. sortLv: 0,
  3016. status: true,
  3017. fixed: '',
  3018. columnWidth: 120,
  3019. },
  3020. {
  3021. userId: this.$store.state.user.name,
  3022. functionId: 401004,
  3023. serialNumber: '401004Table1DocumentType',
  3024. tableId: "401004Table1",
  3025. tableName: "BU文档清单表",
  3026. columnProp: 'documentType',
  3027. headerAlign: "center",
  3028. align: "left",
  3029. columnLabel: '文档类型',
  3030. columnHidden: false,
  3031. columnImage: false,
  3032. columnSortable: false,
  3033. sortLv: 0,
  3034. status: true,
  3035. fixed: '',
  3036. columnWidth: 120,
  3037. },
  3038. {
  3039. userId: this.$store.state.user.name,
  3040. functionId: 401004,
  3041. serialNumber: '401004Table1ResponsibleDepartment',
  3042. tableId: "401004Table1",
  3043. tableName: "BU文档清单表",
  3044. columnProp: 'responsibleDepartment',
  3045. headerAlign: "center",
  3046. align: "left",
  3047. columnLabel: '责任部门',
  3048. columnHidden: false,
  3049. columnImage: false,
  3050. columnSortable: false,
  3051. sortLv: 0,
  3052. status: true,
  3053. fixed: '',
  3054. columnWidth: 120,
  3055. },
  3056. {
  3057. userId: this.$store.state.user.name,
  3058. functionId: 401004,
  3059. serialNumber: '401004Table1EstimatedCompletionDays',
  3060. tableId: "401004Table1",
  3061. tableName: "BU文档清单表",
  3062. columnProp: 'estimatedCompletionDays',
  3063. headerAlign: "center",
  3064. align: "right",
  3065. columnLabel: '预计完成天数',
  3066. columnHidden: false,
  3067. columnImage: false,
  3068. columnSortable: false,
  3069. sortLv: 0,
  3070. status: true,
  3071. fixed: '',
  3072. columnWidth: 80,
  3073. },
  3074. ],
  3075. columnProjectAllDocumentList: [
  3076. {
  3077. userId: this.$store.state.user.name,
  3078. functionId: 401004,
  3079. serialNumber: '401004Table1ProofingId',
  3080. tableId: "401004Table1",
  3081. tableName: "BU文档清单表",
  3082. columnProp: 'proofingNo',
  3083. headerAlign: "center",
  3084. align: "left",
  3085. columnLabel: '打样单号',
  3086. columnHidden: false,
  3087. columnImage: false,
  3088. columnSortable: false,
  3089. sortLv: 0,
  3090. status: true,
  3091. fixed: '',
  3092. columnWidth: 80,
  3093. },
  3094. {
  3095. userId: this.$store.state.user.name,
  3096. functionId: 401004,
  3097. serialNumber: '401004Table1ProjectPhase',
  3098. tableId: "401004Table1",
  3099. tableName: "BU文档清单表",
  3100. columnProp: 'projectPhase',
  3101. headerAlign: "center",
  3102. align: "center",
  3103. columnLabel: '项目阶段',
  3104. columnHidden: false,
  3105. columnImage: false,
  3106. columnSortable: false,
  3107. sortLv: 0,
  3108. status: true,
  3109. fixed: '',
  3110. columnWidth: 120,
  3111. },
  3112. {
  3113. userId: this.$store.state.user.name,
  3114. functionId: 401004,
  3115. serialNumber: '401004Table1FileName',
  3116. tableId: "401004Table1",
  3117. tableName: "打样文档表",
  3118. columnProp: 'fileName',
  3119. headerAlign: "center",
  3120. align: "left",
  3121. columnLabel: '文件名',
  3122. columnHidden: false,
  3123. columnImage: false,
  3124. columnSortable: false,
  3125. sortLv: 0,
  3126. status: true,
  3127. fixed: '',
  3128. columnWidth: 180,
  3129. },
  3130. {
  3131. userId: this.$store.state.user.name,
  3132. functionId: 401004,
  3133. serialNumber: '401004Table1UploadedFlag',
  3134. tableId: "401004Table1",
  3135. tableName: "打样文档表",
  3136. columnProp: 'uploadedFlag',
  3137. headerAlign: "center",
  3138. align: "center",
  3139. columnLabel: '是否上传',
  3140. columnHidden: false,
  3141. columnImage: false,
  3142. columnSortable: false,
  3143. sortLv: 0,
  3144. status: true,
  3145. fixed: '',
  3146. columnWidth: 70,
  3147. },
  3148. {
  3149. userId: this.$store.state.user.name,
  3150. functionId: 401004,
  3151. serialNumber: '401004Table1ProjectLeader',
  3152. tableId: "401004Table1",
  3153. tableName: "打样文档表",
  3154. columnProp: 'projectLeader',
  3155. headerAlign: "center",
  3156. align: "left",
  3157. columnLabel: '文档负责人',
  3158. columnHidden: false,
  3159. columnImage: false,
  3160. columnSortable: false,
  3161. sortLv: 0,
  3162. status: true,
  3163. fixed: '',
  3164. columnWidth: 70,
  3165. },
  3166. {
  3167. userId: this.$store.state.user.name,
  3168. functionId: 401004,
  3169. serialNumber: '401004Table1Conclusion',
  3170. tableId: "401004Table1",
  3171. tableName: "打样文档表",
  3172. columnProp: 'conclusion',
  3173. headerAlign: "center",
  3174. align: "center",
  3175. columnLabel: '结论',
  3176. columnHidden: false,
  3177. columnImage: false,
  3178. columnSortable: false,
  3179. sortLv: 0,
  3180. status: true,
  3181. fixed: '',
  3182. columnWidth: 70,
  3183. },
  3184. {
  3185. userId: this.$store.state.user.name,
  3186. functionId: 401004,
  3187. serialNumber: '401004Table1DocumentGroupDesc',
  3188. tableId: "401004Table1",
  3189. tableName: "打样文档表",
  3190. columnProp: 'documentGroupDesc',
  3191. headerAlign: "center",
  3192. align: "center",
  3193. columnLabel: '文档种类',
  3194. columnHidden: false,
  3195. columnImage: false,
  3196. columnSortable: false,
  3197. sortLv: 0,
  3198. status: true,
  3199. fixed: '',
  3200. columnWidth: 70,
  3201. },
  3202. {
  3203. userId: this.$store.state.user.name,
  3204. functionId: 103001,
  3205. serialNumber: '103001Table1CreateDate',
  3206. tableId: '103001Table1',
  3207. tableName: '打样文档表',
  3208. columnProp: 'createDate',
  3209. headerAlign: 'center',
  3210. align: 'center',
  3211. columnLabel: '上传时间',
  3212. columnHidden: false,
  3213. columnImage: false,
  3214. columnSortable: false,
  3215. sortLv: 0,
  3216. status: true,
  3217. fixed: '',
  3218. columnWidth: 130
  3219. },
  3220. {
  3221. userId: this.$store.state.user.name,
  3222. functionId: 103001,
  3223. serialNumber: '103001Table1CreateBy',
  3224. tableId: '103001Table1',
  3225. tableName: '打样文档表',
  3226. columnProp: 'createdBy',
  3227. headerAlign: 'center',
  3228. align: 'left',
  3229. columnLabel: '上传人',
  3230. columnHidden: false,
  3231. columnImage: false,
  3232. columnSortable: false,
  3233. sortLv: 0,
  3234. status: true,
  3235. fixed: '',
  3236. columnWidth: 80
  3237. }
  3238. ],
  3239. columnProjectBomList: [
  3240. {
  3241. userId: this.$store.state.user.name,
  3242. functionId: 401005,
  3243. serialNumber: '401005Table1LevelCode',
  3244. tableId: "401005Table1",
  3245. tableName: "项目物料表",
  3246. columnProp: 'levelCode',
  3247. headerAlign: "center",
  3248. align: "left",
  3249. columnLabel: 'BOM层级',
  3250. columnHidden: false,
  3251. columnImage: false,
  3252. columnSortable: false,
  3253. sortLv: 0,
  3254. status: true,
  3255. fixed: '',
  3256. columnWidth: 100,
  3257. },
  3258. {
  3259. userId: this.$store.state.user.name,
  3260. functionId: 401005,
  3261. serialNumber: '401005Table1PartNo2',
  3262. tableId: "401005Table1",
  3263. tableName: "项目物料BOM表",
  3264. columnProp: 'partNo2',
  3265. headerAlign: "center",
  3266. align: "left",
  3267. columnLabel: '物料编码',
  3268. columnHidden: false,
  3269. columnImage: false,
  3270. columnSortable: false,
  3271. sortLv: 0,
  3272. status: true,
  3273. fixed: '',
  3274. columnWidth: 145,
  3275. },
  3276. {
  3277. userId: this.$store.state.user.name,
  3278. functionId: 401005,
  3279. serialNumber: '401005Table1PartDesc2',
  3280. tableId: "401005Table1",
  3281. tableName: "项目物料BOM表",
  3282. columnProp: 'partDesc2',
  3283. headerAlign: "center",
  3284. align: "left",
  3285. columnLabel: '物料描述',
  3286. columnHidden: false,
  3287. columnImage: false,
  3288. columnSortable: false,
  3289. sortLv: 0,
  3290. status: true,
  3291. fixed: '',
  3292. columnWidth: 500,
  3293. },
  3294. {
  3295. userId: this.$store.state.user.name,
  3296. functionId: 401005,
  3297. serialNumber: '401005Table1QtyAssembly',
  3298. tableId: "401005Table1",
  3299. tableName: "项目物料BOM表",
  3300. columnProp: 'qtyAssembly',
  3301. headerAlign: "center",
  3302. align: "right",
  3303. columnLabel: '用量',
  3304. columnHidden: false,
  3305. columnImage: false,
  3306. columnSortable: false,
  3307. sortLv: 0,
  3308. status: true,
  3309. fixed: '',
  3310. columnWidth: 150,
  3311. },
  3312. {
  3313. userId: this.$store.state.user.name,
  3314. functionId: 401005,
  3315. serialNumber: '401005Table1ScrapFactor',
  3316. tableId: "401005Table1",
  3317. tableName: "项目物料表",
  3318. columnProp: 'scrapFactor',
  3319. headerAlign: "center",
  3320. align: "right",
  3321. columnLabel: '损耗',
  3322. columnHidden: false,
  3323. columnImage: false,
  3324. columnSortable: false,
  3325. sortLv: 0,
  3326. status: true,
  3327. fixed: '',
  3328. columnWidth: 150,
  3329. },
  3330. {
  3331. userId: this.$store.state.user.name,
  3332. functionId: 401005,
  3333. serialNumber: '401005Table1EffectiveDate',
  3334. tableId: "401005Table1",
  3335. tableName: "项目物料表",
  3336. columnProp: 'effectiveDate',
  3337. headerAlign: "center",
  3338. align: "center",
  3339. columnLabel: '生效日期',
  3340. columnHidden: false,
  3341. columnImage: false,
  3342. columnSortable: false,
  3343. sortLv: 0,
  3344. status: true,
  3345. fixed: '',
  3346. columnWidth: 120,
  3347. },
  3348. ],
  3349. columnProjectRoutingList: [
  3350. {
  3351. userId: this.$store.state.user.name,
  3352. functionId: 401005,
  3353. serialNumber: '401005Table1PartNo2',
  3354. tableId: "401005Table1",
  3355. tableName: "项目物料BOM表",
  3356. columnProp: 'partNo2',
  3357. headerAlign: "center",
  3358. align: "left",
  3359. columnLabel: '物料编码',
  3360. columnHidden: false,
  3361. columnImage: false,
  3362. columnSortable: false,
  3363. sortLv: 0,
  3364. status: true,
  3365. fixed: '',
  3366. columnWidth: 145,
  3367. },
  3368. {
  3369. userId: this.$store.state.user.name,
  3370. functionId: 401005,
  3371. serialNumber: '401005Table1WorkCenterNo',
  3372. tableId: "401005Table1",
  3373. tableName: "项目物料BOM表",
  3374. columnProp: 'workCenterNo',
  3375. headerAlign: "center",
  3376. align: "left",
  3377. columnLabel: '加工中心',
  3378. columnHidden: false,
  3379. columnImage: false,
  3380. columnSortable: false,
  3381. sortLv: 0,
  3382. status: true,
  3383. fixed: '',
  3384. columnWidth: 150,
  3385. },
  3386. {
  3387. userId: this.$store.state.user.name,
  3388. functionId: 401005,
  3389. serialNumber: '401005Table1ItemNo',
  3390. tableId: "401005Table1",
  3391. tableName: "项目物料表",
  3392. columnProp: 'itemNo',
  3393. headerAlign: "center",
  3394. align: "center",
  3395. columnLabel: '工序行号',
  3396. columnHidden: false,
  3397. columnImage: false,
  3398. columnSortable: false,
  3399. sortLv: 0,
  3400. status: true,
  3401. fixed: '',
  3402. columnWidth: 150,
  3403. },
  3404. {
  3405. userId: this.$store.state.user.name,
  3406. functionId: 401005,
  3407. serialNumber: '401005Table1RoutingItemNo',
  3408. tableId: "401005Table1",
  3409. tableName: "项目物料表",
  3410. columnProp: 'routingItemNo',
  3411. headerAlign: "center",
  3412. align: "left",
  3413. columnLabel: '标准工序代号',
  3414. columnHidden: false,
  3415. columnImage: false,
  3416. columnSortable: false,
  3417. sortLv: 0,
  3418. status: true,
  3419. fixed: '',
  3420. columnWidth: 150,
  3421. },
  3422. {
  3423. userId: this.$store.state.user.name,
  3424. functionId: 401005,
  3425. serialNumber: '401005Table1ItemDesc',
  3426. tableId: "401005Table1",
  3427. tableName: "项目物料表",
  3428. columnProp: 'itemDesc',
  3429. headerAlign: "center",
  3430. align: "left",
  3431. columnLabel: '工序名称',
  3432. columnHidden: false,
  3433. columnImage: false,
  3434. columnSortable: false,
  3435. sortLv: 0,
  3436. status: true,
  3437. fixed: '',
  3438. columnWidth: 150,
  3439. },
  3440. {
  3441. userId: this.$store.state.user.name,
  3442. functionId: 401005,
  3443. serialNumber: '401005Table1LaborTime',
  3444. tableId: "401005Table1",
  3445. tableName: "项目物料表",
  3446. columnProp: 'laborTime',
  3447. headerAlign: "center",
  3448. align: "right",
  3449. columnLabel: '工时',
  3450. columnHidden: false,
  3451. columnImage: false,
  3452. columnSortable: false,
  3453. sortLv: 0,
  3454. status: true,
  3455. fixed: '',
  3456. columnWidth: 150,
  3457. },
  3458. {
  3459. userId: this.$store.state.user.name,
  3460. functionId: 401005,
  3461. serialNumber: '401005Table1LaborResources',
  3462. tableId: "401005Table1",
  3463. tableName: "项目物料表",
  3464. columnProp: 'laborResources',
  3465. headerAlign: "center",
  3466. align: "right",
  3467. columnLabel: '人数',
  3468. columnHidden: false,
  3469. columnImage: false,
  3470. columnSortable: false,
  3471. sortLv: 0,
  3472. status: true,
  3473. fixed: '',
  3474. columnWidth: 150,
  3475. },
  3476. {
  3477. userId: this.$store.state.user.name,
  3478. functionId: 401005,
  3479. serialNumber: '401005Table1MachRunFactor',
  3480. tableId: "401005Table1",
  3481. tableName: "项目物料表",
  3482. columnProp: 'machRunFactor',
  3483. headerAlign: "center",
  3484. align: "right",
  3485. columnLabel: '单位工时',
  3486. columnHidden: false,
  3487. columnImage: false,
  3488. columnSortable: false,
  3489. sortLv: 0,
  3490. status: true,
  3491. fixed: '',
  3492. columnWidth: 150,
  3493. },
  3494. {
  3495. userId: this.$store.state.user.name,
  3496. functionId: 401005,
  3497. serialNumber: '401005Table1FactorUnit',
  3498. tableId: "401005Table1",
  3499. tableName: "项目物料表",
  3500. columnProp: 'factorUnit',
  3501. headerAlign: "center",
  3502. align: "center",
  3503. columnLabel: '单位',
  3504. columnHidden: false,
  3505. columnImage: false,
  3506. columnSortable: false,
  3507. sortLv: 0,
  3508. status: true,
  3509. fixed: '',
  3510. columnWidth: 150,
  3511. },
  3512. ],
  3513. // 与项目打样记录页表格列保持一致,详情里只按当前项目料号展示,不走列配置收藏。
  3514. columnProjectProofRecordList: [
  3515. { columnProp: 'buDesc', headerAlign: 'center', align: 'center', columnLabel: 'BU', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 100 },
  3516. { columnProp: 'projectNo', headerAlign: 'center', align: 'center', columnLabel: '项目编码', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 100 },
  3517. { columnProp: 'projectDesc', headerAlign: 'center', align: 'center', columnLabel: '项目名称', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 100 },
  3518. { columnProp: 'testPartNo', headerAlign: 'center', align: 'center', columnLabel: '项目料号', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 100 },
  3519. { columnProp: 'partDesc', headerAlign: 'center', align: 'center', columnLabel: '料号描述', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 100 },
  3520. { columnProp: 'customerNo', headerAlign: 'center', align: 'left', columnLabel: '客户编码', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 100 },
  3521. { columnProp: 'customerDesc', headerAlign: 'center', align: 'left', columnLabel: '客户名称', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 150 },
  3522. { columnProp: 'buildDate', headerAlign: 'center', align: 'center', columnLabel: '立项日期', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 120 },
  3523. { columnProp: 'priority', headerAlign: 'center', align: 'left', columnLabel: '优先级', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 80 },
  3524. { columnProp: 'cProjectRegion', headerAlign: 'center', align: 'left', columnLabel: '区域', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 120 },
  3525. { columnProp: 'projectManagerName', headerAlign: 'center', align: 'left', columnLabel: 'PM/Sales', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 120 },
  3526. { columnProp: 'projectOwnerName', headerAlign: 'center', align: 'left', columnLabel: 'PjM', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 120 },
  3527. { columnProp: 'engineerName', headerAlign: 'center', align: 'left', columnLabel: 'Engineer', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 120 },
  3528. { columnProp: 'cQualityEngineer1Name', headerAlign: 'center', align: 'left', columnLabel: 'IPQC-Lam/Pri/Etch/Slit', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 170 },
  3529. { columnProp: 'cQualityEngineer2Name', headerAlign: 'center', align: 'left', columnLabel: 'IPQC-Converting', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 150 },
  3530. { columnProp: 'cQualityEngineer3Name', headerAlign: 'center', align: 'left', columnLabel: 'FQC1', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 120 },
  3531. { columnProp: 'cQualityEngineer5Name', headerAlign: 'center', align: 'left', columnLabel: 'FQC2', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 120 },
  3532. { columnProp: 'cQualityEngineer6Name', headerAlign: 'center', align: 'left', columnLabel: 'IQC', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 120 },
  3533. { columnProp: 'cManufactureEngineerName', headerAlign: 'center', align: 'left', columnLabel: 'MFG', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 120 },
  3534. { columnProp: 'cQualityEngineer4Name', headerAlign: 'center', align: 'left', columnLabel: 'SQE', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 120 },
  3535. { columnProp: 'docEngineerName', headerAlign: 'center', align: 'left', columnLabel: '文档工程师', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 120 },
  3536. { columnProp: 'docEngineer2Name', headerAlign: 'center', align: 'left', columnLabel: '文档工程师2', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 120 },
  3537. { columnProp: 'ipqcHardTagName', headerAlign: 'center', align: 'left', columnLabel: 'IPQC-Hardtag', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 120 },
  3538. { columnProp: 'cQualityEngineer7Name', headerAlign: 'center', align: 'left', columnLabel: '前道工程师', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 120 },
  3539. { columnProp: 'status', headerAlign: 'center', align: 'left', columnLabel: '物料状态', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 100 },
  3540. { columnProp: 'proofingStatus', headerAlign: 'center', align: 'left', columnLabel: '打样状态', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 100 },
  3541. { columnProp: 'proofingResultStatus', headerAlign: 'center', align: 'left', columnLabel: '打样结论', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 100 },
  3542. { columnProp: 'needDate', headerAlign: 'center', align: 'center', columnLabel: '项目物料预计完成日期', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 130 },
  3543. { columnProp: 'closeDate', headerAlign: 'center', align: 'center', columnLabel: '转量产日期', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 120 },
  3544. { columnProp: 'finalPartNo', headerAlign: 'center', align: 'left', columnLabel: 'ERP正式料号', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 120 },
  3545. { columnProp: 'planStartDate', headerAlign: 'center', align: 'center', columnLabel: '打样开始日期', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 90 },
  3546. { columnProp: 'proofingNo', headerAlign: 'center', align: 'center', columnLabel: '打样单号', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 80 },
  3547. { columnProp: 'proofingNumber', headerAlign: 'center', align: 'center', columnLabel: '数量', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 80 },
  3548. { columnProp: 'cProjectTypeDb', headerAlign: 'center', align: 'left', columnLabel: '项目分类', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 80 },
  3549. { columnProp: 'requiredDeliveryDate', headerAlign: 'center', align: 'center', columnLabel: '打样预计完成日期', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 120 },
  3550. { columnProp: 'actualityDeliveryDate', headerAlign: 'center', align: 'center', columnLabel: '实际完成日期', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 80 },
  3551. { columnProp: 'createDate', headerAlign: 'center', align: 'center', columnLabel: '打样单创建时间', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 130 },
  3552. { columnProp: 'createBy', headerAlign: 'center', align: 'center', columnLabel: '打样单创建人', columnHidden: false, columnSortable: false, fixed: '', columnWidth: 90 }
  3553. ],
  3554. levelList: [],
  3555. rules:{
  3556. projectNo:[
  3557. {
  3558. required: true,
  3559. message: ' ',
  3560. trigger: ['blur','change']
  3561. }
  3562. ],
  3563. projectDesc:[
  3564. {
  3565. required: true,
  3566. message: ' ',
  3567. trigger: ['blur','change']
  3568. }
  3569. ],
  3570. customerNo:[
  3571. {
  3572. required: true,
  3573. message: ' ',
  3574. trigger: ['blur','change']
  3575. }
  3576. ],
  3577. customerDesc:[
  3578. {
  3579. required: true,
  3580. message: ' ',
  3581. trigger: ['blur','change']
  3582. }
  3583. ],
  3584. testPartNo:[
  3585. {
  3586. required: true,
  3587. message: ' ',
  3588. trigger: ['blur','change']
  3589. }
  3590. ],
  3591. partDesc:[
  3592. {
  3593. required: true,
  3594. message: ' ',
  3595. trigger: ['blur','change']
  3596. }
  3597. ],
  3598. projectManager:[
  3599. {
  3600. required: true,
  3601. message: ' ',
  3602. trigger: ['blur','change']
  3603. }
  3604. ],
  3605. engineer:[
  3606. {
  3607. required: true,
  3608. message: ' ',
  3609. trigger: ['blur','change']
  3610. }
  3611. ],
  3612. projectOwner:[
  3613. {
  3614. required: true,
  3615. message: ' ',
  3616. trigger: ['blur','change']
  3617. }
  3618. ],
  3619. cProjectRegion:[
  3620. {
  3621. required: true,
  3622. message: ' ',
  3623. trigger: ['blur','change']
  3624. }
  3625. ],
  3626. cQualityEngineer1:[
  3627. {
  3628. required: true,
  3629. message: ' ',
  3630. trigger: ['blur','change']
  3631. }
  3632. ],
  3633. cQualityEngineer2:[
  3634. {
  3635. required: true,
  3636. message: ' ',
  3637. trigger: ['blur','change']
  3638. }
  3639. ],
  3640. cQualityEngineer3:[
  3641. {
  3642. required: true,
  3643. message: ' ',
  3644. trigger: ['blur','change']
  3645. }
  3646. ],
  3647. cQualityEngineer4:[
  3648. {
  3649. required: true,
  3650. message: ' ',
  3651. trigger: ['blur','change']
  3652. }
  3653. ],
  3654. cQualityEngineer5:[
  3655. {
  3656. required: true,
  3657. message: ' ',
  3658. trigger: ['blur','change']
  3659. }
  3660. ],
  3661. cQualityEngineer6:[
  3662. {
  3663. required: true,
  3664. message: ' ',
  3665. trigger: ['blur','change']
  3666. }
  3667. ],
  3668. cManufactureEngineer:[
  3669. {
  3670. required: true,
  3671. message: ' ',
  3672. trigger: ['blur','change']
  3673. }
  3674. ],
  3675. docEngineer:[
  3676. {
  3677. required: true,
  3678. message: ' ',
  3679. trigger: ['blur','change']
  3680. }
  3681. ],
  3682. docEngineerName:[
  3683. {
  3684. required: true,
  3685. message: ' ',
  3686. trigger: ['blur','change']
  3687. }
  3688. ],
  3689. projectManagerName:[
  3690. {
  3691. required: true,
  3692. message: ' ',
  3693. trigger: ['blur','change']
  3694. }
  3695. ],
  3696. engineerName:[
  3697. {
  3698. required: true,
  3699. message: ' ',
  3700. trigger: ['blur','change']
  3701. }
  3702. ],
  3703. cQualityEngineer1Name:[
  3704. {
  3705. required: true,
  3706. message: ' ',
  3707. trigger: ['blur','change']
  3708. }
  3709. ],
  3710. cQualityEngineer2Name:[
  3711. {
  3712. required: true,
  3713. message: ' ',
  3714. trigger: ['blur','change']
  3715. }
  3716. ],
  3717. cQualityEngineer3Name:[
  3718. {
  3719. required: true,
  3720. message: ' ',
  3721. trigger: ['blur','change']
  3722. }
  3723. ],
  3724. cQualityEngineer4Name:[
  3725. {
  3726. required: true,
  3727. message: ' ',
  3728. trigger: ['blur','change']
  3729. }
  3730. ],
  3731. cQualityEngineer5Name:[
  3732. {
  3733. required: true,
  3734. message: ' ',
  3735. trigger: ['blur','change']
  3736. }
  3737. ],
  3738. cQualityEngineer6Name:[
  3739. {
  3740. required: true,
  3741. message: ' ',
  3742. trigger: ['blur','change']
  3743. }
  3744. ],
  3745. cManufactureEngineerName:[
  3746. {
  3747. required: true,
  3748. message: ' ',
  3749. trigger: ['blur','change']
  3750. }
  3751. ],
  3752. projectCategoryType:[
  3753. {
  3754. required: true,
  3755. message: ' ',
  3756. trigger: ['blur','change']
  3757. }
  3758. ],
  3759. documentTypeIdType:[
  3760. {
  3761. required: true,
  3762. message: ' ',
  3763. trigger: ['blur','change']
  3764. }
  3765. ],
  3766. documentTypeType:[
  3767. {
  3768. required: true,
  3769. message: ' ',
  3770. trigger: ['blur','change']
  3771. }
  3772. ],
  3773. responsibleDepartmentType:[
  3774. {
  3775. required: true,
  3776. message: ' ',
  3777. trigger: ['blur','change']
  3778. }
  3779. ],
  3780. estimatedCompletionDaysType:[
  3781. {
  3782. required: true,
  3783. message: ' ',
  3784. trigger: ['blur','change']
  3785. }
  3786. ],
  3787. activeType:[
  3788. {
  3789. required: true,
  3790. message: ' ',
  3791. trigger: ['blur','change']
  3792. }
  3793. ],
  3794. bu:[
  3795. {
  3796. required: true,
  3797. message: ' ',
  3798. trigger: ['blur','change']
  3799. }
  3800. ],
  3801. finalPartNo:[
  3802. {
  3803. required: true,
  3804. message: ' ',
  3805. trigger: ['blur','change']
  3806. }
  3807. ],
  3808. needDate:[
  3809. {
  3810. required: true,
  3811. message: ' ',
  3812. trigger: ['blur','change']
  3813. }
  3814. ],
  3815. projectCreationDate:[
  3816. {
  3817. required: true,
  3818. message: ' ',
  3819. trigger: ['blur','change']
  3820. }
  3821. ],
  3822. wantedConfirmDate:[
  3823. {
  3824. required: true,
  3825. message: ' ',
  3826. trigger: ['blur','change']
  3827. }
  3828. ],
  3829. projectCategory: [
  3830. {
  3831. required: true,
  3832. message: ' ',
  3833. trigger: ['blur','change']
  3834. }
  3835. ],
  3836. projectPhase: [
  3837. {
  3838. required: true,
  3839. message: ' ',
  3840. trigger: ['blur','change']
  3841. }
  3842. ],
  3843. proofingNo: [
  3844. {
  3845. required: true,
  3846. message: ' ',
  3847. trigger: ['blur','change']
  3848. }
  3849. ],
  3850. planStartDate: [
  3851. {
  3852. required: true,
  3853. message: ' ',
  3854. trigger: ['blur','change']
  3855. }
  3856. ],
  3857. requiredDeliveryDate: [
  3858. {
  3859. required: true,
  3860. message: ' ',
  3861. trigger: ['blur','change']
  3862. }
  3863. ],
  3864. proofingNumber: [
  3865. {
  3866. required: true,
  3867. message: ' ',
  3868. trigger: ['blur','change']
  3869. }
  3870. ],
  3871. //请选择项目分类
  3872. cProjectTypeDb: [
  3873. {
  3874. required: true,
  3875. message: ' ',
  3876. trigger: ['blur','change']
  3877. }
  3878. ],
  3879. conclusion: [
  3880. {
  3881. required: true,
  3882. message: ' ',
  3883. trigger: ['blur','change']
  3884. }
  3885. ],
  3886. },
  3887. projectCategoryList: [],
  3888. cProjectRegionList: [
  3889. {
  3890. cProjectRegion: 'Global',
  3891. },
  3892. {
  3893. cProjectRegion: 'APAC',
  3894. },
  3895. {
  3896. cProjectRegion: 'CHINA',
  3897. },
  3898. {
  3899. cProjectRegion: 'EU',
  3900. },
  3901. {
  3902. cProjectRegion: 'US',
  3903. },
  3904. {
  3905. cProjectRegion: 'Mexico',
  3906. },
  3907. {
  3908. cProjectRegion: 'Other',
  3909. },
  3910. ],
  3911. priorityList: [
  3912. {
  3913. priority: 'Low',
  3914. },
  3915. {
  3916. priority: 'Risk',
  3917. },
  3918. ],
  3919. statusList: [
  3920. {
  3921. status: '草稿',
  3922. },
  3923. {
  3924. status: '进行中',
  3925. },
  3926. {
  3927. status: '已量产',
  3928. },
  3929. {
  3930. status: '正式量产',
  3931. }
  3932. ],
  3933. dryWetTypeList: ['Dry', 'Wet', '编码打印'],
  3934. userBuList: [],
  3935. menuId: this.$route.meta.menuId,
  3936. }
  3937. },
  3938. mounted () {
  3939. this.$nextTick(() => {
  3940. this.height = window.innerHeight - 558
  3941. })
  3942. EventBus.$on('updateProjectPartInfo', () => {
  3943. this.getDataList();
  3944. });
  3945. EventBus.$on('updateProjectPartDocumentInfo', () => {
  3946. this.getProofDocument()
  3947. });
  3948. EventBus.$on('updateThisProjectPartDocumentInfo', () => {
  3949. this.searchProjectAllDocumentList()
  3950. });
  3951. EventBus.$on('getProjectOtherDocument', () => {
  3952. this.getProjectOtherDocument()
  3953. });
  3954. },
  3955. created () {
  3956. // 按钮控制
  3957. this.getButtonAuthData()
  3958. // 获取用户的 site 和 bu
  3959. this.getSiteAndBuByUserName()
  3960. // 校验用户是否收藏
  3961. this.favoriteIsOk()
  3962. // 动态列
  3963. this.getTableUserColumn(this.$route.meta.menuId+'table1',1)
  3964. if (!this.authSearch) {
  3965. if (!this.agencyMatters){
  3966. this.applyProjectPartRouteQuery()
  3967. // 获取 URL 查询参数
  3968. const { projectPartId } = this.$route.query;
  3969. // 将查询参数赋值给 searchData
  3970. if (projectPartId){
  3971. this.searchData.projectPartId = projectPartId
  3972. }
  3973. // 获取数据列表
  3974. this.getDataList()
  3975. }
  3976. }
  3977. },
  3978. activated() {
  3979. if (this.applyProjectPartRouteQuery()) {
  3980. this.getDataList();
  3981. }
  3982. this.$store.commit("sift/commitSearchFunction",this.queryEamProjectPart)
  3983. },
  3984. methods: {
  3985. applyProjectPartRouteQuery () {
  3986. const query = this.$route.query || {}
  3987. const projectNo = query.projectNo === undefined || query.projectNo === null ? '' : String(query.projectNo).trim()
  3988. const testPartNo = query.testPartNo === undefined || query.testPartNo === null ? '' : String(query.testPartNo).trim()
  3989. if (!projectNo && !testPartNo) {
  3990. return false
  3991. }
  3992. const queryKey = 'projectNo=' + projectNo + '|testPartNo=' + testPartNo
  3993. // 同一组路由参数只自动查询一次,避免 keep-alive 切回页签时覆盖用户手工条件。
  3994. if (this.lastAppliedRouteQueryKey === queryKey) {
  3995. return false
  3996. }
  3997. this.lastAppliedRouteQueryKey = queryKey
  3998. // 同步到查询表单,便于用户看到当前自动查询条件;searchData1 供跳转查询使用。
  3999. this.searchData.projectNo = projectNo
  4000. this.searchData.testPartNo = testPartNo
  4001. this.searchData.projectDesc = ''
  4002. this.searchData.partDesc = ''
  4003. this.searchData.buDesc = ''
  4004. this.searchData.customerNo = ''
  4005. this.searchData.customerDesc = ''
  4006. this.searchData.projectCategory = ''
  4007. this.searchData.status = ''
  4008. this.searchData.projectManager = ''
  4009. this.searchData.projectOwner = ''
  4010. this.searchData.engineer = ''
  4011. this.searchData.startDate = ''
  4012. this.searchData.endDate = ''
  4013. this.searchData.cProjectRegion = ''
  4014. this.searchData1.projectNo = projectNo
  4015. this.searchData1.testPartNo = testPartNo
  4016. this.searchData1.buDesc = ''
  4017. this.searchData1.projectDesc = ''
  4018. this.searchData1.partDesc = ''
  4019. this.searchData1.customerNo = ''
  4020. this.searchData1.customerDesc = ''
  4021. this.agencyMatters = true
  4022. this.pageIndex = 1
  4023. this.searchData.page = 1
  4024. this.searchData1.page = 1
  4025. return true
  4026. },
  4027. resolveCurrentPartSite (site) {
  4028. if (site !== null && site !== undefined && site !== '') {
  4029. return site
  4030. }
  4031. if (this.proofingCurrentRow && this.proofingCurrentRow.site) {
  4032. return this.proofingCurrentRow.site
  4033. }
  4034. if (this.modalData && this.modalData.site) {
  4035. return this.modalData.site
  4036. }
  4037. return this.$store.state.user.site
  4038. },
  4039. splitUserDisplayName (userValue) {
  4040. if (userValue === null || userValue === undefined || userValue === '') {
  4041. return ''
  4042. }
  4043. return userValue.indexOf('-') > -1 ? userValue.split('-')[1] : userValue
  4044. },
  4045. refreshMainTableLayout () {
  4046. this.$nextTick(() => {
  4047. if (this.$refs.mainTable && this.$refs.mainTable.doLayout) {
  4048. this.$refs.mainTable.doLayout()
  4049. }
  4050. })
  4051. },
  4052. handleColumnResize(newWidth, oldWidth, column, event){
  4053. let inData= this.columnList.filter(item => item.columnProp === column.property)[0]
  4054. inData.columnWidth=newWidth
  4055. updateColumnSize(inData).then(({data}) => {
  4056. if (data.code === 0) {
  4057. console.log("栏位宽度保存成功!")
  4058. }
  4059. })
  4060. },
  4061. // 获取用户的bu
  4062. getSiteAndBuByUserName () {
  4063. let tempData = {
  4064. username: this.$store.state.user.name,
  4065. }
  4066. getSiteAndBuByUserName(tempData).then(({data}) => {
  4067. if (data.code === 0) {
  4068. this.userBuList = data.rows
  4069. this.loadSearchProjectCategory('')
  4070. } else {
  4071. this.userBuList = []
  4072. this.projectCategoryList = []
  4073. }
  4074. })
  4075. },
  4076. // 从 site_bu 中截取 bu_no
  4077. getBuNoByJoinedValue (buValue) {
  4078. if (!buValue) {
  4079. return ''
  4080. }
  4081. let buParts = buValue.split('_')
  4082. if (buParts.length >= 2) {
  4083. return buParts[1]
  4084. }
  4085. return buValue
  4086. },
  4087. // 根据 BU 描述获取 bu_no
  4088. getBuNoByBuDesc (buDesc) {
  4089. if (!buDesc) {
  4090. return ''
  4091. }
  4092. let matchBu = this.userBuList.find(item => item.buDesc === buDesc)
  4093. if (!matchBu) {
  4094. return ''
  4095. }
  4096. return this.getBuNoByJoinedValue(matchBu.buNo)
  4097. },
  4098. // 加载查询区项目分类
  4099. loadSearchProjectCategory (buNo) {
  4100. let inData = {
  4101. site: this.$store.state.user.site,
  4102. buNo: buNo || ''
  4103. }
  4104. getProjectCategoryByBu(inData).then(({data}) => {
  4105. if (data && data.code === 0) {
  4106. this.projectCategoryList = data.rows || []
  4107. } else {
  4108. this.projectCategoryList = []
  4109. }
  4110. }).catch(() => {
  4111. this.projectCategoryList = []
  4112. })
  4113. },
  4114. handleSearchCustomerVisibleChange (visible) {
  4115. if (!visible || this.searchCustomerOptionInitialized) {
  4116. return
  4117. }
  4118. this.querySearchCustomerOptions('')
  4119. },
  4120. handleSearchCustomerRemote (keyword) {
  4121. this.querySearchCustomerOptions(keyword)
  4122. },
  4123. querySearchCustomerOptions (keyword) {
  4124. const normalizedKeyword = keyword == null ? '' : String(keyword).trim()
  4125. const queryToken = this.searchCustomerQueryToken + 1
  4126. this.searchCustomerQueryToken = queryToken
  4127. this.searchCustomerOptionLoading = true
  4128. queryProjectPartCustomerOptions({
  4129. userName: this.$store.state.user.name,
  4130. customerDesc: normalizedKeyword
  4131. }).then(({ data }) => {
  4132. if (queryToken !== this.searchCustomerQueryToken) {
  4133. return
  4134. }
  4135. if (!(data && data.code === 0)) {
  4136. this.searchCustomerOptions = []
  4137. this.$message.error((data && data.msg) || '查询客户下拉失败')
  4138. return
  4139. }
  4140. const rows = Array.isArray(data.rows) ? data.rows : []
  4141. this.searchCustomerOptions = rows.filter(item => item && item.customerDesc)
  4142. if (!normalizedKeyword) {
  4143. this.searchCustomerOptionInitialized = true
  4144. }
  4145. }).catch(() => {
  4146. if (queryToken === this.searchCustomerQueryToken) {
  4147. this.searchCustomerOptions = []
  4148. this.$message.error('查询客户下拉异常')
  4149. }
  4150. }).finally(() => {
  4151. if (queryToken === this.searchCustomerQueryToken) {
  4152. this.searchCustomerOptionLoading = false
  4153. }
  4154. })
  4155. },
  4156. // 查询区 BU 变化后刷新项目分类
  4157. searchBuChangeHandle (buDesc) {
  4158. this.searchData.projectCategory = ''
  4159. let buNo = this.getBuNoByBuDesc(buDesc)
  4160. this.loadSearchProjectCategory(buNo)
  4161. },
  4162. // 新增打样弹窗按 BU 加载项目分类
  4163. loadProofingProjectCategory (buNo, site) {
  4164. const currentSite = this.resolveCurrentPartSite(site)
  4165. let inData = {
  4166. site: currentSite,
  4167. buNo: buNo || ''
  4168. }
  4169. getProjectCategoryByBu(inData).then(({data}) => {
  4170. if (data && data.code === 0) {
  4171. this.cProjectTypeDbList = (data.rows || []).map(item => ({
  4172. cProjectTypeDb: item.projectCategory
  4173. }))
  4174. } else {
  4175. this.cProjectTypeDbList = []
  4176. }
  4177. if (this.newProofingRecordData.cProjectTypeDb && !this.cProjectTypeDbList.some(item => item.cProjectTypeDb === this.newProofingRecordData.cProjectTypeDb)) {
  4178. this.cProjectTypeDbList.push({ cProjectTypeDb: this.newProofingRecordData.cProjectTypeDb })
  4179. }
  4180. }).catch(() => {
  4181. this.cProjectTypeDbList = []
  4182. if (this.newProofingRecordData.cProjectTypeDb) {
  4183. this.cProjectTypeDbList.push({ cProjectTypeDb: this.newProofingRecordData.cProjectTypeDb })
  4184. }
  4185. })
  4186. },
  4187. // 获取基础数据列表S
  4188. getBaseList (val,type) {
  4189. this.tagNo = val
  4190. this.$nextTick(() => {
  4191. let strVal = ''
  4192. if (val === 509 ) {
  4193. strVal = this.modalData.customerNo
  4194. this.$refs.baseList.init(val, strVal)
  4195. }
  4196. if (val === 301 ) {
  4197. strVal = this.modalData.projectManager
  4198. this.$refs.baseList.init(val, strVal)
  4199. }
  4200. })
  4201. },
  4202. /* 列表方法的回调 */
  4203. getBaseData (val) {
  4204. if (this.tagNo === 509) {
  4205. this.modalData.customerNo = val.customer_no
  4206. this.modalData.customerDesc = val.customer_desc
  4207. }
  4208. },
  4209. // 校验用户是否收藏
  4210. favoriteIsOk () {
  4211. let userFavorite = {
  4212. userId: this.$store.state.user.id,
  4213. languageCode: this.$i18n.locale
  4214. }
  4215. userFavoriteList(userFavorite).then(({data}) => {
  4216. for (let i = 0; i < data.list.length; i++) {
  4217. if (this.$route.meta.menuId === data.list[i].menuId) {
  4218. this.favorite = true
  4219. }
  4220. }
  4221. })
  4222. },
  4223. // 收藏 OR 取消收藏
  4224. favoriteFunction () {
  4225. let userFavorite = {
  4226. userId: this.$store.state.user.id,
  4227. functionId: this.$route.meta.menuId,
  4228. }
  4229. if (this.favorite) {
  4230. removeUserFavorite(userFavorite).then(({data}) => {
  4231. this.$message.success(data.msg)
  4232. this.favorite = false
  4233. })
  4234. } else {
  4235. // 收藏
  4236. saveUserFavorite(userFavorite).then(({data}) => {
  4237. this.$message.success(data.msg)
  4238. this.favorite = true
  4239. })
  4240. }
  4241. },
  4242. //导出excel
  4243. async createExportData () {
  4244. this.searchData.limit = -1
  4245. this.searchData.page = 1
  4246. await eamProjectPartSearch(this.searchData).then(({data}) => {
  4247. this.exportList = data.page.list
  4248. this.exportList.forEach((item) => {
  4249. item.projectManagerName = item.projectManager.split('-')[1];
  4250. item.projectOwnerName = item.projectOwner.split('-')[1];
  4251. item.engineerName = item.engineer.split('-')[1];
  4252. item.cQualityEngineer1Name = item.cQualityEngineer1.split('-')[1];
  4253. item.cQualityEngineer2Name = item.cQualityEngineer2.split('-')[1];
  4254. item.cQualityEngineer3Name = item.cQualityEngineer3.split('-')[1];
  4255. item.cManufactureEngineerName = item.cManufactureEngineer.split('-')[1];
  4256. if (item.cQualityEngineer4 !== null && item.cQualityEngineer4 !== '') {
  4257. item.cQualityEngineer4Name = item.cQualityEngineer4.split('-')[1];
  4258. }
  4259. if (item.cQualityEngineer5 !== null && item.cQualityEngineer5 !== '') {
  4260. item.cQualityEngineer5Name = item.cQualityEngineer5.split('-')[1];
  4261. }
  4262. if (item.cQualityEngineer6 !== null && item.cQualityEngineer6 !== '') {
  4263. item.cQualityEngineer6Name = item.cQualityEngineer6.split('-')[1];
  4264. }
  4265. if (item.docEngineer !== null && item.docEngineer !== '') {
  4266. item.docEngineerName = item.docEngineer.split('-')[1];
  4267. }
  4268. if (item.docEngineer2 !== null && item.docEngineer2 !== '') {
  4269. item.docEngineer2Name = item.docEngineer2.split('-')[1];
  4270. }
  4271. if (item.ipqcHardTag !== null && item.ipqcHardTag !== '') {
  4272. item.ipqcHardTagName = item.ipqcHardTag.split('-')[1];
  4273. }
  4274. if (item.projectManager !== null && item.projectManager !== '') {
  4275. item.projectManagerName = item.projectManager.split('-')[1];
  4276. }
  4277. item.qcEngineerName = this.splitUserDisplayName(item.qcEngineer);
  4278. item.peEngineerName = this.splitUserDisplayName(item.peEngineer);
  4279. item.eeEngineerName = this.splitUserDisplayName(item.eeEngineer);
  4280. item.sqemeEngineerName = this.splitUserDisplayName(item.sqemeEngineer);
  4281. item.sqeeeEngineerName = this.splitUserDisplayName(item.sqeeeEngineer);
  4282. });
  4283. for (let i = 0; i < this.exportList.length; i++) {
  4284. if (this.exportList[i].responsibleDepartment === 'R001') {
  4285. this.exportList[i].projectLeader = this.exportList[i].projectManager.split("-")[1];
  4286. } else if (this.exportList[i].responsibleDepartment === 'R002') {
  4287. this.exportList[i].projectLeader = this.exportList[i].projectOwner.split("-")[1];
  4288. } else if (this.exportList[i].responsibleDepartment === 'R004') {
  4289. this.exportList[i].projectLeader = this.exportList[i].engineer.split("-")[1];
  4290. } else if (this.exportList[i].responsibleDepartment === 'R005') {
  4291. this.exportList[i].projectLeader = this.exportList[i].cQualityEngineer1.split("-")[1];
  4292. } else if (this.exportList[i].responsibleDepartment === 'R007') {
  4293. this.exportList[i].projectLeader = this.exportList[i].cQualityEngineer2.split("-")[1];
  4294. } else if (this.exportList[i].responsibleDepartment === 'R008') {
  4295. this.exportList[i].projectLeader = this.exportList[i].cQualityEngineer3.split("-")[1];
  4296. } else if (this.exportList[i].responsibleDepartment === 'R009') {
  4297. this.exportList[i].projectLeader = this.exportList[i].cManufactureEngineer.split("-")[1];
  4298. } else if (this.exportList[i].responsibleDepartment === 'R011') {
  4299. if (this.exportList[i].cQualityEngineer4 !== null && this.exportList[i].cQualityEngineer4 !== '') {
  4300. this.exportList[i].projectLeader = this.exportList[i].cQualityEngineer4.split("-")[1];
  4301. }
  4302. } else if (this.exportList[i].responsibleDepartment === 'R012') {
  4303. if (this.exportList[i].docEngineer !== null && this.exportList[i].docEngineer !== '') {
  4304. this.exportList[i].projectLeader = this.exportList[i].docEngineer.split("-")[1];
  4305. }
  4306. } else if (this.exportList[i].responsibleDepartment === 'R017') {
  4307. if (this.exportList[i].docEngineer2 !== null && this.exportList[i].docEngineer2 !== '') {
  4308. this.exportList[i].projectLeader = this.exportList[i].docEngineer2.split("-")[1];
  4309. }
  4310. } else if (this.exportList[i].responsibleDepartment === 'R013') {
  4311. if (this.exportList[i].cQualityEngineer5 !== null && this.exportList[i].cQualityEngineer5 !== '') {
  4312. this.exportList[i].projectLeader = this.exportList[i].cQualityEngineer5.split("-")[1];
  4313. }
  4314. } else if (this.exportList[i].responsibleDepartment === 'R014') {
  4315. if (this.exportList[i].cQualityEngineer6 !== null && this.exportList[i].cQualityEngineer6 !== '') {
  4316. this.exportList[i].projectLeader = this.exportList[i].cQualityEngineer6.split("-")[1];
  4317. }
  4318. } else if (this.exportList[i].responsibleDepartment === 'R015') {
  4319. if (this.exportList[i].ipqcHardTag !== null && this.exportList[i].ipqcHardTag !== '') {
  4320. this.exportList[i].projectLeader = this.exportList[i].ipqcHardTag.split("-")[1];
  4321. }
  4322. } else if (this.exportList[i].responsibleDepartment === 'R016') {
  4323. if (this.exportList[i].cQualityEngineer7 !== null && this.exportList[i].cQualityEngineer7 !== '') {
  4324. this.exportList[i].projectLeader = this.exportList[i].cQualityEngineer7.split("-")[1];
  4325. }
  4326. } else if (this.exportList[i].responsibleDepartment === 'QC' || this.exportList[i].responsibleDepartment === 'RQC' || this.exportList[i].responsibleDepartment === 'R018') {
  4327. if (this.exportList[i].qcEngineer !== null && this.exportList[i].qcEngineer !== '') {
  4328. this.exportList[i].projectLeader = this.splitUserDisplayName(this.exportList[i].qcEngineer);
  4329. }
  4330. } else if (this.exportList[i].responsibleDepartment === 'PE' || this.exportList[i].responsibleDepartment === 'RPE' || this.exportList[i].responsibleDepartment === 'R019') {
  4331. if (this.exportList[i].peEngineer !== null && this.exportList[i].peEngineer !== '') {
  4332. this.exportList[i].projectLeader = this.splitUserDisplayName(this.exportList[i].peEngineer);
  4333. }
  4334. } else if (this.exportList[i].responsibleDepartment === 'EE' || this.exportList[i].responsibleDepartment === 'REE' || this.exportList[i].responsibleDepartment === 'R020') {
  4335. if (this.exportList[i].eeEngineer !== null && this.exportList[i].eeEngineer !== '') {
  4336. this.exportList[i].projectLeader = this.splitUserDisplayName(this.exportList[i].eeEngineer);
  4337. }
  4338. } else if (this.exportList[i].responsibleDepartment === 'SQE-ME' || this.exportList[i].responsibleDepartment === 'RSQEME') {
  4339. const sqeMe = this.exportList[i].sqemeEngineer;
  4340. if (sqeMe !== null && sqeMe !== '') {
  4341. this.exportList[i].projectLeader = this.splitUserDisplayName(sqeMe);
  4342. }
  4343. } else if (this.exportList[i].responsibleDepartment === 'SQE-EE' || this.exportList[i].responsibleDepartment === 'RSQEEE') {
  4344. const sqeEe = this.exportList[i].sqeeeEngineer;
  4345. if (sqeEe !== null && sqeEe !== '') {
  4346. this.exportList[i].projectLeader = this.splitUserDisplayName(sqeEe);
  4347. }
  4348. }
  4349. }
  4350. })
  4351. return this.exportList
  4352. },
  4353. startDownload () {},
  4354. finishDownload () {},
  4355. fields () {
  4356. let json = "{"
  4357. this.columnList.forEach((item, index) => {
  4358. if (index == this.columnList.length - 1) {
  4359. json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\""
  4360. } else {
  4361. json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + ","
  4362. }
  4363. })
  4364. json += "}"
  4365. let s = eval("(" + json + ")")
  4366. return s
  4367. },
  4368. agencyMatter(){
  4369. this.agencyMatters = false
  4370. this.getDataList()
  4371. },
  4372. // 获取数据列表
  4373. getDataList (params) {
  4374. this.selectTypeFlag = params
  4375. this.searchData.limit = this.pageSize
  4376. this.searchData.page = this.pageIndex
  4377. this.searchData1.limit = this.pageSize
  4378. this.searchData1.page = this.pageIndex
  4379. if (this.agencyMatters) {
  4380. eamProjectPartSearch(this.searchData1).then(({data}) => {
  4381. if (data.code === 0) {
  4382. this.dataList = data.page.list
  4383. this.pageIndex = data.page.currPage
  4384. this.pageSize = data.page.pageSize
  4385. this.totalPage = data.page.totalCount
  4386. // 遍历dataList
  4387. this.dataList.forEach((item) => {
  4388. item.projectManagerName = item.projectManager.split('-')[1]
  4389. item.projectOwnerName = item.projectOwner.split('-')[1]
  4390. item.engineerName = item.engineer.split('-')[1]
  4391. item.cQualityEngineer1Name = item.cQualityEngineer1.split('-')[1]
  4392. item.cQualityEngineer2Name = item.cQualityEngineer2.split('-')[1]
  4393. item.cQualityEngineer3Name = item.cQualityEngineer3.split('-')[1]
  4394. if (item.cQualityEngineer4 != null && item.cQualityEngineer4 !== ''){
  4395. item.cQualityEngineer4Name = item.cQualityEngineer4.split('-')[1]
  4396. }
  4397. if (item.cQualityEngineer5 != null && item.cQualityEngineer5 !== ''){
  4398. item.cQualityEngineer5Name = item.cQualityEngineer5.split('-')[1]
  4399. }
  4400. if (item.cQualityEngineer6 != null && item.cQualityEngineer6 !== ''){
  4401. item.cQualityEngineer6Name = item.cQualityEngineer6.split('-')[1]
  4402. }
  4403. item.cManufactureEngineerName = item.cManufactureEngineer.split('-')[1]
  4404. if (item.docEngineer != null && item.docEngineer !== ''){
  4405. item.docEngineerName = item.docEngineer.split('-')[1]
  4406. }
  4407. if (item.docEngineer2 != null && item.docEngineer2 !== ''){
  4408. item.docEngineer2Name = item.docEngineer2.split('-')[1]
  4409. }
  4410. if (item.ipqcHardTag != null && item.ipqcHardTag !== ''){
  4411. item.ipqcHardTagName = item.ipqcHardTag.split('-')[1]
  4412. }
  4413. if (item.cQualityEngineer7 != null && item.cQualityEngineer7 !== ''){
  4414. item.cQualityEngineer7Name = item.cQualityEngineer7.split('-')[1]
  4415. }
  4416. item.qcEngineerName = this.splitUserDisplayName(item.qcEngineer)
  4417. item.peEngineerName = this.splitUserDisplayName(item.peEngineer)
  4418. item.eeEngineerName = this.splitUserDisplayName(item.eeEngineer)
  4419. item.sqemeEngineerName = this.splitUserDisplayName(item.sqemeEngineer)
  4420. item.sqeeeEngineerName = this.splitUserDisplayName(item.sqeeeEngineer)
  4421. })
  4422. // 判断是否全部存在数据
  4423. if (this.totalPage > 0) {
  4424. // 设置选中行
  4425. this.$refs.mainTable.setCurrentRow(this.dataList[this.dataListIndex])
  4426. this.proofingClickRow(this.dataList[this.dataListIndex])
  4427. this.dataListIndex = 0
  4428. }
  4429. }
  4430. })
  4431. } else {
  4432. eamProjectPartSearch(this.searchData).then(({data}) => {
  4433. if (data.code === 0) {
  4434. this.dataList = data.page.list
  4435. this.allPersonnelInfoList = data.rows
  4436. this.pageIndex = data.page.currPage
  4437. this.pageSize = data.page.pageSize
  4438. this.totalPage = data.page.totalCount
  4439. // 遍历dataList
  4440. this.dataList.forEach((item) => {
  4441. item.projectManagerName = item.projectManager.split('-')[1]
  4442. item.projectOwnerName = item.projectOwner.split('-')[1]
  4443. item.engineerName = item.engineer.split('-')[1]
  4444. item.cQualityEngineer1Name = item.cQualityEngineer1.split('-')[1]
  4445. item.cQualityEngineer2Name = item.cQualityEngineer2.split('-')[1]
  4446. item.cQualityEngineer3Name = item.cQualityEngineer3.split('-')[1]
  4447. item.cManufactureEngineerName = item.cManufactureEngineer.split('-')[1]
  4448. if (item.cQualityEngineer4 != null && item.cQualityEngineer4 !== ''){
  4449. item.cQualityEngineer4Name = item.cQualityEngineer4.split('-')[1]
  4450. }
  4451. if (item.cQualityEngineer5 != null && item.cQualityEngineer5 !== ''){
  4452. item.cQualityEngineer5Name = item.cQualityEngineer5.split('-')[1]
  4453. }
  4454. if (item.cQualityEngineer6 != null && item.cQualityEngineer6 !== ''){
  4455. item.cQualityEngineer6Name = item.cQualityEngineer6.split('-')[1]
  4456. }
  4457. if (item.docEngineer != null && item.docEngineer !== ''){
  4458. item.docEngineerName = item.docEngineer.split('-')[1]
  4459. }
  4460. if (item.docEngineer2 != null && item.docEngineer2 !== ''){
  4461. item.docEngineer2Name = item.docEngineer2.split('-')[1]
  4462. }
  4463. if (item.ipqcHardTag != null && item.ipqcHardTag !== ''){
  4464. item.ipqcHardTagName = item.ipqcHardTag.split('-')[1]
  4465. }
  4466. if (item.cQualityEngineer7 != null && item.cQualityEngineer7 !== ''){
  4467. item.cQualityEngineer7Name = item.cQualityEngineer7.split('-')[1]
  4468. }
  4469. item.qcEngineerName = this.splitUserDisplayName(item.qcEngineer)
  4470. item.peEngineerName = this.splitUserDisplayName(item.peEngineer)
  4471. item.eeEngineerName = this.splitUserDisplayName(item.eeEngineer)
  4472. item.sqemeEngineerName = this.splitUserDisplayName(item.sqemeEngineer)
  4473. item.sqeeeEngineerName = this.splitUserDisplayName(item.sqeeeEngineer)
  4474. })
  4475. // 获取全部人员信息用于下拉框
  4476. this.getAllPersonnelList()
  4477. // 判断是否全部存在数据
  4478. if (this.totalPage > 0) {
  4479. // 设置选中行
  4480. this.$refs.mainTable.setCurrentRow(this.dataList[this.dataListIndex])
  4481. // 加载当前的页签的table
  4482. this.refreshCurrentTabTable()
  4483. this.proofingClickRow(this.dataList[this.dataListIndex])
  4484. this.dataListIndex = 0
  4485. }
  4486. }
  4487. })
  4488. }
  4489. },
  4490. queryEamProjectPart (params) {
  4491. this.selectTypeFlag = params
  4492. this.searchData.limit = this.pageSize
  4493. this.searchData.page = this.pageIndex
  4494. if (params !== null && params !== undefined) {
  4495. params.limit = this.pageSize
  4496. params.page = this.pageIndex
  4497. params.site = this.$store.state.user.site
  4498. params.userName = this.$store.state.user.name
  4499. } else {
  4500. params = this.searchData
  4501. }
  4502. queryEamProjectPart(params).then(({data}) => {
  4503. if (data.code === 0) {
  4504. this.dataList = data.page.list
  4505. this.pageIndex = data.page.currPage
  4506. this.pageSize = data.page.pageSize
  4507. this.totalPage = data.page.totalCount
  4508. // 遍历dataList
  4509. this.dataList.forEach((item) => {
  4510. item.projectManagerName = item.projectManager.split('-')[1]
  4511. item.projectOwnerName = item.projectOwner.split('-')[1]
  4512. item.engineerName = item.engineer.split('-')[1]
  4513. item.cQualityEngineer1Name = item.cQualityEngineer1.split('-')[1]
  4514. item.cQualityEngineer2Name = item.cQualityEngineer2.split('-')[1]
  4515. item.cQualityEngineer3Name = item.cQualityEngineer3.split('-')[1]
  4516. item.cManufactureEngineerName = item.cManufactureEngineer.split('-')[1]
  4517. if (item.cQualityEngineer4 != null && item.cQualityEngineer4 !== ''){
  4518. item.cQualityEngineer4Name = item.cQualityEngineer4.split('-')[1]
  4519. }
  4520. if (item.cQualityEngineer5 != null && item.cQualityEngineer5 !== ''){
  4521. item.cQualityEngineer5Name = item.cQualityEngineer5.split('-')[1]
  4522. }
  4523. if (item.cQualityEngineer6 != null && item.cQualityEngineer6 !== ''){
  4524. item.cQualityEngineer6Name = item.cQualityEngineer6.split('-')[1]
  4525. }
  4526. if (item.docEngineer != null && item.docEngineer !== ''){
  4527. item.docEngineerName = item.docEngineer.split('-')[1]
  4528. }
  4529. if (item.docEngineer2 != null && item.docEngineer2 !== ''){
  4530. item.docEngineer2Name = item.docEngineer2.split('-')[1]
  4531. }
  4532. if (item.ipqcHardTag != null && item.ipqcHardTag !== ''){
  4533. item.ipqcHardTagName = item.ipqcHardTag.split('-')[1]
  4534. }
  4535. if (item.cQualityEngineer7 != null && item.cQualityEngineer7 !== ''){
  4536. item.cQualityEngineer7Name = item.cQualityEngineer7.split('-')[1]
  4537. }
  4538. item.qcEngineerName = this.splitUserDisplayName(item.qcEngineer)
  4539. item.peEngineerName = this.splitUserDisplayName(item.peEngineer)
  4540. item.eeEngineerName = this.splitUserDisplayName(item.eeEngineer)
  4541. item.sqemeEngineerName = this.splitUserDisplayName(item.sqemeEngineer)
  4542. item.sqeeeEngineerName = this.splitUserDisplayName(item.sqeeeEngineer)
  4543. })
  4544. // 获取全部人员信息用于下拉框
  4545. this.getAllPersonnelList()
  4546. // 判断是否全部存在数据
  4547. if (this.totalPage > 0) {
  4548. // 设置选中行
  4549. this.$refs.mainTable.setCurrentRow(this.dataList[this.dataListIndex])
  4550. // 加载当前的页签的table
  4551. this.refreshCurrentTabTable()
  4552. this.proofingClickRow(this.dataList[this.dataListIndex])
  4553. this.dataListIndex = 0
  4554. }
  4555. }
  4556. })
  4557. },
  4558. getAllPersonnelList() {
  4559. let allPersonnelInfoDataList = JSON.parse(JSON.stringify(this.allPersonnelInfoList))
  4560. // 找出所有的同时过滤出唯一的 project owners, managers, and engineers
  4561. const allPersonnelList = [];
  4562. const projectOwnersMap = new Map();
  4563. const projectManagersMap = new Map();
  4564. const engineersMap = new Map();
  4565. const finalPartNosMap = new Map();
  4566. allPersonnelInfoDataList.forEach((item) => {
  4567. // Handle project owners
  4568. if (!projectOwnersMap.has(item.projectOwner)) {
  4569. const projectOwnerId = projectOwnersMap.size + 1; // Incrementing by +1
  4570. projectOwnersMap.set(item.projectOwner, {
  4571. projectOwnerId,
  4572. projectOwner: item.projectOwner,
  4573. projectOwnerName: item.projectOwner.split('-')[1]
  4574. });
  4575. allPersonnelList.push(projectOwnersMap.get(item.projectOwner));
  4576. }
  4577. // Handle project managers
  4578. if (!projectManagersMap.has(item.projectManager)) {
  4579. const projectManagerId = projectManagersMap.size + 1;
  4580. projectManagersMap.set(item.projectManager, {
  4581. projectManagerId,
  4582. projectManager: item.projectManager,
  4583. projectManagerName: item.projectManager.split('-')[1]
  4584. });
  4585. allPersonnelList.push(projectManagersMap.get(item.projectManager));
  4586. }
  4587. // Handle engineers
  4588. if (!engineersMap.has(item.engineer)) {
  4589. const engineerId = engineersMap.size + 1;
  4590. engineersMap.set(item.engineer, {
  4591. engineerId,
  4592. engineer: item.engineer,
  4593. engineerName: item.engineer.split('-')[1]
  4594. });
  4595. allPersonnelList.push(engineersMap.get(item.engineer));
  4596. }
  4597. // Handle finalPartNos
  4598. if (!finalPartNosMap.has(item.finalPartNo) && item.finalPartNo !== null) {
  4599. const finalPartNoId = finalPartNosMap.size + 1;
  4600. finalPartNosMap.set(item.finalPartNo, {
  4601. finalPartNoId,
  4602. finalPartNo: item.finalPartNo,
  4603. });
  4604. allPersonnelList.push(finalPartNosMap.get(item.finalPartNo));
  4605. }
  4606. // Handle cManufactureEngineer
  4607. if (item.cManufactureEngineer !== null || item.cManufactureEngineer !== ''){
  4608. if (!this.allMFGList.includes(item.cManufactureEngineer.split('-')[0])) {
  4609. this.allMFGList.push(item.cManufactureEngineer.split('-')[0]);
  4610. }
  4611. }
  4612. });
  4613. this.allPersonnelInfoList = allPersonnelList;
  4614. },
  4615. // ======== 列表操作方法 ========
  4616. /**
  4617. * 单机选中物料信息
  4618. * @param row
  4619. */
  4620. proofingClickRow(row){
  4621. row.proofingId = -1
  4622. this.proofingCurrentRow=JSON.parse(JSON.stringify(row));
  4623. this.searchProjectDocumentTypeData.site = this.resolveCurrentPartSite(row.site)
  4624. },
  4625. /**
  4626. * 当前值发生变化的时候修改
  4627. * @param row
  4628. * @param oldRow
  4629. */
  4630. changeCurrentRow (row, oldRow) {
  4631. row.proofingId = -1
  4632. // 判断是否是获取焦点的事件
  4633. if (row) {
  4634. this.proofingCurrentRow = JSON.parse(JSON.stringify(row))
  4635. this.searchProjectDocumentTypeData.site = this.resolveCurrentPartSite(row.site)
  4636. }
  4637. },
  4638. // 每页数
  4639. sizeChangeHandle (val) {
  4640. this.pageSize = val
  4641. this.pageIndex = 1
  4642. if (this.selectTypeFlag !== null && this.selectTypeFlag !== undefined) {
  4643. this.queryEamProjectPart(this.selectTypeFlag)
  4644. } else {
  4645. this.getDataList()
  4646. }
  4647. },
  4648. // 当前页
  4649. currentChangeHandle (val) {
  4650. this.pageIndex = val
  4651. if (this.selectTypeFlag !== null && this.selectTypeFlag !== undefined) {
  4652. this.queryEamProjectPart(this.selectTypeFlag)
  4653. } else {
  4654. this.getDataList()
  4655. }
  4656. },
  4657. // 多选
  4658. selectionChangeHandle (val) {
  4659. this.dataListSelections = val
  4660. },
  4661. generateNextPartNo() {
  4662. return new Promise((resolve, reject) => {
  4663. getTestPartNo().then(({ data }) => {
  4664. const stringData = String(data); // 显式转换为字符串
  4665. if (stringData === 'null' || stringData === 'undefined' || stringData === '' || stringData === '0') {
  4666. resolve('P00001');
  4667. } else {
  4668. const lastPartNo = parseInt(stringData.substring(1));
  4669. const nextPartNo = lastPartNo + 1;
  4670. let testPartNo;
  4671. if (nextPartNo < 10) {
  4672. testPartNo = 'P0000' + nextPartNo;
  4673. } else if (nextPartNo < 100) {
  4674. testPartNo = 'P000' + nextPartNo;
  4675. } else if (nextPartNo < 1000) {
  4676. testPartNo = 'P00' + nextPartNo;
  4677. } else if (nextPartNo < 10000) {
  4678. testPartNo = 'P0' + nextPartNo;
  4679. } else {
  4680. testPartNo = 'P' + nextPartNo;
  4681. }
  4682. resolve(testPartNo);
  4683. }
  4684. }).catch(error => {
  4685. reject('Failed to fetch testPartNo: ' + error);
  4686. });
  4687. });
  4688. },
  4689. changeFormalPartNo (row) {
  4690. this.modalData = {
  4691. flag: '2',
  4692. site: row.site,
  4693. bu: row.site + '_' + row.buNo,
  4694. customerNo: row.customerNo,
  4695. customerDesc: row.customerDesc,
  4696. projectCategory: row.projectCategory,
  4697. projectPartId: row.projectPartId,
  4698. testPartNo: row.testPartNo,
  4699. partDesc: row.partDesc,
  4700. projectId: row.projectId,
  4701. projectNo: row.projectNo,
  4702. projectDesc: row.projectDesc,
  4703. projectCloseDate: row.projectCloseDate,
  4704. needDate: row.needDate,
  4705. cProjectRegion: row.cProjectRegion,
  4706. projectManager: row.projectManager,
  4707. projectManagerName: row.projectManager.split('-')[1], // 截取用户名
  4708. projectOwner: row.projectOwner,
  4709. projectOwnerName: row.projectOwner.split('-')[1], // 截取用户名
  4710. engineer: row.engineer,
  4711. engineerName: row.engineer.split('-')[1], // 截取用户名
  4712. cQualityEngineer1: row.cQualityEngineer1,
  4713. cQualityEngineer1Name: row.cQualityEngineer1.split('-')[1], // 截取用户名
  4714. cQualityEngineer2: row.cQualityEngineer2,
  4715. cQualityEngineer2Name: row.cQualityEngineer2.split('-')[1], // 截取用户名
  4716. projectCreationDate: row.projectCreationDate,
  4717. cQualityEngineer3: row.cQualityEngineer3,
  4718. cQualityEngineer3Name: row.cQualityEngineer3.split('-')[1], // 截取用户名
  4719. cQualityEngineer4: row.cQualityEngineer4,
  4720. cQualityEngineer5: row.cQualityEngineer5,
  4721. cQualityEngineer6: row.cQualityEngineer6,
  4722. cManufactureEngineer: row.cManufactureEngineer,
  4723. cManufactureEngineerName: row.cManufactureEngineer.split('-')[1], // 截取用户名
  4724. docEngineer: row.docEngineer,
  4725. docEngineer2: row.docEngineer2,
  4726. ipqcHardTag: row.ipqcHardTag,
  4727. cQualityEngineer7: row.cQualityEngineer7,
  4728. qcEngineer: row.qcEngineer,
  4729. peEngineer: row.peEngineer,
  4730. eeEngineer: row.eeEngineer,
  4731. sqemeEngineer: row.sqemeEngineer || '',
  4732. sqeeeEngineer: row.sqeeeEngineer || '',
  4733. finalPartNo: row.finalPartNo,
  4734. finalPartDesc: row.finalPartDesc,
  4735. // active: row.active,
  4736. createBy: this.$store.state.user.name,
  4737. updateBy: this.$store.state.user.name,
  4738. }
  4739. if (row.cQualityEngineer4 != null && row.cQualityEngineer4 !== ''){
  4740. this.modalData.cQualityEngineer4Name= row.cQualityEngineer4.split('-')[1] // 截取用户名
  4741. }
  4742. if (row.cQualityEngineer5 != null && row.cQualityEngineer5 !== ''){
  4743. this.modalData.cQualityEngineer5Name= row.cQualityEngineer5.split('-')[1] // 截取用户名
  4744. }
  4745. if (row.cQualityEngineer6 != null && row.cQualityEngineer6 !== ''){
  4746. this.modalData.cQualityEngineer6Name= row.cQualityEngineer6.split('-')[1] // 截取用户名
  4747. }
  4748. if (row.docEngineer != null && row.docEngineer !== ''){
  4749. this.modalData.docEngineerName= row.docEngineer.split('-')[1] // 截取用户名
  4750. }
  4751. if (row.docEngineer2 != null && row.docEngineer2 !== ''){
  4752. this.modalData.docEngineer2Name= row.docEngineer2.split('-')[1] // 截取用户名
  4753. }
  4754. if (row.ipqcHardTag != null && row.ipqcHardTag !== ''){
  4755. this.modalData.ipqcHardTagName= row.ipqcHardTag.split('-')[1] // 截取用户名
  4756. }
  4757. if (row.cQualityEngineer7 != null && row.cQualityEngineer7 !== ''){
  4758. this.modalData.cQualityEngineer7Name= row.cQualityEngineer7.split('-')[1] // 截取用户名
  4759. }
  4760. if (row.qcEngineer != null && row.qcEngineer !== ''){
  4761. this.modalData.qcEngineerName = this.splitUserDisplayName(row.qcEngineer)
  4762. }
  4763. if (row.peEngineer != null && row.peEngineer !== ''){
  4764. this.modalData.peEngineerName = this.splitUserDisplayName(row.peEngineer)
  4765. }
  4766. if (row.eeEngineer != null && row.eeEngineer !== ''){
  4767. this.modalData.eeEngineerName = this.splitUserDisplayName(row.eeEngineer)
  4768. }
  4769. this.getFinalPartDesc()
  4770. this.formalPartNoFlag = true
  4771. },
  4772. addProofRecord (row) {
  4773. this.newProofingRecordData = {
  4774. site: row.site,
  4775. buNo: row.buNo,
  4776. projectId: row.projectId,
  4777. projectNo: row.projectNo,
  4778. projectDesc: row.projectDesc,
  4779. customerNo: row.customerNo,
  4780. customerDesc: row.customerDesc,
  4781. bu: row.site + '_' + row.buNo,
  4782. projectPartId: row.projectPartId,
  4783. testPartNo: row.testPartNo,
  4784. partDesc: row.partDesc,
  4785. projectCategory: row.projectCategory,
  4786. cProjectTypeDb: row.projectCategory,
  4787. projectManager: row.projectManager,
  4788. projectOwner: row.projectOwner,
  4789. engineer: row.engineer,
  4790. cQualityEngineer1: row.cQualityEngineer1,
  4791. cQualityEngineer2: row.cQualityEngineer2,
  4792. cQualityEngineer3: row.cQualityEngineer3,
  4793. cQualityEngineer4: row.cQualityEngineer4,
  4794. cQualityEngineer5: row.cQualityEngineer5,
  4795. cQualityEngineer6: row.cQualityEngineer6,
  4796. cManufactureEngineer: row.cManufactureEngineer,
  4797. docEngineer: row.docEngineer,
  4798. docEngineer2: row.docEngineer2,
  4799. ipqcHardTag: row.ipqcHardTag,
  4800. cQualityEngineer7: row.cQualityEngineer7,
  4801. qcEngineer: row.qcEngineer,
  4802. peEngineer: row.peEngineer,
  4803. eeEngineer: row.eeEngineer,
  4804. sqemeEngineer: row.sqemeEngineer || '',
  4805. sqeeeEngineer: row.sqeeeEngineer || '',
  4806. remark: '',
  4807. planStartDate : new Date(),
  4808. proofingNo: '',
  4809. proofingStatus: '草稿',
  4810. rrequiredDeliveryDate: '',
  4811. createDate: '',
  4812. createBy: this.$store.state.user.name,
  4813. }
  4814. this.loadProofingProjectCategory(row.buNo, row.site)
  4815. this.visible = true
  4816. },
  4817. newProofingRecord() {
  4818. if (this.newProofingRecordData.cProjectTypeDb === '' || this.newProofingRecordData.cProjectTypeDb === null || this.newProofingRecordData.cProjectTypeDb === undefined) {
  4819. this.$message({
  4820. message: '项目分类不能为空',
  4821. type: 'warning'
  4822. })
  4823. return
  4824. }
  4825. if (this.newProofingRecordData.projectPhase === '' || this.newProofingRecordData.projectPhase === null || this.newProofingRecordData.projectPhase === undefined) {
  4826. this.$message({
  4827. message: '项目阶段不能为空',
  4828. type: 'warning'
  4829. })
  4830. return
  4831. }
  4832. if (this.newProofingRecordData.proofingNo === '' || this.newProofingRecordData.proofingNo === null || this.newProofingRecordData.proofingNo === undefined) {
  4833. this.$message({
  4834. message: '打样单号不能为空',
  4835. type: 'warning'
  4836. })
  4837. return
  4838. }
  4839. if (this.newProofingRecordData.proofingNumber === '' || this.newProofingRecordData.proofingNumber === null || this.newProofingRecordData.proofingNumber === undefined) {
  4840. this.$message({
  4841. message: '数量不能为空',
  4842. type: 'warning'
  4843. })
  4844. return
  4845. }
  4846. // 数量必须是大于等于0的正整数
  4847. if (!/^[1-9]\d*$/.test(this.newProofingRecordData.proofingNumber)) {
  4848. this.$alert('数量必需是大于等于0的正整数', '提示', {
  4849. confirmButtonText: '确定',
  4850. });
  4851. return
  4852. }
  4853. if (this.newProofingRecordData.planStartDate === '' || this.newProofingRecordData.planStartDate === null || this.newProofingRecordData.planStartDate === undefined) {
  4854. this.$message({
  4855. message: '打样开始日期不能为空',
  4856. type: 'warning'
  4857. })
  4858. return
  4859. }
  4860. if (this.newProofingRecordData.requiredDeliveryDate === '' || this.newProofingRecordData.requiredDeliveryDate === null || this.newProofingRecordData.requiredDeliveryDate === undefined) {
  4861. this.$message({
  4862. message: '预计完成日期不能为空',
  4863. type: 'warning'
  4864. })
  4865. return
  4866. }
  4867. proofingInformationSave(this.newProofingRecordData).then(({data}) => {
  4868. //区分请求成功和失败的状况
  4869. if (data && data.code === 0) {
  4870. this.newProofingDocument(data.proofingId).then(() => {
  4871. this.visible = false
  4872. //刷新表格
  4873. this.refreshCurrentTabTable()
  4874. })
  4875. } else {
  4876. this.$alert(data.msg, '错误', {
  4877. confirmButtonText: '确定'
  4878. })
  4879. }
  4880. })
  4881. },
  4882. newProofingDocument(proofingId) {
  4883. this.newProofingRecordData.proofingId = proofingId
  4884. return proofingDocumentSave(this.newProofingRecordData).then(({ data }) => {
  4885. if (data && data.code === 0) {
  4886. this.$message({
  4887. message: '新增成功',
  4888. type: 'success'
  4889. })
  4890. } else {
  4891. this.$alert(data.msg, '错误', {
  4892. confirmButtonText: '确定'
  4893. })
  4894. }
  4895. });
  4896. },
  4897. updateModalStatus (row) {
  4898. this.modalData = {
  4899. site: row.site,
  4900. bu: row.site + '_' + row.buNo,
  4901. buNo: row.buNo,
  4902. username: this.$store.state.user.name,
  4903. customerNo: row.customerNo,
  4904. customerDesc: row.customerDesc,
  4905. projectCategory: row.projectCategory,
  4906. projectPartId: row.projectPartId,
  4907. testPartNo: row.testPartNo,
  4908. partDesc: row.partDesc,
  4909. projectId: row.projectId,
  4910. projectNo: row.projectNo,
  4911. projectDesc: row.projectDesc,
  4912. priority: row.priority,
  4913. closeDate: row.closeDate,
  4914. needDate: row.needDate,
  4915. projectManager: row.projectManager,
  4916. projectManagerName: row.projectManager.split('-')[1], // 截取用户名
  4917. projectOwner: row.projectOwner,
  4918. projectOwnerName: row.projectOwner.split('-')[1], // 截取用户名
  4919. engineer: row.engineer,
  4920. engineerName: row.engineer.split('-')[1], // 截取用户名
  4921. cQualityEngineer1: row.cQualityEngineer1,
  4922. cQualityEngineer1Name: row.cQualityEngineer1.split('-')[1], // 截取用户名
  4923. cQualityEngineer2: row.cQualityEngineer2,
  4924. cQualityEngineer2Name: row.cQualityEngineer2.split('-')[1], // 截取用户名
  4925. cQualityEngineer3: row.cQualityEngineer3,
  4926. cQualityEngineer3Name: row.cQualityEngineer3.split('-')[1], // 截取用户名
  4927. cQualityEngineer4: row.cQualityEngineer4,
  4928. cQualityEngineer5: row.cQualityEngineer5,
  4929. cQualityEngineer6: row.cQualityEngineer6,
  4930. cManufactureEngineer: row.cManufactureEngineer,
  4931. cManufactureEngineerName: row.cManufactureEngineer.split('-')[1], // 截取用户名
  4932. docEngineer: row.docEngineer,
  4933. docEngineer2: row.docEngineer2,
  4934. ipqcHardTag: row.ipqcHardTag,
  4935. cQualityEngineer7: row.cQualityEngineer7,
  4936. qcEngineer: row.qcEngineer,
  4937. peEngineer: row.peEngineer,
  4938. eeEngineer: row.eeEngineer,
  4939. sqemeEngineer: row.sqemeEngineer || '',
  4940. sqeeeEngineer: row.sqeeeEngineer || '',
  4941. buildDate: row.buildDate,
  4942. status: row.status,
  4943. partType: row.partType,
  4944. // active: row.active,
  4945. createBy: this.$store.state.user.name,
  4946. updateBy: this.$store.state.user.name,
  4947. }
  4948. if (row.cQualityEngineer4 != null && row.cQualityEngineer4 !== '') {
  4949. this.modalData.cQualityEngineer4Name = row.cQualityEngineer4.split('-')[1] // 截取用户名
  4950. }
  4951. if (row.cQualityEngineer5 != null && row.cQualityEngineer5 !== '') {
  4952. this.modalData.cQualityEngineer5Name = row.cQualityEngineer5.split('-')[1] // 截取用户名
  4953. }
  4954. if (row.cQualityEngineer6 != null && row.cQualityEngineer6 !== '') {
  4955. this.modalData.cQualityEngineer6Name = row.cQualityEngineer6.split('-')[1] // 截取用户名
  4956. }
  4957. if (row.docEngineer != null && row.docEngineer !== '') {
  4958. this.modalData.docEngineerName = row.docEngineer.split('-')[1] // 截取用户名
  4959. }
  4960. if (row.docEngineer2 != null && row.docEngineer2 !== '') {
  4961. this.modalData.docEngineer2Name = row.docEngineer2.split('-')[1] // 截取用户名
  4962. }
  4963. if (row.ipqcHardTag != null && row.ipqcHardTag !== '') {
  4964. this.modalData.ipqcHardTagName = row.ipqcHardTag.split('-')[1] // 截取用户名
  4965. }
  4966. if (row.cQualityEngineer7 != null && row.cQualityEngineer7 !== '') {
  4967. this.modalData.cQualityEngineer7Name = row.cQualityEngineer7.split('-')[1] // 截取用户名
  4968. }
  4969. if (row.qcEngineer != null && row.qcEngineer !== '') {
  4970. this.modalData.qcEngineerName = this.splitUserDisplayName(row.qcEngineer)
  4971. }
  4972. if (row.peEngineer != null && row.peEngineer !== '') {
  4973. this.modalData.peEngineerName = this.splitUserDisplayName(row.peEngineer)
  4974. }
  4975. if (row.eeEngineer != null && row.eeEngineer !== '') {
  4976. this.modalData.eeEngineerName = this.splitUserDisplayName(row.eeEngineer)
  4977. }
  4978. if (row.status === '草稿') {
  4979. if (row.projectOwner.split('-')[0] === this.$store.state.user.name) {
  4980. this.modalData.status = '进行中'
  4981. this.$confirm(`是否确认下达该项目?`, '提示', {
  4982. confirmButtonText: '确定',
  4983. cancelButtonText: '取消',
  4984. type: 'warning'
  4985. }).then(() => {
  4986. eamProjectPartInfoEdit(this.modalData).then(({data}) => {
  4987. if (data && (data.code === 0 || data.code === '0')) {
  4988. sendMailHandle(this.modalData).then(({data}) => {
  4989. if (data && data.code === 0) {
  4990. this.$message({
  4991. message: '发送成功',
  4992. type: 'success'
  4993. })
  4994. } else {
  4995. this.$alert(data.msg, '错误', {
  4996. confirmButtonText: '确定'
  4997. })
  4998. }
  4999. })
  5000. EventBus.$emit('updateProjectInfo')
  5001. this.dataList.forEach((item) => {
  5002. if (item.projectPartId === row.projectPartId) {
  5003. this.dataListIndex = this.dataList.indexOf(item)
  5004. }
  5005. })
  5006. this.getDataList()
  5007. this.$message({
  5008. message: '操作成功',
  5009. type: 'success',
  5010. duration: 1500,
  5011. onClose: () => {
  5012. }
  5013. })
  5014. } else {
  5015. this.$alert(data.msg, '错误', {
  5016. confirmButtonText: '确定'
  5017. })
  5018. }
  5019. })
  5020. }).catch(() => {
  5021. })
  5022. } else {
  5023. this.$message({
  5024. message: '该项目只允许PjM人员进行下达!',
  5025. type: 'warning',
  5026. showClose: true, // 显示关闭按钮
  5027. duration: 2000 // 显示时间,单位是毫秒,这里设置为5秒钟
  5028. });
  5029. }
  5030. } else if (row.status === '进行中' || '已量产') {
  5031. if (row.status === '进行中') {
  5032. this.modalData.status2 = '进行中'
  5033. }
  5034. this.modalData.status = '已量产'
  5035. this.modalData.closeDate = new Date()
  5036. this.$confirm(`是否确认转量产?`, '提示', {
  5037. confirmButtonText: '确定',
  5038. cancelButtonText: '取消',
  5039. type: 'warning'
  5040. }).then(() => {
  5041. eamProjectPartInfoEdit(this.modalData).then(({data}) => {
  5042. if (data && ( data.code === 0 || data.code === '0')) {
  5043. this.getDataList()
  5044. EventBus.$emit('updateProjectInfo')
  5045. this.$message({
  5046. message: '操作成功',
  5047. type: 'success',
  5048. duration: 1500,
  5049. onClose: () => {}
  5050. })
  5051. } else {
  5052. this.$alert(data.msg, '错误', {
  5053. confirmButtonText: '确定'
  5054. })
  5055. }
  5056. })
  5057. }).catch(() => {
  5058. })
  5059. }
  5060. },
  5061. sendMassMailHandle () {
  5062. let inData = this.proofingCurrentRow
  5063. inData.proofingId = -1
  5064. sendMailHandle(inData).then(({data}) => {
  5065. if (data && data.code === 0) {
  5066. this.$message({
  5067. message: '发送成功',
  5068. type: 'success'
  5069. })
  5070. } else {
  5071. this.$alert(data.msg, '错误', {
  5072. confirmButtonText: '确定'
  5073. })
  5074. }
  5075. })
  5076. },
  5077. // 转量产 一键下载
  5078. async dowloadAllFile(){
  5079. this.downloadLoading = true
  5080. let oldList = this.projectOtherDocumentList
  5081. let list = oldList.filter(item => {
  5082. return this.shouldShowDelete(item) || item.projectPhase === 'SOP文档'
  5083. })
  5084. for (const item of list) {
  5085. await this.viewMassDocumentFile(item, true)
  5086. this.downloadFile(this.projectConfirmatorFileList[0])
  5087. await new Promise(resolve => setTimeout(resolve, 500))
  5088. }
  5089. this.downloadLoading = false
  5090. },
  5091. // 所有文档 一键下载
  5092. async dowloadAllFile2(){
  5093. this.downloadLoading = true
  5094. let oldList = this.projectAllDocumentList
  5095. let list = oldList.filter(item => {
  5096. return this.shouldShowDelete(item) || item.uploadedFlag === 'Y'
  5097. })
  5098. for (const item of list) {
  5099. await this.viewMassDocumentFile(item, true)
  5100. this.downloadFile(this.projectConfirmatorFileList[0])
  5101. await new Promise(resolve => setTimeout(resolve, 500))
  5102. }
  5103. this.downloadLoading = false
  5104. },
  5105. cancelModalStatus (row) {
  5106. this.modalData = {
  5107. site: row.site,
  5108. bu: row.site + '_' + row.buNo,
  5109. buNo: row.buNo,
  5110. username: this.$store.state.user.name,
  5111. customerNo: row.customerNo,
  5112. customerDesc: row.customerDesc,
  5113. projectCategory: row.projectCategory,
  5114. projectPartId: row.projectPartId,
  5115. testPartNo: row.testPartNo,
  5116. partDesc: row.partDesc,
  5117. projectId: row.projectId,
  5118. projectNo: row.projectNo,
  5119. projectDesc: row.projectDesc,
  5120. priority: row.priority,
  5121. closeDate: row.closeDate,
  5122. needDate: row.needDate,
  5123. projectManager: row.projectManager,
  5124. projectManagerName: row.projectManager.split('-')[1], // 截取用户名
  5125. projectOwner: row.projectOwner,
  5126. projectOwnerName: row.projectOwner.split('-')[1], // 截取用户名
  5127. engineer: row.engineer,
  5128. engineerName: row.engineer.split('-')[1], // 截取用户名
  5129. cQualityEngineer1: row.cQualityEngineer1,
  5130. cQualityEngineer1Name: row.cQualityEngineer1.split('-')[1], // 截取用户名
  5131. cQualityEngineer2: row.cQualityEngineer2,
  5132. cQualityEngineer2Name: row.cQualityEngineer2.split('-')[1], // 截取用户名
  5133. cQualityEngineer3: row.cQualityEngineer3,
  5134. cQualityEngineer3Name: row.cQualityEngineer3.split('-')[1], // 截取用户名
  5135. cQualityEngineer4: row.cQualityEngineer4,
  5136. cQualityEngineer5: row.cQualityEngineer5,
  5137. cQualityEngineer6: row.cQualityEngineer6,
  5138. cManufactureEngineer: row.cManufactureEngineer,
  5139. cManufactureEngineerName: row.cManufactureEngineer.split('-')[1], // 截取用户名
  5140. docEngineer: row.docEngineer,
  5141. docEngineer2: row.docEngineer2,
  5142. ipqcHardTag: row.ipqcHardTag,
  5143. cQualityEngineer7: row.cQualityEngineer7,
  5144. qcEngineer: row.qcEngineer,
  5145. peEngineer: row.peEngineer,
  5146. eeEngineer: row.eeEngineer,
  5147. sqemeEngineer: row.sqemeEngineer || '',
  5148. sqeeeEngineer: row.sqeeeEngineer || '',
  5149. buildDate: row.buildDate,
  5150. status: row.status,
  5151. partType: row.partType,
  5152. // active: row.active,
  5153. createBy: this.$store.state.user.name,
  5154. updateBy: this.$store.state.user.name,
  5155. }
  5156. if (row.cQualityEngineer4 != null && row.cQualityEngineer4 !== '') {
  5157. this.modalData.cQualityEngineer4Name = row.cQualityEngineer4.split('-')[1] // 截取用户名
  5158. }
  5159. if (row.cQualityEngineer5 != null && row.cQualityEngineer5 !== '') {
  5160. this.modalData.cQualityEngineer5Name = row.cQualityEngineer5.split('-')[1] // 截取用户名
  5161. }
  5162. if (row.cQualityEngineer6 != null && row.cQualityEngineer6 !== '') {
  5163. this.modalData.cQualityEngineer6Name = row.cQualityEngineer6.split('-')[1] // 截取用户名
  5164. }
  5165. if (row.docEngineer != null && row.docEngineer !== '') {
  5166. this.modalData.docEngineerName = row.docEngineer.split('-')[1] // 截取用户名
  5167. }
  5168. if (row.docEngineer2 != null && row.docEngineer2 !== '') {
  5169. this.modalData.docEngineer2Name = row.docEngineer2.split('-')[1] // 截取用户名
  5170. }
  5171. if (row.ipqcHardTag != null && row.ipqcHardTag !== '') {
  5172. this.modalData.ipqcHardTagName = row.ipqcHardTag.split('-')[1] // 截取用户名
  5173. }
  5174. if (row.cQualityEngineer7 != null && row.cQualityEngineer7 !== '') {
  5175. this.modalData.cQualityEngineer7Name = row.cQualityEngineer7.split('-')[1] // 截取用户名
  5176. }
  5177. if (row.qcEngineer != null && row.qcEngineer !== '') {
  5178. this.modalData.qcEngineerName = this.splitUserDisplayName(row.qcEngineer)
  5179. }
  5180. if (row.peEngineer != null && row.peEngineer !== '') {
  5181. this.modalData.peEngineerName = this.splitUserDisplayName(row.peEngineer)
  5182. }
  5183. if (row.eeEngineer != null && row.eeEngineer !== '') {
  5184. this.modalData.eeEngineerName = this.splitUserDisplayName(row.eeEngineer)
  5185. }
  5186. if (row.status === '已量产') {
  5187. this.modalData.status = '进行中'
  5188. this.modalData.closeDate = ''
  5189. this.$confirm(`是否确认撤销该项目?`, '提示', {
  5190. confirmButtonText: '确定',
  5191. cancelButtonText: '取消',
  5192. type: 'warning'
  5193. }).then(() => {
  5194. eamProjectPartInfoCancelEdit(this.modalData).then(({data}) => {
  5195. if (data && (data.code === 0 || data.code === '0')) {
  5196. EventBus.$emit('updateProjectInfo')
  5197. this.getDataList()
  5198. this.$message({
  5199. message: '操作成功',
  5200. type: 'success',
  5201. duration: 1500,
  5202. onClose: () => {
  5203. }
  5204. })
  5205. } else {
  5206. this.$alert(data.msg, '错误', {
  5207. confirmButtonText: '确定'
  5208. })
  5209. }
  5210. })
  5211. }).catch(() => {
  5212. })
  5213. }
  5214. },
  5215. getRowProjectInfo(){
  5216. this.$nextTick(() => {
  5217. let inData = {
  5218. site: this.proofingCurrentRow.site,
  5219. projectId: this.proofingCurrentRow.projectId,
  5220. projectNo: this.proofingCurrentRow.projectNo,
  5221. projectDesc: this.proofingCurrentRow.projectDesc,
  5222. projectPartId: this.proofingCurrentRow.projectPartId,
  5223. testPartNo: this.proofingCurrentRow.testPartNo,
  5224. partDesc: this.proofingCurrentRow.partDesc,
  5225. projectManager: this.proofingCurrentRow.projectManager,
  5226. projectOwner: this.proofingCurrentRow.projectOwner,
  5227. engineer: this.proofingCurrentRow.engineer,
  5228. cQualityEngineer1: this.proofingCurrentRow.cQualityEngineer1,
  5229. cQualityEngineer2: this.proofingCurrentRow.cQualityEngineer2,
  5230. cQualityEngineer3: this.proofingCurrentRow.cQualityEngineer3,
  5231. cQualityEngineer4: this.proofingCurrentRow.cQualityEngineer4,
  5232. cQualityEngineer5: this.proofingCurrentRow.cQualityEngineer5,
  5233. cQualityEngineer6: this.proofingCurrentRow.cQualityEngineer6,
  5234. cManufactureEngineer: this.proofingCurrentRow.cManufactureEngineer,
  5235. docEngineer: this.proofingCurrentRow.docEngineer,
  5236. docEngineer2: this.proofingCurrentRow.docEngineer2,
  5237. ipqcHardTag: this.proofingCurrentRow.ipqcHardTag,
  5238. cQualityEngineer7: this.proofingCurrentRow.cQualityEngineer7,
  5239. qcEngineer: this.proofingCurrentRow.qcEngineer,
  5240. peEngineer: this.proofingCurrentRow.peEngineer,
  5241. eeEngineer: this.proofingCurrentRow.eeEngineer,
  5242. sqemeEngineer: this.proofingCurrentRow.sqemeEngineer,
  5243. sqeeeEngineer: this.proofingCurrentRow.sqeeeEngineer,
  5244. // username:this.$store.state.user.name,
  5245. page: 1,
  5246. limit: 1000
  5247. }
  5248. this.$refs.proofRecordModal.init(inData, this.authUpdate)
  5249. });
  5250. },
  5251. showProofDetailModal(row) {
  5252. this.activeModalTab = 'proofRecord'
  5253. this.projectProofRecordList = []
  5254. // 保存当前行数据
  5255. this.proofingCurrentRow = JSON.parse(JSON.stringify(row));
  5256. // 打开模态框
  5257. this.dialogVisible = true;
  5258. // 模态框打开后刷新 proofRecord 组件的数据
  5259. this.$nextTick(() => {
  5260. let inData={
  5261. site: this.proofingCurrentRow.site,
  5262. projectId: this.proofingCurrentRow.projectId,
  5263. projectNo: this.proofingCurrentRow.projectNo,
  5264. projectDesc: this.proofingCurrentRow.projectDesc,
  5265. projectPartId: this.proofingCurrentRow.projectPartId,
  5266. testPartNo: this.proofingCurrentRow.testPartNo,
  5267. partDesc: this.proofingCurrentRow.partDesc,
  5268. projectManager: this.proofingCurrentRow.projectManager,
  5269. projectOwner: this.proofingCurrentRow.projectOwner,
  5270. engineer: this.proofingCurrentRow.engineer,
  5271. cQualityEngineer1: this.proofingCurrentRow.cQualityEngineer1,
  5272. cQualityEngineer2: this.proofingCurrentRow.cQualityEngineer2,
  5273. cQualityEngineer3: this.proofingCurrentRow.cQualityEngineer3,
  5274. cQualityEngineer4: this.proofingCurrentRow.cQualityEngineer4,
  5275. cQualityEngineer5: this.proofingCurrentRow.cQualityEngineer5,
  5276. cQualityEngineer6: this.proofingCurrentRow.cQualityEngineer6,
  5277. cManufactureEngineer: this.proofingCurrentRow.cManufactureEngineer,
  5278. docEngineer: this.proofingCurrentRow.docEngineer,
  5279. docEngineer2: this.proofingCurrentRow.docEngineer2,
  5280. ipqcHardTag: this.proofingCurrentRow.ipqcHardTag,
  5281. cQualityEngineer7: this.proofingCurrentRow.cQualityEngineer7,
  5282. qcEngineer: this.proofingCurrentRow.qcEngineer,
  5283. peEngineer: this.proofingCurrentRow.peEngineer,
  5284. eeEngineer: this.proofingCurrentRow.eeEngineer,
  5285. sqemeEngineer: this.proofingCurrentRow.sqemeEngineer,
  5286. sqeeeEngineer: this.proofingCurrentRow.sqeeeEngineer,
  5287. // username:this.$store.state.user.name,
  5288. page: 1,
  5289. limit: 1000
  5290. }
  5291. // 调用模态框内 proofRecord 组件的 init 方法刷新数据
  5292. this.$refs.proofRecordModal.init(inData,this.authUpdate);
  5293. });
  5294. },
  5295. getFinalPartDesc(){
  5296. return new Promise((resolve, reject) => {
  5297. let inData = {
  5298. site: this.modalData.site,
  5299. buNo: this.modalData.bu.split('_')[1],
  5300. finalPartNo: this.modalData.finalPartNo,
  5301. }
  5302. getFinalPartDesc(inData).then(({data}) => {
  5303. if (data && data.code === 0) {
  5304. if (data.data !== null) {
  5305. this.modalData.finalPartDesc = data.data.finalPartDesc
  5306. this.finalPartFlag = false
  5307. } else {
  5308. this.modalData.finalPartDesc = ''
  5309. this.finalPartFlag = true
  5310. }
  5311. } else {
  5312. this.modalData.finalPartDesc = ''
  5313. }
  5314. resolve(); // 在操作成功时解析Promise
  5315. }).catch(error => {
  5316. this.modalData.finalPartDesc = '';
  5317. reject(error); // 如果发生错误,拒绝Promise
  5318. });
  5319. });
  5320. },
  5321. async saveFormalPartNo() {
  5322. try {
  5323. await this.getFinalPartDesc();
  5324. } catch (error) {
  5325. // 处理getFinalPartDesc方法中的错误
  5326. console.error("Error in getFinalPartDesc:", error);
  5327. this.$message({
  5328. message: '获取料号描述时发生错误,请重试',
  5329. type: 'error'
  5330. });
  5331. }
  5332. if (this.modalData.finalPartNo === '' || this.modalData.finalPartNo === null || this.modalData.finalPartNo === undefined) {
  5333. this.$message({
  5334. message: '请输入ERP正式料号',
  5335. type: 'warning'
  5336. })
  5337. return
  5338. }
  5339. if (this.finalPartFlag) {
  5340. this.$confirm('ERP正式料号不存在,是否继续保存?', '提示', {
  5341. confirmButtonText: '确定',
  5342. cancelButtonText: '取消',
  5343. type: 'warning'
  5344. }).then(() => {
  5345. saveFormalPartNo(this.modalData).then(({data}) => {
  5346. if (data && data.code === '0') {
  5347. this.getDataList()
  5348. this.formalPartNoFlag = false
  5349. this.$message({
  5350. message: '操作成功',
  5351. type: 'success',
  5352. duration: 1500,
  5353. onClose: () => {
  5354. }
  5355. })
  5356. } else {
  5357. this.$alert(data.msg, '错误', {
  5358. confirmButtonText: '确定'
  5359. })
  5360. }
  5361. })
  5362. }).catch(() => {
  5363. this.$message({
  5364. type: 'info',
  5365. message: '已取消操作'
  5366. })
  5367. })
  5368. } else {
  5369. saveFormalPartNo(this.modalData).then(({data}) => {
  5370. if (data && data.code === '0') {
  5371. this.getDataList()
  5372. this.formalPartNoFlag = false
  5373. this.$message({
  5374. message: '操作成功',
  5375. type: 'success',
  5376. duration: 1500,
  5377. onClose: () => {
  5378. }
  5379. })
  5380. } else {
  5381. this.$alert(data.msg, '错误', {
  5382. confirmButtonText: '确定'
  5383. })
  5384. }
  5385. })
  5386. }
  5387. },
  5388. selectFlag () {
  5389. return true
  5390. },
  5391. closeClear () {
  5392. this.modalData.bu = ''
  5393. this.modalData.projectNo = ''
  5394. this.modalData.projectDesc = ''
  5395. this.modalData.projectCloseDate = ''
  5396. this.modalData.needDate = ''
  5397. this.modalData.customerNo = ''
  5398. this.modalData.customerDesc = ''
  5399. this.modalData.projectCategory = ''
  5400. this.modalData.testPartNo = ''
  5401. this.modalData.partDesc = ''
  5402. this.modalData.projectManager = ''
  5403. this.modalData.projectManagerName = ''
  5404. this.modalData.engineer = ''
  5405. this.modalData.engineerName = ''
  5406. this.modalData.cQualityEngineer1 = ''
  5407. this.modalData.cQualityEngineer1Name = ''
  5408. this.modalData.cQualityEngineer2 = ''
  5409. this.modalData.cQualityEngineer2Name = ''
  5410. this.modalData.projectCreationDate = new Date()
  5411. },
  5412. projectOtherDocumentClickRow (row) {
  5413. row.id = row.documentDefinitionListId
  5414. this.otherDocumentCurrentRow = JSON.parse(JSON.stringify(row))
  5415. },
  5416. changeCurrentRow1 (row, oldRow) {
  5417. row.id = row.documentDefinitionListId
  5418. // 判断是否是获取焦点的事件
  5419. if (row) {
  5420. this.otherDocumentCurrentRow.bu = this.otherDocumentCurrentRow.site + "-" + this.otherDocumentCurrentRow.buNo
  5421. this.otherDocumentCurrentRow = JSON.parse(JSON.stringify(row))
  5422. }
  5423. },
  5424. projectAllDocumentClickRow (row) {
  5425. row.id = row.documentDefinitionListId
  5426. this.projectAllDocumentCurrentRow = JSON.parse(JSON.stringify(row))
  5427. },
  5428. /**
  5429. * 上传文件
  5430. */
  5431. uploadFile () {
  5432. this.isEditable = false;
  5433. this.fileList = []
  5434. this.proofingCurrentRow.proofingId= -1
  5435. this.proofingCurrentRow.proofingNo = '*'
  5436. this.uploadDialog = true
  5437. },
  5438. /**
  5439. * 上传文件
  5440. */
  5441. uploadAllDocumentFile (row) {
  5442. this.isEditable = false;
  5443. this.fileList = []
  5444. if (row.proofingId === -1 || row.proofingId === '-1' || row.proofingId === null || row.proofingId === undefined || row.proofingId === '') {
  5445. this.isMassProductionStage = true
  5446. this.folder = 'projectPMPDocumentFiles'
  5447. } else {
  5448. this.isMassProductionStage = false
  5449. this.folder = 'projectPPDocumentFiles'
  5450. }
  5451. this.getProofDocument(row)
  5452. this.uploadDialog1 = true
  5453. //打开组件 去做新增业务
  5454. // this.$nextTick(() => {
  5455. // this.$refs.partUploadFile.init(currentData);
  5456. // })
  5457. },
  5458. getProofDocument(row){
  5459. let inData = {}
  5460. if (row){
  5461. inData = {
  5462. site: this.resolveCurrentPartSite(row.site || this.proofingCurrentRow.site),
  5463. buNo: this.proofingCurrentRow.buNo,
  5464. projectId: row.projectId,
  5465. projectPartId: this.proofingCurrentRow.projectPartId,
  5466. proofingId: row.proofingId,
  5467. userId: this.$store.state.user.id,
  5468. languageCode: this.$i18n.locale
  5469. }
  5470. } else {
  5471. inData = {
  5472. site: this.proofingCurrentRow.site,
  5473. buNo: this.proofingCurrentRow.buNo,
  5474. projectId: this.proofingCurrentRow.projectId,
  5475. projectNo: this.proofingCurrentRow.projectNo,
  5476. projectDesc: this.proofingCurrentRow.projectDesc,
  5477. projectPartId: this.proofingCurrentRow.projectPartId,
  5478. testPartNo: this.proofingCurrentRow.testPartNo,
  5479. partDesc: this.proofingCurrentRow.partDesc,
  5480. customerId: this.proofingCurrentRow.customerNo,
  5481. customerDesc: this.proofingCurrentRow.customerDesc,
  5482. page: 1,
  5483. limit: 1000
  5484. }
  5485. }
  5486. getProofDocument(inData).then(({data}) => {
  5487. if (row){
  5488. if (data && data.code === 0) {
  5489. this.projectPartDocumentList = data.page.list
  5490. for (let i = 0; i < this.projectPartDocumentList.length; i++) {
  5491. if (this.projectPartDocumentList[i].responsibleDepartment === 'PM/Sales'){
  5492. this.projectPartDocumentList[i].projectLeader = this.proofingCurrentRow.projectManager.split("-")[1]
  5493. } else if(this.projectPartDocumentList[i].responsibleDepartment === 'PjM'){
  5494. this.projectPartDocumentList[i].projectLeader = this.proofingCurrentRow.projectOwner.split("-")[1]
  5495. } else if(this.projectPartDocumentList[i].responsibleDepartment === 'Engineer'){
  5496. this.projectPartDocumentList[i].projectLeader = this.proofingCurrentRow.engineer.split("-")[1]
  5497. } else if(this.projectPartDocumentList[i].responsibleDepartment === 'IPQC-Lam/Pri/Etch/Slit'){
  5498. this.projectPartDocumentList[i].projectLeader = this.proofingCurrentRow.cQualityEngineer1.split("-")[1]
  5499. } else if(this.projectPartDocumentList[i].responsibleDepartment === 'IPQC-Converting'){
  5500. this.projectPartDocumentList[i].projectLeader = this.proofingCurrentRow.cQualityEngineer2.split("-")[1]
  5501. } else if(this.projectPartDocumentList[i].responsibleDepartment === 'FQC1'){
  5502. this.projectPartDocumentList[i].projectLeader = this.proofingCurrentRow.cQualityEngineer3.split("-")[1]
  5503. } else if(this.projectPartDocumentList[i].responsibleDepartment === 'MFQ'){
  5504. this.projectPartDocumentList[i].projectLeader = this.proofingCurrentRow.cManufactureEngineer.split("-")[1]
  5505. }else if (this.projectPartDocumentList[i].responsibleDepartment === 'SQE') {
  5506. if (this.proofingCurrentRow.cQualityEngineer4 != null && this.proofingCurrentRow.cQualityEngineer4 !== '') {
  5507. this.projectPartDocumentList[i].projectLeader = this.proofingCurrentRow.cQualityEngineer4.split('-')[1] // 截取用户名
  5508. }
  5509. }
  5510. else if (this.projectPartDocumentList[i].responsibleDepartment === 'FQC2') {
  5511. if (this.proofingCurrentRow.cQualityEngineer5 != null && this.proofingCurrentRow.cQualityEngineer5 !== '') {
  5512. this.projectPartDocumentList[i].projectLeader = this.proofingCurrentRow.cQualityEngineer5.split('-')[1] // 截取用户名
  5513. }
  5514. }
  5515. else if (this.projectPartDocumentList[i].responsibleDepartment === 'IQC') {
  5516. if (this.proofingCurrentRow.cQualityEngineer6 != null && this.proofingCurrentRow.cQualityEngineer6 !== '') {
  5517. this.projectPartDocumentList[i].projectLeader = this.proofingCurrentRow.cQualityEngineer6.split('-')[1] // 截取用户名
  5518. }
  5519. }
  5520. else if(this.projectPartDocumentList[i].responsibleDepartment === 'DocEngineer'){
  5521. if (this.proofingCurrentRow.docEngineer != null && this.proofingCurrentRow.docEngineer !== ''){
  5522. this.projectPartDocumentList[i].projectLeader= this.proofingCurrentRow.docEngineer.split('-')[1] // 截取用户名
  5523. }
  5524. } else if(this.projectPartDocumentList[i].responsibleDepartment === 'DocEngineer2'){
  5525. if (this.proofingCurrentRow.docEngineer2 != null && this.proofingCurrentRow.docEngineer2 !== ''){
  5526. this.projectPartDocumentList[i].projectLeader= this.proofingCurrentRow.docEngineer2.split('-')[1] // 截取用户名
  5527. }
  5528. } else if (this.projectPartDocumentList[i].responsibleDepartment === 'IPQC-Hardtag') {
  5529. if (this.proofingCurrentRow.ipqcHardTag != null && this.proofingCurrentRow.ipqcHardTag !== '') {
  5530. this.projectPartDocumentList[i].projectLeader = this.proofingCurrentRow.ipqcHardTag.split('-')[1] // 截取用户名
  5531. }
  5532. } else if (this.projectPartDocumentList[i].responsibleDepartment === '前道工程师') {
  5533. if (this.proofingCurrentRow.cQualityEngineer7 != null && this.proofingCurrentRow.cQualityEngineer7 !== '') {
  5534. this.projectPartDocumentList[i].projectLeader = this.proofingCurrentRow.cQualityEngineer7.split('-')[1] // 截取用户名
  5535. }
  5536. } else if (this.projectPartDocumentList[i].responsibleDepartment === 'QC' || this.projectPartDocumentList[i].responsibleDepartment === 'RQC') {
  5537. if (this.proofingCurrentRow.qcEngineer != null && this.proofingCurrentRow.qcEngineer !== '') {
  5538. this.projectPartDocumentList[i].projectLeader = this.splitUserDisplayName(this.proofingCurrentRow.qcEngineer)
  5539. }
  5540. } else if (this.projectPartDocumentList[i].responsibleDepartment === 'PE' || this.projectPartDocumentList[i].responsibleDepartment === 'RPE') {
  5541. if (this.proofingCurrentRow.peEngineer != null && this.proofingCurrentRow.peEngineer !== '') {
  5542. this.projectPartDocumentList[i].projectLeader = this.splitUserDisplayName(this.proofingCurrentRow.peEngineer)
  5543. }
  5544. } else if (this.projectPartDocumentList[i].responsibleDepartment === 'EE' || this.projectPartDocumentList[i].responsibleDepartment === 'REE') {
  5545. if (this.proofingCurrentRow.eeEngineer != null && this.proofingCurrentRow.eeEngineer !== '') {
  5546. this.projectPartDocumentList[i].projectLeader = this.splitUserDisplayName(this.proofingCurrentRow.eeEngineer)
  5547. }
  5548. } else if (this.projectPartDocumentList[i].responsibleDepartment === 'SQE-ME' || this.projectPartDocumentList[i].responsibleDepartment === 'RSQEME') {
  5549. const sqeMe = this.proofingCurrentRow.sqemeEngineer
  5550. if (sqeMe != null && sqeMe !== '') {
  5551. this.projectPartDocumentList[i].projectLeader = this.splitUserDisplayName(sqeMe)
  5552. }
  5553. } else if (this.projectPartDocumentList[i].responsibleDepartment === 'SQE-EE' || this.projectPartDocumentList[i].responsibleDepartment === 'RSQEEE') {
  5554. const sqeEe = this.proofingCurrentRow.sqeeeEngineer
  5555. if (sqeEe != null && sqeEe !== '') {
  5556. this.projectPartDocumentList[i].projectLeader = this.splitUserDisplayName(sqeEe)
  5557. }
  5558. }
  5559. else {
  5560. this.projectPartDocumentList[i].projectLeader = ''
  5561. }
  5562. this.projectPartDocumentList[i].buNo = inData.buNo
  5563. }
  5564. }
  5565. } else {
  5566. if (data && data.code === 0) {
  5567. this.proofDocumentList = data.page.list
  5568. for (let i = 0; i < this.proofDocumentList.length; i++) {
  5569. this.proofDocumentList[i].buNo = this.proofingCurrentRow.buNo
  5570. }
  5571. } else {
  5572. this.proofDocumentList = []
  5573. }
  5574. }
  5575. })
  5576. },
  5577. uploadOtherDocument () {
  5578. this.isEditable = true;
  5579. this.fileList = []
  5580. this.otherDocumentCurrentRow = {
  5581. proofingId: -1,
  5582. documentTypeId: '', // 清空文档类型ID
  5583. id: '-1'
  5584. };
  5585. this.uploadDialog = true
  5586. //打开组件 去做新增业务
  5587. // this.$nextTick(() => {
  5588. // this.$refs.partUploadFile.init(currentData);
  5589. // })
  5590. },
  5591. massProductionDocumentDelete(row) {
  5592. let tempData = {
  5593. site: row.site,
  5594. username: this.$store.state.user.name,
  5595. buNo: row.buNo,
  5596. proofingId: row.proofingId,
  5597. proofingNo: row.proofingNo,
  5598. projectId: row.projectId,
  5599. projectNo: row.projectNo,
  5600. projectDesc: row.projectDesc,
  5601. customerId: row.customerNo,
  5602. customerDesc: row.customerDesc,
  5603. projectPartId: this.proofingCurrentRow.projectPartId,
  5604. testPartNo: this.proofingCurrentRow.testPartNo,
  5605. partDesc: row.partDesc,
  5606. id: row.id,
  5607. fileName: row.fileName,
  5608. uploadedFlag: row.uploadedFlag,
  5609. cAdditionalInfo: row.cAdditionalInfo,
  5610. createBy: row.createdBy,
  5611. documentDefinitionListId: row.documentDefinitionListId,
  5612. documentType: row.documentType,
  5613. documentId: row.documentId,
  5614. }
  5615. let name = '转量产阶段'
  5616. if (row.proofingId !== -1) {
  5617. name = '打样'
  5618. }
  5619. this.$confirm('是否删除该' + name +'文档的文件?', '提示', {
  5620. confirmButtonText: '确定',
  5621. cancelButtonText: '取消',
  5622. type: 'warning'
  5623. }).then(() => {
  5624. deleteProofDocument(tempData).then(({data}) => {
  5625. if (data && data.code === 0) {
  5626. this.$message({
  5627. message: '删除成功',
  5628. type: 'success'
  5629. })
  5630. //刷新表格
  5631. this.refreshCurrentTabTable()
  5632. }
  5633. // 否则提示后端返回的错误信息
  5634. else {
  5635. this.$alert(data.msg, '错误', {
  5636. confirmButtonText: '确定'
  5637. })
  5638. }
  5639. })
  5640. }).catch(() => {
  5641. this.$message({
  5642. type: 'info',
  5643. message: '已取消删除'
  5644. });
  5645. });
  5646. },
  5647. getProjectOtherDocument () {
  5648. const currentSite = this.resolveCurrentPartSite(this.proofingCurrentRow.site)
  5649. let tempData = {
  5650. site: currentSite,
  5651. username: this.$store.state.user.name,
  5652. buNo: this.proofingCurrentRow.buNo,
  5653. proofingId: -1,
  5654. projectId: this.proofingCurrentRow.projectId,
  5655. projectNo: this.proofingCurrentRow.projectNo,
  5656. projectDesc: this.proofingCurrentRow.projectDesc,
  5657. projectPartId: this.proofingCurrentRow.projectPartId,
  5658. testPartNo: this.proofingCurrentRow.testPartNo,
  5659. partDesc: this.proofingCurrentRow.partDesc,
  5660. customerId: this.proofingCurrentRow.customerNo,
  5661. customerDesc: this.proofingCurrentRow.customerDesc,
  5662. page: 1,
  5663. limit: -1
  5664. }
  5665. getProjectOtherDocument(tempData).then(({data}) => {
  5666. if (data && data.code === 0) {
  5667. this.projectOtherDocumentList = data.page.list
  5668. this.proofDocumentListDefinition = []
  5669. // 遍历proofDocumentList
  5670. for (let i = 0; i < this.projectOtherDocumentList.length; i++) {
  5671. this.projectOtherDocumentList[i].buNo = this.proofingCurrentRow.buNo
  5672. if (this.projectOtherDocumentList[i].documentTypeId !== 'N/A') {
  5673. this.proofDocumentListDefinition.push(this.projectOtherDocumentList[i])
  5674. }
  5675. if (this.projectOtherDocumentList[i].responsibleDepartment === 'PM/Sales') {
  5676. this.projectOtherDocumentList[i].projectLeader = this.proofingCurrentRow.projectManager.split("-")[1]
  5677. } else if (this.projectOtherDocumentList[i].responsibleDepartment === 'PjM') {
  5678. this.projectOtherDocumentList[i].projectLeader = this.proofingCurrentRow.projectOwner.split("-")[1]
  5679. } else if (this.projectOtherDocumentList[i].responsibleDepartment === 'Engineer') {
  5680. this.projectOtherDocumentList[i].projectLeader = this.proofingCurrentRow.engineer.split("-")[1]
  5681. } else if (this.projectOtherDocumentList[i].responsibleDepartment === 'IPQC-Lam/Pri/Etch/Slit') {
  5682. this.projectOtherDocumentList[i].projectLeader = this.proofingCurrentRow.cQualityEngineer1.split("-")[1]
  5683. } else if (this.projectOtherDocumentList[i].responsibleDepartment === 'IPQC-Converting') {
  5684. this.projectOtherDocumentList[i].projectLeader = this.proofingCurrentRow.cQualityEngineer2.split("-")[1]
  5685. } else if (this.projectOtherDocumentList[i].responsibleDepartment === 'FQC1') {
  5686. this.projectOtherDocumentList[i].projectLeader = this.proofingCurrentRow.cQualityEngineer3.split("-")[1]
  5687. } else if (this.projectOtherDocumentList[i].responsibleDepartment === 'MFQ') {
  5688. this.projectOtherDocumentList[i].projectLeader = this.proofingCurrentRow.cManufactureEngineer.split("-")[1]
  5689. } else if (this.projectOtherDocumentList[i].responsibleDepartment === 'SQE') {
  5690. if (this.proofingCurrentRow.cQualityEngineer4 != null && this.proofingCurrentRow.cQualityEngineer4 !== '') {
  5691. this.projectOtherDocumentList[i].projectLeader = this.proofingCurrentRow.cQualityEngineer4.split('-')[1] // 截取用户名
  5692. }
  5693. } else if (this.projectOtherDocumentList[i].responsibleDepartment === 'FQC2') {
  5694. if (this.proofingCurrentRow.cQualityEngineer5 != null && this.proofingCurrentRow.cQualityEngineer5 !== '') {
  5695. this.projectOtherDocumentList[i].projectLeader = this.proofingCurrentRow.cQualityEngineer5.split('-')[1] // 截取用户名
  5696. }
  5697. } else if (this.projectOtherDocumentList[i].responsibleDepartment === 'IQC') {
  5698. if (this.proofingCurrentRow.cQualityEngineer6 != null && this.proofingCurrentRow.cQualityEngineer6 !== '') {
  5699. this.projectOtherDocumentList[i].projectLeader = this.proofingCurrentRow.cQualityEngineer6.split('-')[1] // 截取用户名
  5700. }
  5701. } else if (this.projectOtherDocumentList[i].responsibleDepartment === 'DocEngineer') {
  5702. if (this.proofingCurrentRow.docEngineer != null && this.proofingCurrentRow.docEngineer !== '') {
  5703. this.projectOtherDocumentList[i].projectLeader = this.proofingCurrentRow.docEngineer.split('-')[1] // 截取用户名
  5704. }
  5705. } else if (this.projectOtherDocumentList[i].responsibleDepartment === 'DocEngineer2') {
  5706. if (this.proofingCurrentRow.docEngineer2 != null && this.proofingCurrentRow.docEngineer2 !== '') {
  5707. this.projectOtherDocumentList[i].projectLeader = this.proofingCurrentRow.docEngineer2.split('-')[1] // 截取用户名
  5708. }
  5709. } else if (this.projectOtherDocumentList[i].responsibleDepartment === 'IPQC-Hardtag') {
  5710. if (this.proofingCurrentRow.ipqcHardTag != null && this.proofingCurrentRow.ipqcHardTag !== '') {
  5711. this.projectOtherDocumentList[i].projectLeader = this.proofingCurrentRow.ipqcHardTag.split('-')[1] // 截取用户名
  5712. }
  5713. } else if (this.projectOtherDocumentList[i].responsibleDepartment === '前道工程师') {
  5714. if (this.proofingCurrentRow.cQualityEngineer7 != null && this.proofingCurrentRow.cQualityEngineer7 !== '') {
  5715. this.projectOtherDocumentList[i].projectLeader = this.proofingCurrentRow.cQualityEngineer7.split('-')[1] // 截取用户名
  5716. }
  5717. } else if (this.projectOtherDocumentList[i].responsibleDepartment === 'QC' || this.projectOtherDocumentList[i].responsibleDepartment === 'RQC') {
  5718. if (this.proofingCurrentRow.qcEngineer != null && this.proofingCurrentRow.qcEngineer !== '') {
  5719. this.projectOtherDocumentList[i].projectLeader = this.splitUserDisplayName(this.proofingCurrentRow.qcEngineer)
  5720. }
  5721. } else if (this.projectOtherDocumentList[i].responsibleDepartment === 'PE' || this.projectOtherDocumentList[i].responsibleDepartment === 'RPE') {
  5722. if (this.proofingCurrentRow.peEngineer != null && this.proofingCurrentRow.peEngineer !== '') {
  5723. this.projectOtherDocumentList[i].projectLeader = this.splitUserDisplayName(this.proofingCurrentRow.peEngineer)
  5724. }
  5725. } else if (this.projectOtherDocumentList[i].responsibleDepartment === 'EE' || this.projectOtherDocumentList[i].responsibleDepartment === 'REE') {
  5726. if (this.proofingCurrentRow.eeEngineer != null && this.proofingCurrentRow.eeEngineer !== '') {
  5727. this.projectOtherDocumentList[i].projectLeader = this.splitUserDisplayName(this.proofingCurrentRow.eeEngineer)
  5728. }
  5729. } else if (this.projectOtherDocumentList[i].responsibleDepartment === 'SQE-ME' || this.projectOtherDocumentList[i].responsibleDepartment === 'RSQEME') {
  5730. const sqeMe = this.proofingCurrentRow.sqemeEngineer
  5731. if (sqeMe != null && sqeMe !== '') {
  5732. this.projectOtherDocumentList[i].projectLeader = this.splitUserDisplayName(sqeMe)
  5733. }
  5734. } else if (this.projectOtherDocumentList[i].responsibleDepartment === 'SQE-EE' || this.projectOtherDocumentList[i].responsibleDepartment === 'RSQEEE') {
  5735. const sqeEe = this.proofingCurrentRow.sqeeeEngineer
  5736. if (sqeEe != null && sqeEe !== '') {
  5737. this.projectOtherDocumentList[i].projectLeader = this.splitUserDisplayName(sqeEe)
  5738. }
  5739. }
  5740. else {
  5741. this.projectOtherDocumentList[i].projectLeader = ''
  5742. }
  5743. }
  5744. } else {
  5745. this.projectOtherDocumentList = []
  5746. }
  5747. })
  5748. },
  5749. getColumnValue(row, column) {
  5750. // 根据列的配置信息决定显示的值
  5751. if (column.columnProp === 'documentType') {
  5752. return this.getCombinedDocumentType(row);
  5753. }
  5754. else if (column.columnProp === 'documentDesc') {
  5755. return row.documentDesc; // 或者根据实际需求处理其他字段的显示
  5756. }
  5757. else {
  5758. return row[column.columnProp]; // 默认返回对应列的值
  5759. }
  5760. },
  5761. getCombinedDocumentType(row) {
  5762. // 根据您的需求,组合或拼接需要显示的字段
  5763. if (row.documentType === null || row.documentType === undefined) {
  5764. return row.documentDesc
  5765. }else {
  5766. return row.documentType
  5767. }
  5768. },
  5769. // 动态列开始 获取 用户保存的 格式列
  5770. async getTableUserColumn(tableId, columnId) {
  5771. let queryTableUser = {
  5772. userId: this.$store.state.user.name,
  5773. functionId: this.$route.meta.menuId,
  5774. tableId: tableId,
  5775. status: true,
  5776. languageCode: this.$i18n.locale
  5777. }
  5778. await getTableUserListLanguage(queryTableUser).then(({data}) => {
  5779. if (data.rows.length > 0) {
  5780. //this.columnList1 = []
  5781. switch (columnId) {
  5782. case 1:
  5783. this.columnList = data.rows
  5784. this.refreshMainTableLayout()
  5785. break;
  5786. // case 2:
  5787. // this.detailColumnList = data.rows
  5788. // break;
  5789. // case 3:
  5790. // this.columnList2 = data.rows
  5791. // break;
  5792. // case 4:
  5793. // this.columnList3 = data.rows
  5794. // break;
  5795. }
  5796. } else {
  5797. this.getColumnList(tableId, columnId)
  5798. }
  5799. })
  5800. },
  5801. projectDocumentList () {
  5802. const currentSite = this.resolveCurrentPartSite(this.proofingCurrentRow.site)
  5803. this.modalData = {
  5804. site: currentSite,
  5805. buNo: this.proofingCurrentRow.buNo,
  5806. projectId: this.proofingCurrentRow.projectId,
  5807. projectNo: this.proofingCurrentRow.projectNo,
  5808. projectDesc: this.proofingCurrentRow.projectDesc,
  5809. customerNo: this.proofingCurrentRow.customerNo,
  5810. customerDesc: this.proofingCurrentRow.customerDesc,
  5811. bu: currentSite + '_' + this.proofingCurrentRow.buNo,
  5812. testPartNo: this.proofingCurrentRow.testPartNo,
  5813. partDesc: this.proofingCurrentRow.partDesc,
  5814. projectCategory: this.proofingCurrentRow.projectCategory,
  5815. cProjectTypeDb: this.proofingCurrentRow.projectCategory,
  5816. proofingNo: '*',
  5817. proofingId: -1,
  5818. rrequiredDeliveryDate: '',
  5819. createDate: new Date(),
  5820. createBy: this.$store.state.user.name,
  5821. limit: 1000,
  5822. page: 1
  5823. }
  5824. this.searchProjectDocumentTypeData.site = currentSite
  5825. this.getProjectOtherDocument()
  5826. this.projectDocumentListVisible = true
  5827. },
  5828. projectDocumentListVisibleFalse() {
  5829. this.projectDocumentListVisible = false
  5830. this.proofDocumentListDefinition = []
  5831. },
  5832. deleteProjectDocumentType(row) {
  5833. this.$confirm('是否删除该文档清单?', '提示', {
  5834. confirmButtonText: '确定',
  5835. cancelButtonText: '取消',
  5836. type: 'warning'
  5837. }).then(() => {
  5838. deleteDocumentType(row).then(({data}) => {
  5839. if (data && data.code === 0) {
  5840. this.$message({
  5841. message: '删除成功',
  5842. type: 'success',
  5843. })
  5844. this.getProjectOtherDocument()
  5845. this.getProofDocument()
  5846. } else {
  5847. this.$alert(data.msg, '错误', {
  5848. confirmButtonText: '确定'
  5849. })
  5850. }
  5851. })
  5852. }).catch(() => {
  5853. this.$message({
  5854. type: 'info',
  5855. message: '已取消删除'
  5856. });
  5857. });
  5858. },
  5859. closeAddProjectDocumentTypeFlag() {
  5860. this.addProjectDocumentTypeFlag = false
  5861. const currentSite = this.resolveCurrentPartSite(this.modalData.site)
  5862. this.searchProjectDocumentTypeData = {
  5863. site: currentSite,
  5864. projectNo: '',
  5865. proofingNo: '*',
  5866. documentTypeId: '',
  5867. documentType: '',
  5868. responsibleDepartment: '',
  5869. estimatedCompletionDays: '',
  5870. page: 1,
  5871. limit: 1000
  5872. }
  5873. this.extraProjectDocumentList = []
  5874. },
  5875. filteredProjectAllDocumentList() {
  5876. this.projectAllDocumentList.map(item => {
  5877. item.id = item.documentDefinitionListId
  5878. })
  5879. return this.projectAllDocumentList.filter(item => item.uploadedFlag !== 'N')
  5880. },
  5881. searchProjectDocumentTypeList() {
  5882. this.searchProjectDocumentTypeData.site = this.resolveCurrentPartSite(this.modalData.site || this.proofingCurrentRow.site)
  5883. this.searchProjectDocumentTypeData.proofingNo = '*'
  5884. this.searchProjectDocumentTypeData.projectNo = this.modalData.projectNo
  5885. getExtraDocumentList(this.searchProjectDocumentTypeData).then(({data}) => {
  5886. if (data && data.code === 0) {
  5887. this.extraProjectDocumentList = data.page.list
  5888. } else {
  5889. this.extraProjectDocumentList = []
  5890. }
  5891. })
  5892. },
  5893. selectionProjectDocument(val) {
  5894. this.projectDocumentSelection = val
  5895. },
  5896. selectionCopyDocument(val) {
  5897. this.documentCopySelection = val;
  5898. },
  5899. saveSelectionProjectDocumentType() {
  5900. const currentSite = this.resolveCurrentPartSite(this.modalData.site || this.proofingCurrentRow.site)
  5901. if (this.projectDocumentSelection.length === 0) {
  5902. this.$message({
  5903. message: '请选择文档类型',
  5904. type: 'error'
  5905. })
  5906. this.extraProjectDocumentList = []
  5907. return
  5908. }
  5909. this.projectDocumentSelection.forEach((item) => {
  5910. const inData = {
  5911. site: currentSite,
  5912. proofingId: -1,
  5913. proofingNo: '*',
  5914. projectId: this.proofingCurrentRow.projectId,
  5915. projectNo: this.modalData.projectNo,
  5916. projectPartId: this.proofingCurrentRow.projectPartId,
  5917. testPartNo: this.modalData.testPartNo,
  5918. documentTypeId: item.documentTypeId,
  5919. documentType: item.documentType,
  5920. responsibleDepartment: item.responsibleDepartment,
  5921. estimatedCompletionDays: item.estimatedCompletionDays,
  5922. createBy: this.$store.state.user.name,
  5923. }
  5924. proofingDocumentNEW(inData).then(({data}) => {
  5925. //区分请求成功和失败的状况
  5926. if (data && data.code === 0) {
  5927. this.$message({
  5928. message: '新增成功',
  5929. type: 'success'
  5930. })
  5931. this.addProjectDocumentTypeFlag = false
  5932. //刷新表格
  5933. this.refreshCurrentTabTable()
  5934. } else {
  5935. this.$message({
  5936. message: '新增失败',
  5937. type: 'error'
  5938. })
  5939. }
  5940. })
  5941. })
  5942. },
  5943. searchProjectAllDocumentList () {
  5944. const currentSite = this.resolveCurrentPartSite(this.proofingCurrentRow.site)
  5945. let inData = {
  5946. site: currentSite,
  5947. username: this.$store.state.user.name,
  5948. buNo: this.proofingCurrentRow.buNo,
  5949. proofingId: -999,
  5950. projectId: this.proofingCurrentRow.projectId,
  5951. projectNo: this.proofingCurrentRow.projectNo,
  5952. projectDesc: this.proofingCurrentRow.projectDesc,
  5953. projectPartId: this.proofingCurrentRow.projectPartId,
  5954. testPartNo: this.proofingCurrentRow.testPartNo,
  5955. partDesc: this.proofingCurrentRow.partDesc,
  5956. customerId: this.proofingCurrentRow.customerNo,
  5957. customerDesc: this.proofingCurrentRow.customerDesc,
  5958. page: 1,
  5959. limit: 1000
  5960. }
  5961. searchProjectAllDocument(inData).then(({data}) => {
  5962. if (data && data.code === 0){
  5963. this.projectAllDocumentList = data.page.list;
  5964. for (let i = 0; i < this.projectAllDocumentList.length; i++) {
  5965. if (this.projectAllDocumentList[i].responsibleDepartment === 'PM/Sales'){
  5966. this.projectAllDocumentList[i].projectLeader = this.proofingCurrentRow.projectManager.split("-")[1]
  5967. } else if(this.projectAllDocumentList[i].responsibleDepartment === 'PjM'){
  5968. this.projectAllDocumentList[i].projectLeader = this.proofingCurrentRow.projectOwner.split("-")[1]
  5969. } else if(this.projectAllDocumentList[i].responsibleDepartment === 'Engineer'){
  5970. this.projectAllDocumentList[i].projectLeader = this.proofingCurrentRow.engineer.split("-")[1]
  5971. } else if(this.projectAllDocumentList[i].responsibleDepartment === 'IPQC-Lam/Pri/Etch/Slit'){
  5972. this.projectAllDocumentList[i].projectLeader = this.proofingCurrentRow.cQualityEngineer1.split("-")[1]
  5973. } else if(this.projectAllDocumentList[i].responsibleDepartment === 'IPQC-Converting'){
  5974. this.projectAllDocumentList[i].projectLeader = this.proofingCurrentRow.cQualityEngineer2.split("-")[1]
  5975. } else if(this.projectAllDocumentList[i].responsibleDepartment === 'FQC1'){
  5976. this.projectAllDocumentList[i].projectLeader = this.proofingCurrentRow.cQualityEngineer3.split("-")[1]
  5977. } else if(this.projectAllDocumentList[i].responsibleDepartment === 'MFQ'){
  5978. this.projectAllDocumentList[i].projectLeader = this.proofingCurrentRow.cManufactureEngineer.split("-")[1]
  5979. } else if (this.projectAllDocumentList[i].responsibleDepartment === 'SQE') {
  5980. if (this.proofingCurrentRow.cQualityEngineer4 != null && this.proofingCurrentRow.cQualityEngineer4 !== '') {
  5981. this.projectAllDocumentList[i].projectLeader = this.proofingCurrentRow.cQualityEngineer4.split('-')[1] // 截取用户名
  5982. }
  5983. } else if (this.projectAllDocumentList[i].responsibleDepartment === 'FQC2') {
  5984. if (this.proofingCurrentRow.cQualityEngineer5 != null && this.proofingCurrentRow.cQualityEngineer5 !== '') {
  5985. this.projectAllDocumentList[i].projectLeader = this.proofingCurrentRow.cQualityEngineer5.split('-')[1] // 截取用户名
  5986. }
  5987. }
  5988. else if (this.projectAllDocumentList[i].responsibleDepartment === 'IQC') {
  5989. if (this.proofingCurrentRow.cQualityEngineer6 != null && this.proofingCurrentRow.cQualityEngineer6 !== '') {
  5990. this.projectAllDocumentList[i].projectLeader = this.proofingCurrentRow.cQualityEngineer6.split('-')[1] // 截取用户名
  5991. }
  5992. }
  5993. else if (this.projectAllDocumentList[i].responsibleDepartment === 'DocEngineer'){
  5994. if (this.proofingCurrentRow.docEngineer != null && this.proofingCurrentRow.docEngineer !== ''){
  5995. this.projectAllDocumentList[i].projectLeader= this.proofingCurrentRow.docEngineer.split('-')[1] // 截取用户名
  5996. }
  5997. } else if (this.projectAllDocumentList[i].responsibleDepartment === 'DocEngineer2'){
  5998. if (this.proofingCurrentRow.docEngineer2 != null && this.proofingCurrentRow.docEngineer2 !== ''){
  5999. this.projectAllDocumentList[i].projectLeader= this.proofingCurrentRow.docEngineer2.split('-')[1] // 截取用户名
  6000. }
  6001. }
  6002. else if (this.projectAllDocumentList[i].responsibleDepartment === 'IPQC-Hardtag') {
  6003. if (this.proofingCurrentRow.ipqcHardTag != null && this.proofingCurrentRow.ipqcHardTag !== '') {
  6004. this.projectAllDocumentList[i].projectLeader = this.proofingCurrentRow.ipqcHardTag.split('-')[1] // 截取用户名
  6005. }
  6006. } else if (this.projectAllDocumentList[i].responsibleDepartment === '前道工程师') {
  6007. if (this.proofingCurrentRow.cQualityEngineer7 != null && this.proofingCurrentRow.cQualityEngineer7 !== '') {
  6008. this.projectAllDocumentList[i].projectLeader = this.proofingCurrentRow.cQualityEngineer7.split('-')[1] // 截取用户名
  6009. }
  6010. } else if (this.projectAllDocumentList[i].responsibleDepartment === 'QC' || this.projectAllDocumentList[i].responsibleDepartment === 'RQC') {
  6011. if (this.proofingCurrentRow.qcEngineer != null && this.proofingCurrentRow.qcEngineer !== '') {
  6012. this.projectAllDocumentList[i].projectLeader = this.splitUserDisplayName(this.proofingCurrentRow.qcEngineer)
  6013. }
  6014. } else if (this.projectAllDocumentList[i].responsibleDepartment === 'PE' || this.projectAllDocumentList[i].responsibleDepartment === 'RPE') {
  6015. if (this.proofingCurrentRow.peEngineer != null && this.proofingCurrentRow.peEngineer !== '') {
  6016. this.projectAllDocumentList[i].projectLeader = this.splitUserDisplayName(this.proofingCurrentRow.peEngineer)
  6017. }
  6018. } else if (this.projectAllDocumentList[i].responsibleDepartment === 'EE' || this.projectAllDocumentList[i].responsibleDepartment === 'REE') {
  6019. if (this.proofingCurrentRow.eeEngineer != null && this.proofingCurrentRow.eeEngineer !== '') {
  6020. this.projectAllDocumentList[i].projectLeader = this.splitUserDisplayName(this.proofingCurrentRow.eeEngineer)
  6021. }
  6022. } else if (this.projectAllDocumentList[i].responsibleDepartment === 'SQE-ME' || this.projectAllDocumentList[i].responsibleDepartment === 'RSQEME') {
  6023. const sqeMe = this.proofingCurrentRow.sqemeEngineer
  6024. if (sqeMe != null && sqeMe !== '') {
  6025. this.projectAllDocumentList[i].projectLeader = this.splitUserDisplayName(sqeMe)
  6026. }
  6027. } else if (this.projectAllDocumentList[i].responsibleDepartment === 'SQE-EE' || this.projectAllDocumentList[i].responsibleDepartment === 'RSQEEE') {
  6028. const sqeEe = this.proofingCurrentRow.sqeeeEngineer
  6029. if (sqeEe != null && sqeEe !== '') {
  6030. this.projectAllDocumentList[i].projectLeader = this.splitUserDisplayName(sqeEe)
  6031. }
  6032. } else {
  6033. this.projectAllDocumentList[i].projectLeader = ''
  6034. }
  6035. }
  6036. }
  6037. })
  6038. },
  6039. projectProductionValidationDocument () {
  6040. this.modalData = {
  6041. site: this.proofingCurrentRow.site,
  6042. buNo: this.proofingCurrentRow.buNo,
  6043. projectId: this.proofingCurrentRow.projectId,
  6044. projectNo: this.proofingCurrentRow.projectNo,
  6045. projectDesc: this.proofingCurrentRow.projectDesc,
  6046. customerNo: this.proofingCurrentRow.customerNo,
  6047. customerDesc: this.proofingCurrentRow.customerDesc,
  6048. bu: this.proofingCurrentRow.site + '_' + this.proofingCurrentRow.buNo,
  6049. testPartNo: this.proofingCurrentRow.testPartNo,
  6050. partDesc: this.proofingCurrentRow.partDesc,
  6051. projectCategory: this.proofingCurrentRow.projectCategory,
  6052. cProjectTypeDb: this.proofingCurrentRow.projectCategory,
  6053. proofingNo: 'ALL',
  6054. requiredDeliveryDate: '',
  6055. // new Date() GMT+8
  6056. wantedConfirmDate: new Date(),
  6057. createDate: new Date(),
  6058. createBy: this.$store.state.user.name,
  6059. limit: 1000,
  6060. page: 1
  6061. }
  6062. this.projectProductionValidationDocumentVisible = true
  6063. this.projectAllDocumentList1 = this.filteredProjectAllDocumentList()
  6064. },
  6065. handleDocumentSelectionChange(val) {
  6066. // 文档选择页签中选中数据发生变化时的处理
  6067. val.forEach(item => {
  6068. item.projectId = this.proofingCurrentRow.projectId
  6069. item.projectPartId = this.proofingCurrentRow.projectPartId
  6070. item.testPartNo = this.proofingCurrentRow.testPartNo
  6071. })
  6072. this.selectedDocumentItems = val;
  6073. },
  6074. searchConfirmatorList() {
  6075. let inData = {
  6076. site: this.proofingCurrentRow.site,
  6077. buNo: this.proofingCurrentRow.buNo,
  6078. username: this.confirmatoryData.username,
  6079. userDisplay: this.confirmatoryData.userDisplay,
  6080. proofingNo: 'ALL',
  6081. projectId: this.proofingCurrentRow.projectId,
  6082. projectNo: this.proofingCurrentRow.projectNo,
  6083. projectDesc: this.proofingCurrentRow.projectDesc,
  6084. testPartNo: this.proofingCurrentRow.testPartNo,
  6085. partDesc: this.proofingCurrentRow.partDesc,
  6086. customerId: this.proofingCurrentRow.customerNo,
  6087. customerDesc: this.proofingCurrentRow.customerDesc,
  6088. page: 1,
  6089. limit: 1000
  6090. }
  6091. searchConfirmatorList(inData).then(({data}) => {
  6092. if (data && data.code === 0){
  6093. this.projectAllDocumentConfirmatorList = data.page.list;
  6094. this.projectANotDocumentConfirmatorList = data.list;
  6095. }
  6096. })
  6097. },
  6098. //可选人员
  6099. confirmatoryClickRow1(row) {
  6100. this.$refs.confirmatoryTable1.toggleRowSelection(row);
  6101. },
  6102. //已选人员
  6103. confirmatoryClickRow2(row) {
  6104. this.$refs.confirmatoryTable2.toggleRowSelection(row);
  6105. },
  6106. selectionConfirmatory1(val) {
  6107. this.confirmatorySelection1 = val
  6108. },
  6109. selectionConfirmatory2(val) {
  6110. this.confirmatorySelection2 = val
  6111. },
  6112. addConfirmatory() {
  6113. if (this.confirmatorySelection1.length === 0) {
  6114. this.$message.warning('请选择可选用户!')
  6115. return
  6116. }
  6117. let inData = {
  6118. site: this.proofingCurrentRow.site,
  6119. buNo: this.proofingCurrentRow.buNo,
  6120. confirmatoryList: this.confirmatorySelection1,
  6121. createBy: this.$store.state.user.name
  6122. }
  6123. addConfirmatory(inData).then(({data}) => {
  6124. if (data && data.code === 0) {
  6125. this.searchConfirmatorList()
  6126. this.businessRoleSelections1 = []
  6127. } else {
  6128. this.$alert(data.msg, '错误', {
  6129. confirmButtonText: '确定'
  6130. })
  6131. }
  6132. })
  6133. },
  6134. deleteConfirmatory() {
  6135. if (this.confirmatorySelection2.length === 0) {
  6136. this.$message.warning('请选择已选用户!')
  6137. return
  6138. }
  6139. let inData = {
  6140. site: this.proofingCurrentRow.site,
  6141. buNo: this.proofingCurrentRow.buNo,
  6142. confirmatoryList: this.confirmatorySelection2,
  6143. createBy: this.$store.state.user.name
  6144. }
  6145. deleteConfirmatory(inData).then(({data}) => {
  6146. if (data && data.code === 0) {
  6147. this.searchConfirmatorList()
  6148. this.businessRoleSelections2 = []
  6149. } else {
  6150. this.$alert(data.msg, '错误', {
  6151. confirmButtonText: '确定'
  6152. })
  6153. }
  6154. })
  6155. },
  6156. saveProductionValidationDocument() {
  6157. if (this.selectedDocumentItems.length === 0) {
  6158. this.$message({
  6159. message: '请选择文档',
  6160. type: 'warning',
  6161. duration: 2000
  6162. })
  6163. return
  6164. }else {
  6165. this.$confirm('是否确认新增生产文档并向确认人员推送信息?', '提示', {
  6166. confirmButtonText: '确定',
  6167. cancelButtonText: '取消',
  6168. type: 'warning'
  6169. }).then(() => {
  6170. this.projectAllDocumentConfirmatorList.map(item => {
  6171. item.site = this.proofingCurrentRow.site;
  6172. item.projectId = this.proofingCurrentRow.projectId;
  6173. item.projectNo = this.proofingCurrentRow.projectNo;
  6174. item.orderRef1 = this.proofingCurrentRow.projectId;
  6175. item.orderRef2 = this.proofingCurrentRow.projectPartId;
  6176. item.projectPartId = this.proofingCurrentRow.projectPartId;
  6177. item.testPartNo = this.proofingCurrentRow.testPartNo;
  6178. item.partDesc = this.proofingCurrentRow.partDesc;
  6179. item.itemNo = this.projectAllDocumentConfirmatorList.indexOf(item) + 1;
  6180. item.wantedConfirmDate = new Date(this.modalData.wantedConfirmDate.getTime() + 8 * 60 * 60 * 1000);
  6181. item.createBy = this.$store.state.user.name;
  6182. item.selectedDocumentItems = this.selectedDocumentItems;
  6183. })
  6184. checkProductionValidationDocument(this.projectAllDocumentConfirmatorList)
  6185. .then(({ data }) => {
  6186. if (data) {
  6187. this.$confirm('该项目已存在生产确认记录或已经有人员进行了确认,是否删除重新推送确认信息?', '提示', {
  6188. confirmButtonText: '是',
  6189. cancelButtonText: '否',
  6190. type: 'warning'
  6191. }).then(() => {
  6192. deleteAndSaveHandle(this.projectAllDocumentConfirmatorList).then(({data}) => {
  6193. if (data && data.code === 0) {
  6194. this.$message({
  6195. message: '操作成功',
  6196. type: 'success'
  6197. })
  6198. this.confirmatorSendMailHandle(this.projectAllDocumentConfirmatorList.at(0))
  6199. this.projectProductionValidationDocumentVisible = false
  6200. } else {
  6201. this.$alert("操作失败,请检查确认人员和确认文档或联系管理员!(" + data.msg + ")", '错误', {
  6202. confirmButtonText: '确定'
  6203. })
  6204. }
  6205. })
  6206. }).catch(() => {
  6207. this.$message({
  6208. type: 'info',
  6209. message: '已取消操作'
  6210. });
  6211. });
  6212. } else {
  6213. saveHandle(this.projectAllDocumentConfirmatorList).then(({data}) => {
  6214. if (data && data.code === 0) {
  6215. this.$message({
  6216. message: '操作成功',
  6217. type: 'success'
  6218. })
  6219. this.confirmatorSendMailHandle(this.projectAllDocumentConfirmatorList.at(0))
  6220. this.projectProductionValidationDocumentVisible = false
  6221. } else {
  6222. this.$alert("操作失败,请检查确认人员和确认文档或联系管理员!(" + data.msg + ")", '错误', {
  6223. confirmButtonText: '确定'
  6224. })
  6225. }
  6226. })
  6227. }
  6228. });
  6229. }).catch(() => {
  6230. this.$message({
  6231. type: 'info',
  6232. message: '已取消操作'
  6233. });
  6234. });
  6235. }
  6236. },
  6237. getConfirmProgressDocumentList() {
  6238. let inData = {
  6239. site: this.proofingCurrentRow.site,
  6240. orderRef1: this.proofingCurrentRow.projectId,
  6241. orderRef2: this.proofingCurrentRow.projectPartId,
  6242. page: 1,
  6243. limit: 1000
  6244. }
  6245. searchConfirmProgressDocumentList(inData).then(({data}) => {
  6246. if (data && data.code === 0){
  6247. this.confirmProgressDocumentList = data.page.list;
  6248. }
  6249. })
  6250. },
  6251. getConfirmProgressPusherList() {
  6252. return new Promise((resolve, reject) => {
  6253. let inData = {
  6254. site: this.proofingCurrentRow.site,
  6255. orderRef1: this.proofingCurrentRow.projectId,
  6256. orderRef2: this.proofingCurrentRow.projectPartId,
  6257. page: 1,
  6258. limit: 1000
  6259. };
  6260. searchConfirmProgressPusherList(inData).then(({ data }) => {
  6261. if (data && data.code === 0) {
  6262. this.confirmProgressPusherList = data.page.list;
  6263. resolve(); // 成功时调用 resolve
  6264. } else {
  6265. reject(new Error(data.msg)); // 处理错误
  6266. }
  6267. }).catch(error => {
  6268. reject(error); // 处理请求错误
  6269. });
  6270. });
  6271. } ,
  6272. confirmDocument(row) {
  6273. // 将this.$store.state.user.id转为字符串
  6274. let userId = this.$store.state.user.id.toString()
  6275. if (row.userid !== userId) {
  6276. // 提示指定确认人为row.confirmedBy,是否继续
  6277. this.$confirm('指定确认人为' + row.userDisplay + ',是否继续确认?', '提示', {
  6278. confirmButtonText: '是',
  6279. cancelButtonText: '否',
  6280. type: 'warning'
  6281. })
  6282. .then(() => {
  6283. this.confirmData = {
  6284. site: row.site,
  6285. documentType: row.documentType,
  6286. orderRef1: row.orderRef1,
  6287. orderRef2: row.orderRef2,
  6288. itemNo: row.itemNo,
  6289. userid: row.userid,
  6290. username: row.username,
  6291. userDisplay: row.userDisplay,
  6292. wantedConfirmDate: row.wantedConfirmDate,
  6293. confirmFlag: row.confirmFlag,
  6294. confirmedDate: new Date(),
  6295. createBy: row.createBy,
  6296. createDate: row.createDate,
  6297. confirmedBy: this.$store.state.user.userDisplay,
  6298. documentId: row.documentId,
  6299. remark: row.remark
  6300. }
  6301. this.modalData = {
  6302. site: this.proofingCurrentRow.site,
  6303. projectId: this.proofingCurrentRow.projectId,
  6304. projectNo: this.proofingCurrentRow.projectNo,
  6305. projectDesc: this.proofingCurrentRow.projectDesc,
  6306. projectPartId: this.proofingCurrentRow.projectPartId,
  6307. testPartNo: this.proofingCurrentRow.testPartNo,
  6308. partDesc: this.proofingCurrentRow.partDesc,
  6309. customerNo: this.proofingCurrentRow.customerNo,
  6310. customerDesc: this.proofingCurrentRow.customerDesc,
  6311. buNo: this.proofingCurrentRow.buNo,
  6312. bu: this.proofingCurrentRow.site + '_' + this.proofingCurrentRow.buNo,
  6313. cProjectTypeDb: this.proofingCurrentRow.projectCategory,
  6314. }
  6315. this.getProjectConfirmatorFileList(row)
  6316. this.confirmVisible = true
  6317. })
  6318. .catch(() => {
  6319. this.$message({
  6320. type: 'info',
  6321. message: '已取消操作'
  6322. });
  6323. });
  6324. }else {
  6325. this.confirmData = {
  6326. site: row.site,
  6327. documentType: row.documentType,
  6328. orderRef1: row.orderRef1,
  6329. orderRef2: row.orderRef2,
  6330. itemNo: row.itemNo,
  6331. userid: row.userid,
  6332. username: row.username,
  6333. userDisplay: row.userDisplay,
  6334. wantedConfirmDate: row.wantedConfirmDate,
  6335. confirmFlag: row.confirmFlag,
  6336. confirmedDate: new Date(),
  6337. createBy: row.createBy,
  6338. createDate: row.createDate,
  6339. confirmedBy: this.$store.state.user.name,
  6340. documentId: row.documentId,
  6341. remark: row.remark
  6342. }
  6343. this.modalData = {
  6344. site: this.proofingCurrentRow.site,
  6345. projectId: this.proofingCurrentRow.projectId,
  6346. projectNo: this.proofingCurrentRow.projectNo,
  6347. projectDesc: this.proofingCurrentRow.projectDesc,
  6348. projectPartId: this.proofingCurrentRow.projectPartId,
  6349. testPartNo: this.proofingCurrentRow.testPartNo,
  6350. partDesc: this.proofingCurrentRow.partDesc,
  6351. customerNo: this.proofingCurrentRow.customerNo,
  6352. customerDesc: this.proofingCurrentRow.customerDesc,
  6353. buNo: this.proofingCurrentRow.buNo,
  6354. bu: this.proofingCurrentRow.site + '_' + this.proofingCurrentRow.buNo,
  6355. cProjectTypeDb: this.proofingCurrentRow.projectCategory,
  6356. }
  6357. this.getProjectConfirmatorFileList(row)
  6358. this.confirmVisible = true
  6359. }
  6360. },
  6361. /*选择上传文件时*/
  6362. onChange(file,fileList){
  6363. const newFileName = file.name;
  6364. if (this.fileName) {
  6365. this.fileName += ', ' + newFileName;
  6366. } else {
  6367. this.fileName = newFileName;
  6368. }
  6369. this.fileList.push(file);
  6370. },
  6371. triggerUpload() {
  6372. this.$refs.uploadFile.$el.querySelector('input').click()
  6373. },
  6374. saveUploadFile(){
  6375. this.confirmData.confirmedDate = moment(this.confirmData.confirmedDate).utcOffset('+8').format('YYYY-MM-DD HH:mm:ss');
  6376. this.confirmData.confirmedBy = this.$store.state.user.userDisplay;
  6377. updateProjectDocumentConfirm(this.confirmData) .then(({data}) => {
  6378. if (data.code === 0) {
  6379. this.confirmVisible = false;
  6380. this.getConfirmProgressDocumentList();
  6381. this.getConfirmProgressPusherList().then(() => {
  6382. // 判断 confirmProgressPusherList 中的 confirmFlag 是否全部为 Y
  6383. let flag = true;
  6384. for (let i = 0; i < this.confirmProgressPusherList.length; i++) {
  6385. if (this.confirmProgressPusherList[i].confirmFlag !== 'Y') {
  6386. flag = false;
  6387. break;
  6388. }
  6389. }
  6390. if (flag) {
  6391. this.proofingCurrentRow.status = '正式量产';
  6392. eamProjectPartInfoEdit(this.proofingCurrentRow).then(({ data }) => {
  6393. this.dataList.forEach((item) => {
  6394. if (item.projectPartId === this.proofingCurrentRow.projectPartId) {
  6395. this.dataListIndex = this.dataList.indexOf(item)
  6396. }
  6397. })
  6398. this.getDataList();
  6399. if (data.code !== 0) {
  6400. this.$alert(data.msg, '错误', {
  6401. confirmButtonText: '确定'
  6402. });
  6403. }
  6404. });
  6405. }
  6406. }).catch(error => {
  6407. this.$alert('获取确认进度推送列表失败', '错误', {
  6408. confirmButtonText: '确定'
  6409. });
  6410. });
  6411. EventBus.$emit('updateAgencyMatterForConfirm')
  6412. }else {
  6413. this.$alert(data.msg, '错误', {
  6414. confirmButtonText: '确定'
  6415. })
  6416. }
  6417. })
  6418. let remark = this.confirmData.remark;
  6419. const formData = new FormData();
  6420. //片接文件
  6421. if (this.fileList.length >0) {
  6422. for (let i = 0; i < this.fileList.length; i++) {
  6423. formData.append("file",this.fileList[i].raw)
  6424. }
  6425. formData.append("folder", 'projectPDConfirmFiles');
  6426. formData.append("orderRef1", this.confirmData.site);
  6427. formData.append("orderRef4", this.confirmData.orderRef1);
  6428. formData.append("orderRef2", this.confirmData.itemNo);
  6429. formData.append("orderRef3", this.confirmData.userid);
  6430. formData.append("orderRef5", this.confirmData.orderRef2);
  6431. formData.append("createdBy", this.$store.state.user.name);
  6432. formData.append("updatedBy", this.$store.state.user.name);
  6433. formData.append("remark", remark);
  6434. uploadProjectFile(formData).then(({data}) => {
  6435. if (data.code === 0) {
  6436. this.$message.success('操作成功');
  6437. //清空文件上传记录
  6438. this.$refs.uploadFile.clearFiles();
  6439. this.closeFileUpdate();
  6440. this.projectConfirmatorFileList = [];
  6441. }else {
  6442. this.$alert(data.msg, '错误', {
  6443. confirmButtonText: '确定'
  6444. })
  6445. }
  6446. })
  6447. } else {
  6448. this.$message.success('操作成功');
  6449. }
  6450. },
  6451. closeFileUpdate() {
  6452. this.fileName = '';
  6453. this.uploadDialog = false;
  6454. //this.fileRemark = ''
  6455. this.$refs.uploadFile.clearFiles()
  6456. this.fileList = []
  6457. },
  6458. getProjectConfirmatorFileList (row) {
  6459. let inData = {
  6460. orderRef1: row.site,
  6461. orderRef3: row.userid,
  6462. orderRef2: row.itemNo,
  6463. orderRef4: row.orderRef1,
  6464. orderRef5: row.orderRef2,
  6465. page: 1,
  6466. limit: 1000
  6467. }
  6468. searchProjectConfirmatorFileList(inData).then(({data}) => {
  6469. if (data && data.code === 0){
  6470. this.projectConfirmatorFileList = data.page.list;
  6471. }
  6472. })
  6473. },
  6474. closeUploadFileVisible(){
  6475. this.confirmVisible = false;
  6476. this.projectConfirmatorFileList = [];
  6477. this.fileList = [];
  6478. this.closeFileUpdate()
  6479. },
  6480. closeViewDocumentFileVisible(){
  6481. this.viewDocumentFileVisible = false;
  6482. this.projectConfirmatorFileList = [];
  6483. },
  6484. closeViewMassDocumentFileVisible(){
  6485. this.viewMassDocumentFileVisible = false;
  6486. this.projectConfirmatorFileList = [];
  6487. },
  6488. viewDocumentFile(row) {
  6489. this.confirmData = {
  6490. site: row.site,
  6491. documentType: row.documentType,
  6492. orderRef1: row.orderRef1,
  6493. orderRef2: row.orderRef2,
  6494. itemNo: row.itemNo,
  6495. userid: row.userid,
  6496. username: row.username,
  6497. userDisplay: row.userDisplay,
  6498. wantedConfirmDate: row.wantedConfirmDate,
  6499. confirmFlag: row.confirmFlag,
  6500. confirmedDate: new Date(),
  6501. createBy: row.createBy,
  6502. createDate: row.createDate,
  6503. confirmedBy: this.$store.state.user.userDisplay,
  6504. documentId: row.documentId,
  6505. remark: row.remark
  6506. }
  6507. let inData = {
  6508. orderRef1: row.site,
  6509. orderRef2: row.itemNo,
  6510. orderRef3: row.userid,
  6511. orderRef4: row.orderRef1,
  6512. orderRef5: row.orderRef2,
  6513. id : row.documentId,
  6514. page: 1,
  6515. limit: 1000
  6516. }
  6517. searchProjectConfirmatorFileList(inData).then(({data}) => {
  6518. if (data && data.code === 0){
  6519. this.projectConfirmatorFileList = data.page.list;
  6520. }
  6521. })
  6522. this.viewDocumentFileVisible = true
  6523. },
  6524. async viewMassDocumentFile(row,flag) {
  6525. let inData = {
  6526. orderRef1: row.site,
  6527. orderRef2: row.proofingId,
  6528. orderRef3: row.documentDefinitionListId,
  6529. orderRef4: row.projectId,
  6530. orderRef5: this.proofingCurrentRow.projectPartId,
  6531. createdBy: row.createdBy,
  6532. id : row.documentId,
  6533. documentType: row.documentType,
  6534. fileName: row.fileName,
  6535. page: 1,
  6536. limit: 1000
  6537. }
  6538. await searchProjectConfirmatorFileList(inData).then(({data}) => {
  6539. if (data && data.code === 0){
  6540. this.projectConfirmatorFileList = data.page.list;
  6541. }
  6542. })
  6543. if (flag){
  6544. return
  6545. }
  6546. this.viewMassDocumentFileVisible = true
  6547. },
  6548. deleteFile(row) {
  6549. if (this.confirmData.confirmedBy === this.$store.state.user.userDisplay) {
  6550. this.$confirm('是否删除该文件?', '提示', {
  6551. confirmButtonText: '确定',
  6552. cancelButtonText: '取消',
  6553. type: 'warning'
  6554. }).then(() => {
  6555. let inData = {
  6556. id: row.id,
  6557. orderRef1: row.orderRef1,
  6558. orderRef2: row.orderRef2,
  6559. orderRef3: row.orderRef3,
  6560. orderRef4: row.orderRef4,
  6561. orderRef5: row.orderRef5,
  6562. createdBy: this.$store.state.user.name
  6563. }
  6564. deleteProjectFile(inData).then(({data}) => {
  6565. if (data && data.code === 0) {
  6566. this.$message({
  6567. message: '删除成功',
  6568. type: 'success'
  6569. })
  6570. this.getProjectConfirmatorFileList(this.confirmData)
  6571. } else {
  6572. this.$message({
  6573. message: '删除失败',
  6574. type: 'error'
  6575. })
  6576. }
  6577. })
  6578. }).catch(() => {
  6579. this.$message({
  6580. type: 'info',
  6581. message: '已取消删除'
  6582. });
  6583. });
  6584. } else {
  6585. this.$message({
  6586. message: '只有确认人员才能删除文件',
  6587. type: 'error'
  6588. })
  6589. }
  6590. },
  6591. shouldShowDelete(row) {
  6592. // 根据条件判断是否显示删除操作
  6593. if (row.projectPhase === 'SOP文档') {
  6594. return false
  6595. }else return row.documentId !== null;
  6596. },
  6597. // 查看文件
  6598. viewFile(row) {
  6599. // 预览文件
  6600. let image = ['jpg', 'jpeg', 'png', 'gif', 'bmp']
  6601. let video = ['mp4', 'avi', 'mov', 'wmv', 'flv']
  6602. let office = ['doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx']
  6603. let txt = ['txt']
  6604. let type = ''
  6605. let pdf = ['pdf']
  6606. if (image.includes(row.fileType.toLowerCase())) {
  6607. type = 'image/' + row.fileType
  6608. downLoadObjectFile2(row).then(({data}) => {
  6609. const blob = new Blob([data], { type: type });
  6610. // 创建URL来生成预览
  6611. const fileURL = URL.createObjectURL(blob);
  6612. // 在新标签页中打开文件预览
  6613. const newTab = window.open(fileURL, '_blank')
  6614. })
  6615. }
  6616. else if (video.includes(row.fileType.toLowerCase())) {
  6617. type = 'video/' + row.fileType
  6618. downLoadObjectFile2(row).then(({data}) => {
  6619. const blob = new Blob([data], { type: type });
  6620. // 创建URL来生成预览
  6621. const fileURL = URL.createObjectURL(blob);
  6622. // 在新标签页中打开文件预览
  6623. const newTab = window.open(fileURL, '_blank')
  6624. })
  6625. }
  6626. else if (txt.includes(row.fileType.toLowerCase())) {
  6627. type = 'text/plain'
  6628. downLoadObjectFile2(row).then(({data}) => {
  6629. const blob = new Blob([data], { type: type });
  6630. // 创建URL来生成预览
  6631. const fileURL = URL.createObjectURL(blob);
  6632. // 在新标签页中打开文件预览
  6633. const newTab = window.open(fileURL, '_blank')
  6634. })
  6635. }
  6636. else if (office.includes(row.fileType.toLowerCase())) {
  6637. if (row.fileType.toLowerCase() === 'doc' || row.fileType.toLowerCase() === 'docx') {
  6638. type = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
  6639. } else if (row.fileType.toLowerCase() === 'ppt' || row.fileType.toLowerCase() === 'pptx') {
  6640. type = 'application/vnd.openxmlformats-officedocument.presentationml.presentation'
  6641. } else {
  6642. type = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
  6643. }
  6644. downLoadObjectFile2(row).then(({data}) => {
  6645. // 不限制文件下载类型
  6646. const blob = new Blob([data], {type:'application/octet-stream;charset=utf-8'})
  6647. // 下载文件名称
  6648. const fileName = row.fileName
  6649. // a标签下载
  6650. const linkNode = document.createElement('a')
  6651. linkNode.download = fileName // a标签的download属性规定下载文件的名称
  6652. linkNode.style.display = 'none'
  6653. linkNode.href = URL.createObjectURL(blob) // 生成一个Blob URL
  6654. document.body.appendChild(linkNode)
  6655. linkNode.click() // 模拟在按钮上的一次鼠标单击
  6656. URL.revokeObjectURL(linkNode.href) // 释放URL 对象
  6657. document.body.removeChild(linkNode)
  6658. })
  6659. }
  6660. else if (pdf.includes(row.fileType.toLowerCase())) {
  6661. type = 'application/pdf'
  6662. downLoadObjectFile2(row).then(({data}) => {
  6663. const blob = new Blob([data], { type: type });
  6664. // 创建URL来生成预览
  6665. const fileURL = URL.createObjectURL(blob);
  6666. // 在新标签页中打开文件预览
  6667. const newTab = window.open(fileURL, '_blank')
  6668. })
  6669. }
  6670. else {
  6671. this.$message({
  6672. message: '不支持的文件类型',
  6673. type: 'warning'
  6674. })
  6675. }
  6676. },
  6677. // 下载
  6678. downloadFile (row) {
  6679. downLoadObjectFile2(row)
  6680. .then(({data}) => {
  6681. // 不限制文件下载类型
  6682. const blob = new Blob([data], {type:'application/octet-stream;charset=utf-8'})
  6683. // 下载文件名称
  6684. const fileName = row.fileName
  6685. // a标签下载
  6686. const linkNode = document.createElement('a')
  6687. linkNode.download = fileName // a标签的download属性规定下载文件的名称
  6688. linkNode.style.display = 'none'
  6689. linkNode.href = URL.createObjectURL(blob) // 生成一个Blob URL
  6690. document.body.appendChild(linkNode)
  6691. linkNode.click() // 模拟在按钮上的一次鼠标单击
  6692. URL.revokeObjectURL(linkNode.href) // 释放URL 对象
  6693. document.body.removeChild(linkNode)
  6694. })
  6695. },
  6696. closeProjectProductionValidationDocumentVisibleDialog() {
  6697. this.confirmatoryData = {};
  6698. this.projectAllDocumentConfirmatorList = [];
  6699. this.projectANotDocumentConfirmatorList = [];
  6700. this.projectProductionValidationDocumentVisible = false;
  6701. this.activeName1 = 'selectDocument';
  6702. },
  6703. formatDate(row, column) {
  6704. // row 是当前行的数据对象
  6705. // column 是当前列的属性信息对象
  6706. const date = row[column.property];
  6707. if (date) {
  6708. const s = new Date(date).toLocaleDateString('zh-CN', { year: 'numeric', month: '2-digit', day: '2-digit' });
  6709. return s.replace(/\//g, '-')
  6710. } else {
  6711. return '';
  6712. }
  6713. },
  6714. indexMethod(index) {
  6715. return index + 1;
  6716. },
  6717. // 获取 tableDefault 列
  6718. async getColumnList (tableId, columnId) {
  6719. let queryTable= {
  6720. functionId: this.$route.meta.menuId,
  6721. tableId: tableId,
  6722. languageCode: this.$i18n.locale
  6723. }
  6724. await getTableDefaultListLanguage(queryTable).then(({data}) => {
  6725. if (!data.rows.length == 0) {
  6726. switch (columnId) {
  6727. case 1:
  6728. this.columnList = data.rows
  6729. this.refreshMainTableLayout()
  6730. break;
  6731. // case 2:
  6732. // this.detailColumnList = data.rows
  6733. // break;
  6734. // case 3:
  6735. // this.columnList2 = data.rows
  6736. // break;
  6737. // case 4:
  6738. // this.columnList3 = data.rows
  6739. // break;
  6740. }
  6741. } else {
  6742. // this.showDefault = true.
  6743. }
  6744. })
  6745. },
  6746. async fetchBomList() {
  6747. let inData = {
  6748. site: this.proofingCurrentRow.site,
  6749. buNo: this.proofingCurrentRow.buNo,
  6750. projectId: this.proofingCurrentRow.projectId,
  6751. projectNo: this.proofingCurrentRow.projectNo,
  6752. projectDesc: this.proofingCurrentRow.projectDesc,
  6753. projectPartId: this.proofingCurrentRow.projectPartId,
  6754. testPartNo: this.proofingCurrentRow.testPartNo,
  6755. partDesc: this.proofingCurrentRow.partDesc,
  6756. page: 1,
  6757. limit: 1000
  6758. }
  6759. return searchMassProductionBomList(inData).then(({data}) => {
  6760. if (data && data.code === 0){
  6761. return data.list
  6762. }
  6763. })
  6764. },
  6765. fetchRoutingList() {
  6766. let inData = {
  6767. site: this.proofingCurrentRow.site,
  6768. buNo: this.proofingCurrentRow.buNo,
  6769. projectId: this.proofingCurrentRow.projectId,
  6770. projectNo: this.proofingCurrentRow.projectNo,
  6771. projectDesc: this.proofingCurrentRow.projectDesc,
  6772. projectPartId: this.proofingCurrentRow.projectPartId,
  6773. testPartNo: this.proofingCurrentRow.testPartNo,
  6774. partNo:this.proofingCurrentRow.finalPartNo,
  6775. partDesc: this.proofingCurrentRow.partDesc,
  6776. page: 1,
  6777. limit: 1000
  6778. }
  6779. searchRoutingList(inData).then(({data}) => {
  6780. if (data && data.code === 0){
  6781. this.dataListLoading = false;
  6782. this.projectPartRoutingList = data.list
  6783. }
  6784. })
  6785. },
  6786. // 项目打样记录页存的是“账号-姓名”,列表只展示姓名;空值不能直接 split,否则整表渲染中断。
  6787. fillProofRecordPersonName (item) {
  6788. const nameFields = [
  6789. ['projectManager', 'projectManagerName'],
  6790. ['projectOwner', 'projectOwnerName'],
  6791. ['engineer', 'engineerName'],
  6792. ['cQualityEngineer1', 'cQualityEngineer1Name'],
  6793. ['cQualityEngineer2', 'cQualityEngineer2Name'],
  6794. ['cQualityEngineer3', 'cQualityEngineer3Name'],
  6795. ['cManufactureEngineer', 'cManufactureEngineerName'],
  6796. ['cQualityEngineer4', 'cQualityEngineer4Name'],
  6797. ['cQualityEngineer5', 'cQualityEngineer5Name'],
  6798. ['cQualityEngineer6', 'cQualityEngineer6Name'],
  6799. ['docEngineer', 'docEngineerName'],
  6800. ['docEngineer2', 'docEngineer2Name'],
  6801. ['ipqcHardTag', 'ipqcHardTagName'],
  6802. ['cQualityEngineer7', 'cQualityEngineer7Name']
  6803. ]
  6804. nameFields.forEach(([source, target]) => {
  6805. const value = item[source]
  6806. if (value === null || value === undefined || value === '') {
  6807. item[target] = ''
  6808. return
  6809. }
  6810. const parts = String(value).split('-')
  6811. item[target] = parts.length > 1 ? parts[1] : String(value)
  6812. })
  6813. },
  6814. // 详情弹窗绑定的是当前项目物料,打样记录必须按该物料的项目料号收口,避免带出其他料号。
  6815. fetchProjectProofRecordList () {
  6816. const testPartNo = this.proofingCurrentRow && this.proofingCurrentRow.testPartNo
  6817. ? String(this.proofingCurrentRow.testPartNo).trim()
  6818. : ''
  6819. if (!testPartNo) {
  6820. this.projectProofRecordList = []
  6821. return
  6822. }
  6823. this.dataListLoading = true
  6824. const inData = {
  6825. site: this.proofingCurrentRow.site,
  6826. username: this.$store.state.user.name,
  6827. testPartNo: testPartNo,
  6828. page: 1,
  6829. limit: 1000
  6830. }
  6831. searchAllProofing(inData).then(({data}) => {
  6832. // 切走页签后丢弃旧响应,避免慢请求把其他页签的加载状态和列表覆盖掉。
  6833. if (this.activeModalTab !== 'projectProofRecord') {
  6834. return
  6835. }
  6836. this.dataListLoading = false
  6837. if (data && data.code === 0 && data.page) {
  6838. // 打样查询接口按料号模糊匹配,详情页只保留与当前项目料号完全一致的记录。
  6839. const list = (data.page.list || []).filter(item => String(item.testPartNo || '').trim() === testPartNo)
  6840. list.forEach(item => this.fillProofRecordPersonName(item))
  6841. this.projectProofRecordList = list
  6842. } else {
  6843. this.projectProofRecordList = []
  6844. this.$message.error((data && data.msg) || '项目打样记录查询失败')
  6845. }
  6846. }).catch(() => {
  6847. if (this.activeModalTab !== 'projectProofRecord') {
  6848. return
  6849. }
  6850. this.dataListLoading = false
  6851. this.projectProofRecordList = []
  6852. })
  6853. },
  6854. copyFile (row) {
  6855. this.copyModalData = {
  6856. ...row,
  6857. projectNo: this.proofingCurrentRow.projectNo,
  6858. projectDesc: this.proofingCurrentRow.projectDesc,
  6859. projectPartId: this.proofingCurrentRow.projectPartId,
  6860. testPartNo: this.proofingCurrentRow.testPartNo,
  6861. partDesc: this.proofingCurrentRow.partDesc,
  6862. };
  6863. this.copyDialog = true
  6864. },
  6865. searchCopyDocumentFileList() {
  6866. getCopyDocumentFileList(this.copyModalData).then(({data}) => {
  6867. if (data && data.code === 0) {
  6868. this.copyDocumentList = data.list
  6869. } else {
  6870. this.copyDocumentList = []
  6871. }
  6872. })
  6873. },
  6874. saveSelectionCopyDocumentType() {
  6875. const currentSite = this.resolveCurrentPartSite(this.copyModalData.site || this.proofingCurrentRow.site)
  6876. if (this.documentCopySelection.length === 0) {
  6877. this.$message({
  6878. message: '请选择文档',
  6879. type: 'error'
  6880. })
  6881. return
  6882. }
  6883. if (this.copyModalData.proofingNo === '*'){
  6884. this.copyModalData.conclusion = 'N/A'
  6885. }
  6886. if (this.copyModalData.conclusion === '' || this.copyModalData.conclusion === null ||
  6887. this.copyModalData.conclusion === undefined) {
  6888. this.$message({
  6889. message: '结论不能为空',
  6890. type: 'warning'
  6891. })
  6892. return
  6893. }
  6894. const inDataList = this.documentCopySelection.map(item => ({
  6895. ossId: item.ossId,
  6896. orderRef1: currentSite,
  6897. orderRef2: this.copyModalData.proofingId.toString(),
  6898. orderRef3: this.copyModalData.documentDefinitionListId,
  6899. orderRef4: this.copyModalData.projectId.toString(),
  6900. orderRef5: this.copyModalData.projectPartId.toString(),
  6901. documentDesc: this.copyModalData.documentTypeId,
  6902. cAdditionalInfo: this.copyModalData.documentType,
  6903. conclusion: this.copyModalData.conclusion,
  6904. createBy: this.$store.state.user.name,
  6905. folder: (this.copyModalData.proofingId === -1)
  6906. ? 'projectPMPDocumentFiles'
  6907. : 'projectPPDocumentFiles'
  6908. }));
  6909. uploadFileList('/upload/testList',inDataList).then(({data}) => {
  6910. //区分请求成功和失败的状况
  6911. if (data && data.code === 0) {
  6912. this.$message({
  6913. message: '复制成功',
  6914. type: 'success'
  6915. })
  6916. this.getProofDocument()
  6917. this.copyDialog = false
  6918. //刷新表格
  6919. this.refreshCurrentTabTable()
  6920. } else {
  6921. this.$message({
  6922. message: '复制失败',
  6923. type: 'error'
  6924. })
  6925. }
  6926. })
  6927. },
  6928. closeCopyDocumentFileFlag() {
  6929. this.copyDialog = false
  6930. this.copyModalData = {}
  6931. this.copyDocumentList = []
  6932. },
  6933. // 列表表格选择替换
  6934. tabClick (tab, event) {
  6935. // 刷新列表数据
  6936. this.refreshCurrentTabTable()
  6937. },
  6938. async refreshCurrentTabTable () {
  6939. if (this.activeModalTab === 'proofRecord') {
  6940. this.getRowProjectInfo();
  6941. }
  6942. if (this.activeModalTab === 'massProductionStage') {
  6943. this.getProjectOtherDocument();
  6944. }
  6945. if (this.activeModalTab === 'allDocument') {
  6946. this.getRowProjectInfo();
  6947. this.getProjectOtherDocument();
  6948. this.searchProjectAllDocumentList()
  6949. this.searchConfirmatorList()
  6950. }
  6951. if (this.activeModalTab === 'productionDocumentsConfirmProgress') {
  6952. this.getConfirmProgressDocumentList()
  6953. this.getConfirmProgressPusherList()
  6954. }
  6955. if (this.activeModalTab === 'massProductionBOM' && this.proofingCurrentRow.finalPartNo
  6956. !== '' &&
  6957. this.proofingCurrentRow.finalPartNo !== null){
  6958. this.dataListLoading = true;
  6959. try {
  6960. // 从后端获取数据
  6961. const flatData = await this.fetchBomList();
  6962. // 将平铺数据转换为树形结构
  6963. this.projectPartBomList = arrayToTreeByLevelCode(flatData, "levelCode", "children");
  6964. // 打印结果
  6965. console.log(JSON.stringify(this.projectPartBomList, null, 2));
  6966. } finally {
  6967. this.dataListLoading = false;
  6968. }
  6969. } else {
  6970. this.projectPartBomList = []
  6971. }
  6972. if (this.activeModalTab === 'Routing' &&
  6973. this.proofingCurrentRow.finalPartNo !== '' &&
  6974. this.proofingCurrentRow.finalPartNo !== null){
  6975. this.dataListLoading = true;
  6976. this.fetchRoutingList()
  6977. } else {
  6978. this.projectPartRoutingList = []
  6979. }
  6980. if (this.activeModalTab === 'projectProofRecord') {
  6981. this.fetchProjectProofRecordList()
  6982. } else {
  6983. this.projectProofRecordList = []
  6984. }
  6985. },
  6986. //获取按钮的权限数据
  6987. getButtonAuthData () {
  6988. let searchFlag = this.isAuth(this.menuId+":search")
  6989. let saveFlag = this.isAuth(this.menuId+":save")
  6990. let updateFlag = this.isAuth(this.menuId+":update")
  6991. let deleteFlag = this.isAuth(this.menuId+":delete")
  6992. //处理页面的权限数据
  6993. this.authSearch = !searchFlag
  6994. this.authSave = !saveFlag
  6995. this.authUpdate = !updateFlag
  6996. this.authDelete = !deleteFlag
  6997. },
  6998. warnSendMail(row) {
  6999. row.projectPartId = this.proofingCurrentRow.projectPartId
  7000. row.testPartNo = this.proofingCurrentRow.testPartNo
  7001. row.partDesc = this.proofingCurrentRow.partDesc
  7002. row.needDate = this.proofingCurrentRow.needDate
  7003. this.$confirm('确认发送提醒?', '提示', {
  7004. confirmButtonText: '确定',
  7005. cancelButtonText: '取消',
  7006. type: 'warning'
  7007. }).then(() => {
  7008. warnSendMailHandle(row).then(({data}) => {
  7009. if (data && data.code === 0) {
  7010. this.$message({
  7011. message: '发送成功',
  7012. type: 'success'
  7013. })
  7014. } else {
  7015. this.$alert(data.msg, '错误', {
  7016. confirmButtonText: '确定'
  7017. })
  7018. }
  7019. })
  7020. }).catch(() => {
  7021. this.$message({
  7022. type: 'info',
  7023. message: '已取消发送'
  7024. });
  7025. });
  7026. },
  7027. confirmatorSendMailHandle(inData) {
  7028. confirmatorSendMailHandle(inData).then(({data}) => {
  7029. if (data && data.code === 0) {
  7030. this.$message({
  7031. message: '发送成功',
  7032. type: 'success'
  7033. })
  7034. } else {
  7035. this.$alert(data.msg, '错误', {
  7036. confirmButtonText: '确定'
  7037. })
  7038. }
  7039. })
  7040. },
  7041. tableRowClassName ({row, rowIndex}) {
  7042. if (row.status === '正式量产') {
  7043. return 'row-production'
  7044. } else if (row.uploadedFlag === 'Y') {
  7045. return 'row-production2'
  7046. }
  7047. return ''
  7048. },
  7049. getCellStyle({ row, column, rowIndex, columnIndex }) {
  7050. // 检查当前列是否是 "partType"
  7051. if (column.property === 'partType') {
  7052. return {
  7053. backgroundColor: row.partType === 'Active' ? 'rgb(141, 255, 115)' : 'rgb(188, 204, 194)',
  7054. };
  7055. }
  7056. return {};
  7057. },
  7058. }
  7059. }
  7060. </script>
  7061. <style>
  7062. .row-production {
  7063. background-color: rgb(185, 244, 250) !important;
  7064. }
  7065. .row-production2 {
  7066. background-color: rgb(253, 240, 225) !important;
  7067. }
  7068. .el-tabs__nav {
  7069. margin-left: 0 !important;
  7070. }
  7071. .red-text /deep/ .el-input__inner {
  7072. color: red;
  7073. }
  7074. /deep/ .left-section {
  7075. flex: 1; /* 左边部分占据剩余空间 */
  7076. margin-right: 10px; /* 右边与左边之间的间隔 */
  7077. margin-left: -10px; /* 左边与父元素之间的间隔 */
  7078. }
  7079. /deep/ .right-section {
  7080. width: 66%; /* 右边部分宽度占满剩余空间 */
  7081. margin-right: 5px;
  7082. }
  7083. /deep/ .custom-upload .el-upload-dragger {
  7084. width: 150px;
  7085. height: 150px;
  7086. text-align: center;
  7087. position: relative;
  7088. overflow: hidden;
  7089. /* 添加其他样式 */
  7090. }
  7091. /deep/ .table-container {
  7092. border: 1px solid #e0e0e0;
  7093. border-radius: 4px;
  7094. padding: 10px;
  7095. margin-bottom: 10px;
  7096. }
  7097. .big-label {
  7098. font-size: medium; /* 调整字号 */
  7099. }
  7100. </style>
  7101. <style lang="scss" scoped>
  7102. .el-table /deep/ .cell{
  7103. height: auto;
  7104. line-height: 1.5;
  7105. }
  7106. </style>
  7107. ```