diff --git a/public/index.html b/public/index.html
index 0c7252ba..8cb78170 100644
--- a/public/index.html
+++ b/public/index.html
@@ -35,9 +35,9 @@
-
+
-
+
<%= VUE_APP_TITLE %>
diff --git a/src/api/model/qm.js b/src/api/model/qm.js
index 5a7ec2f3..a2d1dad1 100644
--- a/src/api/model/qm.js
+++ b/src/api/model/qm.js
@@ -37,5 +37,47 @@ export default {
return await http.get(this.url, data);
}
},
+ ftest: {
+ list: {
+ name: "首件检验列表",
+ req: async function(data){
+ return await http.get(
+ `${config.API_URL}/qm/ftest/`,
+ data
+ );
+ }
+ },
+ item: {
+ name: "首件检验",
+ req: async function(id){
+ return await http.get(
+ `${config.API_URL}/qm/ftest/${id}/`
+ );
+ }
+ },
+ update: {
+ name: "更新首件检验",
+ req: async function(id, data){
+ return await http.put(
+ `${config.API_URL}/qm/ftest/${id}/`,
+ data);
+ }
+ },
+ create: {
+ name: "创建首件检验",
+ req: async function(data){
+ return await http.post(
+ `${config.API_URL}/qm/ftest/`,
+ data);
+ }
+ },
+ delete: {
+ name: "删除首件检验",
+ req: async function(id){
+ return await http.delete(
+ `${config.API_URL}/qm/ftest/${id}/`);
+ }
+ }
+ },
}
diff --git a/src/api/model/wpm.js b/src/api/model/wpm.js
index 02158cdb..1ed8c73d 100644
--- a/src/api/model/wpm.js
+++ b/src/api/model/wpm.js
@@ -196,6 +196,72 @@ export default {
}
}
},
+ handover:{
+ list: {
+ name: "值班记录列表",
+ req: async function(data){
+ return await http.get(
+ `${config.API_URL}/wpm/handover/`,
+ data
+ );
+ }
+ },
+ item: {
+ name: "获取详情",
+ req: async function(id){
+ return await http.get(
+ `${config.API_URL}/wpm/handover/${id}/`
+ );
+ }
+ },
+ cquery: {
+ name: "复杂查询",
+ req: async function(data){
+ return await http.post(
+ `${config.API_URL}/wpm/handover/cquery/`,
+ data);
+ }
+ },
+ update: {
+ name: "更新",
+ req: async function(id, data){
+ return await http.put(
+ `${config.API_URL}/wpm/handover/${id}/`,
+ data);
+ }
+ },
+ create: {
+ name: "创建",
+ req: async function(data){
+ return await http.post(
+ `${config.API_URL}/wpm/handover/`,
+ data);
+ }
+ },
+ delete: {
+ name: "删除",
+ req: async function(id){
+ return await http.delete(
+ `${config.API_URL}/wpm/handover/${id}/`);
+ }
+ },
+ genByMlogs:{
+ name: "从生产日志生成交接记录",
+ req: async function(data){
+ return await http.post(
+ `${config.API_URL}/wpm/handover/gen_by_mlogs/`,
+ data);
+ }
+ },
+ genByWm:{
+ name: "从车间库存生成交接记录",
+ req: async function(data){
+ return await http.post(
+ `${config.API_URL}/wpm/handover/gen_by_wm/`,
+ data);
+ }
+ }
+ },
//车间库存
wmaterial: {
list: {
diff --git a/src/config/route.js b/src/config/route.js
index 5362a43a..22754003 100644
--- a/src/config/route.js
+++ b/src/config/route.js
@@ -643,7 +643,7 @@ const routes = [
"name": "em",
"path": "/em",
"meta": {
- "title": "设备",
+ "title": "设备管理",
"icon": "el-icon-grid",
"type": "menu",
"perms": ["em"]
diff --git a/src/views/inm/mioitem.vue b/src/views/inm/mioitem.vue
index d22afa38..d44558fd 100644
--- a/src/views/inm/mioitem.vue
+++ b/src/views/inm/mioitem.vue
@@ -42,6 +42,9 @@
+
+ 检验
+
删除
@@ -52,18 +55,25 @@
+ @success="handleSaveSuccess" @closed="dialog.save = false">
+
+
+
+
+
+
diff --git a/src/views/mtm/materials.vue b/src/views/mtm/materials.vue
index a55e9f25..d8887f58 100644
--- a/src/views/mtm/materials.vue
+++ b/src/views/mtm/materials.vue
@@ -31,6 +31,13 @@
+
+
+
+
+
+
+
@@ -136,6 +143,7 @@ export default {
}).then(() => {
this.$API.mtm.material.delete.req(row.id).then((res) => {
this.$message.success("删除成功");
+ this.$refs.table.refresh();
return res;
}).catch((err) => {
return err;
diff --git a/src/views/mtm/materials_form.vue b/src/views/mtm/materials_form.vue
index 35ae71a7..afa5ded2 100644
--- a/src/views/mtm/materials_form.vue
+++ b/src/views/mtm/materials_form.vue
@@ -21,11 +21,29 @@
-
+
+
+
+
+
+
+
+
@@ -70,6 +88,7 @@ export default {
edit: "编辑物料",
show: "查看物料",
},
+ brothers:[],
form: {},
rules: {
name: [{ required: true, message: "请输入物料名称", trigger: "blur" }],
@@ -87,11 +106,14 @@ export default {
{ id: 60, name: '辅助工装' },
{ id: 70, name: '办公用品' },
],
+ handle_user:[],
selectionFilters: [],
+ materialOptions:[],
setFiltersVisible: false,
};
},
mounted() {
+
},
methods: {
//显示
@@ -100,26 +122,44 @@ export default {
this.visible = true;
return this;
},
+ getMaterial(val){
+ let that = this;
+ let query = {};
+ query.type = val;
+ query.page = 0;
+ query.is_hidden = false;
+ this.$API.mtm.material.list.req(query).then(res=>{
+ that.materialOptions = res;
+ })
+ },
+ typeChange(val){
+ this.getMaterial(val);
+ },
//提交
submit() {
this.$refs.dialogForm.validate(async (valid) => {
if (valid) {
this.isSaveing = true;
- try {
- var res;
- if (this.mode == "add") {
- res = await this.$API.mtm.material.create.req(this.form);
- } else if (this.mode == "edit") {
- res = await this.$API.mtm.material.update.req(this.form.id, this.form);
- }
- this.isSaveing = false;
- this.$emit("success", this.form, this.mode);
- this.visible = false;
- this.$message.success("操作成功");
- } catch (err) {
- //可以处理校验错误
- this.isSaveing = false;
- return err;
+ this.form.brothers = this.brothers;
+ if (this.mode == "add") {
+ this.$API.mtm.material.create.req(this.form).then(res=>{
+ this.isSaveing = false;
+ this.$emit("success", this.form, this.mode);
+ this.visible = false;
+ this.$message.success("操作成功");
+ }).catch(()=>{
+ this.isSaveing = false;
+ this.visible = false;
+ })
+ } else if (this.mode == "edit") {
+ this.$API.mtm.material.update.req(this.form.id, this.form).then(res=>{
+ this.isSaveing = false;
+ this.$emit("success", this.form, this.mode);
+ this.visible = false;
+ this.$message.success("操作成功");
+ }).catch(()=>{
+ this.isSaveing = false;
+ })
}
}
});
@@ -127,6 +167,8 @@ export default {
//表单注入数据
setData(data) {
Object.assign(this.form, data);
+ this.brothers = data.brothers;
+ this.getMaterial(data.type)
},
//设置过滤项
setFilters(filters) {
diff --git a/src/views/mtm/mgroup.vue b/src/views/mtm/mgroup.vue
index 7e8a7f4c..d2dda791 100644
--- a/src/views/mtm/mgroup.vue
+++ b/src/views/mtm/mgroup.vue
@@ -21,7 +21,7 @@
-
+
编辑
@@ -36,8 +36,12 @@
-
+
+
+
+
\ No newline at end of file
diff --git a/src/views/wpm/task2flog_form.vue b/src/views/wpm/task2flog_form.vue
deleted file mode 100644
index c8b094b3..00000000
--- a/src/views/wpm/task2flog_form.vue
+++ /dev/null
@@ -1,545 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 提交
- 取消
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/wpm/worktask.vue b/src/views/wpm/worktask.vue
index 9c1e2677..e702836e 100644
--- a/src/views/wpm/worktask.vue
+++ b/src/views/wpm/worktask.vue
@@ -3,41 +3,148 @@
-
+
新增
-
+
{{ scope.row.material_out_.name }}
-
+
-
-
-
+
-
+
+
+
+
+
+ 编辑
+
+
+
+ 转交接单
+
+
+
+ 删除
+
+
+
+
+ 交接记录
+
+
+
+
+
+
+ {{ scope.row.material_out_.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.material_out_.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.material_out_.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+
+
+
+
+ {{ state_[scope.row.state] }}
+
+
+ {{ state_[scope.row.state] }}
+
+
+
+
+
+ 提交
+
+
+
-
-
+
+ 退火日志
+
- {{ choseData.material_out_.name }}
+ {{ choseData.material_out_.name }}
- {{ choseData.material_out_.number }}
+ {{ choseData.material_out_.number }}
- {{ choseData.count }}
+
+ {{ peifen_kg }}
+
+
- 新增
- 合计
+ 新增
+
-
-
+
-
+
+
+ {{ scope.row.material_out_.name }}
+
-
+
+
+ {{ scope.row.material_out_.specification }}
+
-
+
-
+
-
+
+
+ {{ scope.row.count_ok/scope.row.count_real }}
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
编辑
-
- 查看
-
+
删除
+
-
+
-
+
-
+
+
+
+ {{ item.material_out_.name }}
+ {{ item.count_ok }}
+
+
-
+
-
+
+
+ {{ scope.row.count_ok/scope.row.count_real }}
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
编辑
-
- 查看
-
+
删除
@@ -264,66 +578,104 @@
v-if="dialog.save"
ref="saveDialog"
:mtask = "mtask"
+ :brothersList="brothersList"
:activeType = "activeName"
@success="handleSaveSuccess"
@closed="dialog.save = false"
>
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
取消
- 提交
+ 提交
\ No newline at end of file
diff --git a/src/views/wpm/worktask_form.vue b/src/views/wpm/worktask_form.vue
new file mode 100644
index 00000000..04da8973
--- /dev/null
+++ b/src/views/wpm/worktask_form.vue
@@ -0,0 +1,1027 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 不合格原因及数量:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 关联产品计数:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 不合格原因及数量:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 确定
+ 取消
+
+
+
+
+
+
\ No newline at end of file