Commit d5f442b1 by 前端

Merge branch 'SAAS+V4.49-0121' into 'master'

上线合并

See merge request !82
2 parents 82a3402b 02eab0f5
......@@ -435,4 +435,49 @@ const getUpdateRecordApi = params => {
})
}
export default { getOrdersummary, getChannelTypeApi, getSummaryPackage, getSummaryExportApi, getUserInfoApi, getCountNoDataApi, getListApi, getMerchantApi, getExportApi, getPriteApi, getCarBrandListApi, getCarChildListApi, getCarTypeListApi, getCarSeriesListApi, getHotlineApi, getDefaultCarbrandApi, updateHotlineApi, updateCarBrandApi, getProListApi, getPackageListApi, getNewPackageListApi, getEquityApi, updateEquityApi, createCodeApi, getOrderAttrApi, getAllOrderValueApi, verifyOrderApi, checkOrderApi, updateOrderApi, uploadImgApi, backOrderApi, aduitOrderApi, judgeSetting, spaAgressData, merchantInfo, dateBycarNo, activeCodeList, updateActiveCode, getUpdateRecordApi }
// 获取批量新增任务列表
const getBatchTaskListApi = params => {
params.method = 'scrm.api.equity.order.common.config.page'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 获取新增任务详情列表
const getTaskDetailListApi = params => {
params.method = 'scrm.api.equity.order.common.config.detail'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
// 新建任务
const createBatchTaskApi = params => {
params.method = 'scrm.api.equity.order.common.config.import'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 下载错误数据
const exportErrorDataApi = params => {
params.method = 'scrm.api.equity.order.common.config.fail.export'
return http({
url: 'rop-scrm-equity/router',
method: 'GET',
data: params,
sign: true
})
}
export default { getOrdersummary, getChannelTypeApi, getSummaryPackage, getSummaryExportApi, getUserInfoApi, getCountNoDataApi, getListApi, getMerchantApi, getExportApi, getPriteApi, getCarBrandListApi, getCarChildListApi, getCarTypeListApi, getCarSeriesListApi, getHotlineApi, getDefaultCarbrandApi, updateHotlineApi, updateCarBrandApi, getProListApi, getPackageListApi, getNewPackageListApi, getEquityApi, updateEquityApi, createCodeApi, getOrderAttrApi, getAllOrderValueApi, verifyOrderApi, checkOrderApi, updateOrderApi, uploadImgApi, backOrderApi, aduitOrderApi, judgeSetting, spaAgressData, merchantInfo, dateBycarNo, activeCodeList, updateActiveCode, getUpdateRecordApi, getBatchTaskListApi, getTaskDetailListApi, createBatchTaskApi, exportErrorDataApi}

9.2 KB | W: | H:

13.1 KB | W: | H:

src/assets/beforeSale/idCard.png
src/assets/beforeSale/idCard.png
src/assets/beforeSale/idCard.png
src/assets/beforeSale/idCard.png
  • 2-up
  • Swipe
  • Onion skin

9.07 KB | W: | H:

13 KB | W: | H:

src/assets/beforeSale/idCardBack.png
src/assets/beforeSale/idCardBack.png
src/assets/beforeSale/idCardBack.png
src/assets/beforeSale/idCardBack.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -198,7 +198,7 @@ export default {
display: flex;
margin-bottom: 20px;
.element_label {
width: 154px;
width: 164px;
font-weight: 400;
font-size: 14px;
color: #333333;
......
......@@ -17,7 +17,7 @@
</el-select>
</template>
<template slot="vehicleSeriesId" slot-scope="scope">
<el-select v-model="editForm.vehicle.vehicleSeriesId" class="m-r-10" placeholder="请选择车系" @change="getCarTypeList(editForm.vehicle.vehicleSeriesId)" style="width: 215px" :disabled="scope.scope.isDisabled">
<el-select v-model="editForm.vehicle.vehicleSeriesId" class="m-r-10" placeholder="请选择车系" @change="getCarTypeList(false)" style="width: 215px" :disabled="scope.scope.isDisabled">
<el-option v-for="item in baseData.carSeriesOptions" :key="item.id" :value="item.id" :label="item.name" />
</el-select>
</template>
......@@ -2327,11 +2327,9 @@ export default {
// 获取车型
getCarTypeList(isRecovery = false) {
if (!isRecovery) {
// this.editForm.vehicle.vehicleShapeId = ''
this.editForm.vehicle.vehicleShapeId = ''
this.baseData.carTypeOptions = []
}
// 将车型清空
this.editForm.vehicle.vehicleShapeId = ''
const params = {
carSeriesId: this.editForm.vehicle.vehicleSeriesId
}
......
<template>
<div class="container">
<div class="global-title">任务详情</div>
<div class="main">
<GLTable :pageSizes="pageSizes" ref="tableRef" :pageConf="pageConf" :searchForm="searchForm" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn" :getListApi="getListApi">
<div slot="taskStatusSlot" slot-scope="scope">
<span class="status" :style="{ 'background-color': detailTaskStatusEnum[scope.scope.taskStatus].color }"></span>
{{ detailTaskStatusEnum[scope.scope.taskStatus] ? detailTaskStatusEnum[scope.scope.taskStatus].label : '--' }}
</div>
</GLTable>
</div>
</div>
</template>
<script>
export default {
name: 'index',
data() {
return {
size: 'small',
detailTaskStatusEnum: {
0: {
label: '待执行',
color: '#C6C6C6'
},
2: {
label: '失败',
color: '#EB4E4E'
},
1: {
label: '成功',
color: '#2CCA74'
}
},
getListApi: this.$apis.beforeSale.getTaskDetailListApi,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
pageSizes: [10, 20, 30, 40, 50],
searchForm: {},
tableParams: {
listName: 'list',
tableOption: null,
tableColumns: [
{
label: '门店名称',
prop: 'merchantName',
width: 260,
line: 1
},
{
label: '客户名称',
prop: 'customerName',
width: 200
},
{
label: '车架号',
prop: 'vin',
width: 240,
line: 1
},
{
label: '产品名称',
prop: 'packageName',
width: 280,
line: 1
},
{
label: '服务期限',
prop: 'servicePeriod',
formatter: cell => {
return cell.servicePeriod ? cell.servicePeriod + '年' : '--'
}
},
{
label: '任务状态',
addHtml: 'taskStatusSlot'
},
{
label: '任务状态描述',
prop: 'failReason',
width: 280,
line: 1
}
]
}
}
},
methods: {
beforeSearchFn() {
return new Promise(resolve => {
this.searchForm = { taskId: this.$route.params.id }
resolve()
})
}
}
}
</script>
<style lang="scss" scoped>
.container {
background-color: #fff;
.main {
padding: 20px;
}
}
.status {
width: 6px;
height: 6px;
display: inline-block;
border-radius: 50%;
background-color: antiquewhite;
margin-right: 8px;
vertical-align: middle;
}
</style>
......@@ -4,7 +4,7 @@
<div class="widget">
<uploadHandler :isRequire="true" :disabled="disabled" @getImages="getImages($event, 'YB0001')" title="购车发票" limitNum="1" :imagesList="uploadMessage.buyCar"></uploadHandler>
<uploadHandler :isRequire="true" :disabled="disabled" @getImages="getImages($event, 'YB0002')" title="合同购买时里程数" limitNum="1" :imagesList="uploadMessage.mileage"></uploadHandler>
<uploadHandler :isRequire="true" :disabled="disabled" @getCardImg="getCardImg" uploadType="1" title="行驶证" :cardImg="cardImg"></uploadHandler>
<uploadHandler :isRequire="true" :disabled="disabled" @getCardImg="getCardImg" uploadType="1" title="行驶证或车辆合格证" :cardImg="cardImg"></uploadHandler>
<uploadHandler :disabled="disabled" @getImages="getImages($event, 'YB0005')" title="其他" limitNum="9" :imagesList="uploadMessage.others"></uploadHandler>
</div>
</div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!