Browse Source
# Conflicts: # anrui-base/anrui-base-api/src/main/java/com/yxt/anrui/base/api/baseoutsourcingapplication/BaseOutsourcingApplicationDto.javazhanglei

75 changed files with 2655 additions and 1725 deletions
@ -0,0 +1,22 @@ |
|||
package com.yxt.anrui.base.api.basevehicle; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class VinByWarehouseQuery implements Query { |
|||
private static final long serialVersionUID = -4205300860994909841L; |
|||
|
|||
@ApiModelProperty("仓库sid") |
|||
private String warehouseSid; |
|||
|
|||
@ApiModelProperty("用户sid") |
|||
private String userSid; |
|||
|
|||
@ApiModelProperty("分公司sid") |
|||
private String useOrgSid; |
|||
|
|||
@ApiModelProperty("车架号") |
|||
private String vin; |
|||
} |
@ -0,0 +1,36 @@ |
|||
package com.yxt.anrui.scm.api.scmvehiclegression; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.Date; |
|||
|
|||
@Data |
|||
public class TemporaryExitPermitInfo implements Vo { |
|||
private static final long serialVersionUID = -7815832719602641764L; |
|||
|
|||
@ApiModelProperty("分公司名称") |
|||
private String orgName; |
|||
@ApiModelProperty("客户名称") |
|||
private String customerName; |
|||
@ApiModelProperty("日期") |
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
private Date date; |
|||
@ApiModelProperty("合同编号") |
|||
private String contractNo; |
|||
@ApiModelProperty("车型名称") |
|||
private String modelName; |
|||
@ApiModelProperty("台数") |
|||
private String num; |
|||
@ApiModelProperty("车架号") |
|||
private String vinNo; |
|||
@ApiModelProperty("出门原因") |
|||
private String reason; |
|||
@ApiModelProperty("经办人") |
|||
private String creatName; |
|||
@ApiModelProperty("提车人") |
|||
private String carryCarName; |
|||
|
|||
} |
@ -0,0 +1,202 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<div> |
|||
<div class="tab-header webtop"> |
|||
<div>车型常用列表</div> |
|||
<div> |
|||
<el-button type="primary" size="small" @click="AddUpdateReturn">确定</el-button> |
|||
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|||
</div> |
|||
</div> |
|||
<div class="main-content"> |
|||
<div class="searchcon"> |
|||
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button> |
|||
<div v-show="isSearchShow" class="search"> |
|||
<el-form ref="listQueryform" :inline="true" :model="listQuery" class="tab-header" label-width="100px"> |
|||
<el-form-item label="车型:"> |
|||
<el-input v-model="listQuery.params.vehicleAlias" placeholder="" clearable class="filter-item"/> |
|||
</el-form-item> |
|||
<el-form-item label="常用配置:"> |
|||
<el-input v-model="listQuery.params.configName" placeholder="" clearable class="filter-item"/> |
|||
</el-form-item> |
|||
</el-form> |
|||
<div class="btn" style="text-align: center"> |
|||
<el-button type="primary" icon="el-icon-search" size="small" @click="handleFilter">查询</el-button> |
|||
<el-button type="primary" icon="el-icon-refresh" size="small" @click="handresetting">重置</el-button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class=""> |
|||
<el-table :key="tableKey" ref="multipleTable" v-loading="listLoading" :data="list" border style="width: 100%" @selection-change="handleSelectionChange"> |
|||
<el-table-column width="50px" type="selection" align="center"/> |
|||
<el-table-column width="80px" label="编号" type="index" :index="indexMethod" align="center"/> |
|||
<el-table-column label="车型" align="center" width="250"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.vehicleAlias }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="常用配置" header-align="center" align="left"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.configName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="销售指导价(元)" width="200" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.guidedPrice }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</div> |
|||
<div class="pages"> |
|||
<div class="tit"/> |
|||
<!-- 翻页 --> |
|||
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import Pagination from '@/components/pagination' |
|||
import req from '@/api/kucunguanli/price' |
|||
import { getPathSidByUserSid } from '@/api/cheliang/basevehiclemodel' |
|||
|
|||
export default { |
|||
name: "chexingbyconfiguration", |
|||
components: { |
|||
Pagination |
|||
}, |
|||
data() { |
|||
return { |
|||
isSearchShow: false, |
|||
searchxianshitit: '隐藏查询条件', |
|||
tableKey: 0, |
|||
showbackState: 30, |
|||
sids: [], |
|||
list: [], |
|||
number: '', |
|||
listLoading: false, |
|||
userOrgSid: '', |
|||
listQuery: { |
|||
current: 1, |
|||
size: 10, |
|||
params: { |
|||
vehicleAlias: '', |
|||
configName: '', |
|||
useOrgSid: '', |
|||
vehicleStateValue: '', |
|||
sidList: [] |
|||
}, |
|||
total: 1 |
|||
} |
|||
} |
|||
}, |
|||
methods: { |
|||
// 搜索条件效果 |
|||
clicksearchShow() { |
|||
this.isSearchShow = !this.isSearchShow |
|||
if (this.isSearchShow) { |
|||
this.searchxianshitit = '隐藏查询条件' |
|||
} else { |
|||
this.searchxianshitit = '显示查询条件' |
|||
} |
|||
}, |
|||
indexMethod(index) { |
|||
var pagestart = (this.listQuery.current - 1) * this.listQuery.size |
|||
var pageindex = index + 1 + pagestart |
|||
return pageindex |
|||
}, |
|||
// 返回 |
|||
handleReturn() { |
|||
this.$emit('doback') |
|||
}, |
|||
getPathSid() { |
|||
const userSid = window.sessionStorage.getItem('userSid') |
|||
getPathSidByUserSid({userSid:userSid}).then((res) => { |
|||
if (res.code === '200') { |
|||
this.listQuery.params.useOrgSid = res.data |
|||
this.getList() |
|||
} |
|||
}) |
|||
}, |
|||
// 查询列表信息 |
|||
getList() { |
|||
this.listLoading = true |
|||
req.configurationlistPage(this.listQuery).then((response) => { |
|||
this.listLoading = false |
|||
if (response.success) { |
|||
this.listQuery.total = response.data.total |
|||
this.list = response.data.records |
|||
} |
|||
}) |
|||
}, |
|||
// 查询按钮 |
|||
handleFilter() { |
|||
this.getPathSid() |
|||
}, |
|||
// 重置按钮 |
|||
handresetting() { |
|||
this.listQuery = { |
|||
current: 1, |
|||
size: 10, |
|||
params: { |
|||
vehicleAlias: '', |
|||
configName: '', |
|||
useOrgSid: '', |
|||
vehicleStateValue: '', |
|||
sidList: [] |
|||
}, |
|||
total: 1 |
|||
} |
|||
this.getPathSid() |
|||
}, |
|||
handleSelectionChange(row) { |
|||
this.sids = [] |
|||
const aa = [] |
|||
row.forEach((element) => { |
|||
aa.push({ |
|||
vehicleAlias: element.vehicleAlias, |
|||
modelSid: element.modelSid, |
|||
configName: element.configName, |
|||
configSid: element.configSid, |
|||
guidedPrice: element.guidedPrice, |
|||
manufactorSettlementPrice: element.manufactorSettlementPrice |
|||
}) |
|||
}) |
|||
this.sids = aa |
|||
}, |
|||
showData(value) { |
|||
const aa = [] |
|||
if (value.length > 0) { |
|||
for (var i = 0; i < value.length; i++) { |
|||
aa.push({ |
|||
modelSid: value[i].vehicleSid, |
|||
configSid: value[i].configSid |
|||
}) |
|||
} |
|||
this.listQuery.params.sidList = aa |
|||
} else { |
|||
this.listQuery.params.sidList = [] |
|||
} |
|||
this.getPathSid() |
|||
}, |
|||
// 添加修改返回 |
|||
AddUpdateReturn() { |
|||
if (this.sids.length > 0) { |
|||
console.log('勾选的车辆信息',this.sids) |
|||
this.$emit('backData', this.sids) |
|||
} else { |
|||
this.$notify({ |
|||
title: '提示', |
|||
message: '请选择至少一条车型记录!', |
|||
type: 'error', |
|||
duration: 2000 |
|||
}) |
|||
} |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
Loading…
Reference in new issue