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