diff --git a/ant-design-vue-jeecg/src/views/productrecord/ProductRecordList1.vue b/ant-design-vue-jeecg/src/views/productrecord/ProductRecordList1.vue
index 06d5d1af..70e08791 100644
--- a/ant-design-vue-jeecg/src/views/productrecord/ProductRecordList1.vue
+++ b/ant-design-vue-jeecg/src/views/productrecord/ProductRecordList1.vue
@@ -93,6 +93,12 @@
下载
+
+ {{text}}
+
+
+ {{text}}
+
编辑
@@ -122,6 +128,8 @@
+
+
@@ -133,13 +141,18 @@
import ProductRecordModal from './modules/ProductRecordModal'
import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
import SensorRecordList1 from '../sensorrecord/SensorRecordList1'
+ import {deleteAction, getAction} from "@api/manage";
+ import StationModal1 from '../team/modules/StationModal1'
+ import WorkOrderModal from '../workorder/modules/WorkOrderModal'
export default {
name: 'ProductRecordList',
mixins:[JeecgListMixin, mixinDevice],
components: {
SensorRecordList1,
- ProductRecordModal
+ ProductRecordModal,
+ StationModal1,
+ WorkOrderModal
},
data () {
return {
@@ -159,12 +172,14 @@
{
title:'工位',
align:"center",
- dataIndex: 'stationId_dictText'
+ dataIndex: 'stationId_dictText',
+ scopedSlots: {customRender: 'gw'}
},
{
title:'工单编号',
align:"center",
- dataIndex: 'orderCode'
+ dataIndex: 'orderCode',
+ scopedSlots: {customRender: 'gd'}
},
{
title:'生产开始时间',
@@ -216,6 +231,25 @@
},
},
methods: {
+ gw(stationId){
+ getAction("/team/station/queryById", {id: stationId}).then((res) => {
+ if (res.success) {
+ this.$refs.modalFormgw.edit(res.result);
+ this.$refs.modalFormgw.title="详情";
+ } else {
+ }
+ })
+ },
+ gd(orderCode){
+ getAction("/workOrder/workOrder/queryByOrderCode", {orderCode: orderCode}).then((res) => {
+ if (res.success) {
+ this.$refs.modalFormgd.edit(res.result);
+ this.$refs.modalFormgd.title="详情";
+ this.$refs.modalFormgd.disableSubmit = true;
+ } else {
+ }
+ })
+ },
initDictConfig(){
},
getSuperFieldList(){
diff --git a/ant-design-vue-jeecg/src/views/sensorrecord/SensorRecordList1.vue b/ant-design-vue-jeecg/src/views/sensorrecord/SensorRecordList1.vue
index a110ab83..317e646b 100644
--- a/ant-design-vue-jeecg/src/views/sensorrecord/SensorRecordList1.vue
+++ b/ant-design-vue-jeecg/src/views/sensorrecord/SensorRecordList1.vue
@@ -66,6 +66,9 @@
下载
+
+ {{text}}
+
编辑
@@ -90,6 +93,7 @@
+
@@ -100,12 +104,15 @@
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import SensorRecordModal from './modules/SensorRecordModal'
import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
+ import StationModal1 from '../team/modules/StationModal1'
+ import {deleteAction, getAction} from "@api/manage";
export default {
name: 'SensorRecordList1',
mixins:[JeecgListMixin, mixinDevice],
components: {
- SensorRecordModal
+ SensorRecordModal,
+ StationModal1
},
data () {
return {
@@ -135,7 +142,8 @@
{
title:'工位',
align:"center",
- dataIndex: 'stationId_dictText'
+ dataIndex: 'stationId_dictText',
+ scopedSlots: {customRender: 'gw'}
},
{
title:'进出标记',
@@ -182,6 +190,15 @@
},
},
methods: {
+ gw(stationId){
+ getAction("/team/station/queryById", {id: stationId}).then((res) => {
+ if (res.success) {
+ this.$refs.modalFormgw.edit(res.result);
+ this.$refs.modalFormgw.title="详情";
+ } else {
+ }
+ })
+ },
initDictConfig(){
},
getSuperFieldList(){
diff --git a/ant-design-vue-jeecg/src/views/team/modules/StationModal1.vue b/ant-design-vue-jeecg/src/views/team/modules/StationModal1.vue
new file mode 100644
index 00000000..d75be23d
--- /dev/null
+++ b/ant-design-vue-jeecg/src/views/team/modules/StationModal1.vue
@@ -0,0 +1,163 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/workorder/controller/WorkOrderController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/workorder/controller/WorkOrderController.java
index 49a12936..5a01ef36 100644
--- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/workorder/controller/WorkOrderController.java
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/workorder/controller/WorkOrderController.java
@@ -112,7 +112,7 @@ public class WorkOrderController extends JeecgController pageList = workOrderService.page(page, queryWrapper);
return Result.OK(pageList);
}
-
+
/**
* 添加
*
@@ -126,7 +126,7 @@ public class WorkOrderController extends JeecgController queryByOrderCode(@RequestParam(name="orderCode",required=true) String orderCode,HttpServletRequest req) {
+ WorkOrder workOrder = new WorkOrder();
+ QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(workOrder, req.getParameterMap());
+ queryWrapper.eq("product_code",orderCode);
+ workOrder = workOrderService.list(queryWrapper).get(0);
+ if(workOrder==null) {
+ return Result.error("未找到对应数据");
+ }
+ return Result.OK(workOrder);
+ }
+
/**
* 导出excel
*