diff --git a/src/api/device/item.js b/src/api/device/item.js
index 9e977fc..078f576 100644
--- a/src/api/device/item.js
+++ b/src/api/device/item.js
@@ -58,3 +58,27 @@ export function delItem(itemId) {
method: 'delete'
});
}
+/////////////////////////////////////////下面都是汇总报表用
+// 查询检查项汇总表
+export function getSummaryReport() {
+ return request({
+ url: '/device/item/summaryReport',
+ method: 'get'
+ });
+}
+
+// 查询工作中心
+export function getWorkCenter() {
+ return request({
+ url: '/device/item/getWorkCenter',
+ method: 'get'
+ });
+}
+
+// 查询工单匹配检查项
+export function selectMatchList(query) {
+ return request({
+ url: '/device/item/matchList',
+ params: query
+ });
+}
diff --git a/src/api/quality/checkTypeProject.js b/src/api/quality/checkTypeProject.js
index 1346424..429d0d3 100644
--- a/src/api/quality/checkTypeProject.js
+++ b/src/api/quality/checkTypeProject.js
@@ -55,3 +55,21 @@ export function changeStatus(id,status) {
data: data
});
}
+
+//批量添加检测项
+export function submitProjects(data) {
+ return request({
+ url: '/quality/checkTypeProject/submitProjects',
+ method: 'post',
+ data: data
+ });
+}
+
+//获取检测项列表
+export function getProjectInfoList(query) {
+ return request({
+ url: '/quality/checkTypeProject/getProjectInfoList',
+ method: 'get',
+ params: query
+ });
+}
\ No newline at end of file
diff --git a/src/views/device/repairOrder/index.vue b/src/views/device/repairOrder/index.vue
index 45d07a4..8623238 100644
--- a/src/views/device/repairOrder/index.vue
+++ b/src/views/device/repairOrder/index.vue
@@ -799,7 +799,7 @@
@@ -807,10 +807,10 @@
{{
form.workCode
@@ -876,8 +876,8 @@
+
-
+
-
-
-
-
+
@@ -1069,7 +1055,7 @@
-
+
@@ -1083,7 +1069,7 @@
-
+
@@ -1126,7 +1112,6 @@
>
-
+
+
@@ -231,16 +236,17 @@ import {
delCheckTypeProject,
addCheckTypeProject,
updateCheckTypeProject,
- changeStatus
+ changeStatus,
+ submitProjects
} from "@/api/quality/checkTypeProject";
import MaterialGroupAdd from "./MaterialGroupAdd.vue";
import {listCheckType} from "@/api/quality/checkType";
import {getProjectList} from "@/api/quality/project";
-
+import SelectProject from "./selectProject.vue";
export default {
name: "CheckTypeProject",
dicts: ["qc_rule_prop",'unit'],
- components: {MaterialGroupAdd,},
+ components: {MaterialGroupAdd,SelectProject},
data() {
return {
// 遮罩层
@@ -355,6 +361,7 @@ export default {
groupId: null,
materialCode: null,
projectNo: null,
+ projectInfos:[]
};
this.resetForm("form");
},
@@ -414,12 +421,17 @@ export default {
},
/** 新增按钮操作 */
handleAdd() {
- this.reset();
- this.open = true;
- this.title = "添加物料检验项目维护";
- this.form.groupId = this.groupId;
- this.form.materialCode = this.materialCode;
- this.form.typeId = this.editableTabsValue;
+
+ if(this.groupId==null||this.materialCode){
+ this.$modal.msgError("请点击左侧节点");
+ return
+ };
+ if(this.queryParams.typeId==null){
+ this.$modal.msgError("请选择头部节点");
+ retrun
+ };
+ this.$refs.child.showFlag = true;
+ this.$refs.child.init(this.groupId,this.materialCode,this.queryParams.typeId);
},
/** 修改按钮操作 */
handleUpdate(row) {
@@ -525,6 +537,25 @@ export default {
row.status = row.status === "0" ? "1" : "0";
});
},
+ //检验项目添加确认
+ onSelectProjects(objs) {
+ let _this = this;
+ objs.forEach(function(item,index,arr){
+ item.projectId = item.id;
+ item.projectNo = item.orderNum;
+ item.unit = item.unitCode;
+ item.standardValue = item.checkStandard;
+ item.typeId = _this.queryParams.typeId;
+ item.groupId = _this.groupId;
+ item.materialCode = _this.materialCode;
+
+ });
+ submitProjects(objs).then(response => {
+ this.$modal.msgSuccess("提交成功");
+ this.open = false;
+ this.getList();
+ });
+ },
},
};
diff --git a/src/views/quality/checkTypeProject/selectProject.vue b/src/views/quality/checkTypeProject/selectProject.vue
new file mode 100644
index 0000000..7a30708
--- /dev/null
+++ b/src/views/quality/checkTypeProject/selectProject.vue
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/quality/project/index.vue b/src/views/quality/project/index.vue
index 8d4d886..3540349 100644
--- a/src/views/quality/project/index.vue
+++ b/src/views/quality/project/index.vue
@@ -92,8 +92,8 @@
-
-
+
+
+
+
+
+
+
+
+
diff --git a/src/views/quality/qcIncome/selectMaterial.vue b/src/views/quality/qcIncome/selectMaterial.vue
index bf9f8db..07aab87 100644
--- a/src/views/quality/qcIncome/selectMaterial.vue
+++ b/src/views/quality/qcIncome/selectMaterial.vue
@@ -150,7 +150,6 @@ export default {
this.selectedRows.name = this.idsName;
this.$emit('onSelected', this.selectedRows);
this.showFlag = false;
- this.queryParams.itemCodeGet = "";
}
}
};
diff --git a/src/views/quality/qcProduce/index.vue b/src/views/quality/qcProduce/index.vue
index 6d81fac..500a5f1 100644
--- a/src/views/quality/qcProduce/index.vue
+++ b/src/views/quality/qcProduce/index.vue
@@ -62,7 +62,7 @@
-
+
-
+
@@ -242,7 +242,6 @@
-
diff --git a/src/views/quality/qcWarehousing/index.vue b/src/views/quality/qcWarehousing/index.vue
index f512092..16415f0 100644
--- a/src/views/quality/qcWarehousing/index.vue
+++ b/src/views/quality/qcWarehousing/index.vue
@@ -9,6 +9,7 @@
@keyup.enter.native="handleQuery"
/>
+
+
+
+
-
+
-
-
+
+
@@ -235,19 +239,28 @@
-
-
-
+
+
+
+
+
-
+
-
+
+
+
-
+
@@ -255,30 +268,28 @@
-
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -291,6 +302,17 @@
+
+
+
+
+
+
+
+
@@ -305,16 +327,7 @@
-
-
-
-
-
-
+
@@ -341,6 +354,11 @@
取 消
+
+
import { listWarehousing, getWarehousing, delWarehousing, addWarehousing, updateWarehousing } from "@/api/quality/warehousing";
+import { getBatchList} from "@/api/quality/qcProduce";
import { getCheckTypes } from "@/api/quality/qcProduce";
+import ItemSelectWorkOrder from "./selectWorkOrder.vue";
import ItemSelectMaterial from "../qcIncome/selectMaterial.vue";
import ItemSelectLoc from "./selectLoc.vue";
import ItemSelectUser from "../qcIncome/selectUser.vue";
@@ -374,7 +394,7 @@ import ItemSelectProject from "../qcIncome/checkProjectType.vue";
import moment from 'moment';
export default {
name: "Warehousing",
- components: { ItemSelectMaterial,ItemSelectLoc,ItemSelectUser,ItemSelectProject},
+ components: { ItemSelectMaterial,ItemSelectLoc,ItemSelectUser,ItemSelectProject,ItemSelectWorkOrder},
dicts: ["unit","check_status","check_result"],
data() {
return {
@@ -627,6 +647,22 @@ export default {
});
},
+ /**工单选择弹出框**/
+ handleSelectWorkOrder() {
+ this.$refs.itemSelectWorkOrder.showFlag = true;
+ },
+ //工单选择确认
+ onSelectWorkOrder(obj) {
+ this.form.orderNo = obj.orderNo;
+ this.form.materialName = obj.materialName;
+ this.form.materialCode = obj.materialCode;
+ this.form.quality = obj.quality;
+ this.form.unit = obj.unit;
+ this.form.incomeTime = obj.incomeTime;
+ getBatchList(obj.workorderCode).then(response => {
+ this.batchList = response;
+ });
+ },
/**物料选择弹出框**/
handleSelectMaterial() {
this.$refs.itemSelectMaterial.showFlag = true;
diff --git a/src/views/quality/qcWarehousing/selectWorkOrder.vue b/src/views/quality/qcWarehousing/selectWorkOrder.vue
new file mode 100644
index 0000000..a2270c6
--- /dev/null
+++ b/src/views/quality/qcWarehousing/selectWorkOrder.vue
@@ -0,0 +1,139 @@
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.incomeTime, '{y}-{m}-{d}') }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/technology/proroute/index.vue b/src/views/technology/proroute/index.vue
index 548e061..035e866 100644
--- a/src/views/technology/proroute/index.vue
+++ b/src/views/technology/proroute/index.vue
@@ -116,7 +116,7 @@
>{{scope.row.routeCode}}
-
+