Commit 6a3a968d by 杨北旺

修复bug

1 parent ee0e895c
......@@ -190,13 +190,13 @@ export default {
label: '车主姓名',
prop: 'customerName',
line: 1,
width: '200px',
formatter: cellValue => {
return cellValue.customerName || '-'
}
},
{
label: '合同号',
line: 1,
prop: 'contractNo',
width: '200px',
formatter: cellValue => {
......@@ -259,7 +259,6 @@ export default {
},
{
label: '车架号',
line: 1,
prop: 'vin',
width: '200px',
formatter: cellValue => {
......@@ -268,7 +267,6 @@ export default {
},
{
label: '电话',
line: 1,
prop: 'customerPhone',
width: '160px',
formatter: cellValue => {
......@@ -277,8 +275,8 @@ export default {
},
{
label: '产品名称',
line: 1,
prop: 'packageName',
width: '200px',
formatter: cellValue => {
return cellValue.packageName || '-'
}
......@@ -306,7 +304,7 @@ export default {
line: 1,
prop: 'servicePeriod',
formatter: cellValue => {
return cellValue.servicePeriod ? '1年' : '-'
return cellValue.servicePeriod ? `${cellValue.servicePeriod}年` : '-'
}
},
{
......@@ -661,9 +659,16 @@ export default {
// )
// 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.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!