-
-
+
+
+
+ 搜索
+
+ 重置
+
{{ scope.row.material_.specification }}
-
+
{{ actstate_[scope.row.act_state] }}
@@ -32,7 +54,12 @@
{{ scope.row.subproduction_plan_.number }}
-
+
{{ scope.row.step_.name }}
@@ -89,10 +116,31 @@
-
+
+
+ 搜索
+
+ 重置
+
{{ scope.row.subproduction_plan_.number }}
-
+
{{ scope.row.step_.name }}
@@ -148,13 +201,34 @@
/>
-
+
批量入库
+
+ 搜索
+
+ 重置
+
{{ scope.row.subproduction_plan_.number }}
-
+
{{ scope.row.step_.name }}
@@ -216,10 +295,31 @@
/>
-
+
+
+ 搜索
+
+ 重置
+
{{ scope.row.material_.specification }}
-
+
{{ scope.row.step_.name }}
@@ -283,10 +387,10 @@
/>
-
+
{{ scope.row.subproduction_plan_.number }}
-
+
{{ scope.row.step_.name }}
@@ -516,7 +624,7 @@
@@ -721,6 +829,7 @@
page: 1,
page_size: 20,
},
+ activeName: "1",
create_by_: '',
update_time: '',
formLabelWidth: '',
@@ -825,15 +934,40 @@
computed: {},
watch: {},
created() {
- this.getList();
- this.getList2();
- this.getList1();
- this.getList3();
- this.getList4();
+ this.getList();//待检
+ this.getList2();//复检
+ this.getList1();//已合格
+ this.getList3();//夹层
+ this.getList4();//不合格
// this.getLists();
},
methods: {
checkPermission,
+ handleClick(tab) {
+ this.listLoading = true;
+ this.listQuery.type = tab.name;
+ if(tab.name==1)
+ {
+ this.getList();
+ }
+ else if(tab.name==2)
+ {
+ this.getList2();
+ }
+ else if(tab.name==3)
+ {
+ this.getList1();
+ }
+ else if(tab.name==4)
+ {
+ this.getList4();
+ }
+ else if(tab.name==5)
+ {
+ this.getList3();
+ }
+
+ },
//待检半成品列表
getList() {
this.listLoading = true;
@@ -844,6 +978,18 @@
}
this.listLoading = false;
});
+ },
+ handleFilter1() {
+ this.listQuery.page = 1;
+ this.getList();
+ },
+ resetFilter1() {
+
+ this.listQuery = {
+ page: 1,
+ page_size: 20,
+ };
+ this.getList();
},
//待检半成品报废
handleScrapbcp(scope) {
@@ -872,6 +1018,18 @@
this.wproductList2 = response.data;
}
});
+ },
+ handleFilter2() {
+ this.listQuery2.page = 1;
+ this.getList2();
+ },
+ resetFilter2() {
+
+ this.listQuery2 = {
+ page: 1,
+ page_size: 20,
+ };
+ this.getList2();
},
//已合格半成品
getList1() {
@@ -883,6 +1041,18 @@
}
});
+ },
+ handleFilter3() {
+ this.listQuery1.page = 1;
+ this.getList1();
+ },
+ resetFilter3() {
+
+ this.listQuery1 = {
+ page: 1,
+ page_size: 20,
+ };
+ this.getList1();
},
//不合格半成品
getList4() {
@@ -894,6 +1064,18 @@
}
});
+ },
+ handleFilter4() {
+ this.listQuery4.page = 1;
+ this.getList4();
+ },
+ resetFilter4() {
+
+ this.listQuery4 = {
+ page: 1,
+ page_size: 20,
+ };
+ this.getList4();
},
//不合格半成品报废
handleScrap(scope) {
@@ -969,6 +1151,10 @@
}
});
},
+ //筛选
+ filterTag(value, row) {
+ return row.step_.name === value;
+ },
//夹层半成品列表
getList3() {
this.listQuery3.act_state = 26;
diff --git a/hb_client/src/views/wpm/operationdo.vue b/hb_client/src/views/wpm/operationdo.vue
index 3ae609d..88e9ca0 100644
--- a/hb_client/src/views/wpm/operationdo.vue
+++ b/hb_client/src/views/wpm/operationdo.vue
@@ -1144,12 +1144,33 @@ export default {
//提交本次操作
handlesubmit() {
- submitOperation(this.id).then((res) => {
+
+
+ if(this.inputData=="")
+ {
+ this.$confirm("没有消耗物料确定提交吗?", "提示", {
+ confirmButtonText: "确认",
+ cancelButtonText: "取消",
+ type: "error",
+ })
+ .then(async () => {
+ await submitOperation(this.id);
+ this.$router.push({ name: "operation" });
+ this.$message.success("操作提交成功!");
+ })
+ .catch((err) => {
+ console.error(err);
+ });
+ }
+ else{
+ submitOperation(this.id).then((res) => {
if (res.code >= 200) {
this.$router.push({ name: "operation" });
this.$message.success("操作提交成功!");
}
});
+ }
+
},
},
};