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 ea0a36c0
authored
Jul 25, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
功能开发完成
1 parent
d4173262
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
90 additions
and
31 deletions
src/api/vehicleDamage.js
src/views/rightsAndInterestsManage/components/ruleConfigurationDialog.vue
src/views/vehicleDamage/vehicleDamageList.vue
src/api/vehicleDamage.js
View file @
ea0a36c
...
...
@@ -29,7 +29,12 @@ export function quotationExport(data) {
// 打印 返回权益合同PDF文件Url
export
function
contractExport
(
data
)
{
data
.
method
=
`dj.api.smartcarlife.vd.equity.order.print`
// data.method = `${path}quotation.export`
return
request
(
data
)
}
// 查询合同号列表
export
function
listContracts
(
data
)
{
data
.
method
=
`dj.api.smartcarlife.vd.equity.order.listContracts`
return
request
(
data
)
}
...
...
src/views/rightsAndInterestsManage/components/ruleConfigurationDialog.vue
View file @
ea0a36c
...
...
@@ -110,7 +110,7 @@
</el-form>
</div>
</div>
<div
class=
"rulesCon"
v-else
>
<
!-- <
div class="rulesCon" v-else>
<el-tabs v-model="nonFusionActiveName">
<el-tab-pane label="计算规则" name="first"></el-tab-pane>
</el-tabs>
...
...
@@ -157,7 +157,7 @@
</div>
</el-form>
<el-button v-show="!isEdit" class="addBtn" @click="addFormItem" type="primary">新增价格区间</el-button>
</div>
</div>
-->
</div>
</el-form-item>
</el-form>
...
...
@@ -407,15 +407,15 @@ export default {
resolve
(
params
)
})
}
else
{
this
.
$refs
.
formRef
.
validate
((
valid
)
=>
{
if
(
valid
)
{
const
form
=
deepClone
(
this
.
form
)
const
storeForm
=
deepClone
(
this
.
storeForm
)
delete
storeForm
.
quotationGoodsInfo
resolve
({
...
storeForm
,
vdRuleIntervalList
:
form
.
vdRuleIntervalList
}
)
}
})
//
this.$refs.formRef.validate((valid) => {
//
if (valid) {
const
form
=
deepClone
(
this
.
form
)
const
storeForm
=
deepClone
(
this
.
storeForm
)
delete
storeForm
.
quotationGoodsInfo
resolve
({
...
storeForm
,
vdRuleIntervalList
:
form
.
vdRuleIntervalList
}
)
//
}
//
})
}
})
// })
...
...
@@ -452,20 +452,20 @@ export default {
console
.
log
(
res
)
if
(
res
)
{
this
.
storeForm
=
Object
.
assign
(
this
.
storeForm
,
res
,
{
mode
:
res
.
mode
!=
null
?
res
.
mode
:
0
})
if
(
this
.
storeForm
.
mode
==
1
)
{
this
.
form
.
vdRuleIntervalList
=
res
.
vdRuleIntervalList
.
map
((
item
)
=>
{
const
{
id
,
ruleId
,
reorder
,
low
,
high
,
recommendation
,
minimum
}
=
item
return
{
id
,
ruleId
,
reorder
,
low
,
high
,
recommendation
,
minimum
}
})
}
//
if (this.storeForm.mode == 1) {
//
this.form.vdRuleIntervalList = res.vdRuleIntervalList.map((item) => {
//
const { id, ruleId, reorder, low, high, recommendation, minimum } = item
//
return {
//
id,
//
ruleId,
//
reorder,
//
low,
//
high,
//
recommendation,
//
minimum
//
}
//
})
//
}
this
.
distributionList
=
[]
distributionTemp
.
forEach
((
item
)
=>
{
...
...
src/views/vehicleDamage/vehicleDamageList.vue
View file @
ea0a36c
...
...
@@ -34,6 +34,14 @@
</d2-table>
</div>
</d2-container>
<baseDialog
:is-show
.
sync=
"previewVisible"
:dialog-config=
"dialogConfig.config"
:config=
"dialogConfig.setting"
>
<div
class=
"previewItem"
v-for=
"(item, index) in previewList"
:key=
"index"
>
<span
v-if=
"!item.goodName"
>
合同
{{
index
+
1
}}
</span>
<span
class=
"goodName one-line-ellipsis"
v-else
>
合同名称:
{{
item
.
goodName
}}
</span>
<i
class=
"el-icon-download downloadIcon"
@
click=
"exportFile(
{ contractNo: item.contractNo })">
</i>
</div>
</baseDialog>
<!-- 查看 -->
<!--
<stock-month-dialog
:stock-month-visible=
"stockMonthVisible"
...
...
@@ -46,7 +54,7 @@
<
script
>
import
{
mapActions
,
mapState
}
from
"vuex"
import
{
getList
,
quotationPrint
,
quotationExport
,
contractExport
}
from
"@api/vehicleDamage"
import
{
getList
,
quotationPrint
,
quotationExport
,
contractExport
,
listContracts
}
from
"@api/vehicleDamage"
export
default
{
name
:
"StockList"
,
data
()
{
...
...
@@ -194,7 +202,20 @@ export default {
{
severName
:
"已完成"
,
severType
:
5
}
]
},
previewVisible
:
false
,
// 驳回
dialogConfig
:
{
setting
:
{
showClose
:
true
,
isShowFooter
:
false
// appendToBody: true,
},
config
:
{
title
:
'打印合同'
,
width
:
'480px'
}
},
previewList
:
[],
stockMonthVisible
:
false
,
recordInfo
:
null
}
...
...
@@ -240,9 +261,20 @@ export default {
})
},
// 打印权益合同
handlePrintContract
(
row
)
{
// 获取权益合同PDF
contractExport
({
orderId
:
row
.
orderId
}).
then
((
res
)
=>
{
async
handlePrintContract
(
row
)
{
const
res
=
await
listContracts
({
orderId
:
row
.
orderId
})
console
.
log
(
res
,
'res'
)
if
(
res
.
length
==
1
)
{
// 获取权益合同PDF 用订单号
this
.
exportFile
({
orderId
:
row
.
orderId
})
}
else
{
this
.
previewVisible
=
true
this
.
previewList
=
res
}
},
exportFile
(
params
)
{
contractExport
(
params
).
then
((
res
)
=>
{
window
.
open
(
res
)
})
},
...
...
@@ -356,4 +388,26 @@ export default {
margin-right
:
5px
;
}
}
.previewItem
{
text-align
:
center
;
font-family
:
PingFangSC-Regular
;
font-weight
:
400
;
font-size
:
14px
;
color
:
#1D1D1D
;
}
.goodName
{
max-width
:
70%
;
width
:
auto
;
}
.previewItem
+
.previewItem
{
margin-top
:
30px
;
}
.downloadIcon
{
margin-left
:
10px
;
color
:
#185EFE
;
}
</
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