1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
| var vm = new Vue({
| el: '#app',
| data: function () {
| return {
| isLoading: false,
| userInfo: {
| "loginGuid": '',
| "loginAccount": '',
| },
| formData: {
| id: "",
| releaseNo: "",
| createBy: "",
| createDate: "",
| lotNo: "",
| itemNo: "",
| billNo: "",
| fcovertQty: "",
| detailMem: "",
| taskNo: "",
| fcheckResu: "",
| boardModel: "",
| planQty: "",
| mocode: "",
| boardStyle: ""
| },
| isShowTable: false,
| tableData: [],
|
| ttrre: false
| }
| },
| mounted() {
| var that = this;
| this.userInfo = {
| loginGuid: this.GetLoginInfor().loginGuid,
| loginAccount: this.GetLoginInfor().loginAccount,
| };
| this.formData.id = this.Request("id"),
| this.formData.releaseNo = this.Request("releaseNo");
| this.formData.lotNo = this.Request("lotNo");
| this.init();
| },
| methods: {
| init() {
| var that = this;
| that.AxiosHttp("post", 'LLJ/getPage', {
| id: this.formData.id,
| pageIndex: 1,
| limit: 1,
| }, false)
| .then(function (res) {
| let data = res.data.tbBillList[0];
| if (data) {
| that.formData = data;
|
| that.AxiosHttp("post", 'LLJ/getJYItem', {
| id: that.formData.id,
| releaseNo: that.formData.releaseNo
| }, false).then(function (res1) {
| let tableData = res1.data.tbBillList
| //当已检验个数都不为空时按照检测结构排序
| tableData.sort((a, b) => {
| if (a.result === '未完成' && b.result === '合格') {
| return -1;
| } else if (a.result === '合格' && b.result === '未完成') {
| return 1;
| } else {
| return 0;
| }
| });
| that.tableData = tableData;
| if (that.tableData.length === 0) {
| that.isShowTable = true;
| }
| }).catch(function (error) {
| that.$toast.fail("网络错误,请重试!");
| console.log(error);
| });
| }
| })
| .catch(function (error) {
| that.$toast.fail("网络错误,请重试!");
| console.log(error);
| });
| },
| submit() {
| var that = this;
|
| that.ttrre = true;
|
| that.AxiosHttp("post", 'LLJ/IqcQaSubmit', {
| userNo: this.userInfo.loginAccount,
| releaseNo: this.formData.releaseNo
| }, false).then(function (res1) {
| if (res1.status == 1) {
| that.$toast.fail(res1.message);
| } else {
| that.$notify({ type: 'success', message: '提交成功' });
| that.init();
| }
| that.ttrre = false
| }).catch(function (error) {
| that.$toast.fail("网络错误,请重试!");
| that.ttrre = false
| console.log(error);
| });
| },
| removeXJ() {
|
| var that = this;
|
| that.ttrre = true;
|
| that.AxiosHttp("post", 'MesQaItemsDetect01Manager/ReloadModel5', {
| guid: "158f4324-955e-4a3b-aafa-09babf3c3368"
| }, true, 1).then(function (res1) {
| if (res1.status == 1) {
| that.$toast.fail(res1.message);
| } else {
| that.$notify({ type: 'success', message: '提交成功' });
| that.init();
| }
| that.ttrre = false
| }).catch(function (error) {
| that.$toast.fail("网络错误,请重试!");
| that.ttrre = false
| console.log(error);
| });
|
| },
| GetBack1() {
| window.history.back();
| }
| }
| })
|
|