From c5894d0d10124caf113faedf3cd1a116135efdd7 Mon Sep 17 00:00:00 2001
From: zhc077 <565291854>
Date: Fri, 13 Jan 2023 18:53:48 +0800
Subject: [PATCH] =?UTF-8?q?=E7=8F=AD=E7=BB=84=E7=AE=A1=E7=90=86=E9=97=AE?=
=?UTF-8?q?=E9=A2=98=E5=A4=84=E7=90=86=201.13?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../productplan/ZyPlanProcessDataList.vue | 33 +++++++--------
.../src/views/team/modules/GroupxModal.vue | 18 +++++++--
.../src/views/team/modules/StationModal.vue | 35 ++++++++++++----
.../team/service/impl/StationServiceImpl.java | 40 +++++++++++++++++--
4 files changed, 94 insertions(+), 32 deletions(-)
diff --git a/ant-design-vue-jeecg/src/views/productplan/ZyPlanProcessDataList.vue b/ant-design-vue-jeecg/src/views/productplan/ZyPlanProcessDataList.vue
index 56c45bc0..4b7441d4 100644
--- a/ant-design-vue-jeecg/src/views/productplan/ZyPlanProcessDataList.vue
+++ b/ant-design-vue-jeecg/src/views/productplan/ZyPlanProcessDataList.vue
@@ -27,12 +27,6 @@
导出
返回
-
-
-
-
-
-
@@ -95,16 +89,27 @@ export default {
options: [],
placeholder: '请选择${title}',
},
+ {
+ title: 'stationIds',
+ key: 'stationIds',
+ type: JVXETypes.hidden,
+ },
{
title: '设备列表',
- key: 'machineIds',
+ key: 'machineNames',
type: JVXETypes.selectMultiple,
width: '200px',
options: [],
placeholder: '请选择${title}',
- }, {
- title: '工具列表',
+ },
+ {
+ title: 'toodsIds',
key: 'toolsIds',
+ type: JVXETypes.hidden,
+ },
+ {
+ title: '工具列表',
+ key: 'toolsIdNames',
type: JVXETypes.selectMultiple,
width: '200px',
options: [],
@@ -150,7 +155,7 @@ export default {
dictOptions: {},
superFieldList: [],
stationId: [],
- stationIdList: [],
+ stationList: [],
toolsList: [],
machineList: [],
clickTrue: true,
@@ -169,11 +174,7 @@ export default {
if (!errMap) {
// 获取所有数据
let tableData = target.getTableData()
- // tableData.forEach(item => {
- // item.id = '';
- // })
console.log('当前保存的数据是:', tableData)
-
// 【模拟保存】
this.loading = true
postAction(this.url.addProcessBatch, tableData).then(res => {
@@ -222,7 +223,7 @@ export default {
if (res.success) {
this.dataSource = res.result.records || res.result;
// this.stationId = this.dataSource[0].stationId;
- this.stationIdList = this.dataSource[0].stationIdList;
+ this.stationList = this.dataSource[0].stationList;
} else {
// this.stationIdCode = "station,station_name,id,depart_id in (select workshop_id from zy_product_plan where id='" + this.planId + "')";
this.$message.warning(res.message)
@@ -253,7 +254,7 @@ export default {
const {type, row, column, value, target, $table} = event
console.log(JSON.stringify(this.stationIdList));
// target.$refs.vxe.columns[6].dictCode = this.stationIdCode;
- target.$refs.vxe.columns[6].options = this.stationIdList;
+ target.$refs.vxe.columns[6].options = this.stationList;
},
/** 当选项被改变时,联动其他组件 */
handleValueChange(event) {
diff --git a/ant-design-vue-jeecg/src/views/team/modules/GroupxModal.vue b/ant-design-vue-jeecg/src/views/team/modules/GroupxModal.vue
index e0a7a31a..a18ee2b0 100644
--- a/ant-design-vue-jeecg/src/views/team/modules/GroupxModal.vue
+++ b/ant-design-vue-jeecg/src/views/team/modules/GroupxModal.vue
@@ -11,13 +11,22 @@
-
-
+
+
+
+
+
+
@@ -117,6 +126,7 @@ export default {
methods: {
getEnterprisesManagerValChange() {
+ console.log("the departId=", this.model.departId)
this.enterprisesManager = "sys_user,realname,id,id in (select user_id from sys_user_depart where dep_id='" + this.model.departId + "')";
// this.enterprisesManager = "zy_process,process_name,id,id in(select process_id from zy_product_process where product_id='1')";
},
diff --git a/ant-design-vue-jeecg/src/views/team/modules/StationModal.vue b/ant-design-vue-jeecg/src/views/team/modules/StationModal.vue
index e9c3379e..0ab73814 100644
--- a/ant-design-vue-jeecg/src/views/team/modules/StationModal.vue
+++ b/ant-design-vue-jeecg/src/views/team/modules/StationModal.vue
@@ -12,14 +12,19 @@
-
-
-
-
+
-
-
-
+
+
+
+
+
@@ -37,7 +42,7 @@