diff --git a/package.json b/package.json
index a7ba8a6..64e4c46 100644
--- a/package.json
+++ b/package.json
@@ -20,6 +20,7 @@
"@vueup/vue-quill": "1.2.0",
"@vueuse/core": "10.6.1",
"axios": "1.6.7",
+ "echarts": "^5.5.0",
"element-plus": "2.4.3",
"file-saver": "2.0.5",
"js-cookie": "3.0.5",
diff --git a/src/api/costCalculation.js b/src/api/costCalculation.js
new file mode 100644
index 0000000..d9380e1
--- /dev/null
+++ b/src/api/costCalculation.js
@@ -0,0 +1,24 @@
+import request from "@/service/request";
+
+/*新增版本号*/
+export function costStandardVersionAdd(data) {
+ return request.post("/costStandardVersion/add", {}, data, {
+ message: {
+ success: "生成成功",
+ error: true
+ }
+ });
+}
+// 查询列表
+export function costStandardList(params) {
+ return request.get(`/costStandard/list`, params);
+}
+//删除
+export function deleteCostStandard(data) {
+ return request.delete("/costStandard/delete", data,{
+ message: {
+ success: "删除成功",
+ error: true
+ }
+ });
+}
diff --git a/src/api/singleLineQuery.js b/src/api/singleLineQuery.js
new file mode 100644
index 0000000..7f48de7
--- /dev/null
+++ b/src/api/singleLineQuery.js
@@ -0,0 +1,15 @@
+import request from "@/service/request";
+
+// 查询列表
+export function costStandardDetailList(params) {
+ return request.get(`/costStandardDetail/list`, params);
+}
+/*导出excel*/
+export function exportcostStandardDetail(data) {
+ return request.get("/costStandardDetail/exportXls", data, {
+ message: {
+ success: "导出成功",
+ error: true
+ }
+ });
+}
diff --git a/src/api/treeQuery.js b/src/api/treeQuery.js
new file mode 100644
index 0000000..c919ec1
--- /dev/null
+++ b/src/api/treeQuery.js
@@ -0,0 +1,14 @@
+import request from "@/service/request";
+
+// 查询列表
+export function queryBomTree(params) {
+ return request.get(`/bomTree/queryBomTree`, params);
+}
+// 查询物料编号接口
+export function costMaterialBomList(params) {
+ return request.get(`/cost-material-bom/list`, params);
+}
+// 查询版本号接口
+export function costStandardVersionList(params) {
+ return request.get(`/costStandardVersion/list`, params);
+}
diff --git a/src/components/Echarts/index.vue b/src/components/Echarts/index.vue
new file mode 100644
index 0000000..12cc1aa
--- /dev/null
+++ b/src/components/Echarts/index.vue
@@ -0,0 +1,36 @@
+
+
diff --git a/src/main.js b/src/main.js
index c393456..1d62c4c 100644
--- a/src/main.js
+++ b/src/main.js
@@ -51,6 +51,7 @@ function render(props = {}) {
// 使用element-plus 并且设置全局的大小
app.use(ElementPlus, {
+ name:'testApp',
locale: locale,
// 支持 large、default、small
size: Cookies.get("size") || "default"
diff --git a/src/platform.ts b/src/platform.ts
index 0930072..93c5c11 100644
--- a/src/platform.ts
+++ b/src/platform.ts
@@ -6,7 +6,22 @@ export const qomoPlatformOptions = {
//字典配置
dict: {
//静态字典
- staticDictMaps: {},
+ staticDictMaps: {
+ stageData: [
+ {
+ label: "初始",
+ value: "A"
+ },
+ {
+ label: "量产",
+ value: "B"
+ },
+ {
+ label: "首批",
+ value: "C"
+ }
+ ]
+ },
async provider(dictType) {
const result = await getDictCode({
dictCode: dictType
@@ -31,7 +46,8 @@ export const qomoPlatformOptions = {
relativePath: files.name,
name: files.originalName,
url: location.origin + files?.fileurl
- })
+ }),
+ namespace: "testApp"
}
} as QomoPlatformInstallOptions;
diff --git a/src/router/index.js b/src/router/index.js
index b6f5e17..43a914d 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -69,15 +69,39 @@ export const constantRoutes = [
},
]
},
+ // {
+ // path: '',
+ // component: Layout,
+ // children: [
+ // {
+ // path: "/hour",
+ // component: () => import("@/views/hour/index"),
+ // name: "Hour",
+ // meta: { title: "小时费率", icon: "money", affix: true }
+ // }
+ // ]
+ // },
+ // {
+ // path: '',
+ // component: Layout,
+ // children: [
+ // {
+ // path: "/unitPrice",
+ // component: () => import("@/views/unitPrice/index"),
+ // name: "UnitPrice",
+ // meta: { title: "7525单价", icon: "money", affix: true }
+ // }
+ // ]
+ // }
{
path: '',
component: Layout,
children: [
{
- path: "/hour",
- component: () => import("@/views/hour/index"),
- name: "Hour",
- meta: { title: "小时费率", icon: "money", affix: true }
+ path: "convolution/costCalculation",
+ component: () => import("@/views/convolution/costCalculation/index"),
+ name: "CostCalculation",
+ meta: { title: "成本计算", icon: "money", affix: true }
}
]
},
@@ -86,13 +110,37 @@ export const constantRoutes = [
component: Layout,
children: [
{
- path: "/unitPrice",
- component: () => import("@/views/unitPrice/index"),
- name: "UnitPrice",
- meta: { title: "7525单价", icon: "money", affix: true }
+ path: "convolution/singleLineQuery",
+ component: () => import("@/views/convolution/singleLineQuery/index"),
+ name: "SingleLineQuery",
+ meta: { title: "单行查询", icon: "money", affix: true }
}
]
- }
+ },
+ {
+ path: '',
+ component: Layout,
+ children: [
+ {
+ path: "convolution/treeQuery",
+ component: () => import("@/views/convolution/treeQuery/index"),
+ name: "TreeQuery",
+ meta: { title: "结构树查询", icon: "tree", affix: true }
+ }
+ ]
+ },
+ {
+ path: '',
+ component: Layout,
+ children: [
+ {
+ path: "miningAnalysis/statistics",
+ component: () => import("@/views/miningAnalysis/statistics/index"),
+ name: "Statistics",
+ meta: { title: "挖掘统计", icon: "tree", affix: true }
+ }
+ ]
+ },
];
//本地调试默认路由
diff --git a/src/views/convolution/costCalculation/component/calculate.vue b/src/views/convolution/costCalculation/component/calculate.vue
new file mode 100644
index 0000000..4641680
--- /dev/null
+++ b/src/views/convolution/costCalculation/component/calculate.vue
@@ -0,0 +1,120 @@
+
+
diff --git a/src/views/convolution/costCalculation/index.vue b/src/views/convolution/costCalculation/index.vue
new file mode 100644
index 0000000..5d2dff8
--- /dev/null
+++ b/src/views/convolution/costCalculation/index.vue
@@ -0,0 +1,190 @@
+
+
diff --git a/src/views/convolution/singleLineQuery/index.vue b/src/views/convolution/singleLineQuery/index.vue
new file mode 100644
index 0000000..fba8d30
--- /dev/null
+++ b/src/views/convolution/singleLineQuery/index.vue
@@ -0,0 +1,71 @@
+
+
diff --git a/src/views/convolution/treeQuery/index.vue b/src/views/convolution/treeQuery/index.vue
new file mode 100644
index 0000000..c44b0c0
--- /dev/null
+++ b/src/views/convolution/treeQuery/index.vue
@@ -0,0 +1,207 @@
+
+
diff --git a/src/views/miningAnalysis/statistics/index.vue b/src/views/miningAnalysis/statistics/index.vue
new file mode 100644
index 0000000..581b0bd
--- /dev/null
+++ b/src/views/miningAnalysis/statistics/index.vue
@@ -0,0 +1,143 @@
+
+
diff --git a/vite.config.js b/vite.config.js
index 52bdc52..de44ffd 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -52,8 +52,8 @@ export default defineConfig(({ mode, command }) => {
proxy: {
// https://cn.vitejs.dev/config/#server-proxy
"/qomo": {
- target: "http://172.16.0.241:8095", //wq
- // target: "http://172.16.0.87:8095", //bgy
+ // target: "http://172.16.0.241:8095", //wq
+ target: "http://172.16.0.214:8095", //bgy
// target: "http://192.168.50.9:8095",
changeOrigin: true,
pathRewrite: {