Browse Source

移植 终端销售查询 功能

zhangshuling 1 year ago
parent
commit
136a9a26cb

+ 105 - 0
xzl-admin/src/main/java/com/xzl/web/controller/system/DOrderController.java

@@ -0,0 +1,105 @@
+package com.xzl.web.controller.system;
+
+import com.xzl.common.annotation.Log;
+import com.xzl.common.core.controller.BaseController;
+import com.xzl.common.core.domain.AjaxResult;
+import com.xzl.common.core.page.TableDataInfo;
+import com.xzl.common.enums.BusinessType;
+import com.xzl.common.utils.poi.ExcelUtil;
+import com.xzl.system.domain.DOrder;
+import com.xzl.system.service.IDOrderService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.servlet.http.HttpServletResponse;
+import java.util.List;
+
+/**
+ * 【请填写功能名称】Controller
+ * 
+ * @author xzl
+ * @date 2023-12-25
+ */
+@RestController
+@RequestMapping("/system/terimal-order")
+public class DOrderController extends BaseController
+{
+    @Autowired
+    private IDOrderService dOrderService;
+
+    /**
+     * 查询【请填写功能名称】列表
+     */
+//    @PreAuthorize("@ss.hasPermi('system:order:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(DOrder dOrder)
+    {
+        startPage();
+        List<DOrder> list = dOrderService.selectDOrderList(dOrder);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出【请填写功能名称】列表
+     */
+//    @PreAuthorize("@ss.hasPermi('system:order:export')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, DOrder dOrder)
+    {
+        List<DOrder> list = dOrderService.selectDOrderList(dOrder);
+        ExcelUtil<DOrder> util = new ExcelUtil<DOrder>(DOrder.class);
+        util.exportExcel(response, list, "【请填写功能名称】数据");
+    }
+
+    /**
+     * 获取【请填写功能名称】详细信息
+     */
+//    @PreAuthorize("@ss.hasPermi('system:order:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") String id)
+    {
+        return success(dOrderService.selectDOrderById(id));
+    }
+
+    /**
+     * 新增【请填写功能名称】
+     */
+//    @PreAuthorize("@ss.hasPermi('system:order:add')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody DOrder dOrder)
+    {
+        return toAjax(dOrderService.insertDOrder(dOrder));
+    }
+
+    /**
+     * 修改【请填写功能名称】
+     */
+//    @PreAuthorize("@ss.hasPermi('system:order:edit')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody DOrder dOrder)
+    {
+        return toAjax(dOrderService.updateDOrder(dOrder));
+    }
+
+    /**
+     * 删除【请填写功能名称】
+     */
+//    @PreAuthorize("@ss.hasPermi('system:order:remove')")
+    @Log(title = "【请填写功能名称】", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable String[] ids)
+    {
+        return toAjax(dOrderService.deleteDOrderByIds(ids));
+    }
+}

+ 233 - 0
xzl-system/src/main/java/com/xzl/system/domain/DOrder.java

@@ -0,0 +1,233 @@
+package com.xzl.system.domain;
+
+import java.math.BigDecimal;
+import java.util.Date;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.xzl.common.annotation.Excel;
+import com.xzl.common.core.domain.BaseEntity;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import org.springframework.data.annotation.Transient;
+
+/**
+ * 【请填写功能名称】对象 d_order
+ *
+ * @author xzl
+ * @date 2023-12-25
+ */
+public class DOrder extends BaseEntity {
+  private static final long serialVersionUID = 1L;
+
+  /**
+   * $column.columnComment
+   */
+  private String id;
+
+  /**
+   * order_id
+   */
+  @Excel(name = "order_id")
+  private String oId;
+
+  /**
+   * order_id
+   */
+  @Excel(name = "order_id")
+  private String snId;
+
+  /**
+   * 订单时间
+   */
+  private String orderTime;
+
+  /**
+   * 订单ID
+   */
+  @Excel(name = "订单ID")
+  private String orderId;
+
+  /**
+   * 商品名称
+   */
+  @Excel(name = "商品名称")
+  private String goodsName;
+
+  /**
+   * 商品数量
+   */
+  @Excel(name = "商品数量")
+  private Integer goodsQuantity;
+
+  /**
+   * 商品单价
+   */
+  @Excel(name = "商品单价")
+  private BigDecimal goodsAmount;
+
+  /**
+   * $column.columnComment
+   */
+  @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+  private Date createdDate;
+
+  /**
+   * $column.columnComment
+   */
+  @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+  private String lastModifiedBy;
+
+  /**
+   * $column.columnComment
+   */
+  @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+  private Date lastModifiedDate;
+
+  public void setId(String id) {
+    this.id = id;
+  }
+
+  public String getId() {
+    return id;
+  }
+
+  public void setoId(String oId) {
+    this.oId = oId;
+  }
+
+  public String getoId() {
+    return oId;
+  }
+
+  public void setSnId(String snId) {
+    this.snId = snId;
+  }
+
+  public String getSnId() {
+    return snId;
+  }
+
+  public void setOrderTime(String orderTime) {
+    this.orderTime = orderTime;
+  }
+
+  public String getOrderTime() {
+    return orderTime;
+  }
+
+  public void setOrderId(String orderId) {
+    this.orderId = orderId;
+  }
+
+  public String getOrderId() {
+    return orderId;
+  }
+
+  public void setGoodsName(String goodsName) {
+    this.goodsName = goodsName;
+  }
+
+  public String getGoodsName() {
+    return goodsName;
+  }
+
+  public void setGoodsQuantity(Integer goodsQuantity) {
+    this.goodsQuantity = goodsQuantity;
+  }
+
+  public Integer getGoodsQuantity() {
+    return goodsQuantity;
+  }
+
+  public void setGoodsAmount(BigDecimal goodsAmount) {
+    this.goodsAmount = goodsAmount;
+  }
+
+  public BigDecimal getGoodsAmount() {
+    return goodsAmount;
+  }
+
+  public void setCreatedDate(Date createdDate) {
+    this.createdDate = createdDate;
+  }
+
+  public Date getCreatedDate() {
+    return createdDate;
+  }
+
+  public void setLastModifiedBy(String lastModifiedBy) {
+    this.lastModifiedBy = lastModifiedBy;
+  }
+
+  public String getLastModifiedBy() {
+    return lastModifiedBy;
+  }
+
+  public void setLastModifiedDate(Date lastModifiedDate) {
+    this.lastModifiedDate = lastModifiedDate;
+  }
+
+  public Date getLastModifiedDate() {
+    return lastModifiedDate;
+  }
+
+  @Override
+  public String toString() {
+    return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
+      .append("id", getId())
+      .append("oId", getoId())
+      .append("snId", getSnId())
+      .append("orderTime", getOrderTime())
+      .append("orderId", getOrderId())
+      .append("goodsName", getGoodsName())
+      .append("goodsQuantity", getGoodsQuantity())
+      .append("goodsAmount", getGoodsAmount())
+      .append("remark", getRemark())
+      .append("createBy", getCreateBy())
+      .append("createdDate", getCreatedDate())
+      .append("lastModifiedBy", getLastModifiedBy())
+      .append("lastModifiedDate", getLastModifiedDate())
+      .toString();
+  }
+
+
+
+
+  private String clientCode;
+  private String shortName;
+  private String startDatetime;
+  private String endDatetime;
+
+  @Transient
+  public String getClientCode() {
+    return clientCode;
+  }
+
+  public void setClientCode(String clientCode) {
+    this.clientCode = clientCode;
+  }
+  @Transient
+  public String getShortName() {
+    return shortName;
+  }
+
+  public void setShortName(String shortName) {
+    this.shortName = shortName;
+  }
+  @Transient
+  public String getStartDatetime() {
+    return startDatetime;
+  }
+
+  public void setStartDatetime(String startDatetime) {
+    this.startDatetime = startDatetime;
+  }
+  @Transient
+  public String getEndDatetime() {
+    return endDatetime;
+  }
+
+  public void setEndDatetime(String endDatetime) {
+    this.endDatetime = endDatetime;
+  }
+}

+ 61 - 0
xzl-system/src/main/java/com/xzl/system/mapper/DOrderMapper.java

@@ -0,0 +1,61 @@
+package com.xzl.system.mapper;
+
+import java.util.List;
+import com.xzl.system.domain.DOrder;
+
+/**
+ * 【请填写功能名称】Mapper接口
+ * 
+ * @author xzl
+ * @date 2023-12-25
+ */
+public interface DOrderMapper 
+{
+    /**
+     * 查询【请填写功能名称】
+     * 
+     * @param id 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    public DOrder selectDOrderById(String id);
+
+    /**
+     * 查询【请填写功能名称】列表
+     * 
+     * @param dOrder 【请填写功能名称】
+     * @return 【请填写功能名称】集合
+     */
+    public List<DOrder> selectDOrderList(DOrder dOrder);
+
+    /**
+     * 新增【请填写功能名称】
+     * 
+     * @param dOrder 【请填写功能名称】
+     * @return 结果
+     */
+    public int insertDOrder(DOrder dOrder);
+
+    /**
+     * 修改【请填写功能名称】
+     * 
+     * @param dOrder 【请填写功能名称】
+     * @return 结果
+     */
+    public int updateDOrder(DOrder dOrder);
+
+    /**
+     * 删除【请填写功能名称】
+     * 
+     * @param id 【请填写功能名称】主键
+     * @return 结果
+     */
+    public int deleteDOrderById(String id);
+
+    /**
+     * 批量删除【请填写功能名称】
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteDOrderByIds(String[] ids);
+}

+ 61 - 0
xzl-system/src/main/java/com/xzl/system/service/IDOrderService.java

@@ -0,0 +1,61 @@
+package com.xzl.system.service;
+
+import java.util.List;
+import com.xzl.system.domain.DOrder;
+
+/**
+ * 【请填写功能名称】Service接口
+ * 
+ * @author xzl
+ * @date 2023-12-25
+ */
+public interface IDOrderService 
+{
+    /**
+     * 查询【请填写功能名称】
+     * 
+     * @param id 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    public DOrder selectDOrderById(String id);
+
+    /**
+     * 查询【请填写功能名称】列表
+     * 
+     * @param dOrder 【请填写功能名称】
+     * @return 【请填写功能名称】集合
+     */
+    public List<DOrder> selectDOrderList(DOrder dOrder);
+
+    /**
+     * 新增【请填写功能名称】
+     * 
+     * @param dOrder 【请填写功能名称】
+     * @return 结果
+     */
+    public int insertDOrder(DOrder dOrder);
+
+    /**
+     * 修改【请填写功能名称】
+     * 
+     * @param dOrder 【请填写功能名称】
+     * @return 结果
+     */
+    public int updateDOrder(DOrder dOrder);
+
+    /**
+     * 批量删除【请填写功能名称】
+     * 
+     * @param ids 需要删除的【请填写功能名称】主键集合
+     * @return 结果
+     */
+    public int deleteDOrderByIds(String[] ids);
+
+    /**
+     * 删除【请填写功能名称】信息
+     * 
+     * @param id 【请填写功能名称】主键
+     * @return 结果
+     */
+    public int deleteDOrderById(String id);
+}

+ 93 - 0
xzl-system/src/main/java/com/xzl/system/service/impl/DOrderServiceImpl.java

@@ -0,0 +1,93 @@
+package com.xzl.system.service.impl;
+
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.xzl.system.mapper.DOrderMapper;
+import com.xzl.system.domain.DOrder;
+import com.xzl.system.service.IDOrderService;
+
+/**
+ * 【请填写功能名称】Service业务层处理
+ * 
+ * @author xzl
+ * @date 2023-12-25
+ */
+@Service
+public class DOrderServiceImpl implements IDOrderService 
+{
+    @Autowired
+    private DOrderMapper dOrderMapper;
+
+    /**
+     * 查询【请填写功能名称】
+     * 
+     * @param id 【请填写功能名称】主键
+     * @return 【请填写功能名称】
+     */
+    @Override
+    public DOrder selectDOrderById(String id)
+    {
+        return dOrderMapper.selectDOrderById(id);
+    }
+
+    /**
+     * 查询【请填写功能名称】列表
+     * 
+     * @param dOrder 【请填写功能名称】
+     * @return 【请填写功能名称】
+     */
+    @Override
+    public List<DOrder> selectDOrderList(DOrder dOrder)
+    {
+        return dOrderMapper.selectDOrderList(dOrder);
+    }
+
+    /**
+     * 新增【请填写功能名称】
+     * 
+     * @param dOrder 【请填写功能名称】
+     * @return 结果
+     */
+    @Override
+    public int insertDOrder(DOrder dOrder)
+    {
+        return dOrderMapper.insertDOrder(dOrder);
+    }
+
+    /**
+     * 修改【请填写功能名称】
+     * 
+     * @param dOrder 【请填写功能名称】
+     * @return 结果
+     */
+    @Override
+    public int updateDOrder(DOrder dOrder)
+    {
+        return dOrderMapper.updateDOrder(dOrder);
+    }
+
+    /**
+     * 批量删除【请填写功能名称】
+     * 
+     * @param ids 需要删除的【请填写功能名称】主键
+     * @return 结果
+     */
+    @Override
+    public int deleteDOrderByIds(String[] ids)
+    {
+        return dOrderMapper.deleteDOrderByIds(ids);
+    }
+
+    /**
+     * 删除【请填写功能名称】信息
+     * 
+     * @param id 【请填写功能名称】主键
+     * @return 结果
+     */
+    @Override
+    public int deleteDOrderById(String id)
+    {
+        return dOrderMapper.deleteDOrderById(id);
+    }
+}

+ 111 - 0
xzl-system/src/main/resources/mapper/system/DOrderMapper.xml

@@ -0,0 +1,111 @@
+<?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="com.xzl.system.mapper.DOrderMapper">
+    
+    <resultMap type="DOrder" id="DOrderResult">
+        <result property="id"    column="id"    />
+        <result property="oId"    column="o_id"    />
+        <result property="snId"    column="sn_id"    />
+        <result property="orderTime"    column="order_time"    />
+        <result property="orderId"    column="order_id"    />
+        <result property="goodsName"    column="goods_name"    />
+        <result property="goodsQuantity"    column="goods_quantity"    />
+        <result property="goodsAmount"    column="goods_amount"    />
+        <result property="remark"    column="remark"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="createdDate"    column="created_date"    />
+        <result property="lastModifiedBy"    column="last_modified_by"    />
+        <result property="lastModifiedDate"    column="last_modified_date"    />
+        <result property="clientCode"    column="client_code"    />
+        <result property="shortName"    column="short_name"    />
+    </resultMap>
+
+    <sql id="selectDOrderVo">
+        select id, o_id, sn_id, order_time, order_id, goods_name, goods_quantity, goods_amount, remark, create_by, created_date, last_modified_by, last_modified_date from d_order
+    </sql>
+
+    <select id="selectDOrderList" parameterType="DOrder" resultMap="DOrderResult">
+        select c.client_code,c.short_name,order_id, goods_name, goods_quantity, goods_amount , date_format(order_time,'%Y-%m-%d %H:%i') order_time
+        from d_order a
+        join d_order_client b on a.sn_id=b.sn_id
+        join v_b_client c on b.client_code=c.client_code
+        where
+        a.sn_id in('N316299J40097','N316299J40085','N316299J40008','N316299J40403','N316299J40298')
+        <if test="clientCode!=null">AND C.CLIENT_CODE like concat('%',#{clientCode},'%')</if>
+        <if test="goodsName!=null">AND goods_name like concat('%',#{goodsName},'%')</if>
+        <if test="startDatetime!=null">AND order_time&gt;=#{startDatetime}</if>
+        <if test="endDatetime!=null">AND order_time&lt;=#{endDatetime}</if>
+        order by order_time desc
+    </select>
+    
+    <select id="selectDOrderById" parameterType="String" resultMap="DOrderResult">
+        <include refid="selectDOrderVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertDOrder" parameterType="DOrder">
+        insert into d_order
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null and id != ''">id,</if>
+            <if test="oId != null">o_id,</if>
+            <if test="snId != null">sn_id,</if>
+            <if test="orderTime != null">order_time,</if>
+            <if test="orderId != null">order_id,</if>
+            <if test="goodsName != null">goods_name,</if>
+            <if test="goodsQuantity != null">goods_quantity,</if>
+            <if test="goodsAmount != null">goods_amount,</if>
+            <if test="remark != null">remark,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="createdDate != null">created_date,</if>
+            <if test="lastModifiedBy != null">last_modified_by,</if>
+            <if test="lastModifiedDate != null">last_modified_date,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null and id != ''">#{id},</if>
+            <if test="oId != null">#{oId},</if>
+            <if test="snId != null">#{snId},</if>
+            <if test="orderTime != null">#{orderTime},</if>
+            <if test="orderId != null">#{orderId},</if>
+            <if test="goodsName != null">#{goodsName},</if>
+            <if test="goodsQuantity != null">#{goodsQuantity},</if>
+            <if test="goodsAmount != null">#{goodsAmount},</if>
+            <if test="remark != null">#{remark},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="createdDate != null">#{createdDate},</if>
+            <if test="lastModifiedBy != null">#{lastModifiedBy},</if>
+            <if test="lastModifiedDate != null">#{lastModifiedDate},</if>
+         </trim>
+    </insert>
+
+    <update id="updateDOrder" parameterType="DOrder">
+        update d_order
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="oId != null">o_id = #{oId},</if>
+            <if test="snId != null">sn_id = #{snId},</if>
+            <if test="orderTime != null">order_time = #{orderTime},</if>
+            <if test="orderId != null">order_id = #{orderId},</if>
+            <if test="goodsName != null">goods_name = #{goodsName},</if>
+            <if test="goodsQuantity != null">goods_quantity = #{goodsQuantity},</if>
+            <if test="goodsAmount != null">goods_amount = #{goodsAmount},</if>
+            <if test="remark != null">remark = #{remark},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="createdDate != null">created_date = #{createdDate},</if>
+            <if test="lastModifiedBy != null">last_modified_by = #{lastModifiedBy},</if>
+            <if test="lastModifiedDate != null">last_modified_date = #{lastModifiedDate},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteDOrderById" parameterType="String">
+        delete from d_order where id = #{id}
+    </delete>
+
+    <delete id="deleteDOrderByIds" parameterType="String">
+        delete from d_order where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 44 - 0
xzl-ui/src/api/system/terimal-order.js

@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询【请填写功能名称】列表
+export function listOrder(query) {
+  return request({
+    url: '/system/terimal-order/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询【请填写功能名称】详细
+export function getOrder(id) {
+  return request({
+    url: '/system/terimal-order/' + id,
+    method: 'get'
+  })
+}
+
+// 新增【请填写功能名称】
+export function addOrder(data) {
+  return request({
+    url: '/system/order',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改【请填写功能名称】
+export function updateOrder(data) {
+  return request({
+    url: '/system/order',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除【请填写功能名称】
+export function delOrder(id) {
+  return request({
+    url: '/system/terimal-order/' + id,
+    method: 'delete'
+  })
+}

+ 161 - 0
xzl-ui/src/views/terimalSales.vue

@@ -0,0 +1,161 @@
+<template>
+  <div class="app-container">
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
+      <el-form-item label="许可证号" prop="clientCode">
+        <el-input
+          v-model="queryParams.clientCode"
+          placeholder="请输入许可证号"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="商品名称" prop="goodsName">
+        <el-input
+          v-model="queryParams.goodsName          "
+          placeholder="请输入商品名称"
+          clearable
+          @keyup.enter.native="handleQuery"
+        />
+      </el-form-item>
+      <el-form-item label="起始时间" prop="startDatetime">
+        <el-date-picker clearable
+                        v-model="queryParams.startDatetime"
+                        type="date"
+                        value-format="yyyy-MM-dd"
+                        placeholder="请选择起始时间">
+        </el-date-picker>
+      </el-form-item>
+
+      <el-form-item label="结束时间" prop="endDatetime">
+        <el-date-picker clearable
+                        v-model="queryParams.endDatetime"
+                        type="date"
+                        value-format="yyyy-MM-dd"
+                        placeholder="请选择结束时间">
+        </el-date-picker>
+      </el-form-item>
+      <el-form-item>
+        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+      </el-form-item>
+    </el-form>
+    <el-table v-loading="loading" :data="orderList">
+      <el-table-column label="许可证号" align="center" prop="clientCode" />
+      <el-table-column label="姓名" align="center" prop="shortName" />
+      <el-table-column label="订单编号" align="center" prop="orderId"  width="200"/>
+      <el-table-column label="商品名称" align="center" prop="goodsName" />
+      <el-table-column label="金额" align="center" prop="goodsAmount" />
+      <el-table-column label="单价" align="center" prop="goodsAmount" />
+      <el-table-column label="数量" align="center" prop="goodsQuantity" />
+      <el-table-column label="销售时间" align="center" prop="orderTime"/>
+    </el-table>
+
+    <pagination
+      v-show="total>0"
+      :total="total"
+      :page.sync="queryParams.pageNum"
+      :limit.sync="queryParams.pageSize"
+      @pagination="getList"
+    />
+  </div>
+</template>
+
+<script>
+  import { listOrder } from "@/api/system/terimal-order";
+
+  export default {
+    name: "Order",
+    data() {
+      return {
+        // 遮罩层
+        loading: true,
+        // 选中数组
+        ids: [],
+        // 非单个禁用
+        single: true,
+        // 非多个禁用
+        multiple: true,
+        // 显示搜索条件
+        showSearch: true,
+        // 总条数
+        total: 0,
+        // 【请填写功能名称】表格数据
+        orderList: [],
+        // 弹出层标题
+        title: "",
+        // 是否显示弹出层
+        open: false,
+        // 查询参数
+        queryParams: {
+          pageNum: 1,
+          pageSize: 10,
+          clientCode: null,
+          goodsName: null,
+          startDatetime: null,
+          endDatetime: null,
+        },
+        // 表单参数
+        form: {},
+        // 表单校验
+        rules: {
+          id: [
+          ],
+        }
+      };
+    },
+    created() {
+      this.getList();
+    },
+    methods: {
+      /** 查询【请填写功能名称】列表 */
+      getList() {
+        this.loading = true;
+        listOrder(this.queryParams).then(response => {
+          this.orderList = response.rows;
+          this.total = response.total;
+          this.loading = false;
+        });
+      },
+      // 取消按钮
+      cancel() {
+        this.open = false;
+        this.reset();
+      },
+      // 表单重置
+      reset() {
+        this.form = {
+          id: null,
+          oId: null,
+          snId: null,
+          orderTime: null,
+          orderId: null,
+          goodsName: null,
+          goodsQuantity: null,
+          goodsAmount: null,
+          remark: null,
+          createBy: null,
+          createdDate: null,
+          lastModifiedBy: null,
+          lastModifiedDate: null
+        };
+        this.resetForm("form");
+      },
+      /** 搜索按钮操作 */
+      handleQuery() {
+        this.queryParams.pageNum = 1;
+        this.getList();
+      },
+      /** 重置按钮操作 */
+      resetQuery() {
+        this.resetForm("queryForm");
+        this.handleQuery();
+      },
+      // 多选框选中数据
+      handleSelectionChange(selection) {
+        this.ids = selection.map(item => item.id)
+        this.single = selection.length!==1
+        this.multiple = !selection.length
+      },
+    }
+  };
+</script>