支持导出表格
This commit is contained in:
@@ -3,7 +3,7 @@ import request from '@/utils/request'
|
|||||||
// 查询产品销售话术列表
|
// 查询产品销售话术列表
|
||||||
export function listProductSalesScript(query) {
|
export function listProductSalesScript(query) {
|
||||||
return request({
|
return request({
|
||||||
url: '/klp/productSalesScript/list',
|
url: '/wms/productSalesScript/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: query
|
params: query
|
||||||
})
|
})
|
||||||
@@ -12,7 +12,7 @@ export function listProductSalesScript(query) {
|
|||||||
// 查询产品销售话术,只要标题和内容有一个配置就会被返回
|
// 查询产品销售话术,只要标题和内容有一个配置就会被返回
|
||||||
export function searchProductSalesScript(keyword) {
|
export function searchProductSalesScript(keyword) {
|
||||||
return request({
|
return request({
|
||||||
url: '/klp/productSalesScript/list',
|
url: '/wms/productSalesScript/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: { keyword }
|
params: { keyword }
|
||||||
})
|
})
|
||||||
@@ -21,7 +21,7 @@ export function searchProductSalesScript(keyword) {
|
|||||||
// 查询产品销售话术详细
|
// 查询产品销售话术详细
|
||||||
export function getProductSalesScript(scriptId) {
|
export function getProductSalesScript(scriptId) {
|
||||||
return request({
|
return request({
|
||||||
url: '/klp/productSalesScript/' + scriptId,
|
url: '/wms/productSalesScript/' + scriptId,
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -29,7 +29,7 @@ export function getProductSalesScript(scriptId) {
|
|||||||
// 新增产品销售话术
|
// 新增产品销售话术
|
||||||
export function addProductSalesScript(data) {
|
export function addProductSalesScript(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/klp/productSalesScript',
|
url: '/wms/productSalesScript',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
@@ -38,7 +38,7 @@ export function addProductSalesScript(data) {
|
|||||||
// 修改产品销售话术
|
// 修改产品销售话术
|
||||||
export function updateProductSalesScript(data) {
|
export function updateProductSalesScript(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/klp/productSalesScript',
|
url: '/wms/productSalesScript',
|
||||||
method: 'put',
|
method: 'put',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
@@ -47,7 +47,7 @@ export function updateProductSalesScript(data) {
|
|||||||
// 删除产品销售话术
|
// 删除产品销售话术
|
||||||
export function delProductSalesScript(scriptId) {
|
export function delProductSalesScript(scriptId) {
|
||||||
return request({
|
return request({
|
||||||
url: '/klp/productSalesScript/' + scriptId,
|
url: '/wms/productSalesScript/' + scriptId,
|
||||||
method: 'delete'
|
method: 'delete'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -72,7 +72,7 @@ export function delProductSalesScript(scriptId) {
|
|||||||
// 获取产品咨询热度排行
|
// 获取产品咨询热度排行
|
||||||
export function getProductRanking() {
|
export function getProductRanking() {
|
||||||
return request({
|
return request({
|
||||||
url: '/klp/productSalesScript/dashboard/ranking',
|
url: '/wms/productSalesScript/dashboard/ranking',
|
||||||
method: 'get'
|
method: 'get'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -312,7 +312,7 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
handleExport() {
|
handleExport() {
|
||||||
this.download('system/productSalesScript/export', {
|
this.download('wms/productSalesScript/export', {
|
||||||
...this.queryParams
|
...this.queryParams
|
||||||
}, `productSalesScript_${new Date().getTime()}.xlsx`)
|
}, `productSalesScript_${new Date().getTime()}.xlsx`)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -453,7 +453,7 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
handleExport() {
|
handleExport() {
|
||||||
this.download('klp/purchasePlan/export', {
|
this.download('wms/purchasePlan/export', {
|
||||||
...this.queryParams
|
...this.queryParams
|
||||||
}, `purchasePlan_${new Date().getTime()}.xlsx`)
|
}, `purchasePlan_${new Date().getTime()}.xlsx`)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -376,7 +376,7 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
handleExport() {
|
handleExport() {
|
||||||
this.download('klp/purchasePlanDetail/export', {
|
this.download('wms/purchasePlanDetail/export', {
|
||||||
...this.queryParams
|
...this.queryParams
|
||||||
}, `purchasePlanDetail_${new Date().getTime()}.xlsx`)
|
}, `purchasePlanDetail_${new Date().getTime()}.xlsx`)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -338,7 +338,7 @@
|
|||||||
},
|
},
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
handleExport() {
|
handleExport() {
|
||||||
this.download('klp/schedulePlan/export', {
|
this.download('wms/schedulePlan/export', {
|
||||||
...this.queryParams
|
...this.queryParams
|
||||||
}, `schedulePlan_${new Date().getTime()}.xlsx`)
|
}, `schedulePlan_${new Date().getTime()}.xlsx`)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -418,7 +418,7 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 导出按钮操作 */
|
/** 导出按钮操作 */
|
||||||
handleExport() {
|
handleExport() {
|
||||||
this.download('klp/stockIo/export', {
|
this.download('wms/stockIo/export', {
|
||||||
...this.queryParams
|
...this.queryParams
|
||||||
}, `stockIo_${new Date().getTime()}.xlsx`)
|
}, `stockIo_${new Date().getTime()}.xlsx`)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -457,7 +457,7 @@ export default {
|
|||||||
this.reset();
|
this.reset();
|
||||||
},
|
},
|
||||||
handleExport() {
|
handleExport() {
|
||||||
this.download('klp/stockIoDetail/export', {
|
this.download('wms/stockIoDetail/export', {
|
||||||
...this.queryParams
|
...this.queryParams
|
||||||
}, `stockIoDetail_${new Date().getTime()}.xlsx`)
|
}, `stockIoDetail_${new Date().getTime()}.xlsx`)
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ import com.klp.domain.vo.ProductRankingVo;
|
|||||||
@Validated
|
@Validated
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/klp/productSalesScript")
|
@RequestMapping("/wms/productSalesScript")
|
||||||
public class WmsProductSalesScriptController extends BaseController {
|
public class WmsProductSalesScriptController extends BaseController {
|
||||||
|
|
||||||
private final IWmsProductSalesScriptService iWmsProductSalesScriptService;
|
private final IWmsProductSalesScriptService iWmsProductSalesScriptService;
|
||||||
@@ -67,12 +67,12 @@ public class WmsProductSalesScriptController extends BaseController {
|
|||||||
public R<WmsProductSalesScriptVo> getInfo(@NotNull(message = "主键不能为空")
|
public R<WmsProductSalesScriptVo> getInfo(@NotNull(message = "主键不能为空")
|
||||||
@PathVariable Long scriptId) {
|
@PathVariable Long scriptId) {
|
||||||
WmsProductSalesScriptVo vo = iWmsProductSalesScriptService.queryById(scriptId);
|
WmsProductSalesScriptVo vo = iWmsProductSalesScriptService.queryById(scriptId);
|
||||||
|
|
||||||
// 记录产品访问次数到Redis
|
// 记录产品访问次数到Redis
|
||||||
if (vo != null && vo.getProductId() != null) {
|
if (vo != null && vo.getProductId() != null) {
|
||||||
iWmsProductSalesScriptService.recordProductViewCount(vo.getProductId());
|
iWmsProductSalesScriptService.recordProductViewCount(vo.getProductId());
|
||||||
}
|
}
|
||||||
|
|
||||||
return R.ok(vo);
|
return R.ok(vo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ public class WmsStockController extends BaseController {
|
|||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(WmsStockBo bo, HttpServletResponse response) {
|
public void export(WmsStockBo bo, HttpServletResponse response) {
|
||||||
List<WmsStockVo> list = iWmsStockService.queryList(bo);
|
List<WmsStockVo> list = iWmsStockService.queryList(bo);
|
||||||
ExcelUtil.exportExcel(list, "库存:原材料/产品与库区/库位的存放关系", WmsStockVo.class, response);
|
ExcelUtil.exportExcel(list, "库存:原材料-产品与库区-库位的存放关系", WmsStockVo.class, response);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user