diff --git a/src/api/model/wpm.js b/src/api/model/wpm.js index dc7992b9..0bdaa19d 100644 --- a/src/api/model/wpm.js +++ b/src/api/model/wpm.js @@ -1,337 +1,342 @@ -import config from "@/config" -import http from "@/utils/request" +import config from "@/config"; +import http from "@/utils/request"; /*EM接口*/ export default { //值班记录 sflog: { list: { name: "值班记录列表", - req: async function(data){ - return await http.get( - `${config.API_URL}/wpm/sflog/`, - data - ); - } + req: async function (data) { + return await http.get(`${config.API_URL}/wpm/sflog/`, data); + }, }, item: { name: "获取详情", - req: async function(id){ - return await http.get( - `${config.API_URL}/wpm/sflog/${id}/` - ); - } + req: async function (id) { + return await http.get(`${config.API_URL}/wpm/sflog/${id}/`); + }, }, update: { name: "更新", - req: async function(id, data){ + req: async function (id, data) { return await http.put( `${config.API_URL}/wpm/sflog/${id}/`, - data); - } + data + ); + }, }, - create: { + create: { name: "创建", - req: async function(data){ - return await http.post( - `${config.API_URL}/wpm/sflog/`, - data); - } + req: async function (data) { + return await http.post(`${config.API_URL}/wpm/sflog/`, data); + }, }, delete: { name: "删除", - req: async function(id){ - return await http.delete( - `${config.API_URL}/wpm/sflog/${id}/`); - } + req: async function (id) { + return await http.delete(`${config.API_URL}/wpm/sflog/${id}/`); + }, }, deletes: { name: "批量删除", - req: async function(data){ + req: async function (data) { return await http.post( `${config.API_URL}/wpm/sflog/deletes/`, - data); - } + data + ); + }, }, cquery: { name: "复杂查询", - req: async function(data){ + req: async function (data) { return await http.post( `${config.API_URL}/wpm/sflog/cquery/`, - data); - } + data + ); + }, }, deleteHard: { name: "批量物理删除", - req: async function(data){ + req: async function (data) { return await http.post( `${config.API_URL}/wpm/sflog/deletes_hard/`, - data); - } + data + ); + }, }, init_test: { name: "初始化检测录入", - req: async function(id){ + req: async function (id) { return await http.get( `${config.API_URL}/wpm/sflog/${id}/init_test/` ); - } + }, }, }, //异常记录 stlog: { list: { name: "异常记录列表", - req: async function(data){ - return await http.get( - `${config.API_URL}/wpm/stlog/`, - data - ); - } + req: async function (data) { + return await http.get(`${config.API_URL}/wpm/stlog/`, data); + }, }, item: { name: "获取详情", - req: async function(id){ - return await http.get( - `${config.API_URL}/wpm/stlog/${id}/` - ); - } + req: async function (id) { + return await http.get(`${config.API_URL}/wpm/stlog/${id}/`); + }, }, update: { name: "更新", - req: async function(id, data){ + req: async function (id, data) { return await http.put( `${config.API_URL}/wpm/stlog/${id}/`, - data); - } + data + ); + }, }, - create: { + create: { name: "创建", - req: async function(data){ - return await http.post( - `${config.API_URL}/wpm/stlog/`, - data); - } + req: async function (data) { + return await http.post(`${config.API_URL}/wpm/stlog/`, data); + }, }, delete: { name: "删除", - req: async function(id){ - return await http.delete( - `${config.API_URL}/wpm/sflog/${id}/`); - } + req: async function (id) { + return await http.delete(`${config.API_URL}/wpm/sflog/${id}/`); + }, }, }, sflogexp: { list: { name: "值班记录列表", - req: async function(data){ - return await http.get( - `${config.API_URL}/wpm/sflogexp/`, - data - ); - } + req: async function (data) { + return await http.get(`${config.API_URL}/wpm/sflogexp/`, data); + }, }, update: { name: "更新", - req: async function(id, data){ + req: async function (id, data) { return await http.put( `${config.API_URL}/wpm/sflogexp/${id}/`, - data); - } - }, - }, - mlog:{ - list: { - name: "值班记录列表", - req: async function(data){ - return await http.get( - `${config.API_URL}/wpm/mlog/`, data ); - } + }, + }, + }, + mlog: { + list: { + name: "值班记录列表", + req: async function (data) { + return await http.get(`${config.API_URL}/wpm/mlog/`, data); + }, }, item: { name: "获取详情", - req: async function(id){ - return await http.get( - `${config.API_URL}/wpm/mlog/${id}/` - ); - } + req: async function (id) { + return await http.get(`${config.API_URL}/wpm/mlog/${id}/`); + }, }, cquery: { name: "复杂查询", - req: async function(data){ + req: async function (data) { return await http.post( `${config.API_URL}/wpm/mlog/cquery/`, - data); - } + data + ); + }, }, update: { name: "更新", - req: async function(id, data){ + req: async function (id, data) { return await http.put( `${config.API_URL}/wpm/mlog/${id}/`, - data); - } + data + ); + }, }, - create: { + create: { name: "创建", - req: async function(data){ - return await http.post( - `${config.API_URL}/wpm/mlog/`, - data); - } + req: async function (data) { + return await http.post(`${config.API_URL}/wpm/mlog/`, data); + }, }, delete: { name: "删除", - req: async function(id){ - return await http.delete( - `${config.API_URL}/wpm/mlog/${id}/`); - } + req: async function (id) { + return await http.delete(`${config.API_URL}/wpm/mlog/${id}/`); + }, }, - relatedFirst:{ + relatedFirst: { name: "获取相关任务的第一道工序日志", - req: async function(data){ + req: async function (data) { return await http.post( `${config.API_URL}/wpm/mlog/related_first/`, - data); - } - }, - submit:{ - name: "提交", - req: async function(id){ - return await http.post( - `${config.API_URL}/wpm/mlog/${id}/submit/`, + data ); - } + }, }, - revert:{ + submit: { + name: "提交", + req: async function (id) { + return await http.post( + `${config.API_URL}/wpm/mlog/${id}/submit/` + ); + }, + }, + revert: { name: "撤回", - req: async function(id, data){ + req: async function (id, data) { return await http.post( `${config.API_URL}/wpm/mlog/${id}/revert/`, data ); - } - } - }, - handover:{ - list: { - name: "值班记录列表", - req: async function(data){ - return await http.get( - `${config.API_URL}/wpm/handover/`, + }, + }, + init: { + name: "初始化", + req: async function (data) { + return await http.post( + `${config.API_URL}/wpm/mlog/init/`, data ); - } + }, + }, + }, + mlogb: { + list: { + name: "列表", + req: async function (data) { + return await http.get(`${config.API_URL}/wpm/mlogb/`, data); + }, + }, + in: { + name: "创建", + req: async function (data) { + return await http.post(`${config.API_URL}/wpm/mlogb/in/`, data); + }, + }, + delIn: { + name: "删除", + req: async function (id) { + return await http.delete( + `${config.API_URL}/wpm/mlogb/in/${id}/` + ); + }, + }, + }, + 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}/` - ); - } + req: async function (id) { + return await http.get(`${config.API_URL}/wpm/handover/${id}/`); + }, }, cquery: { name: "复杂查询", - req: async function(data){ + req: async function (data) { return await http.post( `${config.API_URL}/wpm/handover/cquery/`, - data); - } + data + ); + }, }, update: { name: "更新", - req: async function(id, data){ + req: async function (id, data) { return await http.put( `${config.API_URL}/wpm/handover/${id}/`, - data); - } + data + ); + }, }, - create: { + create: { name: "创建", - req: async function(data){ - return await http.post( - `${config.API_URL}/wpm/handover/`, - data); - } + req: async function (data) { + return await http.post(`${config.API_URL}/wpm/handover/`, data); + }, }, delete: { name: "删除", - req: async function(id){ + req: async function (id) { return await http.delete( - `${config.API_URL}/wpm/handover/${id}/`); - } + `${config.API_URL}/wpm/handover/${id}/` + ); + }, }, - genByMlogs:{ + genByMlogs: { name: "从生产日志生成交接记录", - req: async function(data){ + req: async function (data) { return await http.post( `${config.API_URL}/wpm/handover/gen_by_mlogs/`, - data); - } + data + ); + }, }, - genByWm:{ + genByWm: { name: "从车间库存生成交接记录", - req: async function(data){ + req: async function (data) { return await http.post( `${config.API_URL}/wpm/handover/gen_by_wm/`, - data); - } + data + ); + }, }, submit: { name: "提交", - req: async function(id){ + req: async function (id) { return await http.post( - `${config.API_URL}/wpm/handover/${id}/submit/`, - ); - } - } + `${config.API_URL}/wpm/handover/${id}/submit/` + ); + }, + }, }, //车间库存 wmaterial: { list: { name: "车间库存", - req: async function(data){ - return await http.get( - `${config.API_URL}/wpm/wmaterial/`, - data - ); - } + req: async function (data) { + return await http.get(`${config.API_URL}/wpm/wmaterial/`, data); + }, }, batchs: { name: "获取车间出现过的批次号", - req: async function(data){ + req: async function (data) { return await http.post( `${config.API_URL}/wpm/wmaterial/batchs/`, - data); - } - } - }, - otherlog:{ - list: { - name: "其他生产日志", - req: async function(data){ - return await http.get( - `${config.API_URL}/wpm/otherlog/`, data ); - } + }, + }, + }, + otherlog: { + list: { + name: "其他生产日志", + req: async function (data) { + return await http.get(`${config.API_URL}/wpm/otherlog/`, data); + }, }, create: { name: "创建", - req: async function(data){ - return await http.post( - `${config.API_URL}/wpm/otherlog/`, - data); - } + req: async function (data) { + return await http.post(`${config.API_URL}/wpm/otherlog/`, data); + }, }, delete: { name: "删除", - req: async function(id){ + req: async function (id) { return await http.delete( - `${config.API_URL}/wpm/otherlog/${id}/`); - } + `${config.API_URL}/wpm/otherlog/${id}/` + ); + }, }, - } -} \ No newline at end of file + }, +}; diff --git a/src/config/route.js b/src/config/route.js index 3bcff5d3..602ac060 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -1213,6 +1213,109 @@ const routes = [ }, ], }, + //光芯生产执行 wpm_gx + { + name: "wpm_gx", + path: "/wpm_gx", + meta: { + title: "生产执行gx", + icon: "el-icon-grid", + type: "menu", + perms: ["wpm"], + }, + children: [ + { + name: "qiepian", + path: "/wpm_gx/qiepian", + meta: { + title: "切片", + icon: "el-icon-files", + perms: ["wpm"], + }, + component: "wpm_gx/qiepian", + }, + { + name: "huohua", + path: "/wpm_gx/huohua", + meta: { + title: "活化", + icon: "el-icon-cellphone", + perms: ["wpm"], + }, + component: "wpm_gx/huohua", + }, + { + name: "heihua", + path: "/wpm_gx/heihua", + meta: { + title: "黑化", + icon: "el-icon-cellphone", + perms: ["wpm"], + }, + component: "wpm_gx/heihua", + }, + { + name: "shaojie", + path: "/wpm_gx/shaojie", + meta: { + title: "烧结", + icon: "el-icon-cellphone", + perms: ["wpm"], + }, + component: "wpm_gx/shaojie", + }, + { + name: "jianbo", + path: "/wpm_gx/jianbo", + meta: { + title: "减薄", + icon: "el-icon-cellphone", + perms: ["wpm"], + }, + component: "wpm_gx/jianbo", + }, + { + name: "jingdiao", + path: "/wpm_gx/jingdiao", + meta: { + title: "精雕", + icon: "el-icon-cellphone", + perms: ["wpm"], + }, + component: "wpm_gx/jingdiao", + }, + { + name: "mopao", + path: "/wpm_gx/mopao", + meta: { + title: "磨抛", + icon: "el-icon-cellphone", + perms: ["wpm"], + }, + component: "wpm_gx/mopao", + }, + { + name: "daojiao", + path: "/wpm_gx/daojiao", + meta: { + title: "倒角", + icon: "el-icon-cellphone", + perms: ["wpm"], + }, + component: "wpm_gx/daojiao", + }, + { + name: "chaoxi", + path: "/wpm_gx/chaoxi", + meta: { + title: "超洗", + icon: "el-icon-cellphone", + perms: ["wpm"], + }, + component: "wpm_gx/chaoxi", + }, + ], + }, //检验管理 qm { name: "qm", diff --git a/src/views/enp/pfk_detail.vue b/src/views/enp/pfk_detail.vue index ace1df61..5ee4adef 100644 --- a/src/views/enp/pfk_detail.vue +++ b/src/views/enp/pfk_detail.vue @@ -208,25 +208,25 @@ >颗粒物:(实测值)0.218 mg/m³ (折算值)0.218 mg/m³ + >0.208 mg/m³ SO2:(实测值)0.218 mg/m³ + >1.018 mg/m³ (折算值)0.218 mg/m³ + >1.118 mg/m³ NOX:(实测值)0.218 mg/m³ + >1.523 mg/m³ (折算值)0.218 mg/m³ + >1.503 mg/m³ diff --git a/src/views/wpm_gx/chaoxi.vue b/src/views/wpm_gx/chaoxi.vue new file mode 100644 index 00000000..4a25b6ec --- /dev/null +++ b/src/views/wpm_gx/chaoxi.vue @@ -0,0 +1,33 @@ + + + + + 日志 + 交接记录 + 库存 + + + + + diff --git a/src/views/wpm_gx/daojiao.vue b/src/views/wpm_gx/daojiao.vue new file mode 100644 index 00000000..4a25b6ec --- /dev/null +++ b/src/views/wpm_gx/daojiao.vue @@ -0,0 +1,33 @@ + + + + + 日志 + 交接记录 + 库存 + + + + + diff --git a/src/views/wpm_gx/handover.vue b/src/views/wpm_gx/handover.vue new file mode 100644 index 00000000..8815e94c --- /dev/null +++ b/src/views/wpm_gx/handover.vue @@ -0,0 +1,199 @@ + + + + + 新增 + + + + + + + + + + + + + {{ scope.row.process_cate }} - + {{ scope.row.process_name }} + + + + + + + + + + 编辑 + + + + 删除 + + + + + + + + + + + + diff --git a/src/views/wpm_gx/heihua.vue b/src/views/wpm_gx/heihua.vue new file mode 100644 index 00000000..4a25b6ec --- /dev/null +++ b/src/views/wpm_gx/heihua.vue @@ -0,0 +1,33 @@ + + + + + 日志 + 交接记录 + 库存 + + + + + diff --git a/src/views/wpm_gx/huohua.vue b/src/views/wpm_gx/huohua.vue new file mode 100644 index 00000000..4a25b6ec --- /dev/null +++ b/src/views/wpm_gx/huohua.vue @@ -0,0 +1,33 @@ + + + + + 日志 + 交接记录 + 库存 + + + + + diff --git a/src/views/wpm_gx/inm.vue b/src/views/wpm_gx/inm.vue new file mode 100644 index 00000000..336d2871 --- /dev/null +++ b/src/views/wpm_gx/inm.vue @@ -0,0 +1,156 @@ + + + + + + + + + {{ scope.row.process_cate }} - + {{ scope.row.process_name }} + + + + + + + + + + 编辑 + + + + 删除 + + + + + + + + + + diff --git a/src/views/wpm_gx/jianbo.vue b/src/views/wpm_gx/jianbo.vue new file mode 100644 index 00000000..4a25b6ec --- /dev/null +++ b/src/views/wpm_gx/jianbo.vue @@ -0,0 +1,33 @@ + + + + + 日志 + 交接记录 + 库存 + + + + + diff --git a/src/views/wpm_gx/jingdiao.vue b/src/views/wpm_gx/jingdiao.vue new file mode 100644 index 00000000..4a25b6ec --- /dev/null +++ b/src/views/wpm_gx/jingdiao.vue @@ -0,0 +1,33 @@ + + + + + 日志 + 交接记录 + 库存 + + + + + diff --git a/src/views/wpm_gx/mlog_detail.vue b/src/views/wpm_gx/mlog_detail.vue new file mode 100644 index 00000000..6c07f781 --- /dev/null +++ b/src/views/wpm_gx/mlog_detail.vue @@ -0,0 +1,282 @@ + + + + + + {{ + mlogItem.material_out_name + }} + {{ + mlogItem.mgroup_name + }} + {{ + mlogItem.equipment_name + }} + {{ + mlogItem.hour_work + }} + {{ + mlogItem.belong_dept_name + }} + {{ + mlogItem.handle_user_name + }} + {{ + mlogItem.work_start_time + }} + {{ + mlogItem.create_time + }} + + + 编辑 + + + + + 新增 + + + + + {{ scope.row.material_name }} + + + + + + + + + + + + 删除 + + + + + + + + + + {{ scope.row.material_name }} + + + + + + + + + + + + + + 检验 + + + + 撤回 + + + 删除 + + + + + + + + + + + + + diff --git a/src/views/wpm_gx/mlog_form.vue b/src/views/wpm_gx/mlog_form.vue new file mode 100644 index 00000000..7be8b152 --- /dev/null +++ b/src/views/wpm_gx/mlog_form.vue @@ -0,0 +1,248 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 保存 + 取消 + + + + + + + + diff --git a/src/views/wpm_gx/mlogb_form.vue b/src/views/wpm_gx/mlogb_form.vue new file mode 100644 index 00000000..6f049c42 --- /dev/null +++ b/src/views/wpm_gx/mlogb_form.vue @@ -0,0 +1,158 @@ + + + + + + + + + {{ item.material_out_name }} + + + + + + + + + + + + + + 保存 + 取消 + + + + + + + + diff --git a/src/views/wpm_gx/mlogs.vue b/src/views/wpm_gx/mlogs.vue new file mode 100644 index 00000000..d736b570 --- /dev/null +++ b/src/views/wpm_gx/mlogs.vue @@ -0,0 +1,236 @@ + + + + + 新增 + + + + + + + + + + + + + + + + + + + + + 详情 + + 编辑 + + + + 删除 + + + + + + + + + + + + + + diff --git a/src/views/wpm_gx/mopao.vue b/src/views/wpm_gx/mopao.vue new file mode 100644 index 00000000..4a25b6ec --- /dev/null +++ b/src/views/wpm_gx/mopao.vue @@ -0,0 +1,33 @@ + + + + + 日志 + 交接记录 + 库存 + + + + + diff --git a/src/views/wpm_gx/mtask.vue b/src/views/wpm_gx/mtask.vue new file mode 100644 index 00000000..fc4747c0 --- /dev/null +++ b/src/views/wpm_gx/mtask.vue @@ -0,0 +1,143 @@ + + + + 任务列表 + + + + + + + + + {{ scope.row.material_out_.specification }}|{{ + scope.row.material_out_.model + }} + + + + + + + + + + + + + + + {{ state_[scope.row.state] }} + + + + + + 提交 + + + + + + + + + diff --git a/src/views/wpm_gx/qiepian.vue b/src/views/wpm_gx/qiepian.vue new file mode 100644 index 00000000..4dd98842 --- /dev/null +++ b/src/views/wpm_gx/qiepian.vue @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + diff --git a/src/views/wpm_gx/shaojie.vue b/src/views/wpm_gx/shaojie.vue new file mode 100644 index 00000000..4a25b6ec --- /dev/null +++ b/src/views/wpm_gx/shaojie.vue @@ -0,0 +1,33 @@ + + + + + 日志 + 交接记录 + 库存 + + + + +