Commit fcfd0148 by 张立顺

Merge branch 'dev_v4.20.0' of http://192.168.3.233:8090/saas/scrm-micro-ordermanage into dev_v4.20.0

2 parents 731550e7 77670977
......@@ -151,4 +151,27 @@ const quotationFindByIdApi = params => {
})
}
export default { getList, getOrderDetail, getOrderCount, shopmallOrderList, goodsOrderDetail, getServiceStore, getListApi, getCrowdfundingParams, getCountApi, orderExportApi, getOrderDetailApi, getQuotationPageApi, quotationFindByIdApi }
// 1.1和2.0的订单导出
const exportOrderApi = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `dj.api.smartcarlife.ordermanage.export`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
// 车损订单导出
const quotationExportApi = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `dj.api.quotation.smartcarlife.quotation.export`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
export default { getList, getOrderDetail, getOrderCount, shopmallOrderList, goodsOrderDetail, getServiceStore, getListApi, getCrowdfundingParams, getCountApi, orderExportApi, getOrderDetailApi, getQuotationPageApi, quotationFindByIdApi, exportOrderApi, quotationExportApi }
export const optionalChaining = (obj, ...rest) => {
return rest.reduce((newObj, key) => newObj[key], obj)
}
\ No newline at end of file
return rest.reduce((newObj, key) => newObj?.[key], obj)
// let tmp = obj
// for (const key in rest) {
// const name = rest[key]
// tmp = tmp?.[name]
// }
// return tmp || ''
}
......@@ -12,13 +12,13 @@
<el-form class="edit-sub-block"
:inline="true">
<el-form-item label="车架号:">
{{ $$(detail.ownerDTO,'carVin') }}
{{ $$(detail,'ownerDTO','carVin') }}
</el-form-item>
<el-form-item label="座位数:">
{{ $$(detail.ownerDTO,'seat') }}
{{ $$(detail,'ownerDTO','seat') }}
</el-form-item>
<el-form-item label="车辆发票价/元:">
{{ $$(detail.ownerDTO,'price') / 100 }}
{{ $$(detail,'ownerDTO','price') / 100 }}
</el-form-item>
</el-form>
</div>
......@@ -29,13 +29,13 @@
<el-form class="edit-sub-block"
:inline="true">
<el-form-item label="姓名:">
{{ $$(detail.ownerDTO,'owner') }}
{{ $$(detail,'ownerDTO','owner') }}
</el-form-item>
<el-form-item label="手机号:">
{{ $$(detail.ownerDTO,'phone') }}
{{ $$(detail,'ownerDTO','phone') }}
</el-form-item>
<el-form-item label="证件号:">
{{ $$(detail.ownerDTO,'certificateNo') }}
{{ $$(detail,'ownerDTO','certificateNo') }}
</el-form-item>
</el-form>
</div>
......@@ -112,30 +112,30 @@
<el-form class="edit-sub-block"
:inline="true">
<el-form-item label="商品:">
<!-- <img v-if="$$(detail.quotationGoodsInfo,'titlePictureUrl')"
<img v-if="$$(detail,'quotationGoodsInfo','titlePictureUrl')"
class="order-img"
:src="$$(detail.quotationGoodsInfo,'titlePictureUrl')"
:src="$$(detail,'quotationGoodsInfo','titlePictureUrl')"
@click="handleEnlargeImg">
{{ $$(detail.quotationGoodsInfo,'goodsName') }} -->
{{ $$(detail,'quotationGoodsInfo','goodsName') }}
</el-form-item>
<el-form-item label="增值权益价格/元:">
{{ detail.quotedPriceUpdate / 100 }}
</el-form-item>
</el-form>
</div>
<p style="text-align:left; padding-left: 30px; margin: 0 0 16px 0;">
<!-- <p style="text-align:left; padding-left: 30px; margin: 0 0 16px 0;">
<el-button type="primary"
@click="handleClose">
返回
</el-button>
</p>
</p> -->
</div>
<el-dialog :visible="imgVisible"
:before-close="handleEnlargeImg">
<!-- <img width="100%"
:src="$$(detail.quotationGoodsInfo,'titlePictureUrl')"
alt="图片"> -->
<img width="100%"
:src="$$(detail,'quotationGoodsInfo','titlePictureUrl') || ''"
alt="图片">
</el-dialog>
</d2-container>
......
......@@ -270,10 +270,9 @@ export default {
exportExcel() {
var params = this.getParams()
// this.$apis.finance.exportExcel(params).then(res => {
// // window.location.href = res
// exportFn(res)
// })
this.$apis.order.quotationExportApi(params).then(res => {
exportFn(res)
})
},
}
}
......
......@@ -580,10 +580,9 @@ export default {
},
exportExcel() {
var params = this.getParams()
// this.$apis.finance.exportExcel(params).then(res => {
// // window.location.href = res
// exportFn(res)
// })
this.$apis.order.exportOrderApi(params).then(res => {
exportFn(res)
})
},
handleSearch() {
this.$refs.orderRef.refreshTable()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!