Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
176262b0
Commit
176262b0
authored
Oct 25, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
f8c27370
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
107 additions
and
13 deletions
+107
-13
LemonCloudSubjects.vue
src/pages/financial/Kingdee/LemonCloudSubjects.vue
+71
-10
SubjectContrast.vue
src/pages/financial/Kingdee/SubjectContrast.vue
+35
-3
project.vue
src/pages/financial/Kingdee/project.vue
+1
-0
No files found.
src/pages/financial/Kingdee/LemonCloudSubjects.vue
View file @
176262b0
...
...
@@ -128,8 +128,14 @@
<
template
>
<div
class=
"flexOne currentManage page-body"
>
<div
class=
"query-box"
>
校区:
<el-select
filterable
v-model=
'msg.BranchId'
@
change=
"getList"
>
<el-option
label=
"不限"
value=
"0"
></el-option>
<el-option
v-for=
"(item,index) in TheAliasList"
:label=
"item.Name"
:value=
'item.Id'
:key=
"index"
>
</el-option>
</el-select>
<ul>
<li>
<q-btn
color=
"primary"
size=
"11px"
label=
"导入"
@
click=
"outerVisible=true"
style=
"marginRight:10px"
/>
</li>
...
...
@@ -145,6 +151,7 @@
<th>
科目代码
</th>
<th>
科目类别
</th>
<th>
余额方向
</th>
<th>
公司
</th>
</tr>
<tr
v-for=
"(item,index) in DataList"
:key=
"index"
>
<td>
{{
item
.
Name
}}
</td>
...
...
@@ -158,6 +165,9 @@
<span
v-if=
"item.Direction==1"
>
借
</span>
<span
v-if=
"item.Direction==2"
>
贷
</span>
</td>
<td>
{{
item
.
BranchName
}}
</td>
</tr>
</table>
<div
class=
"noData"
v-if=
"DataList&&DataList.length==0"
>
...
...
@@ -175,14 +185,30 @@
</div>
-->
</div>
<el-dialog
custom-class=
'w700'
title=
"导入"
:visible
.
sync=
"outerVisible"
center
>
<el-upload
style=
"text-align: center;"
drag
class=
"upload-demo"
<el-form
class=
"clearfix"
:model=
"addMsg"
ref=
"addMsg"
:rules=
"rules"
label-width=
"100px"
>
<el-row>
<el-col
:span=
"5"
>
<el-form-item
label=
"公司"
prop=
"BranchId"
>
<el-select
filterable
v-model=
'addMsg.BranchId'
>
<!--
<el-option
label=
"不限"
value=
0
></el-option>
-->
<el-option
v-for=
"(item,index) in TheAliasList"
:label=
"item.Name"
:value=
'item.Id'
:key=
"index"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
v-if=
"addMsg.BranchId"
>
<el-upload
style=
"text-align: center;"
drag
class=
"upload-demo"
:action=
"importFileUrl2"
:on-success=
"handleAvatarSuccess"
:before-upload=
"beforeAvatarUpload"
>
<i
class=
"el-icon-upload"
></i>
<div
class=
"el-upload__text"
>
将文件拖到此处,或
<em>
点击上传
</em></div>
<!--
<div
slot=
"tip"
class=
"el-upload__tip"
>
只能上传Excel文件
</div>
-->
</el-upload>
<i
class=
"el-icon-upload"
></i>
<div
class=
"el-upload__text"
>
将文件拖到此处,或
<em>
点击上传
</em></div>
<!--
<div
slot=
"tip"
class=
"el-upload__tip"
>
只能上传Excel文件
</div>
-->
</el-upload>
</el-col>
</el-row>
</el-form>
</el-dialog>
...
...
@@ -192,13 +218,22 @@
export
default
{
data
()
{
return
{
addMsg
:{},
rules
:
{
//表单必填验证
BranchId
:
[{
required
:
true
,
message
:
'请选择公司'
,
trigger
:
'change'
}]
},
addMsg
:{
BranchId
:
''
},
noData
:
false
,
text
:
''
,
imageUrl
:
''
,
outerVisible
:
false
,
msg
:{
BranchId
:
0
,
BranchId
:
'0'
,
},
DataList
:[],
loading
:
false
,
...
...
@@ -206,23 +241,49 @@
total
:
0
,
importFileUrl2
:
""
,
downList
:
""
,
TheAliasList
:[],
}
},
created
(){
let
userInfo
=
this
.
getLocalStorage
();
this
.
importFileUrl2
=
this
.
domainManager
().
UploadFileUrl
+
"?cmd=dmc_post_LocalFileUpload&KingdeeBId=0&Type=10&fileType=1&fileLimit=1&EmployeeId="
+
userInfo
.
Id
+
'&RB_Group_id='
+
userInfo
.
Group_Id
+
'&RB_Group_id='
+
userInfo
.
Group_Id
+
'&BranchId='
+
this
.
addMsg
.
BranchId
;
this
.
downList
=
this
.
domainManager
().
LocalTemplateFileDownLoadUrl
+
"/Upload/Template/未认款导入模板.xls"
;
this
.
getList
();
this
.
Financial_post_GetEduBranchEnumList
()
},
mounted
(){
},
methods
:
{
Financial_post_GetEduBranchEnumList
()
{
this
.
apipost
(
'Financial_post_GetEduBranchEnumList'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
TheAliasList
=
res
.
data
.
data
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{})
},
submitForm
(
addMsg
)
{
let
that
=
this
;
that
.
$refs
[
addMsg
].
validate
((
valid
)
=>
{
if
(
valid
)
{
}
else
{
return
false
;
}
});
},
beforeAvatarUpload
(
file
)
{
return
;
let
that
=
this
;
// that.submitForm('addMsg');
if
(
!
that
.
addMsg
.
BranchId
)
{
this
.
Error
(
this
.
$t
(
'请选择公司'
));
}
return
that
.
addMsg
.
BranchId
},
//上传
handleAvatarSuccess
(
res
,
file
)
{
...
...
src/pages/financial/Kingdee/SubjectContrast.vue
View file @
176262b0
...
...
@@ -121,6 +121,14 @@
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
<el-form-item
label=
"公司"
prop=
"BranchId"
>
<el-select
filterable
v-model=
'addMsg.BranchId'
@
change=
"GetKingdeeSubjectList"
>
<el-option
v-for=
"(item,index) in TheAliasList"
:label=
"item.Name"
:value=
'item.Id'
:key=
"index"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
<el-form-item
label=
"科目"
prop=
"SubjectId"
>
<el-select
filterable
v-model=
'addMsg.SubjectId'
>
...
...
@@ -147,6 +155,7 @@
},
data
()
{
return
{
TheAliasList
:[],
title
:
''
,
addLoading
:
true
,
DataList
:
[],
...
...
@@ -170,6 +179,11 @@
message
:
'请选择类型'
,
trigger
:
'change'
}],
BranchId
:
[{
required
:
true
,
message
:
'请选择公司'
,
trigger
:
'change'
}],
TargetId
:
[{
required
:
true
,
message
:
'请选择费用'
,
...
...
@@ -177,11 +191,12 @@
}],
SubjectId
:
[{
required
:
true
,
message
:
'请选择科目'
,
message
:
'请选择
公司再选
科目'
,
trigger
:
'change'
}]
},
addMsg
:
{
BranchId
:
''
,
Type
:
2
,
TargetId
:
''
,
SubjectId
:
''
...
...
@@ -215,13 +230,24 @@
},
created
()
{
this
.
getList
();
this
.
GetKingdeeSubjectList
()
// this.GetKingdeeSubjectList()
this
.
Financial_post_GetEduBranchEnumList
()
},
mounted
()
{
},
methods
:
{
Financial_post_GetEduBranchEnumList
()
{
this
.
apipost
(
'Financial_post_GetEduBranchEnumList'
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
TheAliasList
=
res
.
data
.
data
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{})
},
GetKingdeeSubjectList
()
{
this
.
msg
.
BranchId
=
this
.
addMsg
.
BranchId
this
.
apipost
(
'Financial_post_GetKingdeeSubjectList'
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
DataList
=
res
.
data
.
data
;
...
...
@@ -247,7 +273,11 @@
return
this
.
$message
.
error
(
'请选择科目'
)
}
this
.
addLoading
=
false
this
.
apipost
(
'Financial_post_SetCostTypeKingdeeRelation'
,
this
.
addMsg
,
res
=>
{
this
.
apipost
(
'Financial_post_SetCostTypeKingdeeRelation'
,
{
Type
:
this
.
addMsg
.
Type
,
TargetId
:
this
.
addMsg
.
TargetId
,
SubjectId
:
this
.
addMsg
.
SubjectId
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
addLoading
=
true
this
.
addShow
=
false
;
...
...
@@ -264,6 +294,7 @@
},
cancelEdit
(
t
)
{
// 取消修改、新增
this
.
addMsg
=
{
BranchId
:
''
,
Type
:
2
,
TargetId
:
''
,
SubjectId
:
''
...
...
@@ -275,6 +306,7 @@
//重置表单
resetInfo
()
{
var
msg
=
{
BranchId
:
''
,
Type
:
2
,
TargetId
:
''
,
SubjectId
:
''
...
...
src/pages/financial/Kingdee/project.vue
View file @
176262b0
<
style
scoped
>
@import
"../css/cssReset.css"
;
.suject-title-box
{
border-bottom
:
1px
solid
#dedede
;
}
...
...
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