From bd7c44ffbf56cd735c8cbc9a03fe68bfd83928f5 Mon Sep 17 00:00:00 2001
From: chenshuichuan <1154693969@qq.com>
Date: Wed, 5 Jun 2024 14:04:22 +0800
Subject: [PATCH] add fix filed
---
src/api/erp/product/product/index.ts | 7 +-
src/api/mes/plan/index.ts | 5 +-
src/views/erp/autocode/AutocodeIndex.vue | 72 +-----------
src/views/erp/stock/stock/index.vue | 22 +++-
src/views/iot/mqttrecord/index.vue | 35 +-----
src/views/mes/machine/index.vue | 38 ++++---
src/views/mes/plan/index.vue | 72 ++++--------
.../ProduceReportDetailIndex.vue | 103 +++++++++---------
src/views/mes/task/TaskAddSaleForm.vue | 5 -
src/views/mes/task/TaskForm.vue | 6 +-
.../task/components/TaskAddSaleDetailForm.vue | 2 +-
.../mes/task/components/TaskDetailForm.vue | 2 +-
12 files changed, 134 insertions(+), 235 deletions(-)
diff --git a/src/api/erp/product/product/index.ts b/src/api/erp/product/product/index.ts
index 82c9b689..7a29c6bd 100644
--- a/src/api/erp/product/product/index.ts
+++ b/src/api/erp/product/product/index.ts
@@ -27,7 +27,7 @@ export const ProductApi = {
// 查询产品精简列表
getProductSimpleList: async () => {
- return await request.get({ url: `/erp/product/simple-list-product` })
+ return await request.get({ url: `/erp/product/simple-list-all` })
},
// 查询原料精简列表
getItemSimpleList: async () => {
@@ -37,7 +37,10 @@ export const ProductApi = {
getOrderSimpleList: async () => {
return await request.get({ url: `/erp/product/simple-list-order` })
},
-
+ // 查询所有商品精简列表
+ getMesProductSimpleList: async () => {
+ return await request.get({ url: `/erp/product/simple-list-product` })
+ },
// 查询产品详情
getProduct: async (id: number) => {
diff --git a/src/api/mes/plan/index.ts b/src/api/mes/plan/index.ts
index 363356cf..700904c2 100644
--- a/src/api/mes/plan/index.ts
+++ b/src/api/mes/plan/index.ts
@@ -7,6 +7,8 @@ export interface PlanVO {
productId: number // 产品ID
taskDetailId: number // 任务单明细ID
taskId: number // 任务单ID
+ productName: number // 产品
+ taskCode: number // 任务单
planNumber: number // 数量
finishNumber: number // 成品数量
status: number // 状态
@@ -15,6 +17,7 @@ export interface PlanVO {
startTime: Date // 实际开始时间
endTime: Date // 实际结束时间
productionManagerId: number // 生产主管ID
+ productionManager: number // 生产主管
remark: string // 备注
isEnable: boolean // 是否启用
}
@@ -50,4 +53,4 @@ export const PlanApi = {
exportPlan: async (params) => {
return await request.download({ url: `/mes/plan/export-excel`, params })
}
-}
\ No newline at end of file
+}
diff --git a/src/views/erp/autocode/AutocodeIndex.vue b/src/views/erp/autocode/AutocodeIndex.vue
index 5e9ef547..f80f1697 100644
--- a/src/views/erp/autocode/AutocodeIndex.vue
+++ b/src/views/erp/autocode/AutocodeIndex.vue
@@ -35,54 +35,7 @@
class="!w-240px"
/>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
搜索
重置
@@ -177,14 +119,8 @@
-
-
+
+
{
onMounted(() => {
getList()
})
-
\ No newline at end of file
+
diff --git a/src/views/erp/stock/stock/index.vue b/src/views/erp/stock/stock/index.vue
index 2dc0f9a3..07b54727 100644
--- a/src/views/erp/stock/stock/index.vue
+++ b/src/views/erp/stock/stock/index.vue
@@ -26,6 +26,22 @@
/>
+
+
+
+
+
([]) // 产品列表
const warehouseList = ref([]) // 仓库列表
+const categoryList = ref([]) // 仓库列表
/** 查询列表 */
const getList = async () => {
@@ -181,5 +200,6 @@ onMounted(async () => {
// 加载产品、仓库列表
productList.value = await ProductApi.getProductSimpleList()
warehouseList.value = await WarehouseApi.getWarehouseSimpleList()
+ categoryList.value = await ProductCategoryApi.getProductCategorySimpleList()
})
diff --git a/src/views/iot/mqttrecord/index.vue b/src/views/iot/mqttrecord/index.vue
index 1265d9e8..3f3fb899 100644
--- a/src/views/iot/mqttrecord/index.vue
+++ b/src/views/iot/mqttrecord/index.vue
@@ -92,8 +92,9 @@
-
+
+
-
-
-
-
-
-
-
- 编辑
-
-
- 删除
-
-
-
+
+
-
+
@@ -108,7 +108,7 @@
@@ -158,16 +158,20 @@
:default-expand-all="isExpandAll"
v-if="refreshTable"
>
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
编辑
+
+ 替换
+
-
-
-
-
-
-
+
-
-
-
-
+
+
@@ -168,34 +145,23 @@
:formatter="dateFormatter"
width="180px"
/>
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
-
+
-
+
-
+
-
-
-
-
-
+
-
-
-
-
+
+
+
+
+
搜索
重置
@@ -92,7 +83,15 @@
@click="openForm('create')"
v-hasPermi="['mes:produce-report-detail:create']"
>
- 新增
+ 报工
+
+
+ 代报工
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
import { getIntDictOptions, DICT_TYPE } from '@/utils/dict'
-import { dateFormatter } from '@/utils/formatTime'
+import {dateFormatter, dateFormatter2} from '@/utils/formatTime'
import download from '@/utils/download'
import { ProduceReportDetailApi, ProduceReportDetailVO } from '@/api/mes/producereport'
import ProduceReportDetailForm from './ProduceReportDetailForm.vue'
diff --git a/src/views/mes/task/TaskAddSaleForm.vue b/src/views/mes/task/TaskAddSaleForm.vue
index 7623246f..c873460e 100644
--- a/src/views/mes/task/TaskAddSaleForm.vue
+++ b/src/views/mes/task/TaskAddSaleForm.vue
@@ -13,11 +13,6 @@
-
-
-
-
-
diff --git a/src/views/mes/task/TaskForm.vue b/src/views/mes/task/TaskForm.vue
index 2f479f0a..c2fa6dbb 100644
--- a/src/views/mes/task/TaskForm.vue
+++ b/src/views/mes/task/TaskForm.vue
@@ -37,9 +37,7 @@
-
-
-
+
@@ -149,4 +147,4 @@ const resetForm = () => {
}
formRef.value?.resetFields()
}
-
\ No newline at end of file
+
diff --git a/src/views/mes/task/components/TaskAddSaleDetailForm.vue b/src/views/mes/task/components/TaskAddSaleDetailForm.vue
index b4d4fb4f..d693d85b 100644
--- a/src/views/mes/task/components/TaskAddSaleDetailForm.vue
+++ b/src/views/mes/task/components/TaskAddSaleDetailForm.vue
@@ -201,7 +201,7 @@ const dealOrder = async (e) => {
onMounted(async () => {
// 产品单位
unitList.value = await ProductUnitApi.getProductUnitSimpleList()
- productList.value = await ProductApi.getProductSimpleList()
+ productList.value = await ProductApi.getMesProductSimpleList()
// 默认添加一个
if (formData.value.length === 0) {
handleAdd()
diff --git a/src/views/mes/task/components/TaskDetailForm.vue b/src/views/mes/task/components/TaskDetailForm.vue
index f1c27f80..364ef02d 100644
--- a/src/views/mes/task/components/TaskDetailForm.vue
+++ b/src/views/mes/task/components/TaskDetailForm.vue
@@ -164,7 +164,7 @@ const open = async (type: string, id?: number, taskId: number) => {
}
// 产品单位
unitList.value = await ProductUnitApi.getProductUnitSimpleList()
- productList.value = await ProductApi.getProductSimpleList()
+ productList.value = await ProductApi.getMesProductSimpleList()
}
defineExpose({ open }) // 提供 open 方法,用于打开弹窗