Browse Source

[feat]

售后管理 出货设备
修改出货设备列表页面,调整表格字段,合并操作栏按钮;
新增根据sn号查找出货设备信息mapper和service方法;
dev
王晓迪 2 months ago
parent
commit
430335585c
  1. 4
      ruoyi-admin/src/main/java/com/ruoyi/aftersales/mapper/AfterSalesShippingDeviceMapper.java
  2. 4
      ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/IAfterSalesShippingDeviceService.java
  3. 7
      ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/impl/AfterSalesShippingDeviceServiceImpl.java
  4. 5
      ruoyi-admin/src/main/resources/mapper/aftersales/AfterSalesShippingDeviceMapper.xml
  5. 114
      ruoyi-admin/src/main/resources/templates/aftersales/shippingDevice/shippingDevice.html

4
ruoyi-admin/src/main/java/com/ruoyi/aftersales/mapper/AfterSalesShippingDeviceMapper.java

@ -175,4 +175,8 @@ public interface AfterSalesShippingDeviceMapper
* 根据物料号查询出货设备信息列表 * 根据物料号查询出货设备信息列表
* */ * */
List<AfterSalesShippingDevice> selectShippingDevicesByMaterialNo(String materialNo); List<AfterSalesShippingDevice> selectShippingDevicesByMaterialNo(String materialNo);
/*
* 根据sn号查找出货设备信息*/
AfterSalesShippingDevice selectShippingDevicesBySnCode(String snCode);
} }

4
ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/IAfterSalesShippingDeviceService.java

@ -112,4 +112,8 @@ public interface IAfterSalesShippingDeviceService
* 根据sn号查询出货设备信息列表 * 根据sn号查询出货设备信息列表
* */ * */
List<AfterSalesShippingDevice> selectShippingDeviceListBySnCode(String[] snCode); List<AfterSalesShippingDevice> selectShippingDeviceListBySnCode(String[] snCode);
/*
* 根据sn号查找出货设备信息*/
AfterSalesShippingDevice selectShippingDevicesBySnCode(String snCode);
} }

7
ruoyi-admin/src/main/java/com/ruoyi/aftersales/service/impl/AfterSalesShippingDeviceServiceImpl.java

@ -282,4 +282,11 @@ public class AfterSalesShippingDeviceServiceImpl implements IAfterSalesShippingD
public List<AfterSalesShippingDevice> selectShippingDeviceListBySnCode(String[] snCode) { public List<AfterSalesShippingDevice> selectShippingDeviceListBySnCode(String[] snCode) {
return afterSalesShippingDeviceMapper.selectShippingDeviceListBySnCodeAndMaterialNo(snCode); return afterSalesShippingDeviceMapper.selectShippingDeviceListBySnCodeAndMaterialNo(snCode);
} }
/*
* 根据sn号查找出货设备信息*/
@Override
public AfterSalesShippingDevice selectShippingDevicesBySnCode(String snCode){
return afterSalesShippingDeviceMapper.selectShippingDevicesBySnCode(snCode);
}
} }

5
ruoyi-admin/src/main/resources/mapper/aftersales/AfterSalesShippingDeviceMapper.xml

@ -384,4 +384,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
update aftersales_shipping_device set del_flag = '0' where shipping_device_code = #{shippingDeviceCode} update aftersales_shipping_device set del_flag = '0' where shipping_device_code = #{shippingDeviceCode}
</update> </update>
<select id="selectShippingDevicesBySnCode" parameterType="String" resultMap="AfterSalesShippingDeviceResult">
<include refid="selectAfterSalesShippingDeviceVo"/>
where sn_code = #{snCode}
</select>
</mapper> </mapper>

114
ruoyi-admin/src/main/resources/templates/aftersales/shippingDevice/shippingDevice.html

@ -157,58 +157,59 @@
align: 'center', align: 'center',
field: 'makeNo', field: 'makeNo',
}, },
{
title: 'SN号',
align: 'center',
field: 'snCode',
},
{ {
title: '料号', title: '料号',
align: 'center', align: 'center',
field: 'materialNo', field: 'materialNo',
}, },
{
title: '图片',
align: 'center',
field: 'materialPhotourl',
},
{
title: '物料名称',
align: 'center',
field: 'materialName',
},
{
title: '物料类型',
align: 'center',
field: 'materialType',
formatter: function(value, row, index) {
return $.table.selectCategoryLabel(materialTypeDatas, value);
}
},
{
title: '设备型号',
align: 'center',
field: 'deviceModelCode',
},
{
title: '描述',
align: 'center',
field: 'materialDescribe',
},
{
title: '品牌',
align: 'center',
field: 'materialBrand',
},
{
title: '单位',
align: 'center',
field: 'materialUnit',
},
{
title: '物料型号',
align: 'center',
field: 'materialModelCode',
},
{ {
title: '物料名称', title: 'SN号',
align: 'center',
field: 'materialName',
},
{
title: '图片',
align: 'center',
field: 'materialPhotourl',
},
{
title: '物料类型',
align: 'center',
field: 'materialType',
formatter: function(value, row, index) {
return $.table.selectCategoryLabel(materialTypeDatas, value);
}
},
{
title: '型号',
align: 'center',
field: 'materialModelCode',
},
{
title: '单位',
align: 'center',
field: 'materialUnit',
},
{
title: '品牌',
align: 'center',
field: 'materialBrand',
},
{
title: '描述',
align: 'center',
field: 'materialDescribe',
},
{
title: '设备型号',
align: 'center', align: 'center',
field: 'deviceModelCode', field: 'snCode',
}, },
{ {
title: '追踪码', title: '追踪码',
@ -225,22 +226,16 @@
align: 'center', align: 'center',
field: 'endMakeTime', field: 'endMakeTime',
}, },
{
title: '生产图片',
align: 'center',
field: 'makePhotourl',
},
{
title: '售后图片',
align: 'center',
field: 'aftersalesPhotourl',
},
{ {
title: '出厂日期', title: '出厂日期',
align: 'center', align: 'center',
field: 'factoryDate', field: 'factoryDate',
}, },
// {
// title: '软件版本',
// align: 'center',
// field: 'factoryDate',
// },
{ {
title: '保修期', title: '保修期',
align: 'center', align: 'center',
@ -341,9 +336,10 @@
align: 'center', align: 'center',
formatter: function(value, row, index) { formatter: function(value, row, index) {
var actions = []; var actions = [];
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.shippingDeviceCode + '\')"><i class="fa fa-edit"></i>编辑</a> '); actions.push('<a class="' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.shippingDeviceCode + '\')"><i class="fa fa-edit"></i>编辑</a> ');
actions.push('<a class="btn btn-success btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="detail(\'' + row.shippingDeviceCode + '\')"><i class="fa fa-edit"></i>详情</a> '); actions.push('<a class="' + detailFlag + '" href="javascript:void(0)" onclick="detail(\'' + row.shippingDeviceCode + '\')"><i class="fa fa-edit"></i>详情</a> ');
return actions.join(''); var actionLinks = actions.join('');
return $.table.dropdownToggle(actionLinks);
} }
}] }]
}; };

Loading…
Cancel
Save