diff --git a/src/api/quality/defectType.js b/src/api/quality/defectType.js
index 934f147..79146fe 100644
--- a/src/api/quality/defectType.js
+++ b/src/api/quality/defectType.js
@@ -42,3 +42,9 @@ export function delDefectType(faultId) {
method: 'delete'
});
}
+export function getDefectTypeListByDefectType(defectType) {
+ return request({
+ url: '/quality/defectType/getDefectTypeListByDefectType/' + defectType,
+ method: 'get',
+ });
+}
diff --git a/src/api/quality/qcInventory.js b/src/api/quality/qcInventory.js
new file mode 100644
index 0000000..b5799b3
--- /dev/null
+++ b/src/api/quality/qcInventory.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询库存检验任务列表
+export function listQcInventory(query) {
+ return request({
+ url: '/quality/qcInventory/list',
+ method: 'get',
+ params: query
+ });
+}
+
+// 查询库存检验任务详细
+export function getQcInventory(recordId) {
+ return request({
+ url: '/quality/qcInventory/' + recordId,
+ method: 'get'
+ });
+}
+
+// 新增库存检验任务
+export function addQcInventory(data) {
+ return request({
+ url: '/quality/qcInventory',
+ method: 'post',
+ data: data
+ });
+}
+
+// 修改库存检验任务
+export function updateQcInventory(data) {
+ return request({
+ url: '/quality/qcInventory',
+ method: 'put',
+ data: data
+ });
+}
+
+// 删除库存检验任务
+export function delQcInventory(recordId) {
+ return request({
+ url: '/quality/qcInventory/' + recordId,
+ method: 'delete'
+ });
+}
diff --git a/src/views/device/summaryReport/index.vue b/src/views/device/summaryReport/index.vue
index 30bb251..5d516f5 100644
--- a/src/views/device/summaryReport/index.vue
+++ b/src/views/device/summaryReport/index.vue
@@ -64,8 +64,22 @@
-
-
+
+
+
+
+
@@ -81,157 +95,259 @@
- {{ scope.row.one == "1" ? "√" : scope.row.one == "0" ? "X" : ""}}
+ {{ scope.row.one == "1" ? "√" : scope.row.one == "0" ? "X" : "" }}
- {{ scope.row.two == "1" ? "√" : scope.row.two == "0" ? "X" : ""}}
+ {{ scope.row.two == "1" ? "√" : scope.row.two == "0" ? "X" : "" }}
- {{ scope.row.three == "1" ? "√" : scope.row.three == "0" ? "X" : ""}}
+ {{ scope.row.three == "1" ? "√" : scope.row.three == "0" ? "X" : "" }}
- {{ scope.row.four == "1" ? "√" : scope.row.four == "0" ? "X" : ""}}
+ {{ scope.row.four == "1" ? "√" : scope.row.four == "0" ? "X" : "" }}
- {{ scope.row.five == "1" ? "√" : scope.row.five == "0" ? "X" : ""}}
+ {{ scope.row.five == "1" ? "√" : scope.row.five == "0" ? "X" : "" }}
- {{ scope.row.six == "1" ? "√" : scope.row.six == "0" ? "X" : ""}}
+ {{ scope.row.six == "1" ? "√" : scope.row.six == "0" ? "X" : "" }}
- {{ scope.row.seven == "1" ? "√" : scope.row.seven == "0" ? "X" : ""}}
+ {{ scope.row.seven == "1" ? "√" : scope.row.seven == "0" ? "X" : "" }}
- {{ scope.row.eight == "1" ? "√" : scope.row.eight == "0" ? "X" : ""}}
+ {{ scope.row.eight == "1" ? "√" : scope.row.eight == "0" ? "X" : "" }}
- {{ scope.row.nine == "1" ? "√" : scope.row.nine == "0" ? "X" : ""}}
+ {{ scope.row.nine == "1" ? "√" : scope.row.nine == "0" ? "X" : "" }}
- {{ scope.row.ten == "1" ? "√" : scope.row.ten == "0" ? "X" : ""}}
+ {{ scope.row.ten == "1" ? "√" : scope.row.ten == "0" ? "X" : "" }}
- {{ scope.row.eleven == "1" ? "√" : scope.row.eleven == "0" ? "X" : ""}}
+ {{
+ scope.row.eleven == "1" ? "√" : scope.row.eleven == "0" ? "X" : ""
+ }}
- {{ scope.row.twelve == "1" ? "√" : scope.row.twelve == "0" ? "X" : ""}}
+ {{
+ scope.row.twelve == "1" ? "√" : scope.row.twelve == "0" ? "X" : ""
+ }}
- {{ scope.row.thirteen == "1" ? "√" : scope.row.thirteen == "0" ? "X" : ""}}
+ {{
+ scope.row.thirteen == "1"
+ ? "√"
+ : scope.row.thirteen == "0"
+ ? "X"
+ : ""
+ }}
- {{ scope.row.fourteen == "1" ? "√" : scope.row.fourteen == "0" ? "X" : ""}}
+ {{
+ scope.row.fourteen == "1"
+ ? "√"
+ : scope.row.fourteen == "0"
+ ? "X"
+ : ""
+ }}
- {{ scope.row.fifteen == "1" ? "√" : scope.row.fifteen == "0" ? "X" : ""}}
+ {{
+ scope.row.fifteen == "1" ? "√" : scope.row.fifteen == "0" ? "X" : ""
+ }}
- {{ scope.row.sixteen == "1" ? "√" : scope.row.sixteen == "0" ? "X" : ""}}
+ {{
+ scope.row.sixteen == "1" ? "√" : scope.row.sixteen == "0" ? "X" : ""
+ }}
- {{ scope.row.seventeen == "1" ? "√" : scope.row.seventeen == "0" ? "X" : ""}}
+ {{
+ scope.row.seventeen == "1"
+ ? "√"
+ : scope.row.seventeen == "0"
+ ? "X"
+ : ""
+ }}
- {{ scope.row.eighteen == "1" ? "√" : scope.row.eighteen == "0" ? "X" : ""}}
+ {{
+ scope.row.eighteen == "1"
+ ? "√"
+ : scope.row.eighteen == "0"
+ ? "X"
+ : ""
+ }}
- {{ scope.row.nineteen == "1" ? "√" : scope.row.nineteen == "0" ? "X" : ""}}
+ {{
+ scope.row.nineteen == "1"
+ ? "√"
+ : scope.row.nineteen == "0"
+ ? "X"
+ : ""
+ }}
- {{ scope.row.twenty == "1" ? "√" : scope.row.twenty == "0" ? "X" : ""}}
+ {{
+ scope.row.twenty == "1" ? "√" : scope.row.twenty == "0" ? "X" : ""
+ }}
- {{ scope.row.twentyOne == "1" ? "√" : scope.row.twentyOne == "0" ? "X" : ""}}
+ {{
+ scope.row.twentyOne == "1"
+ ? "√"
+ : scope.row.twentyOne == "0"
+ ? "X"
+ : ""
+ }}
- {{ scope.row.twentyTwo == "1" ? "√" : scope.row.twentyTwo == "0" ? "X" : ""}}
+ {{
+ scope.row.twentyTwo == "1"
+ ? "√"
+ : scope.row.twentyTwo == "0"
+ ? "X"
+ : ""
+ }}
- {{ scope.row.twentyThree == "1" ? "√" : scope.row.twentyThree == "0" ? "X" : ""}}
+ {{
+ scope.row.twentyThree == "1"
+ ? "√"
+ : scope.row.twentyThree == "0"
+ ? "X"
+ : ""
+ }}
- {{ scope.row.twentyFour == "1" ? "√" : scope.row.twentyFour == "0" ? "X" : ""}}
+ {{
+ scope.row.twentyFour == "1"
+ ? "√"
+ : scope.row.twentyFour == "0"
+ ? "X"
+ : ""
+ }}
- {{ scope.row.twentyFive == "1" ? "√" : scope.row.twentyFive == "0" ? "X" : ""}}
+ {{
+ scope.row.twentyFive == "1"
+ ? "√"
+ : scope.row.twentyFive == "0"
+ ? "X"
+ : ""
+ }}
- {{ scope.row.twentySix == "1" ? "√" : scope.row.twentySix == "0" ? "X" : ""}}
+ {{
+ scope.row.twentySix == "1"
+ ? "√"
+ : scope.row.twentySix == "0"
+ ? "X"
+ : ""
+ }}
- {{ scope.row.twentySeven == "1" ? "√" : scope.row.twentySeven == "0" ? "X" : ""}}
+ {{
+ scope.row.twentySeven == "1"
+ ? "√"
+ : scope.row.twentySeven == "0"
+ ? "X"
+ : ""
+ }}
- {{ scope.row.twentyEight == "1" ? "√" : scope.row.twentyEight == "0" ? "X" : ""}}
+ {{
+ scope.row.twentyEight == "1"
+ ? "√"
+ : scope.row.twentyEight == "0"
+ ? "X"
+ : ""
+ }}
- {{ scope.row.twentyNine == "1" ? "√" : scope.row.twentyNine == "0" ? "X" : ""}}
+ {{
+ scope.row.twentyNine == "1"
+ ? "√"
+ : scope.row.twentyNine == "0"
+ ? "X"
+ : ""
+ }}
- {{ scope.row.thirty == "1" ? "√" : scope.row.thirty == "0" ? "X" : ""}}
+ {{
+ scope.row.thirty == "1" ? "√" : scope.row.thirty == "0" ? "X" : ""
+ }}
- {{ scope.row.thirtyOne == "1" ? "√" : scope.row.thirtyOne == "0" ? "X" : ""}}
+ {{
+ scope.row.thirtyOne == "1"
+ ? "√"
+ : scope.row.thirtyOne == "0"
+ ? "X"
+ : ""
+ }}
@@ -350,189 +466,201 @@ export default {
) {
var str = this.matchList[j].orderEnd.substr(8);
if (str == "01") {
- if(this.matchList[j].repairReach == 1){
+ if (this.matchList[j].repairReach == 1) {
this.checkList[i].one = this.matchList[j].repairReach;
- }else{
+ } else {
this.checkList[i].one = this.matchList[j].detailReach;
}
} else if (str == "02") {
- if(this.matchList[j].repairReach == 1){
+ if (this.matchList[j].repairReach == 1) {
this.checkList[i].two = this.matchList[j].repairReach;
- }else{
+ } else {
this.checkList[i].two = this.matchList[j].detailReach;
}
} else if (str == "03") {
- if(this.matchList[j].repairReach == 1){
+ if (this.matchList[j].repairReach == 1) {
this.checkList[i].three = this.matchList[j].repairReach;
- }else{
+ } else {
this.checkList[i].three = this.matchList[j].detailReach;
}
} else if (str == "04") {
- if(this.matchList[j].repairReach == 1){
+ if (this.matchList[j].repairReach == 1) {
this.checkList[i].four = this.matchList[j].repairReach;
- }else{
+ } else {
this.checkList[i].four = this.matchList[j].detailReach;
}
} else if (str == "05") {
- if(this.matchList[j].repairReach == 1){
+ if (this.matchList[j].repairReach == 1) {
this.checkList[i].five = this.matchList[j].repairReach;
- }else{
+ } else {
this.checkList[i].five = this.matchList[j].detailReach;
}
} else if (str == "06") {
- if(this.matchList[j].repairReach == 1){
+ if (this.matchList[j].repairReach == 1) {
this.checkList[i].six = this.matchList[j].repairReach;
- }else{
+ } else {
this.checkList[i].six = this.matchList[j].detailReach;
}
} else if (str == "07") {
- if(this.matchList[j].repairReach == 1){
+ if (this.matchList[j].repairReach == 1) {
this.checkList[i].seven = this.matchList[j].repairReach;
- }else{
+ } else {
this.checkList[i].seven = this.matchList[j].detailReach;
}
} else if (str == "08") {
- if(this.matchList[j].repairReach == 1){
+ if (this.matchList[j].repairReach == 1) {
this.checkList[i].eight = this.matchList[j].repairReach;
- }else{
+ } else {
this.checkList[i].eight = this.matchList[j].detailReach;
}
} else if (str == "09") {
- if(this.matchList[j].repairReach == 1){
+ if (this.matchList[j].repairReach == 1) {
this.checkList[i].nine = this.matchList[j].repairReach;
- }else{
+ } else {
this.checkList[i].nine = this.matchList[j].detailReach;
}
} else if (str == "10") {
- if(this.matchList[j].repairReach == 1){
+ if (this.matchList[j].repairReach == 1) {
this.checkList[i].ten = this.matchList[j].repairReach;
- }else{
+ } else {
this.checkList[i].ten = this.matchList[j].detailReach;
}
} else if (str == "11") {
- if(this.matchList[j].repairReach == 1){
+ if (this.matchList[j].repairReach == 1) {
this.checkList[i].eleven = this.matchList[j].repairReach;
- }else{
+ } else {
this.checkList[i].eleven = this.matchList[j].detailReach;
}
} else if (str == "12") {
- if(this.matchList[j].repairReach == 1){
+ if (this.matchList[j].repairReach == 1) {
this.checkList[i].twelve = this.matchList[j].repairReach;
- }else{
+ } else {
this.checkList[i].twelve = this.matchList[j].detailReach;
}
} else if (str == "13") {
- if(this.matchList[j].repairReach == 1){
+ if (this.matchList[j].repairReach == 1) {
this.checkList[i].thirteen = this.matchList[j].repairReach;
- }else{
+ } else {
this.checkList[i].thirteen = this.matchList[j].detailReach;
}
} else if (str == "14") {
- if(this.matchList[j].repairReach == 1){
+ if (this.matchList[j].repairReach == 1) {
this.checkList[i].fourteen = this.matchList[j].repairReach;
- }else{
+ } else {
this.checkList[i].fourteen = this.matchList[j].detailReach;
}
} else if (str == "15") {
- if(this.matchList[j].repairReach == 1){
+ if (this.matchList[j].repairReach == 1) {
this.checkList[i].fifteen = this.matchList[j].repairReach;
- }else{
+ } else {
this.checkList[i].fifteen = this.matchList[j].detailReach;
}
} else if (str == "16") {
- if(this.matchList[j].repairReach == 1){
+ if (this.matchList[j].repairReach == 1) {
this.checkList[i].sixteen = this.matchList[j].repairReach;
- }else{
+ } else {
this.checkList[i].sixteen = this.matchList[j].detailReach;
}
} else if (str == "17") {
- if(this.matchList[j].repairReach == 1){
+ if (this.matchList[j].repairReach == 1) {
this.checkList[i].seventeen = this.matchList[j].repairReach;
- }else{
+ } else {
this.checkList[i].seventeen = this.matchList[j].detailReach;
}
} else if (str == "18") {
- if(this.matchList[j].repairReach == 1){
+ if (this.matchList[j].repairReach == 1) {
this.checkList[i].eighteen = this.matchList[j].repairReach;
- }else{
+ } else {
this.checkList[i].eighteen = this.matchList[j].detailReach;
}
} else if (str == "19") {
- if(this.matchList[j].repairReach == 1){
+ if (this.matchList[j].repairReach == 1) {
this.checkList[i].nineteen = this.matchList[j].repairReach;
- }else{
+ } else {
this.checkList[i].nineteen = this.matchList[j].detailReach;
}
} else if (str == "20") {
- if(this.matchList[j].repairReach == 1){
+ if (this.matchList[j].repairReach == 1) {
this.checkList[i].twenty = this.matchList[j].repairReach;
- }else{
+ } else {
this.checkList[i].twenty = this.matchList[j].detailReach;
}
} else if (str == "21") {
- if(this.matchList[j].repairReach == 1){
+ if (this.matchList[j].repairReach == 1) {
this.checkList[i].twentyOne = this.matchList[j].repairReach;
- }else{
+ } else {
this.checkList[i].twentyOne = this.matchList[j].detailReach;
}
} else if (str == "22") {
- if(this.matchList[j].repairReach == 1){
+ if (this.matchList[j].repairReach == 1) {
this.checkList[i].twentyTwo = this.matchList[j].repairReach;
- }else{
+ } else {
this.checkList[i].twentyTwo = this.matchList[j].detailReach;
}
} else if (str == "23") {
- if(this.matchList[j].repairReach == 1){
- this.checkList[i].twentyThree = this.matchList[j].repairReach;
- }else{
- this.checkList[i].twentyThree = this.matchList[j].detailReach;
+ if (this.matchList[j].repairReach == 1) {
+ this.checkList[i].twentyThree =
+ this.matchList[j].repairReach;
+ } else {
+ this.checkList[i].twentyThree =
+ this.matchList[j].detailReach;
}
} else if (str == "24") {
- if(this.matchList[j].repairReach == 1){
- this.checkList[i].twentyFour = this.matchList[j].repairReach;
- }else{
- this.checkList[i].twentyFour = this.matchList[j].detailReach;
+ if (this.matchList[j].repairReach == 1) {
+ this.checkList[i].twentyFour =
+ this.matchList[j].repairReach;
+ } else {
+ this.checkList[i].twentyFour =
+ this.matchList[j].detailReach;
}
} else if (str == "25") {
- if(this.matchList[j].repairReach == 1){
- this.checkList[i].twentyFive = this.matchList[j].repairReach;
- }else{
- this.checkList[i].twentyFive = this.matchList[j].detailReach;
+ if (this.matchList[j].repairReach == 1) {
+ this.checkList[i].twentyFive =
+ this.matchList[j].repairReach;
+ } else {
+ this.checkList[i].twentyFive =
+ this.matchList[j].detailReach;
}
} else if (str == "26") {
- if(this.matchList[j].repairReach == 1){
+ if (this.matchList[j].repairReach == 1) {
this.checkList[i].twentySix = this.matchList[j].repairReach;
- }else{
+ } else {
this.checkList[i].twentySix = this.matchList[j].detailReach;
}
} else if (str == "27") {
- if(this.matchList[j].repairReach == 1){
- this.checkList[i].twentySeven = this.matchList[j].repairReach;
- }else{
- this.checkList[i].twentySeven = this.matchList[j].detailReach;
+ if (this.matchList[j].repairReach == 1) {
+ this.checkList[i].twentySeven =
+ this.matchList[j].repairReach;
+ } else {
+ this.checkList[i].twentySeven =
+ this.matchList[j].detailReach;
}
} else if (str == "28") {
- if(this.matchList[j].repairReach == 1){
- this.checkList[i].twentyEight = this.matchList[j].repairReach;
- }else{
- this.checkList[i].twentyEight = this.matchList[j].detailReach;
+ if (this.matchList[j].repairReach == 1) {
+ this.checkList[i].twentyEight =
+ this.matchList[j].repairReach;
+ } else {
+ this.checkList[i].twentyEight =
+ this.matchList[j].detailReach;
}
} else if (str == "29") {
- if(this.matchList[j].repairReach == 1){
- this.checkList[i].twentyNine = this.matchList[j].repairReach;
- }else{
- this.checkList[i].twentyNine = this.matchList[j].detailReach;
+ if (this.matchList[j].repairReach == 1) {
+ this.checkList[i].twentyNine =
+ this.matchList[j].repairReach;
+ } else {
+ this.checkList[i].twentyNine =
+ this.matchList[j].detailReach;
}
} else if (str == "30") {
- if(this.matchList[j].repairReach == 1){
+ if (this.matchList[j].repairReach == 1) {
this.checkList[i].thirty = this.matchList[j].repairReach;
- }else{
+ } else {
this.checkList[i].thirty = this.matchList[j].detailReach;
}
} else if (str == "31") {
- if(this.matchList[j].repairReach == 1){
+ if (this.matchList[j].repairReach == 1) {
this.checkList[i].thirtyOne = this.matchList[j].repairReach;
- }else{
+ } else {
this.checkList[i].thirtyOne = this.matchList[j].detailReach;
}
}
@@ -601,57 +729,57 @@ export default {
this.$refs.itemSelect.showFlag = true;
},
- objectSpanMethod({ row, column, rowIndex, columnIndex }) {
- if (columnIndex === 0) {
- // 获取当前单元格的值
- const currentValue = row[column.property];
- // 获取上一行相同列的值
- const preRow = this.checkList[rowIndex - 1];
- const preValue = preRow ? preRow[column.property] : null;
- // 如果当前值和上一行的值相同,则将当前单元格隐藏
- if (currentValue === preValue) {
- return { rowspan: 0, colspan: 0 };
- } else {
- // 否则计算当前单元格应该跨越多少行
- let rowspan = 1;
- for (let i = rowIndex + 1; i < this.checkList.length; i++) {
- const nextRow = this.checkList[i];
- const nextValue = nextRow[column.property];
- if (nextValue === currentValue) {
- rowspan++;
- } else {
- break;
- }
- }
- return { rowspan, colspan: 1 };
- }
- }
+ // objectSpanMethod({ row, column, rowIndex, columnIndex }) {
+ // if (columnIndex === 0) {
+ // // 获取当前单元格的值
+ // const currentValue = row[column.property];
+ // // 获取上一行相同列的值
+ // const preRow = this.checkList[rowIndex - 1];
+ // const preValue = preRow ? preRow[column.property] : null;
+ // // 如果当前值和上一行的值相同,则将当前单元格隐藏
+ // if (currentValue === preValue) {
+ // return { rowspan: 0, colspan: 0 };
+ // } else {
+ // // 否则计算当前单元格应该跨越多少行
+ // let rowspan = 1;
+ // for (let i = rowIndex + 1; i < this.checkList.length; i++) {
+ // const nextRow = this.checkList[i];
+ // const nextValue = nextRow[column.property];
+ // if (nextValue === currentValue) {
+ // rowspan++;
+ // } else {
+ // break;
+ // }
+ // }
+ // return { rowspan, colspan: 1 };
+ // }
+ // }
- if (columnIndex === 1) {
- // 获取当前单元格的值
- const currentValue = row[column.property];
- // 获取上一行相同列的值
- const preRow = this.checkList[rowIndex - 1];
- const preValue = preRow ? preRow[column.property] : null;
- // 如果当前值和上一行的值相同,则将当前单元格隐藏
- if (currentValue === preValue) {
- return { rowspan: 0, colspan: 0 };
- } else {
- // 否则计算当前单元格应该跨越多少行
- let rowspan = 1;
- for (let i = rowIndex + 1; i < this.checkList.length; i++) {
- const nextRow = this.checkList[i];
- const nextValue = nextRow[column.property];
- if (nextValue === currentValue) {
- rowspan++;
- } else {
- break;
- }
- }
- return { rowspan, colspan: 1 };
- }
- }
- },
+ // if (columnIndex === 1) {
+ // // 获取当前单元格的值
+ // const currentValue = row[column.property];
+ // // 获取上一行相同列的值
+ // const preRow = this.checkList[rowIndex - 1];
+ // const preValue = preRow ? preRow[column.property] : null;
+ // // 如果当前值和上一行的值相同,则将当前单元格隐藏
+ // if (currentValue === preValue) {
+ // return { rowspan: 0, colspan: 0 };
+ // } else {
+ // // 否则计算当前单元格应该跨越多少行
+ // let rowspan = 1;
+ // for (let i = rowIndex + 1; i < this.checkList.length; i++) {
+ // const nextRow = this.checkList[i];
+ // const nextValue = nextRow[column.property];
+ // if (nextValue === currentValue) {
+ // rowspan++;
+ // } else {
+ // break;
+ // }
+ // }
+ // return { rowspan, colspan: 1 };
+ // }
+ // }
+ // },
},
};
@@ -663,3 +791,4 @@ export default {
}
+
diff --git a/src/views/quality/checkType/index.vue b/src/views/quality/checkType/index.vue
index 8551442..9814280 100644
--- a/src/views/quality/checkType/index.vue
+++ b/src/views/quality/checkType/index.vue
@@ -107,7 +107,7 @@
-
+
diff --git a/src/views/quality/checkTypeProject/MaterialGroupAdd.vue b/src/views/quality/checkTypeProject/MaterialGroupAdd.vue
index 87873d3..4e5364d 100644
--- a/src/views/quality/checkTypeProject/MaterialGroupAdd.vue
+++ b/src/views/quality/checkTypeProject/MaterialGroupAdd.vue
@@ -313,7 +313,12 @@ export default {
console.log(this.form.groupId);
if(this.form.materialCode != null) {
addMaterialGroupDetail(this.form).then((response) => {
- this.$modal.msgSuccess("新增成功");
+ let message = response.code
+ if(message == 200) {
+ this.$modal.msgSuccess("新增成功");
+ }else {
+ this.$modal.msgError("新增失败");
+ }
this.open = false;
this.getMaterialTree();
});
diff --git a/src/views/quality/produceReport/index.vue b/src/views/quality/produceReport/index.vue
index 3487d87..1be751f 100644
--- a/src/views/quality/produceReport/index.vue
+++ b/src/views/quality/produceReport/index.vue
@@ -1,13 +1,15 @@
-
-
+
+
+
+
-
+
-
-
-
-
-
+
+
+
+
-
+
@@ -189,11 +191,11 @@
-
+
@@ -203,7 +205,7 @@
-
-
+
-
+
-
+
@@ -278,7 +280,7 @@
-
+
@@ -312,7 +314,7 @@
-
+
@@ -427,8 +429,9 @@ export default {
return index + 1;
},
/****/
+ //获取检验节点
getCheckTypes() {
- getCheckTypes('material').then(response => {
+ getCheckTypes('produce').then(response => {
this.checkTypes = response;
});
},
@@ -499,7 +502,7 @@ export default {
updateTime: null,
factoryCode: null,
delFlag: null,
-
+
};
this.resetForm("form");
},
@@ -529,7 +532,7 @@ export default {
handleLook(row) {
this.reset();
const recordId = row.recordId || this.ids
-
+
if(row.checkType =='checkTypeSC') {
getProduce(recordId).then(response => {
this.form = response.data;
@@ -555,7 +558,7 @@ export default {
this.newWorkerLoading = false // 设置加载状态为false,表示加载完成
})
}
-
+
},
/** 提交按钮 */
submitForm() {
@@ -630,11 +633,11 @@ export default {
margin-bottom: 15px;
margin-left: 10px;
}
-.center-text {
+.center-text {
text-align: center;
}
.my-print-nav {
margin-top: 15px;
margin-bottom: 15px;
}
-
\ No newline at end of file
+
diff --git a/src/views/quality/qcInventory/checkProjectType.vue b/src/views/quality/qcInventory/checkProjectType.vue
new file mode 100644
index 0000000..a93c201
--- /dev/null
+++ b/src/views/quality/qcInventory/checkProjectType.vue
@@ -0,0 +1,258 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 检测值
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+ 提交
+ 新增测量值
+ 重置
+
+
+
+
+
+
diff --git a/src/views/quality/qcInventory/index.vue b/src/views/quality/qcInventory/index.vue
new file mode 100644
index 0000000..b5b7864
--- /dev/null
+++ b/src/views/quality/qcInventory/index.vue
@@ -0,0 +1,675 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.incomeTime, '{y}-{m}-{d} {h}:{i}:{s}') }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.checkTime, '{y}-{m}-{d} {h}:{i}:{s}') }}
+
+
+
+
+
+
+
+
+
+
+
+ 检验
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/quality/qcInventory/selectLLWorkOrder.vue b/src/views/quality/qcInventory/selectLLWorkOrder.vue
new file mode 100644
index 0000000..cf11382
--- /dev/null
+++ b/src/views/quality/qcInventory/selectLLWorkOrder.vue
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/quality/qcInventory/selectMaterial.vue b/src/views/quality/qcInventory/selectMaterial.vue
new file mode 100644
index 0000000..07aab87
--- /dev/null
+++ b/src/views/quality/qcInventory/selectMaterial.vue
@@ -0,0 +1,156 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/quality/qcInventory/selectSupplier.vue b/src/views/quality/qcInventory/selectSupplier.vue
new file mode 100644
index 0000000..4903f44
--- /dev/null
+++ b/src/views/quality/qcInventory/selectSupplier.vue
@@ -0,0 +1,152 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/quality/qcInventory/selectUser.vue b/src/views/quality/qcInventory/selectUser.vue
new file mode 100644
index 0000000..a7e9c5e
--- /dev/null
+++ b/src/views/quality/qcInventory/selectUser.vue
@@ -0,0 +1,150 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/quality/qcProduce/index.vue b/src/views/quality/qcProduce/index.vue
index a16f56f..63d331d 100644
--- a/src/views/quality/qcProduce/index.vue
+++ b/src/views/quality/qcProduce/index.vue
@@ -122,7 +122,7 @@
v-hasPermi="['quality:qcProduce:add']"
>新增
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
@@ -424,6 +414,7 @@ import ItemSelectWorkOrder from "./selectWorkOrder.vue";
import ItemSelectWorkCenter from "./selectWorkCenter.vue";
import ItemSelectUser from "../qcIncome/selectUser.vue";
import ItemSelectProject from "../qcIncome/checkProjectType.vue";
+import { getDefectTypeListByDefectType } from "@/api/quality/defectType.js";
export default {
name: "QcProduce",
components: { ItemSelectWorkCenter,ItemSelectUser,ItemSelectProject,ItemSelectWorkOrder},
@@ -445,6 +436,7 @@ export default {
// 生产过程检验任务表格数据
qcProduceList: [],
checkTypeList:[],
+ defectTypeList: [],
// 弹出层标题
title: "",
// 是否显示弹出层
@@ -522,6 +514,7 @@ export default {
this.getDate();
this.getList();
this.getCheckTypes();
+ this.handleDefectType();
},
methods: {
/****/
@@ -602,7 +595,8 @@ export default {
updateBy: null,
updateTime: null,
factoryCode: null,
- delFlag: null
+ delFlag: null,
+ defects: []
};
this.resetForm("form");
},
@@ -625,8 +619,10 @@ export default {
/** 新增按钮操作 */
handleAdd() {
this.reset();
+ this.form.defects = this.defectTypeList;
this.open = true;
this.title = "添加生产过程检验任务";
+
},
/** 修改按钮操作 */
handleUpdate(row) {
@@ -634,8 +630,15 @@ export default {
const recordId = row.recordId || this.ids
getQcProduce(recordId).then(response => {
this.form = response.data;
+ if (this.form.defects == null) {
+ this.form.defects = this.defectTypeList;
+ }
this.open = true;
this.title = "修改生产过程检验任务";
+
+ getBatchList(response.data.orderNo).then(response => {
+ this.batchList = response;
+ });
});
},
/** 提交按钮 */
@@ -735,6 +738,12 @@ export default {
//提交检测结果
saveCheck(){
this.getList();
+ },
+ handleDefectType() {
+ const defectType = "produce"
+ getDefectTypeListByDefectType(defectType).then(response => {
+ this.defectTypeList = response.rows;
+ });
}
}
};
diff --git a/src/views/quality/qcSampleRule/index.vue b/src/views/quality/qcSampleRule/index.vue
index f6c71fe..3a9b95c 100644
--- a/src/views/quality/qcSampleRule/index.vue
+++ b/src/views/quality/qcSampleRule/index.vue
@@ -133,13 +133,13 @@
-
+
-
+
-
+
-
-
+
+
{{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{i}:{s}') }}
diff --git a/src/views/wms/bom/index.vue b/src/views/wms/bom/index.vue
index fa514a8..86f0ffe 100644
--- a/src/views/wms/bom/index.vue
+++ b/src/views/wms/bom/index.vue
@@ -16,6 +16,22 @@
@keyup.enter.native="handleQuery"
/>
+
+
+
+
+
+
-
+
-
+
-
+
-
+
@@ -742,7 +750,7 @@
-
+
-
+
上一步
- 下一步
- 下一步
- 下一步
下一步
+ 下一步
+ 下一步
+ 提 交
提 交
-
+
-
+
-
+
{
for (let i in response.rows) {
// 将返回的列表赋值于穿梭框左边列表
this.auxiliaryEquipmentLeftList.push({
key: response.rows[i].equipmentCode,
- label: response.rows[i].equipmentCode + response.rows[i].equipmentName + response.rows[i].remark,
+ label:
+ response.rows[i].equipmentCode +
+ response.rows[i].equipmentName +
+ response.rows[i].remark,
});
}
});
@@ -1466,22 +1501,25 @@ export default {
this.options1 = response.rows;
});
- this.queryAuxiliaryEquipmentParams.equipmentCategory = '0';
+ this.queryAuxiliaryEquipmentParams.equipmentCategory = "0";
listEquipment(this.queryAuxiliaryEquipmentParams).then((response) => {
- console.log("listEquipment")
+ console.log("listEquipment");
this.auxiliaryEquipmentLeftList = [];
for (let i in response.rows) {
// 将返回的列表赋值于穿梭框左边列表
this.auxiliaryEquipmentLeftList.push({
key: response.rows[i].equipmentCode,
- label: response.rows[i].equipmentCode + response.rows[i].equipmentName + response.rows[i].remark,
+ label:
+ response.rows[i].equipmentCode +
+ response.rows[i].equipmentName +
+ response.rows[i].remark,
});
}
- console.log(this.auxiliaryEquipmentRightList)
+ console.log(this.auxiliaryEquipmentRightList);
});
getEquipment(equipmentId).then((response) => {
- console.log("getEquipment")
+ console.log("getEquipment");
this.form = response.data;
this.rightList = [];
for (let i in response.data.selectedData) {
@@ -1489,14 +1527,14 @@ export default {
this.rightList.push(response.data.selectedData[i].spareCode);
}
this.auxiliaryEquipmentRightList = [];
- console.log(this.auxiliaryEquipmentRightList)
+ console.log(this.auxiliaryEquipmentRightList);
for (let i in response.data.selectedEquipmentData) {
// 将返回的辅助设备列表赋值于穿梭框右边列表
this.auxiliaryEquipmentRightList.push(
response.data.selectedEquipmentData[i].auxiliaryEquipmentCode
);
}
- console.log(this.auxiliaryEquipmentRightList)
+ console.log(this.auxiliaryEquipmentRightList);
if (response.data.imageFiles != null) {
var newFiles = [];