diff --git a/.env.dev b/.env.dev index 44287cda..da3e54d3 100644 --- a/.env.dev +++ b/.env.dev @@ -1,7 +1,7 @@ ### # @Author: Do not edit # @Date: 2023-08-29 09:40:39 - # @LastEditTime: 2023-11-06 09:08:54 + # @LastEditTime: 2023-11-07 09:23:07 # @LastEditors: DY # @Description: ### diff --git a/src/api/base/coreWorkOrder.js b/src/api/base/coreWorkOrder.js index 814a7bff..8f250b23 100644 --- a/src/api/base/coreWorkOrder.js +++ b/src/api/base/coreWorkOrder.js @@ -1,7 +1,7 @@ /* * @Author: Do not edit * @Date: 2023-10-21 11:50:46 - * @LastEditTime: 2023-11-06 10:50:57 + * @LastEditTime: 2023-11-06 17:49:42 * @LastEditors: DY * @Description: */ @@ -108,4 +108,31 @@ export function getCoreWOMaPage(query) { method: 'get', params: query }) +} + +// 获得预计用料信息分页 +export function getMaterialBomPage(query) { + return request({ + url: '/base/material-product-bom/bomUseNum', + method: 'get', + params: query + }) +} + +// 获得订单分页 +export function getConOrderList(query) { + return request({ + url: '/base/order/listConOrder', + method: 'get', + params: query + }) +} + +// 改变工单状态 激活暂停完成作废 +export function statusChange(data) { + return request({ + url: '/base/core-work-order/statusChange', + method: 'post', + data: data + }) } \ No newline at end of file diff --git a/src/api/core/analysis/index.js b/src/api/core/analysis/index.js index af791ff5..394bbdcf 100644 --- a/src/api/core/analysis/index.js +++ b/src/api/core/analysis/index.js @@ -1,17 +1,17 @@ /* * @Author: zhp * @Date: 2023-09-12 14:07:04 - * @LastEditTime: 2023-09-13 09:53:45 - * @LastEditors: zhp + * @LastEditTime: 2023-11-07 14:17:38 + * @LastEditors: DY * @Description: */ import request from '@/utils/request' -export function getYieldAnalysisPageData(data) { +export function getYieldAnalysisPageData(query) { return request({ - url: '/analysis/production-analysis/getOutput', - method: 'post', - data: data + url: '/base/core-production-line-rec-day/monthList', + method: 'get', + params: query }) } diff --git a/src/api/core/monitoring/data24.js b/src/api/core/monitoring/data24.js index 86afe0d8..0c99f289 100644 --- a/src/api/core/monitoring/data24.js +++ b/src/api/core/monitoring/data24.js @@ -1,17 +1,17 @@ /* * @Author: Do not edit * @Date: 2023-09-12 09:44:53 - * @LastEditTime: 2023-09-15 14:12:26 + * @LastEditTime: 2023-11-06 18:57:05 * @LastEditors: DY * @Description: */ import request from '@/utils/request' // 获得近24小时产线生产数据 -export function getPdlDataOneDay(data) { +export function getPdlDataOneDay(query) { return request({ - url: '/monitoring/production-monitor/getPdlDataOneDay', - method: 'post', - data: data + url: '/base/core-production-line-rec-hour/list24h', + method: 'get', + params: query }) } diff --git a/src/views/base/coreWorkOrder/add-or-updata copy.vue b/src/views/base/coreWorkOrder/add-or-updata copy.vue deleted file mode 100644 index f091bd6a..00000000 --- a/src/views/base/coreWorkOrder/add-or-updata copy.vue +++ /dev/null @@ -1,416 +0,0 @@ - - - - - diff --git a/src/views/base/coreWorkOrder/add-or-updata.vue b/src/views/base/coreWorkOrder/add-or-updata.vue index a0c37abf..cf52a675 100644 --- a/src/views/base/coreWorkOrder/add-or-updata.vue +++ b/src/views/base/coreWorkOrder/add-or-updata.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-11-18 14:16:25 * @LastEditors: DY - * @LastEditTime: 2023-11-06 10:01:37 + * @LastEditTime: 2023-11-06 14:38:20 * @Description: --> @@ -136,7 +136,6 @@ export default { tableBtn, tableProps, topBtnConfig, - workOrderName: '111', addOrUpdateVisible: false, listQuery: { pageSize: 10, @@ -144,7 +143,8 @@ export default { total: 0, }, dataForm: { - id: undefined + id: undefined, + name: '' }, materialList: [], visible: false, @@ -199,10 +199,11 @@ export default { this.listQuery.total = response.data.total; }); }, - init(id, isdetail) { + init(row, isdetail) { this.initData(); this.isdetail = isdetail || false; - this.dataForm.id = id || undefined; + this.dataForm.id = row.id || undefined; + this.dataForm.name = row.name || ''; this.visible = true; this.getList() @@ -237,6 +238,7 @@ export default { // 新增 / 修改 addNew(id) { this.addOrUpdateVisible = true; + console.log('22', id) this.$nextTick(() => { this.$refs.addOrUpdate.init(id); }); diff --git a/src/views/base/coreWorkOrder/addWorkOrder.vue b/src/views/base/coreWorkOrder/addWorkOrder.vue index 5c6bc38c..ce76ebc9 100644 --- a/src/views/base/coreWorkOrder/addWorkOrder.vue +++ b/src/views/base/coreWorkOrder/addWorkOrder.vue @@ -178,7 +178,8 @@ export default { priority: '', productLineIds: [], type: '', - workers: '' + workers: '', + status: 1 }, rules: { name: [{ required: true, message: "工单名称不能为空", trigger: "blur" }], diff --git a/src/views/base/coreWorkOrder/attr-add.vue b/src/views/base/coreWorkOrder/attr-add.vue index df5f0c9c..e12787e0 100644 --- a/src/views/base/coreWorkOrder/attr-add.vue +++ b/src/views/base/coreWorkOrder/attr-add.vue @@ -75,6 +75,7 @@ { this.$refs['dataForm'].resetFields(); if (this.dataForm.id) { - getCoreWOMa({ - id: this.dataForm.id - }).then((res) => { + getCoreWOMa(this.dataForm.id).then((res) => { this.dataForm = res.data }); } @@ -162,7 +162,7 @@ export default { if (this.dataForm.id) { updateCoreWOMa({ ...this.dataForm, - workOrderId: this.productId, + workOrderId: this.workOrderId, }).then((response) => { this.$modal.msgSuccess('修改成功'); this.visible = false; @@ -173,7 +173,7 @@ export default { // 添加的提交 createCoreWOMa({ ...this.dataForm, - workOrderId: this.productId, + workOrderId: this.workOrderId, }).then((response) => { this.$modal.msgSuccess('新增成功'); this.visible = false; diff --git a/src/views/base/coreWorkOrder/detail.vue b/src/views/base/coreWorkOrder/detail.vue new file mode 100644 index 00000000..e201d561 --- /dev/null +++ b/src/views/base/coreWorkOrder/detail.vue @@ -0,0 +1,413 @@ + + + + + diff --git a/src/views/base/coreWorkOrder/index.vue b/src/views/base/coreWorkOrder/index.vue index c0a93c59..0bfd8b96 100644 --- a/src/views/base/coreWorkOrder/index.vue +++ b/src/views/base/coreWorkOrder/index.vue @@ -34,23 +34,32 @@ ref="addOrUpdate" @refreshDataList="refreshWorkOrder"> + + + + @refreshDataList="closeDetail"> diff --git a/src/views/base/materialDate/add-or-updata.vue b/src/views/base/materialDate/add-or-updata.vue index 110a01f1..06fca85e 100644 --- a/src/views/base/materialDate/add-or-updata.vue +++ b/src/views/base/materialDate/add-or-updata.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-11-18 14:16:25 * @LastEditors: DY - * @LastEditTime: 2023-10-24 18:34:07 + * @LastEditTime: 2023-11-06 19:55:59 * @Description: -->