Commit 6a3a968d by 杨北旺

修复bug

1 parent ee0e895c
...@@ -190,13 +190,13 @@ export default { ...@@ -190,13 +190,13 @@ export default {
label: '车主姓名', label: '车主姓名',
prop: 'customerName', prop: 'customerName',
line: 1, line: 1,
width: '200px',
formatter: cellValue => { formatter: cellValue => {
return cellValue.customerName || '-' return cellValue.customerName || '-'
} }
}, },
{ {
label: '合同号', label: '合同号',
line: 1,
prop: 'contractNo', prop: 'contractNo',
width: '200px', width: '200px',
formatter: cellValue => { formatter: cellValue => {
...@@ -259,7 +259,6 @@ export default { ...@@ -259,7 +259,6 @@ export default {
}, },
{ {
label: '车架号', label: '车架号',
line: 1,
prop: 'vin', prop: 'vin',
width: '200px', width: '200px',
formatter: cellValue => { formatter: cellValue => {
...@@ -268,7 +267,6 @@ export default { ...@@ -268,7 +267,6 @@ export default {
}, },
{ {
label: '电话', label: '电话',
line: 1,
prop: 'customerPhone', prop: 'customerPhone',
width: '160px', width: '160px',
formatter: cellValue => { formatter: cellValue => {
...@@ -277,8 +275,8 @@ export default { ...@@ -277,8 +275,8 @@ export default {
}, },
{ {
label: '产品名称', label: '产品名称',
line: 1,
prop: 'packageName', prop: 'packageName',
width: '200px',
formatter: cellValue => { formatter: cellValue => {
return cellValue.packageName || '-' return cellValue.packageName || '-'
} }
...@@ -306,7 +304,7 @@ export default { ...@@ -306,7 +304,7 @@ export default {
line: 1, line: 1,
prop: 'servicePeriod', prop: 'servicePeriod',
formatter: cellValue => { formatter: cellValue => {
return cellValue.servicePeriod ? '1年' : '-' return cellValue.servicePeriod ? `${cellValue.servicePeriod}年` : '-'
} }
}, },
{ {
...@@ -661,9 +659,16 @@ export default { ...@@ -661,9 +659,16 @@ export default {
// ) // )
// return true // return true
// } // }
this.handlePdfClose() const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.3)'
})
this.$apis.beforeSale.getPriteApi({ contractNo: row.contractNo }).then(res => { this.$apis.beforeSale.getPriteApi({ contractNo: row.contractNo }).then(res => {
this.pdfUrl = res this.pdfUrl = res
this.handlePdfClose()
loading.close();
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!