赫艾前端
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.

4287 lines
162 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
5 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
5 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
10 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
9 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
9 months ago
​
​
​
​
​
​
​
​
​
​
​
​
5 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
5 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
5 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
5 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
9 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
9 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
5 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
5 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
5 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
5 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
6 months ago
​
6 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
5 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
9 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
5 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
10 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
9 months ago
​
9 months ago
​
9 months ago
​
​
​
​
​
9 months ago
​
9 months ago
​
9 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
5 months ago
​
​
​
​
​
​
​
​
​
​
​
5 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
5 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
5 months ago
​
​
​
​
​
​
​
​
​
​
​
​
5 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
5 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
5 months ago
​
​
​
​
5 months ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <template>
  2. <div class="mod-config">
  3. <!-- 条件查询 -->
  4. <el-form :inline="true" label-position="top" :model="searchData">
  5. <!-- <el-form-item :label="'BU'">-->
  6. <!-- <el-select v-model="searchData.buNo" placeholder="请选择" clearable style="width: 75px">-->
  7. <!-- <el-option-->
  8. <!-- v-for = "i in buList"-->
  9. <!-- :key = "i.buNo"-->
  10. <!-- :label = "i.buDesc"-->
  11. <!-- :value = "i.buNo">-->
  12. <!-- </el-option>-->
  13. <!-- </el-select>-->
  14. <!-- </el-form-item>-->
  15. <el-form-item :label="'工厂编码'">
  16. <el-input v-model="searchData.site" clearable style="width: 120px"></el-input>
  17. </el-form-item>
  18. <el-form-item :label="'检验单号'">
  19. <el-input v-model="searchData.inspectionNo" clearable style="width: 120px"></el-input>
  20. </el-form-item>
  21. <el-form-item :label="'物料编码'">
  22. <el-input v-model="searchData.partNo" clearable style="width: 120px"></el-input>
  23. </el-form-item>
  24. <el-form-item :label="'SKU'">
  25. <el-input v-model="searchData.sku" clearable style="width: 120px"></el-input>
  26. </el-form-item>
  27. <el-form-item :label="'物料名称'">
  28. <el-input v-model="searchData.partDesc" clearable style="width: 200px"></el-input>
  29. </el-form-item>
  30. <el-form-item :label="'检验结论'">
  31. <el-select v-model="searchData.inspectionResult" clearable style="width: 80px">
  32. <el-option label="合格" value="合格"></el-option>
  33. <el-option label="不合格" value="不合格"></el-option>
  34. </el-select>
  35. </el-form-item>
  36. <el-form-item :label="'处置措施'">
  37. <el-select v-model="searchData.disposalMeasures" clearable style="width: 90px">
  38. <el-option
  39. v-for = "i in disposalMeasuresOptions"
  40. :key = "i.id"
  41. :label = "i.disposalMeasures"
  42. :value = "i.disposalMeasures">
  43. </el-option>
  44. </el-select>
  45. </el-form-item>
  46. </el-form>
  47. <el-form :inline="true" label-position="top" :model="searchData">
  48. <el-form-item :label="'PN'">
  49. <el-input v-model="searchData.cinvSourceCode" clearable style="width: 120px"></el-input>
  50. </el-form-item>
  51. <el-form-item :label="'工单号'">
  52. <el-input v-model="searchData.orderNo" clearable style="width: 137px"></el-input>
  53. </el-form-item>
  54. <el-form-item :label="'派工单号'">
  55. <el-input v-model="searchData.seqNo" clearable style="width: 167px"></el-input>
  56. </el-form-item>
  57. <el-form-item :label="'工序'">
  58. <el-input v-model="searchData.operationDesc" clearable style="width: 108px"></el-input>
  59. </el-form-item>
  60. <el-form-item :label="'状态'">
  61. <el-select v-model="searchData.states" multiple style="width: 340px">
  62. <el-option label="未开始" value="未开始"></el-option>
  63. <el-option label="待检验" value="待检验"></el-option>
  64. <el-option label="待审核" value="待审核"></el-option>
  65. <el-option label="已完成" value="已完成"></el-option>
  66. </el-select>
  67. </el-form-item>
  68. </el-form>
  69. <el-form :inline="true" label-position="top" :model="searchData">
  70. <el-form-item :label="'送检日期'">
  71. <el-date-picker style="width: 150px" v-model="searchData.startDate2" type="datetime" value-format='yyyy-MM-dd HH:mm' format='yyyy-MM-dd HH:mm' placeholder="开始日期"></el-date-picker>
  72. -
  73. <el-date-picker style="width: 150px" v-model="searchData.endDate2" type="datetime" value-format='yyyy-MM-dd HH:mm' format='yyyy-MM-dd HH:mm' placeholder="结束日期"></el-date-picker>
  74. </el-form-item>
  75. <el-form-item :label="'检验时间:'">
  76. <el-date-picker style="width: 170px" v-model="searchData.startDate" type="datetime"
  77. value-format='yyyy-MM-dd HH:mm:ss' format='yyyy-MM-dd HH:mm:ss' placeholder="开始日期">
  78. </el-date-picker>
  79. -
  80. <el-date-picker style="width: 170px" v-model="searchData.endDate" type="datetime"
  81. value-format='yyyy-MM-dd HH:mm:ss' format='yyyy-MM-dd HH:mm:ss' placeholder="结束日期">
  82. </el-date-picker>
  83. </el-form-item>
  84. <el-form-item :label="' '">
  85. <el-button v-if="!authSearch" type="primary" :loading="searchLoading" @click="getDataList()">查询</el-button>
  86. <el-button v-if="!authSave" type="primary" @click="addModal()">新增</el-button>
  87. <el-button v-if="!authCheck" type="primary" @click="submitResult()">审核</el-button>
  88. <el-button v-if="!authCancelCheck" type="primary" @click="cancelApproval">取消审核</el-button>
  89. <el-button v-if="!authDelete" type="primary" @click="deleteModal()">删除</el-button>
  90. <el-button v-if="!authOverLoad" type="primary" @click="overLoadModal">任务重载</el-button>
  91. <el-button type="primary" @click="printList">打印</el-button>
  92. <download-excel
  93. :fields="fields()"
  94. :data="exportData"
  95. type="xls"
  96. :name="exportName"
  97. :header="exportHeader"
  98. :footer="exportFooter"
  99. :fetch="createExportData"
  100. :before-generate="startDownload"
  101. :before-finish="finishDownload"
  102. worksheet="导出信息"
  103. class="el-button el-button--primary el-button--medium">
  104. {{ "导出" }}
  105. </download-excel>
  106. </el-form-item>
  107. </el-form>
  108. <!-- 检验记录展示列表 -->
  109. <el-table
  110. :height="height"
  111. :data="dataList"
  112. border
  113. ref="FAITable"
  114. @row-click="FAIClickRow"
  115. @selection-change="selectionFAI"
  116. style="width: 100%;">
  117. <el-table-column
  118. type="selection"
  119. header-align="center"
  120. align="center"
  121. :selectable="selectFlag"
  122. width="50">
  123. </el-table-column>
  124. <el-table-column
  125. prop="state"
  126. header-align="center"
  127. align="center"
  128. label="状态">
  129. <template slot-scope="scope">
  130. <div :style="{fontWeight:'bold', color: scope.row.state === '待检验' ? 'red' : scope.row.state === '待审核' ? '#ffa500e0' : scope.row.state === '已完成' ? '#3ac252' : ''}">
  131. {{scope.row.state}}
  132. </div>
  133. </template>
  134. </el-table-column>
  135. <el-table-column
  136. v-for="(item,index) in columnList1" :key="index"
  137. :sortable="item.columnSortable"
  138. :prop="item.columnProp"
  139. :header-align="item.headerAlign"
  140. :show-overflow-tooltip="item.showOverflowTooltip"
  141. :align="item.align"
  142. :fixed="item.fixed === '' ? false : item.fixed"
  143. :min-width="item.columnWidth"
  144. :label="item.columnLabel">
  145. <template slot-scope="scope">
  146. <span v-if="!item.columnHidden">
  147. <template v-if="item.columnProp === 'pictureFlag'">
  148. <span :style="{ color: scope.row[item.columnProp] === 'Y' ? 'red' : '' }">{{ scope.row[item.columnProp] === 'Y' ? '是' : scope.row[item.columnProp] === 'N' ? '否' : scope.row[item.columnProp] }}</span>
  149. </template>
  150. <template v-else>{{ scope.row[item.columnProp] }}</template>
  151. </span>
  152. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  153. </template>
  154. </el-table-column>
  155. <el-table-column
  156. fixed="right"
  157. header-align="center"
  158. align="center"
  159. width="130"
  160. label="操作">
  161. <template slot-scope="scope">
  162. <el-link style="cursor: pointer" v-if="!authDetail && scope.row.state === '未开始'" @click="actionModal(scope.row)">开始检验</el-link>
  163. <el-link style="cursor: pointer" v-if="!authDetail && scope.row.state !== '未开始'" @click="detailModal(scope.row)">检验单</el-link>
  164. <el-link v-if="!authFile" style="cursor: pointer" @click="getFileContentData(scope.row)">工作文件</el-link>
  165. </template>
  166. </el-table-column>
  167. </el-table>
  168. <!-- 分页-->
  169. <el-pagination
  170. @size-change="sizeChangeHandle"
  171. @current-change="currentChangeHandle"
  172. :current-page="pageIndex"
  173. :page-sizes="[20, 50, 100, 200, 500]"
  174. :page-size="pageSize"
  175. :total="totalPage"
  176. layout="total, sizes, prev, pager, next, jumper">
  177. </el-pagination>
  178. <!-- 新增检验记录 -->
  179. <el-dialog title="新增检验记录" :close-on-click-modal="false" v-drag :visible.sync="modalFlag" width="495px">
  180. <el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;">
  181. <!-- <el-form-item label="BU" prop="bu" :rules="rules.bu">-->
  182. <!-- <el-select v-model="modalData.bu" placeholder="请选择" @change="buChange" style="width: 221px">-->
  183. <!-- <el-option-->
  184. <!-- v-for = "i in userBuList"-->
  185. <!-- :key = "i.buNo"-->
  186. <!-- :label = "i.sitename"-->
  187. <!-- :value = "i.buNo">-->
  188. <!-- <span style="float: left;width: 100px">{{ i.sitename }}</span>-->
  189. <!-- <span style="float: right; color: #8492a6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; font-size: 11px;width: 60px">-->
  190. <!-- {{ i.buDesc }}-->
  191. <!-- </span>-->
  192. <!-- </el-option>-->
  193. <!-- </el-select>-->
  194. <!-- </el-form-item>-->
  195. <el-form-item label="工厂编码" prop="site" :rules="rules.site">
  196. <el-input v-model="modalData.site" style="width: 221px" disabled></el-input>
  197. </el-form-item>
  198. <el-form-item label="标签号">
  199. <el-input v-if="this.modalData.specialTaskFlag === 'Y'" disabled v-model="modalData.rollNo" style="width: 221px"></el-input>
  200. <el-input v-else v-model="modalData.rollNo" @keyup.native.enter="rollNoEnter" clearable style="width: 221px"></el-input>
  201. </el-form-item>
  202. </el-form>
  203. <el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;">
  204. <el-form-item v-if="this.modalData.specialTaskFlag !== 'Y' && (this.modalData.rollNo === '' || this.modalData.rollNo == null)" prop="orderNo" :rules="rules.seqNoType">
  205. <span style="cursor: pointer" slot="label" @click="getBaseList(1052)"><a herf="#">派工单号</a></span>
  206. <el-input v-model="modalData.seqNo" style="width: 221px"></el-input>
  207. </el-form-item>
  208. <el-form-item v-if="this.modalData.specialTaskFlag !== 'Y' && this.modalData.rollNo !== '' && this.modalData.rollNo != null" prop="orderNo" :rules="rules.seqNoType">
  209. <span slot="label">派工单号</span>
  210. <el-input v-model="modalData.seqNo" disabled style="width: 221px"></el-input>
  211. </el-form-item>
  212. <el-form-item v-if="this.modalData.specialTaskFlag === 'Y'" prop="orderNo" :rules="rules.seqNoType">
  213. <span slot="label">派工单号</span>
  214. <el-input v-model="modalData.seqNo" disabled style="width: 221px"></el-input>
  215. </el-form-item>
  216. <el-form-item label="工单号" prop="orderNo" :rules="rules.orderNoType">
  217. <el-input v-model="modalData.orderNo" style="width: 221px" disabled></el-input>
  218. </el-form-item>
  219. </el-form>
  220. <el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;">
  221. <el-form-item label="工序" prop="operationDesc" :rules="rules.operationDescType">
  222. <el-select v-model="modalData.operationDesc" placeholder="请选择" style="width: 221px">
  223. <el-option
  224. v-for = "i in operationList"
  225. :key = "i.operationNo"
  226. :label = "i.operationDesc"
  227. :value = "i.operationDesc">
  228. </el-option>
  229. </el-select>
  230. </el-form-item>
  231. <el-form-item v-if="this.modalData.specialTaskFlag === 'Y'">
  232. <span style="cursor: pointer" slot="label" @click="getBaseList(505)"><a herf="#">机台</a></span>
  233. <el-input v-model="modalData.resourceDesc" style="width: 221px"></el-input>
  234. </el-form-item>
  235. <el-form-item v-else label="机台" prop="resourceId" :rules="rules.resourceIdType">
  236. <el-input v-model="modalData.resourceDesc" style="width: 221px"></el-input>
  237. </el-form-item>
  238. </el-form>
  239. <el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
  240. <el-form-item v-if="this.modalData.specialTaskFlag === 'Y'" :model="modalData">
  241. <span style="cursor: pointer" slot="label" @click="queryPartList"><a herf="#">物料编码</a></span>
  242. <el-input v-model="modalData.partNo" style="width: 221px"></el-input>
  243. </el-form-item>
  244. <el-form-item v-else label="物料编码" prop="partNo" :rules="rules.partNoType">
  245. <el-input v-model="modalData.partNo" readonly style="width: 221px"></el-input>
  246. </el-form-item>
  247. <el-form-item label="物料名称">
  248. <el-input v-model="modalData.partDesc" readonly style="width: 221px"></el-input>
  249. </el-form-item>
  250. </el-form>
  251. <el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
  252. <el-form-item label="物料类别">
  253. <el-input v-model="modalData.invdefinetype" readonly style="width: 221px"></el-input>
  254. </el-form-item>
  255. <el-form-item label="SKU">
  256. <el-input v-model="modalData.sku" readonly style="width: 221px"></el-input>
  257. </el-form-item>
  258. </el-form>
  259. <el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;">
  260. <el-form-item prop="templateId" :rules="rules.templateId">
  261. <span style="cursor: pointer" v-if="'1' === '1'" slot="label" @click="queryTemplateList"><a>检验模板</a></span>
  262. <span v-else slot="label">检验模板</span>
  263. <el-input v-model="modalData.templateName" disabled style="width: 221px"></el-input>
  264. </el-form-item>
  265. <el-form-item label="送检数量:" prop="rollQty" :rules="rules.rollQtyType">
  266. <el-input v-model="modalData.rollQty" type="number" style="width: 103px"></el-input>
  267. </el-form-item>
  268. <el-form-item label="单位" prop="umId" :rules="rules.umIdType">
  269. <el-select v-model="modalData.umId" placeholder="请选择" style="width: 103px">
  270. <el-option
  271. v-for = "i in umList"
  272. :key = "i.umId"
  273. :label = "i.umName"
  274. :value = "i.umId">
  275. </el-option>
  276. </el-select>
  277. </el-form-item>
  278. </el-form>
  279. <el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
  280. <el-form-item label="送检总数">
  281. <el-input v-model="modalData.sjzs" disabled style="width: 120px"></el-input>
  282. </el-form-item>
  283. <el-form-item label=" ">
  284. <input type="checkbox" id="specialTask" name="specialTask" v-model="checked" @click="changeSpecialTask"/> <label for="specialTask">无工单检验</label>
  285. </el-form-item>
  286. </el-form>
  287. <el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
  288. <el-form-item label="特殊要求">
  289. <el-input type="textarea" v-model="modalData.specialRequirements" :rows="3" resize='none' show-word-limit style="width: 456px;height: 30px"></el-input>
  290. </el-form-item>
  291. </el-form>
  292. <el-footer style="height:40px;margin-top: 55px;text-align:center">
  293. <el-button type="primary" :loading="saveLoading" @click="saveData">保存</el-button>
  294. <el-button type="primary" @click="modalFlag = false">关闭</el-button>
  295. </el-footer>
  296. </el-dialog>
  297. <!-- 检验单详情页 -->
  298. <el-dialog title="检验明细清单" :close-on-click-modal="false" v-drag :visible.sync="detailInformationFlag" width="1200px">
  299. <el-form :inline="true" label-position="top" @keyup.enter.native = "getDataList">
  300. <el-form-item :label="'物料编码'">
  301. <el-input v-model="detailData.partNo" readonly style="width: 100px"></el-input>
  302. </el-form-item>
  303. <el-form-item :label="'物料类别'">
  304. <el-input v-model="detailData.invdefinetype" readonly style="width: 100px"></el-input>
  305. </el-form-item>
  306. <el-form-item :label="'PN'">
  307. <el-input v-model="detailData.cinvSourceCode" readonly style="width: 100px"></el-input>
  308. </el-form-item>
  309. <el-form-item :label="'SKU'">
  310. <el-input v-model="detailData.sku" readonly style="width: 100px"></el-input>
  311. </el-form-item>
  312. <el-form-item :label="'物料名称'">
  313. <el-input v-model="detailData.partDesc" readonly style="width: 300px"></el-input>
  314. </el-form-item>
  315. <el-form-item :label="'单位'">
  316. <el-input v-model="detailData.umName" readonly style="width: 60px"></el-input>
  317. </el-form-item>
  318. <el-form-item>
  319. <span v-if="detailData.submitFlag === 'Y'" slot="label">协同人员</span>
  320. <span v-else style="cursor: pointer" slot="label" @click="getOperatorList"><a>协同人员</a></span>
  321. <el-input v-model="detailData.operatorName" readonly style="width: 150px"></el-input>
  322. </el-form-item>
  323. <el-form-item>
  324. <span v-if="detailData.submitFlag === 'Y'" slot="label">责任人</span>
  325. <span v-else style="cursor: pointer" slot="label" @click="getResponsiblePersonList"><a>责任人</a></span>
  326. <el-input v-model="detailData.responsiblePersonName" readonly style="width: 150px"></el-input>
  327. </el-form-item>
  328. </el-form>
  329. <el-form :inline="true" label-position="top" @keyup.enter.native = "getDataList">
  330. <el-form-item :label="'送检数量'">
  331. <el-input-number :controls="false" :step="0" v-model="detailData.rollQty" style="width: 85px"></el-input-number>
  332. </el-form-item>
  333. <el-form-item :label="'抽样数量'">
  334. <el-input-number :controls="false" :step="0" v-model="detailData.samplingQty" style="width: 85px"></el-input-number>
  335. </el-form-item>
  336. <el-form-item :label="'合格数量'">
  337. <el-input-number :controls="false" :step="0" min="0" v-if="detailData.submitFlag === 'Y'" v-model="detailData.passQty" disabled style="width: 85px"></el-input-number>
  338. <el-input-number :controls="false" :step="0" min="0" v-else v-model="detailData.passQty" style="width: 85px"></el-input-number>
  339. </el-form-item>
  340. <el-form-item :label="'不合格数量'">
  341. <el-input-number :controls="false" :step="0" min="0" v-model="detailData.notPassQty" disabled style="width: 85px"></el-input-number>
  342. </el-form-item>
  343. <el-form-item :label="'不合格项目数量'">
  344. <el-input-number :controls="false" :step="0" v-if="detailData.submitFlag === 'Y'" v-model="detailData.unqualifiedQty" disabled style="width: 85px"></el-input-number>
  345. <el-input-number :controls="false" :step="0" v-else v-model="detailData.unqualifiedQty" style="width: 85px"></el-input-number>
  346. </el-form-item>
  347. <el-form-item :label="'批次合格数'">
  348. <el-input-number :controls="false" :step="0" min="0" v-model="detailData.batchQualifiedQty" disabled style="width: 85px"></el-input-number>
  349. </el-form-item>
  350. <el-form-item :label="'批次不合格数'">
  351. <el-input-number :controls="false" :step="0" min="0" v-model="detailData.notbatchQualifiedQty" disabled style="width: 85px"></el-input-number>
  352. </el-form-item>
  353. <el-form-item style="margin-top: 13px;margin-left: 360px">
  354. <!-- <el-button v-if="detailData.submitFlag !== 'Y'" :loading="loadFlag" @click="dataAcquisition">-->
  355. <!-- <svg t="1739002700745" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="38076" width="22" height="22"><path d="M922.000696 762.746435V465.363478l55.652174-0.111304v299.542261c0 131.695304-106.562783 239.571478-236.922435 239.571478H285.42887C155.158261 1004.365913 48.484174 896.623304 48.484174 764.794435V465.252174h59.258435v299.542261c0 101.843478 77.022609 179.712 177.775304 179.712H740.841739c100.61913 0 181.158957-79.916522 181.158957-181.76z" fill="#1D293F" p-id="38077"></path><path d="M290.148174 192.556522c20.301913-20.925217 30.47513-48.617739 30.47513-83.099826 0-72.548174-36.285217-108.833391-108.722087-108.833392H141.401043v223.365566h70.255305c32.055652-0.111304 58.167652-10.529391 78.491826-31.432348z m-105.227131-7.635479V39.446261h23.596522c19.70087 0 35.661913 6.166261 47.994435 18.632348 12.354783 12.466087 18.387478 29.740522 18.387478 52.001391 0 22.973217-5.921391 41.22713-17.652869 54.650435s-27.937391 20.190609-48.617739 20.190608H184.921043zM634.434783 595.366957h-84.057044V498.866087a102.511304 102.511304 0 0 0 74.262261-98.54887c0-56.230957-45.478957-102.310957-101.10887-102.310956-55.629913 0-101.086609 46.08-101.086608 102.310956 0 46.08 30.586435 85.25913 72.192 97.947826v96.990609h-81.252174c-16.829217-43.78713-50.688-99.283478-81.65287-143.070609a101.331478 101.331478 0 0 0 14.269218-52.001391c0-56.230957-45.946435-102.310957-102.177392-102.310956s-102.177391 46.08-102.177391 102.310956c0 56.230957 45.946435 102.310957 102.177391 102.310957 15.716174 0 30.72-3.628522 44.009739-10.017392 21.170087 34.326261 42.829913 74.351304 57.811479 102.778435h-73.906087l128.333913 130.493218 94.675478-108.966957v145.853217h-111.616l148.034783 148.858435 130.715826-148.858435h-111.504696v-129.402434l91.180522 92.516174 113.307826-130.248348h-53.203478c14.758957-28.42713 36.173913-68.452174 57.210434-102.800696 13.178435 6.41113 27.937391 10.039652 43.542261 10.039652 55.629913 0 101.086609-46.08 101.086609-102.310956 0-56.230957-45.456696-102.310957-101.086609-102.310957-55.652174 0-101.220174 46.08-101.220174 102.310957a102.4 102.4 0 0 0 14.135653 52.001391c-30.72 43.653565-64.200348 99.283478-80.896 142.937044z m-390.611479-148.48a46.614261 46.614261 0 0 1-46.436174-46.458435c0-25.510957 20.925217-46.436174 46.436174-46.436174s46.436174 20.925217 46.436174 46.436174-20.925217 46.436174-46.436174 46.436174z m279.819131 0c-25.266087 0-45.946435-20.925217-45.946435-46.458435 0-25.510957 20.702609-46.436174 45.968696-46.436174 25.266087 0 45.946435 20.925217 45.946434 46.436174s-20.680348 46.436174-45.946434 46.436174z m278.639304-93.005914c25.288348 0 45.968696 20.925217 45.968696 46.436174s-20.702609 46.436174-45.968696 46.436174c-25.266087 0-45.946435-20.925217-45.946435-46.436174s20.680348-46.436174 45.946435-46.436174zM395.130435 172.722087h74.128695l15.248696 51.155478h47.415652L458.707478 0.623304h-51.155478L332.8 223.98887h47.170783l15.11513-51.266783z m32.768-114.777044c1.825391-6.032696 3.027478-12.332522 3.517217-18.854956h1.202087c0.601043 8.102957 1.691826 14.514087 3.138783 19.456l23.218087 77.401043h-54.405566l23.329392-78.002087z m168.96 165.932522h43.631304V39.446261h58.189913V0.623304h-159.877565v38.956522h58.056348v184.297739z m169.894956-51.155478h74.128696l15.248696 51.155478h47.415652L830.330435 0.623304h-51.155478l-74.752 223.365566h47.193043l15.09287-51.266783z m32.768-114.777044c1.825391-6.032696 3.027478-12.332522 3.517218-18.854956h1.202087c0.601043 8.102957 1.691826 14.514087 3.161043 19.456l23.218087 77.401043h-54.427826l23.329391-78.002087z" fill="#FD9F01" p-id="38078"></path></svg>-->
  356. <!-- </el-button>-->
  357. <el-button @click="getFileContentData(detailData)">
  358. <svg t="1739002974630" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="59598" width="22" height="22"><path d="M807.3216 889.5488H221.184c-78.7456 0-142.848-64.1024-142.848-142.848V286.976c0-78.7456 64.1024-142.848 142.848-142.848h178.8416c20.7872 0 40.7552 8.8064 54.784 24.1664l77.568 85.0944c2.4064 2.6112 5.8368 4.1472 9.3696 4.1472h265.5232c78.7456 0 142.848 64.1024 142.848 142.848v346.2656c0.0512 78.7968-64.0512 142.8992-142.7968 142.8992zM221.184 205.568c-44.9024 0-81.408 36.5056-81.408 81.408v459.6736c0 44.9024 36.5056 81.408 81.408 81.408h586.1376c44.9024 0 81.408-36.5056 81.408-81.408V400.4352c0-44.9024-36.5056-81.408-81.408-81.408h-265.5232c-20.7872 0-40.7552-8.8064-54.784-24.1664L409.3952 209.7152c-2.4064-2.6112-5.8368-4.1472-9.3696-4.1472H221.184z" fill="#6FB1F9" p-id="59599"></path><path d="M466.0224 453.8368H249.0368c-16.9472 0-30.72-13.7728-30.72-30.72s13.7728-30.72 30.72-30.72h216.9856c16.9472 0 30.72 13.7728 30.72 30.72s-13.7728 30.72-30.72 30.72z" fill="#6FB1F9" p-id="59600"></path></svg>
  359. </el-button>
  360. <el-button @click="subDetailUpload">
  361. <svg t="1739002903501" class="icon" viewBox="0 0 1550 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="50418" width="22" height="22"><path d="M985.000229 727.917714c20.48 0 34.113829-13.663086 34.113828-34.143085 0-10.24-3.393829-17.056914-10.24-23.873829l-204.8-204.8c-6.816914-6.846171-13.633829-10.24-23.873828-10.24-10.24 0-17.086171 3.393829-23.903086 10.24l-204.8 204.8c-6.816914 6.816914-10.24 13.633829-10.24 23.873829 0 20.48 13.663086 34.143086 34.143086 34.143085 10.24 0 17.056914-3.423086 23.873828-10.24l146.783086-146.783085v395.966171c0 20.48 13.663086 34.113829 34.143086 34.113829s34.113829-13.633829 34.113828-34.113829V570.894629l146.783086 146.783085c6.816914 6.816914 13.663086 10.24 23.903086 10.24z m282.799542-353.045943c0-10.24 1.287314-17.086171 0-27.296914C1240.502857 128.117029 1043.0464 29.257143 858.199771 29.257143 701.205943 29.257143 564.662857 117.994057 496.405943 247.720229 469.079771 240.874057 441.782857 234.057143 414.485943 234.057143 281.365943 234.057143 175.542857 307.112229 175.542857 440.232229c0 17.056914 3.423086 34.113829 6.816914 51.2C97.514057 535.786057 29.257143 585.5232 29.257143 723.031771c0 170.656914 136.543086 277.942857 307.2 277.942858H585.142857c20.48 0 34.143086-13.633829 34.143086-34.113829S605.622857 932.717714 585.142857 932.717714h-248.685714c-133.12 0-238.943086-76.565943-238.943086-209.685943 0-82.797714 37.566171-131.657143 105.325714-166.765714l58.046172-20.48-13.663086-61.44c-3.423086-10.24-3.423086-23.873829-3.423086-34.113828 0-95.583086 75.103086-137.918171 170.686172-137.918172 20.48 0 37.536914 3.423086 58.016914 10.24l54.623086 20.48 27.296914-51.2c61.44-112.64 179.317029-198.100114 303.776914-184.32 184.846629 20.48 309.511314 71.68 341.343086 250.0608 1.199543 6.787657 0 10.24 0 17.056914v6.846172l-3.423086 47.776914 44.383086 20.48c110.094629 34.6112 222.354286 143.36 222.354286 249.183086 0 150.176914-122.88 243.799771-273.056914 243.799771h-214.571886c-20.48 0-34.113829 13.663086-34.113829 34.143086s13.633829 34.113829 34.113829 34.113829h214.571886c187.713829 0 341.313829-124.342857 341.313828-312.056686 0-144.530286-121.270857-269.663086-263.314286-314.046172z" fill="#6C5FFC" p-id="50419"></path></svg>
  362. </el-button>
  363. </el-form-item>
  364. </el-form>
  365. <el-form :inline="true" label-position="top">
  366. <el-form-item :label="'检验结论'">
  367. <el-select v-if="detailData.submitFlag === 'Y'" v-model="detailData.inspectionResult" disabled style="width: 100px" placeholder="请选择">
  368. <el-option label="合格" value="合格"></el-option>
  369. <el-option label="不合格" value="不合格"></el-option>
  370. </el-select>
  371. <el-select v-else v-model="detailData.inspectionResult" style="width: 100px" placeholder="请选择">
  372. <el-option label="合格" value="合格"></el-option>
  373. <el-option label="不合格" value="不合格"></el-option>
  374. </el-select>
  375. </el-form-item>
  376. <el-form-item :label="'质检备注'">
  377. <el-input v-if="detailData.submitFlag === 'Y'" v-model="detailData.inspectionRemark" disabled style="width: 293px"></el-input>
  378. <el-input v-else v-model="detailData.inspectionRemark" style="width: 293px"></el-input>
  379. </el-form-item>
  380. <el-form-item v-show="detailData.inspectionResult === '不合格'" style="margin-top: 5px">
  381. <el-form-item :label="'处置措施'">
  382. <el-select v-if="detailData.submitFlag === 'Y'" clearable v-model="detailData.disposalMeasures" disabled style="width: 100px">
  383. <el-option
  384. v-for = "i in disposalMeasuresOptions"
  385. :key = "i.id"
  386. :label = "i.disposalMeasures"
  387. :value = "i.disposalMeasures">
  388. </el-option>
  389. </el-select>
  390. <el-select v-else clearable v-model="detailData.disposalMeasures" style="width: 100px">
  391. <el-option
  392. v-for = "i in disposalMeasuresOptions"
  393. :key = "i.id"
  394. :label = "i.disposalMeasures"
  395. :value = "i.disposalMeasures">
  396. </el-option>
  397. </el-select>
  398. </el-form-item>
  399. <el-form-item :label="'处置说明'">
  400. <el-input v-if="detailData.submitFlag === 'Y'" v-model="detailData.disposalRemark" disabled style="width: 293px"></el-input>
  401. <el-input v-else v-model="detailData.disposalRemark" style="width: 293px"></el-input>
  402. </el-form-item>
  403. </el-form-item>
  404. </el-form>
  405. <!-- 展示列表 -->
  406. <div class="rq ">
  407. <el-table
  408. :height="500"
  409. :data="detailList"
  410. border
  411. style="width: 100%;">
  412. <el-table-column
  413. prop=""
  414. header-align="center"
  415. align="center"
  416. min-width="90"
  417. label="操作">
  418. <template slot-scope="scope">
  419. <el-button class="el-icon-picture" v-if="scope.row.imageDetailNum > 0" type="success" @click="uploadImageModal(scope.row)"></el-button>
  420. <el-button class="el-icon-picture" v-else type="primary" @click="uploadImageModal(scope.row)"></el-button>
  421. <!-- <el-button style="margin-left: 2px" class="el-icon-s-platform" type="primary" :loading="loadFlag" @click="dataAcquisitionByItem(scope.row)"></el-button>-->
  422. </template>
  423. </el-table-column>
  424. <el-table-column
  425. v-for="(item,index) in detailColumnList" :key="index"
  426. :sortable="item.columnSortable"
  427. :prop="item.columnProp"
  428. :header-align="item.headerAlign"
  429. :show-overflow-tooltip="item.showOverflowTooltip"
  430. :align="item.align"
  431. :fixed="item.fixed === ''?false:item.fixed"
  432. :min-width="item.columnWidth"
  433. :label="item.columnLabel">
  434. <template slot-scope="scope">
  435. <span v-if="!item.columnHidden">
  436. <template v-if="item.columnProp === 'pictureFlag'">
  437. <span :style="{ color: scope.row[item.columnProp] === 'Y' ? 'red' : '' }">{{ scope.row[item.columnProp] === 'Y' ? '是' : scope.row[item.columnProp] === 'N' ? '否' : scope.row[item.columnProp] }}</span>
  438. </template>
  439. <template v-else>{{ scope.row[item.columnProp] }}</template>
  440. </span>
  441. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  442. </template>
  443. </el-table-column>
  444. <el-table-column
  445. prop=""
  446. header-align="center"
  447. align="right"
  448. min-width="80"
  449. label="实测值">
  450. <template slot-scope="scope">
  451. <el-input :ref="`textValue${scope.$index}`" v-if="scope.row.valueTypeDb === 'N'" v-model="scope.row.numberValue" @keyup.enter.native="focusNextInput(scope.$index, 'textValue')" type="number" @change="updateItemResult(scope.row)" style="height: 11px; width: 98%"></el-input>
  452. <el-input :ref="`textValue${scope.$index}`" v-else v-model="scope.row.textValue" @keyup.enter.native="focusNextInput(scope.$index, 'textValue')" style="height: 11px; width: 98%"></el-input>
  453. </template>
  454. </el-table-column>
  455. <el-table-column
  456. prop=""
  457. header-align="center"
  458. align="center"
  459. min-width="80"
  460. label="检验明细">
  461. <template slot-scope="scope">
  462. <el-button v-if="scope.row.subDetailRecordNum > 0" type="success" @click="subDetailModal(scope.row) ">点击输入</el-button>
  463. <el-button v-else type="primary" @click="subDetailModal(scope.row) ">点击输入</el-button>
  464. </template>
  465. </el-table-column>
  466. <el-table-column
  467. prop=""
  468. header-align="center"
  469. align="right"
  470. min-width="80"
  471. label="抽样数量">
  472. <template slot-scope="scope">
  473. <el-input-number :controls="false" :step="0" v-if="detailData.submitFlag === 'Y'" v-model="scope.row.samplingQty" disabled style="height: 11px; width: 98%"></el-input-number>
  474. <el-input-number :controls="false" :step="0" v-else :ref="`samplingQty${scope.$index}`" v-model="scope.row.samplingQty" @keyup.enter.native="focusNextInput(scope.$index, 'samplingQty')" style="height: 11px; width: 98%"></el-input-number>
  475. </template>
  476. </el-table-column>
  477. <el-table-column
  478. prop=""
  479. header-align="center"
  480. align="right"
  481. min-width="80"
  482. label="不合格数量">
  483. <template slot-scope="scope">
  484. <el-input-number :controls="false" :step="0" v-if="detailData.submitFlag === 'Y'" v-model="scope.row.unqualifiedQuantity" disabled style="height: 11px; width: 98%"></el-input-number>
  485. <el-input-number :controls="false" :step="0" v-else :ref="`unqualifiedQuantity${scope.$index}`" v-model="scope.row.unqualifiedQuantity" @keyup.enter.native="focusNextInput(scope.$index, 'unqualifiedQuantity')" style="height: 11px; width: 98%"></el-input-number>
  486. </template>
  487. </el-table-column>
  488. <el-table-column
  489. prop=""
  490. header-align="center"
  491. align="right"
  492. min-width="75"
  493. label="项目检验结论">
  494. <template slot-scope="scope">
  495. <el-select :class="{redElSelect:scope.row.itemResult === 'N', greenElSelect:scope.row.itemResult === 'Y'}" v-if="detailData.submitFlag === 'Y'" v-model="scope.row.itemResult" disabled style="height: 11px" >
  496. <el-option label="合格" value="Y" style="color: green"></el-option>
  497. <el-option label="不合格" value="N" style="color: red"></el-option>
  498. </el-select>
  499. <el-select :class="{redElSelect:scope.row.itemResult === 'N', greenElSelect:scope.row.itemResult === 'Y'}" v-else v-model="scope.row.itemResult" style="height: 11px" placeholder="合格">
  500. <el-option label="合格" value="Y" style="color: green"></el-option>
  501. <el-option label="不合格" value="N" style="color: red"></el-option>
  502. </el-select>
  503. </template>
  504. </el-table-column>
  505. </el-table>
  506. </div>
  507. <el-footer style="height:40px;margin-top: 20px;text-align:center">
  508. <el-button v-if="detailData.state === '待检验'" type="primary" :loading="transferLoadFlag" @click="Transfer('1')">应用</el-button>
  509. <el-button type="primary" @click="detailInformationFlag=false">关闭</el-button>
  510. <el-button v-if="detailData.state === '待检验' || detailData.state === '待审核'" type="danger" :loading="transferLoadFlag" @click="Transfer('2')">保存</el-button>
  511. </el-footer>
  512. </el-dialog>
  513. <!-- 子明细信息 -->
  514. <el-dialog title="子明细信息" :close-on-click-modal="false" v-drag :visible.sync="subDetailFlag" width="1102px">
  515. <el-button type="success" icon="el-icon-plus" size="mini" @click="handleAddBtn(subDetailData)">添加</el-button>
  516. <el-button type="danger" icon="el-icon-delete" size="mini" @click="handleDeleteBtn(subDetailData)">删除</el-button>
  517. <el-button type="primary" icon="el-icon-more" size="mini" @click="batchHandleAdd(subDetailData)">批量新增</el-button>
  518. <div class="rq ">
  519. <el-table
  520. :height="400"
  521. :data="templateTableData"
  522. border
  523. v-loading="subDetailLoading"
  524. element-loading-text="拼命加载中"
  525. :row-class-name="rowClassName"
  526. @selection-change="handleDetailSelectionChange"
  527. style="width: 100%;">
  528. <el-table-column type="selection" align="center" width="40"></el-table-column>
  529. <el-table-column label="序号" align="center" prop="num" width="50"></el-table-column>
  530. <el-table-column prop="samplingLocation" header-align="center" align="center" :required="true" label="抽样位置A" width="120">
  531. <template slot-scope="{row}">
  532. <el-input v-if="templateTableData[row.xh-1].isSubmit === 'Y'" v-model="templateTableData[row.xh-1].samplingLocation" readonly placeholder="请输入抽样位置A"></el-input>
  533. <el-input v-else :ref="`${row.xh-1}` + `a`" v-model="templateTableData[row.xh-1].samplingLocation" @keyup.enter.native="nextFocus1(row.xh-1)" placeholder="请输入抽样位置A"></el-input>
  534. </template>
  535. </el-table-column>
  536. <el-table-column prop="samplingLocationB" header-align="center" align="center" :required="true" label="抽样位置B" width="120">
  537. <template slot-scope="{row}">
  538. <el-input v-if="templateTableData[row.xh-1].isSubmit === 'Y'" v-model="templateTableData[row.xh-1].samplingLocationB" readonly placeholder="请输入抽样位置B"></el-input>
  539. <el-input v-else :ref="`${row.xh-1}` + `b`" v-model="templateTableData[row.xh-1].samplingLocationB" @keyup.enter.native="nextFocus2(row.xh-1)" placeholder="请输入抽样位置B"></el-input>
  540. </template>
  541. </el-table-column>
  542. <el-table-column prop="subDetailValue" header-align="center" align="center" :required="true" label="实测值A" width="150">
  543. <template slot-scope="{row}">
  544. <el-input v-if="templateTableData[row.xh-1].isSubmit==='Y'" v-model="templateTableData[row.xh-1].subDetailValue" readonly placeholder="请输入实测值A"></el-input>
  545. <el-input v-else :ref="`${row.xh-1}` + `c`" v-model="templateTableData[row.xh-1].subDetailValue" @keyup.enter.native="nextFocus3(row.xh-1)" placeholder="请输入实测值A"></el-input>
  546. </template>
  547. </el-table-column>
  548. <el-table-column prop="subDetailValueB" header-align="center" align="center" :required="true" label="实测值B" width="150">
  549. <template slot-scope="{row}">
  550. <el-input v-if="templateTableData[row.xh-1].isSubmit === 'Y'" v-model="templateTableData[row.xh-1].subDetailValueB" readonly placeholder="请输入实测值B"></el-input>
  551. <el-input v-else :ref="`${row.xh-1}` + `d`" v-model="templateTableData[row.xh-1].subDetailValueB" @keyup.enter.native="nextFocus4(row.xh-1)" placeholder="请输入实测值B"></el-input>
  552. </template>
  553. </el-table-column>
  554. <el-table-column prop="subDetailValueC" header-align="center" align="center" :required="true" label="实测值C" width="150">
  555. <template slot-scope="{row}">
  556. <el-input v-if="templateTableData[row.xh-1].isSubmit === 'Y'" v-model="templateTableData[row.xh-1].subDetailValueC" readonly placeholder="请输入实测值C"></el-input>
  557. <el-input v-else :ref="`${row.xh-1}` + `e`" v-model="templateTableData[row.xh-1].subDetailValueC" @keyup.enter.native="nextFocus5(row.xh-1)" placeholder="请输入实测值C"></el-input>
  558. </template>
  559. </el-table-column>
  560. <el-table-column prop="subDetailValueD" header-align="center" align="center" :required="true" label="实测值D" width="150">
  561. <template slot-scope="{row}">
  562. <el-input v-if="templateTableData[row.xh-1].isSubmit === 'Y'" v-model="templateTableData[row.xh-1].subDetailValueD" readonly placeholder="请输入实测值D"></el-input>
  563. <el-input v-else :ref="`${row.xh-1}` + `f`" v-model="templateTableData[row.xh-1].subDetailValueD" @keyup.enter.native="nextFocus6(row.xh-1)" placeholder="请输入实测值D"></el-input>
  564. </template>
  565. </el-table-column>
  566. <el-table-column prop="subDetailValueE" header-align="center" align="center" :required="true" label="实测值E" width="150">
  567. <template slot-scope="{row}">
  568. <el-input v-if="templateTableData[row.xh-1].isSubmit === 'Y'" v-model="templateTableData[row.xh-1].subDetailValueE" readonly placeholder="请输入实测值E"></el-input>
  569. <el-input v-else :ref="`${row.xh-1}` + `g`" v-model="templateTableData[row.xh-1].subDetailValueE" @keyup.enter.native="nextFocus7(row.xh-1)" placeholder="请输入实测值E"></el-input>
  570. </template>
  571. </el-table-column>
  572. </el-table>
  573. <!-- 分页-->
  574. <el-pagination
  575. @size-change="sizeChangeHandle2"
  576. @current-change="currentChangeHandle2"
  577. :current-page="pageIndex2"
  578. :page-sizes="[20, 50, 100, 200, 500]"
  579. :page-size="pageSize2"
  580. :total="tableData.length"
  581. layout="total, sizes, prev, pager, next, jumper">
  582. </el-pagination>
  583. </div>
  584. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  585. <el-button v-if="detailData.submitFlag !== 'Y'" type="primary" :loading="subDetailVisiable" @click="saveSubDetailResult">保存</el-button>
  586. <el-button type="primary" @click="subDetailFlag = false">关闭</el-button>
  587. </el-footer>
  588. </el-dialog>
  589. <!-- 批量新增子明细操作-->
  590. <el-dialog title="批量新增" :close-on-click-modal="false" v-drag :visible.sync="batchHandleAddModalFlag" width="510px">
  591. <el-form :inline="true" label-position="top">
  592. <el-form-item :label="'默认抽样位置A'">
  593. <el-input v-model="batchAddData.samplingLocation" style="width: 150px"></el-input>
  594. </el-form-item>
  595. <el-form-item :label="'默认抽样位置B'">
  596. <el-input v-model="batchAddData.samplingLocationB" style="width: 150px"></el-input>
  597. </el-form-item>
  598. <el-form-item :label="'抽样数量'">
  599. <el-input type="number" v-model="batchAddData.samplingNumber" style="width: 150px"></el-input>
  600. </el-form-item>
  601. </el-form>
  602. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  603. <el-button type="primary" @click="batchHandleAddModal">保存</el-button>
  604. <el-button type="primary" @click="batchHandleAddModalFlag=false">关闭</el-button>
  605. </el-footer>
  606. </el-dialog>
  607. <!-- 检验模板 -->
  608. <el-dialog title="检验模板清单" :close-on-click-modal="false" v-drag :visible.sync="templateModelFlag" width="520px">
  609. <div class="rq">
  610. <el-form :inline="true" label-position="top" :model="templateData">
  611. <el-form-item :label="'模板编码'">
  612. <el-input v-model="templateData.templateId" clearable style="width: 120px"></el-input>
  613. </el-form-item>
  614. <el-form-item :label="'模板名称'">
  615. <el-input v-model="templateData.templateName" clearable style="width: 120px"></el-input>
  616. </el-form-item>
  617. <el-form-item :label="' '">
  618. <el-button type="primary" @click="queryTemplateList">查询</el-button>
  619. </el-form-item>
  620. </el-form>
  621. <el-table
  622. :height="300"
  623. :data="templateList"
  624. @row-dblclick="getRowData"
  625. border
  626. style="width: 100%;">
  627. <el-table-column
  628. v-for="(item,index) in templateDetailList" :key="index"
  629. :sortable="item.columnSortable"
  630. :prop="item.columnProp"
  631. :header-align="item.headerAlign"
  632. :show-overflow-tooltip="item.showOverflowTooltip"
  633. :align="item.align"
  634. :fixed="item.fixed==''?false:item.fixed"
  635. :min-width="item.columnWidth"
  636. :label="item.columnLabel">
  637. <template slot-scope="scope">
  638. <span v-if="!item.columnHidden">
  639. <template v-if="item.columnProp === 'pictureFlag'">
  640. <span :style="{ color: scope.row[item.columnProp] === 'Y' ? 'red' : '' }">{{ scope.row[item.columnProp] === 'Y' ? '是' : scope.row[item.columnProp] === 'N' ? '否' : scope.row[item.columnProp] }}</span>
  641. </template>
  642. <template v-else>{{ scope.row[item.columnProp] }}</template>
  643. </span>
  644. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  645. </template>
  646. </el-table-column>
  647. </el-table>
  648. </div>
  649. <el-footer style="height:40px;margin-top: 20px;text-align:center">
  650. <el-button type="primary" @click="templateModelFlag=false">关闭</el-button>
  651. </el-footer>
  652. </el-dialog>
  653. <!-- 物料 -->
  654. <el-dialog title="物料清单" :close-on-click-modal="false" v-drag :visible.sync="partModelFlag" width="520px">
  655. <div class="rq">
  656. <el-form :inline="true" label-position="top" :model="partData">
  657. <el-form-item :label="'物料编码'">
  658. <el-input v-model="partData.partNo" clearable style="width: 115px"></el-input>
  659. </el-form-item>
  660. <el-form-item :label="'物料名称'">
  661. <el-input v-model="partData.partDesc" clearable style="width: 115px"></el-input>
  662. </el-form-item>
  663. <el-form-item :label="'SKU'">
  664. <el-input v-model="partData.sku" clearable style="width: 79px"></el-input>
  665. </el-form-item>
  666. <el-form-item :label="'PN'">
  667. <el-input v-model="partData.cinvSourceCode" clearable style="width: 79px"></el-input>
  668. </el-form-item>
  669. <el-form-item :label="' '">
  670. <el-button type="primary" @click="queryPartList">查询</el-button>
  671. </el-form-item>
  672. </el-form>
  673. <el-table
  674. :height="300"
  675. :data="partList"
  676. @row-dblclick="getRowData2"
  677. border
  678. style="width: 100%;">
  679. <el-table-column
  680. v-for="(item,index) in partDetailList" :key="index"
  681. :sortable="item.columnSortable"
  682. :prop="item.columnProp"
  683. :header-align="item.headerAlign"
  684. :show-overflow-tooltip="item.showOverflowTooltip"
  685. :align="item.align"
  686. :fixed="item.fixed==''?false:item.fixed"
  687. :min-width="item.columnWidth"
  688. :label="item.columnLabel">
  689. <template slot-scope="scope">
  690. <span v-if="!item.columnHidden">
  691. <template v-if="item.columnProp === 'pictureFlag'">
  692. <span :style="{ color: scope.row[item.columnProp] === 'Y' ? 'red' : '' }">{{ scope.row[item.columnProp] === 'Y' ? '是' : scope.row[item.columnProp] === 'N' ? '否' : scope.row[item.columnProp] }}</span>
  693. </template>
  694. <template v-else>{{ scope.row[item.columnProp] }}</template>
  695. </span>
  696. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  697. </template>
  698. </el-table-column>
  699. </el-table>
  700. </div>
  701. <el-footer style="height:40px;margin-top: 20px;text-align:center">
  702. <el-button type="primary" @click="partModelFlag=false">关闭</el-button>
  703. </el-footer>
  704. </el-dialog>
  705. <!-- 文件清单 -->
  706. <el-dialog title="文件清单" :close-on-click-modal="false" v-drag :visible.sync="fileFlag" width="800px">
  707. <el-form :inline="true" label-position="top">
  708. <el-form-item v-if="detailInformationFlag">
  709. <el-button type="primary" @click="addUploadFileModal">上传文件</el-button>
  710. </el-form-item>
  711. </el-form>
  712. <iqc-file-table :columns="fileColumnList" :data-list="fileContentList" :query-loading="fileLoading" @refresh="getFileContentData(detailData)"></iqc-file-table>
  713. <el-footer style="height:35px;margin-top: 10px;text-align:center">
  714. <el-button type="primary" @click="fileFlag = false">关闭</el-button>
  715. </el-footer>
  716. </el-dialog>
  717. <!-- 派工单号 -->
  718. <el-dialog title="派工单号" @close="closeDialog" :close-on-click-modal="false" v-drag :visible.sync="seqDetailFlag" width="952px" height="273px">
  719. <el-form :inline="true" label-position="top" :model="seqDetailData" style="margin-left: 7px;margin-top: -5px;">
  720. <el-form-item label="工单号">
  721. <el-input v-model="seqDetailData.orderNo" clearable style="width: 150px"></el-input>
  722. </el-form-item>
  723. <el-form-item label="派工单号">
  724. <el-input v-model="seqDetailData.seqNo" clearable style="width: 150px"></el-input>
  725. </el-form-item>
  726. <el-form-item label="SKU">
  727. <el-input v-model="seqDetailData.sku" clearable style="width: 150px"></el-input>
  728. </el-form-item>
  729. <el-form-item label="状态">
  730. <el-select v-model="seqDetailData.status" style="width: 100px" placeholder="请选择">
  731. <el-option label="下达" value="N"></el-option>
  732. <el-option label="关闭" value="Y"></el-option>
  733. </el-select>
  734. </el-form-item>
  735. </el-form>
  736. <el-form :inline="true" label-position="top" :model="seqDetailData" style="margin-left: 7px;margin-top: -5px;">
  737. <el-form-item label="物料编码">
  738. <el-input v-model="seqDetailData.partNo" clearable style="width: 150px"></el-input>
  739. </el-form-item>
  740. <el-form-item label="物料名称">
  741. <el-input v-model="seqDetailData.partDesc" clearable style="width: 315px"></el-input>
  742. </el-form-item>
  743. <el-form-item label="工序">
  744. <el-input v-model="seqDetailData.operationDesc" clearable style="width: 150px"></el-input>
  745. </el-form-item>
  746. <el-form-item>
  747. <el-button type="primary" @click="searchSeqInfo" style="margin-top: 24px">查询</el-button>
  748. </el-form-item>
  749. </el-form>
  750. <el-table
  751. :height="400"
  752. :data="seqInfoList"
  753. @row-dblclick="getRowData1"
  754. border
  755. style="width: 100%;">
  756. <el-table-column
  757. v-for="(item,index) in seqDetailColumnList" :key="index"
  758. :sortable="item.columnSortable"
  759. :prop="item.columnProp"
  760. :header-align="item.headerAlign"
  761. :show-overflow-tooltip="item.showOverflowTooltip"
  762. :align="item.align"
  763. :fixed="item.fixed==''?false:item.fixed"
  764. :min-width="item.columnWidth"
  765. :label="item.columnLabel">
  766. <template slot-scope="scope">
  767. <span v-if="!item.columnHidden">
  768. <template v-if="item.columnProp === 'pictureFlag'">
  769. <span :style="{ color: scope.row[item.columnProp] === 'Y' ? 'red' : '' }">{{ scope.row[item.columnProp] === 'Y' ? '是' : scope.row[item.columnProp] === 'N' ? '否' : scope.row[item.columnProp] }}</span>
  770. </template>
  771. <template v-else>{{ scope.row[item.columnProp] }}</template>
  772. </span>
  773. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  774. </template>
  775. </el-table-column>
  776. </el-table>
  777. <el-footer style="height:40px;margin-top: 10px;text-align:center">
  778. <el-button type="primary" @click="seqDetailFlag = false">关闭</el-button>
  779. </el-footer>
  780. </el-dialog>
  781. <!-- 机修人员清单 -->
  782. <el-dialog title="人员清单" :close-on-click-modal="false" v-drag :visible.sync="operatorModelFlag" width="820px">
  783. <div class="rq">
  784. <el-form :inline="true" label-position="top" :model="operatorData">
  785. <el-form-item v-if="operatorData.flag !== '2'" :label="'所属角色'">
  786. <el-select v-model="operatorData.roleId" placeholder="请选择" style="width: 120px">
  787. <el-option
  788. v-for = "i in roleList"
  789. :key = "i.roleId"
  790. :label = "i.roleName"
  791. :value = "i.roleId">
  792. </el-option>
  793. </el-select>
  794. </el-form-item>
  795. <el-form-item :label="'用户编码'">
  796. <el-input v-model="operatorData.adminID" clearable style="width: 120px"></el-input>
  797. </el-form-item>
  798. <el-form-item :label="'用户姓名'">
  799. <el-input v-model="operatorData.adminName" clearable style="width: 120px"></el-input>
  800. </el-form-item>
  801. <el-form-item :label="' '">
  802. <el-button type="primary" @click="getOperatorList2">查询</el-button>
  803. </el-form-item>
  804. </el-form>
  805. <el-table
  806. :height="300"
  807. :data="operatorList"
  808. ref="operatorTable"
  809. @row-click="operatorClickRow"
  810. @selection-change="selectionChangeHandle2"
  811. border
  812. style="width: 100%;">
  813. <el-table-column
  814. type="selection"
  815. header-align="center"
  816. align="center"
  817. width="50">
  818. </el-table-column>
  819. <el-table-column
  820. v-for="(item,index) in operatorDetailList" :key="index"
  821. :sortable="item.columnSortable"
  822. :prop="item.columnProp"
  823. :header-align="item.headerAlign"
  824. :show-overflow-tooltip="item.showOverflowTooltip"
  825. :align="item.align"
  826. :fixed="item.fixed==''?false:item.fixed"
  827. :min-width="item.columnWidth"
  828. :label="item.columnLabel">
  829. <template slot-scope="scope">
  830. <span v-if="!item.columnHidden">
  831. <template v-if="item.columnProp === 'pictureFlag'">
  832. <span :style="{ color: scope.row[item.columnProp] === 'Y' ? 'red' : '' }">{{ scope.row[item.columnProp] === 'Y' ? '是' : scope.row[item.columnProp] === 'N' ? '否' : scope.row[item.columnProp] }}</span>
  833. </template>
  834. <template v-else>{{ scope.row[item.columnProp] }}</template>
  835. </span>
  836. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  837. </template>
  838. </el-table-column>
  839. </el-table>
  840. </div>
  841. <el-footer style="height:40px;margin-top: 20px;text-align:center">
  842. <el-button type="primary" @click="confirmOperator">确认</el-button>
  843. <el-button type="primary" @click="operatorModelFlag = false">关闭</el-button>
  844. </el-footer>
  845. </el-dialog>
  846. <!-- 配置项目设备 -->
  847. <el-dialog title="检验项目" :close-on-click-modal="false" v-drag :visible.sync="ItemObjectModelFlag" width="666px">
  848. <div class="rq">
  849. <el-table
  850. :height="350"
  851. :data="itemObjectList"
  852. border
  853. style="width: 100%">
  854. <el-table-column
  855. v-for="(item,index) in itemObjectColumnList" :key="index"
  856. :sortable="item.columnSortable"
  857. :prop="item.columnProp"
  858. :header-align="item.headerAlign"
  859. :show-overflow-tooltip="item.showOverflowTooltip"
  860. :align="item.align"
  861. :fixed="item.fixed===''?false:item.fixed"
  862. :min-width="item.columnWidth"
  863. :label="item.columnLabel">
  864. <template slot-scope="scope">
  865. <span v-if="!item.columnHidden">
  866. <template v-if="item.columnProp === 'pictureFlag'">
  867. <span :style="{ color: scope.row[item.columnProp] === 'Y' ? 'red' : '' }">{{ scope.row[item.columnProp] === 'Y' ? '是' : scope.row[item.columnProp] === 'N' ? '否' : scope.row[item.columnProp] }}</span>
  868. </template>
  869. <template v-else>{{ scope.row[item.columnProp] }}</template>
  870. </span>
  871. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  872. </template>
  873. </el-table-column>
  874. <el-table-column
  875. header-align="center"
  876. align="center"
  877. min-width="100"
  878. label="设备">
  879. <template slot-scope="scope">
  880. <el-select v-model="scope.row.equipmentNo" style="height: 11px" placeholder="请选择设备">
  881. <el-option
  882. v-for = "i in scope.row.objectList"
  883. :key = "i.objectID"
  884. :label = "i.objectDesc"
  885. :value = "i.objectID">
  886. </el-option>
  887. </el-select>
  888. </template>
  889. </el-table-column>
  890. </el-table>
  891. </div>
  892. <el-footer style="height:35px;margin-top: 15px;text-align:center">
  893. <el-button type="primary" @click="actionModal2">保存</el-button>
  894. <el-button type="primary" @click="ItemObjectModelFlag=false">关闭</el-button>
  895. </el-footer>
  896. </el-dialog>
  897. <!-- chooseList模态框 -->
  898. <Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist>
  899. <!-- 上传文件的modal -->
  900. <qcFAIUploadFile ref="qcFAIUploadFile" @refreshPageTables="()=>{this.getFileContentData(this.detailData)}" v-drag></qcFAIUploadFile>
  901. <!-- 上传文件的modal -->
  902. <comQcItemImageUploadFile ref="comQcItemImageUploadFile" @refreshPageTables2="getInspectionFormData" v-drag></comQcItemImageUploadFile>
  903. <!-- 子明细导入 -->
  904. <subDetailUpload @changeEvent="changeMyString" ref="subDetailUpload" @refreshPageTables="getInspectionFormData" v-drag></subDetailUpload>
  905. <!-- 打印标签 -->
  906. <qr-code ref="qrCode"></qr-code>
  907. </div>
  908. </template>
  909. <script>
  910. import {
  911. qcFQCInspectionSearch, // 查询FAI的检验记录
  912. fqcDetailSearch, // 查询FAI的检验明细
  913. inspectorSearch, // 查询检验员
  914. fqcRecordDelete, // 删除检验记录
  915. saveFQCDetailedRecord, // 新增明细信息
  916. saveFQCSubmitResult, // 审核
  917. saveFQCSubDetailed, // 新增子明细信息
  918. selectFQCSubDetailedRecord, // 子明细记录信息查询
  919. checkFQCIsSubmit, // 检查是否已提交
  920. getResourceList, // 查询机台列表
  921. getOperationList, // 查询工序列表
  922. getPartList, // 查询物料列表
  923. saveFQCInspection, // 新增FQC检验
  924. queryController, // 检查动控
  925. queryTemplateList, // 获取检验模板列表
  926. getPartInformation, // 获取物料信息
  927. getSpecialOperationList, // 获取特殊工序列表
  928. inspectionTypeSearch, // 搜索所有检验类型
  929. disposalMeasuresSearch, // 获取处置措施列表
  930. getRollNo, // 模糊查询标签号
  931. rollNoEnter, // 标签号回车事件
  932. queryPartList, // 查询物料集合
  933. umSearch, // 查询单位列表
  934. getSiteAndBuByUserName,
  935. getSiteAndBuByUserName2,
  936. searchSeqInfo, // 查询派工单号
  937. actionFQCInspection, // 开始检验
  938. dataAcquisition, // 数据采集
  939. getResponsibleOperatorList, // 获取责任人列表
  940. getFQCItemObjectList, // 查询项目设备
  941. dataAcquisitionByItem, // 根据项目数据采集
  942. cancelApproval2, // 取消审核
  943. fqcRecordOverLoad, // 任务重载
  944. searchPartAttributeDetails, // 查询物料属性模板
  945. } from "@/api/qc/qc.js"
  946. import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js"
  947. import Chooselist from '@/views/modules/common/Chooselist_eam'
  948. import {getInspectionFile} from '@/api/eam/eam_object_list.js'
  949. import {
  950. deleteObjectFile,
  951. getUserRoleList, // 获取用户角色列表
  952. getOperatorList
  953. } from '@/api/eam/eam.js'
  954. import {userFavoriteList, saveUserFavorite, removeUserFavorite} from '@/api/userFavorite.js'
  955. import {qcPrint} from '@/api/qc/qcPrint.js'
  956. import qcFAIUploadFile from "./qc_FAI_upload_file"
  957. import comQcItemImageUploadFile from "./com_qc_itemImage_upload_file"
  958. import subDetailUpload from "./sub_detail_upload"
  959. import QrCode from "../common/QrCode.vue";
  960. import IqcFileTable from "./IQCFileTable.vue";
  961. /*上传文件的組件*/
  962. export default {
  963. components: {
  964. IqcFileTable,
  965. QrCode,
  966. Chooselist,
  967. qcFAIUploadFile,
  968. comQcItemImageUploadFile,
  969. subDetailUpload
  970. },
  971. computed: {
  972. templateTableData () {
  973. let start = (this.pageIndex2 - 1) * this.pageSize2
  974. let end = start + this.pageSize2
  975. if (end > this.tableData.length){
  976. end = this.tableData.length
  977. }
  978. return this.tableData.slice(start,end)
  979. }
  980. },
  981. watch: {
  982. detailData: {
  983. deep: true,
  984. handler: function (newV, oldV) {
  985. this.detailData.notPassQty = this.detailData.samplingQty - this.detailData.passQty
  986. if (this.detailData.inspectionResult === '不合格') {
  987. if (this.detailData.disposalMeasures === '让步接收' || this.detailData.disposalMeasures === '') {
  988. this.detailData.batchQualifiedQty = this.detailData.rollQty
  989. } else if (this.detailData.disposalMeasures === '挑选使用') {
  990. this.detailData.batchQualifiedQty = this.detailData.rollQty - this.detailData.notPassQty
  991. } else {
  992. this.detailData.batchQualifiedQty = 0
  993. }
  994. } else {
  995. this.detailData.batchQualifiedQty = this.detailData.rollQty
  996. }
  997. this.detailData.notbatchQualifiedQty = this.detailData.rollQty - this.detailData.batchQualifiedQty
  998. }
  999. },
  1000. detailList: {
  1001. deep: true,
  1002. handler: function (newV, oldV) {
  1003. let num2 = 0
  1004. for (let i = 0; i < this.detailList.length; i++) {
  1005. if (this.detailList[i].itemResult === 'N') {
  1006. num2++
  1007. }
  1008. }
  1009. this.detailData.unqualifiedQty = num2
  1010. }
  1011. },
  1012. },
  1013. data () {
  1014. return {
  1015. loadFlag: false,
  1016. transferLoadFlag: false,
  1017. inspectionNo: '',
  1018. fileFlag: false,
  1019. fileContentList: [],
  1020. // 是否收藏
  1021. favorite: false,
  1022. // 导出 start
  1023. exportData: [],
  1024. exportName: "FAI检验录入" + this.dayjs().format('YYYYMMDDHHmmss'),
  1025. exportHeader: ["FAI检验录入"],
  1026. exportFooter: [],
  1027. exportList: [],
  1028. // 导出 end
  1029. checkCompletedData: {
  1030. inspectionNo: ''
  1031. },
  1032. submitData: {
  1033. site: '',
  1034. inspectionNo: '',
  1035. submit_flag: '',
  1036. inspectionResult: '',
  1037. submitList: [],
  1038. updateBy: this.$store.state.user.name,
  1039. type: 'fqc'
  1040. },
  1041. tagNo: '',
  1042. searchData: {
  1043. site: '',
  1044. userName: this.$store.state.user.name,
  1045. inspectionNo: '',
  1046. state: '',
  1047. inspectionResult: '',
  1048. orderNo: '',
  1049. operationDesc: '',
  1050. buNo: '',
  1051. startDate: '',
  1052. endDate: '',
  1053. partNo: '',
  1054. startDate2: '',
  1055. endDate2: '',
  1056. partDesc: '',
  1057. cinvSourceCode: '',
  1058. sku: '',
  1059. disposalMeasures: '',
  1060. page: 1,
  1061. limit: 10,
  1062. seqNo: '',
  1063. states: ['未开始','待检验'],
  1064. },
  1065. pageIndex: 1,
  1066. pageSize: 20,
  1067. totalPage: 0,
  1068. pageIndex2: 1,
  1069. pageSize2: 20,
  1070. totalPage2: 0,
  1071. height: 200,
  1072. dataList: [],
  1073. dataListSelections: [],
  1074. modalData: {
  1075. flag: '',
  1076. site: '',
  1077. bu: '',
  1078. inspectionNo: '',
  1079. partNo: '',
  1080. partDesc: '',
  1081. inspectionTypeNo: '107',
  1082. inspectionTypeName: '',
  1083. inspectorNo: '',
  1084. inspectorName: '',
  1085. submit_flag: '',
  1086. seqNo: '',
  1087. batchRollNo: '',
  1088. invdefinetype: '',
  1089. sku: '',
  1090. qtyrequired: '',
  1091. lotsize:'',
  1092. operationDesc:'',
  1093. specialRequirements: '',
  1094. templateId: '',
  1095. templateName: '',
  1096. specialTaskFlag: '',
  1097. workCenterNo: '',
  1098. rollNo: '',
  1099. umId: '',
  1100. umName: '',
  1101. sjzs: ''
  1102. },
  1103. // 展示列集
  1104. columnList1: [
  1105. {
  1106. userId: this.$store.state.user.name,
  1107. functionId: 301015,
  1108. serialNumber: '301015Table1BuDesc',
  1109. tableId: "301015Table1",
  1110. tableName: "FQC检验记录表",
  1111. columnProp: 'site',
  1112. headerAlign: "center",
  1113. align: "center",
  1114. columnLabel: '工厂编号',
  1115. columnHidden: false,
  1116. columnImage: false,
  1117. columnSortable: false,
  1118. sortLv: 0,
  1119. status: true,
  1120. fixed: '',
  1121. columnWidth: 100,
  1122. },
  1123. {
  1124. userId: this.$store.state.user.name,
  1125. functionId: 301015,
  1126. serialNumber: '301015Table1InspectionNo',
  1127. tableId: "301015Table1",
  1128. tableName: "FQC检验记录表",
  1129. columnProp: 'inspectionNo',
  1130. headerAlign: "center",
  1131. align: "center",
  1132. columnLabel: '检验单号',
  1133. columnHidden: false,
  1134. columnImage: false,
  1135. columnSortable: false,
  1136. sortLv: 0,
  1137. status: true,
  1138. fixed: '',
  1139. columnWidth: 120,
  1140. },
  1141. {
  1142. userId: this.$store.state.user.name,
  1143. functionId: 301015,
  1144. serialNumber: '301015Table1RollNo',
  1145. tableId: "301015Table1",
  1146. tableName: "FQC检验记录表",
  1147. columnProp: 'rollNo',
  1148. headerAlign: "center",
  1149. align: "center",
  1150. columnLabel: '标签条码',
  1151. columnHidden: false,
  1152. columnImage: false,
  1153. columnSortable: false,
  1154. sortLv: 0,
  1155. status: true,
  1156. fixed: '',
  1157. columnWidth: 150,
  1158. },
  1159. {
  1160. userId: this.$store.state.user.name,
  1161. functionId: 301015,
  1162. serialNumber: '301015Table1InspectionResult',
  1163. tableId: "301015Table1",
  1164. tableName: "FQC检验记录表",
  1165. columnProp: 'inspectionResult',
  1166. headerAlign: "center",
  1167. align: "center",
  1168. columnLabel: '检验结论',
  1169. columnHidden: false,
  1170. columnImage: false,
  1171. columnSortable: false,
  1172. sortLv: 0,
  1173. status: true,
  1174. fixed: '',
  1175. columnWidth: 100,
  1176. },
  1177. {
  1178. userId: this.$store.state.user.name,
  1179. functionId: 301015,
  1180. serialNumber: '301015Table1DisposalMeasures',
  1181. tableId: "301015Table1",
  1182. tableName: "FQC检验记录表",
  1183. columnProp: 'disposalMeasures',
  1184. headerAlign: "center",
  1185. align: "center",
  1186. columnLabel: '处置措施',
  1187. columnHidden: false,
  1188. columnImage: false,
  1189. columnSortable: false,
  1190. sortLv: 0,
  1191. status: true,
  1192. fixed: '',
  1193. columnWidth: 100,
  1194. },
  1195. {
  1196. userId: this.$store.state.user.name,
  1197. functionId: 301015,
  1198. serialNumber: '301015Table1TaskDate',
  1199. tableId: "301015Table1",
  1200. tableName: "FQC检验记录表",
  1201. columnProp: 'taskDate',
  1202. headerAlign: "center",
  1203. align: "center",
  1204. columnLabel: '送检日期',
  1205. columnHidden: false,
  1206. columnImage: false,
  1207. columnSortable: false,
  1208. sortLv: 0,
  1209. status: true,
  1210. fixed: '',
  1211. columnWidth: 130,
  1212. },
  1213. {
  1214. userId: this.$store.state.user.name,
  1215. functionId: 301015,
  1216. serialNumber: '301015Table1InspectionCycle',
  1217. tableId: "301015Table1",
  1218. tableName: "FQC检验记录表",
  1219. columnProp: 'inspectionCycle',
  1220. headerAlign: "center",
  1221. align: "right",
  1222. columnLabel: '检验周期(h)',
  1223. columnHidden: false,
  1224. columnImage: false,
  1225. columnSortable: false,
  1226. sortLv: 0,
  1227. status: true,
  1228. fixed: '',
  1229. columnWidth: 100,
  1230. },
  1231. {
  1232. userId: this.$store.state.user.name,
  1233. functionId: 301015,
  1234. serialNumber: '301015Table1OrderNo',
  1235. tableId: "301015Table1",
  1236. tableName: "FQC检验记录表",
  1237. columnProp: 'orderNo',
  1238. headerAlign: "center",
  1239. align: "left",
  1240. columnLabel: '工单号',
  1241. columnHidden: false,
  1242. columnImage: false,
  1243. columnSortable: false,
  1244. sortLv: 0,
  1245. status: true,
  1246. fixed: '',
  1247. columnWidth: 150,
  1248. },
  1249. {
  1250. userId: this.$store.state.user.name,
  1251. functionId: 301015,
  1252. serialNumber: '301015Table1SeqNo',
  1253. tableId: "301015Table1",
  1254. tableName: "FQC检验记录表",
  1255. columnProp: 'seqNo',
  1256. headerAlign: "center",
  1257. align: "left",
  1258. columnLabel: '派工单号',
  1259. columnHidden: false,
  1260. columnImage: false,
  1261. columnSortable: false,
  1262. sortLv: 0,
  1263. status: true,
  1264. fixed: '',
  1265. columnWidth: 150,
  1266. },
  1267. {
  1268. userId: this.$store.state.user.name,
  1269. functionId: 301015,
  1270. serialNumber: '301015Table1OperationDesc',
  1271. tableId: "301015Table1",
  1272. tableName: "FQC检验记录表",
  1273. columnProp: 'operationDesc',
  1274. headerAlign: "center",
  1275. align: "left",
  1276. columnLabel: '工序',
  1277. columnHidden: false,
  1278. columnImage: false,
  1279. columnSortable: false,
  1280. sortLv: 0,
  1281. status: true,
  1282. fixed: '',
  1283. columnWidth: 120,
  1284. },
  1285. {
  1286. userId: this.$store.state.user.name,
  1287. functionId: 301015,
  1288. serialNumber: '301015Table1ResourceDesc',
  1289. tableId: "301015Table1",
  1290. tableName: "FQC检验记录表",
  1291. columnProp: 'resourceDesc',
  1292. headerAlign: "center",
  1293. align: "left",
  1294. columnLabel: '机台',
  1295. columnHidden: false,
  1296. columnImage: false,
  1297. columnSortable: false,
  1298. sortLv: 0,
  1299. status: true,
  1300. fixed: '',
  1301. columnWidth: 120,
  1302. },
  1303. {
  1304. userId: this.$store.state.user.name,
  1305. functionId: 301015,
  1306. serialNumber: '301015Table1PartNo',
  1307. tableId: "301015Table1",
  1308. tableName: "FQC检验记录表",
  1309. columnProp: 'partNo',
  1310. headerAlign: "center",
  1311. align: "center",
  1312. columnLabel: '物料编码',
  1313. columnHidden: false,
  1314. columnImage: false,
  1315. columnSortable: false,
  1316. sortLv: 0,
  1317. status: true,
  1318. fixed: '',
  1319. columnWidth: 120,
  1320. },
  1321. {
  1322. userId: this.$store.state.user.name,
  1323. functionId: 301015,
  1324. serialNumber: '301015Table1PartDesc',
  1325. tableId: "301015Table1",
  1326. tableName: "FQC检验记录表",
  1327. columnProp: 'partDesc',
  1328. headerAlign: "center",
  1329. align: "left",
  1330. columnLabel: '物料名称',
  1331. columnHidden: false,
  1332. columnImage: false,
  1333. columnSortable: false,
  1334. sortLv: 0,
  1335. status: true,
  1336. fixed: '',
  1337. columnWidth: 300,
  1338. },
  1339. {
  1340. userId: this.$store.state.user.name,
  1341. functionId: 301015,
  1342. serialNumber: '301015Table1Sku',
  1343. tableId: "301015Table1",
  1344. tableName: "FQC检验记录表",
  1345. columnProp: 'sku',
  1346. headerAlign: "center",
  1347. align: "center",
  1348. columnLabel: 'SKU',
  1349. columnHidden: false,
  1350. columnImage: false,
  1351. columnSortable: false,
  1352. sortLv: 0,
  1353. status: true,
  1354. fixed: '',
  1355. columnWidth: 120,
  1356. },
  1357. {
  1358. userId: this.$store.state.user.name,
  1359. functionId: 301015,
  1360. serialNumber: '301015Table1CinvSourceCode',
  1361. tableId: "301015Table1",
  1362. tableName: "FQC检验记录表",
  1363. columnProp: 'cinvSourceCode',
  1364. headerAlign: "center",
  1365. align: "center",
  1366. columnLabel: 'PN',
  1367. columnHidden: false,
  1368. columnImage: false,
  1369. columnSortable: false,
  1370. sortLv: 0,
  1371. status: true,
  1372. fixed: '',
  1373. columnWidth: 120,
  1374. },
  1375. {
  1376. userId: this.$store.state.user.name,
  1377. functionId: 301015,
  1378. serialNumber: '301015Table1Invdefinetype',
  1379. tableId: "301015Table1",
  1380. tableName: "FQC检验记录表",
  1381. columnProp: 'invdefinetype',
  1382. headerAlign: "center",
  1383. align: "left",
  1384. columnLabel: '物料类别',
  1385. columnHidden: false,
  1386. columnImage: false,
  1387. columnSortable: false,
  1388. sortLv: 0,
  1389. status: true,
  1390. fixed: '',
  1391. columnWidth: 120,
  1392. },
  1393. {
  1394. userId: this.$store.state.user.name,
  1395. functionId: 301015,
  1396. serialNumber: '301015Table1RollQty',
  1397. tableId: "301015Table1",
  1398. tableName: "FQC检验记录表",
  1399. columnProp: 'rollQty',
  1400. headerAlign: "center",
  1401. align: "right",
  1402. columnLabel: '送检数量',
  1403. columnHidden: false,
  1404. columnImage: false,
  1405. columnSortable: false,
  1406. sortLv: 0,
  1407. status: true,
  1408. fixed: '',
  1409. columnWidth: 100,
  1410. },
  1411. {
  1412. userId: this.$store.state.user.name,
  1413. functionId: 301015,
  1414. serialNumber: '301015Table1SamplingQty',
  1415. tableId: "301015Table1",
  1416. tableName: "FQC检验记录表",
  1417. columnProp: 'samplingQty',
  1418. headerAlign: "center",
  1419. align: "right",
  1420. columnLabel: '抽样数量',
  1421. columnHidden: false,
  1422. columnImage: false,
  1423. columnSortable: false,
  1424. sortLv: 0,
  1425. status: true,
  1426. fixed: '',
  1427. columnWidth: 100,
  1428. },
  1429. {
  1430. userId: this.$store.state.user.name,
  1431. functionId: 301015,
  1432. serialNumber: '301015Table1UmName',
  1433. tableId: "301015Table1",
  1434. tableName: "FQC检验记录表",
  1435. columnProp: 'umName',
  1436. headerAlign: "center",
  1437. align: "center",
  1438. columnLabel: '单位',
  1439. columnHidden: false,
  1440. columnImage: false,
  1441. columnSortable: false,
  1442. sortLv: 0,
  1443. status: true,
  1444. fixed: '',
  1445. columnWidth: 100,
  1446. },
  1447. {
  1448. userId: this.$store.state.user.name,
  1449. functionId: 301015,
  1450. serialNumber: '301015Table1InspectionRemark',
  1451. tableId: "301015Table1",
  1452. tableName: "FQC检验记录表",
  1453. columnProp: 'inspectionRemark',
  1454. headerAlign: "center",
  1455. align: "left",
  1456. columnLabel: '质检备注',
  1457. columnHidden: false,
  1458. columnImage: false,
  1459. columnSortable: false,
  1460. sortLv: 0,
  1461. status: true,
  1462. fixed: '',
  1463. columnWidth: 200,
  1464. },
  1465. {
  1466. userId: this.$store.state.user.name,
  1467. functionId: 301015,
  1468. serialNumber: '301015Table1DisposalRemark',
  1469. tableId: "301015Table1",
  1470. tableName: "FQC检验记录表",
  1471. columnProp: 'disposalRemark',
  1472. headerAlign: "center",
  1473. align: "left",
  1474. columnLabel: '处置说明',
  1475. columnHidden: false,
  1476. columnImage: false,
  1477. columnSortable: false,
  1478. sortLv: 0,
  1479. status: true,
  1480. fixed: '',
  1481. columnWidth: 200,
  1482. },
  1483. {
  1484. userId: this.$store.state.user.name,
  1485. functionId: 301015,
  1486. serialNumber: '301015Table1ActionDate',
  1487. tableId: "301015Table1",
  1488. tableName: "FQC检验记录表",
  1489. columnProp: 'actionDate',
  1490. headerAlign: "center",
  1491. align: "center",
  1492. columnLabel: '开始检验时间',
  1493. columnHidden: false,
  1494. columnImage: false,
  1495. columnSortable: false,
  1496. sortLv: 0,
  1497. status: true,
  1498. fixed: '',
  1499. columnWidth: 170,
  1500. },
  1501. {
  1502. userId: this.$store.state.user.name,
  1503. functionId: 301015,
  1504. serialNumber: '301015Table1InspectorDate',
  1505. tableId: "301015Table1",
  1506. tableName: "FQC检验记录表",
  1507. columnProp: 'inspectorDate',
  1508. headerAlign: "center",
  1509. align: "center",
  1510. columnLabel: '检验时间',
  1511. columnHidden: false,
  1512. columnImage: false,
  1513. columnSortable: false,
  1514. sortLv: 0,
  1515. status: true,
  1516. fixed: '',
  1517. columnWidth: 170,
  1518. },
  1519. {
  1520. userId: this.$store.state.user.name,
  1521. functionId: 301015,
  1522. serialNumber: '301015Table1InspectorName',
  1523. tableId: "301015Table1",
  1524. tableName: "FQC检验记录表",
  1525. columnProp: 'inspectorName',
  1526. headerAlign: "center",
  1527. align: "center",
  1528. columnLabel: '质检员',
  1529. columnHidden: false,
  1530. columnImage: false,
  1531. columnSortable: false,
  1532. sortLv: 0,
  1533. status: true,
  1534. fixed: '',
  1535. columnWidth: 100,
  1536. },
  1537. {
  1538. userId: this.$store.state.user.name,
  1539. functionId: 301015,
  1540. serialNumber: '301015Table1SpecialRequirements',
  1541. tableId: "301015Table1",
  1542. tableName: "FQC检验记录表",
  1543. columnProp: 'specialRequirements',
  1544. headerAlign: "center",
  1545. align: "left",
  1546. columnLabel: '特殊要求',
  1547. columnHidden: false,
  1548. columnImage: false,
  1549. columnSortable: false,
  1550. sortLv: 0,
  1551. status: true,
  1552. fixed: '',
  1553. columnWidth: 200,
  1554. },
  1555. ],
  1556. //项目清单
  1557. detailData: {
  1558. site: '',
  1559. buNo: '',
  1560. inspectionNo:'',
  1561. partNo:'',
  1562. partDesc:'',
  1563. rollQty:'',
  1564. samplingQty: '',
  1565. unqualifiedQty: 0,
  1566. unqualifiedQuantity:'',
  1567. disposalMeasures:'',
  1568. disposalRemark: '',
  1569. inspectionResult: '',
  1570. inspectorNo: '',
  1571. inspectorName: '',
  1572. inspectionRemark: '',
  1573. submitFlag: '',
  1574. cinvSourceCode: '',
  1575. sku: '',
  1576. invdefinetype: '',
  1577. umId: '',
  1578. umName: '',
  1579. operator: '',
  1580. operatorName: '',
  1581. responsiblePerson: '',
  1582. responsiblePersonName: '',
  1583. state: '',
  1584. passQty: '',
  1585. notPassQty: '',
  1586. batchQualifiedQty: ''
  1587. },
  1588. detailInformationFlag: false,
  1589. detailList: [],
  1590. saveInformationData: {
  1591. site: '',
  1592. buNo: '',
  1593. inspectionNo:'',
  1594. disposalMeasures: '',
  1595. disposalRemark: '',
  1596. inspectorNo: '',
  1597. inspectionRemark: '',
  1598. samplingQty: '',
  1599. rollQty: '',
  1600. itemList:[],
  1601. unqualifiedQty: '',
  1602. partNo: '',
  1603. partDesc: '',
  1604. operator: '',
  1605. operatorName: '',
  1606. responsiblePerson: '',
  1607. responsiblePersonName: '',
  1608. subDetailList: [],
  1609. type: '',
  1610. passQty: '',
  1611. notPassQty: '',
  1612. batchQualifiedQty: ''
  1613. },
  1614. detailColumnList: [
  1615. {
  1616. userId: this.$store.state.user.name,
  1617. functionId: 301015,
  1618. serialNumber: '301015Table2ItemNo',
  1619. tableId: "301015Table2",
  1620. tableName: "检验单明细表",
  1621. columnProp: 'itemNo',
  1622. headerAlign: "center",
  1623. align: "center",
  1624. columnLabel: '检验项目编码',
  1625. columnHidden: false,
  1626. columnImage: false,
  1627. columnSortable: false,
  1628. sortLv: 0,
  1629. status: true,
  1630. fixed: '',
  1631. columnWidth: 120,
  1632. },
  1633. {
  1634. userId: this.$store.state.user.name,
  1635. functionId: 301015,
  1636. serialNumber: '301015Table2ItemDesc',
  1637. tableId: "301015Table2",
  1638. tableName: "检验单明细表",
  1639. columnProp: 'itemDesc',
  1640. headerAlign: "center",
  1641. align: "left",
  1642. columnLabel: '检验项目',
  1643. columnHidden: false,
  1644. columnImage: false,
  1645. columnSortable: false,
  1646. sortLv: 0,
  1647. status: true,
  1648. fixed: '',
  1649. columnWidth: 150,
  1650. },
  1651. {
  1652. userId: this.$store.state.user.name,
  1653. functionId: 301015,
  1654. serialNumber: '301015Table2SamplingLevelDesc',
  1655. tableId: "301015Table2",
  1656. tableName: "检验单明细表",
  1657. columnProp: 'samplingLevelDesc',
  1658. headerAlign: "center",
  1659. align: "left",
  1660. columnLabel: '检验水平',
  1661. columnHidden: false,
  1662. columnImage: false,
  1663. columnSortable: false,
  1664. sortLv: 0,
  1665. status: true,
  1666. fixed: '',
  1667. columnWidth: 120,
  1668. },
  1669. {
  1670. userId: this.$store.state.user.name,
  1671. functionId: 301015,
  1672. serialNumber: '301015Table2SamplingProgrammeDesc',
  1673. tableId: "301015Table2",
  1674. tableName: "检验单明细表",
  1675. columnProp: 'samplingProgrammeDesc',
  1676. headerAlign: "center",
  1677. align: "left",
  1678. columnLabel: '检验方案',
  1679. columnHidden: false,
  1680. columnImage: false,
  1681. columnSortable: false,
  1682. sortLv: 0,
  1683. status: true,
  1684. fixed: '',
  1685. columnWidth: 120,
  1686. },
  1687. {
  1688. userId: this.$store.state.user.name,
  1689. functionId: 301015,
  1690. serialNumber: '301015Table2MethodName',
  1691. tableId: "301015Table2",
  1692. tableName: "检验单明细表",
  1693. columnProp: 'methodName',
  1694. headerAlign: "center",
  1695. align: "left",
  1696. columnLabel: '检验方法',
  1697. columnHidden: false,
  1698. columnImage: false,
  1699. columnSortable: false,
  1700. sortLv: 0,
  1701. status: true,
  1702. fixed: '',
  1703. columnWidth: 120,
  1704. },
  1705. {
  1706. userId: this.$store.state.user.name,
  1707. functionId: 301015,
  1708. serialNumber: '301015Table2MethodRemark',
  1709. tableId: "301015Table2",
  1710. tableName: "检验单明细表",
  1711. columnProp: 'methodRemark',
  1712. headerAlign: "center",
  1713. align: "left",
  1714. columnLabel: '检验方法说明',
  1715. columnHidden: false,
  1716. columnImage: false,
  1717. columnSortable: false,
  1718. sortLv: 0,
  1719. status: true,
  1720. fixed: '',
  1721. columnWidth: 200,
  1722. },
  1723. {
  1724. userId: this.$store.state.user.name,
  1725. functionId: 301015,
  1726. serialNumber: '301015Table2ObjectDesc',
  1727. tableId: "301015Table2",
  1728. tableName: "检验单明细表",
  1729. columnProp: 'objectDesc',
  1730. headerAlign: "center",
  1731. align: "center",
  1732. columnLabel: '检测仪器',
  1733. columnHidden: false,
  1734. columnImage: false,
  1735. columnSortable: false,
  1736. sortLv: 0,
  1737. status: true,
  1738. fixed: '',
  1739. columnWidth: 120,
  1740. },
  1741. {
  1742. userId: this.$store.state.user.name,
  1743. functionId: 301006,
  1744. serialNumber: '301006Table2ObjectDesc',
  1745. tableId: "301006Table2",
  1746. tableName: "检验单明细表",
  1747. columnProp: 'pictureFlag',
  1748. headerAlign: "center",
  1749. align: "center",
  1750. columnLabel: '图片是否必填',
  1751. columnHidden: false,
  1752. columnImage: false,
  1753. columnSortable: false,
  1754. sortLv: 0,
  1755. status: true,
  1756. fixed: '',
  1757. columnWidth: 120,
  1758. },
  1759. {
  1760. userId: this.$store.state.user.name,
  1761. functionId: 301015,
  1762. serialNumber: '301015Table2Aql',
  1763. tableId: "301015Table2",
  1764. tableName: "检验单明细表",
  1765. columnProp: 'aql',
  1766. headerAlign: "center",
  1767. align: "right",
  1768. columnLabel: 'AQL',
  1769. columnHidden: false,
  1770. columnImage: false,
  1771. columnSortable: false,
  1772. sortLv: 0,
  1773. status: true,
  1774. fixed: '',
  1775. columnWidth: 100,
  1776. },
  1777. {
  1778. userId: this.$store.state.user.name,
  1779. functionId: 301015,
  1780. serialNumber: '301015Table2Ac',
  1781. tableId: "301015Table2",
  1782. tableName: "检验单明细表",
  1783. columnProp: 'ac',
  1784. headerAlign: "center",
  1785. align: "right",
  1786. columnLabel: 'AC',
  1787. columnHidden: false,
  1788. columnImage: false,
  1789. columnSortable: false,
  1790. sortLv: 0,
  1791. status: true,
  1792. fixed: '',
  1793. columnWidth: 100,
  1794. },
  1795. {
  1796. userId: this.$store.state.user.name,
  1797. functionId: 301015,
  1798. serialNumber: '301015Table2Re',
  1799. tableId: "301015Table2",
  1800. tableName: "检验单明细表",
  1801. columnProp: 're',
  1802. headerAlign: "center",
  1803. align: "right",
  1804. columnLabel: 'RE',
  1805. columnHidden: false,
  1806. columnImage: false,
  1807. columnSortable: false,
  1808. sortLv: 0,
  1809. status: true,
  1810. fixed: '',
  1811. columnWidth: 100,
  1812. },
  1813. {
  1814. userId: this.$store.state.user.name,
  1815. functionId: 301015,
  1816. serialNumber: '301015Table2DefaultValue',
  1817. tableId: "301015Table2",
  1818. tableName: "检验单明细表",
  1819. columnProp: 'defaultValue',
  1820. headerAlign: "center",
  1821. align: "right",
  1822. columnLabel: '标准值',
  1823. columnHidden: false,
  1824. columnImage: false,
  1825. columnSortable: false,
  1826. sortLv: 0,
  1827. status: true,
  1828. fixed: '',
  1829. columnWidth: 100,
  1830. },
  1831. {
  1832. userId: this.$store.state.user.name,
  1833. functionId: 301015,
  1834. serialNumber: '301015Table2MaxValue',
  1835. tableId: "301015Table2",
  1836. tableName: "检验单明细表",
  1837. columnProp: 'maxValue',
  1838. headerAlign: "center",
  1839. align: "right",
  1840. columnLabel: '上限值',
  1841. columnHidden: false,
  1842. columnImage: false,
  1843. columnSortable: false,
  1844. sortLv: 0,
  1845. status: true,
  1846. fixed: '',
  1847. columnWidth: 100,
  1848. },
  1849. {
  1850. userId: this.$store.state.user.name,
  1851. functionId: 301015,
  1852. serialNumber: '301015Table2MinValue',
  1853. tableId: "301015Table2",
  1854. tableName: "检验单明细表",
  1855. columnProp: 'minValue',
  1856. headerAlign: "center",
  1857. align: "right",
  1858. columnLabel: '下限值',
  1859. columnHidden: false,
  1860. columnImage: false,
  1861. columnSortable: false,
  1862. sortLv: 0,
  1863. status: true,
  1864. fixed: '',
  1865. columnWidth: 100,
  1866. },
  1867. {
  1868. userId: this.$store.state.user.name,
  1869. functionId: 301015,
  1870. serialNumber: '301015Table2ValueType',
  1871. tableId: "301015Table2",
  1872. tableName: "检验单明细表",
  1873. columnProp: 'valueType',
  1874. headerAlign: "center",
  1875. align: "center",
  1876. columnLabel: '检测值类型',
  1877. columnHidden: false,
  1878. columnImage: false,
  1879. columnSortable: false,
  1880. sortLv: 0,
  1881. status: true,
  1882. fixed: '',
  1883. columnWidth: 100,
  1884. },
  1885. ],
  1886. fileColumnList: [
  1887. {
  1888. columnProp: 'fileName',
  1889. headerAlign: "center",
  1890. align: "center",
  1891. columnLabel: '文件名称',
  1892. columnHidden: false,
  1893. columnImage: false,
  1894. columnSortable: false,
  1895. sortLv: 0,
  1896. status: true,
  1897. fixed: '',
  1898. },
  1899. {
  1900. columnProp: 'createdBy',
  1901. headerAlign: "center",
  1902. align: 'center',
  1903. columnLabel: '上传人',
  1904. columnHidden: false,
  1905. columnImage: false,
  1906. columnSortable: true,
  1907. sortLv: 0,
  1908. status: true,
  1909. fixed: false
  1910. },
  1911. {
  1912. columnProp: 'createDate',
  1913. headerAlign: "center",
  1914. align: 'center',
  1915. columnLabel: '上传时间',
  1916. columnHidden: false,
  1917. columnImage: false,
  1918. columnSortable: true,
  1919. sortLv: 0,
  1920. status: true,
  1921. fixed: false
  1922. },
  1923. {
  1924. columnProp: 'orderRef3',
  1925. headerAlign: "center",
  1926. align: 'center',
  1927. columnLabel: '备注',
  1928. columnHidden: false,
  1929. columnImage: false,
  1930. columnSortable: true,
  1931. sortLv: 0,
  1932. status: true,
  1933. fixed: false
  1934. },
  1935. ],
  1936. // 派工单号
  1937. seqInfoList: [],
  1938. seqDetailFlag: false,
  1939. seqDetailData: {
  1940. orderNo: '',
  1941. seqNo: '',
  1942. sku: '',
  1943. partNo: '',
  1944. partDesc: '',
  1945. operationDesc: '',
  1946. qtyrequired: '',
  1947. lotsize: '',
  1948. status: 'N'
  1949. },
  1950. seqDetailColumnList: [
  1951. {
  1952. userId: this.$store.state.user.name,
  1953. functionId: 301015,
  1954. serialNumber: '301015Table3OrderNo',
  1955. tableId: "301015Table3",
  1956. tableName: "任务新增-派工单",
  1957. fixed: '',
  1958. columnWidth: 80,
  1959. columnProp: 'orderNo',
  1960. headerAlign: "center",
  1961. align: "center",
  1962. columnLabel: '工单号',
  1963. columnHidden: false,
  1964. columnImage: false,
  1965. columnSortable: false,
  1966. sortLv: 0,
  1967. status: true,
  1968. },
  1969. {
  1970. userId: this.$store.state.user.name,
  1971. functionId: 301015,
  1972. serialNumber: '301015Table3SeqNo',
  1973. tableId: "301015Table3",
  1974. tableName: "任务新增-派工单",
  1975. fixed: '',
  1976. columnWidth: 80,
  1977. columnProp: 'seqNo',
  1978. headerAlign: "center",
  1979. align: "center",
  1980. columnLabel: '派工单号',
  1981. columnHidden: false,
  1982. columnImage: false,
  1983. columnSortable: false,
  1984. sortLv: 0,
  1985. status: true,
  1986. },
  1987. {
  1988. userId: this.$store.state.user.name,
  1989. functionId: 301015,
  1990. serialNumber: '301015Table3Sku',
  1991. tableId: "301015Table3",
  1992. tableName: "任务新增-派工单",
  1993. fixed: '',
  1994. columnWidth: 80,
  1995. columnProp: 'sku',
  1996. headerAlign: "center",
  1997. align: "center",
  1998. columnLabel: 'SKU',
  1999. columnHidden: false,
  2000. columnImage: false,
  2001. columnSortable: false,
  2002. sortLv: 0,
  2003. status: true,
  2004. },
  2005. {
  2006. userId: this.$store.state.user.name,
  2007. functionId: 301015,
  2008. serialNumber: '301015Table3PartNo',
  2009. tableId: "301015Table3",
  2010. tableName: "任务新增-派工单",
  2011. fixed: '',
  2012. columnWidth: 80,
  2013. columnProp: 'partNo',
  2014. headerAlign: "center",
  2015. align: "center",
  2016. columnLabel: '物料编码',
  2017. columnHidden: false,
  2018. columnImage: false,
  2019. columnSortable: false,
  2020. sortLv: 0,
  2021. status: true,
  2022. },
  2023. {
  2024. userId: this.$store.state.user.name,
  2025. functionId: 301015,
  2026. serialNumber: '301015Table3PartDesc',
  2027. tableId: "301015Table3",
  2028. tableName: "任务新增-派工单",
  2029. fixed: '',
  2030. columnWidth: 80,
  2031. columnProp: 'partDesc',
  2032. headerAlign: "center",
  2033. align: "center",
  2034. columnLabel: '物料名称',
  2035. columnHidden: false,
  2036. columnImage: false,
  2037. columnSortable: false,
  2038. sortLv: 0,
  2039. status: true,
  2040. },
  2041. {
  2042. userId: this.$store.state.user.name,
  2043. functionId: 301015,
  2044. serialNumber: '301015Table3Lotsize',
  2045. tableId: "301015Table3",
  2046. tableName: "任务新增-派工单",
  2047. fixed: '',
  2048. columnWidth: 80,
  2049. columnProp: 'lotsize',
  2050. headerAlign: "center",
  2051. align: "center",
  2052. columnLabel: '工单数量',
  2053. columnHidden: false,
  2054. columnImage: false,
  2055. columnSortable: false,
  2056. sortLv: 0,
  2057. status: true,
  2058. },
  2059. {
  2060. userId: this.$store.state.user.name,
  2061. functionId: 301015,
  2062. serialNumber: '301015Table3Qtyrequired',
  2063. tableId: "301015Table3",
  2064. tableName: "任务新增-派工单",
  2065. fixed: '',
  2066. columnWidth: 80,
  2067. columnProp: 'qtyrequired',
  2068. headerAlign: "center",
  2069. align: "center",
  2070. columnLabel: '派工数量',
  2071. columnHidden: false,
  2072. columnImage: false,
  2073. columnSortable: false,
  2074. sortLv: 0,
  2075. status: true,
  2076. },
  2077. {
  2078. userId: this.$store.state.user.name,
  2079. functionId: 301015,
  2080. serialNumber: '301015Table3OperationDesc',
  2081. tableId: "301015Table3",
  2082. tableName: "任务新增-派工单",
  2083. fixed: '',
  2084. columnWidth: 80,
  2085. columnProp: 'operationDesc',
  2086. headerAlign: "center",
  2087. align: "center",
  2088. columnLabel: '工序',
  2089. columnHidden: false,
  2090. columnImage: false,
  2091. columnSortable: false,
  2092. sortLv: 0,
  2093. status: true,
  2094. }
  2095. ],
  2096. // 子明细数据对象
  2097. tableData: [],
  2098. checkedDetail: [],
  2099. subDetailFlag: false,
  2100. subDetailData: {
  2101. site: '',
  2102. buNo: '',
  2103. inspectionNo: '',
  2104. itemNo: '',
  2105. itemDesc: '',
  2106. defaultValue: '',
  2107. maxValue: '',
  2108. minValue: '',
  2109. valueTypeDb: '',
  2110. subDetailValues:[],
  2111. page: 1,
  2112. limit: 10,
  2113. },
  2114. options: [],
  2115. FAISelections: [],
  2116. modalFlag: false,
  2117. rules: {
  2118. orderNoType:[
  2119. {
  2120. required: true,
  2121. message: ' ',
  2122. trigger: ['blur','change']
  2123. }
  2124. ],
  2125. operationDescType:[
  2126. {
  2127. required: true,
  2128. message: ' ',
  2129. trigger: ['blur','change']
  2130. }
  2131. ],
  2132. resourceIdType:[
  2133. {
  2134. required: true,
  2135. message: ' ',
  2136. trigger: ['blur','change']
  2137. }
  2138. ],
  2139. rollQtyType:[
  2140. {
  2141. required: true,
  2142. message: ' ',
  2143. trigger: ['blur','change']
  2144. }
  2145. ],
  2146. seqNoType: [
  2147. {
  2148. required: true,
  2149. message: ' ',
  2150. trigger: ['blur','change']
  2151. }
  2152. ],
  2153. partNoType: [
  2154. {
  2155. required: true,
  2156. message: ' ',
  2157. trigger: ['blur','change']
  2158. }
  2159. ],
  2160. umIdType: [
  2161. {
  2162. required: true,
  2163. message: ' ',
  2164. trigger: ['blur','change']
  2165. }
  2166. ],
  2167. templateId: [
  2168. {
  2169. required: true,
  2170. message: ' ',
  2171. trigger: ['blur','change']
  2172. }
  2173. ],
  2174. bu:[
  2175. {
  2176. required: true,
  2177. message: ' ',
  2178. trigger: ['blur','change']
  2179. }
  2180. ]
  2181. },
  2182. resourceList: [],
  2183. operationList: [],
  2184. partList: [],
  2185. batchHandleAddModalFlag: false,
  2186. batchAddData: {
  2187. samplingLocation: '',
  2188. samplingLocationB: '',
  2189. samplingNumber: ''
  2190. },
  2191. controlData: {},
  2192. templateData: {
  2193. site: '',
  2194. bu: '',
  2195. templateId: '',
  2196. templateName: '',
  2197. inspectionTypeNo: '',
  2198. inspectionTypeName: ''
  2199. },
  2200. templateList: [],
  2201. templateModelFlag: false,
  2202. templateDetailList: [
  2203. {
  2204. columnProp: 'templateId',
  2205. headerAlign: "center",
  2206. align: "center",
  2207. columnLabel: '模板编码',
  2208. columnHidden: false,
  2209. columnImage: false,
  2210. columnSortable: false,
  2211. sortLv: 0,
  2212. status: true,
  2213. fixed: '',
  2214. },
  2215. {
  2216. columnProp: 'templateName',
  2217. headerAlign: "center",
  2218. align: "center",
  2219. columnLabel: '模板名称',
  2220. columnHidden: false,
  2221. columnImage: false,
  2222. columnSortable: false,
  2223. sortLv: 0,
  2224. status: true,
  2225. fixed: '',
  2226. },
  2227. {
  2228. columnProp: 'inspectionTypeName',
  2229. headerAlign: "center",
  2230. align: "center",
  2231. columnLabel: '检验类型',
  2232. columnHidden: false,
  2233. columnImage: false,
  2234. columnSortable: false,
  2235. sortLv: 0,
  2236. status: true,
  2237. fixed: '',
  2238. },
  2239. ],
  2240. checked: false,
  2241. typeOptions: [],
  2242. disposalMeasuresOptions: [],
  2243. timeout: null,
  2244. partData: {
  2245. site: '',
  2246. bu: '',
  2247. partNo: '',
  2248. partDesc: '',
  2249. sku: '',
  2250. cinvSourceCode: ''
  2251. },
  2252. partDetailList: [
  2253. {
  2254. columnProp: 'partNo',
  2255. headerAlign: "center",
  2256. align: "center",
  2257. columnLabel: '物料编码',
  2258. columnHidden: false,
  2259. columnImage: false,
  2260. columnSortable: false,
  2261. sortLv: 0,
  2262. status: true,
  2263. fixed: '',
  2264. },
  2265. {
  2266. columnProp: 'partDesc',
  2267. headerAlign: "center",
  2268. align: "center",
  2269. columnLabel: '物料名称',
  2270. columnHidden: false,
  2271. columnImage: false,
  2272. columnSortable: false,
  2273. sortLv: 0,
  2274. status: true,
  2275. fixed: '',
  2276. },
  2277. {
  2278. columnProp: 'sku',
  2279. headerAlign: "center",
  2280. align: "center",
  2281. columnLabel: 'SKU',
  2282. columnHidden: false,
  2283. columnImage: false,
  2284. columnSortable: false,
  2285. sortLv: 0,
  2286. status: true,
  2287. fixed: '',
  2288. },
  2289. {
  2290. columnProp: 'cinvSourceCode',
  2291. headerAlign: "center",
  2292. align: "center",
  2293. columnLabel: 'PN',
  2294. columnHidden: false,
  2295. columnImage: false,
  2296. columnSortable: false,
  2297. sortLv: 0,
  2298. status: true,
  2299. fixed: '',
  2300. },
  2301. ],
  2302. partModelFlag: false,
  2303. umList: [],
  2304. userBuList: [],
  2305. buList: [],
  2306. authSearch: false,
  2307. authSave: false,
  2308. authCheck: false,
  2309. authCancelCheck: false,
  2310. authDelete: false,
  2311. authOverLoad: false,
  2312. authDetail: false,
  2313. authFile: false,
  2314. menuId: this.$route.meta.menuId,
  2315. roleList: [],
  2316. operatorList: [],
  2317. operatorData: {
  2318. flag: '',
  2319. site: '',
  2320. bu: '',
  2321. adminID: '',
  2322. adminName: '',
  2323. roleName: '',
  2324. roleId: '',
  2325. userName: this.$store.state.user.name
  2326. },
  2327. operatorModelFlag: false,
  2328. dataListSelections2: [],
  2329. operatorDetailList: [
  2330. {
  2331. columnProp: 'adminID',
  2332. headerAlign: "center",
  2333. align: "center",
  2334. columnLabel: '用户账号',
  2335. columnHidden: false,
  2336. columnImage: false,
  2337. columnSortable: false,
  2338. sortLv: 0,
  2339. status: true,
  2340. fixed: '',
  2341. },
  2342. {
  2343. columnProp: 'adminName',
  2344. headerAlign: "center",
  2345. align: "center",
  2346. columnLabel: '用户名称',
  2347. columnHidden: false,
  2348. columnImage: false,
  2349. columnSortable: false,
  2350. sortLv: 0,
  2351. status: true,
  2352. fixed: '',
  2353. },
  2354. {
  2355. columnProp: 'email',
  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. },
  2366. {
  2367. columnProp: 'phone',
  2368. headerAlign: "center",
  2369. align: "center",
  2370. columnLabel: '手机号',
  2371. columnHidden: false,
  2372. columnImage: false,
  2373. columnSortable: false,
  2374. sortLv: 0,
  2375. status: true,
  2376. fixed: '',
  2377. },
  2378. ],
  2379. acquisitionList: [],
  2380. ItemObjectModelFlag: false,
  2381. itemObjectList: [],
  2382. itemObjectColumnList: [
  2383. {
  2384. columnProp: 'itemNo',
  2385. headerAlign: "center",
  2386. align: "center",
  2387. columnLabel: '项目编码',
  2388. columnHidden: false,
  2389. columnImage: false,
  2390. status: true,
  2391. columnWidth: 120,
  2392. },
  2393. {
  2394. columnProp: 'itemDesc',
  2395. headerAlign: "center",
  2396. align: "left",
  2397. columnLabel: '项目名称',
  2398. columnHidden: false,
  2399. columnImage: false,
  2400. status: true,
  2401. columnWidth: 200,
  2402. },
  2403. ],
  2404. actionData: {
  2405. site: '',
  2406. buNo: '',
  2407. inspectionNo: ''
  2408. },
  2409. fileLoading: false,
  2410. subDetailLoading: false,
  2411. saveLoading: false,
  2412. searchLoading: false,
  2413. subDetailVisiable: false,
  2414. }
  2415. },
  2416. mounted () {
  2417. this.$nextTick(() => {
  2418. this.height = window.innerHeight - 250
  2419. })
  2420. },
  2421. created () {
  2422. // 按钮控制
  2423. this.getButtonAuthData()
  2424. // 获取用户的 site 和 bu
  2425. // this.getSiteAndBuByUserName()
  2426. // 获取用户的 site 和 bu
  2427. // this.getSiteAndBuByUserName2()
  2428. // 收藏
  2429. // this.favoriteIsOk()
  2430. // 检验类型
  2431. this.inspectionTypeSearch()
  2432. // 处置措施
  2433. this.disposalMeasuresSearch()
  2434. // 单位
  2435. this.umSearch()
  2436. // 查看 质量任务生成规则控制 动控是否开启
  2437. // this.queryController()
  2438. // 动态列
  2439. // this.getTableUserColumn(this.$route.meta.menuId+'table1',1)
  2440. // this.getTableUserColumn(this.$route.meta.menuId+'table2',2)
  2441. // this.getTableUserColumn(this.$route.meta.menuId+'table3',3)
  2442. if (!this.authSearch) {
  2443. // 获取数据列表
  2444. this.getDataList()
  2445. }
  2446. // 获取用户角色
  2447. this.getUserRoleList()
  2448. },
  2449. methods: {
  2450. // 获取用户的bu
  2451. getSiteAndBuByUserName2 () {
  2452. let tempData = {
  2453. username: this.$store.state.user.name,
  2454. }
  2455. getSiteAndBuByUserName2(tempData).then(({data}) => {
  2456. if (data.code === 0) {
  2457. this.buList = data.rows
  2458. }
  2459. })
  2460. },
  2461. // 批量打印标签
  2462. printList () {
  2463. if (this.FAISelections.length === 0) {
  2464. this.$message.warning('请勾选要打印的检验单!')
  2465. return
  2466. }
  2467. const inspectionNos = this.$refs.qrCode.init(this.FAISelections.map(item => item.inspectionNo))
  2468. for (let i = 0; i < inspectionNos.length; i++) {
  2469. this.FAISelections[i].qrCode = inspectionNos[i]
  2470. }
  2471. qcPrint(this.FAISelections)
  2472. },
  2473. // 数据采集
  2474. dataAcquisition () {
  2475. this.loadFlag = true
  2476. let tempDate = {
  2477. site: this.detailData.site,
  2478. buNo: this.detailData.buNo,
  2479. inspectionNo: this.detailData.inspectionNo,
  2480. flag: 'fqc'
  2481. }
  2482. dataAcquisition(tempDate).then(({data}) => {
  2483. if (data.code === 0) {
  2484. // this.acquisitionList = data.rows
  2485. this.changeMyString(data.rows)
  2486. this.$message({
  2487. message: '数据采集成功',
  2488. type: 'success',
  2489. duration: 1500
  2490. })
  2491. } else {
  2492. this.$message({
  2493. message: data.msg,
  2494. type: 'warning',
  2495. duration: 1500
  2496. })
  2497. }
  2498. this.loadFlag = false
  2499. })
  2500. },
  2501. // 根据项目数据采集
  2502. dataAcquisitionByItem (row) {
  2503. this.loadFlag = true
  2504. let tempDate = {
  2505. site: row.site,
  2506. buNo: row.buNo,
  2507. inspectionNo: row.inspectionNo,
  2508. templateId: row.templateId,
  2509. itemNo: row.itemNo,
  2510. flag: 'fqc'
  2511. }
  2512. dataAcquisitionByItem(tempDate).then(({data}) => {
  2513. if (data.code === 0) {
  2514. this.changeMyString(data.rows)
  2515. this.$message({
  2516. message: '数据采集成功',
  2517. type: 'success',
  2518. duration: 1500
  2519. })
  2520. } else {
  2521. this.$message({
  2522. message: data.msg,
  2523. type: 'warning',
  2524. duration: 1500
  2525. })
  2526. }
  2527. this.loadFlag = false
  2528. })
  2529. },
  2530. // 获取用户角色
  2531. getUserRoleList () {
  2532. getUserRoleList().then(({data}) => {
  2533. if (data.code === 0) {
  2534. this.roleList = data.rows
  2535. } else {
  2536. this.roleList = []
  2537. }
  2538. })
  2539. },
  2540. // 获取协同人员列表
  2541. getOperatorList () {
  2542. this.operatorData.flag = '1'
  2543. this.operatorData.bu = this.detailData.site + '_' + this.detailData.buNo
  2544. if (this.roleList.length > 0) {
  2545. let filterList = this.roleList.filter(item => item.roleName === '机修人员')
  2546. if (filterList.length > 0) {
  2547. this.operatorData.roleId = filterList[0].roleId
  2548. } else {
  2549. this.operatorData.roleId = this.roleList[0].roleId
  2550. }
  2551. } else {
  2552. this.operatorData.roleId = ''
  2553. }
  2554. // 先清空缓存选中
  2555. this.$nextTick(() => this.$refs.operatorTable.clearSelection())
  2556. // 拿到选中的人员编号
  2557. let tempDataList = (this.detailData.operator == null ? '' : this.detailData.operator).split(';')
  2558. getOperatorList(this.operatorData).then(({data}) => {
  2559. if (data && data.code === 0) {
  2560. this.operatorList = data.rows
  2561. this.operatorList.forEach(val => {
  2562. // 回显选中
  2563. if (tempDataList.includes(val.adminID)) {
  2564. this.$nextTick(() => this.$refs.operatorTable.toggleRowSelection(val, true))
  2565. }
  2566. })
  2567. this.operatorModelFlag = true
  2568. } else {
  2569. this.$alert(data.msg, '错误', {
  2570. confirmButtonText: '确定'
  2571. })
  2572. }
  2573. })
  2574. },
  2575. // 获取责任人员列表
  2576. getResponsiblePersonList () {
  2577. this.operatorData.flag = '2'
  2578. this.operatorData.bu = this.detailData.site + '_' + this.detailData.buNo
  2579. // 先清空缓存选中
  2580. this.$nextTick(() => this.$refs.operatorTable.clearSelection())
  2581. // 拿到选中的人员编号
  2582. let tempDataList = (this.detailData.responsiblePerson == null ? '' : this.detailData.responsiblePerson).split(';')
  2583. getResponsibleOperatorList(this.operatorData).then(({data}) => {
  2584. if (data && data.code === 0) {
  2585. this.operatorList = data.rows
  2586. this.operatorList.forEach(val => {
  2587. // 回显选中
  2588. if (tempDataList.includes(val.adminID)) {
  2589. this.$nextTick(() => this.$refs.operatorTable.toggleRowSelection(val, true))
  2590. }
  2591. })
  2592. this.operatorModelFlag = true
  2593. } else {
  2594. this.$alert(data.msg, '错误', {
  2595. confirmButtonText: '确定'
  2596. })
  2597. }
  2598. })
  2599. },
  2600. // 查询机修人员列表
  2601. getOperatorList2 () {
  2602. if (this.operatorData.flag === '1') {
  2603. // 拿到选中的人员编号
  2604. let tempDataList = (this.detailData.operator == null ? '' : this.detailData.operator).split(';')
  2605. getOperatorList(this.operatorData).then(({data}) => {
  2606. if (data && data.code === 0) {
  2607. this.operatorList = data.rows
  2608. this.operatorList.forEach(val => {
  2609. // 回显选中的部门
  2610. if (tempDataList.includes(val.adminID)) {
  2611. this.$nextTick(() => this.$refs.operatorTable.toggleRowSelection(val, true))
  2612. }
  2613. })
  2614. } else {
  2615. this.operatorList = []
  2616. }
  2617. })
  2618. } else {
  2619. // 拿到选中的人员编号
  2620. let tempDataList = (this.detailData.responsiblePerson == null ? '' : this.detailData.responsiblePerson).split(';')
  2621. getResponsibleOperatorList(this.operatorData).then(({data}) => {
  2622. if (data && data.code === 0) {
  2623. this.operatorList = data.rows
  2624. this.operatorList.forEach(val => {
  2625. // 回显选中的部门
  2626. if (tempDataList.includes(val.adminID)) {
  2627. this.$nextTick(() => this.$refs.operatorTable.toggleRowSelection(val, true))
  2628. }
  2629. })
  2630. } else {
  2631. this.operatorList = []
  2632. }
  2633. })
  2634. }
  2635. },
  2636. // 点击行选中复选框
  2637. operatorClickRow (row) {
  2638. this.$refs.operatorTable.toggleRowSelection(row)
  2639. },
  2640. // 多选
  2641. selectionChangeHandle2 (val) {
  2642. this.dataListSelections2 = val
  2643. },
  2644. // 确认多选协同人员
  2645. confirmOperator () {
  2646. if (this.dataListSelections2.length === 0) {
  2647. this.$message.warning('请勾选人员!')
  2648. return
  2649. }
  2650. if (this.operatorData.flag === '1') {
  2651. this.detailData.operator = ''
  2652. this.detailData.operatorName = ''
  2653. for (let i = 0; i < this.dataListSelections2.length; i++) {
  2654. //if (!this.detailData.operator.split(';').includes(this.dataListSelections2[i].adminID)) {
  2655. this.detailData.operatorName = this.detailData.operatorName + ";" + this.dataListSelections2[i].adminName
  2656. this.detailData.operator = this.detailData.operator + ";" + this.dataListSelections2[i].adminID
  2657. //}
  2658. }
  2659. if (this.detailData.operator.charAt(0) === ';') {
  2660. this.detailData.operator = this.detailData.operator.substring(1)
  2661. this.detailData.operatorName = this.detailData.operatorName.substring(1)
  2662. }
  2663. } else {
  2664. this.detailData.responsiblePerson = ''
  2665. this.detailData.responsiblePersonName = ''
  2666. for (let i = 0; i < this.dataListSelections2.length; i++) {
  2667. //if (!this.detailData.responsiblePerson.split(';').includes(this.dataListSelections2[i].adminID)) {
  2668. this.detailData.responsiblePersonName = this.detailData.responsiblePersonName + ";" + this.dataListSelections2[i].adminName
  2669. this.detailData.responsiblePerson = this.detailData.responsiblePerson + ";" + this.dataListSelections2[i].adminID
  2670. //}
  2671. }
  2672. if (this.detailData.responsiblePerson.charAt(0) === ';') {
  2673. this.detailData.responsiblePerson = this.detailData.responsiblePerson.substring(1)
  2674. this.detailData.responsiblePersonName = this.detailData.responsiblePersonName.substring(1)
  2675. }
  2676. }
  2677. this.operatorData = {
  2678. flag: '',
  2679. site: '',
  2680. bu: '',
  2681. adminID: '',
  2682. adminName: '',
  2683. roleName: '',
  2684. roleId: '',
  2685. userName: this.$store.state.user.name
  2686. }
  2687. this.operatorModelFlag = false
  2688. },
  2689. // bu内容改变事件
  2690. buChange () {
  2691. if (this.modalData.specialTaskFlag !== 'Y') { // 正常检验
  2692. this.modalData.templateId = ''
  2693. this.modalData.templateName = ''
  2694. } else { // 无工单检验
  2695. this.modalData.partNo = ''
  2696. this.modalData.partDesc = ''
  2697. this.modalData.invdefinetype = ''
  2698. this.modalData.sku = ''
  2699. this.modalData.cinvSourceCode = ''
  2700. this.modalData.templateId = ''
  2701. this.modalData.templateName = ''
  2702. }
  2703. },
  2704. // 获取用户的bu
  2705. getSiteAndBuByUserName () {
  2706. let tempData = {
  2707. username: this.$store.state.user.name,
  2708. }
  2709. getSiteAndBuByUserName(tempData).then(({data}) => {
  2710. if (data.code === 0) {
  2711. this.userBuList = data.rows
  2712. }
  2713. })
  2714. },
  2715. // 子明细导入
  2716. subDetailUpload () {
  2717. let currentData = {
  2718. flag: 'FQC',
  2719. site: this.detailData.site,
  2720. buNo: this.detailData.buNo,
  2721. inspectionNo: this.detailData.inspectionNo
  2722. }
  2723. //打开组件 去做新增业务
  2724. this.$nextTick(() => {
  2725. this.$refs.subDetailUpload.init(currentData)
  2726. })
  2727. },
  2728. // 查询单位
  2729. umSearch () {
  2730. let tempData = {
  2731. site: this.$store.state.user.site,
  2732. active: 'Y'
  2733. }
  2734. umSearch(tempData).then(({data}) => {
  2735. if (data.code === 0) {
  2736. this.umList = data.rows
  2737. }
  2738. })
  2739. },
  2740. // 标签号回车事件
  2741. rollNoEnter () {
  2742. const regex = /\(08\)(.*)/
  2743. const result = this.modalData.rollNo.match(regex)
  2744. let tempData = {
  2745. site: '',
  2746. bu: this.modalData.bu,
  2747. rollNo: result == null ? this.modalData.rollNo : result[1]
  2748. }
  2749. rollNoEnter(tempData).then(({data}) => {
  2750. if (data && data.code === 0) {
  2751. this.operationList = data.rows
  2752. this.modalData.seqNo = data.rows[0].seqNo
  2753. this.modalData.orderNo = data.rows[0].orderNo
  2754. this.modalData.operationDesc = data.rows[0].operationDesc
  2755. this.modalData.workCenterNo = data.rows[0].workCenterNo
  2756. this.modalData.resourceId = data.rows[0].resourceId
  2757. this.modalData.resourceDesc = data.rows[0].resourceDesc
  2758. this.modalData.partNo = data.rows[0].partNo
  2759. this.modalData.partDesc = data.rows[0].partDesc
  2760. this.modalData.invdefinetype = data.rows[0].invdefinetype
  2761. this.modalData.sku = data.rows[0].sku
  2762. this.modalData.cinvSourceCode = data.rows[0].cinvSourceCode
  2763. } else {
  2764. this.$alert(data.msg, '错误', {
  2765. confirmButtonText: '确定'
  2766. })
  2767. }
  2768. })
  2769. },
  2770. querySearchAsync (queryString, cb) {
  2771. clearTimeout(this.timeout)
  2772. let results = []
  2773. if (queryString === '') {
  2774. cb(results)
  2775. } else {
  2776. // 掉接口需要的参数
  2777. let find = {
  2778. rollNo: queryString, //上面输入框绑定的数据
  2779. site: this.$store.state.user.site,
  2780. }
  2781. // 这里去调后端的接口.根据自己接口的情况进行赋值
  2782. getRollNo(find).then(({data}) => {
  2783. if (data.code === 0) {
  2784. let result = data.rows
  2785. // 循环放到一个远程搜索需要的数组
  2786. for (let i = 0; i < result.length; i++) {
  2787. const element = result[i]
  2788. results.push({
  2789. value: element.rollNo,
  2790. seqNo: element.seqNo,
  2791. orderNo: element.orderNo
  2792. })
  2793. }
  2794. cb(results)
  2795. } else {
  2796. results = []
  2797. cb(results)
  2798. }
  2799. })
  2800. }
  2801. },
  2802. // 点击出现搜索后点击的每一项
  2803. handleSelect (item) {
  2804. this.modalData.rollNo = item.value
  2805. this.modalData.seqNo = item.seqNo
  2806. this.modalData.orderNo = item.orderNo
  2807. this.getOperationList()
  2808. //this.getPartList()
  2809. },
  2810. // 获取处置措施列表
  2811. disposalMeasuresSearch () {
  2812. let tempData = {
  2813. inspectionTypeNo: '107'
  2814. }
  2815. disposalMeasuresSearch(tempData).then(({data}) => {
  2816. if (data.code === 0) {
  2817. this.disposalMeasuresOptions = data.rows
  2818. }
  2819. })
  2820. },
  2821. // 查询检验类型
  2822. inspectionTypeSearch () {
  2823. let tempData = {
  2824. site: this.$store.state.user.site
  2825. }
  2826. inspectionTypeSearch(tempData).then(({data}) => {
  2827. if (data.code === 0) {
  2828. this.typeOptions = data.rows
  2829. this.typeOptions.forEach(val => {
  2830. if (val.inspectionTypeName.includes('FQC')) {
  2831. this.templateData.inspectionTypeNo = val.inspectionTypeNo
  2832. this.templateData.inspectionTypeName = val.inspectionTypeName
  2833. }
  2834. })
  2835. }
  2836. })
  2837. },
  2838. // 获取基础数据列表S
  2839. getBaseList (val,type) {
  2840. this.tagNo = val
  2841. this.$nextTick(() => {
  2842. let strVal = ''
  2843. if (val === 1052) {
  2844. this.searchSeqInfo()
  2845. this.seqDetailFlag = true
  2846. }
  2847. if (val === 505) {
  2848. strVal = this.modalData.resourceDesc
  2849. this.$refs.baseList.init(val, strVal)
  2850. }
  2851. // if (val === 206) {
  2852. // strVal = this.modalData.partNo
  2853. // this.$refs.baseList.init(val, strVal)
  2854. // }
  2855. })
  2856. },
  2857. /* 列表方法的回调 */
  2858. getBaseData (val) {
  2859. if (this.tagNo === 1052) {
  2860. this.modalData.seqNo = val.seqno
  2861. this.modalData.orderNo = val.orderno
  2862. this.modalData.operationDesc = ''
  2863. this.modalData.resourceId = ''
  2864. this.getOperationList()
  2865. //this.getPartList()
  2866. }
  2867. if (this.tagNo === 505) {
  2868. this.modalData.resourceId = val.resource_id
  2869. this.modalData.resourceDesc = val.resource_desc
  2870. }
  2871. // if (this.tagNo === 206) {
  2872. // this.modalData.partNo = val.part_no
  2873. // this.modalData.partDesc = val.part_desc
  2874. // // 获取物料的其他信息
  2875. // this.getPartInformation()
  2876. // }
  2877. },
  2878. // // 获取物料其它信息
  2879. // getPartInformation () {
  2880. // getPartInformation(this.modalData).then(({data}) => {
  2881. // if (data && data.code === 0) {
  2882. // this.modalData.spec = data.rows[0].spec
  2883. // this.modalData.sku = data.rows[0].sku
  2884. // } else {
  2885. // this.$alert(data.msg, '错误', {
  2886. // confirmButtonText: '确定'
  2887. // })
  2888. // }
  2889. // })
  2890. // },
  2891. // 获取机台列表
  2892. getResourceList () {
  2893. // 判断是否为特殊任务,特殊任务的机台不随工序改变
  2894. if (this.modalData.specialTaskFlag === 'Y') {
  2895. return
  2896. } else {
  2897. getResourceList(this.modalData).then(({data}) => {
  2898. if (data && data.code === 0) {
  2899. //this.resourceList = data.rows
  2900. this.modalData.workCenterNo = data.rows[0].workCenterNo
  2901. this.modalData.resourceId = data.rows[0].resourceId
  2902. this.modalData.resourceDesc = data.rows[0].resourceDesc
  2903. } else {
  2904. this.$alert(data.msg, '错误', {
  2905. confirmButtonText: '确定'
  2906. })
  2907. }
  2908. })
  2909. }
  2910. },
  2911. // 获取工序列表
  2912. getOperationList () {
  2913. getOperationList(this.modalData).then(({data}) => {
  2914. if (data && data.code === 0) {
  2915. this.operationList = data.rows
  2916. this.modalData.operationDesc = data.rows[0].operationDesc
  2917. //this.getResourceList()
  2918. this.modalData.workCenterNo = data.rows[0].workCenterNo
  2919. this.modalData.resourceId = data.rows[0].resourceId
  2920. this.modalData.resourceDesc = data.rows[0].resourceDesc
  2921. this.modalData.partNo = data.rows[0].partNo
  2922. this.modalData.partDesc = data.rows[0].partDesc
  2923. this.modalData.invdefinetype = data.rows[0].invdefinetype
  2924. this.modalData.sku = data.rows[0].sku
  2925. this.modalData.cinvSourceCode = data.rows[0].cinvSourceCode
  2926. this.modalData.operationDesc = data.rows[0].operationDesc
  2927. this.modalData.qtyrequired = data.rows[0].qtyrequired
  2928. this.modalData.lotsize = data.rows[0].lotsize
  2929. } else {
  2930. this.$alert(data.msg, '错误', {
  2931. confirmButtonText: '确定'
  2932. })
  2933. }
  2934. })
  2935. },
  2936. // 获取物料列表
  2937. getPartList () {
  2938. getPartList(this.modalData).then(({data}) => {
  2939. if (data && data.code === 0) {
  2940. this.partList = data.rows
  2941. this.modalData.partNo = this.partList[0].partNo
  2942. this.modalData.partDesc = this.partList[0].partDesc
  2943. this.modalData.invdefinetype = this.partList[0].invdefinetype
  2944. this.modalData.sku = this.partList[0].sku
  2945. this.modalData.cinvSourceCode = this.partList[0].cinvSourceCode
  2946. } else {
  2947. this.$alert(data.msg, '错误', {
  2948. confirmButtonText: '确定'
  2949. })
  2950. }
  2951. })
  2952. },
  2953. // 是否新增特殊任务
  2954. changeSpecialTask () {
  2955. // 先重置数据
  2956. this.modalData = {
  2957. flag: '1',
  2958. site: this.$store.state.user.site,
  2959. // bu: this.userBuList[0].buNo,
  2960. buNo: '*',
  2961. inspectionNo: '',
  2962. partNo: '',
  2963. partDesc: '',
  2964. inspectionTypeNo: '',
  2965. inspectionTypeName: '',
  2966. inspectorNo: '',
  2967. inspectorName: '',
  2968. submit_flag: '',
  2969. orderNo: '',
  2970. operationDesc: '',
  2971. operationNo: '',
  2972. resourceId: '',
  2973. resourceDesc: '',
  2974. rollQty: '',
  2975. seqNo: '',
  2976. batchRollNo: '',
  2977. invdefinetype: '',
  2978. sku: '',
  2979. cinvSourceCode: '',
  2980. specialRequirements: '',
  2981. templateId: '',
  2982. templateName: '',
  2983. specialTaskFlag: '',
  2984. workCenterNo: '',
  2985. rollNo: '',
  2986. umId: this.umList[0].umId,
  2987. umName: this.umList[0].umName
  2988. }
  2989. // 获取选中框
  2990. let obj = document.getElementsByName('specialTask')
  2991. // 判断是否打勾
  2992. if (obj[0].checked) {
  2993. let tempData = {
  2994. site: this.$store.state.user.site,
  2995. // bu: this.modalData.bu
  2996. buNo: '*'
  2997. }
  2998. this.modalData.specialTaskFlag = 'Y'
  2999. // 获取特殊工序列表
  3000. getSpecialOperationList(tempData).then(({data}) => {
  3001. if (data && data.code === 0) {
  3002. this.operationList = data.rows
  3003. } else {
  3004. this.$alert(data.msg, '错误', {
  3005. confirmButtonText: '确定'
  3006. })
  3007. }
  3008. })
  3009. // 派工单和工单号赋值
  3010. this.modalData.seqNo = '0'
  3011. this.modalData.orderNo = '000#1'
  3012. } else {
  3013. this.operationList = []
  3014. this.modalData.specialTaskFlag = ''
  3015. }
  3016. },
  3017. // 新增FAI巡检记录
  3018. saveData () {
  3019. if (this.modalData.seqNo === '' || this.modalData.seqNo == null) {
  3020. this.$message.warning('请选择派工单!')
  3021. return
  3022. }
  3023. if (this.modalData.orderNo === '' || this.modalData.orderNo == null) {
  3024. this.$message.warning('请选择工单!')
  3025. return
  3026. }
  3027. if (this.modalData.specialTaskFlag !== 'Y' && (this.modalData.partNo === '' || this.modalData.partNo == null)) {
  3028. this.$message.warning('请选择物料!')
  3029. return
  3030. }
  3031. if (this.modalData.operationDesc === '' || this.modalData.operationDesc == null) {
  3032. this.$message.warning('请选择工序!')
  3033. return
  3034. }
  3035. if (this.modalData.specialTaskFlag !== 'Y' && (this.modalData.resourceId === '' || this.modalData.resourceId == null)) {
  3036. this.$message.warning('请选择机台!')
  3037. return
  3038. }
  3039. if (this.modalData.rollQty === '' || this.modalData.rollQty == null) {
  3040. this.$message.warning('请填写送检数量!')
  3041. return
  3042. }
  3043. if (this.modalData.umId === '' || this.modalData.umId == null) {
  3044. this.$message.warning('请选择单位!')
  3045. return
  3046. }
  3047. if (this.controlData.baseData === '控制' && (this.modalData.templateId == null || this.modalData.templateId === '')) {
  3048. this.$message.warning('请选择检验模板!')
  3049. return
  3050. }
  3051. this.saveLoading = true
  3052. if (this.modalData.flag === '1') {
  3053. saveFQCInspection(this.modalData).then(({data}) => {
  3054. if (data && data.code === 0) {
  3055. this.getDataList()
  3056. this.operationList = []
  3057. this.resourceList = []
  3058. this.partList = []
  3059. this.modalFlag = false
  3060. this.$message({
  3061. message: '操作成功',
  3062. type: 'success',
  3063. duration: 1500,
  3064. onClose: () => {}
  3065. })
  3066. } else {
  3067. this.$alert(data.msg, '错误', {
  3068. confirmButtonText: '确定'
  3069. })
  3070. }
  3071. this.saveLoading = false
  3072. }).catch(()=>{
  3073. this.saveLoading = false
  3074. })
  3075. }
  3076. },
  3077. // 检查动控是否开启
  3078. queryController () {
  3079. let tempData = {
  3080. controlNo: '10004',
  3081. site: this.$store.state.user.site,
  3082. }
  3083. queryController(tempData).then(({data}) => {
  3084. if (data && data.code === 0) {
  3085. this.controlData = data.rows
  3086. } else {
  3087. this.$alert(data.msg, '错误', {
  3088. confirmButtonText: '确定'
  3089. })
  3090. }
  3091. })
  3092. },
  3093. // 新增
  3094. addModal () {
  3095. this.modalData = {
  3096. flag: '1',
  3097. site: this.$store.state.user.site,
  3098. // bu: this.userBuList[0].buNo,
  3099. buNo: '*',
  3100. inspectionNo: '',
  3101. partNo: '',
  3102. partDesc: '',
  3103. inspectionTypeNo: '107',
  3104. inspectionTypeName: '',
  3105. inspectorNo: '',
  3106. inspectorName: '',
  3107. submit_flag: '',
  3108. orderNo: '',
  3109. operationDesc: '',
  3110. operationNo: '',
  3111. resourceId: '',
  3112. resourceDesc: '',
  3113. rollQty: '',
  3114. seqNo: '',
  3115. batchRollNo: '',
  3116. invdefinetype: '',
  3117. sku: '',
  3118. cinvSourceCode: '',
  3119. specialRequirements: '',
  3120. templateId: '',
  3121. templateName: '',
  3122. specialTaskFlag: '',
  3123. workCenterNo: '',
  3124. rollNo: '',
  3125. umId: this.umList[0].umId,
  3126. umName: this.umList[0].umName,
  3127. sjzs: '',
  3128. }
  3129. this.operationList = []
  3130. this.resourceList = []
  3131. this.partList = []
  3132. this.modalFlag = true
  3133. this.checked = false
  3134. },
  3135. // 获取检验模板列表
  3136. queryTemplateList () {
  3137. // this.templateData.bu = this.modalData.bu
  3138. this.templateData.site = this.modalData.site
  3139. this.templateData.buNo = this.modalData.buNo
  3140. // 查询所有检验模板
  3141. queryTemplateList(this.templateData).then(({data}) => {
  3142. if (data && data.code === 0) {
  3143. this.templateList = data.rows
  3144. this.templateModelFlag = true
  3145. }else {
  3146. this.$alert(data.msg, '错误', {
  3147. confirmButtonText: '确定'
  3148. })
  3149. }
  3150. })
  3151. },
  3152. // 获取物料列表
  3153. queryPartList () {
  3154. // this.partData.bu = this.modalData.bu
  3155. this.partData.site = this.modalData.site
  3156. this.partData.buNo = this.modalData.buNo
  3157. // 查询所有物料
  3158. if (this.partData.partNo === '' && this.partData.partDesc === '' && this.partData.sku === '' && this.partData.cinvSourceCode === '') {
  3159. this.partList = []
  3160. this.partModelFlag = true
  3161. } else {
  3162. queryPartList(this.partData).then(({data}) => {
  3163. if (data && data.code === 0) {
  3164. this.partList = data.rows
  3165. this.partModelFlag = true
  3166. } else {
  3167. this.$alert(data.msg, '错误', {
  3168. confirmButtonText: '确定'
  3169. })
  3170. }
  3171. })
  3172. }
  3173. },
  3174. // 选中检验模板
  3175. getRowData (row) {
  3176. this.modalData.templateId = row.templateId
  3177. this.modalData.templateName = row.templateName
  3178. this.templateModelFlag = false
  3179. },
  3180. // 选中派工单号
  3181. getRowData1 (row) {
  3182. this.modalData.sku = row.sku
  3183. this.modalData.partNo = row.partNo
  3184. this.modalData.partDesc = row.partDesc
  3185. this.modalData.cinvSourceCode = row.cinvSourceCode
  3186. this.modalData.orderNo = row.orderNo
  3187. this.modalData.seqNo = row.seqNo
  3188. this.modalData.lotsize = row.lotsize
  3189. this.modalData.operationDesc = row.operationDesc
  3190. this.modalData.qtyrequired = row.qtyrequired
  3191. this.modalData.rollQty = row.qtyrequired
  3192. this.modalData.sjzs = row.sjzs
  3193. this.getOperationList()
  3194. //查询物料对应的模板
  3195. let params = {
  3196. site: this.modalData.site,
  3197. buNo: this.modalData.buNo,
  3198. partNo: this.modalData.partNo,
  3199. attributeNo: this.modalData.partNo,
  3200. partDesc: this.modalData.partDesc,
  3201. attributeType: 'A',
  3202. inspectionTypeNo: '107'
  3203. }
  3204. searchPartAttributeDetails(params).then(({data}) => {
  3205. if (data.total = 1){
  3206. this.modalData.templateId = data.rows[0].templateId
  3207. this.modalData.templateName = data.rows[0].templateName
  3208. }
  3209. })
  3210. this.seqDetailFlag = false
  3211. },
  3212. // 选中物料
  3213. getRowData2 (row) {
  3214. this.modalData.partNo = row.partNo
  3215. this.modalData.partDesc = row.partDesc
  3216. this.modalData.sku = row.sku
  3217. this.modalData.cinvSourceCode = row.cinvSourceCode
  3218. this.modalData.invdefinetype = row.invdefinetype
  3219. this.partData = {
  3220. site: '',
  3221. bu: '',
  3222. partNo: '',
  3223. partDesc: '',
  3224. sku: '',
  3225. cinvSourceCode: ''
  3226. }
  3227. this.partModelFlag = false
  3228. },
  3229. selectFlag () {
  3230. return true
  3231. },
  3232. // 单机选中
  3233. FAIClickRow (row) {
  3234. this.$refs.FAITable.toggleRowSelection(row)
  3235. },
  3236. // 复选
  3237. selectionFAI (val) {
  3238. this.FAISelections = val
  3239. },
  3240. // 刷新派设备文档的列表
  3241. getFileContentData (row) {
  3242. let currentData = {
  3243. orderRef1: row.site,
  3244. orderRef2: row.inspectionNo,
  3245. orderRef4: row.buNo,
  3246. partNo: row.partNo
  3247. }
  3248. this.fileLoading = true
  3249. getInspectionFile(currentData).then(({data}) => {
  3250. //区分请求成功和失败的状况
  3251. if (data && data.code === 0) {
  3252. this.fileContentList = data.rows
  3253. } else {
  3254. this.fileContentList = []
  3255. }
  3256. this.fileLoading = false
  3257. }).catch(()=>{
  3258. this.fileLoading = false
  3259. })
  3260. this.fileFlag = true
  3261. },
  3262. // 新增文件的modal
  3263. addUploadFileModal () {
  3264. let currentData = {
  3265. titleCon: 'FQC文件上传',
  3266. site: this.detailData.site,
  3267. buNo: this.detailData.buNo,
  3268. createBy: this.$store.state.user.name,
  3269. inspectionNo: this.detailData.inspectionNo,
  3270. remark: '',
  3271. folder: 'qcFQC',
  3272. }
  3273. //打开组件 去做新增业务
  3274. this.$nextTick(() => {
  3275. this.$refs.qcFAIUploadFile.init(currentData)
  3276. })
  3277. },
  3278. // 上传项目图片
  3279. uploadImageModal (row) {
  3280. const openImage = () => {
  3281. let currentData = {
  3282. site: this.detailData.site,
  3283. buNo: this.detailData.buNo,
  3284. createBy: this.$store.state.user.name,
  3285. inspectionNo: this.detailData.inspectionNo,
  3286. itemNo: row.itemNo,
  3287. folder: 'FQCItemImageFile'
  3288. }
  3289. this.$nextTick(() => {
  3290. this.$refs.comQcItemImageUploadFile.init(currentData)
  3291. })
  3292. }
  3293. if (this.detailData.state !== '待检验') {
  3294. openImage()
  3295. return
  3296. }
  3297. if (this.detailData.passQty > this.detailData.rollQty) {
  3298. this.$message.warning('合格数量不能大于送检数量!')
  3299. return
  3300. }
  3301. this.saveDetailInformation('1', {
  3302. keepDetailOpen: true,
  3303. skipSuccessMessage: true,
  3304. afterSuccess: openImage
  3305. })
  3306. },
  3307. // 查询检验类型
  3308. inspectorSearch () {
  3309. inspectorSearch().then(({data}) => {
  3310. if (data.code === 0) {
  3311. this.options = data.rows
  3312. }
  3313. })
  3314. },
  3315. // 获取主信息数据列表
  3316. getDataList () {
  3317. this.searchLoading = true
  3318. this.searchData.limit = this.pageSize
  3319. this.searchData.page = this.pageIndex
  3320. qcFQCInspectionSearch(this.searchData).then(({data}) => {
  3321. if (data.code === 0) {
  3322. this.dataList = data.page.list
  3323. this.pageIndex = data.page.currPage
  3324. this.pageSize = data.page.pageSize
  3325. this.totalPage = data.page.totalCount
  3326. this.searchLoading = false
  3327. } else {
  3328. this.searchLoading = false
  3329. }
  3330. }).catch(()=>{
  3331. this.searchLoading = false
  3332. })
  3333. },
  3334. // 每页数
  3335. sizeChangeHandle (val) {
  3336. this.pageSize = val
  3337. this.pageIndex = 1
  3338. this.getDataList()
  3339. },
  3340. // 当前页
  3341. currentChangeHandle (val) {
  3342. this.pageIndex = val
  3343. this.getDataList()
  3344. },
  3345. // 子明细每页数
  3346. sizeChangeHandle2 (val) {
  3347. this.pageSize2 = val
  3348. },
  3349. // 子明细当前页
  3350. currentChangeHandle2 (val) {
  3351. this.pageIndex2 = val
  3352. },
  3353. // 多选
  3354. selectionChangeHandle (val) {
  3355. this.dataListSelections = val
  3356. },
  3357. // 删除检验记录
  3358. deleteModal () {
  3359. if (this.FAISelections.length === 0) {
  3360. this.$alert('请勾选要删除的检验单!', '提示', {
  3361. confirmButtonText: '确定'
  3362. })
  3363. return false
  3364. }
  3365. this.$confirm(`是否删除该 `+ this.FAISelections.length +` 条检验记录?`, '提示', {
  3366. confirmButtonText: '确定',
  3367. cancelButtonText: '取消',
  3368. type: 'warning'
  3369. }).then(() => {
  3370. let tempData = {
  3371. site: '',
  3372. submitList: this.FAISelections
  3373. }
  3374. fqcRecordDelete(tempData).then(({data}) => {
  3375. if (data && data.code === 0) {
  3376. this.getDataList()
  3377. this.FAISelections = []
  3378. this.$message({
  3379. message: '操作成功',
  3380. type: 'success',
  3381. duration: 1500,
  3382. onClose: () => {}
  3383. })
  3384. } else {
  3385. this.$alert(data.msg, '错误', {
  3386. confirmButtonText: '确定'
  3387. })
  3388. }
  3389. })
  3390. }).catch(() => {
  3391. })
  3392. },
  3393. // 任务重载
  3394. overLoadModal () {
  3395. if (this.FAISelections.length === 0) {
  3396. this.$message.warning('请勾选要重载的检验单!')
  3397. return
  3398. }
  3399. this.$confirm(`确认重载选中的检验单?`, '提示', {
  3400. confirmButtonText: '确定',
  3401. cancelButtonText: '取消',
  3402. type: 'warning'
  3403. }).then(() => {
  3404. fqcRecordOverLoad({ submitList: this.FAISelections }).then(({data}) => {
  3405. if (data && data.code === 0) {
  3406. this.$message.success('操作成功')
  3407. this.getDataList()
  3408. this.FAISelections = []
  3409. } else {
  3410. this.$message.warning(data.msg || '操作失败')
  3411. }
  3412. })
  3413. }).catch(() => {})
  3414. },
  3415. Transfer (type) {
  3416. if (type === '2') {
  3417. if (this.detailData.inspectionResult === '' || this.detailData.inspectionResult == null) {
  3418. this.$message.warning('请选择检验结论!')
  3419. return
  3420. }
  3421. if (this.detailData.inspectionResult === '不合格' && (this.detailData.disposalMeasures == null || this.detailData.disposalMeasures === '')) {
  3422. this.$message.warning('请选择处置措施!')
  3423. return
  3424. }
  3425. if (this.detailList.length > 0 && this.detailData.inspectionResult === '不合格') {
  3426. const flag = this.detailList.some(item => item.itemResult === 'N')
  3427. if (!flag) {
  3428. this.$message.warning('请选择不合格项目!')
  3429. return
  3430. }
  3431. }
  3432. if (this.detailData.inspectionResult !== '不合格') {
  3433. this.detailData.disposalMeasures = ''
  3434. this.detailData.disposalRemark = ''
  3435. }
  3436. const picRequiredRow = this.detailList.find(
  3437. item => item.pictureFlag === 'Y' && !(Number(item.imageDetailNum) > 0)
  3438. )
  3439. if (picRequiredRow) {
  3440. this.$message.warning(`项目编码:${picRequiredRow.itemNo || ''}图片必填,请检查!`)
  3441. return
  3442. }
  3443. }
  3444. if (this.detailData.passQty>this.detailData.rollQty){
  3445. this.$message.warning('合格数量不能大于送检数量!')
  3446. return
  3447. }
  3448. this.saveDetailInformation(type)
  3449. },
  3450. // 新增明细信息
  3451. saveDetailInformation (type, options = {}) {
  3452. const keepDetailOpen = options.keepDetailOpen === true
  3453. this.saveInformationData.site = this.detailData.site
  3454. this.saveInformationData.buNo = this.detailData.buNo
  3455. this.saveInformationData.inspectionNo = this.detailData.inspectionNo
  3456. this.saveInformationData.disposalMeasures = this.detailData.disposalMeasures
  3457. this.saveInformationData.disposalRemark = this.detailData.disposalRemark
  3458. this.saveInformationData.inspectorNo = this.$store.state.user.name
  3459. this.saveInformationData.inspectionResult = this.detailData.inspectionResult
  3460. this.saveInformationData.inspectionRemark = this.detailData.inspectionRemark
  3461. this.saveInformationData.rollQty = this.detailData.rollQty
  3462. this.saveInformationData.samplingQty = this.detailData.samplingQty
  3463. this.saveInformationData.unqualifiedQty = this.detailData.unqualifiedQty
  3464. this.saveInformationData.partNo = this.detailData.partNo
  3465. this.saveInformationData.partDesc = this.detailData.partDesc
  3466. this.saveInformationData.operator = this.detailData.operator
  3467. this.saveInformationData.responsiblePerson = this.detailData.responsiblePerson
  3468. this.saveInformationData.itemList = JSON.parse(JSON.stringify(this.detailList))
  3469. this.saveInformationData.passQty = this.detailData.passQty == null ? 0 : this.detailData.passQty
  3470. this.saveInformationData.notPassQty = this.detailData.notPassQty == null ? 0 : this.detailData.notPassQty
  3471. this.saveInformationData.batchQualifiedQty = this.detailData.batchQualifiedQty == null ? 0 : this.detailData.batchQualifiedQty
  3472. this.saveInformationData.type = type
  3473. this.transferLoadFlag = true
  3474. // this.saveInformationData.subDetailList = this.acquisitionList
  3475. saveFQCDetailedRecord(this.saveInformationData).then(({data}) => {
  3476. if (data && data.code === 0) {
  3477. this.getDataList()
  3478. if (keepDetailOpen) {
  3479. this.getInspectionFormData()
  3480. if (!options.skipSuccessMessage) {
  3481. this.$message({
  3482. message: '操作成功',
  3483. type: 'success',
  3484. duration: 1500,
  3485. onClose: () => {}
  3486. })
  3487. }
  3488. } else {
  3489. this.detailInformationFlag = false
  3490. this.$message({
  3491. message: '操作成功',
  3492. type: 'success',
  3493. duration: 1500,
  3494. onClose: () => {}
  3495. })
  3496. }
  3497. if (typeof options.afterSuccess === 'function') {
  3498. options.afterSuccess()
  3499. }
  3500. } else {
  3501. this.$alert(data.msg, '错误', {
  3502. confirmButtonText: '确定'
  3503. })
  3504. }
  3505. this.transferLoadFlag = false
  3506. }).catch(()=>{
  3507. this.transferLoadFlag = false
  3508. })
  3509. },
  3510. // 开始检验
  3511. actionModal (row) {
  3512. this.actionData = {
  3513. site: row.site,
  3514. buNo: row.buNo,
  3515. inspectionNo: row.inspectionNo
  3516. }
  3517. getFQCItemObjectList(this.actionData).then(({data}) => {
  3518. if (data && data.code === 0) {
  3519. if (data.rows.length === 0) {
  3520. this.actionModal2()
  3521. } else {
  3522. this.itemObjectList = data.rows
  3523. this.ItemObjectModelFlag = true
  3524. }
  3525. } else {
  3526. this.$alert(data.msg, '错误', {
  3527. confirmButtonText: '确定'
  3528. })
  3529. }
  3530. })
  3531. },
  3532. // 开始检验
  3533. actionModal2 () {
  3534. this.$confirm(`确认开始检验?`, '提示', {
  3535. confirmButtonText: '确定',
  3536. cancelButtonText: '取消',
  3537. type: 'warning'
  3538. }).then(() => {
  3539. let tempData = {
  3540. site: this.actionData.site,
  3541. buNo: this.actionData.buNo,
  3542. inspectionNo: this.actionData.inspectionNo,
  3543. actionBy: this.$store.state.user.name,
  3544. state: '待检验',
  3545. equipmentList: this.itemObjectList
  3546. }
  3547. actionFQCInspection(tempData).then(({data}) => {
  3548. if (data && data.code === 0) {
  3549. this.getDataList()
  3550. this.$message({
  3551. message: '操作成功',
  3552. type: 'success',
  3553. duration: 1500,
  3554. onClose: () => {}
  3555. })
  3556. this.ItemObjectModelFlag = false
  3557. } else {
  3558. this.$alert(data.msg, '错误', {
  3559. confirmButtonText: '确定'
  3560. })
  3561. }
  3562. })
  3563. })
  3564. },
  3565. // 明细记录信息查询
  3566. detailModal (row) {
  3567. this.detailData.site = row.site
  3568. this.detailData.buNo = row.buNo
  3569. this.detailData.inspectionNo = row.inspectionNo
  3570. this.detailData.partNo = row.partNo
  3571. this.detailData.partDesc = row.partDesc
  3572. this.detailData.rollQty = row.rollQty
  3573. this.detailData.samplingQty = row.samplingQty
  3574. this.detailData.unqualifiedQty = row.unqualifiedQty
  3575. this.detailData.unqualifiedQuantity = row.unqualifiedQuantity
  3576. this.detailData.submitFlag = row.submitFlag
  3577. this.detailData.disposalMeasures = row.disposalMeasures
  3578. this.detailData.disposalRemark = row.disposalRemark
  3579. this.detailData.inspectionResult = row.inspectionResult
  3580. this.detailData.inspectorNo = row.inspectorNo
  3581. this.detailData.inspectorName = row.inspectorName
  3582. this.detailData.inspectionRemark = row.inspectionRemark
  3583. this.detailData.cinvSourceCode = row.cinvSourceCode
  3584. this.detailData.sku = row.sku
  3585. this.detailData.invdefinetype = row.invdefinetype
  3586. this.detailData.umId = row.umId
  3587. this.detailData.umName = row.umName
  3588. this.detailData.operator = row.operator
  3589. this.detailData.operatorName = row.operatorName
  3590. this.detailData.responsiblePerson = row.responsiblePerson
  3591. this.detailData.responsiblePersonName = row.responsiblePersonName
  3592. this.detailData.state = row.state
  3593. if (row.state === '待检验') {
  3594. this.detailData.passQty = row.samplingQty
  3595. } else {
  3596. this.detailData.passQty = row.passQty
  3597. this.detailData.notPassQty = row.notPassQty
  3598. }
  3599. this.detailData.batchQualifiedQty = row.batchQualifiedQty
  3600. this.getInspectionFormData()
  3601. this.inspectorSearch()
  3602. // this.acquisitionList = []
  3603. this.detailInformationFlag = true
  3604. },
  3605. // 检验单明细
  3606. getInspectionFormData () {
  3607. fqcDetailSearch(this.detailData).then(({data}) => {
  3608. if (data && data.code === 0) {
  3609. this.detailList = data.rows
  3610. } else {
  3611. this.detailList = []
  3612. }
  3613. })
  3614. },
  3615. // 子明细记录信息查询
  3616. subDetailModal (row) {
  3617. this.subDetailLoading = true
  3618. this.subDetailData = row
  3619. this.pageIndex2 = 1
  3620. selectFQCSubDetailedRecord(this.subDetailData).then(({data}) => {
  3621. if (data.code === 0) {
  3622. this.tableData = data.rows
  3623. }
  3624. this.subDetailLoading = false
  3625. }).catch(()=>{
  3626. this.subDetailLoading = false
  3627. })
  3628. this.batchAddData = {
  3629. samplingLocation: '',
  3630. samplingLocationB: '',
  3631. samplingNumber: ''
  3632. }
  3633. this.subDetailFlag = true
  3634. },
  3635. // 子明细分页查询
  3636. subDetailModal2 () {
  3637. selectFQCSubDetailedRecord(this.subDetailData).then(({data}) => {
  3638. if (data.code === 0) {
  3639. this.tableData = data.rows
  3640. }
  3641. })
  3642. },
  3643. // 审核按钮
  3644. submitResult () {
  3645. let tempData1 = '' // 记录不是待审核状态的单号
  3646. let tempData2 = '' // 记录处置措施未填写的单号
  3647. if (this.FAISelections.length === 0) {
  3648. this.$alert('请勾选要审核的检验单!', '提示', {
  3649. confirmButtonText: '确定'
  3650. })
  3651. return false
  3652. }
  3653. for (let i = 0; i < this.FAISelections.length; i++) {
  3654. if (this.FAISelections[i].state !== '待审核'){
  3655. tempData1 = tempData1 + this.FAISelections[i].inspectionNo + '、'
  3656. }
  3657. if (this.FAISelections[i].inspectionResult === '不合格' && (this.FAISelections[i].disposalMeasures ==='' || this.FAISelections[i].disposalMeasures == null)) {
  3658. tempData2 = tempData2 + this.FAISelections[i].inspectionNo + '、'
  3659. }
  3660. }
  3661. if (tempData1 !== ''){
  3662. tempData1 = tempData1.substring(0, tempData1.length - 1)
  3663. this.$alert('检验单号 ' + tempData1 + ' 不是待审核状态!', '提示', {
  3664. confirmButtonText: '确定'
  3665. })
  3666. return false
  3667. }
  3668. if (tempData2 !== ''){
  3669. tempData2 = tempData2.substring(0, tempData2.length - 1)
  3670. this.$alert('检验单号 ' + tempData2 + ' 的处置措施未选择!', '提示', {
  3671. confirmButtonText: '确定'
  3672. })
  3673. return false
  3674. }
  3675. this.$confirm(`已确认单据信息无误,确定审核该 ` + this.FAISelections.length + ` 条记录`, '提示', {
  3676. confirmButtonText: '确定',
  3677. cancelButtonText: '取消',
  3678. type: 'warning'
  3679. }).then(() => {
  3680. this.submitData.submitList = this.FAISelections
  3681. saveFQCSubmitResult(this.submitData).then(({data}) => {
  3682. if (data && data.code ==0) {
  3683. this.getDataList()
  3684. this.FAISelections = []
  3685. this.$message({
  3686. message: '操作成功',
  3687. type: 'success',
  3688. duration: 1500,
  3689. onClose: () => {
  3690. }
  3691. })
  3692. } else {
  3693. this.$alert(data.msg, '错误', {
  3694. confirmButtonText: '确定'
  3695. })
  3696. }
  3697. })
  3698. })
  3699. },
  3700. // 取消审核
  3701. cancelApproval () {
  3702. let tempData1 = '' // 记录不是已完成状态的单号
  3703. if (this.FAISelections.length === 0) {
  3704. this.$message.warning('请勾选要取消审核的检验单!')
  3705. return
  3706. }
  3707. for (let i = 0; i < this.FAISelections.length; i++) {
  3708. if (this.FAISelections[i].state !== '已完成') {
  3709. tempData1 = tempData1 + this.FAISelections[i].inspectionNo + '、'
  3710. }
  3711. }
  3712. if (tempData1 !== '') {
  3713. tempData1 = tempData1.substring(0, tempData1.length - 1)
  3714. this.$message.warning('检验单号 ' + tempData1 + ' ,不是已完成状态!')
  3715. return
  3716. }
  3717. this.$confirm(`确定取消审核该 ` + this.FAISelections.length + ` 条记录`, '提示', {
  3718. confirmButtonText: '确定',
  3719. cancelButtonText: '取消',
  3720. type: 'warning'
  3721. }).then(() => {
  3722. this.submitData.submitList = this.FAISelections
  3723. cancelApproval2(this.submitData).then(({data}) => {
  3724. if (data && data.code === 0) {
  3725. this.getDataList()
  3726. this.FAISelections = []
  3727. this.$message({
  3728. message: '操作成功',
  3729. type: 'success',
  3730. duration: 1500,
  3731. onClose: () => {}
  3732. })
  3733. } else {
  3734. this.$alert(data.msg, '错误', {
  3735. confirmButtonText: '确定'
  3736. })
  3737. }
  3738. })
  3739. })
  3740. },
  3741. // 子明细方法
  3742. //表格的新增
  3743. rowClassName ({ row, rowIndex }) {
  3744. row.xh = rowIndex + 1
  3745. row.num = this.tableData.indexOf(row) + 1
  3746. },
  3747. //单选框选中数据
  3748. handleDetailSelectionChange (selection) {
  3749. this.checkedDetail = selection
  3750. },
  3751. //点击新增更多
  3752. handleAddBtn (td) {
  3753. checkFQCIsSubmit(td).then(({data}) => {
  3754. if (data.flag !== 1) {
  3755. let obj = {
  3756. subDetailValue: '',
  3757. samplingLocation: '',
  3758. samplingLocationB: '',
  3759. subDetailValueB: '',
  3760. subDetailValueC: '',
  3761. subDetailValueD: '',
  3762. subDetailValueE: '',
  3763. }
  3764. this.tableData.push(obj)
  3765. } else {
  3766. this.$alert("记录已提交!", '错误', {
  3767. confirmButtonText: '确定'
  3768. })
  3769. }
  3770. })
  3771. },
  3772. // 批量新增操作
  3773. batchHandleAdd (td) {
  3774. checkFQCIsSubmit(td).then(({data}) => {
  3775. if (data.flag !== 1) {
  3776. this.batchHandleAddModalFlag = true
  3777. } else {
  3778. this.$alert("记录已提交!", '错误', {
  3779. confirmButtonText: '确定'
  3780. })
  3781. }
  3782. })
  3783. },
  3784. // 批量新增行
  3785. batchHandleAddModal () {
  3786. for (let i = 0; i < this.batchAddData.samplingNumber; i++) {
  3787. let obj = {
  3788. samplingLocation: this.batchAddData.samplingLocation,
  3789. samplingLocationB: this.batchAddData.samplingLocationB,
  3790. subDetailValue: '',
  3791. subDetailValueB: '',
  3792. subDetailValueC: '',
  3793. subDetailValueD: '',
  3794. subDetailValueE: '',
  3795. }
  3796. this.tableData.push(obj)
  3797. }
  3798. this.batchHandleAddModalFlag = false
  3799. },
  3800. // 回车事件
  3801. nextFocus1 (index) {
  3802. let a1 = `${index + 1}` + `a`
  3803. this.$nextTick(() => {
  3804. this.$refs[a1].focus()
  3805. })
  3806. },
  3807. nextFocus2 (index) {
  3808. let a2 = `${index + 1}` + `b`
  3809. this.$nextTick(() => {
  3810. this.$refs[a2].focus()
  3811. })
  3812. },
  3813. nextFocus3 (index) {
  3814. let a3 = `${index + 1}` + `c`
  3815. this.$nextTick(() => {
  3816. this.$refs[a3].focus()
  3817. })
  3818. },
  3819. nextFocus4 (index) {
  3820. let a = `${index + 1}` + `d`
  3821. this.$nextTick(() => {
  3822. this.$refs[a].focus()
  3823. })
  3824. },
  3825. nextFocus5 (index) {
  3826. let a = `${index + 1}` + `e`
  3827. this.$nextTick(() => {
  3828. this.$refs[a].focus()
  3829. })
  3830. },
  3831. nextFocus6 (index) {
  3832. let a = `${index + 1}` + `f`
  3833. this.$nextTick(() => {
  3834. this.$refs[a].focus()
  3835. })
  3836. },
  3837. nextFocus7 (index) {
  3838. let a = `${index + 1}` + `g`
  3839. this.$nextTick(() => {
  3840. this.$refs[a].focus()
  3841. })
  3842. },
  3843. focusNextInput (index, type) {
  3844. let aaa = ''
  3845. if (this.detailList.length - 1 === index) {
  3846. aaa = `${type}0`
  3847. } else {
  3848. aaa = `${type}${index + 1}`
  3849. }
  3850. this.$nextTick(() => {
  3851. this.$refs[aaa].focus()
  3852. })
  3853. },
  3854. updateItemResult(row){
  3855. if (row.maxValue == null && row.minValue == null&&row.defaultValue==null) {
  3856. this.$message.success("tuichu")
  3857. return;
  3858. }
  3859. if (row.maxValue == null && row.minValue == null) {
  3860. if (row.numberValue!=row.defaultValue){
  3861. row.itemResult = 'N'
  3862. }
  3863. }else if (row.maxValue != null && row.minValue != null){
  3864. if (row.numberValue>row.maxValue ||row.numberValue<row.minValue){
  3865. row.itemResult = 'N'
  3866. }else {
  3867. row.itemResult = 'Y'
  3868. }
  3869. }else if(row.maxValue != null){
  3870. if ( row.numberValue>row.maxValue) {
  3871. row.itemResult = 'N'
  3872. }else {
  3873. row.itemResult = 'Y'
  3874. }
  3875. }else if(row.minValue != null){
  3876. if ( row.numberValue<row.minValue) {
  3877. row.itemResult = 'N'
  3878. }else {
  3879. row.itemResult = 'Y'
  3880. }
  3881. }
  3882. },
  3883. //删除
  3884. handleDeleteBtn (td) {
  3885. checkFQCIsSubmit(td).then(({data}) => {
  3886. if (data.flag !== 1) {
  3887. if (this.checkedDetail.length === 0) {
  3888. this.$alert("请先选择要删除的数据", "提示", {
  3889. confirmButtonText: "确定",
  3890. });
  3891. } else {
  3892. this.$confirm("请是否确认删除该子明细记录?", "提示", {
  3893. confirmButtonText: "确定",
  3894. cancelButtonText: "取消",
  3895. type: "warning",
  3896. callback: (action) => {
  3897. if (action === "confirm") {
  3898. let val = this.checkedDetail;
  3899. val.forEach((val, index) => {
  3900. this.tableData.splice(this.tableData.indexOf(val), 1)
  3901. if (this.templateTableData.length === 0) {
  3902. this.pageIndex2--
  3903. }
  3904. })
  3905. this.$message({
  3906. message: "删除成功!",
  3907. type: "success",
  3908. })
  3909. return
  3910. } else {
  3911. this.$message({
  3912. message: "已取消删除操作",
  3913. type: "warning",
  3914. })
  3915. return
  3916. }
  3917. },
  3918. })
  3919. }
  3920. } else {
  3921. this.$alert("记录已提交!", '错误', {
  3922. confirmButtonText: '确定'
  3923. })
  3924. }
  3925. })
  3926. },
  3927. // 新增子明细记录
  3928. saveSubDetailResult () {
  3929. for (let i = 0; i < this.tableData.length; i++) {
  3930. if (this.tableData[i].subDetailValue === '' || this.tableData[i].subDetailValue == null) {
  3931. this.$message.warning('序号' + (i+1) +'未填写实测值!')
  3932. return
  3933. }
  3934. }
  3935. this.subDetailData.subDetailValues = this.tableData
  3936. this.subDetailVisiable = true
  3937. saveFQCSubDetailed(this.subDetailData).then(({data}) => {
  3938. if (data && data.code === 0) {
  3939. if (data.count > 0) {
  3940. this.subDetailData.itemResult = 'N'
  3941. this.subDetailData.unqualifiedQuantity = data.count
  3942. }
  3943. if (this.subDetailData.subDetailValues.length > 0) {
  3944. this.subDetailData.subDetailRecordNum = 1
  3945. } else {
  3946. this.subDetailData.subDetailRecordNum = -1
  3947. this.subDetailData.unqualifiedQuantity = 0
  3948. this.subDetailData.itemResult = 'Y'
  3949. }
  3950. this.subDetailFlag = false
  3951. this.tableData = []
  3952. this.$message({
  3953. message: '操作成功',
  3954. type: 'success',
  3955. duration: 1500,
  3956. onClose: () => {}
  3957. })
  3958. } else {
  3959. this.$alert(data.msg, '错误', {
  3960. confirmButtonText: '确定'
  3961. })
  3962. }
  3963. }).finally(() => {
  3964. this.subDetailVisiable = false
  3965. })
  3966. },
  3967. // 检验结论改变事件
  3968. resultChange () {
  3969. if (this.detailData.inspectionResult === '不合格') {
  3970. this.detailData.passQty = 0
  3971. }
  3972. },
  3973. // 校验用户是否收藏
  3974. favoriteIsOk () {
  3975. let userFavorite = {
  3976. userId: this.$store.state.user.id,
  3977. languageCode: this.$i18n.locale
  3978. }
  3979. userFavoriteList(userFavorite).then(({data}) => {
  3980. for (let i = 0; i < data.list.length; i++) {
  3981. if (this.$route.meta.menuId === data.list[i].menuId) {
  3982. this.favorite = true
  3983. }
  3984. }
  3985. })
  3986. },
  3987. // 收藏 OR 取消收藏
  3988. favoriteFunction () {
  3989. let userFavorite = {
  3990. userId: this.$store.state.user.id,
  3991. functionId: this.$route.meta.menuId,
  3992. }
  3993. if (this.favorite) {
  3994. removeUserFavorite(userFavorite).then(({data}) => {
  3995. this.$message.success(data.msg)
  3996. this.favorite = false
  3997. })
  3998. } else {
  3999. // 收藏
  4000. saveUserFavorite(userFavorite).then(({data}) => {
  4001. this.$message.success(data.msg)
  4002. this.favorite = true
  4003. })
  4004. }
  4005. },
  4006. //导出excel
  4007. async createExportData () {
  4008. this.searchData.limit = -1
  4009. this.searchData.page = 1
  4010. await qcFQCInspectionSearch(this.searchData).then(({data}) => {
  4011. this.exportList= data.page.list
  4012. })
  4013. return this.exportList
  4014. },
  4015. startDownload() {},
  4016. finishDownload() {},
  4017. fields () {
  4018. let json = "{"
  4019. this.columnList1.forEach((item, index) => {
  4020. if (index === this.columnList1.length - 1) {
  4021. json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\""
  4022. } else {
  4023. json += "\"" + item.columnLabel + "\"" + ":" + "\"" + item.columnProp + "\"" + ","
  4024. }
  4025. })
  4026. json += "}"
  4027. let s = eval("(" + json + ")")
  4028. return s
  4029. },
  4030. // 动态列开始 获取 用户保存的 格式列
  4031. async getTableUserColumn (tableId, columnId) {
  4032. let queryTableUser = {
  4033. userId: this.$store.state.user.name,
  4034. functionId: this.$route.meta.menuId,
  4035. tableId: tableId,
  4036. status: true,
  4037. languageCode: this.$i18n.locale
  4038. }
  4039. await getTableUserListLanguage(queryTableUser).then(({data}) => {
  4040. if (data.rows.length > 0) {
  4041. //this.columnList1 = []
  4042. switch (columnId) {
  4043. case 1:
  4044. this.columnList1 = data.rows
  4045. break;
  4046. case 2:
  4047. this.detailColumnList = data.rows
  4048. break;
  4049. case 3:
  4050. this.seqDetailColumnList = data.rows
  4051. break;
  4052. // case 4:
  4053. // this.columnList3 = data.rows
  4054. // break;
  4055. }
  4056. } else {
  4057. this.getColumnList(tableId, columnId)
  4058. }
  4059. })
  4060. },
  4061. // 获取 tableDefault 列
  4062. async getColumnList (tableId, columnId) {
  4063. let queryTable = {
  4064. functionId: this.$route.meta.menuId,
  4065. tableId: tableId,
  4066. languageCode: this.$i18n.locale
  4067. }
  4068. await getTableDefaultListLanguage(queryTable).then(({data}) => {
  4069. if (!data.rows.length == 0) {
  4070. switch (columnId) {
  4071. case 1:
  4072. this.columnList1 = data.rows
  4073. break;
  4074. case 2:
  4075. this.detailColumnList = data.rows
  4076. break;
  4077. case 3:
  4078. this.seqDetailColumnList = data.rows
  4079. break;
  4080. // case 4:
  4081. // this.columnList3 = data.rows
  4082. // break;
  4083. }
  4084. } else {
  4085. // this.showDefault = true.
  4086. }
  4087. })
  4088. },
  4089. /**
  4090. * 明细导入后将返回值回传给父组件
  4091. * @param val
  4092. */
  4093. changeMyString (val) {
  4094. for (let i = 0; i < this.detailList.length; i++) {
  4095. if (val[this.detailList[i].itemNo] !== undefined) {
  4096. this.detailList[i].unqualifiedQuantity = val[this.detailList[i].itemNo]
  4097. if (val[this.detailList[i].itemNo] != null) {
  4098. this.detailList[i].subDetailRecordNum = 1
  4099. }
  4100. if (val[this.detailList[i].itemNo] > 0) {
  4101. this.detailList[i].itemResult = 'N'
  4102. }
  4103. }
  4104. }
  4105. },
  4106. searchSeqInfo () {
  4107. let tempData = {
  4108. // 取modalData.bu中index为0的字符作为site 例:2_01-Label 取2
  4109. // bu: this.modalData.bu,
  4110. site: this.modalData.site,
  4111. buNo: this.modalData.buNo,
  4112. seqNo: this.seqDetailData.seqNo,
  4113. orderNo: this.seqDetailData.orderNo,
  4114. sku: this.seqDetailData.sku,
  4115. partDesc: this.seqDetailData.partDesc,
  4116. partNo: this.seqDetailData.partNo,
  4117. operationDesc: this.seqDetailData.operationDesc,
  4118. status: this.seqDetailData.status
  4119. }
  4120. if (!this.seqDetailData.seqNo && !this.seqDetailData.orderNo && !this.seqDetailData.sku && !this.seqDetailData.partNo && !this.seqDetailData.partDesc && !this.seqDetailData.operationDesc){
  4121. this.seqInfoList = []
  4122. } else {
  4123. searchSeqInfo(tempData).then(({data}) => {
  4124. if (data && data.code === 0) {
  4125. this.seqInfoList = data.rows
  4126. } else {
  4127. this.$alert(data.msg, '错误', {
  4128. confirmButtonText: '确定'
  4129. })
  4130. }
  4131. })
  4132. }
  4133. },
  4134. closeDialog () {
  4135. this.seqDetailData = {
  4136. seqNo : '',
  4137. orderNo: '',
  4138. sku: '',
  4139. partNo: '',
  4140. partDesc:'',
  4141. operationDesc: '',
  4142. status: 'N'
  4143. }
  4144. this.seqInfoList = []
  4145. },
  4146. //获取按钮的权限数据
  4147. getButtonAuthData () {
  4148. let searchFlag = this.isAuth(this.menuId + ":search")
  4149. let checkFlag = this.isAuth(this.menuId + ":check")
  4150. let saveFlag = this.isAuth(this.menuId + ":save")
  4151. let deleteFlag = this.isAuth(this.menuId + ":delete")
  4152. let detailFlag = this.isAuth(this.menuId + ":detail")
  4153. let fileFlag = this.isAuth(this.menuId + ":file")
  4154. let cancelCheckFlag = this.isAuth(this.menuId + ":cancelCheck")
  4155. let overLoadFlag = this.isAuth(this.menuId + ":overLoad")
  4156. //处理页面的权限数据
  4157. this.authSearch = !searchFlag
  4158. this.authCheck = !checkFlag
  4159. this.authSave = !saveFlag
  4160. this.authDelete = !deleteFlag
  4161. this.authOverLoad = !overLoadFlag
  4162. this.authDetail = !detailFlag
  4163. this.authFile = !fileFlag
  4164. this.authCancelCheck = !cancelCheckFlag
  4165. },
  4166. }
  4167. }
  4168. </script>
  4169. <style scoped>
  4170. /deep/ .redElSelect .el-input--suffix .el-input__inner{
  4171. color: red;
  4172. font-weight: bold;
  4173. }
  4174. /deep/ .greenElSelect .el-input--suffix .el-input__inner{
  4175. color: rgb(103,194,58);
  4176. font-weight: bold;
  4177. }
  4178. .el-table /deep/ .cell{
  4179. height: auto;
  4180. line-height: 1.5;
  4181. }
  4182. </style>