From 1f4b304e427fd69f42ec5ed4937ffad19708b923 Mon Sep 17 00:00:00 2001
From: wangjiadong <1654135867@qq.com>
Date: Tue, 14 Feb 2023 17:24:46 +0800
Subject: [PATCH] xiugaibufen
---
.../views/productrecord/ProductRecordList.vue | 12 +--
.../modules/ProductRecordForm.vue | 13 ++-
.../src/views/sensor/modules/SensorForm.vue | 2 +-
.../sensorrecord/modules/SensorRecordForm.vue | 2 +-
.../controller/ProductRecordController.java | 20 +++--
.../productrecord/entity/ProductRecord.java | 88 +++++++++----------
6 files changed, 73 insertions(+), 64 deletions(-)
diff --git a/ant-design-vue-jeecg/src/views/productrecord/ProductRecordList.vue b/ant-design-vue-jeecg/src/views/productrecord/ProductRecordList.vue
index 45e10817..47929581 100644
--- a/ant-design-vue-jeecg/src/views/productrecord/ProductRecordList.vue
+++ b/ant-design-vue-jeecg/src/views/productrecord/ProductRecordList.vue
@@ -11,7 +11,7 @@
-
+
@@ -157,7 +157,7 @@
{
title:'工单编号',
align:"center",
- dataIndex: 'orderId'
+ dataIndex: 'orderId_dictText'
},
{
title:'生产开始时间',
@@ -194,14 +194,14 @@
deleteBatch: "/productrecord/productRecord/deleteBatch",
exportXlsUrl: "/productrecord/productRecord/exportXls",
importExcelUrl: "productrecord/productRecord/importExcel",
-
+
},
dictOptions:{},
superFieldList:[],
}
},
created() {
- this.getSuperFieldList();
+ this.getSuperFieldList();
},
computed: {
importExcelUrl: function(){
@@ -215,8 +215,8 @@
let fieldList=[];
fieldList.push({type:'sel_search',value:'stationId',text:'工位',dictTable:'station', dictText:'station_name', dictCode:'id'})
fieldList.push({type:'popup',value:'stationName',text:'工位', popup:{code:'findgw',field:'id',orgFields:'id',destFields:'station_id'}})
- fieldList.push({type:'sel_search',value:'orderCode',text:'工单编号',dictTable:'findgdbh', dictText:'order_id,order_code', dictCode:'id,orders_num'})
- fieldList.push({type:'popup',value:'orderId',text:'工单编号', popup:{code:'work_order',field:'id',orgFields:'id',destFields:'product_code'}})
+ fieldList.push({type:'popup',value:'orderCode',text:'工单编号', popup:{code:'findgdbh',field:'id',orgFields:'id',destFields:'order_id'}})
+ fieldList.push({type:'sel_search',value:'orderId',text:'工单编号',dictTable:'work_order', dictText:'product_code', dictCode:'id'})
fieldList.push({type:'datetime',value:'workTime',text:'生产开始时间'})
fieldList.push({type:'datetime',value:'offTime',text:'生产结束时间'})
fieldList.push({type:'string',value:'duration',text:'时长',dictCode:''})
diff --git a/ant-design-vue-jeecg/src/views/productrecord/modules/ProductRecordForm.vue b/ant-design-vue-jeecg/src/views/productrecord/modules/ProductRecordForm.vue
index 79bc5bc6..6b0ba9c6 100644
--- a/ant-design-vue-jeecg/src/views/productrecord/modules/ProductRecordForm.vue
+++ b/ant-design-vue-jeecg/src/views/productrecord/modules/ProductRecordForm.vue
@@ -13,12 +13,20 @@
code="findgw"
:multi="true"
@input="popupCallback"
- />
+ />
-
+
@@ -46,7 +54,6 @@
-