Browse Source

[fix]

修改销售出货通知分页查询接口,根据创建时间降序排序;
修改销售出货通知前端页面:修改列表页面表头的按钮,按钮采用统一样式;修改操作栏按钮样式样式统一,操作栏引用$.table.dropdownToggle方法;去掉多余的列表展示字段;销售订单号、收货地址字段加上tooltip方法,超过5个字符隐藏部分内容;所有前端展示字段全部居中对齐
dev
liuxiaoxu 3 weeks ago
parent
commit
690b7a78b7
  1. 1
      ruoyi-admin/src/main/resources/mapper/system/SysSalesShippingInformMapper.xml
  2. 99
      ruoyi-admin/src/main/resources/templates/system/salesShippingInform/salesShippingInform.html

1
ruoyi-admin/src/main/resources/mapper/system/SysSalesShippingInformMapper.xml

@ -51,6 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="warehouseOrderType != null and warehouseOrderType != ''"> and warehouse_order_type = #{warehouseOrderType}</if>
<if test="businessMembers != null and businessMembers != ''"> and business_members = #{businessMembers}</if>
</where>
order by create_time desc
</select>
<select id="selectSysSalesShippingInformById" parameterType="Long" resultMap="SysSalesShippingInformResult">

99
ruoyi-admin/src/main/resources/templates/system/salesShippingInform/salesShippingInform.html

@ -46,37 +46,37 @@
</div>
<div class="btn-group-sm" id="toolbar" role="group">
<a class="btn btn-warning" onclick="exportExcel()" shiro:hasPermission="system:salesShippingInform:export">
<a class="btn btn-success" onclick="exportExcel()" shiro:hasPermission="system:salesShippingInform:export">
<i class="fa fa-download"></i> 导出
</a>
<!-- <div class="dropdown">-->
<a class="btn btn-warning" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<a class="btn btn-success" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-download"></i> 模板导出
</a>
<div class="dropdown-menu" aria-labelledby="dropdownMenu2">
<a class="btn btn-warning" onclick="exportShippingOrderOne()" shiro:hasPermission="system:salesShippingInform:exportShippingOrderOne">
<a class="btn btn-success" onclick="exportShippingOrderOne()" shiro:hasPermission="system:salesShippingInform:exportShippingOrderOne">
<i class="fa fa-download"></i> 导出销售出货单1
</a>
<a class="btn btn-warning" onclick="exportShippingOrderTwo()" shiro:hasPermission="system:salesShippingInform:exportShippingOrderTwo">
<a class="btn btn-success" onclick="exportShippingOrderTwo()" shiro:hasPermission="system:salesShippingInform:exportShippingOrderTwo">
<i class="fa fa-download"></i> 导出销售出货单2
</a>
<a class="btn btn-warning" onclick="exportShippingPackingOne()" shiro:hasPermission="system:salesShippingInform:exportShippingPackingOne">
<a class="btn btn-success" onclick="exportShippingPackingOne()" shiro:hasPermission="system:salesShippingInform:exportShippingPackingOne">
<i class="fa fa-download"></i> 导出销售出货箱单1
</a>
<a class="btn btn-warning" onclick="exportShippingPackingTwo()" shiro:hasPermission="system:salesShippingInform:exportShippingPackingTwo">
<a class="btn btn-success" onclick="exportShippingPackingTwo()" shiro:hasPermission="system:salesShippingInform:exportShippingPackingTwo">
<i class="fa fa-download"></i> 导出销售出货箱单2
</a>
<a class="btn btn-warning" onclick="exportShippingInvoiceOne()" shiro:hasPermission="system:salesShippingInform:exportShippingInvoiceOne">
<a class="btn btn-success" onclick="exportShippingInvoiceOne()" shiro:hasPermission="system:salesShippingInform:exportShippingInvoiceOne">
<i class="fa fa-download"></i> 导出销售出货发票1
</a>
<a class="btn btn-warning" onclick="exportShippingInvoiceTwo()" shiro:hasPermission="system:salesShippingInform:exportShippingInvoiceTwo">
<a class="btn btn-success" onclick="exportShippingInvoiceTwo()" shiro:hasPermission="system:salesShippingInform:exportShippingInvoiceTwo">
<i class="fa fa-download"></i> 导出销售出货发票2
</a>
<a class="btn btn-warning" onclick="exportShippingInformOrder()" shiro:hasPermission="system:salesShippingInform:exportShippingInformOrder">
<a class="btn btn-success" onclick="exportShippingInformOrder()" shiro:hasPermission="system:salesShippingInform:exportShippingInformOrder">
<i class="fa fa-download"></i> 导出销售出货通知单
</a>
</div>
@ -116,7 +116,6 @@
showFooter: true,
fixedColumns: true, // 启用冻结列
fixedRightNumber: 1, // 冻结右列个数
//height: $(window).height() - 120,
modalName: "销售出货通知",
columns: [{
checkbox: true
@ -129,10 +128,12 @@
{
title: '出库单号',
field: 'outOrderCode',
align: 'center',
},
{
title: '出库状态',
field: 'warehouseOutStatus',
align: 'center',
formatter: function(value, row, index) {
return $.table.selectDictLabel(warehouseOutStatusDatas, value);
}
@ -140,22 +141,28 @@
{
title: '业务员',
field: 'businessMembers',
align: 'center',
},
{
title: '关联销售订单号',
field: 'salesOrderCode',
},
{
title: '订单类型',
field: 'warehouseOrderType',
align: 'center',
formatter: function(value, row, index) {
return $.table.selectDictLabel(warehouseOrderTypeDatas, value);
return $.table.tooltip(value, 5, "open");
}
},
// {
// title: '订单类型',
// field: 'warehouseOrderType',
// formatter: function(value, row, index) {
// return $.table.selectDictLabel(warehouseOrderTypeDatas, value);
// }
// },
{
title: '出库类型',
field: 'warehouseOutType',
align: 'center',
formatter: function(value, row, index) {
return $.table.selectDictLabel(warehouseOutTypeDatas, value);
}
@ -164,19 +171,22 @@
{
title: '客户ID',
field: 'customerId',
align: 'center',
},
{
title: '客户名称',
field: 'customerName',
align: 'center',
},
{
title: '客户订单号',
field: 'salesOrderNumber',
},
// {
// title: '客户订单号',
// field: 'salesOrderNumber',
// },
{
title: '物料合计',
field: 'materialSum',
align: 'center',
footerFormatter: function (value) {
var sum = 0;
for (var i in value) {
@ -188,6 +198,7 @@
{
title: '数量合计',
field: 'enterpriseSum',
align: 'center',
footerFormatter: function (value) {
var sum = 0;
for (var i in value) {
@ -200,6 +211,7 @@
{
title: '不含税总价(RMB)',
field: 'allPriceExcludingTaxRmb',
align: 'center',
footerFormatter: function (value) {
var sum = 0;
for (var i in value) {
@ -211,6 +223,7 @@
{
title: '不含税总价(美元)',
field: 'allPriceExcludingTaxDollar',
align: 'center',
footerFormatter: function (value) {
var sum = 0;
for (var i in value) {
@ -222,6 +235,7 @@
{
title: '含税总价',
field: 'allPriceIncludesTax',
align: 'center',
footerFormatter: function (value) {
var sum = 0;
for (var i in value) {
@ -230,56 +244,67 @@
return "总含税总价: " + sum.toFixed(2);
}
},
{
title: '计划交付时间',
field: 'plannedDeliveryTime',
},
{
title: '客户验收时间',
field: 'acceptanceTime',
},
{
title: '付款条件',
field: 'paymentCondition',
},
{
title: '交付条件',
field: 'deliveryCondition',
},
// {
// title: '计划交付时间',
// field: 'plannedDeliveryTime',
// },
// {
// title: '客户验收时间',
// field: 'acceptanceTime',
// },
// {
// title: '付款条件',
// field: 'paymentCondition',
// },
// {
// title: '交付条件',
// field: 'deliveryCondition',
// },
{
title: '收货联系人',
field: 'customerContact',
align: 'center',
formatter: function(value, row, index) {
return $.table.tooltip(value, 10, "open");
return $.table.tooltip(value, 5, "open");
}
},
{
title: '联系电话',
field: 'contactNumber',
align: 'center',
},
{
title: '收货地址',
field: 'customerContactAddress',
align: 'center',
formatter: function(value, row, index) {
return $.table.tooltip(value, 5, "open");
}
},
{
title: '送货日期',
field: 'deliverTime',
align: 'center',
},
{
title: '录入时间',
field: 'createTime',
align: 'center',
},
{
title: '录入人',
field: 'createBy',
align: 'center',
},
{
title: '更新人',
field: 'updateBy',
align: 'center',
},
{
title: '上次更新时间',
field: 'updateTime',
align: 'center',
},
{

Loading…
Cancel
Save