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 ffdd677a
authored
Jul 01, 2025
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
需求代码提交
1 parent
6cdcb696
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1053 additions
and
21 deletions
package-lock.json
src/router/modules/919_serviceCentre.js
src/views/serviceCentre/components/QRCodeDetailDialog.vue
src/views/serviceCentre/components/inputRange.vue
src/views/serviceCentre/components/invoiceCodeDetailDialog.vue
src/views/serviceCentre/components/invoiceQueryDetailDialog.vue
src/views/serviceCentre/longCourse/courseList.vue
src/views/serviceCentre/longCourse/longCourseCenter.vue
package-lock.json
View file @
ffdd677
...
@@ -3524,6 +3524,27 @@
...
@@ -3524,6 +3524,27 @@
"whatwg-fetch"
:
"^3.6.2"
"whatwg-fetch"
:
"^3.6.2"
},
},
"dependencies"
:
{
"dependencies"
:
{
"@vue/vue-loader-v15"
:
{
"version"
:
"npm:vue-loader@15.11.1"
,
"resolved"
:
"https://registry.npmmirror.com/vue-loader/-/vue-loader-15.11.1.tgz"
,
"integrity"
:
"sha512-0iw4VchYLePqJfJu9s62ACWUXeSqM30SQqlIftbYWM3C+jpPcEHKSPUZBLjSF9au4HTHQ/naF6OGnO3Q/qGR3Q=="
,
"dev"
:
true
,
"requires"
:
{
"@vue/component-compiler-utils"
:
"^3.1.0"
,
"hash-sum"
:
"^1.0.2"
,
"loader-utils"
:
"^1.1.0"
,
"vue-hot-reload-api"
:
"^2.3.0"
,
"vue-style-loader"
:
"^4.1.0"
},
"dependencies"
:
{
"hash-sum"
:
{
"version"
:
"1.0.2"
,
"resolved"
:
"https://registry.npmmirror.com/hash-sum/-/hash-sum-1.0.2.tgz"
,
"integrity"
:
"sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA=="
,
"dev"
:
true
}
}
},
"acorn-walk"
:
{
"acorn-walk"
:
{
"version"
:
"8.2.0"
,
"version"
:
"8.2.0"
,
"resolved"
:
"https://registry.npmmirror.com/acorn-walk/-/acorn-walk-8.2.0.tgz"
,
"resolved"
:
"https://registry.npmmirror.com/acorn-walk/-/acorn-walk-8.2.0.tgz"
,
...
@@ -3913,27 +3934,6 @@
...
@@ -3913,27 +3934,6 @@
"lodash"
:
"^4.17.4"
"lodash"
:
"^4.17.4"
}
}
},
},
"@vue/vue-loader-v15"
:
{
"version"
:
"npm:vue-loader@15.11.1"
,
"resolved"
:
"https://registry.npmjs.org/vue-loader/-/vue-loader-15.11.1.tgz"
,
"integrity"
:
"sha512-0iw4VchYLePqJfJu9s62ACWUXeSqM30SQqlIftbYWM3C+jpPcEHKSPUZBLjSF9au4HTHQ/naF6OGnO3Q/qGR3Q=="
,
"dev"
:
true
,
"requires"
:
{
"@vue/component-compiler-utils"
:
"^3.1.0"
,
"hash-sum"
:
"^1.0.2"
,
"loader-utils"
:
"^1.1.0"
,
"vue-hot-reload-api"
:
"^2.3.0"
,
"vue-style-loader"
:
"^4.1.0"
},
"dependencies"
:
{
"hash-sum"
:
{
"version"
:
"1.0.2"
,
"resolved"
:
"https://registry.npmjs.org/hash-sum/-/hash-sum-1.0.2.tgz"
,
"integrity"
:
"sha512-fUs4B4L+mlt8/XAtSOGMUO1TXmAelItBPtJG7CyHJfYTdDjwisntGO2JQz7oUsatOY9o68+57eziUVNw/mRHmA=="
,
"dev"
:
true
}
}
},
"@vue/vue2-jest"
:
{
"@vue/vue2-jest"
:
{
"version"
:
"27.0.0"
,
"version"
:
"27.0.0"
,
"resolved"
:
"https://registry.npmmirror.com/@vue/vue2-jest/-/vue2-jest-27.0.0.tgz"
,
"resolved"
:
"https://registry.npmmirror.com/@vue/vue2-jest/-/vue2-jest-27.0.0.tgz"
,
...
...
src/router/modules/919_serviceCentre.js
0 → 100644
View file @
ffdd677
const
_import
=
require
(
"@/libs/util.import."
+
process
.
env
.
NODE_ENV
)
export
const
routerName
=
{
919
:
{
path
:
"/serviceCentre"
,
name
:
"serviceCentre"
,
meta
:
{
title
:
"服务中心"
,
authId
:
"919"
,
parentId
:
"1"
,
cache
:
false
}
},
91901
:
{
path
:
"/longCourse"
,
name
:
"longCourse"
,
meta
:
{
title
:
"长课程配置"
,
authId
:
"91901"
,
parentId
:
"919"
,
cache
:
false
},
auth
:
[
{
authId
:
"9190101"
,
parentId
:
"91901"
,
label
:
"查看"
,
handle
:
"handleTaskDetail"
},
{
authId
:
"9190102"
,
parentId
:
"91901"
,
label
:
"启用"
,
handle
:
"handleOpenOrStop"
,
ruleObj
:
{
attr
:
"status"
,
rule
:
{
0
:
"启用"
,
1
:
"停用"
}
}
}
],
component
:
_import
(
"serviceCentre/longCourse/longCourseCenter"
)
}
// 91702: {
// path: "/invoiceQuery",
// name: "invoiceQuery",
// meta: {
// title: "发票查询",
// authId: "91702",
// parentId: "917",
// cache: false
// },
// auth: [
// {
// authId: "9170201",
// parentId: "91702",
// label: "下载电子发票",
// category: "Button",
// type: "primary",
// handle: "handleDownloadInvoice"
// },
// {
// authId: "9170202",
// parentId: "91702",
// label: "打印电子发票",
// category: "Button",
// type: "primary",
// handle: "handlePrintInvoice"
// },
// {
// authId: "9170203",
// parentId: "91702",
// label: "导出",
// category: "Button",
// type: "primary",
// handle: "handleExport"
// },
// {
// authId: "9170204",
// parentId: "91702",
// label: "详情",
// handle: "handleDetail"
// },
// {
// authId: "9170205",
// parentId: "91702",
// label: "查看发票",
// handle: "handleLookInvoice"
// }
// ],
// component: _import("invoiceManage/invoiceQueryList")
// }
}
src/views/serviceCentre/components/QRCodeDetailDialog.vue
0 → 100644
View file @
ffdd677
<
template
>
<div>
<baseDialog
:is-show
.
sync=
"dialogShow"
:config=
"dialogConfig.setting"
:dialog-config=
"dialogConfig.config"
class=
"detail-content-warn"
>
<div
v-loading=
"loading"
>
<div
class=
"form_div"
>
<el-form
label-width=
"450px"
:inline=
"true"
>
<el-form-item
label=
"销售方名称:"
>
{{
detailInfo
.
enterpriseName
?
detailInfo
.
enterpriseName
:
"-"
}}
</el-form-item>
<!--
<el-form-item
label=
"企业联系电话:"
>
{{
"-"
}}
</el-form-item>
-->
<el-form-item
label=
"开票金额:"
>
{{
detailInfo
.
invoiceAmount
?
detailInfo
.
invoiceAmount
:
"-"
}}
</el-form-item>
<el-form-item
label=
"票通订单号:"
>
{{
detailInfo
.
tradeNo
?
detailInfo
.
tradeNo
:
"-"
}}
</el-form-item>
<el-form-item
label=
"生成时间:"
>
{{
detailInfo
.
createdDate
?
detailInfo
.
createdDate
:
"-"
}}
</el-form-item>
<el-form-item
label=
"二维码有效期:"
>
{{
detailInfo
.
expireDay
?
detailInfo
.
expireDay
+
'天'
:
"-"
}}
</el-form-item>
</el-form>
<div
class=
"imgCon"
>
<el-image
id=
"printImage"
:src=
"detailInfo.invoiceQrCode"
class=
"imgSize"
></el-image>
</div>
<div
class=
"tips"
>
您可以使用微信或支付宝,扫码开票
</div>
</div>
<div
class=
"footer"
>
<el-button
@
click=
"dialogInnerShow = true"
type=
"primary"
>
发送邮箱
</el-button>
<el-button
@
click=
"handlePrint"
>
打印
</el-button>
</div>
</div>
<baseDialog
:is-show
.
sync=
"dialogInnerShow"
:config=
"dialogInnerConfig.setting"
:dialog-config=
"dialogInnerConfig.config"
@
handleClick=
"handleSendEmail"
>
<el-form
ref=
"sendFormRef"
:model=
"sendForm"
label-width=
"100px"
>
<el-form-item
prop=
"email"
label=
"邮箱"
:rules=
"[
{ required: true, message: '请输入邮箱地址', trigger: 'blur' },
{ type: 'email', message: '请输入正确的邮箱地址', trigger: ['blur', 'change'] }
]">
<el-input
v-model=
"sendForm.email"
style=
"width: 300px;"
></el-input>
</el-form-item>
</el-form>
</baseDialog>
</basedialog>
</div>
</
template
>
<
script
>
import
{
getByQrcodeNo
,
sendEmail
}
from
'@api/invoiceManage'
import
{
Util
,
deepClone
}
from
"@/common/util"
export
default
{
name
:
"InvoiceCodeDetailDialog"
,
components
:
{
},
props
:
{
visible
:
{
type
:
Boolean
,
default
:
false
},
paramsObj
:
{
type
:
Object
,
default
:
{}
}
},
computed
:
{
dialogShow
:
{
get
()
{
return
this
.
visible
},
set
(
val
)
{
this
.
$emit
(
'dialogClose'
)
}
}
},
mounted
()
{
this
.
getDetail
()
},
data
()
{
return
{
dialogConfig
:
{
setting
:
{
showClose
:
true
,
appendToBody
:
true
,
btnList
:
[]
},
config
:
{
title
:
"查看二维码"
,
width
:
"1080px"
}
},
detailInfo
:
{},
loading
:
true
,
dialogInnerShow
:
false
,
dialogInnerConfig
:
{
setting
:
{
showClose
:
true
,
appendToBody
:
true
,
isShowFooter
:
true
,
confirm_name
:
'发送'
,
cancel_name
:
'取消'
},
config
:
{
title
:
"发送邮箱"
,
width
:
"500px"
}
},
sendForm
:
{
email
:
''
}
}
},
methods
:
{
getDetail
()
{
var
params
=
{
qrcodeNo
:
this
.
paramsObj
.
qrcodeNo
}
getByQrcodeNo
(
params
).
then
(
res
=>
{
this
.
detailInfo
=
res
this
.
loading
=
false
})
},
handlePrint
()
{
if
(
this
.
detailInfo
.
invoiceQrCode
)
{
window
.
open
(
this
.
detailInfo
.
invoiceQrCode
)
}
},
handleSendEmail
()
{
this
.
$refs
.
sendFormRef
.
validate
(
valid
=>
{
if
(
valid
)
{
var
params
=
deepClone
(
this
.
sendForm
)
params
.
qrcodeNo
=
this
.
detailInfo
.
qrcodeNo
sendEmail
(
params
).
then
(
res
=>
{
this
.
notice
.
okTips
(
'发送成功'
)
this
.
dialogInnerShow
=
false
})
}
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.detail-content-warn
{
.form_div
{
color
:
#333333
;
.el-form-item__content
{
display
:
inline-block
;
width
:
calc
(
100%
-
150px
);
line-height
:
24px
;
}
.el-form-item__label
{
padding
:
0
;
line-height
:
24px
;
}
.el-form-item
{
width
:
100%
;
margin-bottom
:
20px
;
}
.edit-sub-block
{
//
padding
:
0
10px
;
.detail-txt
{
display
:
inline-block
;
width
:
200px
;
vertical-align
:
bottom
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
::v-deep
.el-form-item__content
{
max-width
:
calc
(
100%
-
110px
);
word-break
:
break-all
;
}
.itemDiv
{
display
:
flex
;
.halfItem
{
width
:
50%
;
}
}
.onLineItem
{
::v-deep
.el-form-item__content
{
max-width
:
80%
;
}
}
}
.imgCon
{
text-align
:
center
;
.imgSize
{
width
:
120px
;
height
:
120px
;
}
}
.tips
{
text-align
:
center
;
margin-top
:
10px
;
}
}
.footer
{
text-align
:
center
;
margin-top
:
50px
;
}
}
</
style
>
src/views/serviceCentre/components/inputRange.vue
0 → 100644
View file @
ffdd677
<
template
>
<div
class=
"range"
>
<div
:class=
"[
' el-date-editor',
'el-range-editor',
'el-input__inner',
'el-date-editor--daterange',
'el-range-editor--small',
pickerVisible ? 'is-active' : ''
]"
@
click=
"handleRangeClick"
@
mouseleave=
"showClose = false"
@
mousemove=
"handleMove"
ref=
"reference"
>
<template
v-if=
"infinity"
>
<el-input-number
class=
"el-range-input hide-btn"
:placeholder=
"startPlaceholder"
v-model=
"userInput[0]"
@
blur=
"handleBlur(0)"
></el-input-number>
<span
class=
"el-range-separator"
>
至
</span>
<el-input-number
class=
"el-range-input hide-btn"
:placeholder=
"endPlaceholder"
v-model=
"userInput[1]"
@
blur=
"handleBlur(1)"
></el-input-number>
</
template
>
<
template
v-else
>
<el-input
v-model=
"userInput[0]"
:placeholder=
"startPlaceholder"
@
blur=
"handleBlur(0)"
@
input=
"handleStartInput"
class=
"el-range-input"
></el-input>
<span
class=
"el-range-separator"
>
至
</span>
<el-input
v-model=
"userInput[1]"
:placeholder=
"endPlaceholder"
@
input=
"handleEndInput"
@
focus=
"handleFocus"
@
blur=
"handleBlur(1)"
class=
"el-range-input"
></el-input>
</
template
>
<i
v-show=
"showClose"
@
click=
"handleClickIcon"
class=
"el-icon-circle-close"
></i>
</div>
<div
class=
"errorTips"
v-if=
"tipsShow"
>
最大金额需大于最小金额
</div>
</div>
</template>
<
script
>
import
{
limitPrice
}
from
'@/common/format'
export
default
{
data
()
{
return
{
pickerVisible
:
false
,
showClose
:
false
,
userInput
:
this
.
displayValue
,
oldVal
:
{
startInput
:
''
,
endInput
:
''
},
tipsShow
:
false
}
},
props
:
{
displayValue
:
Array
,
placeholder
:
String
,
startPlaceholder
:
String
,
endPlaceholder
:
String
,
infinity
:
Boolean
},
watch
:
{
displayValue
(
val
)
{
if
(
val
)
{
this
.
userInput
=
val
if
(
val
.
length
==
0
)
{
this
.
tipsShow
=
false
}
}
}
},
methods
:
{
handleStartInput
(
event
)
{
this
.
userInput
[
0
]
=
limitPrice
(
event
,
this
.
oldVal
.
startInput
,
20
,
2
)
this
.
oldVal
.
startInput
=
this
.
userInput
[
0
]
},
handleEndInput
(
event
)
{
this
.
userInput
[
1
]
=
limitPrice
(
event
,
this
.
oldVal
.
endInput
,
20
,
2
)
this
.
oldVal
.
endInput
=
this
.
userInput
[
1
]
},
handleClickIcon
(
event
)
{
this
.
userInput
[
0
]
=
null
this
.
userInput
[
1
]
=
null
this
.
tipsShow
=
false
},
valueIsEmpty
()
{
const
val
=
this
.
userInput
if
(
Array
.
isArray
(
val
))
{
for
(
let
i
=
0
,
len
=
val
.
length
;
i
<
len
;
i
++
)
{
if
(
val
[
i
])
{
return
false
}
}
}
return
true
},
handleRangeClick
()
{
this
.
pickerVisible
=
true
},
handleMove
()
{
if
(
this
.
valueIsEmpty
())
{
this
.
showClose
=
false
}
else
{
this
.
showClose
=
true
}
},
handleFocus
()
{
if
(
!
this
.
pickerVisible
)
{
this
.
pickerVisible
=
true
this
.
$emit
(
"focus"
,
this
)
}
},
handleBlur
(
index
)
{
this
.
pickerVisible
=
false
this
.
contrastValue
()
},
contrastValue
()
{
const
val
=
this
.
userInput
if
(
Array
.
isArray
(
val
))
{
if
(
+
val
[
0
]
>
+
val
[
1
])
{
val
[
1
]
=
null
this
.
tipsShow
=
true
}
else
{
this
.
tipsShow
=
false
}
}
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.range
{
.el-range-input
{
::v-deep
{
input
{
border
:
0
;
margin-top
:
-2px
;
height
:
28px
;
}
}
}
.el-icon-circle-close
{
color
:
#dcdfe6
;
margin-left
:
10px
;
}
.hide-btn
{
::v-deep
{
span
{
display
:
none
;
}
input
{
padding
:
0
;
}
}
}
.errorTips
{
color
:
red
;
//
text-align
:
center
;
font-size
:
12px
;
}
}
</
style
>
src/views/serviceCentre/components/invoiceCodeDetailDialog.vue
0 → 100644
View file @
ffdd677
<
template
>
<div>
<baseDialog
:is-show
.
sync=
"dialogShow"
:config=
"dialogConfig.setting"
:dialog-config=
"dialogConfig.config"
class=
"detail-content-warn"
>
<div
v-loading=
"loading"
>
<div
class=
"form_div"
>
<el-form
class=
"edit-sub-block"
label-width=
"150px"
:inline=
"true"
>
<div>
<el-form-item
label=
"可选开票种类:"
class=
"onLineItem"
>
{{
detailInfo
.
invoiceTypeShow
?
detailInfo
.
invoiceTypeShow
:
"-"
}}
</el-form-item>
</div>
<div>
<el-form-item
label=
"主订单号:"
class=
"onLineItem"
>
{{
detailInfo
.
bizOrderCode
?
detailInfo
.
bizOrderCode
:
"-"
}}
</el-form-item>
</div>
<div
class=
"itemDiv"
>
<el-form-item
label=
"开票项目:"
class=
"halfItem"
>
{{
detailInfo
.
itemNames
?
detailInfo
.
itemNames
:
"-"
}}
</el-form-item>
<el-form-item
label=
"待开票金额:"
class=
"halfItem"
>
{{
detailInfo
.
invoiceAmount
?
detailInfo
.
invoiceAmount
:
"-"
}}
</el-form-item>
</div>
<div
class=
"itemDiv"
>
<el-form-item
label=
"收款人:"
class=
"halfItem"
>
{{
detailInfo
.
casherName
?
detailInfo
.
casherName
:
"-"
}}
</el-form-item>
<el-form-item
label=
"复核人:"
class=
"halfItem"
>
{{
detailInfo
.
reviewerName
?
detailInfo
.
reviewerName
:
"-"
}}
</el-form-item>
</div>
<div
class=
"itemDiv"
>
<el-form-item
label=
"可开票张数:"
class=
"halfItem"
>
{{
detailInfo
.
allowInvoiceCount
?
detailInfo
.
allowInvoiceCount
:
"-"
}}
</el-form-item>
<el-form-item
label=
"发票备注:"
class=
"halfItem"
>
{{
detailInfo
.
invoiceRemark
?
detailInfo
.
invoiceRemark
:
"-"
}}
</el-form-item>
</div>
<div
class=
"itemDiv"
>
<el-form-item
label=
"发送短信:"
class=
"halfItem"
>
{{
"-"
}}
</el-form-item>
<el-form-item
label=
"二维码有效期:"
class=
"halfItem"
>
{{
detailInfo
.
expireDay
?
detailInfo
.
expireDay
+
'天'
:
"-"
}}
</el-form-item>
</div>
<div
class=
"itemDiv"
>
<el-form-item
label=
"发送邮件:"
class=
"halfItem"
>
{{
detailInfo
.
email
?
detailInfo
.
email
:
"-"
}}
</el-form-item>
</div>
</el-form>
</div>
</div>
</basedialog>
</div>
</
template
>
<
script
>
import
{
getByQrcodeNo
}
from
'@api/invoiceManage'
import
{
Util
,
deepClone
}
from
"@/common/util"
import
{
invoiceTypeOpt
}
from
'@/common/constants.js'
export
default
{
name
:
"InvoiceCodeDetailDialog"
,
components
:
{
},
props
:
{
visible
:
{
type
:
Boolean
,
default
:
false
},
paramsObj
:
{
type
:
Object
,
default
:
{}
}
},
computed
:
{
dialogShow
:
{
get
()
{
return
this
.
visible
},
set
(
val
)
{
this
.
$emit
(
'dialogClose'
)
}
}
},
mounted
()
{
this
.
getDetail
()
},
data
()
{
return
{
dialogConfig
:
{
setting
:
{
showClose
:
true
,
appendToBody
:
false
,
btnList
:
[]
},
config
:
{
title
:
"开票二维码详情"
,
width
:
"1080px"
}
},
detailInfo
:
{},
loading
:
true
,
invoiceTypeOpt
:
deepClone
(
invoiceTypeOpt
)
}
},
methods
:
{
getDetail
()
{
var
params
=
{
qrcodeNo
:
this
.
paramsObj
.
qrcodeNo
}
getByQrcodeNo
(
params
).
then
(
res
=>
{
this
.
detailInfo
=
res
this
.
dataProcess
(
this
.
detailInfo
)
this
.
loading
=
false
})
},
dataProcess
(
info
)
{
if
(
info
)
{
if
(
info
.
invoiceType
)
{
let
arr
=
info
.
invoiceType
.
split
(
","
)
console
.
log
(
'arr'
,
arr
)
console
.
log
(
'this.invoiceTypeOpt'
,
this
.
invoiceTypeOpt
)
arr
=
arr
.
map
((
o
)
=>
{
return
this
.
invoiceTypeOpt
.
find
(
item
=>
item
.
confId
===
o
)?.
confValue
})
info
.
invoiceTypeShow
=
arr
.
join
(
"/"
)
}
}
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.detail-content-warn
{
.form_div
{
color
:
#333333
;
.el-form-item__content
{
display
:
inline-block
;
width
:
calc
(
100%
-
150px
);
line-height
:
24px
;
}
.el-form-item__label
{
padding
:
0
;
line-height
:
24px
;
}
.el-form-item
{
width
:
100%
;
margin-bottom
:
20px
;
}
.edit-sub-block
{
//
padding
:
0
10px
;
.detail-txt
{
display
:
inline-block
;
width
:
200px
;
vertical-align
:
bottom
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
::v-deep
.el-form-item__content
{
max-width
:
calc
(
100%
-
110px
);
word-break
:
break-all
;
}
.itemDiv
{
display
:
flex
;
.halfItem
{
width
:
50%
;
}
}
.onLineItem
{
::v-deep
.el-form-item__content
{
max-width
:
80%
;
}
}
}
}
}
</
style
>
src/views/serviceCentre/components/invoiceQueryDetailDialog.vue
0 → 100644
View file @
ffdd677
<
template
>
<div>
<baseDialog
:is-show
.
sync=
"dialogShow"
:config=
"dialogConfig.setting"
:dialog-config=
"dialogConfig.config"
class=
"detail-content-warn"
>
<div
v-loading=
"loading"
>
<div
class=
"form_div"
>
<el-form
class=
"edit-sub-block"
label-width=
"150px"
:inline=
"true"
>
<div
class=
"itemDiv"
>
<el-form-item
label=
"发票种类:"
class=
"halfItem"
>
{{
detailInfo
.
invoiceTypeShow
?
detailInfo
.
invoiceTypeShow
:
"-"
}}
</el-form-item>
<el-form-item
label=
"作废状态:"
class=
"halfItem"
>
{{
detailInfo
.
invalidFlagShow
?
detailInfo
.
invalidFlagShow
:
"-"
}}
</el-form-item>
</div>
<div
class=
"itemDiv"
>
<el-form-item
label=
"购买方名称:"
class=
"halfItem"
>
{{
detailInfo
.
buyerName
?
detailInfo
.
buyerName
:
"-"
}}
</el-form-item>
<el-form-item
label=
"开票人:"
class=
"halfItem"
>
{{
detailInfo
.
drawerName
?
detailInfo
.
drawerName
:
"-"
}}
</el-form-item>
</div>
<div
class=
"itemDiv"
>
<el-form-item
label=
"购买方税号:"
class=
"halfItem"
>
{{
detailInfo
.
buyerTaxpayerNum
?
detailInfo
.
buyerTaxpayerNum
:
"-"
}}
</el-form-item>
<el-form-item
label=
"开票类型:"
class=
"halfItem"
>
{{
detailInfo
.
InvoicingShow
?
detailInfo
.
InvoicingShow
:
"-"
}}
</el-form-item>
</div>
<div
class=
"itemDiv"
>
<el-form-item
label=
"数电票号码:"
class=
"halfItem"
>
{{
detailInfo
.
electronicInvoiceNo
?
detailInfo
.
electronicInvoiceNo
:
"-"
}}
</el-form-item>
<el-form-item
label=
"开票来源:"
class=
"halfItem"
>
{{
detailInfo
.
createdSourceShow
?
detailInfo
.
createdSourceShow
:
"-"
}}
</el-form-item>
</div>
<div
class=
"itemDiv"
>
<el-form-item
label=
"开票日期:"
class=
"halfItem"
>
{{
detailInfo
.
invoiceDate
?
detailInfo
.
invoiceDate
:
"-"
}}
</el-form-item>
<el-form-item
label=
"票通订单号:"
class=
"halfItem"
>
{{
detailInfo
.
tradeNo
?
detailInfo
.
tradeNo
:
"-"
}}
</el-form-item>
</div>
<div
class=
"itemDiv"
>
<el-form-item
label=
"不含税金额:"
class=
"halfItem"
>
{{
detailInfo
.
noTaxAmount
?
detailInfo
.
noTaxAmount
:
"-"
}}
</el-form-item>
<el-form-item
label=
"主订单号:"
class=
"halfItem"
>
{{
detailInfo
.
bizOrderCode
?
detailInfo
.
bizOrderCode
:
"-"
}}
</el-form-item>
</div>
<div
class=
"itemDiv"
>
<el-form-item
label=
"税额:"
class=
"halfItem"
>
{{
detailInfo
.
taxAmount
?
detailInfo
.
taxAmount
:
"-"
}}
</el-form-item>
<el-form-item
label=
"交易参考号:"
class=
"halfItem"
>
{{
detailInfo
.
bizTradeNo
?
detailInfo
.
bizTradeNo
:
"-"
}}
</el-form-item>
</div>
<div
class=
"itemDiv"
>
<el-form-item
label=
"价税合计金额:"
class=
"halfItem"
>
{{
detailInfo
.
amountWithTax
?
detailInfo
.
amountWithTax
:
"-"
}}
</el-form-item>
<el-form-item
label=
"主要项目名称:"
class=
"halfItem"
>
{{
detailInfo
.
itemNames
?
detailInfo
.
itemNames
:
"-"
}}
</el-form-item>
</div>
<div
class=
"itemDiv"
>
<el-form-item
label=
"冲红状态:"
class=
"halfItem"
>
{{
detailInfo
.
redFlagShow
?
detailInfo
.
redFlagShow
:
"-"
}}
</el-form-item>
</div>
</el-form>
</div>
</div>
</basedialog>
</div>
</
template
>
<
script
>
import
{
getByInvoiceReqSerialNo
}
from
'@api/invoiceManage'
import
{
Util
,
deepClone
}
from
"@/common/util"
import
{
createdSourceOpt
,
invoiceTypeOpt
,
redFlagOpt
,
invalidFlagOpt
,
InvoicingOpt
}
from
"@/common/constants.js"
export
default
{
name
:
"InvoiceQueryDetailDialog"
,
components
:
{
},
props
:
{
visible
:
{
type
:
Boolean
,
default
:
false
},
paramsObj
:
{
type
:
Object
,
default
:
{}
}
},
computed
:
{
dialogShow
:
{
get
()
{
return
this
.
visible
},
set
(
val
)
{
this
.
$emit
(
'dialogClose'
)
}
}
},
mounted
()
{
this
.
getDetail
()
},
data
()
{
return
{
dialogConfig
:
{
setting
:
{
showClose
:
true
,
appendToBody
:
false
,
btnList
:
[]
},
config
:
{
title
:
"发票详情"
,
width
:
"1080px"
}
},
detailInfo
:
{},
loading
:
true
,
invoiceTypeOpt
:
deepClone
(
invoiceTypeOpt
),
createdSourceOpt
:
deepClone
(
createdSourceOpt
),
redFlagOpt
:
deepClone
(
redFlagOpt
),
invalidFlagOpt
:
deepClone
(
invalidFlagOpt
),
InvoicingOpt
:
deepClone
(
InvoicingOpt
)
}
},
methods
:
{
getDetail
()
{
var
params
=
{
invoiceReqSerialNo
:
this
.
paramsObj
.
invoiceReqSerialNo
}
getByInvoiceReqSerialNo
(
params
).
then
(
res
=>
{
this
.
detailInfo
=
res
this
.
dataProcess
(
this
.
detailInfo
)
this
.
loading
=
false
})
},
dataProcess
(
info
)
{
if
(
info
)
{
if
(
info
.
invoiceKind
)
{
let
arr
=
info
.
invoiceKind
.
split
(
","
)
console
.
log
(
'arr'
,
arr
)
console
.
log
(
'this.invoiceTypeOpt'
,
this
.
invoiceTypeOpt
)
arr
=
arr
.
map
((
o
)
=>
{
return
this
.
invoiceTypeOpt
.
find
(
item
=>
item
.
confId
===
o
)?.
confValue
})
info
.
invoiceTypeShow
=
arr
.
join
(
"/"
)
}
if
(
info
.
invalidFlag
)
{
info
.
invalidFlagShow
=
this
.
invalidFlagOpt
.
find
(
item
=>
item
.
confId
===
info
.
invalidFlag
)?.
confValue
}
if
(
info
.
invoiceType
)
{
info
.
InvoicingShow
=
this
.
InvoicingOpt
.
find
(
item
=>
item
.
confId
===
info
.
invoiceType
)?.
confValue
}
if
(
info
.
createdSource
)
{
info
.
createdSourceShow
=
this
.
createdSourceOpt
.
find
(
item
=>
item
.
confId
===
info
.
createdSource
)?.
confValue
}
if
(
info
.
redFlag
)
{
info
.
redFlagShow
=
this
.
redFlagOpt
.
find
(
item
=>
item
.
confId
===
info
.
redFlag
)?.
confValue
}
}
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.detail-content-warn
{
.form_div
{
color
:
#333333
;
.el-form-item__content
{
display
:
inline-block
;
width
:
calc
(
100%
-
150px
);
line-height
:
24px
;
}
.el-form-item__label
{
padding
:
0
;
line-height
:
24px
;
}
.el-form-item
{
width
:
100%
;
margin-bottom
:
20px
;
}
.edit-sub-block
{
//
padding
:
0
10px
;
.detail-txt
{
display
:
inline-block
;
width
:
200px
;
vertical-align
:
bottom
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
::v-deep
.el-form-item__content
{
max-width
:
calc
(
100%
-
110px
);
word-break
:
break-all
;
}
.itemDiv
{
display
:
flex
;
.halfItem
{
width
:
50%
;
}
}
.onLineItem
{
::v-deep
.el-form-item__content
{
max-width
:
80%
;
}
}
}
}
}
</
style
>
src/views/serviceCentre/longCourse/courseList.vue
0 → 100644
View file @
ffdd677
This diff is collapsed.
Click to expand it.
src/views/serviceCentre/longCourse/longCourseCenter.vue
0 → 100644
View file @
ffdd677
<
template
>
<div
class=
"longCourse"
>
<div
class=
"invoice-header"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
v-for=
"(item, index) in tabPaneList"
:label=
"item.label"
:name=
"item.name"
:key=
"index"
>
</el-tab-pane>
</el-tabs>
<components
:is=
"tabName"
@
handleChangeTab=
"handleChangeTab"
></components>
</div>
</div>
</
template
>
<
script
>
import
courseList
from
"./courseList.vue"
export
default
{
name
:
"LongCourse"
,
components
:
{
courseList
},
data
()
{
return
{
activeName
:
"1"
,
tabPaneList
:
[
{
label
:
"长课程配置任务"
,
name
:
"1"
},
{
label
:
"已配课程状态"
,
name
:
"2"
}
],
tabName
:
"configureTask"
}
},
mounted
()
{
if
(
this
.
$route
.
params
.
tabPane
)
{
this
.
activeName
=
this
.
$route
.
params
.
tabPane
this
.
tabName
=
this
.
$route
.
params
.
tabLabel
}
},
watch
:
{},
methods
:
{
async
getBaseData
()
{
this
.
baseData
.
channelTypeList
=
await
this
.
get
(
BaseData
.
channelType
)
this
.
getOptionsList
()
},
handleClick
()
{
const
arr
=
{
1
:
"configureTask"
,
2
:
"courseList"
}
this
.
tabName
=
arr
[
+
this
.
activeName
]
},
handleChangeTab
(
e
)
{
if
(
!
e
)
{
return
true
}
const
{
activeTab
}
=
e
this
.
activeName
=
activeTab
this
.
handleClick
()
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.longCourse
{
padding
:
0
20px
;
.invoice-header
{
::v-deep
.el-tabs__header
{
margin
:
0
;
padding
:
0
20px
;
}
}
}
</
style
>
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