110 2 роки тому
батько
коміт
6d7e8b10d6
28 змінених файлів з 1984 додано та 0 видалено
  1. 182 0
      itdmServer/module-iTDM/src/main/java/org/jeecg/modules/ItdmWtkehu/controller/ItdmWtkehuController.java
  2. 78 0
      itdmServer/module-iTDM/src/main/java/org/jeecg/modules/ItdmWtkehu/entity/ItdmWtkehu.java
  3. 17 0
      itdmServer/module-iTDM/src/main/java/org/jeecg/modules/ItdmWtkehu/mapper/ItdmWtkehuMapper.java
  4. 5 0
      itdmServer/module-iTDM/src/main/java/org/jeecg/modules/ItdmWtkehu/mapper/xml/ItdmWtkehuMapper.xml
  5. 14 0
      itdmServer/module-iTDM/src/main/java/org/jeecg/modules/ItdmWtkehu/service/IItdmWtkehuService.java
  6. 19 0
      itdmServer/module-iTDM/src/main/java/org/jeecg/modules/ItdmWtkehu/service/impl/ItdmWtkehuServiceImpl.java
  7. 222 0
      itdmServer/module-iTDM/src/main/java/org/jeecg/modules/ItdmWtkehu/vue/ItdmWtkehuList.vue
  8. 26 0
      itdmServer/module-iTDM/src/main/java/org/jeecg/modules/ItdmWtkehu/vue/ItdmWtkehu_menu_insert.sql
  9. 133 0
      itdmServer/module-iTDM/src/main/java/org/jeecg/modules/ItdmWtkehu/vue/modules/ItdmWtkehuForm.vue
  10. 84 0
      itdmServer/module-iTDM/src/main/java/org/jeecg/modules/ItdmWtkehu/vue/modules/ItdmWtkehuModal.Style#Drawer.vue
  11. 60 0
      itdmServer/module-iTDM/src/main/java/org/jeecg/modules/ItdmWtkehu/vue/modules/ItdmWtkehuModal.vue
  12. 177 0
      itdmServer/module-iTDM/src/main/java/org/jeecg/modules/Itdmgongdanshuju/controller/ItdmGongdanShujuController.java
  13. 85 0
      itdmServer/module-iTDM/src/main/java/org/jeecg/modules/Itdmgongdanshuju/entity/ItdmGongdanShuju.java
  14. 17 0
      itdmServer/module-iTDM/src/main/java/org/jeecg/modules/Itdmgongdanshuju/mapper/ItdmGongdanShujuMapper.java
  15. 5 0
      itdmServer/module-iTDM/src/main/java/org/jeecg/modules/Itdmgongdanshuju/mapper/xml/ItdmGongdanShujuMapper.xml
  16. 14 0
      itdmServer/module-iTDM/src/main/java/org/jeecg/modules/Itdmgongdanshuju/service/IItdmGongdanShujuService.java
  17. 19 0
      itdmServer/module-iTDM/src/main/java/org/jeecg/modules/Itdmgongdanshuju/service/impl/ItdmGongdanShujuServiceImpl.java
  18. 177 0
      itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmWeituoChaXun/controller/ItdmWeituoYangpinController.java
  19. 82 0
      itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmWeituoChaXun/entity/ItdmWeituoYangpin.java
  20. 17 0
      itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmWeituoChaXun/mapper/ItdmWeituoChaxunMapper.java
  21. 5 0
      itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmWeituoChaXun/mapper/xml/ItdmWeituoYangpinMapper.xml
  22. 14 0
      itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmWeituoChaXun/service/IItdmWeituoYangpinService.java
  23. 20 0
      itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmWeituoChaXun/service/impl/ItdmWeituoYangpinServiceImpl.java
  24. 201 0
      itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmWeituoChaXun/vue/ItdmWeituoYangpinList.vue
  25. 26 0
      itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmWeituoChaXun/vue/ItdmWeituoYangpin_menu_insert.sql
  26. 141 0
      itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmWeituoChaXun/vue/modules/ItdmWeituoYangpinForm.vue
  27. 84 0
      itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmWeituoChaXun/vue/modules/ItdmWeituoYangpinModal.Style#Drawer.vue
  28. 60 0
      itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmWeituoChaXun/vue/modules/ItdmWeituoYangpinModal.vue

+ 182 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/ItdmWtkehu/controller/ItdmWtkehuController.java

@@ -0,0 +1,182 @@
+package org.jeecg.modules.ItdmWtkehu.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+import org.jeecg.modules.ItdmWtkehu.entity.ItdmWtkehu;
+import org.jeecg.modules.ItdmWtkehu.service.IItdmWtkehuService;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.jeecg.common.aspect.annotation.AutoLog;
+
+ /**
+ * @Description: 客户管理
+ * @Author: jeecg-boot
+ * @Date:   2023-05-22
+ * @Version: V1.0
+ */
+@Api(tags="客户管理")
+@RestController
+@RequestMapping("/ItdmWtkehu/itdmWtkehu")
+@Slf4j
+public class ItdmWtkehuController extends JeecgController<ItdmWtkehu, IItdmWtkehuService> {
+	@Autowired
+	private IItdmWtkehuService itdmWtkehuService;
+	
+	/**
+	 * 分页列表查询
+	 *
+	 * @param itdmWtkehu
+	 * @param pageNo
+	 * @param pageSize
+	 * @param req
+	 * @return
+	 */
+	//@AutoLog(value = "客户管理-分页列表查询")
+	@ApiOperation(value="客户管理-分页列表查询", notes="客户管理-分页列表查询")
+	@GetMapping(value = "/list")
+	public Result<IPage<ItdmWtkehu>> queryPageList(ItdmWtkehu itdmWtkehu,
+								   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+								   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+								   HttpServletRequest req) {
+		QueryWrapper<ItdmWtkehu> queryWrapper = QueryGenerator.initQueryWrapper(itdmWtkehu, req.getParameterMap());
+		Page<ItdmWtkehu> page = new Page<ItdmWtkehu>(pageNo, pageSize);
+		IPage<ItdmWtkehu> pageList = itdmWtkehuService.page(page, queryWrapper);
+		return Result.OK(pageList);
+	}
+	 @GetMapping(value = "/olist")
+	 public Result<List<ItdmWtkehu>> getAllItdmWtkehues() {
+		 List<ItdmWtkehu> list = itdmWtkehuService.list();
+		 return Result.OK(list);
+	 }
+	
+	/**
+	 *   添加
+	 *
+	 * @param itdmWtkehu
+	 * @return
+	 */
+	@AutoLog(value = "客户管理-添加")
+	@ApiOperation(value="客户管理-添加", notes="客户管理-添加")
+	//@RequiresPermissions("org.jeecg.modules:itdm_wtkehu:add")
+	@PostMapping(value = "/add")
+	public Result<String> add(@RequestBody ItdmWtkehu itdmWtkehu) {
+		itdmWtkehuService.save(itdmWtkehu);
+		return Result.OK("添加成功!");
+	}
+	
+	/**
+	 *  编辑
+	 *
+	 * @param itdmWtkehu
+	 * @return
+	 */
+	@AutoLog(value = "客户管理-编辑")
+	@ApiOperation(value="客户管理-编辑", notes="客户管理-编辑")
+	//@RequiresPermissions("org.jeecg.modules:itdm_wtkehu:edit")
+	@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
+	public Result<String> edit(@RequestBody ItdmWtkehu itdmWtkehu) {
+		itdmWtkehuService.updateById(itdmWtkehu);
+		return Result.OK("编辑成功!");
+	}
+	
+	/**
+	 *   通过id删除
+	 *
+	 * @param id
+	 * @return
+	 */
+	@AutoLog(value = "客户管理-通过id删除")
+	@ApiOperation(value="客户管理-通过id删除", notes="客户管理-通过id删除")
+	//@RequiresPermissions("org.jeecg.modules:itdm_wtkehu:delete")
+	@DeleteMapping(value = "/delete")
+	public Result<String> delete(@RequestParam(name="id",required=true) String id) {
+		itdmWtkehuService.removeById(id);
+		return Result.OK("删除成功!");
+	}
+	
+	/**
+	 *  批量删除
+	 *
+	 * @param ids
+	 * @return
+	 */
+	@AutoLog(value = "客户管理-批量删除")
+	@ApiOperation(value="客户管理-批量删除", notes="客户管理-批量删除")
+	//@RequiresPermissions("org.jeecg.modules:itdm_wtkehu:deleteBatch")
+	@DeleteMapping(value = "/deleteBatch")
+	public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+		this.itdmWtkehuService.removeByIds(Arrays.asList(ids.split(",")));
+		return Result.OK("批量删除成功!");
+	}
+	
+	/**
+	 * 通过id查询
+	 *
+	 * @param id
+	 * @return
+	 */
+	//@AutoLog(value = "客户管理-通过id查询")
+	@ApiOperation(value="客户管理-通过id查询", notes="客户管理-通过id查询")
+	@GetMapping(value = "/queryById")
+	public Result<ItdmWtkehu> queryById(@RequestParam(name="id",required=true) String id) {
+		ItdmWtkehu itdmWtkehu = itdmWtkehuService.getById(id);
+		if(itdmWtkehu==null) {
+			return Result.error("未找到对应数据");
+		}
+		return Result.OK(itdmWtkehu);
+	}
+
+    /**
+    * 导出excel
+    *
+    * @param request
+    * @param itdmWtkehu
+    */
+    //@RequiresPermissions("org.jeecg.modules:itdm_wtkehu:exportXls")
+    @RequestMapping(value = "/exportXls")
+    public ModelAndView exportXls(HttpServletRequest request, ItdmWtkehu itdmWtkehu) {
+        return super.exportXls(request, itdmWtkehu, ItdmWtkehu.class, "客户管理");
+    }
+
+    /**
+      * 通过excel导入数据
+    *
+    * @param request
+    * @param response
+    * @return
+    */
+    //@RequiresPermissions("itdm_wtkehu:importExcel")
+    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
+        return super.importExcel(request, response, ItdmWtkehu.class);
+    }
+
+}

+ 78 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/ItdmWtkehu/entity/ItdmWtkehu.java

@@ -0,0 +1,78 @@
+package org.jeecg.modules.ItdmWtkehu.entity;
+
+import java.io.Serializable;
+import java.io.UnsupportedEncodingException;
+import java.util.Date;
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableLogic;
+import lombok.Data;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.jeecg.common.aspect.annotation.Dict;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @Description: 客户管理
+ * @Author: jeecg-boot
+ * @Date:   2023-05-22
+ * @Version: V1.0
+ */
+@Data
+@TableName("itdm_wtkehu")
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = false)
+@ApiModel(value="itdm_wtkehu对象", description="客户管理")
+public class ItdmWtkehu implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+	/**主键*/
+	@TableId(type = IdType.ASSIGN_ID)
+    @ApiModelProperty(value = "主键")
+    private java.lang.String id;
+	/**创建人*/
+    @ApiModelProperty(value = "创建人")
+    private java.lang.String createBy;
+	/**创建日期*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "创建日期")
+    private java.util.Date createTime;
+	/**更新人*/
+    @ApiModelProperty(value = "更新人")
+    private java.lang.String updateBy;
+	/**更新日期*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "更新日期")
+    private java.util.Date updateTime;
+	/**所属部门*/
+    @ApiModelProperty(value = "所属部门")
+    private java.lang.String sysOrgCode;
+	/**委托单位名称*/
+	@Excel(name = "委托单位名称", width = 15)
+    @ApiModelProperty(value = "委托单位名称")
+    private java.lang.String weituiClient;
+	/**委托单位地址*/
+	@Excel(name = "委托单位地址", width = 15)
+    @ApiModelProperty(value = "委托单位地址")
+    private java.lang.String weituiAddress;
+	/**委托联系人*/
+	@Excel(name = "委托联系人", width = 15)
+    @ApiModelProperty(value = "委托联系人")
+    private java.lang.String weituiLxr;
+	/**委托电话*/
+	@Excel(name = "委托电话", width = 15)
+    @ApiModelProperty(value = "委托电话")
+    private java.lang.String weituiPhone;
+	/**委托邮箱*/
+	@Excel(name = "委托邮箱", width = 15)
+    @ApiModelProperty(value = "委托邮箱")
+    private java.lang.String weituiEmail;
+}

+ 17 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/ItdmWtkehu/mapper/ItdmWtkehuMapper.java

@@ -0,0 +1,17 @@
+package org.jeecg.modules.ItdmWtkehu.mapper;
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+import org.jeecg.modules.ItdmWtkehu.entity.ItdmWtkehu;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: 客户管理
+ * @Author: jeecg-boot
+ * @Date:   2023-05-22
+ * @Version: V1.0
+ */
+public interface ItdmWtkehuMapper extends BaseMapper<ItdmWtkehu> {
+
+}

+ 5 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/ItdmWtkehu/mapper/xml/ItdmWtkehuMapper.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="org.jeecg.modules.ItdmWtkehu.mapper.ItdmWtkehuMapper">
+
+</mapper>

+ 14 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/ItdmWtkehu/service/IItdmWtkehuService.java

@@ -0,0 +1,14 @@
+package org.jeecg.modules.ItdmWtkehu.service;
+
+import org.jeecg.modules.ItdmWtkehu.entity.ItdmWtkehu;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * @Description: 客户管理
+ * @Author: jeecg-boot
+ * @Date:   2023-05-22
+ * @Version: V1.0
+ */
+public interface IItdmWtkehuService extends IService<ItdmWtkehu> {
+
+}

+ 19 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/ItdmWtkehu/service/impl/ItdmWtkehuServiceImpl.java

@@ -0,0 +1,19 @@
+package org.jeecg.modules.ItdmWtkehu.service.impl;
+
+import org.jeecg.modules.ItdmWtkehu.entity.ItdmWtkehu;
+import org.jeecg.modules.ItdmWtkehu.mapper.ItdmWtkehuMapper;
+import org.jeecg.modules.ItdmWtkehu.service.IItdmWtkehuService;
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+/**
+ * @Description: 客户管理
+ * @Author: jeecg-boot
+ * @Date:   2023-05-22
+ * @Version: V1.0
+ */
+@Service
+public class ItdmWtkehuServiceImpl extends ServiceImpl<ItdmWtkehuMapper, ItdmWtkehu> implements IItdmWtkehuService {
+
+}

+ 222 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/ItdmWtkehu/vue/ItdmWtkehuList.vue

@@ -0,0 +1,222 @@
+<template>
+  <a-card :bordered="false">
+    <!-- 查询区域 -->
+    <div class="table-page-search-wrapper">
+      <a-form layout="inline" @keyup.enter.native="searchQuery">
+        <a-row :gutter="24">
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="委托单位名称">
+              <a-input placeholder="请输入委托单位名称" v-model="queryParam.weituiClient"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <a-form-item label="委托联系人">
+              <a-input placeholder="请输入委托联系人" v-model="queryParam.weituiLxr"></a-input>
+            </a-form-item>
+          </a-col>
+          <template v-if="toggleSearchStatus">
+            <a-col :xl="6" :lg="7" :md="8" :sm="24">
+              <a-form-item label="委托电话">
+                <a-input placeholder="请输入委托电话" v-model="queryParam.weituiPhone"></a-input>
+              </a-form-item>
+            </a-col>
+          </template>
+          <a-col :xl="6" :lg="7" :md="8" :sm="24">
+            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
+              <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
+              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
+              <a @click="handleToggleSearch" style="margin-left: 8px">
+                {{ toggleSearchStatus ? '收起' : '展开' }}
+                <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
+              </a>
+            </span>
+          </a-col>
+        </a-row>
+      </a-form>
+    </div>
+    <!-- 查询区域-END -->
+
+    <!-- 操作按钮区域 -->
+    <div class="table-operator">
+      <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
+      <a-button type="primary" icon="download" @click="handleExportXls('客户管理')">导出</a-button>
+      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
+        <a-button type="primary" icon="import">导入</a-button>
+      </a-upload>
+      <!-- 高级查询区域 -->
+      <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
+      <a-dropdown v-if="selectedRowKeys.length > 0">
+        <a-menu slot="overlay">
+          <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
+        </a-menu>
+        <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
+      </a-dropdown>
+    </div>
+
+    <!-- table区域-begin -->
+    <div>
+      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
+        <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
+        <a style="margin-left: 24px" @click="onClearSelected">清空</a>
+      </div>
+
+      <a-table
+        ref="table"
+        size="middle"
+        :scroll="{x:true}"
+        bordered
+        rowKey="id"
+        :columns="columns"
+        :dataSource="dataSource"
+        :pagination="ipagination"
+        :loading="loading"
+        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
+        class="j-table-force-nowrap"
+        @change="handleTableChange">
+
+        <template slot="htmlSlot" slot-scope="text">
+          <div v-html="text"></div>
+        </template>
+        <template slot="imgSlot" slot-scope="text,record">
+          <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
+          <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
+        </template>
+        <template slot="fileSlot" slot-scope="text">
+          <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
+          <a-button
+            v-else
+            :ghost="true"
+            type="primary"
+            icon="download"
+            size="small"
+            @click="downloadFile(text)">
+            下载
+          </a-button>
+        </template>
+
+        <span slot="action" slot-scope="text, record">
+          <a @click="handleEdit(record)">编辑</a>
+
+          <a-divider type="vertical" />
+          <a-dropdown>
+            <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
+            <a-menu slot="overlay">
+              <a-menu-item>
+                <a @click="handleDetail(record)">详情</a>
+              </a-menu-item>
+              <a-menu-item>
+                <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
+                  <a>删除</a>
+                </a-popconfirm>
+              </a-menu-item>
+            </a-menu>
+          </a-dropdown>
+        </span>
+
+      </a-table>
+    </div>
+
+    <itdm-wtkehu-modal ref="modalForm" @ok="modalFormOk"></itdm-wtkehu-modal>
+  </a-card>
+</template>
+
+<script>
+
+  import '@/assets/less/TableExpand.less'
+  import { mixinDevice } from '@/utils/mixin'
+  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+  import ItdmWtkehuModal from './modules/ItdmWtkehuModal'
+
+  export default {
+    name: 'ItdmWtkehuList',
+    mixins:[JeecgListMixin, mixinDevice],
+    components: {
+      ItdmWtkehuModal
+    },
+    data () {
+      return {
+        description: '客户管理管理页面',
+        // 表头
+        columns: [
+          {
+            title: '#',
+            dataIndex: '',
+            key:'rowIndex',
+            width:60,
+            align:"center",
+            customRender:function (t,r,index) {
+              return parseInt(index)+1;
+            }
+          },
+          {
+            title:'委托单位名称',
+            align:"center",
+            dataIndex: 'weituiClient'
+          },
+          {
+            title:'委托单位地址',
+            align:"center",
+            dataIndex: 'weituiAddress'
+          },
+          {
+            title:'委托联系人',
+            align:"center",
+            dataIndex: 'weituiLxr'
+          },
+          {
+            title:'委托电话',
+            align:"center",
+            dataIndex: 'weituiPhone'
+          },
+          {
+            title:'委托邮箱',
+            align:"center",
+            dataIndex: 'weituiEmail'
+          },
+          {
+            title: '操作',
+            dataIndex: 'action',
+            align:"center",
+            fixed:"right",
+            width:147,
+            scopedSlots: { customRender: 'action' }
+          }
+        ],
+        url: {
+          list: "/ItdmWtkehu/itdmWtkehu/list",
+          delete: "/ItdmWtkehu/itdmWtkehu/delete",
+          deleteBatch: "/ItdmWtkehu/itdmWtkehu/deleteBatch",
+          exportXlsUrl: "/ItdmWtkehu/itdmWtkehu/exportXls",
+          importExcelUrl: "ItdmWtkehu/itdmWtkehu/importExcel",
+          
+        },
+        dictOptions:{},
+        superFieldList:[],
+      }
+    },
+    created() {
+    this.getSuperFieldList();
+    },
+    computed: {
+      importExcelUrl: function(){
+        return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+      },
+    },
+    methods: {
+      initDictConfig(){
+      },
+      getSuperFieldList(){
+        let fieldList=[];
+        fieldList.push({type:'string',value:'weituiClient',text:'委托单位名称',dictCode:''})
+        fieldList.push({type:'string',value:'weituiAddress',text:'委托单位地址',dictCode:''})
+        fieldList.push({type:'string',value:'weituiLxr',text:'委托联系人',dictCode:''})
+        fieldList.push({type:'string',value:'weituiPhone',text:'委托电话',dictCode:''})
+        fieldList.push({type:'string',value:'weituiEmail',text:'委托邮箱',dictCode:''})
+        this.superFieldList = fieldList
+      }
+    }
+  }
+</script>
+<style scoped>
+  @import '~@assets/less/common.less';
+</style>

+ 26 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/ItdmWtkehu/vue/ItdmWtkehu_menu_insert.sql

@@ -0,0 +1,26 @@
+-- 注意:该页面对应的前台目录为views/ItdmWtkehu文件夹下
+-- 如果你想更改到其他目录,请修改sql中component字段对应的值
+
+
+INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external)
+VALUES ('2023052211527230490', NULL, '客户管理', '/ItdmWtkehu/itdmWtkehuList', 'module-iTDM/ItdmWtkehu/ItdmWtkehuList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 1, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-05-22 11:52:49', NULL, NULL, 0);
+
+-- 权限控制sql
+-- 新增
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023052211527230491', '2023052211527230490', '新增', NULL, NULL, 0, NULL, NULL, 2, 'org.jeecg.modules:itdm_wtkehu:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-22 11:52:49', NULL, NULL, 0, 0, '1', 0);
+-- 编辑
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023052211527230492', '2023052211527230490', '编辑', NULL, NULL, 0, NULL, NULL, 2, 'org.jeecg.modules:itdm_wtkehu:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-22 11:52:49', NULL, NULL, 0, 0, '1', 0);
+-- 删除
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023052211527230493', '2023052211527230490', '删除', NULL, NULL, 0, NULL, NULL, 2, 'org.jeecg.modules:itdm_wtkehu:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-22 11:52:49', NULL, NULL, 0, 0, '1', 0);
+-- 批量删除
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023052211527240494', '2023052211527230490', '批量删除', NULL, NULL, 0, NULL, NULL, 2, 'org.jeecg.modules:itdm_wtkehu:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-22 11:52:49', NULL, NULL, 0, 0, '1', 0);
+-- 导出excel
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023052211527240495', '2023052211527230490', '导出excel', NULL, NULL, 0, NULL, NULL, 2, 'org.jeecg.modules:itdm_wtkehu:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-22 11:52:49', NULL, NULL, 0, 0, '1', 0);
+-- 导入excel
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023052211527240496', '2023052211527230490', '导入excel', NULL, NULL, 0, NULL, NULL, 2, 'org.jeecg.modules:itdm_wtkehu:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-22 11:52:49', NULL, NULL, 0, 0, '1', 0);

+ 133 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/ItdmWtkehu/vue/modules/ItdmWtkehuForm.vue

@@ -0,0 +1,133 @@
+<template>
+  <a-spin :spinning="confirmLoading">
+    <j-form-container :disabled="formDisabled">
+      <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail">
+        <a-row>
+          <a-col :span="24">
+            <a-form-model-item label="委托单位名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="weituiClient">
+              <a-input v-model="model.weituiClient" placeholder="请输入委托单位名称"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="委托单位地址" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="weituiAddress">
+              <a-input v-model="model.weituiAddress" placeholder="请输入委托单位地址"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="委托联系人" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="weituiLxr">
+              <a-input v-model="model.weituiLxr" placeholder="请输入委托联系人"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="委托电话" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="weituiPhone">
+              <a-input v-model="model.weituiPhone" placeholder="请输入委托电话"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="委托邮箱" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="weituiEmail">
+              <a-input v-model="model.weituiEmail" placeholder="请输入委托邮箱"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+        </a-row>
+      </a-form-model>
+    </j-form-container>
+  </a-spin>
+</template>
+
+<script>
+
+  import { httpAction, getAction } from '@/api/manage'
+  import { validateDuplicateValue } from '@/utils/util'
+
+  export default {
+    name: 'ItdmWtkehuForm',
+    components: {
+    },
+    props: {
+      //表单禁用
+      disabled: {
+        type: Boolean,
+        default: false,
+        required: false
+      }
+    },
+    data () {
+      return {
+        model:{
+         },
+        labelCol: {
+          xs: { span: 24 },
+          sm: { span: 5 },
+        },
+        wrapperCol: {
+          xs: { span: 24 },
+          sm: { span: 16 },
+        },
+        confirmLoading: false,
+        validatorRules: {
+           weituiClient: [
+              { required: true, message: '请输入委托单位名称!'},
+           ],
+           weituiLxr: [
+              { required: true, message: '请输入委托联系人!'},
+           ],
+           weituiPhone: [
+              { required: true, message: '请输入委托电话!'},
+           ],
+        },
+        url: {
+          add: "/ItdmWtkehu/itdmWtkehu/add",
+          edit: "/ItdmWtkehu/itdmWtkehu/edit",
+          queryById: "/ItdmWtkehu/itdmWtkehu/queryById"
+        }
+      }
+    },
+    computed: {
+      formDisabled(){
+        return this.disabled
+      },
+    },
+    created () {
+       //备份model原始值
+      this.modelDefault = JSON.parse(JSON.stringify(this.model));
+    },
+    methods: {
+      add () {
+        this.edit(this.modelDefault);
+      },
+      edit (record) {
+        this.model = Object.assign({}, record);
+        this.visible = true;
+      },
+      submitForm () {
+        const that = this;
+        // 触发表单验证
+        this.$refs.form.validate(valid => {
+          if (valid) {
+            that.confirmLoading = true;
+            let httpurl = '';
+            let method = '';
+            if(!this.model.id){
+              httpurl+=this.url.add;
+              method = 'post';
+            }else{
+              httpurl+=this.url.edit;
+               method = 'put';
+            }
+            httpAction(httpurl,this.model,method).then((res)=>{
+              if(res.success){
+                that.$message.success(res.message);
+                that.$emit('ok');
+              }else{
+                that.$message.warning(res.message);
+              }
+            }).finally(() => {
+              that.confirmLoading = false;
+            })
+          }
+         
+        })
+      },
+    }
+  }
+</script>

+ 84 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/ItdmWtkehu/vue/modules/ItdmWtkehuModal.Style#Drawer.vue

@@ -0,0 +1,84 @@
+<template>
+  <a-drawer
+    :title="title"
+    :width="width"
+    placement="right"
+    :closable="false"
+    @close="close"
+    destroyOnClose
+    :visible="visible">
+    <itdm-wtkehu-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit" normal></itdm-wtkehu-form>
+    <div class="drawer-footer">
+      <a-button @click="handleCancel" style="margin-bottom: 0;">关闭</a-button>
+      <a-button v-if="!disableSubmit"  @click="handleOk" type="primary" style="margin-bottom: 0;">提交</a-button>
+    </div>
+  </a-drawer>
+</template>
+
+<script>
+
+  import ItdmWtkehuForm from './ItdmWtkehuForm'
+
+  export default {
+    name: 'ItdmWtkehuModal',
+    components: {
+      ItdmWtkehuForm
+    },
+    data () {
+      return {
+        title:"操作",
+        width:800,
+        visible: false,
+        disableSubmit: false
+      }
+    },
+    methods: {
+      add () {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.add();
+        })
+      },
+      edit (record) {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.edit(record);
+        });
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+      },
+      submitCallback(){
+        this.$emit('ok');
+        this.visible = false;
+      },
+      handleOk () {
+        this.$refs.realForm.submitForm();
+      },
+      handleCancel () {
+        this.close()
+      }
+    }
+  }
+</script>
+
+<style lang="less" scoped>
+/** Button按钮间距 */
+  .ant-btn {
+    margin-left: 30px;
+    margin-bottom: 30px;
+    float: right;
+  }
+  .drawer-footer{
+    position: absolute;
+    bottom: -8px;
+    width: 100%;
+    border-top: 1px solid #e8e8e8;
+    padding: 10px 16px;
+    text-align: right;
+    left: 0;
+    background: #fff;
+    border-radius: 0 0 2px 2px;
+  }
+</style>

+ 60 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/ItdmWtkehu/vue/modules/ItdmWtkehuModal.vue

@@ -0,0 +1,60 @@
+<template>
+  <j-modal
+    :title="title"
+    :width="width"
+    :visible="visible"
+    switchFullscreen
+    @ok="handleOk"
+    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
+    @cancel="handleCancel"
+    cancelText="关闭">
+    <itdm-wtkehu-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></itdm-wtkehu-form>
+  </j-modal>
+</template>
+
+<script>
+
+  import ItdmWtkehuForm from './ItdmWtkehuForm'
+  export default {
+    name: 'ItdmWtkehuModal',
+    components: {
+      ItdmWtkehuForm
+    },
+    data () {
+      return {
+        title:'',
+        width:800,
+        visible: false,
+        disableSubmit: false
+      }
+    },
+    methods: {
+      add () {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.add();
+        })
+      },
+      edit (record) {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.edit(record);
+        })
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+      },
+      handleOk () {
+        this.$refs.realForm.submitForm();
+      },
+      submitCallback(){
+        this.$emit('ok');
+        this.visible = false;
+      },
+      handleCancel () {
+        this.close()
+      }
+    }
+  }
+</script>

+ 177 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/Itdmgongdanshuju/controller/ItdmGongdanShujuController.java

@@ -0,0 +1,177 @@
+package org.jeecg.modules.Itdmgongdanshuju.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+import org.jeecg.modules.Itdmgongdanshuju.entity.ItdmGongdanShuju;
+import org.jeecg.modules.Itdmgongdanshuju.service.IItdmGongdanShujuService;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.jeecg.common.aspect.annotation.AutoLog;
+
+ /**
+ * @Description: 工单数据
+ * @Author: jeecg-boot
+ * @Date:   2023-05-21
+ * @Version: V1.0
+ */
+@Api(tags="工单数据")
+@RestController
+@RequestMapping("/Itdmgongdanshuju/itdmGongdanShuju")
+@Slf4j
+public class ItdmGongdanShujuController extends JeecgController<ItdmGongdanShuju, IItdmGongdanShujuService> {
+	@Autowired
+	private IItdmGongdanShujuService itdmGongdanShujuService;
+	
+	/**
+	 * 分页列表查询
+	 *
+	 * @param itdmGongdanShuju
+	 * @param pageNo
+	 * @param pageSize
+	 * @param req
+	 * @return
+	 */
+	//@AutoLog(value = "工单数据-分页列表查询")
+	@ApiOperation(value="工单数据-分页列表查询", notes="工单数据-分页列表查询")
+	@GetMapping(value = "/list")
+	public Result<IPage<ItdmGongdanShuju>> queryPageList(ItdmGongdanShuju itdmGongdanShuju,
+								   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+								   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+								   HttpServletRequest req) {
+		QueryWrapper<ItdmGongdanShuju> queryWrapper = QueryGenerator.initQueryWrapper(itdmGongdanShuju, req.getParameterMap());
+		Page<ItdmGongdanShuju> page = new Page<ItdmGongdanShuju>(pageNo, pageSize);
+		IPage<ItdmGongdanShuju> pageList = itdmGongdanShujuService.page(page, queryWrapper);
+		return Result.OK(pageList);
+	}
+	
+	/**
+	 *   添加
+	 *
+	 * @param itdmGongdanShuju
+	 * @return
+	 */
+	@AutoLog(value = "工单数据-添加")
+	@ApiOperation(value="工单数据-添加", notes="工单数据-添加")
+	//@RequiresPermissions("org.jeecg.modules:itdm_gongdan_shuju:add")
+	@PostMapping(value = "/add")
+	public Result<String> add(@RequestBody ItdmGongdanShuju itdmGongdanShuju) {
+		itdmGongdanShujuService.save(itdmGongdanShuju);
+		return Result.OK("添加成功!");
+	}
+	
+	/**
+	 *  编辑
+	 *
+	 * @param itdmGongdanShuju
+	 * @return
+	 */
+	@AutoLog(value = "工单数据-编辑")
+	@ApiOperation(value="工单数据-编辑", notes="工单数据-编辑")
+	//@RequiresPermissions("org.jeecg.modules:itdm_gongdan_shuju:edit")
+	@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
+	public Result<String> edit(@RequestBody ItdmGongdanShuju itdmGongdanShuju) {
+		itdmGongdanShujuService.updateById(itdmGongdanShuju);
+		return Result.OK("编辑成功!");
+	}
+	
+	/**
+	 *   通过id删除
+	 *
+	 * @param id
+	 * @return
+	 */
+	@AutoLog(value = "工单数据-通过id删除")
+	@ApiOperation(value="工单数据-通过id删除", notes="工单数据-通过id删除")
+	//@RequiresPermissions("org.jeecg.modules:itdm_gongdan_shuju:delete")
+	@DeleteMapping(value = "/delete")
+	public Result<String> delete(@RequestParam(name="id",required=true) String id) {
+		itdmGongdanShujuService.removeById(id);
+		return Result.OK("删除成功!");
+	}
+	
+	/**
+	 *  批量删除
+	 *
+	 * @param ids
+	 * @return
+	 */
+	@AutoLog(value = "工单数据-批量删除")
+	@ApiOperation(value="工单数据-批量删除", notes="工单数据-批量删除")
+	//@RequiresPermissions("org.jeecg.modules:itdm_gongdan_shuju:deleteBatch")
+	@DeleteMapping(value = "/deleteBatch")
+	public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+		this.itdmGongdanShujuService.removeByIds(Arrays.asList(ids.split(",")));
+		return Result.OK("批量删除成功!");
+	}
+	
+	/**
+	 * 通过id查询
+	 *
+	 * @param id
+	 * @return
+	 */
+	//@AutoLog(value = "工单数据-通过id查询")
+	@ApiOperation(value="工单数据-通过id查询", notes="工单数据-通过id查询")
+	@GetMapping(value = "/queryById")
+	public Result<ItdmGongdanShuju> queryById(@RequestParam(name="id",required=true) String id) {
+		ItdmGongdanShuju itdmGongdanShuju = itdmGongdanShujuService.getById(id);
+		if(itdmGongdanShuju==null) {
+			return Result.error("未找到对应数据");
+		}
+		return Result.OK(itdmGongdanShuju);
+	}
+
+    /**
+    * 导出excel
+    *
+    * @param request
+    * @param itdmGongdanShuju
+    */
+    //@RequiresPermissions("org.jeecg.modules:itdm_gongdan_shuju:exportXls")
+    @RequestMapping(value = "/exportXls")
+    public ModelAndView exportXls(HttpServletRequest request, ItdmGongdanShuju itdmGongdanShuju) {
+        return super.exportXls(request, itdmGongdanShuju, ItdmGongdanShuju.class, "工单数据");
+    }
+
+    /**
+      * 通过excel导入数据
+    *
+    * @param request
+    * @param response
+    * @return
+    */
+    //@RequiresPermissions("itdm_gongdan_shuju:importExcel")
+    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
+        return super.importExcel(request, response, ItdmGongdanShuju.class);
+    }
+
+}

+ 85 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/Itdmgongdanshuju/entity/ItdmGongdanShuju.java

@@ -0,0 +1,85 @@
+package org.jeecg.modules.Itdmgongdanshuju.entity;
+
+import java.io.Serializable;
+import java.io.UnsupportedEncodingException;
+import java.util.Date;
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableLogic;
+import lombok.Data;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.jeecg.common.aspect.annotation.Dict;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @Description: 工单数据
+ * @Author: jeecg-boot
+ * @Date:   2023-05-21
+ * @Version: V1.0
+ */
+@Data
+@TableName("itdm_gongdan_shuju")
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = false)
+@ApiModel(value="itdm_gongdan_shuju对象", description="工单数据")
+public class ItdmGongdanShuju implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+	/**主键*/
+	@TableId(type = IdType.ASSIGN_ID)
+    @ApiModelProperty(value = "主键")
+    private java.lang.String id;
+	/**创建人*/
+    @ApiModelProperty(value = "创建人")
+    private java.lang.String createBy;
+	/**创建日期*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "创建日期")
+    private java.util.Date createTime;
+	/**更新人*/
+    @ApiModelProperty(value = "更新人")
+    private java.lang.String updateBy;
+	/**更新日期*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "更新日期")
+    private java.util.Date updateTime;
+	/**所属部门*/
+    @ApiModelProperty(value = "所属部门")
+    private java.lang.String sysOrgCode;
+	/**工单id*/
+	@Excel(name = "工单id", width = 15)
+    @ApiModelProperty(value = "工单id")
+    private java.lang.String woId;
+	/**试验类型*/
+	@Excel(name = "试验类型", width = 15, dicCode = "shiyan_type")
+	@Dict(dicCode = "shiyan_type")
+    @ApiModelProperty(value = "试验类型")
+    private java.lang.String shiyanType;
+	/**试验时间*/
+	@Excel(name = "试验时间", width = 15, format = "yyyy-MM-dd")
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
+    @DateTimeFormat(pattern="yyyy-MM-dd")
+    @ApiModelProperty(value = "试验时间")
+    private java.util.Date shiyanTime;
+	/**试验数据*/
+	@Excel(name = "试验数据", width = 15)
+    @ApiModelProperty(value = "试验数据")
+    private java.lang.String shiyanData;
+	/**试验图片*/
+	@Excel(name = "试验图片", width = 15)
+    @ApiModelProperty(value = "试验图片")
+    private java.lang.String extraPic;
+	/**备注*/
+	@Excel(name = "备注", width = 15)
+    @ApiModelProperty(value = "备注")
+    private java.lang.String remark;
+}

+ 17 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/Itdmgongdanshuju/mapper/ItdmGongdanShujuMapper.java

@@ -0,0 +1,17 @@
+package org.jeecg.modules.Itdmgongdanshuju.mapper;
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+import org.jeecg.modules.Itdmgongdanshuju.entity.ItdmGongdanShuju;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: 工单数据
+ * @Author: jeecg-boot
+ * @Date:   2023-05-21
+ * @Version: V1.0
+ */
+public interface ItdmGongdanShujuMapper extends BaseMapper<ItdmGongdanShuju> {
+
+}

+ 5 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/Itdmgongdanshuju/mapper/xml/ItdmGongdanShujuMapper.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="org.jeecg.modules.Itdmgongdanshuju.mapper.ItdmGongdanShujuMapper">
+
+</mapper>

+ 14 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/Itdmgongdanshuju/service/IItdmGongdanShujuService.java

@@ -0,0 +1,14 @@
+package org.jeecg.modules.Itdmgongdanshuju.service;
+
+import org.jeecg.modules.Itdmgongdanshuju.entity.ItdmGongdanShuju;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * @Description: 工单数据
+ * @Author: jeecg-boot
+ * @Date:   2023-05-21
+ * @Version: V1.0
+ */
+public interface IItdmGongdanShujuService extends IService<ItdmGongdanShuju> {
+
+}

+ 19 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/Itdmgongdanshuju/service/impl/ItdmGongdanShujuServiceImpl.java

@@ -0,0 +1,19 @@
+package org.jeecg.modules.Itdmgongdanshuju.service.impl;
+
+import org.jeecg.modules.Itdmgongdanshuju.entity.ItdmGongdanShuju;
+import org.jeecg.modules.Itdmgongdanshuju.mapper.ItdmGongdanShujuMapper;
+import org.jeecg.modules.Itdmgongdanshuju.service.IItdmGongdanShujuService;
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+/**
+ * @Description: 工单数据
+ * @Author: jeecg-boot
+ * @Date:   2023-05-21
+ * @Version: V1.0
+ */
+@Service
+public class ItdmGongdanShujuServiceImpl extends ServiceImpl<ItdmGongdanShujuMapper, ItdmGongdanShuju> implements IItdmGongdanShujuService {
+
+}

+ 177 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmWeituoChaXun/controller/ItdmWeituoYangpinController.java

@@ -0,0 +1,177 @@
+package org.jeecg.modules.itdmWeituoChaXun.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.util.oConvertUtils;
+import org.jeecg.modules.itdmWeituoChaXun.entity.ItdmWeituoYangpin;
+import org.jeecg.modules.itdmWeituoChaXun.service.IItdmWeituoYangpinService;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.jeecg.common.aspect.annotation.AutoLog;
+
+ /**
+ * @Description: 委托样品
+ * @Author: jeecg-boot
+ * @Date:   2023-05-22
+ * @Version: V1.0
+ */
+@Api(tags="委托样品")
+@RestController
+@RequestMapping("/itdmWeituoChaXun/itdmWeituoYangpin")
+@Slf4j
+public class ItdmWeituoYangpinController extends JeecgController<ItdmWeituoYangpin, IItdmWeituoYangpinService> {
+	@Autowired
+	private IItdmWeituoYangpinService itdmWeituoYangpinService;
+	
+	/**
+	 * 分页列表查询
+	 *
+	 * @param itdmWeituoYangpin
+	 * @param pageNo
+	 * @param pageSize
+	 * @param req
+	 * @return
+	 */
+	//@AutoLog(value = "委托样品-分页列表查询")
+	@ApiOperation(value="委托样品-分页列表查询", notes="委托样品-分页列表查询")
+	@GetMapping(value = "/list")
+	public Result<IPage<ItdmWeituoYangpin>> queryPageList(ItdmWeituoYangpin itdmWeituoYangpin,
+								   @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+								   @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+								   HttpServletRequest req) {
+		QueryWrapper<ItdmWeituoYangpin> queryWrapper = QueryGenerator.initQueryWrapper(itdmWeituoYangpin, req.getParameterMap());
+		Page<ItdmWeituoYangpin> page = new Page<ItdmWeituoYangpin>(pageNo, pageSize);
+		IPage<ItdmWeituoYangpin> pageList = itdmWeituoYangpinService.page(page, queryWrapper);
+		return Result.OK(pageList);
+	}
+	
+	/**
+	 *   添加
+	 *
+	 * @param itdmWeituoYangpin
+	 * @return
+	 */
+	@AutoLog(value = "委托样品-添加")
+	@ApiOperation(value="委托样品-添加", notes="委托样品-添加")
+	//@RequiresPermissions("org.jeecg.modules:itdm_weituo_yangpin:add")
+	@PostMapping(value = "/add")
+	public Result<String> add(@RequestBody ItdmWeituoYangpin itdmWeituoYangpin) {
+		itdmWeituoYangpinService.save(itdmWeituoYangpin);
+		return Result.OK("添加成功!");
+	}
+	
+	/**
+	 *  编辑
+	 *
+	 * @param itdmWeituoYangpin
+	 * @return
+	 */
+	@AutoLog(value = "委托样品-编辑")
+	@ApiOperation(value="委托样品-编辑", notes="委托样品-编辑")
+	//@RequiresPermissions("org.jeecg.modules:itdm_weituo_yangpin:edit")
+	@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
+	public Result<String> edit(@RequestBody ItdmWeituoYangpin itdmWeituoYangpin) {
+		itdmWeituoYangpinService.updateById(itdmWeituoYangpin);
+		return Result.OK("编辑成功!");
+	}
+	
+	/**
+	 *   通过id删除
+	 *
+	 * @param id
+	 * @return
+	 */
+	@AutoLog(value = "委托样品-通过id删除")
+	@ApiOperation(value="委托样品-通过id删除", notes="委托样品-通过id删除")
+	//@RequiresPermissions("org.jeecg.modules:itdm_weituo_yangpin:delete")
+	@DeleteMapping(value = "/delete")
+	public Result<String> delete(@RequestParam(name="id",required=true) String id) {
+		itdmWeituoYangpinService.removeById(id);
+		return Result.OK("删除成功!");
+	}
+	
+	/**
+	 *  批量删除
+	 *
+	 * @param ids
+	 * @return
+	 */
+	@AutoLog(value = "委托样品-批量删除")
+	@ApiOperation(value="委托样品-批量删除", notes="委托样品-批量删除")
+	//@RequiresPermissions("org.jeecg.modules:itdm_weituo_yangpin:deleteBatch")
+	@DeleteMapping(value = "/deleteBatch")
+	public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+		this.itdmWeituoYangpinService.removeByIds(Arrays.asList(ids.split(",")));
+		return Result.OK("批量删除成功!");
+	}
+	
+	/**
+	 * 通过id查询
+	 *
+	 * @param id
+	 * @return
+	 */
+	//@AutoLog(value = "委托样品-通过id查询")
+	@ApiOperation(value="委托样品-通过id查询", notes="委托样品-通过id查询")
+	@GetMapping(value = "/queryById")
+	public Result<ItdmWeituoYangpin> queryById(@RequestParam(name="id",required=true) String id) {
+		ItdmWeituoYangpin itdmWeituoYangpin = itdmWeituoYangpinService.getById(id);
+		if(itdmWeituoYangpin==null) {
+			return Result.error("未找到对应数据");
+		}
+		return Result.OK(itdmWeituoYangpin);
+	}
+
+    /**
+    * 导出excel
+    *
+    * @param request
+    * @param itdmWeituoYangpin
+    */
+    //@RequiresPermissions("org.jeecg.modules:itdm_weituo_yangpin:exportXls")
+    @RequestMapping(value = "/exportXls")
+    public ModelAndView exportXls(HttpServletRequest request, ItdmWeituoYangpin itdmWeituoYangpin) {
+        return super.exportXls(request, itdmWeituoYangpin, ItdmWeituoYangpin.class, "委托样品");
+    }
+
+    /**
+      * 通过excel导入数据
+    *
+    * @param request
+    * @param response
+    * @return
+    */
+    //@RequiresPermissions("itdm_weituo_yangpin:importExcel")
+    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
+        return super.importExcel(request, response, ItdmWeituoYangpin.class);
+    }
+
+}

+ 82 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmWeituoChaXun/entity/ItdmWeituoYangpin.java

@@ -0,0 +1,82 @@
+package org.jeecg.modules.itdmWeituoChaXun.entity;
+
+import java.io.Serializable;
+import java.io.UnsupportedEncodingException;
+import java.util.Date;
+import java.math.BigDecimal;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.TableLogic;
+import lombok.Data;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.jeecg.common.aspect.annotation.Dict;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @Description: 委托样品
+ * @Author: jeecg-boot
+ * @Date:   2023-05-22
+ * @Version: V1.0
+ */
+@Data
+@TableName("itdm_weituo_yangpin")
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = false)
+@ApiModel(value="itdm_weituo_yangpin对象", description="委托样品")
+public class ItdmWeituoYangpin implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+	/**主键*/
+	@TableId(type = IdType.ASSIGN_ID)
+    @ApiModelProperty(value = "主键")
+    private java.lang.String id;
+	/**创建人*/
+    @ApiModelProperty(value = "创建人")
+    private java.lang.String createBy;
+	/**创建日期*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "创建日期")
+    private java.util.Date createTime;
+	/**更新人*/
+    @ApiModelProperty(value = "更新人")
+    private java.lang.String updateBy;
+	/**更新日期*/
+	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "更新日期")
+    private java.util.Date updateTime;
+	/**所属部门*/
+    @ApiModelProperty(value = "所属部门")
+    private java.lang.String sysOrgCode;
+	/**委托单id*/
+	@Excel(name = "委托单id", width = 15)
+    @ApiModelProperty(value = "委托单id")
+    private java.lang.String weituoId;
+	/**样品名称*/
+	@Excel(name = "样品名称", width = 15)
+    @ApiModelProperty(value = "样品名称")
+    private java.lang.String sampleName;
+	/**样品规格/型号*/
+	@Excel(name = "样品规格/型号", width = 15)
+    @ApiModelProperty(value = "样品规格/型号")
+    private java.lang.String sampleModelSpecification;
+	/**样品数量*/
+	@Excel(name = "样品数量", width = 15)
+    @ApiModelProperty(value = "样品数量")
+    private java.lang.String sampleQuantities;
+	/**生产厂家*/
+	@Excel(name = "生产厂家", width = 15)
+    @ApiModelProperty(value = "生产厂家")
+    private java.lang.String sampleManufacturer;
+	/**样品编号*/
+	@Excel(name = "样品编号", width = 15)
+    @ApiModelProperty(value = "样品编号")
+    private java.lang.String sampleCode;
+}

+ 17 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmWeituoChaXun/mapper/ItdmWeituoChaxunMapper.java

@@ -0,0 +1,17 @@
+package org.jeecg.modules.itdmWeituoChaXun.mapper;
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+import org.jeecg.modules.itdmWeituoChaXun.entity.ItdmWeituoYangpin;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * @Description: 委托样品
+ * @Author: jeecg-boot
+ * @Date:   2023-05-22
+ * @Version: V1.0
+ */
+public interface ItdmWeituoChaxunMapper extends BaseMapper<ItdmWeituoYangpin> {
+
+}

+ 5 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmWeituoChaXun/mapper/xml/ItdmWeituoYangpinMapper.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="org.jeecg.modules.itdmWeituoChaXun.mapper.ItdmWeituoYangpinMapper">
+
+</mapper>

+ 14 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmWeituoChaXun/service/IItdmWeituoYangpinService.java

@@ -0,0 +1,14 @@
+package org.jeecg.modules.itdmWeituoChaXun.service;
+
+import org.jeecg.modules.itdmWeituoChaXun.entity.ItdmWeituoYangpin;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * @Description: 委托样品
+ * @Author: jeecg-boot
+ * @Date:   2023-05-22
+ * @Version: V1.0
+ */
+public interface IItdmWeituoYangpinService extends IService<ItdmWeituoYangpin> {
+
+}

+ 20 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmWeituoChaXun/service/impl/ItdmWeituoYangpinServiceImpl.java

@@ -0,0 +1,20 @@
+package org.jeecg.modules.itdmWeituoChaXun.service.impl;
+
+import org.jeecg.modules.itdmWeituoChaXun.entity.ItdmWeituoYangpin;
+import org.jeecg.modules.itdmWeituoChaXun.mapper.ItdmWeituoChaxunMapper;
+import org.jeecg.modules.itdmWeituoChaXun.service.IItdmWeituoYangpinService;
+import org.jeecg.modules.weituo.mapper.ItdmWeituoYangpinMapper;
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+/**
+ * @Description: 委托样品
+ * @Author: jeecg-boot
+ * @Date:   2023-05-22
+ * @Version: V1.0
+ */
+@Service
+public class ItdmWeituoYangpinServiceImpl extends ServiceImpl<ItdmWeituoChaxunMapper, ItdmWeituoYangpin> implements IItdmWeituoYangpinService {
+
+}

+ 201 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmWeituoChaXun/vue/ItdmWeituoYangpinList.vue

@@ -0,0 +1,201 @@
+<template>
+  <a-card :bordered="false">
+    <!-- 查询区域 -->
+    <div class="table-page-search-wrapper">
+      <a-form layout="inline" @keyup.enter.native="searchQuery">
+        <a-row :gutter="24">
+        </a-row>
+      </a-form>
+    </div>
+    <!-- 查询区域-END -->
+
+    <!-- 操作按钮区域 -->
+    <div class="table-operator">
+      <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
+      <a-button type="primary" icon="download" @click="handleExportXls('委托样品')">导出</a-button>
+      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
+        <a-button type="primary" icon="import">导入</a-button>
+      </a-upload>
+      <!-- 高级查询区域 -->
+      <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
+      <a-dropdown v-if="selectedRowKeys.length > 0">
+        <a-menu slot="overlay">
+          <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
+        </a-menu>
+        <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
+      </a-dropdown>
+    </div>
+
+    <!-- table区域-begin -->
+    <div>
+      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
+        <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
+        <a style="margin-left: 24px" @click="onClearSelected">清空</a>
+      </div>
+
+      <a-table
+        ref="table"
+        size="middle"
+        :scroll="{x:true}"
+        bordered
+        rowKey="id"
+        :columns="columns"
+        :dataSource="dataSource"
+        :pagination="ipagination"
+        :loading="loading"
+        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
+        class="j-table-force-nowrap"
+        @change="handleTableChange">
+
+        <template slot="htmlSlot" slot-scope="text">
+          <div v-html="text"></div>
+        </template>
+        <template slot="imgSlot" slot-scope="text,record">
+          <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
+          <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
+        </template>
+        <template slot="fileSlot" slot-scope="text">
+          <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
+          <a-button
+            v-else
+            :ghost="true"
+            type="primary"
+            icon="download"
+            size="small"
+            @click="downloadFile(text)">
+            下载
+          </a-button>
+        </template>
+
+        <span slot="action" slot-scope="text, record">
+          <a @click="handleEdit(record)">编辑</a>
+
+          <a-divider type="vertical" />
+          <a-dropdown>
+            <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
+            <a-menu slot="overlay">
+              <a-menu-item>
+                <a @click="handleDetail(record)">详情</a>
+              </a-menu-item>
+              <a-menu-item>
+                <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
+                  <a>删除</a>
+                </a-popconfirm>
+              </a-menu-item>
+            </a-menu>
+          </a-dropdown>
+        </span>
+
+      </a-table>
+    </div>
+
+    <itdm-weituo-yangpin-modal ref="modalForm" @ok="modalFormOk"></itdm-weituo-yangpin-modal>
+  </a-card>
+</template>
+
+<script>
+
+  import '@/assets/less/TableExpand.less'
+  import { mixinDevice } from '@/utils/mixin'
+  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+  import ItdmWeituoYangpinModal from './modules/ItdmWeituoYangpinModal'
+
+  export default {
+    name: 'ItdmWeituoYangpinList',
+    mixins:[JeecgListMixin, mixinDevice],
+    components: {
+      ItdmWeituoYangpinModal
+    },
+    data () {
+      return {
+        description: '委托样品管理页面',
+        // 表头
+        columns: [
+          {
+            title: '#',
+            dataIndex: '',
+            key:'rowIndex',
+            width:60,
+            align:"center",
+            customRender:function (t,r,index) {
+              return parseInt(index)+1;
+            }
+          },
+          {
+            title:'委托单id',
+            align:"center",
+            dataIndex: 'weituoId'
+          },
+          {
+            title:'样品名称',
+            align:"center",
+            dataIndex: 'sampleName'
+          },
+          {
+            title:'样品规格/型号',
+            align:"center",
+            dataIndex: 'sampleModelSpecification'
+          },
+          {
+            title:'样品数量',
+            align:"center",
+            dataIndex: 'sampleQuantities'
+          },
+          {
+            title:'生产厂家',
+            align:"center",
+            dataIndex: 'sampleManufacturer'
+          },
+          {
+            title:'样品编号',
+            align:"center",
+            dataIndex: 'sampleCode'
+          },
+          {
+            title: '操作',
+            dataIndex: 'action',
+            align:"center",
+            fixed:"right",
+            width:147,
+            scopedSlots: { customRender: 'action' }
+          }
+        ],
+        url: {
+          list: "/itdmWeituoChaXun/itdmWeituoYangpin/list",
+          delete: "/itdmWeituoChaXun/itdmWeituoYangpin/delete",
+          deleteBatch: "/itdmWeituoChaXun/itdmWeituoYangpin/deleteBatch",
+          exportXlsUrl: "/itdmWeituoChaXun/itdmWeituoYangpin/exportXls",
+          importExcelUrl: "itdmWeituoChaXun/itdmWeituoYangpin/importExcel",
+          
+        },
+        dictOptions:{},
+        superFieldList:[],
+      }
+    },
+    created() {
+    this.getSuperFieldList();
+    },
+    computed: {
+      importExcelUrl: function(){
+        return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+      },
+    },
+    methods: {
+      initDictConfig(){
+      },
+      getSuperFieldList(){
+        let fieldList=[];
+        fieldList.push({type:'string',value:'weituoId',text:'委托单id',dictCode:''})
+        fieldList.push({type:'string',value:'sampleName',text:'样品名称',dictCode:''})
+        fieldList.push({type:'string',value:'sampleModelSpecification',text:'样品规格/型号',dictCode:''})
+        fieldList.push({type:'string',value:'sampleQuantities',text:'样品数量',dictCode:''})
+        fieldList.push({type:'string',value:'sampleManufacturer',text:'生产厂家',dictCode:''})
+        fieldList.push({type:'string',value:'sampleCode',text:'样品编号',dictCode:''})
+        this.superFieldList = fieldList
+      }
+    }
+  }
+</script>
+<style scoped>
+  @import '~@assets/less/common.less';
+</style>

+ 26 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmWeituoChaXun/vue/ItdmWeituoYangpin_menu_insert.sql

@@ -0,0 +1,26 @@
+-- 注意:该页面对应的前台目录为views/itdmWeituoChaXun文件夹下
+-- 如果你想更改到其他目录,请修改sql中component字段对应的值
+
+
+INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external)
+VALUES ('2023052210297880490', NULL, '委托样品', '/itdmWeituoChaXun/itdmWeituoYangpinList', 'module-iTDM/itdmWeituoChaXun/ItdmWeituoYangpinList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 1, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-05-22 10:29:49', NULL, NULL, 0);
+
+-- 权限控制sql
+-- 新增
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023052210297880491', '2023052210297880490', '新增', NULL, NULL, 0, NULL, NULL, 2, 'org.jeecg.modules:itdm_weituo_yangpin:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-22 10:29:49', NULL, NULL, 0, 0, '1', 0);
+-- 编辑
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023052210297880492', '2023052210297880490', '编辑', NULL, NULL, 0, NULL, NULL, 2, 'org.jeecg.modules:itdm_weituo_yangpin:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-22 10:29:49', NULL, NULL, 0, 0, '1', 0);
+-- 删除
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023052210297890493', '2023052210297880490', '删除', NULL, NULL, 0, NULL, NULL, 2, 'org.jeecg.modules:itdm_weituo_yangpin:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-22 10:29:49', NULL, NULL, 0, 0, '1', 0);
+-- 批量删除
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023052210297890494', '2023052210297880490', '批量删除', NULL, NULL, 0, NULL, NULL, 2, 'org.jeecg.modules:itdm_weituo_yangpin:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-22 10:29:49', NULL, NULL, 0, 0, '1', 0);
+-- 导出excel
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023052210297890495', '2023052210297880490', '导出excel', NULL, NULL, 0, NULL, NULL, 2, 'org.jeecg.modules:itdm_weituo_yangpin:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-22 10:29:49', NULL, NULL, 0, 0, '1', 0);
+-- 导入excel
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023052210297890496', '2023052210297880490', '导入excel', NULL, NULL, 0, NULL, NULL, 2, 'org.jeecg.modules:itdm_weituo_yangpin:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-05-22 10:29:49', NULL, NULL, 0, 0, '1', 0);

+ 141 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmWeituoChaXun/vue/modules/ItdmWeituoYangpinForm.vue

@@ -0,0 +1,141 @@
+<template>
+  <a-spin :spinning="confirmLoading">
+    <j-form-container :disabled="formDisabled">
+      <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail">
+        <a-row>
+          <a-col :span="24">
+            <a-form-model-item label="委托单id" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="weituoId">
+              <a-input v-model="model.weituoId" placeholder="请输入委托单id"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="样品名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="sampleName">
+              <a-input v-model="model.sampleName" placeholder="请输入样品名称"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="样品规格/型号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="sampleModelSpecification">
+              <a-input v-model="model.sampleModelSpecification" placeholder="请输入样品规格/型号"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="样品数量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="sampleQuantities">
+              <a-input v-model="model.sampleQuantities" placeholder="请输入样品数量"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="生产厂家" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="sampleManufacturer">
+              <a-input v-model="model.sampleManufacturer" placeholder="请输入生产厂家"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+          <a-col :span="24">
+            <a-form-model-item label="样品编号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="sampleCode">
+              <a-input v-model="model.sampleCode" placeholder="请输入样品编号"  ></a-input>
+            </a-form-model-item>
+          </a-col>
+        </a-row>
+      </a-form-model>
+    </j-form-container>
+  </a-spin>
+</template>
+
+<script>
+
+  import { httpAction, getAction } from '@/api/manage'
+  import { validateDuplicateValue } from '@/utils/util'
+
+  export default {
+    name: 'ItdmWeituoYangpinForm',
+    components: {
+    },
+    props: {
+      //表单禁用
+      disabled: {
+        type: Boolean,
+        default: false,
+        required: false
+      }
+    },
+    data () {
+      return {
+        model:{
+         },
+        labelCol: {
+          xs: { span: 24 },
+          sm: { span: 5 },
+        },
+        wrapperCol: {
+          xs: { span: 24 },
+          sm: { span: 16 },
+        },
+        confirmLoading: false,
+        validatorRules: {
+           sampleName: [
+              { required: true, message: '请输入样品名称!'},
+           ],
+           sampleModelSpecification: [
+              { required: true, message: '请输入样品规格/型号!'},
+           ],
+           sampleQuantities: [
+              { required: true, message: '请输入样品数量!'},
+           ],
+           sampleManufacturer: [
+              { required: true, message: '请输入生产厂家!'},
+           ],
+        },
+        url: {
+          add: "/itdmWeituoChaXun/itdmWeituoYangpin/add",
+          edit: "/itdmWeituoChaXun/itdmWeituoYangpin/edit",
+          queryById: "/itdmWeituoChaXun/itdmWeituoYangpin/queryById"
+        }
+      }
+    },
+    computed: {
+      formDisabled(){
+        return this.disabled
+      },
+    },
+    created () {
+       //备份model原始值
+      this.modelDefault = JSON.parse(JSON.stringify(this.model));
+    },
+    methods: {
+      add () {
+        this.edit(this.modelDefault);
+      },
+      edit (record) {
+        this.model = Object.assign({}, record);
+        this.visible = true;
+      },
+      submitForm () {
+        const that = this;
+        // 触发表单验证
+        this.$refs.form.validate(valid => {
+          if (valid) {
+            that.confirmLoading = true;
+            let httpurl = '';
+            let method = '';
+            if(!this.model.id){
+              httpurl+=this.url.add;
+              method = 'post';
+            }else{
+              httpurl+=this.url.edit;
+               method = 'put';
+            }
+            httpAction(httpurl,this.model,method).then((res)=>{
+              if(res.success){
+                that.$message.success(res.message);
+                that.$emit('ok');
+              }else{
+                that.$message.warning(res.message);
+              }
+            }).finally(() => {
+              that.confirmLoading = false;
+            })
+          }
+         
+        })
+      },
+    }
+  }
+</script>

+ 84 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmWeituoChaXun/vue/modules/ItdmWeituoYangpinModal.Style#Drawer.vue

@@ -0,0 +1,84 @@
+<template>
+  <a-drawer
+    :title="title"
+    :width="width"
+    placement="right"
+    :closable="false"
+    @close="close"
+    destroyOnClose
+    :visible="visible">
+    <itdm-weituo-yangpin-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit" normal></itdm-weituo-yangpin-form>
+    <div class="drawer-footer">
+      <a-button @click="handleCancel" style="margin-bottom: 0;">关闭</a-button>
+      <a-button v-if="!disableSubmit"  @click="handleOk" type="primary" style="margin-bottom: 0;">提交</a-button>
+    </div>
+  </a-drawer>
+</template>
+
+<script>
+
+  import ItdmWeituoYangpinForm from './ItdmWeituoYangpinForm'
+
+  export default {
+    name: 'ItdmWeituoYangpinModal',
+    components: {
+      ItdmWeituoYangpinForm
+    },
+    data () {
+      return {
+        title:"操作",
+        width:800,
+        visible: false,
+        disableSubmit: false
+      }
+    },
+    methods: {
+      add () {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.add();
+        })
+      },
+      edit (record) {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.edit(record);
+        });
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+      },
+      submitCallback(){
+        this.$emit('ok');
+        this.visible = false;
+      },
+      handleOk () {
+        this.$refs.realForm.submitForm();
+      },
+      handleCancel () {
+        this.close()
+      }
+    }
+  }
+</script>
+
+<style lang="less" scoped>
+/** Button按钮间距 */
+  .ant-btn {
+    margin-left: 30px;
+    margin-bottom: 30px;
+    float: right;
+  }
+  .drawer-footer{
+    position: absolute;
+    bottom: -8px;
+    width: 100%;
+    border-top: 1px solid #e8e8e8;
+    padding: 10px 16px;
+    text-align: right;
+    left: 0;
+    background: #fff;
+    border-radius: 0 0 2px 2px;
+  }
+</style>

+ 60 - 0
itdmServer/module-iTDM/src/main/java/org/jeecg/modules/itdmWeituoChaXun/vue/modules/ItdmWeituoYangpinModal.vue

@@ -0,0 +1,60 @@
+<template>
+  <j-modal
+    :title="title"
+    :width="width"
+    :visible="visible"
+    switchFullscreen
+    @ok="handleOk"
+    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
+    @cancel="handleCancel"
+    cancelText="关闭">
+    <itdm-weituo-yangpin-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></itdm-weituo-yangpin-form>
+  </j-modal>
+</template>
+
+<script>
+
+  import ItdmWeituoYangpinForm from './ItdmWeituoYangpinForm'
+  export default {
+    name: 'ItdmWeituoYangpinModal',
+    components: {
+      ItdmWeituoYangpinForm
+    },
+    data () {
+      return {
+        title:'',
+        width:800,
+        visible: false,
+        disableSubmit: false
+      }
+    },
+    methods: {
+      add () {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.add();
+        })
+      },
+      edit (record) {
+        this.visible=true
+        this.$nextTick(()=>{
+          this.$refs.realForm.edit(record);
+        })
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+      },
+      handleOk () {
+        this.$refs.realForm.submitForm();
+      },
+      submitCallback(){
+        this.$emit('ok');
+        this.visible = false;
+      },
+      handleCancel () {
+        this.close()
+      }
+    }
+  }
+</script>