Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ba1812f9
authored
Aug 03, 2025
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
联调
1 parent
f721cce7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
775 additions
and
15 deletions
src/api/accountManage.js
src/views/financeManage/accountStateManage/index.vue
src/views/financeManage/components/AddDetailDialog.vue
src/views/financeManage/components/EditTransfer.vue
src/views/financeManage/components/ReceivePayEditDialog.vue
src/views/financeManage/components/SystemBillDetailDialog.vue
src/views/financeManage/constant/receivePayData.js
src/api/accountManage.js
View file @
ba1812f
...
@@ -155,3 +155,57 @@ export function getJdDetailPage(data) {
...
@@ -155,3 +155,57 @@ export function getJdDetailPage(data) {
data
.
method
=
'dj.smartcarlife.api.jdbill.detail.page'
data
.
method
=
'dj.smartcarlife.api.jdbill.detail.page'
return
request
(
data
)
return
request
(
data
)
}
}
// 金蝶-客户分页查询
export
function
getJdCustPage
(
data
)
{
data
.
method
=
'dj.smartcarlife.api.jdbill.kingdee.cust.page'
return
request
(
data
)
}
// 金蝶-发票类型分页列表查询
export
function
getJdInvoiceTypePage
(
data
)
{
data
.
method
=
'dj.smartcarlife.api.jdbill.kingdee.invoice.type.page'
return
request
(
data
)
}
// 金蝶-组织分页查询
export
function
getJdOrgPage
(
data
)
{
data
.
method
=
'dj.smartcarlife.api.jdbill.kingdee.org.page'
return
request
(
data
)
}
// 金蝶-供应商分页列表查询
export
function
getJdSupplierPage
(
data
)
{
data
.
method
=
'dj.smartcarlife.api.jdbill.kingdee.supplier.page'
return
request
(
data
)
}
// 金蝶-物料分页查询
export
function
getJdMaterialPage
(
data
)
{
data
.
method
=
'dj.smartcarlife.api.jdbill.kingdee.material.page'
return
request
(
data
)
}
// 金蝶-业务类型分页列表查询
export
function
getJdBusinessPage
(
data
)
{
data
.
method
=
'dj.smartcarlife.api.jdbill.kingdee.business.type.page'
return
request
(
data
)
}
// 金蝶-税率分页查询
export
function
getJdTaxratePage
(
data
)
{
data
.
method
=
'dj.smartcarlife.api.jdbill.kingdee.taxrate.page'
return
request
(
data
)
}
// 应收应付单-明细更新
export
function
updateJdDetail
(
data
)
{
data
.
method
=
'dj.smartcarlife.api.jdbill.detail.update'
return
request
(
data
,
'post'
)
}
// 日志列表查询
export
function
getJdBillLog
(
data
)
{
data
.
method
=
'dj.smartcarlife.api.jdbill.log'
return
request
(
data
,
'post'
)
}
src/views/financeManage/accountStateManage/index.vue
View file @
ba1812f
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9051107']"
/>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9051107']"
/>
</span>
</span>
<!-- 生成应收单 -->
<!-- 生成应收单 -->
<span
style=
"margin-right: 10px;"
v-if=
"(!scope.scope.receivableBillIds) && scope.scope.reconciliationBillStatus == '3'"
>
<span
style=
"margin-right: 10px;"
v-if=
"(!scope.scope.receivableBillIds) && scope.scope.reconciliationBillStatus == '3'
&& scope.scope.billType == '1'
"
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9051108']"
/>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9051108']"
/>
</span>
</span>
<!-- 生成应付单 -->
<!-- 生成应付单 -->
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9051109']"
/>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9051109']"
/>
</span>
</span>
<!-- 查看应收单 -->
<!-- 查看应收单 -->
<span
style=
"margin-right: 10px;"
v-if=
"scope.scope.receivableBillIds && scope.scope.reconciliationBillStatus == '3'"
>
<span
style=
"margin-right: 10px;"
v-if=
"scope.scope.receivableBillIds && scope.scope.reconciliationBillStatus == '3'
&& scope.scope.billType == '1'
"
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9051110']"
/>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9051110']"
/>
</span>
</span>
<!-- 查看应付单 -->
<!-- 查看应付单 -->
...
...
src/views/financeManage/components/AddDetailDialog.vue
0 → 100644
View file @
ba1812f
<
template
>
<d2-dialog
:title=
"title"
:is-visible=
"addVisible"
class=
"add-detail-dialog"
width=
"500px"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleConfirm"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
label-width=
"180px"
default-width=
"314px"
:isBlock=
"isBlock"
:form-ref=
"editChildRef"
:form-obj=
"editData"
:form-data=
"editFormData"
:form-rules=
"formRules"
>
</glsx-combi-form>
</d2-dialog>
</
template
>
<
script
>
import
*
as
api
from
'@api/accountManage'
import
{
deepClone
}
from
'@/common/util'
export
default
{
name
:
'AddDetailDialog'
,
data
()
{
return
{
title
:
'新增应收明细'
,
isBlock
:
true
,
editChildRef
:
'editChildRef'
,
formRules
:
{
},
editData
:
{
},
editFormData
:
[],
receiveEditFormData
:
[
{
label
:
"客户"
,
name
:
"customerCode"
,
labelName
:
"customerName"
,
placeholder
:
"请选择流量方/园区店"
,
type
:
"select"
,
optionList
:
[],
optionId
:
'number'
,
optionLabel
:
'name'
,
optionsName
:
'customerOpt'
,
isHide
:
false
,
// 用于判断该字段出现与否;流量方对账单,才会出现此字段
billType
:
'receive'
},
{
label
:
"供应商"
,
name
:
"supplierId"
,
labelName
:
"supplierIdName"
,
type
:
"select"
,
optionList
:
[],
optionId
:
'number'
,
optionLabel
:
'name'
,
optionsName
:
'customerOpt'
,
isHide
:
false
,
billType
:
'pay'
},
{
label
:
"结算组织"
,
name
:
"settlementOrgCode"
,
labelName
:
"settlementOrg"
,
type
:
"select"
,
optionList
:
[],
optionId
:
'number'
,
optionLabel
:
'name'
,
optionsName
:
'settlementOrgOpt'
},
{
label
:
"收款组织"
,
name
:
"rcvOrgCode"
,
labelName
:
"rcvOrgName"
,
type
:
"select"
,
optionList
:
[],
optionId
:
'number'
,
optionLabel
:
'name'
,
optionsName
:
'rcvOrgOpt'
,
isHide
:
false
,
billType
:
'receive'
},
{
label
:
"付款组织"
,
name
:
"rcvOrgCode"
,
labelName
:
"rcvOrgName"
,
type
:
"select"
,
optionList
:
[],
optionId
:
'number'
,
optionLabel
:
'name'
,
optionsName
:
'rcvOrgOpt'
,
isHide
:
false
,
billType
:
'pay'
},
// {
// label: "发票类型",
// name: "",
// labelName: "",
// type: "select",
// optionList: [],
// optionId: 'number',
// optionLabel: 'name',
// optionsName: '',
// isHide: false,
// billType: 'pay'
// },
{
label
:
"物料名称"
,
name
:
"materialCode"
,
labelName
:
"materialCodeName"
,
type
:
"select"
,
optionList
:
[],
optionId
:
'number'
,
optionLabel
:
'name'
,
optionsName
:
'materialOpt'
},
{
label
:
"含税单价"
,
name
:
"taxUnitPrice"
,
type
:
"input"
},
{
label
:
"计价数量"
,
name
:
"pricingNumber"
,
type
:
"input"
},
{
label
:
"税率"
,
name
:
"taxRate"
,
labelName
:
"taxRateName"
,
type
:
"select"
,
optionList
:
[],
optionId
:
'taxRate'
,
optionLabel
:
'taxRate'
,
optionsName
:
'taxRateOpt'
},
{
label
:
"业务类型"
,
name
:
"businessTypeCode"
,
labelName
:
"businessTypeName"
,
type
:
"select"
,
optionList
:
[],
optionId
:
'number'
,
optionLabel
:
'name'
,
optionsName
:
'businessTypeOpt'
},
{
label
:
"4S门店"
,
name
:
"shopMerchantName"
,
type
:
"input"
}
],
baseData
:
{
customerOpt
:
[],
settlementOrgOpt
:
[],
rcvOrgOpt
:
[],
materialOpt
:
[],
taxRateOpt
:
[],
businessTypeOpt
:
[]
},
apiList
:
[{
api
:
'getJdCustPage'
,
nameList
:
[
'customerCode'
],
// 用于判断该字段出现与否;流量方对账单,才会出现此字段
billType
:
'receive'
},
{
api
:
'getJdOrgPage'
,
nameList
:
[
'settlementOrgCode'
,
'rcvOrgCode'
]
},
{
api
:
'getJdSupplierPage'
,
nameList
:
[
'supplierId'
],
billType
:
'pay'
},
{
api
:
'getJdMaterialPage'
,
nameList
:
[
'materialCode'
]
},
{
api
:
'getJdTaxratePage'
,
nameList
:
[
'taxRate'
]
},
{
api
:
'getJdBusinessPage'
,
nameList
:
[
'businessTypeCode'
]
}]
}
},
props
:
{
addVisible
:
{
type
:
Boolean
,
default
:
false
},
info
:
{
type
:
Object
,
default
:
()
=>
({})
}
},
mounted
()
{
console
.
log
(
api
,
'api---'
)
this
.
title
=
this
.
info
.
billTypeStr
===
'receive'
?
'新增应收明细'
:
'新增应付明细'
this
.
editFormData
=
this
.
info
.
billTypeStr
===
'receive'
?
deepClone
(
this
.
receiveEditFormData
)
:
[]
console
.
log
(
this
.
editFormData
,
'this.editFormData---'
)
this
.
dealAttrHideShow
()
this
.
dealOpts
()
},
methods
:
{
getOptionsList
(
formName
,
hasAll
=
true
,
refreshSigle
)
{
if
(
refreshSigle
)
{
var
item
=
this
[
formName
].
find
(
k
=>
k
.
name
==
refreshSigle
)
var
index
=
this
[
formName
].
findIndex
(
k
=>
k
.
name
==
refreshSigle
)
this
.
$set
(
this
[
formName
][
index
],
'optionList'
,
deepClone
(
this
.
baseData
[
item
.
optionsName
]))
if
(
hasAll
&&
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
[
formName
][
index
].
optionLabel
]
!==
'全部'
)
{
const
temp
=
{}
temp
[
this
[
formName
][
index
].
optionId
]
=
''
temp
[
this
[
formName
][
index
].
optionLabel
]
=
'全部'
this
[
formName
][
index
].
optionList
.
unshift
(
temp
)
}
}
else
{
this
[
formName
].
forEach
((
item
,
index
)
=>
{
if
(
item
.
type
===
'select'
&&
this
.
baseData
[
item
.
optionsName
].
length
)
{
this
.
$set
(
this
[
formName
][
index
],
'optionList'
,
deepClone
(
this
.
baseData
[
item
.
optionsName
]))
if
(
hasAll
&&
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
[
formName
][
index
].
optionLabel
]
!==
'全部'
)
{
const
temp
=
{}
temp
[
this
[
formName
][
index
].
optionId
]
=
''
temp
[
this
[
formName
][
index
].
optionLabel
]
=
'全部'
this
[
formName
][
index
].
optionList
.
unshift
(
temp
)
}
}
})
}
},
findIdx
(
name
)
{
return
this
.
editFormData
.
findIndex
(
item
=>
item
.
name
==
name
)
},
dealAttrHideShow
()
{
this
.
editFormData
.
forEach
(
item
=>
{
if
(
item
.
billType
&&
item
.
billType
!==
this
.
info
.
billTypeStr
)
{
item
.
isHide
=
true
}
else
{
item
.
isHide
=
false
}
})
},
dealOpts
()
{
for
(
let
i
=
0
;
i
<
this
.
apiList
.
length
;
i
++
)
{
const
item
=
this
.
apiList
[
i
]
// if (item.billType && item.billType !== this.info.billTypeStr) {
// break
// }
const
params
=
{
currentPage
:
1
,
pageSize
:
999
}
api
[
item
.
api
](
params
).
then
(
res
=>
{
console
.
log
(
res
,
'res---'
)
item
.
nameList
.
forEach
(
subItem
=>
{
const
idx
=
this
.
findIdx
(
subItem
)
const
formItem
=
this
.
editFormData
[
idx
]
this
.
baseData
[
formItem
.
optionsName
]
=
res
.
list
this
.
getOptionsList
(
'editFormData'
,
false
,
subItem
)
})
})
}
},
handleConfirm
()
{
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
((
valid
)
=>
{
if
(
valid
)
{
var
params
=
deepClone
(
this
.
editData
)
params
.
id
=
this
.
info
.
id
console
.
log
(
params
,
'params---'
)
this
.
loading
=
true
api
.
updateJdDetail
(
params
).
then
(()
=>
{
this
.
$message
.
success
(
"操作成功"
)
this
.
$emit
(
'handleConfirm'
)
}).
finally
(()
=>
{
this
.
loading
=
false
})
}
})
},
handleClose
()
{
this
.
$emit
(
'dialogClose'
)
}
}
}
</
script
>
<
style
>
.add-detail-dialog
.el-dialog
{
min-width
:
700px
;
}
</
style
>
src/views/financeManage/components/EditTransfer.vue
View file @
ba1812f
<
template
>
<
template
>
<d2-dialog
title=
"应付转账"
:is-visible=
"editTransferVisible"
class=
"privacyDailog"
width=
"800px"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleConfirm"
>
<d2-dialog
title=
"应付转账"
:is-visible=
"editTransferVisible"
class=
"privacyDailog"
width=
"800px"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleConfirm"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
label-width=
"250px"
default-width=
"314px"
:isBlock=
"isBlock"
:form-ref=
"editChildRef"
:form-obj=
"editData"
:form-data=
"editFormData"
:form-rules=
"formRules"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
label-width=
"250px"
default-width=
"314px"
:isBlock=
"isBlock"
:form-ref=
"editChildRef"
:form-obj=
"editData"
:form-data=
"editFormData"
:form-rules=
"formRules"
>
<template
slot=
"fileHtml"
slot-scope=
"scope"
>
<el-upload
action=
""
accept=
".xlsx,.xls"
class=
"upload-file"
drag
:show-file-list=
"false"
:file-list=
"uploadFileList"
:limit=
"5"
:auto-upload=
"false"
:on-remove=
"importFileChange"
:on-change=
"
(file, fileList) => handleFileChange(file, fileList, scope.scope)
"
:on-exceed=
"hanldeOnExceed"
multiple
>
<i
class=
"el-icon-upload"
></i>
<div
class=
"el-upload__text"
>
点击或将文件拖拽到此区域上传
</div>
<div
class=
"item-tips text-tips"
>
支持格式:.xlsx .xls,单个文件不能超过10M
</div>
<div
class=
"item-tips"
>
最多上传5个文件
</div>
</el-upload>
<!-- 文件列表区域 -->
<div
class=
"file-box"
>
<div
v-for=
"(subItem, subIndex) in editData.fileUrlList"
:key=
"subIndex"
>
<div
class=
"file-item"
v-if=
"
!filterEmpty(subItem.uploadProgress) || subItem.fileUrl
"
>
<div
class=
"file-content"
@
click=
"handleFileView(subItem)"
>
<el-progress
define-back-color=
"#F5F7FA"
:text-inside=
"true"
text-color=
"#333333"
:show-text=
"false"
:stroke-width=
"26"
stroke-linecap=
"butt"
:percentage=
"subItem.uploadProgress"
></el-progress>
<div
class=
"file-name"
>
{{
subItem
.
fileName
}}
</div>
</div>
<i
v-if=
"!subItem.fileUrl"
class=
"el-icon-close del-icon"
@
click=
"doCancel(scope.scope, subIndex)"
></i>
<i
v-if=
"subItem.fileUrl"
class=
"el-icon-delete"
@
click=
"handleFileDelete(scope.scope, subIndex)"
></i>
</div>
</div>
</div>
</
template
>
</glsx-combi-form>
</glsx-combi-form>
<div>
* 说明:发起应付转账后,请到企微“SaaS+商务付款”流程中查看审批状态。
</div>
<div>
* 说明:发起应付转账后,请到企微“SaaS+商务付款”流程中查看审批状态。
</div>
</d2-dialog>
</d2-dialog>
...
@@ -9,6 +36,8 @@
...
@@ -9,6 +36,8 @@
<
script
>
<
script
>
import
{
editBillTransferOut
}
from
'@api/accountManage'
import
{
editBillTransferOut
}
from
'@api/accountManage'
import
{
deepClone
}
from
'@/common/util'
import
{
deepClone
}
from
'@/common/util'
import
GlOssApi
from
"glsk-oss-jssdk"
import
{
baseConfig
}
from
"@/main"
export
default
{
export
default
{
name
:
'EditTransfer'
,
name
:
'EditTransfer'
,
data
()
{
data
()
{
...
@@ -43,7 +72,7 @@ export default {
...
@@ -43,7 +72,7 @@ export default {
{
{
label
:
"转账凭证"
,
label
:
"转账凭证"
,
name
:
"fileUrlList"
,
name
:
"fileUrlList"
,
addHtml
:
"file"
addHtml
:
"file
Html
"
},
},
{
{
label
:
"备注"
,
label
:
"备注"
,
...
@@ -53,7 +82,10 @@ export default {
...
@@ -53,7 +82,10 @@ export default {
}
}
],
],
baseData
:
{
baseData
:
{
}
},
uploadFileList
:
[],
imgViewerVisible
:
false
,
loading
:
false
}
}
},
},
...
@@ -68,7 +100,23 @@ export default {
...
@@ -68,7 +100,23 @@ export default {
}
}
},
},
watch
:
{
"editData.fileUrlList"
:
{
handler
(
newVal
)
{
if
(
newVal
)
{
this
.
uploadFileList
=
newVal
.
filter
(
(
v
)
=>
!
this
.
filterEmpty
(
v
.
uploadProgress
)
||
v
.
fileUrl
)
// 文件列表
}
},
deep
:
true
},
},
mounted
()
{
mounted
()
{
this
.
GlOssApi
=
new
GlOssApi
({
baseConfig
})
this
.
editData
=
deepClone
(
this
.
info
)
this
.
editData
=
deepClone
(
this
.
info
)
this
.
editData
.
fileUrlList
=
[]
this
.
editData
.
fileUrlList
=
[]
this
.
editFormData
[
this
.
findIdx
(
'billMerchantName'
)].
label
=
this
.
editData
.
billType
==
'1'
?
'对账流量方'
:
'对账服务商'
this
.
editFormData
[
this
.
findIdx
(
'billMerchantName'
)].
label
=
this
.
editData
.
billType
==
'1'
?
'对账流量方'
:
'对账服务商'
...
@@ -80,10 +128,13 @@ export default {
...
@@ -80,10 +128,13 @@ export default {
return
this
.
editFormData
.
findIndex
(
item
=>
item
.
name
===
attr
)
return
this
.
editFormData
.
findIndex
(
item
=>
item
.
name
===
attr
)
},
},
handleConfirm
()
{
handleConfirm
()
{
this
.
editData
.
fileUrlList
=
[
'https://pics5.baidu.com/feed/03087bf40ad162d961034fabc0ed00e38b13cd5e.jpeg@f_auto?token=0aca42cd8d1f4381c9518431db657a5b'
]
// this.editData.fileUrlList = ['https://pics5.baidu.com/feed/03087bf40ad162d961034fabc0ed00e38b13cd5e.jpeg@f_auto?token=0aca42cd8d1f4381c9518431db657a5b']
// this.editData.fileUrlList = ['https://pics5.baidu.com/feed/03087bf40ad162d961034fabc0ed00e38b13cd5e.jpeg@f_auto?token=0aca42cd8d1f4381c9518431db657a5b']
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
((
valid
)
=>
{
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
editBillTransferOut
(
deepClone
(
this
.
editData
)).
then
(()
=>
{
const
params
=
deepClone
(
this
.
editData
)
params
.
fileUrlList
=
params
.
fileUrlList
.
map
(
item
=>
item
.
fileUrl
)
editBillTransferOut
(
params
).
then
(()
=>
{
this
.
$message
.
success
(
"操作成功"
)
this
.
$message
.
success
(
"操作成功"
)
this
.
$emit
(
'handleConfirm'
)
this
.
$emit
(
'handleConfirm'
)
}).
finally
(()
=>
{
}).
finally
(()
=>
{
...
@@ -94,6 +145,133 @@ export default {
...
@@ -94,6 +145,133 @@ export default {
},
},
handleClose
()
{
handleClose
()
{
this
.
$emit
(
'dialogClose'
)
this
.
$emit
(
'dialogClose'
)
},
// 获取文件
importFileChange
(
file
,
fileList
)
{
this
.
uploadFileList
=
fileList
this
.
editData
.
fileUrlList
=
deepClone
(
fileList
)
console
.
log
(
fileList
,
"fileList"
)
},
handleFileChange
(
file
,
fileList
,
targetItem
)
{
// setTimeout(() => {
// var reader = new FileReader()
var
fileInfo
=
file
.
raw
const
fileName
=
fileInfo
.
name
if
(
!
fileInfo
.
name
.
includes
(
".xlsx"
)
&&
!
fileInfo
.
name
.
includes
(
".xls"
))
{
this
.
$message
({
message
:
"文件格式不支持上传"
,
type
:
"error"
})
return
false
}
// 默认10MB
const
limitSize
=
10
const
isLt
=
fileInfo
.
size
/
1024
/
1024
<
limitSize
if
(
!
isLt
)
{
this
.
$message
({
message
:
"上传文件大小不能超过"
+
limitSize
+
"MB!"
,
type
:
"error"
})
this
.
uploadFileList
=
this
.
uploadFileList
.
filter
((
item
)
=>
{
return
item
.
size
/
1024
/
1024
<
10
})
return
false
}
// reader.readAsDataURL(fileInfo)
// reader.onload = e => {
// // const _voucherList = this.editData.fileUrlList
// const _formData = this.editData
// _formData[targetItem.name].push({
// fileUrl: '',
// uploadProgress: 0,
// fileName: fileInfo.name?.substring(0, 128),
// fileSize: fileInfo.size,
// cancelAxios: {}
// })
// const index = _formData[targetItem.name].length - 1
// const fileData = e.target.result
// const base64 = fileInfo.name.split('.')[fileInfo.name.split('.').length - 1] + '@' + fileData.split(',')[1]
// const requestEvent = fileInfo.type == 'application/pdf' ? uploadPDF : uploadExcel
// requestEvent({
// file: base64,
// onProcess: (e) => { // 上传进度
// const { loaded, total } = e
// const uploadPrecent = ((loaded / total) * 100) | 0
// _formData[targetItem.name][index].uploadProgress = uploadPrecent
// },
// cancelFun: _formData[targetItem.name][index].cancelAxios // 取消上传
// }).then(res => {
// _formData[targetItem.name][index].fileUrl = res // 文件地址
// }).catch(() => {
// this.clearItem(targetItem, index) // 上传失败将内容清空 不删除数组 防止其它上传进度 找不到对应下标
// })
// console.log('_formData[targetItem.name]', _formData[targetItem.name])
// }
const
_formData
=
this
.
editData
_formData
[
targetItem
.
name
].
push
({
fileUrl
:
""
,
uploadProgress
:
0
,
fileName
:
fileInfo
.
name
?.
substring
(
0
,
128
),
fileSize
:
fileInfo
.
size
,
cancelAxios
:
{}
})
const
index
=
_formData
[
targetItem
.
name
].
length
-
1
const
success
=
(
res
)
=>
{
_formData
[
targetItem
.
name
][
index
].
fileUrl
=
res
.
aliyunAddress
// 文件地址
}
const
fail
=
(
err
)
=>
{
this
.
clearItem
(
targetItem
,
index
)
// 上传失败将内容清空 不删除数组 防止其它上传进度 找不到对应下标
}
this
.
handleOssUpload
(
fileInfo
,
fileName
,
success
,
fail
)
},
handleOssUpload
(
file
,
fileName
,
success
,
fail
)
{
const
bucketName
=
"jinrong-huidan-test"
// 桶名
const
fileType
=
fileName
.
substr
(
fileName
.
lastIndexOf
(
"."
)
+
1
)
this
.
GlOssApi
.
multipartUpload
(
file
,
success
,
fail
,
bucketName
,
fileType
)
},
hanldeOnExceed
(
files
,
fileList
)
{
this
.
$message
({
message
:
"最多可上传5个文件"
,
type
:
"error"
})
},
// 删除文件
handleFileDelete
(
targetItem
,
subIndex
)
{
// this.clearItem(targetItem, subIndex)
console
.
log
(
subIndex
)
this
.
editData
.
fileUrlList
.
splice
(
subIndex
,
1
)
// this.editData.fileUrlList = []
},
// 预览文件
handleFileView
(
item
)
{
// if (!item.fileUrl) return
// if (item?.fileUrl.includes('.pdf')) { // pdf文件直接打开新窗口预览
// window.open(item.fileUrl)
// } else {
// this.imgViewerVisible = true
// this.imageFileArr.forEach((val, index) => {
// if (val == item.fileUrl) this.initialIndex = index
// })
// }
},
closeImgViewer
()
{
this
.
imgViewerVisible
=
false
},
// 取消上传
doCancel
(
targetItem
,
subIndex
)
{
const
_formData
=
this
.
editData
const
cancelUploadObj
=
_formData
[
targetItem
.
name
][
subIndex
].
cancelAxios
cancelUploadObj
&&
cancelUploadObj
.
cancel
&&
cancelUploadObj
.
cancel
()
this
.
clearItem
(
targetItem
,
subIndex
)
},
filterEmpty
(
data
)
{
return
(
data
??
""
)
===
""
},
// 清空上传文件数组项内容
clearItem
(
targetItem
,
subIndex
)
{
this
.
$set
(
this
.
editData
[
targetItem
.
name
][
subIndex
],
"fileUrl"
,
""
)
this
.
$set
(
this
.
editData
[
targetItem
.
name
][
subIndex
],
"uploadProgress"
,
""
)
}
}
}
}
}
}
...
...
src/views/financeManage/components/ReceivePayEditDialog.vue
View file @
ba1812f
This diff is collapsed.
Click to expand it.
src/views/financeManage/components/SystemBillDetailDialog.vue
View file @
ba1812f
...
@@ -26,8 +26,13 @@
...
@@ -26,8 +26,13 @@
</el-table>
</el-table>
<el-pagination
background
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"page.pageNum"
:page-size=
"page.pageSize"
:total=
"page.total"
:page-sizes=
"[10, 20, 30, 40]"
layout=
"sizes,total,->,prev,pager,next,jumper"
>
<el-pagination
background
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"page.pageNum"
:page-size=
"page.pageSize"
:total=
"page.total"
:page-sizes=
"[10, 20, 30, 40]"
layout=
"sizes,total,->,prev,pager,next,jumper"
>
</el-pagination>
</el-pagination>
<DynamicAddTable
ref=
"dynamicAdd"
:adjustments=
"adjustments"
@
handleInputBlur=
"billCompute"
:isEdit=
"isEdit"
></DynamicAddTable>
<DynamicAddTable
v-if=
"billTypeStr == 'traffic'"
ref=
"dynamicReceiveAdd"
:configObj=
"
{'title': '应收'}" :receivableAdjustments="receivableAdjustments" @handleInputBlur="billCompute" :isEdit="isEdit">
</DynamicAddTable>
<div>
总金额:
{{
totalAmount
}}
元
</div>
<DynamicAddTable
ref=
"dynamicAdd"
:adjustments=
"payableAdjustments"
@
handleInputBlur=
"billCompute"
:isEdit=
"isEdit"
></DynamicAddTable>
<div
class=
"total-box"
>
<div
v-if=
"billTypeStr == 'traffic'"
>
应收总额:
{{
totalReceivable
}}
元
</div>
<div>
应付总额:
{{
totalPayable
}}
元
</div>
<div
v-if=
"billTypeStr == 'traffic'"
>
线下对账总额:
{{
totalOfflineReconciliation
}}
元
</div>
</div>
</d2-dialog>
</d2-dialog>
</div>
</div>
</
template
>
</
template
>
...
@@ -70,13 +75,14 @@ export default {
...
@@ -70,13 +75,14 @@ export default {
// 用户删除的ordercodelist
// 用户删除的ordercodelist
tableDeleteList
:
[],
tableDeleteList
:
[],
validationErrors
:
{},
validationErrors
:
{},
adjustments
:
[],
receivableAdjustments
:
[],
payableAdjustments
:
[],
multipleSelecList
:
[],
multipleSelecList
:
[],
// 分页
// 分页
page
:
{
page
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
10
,
pageSize
:
10
,
total
:
0
,
total
:
0
},
},
headObj
:
{},
headObj
:
{},
batchForm
:
{},
batchForm
:
{},
...
@@ -236,7 +242,9 @@ export default {
...
@@ -236,7 +242,9 @@ export default {
"coverReceiverType"
"coverReceiverType"
],
],
serviceEditList
:
[
"partnerFeeCalculateType,partnerFeeCalculateValue"
,
"partnerFeeCalculateCoefficient"
,
"coverReceiverType"
],
serviceEditList
:
[
"partnerFeeCalculateType,partnerFeeCalculateValue"
,
"partnerFeeCalculateCoefficient"
,
"coverReceiverType"
],
totalAmount
:
0
,
totalReceivable
:
0
,
totalPayable
:
0
,
totalOfflineReconciliation
:
0
,
changeFieldCodeList
:
[{
changeFieldCodeList
:
[{
old
:
'platformMerchantName'
,
old
:
'platformMerchantName'
,
new
:
'platformMerchantId'
new
:
'platformMerchantId'
...
@@ -358,11 +366,14 @@ export default {
...
@@ -358,11 +366,14 @@ export default {
this
.
originalOrderList
=
this
.
billTmplInfo
?.
orderPage
?.
list
||
[]
this
.
originalOrderList
=
this
.
billTmplInfo
?.
orderPage
?.
list
||
[]
this
.
orderId
=
this
.
billTmplInfo
.
id
this
.
orderId
=
this
.
billTmplInfo
.
id
this
.
sceneType
=
this
.
billTmplInfo
.
sceneType
this
.
sceneType
=
this
.
billTmplInfo
.
sceneType
this
.
totalAmount
=
this
.
billTmplInfo
.
totalAmount
this
.
totalReceivable
=
this
.
billTmplInfo
.
totalReceivable
this
.
totalPayable
=
this
.
billTmplInfo
.
totalPayable
this
.
totalOfflineReconciliation
=
this
.
billTmplInfo
.
totalOfflineReconciliation
this
.
page
.
pageNum
=
this
.
billTmplInfo
?.
orderPage
?.
pageNum
||
1
this
.
page
.
pageNum
=
this
.
billTmplInfo
?.
orderPage
?.
pageNum
||
1
this
.
page
.
pageSize
=
this
.
billTmplInfo
?.
orderPage
?.
pageSize
||
10
this
.
page
.
pageSize
=
this
.
billTmplInfo
?.
orderPage
?.
pageSize
||
10
this
.
page
.
total
=
this
.
billTmplInfo
?.
orderPage
?.
total
||
0
this
.
page
.
total
=
this
.
billTmplInfo
?.
orderPage
?.
total
||
0
this
.
adjustments
=
this
.
billTmplInfo
?.
adjustments
||
[]
this
.
receivableAdjustments
=
this
.
billTmplInfo
?.
receivableAdjustments
||
[]
this
.
payableAdjustments
=
this
.
billTmplInfo
?.
payableAdjustments
||
[]
this
.
orderTotalStat
=
this
.
billTmplInfo
.
orderTotalStat
this
.
orderTotalStat
=
this
.
billTmplInfo
.
orderTotalStat
this
.
getPlatformMerchantList
()
this
.
getPlatformMerchantList
()
this
.
dealTable
()
this
.
dealTable
()
...
@@ -538,14 +549,17 @@ export default {
...
@@ -538,14 +549,17 @@ export default {
id
:
this
.
orderId
,
id
:
this
.
orderId
,
updatedOrders
:
[],
updatedOrders
:
[],
excludeBillOrderCodes
:
[],
excludeBillOrderCodes
:
[],
adjustments
:
this
.
billTmplInfo
.
adjustments
,
receivableAdjustments
:
this
.
billTmplInfo
.
receivableAdjustments
,
payableAdjustments
:
this
.
$refs
.
dynamicAdd
.
dynamicForm
.
tableData
,
orderCurrentPage
:
this
.
page
.
pageNum
,
orderCurrentPage
:
this
.
page
.
pageNum
,
orderPageSize
:
this
.
page
.
pageSize
orderPageSize
:
this
.
page
.
pageSize
}
}
// console.log(dynamicForm, 'dynamicForm')
// console.log(dynamicForm, 'dynamicForm')
billComputePage
({
json
:
JSON
.
stringify
(
dynamicForm
)
}).
then
(
res
=>
{
billComputePage
({
json
:
JSON
.
stringify
(
dynamicForm
)
}).
then
(
res
=>
{
this
.
originalOrderList
=
res
.
orderPage
?.
list
||
[]
this
.
originalOrderList
=
res
.
orderPage
?.
list
||
[]
this
.
totalAmount
=
res
.
totalAmount
this
.
totalReceivable
=
res
.
totalReceivable
this
.
totalPayable
=
res
.
totalPayable
this
.
totalOfflineReconciliation
=
res
.
totalOfflineReconciliation
this
.
orderTotalStat
=
res
.
orderTotalStat
this
.
orderTotalStat
=
res
.
orderTotalStat
this
.
page
.
pageNum
=
res
.
orderPage
?.
pageNum
||
1
this
.
page
.
pageNum
=
res
.
orderPage
?.
pageNum
||
1
this
.
page
.
pageSize
=
res
.
orderPage
?.
pageSize
||
10
this
.
page
.
pageSize
=
res
.
orderPage
?.
pageSize
||
10
...
...
src/views/financeManage/constant/receivePayData.js
0 → 100644
View file @
ba1812f
export
const
receiveTableColumns
=
[
{
label
:
"*(单据头)业务日期"
,
prop
:
"businessDate"
// formatter: (cellValue) => {
// return { 1: "新增应付转账", 2: "推送企微OA" }[cellValue.oprType] || ""
// }
},
{
label
:
"*(单据头)到期日"
,
prop
:
"expireDate"
},
{
label
:
"(单据头)客户#名称"
,
prop
:
"customerName"
,
labelName
:
"customerCode"
,
addHtml
:
"edit"
,
editType
:
"select"
,
optionList
:
[],
optionId
:
"number"
,
optionLabel
:
"name"
,
optionsName
:
"customerOpt"
,
apiName
:
"getJdCustPage"
,
isMarkRed
:
true
},
{
label
:
"(单据头)币别#名称"
,
prop
:
"coinName"
},
{
label
:
"(单据头)结算组织#名称"
,
prop
:
"settlementOrg"
,
labelName
:
"settlementOrgCode"
,
addHtml
:
"edit"
,
editType
:
"select"
,
optionList
:
[],
optionId
:
"number"
,
optionLabel
:
"name"
,
optionsName
:
"settlementOrgOpt"
,
apiName
:
"getJdOrgPage"
,
isMarkRed
:
true
},
{
label
:
"(单据头)收款组织#名称"
,
prop
:
"rcvOrgName"
,
labelName
:
"rcvOrgCode"
,
addHtml
:
"edit"
,
editType
:
"select"
,
optionList
:
[],
optionId
:
"number"
,
optionLabel
:
"name"
,
optionsName
:
"rcvOrgOpt"
,
apiName
:
"getJdOrgPage"
,
isMarkRed
:
true
},
{
label
:
"*(表头财务)到期日计算日期"
,
prop
:
"expireDateCalDate"
},
{
label
:
"(表头财务)汇率类型#名称"
,
prop
:
"exchangeRateName"
,
editType
:
"select"
},
{
label
:
"(明细)物料编码#名称"
,
prop
:
"exchangeRateName"
,
labelName
:
"materialCode"
,
addHtml
:
"edit"
,
editType
:
"select"
},
{
label
:
"(明细)物料名称"
,
prop
:
"materialCodeName"
},
{
label
:
"(明细)计价单位#名称"
,
prop
:
"pricingUnitName"
},
{
label
:
"(明细)计价数量"
,
prop
:
"pricingNumber"
,
addHtml
:
"edit"
,
editType
:
"input"
},
{
label
:
"(明细)价税合计本位币"
,
prop
:
"priceTaxTotal"
,
addHtml
:
"edit"
,
editType
:
"input"
},
{
label
:
"(明细)含税单价"
,
prop
:
"taxUnitPrice"
},
{
label
:
"(明细)单价"
,
prop
:
"unitPrice"
},
{
label
:
"(明细)业务类型"
,
prop
:
"businessTypeName"
,
addHtml
:
"edit"
,
editType
:
"select"
},
{
label
:
"(明细)分摊期限"
,
prop
:
"allocationPeriod"
},
{
label
:
"(明细)税率(%)"
,
prop
:
"taxRate"
,
addHtml
:
"edit"
,
editType
:
"select"
},
{
label
:
"(明细)备注"
,
prop
:
"remark"
,
addHtml
:
"edit"
,
editType
:
"input"
},
{
label
:
"(明细)不含税金额"
,
prop
:
"priceWithoutTax"
},
{
label
:
"(明细)税额"
,
prop
:
"tax"
},
{
label
:
"(明细)4S门店"
,
prop
:
"shopMerchantName"
,
addHtml
:
"edit"
,
editType
:
"input"
}
]
export
const
payTableColumns
=
[
{
label
:
"*(单据头)业务日期"
,
prop
:
"businessDate"
// formatter: (cellValue) => {
// return { 1: "新增应付转账", 2: "推送企微OA" }[cellValue.oprType] || ""
// }
},
{
label
:
"*(单据头)到期日"
,
prop
:
"expireDate"
},
{
label
:
"(单据头)供应商#名称"
,
prop
:
"supplierIdName"
},
{
label
:
"(单据头)币别#名称"
,
prop
:
"coinName"
},
{
label
:
"(单据头)结算组织#名称"
,
prop
:
"settlementOrg"
},
{
label
:
"(单据头)付款组织#名称"
,
prop
:
"rcvOrgName"
},
{
label
:
"*(单据头)发票类型"
,
prop
:
""
},
{
label
:
"*(表头财务)到期日计算日期"
,
prop
:
"expireDateCalDate"
},
{
label
:
"(表头财务)汇率类型#名称"
,
prop
:
"exchangeRateName"
},
{
label
:
"(明细)物料编码#名称"
,
prop
:
"materialCode"
},
{
label
:
"(明细)物料名称"
,
prop
:
"materialCodeName"
},
{
label
:
"(明细)计价单位#名称"
,
prop
:
"pricingUnitName"
},
{
label
:
"(明细)计价数量"
,
prop
:
"pricingNumber"
},
{
label
:
"(明细)价税合计本位币"
,
prop
:
"priceTaxTotal"
},
{
label
:
"(明细)含税单价"
,
prop
:
"taxUnitPrice"
},
{
label
:
"(明细)单价"
,
prop
:
"unitPrice"
},
{
label
:
"(明细)业务类型"
,
prop
:
"businessTypeName"
},
{
label
:
"(明细)分摊期限"
,
prop
:
"allocationPeriod"
},
{
label
:
"(明细)税率(%)"
,
prop
:
"taxRate"
},
{
label
:
"(明细)备注"
,
prop
:
"remark"
},
{
label
:
"(明细)不含税金额"
,
prop
:
"priceWithoutTax"
},
{
label
:
"(明细)税额"
,
prop
:
"tax"
},
{
label
:
"(明细)4S门店"
,
prop
:
"shopMerchantName"
}
]
Write
Preview
Markdown
is supported
Attach a file
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 post a comment