Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
K
klck
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
位宇华
klck
Commits
a4fb04dd
Commit
a4fb04dd
authored
Jul 05, 2024
by
刘_震
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据编码找到对应的一级,二级分类名称以及前端代码
parent
528ea3fb
Changes
23
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
1517 additions
and
614 deletions
+1517
-614
ruoyi-ui/README.md
ruoyi-ui/README.md
+1
-1
ruoyi-ui/src/Wages/convers.js
ruoyi-ui/src/Wages/convers.js
+189
-106
ruoyi-ui/src/api/conversion/index.js
ruoyi-ui/src/api/conversion/index.js
+71
-16
ruoyi-ui/src/conversion/LinxiMine.js
ruoyi-ui/src/conversion/LinxiMine.js
+7
-7
ruoyi-ui/src/conversion/MoneyMine.js
ruoyi-ui/src/conversion/MoneyMine.js
+0
-11
ruoyi-ui/src/conversion/TangshanMin.js
ruoyi-ui/src/conversion/TangshanMin.js
+0
-18
ruoyi-ui/src/conversion/YunFei.js
ruoyi-ui/src/conversion/YunFei.js
+0
-25
ruoyi-ui/src/conversion/ZhongRun.js
ruoyi-ui/src/conversion/ZhongRun.js
+0
-1
ruoyi-ui/src/conversion/conversion.js
ruoyi-ui/src/conversion/conversion.js
+103
-58
ruoyi-ui/src/conversion/hongMine.js
ruoyi-ui/src/conversion/hongMine.js
+0
-2
ruoyi-ui/src/conversion/lvMine.js
ruoyi-ui/src/conversion/lvMine.js
+1
-1
ruoyi-ui/src/utils/tzc.js
ruoyi-ui/src/utils/tzc.js
+134
-208
ruoyi-ui/src/views/system/Wages/TangshanWages.vue
ruoyi-ui/src/views/system/Wages/TangshanWages.vue
+10
-3
ruoyi-ui/src/views/system/supplies/salarySummary/index.vue
ruoyi-ui/src/views/system/supplies/salarySummary/index.vue
+773
-144
ruoyi-ui/src/views/system/supplies/salarySummaryintermediateTabl/index.vue
...s/system/supplies/salarySummaryintermediateTabl/index.vue
+12
-11
ruoyi-ui/vue.config.js
ruoyi-ui/vue.config.js
+11
-2
ruoyi-wages/src/main/java/com/ruoyi/system/controller/AsiccSuppliesController.java
.../com/ruoyi/system/controller/AsiccSuppliesController.java
+35
-0
ruoyi-wages/src/main/java/com/ruoyi/system/mapper/AsiccSuppliesMapper.java
...ain/java/com/ruoyi/system/mapper/AsiccSuppliesMapper.java
+20
-0
ruoyi-wages/src/main/java/com/ruoyi/system/model/wages/dao/AsiccDAO.java
.../main/java/com/ruoyi/system/model/wages/dao/AsiccDAO.java
+23
-0
ruoyi-wages/src/main/java/com/ruoyi/system/model/wages/vo/AsiccVo.java
...rc/main/java/com/ruoyi/system/model/wages/vo/AsiccVo.java
+17
-0
ruoyi-wages/src/main/java/com/ruoyi/system/service/AsiccSuppliesService.java
...n/java/com/ruoyi/system/service/AsiccSuppliesService.java
+16
-0
ruoyi-wages/src/main/java/com/ruoyi/system/service/impl/AsiccSuppliesServiceImpl.java
...m/ruoyi/system/service/impl/AsiccSuppliesServiceImpl.java
+57
-0
ruoyi-wages/src/main/resources/mapper/system/AsiccSuppliesMapper.xml
.../src/main/resources/mapper/system/AsiccSuppliesMapper.xml
+37
-0
No files found.
ruoyi-ui/README.md
View file @
a4fb04dd
## 开发
1
## 开发
```
bash
```
bash
# 克隆项目
# 克隆项目
...
...
ruoyi-ui/src/Wages/convers.js
View file @
a4fb04dd
This diff is collapsed.
Click to expand it.
ruoyi-ui/src/api/conversion/index.js
View file @
a4fb04dd
// 工资汇总
// 工资汇总
import
request
from
'
@/utils/request
'
import
request
from
"
@/utils/request
"
;
// 新增
// 新增
export
function
conversionSave
(
data
)
{
export
function
conversionSave
(
data
)
{
return
request
({
return
request
({
url
:
'
/conversion/save
'
,
url
:
"
/conversion/save
"
,
method
:
'
post
'
,
method
:
"
post
"
,
data
:
data
data
:
data
,
})
});
}
}
// 工资汇总列表
// 工资汇总列表
export
function
conversionGetWagesData
(
query
)
{
export
function
conversionGetWagesData
(
query
)
{
return
request
({
url
:
'
/conversion/getWagesData
'
,
method
:
'
get
'
,
params
:
query
})
return
request
({
url
:
"
/conversion/getWagesData
"
,
method
:
"
post
"
,
data
:
query
,
});
}
}
// 修改
// 修改
export
function
conversionUpdate
(
data
)
{
export
function
conversionUpdate
(
data
)
{
return
request
({
url
:
'
/conversion/update
'
,
method
:
'
post
'
,
data
})
return
request
({
url
:
"
/conversion/update
"
,
method
:
"
post
"
,
data
});
}
}
export
function
getWagesDataById
(
id
)
{
export
function
getWagesDataById
(
id
)
{
return
request
({
url
:
`/conversion/getWagesDataById/
${
id
}
`
,
method
:
'
get
'
})
return
request
({
url
:
`/conversion/getWagesDataById/
${
id
}
`
,
method
:
"
get
"
,
});
}
}
//唐山矿工资转换
//唐山矿工资转换
export
function
surface
(
data
)
{
export
function
surface
(
data
)
{
return
request
({
return
request
({
url
:
'
/wages/calculate/surface
'
,
url
:
"
/wages/calculate/surface
"
,
method
:
'
post
'
,
method
:
"
post
"
,
data
:
data
data
:
data
,
})
});
}
}
//获取最近的公式
//获取最近的公式
export
function
getRecentFormulas
(
id
)
{
export
function
getRecentFormulas
(
mineId
)
{
return
request
({
url
:
'
/conversion/recentFormulas
'
,
method
:
'
get
'
})
return
request
({
url
:
`/conversion/recentFormulas/
${
mineId
}
`
,
method
:
"
get
"
});
}
//=======林西矿接口
//
export
function
importLxWagesExcel
(
data
)
{
return
request
({
url
:
"
/wages/lxWages
"
,
method
:
"
post
"
,
headers
:
{
"
Content-Type
"
:
"
multipart/form-data
"
,
},
data
:
data
,
});
}
//林西矿工资汇总
export
function
lxSummary
(
data
)
{
return
request
({
url
:
"
/wages/lxSummary
"
,
method
:
"
post
"
,
data
:
data
,
});
}
}
//对照表接口
export
function
compilationExcel
(
data
)
{
return
request
({
url
:
"
/wages/compilation/excel
"
,
method
:
"
post
"
,
headers
:
{
"
Content-Type
"
:
"
multipart/form-data
"
,
},
data
:
data
,
});
}
//对照表列表查询
export
function
getWagesCompilationList
()
{
return
request
({
url
:
"
/wages/compilation/list
"
,
method
:
"
get
"
});
}
ruoyi-ui/src/conversion/LinxiMine.js
View file @
a4fb04dd
...
@@ -32,19 +32,19 @@ export function Linxi(names, Department, money, code, duplicateData, CompositeTa
...
@@ -32,19 +32,19 @@ export function Linxi(names, Department, money, code, duplicateData, CompositeTa
}
}
});
});
});
});
// 删除指定分类
// // 删除指定分类
const
filteredClassifications
=
[
"
研发费用
"
,
"
基金
"
,
"
安全费用
"
];
// const filteredClassifications = ["研发费用", "基金", "安全费用"];
money
=
money
.
filter
(
item
=>
!
filteredClassifications
.
includes
(
item
.
classify
));
// money = money.filter(item => !filteredClassifications.includes(item.classify));
// // 提取特定属性值相同的数据
// const Electromechanical = "机电制造分公司";
// money = money.filter(item => item.remark !== Electromechanical);
// 替换属性值
// 替换属性值
money
.
forEach
(
item
=>
{
money
.
forEach
(
item
=>
{
if
(
item
.
head
===
"
坑木
"
)
item
.
head
=
"
木材
"
;
if
(
item
.
head
===
"
坑木
"
)
item
.
head
=
"
木材
"
;
if
(
!
item
.
remark
)
item
.
v
.
name
=
"
基本生产-原煤
"
;
if
(
!
item
.
remark
)
item
.
v
.
name
=
"
基本生产-原煤
"
;
});
});
// 提取特定属性值相同的数据
const
Electromechanical
=
"
机电制造分公司
"
;
money
=
money
.
filter
(
item
=>
item
.
remark
!==
Electromechanical
);
// // 对比替换导入表和模板的列数
// // 对比替换导入表和模板的列数
codess
.
forEach
(
code
=>
{
codess
.
forEach
(
code
=>
{
let
codeLength
=
String
(
code
.
code
).
length
;
let
codeLength
=
String
(
code
.
code
).
length
;
...
...
ruoyi-ui/src/conversion/MoneyMine.js
View file @
a4fb04dd
...
@@ -312,17 +312,6 @@ export function MoneyMine(money, DepartmentColumns, name, materianame, c, Compos
...
@@ -312,17 +312,6 @@ export function MoneyMine(money, DepartmentColumns, name, materianame, c, Compos
Fusion
.
v
.
m
=
item
.
v
.
v
Fusion
.
v
.
m
=
item
.
v
.
v
CompositeTable
[
0
][
"
celldata
"
].
push
(
Fusion
)
CompositeTable
[
0
][
"
celldata
"
].
push
(
Fusion
)
})
})
// 替换金额所在列和行相同的模板表中的数据
//金额所在列和行,去模板表中查找,如果行列一致则替换
// for (let i = 0; i < duplicateData.length; i++) {
// // // 对比 c 和 r 是否与 CompositeTable[0]["celldata"] 中相应对象相同
// for (let k = 0; k < CompositeTable[0]["celldata"].length; k++) {
// if (duplicateData[i].r === CompositeTable[0]["celldata"][k].r && duplicateData[i].c === CompositeTable[0]["celldata"][k].c) {
// // 如果相同,则进行替换
// CompositeTable[0]["celldata"][k] = duplicateData[i];
// }
// }
// }
let
duplic
=
{
let
duplic
=
{
duplicateData
:
duplicateData
,
duplicateData
:
duplicateData
,
CompositeTable
:
CompositeTable
CompositeTable
:
CompositeTable
...
...
ruoyi-ui/src/conversion/TangshanMin.js
View file @
a4fb04dd
...
@@ -31,21 +31,6 @@ export function Tangshan(money, c, name, CompositeTable, headRow, researchs) {
...
@@ -31,21 +31,6 @@ export function Tangshan(money, c, name, CompositeTable, headRow, researchs) {
}
}
return
null
;
return
null
;
}
}
// money.forEach(obj => {
// researchs.forEach(item => {
// if (obj.r == item.r) {
// obj.research = item.v.v
// }
// })
// research.forEach(item => {
// if (obj.research == item.old) {
// if (item.new) {
// obj.research = item.new
// }
// }
// })
// })
let
targetValue
=
"
器材大类
"
;
let
targetValue
=
"
器材大类
"
;
let
resultObject
=
findValueInArray
(
c
,
targetValue
);
let
resultObject
=
findValueInArray
(
c
,
targetValue
);
let
material
=
c
.
flat
().
filter
(
obj
=>
obj
.
c
&&
obj
.
c
==
resultObject
.
c
&&
obj
.
r
>
headRow
)
let
material
=
c
.
flat
().
filter
(
obj
=>
obj
.
c
&&
obj
.
c
==
resultObject
.
c
&&
obj
.
r
>
headRow
)
...
@@ -64,9 +49,6 @@ export function Tangshan(money, c, name, CompositeTable, headRow, researchs) {
...
@@ -64,9 +49,6 @@ export function Tangshan(money, c, name, CompositeTable, headRow, researchs) {
money
[
i
].
v
.
material
=
material
[
i
].
v
.
v
;
money
[
i
].
v
.
material
=
material
[
i
].
v
.
v
;
}
}
}
}
// money = money.filter(obj => obj.v.name == "基本生产" || obj.v.name == "制造费用" || obj.v.name.includes('洗煤') || obj.v.name == "其他业务成本" || obj.v.name == "其他费用" || obj.v.name == "管理费用" || obj.v.name == "销售费用")
//对费用来源列和材料分类列进行处理
//对费用来源列和材料分类列进行处理
money
.
forEach
(
obj
=>
{
money
.
forEach
(
obj
=>
{
if
(
!
obj
.
v
.
material
)
{
if
(
!
obj
.
v
.
material
)
{
...
...
ruoyi-ui/src/conversion/YunFei.js
View file @
a4fb04dd
...
@@ -97,31 +97,6 @@ export function YunFei(money, Department, code, name, codess, newArrayhong) {
...
@@ -97,31 +97,6 @@ export function YunFei(money, Department, code, name, codess, newArrayhong) {
}
}
};
};
});
});
// console.log(duplicateData)
// duplicateData.forEach(item => {
// const Fusion = {
// "r": '',
// "c": '',
// "v": {
// "ct": {
// "fa": "@",
// "t": "s"
// },
// "fs": 8,
// "ff": "微软雅黑",
// "tb": 2,
// "v": "",
// "qp": 1,
// "m": ""
// }
// };
// Fusion.r=item.r
// Fusion.c=item.c
// Fusion.v.v=item.v.v
// Fusion.v.m=item.v.v
// newArrayhong[0]["celldata"].push(Fusion)
// })
// 替换原始数据中的重复单元格数据
//金额所在列和行,去模板表中查找,如果行列一致则替换
//金额所在列和行,去模板表中查找,如果行列一致则替换
for
(
let
i
=
0
;
i
<
duplicateData
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
duplicateData
.
length
;
i
++
)
{
// // 对比 c 和 r 是否与 newArrayhong[0]["celldata"] 中相应对象相同
// // 对比 c 和 r 是否与 newArrayhong[0]["celldata"] 中相应对象相同
...
...
ruoyi-ui/src/conversion/ZhongRun.js
View file @
a4fb04dd
...
@@ -183,7 +183,6 @@ export function ZhongRun(Department, money, materianame, name, CompositeTable, q
...
@@ -183,7 +183,6 @@ export function ZhongRun(Department, money, materianame, name, CompositeTable, q
})
})
Secondcoloumn
.
forEach
(
item
=>
{
Secondcoloumn
.
forEach
(
item
=>
{
CompositeTable
[
0
].
celldata
.
forEach
(
obj
=>
{
CompositeTable
[
0
].
celldata
.
forEach
(
obj
=>
{
if
(
obj
.
v
&&
obj
.
v
.
v
&&
obj
.
v
.
v
.
includes
(
item
.
materianame
))
{
if
(
obj
.
v
&&
obj
.
v
.
v
&&
obj
.
v
.
v
.
includes
(
item
.
materianame
))
{
item
.
r
=
obj
.
r
item
.
r
=
obj
.
r
}
}
...
...
ruoyi-ui/src/conversion/conversion.js
View file @
a4fb04dd
This diff is collapsed.
Click to expand it.
ruoyi-ui/src/conversion/hongMine.js
View file @
a4fb04dd
...
@@ -14,7 +14,6 @@ export function hongMine(money, Department, code, name, codess, newArrayhong) {
...
@@ -14,7 +14,6 @@ export function hongMine(money, Department, code, name, codess, newArrayhong) {
for
(
let
i
=
0
;
i
<
money
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
money
.
length
;
i
++
)
{
//编码列
//编码列
if
(
money
[
i
].
r
==
code
[
i
].
r
)
{
if
(
money
[
i
].
r
==
code
[
i
].
r
)
{
money
[
i
].
code
=
code
[
i
].
v
.
v
;
money
[
i
].
code
=
code
[
i
].
v
.
v
;
}
}
...
@@ -27,7 +26,6 @@ export function hongMine(money, Department, code, name, codess, newArrayhong) {
...
@@ -27,7 +26,6 @@ export function hongMine(money, Department, code, name, codess, newArrayhong) {
money
[
i
].
v
.
name
=
name
[
i
].
v
.
v
;
money
[
i
].
v
.
name
=
name
[
i
].
v
.
v
;
}
}
}
}
console
.
log
(
money
)
money
=
money
.
filter
(
obj
=>
obj
.
v
.
name
==
'
成本费用
'
)
money
=
money
.
filter
(
obj
=>
obj
.
v
.
name
==
'
成本费用
'
)
//如果部门里包含洗煤,就给他放到洗煤里
//如果部门里包含洗煤,就给他放到洗煤里
money
.
forEach
((
item
)
=>
{
money
.
forEach
((
item
)
=>
{
...
...
ruoyi-ui/src/conversion/lvMine.js
View file @
a4fb04dd
...
@@ -189,7 +189,7 @@ export function lvMine(CompositeTable,cjson,codess,code) {
...
@@ -189,7 +189,7 @@ export function lvMine(CompositeTable,cjson,codess,code) {
}
}
}
}
}
}
duplicateData
=
duplicateData
.
filter
(
item
=>
!
item
.
v
.
name
.
includes
(
'
研发费用
'
)
&&!
item
.
v
.
name
.
includes
(
'
安全费用
'
)
&&!
item
.
v
.
name
.
includes
(
'
维简及井巷费
'
));
//
duplicateData = duplicateData.filter(item => !item.v.name.includes('研发费用')&&!item.v.name.includes('安全费用')&&!item.v.name.includes('维简及井巷费'));
let
duplic
=
{
let
duplic
=
{
duplicateData
:
duplicateData
,
duplicateData
:
duplicateData
,
CompositeTable
:
CompositeTable
CompositeTable
:
CompositeTable
...
...
ruoyi-ui/src/utils/tzc.js
View file @
a4fb04dd
This diff is collapsed.
Click to expand it.
ruoyi-ui/src/views/system/Wages/TangshanWages.vue
View file @
a4fb04dd
...
@@ -3,8 +3,11 @@
...
@@ -3,8 +3,11 @@
<el-form
ref=
"queryForm"
size=
"small"
:inline=
"true"
label-width=
"68px"
>
<el-form
ref=
"queryForm"
size=
"small"
:inline=
"true"
label-width=
"68px"
>
<el-form-item
label=
"模板"
prop=
"name"
>
<el-form-item
label=
"模板"
prop=
"name"
>
<el-select
v-model=
"selectedOption"
ref=
"mySelect"
size=
"mini"
filterable
placeholder=
"请选择您要查看的模板"
<el-select
v-model=
"selectedOption"
ref=
"mySelect"
size=
"mini"
filterable
placeholder=
"请选择您要查看的模板"
@
change=
"handleOptionChange"
>
@
change=
"handleOptionChange($event,
{
<el-option
v-for=
"item in depss"
:key=
"item.id"
:label=
"item.templateName"
:value=
"item.id"
name: '唐山矿',
id: '010101'
})">
<el-option
v-for=
"item in depss.filter(item => [1270,1248].includes(item.id))"
:key=
"item.id"
:label=
"item.templateName"
:value=
"item.id"
:disabled=
"item.disabled"
>
:disabled=
"item.disabled"
>
</el-option>
</el-option>
</el-select>
</el-select>
...
@@ -28,12 +31,16 @@
...
@@ -28,12 +31,16 @@
</el-col>
</el-col>
</el-row>
</el-row>
<el-dialog
title=
"取数规则"
:visible.sync=
"dialogTableVisible"
:close-on-click-modal=
"false"
:show-close=
"false"
>
<el-dialog
title=
"取数规则"
:visible.sync=
"dialogTableVisible"
:close-on-click-modal=
"false"
:show-close=
"false"
>
<el-form
label-width=
"120px"
>
<el-form
label-width=
"120px"
>
<el-form-item
v-for=
"(item, index) in jsonhead"
:key=
"index"
:label=
"`$
{item.label}`">
<el-form-item
v-for=
"(item, index) in jsonhead"
:key=
"index"
:label=
"`$
{item.label}`">
<el-input
v-model=
"item.value"
></el-input>
<el-input
v-model=
"item.value"
></el-input>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"handleClose()"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"initData()"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"initData()"
>
确 定
</el-button>
</span>
</span>
</el-dialog>
</el-dialog>
...
...
ruoyi-ui/src/views/system/supplies/salarySummary/index.vue
View file @
a4fb04dd
This diff is collapsed.
Click to expand it.
ruoyi-ui/src/views/system/supplies/salarySummaryintermediateTabl/index.vue
View file @
a4fb04dd
<!--todo 中间工资汇总-->
<
template
>
<
template
>
<div
class=
"app-container"
:class=
"
{'app-container1':views.luckysheet}" v-loading="views.loading">
<div
class=
"app-container"
:class=
"
{'app-container1':views.luckysheet}" v-loading="views.loading">
<template
v-if=
"!views.luckysheet"
>
<template
v-if=
"!views.luckysheet"
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
label-width=
"68px"
@
submit
.
native
.
prevent
>
<el-form
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
label-width=
"68px"
@
submit
.
native
.
prevent
>
<el-form-item
label=
"标题"
prop=
"historyName"
>
<el-form-item
label=
"年月"
prop=
"wageMonth"
>
<el-input
<el-date-picker
v-model=
"queryParams.wageMonth"
v-model=
"queryParams.historyName"
placeholder=
"请输入标题"
clearable
size=
"small"
size=
"mini"
@
keyup.enter.native=
"handleQuery"
value-format=
"yyyy-MM"
type=
"month"
placeholder=
"选择月"
></el-date-picker>
/>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
...
@@ -71,10 +71,10 @@
...
@@ -71,10 +71,10 @@
</
style
>
</
style
>
<
script
>
<
script
>
import
{
exportExcel
}
from
"
../../../../..
/public/exportExcel
"
import
{
exportExcel
}
from
"
/public/exportExcel
"
import
{
debounce
}
from
'
@/utils
'
import
{
debounce
}
from
'
@/utils
'
import
{
conversionGetWagesData
,
conversionUpdate
,
getWagesDataById
}
from
"
@/api/conversion
"
import
{
conversionGetWagesData
,
conversionUpdate
,
getWagesDataById
}
from
"
@/api/conversion
"
import
{
transformJson
,
tzcCreateData
,
gettransformJson
}
from
"
@/utils/tzc
"
import
{
transformJson
,
tzcCreateData
,
newGettransformJson
}
from
"
@/utils/tzc
"
import
{
getSuppliesTemplate
}
from
"
@/api/ruoyi-myLuckyexcel/myluckyexcel
"
import
{
getSuppliesTemplate
}
from
"
@/api/ruoyi-myLuckyexcel/myluckyexcel
"
export
default
{
export
default
{
...
@@ -86,7 +86,7 @@ export default {
...
@@ -86,7 +86,7 @@ export default {
total
:
0
,
total
:
0
,
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
historyName
:
null
,
wageMonth
:
null
,
},
},
views
:
{
views
:
{
//编辑还是查看 look 查看
//编辑还是查看 look 查看
...
@@ -128,7 +128,7 @@ export default {
...
@@ -128,7 +128,7 @@ export default {
let
template
=
await
getSuppliesTemplate
(
1248
)
let
template
=
await
getSuppliesTemplate
(
1248
)
let
optionsData
=
JSON
.
parse
(
template
.
rows
[
0
].
templateContent
);
let
optionsData
=
JSON
.
parse
(
template
.
rows
[
0
].
templateContent
);
// 获取数据
// 获取数据
let
objks
=
await
g
ettransformJson
(
luckysheet
.
getAllSheets
())
let
objks
=
await
newG
ettransformJson
(
luckysheet
.
getAllSheets
())
this
.
views
.
loading
=
false
;
this
.
views
.
loading
=
false
;
//value 手机号
//value 手机号
//this.currentRow.yearMonth 年月
//this.currentRow.yearMonth 年月
...
@@ -142,7 +142,6 @@ export default {
...
@@ -142,7 +142,6 @@ export default {
showinfobar
:
false
,
//是否显示顶部名称栏
showinfobar
:
false
,
//是否显示顶部名称栏
lang
:
"
zh
"
,
lang
:
"
zh
"
,
})
})
},
},
// 修改保存
// 修改保存
save
()
{
save
()
{
...
@@ -227,7 +226,9 @@ export default {
...
@@ -227,7 +226,9 @@ export default {
// 列表查询
// 列表查询
async
getList
()
{
async
getList
()
{
this
.
views
.
loading
=
true
this
.
views
.
loading
=
true
let
asyncConversionGetWagesData
=
await
conversionGetWagesData
(
this
.
queryParams
)
let
obj
=
{...
this
.
queryParams
};
delete
obj
.
total
;
let
asyncConversionGetWagesData
=
await
conversionGetWagesData
(
obj
)
this
.
views
.
loading
=
false
this
.
views
.
loading
=
false
this
.
historydataList
=
asyncConversionGetWagesData
?.
rows
||
0
this
.
historydataList
=
asyncConversionGetWagesData
?.
rows
||
0
this
.
queryParams
.
total
=
asyncConversionGetWagesData
?.
total
||
0
this
.
queryParams
.
total
=
asyncConversionGetWagesData
?.
total
||
0
...
...
ruoyi-ui/vue.config.js
View file @
a4fb04dd
...
@@ -33,10 +33,19 @@ module.exports = {
...
@@ -33,10 +33,19 @@ module.exports = {
proxy
:
{
proxy
:
{
// detail: https://cli.vuejs.org/config/#devserver-proxy
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
[
process
.
env
.
VUE_APP_BASE_API
]:
{
target
:
`http://192.168.0.61:8080`
,
// target: `http://192.168.0.192:8080`,
// target: `http://192.168.0.61:8080`,
// target: `http://192.168.111.228:8080`,
// target: `http://192.168.3.247:8080`,
// target: `http://192.168.3.241:8080`,
// target: `http://192.168.0.99:8080`,
// target: `http://192.168.0.99:8080`,
//target: `http://192.168.3.247:8080`,
// target: `http://localhost:5001`,
// target: `http://localhost:5001`,
//
target: `http://192.168.111.226:8080`,
target
:
`http://192.168.111.226:8080`
,
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
...
...
ruoyi-wages/src/main/java/com/ruoyi/system/controller/AsiccSuppliesController.java
0 → 100644
View file @
a4fb04dd
package
com.ruoyi.system.controller
;
import
com.ruoyi.common.core.domain.AjaxResult
;
import
com.ruoyi.system.model.wages.dao.AsiccDAO
;
import
com.ruoyi.system.model.wages.vo.AsiccVo
;
import
com.ruoyi.system.service.AsiccSuppliesService
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
import
java.util.Map
;
/**
* @author haiwe
* @date 2024/7/5
*/
@RestController
@RequestMapping
(
"/asicc"
)
@RequiredArgsConstructor
public
class
AsiccSuppliesController
{
private
final
AsiccSuppliesService
asiccSuppliesService
;
@PostMapping
(
"/data"
)
public
AjaxResult
getData
(
@RequestBody
AsiccDAO
asiccDAO
){
Map
<
String
,
Object
>
voList
=
asiccSuppliesService
.
getData
(
asiccDAO
);
if
(!
voList
.
isEmpty
())
{
return
AjaxResult
.
success
(
voList
);
}
else
{
return
AjaxResult
.
error
();
}
}
}
ruoyi-wages/src/main/java/com/ruoyi/system/mapper/AsiccSuppliesMapper.java
0 → 100644
View file @
a4fb04dd
package
com.ruoyi.system.mapper
;
import
com.ruoyi.system.domain.ActSupplies
;
import
com.ruoyi.system.domain.ActSuppliesImportCleaningAcc
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
/**
* @author haiwe
* @date 2024/7/5
*/
public
interface
AsiccSuppliesMapper
{
List
<
ActSuppliesImportCleaningAcc
>
selectByCodeAndMineId
(
@Param
(
"mineId"
)
String
mineId
,
@Param
(
"code"
)
String
code
);
ActSupplies
selectByCodes
(
@Param
(
"codes"
)
String
codes
);
ActSupplies
selectByOneLevel
(
@Param
(
"oneLevel"
)
String
oneLevel
);
}
ruoyi-wages/src/main/java/com/ruoyi/system/model/wages/dao/AsiccDAO.java
0 → 100644
View file @
a4fb04dd
package
com.ruoyi.system.model.wages.dao
;
import
com.ruoyi.system.domain.ActSuppliesImportCleaningAcc
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
* @author haiwe
* @date 2024/7/5
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public
class
AsiccDAO
{
private
String
mineId
;
private
List
<
String
>
codes
;
}
ruoyi-wages/src/main/java/com/ruoyi/system/model/wages/vo/AsiccVo.java
0 → 100644
View file @
a4fb04dd
package
com.ruoyi.system.model.wages.vo
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
/**
* @author haiwe
* @date 2024/7/5
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public
class
AsiccVo
{
private
String
oneLevel
;
private
String
twoLevel
;
}
ruoyi-wages/src/main/java/com/ruoyi/system/service/AsiccSuppliesService.java
0 → 100644
View file @
a4fb04dd
package
com.ruoyi.system.service
;
import
com.ruoyi.system.model.wages.dao.AsiccDAO
;
import
com.ruoyi.system.model.wages.vo.AsiccVo
;
import
java.util.List
;
import
java.util.Map
;
/**
* @author haiwe
* @date 2024/7/5
*/
public
interface
AsiccSuppliesService
{
Map
<
String
,
Object
>
getData
(
AsiccDAO
asiccDAO
);
}
ruoyi-wages/src/main/java/com/ruoyi/system/service/impl/AsiccSuppliesServiceImpl.java
0 → 100644
View file @
a4fb04dd
package
com.ruoyi.system.service.impl
;
import
com.ruoyi.system.domain.ActSupplies
;
import
com.ruoyi.system.domain.ActSuppliesImportCleaningAcc
;
import
com.ruoyi.system.mapper.AsiccSuppliesMapper
;
import
com.ruoyi.system.model.wages.dao.AsiccDAO
;
import
com.ruoyi.system.model.wages.vo.AsiccVo
;
import
com.ruoyi.system.service.AsiccSuppliesService
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.stereotype.Service
;
import
java.util.*
;
/**
* @author haiwe
* @date 2024/7/5
*/
@Service
@RequiredArgsConstructor
public
class
AsiccSuppliesServiceImpl
implements
AsiccSuppliesService
{
private
final
AsiccSuppliesMapper
asiccSuppliesMapper
;
@Override
public
Map
<
String
,
Object
>
getData
(
AsiccDAO
asiccDAO
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
List
<
String
>
codesList
=
asiccDAO
.
getCodes
();
String
mineId
=
asiccDAO
.
getMineId
();
for
(
String
code
:
codesList
)
{
List
<
String
>
voList
=
new
ArrayList
<>();
List
<
ActSuppliesImportCleaningAcc
>
accList
=
asiccSuppliesMapper
.
selectByCodeAndMineId
(
mineId
,
code
);
accList
.
forEach
(
acc
->
{
String
codes
=
acc
.
getCategories
();
ActSupplies
supplies
=
asiccSuppliesMapper
.
selectByCodes
(
codes
);
Long
level
=
supplies
.
getLevel
();
if
(
level
==
1
)
{
String
suppliesName
=
supplies
.
getSuppliesName
();
voList
.
add
(
suppliesName
);
voList
.
add
(
null
);
map
.
put
(
code
,
voList
);
}
else
if
(
level
==
2
){
//此时为二级分类名称
String
twoSupplies
=
supplies
.
getSuppliesName
();
//获取对应的一级分类
String
oneLevel
=
supplies
.
getOneLevel
();
ActSupplies
suppliesInfo
=
asiccSuppliesMapper
.
selectByOneLevel
(
oneLevel
);
String
oneSupplies
=
suppliesInfo
.
getSuppliesName
();
voList
.
add
(
oneSupplies
);
voList
.
add
(
twoSupplies
);
map
.
put
(
code
,
voList
);
}
});
}
return
map
;
}
}
ruoyi-wages/src/main/resources/mapper/system/AsiccSuppliesMapper.xml
0 → 100644
View file @
a4fb04dd
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.ruoyi.system.mapper.AsiccSuppliesMapper"
>
<resultMap
type=
"com.ruoyi.system.domain.ActSupplies"
id=
"ActSuppliesResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"oneLevel"
column=
"one_level"
/>
<result
property=
"twoLevel"
column=
"two_level"
/>
<result
property=
"threeLevel"
column=
"three_level"
/>
<result
property=
"codes"
column=
"codes"
/>
<result
property=
"suppliesName"
column=
"supplies_name"
/>
<result
property=
"level"
column=
"level"
/>
<result
property=
"status"
column=
"status"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
</resultMap>
<select
id=
"selectByCodeAndMineId"
resultType=
"com.ruoyi.system.domain.ActSuppliesImportCleaningAcc"
>
select distinct(categories)
from act_supplies_import_cleaning_copy1
where ssk_id = #{mineId} and code_column = #{code}
</select>
<select
id=
"selectByCodes"
resultMap=
"ActSuppliesResult"
>
select one_level, two_level, three_level, codes, supplies_name, level, status
from act_supplies
where codes = #{codes}
</select>
<select
id=
"selectByOneLevel"
resultMap=
"ActSuppliesResult"
>
select one_level, two_level, three_level, codes, supplies_name, level, status
from act_supplies
where one_level = #{oneLevel} and level = 1
</select>
</mapper>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment