@@ -52,10 +52,28 @@
v-model="queryParams.itemName"
placeholder="请输入设备名称"
clearable
- style="width: 240px"
+ style="width: 160px"
@keyup.enter.native="handleQuery"
/>
+
+
+
+
+
+
+
+
{
+ this.options = response.rows;
+ });
},
+ //查询
+ getEquList() {
+ this.loading = true;
+ this.queryParams.equipmentCode = this.queryParams.itemCode;
+ this.queryParams.equipmentName = this.queryParams.itemName;
+ getEquList(this.queryParams).then((response) => {
+ this.itemList = response.rows;
+ this.total = response.total;
+ this.loading = false;
+ });
+ },
+
+
/** 查询分类下拉树结构 */
getEquipmentType() {
getEquipmentTypeList().then((response) => {
- console.log(response.rows);
- this.treeData1 = response.rows;
- console.log(this.treeData1);
+ this.treeData = response.rows;
});
},
@@ -236,23 +274,24 @@ export default {
// 节点单击事件
handleNodeClick(data) {
- console.log("id", data.id);
this.queryParams.equipmentTypeCode = data.equipmentTypeCode;
- console.log(this.equipmentTypeCode);
- this.handleQuery();
+ console.log(this.queryParams.equipmentTypeCode);
+ this.queryParams.pageNum = 1;
+ this.getList();
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
- this.getList();
+ this.getEquList();
},
/** 重置按钮操作 */
resetQuery() {
this.queryParams.equipmentTypeCode = null;
this.resetForm("queryForm");
- this.handleQuery();
+ this.queryParams.pageNum = 1;
+ this.getList()
},
// 多选框选中数据
@@ -279,7 +318,6 @@ export default {
this.$emit("onSelected", this.selectedRows);
this.queryParams.equipmentTypeCode = null;
this.getList();
- console.log("111111", this.queryParams.equipmentTypeCode);
this.showFlag = false;
this.queryParams.itemCodeGet = "";
}
@@ -288,7 +326,6 @@ export default {
cancelEquipmentForm() {
this.queryParams.equipmentTypeCode = null;
this.getList();
- console.log("111111", this.queryParams.equipmentTypeCode);
this.showFlag = false;
},
},
diff --git a/src/views/device/inspectionPlan/index.vue b/src/views/device/inspectionPlan/index.vue
index 14e7567..0777e0e 100644
--- a/src/views/device/inspectionPlan/index.vue
+++ b/src/views/device/inspectionPlan/index.vue
@@ -539,11 +539,21 @@
+
+
+
+
+
{
+ this.groupLineList = response.data;
+ this.equipmentQuery.groupLine = response.data[0].equipmentCode;
+ this.getEquList();
+ })
+
this.selectEqu = true;
},
// 编辑标准确认按钮
@@ -1032,6 +1059,7 @@ export default {
equipmentCode: null,
equipmentName: null,
workshopCode: null,
+ groupLine:this.groupLineList[0].equipmentCode,
pageNum: 1,
pageSize: 10,
};
diff --git a/src/views/device/item/index.vue b/src/views/device/item/index.vue
index 2c4b78b..990f93b 100644
--- a/src/views/device/item/index.vue
+++ b/src/views/device/item/index.vue
@@ -310,14 +310,14 @@
-
-
-
+
+
+
diff --git a/src/views/device/operation/index.vue b/src/views/device/operation/index.vue
new file mode 100644
index 0000000..a0d60f6
--- /dev/null
+++ b/src/views/device/operation/index.vue
@@ -0,0 +1,547 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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/index.vue b/src/views/quality/qcIncome/index.vue
index ab77a97..d7fa5e5 100644
--- a/src/views/quality/qcIncome/index.vue
+++ b/src/views/quality/qcIncome/index.vue
@@ -253,17 +253,22 @@
-
+
-
+
+
+
+
+
+
-
+
+
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..511c8b9 100644
--- a/src/views/quality/qcProduce/index.vue
+++ b/src/views/quality/qcProduce/index.vue
@@ -62,7 +62,7 @@
-
+
-
+
@@ -242,7 +242,6 @@
-
@@ -320,17 +319,22 @@
-
+
+
+
+
+
+
-
+
-
+
diff --git a/src/views/quality/qcProduce/selectWorkOrder.vue b/src/views/quality/qcProduce/selectWorkOrder.vue
index a2270c6..7d7fee1 100644
--- a/src/views/quality/qcProduce/selectWorkOrder.vue
+++ b/src/views/quality/qcProduce/selectWorkOrder.vue
@@ -25,12 +25,13 @@
-
-
+
+
+
-
+
{{ parseTime(scope.row.incomeTime, '{y}-{m}-{d}') }}
diff --git a/src/views/quality/qcWarehousing/index.vue b/src/views/quality/qcWarehousing/index.vue
index f512092..933c573 100644
--- a/src/views/quality/qcWarehousing/index.vue
+++ b/src/views/quality/qcWarehousing/index.vue
@@ -9,6 +9,7 @@
@keyup.enter.native="handleQuery"
/>
+
+
+
+
-
+
-
-
+
+
@@ -235,33 +239,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -274,12 +251,56 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -305,16 +338,7 @@
-
-
-
-
-
-
+
@@ -341,6 +365,11 @@
取 消