diff --git a/ant-design-vue-jeecg/src/views/activiti/doneManage.vue b/ant-design-vue-jeecg/src/views/activiti/doneManage.vue
index fcd423a9..1205d110 100644
--- a/ant-design-vue-jeecg/src/views/activiti/doneManage.vue
+++ b/ant-design-vue-jeecg/src/views/activiti/doneManage.vue
@@ -125,7 +125,7 @@
\ No newline at end of file
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/workorder/vue/modules/WorkOrderModal.vue b/ant-design-vue-jeecg/src/views/kucun/admin/modules/KucunModal.vue
similarity index 83%
rename from jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/workorder/vue/modules/WorkOrderModal.vue
rename to ant-design-vue-jeecg/src/views/kucun/admin/modules/KucunModal.vue
index cd202439..b4d17544 100644
--- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/workorder/vue/modules/WorkOrderModal.vue
+++ b/ant-design-vue-jeecg/src/views/kucun/admin/modules/KucunModal.vue
@@ -8,17 +8,17 @@
:okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
@cancel="handleCancel"
cancelText="关闭">
-
+
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/productplan/ZyPlanTeamDataList.vue b/ant-design-vue-jeecg/src/views/productplan/ZyPlanTeamDataList.vue
index 9bc4e3f5..3ab40408 100644
--- a/ant-design-vue-jeecg/src/views/productplan/ZyPlanTeamDataList.vue
+++ b/ant-design-vue-jeecg/src/views/productplan/ZyPlanTeamDataList.vue
@@ -1,76 +1,27 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ item.userId }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
提交
+ @save="handleTableSave"
+ />
-
-
@@ -79,136 +30,88 @@
import '@/assets/less/TableExpand.less'
import {mixinDevice} from '@/utils/mixin'
import {JeecgListMixin} from '@/mixins/JeecgListMixin'
-import ZyPlanProcessModal from './modules/ZyPlanProcessModal2'
-import {getAction, httpAction, downFile, postAction} from "@api/manage";
-import {filterObj} from "@/utils/util";
+import {getAction, postAction} from "@api/manage";
+import {filterObj, pushIfNotExist, randomNumber, randomUUID} from "@/utils/util";
+import {JVXETypes} from '@/components/jeecg/JVxeTable'
export default {
- name: 'ZyPlanProcessList',
+ name: 'ZyPlanProcessDataList',
mixins: [JeecgListMixin, mixinDevice],
- components: {
- ZyPlanProcessModal
- },
data() {
return {
- description: '生产计划班组管理页面',
- // 表头
+ toolbarConfig: {
+ // add 新增按钮;remove 删除按钮;clearSelection 清空选择按钮
+ btn: ['save']
+ },
+ description: '生产计划工序管理页面',
+ loading: false,
+ // 分页器参数
+ // pagination: {
+ // // 当前页码
+ // current: 1,
+ // // 每页的条数
+ // pageSize: 10,
+ // // 可切换的条数
+ // pageSizeOptions: ['10', '20', '30', '50'],
+ // // 数据总数(目前并不知道真实的总数,所以先填写0,在后台查出来后再赋值)
+ // total: 0,
+ // },
+ // 选择的行
+ // selectedRows: [],
+ // 数据源,控制表格的数据
+ dataSource: [],
+ // columns,
columns: [
- {
- title: '#',
- dataIndex: '',
- key: 'rowIndex',
- width: 60,
- align: "center",
- customRender: function (t, r, index) {
- return parseInt(index) + 1;
- }
- },
- // {
- // title: '计划id',
- // align: "center",
- // dataIndex: 'planId'
- // },
- {
- title: '工单编号',
- align: "center",
- dataIndex: 'workOrderId'
- },
- {
- title: '产品id',
- align: "center",
- dataIndex: 'productId'
- },
- {
- title: '产品',
- align: "center",
- dataIndex: 'productName'
- },
- {
- title: '车间',
- align: "center",
- dataIndex: 'departName'
- },
- {
- title: '工序',
- align: "center",
- dataIndex: 'processName'
- },
+ {key: 'workOrderId', title: '工单编号', width: '180px'},
+ {key: 'productName', title: '产品名称', width: '180px'},
+ {key: 'departName', title: '车间名称', width: '180px'},
+ {key: 'processName', title: '工序名称', width: '180px'},
+ {key: 'groupName', title: '班组名称', width: '180px'},
{
title: '班组成员',
- align: "center",
- dataIndex: 'groupMemberList',
- width: 150,
- scopedSlots: {customRender: 'groupMemberList'}
+ key: 'userIds',
+ type: JVXETypes.selectMultiple,
+ width: '200px',
+ options: [],
+ placeholder: '请选择${title}',
},
- // {
- // title: '工位工具列表',
- // align: "center",
- // dataIndex: 'toolsList',
- // width: 150,
- // scopedSlots: {customRender: 'toolsList'}
- // // scopedSlots: {customRender: this.toolsList}
- // },
- // {
- // title: '工具设备列表',
- // align: "center",
- // dataIndex: 'machineList',
- // width: 150,
- // scopedSlots: {customRender: 'machineList'}
- // },
- {
- title: '操作',
- dataIndex: 'action',
- align: "center",
- fixed: "right",
- width: 147,
- scopedSlots: {customRender: 'action'}
- }
],
url: {
list: "/org.jeecg.modules.productplan/zyPlanProcess/getTeamDatalist",
- // getTeamDatalistByPlanId: "/org.jeecg.modules.productplan/zyPlanProcess/getTeamDatalistByPlanId",
- groupMemberlist: "/groupxMember/list",
- addTeamBatch: "/org.jeecg.modules.productplan/zyPlanProcess/addTeamBatch",
- // stationMachinelist: "/stationMachine/list",
- // productPlanlist: "/org.jeecg.modules.productplan/zyProductPlan/list",
- delete: "/org.jeecg.modules.productplan/zyPlanProcess/delete",
- // deleteBatch: "/org.jeecg.modules.productplan/zyPlanProcess/deleteBatch",
- // exportXlsUrl: "/org.jeecg.modules.productplan/zyPlanProcess/exportXls",
- // importExcelUrl: "org.jeecg.modules.productplan/zyPlanProcess/importExcel",
+ // addProcessBatch: "/org.jeecg.modules.productplan/zyPlanProcess/addProcessBatch",
+ updateTeamBatch: "/org.jeecg.modules.productplan/zyPlanProcess/addTeamBatch",
},
loadRouteType: false,
planId: "",
- dictOptions: {},
- superFieldList: [],
- toolsList: [],
- machineList: [],
- processIds: [],
- memberIds: [],
+ groupMemberList: [],
+ clickTrue: true,
}
},
created() {
- this.getSuperFieldList();
- // this.model = Object.assign({}, record);
- },
- computed: {
- importExcelUrl: function () {
- return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
- },
},
methods: {
- saveBatch() {
- // alert("保存开始")
- postAction(this.url.addTeamBatch, this.processIds).then((res) => {
- if (res.success) {
- this.$message.success(res.message)
- this.$emit('ok')
- this.close()
- } else {
- this.$message.warning(res.message)
+ // 【整体保存】点击保存按钮时触发的事件
+ handleTableSave({$table, target}) {
+ console.log("保存开始-----")
+ // 校验整个表格
+ $table.validate().then((errMap) => {
+ // 校验通过
+ if (!errMap) {
+ // 获取所有数据
+ let tableData = target.getTableData()
+ console.log('当前保存的数据是:', tableData)
+ // 【模拟保存】
+ this.loading = true
+ postAction(this.url.updateTeamBatch, tableData).then(res => {
+ if (res.success) {
+ this.$message.success(`保存成功!`)
+ } else {
+ this.$message.warn(`保存失败:` + res.message)
+ }
+ }).finally(() => {
+ this.loading = false
+ })
}
- }).finally(() => {
- this.confirmLoading = false
})
},
fanHui() {
@@ -216,16 +119,7 @@ export default {
path: '/productplan/ZyPlanTeamList',
});
},
- //$event为当前所选的key
- selectData($event, row) {
- console.log("group_member key $event=" + $event);
- // console.log("group_member key row=" + JSON.stringify(row));
- console.log("productProcessId=" + JSON.stringify(row.productProcessId));
- this.processIds.push({"processId": row.productProcessId, "userIds": $event});
- // for (var i = 0; i < processIds.length; i++) {
- console.log("the processIds length:" + this.processIds.length);
- },
//加载传递参数
loadParameter() {
if (this.loadRouteType === false) {
@@ -236,14 +130,16 @@ export default {
}
},
loadData(arg) {
+ console.log("the loadData---------开始");
+ // var that = this;
if (!this.url.list) {
this.$message.error("请设置url.list属性!")
return
}
//加载数据 若传入参数1则加载第一页的内容
- if (arg === 1) {
- this.ipagination.current = 1;
- }
+ // if (arg === 1) {
+ // this.ipagination.current = 1;
+ // }
this.loadParameter();
var params = this.getQueryParams();//查询条件
this.loading = true;
@@ -251,19 +147,12 @@ export default {
getAction(this.url.list, params).then((res) => {
if (res.success) {
this.dataSource = res.result.records || res.result;
- if (res.result.total) {
- this.ipagination.total = res.result.total;
- } else {
- this.ipagination.total = 0;
- }
+ this.groupMemberList = this.dataSource[0].groupMemberList;
} 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)
}
}).finally(() => {
- // this.dataSource.forEach(item => {
- // item['stationName'] = this.stationName;
- // item['stationNum'] = this.stationNum;
- // })
this.loading = false
})
},
@@ -281,51 +170,15 @@ export default {
param.planId = this.planId;
return filterObj(param);
},
- // initDictConfig() {
- // },
- getSuperFieldList() {
- let fieldList = [];
- fieldList.push({type: 'string', value: 'planId', text: '生产计划id', dictCode: ''})
- fieldList.push({type: 'string', value: 'stationId', text: '工位id', dictCode: ''})
- fieldList.push({type: 'string', value: 'machineIds', text: '设备id列表', dictCode: ''})
- fieldList.push({type: 'string', value: 'toolsIds', text: '工具id列表', dictCode: ''})
- fieldList.push({type: 'string', value: 'processIds', text: '工序id列表', dictCode: ''})
- fieldList.push({type: 'string', value: 'userIds', text: '成员id列表', dictCode: ''})
- this.superFieldList = fieldList
- },
- // jumpPage1(record) {
- // this.$router.push({
- // // path: '/productplan/ZyProductPlanList',
- // path: '/productplan/ZyPlanProcessDataList',
- //
- // // query: { // 路由携带参数
- // // 'stationId': record.id,
- // // 'stationName': record.stationName,
- // // },
- // });
- // },
- // pf(record) {
- // this.$router.push({
- // path: '/productplan/ZyPlanProcessAddList',
- // query: { // 路由携带参数
- // }
- // });
- // getAction("productPlanlist", {id: record.id}).then((res) => {
- // if (res.success) {
- // this.$router.push({
- // path: '/src/views/processassessment/assessmentCourse/ClassOpeningTaskList',
- // query: { // 路由携带参数
- // }
- // });
- // } else {
- // this.$message.error(res.message)
- // }
- // });
- // },
- }
-}
+ // 当选择的行变化时触发的事件
+ handleSelectRowChange(event) {
+ console.log("handleSelectRowChange-event:", event)
+ const {type, row, column, value, target, $table} = event
+ console.log("groupMemberList-----------", JSON.stringify(this.groupMemberList));
+ // target.$refs.vxe.columns[6].dictCode = this.stationIdCode;
+ target.$refs.vxe.columns[7].options = this.groupMemberList;
+ },
+ },
+};
-
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/system/UserAnnouncementList.vue b/ant-design-vue-jeecg/src/views/system/UserAnnouncementList.vue
index 891880ef..749e4fe3 100644
--- a/ant-design-vue-jeecg/src/views/system/UserAnnouncementList.vue
+++ b/ant-design-vue-jeecg/src/views/system/UserAnnouncementList.vue
@@ -55,7 +55,7 @@
import { getAction,putAction } from '@/api/manage'
import ShowAnnouncement from '@/components/tools/ShowAnnouncement'
import {JeecgListMixin} from '@/mixins/JeecgListMixin'
- import DynamicNotice from '../../components/tools/DynamicNotice'
+ import DynamicNotice from '@/components/tools/DynamicNotice'
export default {
name: "UserAnnouncementList",
diff --git a/ant-design-vue-jeecg/src/views/system/modules/StaffModal.vue b/ant-design-vue-jeecg/src/views/system/modules/StaffModal.vue
index 24ea9132..98662df8 100644
--- a/ant-design-vue-jeecg/src/views/system/modules/StaffModal.vue
+++ b/ant-design-vue-jeecg/src/views/system/modules/StaffModal.vue
@@ -172,7 +172,7 @@
import {addUser,editUser,queryUserRole,queryall } from '@/api/api'
import { disabledAuthFilter } from "@/utils/authFilter"
import {duplicateCheck } from '@/api/api'
- import JImageUpload from '../../../components/jeecg/JImageUpload'
+ import JImageUpload from '@/components/jeecg/JImageUpload'
export default {
name: "StaffModal",
diff --git a/ant-design-vue-jeecg/src/views/workorder/WorkOrderList.vue b/ant-design-vue-jeecg/src/views/workorder/WorkOrderList.vue
index 40d3defe..58d8d687 100644
--- a/ant-design-vue-jeecg/src/views/workorder/WorkOrderList.vue
+++ b/ant-design-vue-jeecg/src/views/workorder/WorkOrderList.vue
@@ -4,33 +4,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 查询
- 重置
-
- {{ toggleSearchStatus ? '收起' : '展开' }}
-
-
-
-
@@ -43,6 +16,8 @@
导入
+
+
删除
@@ -124,6 +99,7 @@
import { mixinDevice } from '@/utils/mixin'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import WorkOrderModal from './modules/WorkOrderModal'
+ import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
export default {
name: 'WorkOrderList',
@@ -137,7 +113,7 @@
// 表头
columns: [
{
- title: '序号',
+ title: '#',
dataIndex: '',
key:'rowIndex',
width:60,
@@ -146,40 +122,45 @@
return parseInt(index)+1;
}
},
-/* {
- title:'工单ID',
- align:"center",
- dataIndex: 'workId'
- },*/
{
title:'工单编号',
align:"center",
- dataIndex: 'workCode'
+ dataIndex: 'productCode'
},
-/* {
- title:'订单ID',
+ {
+ title:'订单',
align:"center",
- dataIndex: 'orderId'
- },*/
+ dataIndex: 'ordersId'
+ },
{
- title:'订单编号',
+ title:'订单商品',
align:"center",
- dataIndex: 'orderCode'
+ dataIndex: 'orderGoodsId'
},
-/* {
- title:'客户ID',
+ {
+ title:'商品数量',
align:"center",
- dataIndex: 'customerId'
- },*/
+ dataIndex: 'goodsNum'
+ },
{
- title:'客户名称',
+ title:'下单时间',
align:"center",
- dataIndex: 'customerName'
+ dataIndex: 'orderTime'
},
{
- title:'完工百分比',
+ title:'交货期',
align:"center",
- dataIndex: 'finished'
+ dataIndex: 'deliveryTime'
+ },
+ {
+ title:'工单状态',
+ align:"center",
+ dataIndex: 'workOrderStatus_dictText'
+ },
+ {
+ title:'企业',
+ align:"center",
+ dataIndex: 'enterprisesId'
},
{
title: '操作',
@@ -191,17 +172,19 @@
}
],
url: {
- list: "/workorder/workOrder/list",
- delete: "/workorder/workOrder/delete",
- deleteBatch: "/workorder/workOrder/deleteBatch",
- exportXlsUrl: "/workorder/workOrder/exportXls",
- importExcelUrl: "workorder/workOrder/importExcel",
-
+ list: "/workOrder/workOrder/list",
+ delete: "/workOrder/workOrder/delete",
+ deleteBatch: "/workOrder/workOrder/deleteBatch",
+ exportXlsUrl: "/workOrder/workOrder/exportXls",
+ importExcelUrl: "workOrder/workOrder/importExcel",
+
},
dictOptions:{},
+ superFieldList:[],
}
},
created() {
+ this.getSuperFieldList();
},
computed: {
importExcelUrl: function(){
@@ -210,6 +193,18 @@
},
methods: {
initDictConfig(){
+ },
+ getSuperFieldList(){
+ let fieldList=[];
+ fieldList.push({type:'string',value:'productCode',text:'工单编号',dictCode:''})
+ fieldList.push({type:'string',value:'ordersId',text:'订单',dictCode:''})
+ fieldList.push({type:'string',value:'orderGoodsId',text:'订单商品',dictCode:''})
+ fieldList.push({type:'int',value:'goodsNum',text:'商品数量',dictCode:''})
+ fieldList.push({type:'datetime',value:'orderTime',text:'下单时间'})
+ fieldList.push({type:'int',value:'deliveryTime',text:'交货期',dictCode:''})
+ fieldList.push({type:'int',value:'workOrderStatus',text:'工单状态',dictCode:'work_order_status'})
+ fieldList.push({type:'string',value:'enterprisesId',text:'企业',dictCode:''})
+ this.superFieldList = fieldList
}
}
}
diff --git a/ant-design-vue-jeecg/src/views/workorder/modules/WorkOrderForm.vue b/ant-design-vue-jeecg/src/views/workorder/modules/WorkOrderForm.vue
index 1959c9f4..328c84e5 100644
--- a/ant-design-vue-jeecg/src/views/workorder/modules/WorkOrderForm.vue
+++ b/ant-design-vue-jeecg/src/views/workorder/modules/WorkOrderForm.vue
@@ -1,48 +1,50 @@
-
+
-
-
-
-
+
+
+
-
-
-
-
+
+
+
-
-
-
-
+
+
+
-
-
-
+
+
+
-
- 提 交
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
@@ -50,28 +52,13 @@
\ No newline at end of file
diff --git a/ant-design-vue-jeecg/src/views/workorder/modules/WorkOrderModal__Style#Drawer.vue b/ant-design-vue-jeecg/src/views/workorder/modules/WorkOrderModal__Style#Drawer.vue
index 54a756f7..8b394962 100644
--- a/ant-design-vue-jeecg/src/views/workorder/modules/WorkOrderModal__Style#Drawer.vue
+++ b/ant-design-vue-jeecg/src/views/workorder/modules/WorkOrderModal__Style#Drawer.vue
@@ -5,6 +5,7 @@
placement="right"
:closable="false"
@close="close"
+ destroyOnClose
:visible="visible">