diff --git a/ruoyi-ui/src/api/dashboard/fx_technologist.js b/ruoyi-ui/src/api/dashboard/fx_technologist.js
index 479129a89..f6e4edd52 100644
--- a/ruoyi-ui/src/api/dashboard/fx_technologist.js
+++ b/ruoyi-ui/src/api/dashboard/fx_technologist.js
@@ -85,3 +85,24 @@ export function AllDataDataRange(fDateStart,fDateEnd) {
})
}
+export function getBestHunsha() {
+ return request({
+ url: '/fx_technologist/getBestHunsha',
+ method: 'get'
+ })
+}
+
+
+export function getBestTijiaoxian() {
+ return request({
+ url: '/fx_technologist/getBestTijiaoxian',
+ method: 'get'
+ })
+}
+
+export function getBestHuakuang() {
+ return request({
+ url: '/fx_technologist/getBestHuakuang',
+ method: 'get'
+ })
+}
diff --git a/ruoyi-ui/src/views/fx_dashboard/dashboard_current.vue b/ruoyi-ui/src/views/fx_dashboard/dashboard_current.vue
index 05d9e87a9..03d27d3e2 100644
--- a/ruoyi-ui/src/views/fx_dashboard/dashboard_current.vue
+++ b/ruoyi-ui/src/views/fx_dashboard/dashboard_current.vue
@@ -231,7 +231,7 @@
j = j + 1;
}
- if (data_ajax[i].CurrentYield <= 1.2 | data_ajax[i].CurrentYield !== 0) {
+ if (data_ajax[i].CurrentYield <= 1.2 && data_ajax[i].CurrentYield !== 0 && data_ajax[i].CurrentYield >= 0.3) {
avg_zhengpin_avg = avg_zhengpin_avg + (data_ajax[i].CurrentYield) * 1;
k = k + 1;
}
diff --git a/ruoyi-ui/src/views/fx_technologist/fx_sample_all.vue b/ruoyi-ui/src/views/fx_technologist/fx_sample_all.vue
index f9acc4fe5..e86f18b35 100644
--- a/ruoyi-ui/src/views/fx_technologist/fx_sample_all.vue
+++ b/ruoyi-ui/src/views/fx_technologist/fx_sample_all.vue
@@ -55,7 +55,7 @@
汇总表
-
@@ -157,10 +157,10 @@
{field: 'SalesMan', title: '销售员', sortable: true, filterControl: 'input', filterStrictSearch: false},
{field: 'TagName', title: '类型', sortable: true, filterControl: 'select', filterStrictSearch: false},
{field: 'ProductionLine', title: '产品线', sortable: true, filterControl: 'select', filterStrictSearch: false},
- {field: 'NewMould', title: '是否新模', sortable: true, filterControl: 'select', filterStrictSearch: false},
+ {field: 'NewMould', title: '是否
新模', sortable: true, filterControl: 'select', filterStrictSearch: false},
{field: '地区', title: '区域', sortable: true, filterControl: 'select', filterStrictSearch: false},
{field: '经理审核时间', title: '下单日期', sortable: true, filterControl: 'input', filterStrictSearch: false},
- {field: '分解天数', title: '分解(天)', sortable: true, filterControl: 'input', filterStrictSearch: false},
+ {field: '分解天数', title: '分解
(天)', sortable: true, filterControl: 'input', filterStrictSearch: false},
{
field: 'FactMakingDate',
title: '完成时间',
@@ -168,13 +168,13 @@
filterControl: 'input',
filterStrictSearch: false
},
- {field: '交期天数', title: '交期(天)', sortable: true, filterControl: 'input', filterStrictSearch: false},
+ {field: '交期天数', title: '交期
(天)', sortable: true, filterControl: 'input', filterStrictSearch: false},
{field: '客户是否下单', title: '是否确认', sortable: true, filterControl: 'select', filterStrictSearch: false},
{field: '折算人民币价税合计', title: '销售金额', sortable: true, filterControl: 'input', filterStrictSearch: false},
- {field: '客户数量', title: '客户数量', sortable: true, filterControl: 'input', filterStrictSearch: false},
+ {field: '客户数量', title: '客户
数量', sortable: true, filterControl: 'input', filterStrictSearch: false},
{
field: 'FinishedDensity',
- title: '打样密度',
+ title: '打样
密度',
sortable: true,
filterControl: 'input',
filterStrictSearch: false
@@ -195,6 +195,8 @@
pageNumber: 1,
pageList: [],
cache: false,
+ fixedColumns: true,
+ fixedNumber: 1 ,
searchText: '',
filterControl: true,
disableUnusedSelectOptions: true, striped: true,
diff --git a/ruoyi-ui/src/views/fx_technologist/fx_sample_best_selling.vue b/ruoyi-ui/src/views/fx_technologist/fx_sample_best_selling_by_odm_oem.vue
similarity index 98%
rename from ruoyi-ui/src/views/fx_technologist/fx_sample_best_selling.vue
rename to ruoyi-ui/src/views/fx_technologist/fx_sample_best_selling_by_odm_oem.vue
index b238e4dd5..d7f93c9a3 100644
--- a/ruoyi-ui/src/views/fx_technologist/fx_sample_best_selling.vue
+++ b/ruoyi-ui/src/views/fx_technologist/fx_sample_best_selling_by_odm_oem.vue
@@ -83,7 +83,7 @@
export default {
mixins: [resize],
- name: 'fx_sample_confirmation',
+ name: 'fx_sample_best_selling_by_odm_oem',
data() {
return {
tableDataODM: [],
diff --git a/ruoyi-ui/src/views/fx_technologist/fx_sample_best_selling_by_use.vue b/ruoyi-ui/src/views/fx_technologist/fx_sample_best_selling_by_use.vue
new file mode 100644
index 000000000..920d54b80
--- /dev/null
+++ b/ruoyi-ui/src/views/fx_technologist/fx_sample_best_selling_by_use.vue
@@ -0,0 +1,218 @@
+
+
+
+
+
+
+
+
+
+
婚纱框爆款
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
踢脚线爆款
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
画框爆款
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ruoyi/src/main/java/com/ruoyi/db/mssql/DB_Ajax_DashBoard_Technologist_48102.java b/ruoyi/src/main/java/com/ruoyi/db/mssql/DB_Ajax_DashBoard_Technologist_48102.java
index e7be6057b..416490d00 100644
--- a/ruoyi/src/main/java/com/ruoyi/db/mssql/DB_Ajax_DashBoard_Technologist_48102.java
+++ b/ruoyi/src/main/java/com/ruoyi/db/mssql/DB_Ajax_DashBoard_Technologist_48102.java
@@ -448,5 +448,116 @@ public class DB_Ajax_DashBoard_Technologist_48102 {
return jsonpath.toString();
}
+
+
+ public static List> getBestHuakuang() {
+ List> hashMapList = new ArrayList<>();
+ try {
+ Connection conn = getSQLConnection();
+ String sql = "SELECT TOP\n" +
+ "\t20 MouldingStyleCode,\n" +
+ "\t[折算人民币价税合计] AS CNY \n" +
+ "FROM\n" +
+ "\t[chen_12个月_A版本BOM销售额] \n" +
+ "WHERE\n" +
+ "\ttagname = 'OEM' \n" +
+ "ORDER BY\n" +
+ "\t折算人民币价税合计 DESC";
+ Statement stmt = conn.createStatement();//
+
+ ResultSet rs = stmt.executeQuery(sql);
+ while (rs.next()) {
+ // 截面积(mm2)
+ HashMap map = new HashMap<>();
+ map.put("MouldingStyleCode",rs.getString("MouldingStyleCode"));
+ map.put("CNY",rs.getString("CNY"));
+ hashMapList.add(map);
+
+ }
+ rs.close();
+ stmt.close();
+ conn.close();
+ } catch (SQLException e) {
+ e.printStackTrace();
+
+ }
+ return hashMapList;
+ }
+
+
+ public static List> getBestTijiaoxian() {
+ List> hashMapList = new ArrayList<>();
+ try {
+ Connection conn = getSQLConnection();
+ String sql = "SELECT TOP\n" +
+ "\t20 MouldingStyleCode,\n" +
+ "\t[折算人民币价税合计] AS CNY \n" +
+ "FROM\n" +
+ "\t[chen_12个月_A版本BOM销售额] \n" +
+ "WHERE\n" +
+ "\ttagname = 'OEM' \n" +
+ "ORDER BY\n" +
+ "\t折算人民币价税合计 DESC";
+ Statement stmt = conn.createStatement();//
+
+ ResultSet rs = stmt.executeQuery(sql);
+ while (rs.next()) {
+ // 截面积(mm2)
+ HashMap map = new HashMap<>();
+ map.put("MouldingStyleCode",rs.getString("MouldingStyleCode"));
+ map.put("CNY",rs.getString("CNY"));
+ hashMapList.add(map);
+
+ }
+ rs.close();
+ stmt.close();
+ conn.close();
+ } catch (SQLException e) {
+ e.printStackTrace();
+
+ }
+ return hashMapList;
+ }
+
+
+ public static List> getBestHunsha() {
+ List> hashMapList = new ArrayList<>();
+ try {
+ Connection conn = getSQLConnection();
+ String sql = "SELECT TOP\n" +
+ "\t20 MouldingStyleCode,\n" +
+ "\t[折算人民币价税合计] AS CNY \n" +
+ "FROM\n" +
+ "\t[chen_12个月_A版本BOM销售额] \n" +
+ "WHERE\n" +
+ "\ttagname = 'OEM' \n" +
+ "ORDER BY\n" +
+ "\t折算人民币价税合计 DESC";
+ Statement stmt = conn.createStatement();//
+
+ ResultSet rs = stmt.executeQuery(sql);
+ while (rs.next()) {
+ // 截面积(mm2)
+ HashMap map = new HashMap<>();
+ map.put("MouldingStyleCode",rs.getString("MouldingStyleCode"));
+ map.put("CNY",rs.getString("CNY"));
+ hashMapList.add(map);
+
+ }
+ rs.close();
+ stmt.close();
+ conn.close();
+ } catch (SQLException e) {
+ e.printStackTrace();
+
+ }
+ return hashMapList;
+ }
+
+
+
+
+
+
}
diff --git a/ruoyi/src/main/java/com/ruoyi/project/fx_technologist/controller/TechnologistController.java b/ruoyi/src/main/java/com/ruoyi/project/fx_technologist/controller/TechnologistController.java
index c914a1904..8dcea664b 100644
--- a/ruoyi/src/main/java/com/ruoyi/project/fx_technologist/controller/TechnologistController.java
+++ b/ruoyi/src/main/java/com/ruoyi/project/fx_technologist/controller/TechnologistController.java
@@ -90,4 +90,28 @@ public class TechnologistController extends BaseController
return AjaxResult.success(DB_Ajax_DashBoard_Technologist_48102.AllDataDataRange(fDateStart,fDateEnd));
}
+
+
+ @GetMapping("/getBestOEM")
+ public AjaxResult getBestHuakuang() throws Exception
+ {
+ return AjaxResult.success(DB_Ajax_DashBoard_Technologist_48102.getBestHuakuang());
+ }
+
+ @GetMapping("/getBestODM")
+ public AjaxResult getBestTijiaoxian() throws Exception
+ {
+ return AjaxResult.success(DB_Ajax_DashBoard_Technologist_48102.getBestTijiaoxian());
+ }
+
+ @GetMapping("/getBestODM")
+ public AjaxResult getBestHunsha() throws Exception
+ {
+ return AjaxResult.success(DB_Ajax_DashBoard_Technologist_48102.getBestHunsha());
+ }
+
+
+
+
+
}