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
14748111
Commit
14748111
authored
Oct 25, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
1537f1c0
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1670 additions
and
0 deletions
+1670
-0
SubjectContrast.vue
src/pages/financial/Kingdee/SubjectContrast.vue
+343
-0
currency.vue
src/pages/financial/Kingdee/currency.vue
+350
-0
project.vue
src/pages/financial/Kingdee/project.vue
+355
-0
bank.vue
src/pages/financial/Kingdee/suject/bank.vue
+138
-0
cash.vue
src/pages/financial/Kingdee/suject/cash.vue
+128
-0
cost.vue
src/pages/financial/Kingdee/suject/cost.vue
+341
-0
routes.js
src/router/routes.js
+15
-0
No files found.
src/pages/financial/Kingdee/SubjectContrast.vue
0 → 100644
View file @
14748111
<
style
scoped
>
.suject-title-box
{
border-bottom
:
1px
solid
#dedede
;
}
.suject-title-box
span
{
padding
:
0
5px
10px
5px
;
display
:
inline-block
;
margin-right
:
15px
;
cursor
:
pointer
;
}
.suject-title-box
span
.active
{
color
:
#2961fe
;
border-bottom
:
2px
solid
#2961fe
;
}
._vMG_edit
{
display
:
none
;
position
:
absolute
;
bottom
:
0
;
left
:
0
;
right
:
0
;
font-family
:
'PingFangSc-Fine'
;
border-top
:
3px
solid
#38425d
;
background-color
:
#fff
;
padding
:
10px
;
z-index
:
999
;
/* margin: 15px;
width: calc(100% - 30px); */
}
._vMG_edit
._tit
{
padding-left
:
10px
;
border-left
:
3px
solid
#E95252
;
font-size
:
16px
;
color
:
#000000
}
._vMG_edit
._tit
span
{
color
:
#666666
;
font-size
:
14px
}
._edHeight
{
height
:
400px
;
}
.edHeight
{
display
:
block
!important
;
min-height
:
230px
;
}
._add_saveBtn
{
text-align
:
right
;
}
</
style
>
<
template
>
<div
class=
"flexOne currentManage page-body"
style=
"position: relative;"
>
<div
class=
"query-box"
>
<ul>
<li>
<q-btn
color=
"primary"
size=
"11px"
label=
"关联导入"
@
click=
"title='关联',outerVisible=true,clickDaoRu(11)"
style=
"marginRight:10px"
/>
<q-btn
color=
"primary"
size=
"11px"
label=
"支出导入"
@
click=
"title='支出',outerVisible=true,clickDaoRu(12)"
style=
"marginRight:10px"
/>
<q-btn
color=
"primary"
size=
"11px"
label=
"收入导入"
@
click=
"title='收入',outerVisible=true,clickDaoRu(13)"
/>
<!--
<q-btn
color=
"primary"
size=
"11px"
>
<template
v-slot:default
>
<a
style=
"color:#fff;width:84px;"
:href=
"downList"
>
导入模板下载
</a>
</
template
>
</q-btn>
-->
</li>
</ul>
<div
class=
"suject-title-box"
>
<span
v-for=
"(item,index) in titleList"
:key=
"index"
:class=
"{'active':item.Id==titleType}"
@
click=
"clickTitle(item)"
>
{{item.Name}}
</span>
</div>
</div>
<div
class=
"cm_content _scrollbar"
style=
"position: absolute;top:117px;bottom: 0;left: 15px;right:15px;overflow-y: scroll;"
>
<!-- 银行 -->
<bankForm
v-if=
"titleType==2"
:list=
"RBankList"
:loading=
"loading"
@
clickEdit=
"clickEdit"
@
success=
"getList"
:type=
"titleType"
></bankForm>
<!-- 现金 -->
<cashForm
v-if=
"titleType==3"
:list=
"RCashList"
:loading=
"loading"
@
clickEdit=
"clickEdit"
@
success=
"getList"
:type=
"titleType"
></cashForm>
<!-- 费用 -->
<costForm
v-if=
"titleType==1"
:list=
"RCostList"
:loading=
"loading"
@
clickEdit=
"clickEdit"
@
success=
"getList"
:type=
"titleType"
></costForm>
</div>
<el-dialog
custom-class=
'w700'
:title=
"title+'导入'"
:visible
.
sync=
"outerVisible"
center
>
<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>
</el-dialog>
<div
class=
"_vMG_edit"
:class=
"addShow==true?'edHeight':''"
>
<el-row
style=
"height:48px"
>
<el-col
:span=
"20"
>
<p
class=
"_tit"
>
{{text}}
</p>
</el-col>
<el-col
:span=
"4"
class=
"_add_saveBtn"
>
<q-btn
color=
"primary"
size=
"11px"
:label=
"$t('pub.saveBtn')"
@
click=
"addLoading?submitForm('addMsg'):''"
style=
"marginRight:10px"
/>
<q-btn
text-color=
"primary"
size=
"11px"
:label=
"$t('pub.cancelBtn')"
@
click=
"cancelEdit(),resetForm('addMsg'),addShow=false"
/>
</el-col>
</el-row>
<el-form
class=
"clearfix"
:model=
"addMsg"
ref=
"addMsg"
:rules=
"rules"
label-width=
"100px"
>
<el-row>
<el-col
:span=
"5"
>
<el-form-item
label=
"类型"
prop=
"Type"
disabled
>
<el-select
filterable
v-model=
'addMsg.Type'
>
<el-option
v-for=
"(item,index) in typeList"
: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'
>
<el-option
v-for=
"(item,index) in DataList"
:label=
"item.Name"
:value=
'item.Id'
:key=
"index"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
</template>
<
script
>
import
bankForm
from
'./suject/bank'
import
cashForm
from
'./suject/cash'
import
costForm
from
'./suject/cost'
export
default
{
components
:
{
bankForm
,
cashForm
,
costForm
},
data
()
{
return
{
title
:
''
,
addLoading
:
true
,
DataList
:
[],
typeList
:
[{
Name
:
'银行'
,
Id
:
2
},
{
Name
:
'现金'
,
Id
:
3
},
{
Name
:
'费用'
,
Id
:
1
},
],
text
:
'新增银行对照表'
,
rules
:
{
//表单必填验证
Type
:
[{
required
:
true
,
message
:
'请选择类型'
,
trigger
:
'change'
}],
TargetId
:
[{
required
:
true
,
message
:
'请选择费用'
,
trigger
:
'change'
}],
SubjectId
:
[{
required
:
true
,
message
:
'请选择科目'
,
trigger
:
'change'
}]
},
addMsg
:
{
Type
:
2
,
TargetId
:
''
,
SubjectId
:
''
},
addShow
:
false
,
titleType
:
2
,
titleList
:
[{
Name
:
'银行对照表'
,
Id
:
2
},
{
Name
:
'现金对照表'
,
Id
:
3
},
{
Name
:
'费用对照表'
,
Id
:
1
},
],
msg
:
{
BranchId
:
0
,
},
RBankList
:
[],
//银行
RCashList
:
[],
//现金
RCostList
:
[],
//费用
loading
:
false
,
outerVisible
:
false
,
importFileUrl2
:
""
,
downList
:
""
,
}
},
created
()
{
this
.
getList
();
this
.
GetKingdeeSubjectList
()
},
mounted
()
{
},
methods
:
{
GetKingdeeSubjectList
()
{
this
.
apipost
(
'Financial_post_GetKingdeeSubjectList'
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
DataList
=
res
.
data
.
data
;
// this.total=res.data.data.count;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{})
},
submitForm
(
addMsg
)
{
//提交创建、修改表单
let
that
=
this
;
that
.
$refs
[
addMsg
].
validate
((
valid
)
=>
{
if
(
valid
)
{
that
.
addFlightmodule
()
}
else
{
return
false
;
}
});
},
addFlightmodule
()
{
//添加
this
.
addMsg
.
Type
=
this
.
titleType
if
(
!
this
.
addMsg
.
SubjectId
)
{
return
this
.
$message
.
error
(
'请选择科目'
)
}
this
.
addLoading
=
false
this
.
apipost
(
'Financial_post_SetCostTypeKingdeeRelation'
,
this
.
addMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
addLoading
=
true
this
.
addShow
=
false
;
this
.
Success
(
res
.
data
.
message
);
this
.
getList
()
}
else
{
this
.
addLoading
=
true
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{})
},
resetForm
(
formName
)
{
//弹出框取消 初始化谈框内表单
this
.
$refs
[
formName
].
resetFields
();
},
cancelEdit
(
t
)
{
// 取消修改、新增
this
.
addMsg
=
{
Type
:
2
,
TargetId
:
''
,
SubjectId
:
''
}
if
(
!
t
)
{
this
.
addShow
=
false
}
},
//重置表单
resetInfo
()
{
var
msg
=
{
Type
:
2
,
TargetId
:
''
,
SubjectId
:
''
}
this
.
addMsg
=
msg
;
},
clickEdit
(
item
)
{
this
.
addMsg
.
TargetId
=
item
.
ID
this
.
addMsg
.
SubjectId
=
item
.
SubjectId
this
.
addShow
=
true
},
clickTitle
(
item
)
{
this
.
addShow
=
false
this
.
titleType
=
item
.
Id
this
.
addMsg
.
Type
=
item
.
Id
if
(
item
.
Id
==
2
)
{
this
.
text
=
'新增银行对照表'
}
if
(
item
.
Id
==
3
)
{
this
.
text
=
'新增现金对照表'
}
if
(
item
.
Id
==
1
)
{
this
.
text
=
'新增费用对照表'
}
},
// type 1关联 2支出 3收入
clickDaoRu
(
type
)
{
let
userInfo
=
this
.
getLocalStorage
();
// this.importFileUrl2 = this.domainManager().UploadFileUrl +
// "?cmd=dmc_post_LocalFileUpload&KingdeeBId=0&Type=11&fileType=1&fileLimit=10&EmployeeId=" + userInfo.Id +
// '&RB_Group_id=' + userInfo.Group_Id;
this
.
importFileUrl2
=
this
.
domainManager
().
UploadFileUrl
+
`?cmd=dmc_post_LocalFileUpload&KingdeeBId=0&Type=
${
type
}
&fileType=1&fileLimit=10&EmployeeId=
${
userInfo
.
Id
}
&RB_Group_id=
${
userInfo
.
Group_Id
}
`
;
this
.
downList
=
this
.
domainManager
().
LocalTemplateFileDownLoadUrl
+
"/Upload/Template/未认款导入模板.xls"
;
},
beforeAvatarUpload
(
file
)
{
return
;
},
//上传
handleAvatarSuccess
(
res
,
file
)
{
if
(
res
.
resultCode
==
1
)
{
this
.
Success
(
res
.
message
);
this
.
outerVisible
=
false
;
this
.
getList
();
}
else
{
this
.
Error
(
res
.
message
);
}
},
getList
()
{
this
.
loading
=
true
;
this
.
apipost
(
'Financial_post_GetCostTypeKingdeeReList'
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
RBankList
=
res
.
data
.
data
.
RBankList
;
this
.
RCashList
=
res
.
data
.
data
.
RCashList
;
this
.
RCostList
=
res
.
data
.
data
.
RCostList
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{})
},
},
}
</
script
>
\ No newline at end of file
src/pages/financial/Kingdee/currency.vue
0 → 100644
View file @
14748111
<
style
scoped
>
.suject-title-box
{
border-bottom
:
1px
solid
#dedede
;
}
.suject-title-box
span
{
padding
:
0
5px
10px
5px
;
display
:
inline-block
;
margin-right
:
15px
;
cursor
:
pointer
;
}
.suject-title-box
span
.active
{
color
:
#2961fe
;
border-bottom
:
2px
solid
#2961fe
;
}
._vMG_edit
{
display
:
none
;
position
:
absolute
;
bottom
:
0
;
left
:
0
;
right
:
0
;
font-family
:
'PingFangSc-Fine'
;
border-top
:
3px
solid
#38425d
;
background-color
:
#fff
;
padding
:
10px
;
z-index
:
999
;
/* margin: 15px;
width: calc(100% - 30px); */
}
._vMG_edit
._tit
{
padding-left
:
10px
;
border-left
:
3px
solid
#E95252
;
font-size
:
16px
;
color
:
#000000
}
._vMG_edit
._tit
span
{
color
:
#666666
;
font-size
:
14px
}
._edHeight
{
height
:
400px
;
}
.edHeight
{
display
:
block
!important
;
min-height
:
230px
;
}
._add_saveBtn
{
text-align
:
right
;
}
</
style
>
<
template
>
<div
class=
"flexOne currentManage page-body"
style=
"position: relative;"
>
<div
class=
"query-box"
>
<ul>
<li>
<q-btn
color=
"primary"
size=
"11px"
label=
"新增"
@
click=
"resetForm('addMsg'),clickEdit()"
/>
</li>
</ul>
<!--
<div
class=
"suject-title-box"
>
<span>
</span>
</div>
-->
</div>
<div
class=
"cm_content _scrollbar"
style=
"position: absolute;top:83px;bottom: 20px;left: 15px;right:15px;overflow-y: scroll;"
>
<table
class=
"po_content singeRowTable"
style=
"border:1px solid #E6E6E6;"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
<tr>
<th>
币种名称
</th>
<th>
汇率类型
</th>
<th>
金蝶币别名
</th>
<th>
金蝶币别代码
</th>
<th
width=
"150px"
>
操作
</th>
</tr>
<tr
v-for=
"(item,index) in dataList"
:key=
"index"
>
<td>
{{
item
.
CurrencyName
}}
</td>
<td>
{{
item
.
RateType
}}
</td>
<td>
{{
item
.
Name
}}
</td>
<td
style=
"white-space: warp;"
>
{{
item
.
Code
}}
</td>
<td
width=
"150px"
>
<span
class=
"a"
style=
"cursor: pointer;color:blue;text-decoration:underline;margin-right: 5px"
@
click=
"clickEdit(item)"
>
编辑
</span>
<span
style=
"cursor: pointer;color:red;text-decoration:underline;"
@
click=
"Delete(item)"
>
删除
</span>
</td>
</tr>
</table>
<div
class=
"noData"
v-if=
"dataList&&dataList.length==0"
>
{{
$t
(
'system.content_noData'
)
}}
</div>
</div>
<div
class=
"_vMG_edit"
:class=
"addShow==true?'edHeight':''"
>
<el-row
style=
"height:48px"
>
<el-col
:span=
"20"
>
<p
class=
"_tit"
>
{{
text
}}
</p>
</el-col>
<el-col
:span=
"4"
class=
"_add_saveBtn"
>
<q-btn
color=
"primary"
size=
"11px"
:label=
"$t('pub.saveBtn')"
@
click=
"addLoading?submitForm('addMsg'):''"
style=
"marginRight:10px"
/>
<q-btn
text-color=
"primary"
size=
"11px"
:label=
"$t('pub.cancelBtn')"
@
click=
"cancelEdit(),resetForm('addMsg'),addShow=false"
/>
</el-col>
</el-row>
<el-form
class=
"clearfix"
:model=
"addMsg"
ref=
"addMsg"
:rules=
"rules"
label-width=
"100px"
>
<el-row>
<el-col
:span=
"5"
>
<el-form-item
label=
"币种类型"
prop=
"CurrencyId"
>
<el-select
filterable
v-model=
'addMsg.CurrencyId'
@
change=
"getType"
>
<el-option
v-for=
"item in currencyTypeList"
:key=
"item.ID"
:value=
"item.ID"
:label=
"item.Name"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
<el-form-item
label=
"汇率类型"
prop=
"RateType"
>
<el-input
v-model=
"addMsg.RateType"
clearable
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
<el-form-item
label=
"别名"
prop=
"Name"
>
<el-input
v-model=
"addMsg.Name"
clearable
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
<el-form-item
label=
"别代码"
prop=
"Code"
>
<el-input
v-model=
"addMsg.Code"
clearable
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
</
template
>
<
script
>
import
bankForm
from
'./suject/bank'
import
cashForm
from
'./suject/cash'
import
costForm
from
'./suject/cost'
export
default
{
components
:
{
bankForm
,
cashForm
,
costForm
},
data
()
{
return
{
title
:
''
,
addLoading
:
true
,
text
:
'新增银行对照表'
,
rules
:
{
//表单必填验证
CurrencyId
:
[{
required
:
true
,
message
:
'请选择币种类型'
,
trigger
:
'change'
}],
RateType
:
[{
required
:
true
,
message
:
'请输入汇率类型'
,
trigger
:
'blur'
}],
Name
:
[{
required
:
true
,
message
:
'请输入金蝶币别名称'
,
trigger
:
'blur'
}],
Code
:
[{
required
:
true
,
message
:
'请输入金蝶币别代码'
,
trigger
:
'blur'
}]
},
addMsg
:
{
Id
:
0
,
CurrencyId
:
''
,
CurrencyName
:
''
,
RateType
:
''
,
Name
:
''
,
Code
:
''
,
},
addShow
:
false
,
titleType
:
2
,
titleList
:
[{
Name
:
'银行对照表'
,
Id
:
2
},
{
Name
:
'现金对照表'
,
Id
:
3
},
{
Name
:
'费用对照表'
,
Id
:
1
},
],
msg
:
{
},
dataList
:
[],
loading
:
false
,
currencyTypeList
:[]
}
},
created
()
{
this
.
getList
();
this
.
financeinfo_post_GetList
()
},
mounted
()
{
},
methods
:
{
Delete
(
item
){
let
_this
=
this
let
msg
=
{
Id
:
item
.
Id
}
this
.
$q
.
dialog
({
title
:
'将删除此币种'
,
message
:
'是否继续?'
,
cancel
:
true
,
persistent
:
true
,
ok
:
"确定"
,
cancel
:
"取消"
,
}).
onOk
(()
=>
{
this
.
apipost
(
'Financial_post_DelKingdeeCurrency'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'操作成功'
,
position
:
'top'
});
this
.
getList
();
}
else
{
}
},
err
=>
{
})
}).
onCancel
(()
=>
{
});
},
getType
(
ID
){
this
.
currencyTypeList
.
forEach
(
item
=>
{
if
(
item
.
ID
==
ID
){
this
.
addMsg
.
CurrencyName
=
item
.
Name
}
})
},
financeinfo_post_GetList
()
{
// 币种类型
this
.
apipost
(
'financeinfo_post_GetList'
,
{
Name
:
''
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
currencyTypeList
=
res
.
data
.
data
;
}
else
{
}
},
err
=>
{})
},
submitForm
(
addMsg
)
{
//提交创建、修改表单
let
that
=
this
;
that
.
$refs
[
addMsg
].
validate
((
valid
)
=>
{
if
(
valid
)
{
that
.
addFlightmodule
()
}
else
{
return
false
;
}
});
},
addFlightmodule
()
{
//添加
this
.
addLoading
=
false
this
.
apipost
(
'Financial_post_SetKingdeeCurrency'
,
this
.
addMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
addLoading
=
true
this
.
addShow
=
false
;
this
.
Success
(
res
.
data
.
message
);
this
.
getList
()
}
else
{
this
.
addLoading
=
true
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{})
},
resetForm
(
formName
)
{
//弹出框取消 初始化谈框内表单
this
.
$refs
[
formName
].
resetFields
();
},
cancelEdit
(
t
)
{
// 取消修改、新增
this
.
addMsg
=
{
Id
:
0
,
CurrencyId
:
''
,
CurrencyName
:
''
,
RateType
:
''
,
Name
:
''
,
Code
:
''
,
}
if
(
!
t
)
{
this
.
addShow
=
false
}
},
//重置表单
resetInfo
()
{
var
msg
=
{
Id
:
0
,
CurrencyId
:
''
,
CurrencyName
:
''
,
RateType
:
''
,
Name
:
''
,
Code
:
''
,
}
this
.
addMsg
=
msg
;
},
clickEdit
(
item
)
{
this
.
addShow
=
false
if
(
item
){
this
.
text
=
'编辑币种'
console
.
log
(
item
)
this
.
addMsg
=
JSON
.
parse
(
JSON
.
stringify
(
item
))
}
else
{
this
.
text
=
'新增币种'
}
this
.
addShow
=
true
},
getList
()
{
this
.
loading
=
true
;
this
.
apipost
(
'Financial_post_GetKingdeeCurrency'
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
dataList
=
res
.
data
.
data
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{})
},
},
}
</
script
>
\ No newline at end of file
src/pages/financial/Kingdee/project.vue
0 → 100644
View file @
14748111
<
style
scoped
>
.suject-title-box
{
/* border-bottom: 1px solid #dedede; */
}
.suject-title-box
span
{
padding
:
0
5px
10px
5px
;
display
:
inline-block
;
margin-right
:
15px
;
cursor
:
pointer
;
}
.suject-title-box
span
.active
{
color
:
#2961fe
;
/* border-bottom: 2px solid #2961fe; */
}
._vMG_edit
{
display
:
none
;
position
:
absolute
;
bottom
:
0
;
left
:
0
;
right
:
0
;
font-family
:
'PingFangSc-Fine'
;
border-top
:
3px
solid
#38425d
;
background-color
:
#fff
;
padding
:
10px
;
z-index
:
999
;
/* margin: 15px;
width: calc(100% - 30px); */
}
._vMG_edit
._tit
{
padding-left
:
10px
;
border-left
:
3px
solid
#E95252
;
font-size
:
16px
;
color
:
#000000
}
._vMG_edit
._tit
span
{
color
:
#666666
;
font-size
:
14px
}
._edHeight
{
height
:
400px
;
}
.edHeight
{
display
:
block
!important
;
min-height
:
230px
;
}
._add_saveBtn
{
text-align
:
right
;
}
</
style
>
<
template
>
<div
class=
"flexOne currentManage page-body"
style=
"position: relative;"
>
<div
class=
"query-box"
>
<ul>
<li>
</li>
</ul>
<div
class=
"suject-title-box"
>
<span>
</span>
</div>
</div>
<div
class=
"cm_content _scrollbar"
style=
"position: absolute;top:117px;bottom: 0;left: 15px;right:15px;overflow-y: scroll;"
>
<table
class=
"po_content singeRowTable"
style=
"border:1px solid #E6E6E6;"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
<tr>
<th>
币种名称
</th>
<th>
汇率类型
</th>
<th>
金蝶币别名
</th>
<th>
金蝶币别代码
</th>
<th
width=
"150px"
>
操作
</th>
</tr>
<tr
v-for=
"(item,index) in dataList"
:key=
"index"
>
<td>
{{
item
.
CurrencyName
}}
</td>
<td>
{{
item
.
RateType
}}
</td>
<td>
{{
item
.
Name
}}
</td>
<td
style=
"white-space: warp;"
>
{{
item
.
Code
}}
<el-tag
size=
"mini"
class=
"tagF"
v-for=
"(i,indexs) in item.KingdeeList"
:key=
"indexs"
closable
@
close=
"Delete(item,i)"
>
{{
i
.
KingdeeName
}}
</el-tag>
</td>
<td
width=
"150px"
>
<span
class=
"a"
style=
"cursor: pointer;color:blue;text-decoration:underline;margin-right: 5px"
@
click=
"AddR(item)"
>
新增
</span>
<!--
<el-select
v-if=
"item.KingdeeList.length>0"
style=
"width:100px"
size=
"mini"
v-model=
"item.SubjectId"
@
change=
"Delete($event,item)"
placeholder=
"选择删除"
>
<el-option
v-for=
"(i,indexs) in item.KingdeeList"
:key=
"indexs"
:label=
"i.KingdeeName"
:value=
'i.SubjectId'
></el-option>
</el-select>
-->
<!--
<span
style=
"cursor: pointer;color:red;text-decoration:underline;"
@
click=
"Delete(item)"
>
删除
</span>
-->
</td>
</tr>
</table>
<div
class=
"noData"
v-if=
"dataList&&dataList.length==0"
>
{{
$t
(
'system.content_noData'
)
}}
</div>
</div>
<el-dialog
custom-class=
'w700'
:title=
"title+'导入'"
:visible
.
sync=
"outerVisible"
center
>
<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>
</el-dialog>
<div
class=
"_vMG_edit"
:class=
"addShow==true?'edHeight':''"
>
<el-row
style=
"height:48px"
>
<el-col
:span=
"20"
>
<p
class=
"_tit"
>
{{
text
}}
</p>
</el-col>
<el-col
:span=
"4"
class=
"_add_saveBtn"
>
<q-btn
color=
"primary"
size=
"11px"
:label=
"$t('pub.saveBtn')"
@
click=
"addLoading?submitForm('addMsg'):''"
style=
"marginRight:10px"
/>
<q-btn
text-color=
"primary"
size=
"11px"
:label=
"$t('pub.cancelBtn')"
@
click=
"cancelEdit(),resetForm('addMsg'),addShow=false"
/>
</el-col>
</el-row>
<el-form
class=
"clearfix"
:model=
"addMsg"
ref=
"addMsg"
:rules=
"rules"
label-width=
"100px"
>
<el-row>
<el-col
:span=
"5"
>
<el-form-item
label=
"类型"
prop=
"Type"
disabled
>
<el-select
filterable
v-model=
'addMsg.Type'
>
<el-option
v-for=
"(item,index) in typeList"
: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'
>
<el-option
v-for=
"(item,index) in DataList"
:label=
"item.Name"
:value=
'item.Id'
:key=
"index"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
</
template
>
<
script
>
import
bankForm
from
'./suject/bank'
import
cashForm
from
'./suject/cash'
import
costForm
from
'./suject/cost'
export
default
{
components
:
{
bankForm
,
cashForm
,
costForm
},
data
()
{
return
{
title
:
''
,
addLoading
:
true
,
DataList
:
[],
typeList
:
[{
Name
:
'银行'
,
Id
:
2
},
{
Name
:
'现金'
,
Id
:
3
},
{
Name
:
'费用'
,
Id
:
1
},
],
text
:
'新增银行对照表'
,
rules
:
{
//表单必填验证
Type
:
[{
required
:
true
,
message
:
'请选择类型'
,
trigger
:
'change'
}],
TargetId
:
[{
required
:
true
,
message
:
'请选择费用'
,
trigger
:
'change'
}],
SubjectId
:
[{
required
:
true
,
message
:
'请选择科目'
,
trigger
:
'change'
}]
},
addMsg
:
{
Type
:
2
,
TargetId
:
''
,
SubjectId
:
''
},
addShow
:
false
,
titleType
:
2
,
titleList
:
[{
Name
:
'银行对照表'
,
Id
:
2
},
{
Name
:
'现金对照表'
,
Id
:
3
},
{
Name
:
'费用对照表'
,
Id
:
1
},
],
msg
:
{
},
dataList
:
[],
loading
:
false
,
outerVisible
:
false
,
importFileUrl2
:
""
,
downList
:
""
,
}
},
created
()
{
this
.
getList
();
// this.GetKingdeeSubjectList()
},
mounted
()
{
},
methods
:
{
GetKingdeeSubjectList
()
{
this
.
apipost
(
'Financial_post_GetKingdeeSubjectList'
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
DataList
=
res
.
data
.
data
;
// this.total=res.data.data.count;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{})
},
submitForm
(
addMsg
)
{
//提交创建、修改表单
let
that
=
this
;
that
.
$refs
[
addMsg
].
validate
((
valid
)
=>
{
if
(
valid
)
{
that
.
addFlightmodule
()
}
else
{
return
false
;
}
});
},
addFlightmodule
()
{
//添加
this
.
addMsg
.
Type
=
this
.
titleType
if
(
!
this
.
addMsg
.
SubjectId
)
{
return
this
.
$message
.
error
(
'请选择科目'
)
}
this
.
addLoading
=
false
this
.
apipost
(
'Financial_post_SetCostTypeKingdeeRelation'
,
this
.
addMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
addLoading
=
true
this
.
addShow
=
false
;
this
.
Success
(
res
.
data
.
message
);
this
.
getList
()
}
else
{
this
.
addLoading
=
true
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{})
},
resetForm
(
formName
)
{
//弹出框取消 初始化谈框内表单
this
.
$refs
[
formName
].
resetFields
();
},
cancelEdit
(
t
)
{
// 取消修改、新增
this
.
addMsg
=
{
Type
:
2
,
TargetId
:
''
,
SubjectId
:
''
}
if
(
!
t
)
{
this
.
addShow
=
false
}
},
//重置表单
resetInfo
()
{
var
msg
=
{
Type
:
2
,
TargetId
:
''
,
SubjectId
:
''
}
this
.
addMsg
=
msg
;
},
clickEdit
(
item
)
{
this
.
addMsg
.
TargetId
=
item
.
ID
this
.
addMsg
.
SubjectId
=
item
.
SubjectId
this
.
addShow
=
true
},
clickTitle
(
item
)
{
this
.
addShow
=
false
this
.
titleType
=
item
.
Id
this
.
addMsg
.
Type
=
item
.
Id
if
(
item
.
Id
==
2
)
{
this
.
text
=
'新增银行对照表'
}
if
(
item
.
Id
==
3
)
{
this
.
text
=
'新增现金对照表'
}
if
(
item
.
Id
==
1
)
{
this
.
text
=
'新增费用对照表'
}
},
// type 1关联 2支出 3收入
clickDaoRu
(
type
)
{
let
userInfo
=
this
.
getLocalStorage
();
// this.importFileUrl2 = this.domainManager().UploadFileUrl +
// "?cmd=dmc_post_LocalFileUpload&KingdeeBId=0&Type=11&fileType=1&fileLimit=10&EmployeeId=" + userInfo.Id +
// '&RB_Group_id=' + userInfo.Group_Id;
this
.
importFileUrl2
=
this
.
domainManager
().
UploadFileUrl
+
`?cmd=dmc_post_LocalFileUpload&KingdeeBId=0&Type=
${
type
}
&fileType=1&fileLimit=10&EmployeeId=
${
userInfo
.
Id
}
&RB_Group_id=
${
userInfo
.
Group_Id
}
`
;
this
.
downList
=
this
.
domainManager
().
LocalTemplateFileDownLoadUrl
+
"/Upload/Template/未认款导入模板.xls"
;
},
beforeAvatarUpload
(
file
)
{
return
;
},
//上传
handleAvatarSuccess
(
res
,
file
)
{
if
(
res
.
resultCode
==
1
)
{
this
.
Success
(
res
.
message
);
this
.
outerVisible
=
false
;
this
.
getList
();
}
else
{
this
.
Error
(
res
.
message
);
}
},
getList
()
{
this
.
loading
=
true
;
this
.
apipost
(
'Financial_post_GetKingdeeCurrency'
,
this
.
msg
,
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
dataList
=
res
.
data
.
data
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
}
},
err
=>
{})
},
},
}
</
script
>
src/pages/financial/Kingdee/suject/bank.vue
0 → 100644
View file @
14748111
<
style
scoped
>
@import
"../../css/cssReset.css"
;
.tagF
{
margin-right
:
5px
;
}
</
style
>
<
template
>
<div>
<table
class=
"po_content singeRowTable"
style=
"border:1px solid #E6E6E6;"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
<tr>
<th>
账户名称
</th>
<th>
别名
</th>
<th>
开户人
</th>
<th>
类型
</th>
<th>
关联科目
</th>
<th
width=
"150px"
>
操作
</th>
</tr>
<tr
v-for=
"(item,index) in list"
:key=
"index"
>
<td>
{{
item
.
BackName
}}
</td>
<td>
{{
item
.
Alias
}}
</td>
<td>
{{
item
.
Accountholder
}}
</td>
<td>
{{
item
.
TypeName
}}
</td>
<td
style=
"white-space: warp;"
>
<el-tag
size=
"mini"
class=
"tagF"
v-for=
"(i,indexs) in item.KingdeeList"
:key=
"indexs"
closable
@
close=
"Delete(item,i)"
>
{{
i
.
KingdeeName
}}
</el-tag>
</td>
<td
width=
"150px"
>
<span
class=
"a"
style=
"cursor: pointer;color:blue;text-decoration:underline;margin-right: 5px"
@
click=
"AddR(item)"
>
新增
</span>
<!--
<el-select
v-if=
"item.KingdeeList.length>0"
style=
"width:100px"
size=
"mini"
v-model=
"item.SubjectId"
@
change=
"Delete($event,item)"
placeholder=
"选择删除"
>
<el-option
v-for=
"(i,indexs) in item.KingdeeList"
:key=
"indexs"
:label=
"i.KingdeeName"
:value=
'i.SubjectId'
></el-option>
</el-select>
-->
<!--
<span
style=
"cursor: pointer;color:red;text-decoration:underline;"
@
click=
"Delete(item)"
>
删除
</span>
-->
</td>
</tr>
</table>
<div
class=
"noData"
v-if=
"list&&list.length==0"
>
{{
$t
(
'system.content_noData'
)
}}
</div>
</div>
</
template
>
<
script
>
export
default
{
props
:
{
list
:
{
type
:
Array
,
default
:
null
},
loading
:
{
type
:
Boolean
,
default
:
null
},
type
:
{
type
:
Number
,
default
:
null
}
},
data
()
{
return
{
}
},
watch
:
{
list
:
{
handler
(
val
)
{
this
.
list
=
val
},
deep
:
true
},
loading
:
{
handler
(
val
)
{
this
.
loading
=
val
},
deep
:
true
},
type
:
{
handler
(
val
)
{
this
.
type
=
val
},
deep
:
true
}
},
created
(){
},
mounted
(){
},
methods
:
{
Delete
(
item
,
i
){
let
_this
=
this
let
msg
=
{
Type
:
this
.
type
,
TargetId
:
item
.
ID
,
SubjectId
:
i
.
SubjectId
,
}
this
.
$q
.
dialog
({
title
:
'将删除此科目数据'
,
message
:
'是否继续?'
,
cancel
:
true
,
persistent
:
true
,
ok
:
"确定"
,
cancel
:
"取消"
,
}).
onOk
(()
=>
{
this
.
apipost
(
'Financial_post_DelCostTypeKingdeeRelation'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
res
.
data
.
Message
,
position
:
'top'
});
this
.
$emit
(
'success'
);
}
else
{
}
},
err
=>
{
})
}).
onCancel
(()
=>
{
});
},
AddR
(
item
){
this
.
$emit
(
'clickEdit'
,
item
)
},
},
}
</
script
>
src/pages/financial/Kingdee/suject/cash.vue
0 → 100644
View file @
14748111
<
style
scoped
>
@import
"../../css/cssReset.css"
;
.tagF
{
margin-right
:
5px
;
}
</
style
>
<
template
>
<div>
<table
class=
"po_content singeRowTable"
style=
"border:1px solid #E6E6E6;"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
<tr>
<th>
别名
</th>
<th>
类型
</th>
<th>
关联科目
</th>
<th
width=
"150px"
>
操作
</th>
</tr>
<tr
v-for=
"(item,index) in list"
:key=
"index"
>
<td>
{{
item
.
Alias
}}
</td>
<td>
{{
item
.
TypeName
}}
</td>
<td
style=
"white-space: warp;"
>
<el-tag
size=
"mini"
class=
"tagF"
v-for=
"(i,indexs) in item.KingdeeList"
:key=
"indexs"
closable
@
close=
"Delete(item,i)"
>
{{
i
.
KingdeeName
}}
</el-tag>
</td>
<td
width=
"150px"
>
<span
style=
"cursor: pointer;color:blue;text-decoration:underline;margin-right: 5px"
@
click=
"AddR(item)"
>
新增
</span>
</td>
</tr>
</table>
<div
class=
"noData"
v-if=
"list&&list.length==0"
>
{{
$t
(
'system.content_noData'
)
}}
</div>
</div>
</
template
>
<
script
>
export
default
{
props
:
{
list
:
{
type
:
Array
,
default
:
null
},
loading
:
{
type
:
Boolean
,
default
:
null
},
type
:
{
type
:
Number
,
default
:
null
}
},
data
()
{
return
{
}
},
watch
:
{
list
:
{
handler
(
val
)
{
this
.
list
=
val
},
deep
:
true
},
loading
:
{
handler
(
val
)
{
this
.
loading
=
val
},
deep
:
true
},
type
:
{
handler
(
val
)
{
this
.
type
=
val
},
deep
:
true
}
},
created
(){
},
mounted
(){
},
methods
:
{
Delete
(
item
,
i
){
let
_this
=
this
let
msg
=
{
Type
:
this
.
type
,
TargetId
:
item
.
ID
,
SubjectId
:
i
.
SubjectId
,
}
this
.
$q
.
dialog
({
title
:
'将删除此科目数据'
,
message
:
'是否继续?'
,
cancel
:
true
,
persistent
:
true
,
ok
:
"确定"
,
cancel
:
"取消"
,
}).
onOk
(()
=>
{
this
.
apipost
(
'Financial_post_DelCostTypeKingdeeRelation'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
res
.
data
.
Message
,
position
:
'top'
});
this
.
$emit
(
'success'
);
}
else
{
}
},
err
=>
{
})
}).
onCancel
(()
=>
{
});
},
AddR
(
item
){
this
.
$emit
(
'clickEdit'
,
item
)
},
},
}
</
script
>
src/pages/financial/Kingdee/suject/cost.vue
0 → 100644
View file @
14748111
<
style
scoped
>
@import
"../../css/cssReset.css"
;
.CostType
.addCompany
{
width
:
440px
;}
/* 币种管理 */
.cm_content
{
padding
:
0
0
;
overflow-x
:
auto
;}
.cmc_item
{
float
:
left
;
width
:
205px
;
height
:
123px
;
background
:
rgba
(
255
,
255
,
255
,
1
);
border-radius
:
4px
;
overflow
:
hidden
;
margin
:
15px
15px
15px
0
;
border
:
1px
solid
#ebebeb
;
position
:
relative
;}
.cmci_top
{
background-color
:
#47BF8C
;
padding
:
14px
20px
0
20px
;
font-size
:
14px
;
color
:
#FFFFFF
}
.cmci_top
p
._tit
{
border-bottom
:
1px
solid
#3FB382
;
padding-bottom
:
14px
}
.fc_red
{
color
:
#E95252
!important
}
.cmc_item
:hover
{
box-shadow
:
0px
0px
20px
rgba
(
191
,
191
,
191
,
1
);
transition
:
all
linear
0.5s
;}
._underline
{
text-decoration
:
underline
;
cursor
:
pointer
;}
.CostType
._vMG_edit
{
display
:
none
;
position
:
absolute
;
bottom
:
0
;
left
:
0
;
font-family
:
'PingFangSc-Fine'
;
border-top
:
3px
solid
#38425d
;
background-color
:
#fff
;
padding
:
10px
;
z-index
:
999
;
margin
:
15px
;
width
:
calc
(
100%
-
30px
);
}
.CostType
._vMG_edit
._tit
{
padding-left
:
10px
;
border-left
:
3px
solid
#E95252
;
font-size
:
16px
;
color
:
#000000
}
.CostType
._vMG_edit
._tit
span
{
color
:
#666666
;
font-size
:
14px
}
._edHeight
{
height
:
400px
;}
.edHeight
{
display
:
block
!important
;
min-height
:
230px
;}
._scrollbar
::-webkit-scrollbar
{
width
:
4px
;
height
:
8px
;}
._scrollbar
::-webkit-scrollbar-thumb
{
border-radius
:
4px
;
-webkit-box-shadow
:
inset
0
0
2px
rgba
(
0
,
0
,
0
,
0.2
);
background
:
#c9c9c9
;}
._scrollbar
::-webkit-scrollbar-track
{
-webkit-box-shadow
:
inset
0
0
2px
rgba
(
0
,
0
,
0
,
0.2
);
border-radius
:
4px
;
background
:
#EDEDED
;}
.CostType
._info_box
ul
{
margin-top
:
15px
}
.CostType
._info_box
ul
li
{
float
:
left
;}
._max_width
{
max-width
:
100%
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
display
:
inline-block
;
vertical-align
:
top
;}
._bumen
{
padding
:
20px
0
;
text-align
:
left
;
height
:
75px
;}
._bumen
p
:nth-child
(
1
)
{
font-size
:
14px
;
cursor
:
pointer
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;}
._bumen
p
.no_bumen
{
font-size
:
12px
;
color
:
#ADE4CD
}
._b_edit
{
position
:
absolute
;
right
:
20px
;
top
:
13px
;
z-index
:
100
;
width
:
32%
;
height
:
35%
;
border-radius
:
4px
;
text-align
:
right
;
opacity
:
0
;
-webkit-transition
:
all
linear
0.5s
;
transition
:
all
linear
0.5s
;}
._b_edit
.el-button--danger
{
background-color
:
rgba
(
255
,
255
,
255
,
0.5
);
color
:
#FFFFFF
;
border
:
none
}
._b_edit
.el-button--primary
{
background
:
rgba
(
255
,
255
,
255
,
0.5
);
color
:
#FFFFFF
;
border
:
none
}
._b_edit
.el-button--danger
:hover
,
._b_edit
.el-button--primary
:hover
{
background-color
:
#FFFFFF
;
color
:
#E95252
}
._bumen
:hover
._b_edit
{
opacity
:
1
;}
.multiple_input
.el-input
{
height
:
auto
!important
;}
._cmci_img
{
width
:
48px
;
height
:
48px
;
position
:
absolute
;
right
:
15px
;
top
:
30px
;}
.upload-demo
{
text-align
:
center
;}
.CostType
._add_saveBtn
{
text-align
:
right
;
margin-bottom
:
20px
;}
.CostType
.query-box
{
padding
:
20px
0
0
0
}
.CostType
.el-radio
+
.el-radio
{
margin-left
:
15px
;}
.CostType
._yuan
{
width
:
12px
;
height
:
12px
;
background
:
rgba
(
233
,
82
,
82
,
1
);
border-radius
:
50%
;
display
:
inline-block
;
}
.CostType
._yuan._yuan_red
{
background
:
#47BF8C
;
}
.CostType
.po_content
,
.CostType
.po_content_item
{
border-collapse
:
collapse
;
}
.CostType
.po_content
{
width
:
100%
;
}
.CostType
.po_content
tr
:first-child
{
font-size
:
12px
;
color
:
#666666
;
}
.CostType
.po_content
tr
th
,
.CostType
.po_content
tr
td
{
padding
:
10px
20px
;
text-align
:
left
;
}
.CostType
.po_content
tr
td
{
color
:
#333333
;
font-size
:
14px
;
border
:
1px
solid
#E6E6E6
;
}
.CostType
.po_content
tr
td
.iconfont
{
font-size
:
14px
;
padding
:
4px
;
}
.CostType
.query-box
.iconfont
{
cursor
:
pointer
;
background-color
:
var
(
--q-color-primary
);
color
:
white
;
width
:
30px
;
height
:
30px
;
display
:
inline-block
;
text-align
:
center
;
line-height
:
30px
;
border-radius
:
50%
;
margin-left
:
10px
;
}
.po_content_item
tr
td
:last-child
{
border-right
:
0px
!important
;
}
.po_content_item_str
tr
:first-child
td
,
.po_content_item_two
tr
:first-child
td
{
border-top
:
0px
!important
;
}
.po_content_item_str
tr
:last-child
td
,
.po_content_item_two
tr
:last-child
td
{
border-bottom
:
0px
!important
;
}
.po_content_item_str
tr
td
:first-child
,
.po_content_item_two
tr
td
:first-child
{
border-left
:
0px
!important
;
}
.cursorpointer_last
:hover
i
{
display
:
inline-block
;
margin-left
:
10px
;
}
.cursorpointer_last
i
{
color
:
red
;
display
:
none
;
}
.ct_Edit
{
position
:
absolute
;
right
:
10px
;
top
:
5px
;
color
:
#fff
;
cursor
:
pointer
;
z-index
:
999
;
}
.ct_Edit
:hover
{
color
:
#E95252
;
}
.tagF
{
margin-right
:
5px
;
}
.el-tag-box
.el-tag
{
white-space
:
wrap
!important
;
}
.KingdeeName
{
background-color
:
#ecf5ff
;
border-color
:
#d9ecff
;
display
:
inline-block
;
height
:
22px
;
padding
:
0
10px
;
line-height
:
20px
;
font-size
:
12px
;
color
:
#409EFF
;
border-width
:
1px
;
border-style
:
solid
;
border-radius
:
4px
;
box-sizing
:
border-box
;
}
.KingdeeName
.icon-close
{
border-radius
:
50%
;
text-align
:
center
;
position
:
relative
;
cursor
:
pointer
;
font-size
:
12px
;
height
:
16px
;
width
:
16px
;
line-height
:
18px
;
vertical-align
:
middle
;
top
:
0
;
right
:
-5px
;
}
.KingdeeName
.icon-close
:hover
{
color
:
#FFF
;
background-color
:
#409eff
;
}
</
style
>
<
template
>
<div>
<table
class=
"po_content singeRowTable"
style=
"border:1px solid #E6E6E6;"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
<thead>
<tr>
<th
width=
"150px"
>
{{
$t
(
'fnc.yijimingcheng'
)
}}
</th>
<th
width=
"150px"
>
{{
$t
(
'fnc.erjimingcheng'
)
}}
</th>
<th
width=
"150px"
>
{{
$t
(
'fnc.sanjimingcheng'
)
}}
</th>
<th
width=
"150px"
>
科目
</th>
<th
width=
"50px"
>
操作
</th>
</tr>
</thead>
<tbody
class=
"po_content_item"
>
<tr
v-for=
"(item,index) in list"
:key=
"index"
v-loading=
"loading"
>
<td
width=
"150px"
>
<span
class=
"cursorpointer"
>
{{
item
.
Name
}}
</span>
</td>
<template
v-if=
"item.ChildList&&item.ChildList.length>0"
>
<td
colspan=
"8"
style=
"padding:0"
>
<table
class=
"po_content_item po_content_item_two"
style=
"width: 100%;"
cellspacing=
"0"
cellpadding=
"0"
>
<tbody>
<tr
v-for=
"(son,sIndex) in item.ChildList"
>
<td
width=
"150px"
>
<span
class=
"cursorpointer"
>
{{
son
.
Name
}}
</span></td>
<template
v-if=
"son.ChildList.length>0"
>
<td
colspan=
"7"
style=
"padding:0"
>
<table
class=
"po_content_item po_content_item_str"
style=
"width: 100%"
cellspacing=
"0"
cellpadding=
"0"
>
<tbody>
<tr
v-for=
"(grSon,gsIndex) in son.ChildList"
>
<td
class=
"cursorpointer_last"
width=
"150px"
>
<span
class=
"cursorpointer"
>
{{
grSon
.
Name
}}
</span></td>
<td
width=
"150px"
style=
"white-space:wrap"
>
<span
class=
"tagF KingdeeName"
v-for=
"(i,indexs) in grSon.KingdeeList"
:key=
"indexs"
>
{{
i
.
KingdeeName
}}
<i
class=
"iconfont icon-close"
@
click=
"Delete(grSon,i)"
></i>
</span>
</td>
<td
width=
"50px"
>
<span
style=
"cursor: pointer;color:blue;text-decoration:underline;margin-right: 5px"
@
click=
"AddR(grSon)"
>
新增
</span>
</td>
</tr>
</tbody>
</table>
</td>
</
template
>
<
template
v-else
>
<td
width=
"150px"
></td>
<td
width=
"150px"
style=
"white-space:wrap"
>
<span
class=
"tagF KingdeeName"
v-for=
"(i,indexs) in son.KingdeeList"
:key=
"indexs"
>
{{
i
.
KingdeeName
}}
<i
class=
"iconfont icon-close"
@
click=
"Delete(son,i)"
></i>
</span>
</td>
<td
width=
"50px"
>
<span
style=
"cursor: pointer;color:blue;text-decoration:underline;margin-right: 5px"
@
click=
"AddR(son)"
>
新增
</span>
</td>
</
template
>
</tr>
</tbody>
</table>
</td>
</template>
<
template
v-else
>
<td
width=
"150px"
></td>
<td
width=
"150px"
></td>
<td
width=
"150px"
style=
"white-space:wrap"
>
<span
class=
"tagF KingdeeName"
v-for=
"(i,indexs) in item.KingdeeList"
:key=
"indexs"
>
{{
i
.
KingdeeName
}}
<i
class=
"iconfont icon-close"
@
click=
"Delete(item,i)"
></i>
</span>
</td>
<td>
<span
style=
"cursor: pointer;color:blue;text-decoration:underline;margin-right: 5px"
@
click=
"AddR(item)"
>
新增
</span>
</td>
</
template
>
</tr>
</tbody>
</table>
<div
class=
"noData"
v-show=
"list.length==0"
>
{{$t('system.content_noData')}}
</div>
</div>
</template>
<
script
>
export
default
{
props
:
{
list
:
{
type
:
Array
,
default
:
null
},
loading
:
{
type
:
Boolean
,
default
:
null
},
type
:
{
type
:
Number
,
default
:
null
}
},
// components: { Treeselect },
data
()
{
return
{
msg
:{}
}
},
watch
:
{
list
:
{
handler
(
val
)
{
this
.
list
=
val
},
deep
:
true
},
loading
:
{
handler
(
val
)
{
this
.
loading
=
val
},
deep
:
true
},
type
:
{
handler
(
val
)
{
this
.
type
=
val
},
deep
:
true
}
},
created
(){
},
methods
:
{
Delete
(
item
,
i
){
let
_this
=
this
let
msg
=
{
Type
:
this
.
type
,
TargetId
:
item
.
ID
,
SubjectId
:
i
.
SubjectId
,
}
this
.
$q
.
dialog
({
title
:
'将删除此科目数据'
,
message
:
'是否继续?'
,
cancel
:
true
,
persistent
:
true
,
ok
:
"确定"
,
cancel
:
"取消"
,
}).
onOk
(()
=>
{
this
.
apipost
(
'Financial_post_DelCostTypeKingdeeRelation'
,
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
res
.
data
.
Message
,
position
:
'top'
});
this
.
$emit
(
'success'
);
}
else
{
}
},
err
=>
{
})
}).
onCancel
(()
=>
{
});
},
AddR
(
item
){
this
.
$emit
(
'clickEdit'
,
item
)
},
},
mounted
(){
}
}
</
script
>
\ No newline at end of file
src/router/routes.js
View file @
14748111
...
...
@@ -643,6 +643,21 @@ const routes = [{
component
:
()
=>
import
(
"pages/financial/reportform/performanceCommission.vue"
)
},
{
path
:
"/financial/Kingdee/currency"
,
//财务报表金蝶对接 金蝶币种
component
:
()
=>
import
(
"pages/financial/Kingdee/currency.vue"
)
},
{
path
:
"/financial/Kingdee/project"
,
//财务报表金蝶对接 金蝶项目
component
:
()
=>
import
(
"pages/financial/Kingdee/project.vue"
)
},
{
path
:
"/financial/Kingdee/SubjectContrast"
,
//财务报表金蝶对接 金蝶科目对照表
component
:
()
=>
import
(
"pages/financial/Kingdee/SubjectContrast.vue"
)
},
{
path
:
"/financial/reportform/settleAccounts"
,
//财务报表 财务轧账月份列表
component
:
()
=>
...
...
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