|
|
@ -40,8 +40,7 @@ |
|
|
|
</div> |
|
|
|
<!--Start 主页面主要部分 --> |
|
|
|
<div class=""> |
|
|
|
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange"> |
|
|
|
<el-table-column type="selection" align="center" width="50" /> |
|
|
|
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;"> |
|
|
|
<el-table-column fixed label="序号" type="index" width="80" :index="indexMethod" align="center"/> |
|
|
|
<el-table-column fixed label="操作" width="100" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
@ -149,7 +148,6 @@ export default { |
|
|
|
viewState: 1, // 1、列表 2、新增 3、编辑 4、查看 |
|
|
|
tableKey: 0, |
|
|
|
list: [], |
|
|
|
sids: [], // 用于导出的时候保存已选择的SIDs |
|
|
|
FormLoading: false, |
|
|
|
listLoading: false, |
|
|
|
// 翻页 |
|
|
@ -221,15 +219,6 @@ export default { |
|
|
|
break |
|
|
|
} |
|
|
|
}, |
|
|
|
// 信息条数 获取点击时当前的sid |
|
|
|
handleSelectionChange(row) { |
|
|
|
const aa = [] |
|
|
|
this.multipleSelection = row |
|
|
|
row.forEach(element => { |
|
|
|
aa.push(element.sid) |
|
|
|
}) |
|
|
|
this.sids = aa |
|
|
|
}, |
|
|
|
// 表中序号 |
|
|
|
indexMethod(index) { |
|
|
|
var pagestart = (this.listQuery.current - 1) * this.listQuery.size |
|
|
@ -305,11 +294,11 @@ export default { |
|
|
|
this.formobj.orgPath = window.sessionStorage.getItem('defaultOrgPath') |
|
|
|
this.formobj.useOrgSid = window.sessionStorage.getItem('defaultOrgPath').substring(window.sessionStorage.getItem('defaultOrgPath').lastIndexOf('/') + 1) |
|
|
|
if (this.formobj.customerType !== '' && this.formobj.visitWay !== '' && this.formobj.vinNo !== '') { |
|
|
|
this.dialogVisible = false |
|
|
|
if (this.formobj.vinNo.length !== 8 && this.formobj.vinNo.length !== 17) { |
|
|
|
this.$message({ showClose: true, message: '车架号长度为8位或17位', type: 'error' }) |
|
|
|
return |
|
|
|
} |
|
|
|
this.dialogVisible = false |
|
|
|
this.viewState = 3 |
|
|
|
this.$refs['divQuickAdd'].showAdd(this.formobj) |
|
|
|
} else { |
|
|
|