diff --git a/ant-design-vue-jeecg/src/views/system/Depart3List.vue b/ant-design-vue-jeecg/src/views/system/Depart3List.vue index 4cd0e77f..5848e24d 100644 --- a/ant-design-vue-jeecg/src/views/system/Depart3List.vue +++ b/ant-design-vue-jeecg/src/views/system/Depart3List.vue @@ -75,37 +75,46 @@ + - - + label="缩写"> + - - - + 产品管理 + 详情 @@ -102,6 +102,7 @@ + @@ -111,12 +112,14 @@ import { mixinDevice } from '@/utils/mixin' import { JeecgListMixin } from '@/mixins/JeecgListMixin' import WorkOrderModal from '@/views/workorder/modules/WorkOrderModal' + import ZyProductModal from '@/views/zyWorkProduct/modules/ZyProductModal' export default { name: 'ZyWorkOrderList', mixins:[JeecgListMixin, mixinDevice], components: { - WorkOrderModal + WorkOrderModal, + ZyProductModal }, data () { return { @@ -133,20 +136,25 @@ return parseInt(index)+1; } }, + { + title:'订单编号', + align:"center", + dataIndex: 'ordersNum' + }, { title:'工单编号', align:"center", dataIndex: 'productCode' }, { - title:'订单', + title:'客户名称', align:"center", - dataIndex: 'ordersId' + dataIndex: 'realname' }, { - title:'订单商品', + title:'商品名称', align:"center", - dataIndex: 'orderGoodsId' + dataIndex: 'goodsName' }, { title:'商品数量', @@ -158,6 +166,7 @@ align:"center", dataIndex: 'orderTime' }, + { title:'交货期', align:"center", @@ -166,7 +175,7 @@ { title:'工单状态', align:"center", - dataIndex: 'workOrderStatus_dictText' + dataIndex: 'workOrderStatusText' }, { title:'企业', @@ -202,7 +211,12 @@ }, methods: { initDictConfig(){ - } + }, + handleProductDetail(record){ + this.$refs.productForm.edit(record); + this.$refs.productForm.title="产品管理"; + this.$refs.productForm.disableSubmit = true; + }, } } diff --git a/ant-design-vue-jeecg/src/views/zyWorkorderManagement/workdep/JSelectProductionDep.vue b/ant-design-vue-jeecg/src/views/zyWorkorderManagement/workdep/JSelectProductionDep.vue index 9ac09076..ea16f9bb 100644 --- a/ant-design-vue-jeecg/src/views/zyWorkorderManagement/workdep/JSelectProductionDep.vue +++ b/ant-design-vue-jeecg/src/views/zyWorkorderManagement/workdep/JSelectProductionDep.vue @@ -10,6 +10,7 @@ cancelText="关闭" > +

{{ biaoTi }}

@@ -149,6 +150,7 @@ selectedRowKeys: [], selectdepRows: [], selectdepIds: [], + biaoTi:"", } }, created() { @@ -162,10 +164,11 @@ methods: { initDictConfig(){ }, - showModal(orderId) { + showModal(orderId,biaoTi) { this.selectedRowKeys=[] this.orderId=orderId this.visible = true; + this.biaoTi=biaoTi this.loadData(); }, close () { diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/SysDepartController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/SysDepartController.java index 12a02acc..74a464ed 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/SysDepartController.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/system/controller/SysDepartController.java @@ -527,4 +527,22 @@ public class SysDepartController { result.setResult(sysUsers); return result; } + + /** + * 根据部门id获取用户信息 + * + * @return + */ + @GetMapping("/validatedepartNameAbbr") + public Result getValidatedepartNameAbbr(@RequestParam(name = "name") String name) { + QueryWrapper depWrapper=new QueryWrapper(); + depWrapper.eq("depart_name_abbr",name); + List list = sysDepartService.list(depWrapper); + if(list.size()>0) + { + return Result.error("缩写已存在!"); + } + return Result.OK("成功!"); + } + } 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 96d08761..08f6507a 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 @@ -26,6 +26,7 @@ import org.jeecg.modules.demo.zyorders.service.IZyOrdersService; import org.jeecg.modules.system.entity.SysDepart; import org.jeecg.modules.system.service.ISysDepartService; import org.jeecg.modules.workorder.entity.WorkOrder; +import org.jeecg.modules.workorder.entity.WorkOrderVo; import org.jeecg.modules.workorder.service.IWorkOrderService; import org.jeecg.modules.workproduct.entity.ZyProduct; import org.jeecg.modules.workproduct.service.IZyProductService; @@ -254,13 +255,13 @@ public class WorkOrderController extends JeecgController queryPageWorkList(WorkOrder workOrder, + public Result queryPageWorkList(WorkOrderVo workOrder, @RequestParam(name="pageNo", defaultValue="1") Integer pageNo, @RequestParam(name="pageSize", defaultValue="10") Integer pageSize, HttpServletRequest req) { - QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(workOrder, req.getParameterMap()); + //QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(workOrder, req.getParameterMap()); Page page = new Page(pageNo, pageSize); - IPage pageList = workOrderService.page(page, queryWrapper); + IPage pageList = workOrderService.selectPage(page, workOrder); return Result.OK(pageList); } @@ -363,6 +364,7 @@ public class WorkOrderController extends JeecgController { + //自定义分页查询 + IPage selectListPage(Page page,@Param("model") WorkOrderVo model); } diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/workorder/mapper/xml/WorkOrderMapper.xml b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/workorder/mapper/xml/WorkOrderMapper.xml index 9daa0a17..f3b65aad 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/workorder/mapper/xml/WorkOrderMapper.xml +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/workorder/mapper/xml/WorkOrderMapper.xml @@ -2,4 +2,38 @@ + + + \ No newline at end of file diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/workorder/service/IWorkOrderService.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/workorder/service/IWorkOrderService.java index 7575c90a..122bd861 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/workorder/service/IWorkOrderService.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/workorder/service/IWorkOrderService.java @@ -1,8 +1,11 @@ package org.jeecg.modules.workorder.service; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.IService; import org.jeecg.modules.workorder.entity.WorkOrder; +import org.jeecg.modules.workorder.entity.WorkOrderVo; /** * @Description: 工单订单完工 @@ -12,4 +15,6 @@ import org.jeecg.modules.workorder.entity.WorkOrder; */ public interface IWorkOrderService extends IService { + //自定义分页查询 + IPage selectPage(Page page, WorkOrderVo workOrder); } diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/workorder/service/impl/WorkOrderServiceImpl.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/workorder/service/impl/WorkOrderServiceImpl.java index 41a61124..fed4c568 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/workorder/service/impl/WorkOrderServiceImpl.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/workorder/service/impl/WorkOrderServiceImpl.java @@ -1,7 +1,10 @@ package org.jeecg.modules.workorder.service.impl; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import org.jeecg.modules.workorder.entity.WorkOrder; +import org.jeecg.modules.workorder.entity.WorkOrderVo; import org.jeecg.modules.workorder.mapper.WorkOrderMapper; import org.jeecg.modules.workorder.service.IWorkOrderService; import org.springframework.stereotype.Service; @@ -17,4 +20,14 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; @Service public class WorkOrderServiceImpl extends ServiceImpl implements IWorkOrderService { + /** + * 自定义分页查询 + * @param page + * @param workOrder + * @return + */ + @Override + public IPage selectPage(Page page, WorkOrderVo workOrder) { + return baseMapper.selectListPage(page,workOrder); + } } diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/workproduct/entity/ZyProduct.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/workproduct/entity/ZyProduct.java index 20d408fa..e826ec6b 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/workproduct/entity/ZyProduct.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/workproduct/entity/ZyProduct.java @@ -59,7 +59,7 @@ public class ZyProduct implements Serializable { @ApiModelProperty(value = "产品编号") private String productCode; - @Excel(name = "产品编号", width = 50) + @Excel(name = "产品名称", width = 50) @ApiModelProperty(value = "产品名称") private String productName; /**工单*/