Commit 2d35f0c4 by 李伟康

```

feat(api): 统一 equity 模块方法空格风格并新增服务详情接口

统一 `api/module/equity.js` 中所有导出函数的命名风格,为参数括号前添加空格,
提升代码一致性。同时新增 `getServiceInfoDetail` 方法用于获取服务信息详情。
```
1 parent d8f4f19d
...@@ -2,7 +2,7 @@ import http from '../request/http' ...@@ -2,7 +2,7 @@ import http from '../request/http'
module.exports = { module.exports = {
/**新建车损报价单 */ /**新建车损报价单 */
quotationAdd(data) { quotationAdd (data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add',
projectName: 'boutique', projectName: 'boutique',
...@@ -10,7 +10,7 @@ module.exports = { ...@@ -10,7 +10,7 @@ module.exports = {
}) })
}, },
/** 报价单支付订单生成(带上签名)返回订单号(商户地址) */ /** 报价单支付订单生成(带上签名)返回订单号(商户地址) */
quotationUpgrade(data) { quotationUpgrade (data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.pay.order.generate', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.pay.order.generate',
projectName: 'boutique', projectName: 'boutique',
...@@ -18,7 +18,7 @@ module.exports = { ...@@ -18,7 +18,7 @@ module.exports = {
}) })
}, },
// 校验订单是否需要上传合同协议 // 校验订单是否需要上传合同协议
checkZyPayFlag(data) { checkZyPayFlag (data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.zyPayUrl.check', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.zyPayUrl.check',
projectName: 'boutique', projectName: 'boutique',
...@@ -27,7 +27,7 @@ module.exports = { ...@@ -27,7 +27,7 @@ module.exports = {
}, },
// 查询店铺配置 // 查询店铺配置
getShopMerchantPointConfig(data) { getShopMerchantPointConfig (data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.shopMerchantPointConfig.get', method: 'dj.api.smartcarlife.shopMerchantPointConfig.get',
projectName: 'boutique', projectName: 'boutique',
...@@ -36,7 +36,7 @@ module.exports = { ...@@ -36,7 +36,7 @@ module.exports = {
}, },
/** 查询报价单信息 */ /** 查询报价单信息 */
getQuotationInfoById(data) { getQuotationInfoById (data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.find.by.id', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.find.by.id',
projectName: 'boutique', projectName: 'boutique',
...@@ -46,7 +46,7 @@ module.exports = { ...@@ -46,7 +46,7 @@ module.exports = {
/** /**
* 订单详情 * 订单详情
*/ */
getOrderDetail(data) { getOrderDetail (data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.order.detail', method: 'dj.api.smartcarlife.order.detail',
projectName: 'boutique', projectName: 'boutique',
...@@ -54,7 +54,7 @@ module.exports = { ...@@ -54,7 +54,7 @@ module.exports = {
}) })
}, },
/**pos支付 */ /**pos支付 */
getPosQr(data) { getPosQr (data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.payOrder.create', method: 'dj.api.smartcarlife.payOrder.create',
projectName: 'boutique', projectName: 'boutique',
...@@ -65,7 +65,7 @@ module.exports = { ...@@ -65,7 +65,7 @@ module.exports = {
* 查询门店录单设置 * 查询门店录单设置
}, },
*/ */
orderSettingList(data) { orderSettingList (data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.order.field.setting.list', method: 'dj.api.smartcarlife.order.field.setting.list',
projectName: 'boutique', projectName: 'boutique',
...@@ -74,7 +74,7 @@ module.exports = { ...@@ -74,7 +74,7 @@ module.exports = {
}, },
/** 报价单分页列表 */ /** 报价单分页列表 */
quotationPage(data) { quotationPage (data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page',
projectName: 'boutique', projectName: 'boutique',
...@@ -82,7 +82,7 @@ module.exports = { ...@@ -82,7 +82,7 @@ module.exports = {
}) })
}, },
/** 根据id查询报价单数据 */ /** 根据id查询报价单数据 */
getQuotationInfo(data) { getQuotationInfo (data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.generate', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.generate',
projectName: 'boutique', projectName: 'boutique',
...@@ -90,7 +90,7 @@ module.exports = { ...@@ -90,7 +90,7 @@ module.exports = {
}) })
}, },
/** 修改车损报价单客户基本信息信息 */ /** 修改车损报价单客户基本信息信息 */
updateCustomerInfo(data) { updateCustomerInfo (data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.customer.base.info.update', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.customer.base.info.update',
projectName: 'boutique', projectName: 'boutique',
...@@ -99,7 +99,7 @@ module.exports = { ...@@ -99,7 +99,7 @@ module.exports = {
}, },
/** 报价单订单分状态统计信息 */ /** 报价单订单分状态统计信息 */
orderStatistics(data) { orderStatistics (data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.order.status.statistics', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.order.status.statistics',
projectName: 'boutique', projectName: 'boutique',
...@@ -107,7 +107,7 @@ module.exports = { ...@@ -107,7 +107,7 @@ module.exports = {
}) })
}, },
// 查询订单是否支持状态变更 // 查询订单是否支持状态变更
getOrderRefundStep(data) { getOrderRefundStep (data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.refundApplyRecord.isExist', method: 'dj.api.smartcarlife.refundApplyRecord.isExist',
projectName: 'boutique', projectName: 'boutique',
...@@ -115,7 +115,7 @@ module.exports = { ...@@ -115,7 +115,7 @@ module.exports = {
}) })
}, },
/**报价单-撤销工单 */ /**报价单-撤销工单 */
cancelOrderById(data) { cancelOrderById (data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.quotation.cancel', method: 'dj.api.smartcarlife.quotation.cancel',
projectName: 'boutique', projectName: 'boutique',
...@@ -123,7 +123,7 @@ module.exports = { ...@@ -123,7 +123,7 @@ module.exports = {
}) })
}, },
// 车损报价单战败订单创建 // 车损报价单战败订单创建
defeatOrderCreate(data) { defeatOrderCreate (data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add.defeat.order', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add.defeat.order',
projectName: 'boutique', projectName: 'boutique',
...@@ -131,7 +131,7 @@ module.exports = { ...@@ -131,7 +131,7 @@ module.exports = {
}) })
}, },
// 更新合同协议内容 // 更新合同协议内容
updateZyInfo(data) { updateZyInfo (data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.zyPayUrl.update', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.zyPayUrl.update',
projectName: 'boutique', projectName: 'boutique',
...@@ -139,7 +139,7 @@ module.exports = { ...@@ -139,7 +139,7 @@ module.exports = {
}) })
}, },
/** 根据商户号商品id获取可选升级商品列表 */ /** 根据商户号商品id获取可选升级商品列表 */
quotationGoodsList(data) { quotationGoodsList (data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.quotationGoods.list', method: 'dj.api.smartcarlife.quotationGoods.list',
projectName: 'boutique', projectName: 'boutique',
...@@ -148,14 +148,14 @@ module.exports = { ...@@ -148,14 +148,14 @@ module.exports = {
}, },
/** /**
* /** 修改车损报价单信息 */ * /** 修改车损报价单信息 */
updateQuotation(data) { updateQuotation (data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.update', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.update',
projectName: 'boutique', projectName: 'boutique',
...data ...data
}) })
}, },
getCheckEmployeeList(data) { getCheckEmployeeList (data) {
// 0->2.0 1->1.1 2->1.2 3->1.3 场景对应 // 0->2.0 1->1.1 2->1.2 3->1.3 场景对应
// data.sceneList = [1] // data.sceneList = [1]
return http.post({ return http.post({
...@@ -166,11 +166,23 @@ module.exports = { ...@@ -166,11 +166,23 @@ module.exports = {
// return api.post("dj.api.smartcarlife.employee.getByMerchantId", data); // return api.post("dj.api.smartcarlife.employee.getByMerchantId", data);
}, },
/** 更新报价单状态 */ /** 更新报价单状态 */
updateOrderStatus(data) { updateOrderStatus (data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.status.update', method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.status.update',
projectName: 'boutique', projectName: 'boutique',
...data ...data
}) })
} },
/**
* 服务信息详情
*
*/
getServiceInfoDetail (data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.detail',
projectName: 'boutique',
...data
})
},
} }

2.93 MB | W: | H:

2.93 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -20,13 +20,22 @@ ...@@ -20,13 +20,22 @@
<template v-if="titleList[boxIdx].addHtml"> <template v-if="titleList[boxIdx].addHtml">
<slot :name="titleList[boxIdx].addHtml" /> <slot :name="titleList[boxIdx].addHtml" />
</template> </template>
<template v-if="collapseControl">
<view
:class="['collapse-control',{down:!titleList[boxIdx].collapseAll}]"
@click="collapseAll(boxIdx)"
>
<view class="sprite-icon icon-collapse-all"></view>
</view>
</template>
</view> </view>
</template> </template>
<template v-for="(item, idx) in items"> <template v-for="(item, idx) in items">
<view v-if="!item.hidden" :key="idx"> <view :key="idx">
<view <view
class="cell-row" :class="['cell-row',{'cell-hide':collapseControl && !titleList[boxIdx].collapseAll}]"
:key="idx" :key="idx"
v-if="!item.hidden"
> >
<view <view
class="cell" class="cell"
...@@ -121,6 +130,12 @@ ...@@ -121,6 +130,12 @@
:name="item.addHtml" :name="item.addHtml"
></slot> ></slot>
</view> </view>
<view
v-if="item.rowHtml"
:class="['row-html',{'cell-hide':collapseControl && !titleList[boxIdx].collapseAll}]"
>
<slot :name="item.rowHtml"></slot>
</view>
</view> </view>
</template> </template>
</view> </view>
...@@ -155,7 +170,8 @@ export default { ...@@ -155,7 +170,8 @@ export default {
titleList: { titleList: {
type: Array, type: Array,
default: () => [] default: () => []
} },
collapseControl: Boolean
}, },
data () { data () {
return { return {
...@@ -179,6 +195,9 @@ export default { ...@@ -179,6 +195,9 @@ export default {
}, },
handleBlur (e, item) { handleBlur (e, item) {
this.$emit('inputBlur', e, item) this.$emit('inputBlur', e, item)
},
collapseAll (index) {
this.$emit('collapseAll', index)
} }
} }
} }
...@@ -203,13 +222,28 @@ export default { ...@@ -203,13 +222,28 @@ export default {
.cell-title { .cell-title {
min-height: 72rpx; min-height: 72rpx;
padding: 0 32rpx; padding: 0 32rpx;
color: #6c6f75; color: #777;
font-size: 24rpx; font-size: 24rpx;
.collapse-control {
margin-left: auto;
width: 48rpx;
height: 48rpx;
transition: all 0.15s;
.sprite-icon {
zoom: 2;
}
}
.down {
transform: rotate(180deg);
}
} }
.cell-row { .cell-row {
padding-left: toRpx(32); padding-left: toRpx(32);
transition: all 0.15s;
}
.cell-hide {
height: 0;
} }
.cell { .cell {
display: flex; display: flex;
align-items: center; align-items: center;
......
<template>
<view class="equity-box">
<view class="common-title">服务信息录入</view>
<view class="box">
<scroll-view
scroll-y
class="scroll-view"
>
<view class="box-content">
<GlCell
:formList="formList"
:formData="orderObj"
@inputBlur="inputBlur"
@handleCell="handleCell"
:titleList="titleList"
@collapseAll="collapseAll"
>
<template #goodsHtml>
恒河猴
</template>
<template #uploadHtml>
恒河猴1
</template>
</GlCell>
</view>
<view class="btns flex">
<view
class="btn save"
@click="handleEditSave"
>存草稿</view>
<view
@click="submit"
class="btn"
>确认提交</view>
</view>
</scroll-view>
</view>
<order-popup
ref="orderPopup"
:data="orderObj"
@onConfirm="onConfirm"
:popupType="popupType"
/>
</view>
</template>
<script type='text/ecmascript-6'>
import utils from '@/utils/utils'
import { EQUITY_FORM_LIST, EQUITY_FORM_TITLE_LIST, popupTypeEnum } from '../contant'
import GlCell from '@/components/Form/GlCell.vue'
import OrderPopup from '@/components/OrderPopup/index.vue'
import dayjs from 'dayjs'
export default {
name: 'CreateEquity',
components: {
GlCell,
OrderPopup
},
data () {
return {
formList: utils.deepClone(EQUITY_FORM_LIST),
titleList: utils.deepClone(EQUITY_FORM_TITLE_LIST),
orderObj: {
carSeriesId: ''
},
popupType: 0
}
},
mounted () {
this.getServiceInfoDetail()
},
methods: {
handleCell (val) {
console.log(val)
this.popupType = Object.keys(popupTypeEnum).find(key => popupTypeEnum[key].key === val.key) * 1
this.$refs.orderPopup.open()
},
inputBlur (e, val) {
},
async getServiceInfoDetail () {
const data = await uni.$api.equityApi.getServiceInfoDetail({
contractNo: 'car998467117191905280'
})
console.log(data)
},
collapseAll (index) {
this.titleList[index].collapseAll = !this.titleList[index].collapseAll
}
}
}
</script>
<style scoped lang='scss'>
.equity-box {
height: 100%;
position: relative;
.box {
height: calc(100% - #{toRpx(120)});
.scroll-view {
height: 100%;
}
&-content {
padding: 0 toRpx(48);
}
}
.customer-title {
.customer-file {
margin-left: toRpx(20);
color: #347bff;
font-size: toRpx(24);
.sprite-icon {
margin-right: toRpx(4);
}
}
}
.btns {
padding: toRpx(24) toRpx(128);
gap: toRpx(32);
.btn {
display: flex;
align-items: center;
justify-content: center;
width: toRpx(1130);
height: toRpx(80);
color: #fff;
border-radius: toRpx(48);
background: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
}
.save {
background: #3b73ff1a;
color: #4673ff;
font-size: toRpx(28);
font-weight: 500;
}
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -71,6 +71,8 @@ ...@@ -71,6 +71,8 @@
<script> <script>
import { uploadFile } from '@/utils/ossUploadFile/uploadFile.js' import { uploadFile } from '@/utils/ossUploadFile/uploadFile.js'
import { debounce } from 'lodash' import { debounce } from 'lodash'
import permision from '@/js_sdk/wa-permission/permission.js'
export default { export default {
name: 'UploadProofOfPayment', name: 'UploadProofOfPayment',
props: { props: {
......
...@@ -448,4 +448,127 @@ const UpdateOrderInfo = [ ...@@ -448,4 +448,127 @@ const UpdateOrderInfo = [
} }
] ]
] ]
export { FORM_LIST, popupTypeEnum, payTypeList, DEFEAT_FORM_LIST, titleList, UpdateOrderInfo, defeat_titleList }
const EQUITY_FORM_LIST = [
[
{
label: '车架号',
value: 'vin',
maxlength: '17',
type: 'input',
},
{
label: '车辆发票价',
value: 'invoicePrice',
type: 'input',
readonly: true
},
{
label: '座位数',
value: 'seatesNum',
type: 'select',
key: 'seat',
},
{
label: '发动机号',
value: 'engineNo',
maxlength: '30',
type: 'input'
},
{
label: '车辆颜色',
value: 'vehicleColor',
maxlength: '5',
type: 'input'
},
{
label: '购车日期',
value: 'billingDate',
type: 'select',
},
{
label: '品牌车系',
value: 'carBrandText',
type: 'select',
key: 'carBrand',
},
],
[
{
label: '客户类型',
value: 'customerType',
type: 'select',
},
{
label: '姓名',
value: 'customerName',
maxlength: '100',
type: 'input'
},
{
label: '联系电话',
value: 'customerPhone',
maxlength: '11',
type: 'input'
},
{
label: '证件类型',
value: 'cardType',
type: 'select',
},
{
label: '证件号码',
value: 'cardNo',
maxlength: '18',
type: 'input'
},
{
label: '联系地址',
value: 'customerAddress',
maxlength: '100',
type: 'input'
},
],
[
{
hidden: true,
rowHtml: 'goodsHtml'
}
],
[
{
hidden: true,
rowHtml: 'uploadHtml'
}
],
[
{
label: '店面名称',
value: 'merchantName',
type: 'input',
readonly: true
},
{
label: '联系电话',
value: 'merchantPhone',
maxlength: '20',
type: 'input'
},
{
label: '联系地址',
value: 'merchantAddress',
maxlength: '100',
type: 'input'
},
]
]
const EQUITY_FORM_TITLE_LIST = [
{ name: '车辆信息', collapseAll: true },
{ name: '客户信息', collapseAll: true },
{ name: '产品信息', collapseAll: true },
{ name: '上传资料', collapseAll: true },
{ name: '店面信息', collapseAll: true }
]
export { FORM_LIST, popupTypeEnum, payTypeList, DEFEAT_FORM_LIST, titleList, UpdateOrderInfo, defeat_titleList, EQUITY_FORM_LIST, EQUITY_FORM_TITLE_LIST }
...@@ -47,6 +47,8 @@ import UpdateOrderInfo from './components/UpdateOrderInfo.vue' ...@@ -47,6 +47,8 @@ import UpdateOrderInfo from './components/UpdateOrderInfo.vue'
import StudyPopup from '@/components/StudyPopup.vue' import StudyPopup from '@/components/StudyPopup.vue'
import StudyCenterPermissionPopup from '@/components/StudyCenterPermissionPopup.vue' import StudyCenterPermissionPopup from '@/components/StudyCenterPermissionPopup.vue'
import CreateEquity from './components/CreateEquity.vue'
export default { export default {
mixins: [interceptionMixin], mixins: [interceptionMixin],
components: { components: {
...@@ -60,7 +62,8 @@ export default { ...@@ -60,7 +62,8 @@ export default {
OrderDetail, OrderDetail,
UpdateOrderInfo, UpdateOrderInfo,
StudyPopup, StudyPopup,
StudyCenterPermissionPopup StudyCenterPermissionPopup,
CreateEquity
}, },
data() { data() {
return { return {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!