plm前端
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.

4425 lines
175 KiB

3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
3 years ago
​
​
3 years ago
​
3 years ago
​
3 years ago
3 years ago
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
3 years ago
​
​
3 years ago
3 years ago
​
​
3 years ago
3 years ago
​
​
​
​
​
​
​
​
​
3 years ago
3 years ago
​
​
3 years ago
​
​
​
​
3 years ago
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
3 years ago
​
3 years ago
​
​
​
3 years ago
​
3 years ago
​
3 years ago
​
​
3 years ago
3 years ago
​
​
3 years ago
3 years ago
​
3 years ago
​
3 years ago
​
3 years ago
​
​
3 years ago
3 years ago
​
​
3 years ago
3 years ago
​
3 years ago
​
3 years ago
​
3 years ago
​
3 years ago
​
3 years ago
​
3 years ago
​
​
3 years ago
3 years ago
​
​
3 years ago
3 years ago
​
​
​
3 years ago
​
3 years ago
​
​
​
3 years ago
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
3 years ago
​
3 years ago
​
3 years ago
​
3 years ago
​
​
​
3 years ago
​
3 years ago
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
3 years ago
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
3 years ago
​
​
​
3 years ago
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
3 years ago
​
3 years ago
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
3 years ago
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
3 years ago
​
3 years ago
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
3 years ago
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
3 years ago
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
3 years ago
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
3 years ago
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
3 years ago
​
​
3 years ago
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
3 years ago
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
3 years ago
​
​
​
​
3 years ago
​
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
3 years ago
​
​
​
​
3 years ago
​
​
​
​
​
​
​
3 years ago
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years ago
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
​
​
3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
3 years 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: 130px">
  7. <el-option
  8. v-for = "i in buList"
  9. :key = "i.buNo"
  10. :label = "i.buNo"
  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.changeNo" clearable style="width: 120px"></el-input>
  17. </el-form-item>
  18. <el-form-item :label="' '">
  19. <el-button v-if="authSearch" @click="getDataList">查询</el-button>
  20. <download-excel
  21. :fields="fields()"
  22. :data="exportData"
  23. type="xls"
  24. :name="exportName"
  25. :header="exportHeader"
  26. :footer="exportFooter"
  27. :fetch="createExportData"
  28. :before-generate="startDownload"
  29. :before-finish="finishDownload"
  30. worksheet="导出信息"
  31. class="el-button el-button--primary el-button--medium">
  32. {{ "导出" }}
  33. </download-excel>
  34. </el-form-item>
  35. </el-form>
  36. <!-- 变更记录列表 -->
  37. <el-table
  38. :height="height"
  39. :data="dataList"
  40. border
  41. :row-style="rowStyle"
  42. ref="changeTable"
  43. @row-click="changeClickRow"
  44. @current-change="currentChange"
  45. style="width: 100%;">
  46. <el-table-column
  47. v-for="(item,index) in columnList" :key="index"
  48. :sortable="item.columnSortable"
  49. :prop="item.columnProp"
  50. :header-align="item.headerAlign"
  51. :show-overflow-tooltip="item.showOverflowTooltip"
  52. :align="item.align"
  53. :fixed="item.fixed === ''?false:item.fixed"
  54. :min-width="item.columnWidth"
  55. :label="item.columnLabel">
  56. <template slot-scope="scope">
  57. <span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
  58. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  59. </template>
  60. </el-table-column>
  61. <el-table-column
  62. fixed="right"
  63. header-align="center"
  64. align="center"
  65. width="100"
  66. label="操作">
  67. <template slot-scope="scope">
  68. <el-link v-if="authUpdate && scope.row.changeStatus !== '已完成'" style="cursor: pointer" @click="updateModal(scope.row)">编辑</el-link>
  69. <el-link v-if="authIssue && scope.row.changeStatus === '草稿'" style="cursor: pointer" @click="issueModal(scope.row)">下达</el-link>
  70. </template>
  71. </el-table-column>
  72. </el-table>
  73. <!-- 分页插件 -->
  74. <el-pagination style="margin-top: 0px"
  75. @size-change="sizeChangeHandle"
  76. @current-change="currentChangeHandle"
  77. :current-page="pageIndex"
  78. :page-sizes="[20, 50, 100, 200, 500]"
  79. :page-size="pageSize"
  80. :total="totalPage"
  81. layout="total, sizes, prev, pager, next, jumper">
  82. </el-pagination>
  83. <!-- 变更单模态框 -->
  84. <el-dialog :title="changeTitle" :close-on-click-modal="false" top="10vh" v-drag :visible.sync="modalFlag" width="1060px" :showClose="false">
  85. <el-tabs tab-position="left" type="border-card" v-model="activeName" @tab-click="refreshChangeTab" style="width: 100%;height: 720px;">
  86. <el-tab-pane label="基本信息" name="basicInformation">
  87. <div style="height: 675px">
  88. <el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: -5px;">
  89. <el-form-item prop="applicantId" :rules="rules.applicantId">
  90. <span v-if="changeRequestFlag('applicantId') === 'N'" slot="label">申请人</span>
  91. <span v-else style="cursor: pointer" slot="label" @click="getBaseList(103, 1)"><a herf="#">申请人</a></span>
  92. <el-input v-model="modalData.applicantId" @blur="applicantBlur(103)" :disabled="changeRequestFlag('applicantId') === 'N'" style="width: 120px"></el-input>
  93. <el-input v-model="modalData.applicantName" disabled style="width: 293px"></el-input>
  94. </el-form-item>
  95. <el-form-item label="申请部门">
  96. <el-input v-model="modalData.applicationDepartmentId" disabled style="width: 120px"></el-input>
  97. <el-input v-model="modalData.applicationDepartmentName" disabled style="width: 293px"></el-input>
  98. </el-form-item>
  99. </el-form>
  100. <el-form :inline="true" label-position="top" :model="modalData" :rules="rules">
  101. <el-form-item label="申请日期" prop="applyDate" :rules="rules.applyDate">
  102. <el-date-picker
  103. :disabled="changeRequestFlag('applyDate') === 'N'"
  104. style="width: 205px"
  105. v-model="modalData.applyDate"
  106. type="date"
  107. value-format="yyyy-MM-dd"
  108. placeholder="请选择日期"
  109. :editable=false>
  110. </el-date-picker>
  111. </el-form-item>
  112. <!-- <el-form-item label="ECN变更影响" prop="changeImpact" :rules="rules.changeImpact">-->
  113. <!-- <dict-data-select v-model="modalData.changeImpact" :disabled="changeRequestFlag('changeImpact') === 'N'" style="width: 205px" dict-type="change_change_Impact"></dict-data-select>-->
  114. <!-- </el-form-item>-->
  115. <el-form-item label="变更影响描述" prop="changeImpactDesc">
  116. <el-input v-model="modalData.changeImpactDesc" :disabled="changeRequestFlag('changeImpactDesc') === 'N'" style="width: 629px"></el-input>
  117. </el-form-item>
  118. </el-form>
  119. <el-form :inline="true" label-position="top" :model="modalData" :rules="rules">
  120. <el-form-item label="ECN阶段" prop="ecnStage" :rules="rules.ecnStage">
  121. <dict-data-select v-model="modalData.ecnStage" :disabled="changeRequestFlag('ecnStage') === 'N'" style="width: 95px" dict-type="change_ecn_stage"></dict-data-select>
  122. </el-form-item>
  123. <el-form-item label="变更类别" prop="changeType" :rules="rules.changeType">
  124. <dict-data-select v-model="modalData.changeType" :disabled="changeRequestFlag('changeType') === 'N'" style="width: 96px" dict-type="change_change_type"></dict-data-select>
  125. </el-form-item>
  126. <el-form-item label="ECN种类" prop="ecnType" :rules="rules.ecnType">
  127. <dict-data-select v-model="modalData.ecnType" :disabled="changeRequestFlag('ecnType') === 'N'" style="width: 100px" dict-type="change_ecn_type"></dict-data-select>
  128. </el-form-item>
  129. <el-form-item label=" ">
  130. <el-button :disabled="changeRequestFlag('ecnType') === 'N'" type="primary" @click="chooseEcnTypeModal" style="width: 84px">ECN种类</el-button>
  131. </el-form-item>
  132. <el-form-item prop="tpEngineerId" :rules="rules.tpEngineerId">
  133. <span v-if="changeRequestFlag('tpEngineerId') === 'N'" slot="label">审批人员</span>
  134. <span v-else style="cursor: pointer" slot="label" @click="getBaseList(2005)"><a herf="#">审批人员</a></span>
  135. <el-input v-model="modalData.tpEngineerId" @blur="tpEngineerBlur(2005)" :disabled="changeRequestFlag('tpEngineerId') === 'N'" style="width: 120px"></el-input>
  136. <el-input v-model="modalData.tpEngineerName" disabled style="width: 293px"></el-input>
  137. </el-form-item>
  138. </el-form>
  139. <el-form :inline="true" label-position="top" :model="modalData" :rules="rules">
  140. <el-form-item label="变更生效日期" prop="changePhaseInDate" :rules="rules.changePhaseInDate">
  141. <el-date-picker
  142. :disabled="changeRequestFlag('changePhaseInDate') === 'N'"
  143. style="width: 205px"
  144. v-model="modalData.changePhaseInDate"
  145. type="date"
  146. value-format="yyyy-MM-dd"
  147. placeholder="请选择日期"
  148. :editable=false>
  149. </el-date-picker>
  150. </el-form-item>
  151. <!-- <el-form-item label="印刷方式" prop="printing" :rules="rules.printing">-->
  152. <!-- <dict-data-select v-model="modalData.printing" style="width: 205px" dict-type="change_printing"></dict-data-select>-->
  153. <!-- </el-form-item>-->
  154. <el-form-item label="是否DF产品" prop="dfIsProduct" :rules="rules.dfIsProduct">
  155. <dict-data-select v-model="modalData.dfIsProduct" :disabled="changeRequestFlag('dfIsProduct') === 'N'" style="width: 198px" dict-type="change_df_is_product"></dict-data-select>
  156. </el-form-item>
  157. <el-form-item label=" " :required="modalData.dfIsProduct === 'I'" prop="industrialEngineerId" :show-message="false">
  158. <span v-if="changeRequestFlag('industrialEngineerId') === 'N'" slot="label">I/E</span>
  159. <span v-else style="cursor: pointer" slot="label" @click="getBaseList(2006)"><a herf="#">I/E</a></span>
  160. <el-input v-model="modalData.industrialEngineerId" @blur="industrialEngineerBlur(2006)" :disabled="changeRequestFlag('industrialEngineerId') === 'N'" style="width: 120px"></el-input>
  161. <el-input v-model="modalData.industrialEngineerName" disabled style="width: 293px"></el-input>
  162. </el-form-item>
  163. <!-- <el-form-item label="制造成本是否变更" prop="manufacturingCostIsChange" :rules="rules.manufacturingCostIsChange">-->
  164. <!-- <dict-data-select v-model="modalData.manufacturingCostIsChange" style="width: 205px" dict-type="change_manufacturing_cost_is_change"></dict-data-select>-->
  165. <!-- </el-form-item>-->
  166. </el-form>
  167. <el-form :inline="true" label-position="top" :model="modalData">
  168. <el-form-item label=" ">
  169. <span v-if="changeRequestFlag('cqcOperatorId') === 'N'" slot="label">CQC</span>
  170. <span v-else style="cursor: pointer" slot="label" @click="getBaseList(2007)"><a herf="#">CQC</a></span>
  171. <el-input v-model="modalData.cqcOperatorId" @blur="cqcOperatorBlur(2007)" :disabled="changeRequestFlag('cqcOperatorId') === 'N'" style="width: 120px"></el-input>
  172. <el-input v-model="modalData.cqcOperatorName" disabled style="width: 293px"></el-input>
  173. </el-form-item>
  174. <el-form-item label=" ">
  175. <span v-if="changeRequestFlag('faiOperatorId') === 'N'" slot="label">FAI</span>
  176. <span v-else style="cursor: pointer" slot="label" @click="getBaseList(2008)"><a herf="#">FAI</a></span>
  177. <el-input v-model="modalData.faiOperatorId" @blur="faiOperatorBlur(2008)" :disabled="changeRequestFlag('faiOperatorId') === 'N'" style="width: 120px"></el-input>
  178. <el-input v-model="modalData.faiOperatorName" disabled style="width: 293px"></el-input>
  179. </el-form-item>
  180. </el-form>
  181. <el-form :inline="true" label-position="top" :model="modalData" :rules="rules">
  182. <el-form-item label="变更要求描述" prop="changeRequestDesc" :rules="rules.changeRequestDesc">
  183. <el-input type="textarea" v-model="modalData.changeRequestDesc" :disabled="changeRequestFlag('changeRequestDesc') === 'N'" :rows="3" resize='none' show-word-limit style="width: 636px;height: 30px"></el-input>
  184. </el-form-item>
  185. <!-- <el-form-item label="是否重新报价" prop="isReQuote" :rules="rules.isReQuote">-->
  186. <!-- <dict-data-select v-model="modalData.isReQuote" style="width: 205px" dict-type="change_is_re_quote"></dict-data-select>-->
  187. <!-- </el-form-item>-->
  188. <el-form-item label="印刷方式" prop="printing" :rules="rules.printing">
  189. <dict-data-select v-model="modalData.printing" :disabled="changeRequestFlag('printing') === 'N'" style="width: 198px" dict-type="change_printing"></dict-data-select>
  190. </el-form-item>
  191. </el-form>
  192. <!-- <el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-top: 50px">-->
  193. <!-- <el-form-item label="原产品是否UL认证要求" prop="ulCertificationRequirements" :rules="rules.ulCertificationRequirements">-->
  194. <!-- <dict-data-select v-model="modalData.ulCertificationRequirements" style="width: 423px" dict-type="change_ul_certification_requirements"></dict-data-select>-->
  195. <!-- </el-form-item>-->
  196. <!-- <el-form-item label="如果有,变更后能否继续满足此需求" prop="ulContinueToMeetDemand" :rules="rules.ulContinueToMeetDemand">-->
  197. <!-- <dict-data-select v-model="modalData.ulContinueToMeetDemand" style="width: 423px" dict-type="change_ul_continue_to_meet_demand"></dict-data-select>-->
  198. <!-- </el-form-item>-->
  199. <!-- </el-form>-->
  200. <!-- <el-form :inline="true" label-position="top" :model="modalData" :rules="rules">-->
  201. <!-- <el-form-item label="原产品是否GP要求" prop="gpCertificationRequirements" :rules="rules.gpCertificationRequirements">-->
  202. <!-- <dict-data-select v-model="modalData.gpCertificationRequirements" style="width: 423px" dict-type="change_gp_certification_requirements"></dict-data-select>-->
  203. <!-- </el-form-item>-->
  204. <!-- <el-form-item label="如果有,变更后能否继续满足此需求" prop="gpContinueToMeetDemand" :rules="rules.gpContinueToMeetDemand">-->
  205. <!-- <dict-data-select v-model="modalData.gpContinueToMeetDemand" style="width: 423px" dict-type="change_gp_continue_to_meet_demand"></dict-data-select>-->
  206. <!-- </el-form-item>-->
  207. <!-- </el-form>-->
  208. <el-form :inline="true" label-position="top" style="margin-top: 50px">
  209. <el-button type="primary" @click="addChangeDetail">新增</el-button>
  210. <div class="rq">
  211. <el-table
  212. :data="chooseDataList"
  213. height="320px"
  214. border
  215. style="width:100%">
  216. <el-table-column
  217. v-for="(item,index) in columnChooseDataList" :key="index"
  218. :sortable="item.columnSortable"
  219. :prop="item.columnProp"
  220. :header-align="item.headerAlign"
  221. :show-overflow-tooltip="item.showOverflowTooltip"
  222. :align="item.align"
  223. :fixed="item.fixed == ''?false:item.fixed"
  224. :min-width="item.columnWidth"
  225. :label="item.columnLabel">
  226. <template slot-scope="scope">
  227. <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
  228. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  229. </template>
  230. </el-table-column>
  231. <el-table-column
  232. prop=""
  233. header-align="center"
  234. align="center"
  235. min-width="170"
  236. label="新物料编码">
  237. <template slot-scope="scope">
  238. <el-input :disabled="changeRequestDetailFlag('newPartNo') === 'N'" @input="(val)=>partInput(scope.row, val)" :ref="`newPartNo${scope.$index}`" v-model="scope.row.newPartNo" @keyup.enter.native="focusNextInput(scope.$index, 'newPartNo')" style="width:77%"></el-input>
  239. <el-button :disabled="changeRequestDetailFlag('newPartNo') === 'N'" type="primary" @click="choosePartNo(scope.row)" style="width:18%;padding: 3px 7px">·&nbsp;·&nbsp;·</el-button>
  240. </template>
  241. </el-table-column>
  242. <el-table-column
  243. prop=""
  244. header-align="center"
  245. align="center"
  246. min-width="90"
  247. label="新图纸编码">
  248. <template slot-scope="scope">
  249. <el-input :disabled="changeRequestDetailFlag('newDrawingNo') === 'N'" :ref="`newDrawingNo${scope.$index}`" v-model="scope.row.newDrawingNo" @keyup.enter.native="focusNextInput(scope.$index, 'newDrawingNo')" style="width:98%"></el-input>
  250. </template>
  251. </el-table-column>
  252. <el-table-column
  253. prop=""
  254. header-align="center"
  255. align="center"
  256. min-width="90"
  257. label="新图稿编码">
  258. <template slot-scope="scope">
  259. <el-input :disabled="changeRequestDetailFlag('newDraftNo') === 'N'" :ref="`newDraftNo${scope.$index}`" v-model="scope.row.newDraftNo" @keyup.enter.native="focusNextInput(scope.$index, 'newDraftNo')" style="width:98%"></el-input>
  260. </template>
  261. </el-table-column>
  262. <el-table-column
  263. fixed="right"
  264. header-align="center"
  265. align="center"
  266. width="60"
  267. label="操作">
  268. <template slot-scope="scope">
  269. <el-link style="cursor: pointer" @click="deleteChooseDataModal(scope.row)">删除</el-link>
  270. </template>
  271. </el-table-column>
  272. </el-table>
  273. </div>
  274. </el-form>
  275. </div>
  276. <el-footer style="height:25px;text-align:center">
  277. <el-button type="primary" :loading="saveLoading" @click="saveData">保存</el-button>
  278. <el-button type="primary" @click="modalFlag = false">关闭</el-button>
  279. <el-button v-if="authSubmit && modalData.changeStatus === '审批中'" type="primary" :loading="submitLoading" @click="agreeSubmit">同意</el-button>
  280. <el-button v-if="authReject && modalData.changeStatus === '审批中' && modalData.isReject === 'Y'" type="primary" :loading="submitLoading" @click="submitDataModal">驳回</el-button>
  281. </el-footer>
  282. </el-tab-pane>
  283. <el-tab-pane label="库存成本影响" name="inventoryCostImpact">
  284. <div style="height: 675px">
  285. <el-form :inline="true" label-position="top" :model="costImpactData" style="margin-top: -5px;">
  286. <el-form-item style="margin-top: 20px;width: 155px">
  287. <el-checkbox :disabled="changeCostImpactFlag('productionProductFlag') === 'N'" v-model="costImpactData.productionProductFlag" true-label="Y">在生产品</el-checkbox>
  288. </el-form-item>
  289. <el-form-item label="数量">
  290. <el-input class="inlineNumber numInput" v-model="costImpactData.productionProductNumber" :disabled="costImpactData.productionProductFlag !== 'Y' || changeCostImpactFlag('productionProductNumber') === 'N'" type="number" style="width: 100px"></el-input>
  291. </el-form-item>
  292. <el-form-item label="处理意见">
  293. <!-- <dict-data-select v-model="costImpactData.productionProductOpinions" :disabled="costImpactData.productionProductFlag !== 'Y' || changeCostImpactFlag('productionProductOpinions') === 'N'" style="width: 200px" dict-type="change_production_product_opinions"></dict-data-select>-->
  294. <el-input v-model="costImpactData.productionProductOpinions" :disabled="costImpactData.productionProductFlag !== 'Y' || changeCostImpactFlag('productionProductOpinions') === 'N'" style="width: 200px"></el-input>
  295. </el-form-item>
  296. <el-form-item label="报废金额">
  297. <el-input class="inlineNumber numInput" v-model="costImpactData.productionProductScrapAmount" :disabled="costImpactData.productionProductFlag !== 'Y' || changeCostImpactFlag('productionProductScrapAmount') === 'N'" @input="handleInput(costImpactData.productionProductScrapAmount,1)" type="number" style="width: 140px"></el-input>
  298. </el-form-item>
  299. <!-- <el-form-item label=" " style="margin-left: -10px">-->
  300. <!-- <el-input v-model="costImpactData.productionProductRemark" :disabled="costImpactData.productionProductFlag !== 'Y'" style="width: 300px"></el-input>-->
  301. <!-- </el-form-item>-->
  302. <el-form-item>
  303. <span v-if="costImpactData.productionProductFlag !== 'Y' || changeCostImpactFlag('productionProductExecutor') === 'N'" slot="label">执行人</span>
  304. <span v-else style="cursor: pointer" slot="label" @click="getBaseList(103, 3)"><a herf="#">执行人</a></span>
  305. <el-input v-model="costImpactData.productionProductExecutorName" readonly :disabled="costImpactData.productionProductFlag !== 'Y' || changeCostImpactFlag('productionProductExecutor') === 'N'" style="width: 130px"></el-input>
  306. </el-form-item>
  307. </el-form>
  308. <el-form :inline="true" label-position="top" :model="costImpactData" style="margin-top: 10px;">
  309. <el-form-item style="margin-top: 20px;width: 155px">
  310. <el-checkbox :disabled="changeCostImpactFlag('inventoryProductFlag') === 'N'" v-model="costImpactData.inventoryProductFlag" true-label="Y">成品库存</el-checkbox>
  311. </el-form-item>
  312. <el-form-item label="数量">
  313. <el-input class="inlineNumber numInput" v-model="costImpactData.inventoryProductNumber" :disabled="costImpactData.inventoryProductFlag !== 'Y' || changeCostImpactFlag('inventoryProductNumber') === 'N'" type="number" style="width: 100px"></el-input>
  314. </el-form-item>
  315. <el-form-item label="处理意见">
  316. <!-- <dict-data-select v-model="costImpactData.inventoryProductOpinions" :disabled="costImpactData.inventoryProductFlag !== 'Y' || changeCostImpactFlag('inventoryProductOpinions') === 'N'" style="width: 200px" dict-type="change_inventory_product_opinions"></dict-data-select>-->
  317. <el-input v-model="costImpactData.inventoryProductOpinions" :disabled="costImpactData.inventoryProductFlag !== 'Y' || changeCostImpactFlag('inventoryProductOpinions') === 'N'" style="width: 200px"></el-input>
  318. </el-form-item>
  319. <el-form-item label="报废金额">
  320. <el-input class="inlineNumber numInput" v-model="costImpactData.inventoryProductScrapAmount" :disabled="costImpactData.inventoryProductFlag !== 'Y' || changeCostImpactFlag('inventoryProductScrapAmount') === 'N'" @input="handleInput(costImpactData.inventoryProductScrapAmount,2)" type="number" style="width: 140px"></el-input>
  321. </el-form-item>
  322. <!-- <el-form-item label=" " style="margin-left: -10px">-->
  323. <!-- <el-input v-model="costImpactData.inventoryProductRemark" :disabled="costImpactData.inventoryProductFlag !== 'Y'" style="width: 300px"></el-input>-->
  324. <!-- </el-form-item>-->
  325. <el-form-item>
  326. <span v-if="costImpactData.inventoryProductFlag !== 'Y' || changeCostImpactFlag('inventoryProductExecutor') === 'N'" slot="label">执行人</span>
  327. <span v-else style="cursor: pointer" slot="label" @click="getBaseList(103, 4)"><a herf="#">执行人</a></span>
  328. <el-input v-model="costImpactData.inventoryProductExecutorName" readonly :disabled="costImpactData.inventoryProductFlag !== 'Y' || changeCostImpactFlag('inventoryProductExecutor') === 'N'" style="width: 130px"></el-input>
  329. </el-form-item>
  330. </el-form>
  331. <el-form :inline="true" label-position="top" :model="costImpactData" style="margin-top: 10px;">
  332. <el-form-item style="margin-top: 20px;width: 155px">
  333. <el-checkbox :disabled="changeCostImpactFlag('newOrderFlag') === 'N'" v-model="costImpactData.newOrderFlag" true-label="Y">新订单</el-checkbox>
  334. </el-form-item>
  335. <el-form-item label="数量">
  336. <el-input class="inlineNumber numInput" v-model="costImpactData.newOrderNumber" :disabled="costImpactData.newOrderFlag !== 'Y' || changeCostImpactFlag('newOrderNumber') === 'N'" type="number" style="width: 100px"></el-input>
  337. </el-form-item>
  338. </el-form>
  339. <el-form :inline="true" label-position="top" :model="costImpactData" style="margin-top: 10px;">
  340. <el-form-item style="margin-top: 20px;width: 155px">
  341. <el-checkbox :disabled="changeCostImpactFlag('affectedFlag') === 'N'" v-model="costImpactData.affectedFlag" true-label="Y">影响的原材料及其库存量</el-checkbox>
  342. </el-form-item>
  343. <el-form-item label="数量">
  344. <el-input class="inlineNumber numInput" v-model="costImpactData.affectedNumber" :disabled="costImpactData.affectedFlag !== 'Y' || changeCostImpactFlag('affectedNumber') === 'N'" type="number" style="width: 100px"></el-input>
  345. </el-form-item>
  346. <el-form-item label="处理意见">
  347. <!-- <dict-data-select v-model="costImpactData.affectedOpinions" :disabled="costImpactData.affectedFlag !== 'Y' || changeCostImpactFlag('affectedOpinions') === 'N'" style="width: 200px" dict-type="change_affected_opinions"></dict-data-select>-->
  348. <el-input v-model="costImpactData.affectedOpinions" :disabled="costImpactData.affectedFlag !== 'Y' || changeCostImpactFlag('affectedOpinions') === 'N'" style="width: 200px"></el-input>
  349. </el-form-item>
  350. <el-form-item label="报废金额">
  351. <el-input class="inlineNumber numInput" v-model="costImpactData.affectedScrapAmount" :disabled="costImpactData.affectedFlag !== 'Y' || changeCostImpactFlag('affectedScrapAmount') === 'N'" @input="handleInput(costImpactData.affectedScrapAmount,3)" type="number" style="width: 140px"></el-input>
  352. </el-form-item>
  353. <!-- <el-form-item label=" " style="margin-left: -10px">-->
  354. <!-- <el-input v-model="costImpactData.affectedRemark" :disabled="costImpactData.affectedFlag !== 'Y'" style="width: 300px"></el-input>-->
  355. <!-- </el-form-item>-->
  356. <el-form-item>
  357. <span v-if="costImpactData.affectedFlag !== 'Y' || changeCostImpactFlag('affectedExecutor') === 'N'" slot="label">执行人</span>
  358. <span v-else style="cursor: pointer" slot="label" @click="getBaseList(103, 5)"><a herf="#">执行人</a></span>
  359. <el-input v-model="costImpactData.affectedExecutorName" readonly :disabled="costImpactData.affectedFlag !== 'Y' || changeCostImpactFlag('affectedExecutor') === 'N'" style="width: 130px"></el-input>
  360. </el-form-item>
  361. </el-form>
  362. <el-form :inline="true" label-position="top" :model="costImpactData" style="margin-top: 10px;">
  363. <el-form-item label="ECN变更总成本" style="width: 155px">
  364. <el-input class="inlineNumber numInput" v-model="totalCost" type="number" readonly style="width: 125px"></el-input>
  365. </el-form-item>
  366. <el-form-item label="备注">
  367. <el-input v-model="costImpactData.remark" :disabled="changeCostImpactFlag('remark') === 'N'" style="width: 612px"></el-input>
  368. </el-form-item>
  369. </el-form>
  370. </div>
  371. <el-footer style="height:25px;text-align:center">
  372. <el-button type="primary" :loading="saveLoading" @click="saveData">保存</el-button>
  373. <el-button type="primary" @click="modalFlag = false">关闭</el-button>
  374. <el-button v-if="authSubmit && modalData.changeStatus === '审批中'" type="primary" :loading="submitLoading" @click="agreeSubmit">同意</el-button>
  375. <el-button v-if="authReject && modalData.changeStatus === '审批中' && modalData.isReject === 'Y'" type="primary" :loading="submitLoading" @click="submitDataModal">驳回</el-button>
  376. </el-footer>
  377. </el-tab-pane>
  378. <el-tab-pane label="TP&执行信息" name="actionInformation">
  379. <div style="height: 670px">
  380. <el-button type="primary" @click="chooseFeasibilityAssessmentModel">选择评估信息</el-button>
  381. <div class="rq">
  382. <el-table
  383. :data="chooseItemList2"
  384. height="230px"
  385. border
  386. style="width: 100%">
  387. <el-table-column
  388. v-for="(item,index) in columnChooseItemList2" :key="index"
  389. :sortable="item.columnSortable"
  390. :prop="item.columnProp"
  391. :header-align="item.headerAlign"
  392. :show-overflow-tooltip="item.showOverflowTooltip"
  393. :align="item.align"
  394. :fixed="item.fixed == ''?false:item.fixed"
  395. :min-width="item.columnWidth"
  396. :label="item.columnLabel">
  397. <template slot-scope="scope">
  398. <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
  399. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  400. </template>
  401. </el-table-column>
  402. <el-table-column
  403. header-align="center"
  404. align="center"
  405. min-width="60"
  406. label="可选值">
  407. <template slot-scope="scope">
  408. <el-select :disabled="changeFAItemFlag('chooseValue') === 'N'" v-model="scope.row.chooseValue" placeholder="请选择">
  409. <el-option v-for="item in scope.row.availableValueList" :key="item.availableValue" :label="item.availableValue" :value="item.availableValue"></el-option>
  410. </el-select>
  411. </template>
  412. </el-table-column>
  413. <el-table-column
  414. header-align="center"
  415. align="center"
  416. min-width="120"
  417. label="备注">
  418. <template slot-scope="scope">
  419. <el-input :disabled="changeFAItemFlag('itemRemark') === 'N'" v-model="scope.row.itemRemark"></el-input>
  420. </template>
  421. </el-table-column>
  422. <!-- <el-table-column-->
  423. <!-- fixed="right"-->
  424. <!-- header-align="center"-->
  425. <!-- align="center"-->
  426. <!-- width="60"-->
  427. <!-- label="操作">-->
  428. <!-- <template slot-scope="scope">-->
  429. <!-- <el-link v-if="scope.row.executeFlag !== 'Y'" style="cursor: pointer" @click="executeModal2(scope.row)">执行</el-link>-->
  430. <!-- </template>-->
  431. <!-- </el-table-column>-->
  432. </el-table>
  433. </div>
  434. <div style="text-align: center;font-size: 11px;margin-top: 5px">
  435. <span> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- </span>
  436. </div>
  437. <el-form :inline="true" label-position="top" :model="executionInfoData">
  438. <el-form-item label="原菲林编号">
  439. <el-input :disabled="changeExecutionInfoFlag('originalFilmNo') === 'N'" v-model="executionInfoData.originalFilmNo" style="width: 226px"></el-input>
  440. </el-form-item>
  441. <el-form-item label="原啤刀编号">
  442. <el-input :disabled="changeExecutionInfoFlag('originalDieCuttingRuleNo') === 'N'" v-model="executionInfoData.originalDieCuttingRuleNo" style="width: 226px"></el-input>
  443. </el-form-item>
  444. <el-form-item label="原网板/印版编号">
  445. <el-input :disabled="changeExecutionInfoFlag('originalStencilNo') === 'N'" v-model="executionInfoData.originalStencilNo" style="width: 226px"></el-input>
  446. </el-form-item>
  447. <el-form-item label="ECN执行日期">
  448. <el-date-picker :disabled="changeExecutionInfoFlag('executionDate') === 'N'" style="width: 128px" v-model="executionInfoData.executionDate" type="date" value-format="yyyy-MM-dd" placeholder="请选择日期" :editable=false></el-date-picker>
  449. </el-form-item>
  450. </el-form>
  451. <el-form :inline="true" label-position="top" :model="executionInfoData" style="margin-top: -5px;">
  452. <el-form-item label="新菲林编号">
  453. <el-input :disabled="changeExecutionInfoFlag('newFilmNo') === 'N'" v-model="executionInfoData.newFilmNo" style="width: 226px"></el-input>
  454. </el-form-item>
  455. <el-form-item label="新啤刀编号">
  456. <el-input :disabled="changeExecutionInfoFlag('newDieCuttingRuleNo') === 'N'" v-model="executionInfoData.newDieCuttingRuleNo" style="width: 226px"></el-input>
  457. </el-form-item>
  458. <el-form-item label="新网板/印版编号">
  459. <el-input :disabled="changeExecutionInfoFlag('newStencilNo') === 'N'" v-model="executionInfoData.newStencilNo" style="width: 226px"></el-input>
  460. </el-form-item>
  461. </el-form>
  462. <div style="text-align: center ;font-size: 11px">
  463. <span> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- </span>
  464. </div>
  465. <el-button type="primary" @click="chooseModel">选择执行信息</el-button>
  466. <div class="rq">
  467. <el-table
  468. :data="chooseItemList"
  469. height="230px"
  470. border
  471. style="width: 100%">
  472. <el-table-column
  473. v-for="(item,index) in columnChooseItemList" :key="index"
  474. :sortable="item.columnSortable"
  475. :prop="item.columnProp"
  476. :header-align="item.headerAlign"
  477. :show-overflow-tooltip="item.showOverflowTooltip"
  478. :align="item.align"
  479. :fixed="item.fixed == ''?false:item.fixed"
  480. :min-width="item.columnWidth"
  481. :label="item.columnLabel">
  482. <template slot-scope="scope">
  483. <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
  484. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  485. </template>
  486. </el-table-column>
  487. <el-table-column
  488. prop=""
  489. header-align="center"
  490. align="center"
  491. min-width="130"
  492. label="执行人">
  493. <template slot-scope="scope">
  494. <el-input :disabled="changeItemFlag('executor') === 'N'" @input="(val)=>executorInput(scope.row, val)" v-model="scope.row.executor" style="width:77%"></el-input>
  495. <el-button :disabled="changeItemFlag('executor') === 'N'" type="primary" @click="chooseExecutor(scope.row)" style="width:18%;padding: 3px 7px">·&nbsp;·&nbsp;·</el-button>
  496. </template>
  497. </el-table-column>
  498. <el-table-column
  499. prop=""
  500. header-align="center"
  501. align="center"
  502. min-width="150"
  503. label="备注">
  504. <template slot-scope="scope">
  505. <el-input :disabled="changeItemFlag('itemRemark') === 'N'" v-model="scope.row.itemRemark" style="width:98%"></el-input>
  506. </template>
  507. </el-table-column>
  508. <el-table-column
  509. header-align="center"
  510. align="center"
  511. min-width="50"
  512. label="操作">
  513. <template slot-scope="scope">
  514. <el-link v-if="scope.row.executeFlag !== 'Y' && $store.state.user.name === scope.row.executor && modalData.changeStatus === '审批中'" style="cursor: pointer" @click="executeModal(scope.row)">执行</el-link>
  515. </template>
  516. </el-table-column>
  517. </el-table>
  518. </div>
  519. </div>
  520. <el-footer style="height:25px;text-align:center">
  521. <el-button type="primary" :loading="saveLoading" @click="saveData">保存</el-button>
  522. <el-button type="primary" @click="modalFlag = false">关闭</el-button>
  523. <el-button v-if="authSubmit && modalData.changeStatus === '审批中'" type="primary" :loading="submitLoading" @click="agreeSubmit">同意</el-button>
  524. <el-button v-if="authReject && modalData.changeStatus === '审批中' && modalData.isReject === 'Y'" type="primary" :loading="submitLoading" @click="submitDataModal">驳回</el-button>
  525. </el-footer>
  526. </el-tab-pane>
  527. <el-tab-pane label="会签信息" name="countersignature">
  528. <div style="height: 670px">
  529. <el-button type="primary" @click="chooseCSModel">选择会签信息</el-button>
  530. <div class="rq">
  531. <el-table
  532. :data="chooseCSItemList"
  533. height="600px"
  534. border
  535. style="width: 100%">
  536. <el-table-column
  537. v-for="(item,index) in columnCSChooseItemList" :key="index"
  538. :sortable="item.columnSortable"
  539. :prop="item.columnProp"
  540. :header-align="item.headerAlign"
  541. :show-overflow-tooltip="item.showOverflowTooltip"
  542. :align="item.align"
  543. :fixed="item.fixed == ''?false:item.fixed"
  544. :min-width="item.columnWidth"
  545. :label="item.columnLabel">
  546. <template slot-scope="scope">
  547. <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
  548. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  549. </template>
  550. </el-table-column>
  551. <el-table-column
  552. header-align="center"
  553. align="center"
  554. min-width="200"
  555. label="备注">
  556. <template slot-scope="scope">
  557. <el-input :disabled="changeCountersignatureItemFlag('itemRemark') === 'N'" v-model="scope.row.itemRemark" style="width:98%"></el-input>
  558. </template>
  559. </el-table-column>
  560. <!-- <el-table-column-->
  561. <!-- fixed="right"-->
  562. <!-- header-align="center"-->
  563. <!-- align="center"-->
  564. <!-- width="60"-->
  565. <!-- label="操作">-->
  566. <!-- <template slot-scope="scope">-->
  567. <!-- <el-link v-if="scope.row.executeFlag !== 'Y'" style="cursor: pointer" @click="executeCSModal(scope.row)">执行</el-link>-->
  568. <!-- </template>-->
  569. <!-- </el-table-column>-->
  570. </el-table>
  571. </div>
  572. </div>
  573. <el-footer style="height:25px;text-align:center">
  574. <el-button type="primary" :loading="saveLoading" @click="saveData">保存</el-button>
  575. <el-button type="primary" @click="modalFlag = false">关闭</el-button>
  576. <el-button v-if="authSubmit && modalData.changeStatus === '审批中'" type="primary" :loading="submitLoading" @click="agreeSubmit">同意</el-button>
  577. <el-button v-if="authReject && modalData.changeStatus === '审批中' && modalData.isReject === 'Y'" type="primary" :loading="submitLoading" @click="submitDataModal">驳回</el-button>
  578. </el-footer>
  579. </el-tab-pane>
  580. </el-tabs>
  581. </el-dialog>
  582. <!-- 页签 -->
  583. <el-tabs v-model="activeTable" style="width: 100%; height: 100%;" type="border-card" @tab-click="refreshCurrentTabTable" class="customer-tab">
  584. <!-- 基本信息页签 -->
  585. <el-tab-pane label="基本信息" name="basicInformation">
  586. <el-table
  587. :data="detailList"
  588. :height="secondHeight"
  589. border
  590. ref="detailTable"
  591. style="width: 100%;">
  592. <el-table-column
  593. v-for="(item,index) in detailColumnList" :key="index"
  594. :sortable="item.columnSortable"
  595. :prop="item.columnProp"
  596. :header-align="item.headerAlign"
  597. :show-overflow-tooltip="item.showOverflowTooltip"
  598. :align="item.align"
  599. :fixed="item.fixed === '' ? false : item.fixed"
  600. :min-width="item.columnWidth"
  601. :label="item.columnLabel">
  602. <template slot-scope="scope">
  603. <div v-if="item.columnProp === 'oriCodeNo'">
  604. <el-link style="cursor:pointer;" v-if="!item.columnHidden" @click="toMenu(scope.row)"> {{ scope.row[item.columnProp] }}</el-link>
  605. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  606. </div>
  607. <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
  608. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  609. </template>
  610. </el-table-column>
  611. </el-table>
  612. </el-tab-pane>
  613. <!-- 库存成本影响页签 -->
  614. <el-tab-pane label="库存成本影响" name="inventoryCostImpact">
  615. <div :style="{height: secondHeight - 15 + 'px'}" style="margin-left: 20px;margin-top: 15px">
  616. <el-form :inline="true" label-position="top" :model="currentCostImpactData">
  617. <el-form-item style="margin-top: 20px;width: 155px">
  618. <el-checkbox v-model="currentCostImpactData.productionProductFlag" disabled true-label="Y">在生产品</el-checkbox>
  619. </el-form-item>
  620. <el-form-item label="数量">
  621. <el-input class="inlineNumber numInput" v-model="currentCostImpactData.productionProductNumber" readonly :disabled="currentCostImpactData.productionProductFlag !== 'Y'" type="number" style="width: 100px"></el-input>
  622. </el-form-item>
  623. <el-form-item label="处理意见">
  624. <!-- <dict-data-select v-model="currentCostImpactData.productionProductOpinions" :disabled="currentCostImpactData.productionProductFlag !== 'Y'" style="width: 130px" dict-type="change_production_product_opinions"></dict-data-select>-->
  625. <el-input v-model="currentCostImpactData.productionProductOpinions" :disabled="currentCostImpactData.productionProductFlag !== 'Y'" style="width: 130px"></el-input>
  626. </el-form-item>
  627. <el-form-item label="报废金额">
  628. <el-input class="inlineNumber numInput" v-model="currentCostImpactData.productionProductScrapAmount" :disabled="currentCostImpactData.productionProductFlag !== 'Y'" type="number" style="width: 140px"></el-input>
  629. </el-form-item>
  630. <!-- <el-form-item label=" " style="margin-left: -10px">-->
  631. <!-- <el-input v-model="currentCostImpactData.productionProductRemark" readonly :disabled="currentCostImpactData.productionProductFlag !== 'Y'" style="width: 300px"></el-input>-->
  632. <!-- </el-form-item>-->
  633. <el-form-item label="执行人">
  634. <el-input v-model="currentCostImpactData.productionProductExecutorName" readonly :disabled="currentCostImpactData.productionProductFlag !== 'Y'" style="width: 130px"></el-input>
  635. </el-form-item>
  636. </el-form>
  637. <el-form :inline="true" label-position="top" :model="currentCostImpactData" style="margin-top: 10px;">
  638. <el-form-item style="margin-top: 20px;width: 155px">
  639. <el-checkbox v-model="currentCostImpactData.inventoryProductFlag" disabled true-label="Y">成品库存</el-checkbox>
  640. </el-form-item>
  641. <el-form-item label="数量">
  642. <el-input class="inlineNumber numInput" v-model="currentCostImpactData.inventoryProductNumber" readonly :disabled="currentCostImpactData.inventoryProductFlag !== 'Y'" type="number" style="width: 100px"></el-input>
  643. </el-form-item>
  644. <el-form-item label="处理意见">
  645. <!-- <dict-data-select v-model="currentCostImpactData.inventoryProductOpinions" :disabled="currentCostImpactData.inventoryProductFlag !== 'Y'" style="width: 130px" dict-type="change_inventory_product_opinions"></dict-data-select>-->
  646. <el-input v-model="currentCostImpactData.inventoryProductOpinions" :disabled="currentCostImpactData.inventoryProductFlag !== 'Y'" style="width: 130px"></el-input>
  647. </el-form-item>
  648. <el-form-item label="报废金额">
  649. <el-input class="inlineNumber numInput" v-model="currentCostImpactData.inventoryProductScrapAmount" :disabled="currentCostImpactData.inventoryProductFlag !== 'Y'" type="number" style="width: 140px"></el-input>
  650. </el-form-item>
  651. <!-- <el-form-item label=" " style="margin-left: -10px">-->
  652. <!-- <el-input v-model="currentCostImpactData.inventoryProductRemark" readonly :disabled="currentCostImpactData.inventoryProductFlag !== 'Y'" style="width: 300px"></el-input>-->
  653. <!-- </el-form-item>-->
  654. <el-form-item label="执行人">
  655. <el-input v-model="currentCostImpactData.inventoryProductExecutorName" :disabled="currentCostImpactData.inventoryProductFlag !== 'Y'" style="width: 130px"></el-input>
  656. </el-form-item>
  657. </el-form>
  658. <el-form :inline="true" label-position="top" :model="currentCostImpactData" style="margin-top: 10px;">
  659. <el-form-item style="margin-top: 20px;width: 155px">
  660. <el-checkbox v-model="currentCostImpactData.newOrderFlag" disabled true-label="Y">新订单</el-checkbox>
  661. </el-form-item>
  662. <el-form-item label="数量">
  663. <el-input class="inlineNumber numInput" v-model="currentCostImpactData.newOrderNumber" readonly :disabled="currentCostImpactData.newOrderFlag !== 'Y'" type="number" style="width: 100px"></el-input>
  664. </el-form-item>
  665. </el-form>
  666. <el-form :inline="true" label-position="top" :model="currentCostImpactData" style="margin-top: 10px;">
  667. <el-form-item style="margin-top: 20px;width: 155px">
  668. <el-checkbox v-model="currentCostImpactData.affectedFlag" disabled true-label="Y">影响的原材料及其库存量</el-checkbox>
  669. </el-form-item>
  670. <el-form-item label="数量">
  671. <el-input class="inlineNumber numInput" v-model="currentCostImpactData.affectedNumber" readonly :disabled="currentCostImpactData.affectedFlag !== 'Y'" type="number" style="width: 100px"></el-input>
  672. </el-form-item>
  673. <el-form-item label="处理意见">
  674. <!-- <dict-data-select v-model="currentCostImpactData.affectedOpinions" :disabled="currentCostImpactData.affectedFlag !== 'Y'" style="width: 130px" dict-type="change_affected_opinions"></dict-data-select>-->
  675. <el-input v-model="currentCostImpactData.affectedOpinions" :disabled="currentCostImpactData.affectedFlag !== 'Y'" style="width: 130px"></el-input>
  676. </el-form-item>
  677. <el-form-item label="报废金额">
  678. <el-input class="inlineNumber numInput" v-model="currentCostImpactData.affectedScrapAmount" :disabled="currentCostImpactData.affectedFlag !== 'Y'" type="number" style="width: 140px"></el-input>
  679. </el-form-item>
  680. <!-- <el-form-item label=" " style="margin-left: -10px">-->
  681. <!-- <el-input v-model="currentCostImpactData.affectedRemark" readonly :disabled="currentCostImpactData.affectedFlag !== 'Y'" style="width: 300px"></el-input>-->
  682. <!-- </el-form-item>-->
  683. <el-form-item label="执行人">
  684. <el-input v-model="currentCostImpactData.affectedExecutorName" :disabled="currentCostImpactData.affectedFlag !== 'Y'" style="width: 130px"></el-input>
  685. </el-form-item>
  686. </el-form>
  687. <el-form :inline="true" label-position="top" :model="currentCostImpactData" style="margin-top: 10px;">
  688. <el-form-item label="ECN变更总成本" style="width: 155px">
  689. <el-input class="inlineNumber numInput" v-model="currentCostImpactData.changeTotalCost" readonly type="number" style="width: 125px"></el-input>
  690. </el-form-item>
  691. <el-form-item label="备注">
  692. <el-input v-model="currentCostImpactData.remark" readonly style="width: 300px"></el-input>
  693. </el-form-item>
  694. </el-form>
  695. </div>
  696. </el-tab-pane>
  697. <!-- 附件信息页签 -->
  698. <el-tab-pane label="附件信息" name="fileInformation">
  699. <oss-components
  700. :save-visible="authFileSave"
  701. :download-visible="authFileDownLoad"
  702. :remove-visible="authFileRemove"
  703. :preview-visible="authFilePreview"
  704. :disabled="currentRow.changeStatus === '已完成'"
  705. label="变更单号"
  706. :height="secondHeight - 25"
  707. style="margin-top: 2px"
  708. :columns="fileColumnList"
  709. :order-ref2="currentRow.changeNo"
  710. :order-ref1="currentRow.site">
  711. </oss-components>
  712. </el-tab-pane>
  713. <!-- 审批信息 -->
  714. <el-tab-pane label="审批信息" name="approvalInformation">
  715. <approval-information ref="approvalTable" v-model:data-list="approvalList" :height="secondHeight"></approval-information>
  716. </el-tab-pane>
  717. </el-tabs>
  718. <!-- ECN种类模态框 -->
  719. <el-dialog title="ECN种类" :close-on-click-modal="false" v-drag :visible.sync="ecnTypeModalFlag" width="900px">
  720. <el-form ref="dataForm" label-position="right">
  721. <el-row v-for="(item, index) in form" :key="index" style="padding-top: 10px;" :style="{borderTop:index === 0?'':'1px solid #ccc'}">
  722. <el-col :span="8">
  723. <el-form-item :prop="'input.'+index+'.value'">
  724. <el-checkbox v-model="item.flag" @change="(val)=>ecnTypeHeaderChange(val,index)" :indeterminate="item.list.filter(a => a.flag === 'Y').length !== 0 && item.list.filter(a => a.flag === 'Y').length !== item.list.length" true-label="Y">{{item.value}}</el-checkbox>
  725. </el-form-item>
  726. </el-col>
  727. <el-col :span="16">
  728. <div v-for="i in item.list">
  729. <el-form-item :prop="'input.'+index+'.value'">
  730. <el-checkbox v-model="i.flag" @change="(val)=>ecnTypeDetailChange(val,index)" true-label="Y">{{i.value}}</el-checkbox>
  731. </el-form-item>
  732. </div>
  733. </el-col>
  734. </el-row>
  735. </el-form>
  736. <el-footer style="height:30px;text-align:center">
  737. <el-button type="primary" @click="saveEcnTypeData">保存</el-button>
  738. <el-button type="primary" @click="ecnTypeModalFlag = false">关闭</el-button>
  739. </el-footer>
  740. </el-dialog>
  741. <!-- ECN模板属性清单 -->
  742. <el-dialog title="属性清单" :close-on-click-modal="false" v-drag :visible.sync="chooseModelFlag" width="820px">
  743. <div class="rq">
  744. <el-form :inline="true" label-position="top" :model="chooseModelData">
  745. <el-form-item :label="'模板'">
  746. <el-select value="roleName" v-model="chooseModelData.codeNo" placeholder="请选择" style="width: 120px">
  747. <el-option
  748. v-for = "i in modelList"
  749. :key = "i.codeNo"
  750. :label = "i.codeDesc"
  751. :value = "i.codeNo">
  752. </el-option>
  753. </el-select>
  754. </el-form-item>
  755. <el-form-item label="属性编码">
  756. <el-input v-model="chooseModelData.itemNo" clearable style="width: 120px"></el-input>
  757. </el-form-item>
  758. <el-form-item label="属性名称">
  759. <el-input v-model="chooseModelData.itemDesc" clearable style="width: 120px"></el-input>
  760. </el-form-item>
  761. <el-form-item :label="' '">
  762. <el-button type="primary" @click="searchItemList">查询</el-button>
  763. </el-form-item>
  764. </el-form>
  765. <el-table
  766. :height="300"
  767. :data="itemList"
  768. ref="itemTable"
  769. @row-click="itemClickRow"
  770. @selection-change="selectionItem"
  771. border
  772. style="width: 100%;">
  773. <el-table-column
  774. type="selection"
  775. header-align="center"
  776. align="center"
  777. width="50">
  778. </el-table-column>
  779. <el-table-column
  780. v-for="(item,index) in columnItemList" :key="index"
  781. :sortable="item.columnSortable"
  782. :prop="item.columnProp"
  783. :header-align="item.headerAlign"
  784. :show-overflow-tooltip="item.showOverflowTooltip"
  785. :align="item.align"
  786. :fixed="item.fixed==''?false:item.fixed"
  787. :min-width="item.columnWidth"
  788. :label="item.columnLabel">
  789. <template slot-scope="scope">
  790. <span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
  791. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  792. </template>
  793. </el-table-column>
  794. </el-table>
  795. </div>
  796. <el-footer style="height:40px;margin-top: 20px;text-align:center">
  797. <el-button type="primary" @click="confirmItem">确认</el-button>
  798. <el-button type="primary" @click="chooseModelFlag = false">关闭</el-button>
  799. </el-footer>
  800. </el-dialog>
  801. <!-- ECN模板属性清单 -->
  802. <el-dialog title="属性清单" :close-on-click-modal="false" v-drag :visible.sync="chooseModelFlag2" width="820px">
  803. <div class="rq">
  804. <el-form :inline="true" label-position="top" :model="chooseModelData2">
  805. <el-form-item :label="'模板'">
  806. <el-select v-model="chooseModelData2.codeNo" placeholder="请选择" style="width: 120px">
  807. <el-option
  808. v-for = "i in modelList2"
  809. :key = "i.codeNo"
  810. :label = "i.codeDesc"
  811. :value = "i.codeNo">
  812. </el-option>
  813. </el-select>
  814. </el-form-item>
  815. <el-form-item label="属性编码">
  816. <el-input v-model="chooseModelData2.itemNo" clearable style="width: 120px"></el-input>
  817. </el-form-item>
  818. <el-form-item label="属性名称">
  819. <el-input v-model="chooseModelData2.itemDesc" clearable style="width: 120px"></el-input>
  820. </el-form-item>
  821. <el-form-item :label="' '">
  822. <el-button type="primary" @click="searchItemList2">查询</el-button>
  823. </el-form-item>
  824. </el-form>
  825. <el-table
  826. :height="300"
  827. :data="itemList2"
  828. ref="itemTable2"
  829. @row-click="itemClickRow2"
  830. @selection-change="selectionItem2"
  831. border
  832. style="width: 100%;">
  833. <el-table-column
  834. type="selection"
  835. header-align="center"
  836. align="center"
  837. width="50">
  838. </el-table-column>
  839. <el-table-column
  840. v-for="(item,index) in columnItemList2" :key="index"
  841. :sortable="item.columnSortable"
  842. :prop="item.columnProp"
  843. :header-align="item.headerAlign"
  844. :show-overflow-tooltip="item.showOverflowTooltip"
  845. :align="item.align"
  846. :fixed="item.fixed==''?false:item.fixed"
  847. :min-width="item.columnWidth"
  848. :label="item.columnLabel">
  849. <template slot-scope="scope">
  850. <span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
  851. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  852. </template>
  853. </el-table-column>
  854. </el-table>
  855. </div>
  856. <el-footer style="height:40px;margin-top: 20px;text-align:center">
  857. <el-button type="primary" @click="confirmItem2">确认</el-button>
  858. <el-button type="primary" @click="chooseModelFlag2 = false">关闭</el-button>
  859. </el-footer>
  860. </el-dialog>
  861. <!-- 会签模板属性清单 -->
  862. <el-dialog title="属性清单" :close-on-click-modal="false" v-drag :visible.sync="chooseCSModelFlag" width="820px">
  863. <div class="rq">
  864. <el-form :inline="true" label-position="top" :model="chooseCSModelData">
  865. <el-form-item :label="'模板'">
  866. <el-select value="roleName" v-model="chooseCSModelData.codeNo" placeholder="请选择" style="width: 120px">
  867. <el-option
  868. v-for = "i in modelCSList"
  869. :key = "i.codeNo"
  870. :label = "i.codeDesc"
  871. :value = "i.codeNo">
  872. </el-option>
  873. </el-select>
  874. </el-form-item>
  875. <el-form-item label="属性编码">
  876. <el-input v-model="chooseCSModelData.itemNo" clearable style="width: 120px"></el-input>
  877. </el-form-item>
  878. <el-form-item label="属性名称">
  879. <el-input v-model="chooseCSModelData.itemDesc" clearable style="width: 120px"></el-input>
  880. </el-form-item>
  881. <el-form-item :label="' '">
  882. <el-button type="primary" @click="searchCSItemList()">查询</el-button>
  883. </el-form-item>
  884. </el-form>
  885. <el-table
  886. :height="300"
  887. :data="itemCSList"
  888. ref="itemCSTable"
  889. @row-click="itemCSClickRow"
  890. @selection-change="selectionCSItem"
  891. border
  892. style="width: 100%;">
  893. <el-table-column
  894. type="selection"
  895. header-align="center"
  896. align="center"
  897. width="50">
  898. </el-table-column>
  899. <el-table-column
  900. v-for="(item,index) in columnCSItemList" :key="index"
  901. :sortable="item.columnSortable"
  902. :prop="item.columnProp"
  903. :header-align="item.headerAlign"
  904. :show-overflow-tooltip="item.showOverflowTooltip"
  905. :align="item.align"
  906. :fixed="item.fixed==''?false:item.fixed"
  907. :min-width="item.columnWidth"
  908. :label="item.columnLabel">
  909. <template slot-scope="scope">
  910. <span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
  911. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  912. </template>
  913. </el-table-column>
  914. </el-table>
  915. </div>
  916. <el-footer style="height:40px;margin-top: 20px;text-align:center">
  917. <el-button type="primary" @click="confirmCSItem">确认</el-button>
  918. <el-button type="primary" @click="chooseCSModelFlag = false">关闭</el-button>
  919. </el-footer>
  920. </el-dialog>
  921. <!-- 提交 -->
  922. <el-dialog title="驳回" top="30vh" :close-on-click-modal="false" v-drag :visible.sync="submitModalFlag" width="500px">
  923. <el-form :inline="true" label-position="top">
  924. <el-form-item :label="'驳回意见'">
  925. <el-input type="textarea" v-model="rejectOpinion" :rows="3" resize='none' show-word-limit style="width: 479px;height: 30px"></el-input>
  926. </el-form-item>
  927. </el-form>
  928. <el-footer style="height:30px;margin-top: 50px;text-align:center">
  929. <el-button type="primary" @click="rejectSubmit">确定</el-button>
  930. <el-button type="primary" @click="submitModalFlag = false">取消</el-button>
  931. </el-footer>
  932. </el-dialog>
  933. <!-- 可选技术参数卡清单 -->
  934. <el-dialog title="技术参数卡清单" :close-on-click-modal="false" v-drag :visible.sync="addDetailModal" width="820px">
  935. <div class="rq">
  936. <el-form :inline="true" label-position="top" :model="searchData2">
  937. <el-form-item :label="'BU'">
  938. <el-select v-model="searchData2.buNo" disabled style="width: 80px">
  939. <el-option
  940. v-for = "i in buList"
  941. :key = "i.buNo"
  942. :label = "i.buNo"
  943. :value = "i.buNo">
  944. </el-option>
  945. </el-select>
  946. </el-form-item>
  947. <el-form-item label="技术参数卡编码">
  948. <el-input v-model="searchData2.codeNo" clearable style="width: 120px"></el-input>
  949. </el-form-item>
  950. <el-form-item label="正式物料编码">
  951. <el-input v-model="searchData.partNo" clearable style="width: 120px"/>
  952. </el-form-item>
  953. <el-form-item label="客户编码">
  954. <el-input v-model="searchData.customerId" clearable style="width: 120px"/>
  955. </el-form-item>
  956. <el-form-item label="项目编码">
  957. <el-input v-model="searchData.projectId" clearable style="width: 120px"/>
  958. </el-form-item>
  959. <el-form-item :label="' '">
  960. <el-button type="primary" @click="addChangeDetail()">查询</el-button>
  961. </el-form-item>
  962. </el-form>
  963. <el-table
  964. :height="300"
  965. :data="dataList2"
  966. @selection-change="selectionData2"
  967. border
  968. style="width: 100%;">
  969. <el-table-column
  970. type="selection"
  971. header-align="center"
  972. align="center"
  973. width="50">
  974. </el-table-column>
  975. <el-table-column
  976. v-for="(item,index) in columnList2" :key="index"
  977. :sortable="item.columnSortable"
  978. :prop="item.columnProp"
  979. :header-align="item.headerAlign"
  980. :show-overflow-tooltip="item.showOverflowTooltip"
  981. :align="item.align"
  982. :fixed="item.fixed==''?false:item.fixed"
  983. :min-width="item.columnWidth"
  984. :label="item.columnLabel">
  985. <template slot-scope="scope">
  986. <span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
  987. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  988. </template>
  989. </el-table-column>
  990. </el-table>
  991. </div>
  992. <el-footer style="height:40px;margin-top: 20px;text-align:center">
  993. <el-button type="primary" @click="addDetail">确认</el-button>
  994. <el-button type="primary" @click="addDetailModal = false">关闭</el-button>
  995. </el-footer>
  996. </el-dialog>
  997. <!-- 物料模态框 -->
  998. <el-dialog title="物料清单" :close-on-click-modal="false" v-drag :visible.sync="partModelFlag" width="940px">
  999. <div class="rq">
  1000. <el-form :inline="true" label-position="top" :model="partData">
  1001. <el-form-item :label="'IFS料号'">
  1002. <el-input v-model="partData.finalPartNo" clearable style="width: 120px"></el-input>
  1003. </el-form-item>
  1004. <el-form-item :label="'物料编码'">
  1005. <el-input v-model="partData.testPartNo" clearable style="width: 120px"></el-input>
  1006. </el-form-item>
  1007. <el-form-item :label="'客户料号'">
  1008. <el-input v-model="partData.customerPartNo" clearable style="width: 120px"></el-input>
  1009. </el-form-item>
  1010. <el-form-item :label="'物料名称'">
  1011. <el-input v-model="partData.partDesc" clearable style="width: 120px"></el-input>
  1012. </el-form-item>
  1013. <el-form-item :label="' '">
  1014. <el-button type="primary" @click="queryPartList()">查询</el-button>
  1015. </el-form-item>
  1016. </el-form>
  1017. <el-table
  1018. :height="300"
  1019. :data="partList"
  1020. @row-dblclick="getRowData"
  1021. border
  1022. style="width: 100%;">
  1023. <el-table-column
  1024. v-for="(item,index) in partColumnList" :key="index"
  1025. :sortable="item.columnSortable"
  1026. :prop="item.columnProp"
  1027. :header-align="item.headerAlign"
  1028. :show-overflow-tooltip="item.showOverflowTooltip"
  1029. :align="item.align"
  1030. :fixed="item.fixed==''?false:item.fixed"
  1031. :min-width="item.columnWidth"
  1032. :label="item.columnLabel">
  1033. <template slot-scope="scope">
  1034. <span v-if="!item.columnHidden">{{scope.row[item.columnProp]}}</span>
  1035. <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
  1036. </template>
  1037. </el-table-column>
  1038. </el-table>
  1039. <!-- 分页插件 -->
  1040. <el-pagination
  1041. style="margin-top: 5px"
  1042. @size-change="sizeChangeHandle2"
  1043. @current-change="currentChangeHandle2"
  1044. :current-page="pageIndex2"
  1045. :page-sizes="[20, 50, 100, 200, 500]"
  1046. :page-size="pageSize2"
  1047. :total="totalPage2"
  1048. layout="total, sizes, prev, pager, next, jumper">
  1049. </el-pagination>
  1050. </div>
  1051. <el-footer style="height:35px;margin-top: 10px;text-align:center">
  1052. <el-button type="primary" @click="partModelFlag=false">关闭</el-button>
  1053. </el-footer>
  1054. </el-dialog>
  1055. <ChooseList ref="baseList" @getBaseData="getBaseData"></ChooseList>
  1056. <!-- 上传文件的modal -->
  1057. <changeUploadFile ref="changeUploadFile" @refreshPageTables="getChangeFileList" v-drag></changeUploadFile>
  1058. <upload-file-list folder="change" title="工程变更文件上传" :label="'变更单号:'" :no="currentRow.changeNo" :file-list.sync="chooseFileList" :upload-dialog.sync="uploadDialog" path="/upload/test"></upload-file-list>
  1059. </div>
  1060. </template>
  1061. <script>
  1062. import {
  1063. changeRecordSearch, // 获取工程变更记录列表
  1064. changeDetailSearch, // 变更单详情的列表
  1065. changeFileSearch, // 变更单文件的列表
  1066. deleteChangeFile, // 删除变更单文件
  1067. costImpactSearch, // 查询库存成本影响
  1068. costImpactUpdate, // 编辑库存成本影响
  1069. executionInfoSearch, // 查询执行信息
  1070. requestDetailSearch, // 查询变更明细
  1071. deleteChangeDetail, // 删除变更明细
  1072. getDepartmentByUserName, // 根据用户编码获得用户部门
  1073. changeRequestUpdate, // 编辑变更单基础信息
  1074. getEcnModel, // 查询ECN的模板
  1075. getChooseEcnType, // 查询所选择的ECN种类
  1076. getItemList, // 查询模板属性
  1077. executionUpdate, // 修改执行信息
  1078. countersignatureSearch, // 查询会签信息
  1079. countersignatureUpdate, // 编辑会签信息
  1080. issueChange, // 下达
  1081. submitChange, // 提交
  1082. getNodeAuthority, // 获取节点权限
  1083. getApprovalList, // 查询审批信息
  1084. getBuBySite, // 根据site查bu
  1085. technicalSpecificationSearch2, // 获取技术参数卡列表
  1086. choosePartNoList, // 根据视图查物料计划
  1087. } from '@/api/changeManagement/changeManagement.js'
  1088. import ChooseList from '@/views/modules/common/Chooselist'
  1089. import {verifyData} from "@/api/chooselist/chooselist.js"
  1090. import changeUploadFile from "../base/upload_file.vue"
  1091. import {downLoadQuotationFile} from '@/api/quotation/quotationInformation.js'
  1092. import DictDataSelect from "../sys/dict-data-select.vue"
  1093. import UploadFileList from "../common/uploadFileList.vue"
  1094. import ApprovalInformation from "./approvalInformation.vue";
  1095. import OssComponents from "../oss/ossComponents.vue";
  1096. export default {
  1097. components: {
  1098. OssComponents,
  1099. ApprovalInformation,
  1100. UploadFileList,
  1101. DictDataSelect,
  1102. changeUploadFile,
  1103. ChooseList,
  1104. },
  1105. computed: {
  1106. totalCost: {
  1107. get () {
  1108. let total = 0
  1109. if (this.costImpactData.productionProductFlag === 'Y') {
  1110. total += +this.costImpactData.productionProductScrapAmount
  1111. }
  1112. if (this.costImpactData.inventoryProductFlag === 'Y') {
  1113. total += +this.costImpactData.inventoryProductScrapAmount
  1114. }
  1115. if (this.costImpactData.affectedFlag === 'Y') {
  1116. total += +this.costImpactData.affectedScrapAmount
  1117. }
  1118. return total
  1119. }
  1120. },
  1121. changeRequestFlag () {
  1122. return (value) => {
  1123. if (!this.plmChangeRequestArr){
  1124. return 'N'
  1125. }
  1126. let arr = this.plmChangeRequestArr.filter(a => a.fieldId === value)
  1127. if (arr.length > 0) {
  1128. return arr[0].updateFlag
  1129. }
  1130. return 'N'
  1131. }
  1132. },
  1133. changeRequestDetailFlag () {
  1134. return (value) => {
  1135. if (!this.plmChangeRequestDetailArr){
  1136. return 'N'
  1137. }
  1138. let arr = this.plmChangeRequestDetailArr.filter(a => a.fieldId === value)
  1139. if (arr.length > 0) {
  1140. return arr[0].updateFlag
  1141. }
  1142. return 'N'
  1143. }
  1144. },
  1145. changeCostImpactFlag () {
  1146. return (value) => {
  1147. if (!this.plmChangeCostImpactArr){
  1148. return 'N'
  1149. }
  1150. let arr = this.plmChangeCostImpactArr.filter(a => a.fieldId === value)
  1151. if (arr.length > 0) {
  1152. return arr[0].updateFlag
  1153. }
  1154. return 'N'
  1155. }
  1156. },
  1157. changeFAItemFlag () {
  1158. return (value) => {
  1159. if (!this.plmChangeFAItemArr){
  1160. return 'N'
  1161. }
  1162. let arr = this.plmChangeFAItemArr.filter(a => a.fieldId === value)
  1163. if (arr.length > 0) {
  1164. return arr[0].updateFlag
  1165. }
  1166. return 'N'
  1167. }
  1168. },
  1169. changeExecutionInfoFlag () {
  1170. return (value) => {
  1171. if (!this.plmChangeExecutionInfoArr){
  1172. return 'N'
  1173. }
  1174. let arr = this.plmChangeExecutionInfoArr.filter(a => a.fieldId === value)
  1175. if (arr.length > 0) {
  1176. return arr[0].updateFlag
  1177. }
  1178. return 'N'
  1179. }
  1180. },
  1181. changeItemFlag () {
  1182. return (value) => {
  1183. if (!this.plmChangeItemArr){
  1184. return 'N'
  1185. }
  1186. let arr = this.plmChangeItemArr.filter(a => a.fieldId === value)
  1187. if (arr.length > 0) {
  1188. return arr[0].updateFlag
  1189. }
  1190. return 'N'
  1191. }
  1192. },
  1193. changeCountersignatureItemFlag () {
  1194. return (value) => {
  1195. if (!this.plmChangeCountersignatureItemArr){
  1196. return 'N'
  1197. }
  1198. let arr = this.plmChangeCountersignatureItemArr.filter(a => a.fieldId === value)
  1199. if (arr.length > 0) {
  1200. return arr[0].updateFlag
  1201. }
  1202. return 'N'
  1203. }
  1204. },
  1205. },
  1206. watch: {
  1207. modalData: {
  1208. deep: true,
  1209. handler: function (newV, oldV) {
  1210. if (this.modalData.tpEngineerId === '' || this.modalData.tpEngineerId == null) {
  1211. this.modalData.tpEngineerName = ''
  1212. }
  1213. if (this.modalData.industrialEngineerId === '' || this.modalData.industrialEngineerId == null) {
  1214. this.modalData.industrialEngineerName = ''
  1215. }
  1216. if (this.modalData.cqcOperatorId === '' || this.modalData.cqcOperatorId == null) {
  1217. this.modalData.cqcOperatorName = ''
  1218. }
  1219. if (this.modalData.faiOperatorId === '' || this.modalData.faiOperatorId == null) {
  1220. this.modalData.faiOperatorName = ''
  1221. }
  1222. }
  1223. },
  1224. uploadDialog (newValue,oldValue) {
  1225. if (newValue === false) {
  1226. this.getChangeFileList()
  1227. }
  1228. },
  1229. },
  1230. data () {
  1231. return {
  1232. buList: [],
  1233. // 导出
  1234. exportData: [],
  1235. exportName: '工程变更记录' + this.dayjs().format('YYYYMMDDHHmmss'),
  1236. exportHeader: ['工程变更记录'],
  1237. exportFooter: [],
  1238. resultList: [],
  1239. // ======== 行高 ========
  1240. height: 200,
  1241. secondHeight: 200,
  1242. // ======== 分页 ========
  1243. pageIndex: 1,
  1244. pageSize: 50,
  1245. totalPage: 0,
  1246. pageIndex2: 1,
  1247. pageSize2: 20,
  1248. totalPage2: 0,
  1249. // 条件查询
  1250. searchData: {
  1251. site: this.$store.state.user.site,
  1252. changeNo: '',
  1253. menuId: this.$route.meta.menuId,
  1254. buNo: '',
  1255. page: 1,
  1256. limit: 10
  1257. },
  1258. searchData2: {
  1259. site: this.$store.state.user.site,
  1260. partNo: '',
  1261. partDesc: '',
  1262. customerId: '',
  1263. customerDesc: '',
  1264. projectId: '',
  1265. projectDesc: '',
  1266. codeNo: '',
  1267. buNo: '',
  1268. },
  1269. // 初始页签
  1270. activeTable: 'basicInformation',
  1271. activeName: 'basicInformation',
  1272. rejectOpinion: '',
  1273. tempPartRow: {},
  1274. tempExecutorRow: {},
  1275. changeTitle: '',
  1276. plmChangeRequestArr: [],
  1277. plmChangeRequestDetailArr: [],
  1278. plmChangeCostImpactArr: [],
  1279. plmChangeFAItemArr: [],
  1280. plmChangeExecutionInfoArr: [],
  1281. plmChangeItemArr: [],
  1282. plmChangeCountersignatureItemArr: [],
  1283. // ======== 数据对象 ========
  1284. modalData: {
  1285. site: this.$store.state.user.site,
  1286. changeNo: '',
  1287. applicantId: '',
  1288. applicantName: '',
  1289. applicationDepartmentId: '',
  1290. applicationDepartmentName: '',
  1291. applyDate: '',
  1292. ecnType: '',
  1293. changeImpact: '',
  1294. changeImpactDesc: '',
  1295. ecnStage: '',
  1296. changeType: '',
  1297. tpEngineerId: '',
  1298. tpEngineerName: '',
  1299. changePhaseInDate: '',
  1300. dfIsProduct: '',
  1301. printing: '',
  1302. manufacturingCostIsChange: '',
  1303. changeRequestDesc: '',
  1304. isReQuote: '',
  1305. ulCertificationRequirements: '',
  1306. ulContinueToMeetDemand: '',
  1307. gpCertificationRequirements: '',
  1308. gpContinueToMeetDemand: '',
  1309. detailList: [],
  1310. ecnTypeData: [],
  1311. industrialEngineerId: '',
  1312. industrialEngineerName: '',
  1313. changeStatus: '',
  1314. cqcOperatorId: '',
  1315. cqcOperatorName: '',
  1316. faiOperatorId: '',
  1317. faiOperatorName: '',
  1318. nodeConclusion: '',
  1319. stepId: '',
  1320. rejectFlag: '',
  1321. rejectStepId: '',
  1322. isReject: '',
  1323. menuId: this.$route.meta.menuId,
  1324. userName: this.$store.state.user.name,
  1325. rejectOpinion: '',
  1326. nodeId: '',
  1327. buNo: ''
  1328. },
  1329. costImpactData: {
  1330. site: this.$store.state.user.site,
  1331. changeNo: '',
  1332. productionProductFlag: '',
  1333. inventoryProductFlag: '',
  1334. newOrderFlag: '',
  1335. affectedFlag: '',
  1336. productionProductNumber: '',
  1337. productionProductOpinions: '',
  1338. productionProductScrapAmount: 0,
  1339. productionProductRemark: '',
  1340. productionProductExecutor: '',
  1341. productionProductExecutorName: '',
  1342. inventoryProductNumber: '',
  1343. inventoryProductOpinions: '',
  1344. inventoryProductScrapAmount: 0,
  1345. inventoryProductRemark: '',
  1346. inventoryProductExecutor: '',
  1347. inventoryProductExecutorName: '',
  1348. newOrderNumber: '',
  1349. affectedNumber: '',
  1350. affectedOpinions: '',
  1351. affectedScrapAmount: 0,
  1352. affectedRemark: '',
  1353. affectedExecutor: '',
  1354. affectedExecutorName: '',
  1355. changeTotalCost: '',
  1356. remark: '',
  1357. createBy: '',
  1358. updateBy: ''
  1359. },
  1360. executionInfoData: {
  1361. site: this.$store.state.user.site,
  1362. changeNo: '',
  1363. originalFilmNo: '',
  1364. newFilmNo: '',
  1365. originalDieCuttingRuleNo: '',
  1366. newDieCuttingRuleNo: '',
  1367. originalStencilNo: '',
  1368. newStencilNo: '',
  1369. executionDate: '',
  1370. createBy: '',
  1371. updateBy: '',
  1372. chooseItemList: [],
  1373. chooseItemList2: []
  1374. },
  1375. chooseModelData: {
  1376. site: this.$store.state.user.site,
  1377. functionType: 'ECN',
  1378. itemNo: '',
  1379. itemDesc: '',
  1380. codeNo: ''
  1381. },
  1382. chooseModelData2: {
  1383. site: this.$store.state.user.site,
  1384. functionType: 'ECN',
  1385. itemNo: '',
  1386. itemDesc: '',
  1387. codeNo: ''
  1388. },
  1389. chooseCSModelData: {
  1390. site: this.$store.state.user.site,
  1391. functionType: 'ECN',
  1392. itemNo: '',
  1393. itemDesc: '',
  1394. codeNo: ''
  1395. },
  1396. countersignatureData: {
  1397. site: this.$store.state.user.site,
  1398. changeNo: '',
  1399. createBy: '',
  1400. updateBy: '',
  1401. chooseCSItemList: []
  1402. },
  1403. partData: {
  1404. site: '',
  1405. buNo: '',
  1406. finalPartNo: '',
  1407. testPartNo: '',
  1408. customerPartNo: '',
  1409. partDesc: '',
  1410. page: 1,
  1411. limit: 10
  1412. },
  1413. // ======== 数据列表 ========
  1414. dataList: [],
  1415. dataList2: [],
  1416. detailList: [],
  1417. fileList: [],
  1418. chooseItemList: [],
  1419. chooseItemList2: [],
  1420. chooseCSItemList: [],
  1421. chooseDataList: [],
  1422. form: [],
  1423. modelList: [],
  1424. modelList2: [],
  1425. modelCSList: [],
  1426. itemList: [],
  1427. itemList2: [],
  1428. itemCSList: [],
  1429. chooseFileList: [],
  1430. approvalList: [],
  1431. partList: [],
  1432. // ======== 列表表头 ========
  1433. columnList: [
  1434. {
  1435. userId: this.$store.state.user.name,
  1436. functionId: 108002,
  1437. serialNumber: '108002Table1BuNo',
  1438. tableId: '108002Table1',
  1439. tableName: '工程变更记录表',
  1440. columnProp: 'buNo',
  1441. headerAlign: 'center',
  1442. align: 'center',
  1443. columnLabel: 'BU',
  1444. columnHidden: false,
  1445. columnImage: false,
  1446. status: true,
  1447. fixed: '',
  1448. columnWidth: 100
  1449. },
  1450. {
  1451. userId: this.$store.state.user.name,
  1452. functionId: 108002,
  1453. serialNumber: '108002Table1ChangeNo',
  1454. tableId: '108002Table1',
  1455. tableName: '工程变更记录表',
  1456. columnProp: 'changeNo',
  1457. headerAlign: 'center',
  1458. align: 'center',
  1459. columnLabel: '申请编号',
  1460. columnHidden: false,
  1461. columnImage: false,
  1462. status: true,
  1463. fixed: '',
  1464. columnWidth: 120
  1465. },
  1466. {
  1467. userId: this.$store.state.user.name,
  1468. functionId: 108002,
  1469. serialNumber: '108002Table1ApplicantName',
  1470. tableId: '108002Table1',
  1471. tableName: '工程变更记录表',
  1472. columnProp: 'applicantName',
  1473. headerAlign: 'center',
  1474. align: 'center',
  1475. columnLabel: '申请人',
  1476. columnHidden: false,
  1477. columnImage: false,
  1478. status: true,
  1479. fixed: '',
  1480. columnWidth: 120
  1481. },
  1482. {
  1483. userId: this.$store.state.user.name,
  1484. functionId: 108002,
  1485. serialNumber: '108002Table1DepartmentName',
  1486. tableId: '108002Table1',
  1487. tableName: '工程变更记录表',
  1488. columnProp: 'applicationDepartmentName',
  1489. headerAlign: 'center',
  1490. align: 'center',
  1491. columnLabel: '申请部门',
  1492. columnHidden: false,
  1493. columnImage: false,
  1494. status: true,
  1495. fixed: '',
  1496. columnWidth: 120
  1497. },
  1498. {
  1499. userId: this.$store.state.user.name,
  1500. functionId: 108002,
  1501. serialNumber: '108002Table1ChangeStatus',
  1502. tableId: '108002Table1',
  1503. tableName: '工程变更记录表',
  1504. columnProp: 'changeStatus',
  1505. headerAlign: 'center',
  1506. align: 'center',
  1507. columnLabel: '变更单状态',
  1508. columnHidden: false,
  1509. columnImage: false,
  1510. status: true,
  1511. fixed: '',
  1512. columnWidth: 100
  1513. },
  1514. {
  1515. userId: this.$store.state.user.name,
  1516. functionId: 108002,
  1517. serialNumber: '108002Table1NodeName',
  1518. tableId: '108002Table1',
  1519. tableName: '工程变更记录表',
  1520. columnProp: 'nodeName',
  1521. headerAlign: 'center',
  1522. align: 'center',
  1523. columnLabel: '当前节点',
  1524. columnHidden: false,
  1525. columnImage: false,
  1526. status: true,
  1527. fixed: '',
  1528. columnWidth: 150
  1529. },
  1530. {
  1531. userId: this.$store.state.user.name,
  1532. functionId: 108002,
  1533. serialNumber: '108002Table1EcnStage',
  1534. tableId: '108002Table1',
  1535. tableName: '工程变更记录表',
  1536. columnProp: 'ecnStage',
  1537. headerAlign: 'center',
  1538. align: 'center',
  1539. columnLabel: 'ECN阶段',
  1540. columnHidden: false,
  1541. columnImage: false,
  1542. status: true,
  1543. fixed: '',
  1544. columnWidth: 100
  1545. },
  1546. {
  1547. userId: this.$store.state.user.name,
  1548. functionId: 108002,
  1549. serialNumber: '108002Table1ChangeType',
  1550. tableId: '108002Table1',
  1551. tableName: '工程变更记录表',
  1552. columnProp: 'changeType',
  1553. headerAlign: 'center',
  1554. align: 'center',
  1555. columnLabel: '变更类别',
  1556. columnHidden: false,
  1557. columnImage: false,
  1558. status: true,
  1559. fixed: '',
  1560. columnWidth: 100
  1561. },
  1562. {
  1563. userId: this.$store.state.user.name,
  1564. functionId: 108002,
  1565. serialNumber: '108002Table1EcnType',
  1566. tableId: '108002Table1',
  1567. tableName: '工程变更记录表',
  1568. columnProp: 'ecnType',
  1569. headerAlign: 'center',
  1570. align: 'center',
  1571. columnLabel: 'ECN种类',
  1572. columnHidden: false,
  1573. columnImage: false,
  1574. status: true,
  1575. fixed: '',
  1576. columnWidth: 100
  1577. },
  1578. {
  1579. userId: this.$store.state.user.name,
  1580. functionId: 108002,
  1581. serialNumber: '108002Table1ApplyDate',
  1582. tableId: '108002Table1',
  1583. tableName: '工程变更记录表',
  1584. columnProp: 'applyDate',
  1585. headerAlign: 'center',
  1586. align: 'center',
  1587. columnLabel: '申请日期',
  1588. columnHidden: false,
  1589. columnImage: false,
  1590. status: true,
  1591. fixed: '',
  1592. columnWidth: 100
  1593. },
  1594. {
  1595. userId: this.$store.state.user.name,
  1596. functionId: 108002,
  1597. serialNumber: '108002Table1ChangePhaseInDate',
  1598. tableId: '108002Table1',
  1599. tableName: '工程变更记录表',
  1600. columnProp: 'changePhaseInDate',
  1601. headerAlign: 'center',
  1602. align: 'center',
  1603. columnLabel: '变更生效日期',
  1604. columnHidden: false,
  1605. columnImage: false,
  1606. status: true,
  1607. fixed: '',
  1608. columnWidth: 100
  1609. },
  1610. {
  1611. userId: this.$store.state.user.name,
  1612. functionId: 108002,
  1613. serialNumber: '108002Table1xxx',
  1614. tableId: '108002Table1',
  1615. tableName: '工程变更记录表',
  1616. columnProp: 'xxx',
  1617. headerAlign: 'center',
  1618. align: 'center',
  1619. columnLabel: 'ECN执行日期',
  1620. columnHidden: false,
  1621. columnImage: false,
  1622. status: true,
  1623. fixed: '',
  1624. columnWidth: 100
  1625. },
  1626. {
  1627. userId: this.$store.state.user.name,
  1628. functionId: 108002,
  1629. serialNumber: '108002Table1CreateBy2',
  1630. tableId: '108002Table1',
  1631. tableName: '工程变更记录表',
  1632. columnProp: 'createBy2',
  1633. headerAlign: 'center',
  1634. align: 'center',
  1635. columnLabel: '当前节点审批人',
  1636. columnHidden: false,
  1637. columnImage: false,
  1638. status: true,
  1639. fixed: '',
  1640. columnWidth: 100
  1641. },
  1642. ],
  1643. columnList2: [
  1644. {
  1645. columnProp: 'buNo',
  1646. headerAlign: 'center',
  1647. align: 'center',
  1648. columnLabel: 'BU',
  1649. columnHidden: false,
  1650. columnImage: false,
  1651. status: true,
  1652. fixed: '',
  1653. columnWidth: 80
  1654. },
  1655. {
  1656. columnProp: 'partNo',
  1657. headerAlign: 'center',
  1658. align: 'center',
  1659. columnLabel: '正式物料编码',
  1660. columnHidden: false,
  1661. columnImage: false,
  1662. status: true,
  1663. fixed: '',
  1664. columnWidth: 120
  1665. },
  1666. {
  1667. columnProp: 'partDesc',
  1668. headerAlign: 'center',
  1669. align: 'left',
  1670. columnLabel: '物料名称',
  1671. columnHidden: false,
  1672. columnImage: false,
  1673. status: true,
  1674. fixed: '',
  1675. columnWidth: 180
  1676. },
  1677. {
  1678. columnProp: 'projectId',
  1679. headerAlign: 'center',
  1680. align: 'center',
  1681. columnLabel: '项目编码',
  1682. columnHidden: false,
  1683. columnImage: false,
  1684. status: true,
  1685. fixed: '',
  1686. columnWidth: 120
  1687. },
  1688. {
  1689. columnProp: 'projectDesc',
  1690. headerAlign: 'center',
  1691. align: 'left',
  1692. columnLabel: '项目名称',
  1693. columnHidden: false,
  1694. columnImage: false,
  1695. status: true,
  1696. fixed: '',
  1697. columnWidth: 180
  1698. },
  1699. {
  1700. columnProp: 'customerId',
  1701. headerAlign: 'center',
  1702. align: 'center',
  1703. columnLabel: '客户编码',
  1704. columnHidden: false,
  1705. columnImage: false,
  1706. status: true,
  1707. fixed: '',
  1708. columnWidth: 120
  1709. },
  1710. {
  1711. columnProp: 'customerDesc',
  1712. headerAlign: 'center',
  1713. align: 'left',
  1714. columnLabel: '客户名称',
  1715. columnHidden: false,
  1716. columnImage: false,
  1717. status: true,
  1718. fixed: '',
  1719. columnWidth: 180
  1720. },
  1721. {
  1722. columnProp: 'oriCodeNo',
  1723. headerAlign: 'center',
  1724. align: 'center',
  1725. columnLabel: '技术参数卡',
  1726. columnHidden: false,
  1727. columnImage: false,
  1728. status: true,
  1729. fixed: '',
  1730. columnWidth: 120
  1731. },
  1732. {
  1733. columnProp: 'ecnFlag',
  1734. headerAlign: 'center',
  1735. align: 'center',
  1736. columnLabel: '状态',
  1737. columnHidden: false,
  1738. columnImage: false,
  1739. status: true,
  1740. fixed: '',
  1741. columnWidth: 100
  1742. },
  1743. {
  1744. columnProp: 'revNo',
  1745. headerAlign: 'center',
  1746. align: 'center',
  1747. columnLabel: '版本号',
  1748. columnHidden: false,
  1749. columnImage: false,
  1750. status: true,
  1751. fixed: '',
  1752. columnWidth: 80
  1753. },
  1754. ],
  1755. detailColumnList: [
  1756. {
  1757. userId: this.$store.state.user.name,
  1758. functionId: 108002,
  1759. serialNumber: '108002Table2PartNo',
  1760. tableId: '108002Table2',
  1761. tableName: '变更单基本信息表',
  1762. columnProp: 'partNo',
  1763. headerAlign: 'center',
  1764. align: 'center',
  1765. columnLabel: '正式物料编码',
  1766. columnHidden: false,
  1767. columnImage: false,
  1768. status: true,
  1769. fixed: '',
  1770. columnWidth: 120
  1771. },
  1772. {
  1773. userId: this.$store.state.user.name,
  1774. functionId: 108002,
  1775. serialNumber: '108002Table2PartDesc',
  1776. tableId: '108002Table2',
  1777. tableName: '变更单基本信息表',
  1778. columnProp: 'partDesc',
  1779. headerAlign: 'center',
  1780. align: 'left',
  1781. columnLabel: '物料描述',
  1782. columnHidden: false,
  1783. columnImage: false,
  1784. status: true,
  1785. fixed: '',
  1786. columnWidth: 180
  1787. },
  1788. {
  1789. userId: this.$store.state.user.name,
  1790. functionId: 108002,
  1791. serialNumber: '108002Table2NewPartNo',
  1792. tableId: '108002Table2',
  1793. tableName: '变更单基本信息表',
  1794. columnProp: 'newPartNo',
  1795. headerAlign: 'center',
  1796. align: 'center',
  1797. columnLabel: '新物料编码',
  1798. columnHidden: false,
  1799. columnImage: false,
  1800. status: true,
  1801. fixed: '',
  1802. columnWidth: 100
  1803. },
  1804. {
  1805. userId: this.$store.state.user.name,
  1806. functionId: 108002,
  1807. serialNumber: '108002Table2NewDrawingNo',
  1808. tableId: '108002Table2',
  1809. tableName: '变更单基本信息表',
  1810. columnProp: 'newDrawingNo',
  1811. headerAlign: 'center',
  1812. align: 'center',
  1813. columnLabel: '新图纸编码',
  1814. columnHidden: false,
  1815. columnImage: false,
  1816. status: true,
  1817. fixed: '',
  1818. columnWidth: 100
  1819. },
  1820. {
  1821. userId: this.$store.state.user.name,
  1822. functionId: 108002,
  1823. serialNumber: '108002Table2NewDraftNo',
  1824. tableId: '108002Table2',
  1825. tableName: '变更单基本信息表',
  1826. columnProp: 'newDraftNo',
  1827. headerAlign: 'center',
  1828. align: 'center',
  1829. columnLabel: '新图稿编码',
  1830. columnHidden: false,
  1831. columnImage: false,
  1832. status: true,
  1833. fixed: '',
  1834. columnWidth: 100
  1835. },
  1836. {
  1837. userId: this.$store.state.user.name,
  1838. functionId: 108002,
  1839. serialNumber: '108002Table2OriCodeNo',
  1840. tableId: '108002Table2',
  1841. tableName: '变更单基本信息表',
  1842. columnProp: 'oriCodeNo',
  1843. headerAlign: 'center',
  1844. align: 'center',
  1845. columnLabel: '技术参数卡编码',
  1846. columnHidden: false,
  1847. columnImage: false,
  1848. status: true,
  1849. fixed: '',
  1850. columnWidth: 120
  1851. },
  1852. {
  1853. userId: this.$store.state.user.name,
  1854. functionId: 108002,
  1855. serialNumber: '108002Table2RevNo',
  1856. tableId: '108002Table2',
  1857. tableName: '变更单基本信息表',
  1858. columnProp: 'revNo',
  1859. headerAlign: 'center',
  1860. align: 'right',
  1861. columnLabel: '版本号',
  1862. columnHidden: false,
  1863. columnImage: false,
  1864. status: true,
  1865. fixed: '',
  1866. columnWidth: 60
  1867. },
  1868. ],
  1869. fileColumnList: [
  1870. {
  1871. userId: this.$store.state.user.name,
  1872. functionId: 108002,
  1873. serialNumber: '108002Table3FileName',
  1874. tableId: '108002Table3',
  1875. tableName: '变更单文件信息表',
  1876. columnProp: 'fileName',
  1877. headerAlign: 'center',
  1878. align: 'left',
  1879. columnLabel: '文件名称',
  1880. columnHidden: false,
  1881. columnImage: false,
  1882. status: true,
  1883. fixed: '',
  1884. columnWidth: 120
  1885. },
  1886. {
  1887. userId: this.$store.state.user.name,
  1888. functionId: 108002,
  1889. serialNumber: '108002Table3FileType',
  1890. tableId: '108002Table3',
  1891. tableName: '变更单文件信息表',
  1892. columnProp: 'fileType',
  1893. headerAlign: 'center',
  1894. align: 'left',
  1895. columnLabel: '文件类型',
  1896. columnHidden: false,
  1897. columnImage: false,
  1898. status: true,
  1899. fixed: '',
  1900. columnWidth: 80
  1901. },
  1902. {
  1903. userId: this.$store.state.user.name,
  1904. functionId: 108002,
  1905. serialNumber: '108002Table3Url',
  1906. tableId: '108002Table3',
  1907. tableName: '变更单文件信息表',
  1908. columnProp: 'url',
  1909. headerAlign: 'center',
  1910. align: 'left',
  1911. columnLabel: '文件地址',
  1912. columnHidden: false,
  1913. columnImage: false,
  1914. status: true,
  1915. fixed: '',
  1916. columnWidth: 180
  1917. },
  1918. {
  1919. userId: this.$store.state.user.name,
  1920. functionId: 108002,
  1921. serialNumber: '108002Table3CreateBy',
  1922. tableId: '108002Table3',
  1923. tableName: '变更单文件信息表',
  1924. columnProp: 'createBy',
  1925. headerAlign: 'center',
  1926. align: 'center',
  1927. columnLabel: '创建人',
  1928. columnHidden: false,
  1929. columnImage: false,
  1930. status: true,
  1931. fixed: '',
  1932. columnWidth: 100
  1933. },
  1934. {
  1935. userId: this.$store.state.user.name,
  1936. functionId: 108002,
  1937. serialNumber: '108002Table3CreateDate',
  1938. tableId: '108002Table3',
  1939. tableName: '变更单文件信息表',
  1940. columnProp: 'createDate',
  1941. headerAlign: 'center',
  1942. align: 'center',
  1943. columnLabel: '创建时间',
  1944. columnHidden: false,
  1945. columnImage: false,
  1946. status: true,
  1947. fixed: '',
  1948. columnWidth: 150
  1949. },
  1950. ],
  1951. columnChooseDataList: [
  1952. {
  1953. userId: this.$store.state.user.name,
  1954. functionId: 108002,
  1955. serialNumber: '108002Table4PartNo',
  1956. tableId: '108002Table4',
  1957. tableName: '所选变更列表',
  1958. columnProp: 'partNo',
  1959. headerAlign: 'center',
  1960. align: 'center',
  1961. columnLabel: '正式物料编码',
  1962. columnHidden: false,
  1963. columnImage: false,
  1964. status: true,
  1965. fixed: '',
  1966. columnWidth: 100
  1967. },
  1968. {
  1969. userId: this.$store.state.user.name,
  1970. functionId: 108002,
  1971. serialNumber: '108002Table4PartDesc',
  1972. tableId: '108002Table4',
  1973. tableName: '所选变更列表',
  1974. columnProp: 'partDesc',
  1975. headerAlign: 'center',
  1976. align: 'left',
  1977. columnLabel: '物料描述',
  1978. columnHidden: false,
  1979. columnImage: false,
  1980. status: true,
  1981. fixed: '',
  1982. columnWidth: 180
  1983. },
  1984. {
  1985. userId: this.$store.state.user.name,
  1986. functionId: 108002,
  1987. serialNumber: '108002Table4DrawingNo',
  1988. tableId: '108002Table4',
  1989. tableName: '所选变更列表',
  1990. columnProp: 'drawingNo',
  1991. headerAlign: 'center',
  1992. align: 'center',
  1993. columnLabel: '图纸编码',
  1994. columnHidden: false,
  1995. columnImage: false,
  1996. status: true,
  1997. fixed: '',
  1998. columnWidth: 90
  1999. },
  2000. {
  2001. userId: this.$store.state.user.name,
  2002. functionId: 108002,
  2003. serialNumber: '108002Table4DraftNo',
  2004. tableId: '108002Table4',
  2005. tableName: '所选变更列表',
  2006. columnProp: 'draftNo',
  2007. headerAlign: 'center',
  2008. align: 'center',
  2009. columnLabel: '图稿编码',
  2010. columnHidden: false,
  2011. columnImage: false,
  2012. status: true,
  2013. fixed: '',
  2014. columnWidth: 90
  2015. },
  2016. ],
  2017. columnChooseItemList: [
  2018. {
  2019. columnProp: 'itemNo',
  2020. headerAlign: 'center',
  2021. align: 'center',
  2022. columnLabel: '属性编码',
  2023. columnHidden: false,
  2024. columnImage: false,
  2025. status: true,
  2026. fixed: '',
  2027. columnWidth: 80
  2028. },
  2029. {
  2030. columnProp: 'itemDesc',
  2031. headerAlign: 'center',
  2032. align: 'center',
  2033. columnLabel: '属性名称',
  2034. columnHidden: false,
  2035. columnImage: false,
  2036. status: true,
  2037. fixed: '',
  2038. columnWidth: 150
  2039. },
  2040. {
  2041. columnProp: 'itemExecutionDate',
  2042. headerAlign: 'center',
  2043. align: 'center',
  2044. columnLabel: '执行时间',
  2045. columnHidden: false,
  2046. columnImage: false,
  2047. status: true,
  2048. fixed: '',
  2049. columnWidth: 130
  2050. }
  2051. ],
  2052. columnChooseItemList2: [
  2053. {
  2054. columnProp: 'itemNo',
  2055. headerAlign: 'center',
  2056. align: 'center',
  2057. columnLabel: '属性编码',
  2058. columnHidden: false,
  2059. columnImage: false,
  2060. status: true,
  2061. fixed: '',
  2062. columnWidth: 80
  2063. },
  2064. {
  2065. columnProp: 'itemDesc',
  2066. headerAlign: 'center',
  2067. align: 'center',
  2068. columnLabel: '属性名称',
  2069. columnHidden: false,
  2070. columnImage: false,
  2071. status: true,
  2072. fixed: '',
  2073. columnWidth: 150
  2074. },
  2075. // {
  2076. // columnProp: 'executeFlag',
  2077. // headerAlign: 'center',
  2078. // align: 'center',
  2079. // columnLabel: '是否执行',
  2080. // columnHidden: false,
  2081. // columnImage: false,
  2082. // status: true,
  2083. // fixed: '',
  2084. // columnWidth: 80
  2085. // },
  2086. // {
  2087. // columnProp: 'executor',
  2088. // headerAlign: 'center',
  2089. // align: 'center',
  2090. // columnLabel: '执行人',
  2091. // columnHidden: false,
  2092. // columnImage: false,
  2093. // status: true,
  2094. // fixed: '',
  2095. // columnWidth: 100
  2096. // },
  2097. // {
  2098. // columnProp: 'itemExecutionDate',
  2099. // headerAlign: 'center',
  2100. // align: 'center',
  2101. // columnLabel: '执行时间',
  2102. // columnHidden: false,
  2103. // columnImage: false,
  2104. // status: true,
  2105. // fixed: '',
  2106. // columnWidth: 150
  2107. // }
  2108. ],
  2109. columnItemList: [
  2110. {
  2111. userId: this.$store.state.user.name,
  2112. functionId: 108002,
  2113. serialNumber: '108002Table6ItemNo',
  2114. tableId: '108002Table6',
  2115. tableName: '执行属性表',
  2116. columnProp: 'itemNo',
  2117. headerAlign: 'center',
  2118. align: 'center',
  2119. columnLabel: '属性编码',
  2120. columnHidden: false,
  2121. columnImage: false,
  2122. status: true,
  2123. fixed: '',
  2124. columnWidth: 80
  2125. },
  2126. {
  2127. userId: this.$store.state.user.name,
  2128. functionId: 108002,
  2129. serialNumber: '108002Table6ItemDesc',
  2130. tableId: '108002Table6',
  2131. tableName: '执行属性表',
  2132. columnProp: 'itemDesc',
  2133. headerAlign: 'center',
  2134. align: 'center',
  2135. columnLabel: '属性名称',
  2136. columnHidden: false,
  2137. columnImage: false,
  2138. status: true,
  2139. fixed: '',
  2140. columnWidth: 150
  2141. },
  2142. ],
  2143. columnItemList2: [
  2144. {
  2145. columnProp: 'itemNo',
  2146. headerAlign: 'center',
  2147. align: 'center',
  2148. columnLabel: '属性编码',
  2149. columnHidden: false,
  2150. columnImage: false,
  2151. status: true,
  2152. fixed: '',
  2153. columnWidth: 80
  2154. },
  2155. {
  2156. columnProp: 'itemDesc',
  2157. headerAlign: 'center',
  2158. align: 'center',
  2159. columnLabel: '属性名称',
  2160. columnHidden: false,
  2161. columnImage: false,
  2162. status: true,
  2163. fixed: '',
  2164. columnWidth: 150
  2165. },
  2166. ],
  2167. columnCSItemList: [
  2168. {
  2169. userId: this.$store.state.user.name,
  2170. functionId: 108001,
  2171. serialNumber: '108001Table5ItemNo',
  2172. tableId: '108001Table5',
  2173. tableName: '执行属性表',
  2174. columnProp: 'itemNo',
  2175. headerAlign: 'center',
  2176. align: 'center',
  2177. columnLabel: '属性编码',
  2178. columnHidden: false,
  2179. columnImage: false,
  2180. status: true,
  2181. fixed: '',
  2182. columnWidth: 80
  2183. },
  2184. {
  2185. userId: this.$store.state.user.name,
  2186. functionId: 108001,
  2187. serialNumber: '108001Table5ItemDesc',
  2188. tableId: '108001Table5',
  2189. tableName: '执行属性表',
  2190. columnProp: 'itemDesc',
  2191. headerAlign: 'center',
  2192. align: 'center',
  2193. columnLabel: '属性名称',
  2194. columnHidden: false,
  2195. columnImage: false,
  2196. status: true,
  2197. fixed: '',
  2198. columnWidth: 150
  2199. },
  2200. ],
  2201. columnCSChooseItemList: [
  2202. {
  2203. userId: this.$store.state.user.name,
  2204. functionId: 108002,
  2205. serialNumber: '108002Table7ItemNo',
  2206. tableId: '108002Table7',
  2207. tableName: '执行属性表',
  2208. columnProp: 'itemNo',
  2209. headerAlign: 'center',
  2210. align: 'left',
  2211. columnLabel: '属性编码',
  2212. columnHidden: false,
  2213. columnImage: false,
  2214. status: true,
  2215. fixed: '',
  2216. columnWidth: 100
  2217. },
  2218. {
  2219. userId: this.$store.state.user.name,
  2220. functionId: 108002,
  2221. serialNumber: '108002Table7ItemDesc',
  2222. tableId: '108002Table7',
  2223. tableName: '执行属性表',
  2224. columnProp: 'itemDesc',
  2225. headerAlign: 'center',
  2226. align: 'left',
  2227. columnLabel: '属性名称',
  2228. columnHidden: false,
  2229. columnImage: false,
  2230. status: true,
  2231. fixed: '',
  2232. columnWidth: 200
  2233. },
  2234. // {
  2235. // userId: this.$store.state.user.name,
  2236. // functionId: 108002,
  2237. // serialNumber: '108002Table7ExecuteFlag',
  2238. // tableId: '108002Table7',
  2239. // tableName: '执行属性表',
  2240. // columnProp: 'executeFlag',
  2241. // headerAlign: 'center',
  2242. // align: 'center',
  2243. // columnLabel: '是否执行',
  2244. // columnHidden: false,
  2245. // columnImage: false,
  2246. // status: true,
  2247. // fixed: '',
  2248. // columnWidth: 80
  2249. // },
  2250. // {
  2251. // userId: this.$store.state.user.name,
  2252. // functionId: 108002,
  2253. // serialNumber: '108002Table7Executor',
  2254. // tableId: '108002Table7',
  2255. // tableName: '执行属性表',
  2256. // columnProp: 'executor',
  2257. // headerAlign: 'center',
  2258. // align: 'center',
  2259. // columnLabel: '执行人',
  2260. // columnHidden: false,
  2261. // columnImage: false,
  2262. // status: true,
  2263. // fixed: '',
  2264. // columnWidth: 100
  2265. // },{
  2266. // userId: this.$store.state.user.name,
  2267. // functionId: 108002,
  2268. // serialNumber: '108002Table7ExecuteDate',
  2269. // tableId: '108002Table7',
  2270. // tableName: '执行属性表',
  2271. // columnProp: 'itemExecutionDate',
  2272. // headerAlign: 'center',
  2273. // align: 'center',
  2274. // columnLabel: '执行时间',
  2275. // columnHidden: false,
  2276. // columnImage: false,
  2277. // status: true,
  2278. // fixed: '',
  2279. // columnWidth: 150
  2280. // },
  2281. ],
  2282. approvalColumnList: [
  2283. {
  2284. userId: this.$store.state.user.name,
  2285. functionId: 108002,
  2286. serialNumber: '108002Table8ClassificationNo',
  2287. tableId: '108002Table8',
  2288. tableName: '审批信息',
  2289. columnProp: 'classificationNo',
  2290. headerAlign: 'center',
  2291. align: 'center',
  2292. columnLabel: '流程分类编码',
  2293. columnHidden: false,
  2294. columnImage: false,
  2295. status: true,
  2296. fixed: '',
  2297. columnWidth: 120
  2298. },
  2299. {
  2300. userId: this.$store.state.user.name,
  2301. functionId: 108002,
  2302. serialNumber: '108002Table8ItemDesc',
  2303. tableId: '108002Table8',
  2304. tableName: '审批信息',
  2305. columnProp: 'nodeName',
  2306. headerAlign: 'center',
  2307. align: 'left',
  2308. columnLabel: '节点名称',
  2309. columnHidden: false,
  2310. columnImage: false,
  2311. status: true,
  2312. fixed: '',
  2313. columnWidth: 200
  2314. },
  2315. {
  2316. userId: this.$store.state.user.name,
  2317. functionId: 108002,
  2318. serialNumber: '108002Table8RejectFlag',
  2319. tableId: '108002Table8',
  2320. tableName: '审批信息',
  2321. columnProp: 'rejectFlagDesc',
  2322. headerAlign: 'center',
  2323. align: 'center',
  2324. columnLabel: '是否被驳回',
  2325. columnHidden: false,
  2326. columnImage: false,
  2327. status: true,
  2328. fixed: '',
  2329. columnWidth: 100
  2330. },
  2331. {
  2332. userId: this.$store.state.user.name,
  2333. functionId: 108002,
  2334. serialNumber: '108002Table8RejectNodeName',
  2335. tableId: '108002Table8',
  2336. tableName: '审批信息',
  2337. columnProp: 'rejectNodeName',
  2338. headerAlign: 'center',
  2339. align: 'center',
  2340. columnLabel: '被驳回节点名称',
  2341. columnHidden: false,
  2342. columnImage: false,
  2343. status: true,
  2344. fixed: '',
  2345. columnWidth: 200
  2346. },
  2347. {
  2348. userId: this.$store.state.user.name,
  2349. functionId: 108002,
  2350. serialNumber: '108002Table8NodeConclusionDesc',
  2351. tableId: '108002Table8',
  2352. tableName: '审批信息',
  2353. columnProp: 'nodeConclusionDesc',
  2354. headerAlign: 'center',
  2355. align: 'center',
  2356. columnLabel: '节点结论',
  2357. columnHidden: false,
  2358. columnImage: false,
  2359. status: true,
  2360. fixed: '',
  2361. columnWidth: 100
  2362. },
  2363. {
  2364. userId: this.$store.state.user.name,
  2365. functionId: 108002,
  2366. serialNumber: '108002Table8CreateDate',
  2367. tableId: '108002Table8',
  2368. tableName: '审批信息',
  2369. columnProp: 'createDate',
  2370. headerAlign: 'center',
  2371. align: 'center',
  2372. columnLabel: '提交时间',
  2373. columnHidden: false,
  2374. columnImage: false,
  2375. status: true,
  2376. fixed: '',
  2377. columnWidth: 170
  2378. },
  2379. {
  2380. userId: this.$store.state.user.name,
  2381. functionId: 108002,
  2382. serialNumber: '108002Table8CreateBy',
  2383. tableId: '108002Table8',
  2384. tableName: '审批信息',
  2385. columnProp: 'createBy',
  2386. headerAlign: 'center',
  2387. align: 'center',
  2388. columnLabel: '提交人员',
  2389. columnHidden: false,
  2390. columnImage: false,
  2391. status: true,
  2392. fixed: '',
  2393. columnWidth: 100
  2394. },
  2395. {
  2396. userId: this.$store.state.user.name,
  2397. functionId: 108002,
  2398. serialNumber: '108002Table8RejectOpinion',
  2399. tableId: '108002Table8',
  2400. tableName: '审批信息',
  2401. columnProp: 'rejectOpinion',
  2402. headerAlign: 'center',
  2403. align: 'left',
  2404. columnLabel: '驳回意见',
  2405. columnHidden: false,
  2406. columnImage: false,
  2407. status: true,
  2408. fixed: '',
  2409. columnWidth: 300
  2410. },
  2411. ],
  2412. partColumnList: [
  2413. {
  2414. columnProp: 'finalPartNo',
  2415. headerAlign: "center",
  2416. align: "left",
  2417. columnLabel: 'IFS料号',
  2418. columnHidden: false,
  2419. columnImage: false,
  2420. columnSortable: false,
  2421. sortLv: 0,
  2422. status: true,
  2423. fixed: '',
  2424. columnWidth: 120
  2425. },
  2426. {
  2427. columnProp: 'testPartNo',
  2428. headerAlign: "center",
  2429. align: "left",
  2430. columnLabel: '物料编码',
  2431. columnHidden: false,
  2432. columnImage: false,
  2433. columnSortable: false,
  2434. sortLv: 0,
  2435. status: true,
  2436. fixed: '',
  2437. columnWidth: 120
  2438. },
  2439. {
  2440. columnProp: 'customerPartNo',
  2441. headerAlign: "center",
  2442. align: "left",
  2443. columnLabel: '客户料号',
  2444. columnHidden: false,
  2445. columnImage: false,
  2446. columnSortable: false,
  2447. sortLv: 0,
  2448. status: true,
  2449. fixed: '',
  2450. columnWidth: 120
  2451. },
  2452. {
  2453. columnProp: 'partDesc',
  2454. headerAlign: "center",
  2455. align: "left",
  2456. columnLabel: '物料名称',
  2457. columnHidden: false,
  2458. columnImage: false,
  2459. status: true,
  2460. fixed: '',
  2461. columnWidth: 200
  2462. },
  2463. ],
  2464. // ======== 必填规则 ========
  2465. rules: {
  2466. applicantId: [
  2467. {
  2468. required: true,
  2469. message: ' ',
  2470. trigger: ['blur','change']
  2471. }
  2472. ],
  2473. applyDate: [
  2474. {
  2475. required: true,
  2476. message: ' ',
  2477. trigger: ['blur','change']
  2478. }
  2479. ],
  2480. changeImpact: [
  2481. {
  2482. required: true,
  2483. message: ' ',
  2484. trigger: ['blur','change']
  2485. }
  2486. ],
  2487. changeImpactDesc: [
  2488. {
  2489. required: true,
  2490. message: ' ',
  2491. trigger: ['blur','change']
  2492. }
  2493. ],
  2494. ecnStage: [
  2495. {
  2496. required: true,
  2497. message: ' ',
  2498. trigger: ['blur','change']
  2499. }
  2500. ],
  2501. changeType: [
  2502. {
  2503. required: true,
  2504. message: ' ',
  2505. trigger: ['blur','change']
  2506. }
  2507. ],
  2508. tpEngineerId: [
  2509. {
  2510. required: true,
  2511. message: ' ',
  2512. trigger: ['blur','change']
  2513. }
  2514. ],
  2515. changePhaseInDate: [
  2516. {
  2517. required: true,
  2518. message: ' ',
  2519. trigger: ['blur','change']
  2520. }
  2521. ],
  2522. dfIsProduct: [
  2523. {
  2524. required: true,
  2525. message: ' ',
  2526. trigger: ['blur','change']
  2527. }
  2528. ],
  2529. printing: [
  2530. {
  2531. required: true,
  2532. message: ' ',
  2533. trigger: ['blur','change']
  2534. }
  2535. ],
  2536. manufacturingCostIsChange: [
  2537. {
  2538. required: true,
  2539. message: ' ',
  2540. trigger: ['blur','change']
  2541. }
  2542. ],
  2543. changeRequestDesc: [
  2544. {
  2545. required: true,
  2546. message: ' ',
  2547. trigger: ['blur','change']
  2548. }
  2549. ],
  2550. isReQuote: [
  2551. {
  2552. required: true,
  2553. message: ' ',
  2554. trigger: ['blur','change']
  2555. }
  2556. ],
  2557. ulCertificationRequirements: [
  2558. {
  2559. required: true,
  2560. message: ' ',
  2561. trigger: ['blur','change']
  2562. }
  2563. ],
  2564. ulContinueToMeetDemand: [
  2565. {
  2566. required: true,
  2567. message: ' ',
  2568. trigger: ['blur','change']
  2569. }
  2570. ],
  2571. gpCertificationRequirements: [
  2572. {
  2573. required: true,
  2574. message: ' ',
  2575. trigger: ['blur','change']
  2576. }
  2577. ],
  2578. gpContinueToMeetDemand: [
  2579. {
  2580. required: true,
  2581. message: ' ',
  2582. trigger: ['blur','change']
  2583. }
  2584. ],
  2585. ecnType: [
  2586. {
  2587. required: true,
  2588. message: ' ',
  2589. trigger: ['blur','change']
  2590. }
  2591. ],
  2592. },
  2593. // ======== 复选数据集 ========
  2594. fileSelections: [],
  2595. itemSelections: [],
  2596. dataSelections2: [],
  2597. // ======== 选中的当前行数据 ========
  2598. currentRow: {},
  2599. currentCostImpactData: {},
  2600. // ======== 模态框开关控制 ========
  2601. modalFlag: false,
  2602. modalDisableFlag: false,
  2603. ecnTypeModalFlag: false,
  2604. chooseModelFlag: false,
  2605. chooseModelFlag2: false,
  2606. chooseCSModelFlag: false,
  2607. uploadDialog: false,
  2608. submitModalFlag: false,
  2609. addDetailModal: false,
  2610. saveLoading: false,
  2611. submitLoading: false,
  2612. menuId: this.$route.meta.menuId,
  2613. authSearch: false,
  2614. authUpdate: false,
  2615. authIssue: false,
  2616. authSubmit: false,
  2617. authReject: false,
  2618. authFileSave: false,
  2619. authFileDownLoad: false,
  2620. authFileRemove: false,
  2621. authFilePreview: false,
  2622. partModelFlag: false,
  2623. }
  2624. },
  2625. mounted () {
  2626. this.$nextTick(() => {
  2627. this.height = window.innerHeight / 2 - 30
  2628. /*第二个表格高度的动态调整*/
  2629. this.secondHeight = window.innerHeight / 2 - 186
  2630. })
  2631. },
  2632. activated () {
  2633. if (this.authSearch) {
  2634. if (this.$route.params.type === 'tokenLogin') {
  2635. if (this.$route.params.docNo) {
  2636. this.searchData.changeNo = this.$route.params.docNo
  2637. }
  2638. this.searchData.limit = this.pageSize
  2639. this.searchData.page = this.pageIndex
  2640. changeRecordSearch(this.searchData).then(({data}) => {
  2641. if (data.code === 0) {
  2642. this.dataList = data.page.list
  2643. this.pageIndex = data.page.currPage
  2644. this.pageSize = data.page.pageSize
  2645. this.totalPage = data.page.totalCount
  2646. // 判断是否全部存在数据
  2647. if (this.dataList.length > 0) {
  2648. // 设置选中行
  2649. this.$refs.changeTable.setCurrentRow(this.dataList[0])
  2650. this.updateModal(this.dataList[0])
  2651. } else {
  2652. this.currentRow = {}
  2653. }
  2654. // 加载当前的页签的table
  2655. this.refreshCurrentTabTable()
  2656. }
  2657. })
  2658. } else {
  2659. if (this.$route.params.changeNo) {
  2660. this.searchData.changeNo = this.$route.params.changeNo
  2661. }
  2662. this.getDataList()
  2663. }
  2664. }
  2665. },
  2666. created () {
  2667. // 按钮控制
  2668. this.getButtonAuthData()
  2669. this.getEcnModel()
  2670. this.getEcnModel2()
  2671. this.getEcnCSModel()
  2672. this.getBuBySite()
  2673. },
  2674. methods: {
  2675. // 获取用户的bu
  2676. getBuBySite () {
  2677. let tempData = {
  2678. site: this.$store.state.user.site,
  2679. }
  2680. getBuBySite(tempData).then(({data}) => {
  2681. if (data.code === 0) {
  2682. this.buList = data.rows
  2683. }
  2684. })
  2685. },
  2686. // 查询ECN的评估模板
  2687. getEcnModel2 () {
  2688. let tempData = {
  2689. site: this.$store.state.user.site,
  2690. functionType: 'ECN',
  2691. codeNo: 'E002'
  2692. }
  2693. getEcnModel(tempData).then(({data}) => {
  2694. if (data.code === 0) {
  2695. this.modelList2 = data.rows
  2696. }
  2697. })
  2698. },
  2699. // 查询会签的模板
  2700. getEcnCSModel () {
  2701. let tempData = {
  2702. site: this.$store.state.user.site,
  2703. functionType: 'ECN',
  2704. codeNo: 'E003'
  2705. }
  2706. getEcnModel(tempData).then(({data}) => {
  2707. if (data.code === 0) {
  2708. this.modelCSList = data.rows
  2709. }
  2710. })
  2711. },
  2712. // 选择模板属性
  2713. chooseFeasibilityAssessmentModel () {
  2714. this.chooseModelData2 = {
  2715. site: this.$store.state.user.site,
  2716. itemNo: '',
  2717. itemDesc: '',
  2718. functionType: 'ECN',
  2719. codeNo: this.modelList2.length > 0 ? this.modelList2[0].codeNo : ''
  2720. }
  2721. // 先清空缓存选中
  2722. //this.$nextTick(() => this.$refs.itemTable2.clearSelection())
  2723. getItemList(this.chooseModelData2).then(({data}) => {
  2724. if (data && data.code === 0) {
  2725. this.itemList2 = data.rows
  2726. this.itemList2.forEach(val => {
  2727. // 回显选中
  2728. if (this.chooseItemList2.map(val => val.itemNo).includes(val.itemNo)) {
  2729. this.$nextTick(() => this.$refs.itemTable2.toggleRowSelection(val, true))
  2730. }
  2731. })
  2732. } else {
  2733. this.$alert(data.msg, '错误', {
  2734. confirmButtonText: '确定'
  2735. })
  2736. }
  2737. })
  2738. this.chooseModelFlag2 = true
  2739. },
  2740. // 选择会签模板属性
  2741. chooseCSModel () {
  2742. this.chooseCSModelData = {
  2743. site: this.$store.state.user.site,
  2744. itemNo: '',
  2745. itemDesc: '',
  2746. functionType: 'ECN',
  2747. codeNo: this.modelCSList.length > 0 ? this.modelCSList[0].codeNo : ''
  2748. }
  2749. // 先清空缓存选中
  2750. this.$nextTick(() => this.$refs.itemCSTable.clearSelection())
  2751. // 查询所有属性
  2752. getItemList(this.chooseCSModelData).then(({data}) => {
  2753. if (data && data.code === 0) {
  2754. this.itemCSList = data.rows
  2755. this.itemCSList.forEach(val => {
  2756. // 回显选中的部门
  2757. if (this.chooseCSItemList.map(val => val.itemNo).includes(val.itemNo)) {
  2758. this.$nextTick(() => this.$refs.itemCSTable.toggleRowSelection(val, true))
  2759. }
  2760. })
  2761. } else {
  2762. this.$alert(data.msg, '错误', {
  2763. confirmButtonText: '确定'
  2764. })
  2765. }
  2766. })
  2767. this.chooseCSModelFlag = true
  2768. },
  2769. // 确认多选属性
  2770. confirmItem2 () {
  2771. if (this.itemSelections2.length === 0) {
  2772. this.$message.warning("请勾选属性!")
  2773. return
  2774. }
  2775. // 临时集合
  2776. let temp = []
  2777. // 首先,遍历a,检查每个对象的名字是否在b中也存在
  2778. this.chooseItemList2.forEach(itemA => {
  2779. if (this.itemSelections2.some(itemB => itemB.itemNo === itemA.itemNo)) {
  2780. // 如果存在,则将a中的对象添加到结果中(这里直接用a的原对象,因为要求是保留a中对象)
  2781. temp.push(itemA)
  2782. }
  2783. })
  2784. // 然后,遍历b,检查是否有对象的名字不在结果中已存在的名字中
  2785. this.itemSelections2.forEach(itemB => {
  2786. if (!temp.some(itemR => itemR.itemNo === itemB.itemNo)) {
  2787. // 如果b中的对象名字不在结果中,则添加到结果中
  2788. temp.push(itemB)
  2789. }
  2790. })
  2791. this.chooseItemList2 = temp
  2792. this.chooseModelFlag2 = false
  2793. },
  2794. // 确认多选CS属性
  2795. confirmCSItem () {
  2796. if (this.itemCSSelections.length === 0) {
  2797. this.$message.warning("请勾选属性!")
  2798. return
  2799. }
  2800. // 临时集合
  2801. let temp = []
  2802. // 首先,遍历a,检查每个对象的名字是否在b中也存在
  2803. this.chooseCSItemList.forEach(itemA => {
  2804. if (this.itemCSSelections.some(itemB => itemB.itemNo === itemA.itemNo)) {
  2805. // 如果存在,则将a中的对象添加到结果中(这里直接用a的原对象,因为要求是保留a中对象)
  2806. temp.push(itemA)
  2807. }
  2808. })
  2809. // 然后,遍历b,检查是否有对象的名字不在结果中已存在的名字中
  2810. this.itemCSSelections.forEach(itemB => {
  2811. if (!temp.some(itemR => itemR.itemNo === itemB.itemNo)) {
  2812. // 如果b中的对象名字不在结果中,则添加到结果中
  2813. temp.push(itemB)
  2814. }
  2815. })
  2816. this.chooseCSItemList = temp
  2817. this.chooseCSModelFlag = false
  2818. },
  2819. // 查询属性
  2820. searchItemList2 () {
  2821. getItemList(this.chooseModelData2).then(({data}) => {
  2822. if (data.code === 0) {
  2823. this.itemList2 = data.rows
  2824. }
  2825. })
  2826. },
  2827. // 查询CS属性
  2828. searchCSItemList () {
  2829. getItemList(this.chooseCSModelData).then(({data}) => {
  2830. if (data.code === 0) {
  2831. this.itemCSList = data.rows
  2832. }
  2833. })
  2834. },
  2835. // 单机选择
  2836. itemClickRow2 (row) {
  2837. this.$refs.itemTable2.toggleRowSelection(row)
  2838. },
  2839. // 单击选择
  2840. itemCSClickRow (row) {
  2841. this.$refs.itemCSTable.toggleRowSelection(row)
  2842. },
  2843. // 复选属性
  2844. selectionItem2 (val) {
  2845. this.itemSelections2 = val
  2846. },
  2847. // 复选CS属性
  2848. selectionCSItem (val) {
  2849. this.itemCSSelections = val
  2850. },
  2851. // 获取流程的配置权限
  2852. async getNodeAuthority (row) {
  2853. let tempData = {
  2854. site: row.site,
  2855. changeNo: row.changeNo,
  2856. stepId: row.stepId,
  2857. menuId: this.$route.meta.menuId
  2858. }
  2859. await getNodeAuthority(tempData).then(({data}) => {
  2860. if (data && data.code === 0) {
  2861. this.plmChangeRequestArr = data.rows.plm_change_request
  2862. this.plmChangeRequestDetailArr = data.rows.plm_change_request_detail
  2863. this.plmChangeCostImpactArr = data.rows.plm_change_cost_impact
  2864. this.plmChangeFAItemArr = data.rows.plm_change_FA_item
  2865. this.plmChangeExecutionInfoArr = data.rows.plm_change_execution_info
  2866. this.plmChangeItemArr = data.rows.plm_change_item
  2867. this.plmChangeCountersignatureItemArr = data.rows.plm_change_countersignature_item
  2868. }
  2869. })
  2870. },
  2871. // ======= 正则校验 =======
  2872. handleInput (value, type) {
  2873. // 大于等于0,且只能输入16位小数
  2874. let val = value.replace(/^\D*([0-9]\d*\.?\d{0,16})?.*$/,'$1')
  2875. if (val === null || val === undefined || val === '') {
  2876. val = 0
  2877. }
  2878. if (type === 1) {
  2879. this.costImpactData.productionProductScrapAmount = val
  2880. } else if (type === 2) {
  2881. this.costImpactData.inventoryProductScrapAmount = val
  2882. } else if (type === 3) {
  2883. this.costImpactData.affectedScrapAmount = val
  2884. }
  2885. },
  2886. partInput (row, val) {
  2887. row.newPartNo = val.toUpperCase()
  2888. },
  2889. executorInput (row, val) {
  2890. //row.executor = val.toUpperCase()
  2891. },
  2892. choosePartNo (row) {
  2893. this.partData.site = row.site
  2894. this.partData.buNo = row.buNo
  2895. this.tempPartRow = row
  2896. if (this.tempPartRow.newPartNo == null) {
  2897. this.tempPartRow.newPartNo = ''
  2898. }
  2899. this.queryPartList()
  2900. //this.getBaseList(133)
  2901. },
  2902. // 查询物料
  2903. queryPartList () {
  2904. this.partData.limit = this.pageSize2
  2905. this.partData.page = this.pageIndex2
  2906. choosePartNoList(this.partData).then(({data}) => {
  2907. if (data && data.code === 0) {
  2908. this.partList = data.page.list
  2909. this.pageIndex2 = data.page.currPage
  2910. this.pageSize2 = data.page.pageSize
  2911. this.totalPage2 = data.page.totalCount
  2912. this.partModelFlag = true
  2913. } else {
  2914. this.partList = []
  2915. }
  2916. })
  2917. },
  2918. // 双击选中物料
  2919. getRowData (row) {
  2920. this.$set(this.tempPartRow,'newPartNo', row.testPartNo)
  2921. this.partModelFlag = false
  2922. },
  2923. // 每页数
  2924. sizeChangeHandle2 (val) {
  2925. this.pageSize2 = val
  2926. this.pageIndex2 = 1
  2927. this.queryPartList()
  2928. },
  2929. // 当前页
  2930. currentChangeHandle2 (val) {
  2931. this.pageIndex2 = val
  2932. this.queryPartList()
  2933. },
  2934. chooseExecutor (row) {
  2935. this.tempExecutorRow = row
  2936. if (this.tempExecutorRow.executor == null) {
  2937. this.tempExecutorRow.executor = ''
  2938. }
  2939. this.getBaseList(103, 7)
  2940. },
  2941. ecnTypeHeaderChange (val,index) {
  2942. if (val === 'Y') {
  2943. for (let i = 0; i < this.form[index].list.length; i++) {
  2944. this.form[index].list[i].flag = 'Y'
  2945. }
  2946. } else {
  2947. for (let i = 0; i < this.form[index].list.length; i++) {
  2948. this.form[index].list[i].flag = 'N'
  2949. }
  2950. }
  2951. },
  2952. ecnTypeDetailChange (val,index) {
  2953. if (this.form[index].list.every(x => x.flag === 'Y')) {
  2954. this.form[index].flag = 'Y'
  2955. }else {
  2956. this.form[index].flag = 'N'
  2957. }
  2958. },
  2959. // ======== 分页相关方法 ========
  2960. // 每页数
  2961. sizeChangeHandle (val) {
  2962. this.pageSize = val
  2963. this.pageIndex = 1
  2964. this.getDataList()
  2965. },
  2966. // 当前页
  2967. currentChangeHandle (val) {
  2968. this.pageIndex = val
  2969. this.getDataList()
  2970. },
  2971. // ======== 列表选择相关方法 ========
  2972. selectFlag () {
  2973. return true
  2974. },
  2975. // ======== 页签切换相关方法 ========
  2976. // 单机选中询价信息
  2977. changeClickRow (row) {
  2978. this.$refs.changeTable.toggleRowSelection(row)
  2979. this.currentRow = JSON.parse(JSON.stringify(row))
  2980. },
  2981. // // 列表表格选择替换
  2982. // tabClick (tab, event) {
  2983. // // 刷新列表数据
  2984. // this.refreshCurrentTabTable()
  2985. // },
  2986. // 当前值发生变化的时候修改
  2987. currentChange (row, oldRow) {
  2988. // 判断是否是获取焦点的事件
  2989. if (row) {
  2990. this.currentRow = JSON.parse(JSON.stringify(row))
  2991. // 刷新当前页表
  2992. this.refreshCurrentTabTable()
  2993. }
  2994. },
  2995. // 刷新页签的table数据
  2996. refreshChangeTab () {
  2997. if (this.activeName === 'inventoryCostImpact') {
  2998. } else if (this.activeName === 'actionInformation') {
  2999. }
  3000. },
  3001. // 新增库存成本影响
  3002. inventoryCostImpactSave () {
  3003. if (this.costImpactData.productionProductFlag === 'Y') { // 在生产品
  3004. if (this.costImpactData.productionProductNumber == null || this.costImpactData.productionProductNumber === '') {
  3005. this.$message.warning('请填写在生产品数量!')
  3006. return
  3007. }
  3008. if (this.costImpactData.productionProductNumber <= 0) {
  3009. this.$message.warning('在生产品数量不能小于等于0!')
  3010. return
  3011. }
  3012. if (this.costImpactData.productionProductOpinions == null || this.costImpactData.productionProductOpinions === '') {
  3013. this.$message.warning('请填写在生产品处理意见!')
  3014. return
  3015. }
  3016. if (this.costImpactData.productionProductScrapAmount === 0) {
  3017. this.$message.warning('请填写在生产品报废金额!')
  3018. return
  3019. }
  3020. if (this.costImpactData.productionProductExecutor == null || this.costImpactData.productionProductExecutor === '') {
  3021. this.$message.warning('请填写在生产品执行人!')
  3022. return
  3023. }
  3024. }
  3025. if (this.costImpactData.inventoryProductFlag === 'Y') { // 成品库存
  3026. if (this.costImpactData.inventoryProductNumber == null || this.costImpactData.inventoryProductNumber === '') {
  3027. this.$message.warning('请填写成品库存数量!')
  3028. return
  3029. }
  3030. if (this.costImpactData.inventoryProductNumber <= 0) {
  3031. this.$message.warning('成品库存数量不能小于等于0!')
  3032. return
  3033. }
  3034. if (this.costImpactData.inventoryProductOpinions == null || this.costImpactData.inventoryProductOpinions === '') {
  3035. this.$message.warning('请填写成品库存处理意见!')
  3036. return
  3037. }
  3038. if (this.costImpactData.inventoryProductScrapAmount === 0) {
  3039. this.$message.warning('请填写成品库存报废金额!')
  3040. return
  3041. }
  3042. if (this.costImpactData.inventoryProductExecutor == null || this.costImpactData.inventoryProductExecutor === '') {
  3043. this.$message.warning('请填写成品库存执行人!')
  3044. return
  3045. }
  3046. }
  3047. if (this.costImpactData.newOrderFlag === 'Y') { // 新订单
  3048. if (this.costImpactData.newOrderNumber == null || this.costImpactData.newOrderNumber === '') {
  3049. this.$message.warning('请填写新订单数量!')
  3050. return
  3051. }
  3052. if (this.costImpactData.newOrderNumber <= 0) {
  3053. this.$message.warning('新订单数量不能小于等于0!')
  3054. return
  3055. }
  3056. }
  3057. if (this.costImpactData.affectedFlag === 'Y') { // 影响的原材料及其库存量
  3058. if (this.costImpactData.affectedNumber == null || this.costImpactData.affectedNumber === '') {
  3059. this.$message.warning('请填写影响的原材料及其库存量数量!')
  3060. return
  3061. }
  3062. if (this.costImpactData.affectedNumber <= 0) {
  3063. this.$message.warning('影响的原材料及其库存量数量不能小于等于0!')
  3064. return
  3065. }
  3066. if (this.costImpactData.affectedOpinions == null || this.costImpactData.affectedOpinions === '') {
  3067. this.$message.warning('请填写影响的原材料及其库存量处理意见!')
  3068. return
  3069. }
  3070. if (this.costImpactData.affectedScrapAmount === 0) {
  3071. this.$message.warning('请填写影响的原材料及其库存量报废金额!')
  3072. return
  3073. }
  3074. if (this.costImpactData.affectedExecutor == null || this.costImpactData.affectedExecutor === '') {
  3075. this.$message.warning('请填写影响的原材料及其库存量执行人!')
  3076. return
  3077. }
  3078. }
  3079. this.costImpactData.changeTotalCost = this.totalCost
  3080. costImpactUpdate(this.costImpactData).then(({data}) => {
  3081. if (data && data.code === 0) {
  3082. this.costImpactData = data.rows.costImpactData
  3083. this.getDataList()
  3084. this.$message({
  3085. message: '操作成功',
  3086. type: 'success',
  3087. duration: 1500,
  3088. onClose: () => {}
  3089. })
  3090. } else {
  3091. this.$alert(data.msg, '错误', {
  3092. confirmButtonText: '确定'
  3093. })
  3094. }
  3095. })
  3096. },
  3097. // 刷新页签的table数据
  3098. refreshCurrentTabTable () {
  3099. if (this.activeTable === 'basicInformation') {
  3100. this.getChangeDetailList()
  3101. } else if (this.activeTable === 'fileInformation') {
  3102. this.getChangeFileList()
  3103. } else if (this.activeTable === 'inventoryCostImpact') {
  3104. this.inventoryCostImpactSearch2()
  3105. } else if (this.activeTable === 'approvalInformation') {
  3106. this.getApprovalList()
  3107. }
  3108. },
  3109. // ======== 列表数据刷新方法 ========
  3110. // 获取数据列表
  3111. getDataList () {
  3112. if(localStorage.getItem('ecnData')!=undefined){
  3113. let data=JSON.parse(localStorage.getItem('ecnData'));
  3114. this.searchData.changeNo=data.ecnNo
  3115. localStorage.removeItem('ecnData');
  3116. }
  3117. this.searchData.limit = this.pageSize
  3118. this.searchData.page = this.pageIndex
  3119. changeRecordSearch(this.searchData).then(({data}) => {
  3120. if (data.code === 0) {
  3121. this.dataList = data.page.list
  3122. this.pageIndex = data.page.currPage
  3123. this.pageSize = data.page.pageSize
  3124. this.totalPage = data.page.totalCount
  3125. // 判断是否全部存在数据
  3126. if (this.dataList.length > 0) {
  3127. // 设置选中行
  3128. this.$refs.changeTable.setCurrentRow(this.dataList[0])
  3129. } else {
  3130. this.currentRow = {}
  3131. }
  3132. // 加载当前的页签的table
  3133. this.refreshCurrentTabTable()
  3134. }
  3135. })
  3136. },
  3137. // 变更单详情的列表
  3138. getChangeDetailList () {
  3139. let tempData = {
  3140. site: this.$store.state.user.site,
  3141. changeNo: this.currentRow.changeNo
  3142. }
  3143. changeDetailSearch(tempData).then(({data}) => {
  3144. if (data && data.code === 0) {
  3145. this.detailList = data.rows
  3146. } else {
  3147. this.detailList = []
  3148. }
  3149. })
  3150. },
  3151. // 变更单文件的列表
  3152. getChangeFileList () {
  3153. let tempData = {
  3154. orderRef1: this.$store.state.user.site,
  3155. orderRef2: this.currentRow.changeNo
  3156. }
  3157. changeFileSearch(tempData).then(({data}) => {
  3158. if (data && data.code === 0) {
  3159. this.fileList = data.rows
  3160. } else {
  3161. this.fileList = []
  3162. }
  3163. })
  3164. },
  3165. // 复选变更单文件
  3166. selectionFile (val) {
  3167. this.fileSelections = val
  3168. },
  3169. // 上传文件
  3170. uploadFileModal () {
  3171. let currentData = {
  3172. titleCon: '工程变更文件上传',
  3173. site: this.currentRow.site,
  3174. createBy: this.$store.state.user.name,
  3175. dataNo: this.currentRow.changeNo,
  3176. fileRemark: '',
  3177. folder: 'change',
  3178. }
  3179. this.uploadDialog = true
  3180. //打开组件 去做新增业务
  3181. // this.$nextTick(() => {
  3182. // this.$refs.changeUploadFile.init(currentData);
  3183. // })
  3184. },
  3185. // 删除变更单文件
  3186. deleteChangeFile () {
  3187. if (this.fileSelections.length === 0) {
  3188. this.$message.warning('请选择要删除的文件!')
  3189. return
  3190. }
  3191. let tempData = {
  3192. fileList: this.fileSelections
  3193. }
  3194. this.$confirm('确定删除文件?', '提示', {
  3195. confirmButtonText: '确定',
  3196. cancelButtonText: '取消',
  3197. type: 'warning'
  3198. }).then(() => {
  3199. deleteChangeFile(tempData).then(({data}) => {
  3200. if (data && data.code === 0) {
  3201. this.getChangeFileList()
  3202. this.$message({
  3203. message: '操作成功',
  3204. type: 'success',
  3205. duration: 1500,
  3206. onClose: () => {}
  3207. })
  3208. } else {
  3209. this.$alert(data.msg, '错误', {
  3210. confirmButtonText: '确定'
  3211. })
  3212. }
  3213. })
  3214. })
  3215. },
  3216. // 下载
  3217. downloadFile (row) {
  3218. downLoadQuotationFile(row)
  3219. .then(({data}) => {
  3220. // 不限制文件下载类型
  3221. const blob = new Blob([data], {type:'application/octet-stream;charset=utf-8'})
  3222. // 下载文件名称
  3223. const fileName = row.fileName
  3224. // a标签下载
  3225. const linkNode = document.createElement('a')
  3226. linkNode.download = fileName // a标签的download属性规定下载文件的名称
  3227. linkNode.style.display = 'none'
  3228. linkNode.href = URL.createObjectURL(blob) // 生成一个Blob URL
  3229. document.body.appendChild(linkNode)
  3230. linkNode.click() // 模拟在按钮上的一次鼠标单击
  3231. URL.revokeObjectURL(linkNode.href) // 释放URL 对象
  3232. document.body.removeChild(linkNode)
  3233. })
  3234. },
  3235. // 修改变更单模态框
  3236. async updateModal (row) {
  3237. await this.getNodeAuthority(row)
  3238. this.modalData = {
  3239. site: row.site,
  3240. changeNo: row.changeNo,
  3241. applicantId: row.applicantId,
  3242. applicantName: row.applicantName,
  3243. applicationDepartmentId: row.applicationDepartmentId,
  3244. applicationDepartmentName: row.applicationDepartmentName,
  3245. applyDate: row.applyDate,
  3246. ecnType: row.ecnType,
  3247. changeImpact: row.changeImpact,
  3248. changeImpactDesc: row.changeImpactDesc,
  3249. ecnStage: row.ecnStage,
  3250. changeType: row.changeType,
  3251. tpEngineerId: row.tpEngineerId,
  3252. tpEngineerName: row.tpEngineerName,
  3253. changePhaseInDate: row.changePhaseInDate,
  3254. dfIsProduct: row.dfIsProduct,
  3255. printing: row.printing,
  3256. manufacturingCostIsChange: row.manufacturingCostIsChange,
  3257. changeRequestDesc: row.changeRequestDesc,
  3258. isReQuote: row.isReQuote,
  3259. ulCertificationRequirements: row.ulCertificationRequirements,
  3260. ulContinueToMeetDemand: row.ulContinueToMeetDemand,
  3261. gpCertificationRequirements: row.gpCertificationRequirements,
  3262. gpContinueToMeetDemand: row.gpContinueToMeetDemand,
  3263. updateBy: this.$store.state.user.name,
  3264. detailList: [],
  3265. ecnTypeData: [],
  3266. industrialEngineerId: row.industrialEngineerId,
  3267. industrialEngineerName: row.industrialEngineerName,
  3268. changeStatus: row.changeStatus,
  3269. cqcOperatorId: row.cqcOperatorId,
  3270. cqcOperatorName: row.cqcOperatorName,
  3271. faiOperatorId: row.faiOperatorId,
  3272. faiOperatorName: row.faiOperatorName,
  3273. nodeConclusion: '',
  3274. rejectOpinion: '',
  3275. stepId: row.stepId,
  3276. rejectFlag: row.rejectFlag,
  3277. rejectStepId: row.rejectStepId,
  3278. isReject: row.isReject,
  3279. menuId: this.$route.meta.menuId,
  3280. userName: this.$store.state.user.name,
  3281. nodeId: row.nodeId,
  3282. buNo: row.buNo
  3283. }
  3284. this.changeTitle = '变更申请-' + this.modalData.changeNo
  3285. // 查选择的ECN种类
  3286. this.getChangeChooseEcnType()
  3287. // 查变更单明细
  3288. this.changeRequestDetailSearch()
  3289. // 查变更单库存成本影响
  3290. this.inventoryCostImpactSearch()
  3291. // 查变更单TP&执行信息
  3292. this.tpExecutionInfoSearch()
  3293. // 查变更单会签信息
  3294. this.countersignatureSearch()
  3295. this.activeName = 'basicInformation'
  3296. this.modalFlag = true
  3297. this.modalDisableFlag = true
  3298. },
  3299. // 下达
  3300. issueModal (row) {
  3301. this.$confirm(`是否确认下达?`, '提示', {
  3302. confirmButtonText: '确定',
  3303. cancelButtonText: '取消',
  3304. type: 'warning'
  3305. }).then(() => {
  3306. let tempData = {
  3307. site: row.site,
  3308. userName: this.$store.state.user.name,
  3309. changeNo: row.changeNo,
  3310. menuId: this.$route.meta.menuId
  3311. }
  3312. issueChange(tempData).then(({data}) => {
  3313. if (data && data.code === 0) {
  3314. this.getDataList()
  3315. this.$message({message: '操作成功', type: 'success'})
  3316. } else {
  3317. this.$alert(data.msg, '错误', {
  3318. confirmButtonText: '确定'
  3319. })
  3320. }
  3321. })
  3322. })
  3323. },
  3324. // 打开提交模态框
  3325. submitDataModal () {
  3326. this.rejectOpinion = ''
  3327. this.submitModalFlag = true
  3328. },
  3329. // 同意提交
  3330. agreeSubmit () {
  3331. this.$confirm(`是否确认提交?`, '提示', {
  3332. confirmButtonText: '确定',
  3333. cancelButtonText: '取消',
  3334. type: 'warning'
  3335. }).then(() => {
  3336. this.modalData.nodeConclusion = 'Y'
  3337. this.submitData()
  3338. })
  3339. },
  3340. // 驳回提交
  3341. rejectSubmit () {
  3342. this.$confirm(`是否确认驳回?`, '提示', {
  3343. confirmButtonText: '确定',
  3344. cancelButtonText: '取消',
  3345. type: 'warning'
  3346. }).then(() => {
  3347. this.modalData.rejectOpinion = this.rejectOpinion
  3348. this.modalData.nodeConclusion = 'N'
  3349. this.submitData()
  3350. })
  3351. },
  3352. // 提交
  3353. submitData () {
  3354. if (this.plmChangeRequestArr) {
  3355. for (let i = 0; i < this.plmChangeRequestArr.length; i++) {
  3356. if (!this.modalData[this.plmChangeRequestArr[i].fieldId] && this.plmChangeRequestArr[i].required === 'Y') {
  3357. this.$message.warning(this.plmChangeRequestArr[i].fieldName + '不能为空!')
  3358. return
  3359. }
  3360. }
  3361. }
  3362. if (this.plmChangeRequestDetailArr) {
  3363. for (let i = 0; i < this.plmChangeRequestDetailArr.length; i++) {
  3364. if (!this.modalData[this.plmChangeRequestDetailArr[i].fieldId] && this.plmChangeRequestDetailArr[i].required === 'Y') {
  3365. this.$message.warning(this.plmChangeRequestDetailArr[i].fieldName + '不能为空!')
  3366. return
  3367. }
  3368. }
  3369. }
  3370. if (this.plmChangeCostImpactArr) {
  3371. for (let i = 0; i < this.plmChangeCostImpactArr.length; i++) {
  3372. if (!this.modalData[this.plmChangeCostImpactArr[i].fieldId] && this.plmChangeCostImpactArr[i].required === 'Y') {
  3373. this.$message.warning(this.plmChangeCostImpactArr[i].fieldName + '不能为空!')
  3374. return
  3375. }
  3376. }
  3377. }
  3378. if (this.plmChangeFAItemArr) {
  3379. for (let i = 0; i < this.plmChangeFAItemArr.length; i++) {
  3380. if (!this.modalData[this.plmChangeFAItemArr[i].fieldId] && this.plmChangeFAItemArr[i].required === 'Y') {
  3381. this.$message.warning(this.plmChangeFAItemArr[i].fieldName + '不能为空!')
  3382. return
  3383. }
  3384. }
  3385. }
  3386. if (this.plmChangeExecutionInfoArr) {
  3387. for (let i = 0; i < this.plmChangeExecutionInfoArr.length; i++) {
  3388. if (!this.modalData[this.plmChangeExecutionInfoArr[i].fieldId] && this.plmChangeExecutionInfoArr[i].required === 'Y') {
  3389. this.$message.warning(this.plmChangeExecutionInfoArr[i].fieldName + '不能为空!')
  3390. return
  3391. }
  3392. }
  3393. }
  3394. if (this.plmChangeItemArr) {
  3395. for (let i = 0; i < this.plmChangeItemArr.length; i++) {
  3396. if (!this.modalData[this.plmChangeItemArr[i].fieldId] && this.plmChangeItemArr[i].required === 'Y') {
  3397. this.$message.warning(this.plmChangeItemArr[i].fieldName + '不能为空!')
  3398. return
  3399. }
  3400. }
  3401. }
  3402. if (this.plmChangeCountersignatureItemArr) {
  3403. for (let i = 0; i < this.plmChangeCountersignatureItemArr.length; i++) {
  3404. if (!this.modalData[this.plmChangeCountersignatureItemArr[i].fieldId] && this.plmChangeCountersignatureItemArr[i].required === 'Y') {
  3405. this.$message.warning(this.plmChangeCountersignatureItemArr[i].fieldName + '不能为空!')
  3406. return
  3407. }
  3408. }
  3409. }
  3410. if (this.chooseDataList.length === 0) {
  3411. this.$message.warning('请添加需要变更的技术参数卡!')
  3412. return
  3413. }
  3414. this.costImpactData.changeTotalCost = this.totalCost
  3415. this.executionInfoData.chooseItemList = this.chooseItemList
  3416. this.executionInfoData.chooseItemList2 = this.chooseItemList2
  3417. this.countersignatureData.changeNo = this.modalData.changeNo
  3418. this.countersignatureData.chooseCSItemList = this.chooseCSItemList
  3419. this.modalData.userName = this.$store.state.user.name
  3420. this.modalData.menuId = this.$route.meta.menuId
  3421. this.modalData.detailList = this.chooseDataList
  3422. this.modalData.ecnTypeData = this.form
  3423. this.modalData.costImpactData = this.costImpactData
  3424. this.modalData.executionInfoData = this.executionInfoData
  3425. this.modalData.countersignatureData = this.countersignatureData
  3426. this.submitLoading = true
  3427. submitChange(this.modalData).then(({data}) => {
  3428. if (data && data.code === 0) {
  3429. this.getDataList()
  3430. this.$message({message: '操作成功', type: 'success'})
  3431. this.submitModalFlag = false
  3432. this.modalFlag = false
  3433. } else {
  3434. this.$alert(data.msg, '错误', {
  3435. confirmButtonText: '确定'
  3436. })
  3437. }
  3438. this.submitLoading = false
  3439. }).catch(()=>{
  3440. this.submitLoading = false
  3441. })
  3442. },
  3443. // 获取选择的ECN种类
  3444. getChangeChooseEcnType () {
  3445. getChooseEcnType(this.modalData).then(({data}) => {
  3446. if (data && data.code === 0) {
  3447. this.form = data.rows
  3448. } else {
  3449. this.$alert(data.msg, '错误', {
  3450. confirmButtonText: '确定'
  3451. })
  3452. }
  3453. })
  3454. },
  3455. // 打开ECN种类模态框
  3456. chooseEcnTypeModal () {
  3457. this.ecnTypeModalFlag = true
  3458. },
  3459. // 保存ECN种类
  3460. saveEcnTypeData () {
  3461. this.ecnTypeModalFlag = false
  3462. },
  3463. // 查询ECN的模板
  3464. getEcnModel () {
  3465. let tempData = {
  3466. site: this.$store.state.user.site,
  3467. functionType: 'ECN',
  3468. codeNo: 'E001'
  3469. }
  3470. getEcnModel(tempData).then(({data}) => {
  3471. if (data.code === 0) {
  3472. this.modelList = data.rows
  3473. }
  3474. })
  3475. },
  3476. // 查询变更明细表
  3477. changeRequestDetailSearch () {
  3478. requestDetailSearch(this.modalData).then(({data}) => {
  3479. if (data && data.code === 0) {
  3480. this.chooseDataList = data.rows
  3481. } else {
  3482. this.$alert(data.msg, '错误', {
  3483. confirmButtonText: '确定'
  3484. })
  3485. }
  3486. })
  3487. },
  3488. // 查询库存成本影响对象
  3489. inventoryCostImpactSearch () {
  3490. costImpactSearch(this.modalData).then(({data}) => {
  3491. if (data && data.code === 0) {
  3492. this.costImpactData = data.rows
  3493. } else {
  3494. this.$alert(data.msg, '错误', {
  3495. confirmButtonText: '确定'
  3496. })
  3497. }
  3498. })
  3499. },
  3500. // 查询库存成本影响对象
  3501. inventoryCostImpactSearch2 () {
  3502. costImpactSearch(this.currentRow).then(({data}) => {
  3503. if (data && data.code === 0) {
  3504. this.currentCostImpactData = data.rows
  3505. } else {
  3506. this.$alert(data.msg, '错误', {
  3507. confirmButtonText: '确定'
  3508. })
  3509. }
  3510. })
  3511. },
  3512. // 查询审批信息
  3513. getApprovalList () {
  3514. let tempData = {
  3515. site: this.$store.state.user.site,
  3516. menuId: this.$route.meta.menuId,
  3517. documentNo: this.currentRow.changeNo
  3518. }
  3519. getApprovalList(tempData).then(({data}) => {
  3520. if (data && data.code === 0) {
  3521. this.approvalList = data.rows
  3522. } else {
  3523. this.approvalList = []
  3524. }
  3525. })
  3526. },
  3527. // 查询执行信息
  3528. tpExecutionInfoSearch () {
  3529. executionInfoSearch(this.modalData).then(({data}) => {
  3530. if (data && data.code === 0) {
  3531. this.executionInfoData = data.rows.executionInfoData
  3532. this.executionInfoData.createBy = this.$store.state.user.name
  3533. this.chooseItemList = data.rows.chooseItemList
  3534. this.chooseItemList2 = data.rows.chooseItemList2
  3535. } else {
  3536. this.$alert(data.msg, '错误', {
  3537. confirmButtonText: '确定'
  3538. })
  3539. }
  3540. })
  3541. },
  3542. // 查询会签信息
  3543. countersignatureSearch () {
  3544. countersignatureSearch(this.modalData).then(({data}) => {
  3545. if (data && data.code === 0) {
  3546. this.chooseCSItemList = data.rows.chooseCSItemList
  3547. } else {
  3548. this.$alert(data.msg, '错误', {
  3549. confirmButtonText: '确定'
  3550. })
  3551. }
  3552. })
  3553. },
  3554. // 删除所选技术参数卡
  3555. deleteChooseDataModal (row) {
  3556. this.$confirm(`是否删除该技术参数卡的变更?`, '提示', {
  3557. confirmButtonText: '确定',
  3558. cancelButtonText: '取消',
  3559. type: 'warning'
  3560. }).then(() => {
  3561. deleteChangeDetail(row).then(({data}) => {
  3562. if (data && data.code === 0) {
  3563. this.changeRequestDetailSearch()
  3564. this.$message({
  3565. message: '操作成功',
  3566. type: 'success',
  3567. duration: 1500,
  3568. onClose: () => {}
  3569. })
  3570. } else {
  3571. this.$alert(data.msg, '错误', {
  3572. confirmButtonText: '确定'
  3573. })
  3574. }
  3575. })
  3576. })
  3577. },
  3578. // 修改变更申请
  3579. saveData () {
  3580. if (this.modalData.applicantId === '' || this.modalData.applicantId == null) {
  3581. this.$message.warning('请选择申请人员!')
  3582. return
  3583. }
  3584. if (this.modalData.applyDate === '' || this.modalData.applyDate == null) {
  3585. this.$message.warning('请选择申请日期!')
  3586. return
  3587. }
  3588. // if (this.modalData.changeImpact === '' || this.modalData.changeImpact == null) {
  3589. // this.$message.warning('请选择ECN变更影响!')
  3590. // return
  3591. // }
  3592. // if ((this.modalData.changeImpactDesc === '' || this.modalData.changeImpactDesc == null) && this.modalData.changeImpact === 'Y') {
  3593. // this.$message.warning('请填写变更影响描述!')
  3594. // return
  3595. // }
  3596. if (this.modalData.ecnStage === '' || this.modalData.ecnStage == null) {
  3597. this.$message.warning('请选择ECN阶段!')
  3598. return
  3599. }
  3600. if (this.modalData.changeType === '' || this.modalData.changeType == null) {
  3601. this.$message.warning('请选择变更类别!')
  3602. return
  3603. }
  3604. if (this.form.length === 0) {
  3605. this.$message.warning('请选择ECN种类!')
  3606. return
  3607. }
  3608. if (this.modalData.tpEngineerId === '' || this.modalData.tpEngineerId == null) {
  3609. this.$message.warning('请选择审批人员!')
  3610. return
  3611. }
  3612. if (this.modalData.changePhaseInDate === '' || this.modalData.changePhaseInDate == null) {
  3613. this.$message.warning('请选择变更生效日期!')
  3614. return
  3615. }
  3616. if (this.modalData.dfIsProduct === '' || this.modalData.dfIsProduct == null) {
  3617. this.$message.warning('请选择是否DF产品!')
  3618. return
  3619. }
  3620. if ((this.modalData.industrialEngineerId === '' || this.modalData.industrialEngineerId == null) && this.modalData.dfIsProduct === 'Y') {
  3621. this.$message.warning('请选择I/E!')
  3622. return
  3623. }
  3624. if (this.modalData.changeRequestDesc === '' || this.modalData.changeRequestDesc == null) {
  3625. this.$message.warning('请填写变更要求描述!')
  3626. return
  3627. }
  3628. if (this.modalData.printing === '' || this.modalData.printing == null) {
  3629. this.$message.warning('请选择印刷方式!')
  3630. return
  3631. }
  3632. // if ((this.modalData.cqcOperatorId === '' || this.modalData.cqcOperatorId == null) && (this.modalData.faiOperatorId === '' || this.modalData.faiOperatorId == null)) {
  3633. // this.$message.warning('请选择CQC或者FAI人员!')
  3634. // return
  3635. // }
  3636. if (this.costImpactData.productionProductFlag === 'Y') { // 在生产品
  3637. if (this.costImpactData.productionProductNumber == null || this.costImpactData.productionProductNumber === '') {
  3638. this.$message.warning('请填写在生产品数量!')
  3639. return
  3640. }
  3641. if (this.costImpactData.productionProductNumber <= 0) {
  3642. this.$message.warning('在生产品数量不能小于等于0!')
  3643. return
  3644. }
  3645. if (this.costImpactData.productionProductOpinions == null || this.costImpactData.productionProductOpinions === '') {
  3646. this.$message.warning('请填写在生产品处理意见!')
  3647. return
  3648. }
  3649. if (this.costImpactData.productionProductScrapAmount === 0) {
  3650. this.$message.warning('请填写在生产品报废金额!')
  3651. return
  3652. }
  3653. if (this.costImpactData.productionProductExecutor == null || this.costImpactData.productionProductExecutor === '') {
  3654. this.$message.warning('请填写在生产品执行人!')
  3655. return
  3656. }
  3657. }
  3658. if (this.costImpactData.inventoryProductFlag === 'Y') { // 成品库存
  3659. if (this.costImpactData.inventoryProductNumber == null || this.costImpactData.inventoryProductNumber === '') {
  3660. this.$message.warning('请填写成品库存数量!')
  3661. return
  3662. }
  3663. if (this.costImpactData.inventoryProductNumber <= 0) {
  3664. this.$message.warning('成品库存数量不能小于等于0!')
  3665. return
  3666. }
  3667. if (this.costImpactData.inventoryProductOpinions == null || this.costImpactData.inventoryProductOpinions === '') {
  3668. this.$message.warning('请填写成品库存处理意见!')
  3669. return
  3670. }
  3671. if (this.costImpactData.inventoryProductScrapAmount === 0) {
  3672. this.$message.warning('请填写成品库存报废金额!')
  3673. return
  3674. }
  3675. if (this.costImpactData.inventoryProductExecutor == null || this.costImpactData.inventoryProductExecutor === '') {
  3676. this.$message.warning('请填写成品库存执行人!')
  3677. return
  3678. }
  3679. }
  3680. if (this.costImpactData.newOrderFlag === 'Y') { // 新订单
  3681. if (this.costImpactData.newOrderNumber == null || this.costImpactData.newOrderNumber === '') {
  3682. this.$message.warning('请填写新订单数量!')
  3683. return
  3684. }
  3685. if (this.costImpactData.newOrderNumber <= 0) {
  3686. this.$message.warning('新订单数量不能小于等于0!')
  3687. return
  3688. }
  3689. }
  3690. if (this.costImpactData.affectedFlag === 'Y') { // 影响的原材料及其库存量
  3691. if (this.costImpactData.affectedNumber == null || this.costImpactData.affectedNumber === '') {
  3692. this.$message.warning('请填写影响的原材料及其库存量数量!')
  3693. return
  3694. }
  3695. if (this.costImpactData.affectedNumber <= 0) {
  3696. this.$message.warning('影响的原材料及其库存量数量不能小于等于0!')
  3697. return
  3698. }
  3699. if (this.costImpactData.affectedOpinions == null || this.costImpactData.affectedOpinions === '') {
  3700. this.$message.warning('请填写影响的原材料及其库存量处理意见!')
  3701. return
  3702. }
  3703. if (this.costImpactData.affectedScrapAmount === 0) {
  3704. this.$message.warning('请填写影响的原材料及其库存量报废金额!')
  3705. return
  3706. }
  3707. if (this.costImpactData.affectedExecutor == null || this.costImpactData.affectedExecutor === '') {
  3708. this.$message.warning('请填写影响的原材料及其库存量执行人!')
  3709. return
  3710. }
  3711. }
  3712. if (this.executionInfoData.originalDieCuttingRuleNo == null || this.executionInfoData.originalDieCuttingRuleNo === '') {
  3713. this.$message.warning('请填写原啤刀编号!')
  3714. return;
  3715. }
  3716. if (this.executionInfoData.newDieCuttingRuleNo == null || this.executionInfoData.newDieCuttingRuleNo === '') {
  3717. this.$message.warning('请填写新啤刀编号!')
  3718. return;
  3719. }
  3720. if (this.executionInfoData.originalStencilNo == null || this.executionInfoData.originalStencilNo === '') {
  3721. this.$message.warning('请填写原网板/印版编号!')
  3722. return;
  3723. }
  3724. if (this.executionInfoData.newStencilNo == null || this.executionInfoData.newStencilNo === '') {
  3725. this.$message.warning('请填写新网板/印版编号!')
  3726. return;
  3727. }
  3728. if (this.executionInfoData.executionDate == null || this.executionInfoData.executionDate === '') {
  3729. this.$message.warning('请选择ECN执行日期!')
  3730. return;
  3731. }
  3732. if (this.chooseDataList.length === 0) {
  3733. this.$message.warning('请添加需要变更的技术参数卡!')
  3734. return
  3735. }
  3736. this.costImpactData.changeTotalCost = this.totalCost
  3737. this.executionInfoData.chooseItemList = this.chooseItemList
  3738. this.executionInfoData.chooseItemList2 = this.chooseItemList2
  3739. this.countersignatureData.changeNo = this.modalData.changeNo
  3740. this.countersignatureData.chooseCSItemList = this.chooseCSItemList
  3741. this.modalData.detailList = this.chooseDataList
  3742. this.modalData.ecnTypeData = this.form
  3743. this.modalData.costImpactData = this.costImpactData
  3744. this.modalData.executionInfoData = this.executionInfoData
  3745. this.modalData.countersignatureData = this.countersignatureData
  3746. this.saveLoading = true
  3747. changeRequestUpdate(this.modalData).then(({data}) => {
  3748. if (data && data.code === 0) {
  3749. this.modalData = data.rows.modalData
  3750. this.modalData.menuId = this.$route.meta.menuId
  3751. this.changeTitle = '变更申请-' + this.modalData.changeNo
  3752. this.form = data.rows.form
  3753. this.chooseDataList = data.rows.chooseDataList
  3754. this.costImpactData = data.rows.costImpactData
  3755. this.executionInfoData = data.rows.executionInfoData
  3756. this.executionInfoData.createBy = this.$store.state.user.name
  3757. this.chooseItemList = data.rows.chooseItemList
  3758. this.chooseItemList2 = data.rows.chooseItemList2
  3759. this.chooseCSItemList = data.rows.chooseCSItemList
  3760. this.getDataList()
  3761. this.$message({
  3762. message: '操作成功',
  3763. type: 'success',
  3764. duration: 1500,
  3765. onClose: () => {}
  3766. })
  3767. } else {
  3768. this.$alert(data.msg, '错误', {
  3769. confirmButtonText: '确定'
  3770. })
  3771. }
  3772. this.saveLoading = false
  3773. }).catch(()=>{
  3774. this.saveLoading = false
  3775. })
  3776. },
  3777. // 选择模板属性
  3778. chooseModel () {
  3779. this.chooseModelData = {
  3780. site: this.$store.state.user.site,
  3781. itemNo: '',
  3782. itemDesc: '',
  3783. functionType: 'ECN',
  3784. codeNo: this.modelList.length > 0 ? this.modelList[0].codeNo : ''
  3785. }
  3786. // 先清空缓存选中
  3787. //this.$nextTick(() => this.$refs.itemTable.clearSelection())
  3788. // 查询所有属性
  3789. getItemList(this.chooseModelData).then(({data}) => {
  3790. if (data && data.code === 0) {
  3791. this.itemList = data.rows
  3792. this.itemList.forEach(val => {
  3793. // 回显选中的部门
  3794. if (this.chooseItemList.map(val => val.itemNo).includes(val.itemNo)) {
  3795. this.$nextTick(() => this.$refs.itemTable.toggleRowSelection(val, true))
  3796. }
  3797. })
  3798. } else {
  3799. this.$alert(data.msg, '错误', {
  3800. confirmButtonText: '确定'
  3801. })
  3802. }
  3803. })
  3804. this.chooseModelFlag = true
  3805. },
  3806. // 查询属性
  3807. searchItemList () {
  3808. getItemList(this.chooseModelData).then(({data}) => {
  3809. if (data.code === 0) {
  3810. this.itemList = data.rows
  3811. }
  3812. })
  3813. },
  3814. // 单机选择
  3815. itemClickRow (row) {
  3816. this.$refs.itemTable.toggleRowSelection(row)
  3817. },
  3818. // 复选属性
  3819. selectionItem (val) {
  3820. this.itemSelections = val
  3821. },
  3822. // 确认多选属性
  3823. confirmItem () {
  3824. if (this.itemSelections.length === 0) {
  3825. this.$message.warning("请勾选属性!")
  3826. return
  3827. }
  3828. // 临时集合
  3829. let temp = []
  3830. // 首先,遍历a,检查每个对象的名字是否在b中也存在
  3831. this.chooseItemList.forEach(itemA => {
  3832. if (this.itemSelections.some(itemB => itemB.itemNo === itemA.itemNo)) {
  3833. // 如果存在,则将a中的对象添加到结果中(这里直接用a的原对象,因为要求是保留a中对象)
  3834. temp.push(itemA)
  3835. }
  3836. })
  3837. // 然后,遍历b,检查是否有对象的名字不在结果中已存在的名字中
  3838. this.itemSelections.forEach(itemB => {
  3839. if (!temp.some(itemR => itemR.itemNo === itemB.itemNo)) {
  3840. // 如果b中的对象名字不在结果中,则添加到结果中
  3841. temp.push(itemB)
  3842. }
  3843. })
  3844. this.chooseItemList = temp
  3845. this.chooseModelFlag = false
  3846. },
  3847. // 执行所选属性
  3848. executeModal (row) {
  3849. row.executeFlag = 'Y'
  3850. row.itemExecutionDate = new Date(+ new Date() + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '')
  3851. // row.executor = this.$store.state.user.name
  3852. // 执行时调用同意提交方法
  3853. if (this.modalData.changeStatus === '审批中') {
  3854. this.agreeSubmit()
  3855. }
  3856. },
  3857. // 执行所选属性
  3858. executeCSModal (row) {
  3859. row.executeFlag = 'Y'
  3860. row.itemExecutionDate = new Date(+ new Date() + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '')
  3861. row.executor = this.$store.state.user.name
  3862. },
  3863. // 执行所选属性
  3864. executeModal2 (row) {
  3865. row.executeFlag = 'Y'
  3866. row.itemExecutionDate = new Date(+ new Date() + 8 * 3600 * 1000).toISOString().replace(/T/g, ' ').replace(/\.[\d]{3}Z/, '')
  3867. row.executor = this.$store.state.user.name
  3868. },
  3869. // 编辑执行信息
  3870. executionInformationSave () {
  3871. this.executionInfoData.chooseItemList = this.chooseItemList
  3872. this.executionInfoData.chooseItemList2 = this.chooseItemList2
  3873. if (this.executionInfoData.originalDieCuttingRuleNo == null || this.executionInfoData.originalDieCuttingRuleNo === '') {
  3874. this.$message.warning('请填写原啤刀编号!')
  3875. return;
  3876. }
  3877. if (this.executionInfoData.newDieCuttingRuleNo == null || this.executionInfoData.newDieCuttingRuleNo === '') {
  3878. this.$message.warning('请填写新啤刀编号!')
  3879. return;
  3880. }
  3881. if (this.executionInfoData.originalStencilNo == null || this.executionInfoData.originalStencilNo === '') {
  3882. this.$message.warning('请填写原网板/印版编号!')
  3883. return;
  3884. }
  3885. if (this.executionInfoData.newStencilNo == null || this.executionInfoData.newStencilNo === '') {
  3886. this.$message.warning('请填写新网板/印版编号!')
  3887. return;
  3888. }
  3889. if (this.executionInfoData.executionDate == null || this.executionInfoData.executionDate === '') {
  3890. this.$message.warning('请选择ECN执行日期!')
  3891. return;
  3892. }
  3893. executionUpdate(this.executionInfoData).then(({data}) => {
  3894. if (data && data.code === 0) {
  3895. this.executionInfoData = data.rows.executionInfoData
  3896. this.executionInfoData.createBy = this.$store.state.user.name
  3897. this.chooseItemList = data.rows.chooseItemList
  3898. this.chooseItemList2 = data.rows.chooseItemList2
  3899. this.getDataList()
  3900. this.$message({
  3901. message: '操作成功',
  3902. type: 'success',
  3903. duration: 1500,
  3904. onClose: () => {}
  3905. })
  3906. } else {
  3907. this.$alert(data.msg, '错误', {
  3908. confirmButtonText: '确定'
  3909. })
  3910. }
  3911. })
  3912. },
  3913. // 编辑会签信息
  3914. countersignatureSave () {
  3915. this.countersignatureData.changeNo = this.modalData.changeNo
  3916. this.countersignatureData.chooseCSItemList = this.chooseCSItemList
  3917. countersignatureUpdate(this.countersignatureData).then(({data}) => {
  3918. if (data && data.code === 0) {
  3919. this.chooseCSItemList = data.rows.chooseCSItemList
  3920. this.getDataList()
  3921. this.$message({
  3922. message: '操作成功',
  3923. type: 'success',
  3924. duration: 1500,
  3925. onClose: () => {}
  3926. })
  3927. } else {
  3928. this.$alert(data.msg, '错误', {
  3929. confirmButtonText: '确定'
  3930. })
  3931. }
  3932. })
  3933. },
  3934. // 新增技术参数卡
  3935. addChangeDetail () {
  3936. this.searchData2.buNo = this.modalData.buNo
  3937. technicalSpecificationSearch2(this.searchData2).then(({data}) => {
  3938. if (data.code === 0) {
  3939. this.dataList2 = data.rows
  3940. const shouldExclude = (item) => {
  3941. return this.chooseDataList.some(cdItem =>
  3942. cdItem.site === item.site && cdItem.codeNo === item.codeNo
  3943. )
  3944. }
  3945. this.dataList2 = this.dataList2.filter(item => !shouldExclude(item))
  3946. this.addDetailModal = true
  3947. } else {
  3948. this.dataList2 = []
  3949. }
  3950. })
  3951. },
  3952. // 复选物料信息
  3953. selectionData2 (val) {
  3954. this.dataSelections2 = val
  3955. },
  3956. // 确认选择技术参数卡
  3957. addDetail () {
  3958. if (this.dataSelections2.length === 0) {
  3959. this.$message.warning("请勾选技术参数卡!")
  3960. return
  3961. }
  3962. this.dataSelections2.forEach(item => {
  3963. // 确保没有重复的元素
  3964. if (!this.chooseDataList.some(cdItem => cdItem.site === item.site && cdItem.codeNo === item.codeNo)) {
  3965. this.chooseDataList.push(item)
  3966. }
  3967. })
  3968. this.addDetailModal = false
  3969. this.dataSelections2 = []
  3970. },
  3971. // 回车换行
  3972. focusNextInput (index, type) {
  3973. let aaa = ''
  3974. if (this.chooseDataList.length - 1 === index) {
  3975. aaa = `${type}0`
  3976. } else {
  3977. aaa = `${type}${index + 1}`
  3978. }
  3979. this.$nextTick(() => {
  3980. this.$refs[aaa].focus()
  3981. })
  3982. },
  3983. // 根据人员编码查人员部门
  3984. getDepartmentByUserName () {
  3985. let tempData = {
  3986. site: this.$store.state.user.site,
  3987. username: this.modalData.applicantId
  3988. }
  3989. getDepartmentByUserName(tempData).then(({data}) => {
  3990. if (data.code === 0) {
  3991. this.modalData.applicationDepartmentId = data.rows[0].departmentNo
  3992. this.modalData.applicationDepartmentName = data.rows[0].departmentName
  3993. }
  3994. })
  3995. },
  3996. // 预览
  3997. previewFile (row) {
  3998. // 预览文件
  3999. let image = ['jpg', 'jpeg', 'png', 'gif', 'bmp']
  4000. let type = ''
  4001. if (image.includes(row.fileType.toLowerCase())) {
  4002. type = 'image/' + row.fileType
  4003. }
  4004. let video = ['mp4', 'avi', 'mov', 'wmv', 'flv']
  4005. if (video.includes(row.fileType.toLowerCase())) {
  4006. type = 'video/' + row.fileType
  4007. }
  4008. let txt = ['txt']
  4009. if (txt.includes(row.fileType.toLowerCase())) {
  4010. type = 'text/plain'
  4011. }
  4012. let office = ['doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx']
  4013. if (office.includes(row.fileType.toLowerCase())) {
  4014. this.$message.warning(`暂不支持预览${row.fileType.toLowerCase()}文件`)
  4015. return
  4016. }
  4017. let pdf = ['pdf']
  4018. if (pdf.includes(row.fileType.toLowerCase())) {
  4019. type = 'application/pdf'
  4020. }
  4021. if (type === ''){
  4022. this.$message.warning(`暂不支持预览${row.fileType.toLowerCase()}文件`)
  4023. return;
  4024. }
  4025. downLoadQuotationFile(row).then(({data}) => {
  4026. const blob = new Blob([data], { type: type });
  4027. // 创建URL来生成预览
  4028. const fileURL = URL.createObjectURL(blob);
  4029. // 在新标签页中打开文件预览
  4030. const newTab = window.open(fileURL, '_blank')
  4031. })
  4032. },
  4033. // ======== chooseList相关方法 ========
  4034. // 获取基础数据列表S
  4035. getBaseList (val, type) {
  4036. this.tagNo = val
  4037. this.tagNo1 = type
  4038. this.$nextTick(() => {
  4039. let strVal = ''
  4040. let conSql = ''
  4041. if (val === 103) {
  4042. if (type === 1) {
  4043. strVal = this.modalData.applicantId
  4044. } else if (type === 3) {
  4045. strVal = this.costImpactData.productionProductExecutor
  4046. } else if (type === 4) {
  4047. strVal = this.costImpactData.inventoryProductExecutor
  4048. } else if (type === 5) {
  4049. strVal = this.costImpactData.affectedExecutor
  4050. } else if (type === 7) {
  4051. strVal = this.tempExecutorRow.executor
  4052. }
  4053. }
  4054. if (val === 133) {
  4055. strVal = this.tempPartRow.newPartNo
  4056. }
  4057. if (val === 2005) {
  4058. strVal = this.modalData.tpEngineerId
  4059. conSql = " and b.site = '" + this.$store.state.user.site + "'"
  4060. }
  4061. if (val === 2006) {
  4062. strVal = this.modalData.industrialEngineerId
  4063. conSql = " and b.site = '" + this.$store.state.user.site + "'"
  4064. }
  4065. if (val === 2007) {
  4066. strVal = this.modalData.cqcOperatorId
  4067. conSql = " and b.site = '" + this.$store.state.user.site + "'"
  4068. }
  4069. if (val === 2008) {
  4070. strVal = this.modalData.faiOperatorId
  4071. conSql = " and b.site = '" + this.$store.state.user.site + "'"
  4072. }
  4073. this.$refs.baseList.init(val, strVal, conSql)
  4074. })
  4075. },
  4076. // 列表方法的回调
  4077. getBaseData (val) {
  4078. if (this.tagNo === 103) {
  4079. if (this.tagNo1 === 1) {
  4080. this.modalData.applicantId = val.username
  4081. this.modalData.applicantName = val.user_display
  4082. this.getDepartmentByUserName()
  4083. } else if (this.tagNo1 === 3) {
  4084. this.costImpactData.productionProductExecutor = val.username
  4085. this.costImpactData.productionProductExecutorName = val.user_display
  4086. //this.$set(this.costImpactData,'productionProductExecutorName',val.user_display)
  4087. } else if (this.tagNo1 === 4) {
  4088. this.costImpactData.inventoryProductExecutor = val.username
  4089. this.costImpactData.inventoryProductExecutorName = val.user_display
  4090. //this.$set(this.costImpactData,'inventoryProductExecutorName',val.user_display)
  4091. } else if (this.tagNo1 === 5) {
  4092. this.costImpactData.affectedExecutor = val.username
  4093. this.costImpactData.affectedExecutorName = val.user_display
  4094. //this.$set(this.costImpactData,'affectedExecutorName',val.user_display)
  4095. } else if (this.tagNo1 === 7) {
  4096. this.$set(this.tempExecutorRow,'executor',val.username)
  4097. }
  4098. }
  4099. if (this.tagNo === 133) {
  4100. //this.tempPartRow.newPartNo = val.part_no
  4101. this.$set(this.tempPartRow,'newPartNo',val.part_no)
  4102. }
  4103. if (this.tagNo === 2005) {
  4104. this.modalData.tpEngineerId = val.username
  4105. this.modalData.tpEngineerName = val.user_display
  4106. }
  4107. if (this.tagNo === 2006) {
  4108. this.modalData.industrialEngineerId = val.username
  4109. this.modalData.industrialEngineerName = val.user_display
  4110. }
  4111. if (this.tagNo === 2007) {
  4112. this.modalData.cqcOperatorId = val.username
  4113. this.modalData.cqcOperatorName = val.user_display
  4114. }
  4115. if (this.tagNo === 2008) {
  4116. this.modalData.faiOperatorId = val.username
  4117. this.modalData.faiOperatorName = val.user_display
  4118. }
  4119. },
  4120. // 申请人输入校验
  4121. applicantBlur (tagNo) {
  4122. if (this.modalData.applicantId != null && this.modalData.applicantId !== '') {
  4123. let tempData = {
  4124. tagno: tagNo,
  4125. conditionSql: " and username = '" + this.modalData.applicantId + "'" + " and site = '" + this.modalData.site + "'"
  4126. }
  4127. verifyData(tempData).then(({data}) => {
  4128. if (data && data.code === 0) {
  4129. if (data.baseListData.length > 0) {
  4130. this.modalData.applicantId = data.baseListData[0].username
  4131. this.modalData.applicantName = data.baseListData[0].user_display
  4132. this.getDepartmentByUserName()
  4133. return
  4134. }
  4135. }
  4136. })
  4137. }
  4138. this.modalData.applicantName = ''
  4139. this.modalData.applicationDepartmentId = ''
  4140. this.modalData.applicationDepartmentName = ''
  4141. },
  4142. // 审批人员输入校验
  4143. tpEngineerBlur (tagNo) {
  4144. if (this.modalData.tpEngineerId != null && this.modalData.tpEngineerId !== '') {
  4145. let tempData = {
  4146. tagno: tagNo,
  4147. conditionSql: " and a.username = '" + this.modalData.tpEngineerId + "'" + " and b.site = '" + this.modalData.site + "'"
  4148. }
  4149. verifyData(tempData).then(({data}) => {
  4150. if (data && data.code === 0) {
  4151. if (data.baseListData.length > 0) {
  4152. this.modalData.tpEngineerId = data.baseListData[0].username
  4153. this.modalData.tpEngineerName = data.baseListData[0].user_display
  4154. return
  4155. }
  4156. }
  4157. })
  4158. }
  4159. this.modalData.tpEngineerName = ''
  4160. },
  4161. // I/E输入校验
  4162. industrialEngineerBlur (tagNo) {
  4163. if (this.modalData.industrialEngineerId != null && this.modalData.industrialEngineerId !== '') {
  4164. let tempData = {
  4165. tagno: tagNo,
  4166. conditionSql: " and a.username = '" + this.modalData.industrialEngineerId + "'" + " and b.site = '" + this.modalData.site + "'"
  4167. }
  4168. verifyData(tempData).then(({data}) => {
  4169. if (data && data.code === 0) {
  4170. if (data.baseListData.length > 0) {
  4171. this.modalData.industrialEngineerId = data.baseListData[0].username
  4172. this.modalData.industrialEngineerName = data.baseListData[0].user_display
  4173. return
  4174. }
  4175. }
  4176. })
  4177. }
  4178. this.modalData.industrialEngineerName = ''
  4179. },
  4180. // CQC输入校验
  4181. cqcOperatorBlur (tagNo) {
  4182. if (this.modalData.cqcOperatorId != null && this.modalData.cqcOperatorId !== '') {
  4183. let tempData = {
  4184. tagno: tagNo,
  4185. conditionSql: " and a.username = '" + this.modalData.cqcOperatorId + "'" + " and b.site = '" + this.modalData.site + "'"
  4186. }
  4187. verifyData(tempData).then(({data}) => {
  4188. if (data && data.code === 0) {
  4189. if (data.baseListData.length > 0) {
  4190. this.modalData.cqcOperatorId = data.baseListData[0].username
  4191. this.modalData.cqcOperatorName = data.baseListData[0].user_display
  4192. return
  4193. }
  4194. }
  4195. })
  4196. }
  4197. this.modalData.cqcOperatorName = ''
  4198. },
  4199. // FAI输入校验
  4200. faiOperatorBlur (tagNo) {
  4201. if (this.modalData.faiOperatorId != null && this.modalData.faiOperatorId !== '') {
  4202. let tempData = {
  4203. tagno: tagNo,
  4204. conditionSql: " and a.username = '" + this.modalData.faiOperatorId + "'" + " and b.site = '" + this.modalData.site + "'"
  4205. }
  4206. verifyData(tempData).then(({data}) => {
  4207. if (data && data.code === 0) {
  4208. if (data.baseListData.length > 0) {
  4209. this.modalData.faiOperatorId = data.baseListData[0].username
  4210. this.modalData.faiOperatorName = data.baseListData[0].user_display
  4211. return
  4212. }
  4213. }
  4214. })
  4215. }
  4216. this.modalData.faiOperatorName = ''
  4217. },
  4218. toMenu (row) {
  4219. if (this.$router.resolve(`/sampleManagement-technicalSpecificationList`).resolved.name === '404') {
  4220. this.$alert('权限不足,访问失败', '警告', {confirmButtonText: '确定',})
  4221. } else {
  4222. this.$router.push({name:`sampleManagement-technicalSpecificationList`,params:{nowCodeNo:row.codeNo},})
  4223. }
  4224. },
  4225. // ======== 导出相关方法 ========
  4226. /**
  4227. * 导出excel
  4228. */
  4229. async createExportData () {
  4230. this.searchData.limit = -1
  4231. this.searchData.page = 1
  4232. await changeRecordSearch(this.searchData).then(({data}) => {
  4233. this.resultList = data.page.list
  4234. })
  4235. return this.resultList
  4236. },
  4237. startDownload () {},
  4238. finishDownload () {},
  4239. fields () {
  4240. let json = '{'
  4241. this.columnList.forEach((item, index) => {
  4242. if (index === this.columnList.length - 1) {
  4243. json += '"' + item.columnLabel + '"' + ':' + '"' + item.columnProp + '"'
  4244. } else {
  4245. json += '"' + item.columnLabel + '"' + ':' + '"' + item.columnProp + '"' + ','
  4246. }
  4247. })
  4248. json += '}'
  4249. let s = eval('(' + json + ')')
  4250. return s
  4251. },
  4252. rowStyle ({row}) {
  4253. if (this.currentRow.changeNo === row.changeNo) {
  4254. return { 'background-color': '#E8F7F6', cursor: 'pointer' };
  4255. }
  4256. },
  4257. // 获取按钮的权限数据
  4258. getButtonAuthData () {
  4259. this.authSearch = this.isAuth(this.menuId+":search")
  4260. this.authUpdate = this.isAuth(this.menuId+":update")
  4261. this.authIssue = this.isAuth(this.menuId+":issue")
  4262. this.authSubmit = this.isAuth(this.menuId+":submit")
  4263. this.authReject = this.isAuth(this.menuId+":reject")
  4264. this.authFileSave = this.isAuth(this.menuId+":fileSave")
  4265. this.authFileDownLoad = this.isAuth(this.menuId+":fileDownLoad")
  4266. this.authFileRemove = this.isAuth(this.menuId+":fileRemove")
  4267. this.authFilePreview = this.isAuth(this.menuId+":filePreview")
  4268. },
  4269. }
  4270. }
  4271. </script>
  4272. <style scoped lang="scss">
  4273. /deep/ .customer-tab .el-tabs__content {
  4274. padding: 0px !important;
  4275. }
  4276. .numInput /deep/ .el-input__inner{
  4277. text-align: right;
  4278. }
  4279. /deep/ .inlineNumber input::-webkit-outer-spin-button,
  4280. /deep/ .inlineNumber input::-webkit-inner-spin-button {
  4281. -webkit-appearance: none;
  4282. }
  4283. /deep/ .inlineNumber input[type="number"]{
  4284. -moz-appearance: textfield;
  4285. padding-right: 5px !important;
  4286. }
  4287. </style>