Commit 414754ee by zhangquan

修改记录

1 parent 897088a6
...@@ -425,4 +425,14 @@ const getSummaryExportApi = params => { ...@@ -425,4 +425,14 @@ const getSummaryExportApi = 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 } const getUpdateRecordApi = params => {
params.method = `scrm.api.equity.service.order.update.details`
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
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 }
...@@ -50,6 +50,17 @@ ...@@ -50,6 +50,17 @@
<el-button :size="size" type="primary" @click="handleSecondConfirm">确 定</el-button> <el-button :size="size" type="primary" @click="handleSecondConfirm">确 定</el-button>
</span> </span>
</el-dialog> </el-dialog>
<GLDialog class="dialog_wrap" :hasFooter="false" title="修改记录" mode="mid" :visible.sync="updateDetailVisible" :before-close="handleClose" @onOk="onOk">
<div style="text-align: center;" v-if="!updateList.length">暂无修改记录</div>
<template v-else>
<div class="step-item" v-for="(item, index) in updateList" :key="index">
<span class="circle"></span>
<span class="line"></span>
<p class="value" v-for="ele in item.detailList" :key="ele.id">{{ ele.fieldName }}: {{ ele.beforeValue }} → {{ ele.afterValue }}</p>
<p class="info">{{ item.createdBy }} {{ item.createdDate }}</p>
</div>
</template>
</GLDialog>
</div> </div>
</template> </template>
...@@ -63,6 +74,7 @@ export default { ...@@ -63,6 +74,7 @@ export default {
name: 'equityList', name: 'equityList',
data() { data() {
return { return {
updateList: [],
size: 'small', size: 'small',
newKey: new Date(), newKey: new Date(),
buttonList: [ buttonList: [
...@@ -159,8 +171,24 @@ export default { ...@@ -159,8 +171,24 @@ export default {
listeners: { listeners: {
click: row => this.handleEdit(4, row.scope) click: row => this.handleEdit(4, row.scope)
} }
},
{
type: 'el-button',
name: row => {
return '修改记录'
},
condition: row => {
return [2].includes(row.scope.orderStatus)
},
attrs: {
type: 'text'
},
listeners: {
click: row => this.viewUpdateDetail(row.scope)
}
} }
], ],
updateDetailVisible: false,
noCancel: true, noCancel: true,
isBlock: true, isBlock: true,
isTipVisible: false, isTipVisible: false,
...@@ -718,6 +746,14 @@ export default { ...@@ -718,6 +746,14 @@ export default {
}, },
methods: { methods: {
viewUpdateDetail(row) {
this.$apis.beforeSale.getUpdateRecordApi({ equityId: row.id }).then(res => {
if (res) {
this.updateList = res
this.updateDetailVisible = true
}
})
},
getCountNoData() { getCountNoData() {
this.$apis.beforeSale.getCountNoDataApi({}).then(res => { this.$apis.beforeSale.getCountNoDataApi({}).then(res => {
this.countNoData = res this.countNoData = res
...@@ -1167,4 +1203,51 @@ export default { ...@@ -1167,4 +1203,51 @@ export default {
.tips-dialog .el-dialog__body { .tips-dialog .el-dialog__body {
padding: 10px 15px 20px !important; padding: 10px 15px 20px !important;
} }
.step-item {
position: relative;
padding-left: 16px;
padding-bottom: 24px;
&:first-child {
.circle {
background: #5850ff;
}
}
&:last-child {
.line {
display: none;
}
}
.circle {
top: 2px;
position: absolute;
display: inline-block;
left: -3px;
width: 7px;
height: 7px;
z-index: 2;
border-radius: 50%;
background: #999999;
}
.line {
top: 2px;
position: absolute;
left: 0;
width: 1px;
height: calc(100% + 4px);
background: #e5e5e5;
}
.value {
font-weight: 400;
font-size: 14px;
color: #333333;
margin-bottom: 4px;
}
.info {
font-weight: 400;
font-size: 12px;
color: #999999;
line-height: 20px;
}
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!