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

4310 lines
163 KiB

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