Commit b4e75df9 by cwq0219

编辑

1 parent 203f866b
...@@ -34,6 +34,17 @@ const getCarBrandListApi = params => { ...@@ -34,6 +34,17 @@ const getCarBrandListApi = params => {
}) })
} }
const getCarChildListApi = params => {
// params.method = 'dj.api.car.series.list'
params.method = 'scrm.api.carlife.common.getOnlyCarBrandList'
return http_brand({
url: 'rop-scrm-carlife/router',
method: 'GET',
data: params,
sign: true
})
}
const getCarSeriesListApi = params => { const getCarSeriesListApi = params => {
params.method = 'scrm.api.carlife.common.getCarSeriesList' params.method = 'scrm.api.carlife.common.getCarSeriesList'
return http_brand({ return http_brand({
...@@ -118,4 +129,4 @@ const createCodeApi = params => { ...@@ -118,4 +129,4 @@ const createCodeApi = params => {
}) })
} }
export default { getListApi, getExportApi, getCarBrandListApi, getCarTypeListApi, getCarSeriesListApi, getHotlineApi, updateHotlineApi, getPackageListApi, getEquityApi, updateEquityApi, createCodeApi } export default { getListApi, getExportApi, getCarBrandListApi, getCarChildListApi, getCarTypeListApi, getCarSeriesListApi, getHotlineApi, updateHotlineApi, getPackageListApi, getEquityApi, updateEquityApi, createCodeApi }
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</span> </span>
<slot v-if="item.addHtml" :name="item.addHtml" :scope="item"></slot> <slot v-if="item.addHtml" :name="item.addHtml" :scope="item"></slot>
<div v-else-if="item.type === 'input'"> <div v-else-if="item.type === 'input'">
<el-input :placeholder="item.placeholder || '请输入' + item.label" v-model.trim="formObj[item.name]" :disabled="item.isDisabled" :maxlength="item.maxlength" :clearable="item.isClear || false" :type="item.inputType || 'text'" :rows="item.rows || 2" :style="{ width: item.width || defaultWidth }" :show-word-limit="item.showLimit || false" :show-password="item.showPass || false" @keydown.native="e => handleInputDown(e, item)"> <el-input :placeholder="item.placeholder || '请输入' + item.label" v-model.trim="formObj[item.name]" :disabled="item.isDisabled" :maxlength="item.maxlength" :clearable="item.isClear || false" :type="item.inputType || 'text'" :rows="item.rows || 2" :style="{ width: item.width || defaultWidth }" :show-word-limit="item.showLimit || false" :show-password="item.showPass || false" @keydown.native="e => handleInputDown(e, item)" @blur="e => handleInputBlur(e, item)">
<span v-if="item.prepend" slot="prepend">{{ item.prepend }}</span> <span v-if="item.prepend" slot="prepend">{{ item.prepend }}</span>
<span v-if="item.append" slot="append">{{ item.append }}</span> <span v-if="item.append" slot="append">{{ item.append }}</span>
</el-input> </el-input>
...@@ -174,6 +174,9 @@ export default { ...@@ -174,6 +174,9 @@ export default {
item.keyFn() item.keyFn()
} }
}, },
handleInputBlur(e, targetItem) {
targetItem.inputBlur && targetItem.inputBlur()
},
handleDateChange(value, targetItem) { handleDateChange(value, targetItem) {
targetItem.handleDateChange && targetItem.handleDateChange(value, targetItem) targetItem.handleDateChange && targetItem.handleDateChange(value, targetItem)
}, },
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<el-button v-if="[0].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(2, scope.scope)">编辑</el-button> <el-button v-if="[0].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(2, scope.scope)">编辑</el-button>
<el-button v-if="[2].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(3, scope.scope)">修改</el-button> <el-button v-if="[2].includes(scope.scope.orderStatus)" type="text" @click="handleEdit(3, scope.scope)">修改</el-button>
<el-button v-if="[2].includes(scope.scope.orderStatus)" type="text" @click="handleDelete(scope.scope)">退保</el-button> <el-button v-if="[2].includes(scope.scope.orderStatus)" type="text" @click="handleDelete(scope.scope)">退保</el-button>
<el-button v-if="[4, 5].includes(scope.scope.orderStatus)" type="text" @click="handleDelete(scope.scope)">重新提单</el-button> <el-button v-if="[3, 4, 5].includes(scope.scope.orderStatus)" type="text" @click="handleDelete(scope.scope)">重新提单</el-button>
</div> </div>
</GLTable> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
...@@ -106,7 +106,10 @@ export default { ...@@ -106,7 +106,10 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: '车主姓名', label: '车主姓名',
prop: 'customerName' prop: 'customerName',
formatter: cellValue => {
return cellValue.customerName || '-'
}
}, },
{ {
label: '合同号', label: '合同号',
...@@ -117,7 +120,7 @@ export default { ...@@ -117,7 +120,7 @@ export default {
prop: 'successDate', prop: 'successDate',
width: '160px', width: '160px',
formatter: cellValue => { formatter: cellValue => {
return dayjs(cellValue.successDate).format('YYYY-MM-DD HH:mm:ss') return cellValue.successDate ? dayjs(cellValue.successDate).format('YYYY-MM-DD HH:mm:ss') : '-'
} }
}, },
{ {
...@@ -125,42 +128,60 @@ export default { ...@@ -125,42 +128,60 @@ export default {
prop: 'expirationDate', prop: 'expirationDate',
width: '160px', width: '160px',
formatter: cellValue => { formatter: cellValue => {
return dayjs(cellValue.expirationDate).format('YYYY-MM-DD HH:mm:ss') return cellValue.expirationDate ? dayjs(cellValue.expirationDate).format('YYYY-MM-DD HH:mm:ss') : '-'
} }
}, },
{ {
label: '店面名称', label: '店面名称',
prop: 'merchantName', prop: 'merchantName',
width: '160px', width: '160px',
line: 2 line: 2,
formatter: cellValue => {
return cellValue.merchantName || '-'
}
}, },
{ {
label: '车品牌', label: '车品牌',
prop: 'vehicleBrandName' prop: 'vehicleBrandName',
formatter: cellValue => {
return cellValue.vehicleBrandName || '-'
}
}, },
{ {
label: '车系', label: '车系',
prop: 'vehicleSeriesName' prop: 'vehicleSeriesName',
formatter: cellValue => {
return cellValue.vehicleSeriesName || '-'
}
}, },
{ {
label: '车架', label: '车架',
prop: 'vin' prop: 'vin',
formatter: cellValue => {
return cellValue.vin || '-'
}
}, },
{ {
label: '电话', label: '电话',
prop: 'customerPhone', prop: 'customerPhone',
width: '160px' width: '160px',
formatter: cellValue => {
return cellValue.customerPhone || '-'
}
}, },
{ {
label: '产品名称', label: '产品名称',
prop: 'packageName' prop: 'packageName',
formatter: cellValue => {
return cellValue.packageName || '-'
}
}, },
{ {
label: '实际销售价', label: '实际销售价',
prop: 'actualSalesPrice', prop: 'actualSalesPrice',
width: '160px', width: '160px',
formatter: cellValue => { formatter: cellValue => {
return (cellValue.actualSalesPrice / 100).toFixed(2) return cellValue.actualSalesPrice ? (cellValue.actualSalesPrice / 100).toFixed(2) : '-'
} }
}, },
{ {
...@@ -172,7 +193,7 @@ export default { ...@@ -172,7 +193,7 @@ export default {
prop: 'expirationDate', prop: 'expirationDate',
width: '160px', width: '160px',
formatter: cellValue => { formatter: cellValue => {
return dayjs(cellValue.expirationDate).format('YYYY-MM-DD HH:mm:ss') return cellValue.expirationDate ? dayjs(cellValue.expirationDate).format('YYYY-MM-DD HH:mm:ss') : '-'
} }
}, },
{ {
...@@ -185,14 +206,23 @@ export default { ...@@ -185,14 +206,23 @@ export default {
{ {
label: '大区', label: '大区',
prop: '' prop: ''
// formatter: cellValue => {
// return cellValue.packageName || '-'
// }
}, },
{ {
label: '片区', label: '片区',
prop: '' prop: ''
// formatter: cellValue => {
// return cellValue.packageName || '-'
// }
}, },
{ {
label: '操作人', label: '操作人',
prop: '' prop: ''
// formatter: cellValue => {
// return cellValue.packageName || '-'
// }
} }
] ]
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!