|
|
@ -10,7 +10,7 @@ |
|
|
|
<div v-show="isSearchShow" class="search"> |
|
|
|
<el-form ref="listQueryform" :inline="true" :model="listQuery" class="tab-header"> |
|
|
|
<el-form-item label="客户名称"> |
|
|
|
<el-input v-model="listQuery.params.name" placeholder="" clearable/> |
|
|
|
<el-input v-model="listQuery.params.customerName" placeholder="" clearable/> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="车牌号"> |
|
|
|
<el-input v-model="listQuery.params.vehMark" placeholder="" clearable/> |
|
|
@ -21,8 +21,10 @@ |
|
|
|
<el-form-item label="联系电话"> |
|
|
|
<el-input v-model="listQuery.params.mobile" placeholder="" clearable/> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="客户单位"> |
|
|
|
<el-input v-model="listQuery.params.orgName" placeholder="" clearable/> |
|
|
|
<el-form-item label="客户类型"> |
|
|
|
<el-select v-model="listQuery.params.customerTypeKey" class="addinputw" placeholder="请选择"> |
|
|
|
<el-option v-for="(item, index) in merType" :key="index.dictKey" :label="item.dictValue" :value="item.dictKey"/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<div class="btn" style="text-align: center;"> |
|
|
@ -45,11 +47,12 @@ |
|
|
|
<el-button type="primary" size="small" @click="handleConfirm(scope.row)">确认</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="name" label="客户名称" width="120" align="center"/> |
|
|
|
<el-table-column prop="customerName" label="客户名称" width="120" align="center"/> |
|
|
|
<el-table-column prop="customerType" label="客户类型" width="120" align="center"/> |
|
|
|
<el-table-column prop="vehMark" label="车牌号" width="120" align="center" /> |
|
|
|
<el-table-column prop="vinNo" label="车架号" width="120" align="center" /> |
|
|
|
<el-table-column prop="mobile" label="联系电话" width="120" align="center" /> |
|
|
|
<el-table-column prop="orgName" label="客户单位" min-width="120" align="center" /> |
|
|
|
<el-table-column prop="salesCompany" label="销售公司" min-width="120" align="center" /> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<!--End 主页面主要部分--> |
|
|
@ -68,7 +71,7 @@ |
|
|
|
import Pagination from '@/components/pagination' |
|
|
|
import pageye from '@/components/pagination/pageye' |
|
|
|
import ButtonBar from '@/components/ButtonBar' |
|
|
|
import { customerListPage } from '@/api/Common/dictcommons' |
|
|
|
import { customerList, typeValues } from '@/api/Common/dictcommons' |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'Customer', |
|
|
@ -95,6 +98,7 @@ export default { |
|
|
|
tableKey: 0, |
|
|
|
list: [], |
|
|
|
sids: [], // 用于导出的时候保存已选择的SIDs |
|
|
|
merType: [], |
|
|
|
FormLoading: false, |
|
|
|
listLoading: false, |
|
|
|
// 翻页 |
|
|
@ -103,12 +107,13 @@ export default { |
|
|
|
size: 5, |
|
|
|
total: 0, |
|
|
|
params: { |
|
|
|
orgPath: '', |
|
|
|
name: '', |
|
|
|
customerName: '', |
|
|
|
vehMark: '', |
|
|
|
vinNo: '', |
|
|
|
mobile: '', |
|
|
|
orgName: '', |
|
|
|
vinNo: '' |
|
|
|
customerTypeKey: '', |
|
|
|
billType: '', |
|
|
|
useOrgSid: '' |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -117,6 +122,13 @@ export default { |
|
|
|
this.$refs['btnbar'].setButtonList(this.btnList) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
init() { |
|
|
|
typeValues({ type: 'customerType' }).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.merType = res.data |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 搜索条件效果 |
|
|
|
clicksearchShow() { |
|
|
|
this.isSearchShow = !this.isSearchShow |
|
|
@ -142,11 +154,16 @@ export default { |
|
|
|
var pageindex = index + 1 + pagestart |
|
|
|
return pageindex |
|
|
|
}, |
|
|
|
showData(deptSid, type) { |
|
|
|
this.init() |
|
|
|
this.listQuery.params.useOrgSid = deptSid |
|
|
|
this.listQuery.params.billType = type // type工单类型 |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
// 查询列表信息 |
|
|
|
getList() { |
|
|
|
this.listLoading = true |
|
|
|
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath') |
|
|
|
customerListPage(this.listQuery).then(response => { |
|
|
|
customerList(this.listQuery).then((response) => { |
|
|
|
this.listLoading = false |
|
|
|
if (response.success) { |
|
|
|
this.list = response.data.records |
|
|
@ -164,19 +181,14 @@ export default { |
|
|
|
}, |
|
|
|
// 点击重置 |
|
|
|
handleReset() { |
|
|
|
this.listQuery = { |
|
|
|
current: 1, |
|
|
|
size: 5, |
|
|
|
total: 0, |
|
|
|
params: { |
|
|
|
orgPath: '', |
|
|
|
name: '', |
|
|
|
vehMark: '', |
|
|
|
mobile: '', |
|
|
|
orgName: '', |
|
|
|
vinNo: '' |
|
|
|
} |
|
|
|
} |
|
|
|
this.listQuery.current = 1 |
|
|
|
this.listQuery.total = 0 |
|
|
|
this.listQuery.size = 5 |
|
|
|
this.listQuery.params.customerName = '' |
|
|
|
this.listQuery.params.vehMark = '' |
|
|
|
this.listQuery.params.vinNo = '' |
|
|
|
this.listQuery.params.mobile = '' |
|
|
|
this.listQuery.params.customerTypeKey = '' |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
handleConfirm(row) { |