Commit e9dd1387 by cen

Merge branch 'SAAS+V5.5.0' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V5.5.0

2 parents 2dcc7ac7 6478eff7
......@@ -2,7 +2,7 @@ import http from '../request/http'
module.exports = {
/**新建车损报价单 */
quotationAdd(data) {
quotationAdd (data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add',
projectName: 'boutique',
......@@ -10,7 +10,7 @@ module.exports = {
})
},
/** 报价单支付订单生成(带上签名)返回订单号(商户地址) */
quotationUpgrade(data) {
quotationUpgrade (data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.pay.order.generate',
projectName: 'boutique',
......@@ -18,7 +18,7 @@ module.exports = {
})
},
// 校验订单是否需要上传合同协议
checkZyPayFlag(data) {
checkZyPayFlag (data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.zyPayUrl.check',
projectName: 'boutique',
......@@ -27,7 +27,7 @@ module.exports = {
},
// 查询店铺配置
getShopMerchantPointConfig(data) {
getShopMerchantPointConfig (data) {
return http.post({
method: 'dj.api.smartcarlife.shopMerchantPointConfig.get',
projectName: 'boutique',
......@@ -36,7 +36,7 @@ module.exports = {
},
/** 查询报价单信息 */
getQuotationInfoById(data) {
getQuotationInfoById (data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.find.by.id',
projectName: 'boutique',
......@@ -46,7 +46,7 @@ module.exports = {
/**
* 订单详情
*/
getOrderDetail(data) {
getOrderDetail (data) {
return http.post({
method: 'dj.api.smartcarlife.order.detail',
projectName: 'boutique',
......@@ -54,7 +54,7 @@ module.exports = {
})
},
/**pos支付 */
getPosQr(data) {
getPosQr (data) {
return http.post({
method: 'dj.api.smartcarlife.payOrder.create',
projectName: 'boutique',
......@@ -65,7 +65,7 @@ module.exports = {
* 查询门店录单设置
},
*/
orderSettingList(data) {
orderSettingList (data) {
return http.post({
method: 'dj.api.smartcarlife.order.field.setting.list',
projectName: 'boutique',
......@@ -74,7 +74,7 @@ module.exports = {
},
/** 报价单分页列表 */
quotationPage(data) {
quotationPage (data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page',
projectName: 'boutique',
......@@ -82,7 +82,7 @@ module.exports = {
})
},
/** 根据id查询报价单数据 */
getQuotationInfo(data) {
getQuotationInfo (data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.generate',
projectName: 'boutique',
......@@ -90,7 +90,7 @@ module.exports = {
})
},
/** 修改车损报价单客户基本信息信息 */
updateCustomerInfo(data) {
updateCustomerInfo (data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.customer.base.info.update',
projectName: 'boutique',
......@@ -99,7 +99,7 @@ module.exports = {
},
/** 报价单订单分状态统计信息 */
orderStatistics(data) {
orderStatistics (data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.order.status.statistics',
projectName: 'boutique',
......@@ -107,7 +107,7 @@ module.exports = {
})
},
// 查询订单是否支持状态变更
getOrderRefundStep(data) {
getOrderRefundStep (data) {
return http.post({
method: 'dj.api.smartcarlife.refundApplyRecord.isExist',
projectName: 'boutique',
......@@ -115,7 +115,7 @@ module.exports = {
})
},
/**报价单-撤销工单 */
cancelOrderById(data) {
cancelOrderById (data) {
return http.post({
method: 'dj.api.smartcarlife.quotation.cancel',
projectName: 'boutique',
......@@ -123,7 +123,7 @@ module.exports = {
})
},
// 车损报价单战败订单创建
defeatOrderCreate(data) {
defeatOrderCreate (data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add.defeat.order',
projectName: 'boutique',
......@@ -131,7 +131,7 @@ module.exports = {
})
},
// 更新合同协议内容
updateZyInfo(data) {
updateZyInfo (data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.zyPayUrl.update',
projectName: 'boutique',
......@@ -139,7 +139,7 @@ module.exports = {
})
},
/** 根据商户号商品id获取可选升级商品列表 */
quotationGoodsList(data) {
quotationGoodsList (data) {
return http.post({
method: 'dj.api.smartcarlife.quotationGoods.list',
projectName: 'boutique',
......@@ -148,14 +148,14 @@ module.exports = {
},
/**
* /** 修改车损报价单信息 */
updateQuotation(data) {
updateQuotation (data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.update',
projectName: 'boutique',
...data
})
},
getCheckEmployeeList(data) {
getCheckEmployeeList (data) {
// 0->2.0 1->1.1 2->1.2 3->1.3 场景对应
// data.sceneList = [1]
return http.post({
......@@ -166,11 +166,23 @@ module.exports = {
// return api.post("dj.api.smartcarlife.employee.getByMerchantId", data);
},
/** 更新报价单状态 */
updateOrderStatus(data) {
updateOrderStatus (data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.status.update',
projectName: 'boutique',
...data
})
}
},
/**
* 服务信息详情
*
*/
getServiceInfoDetail (data) {
return http.post({
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.detail',
projectName: 'boutique',
...data
})
},
}
......@@ -101,8 +101,6 @@
background-position: calc(100vmin * (1173 / 768) * -0.6884057971014492) calc(100vmin * (1173 / 768) * -0.5234441602728048);}
.icon-edit { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.45524296675191817) calc(100vmin * (1173 / 768) * -0.4113384484228474);}
.icon-end-right { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.5234441602728048);}
.icon-equity-order { width: calc(100vmin * (1173 / 768) * 0.04092071611253197); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * 0) calc(100vmin * (1173 / 768) * -0.5907928388746803);}
.icon-equityClose { width: calc(100vmin * (1173 / 768) * 0.010230179028132993); height: calc(100vmin * (1173 / 768) * 0.010230179028132993);
......@@ -140,7 +138,7 @@
.icon-finish-icon { width: calc(100vmin * (1173 / 768) * 0.017050298380221655); height: calc(100vmin * (1173 / 768) * 0.017050298380221655);
background-position: calc(100vmin * (1173 / 768) * -0.340153452685422) calc(100vmin * (1173 / 768) * -0.13256606990622335);}
.icon-first-left { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.5707587382779199);}
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.5234441602728048);}
.icon-first-nav { width: calc(100vmin * (1173 / 768) * 0.1977834612105712); height: calc(100vmin * (1173 / 768) * 0.07502131287297528);
background-position: calc(100vmin * (1173 / 768) * -0.21099744245524296) calc(100vmin * (1173 / 768) * -0.35038363171355497);}
.icon-first-right { width: calc(100vmin * (1173 / 768) * 0.05456095481670929); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
......@@ -430,4 +428,8 @@
.icon-yw-icon { width: calc(100vmin * (1173 / 768) * 0.015345268542199489); height: calc(100vmin * (1173 / 768) * 0.015345268542199489);
background-position: calc(100vmin * (1173 / 768) * -0.5004262574595055) calc(100vmin * (1173 / 768) * -0.45865302642796246);}
.icon-zj-icon { width: calc(100vmin * (1173 / 768) * 0.013640238704177323); height: calc(100vmin * (1173 / 768) * 0.013640238704177323);
background-position: calc(100vmin * (1173 / 768) * -0.20034100596760443) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
\ No newline at end of file
background-position: calc(100vmin * (1173 / 768) * -0.20034100596760443) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
.icon-end-right { width: calc(100vmin * (1173 / 768) * 0.027280477408354646); height: calc(100vmin * (1173 / 768) * 0.04092071611253197);
background-position: calc(100vmin * (1173 / 768) * -0.6547314578005116) calc(100vmin * (1173 / 768) * -0.5707587382779199);}
.icon-collapse-all { width: calc(100vmin * (1173 / 768) * 0.010230179028132993); height: calc(100vmin * (1173 / 768) * 0.010230179028132993);
background-position: calc(100vmin * (1173 / 768) * -0.39940323955669227) calc(100vmin * (1173 / 768) * -0.6986359761295823);}
\ No newline at end of file

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 @@
<template v-if="titleList[boxIdx].addHtml">
<slot :name="titleList[boxIdx].addHtml" />
</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>
</template>
<template v-for="(item, idx) in items">
<view v-if="!item.hidden" :key="idx">
<view :key="idx">
<view
class="cell-row"
:class="['cell-row',{'cell-hide':collapseControl && !titleList[boxIdx].collapseAll}]"
:key="idx"
v-if="!item.hidden"
>
<view
class="cell"
......@@ -121,6 +130,12 @@
:name="item.addHtml"
></slot>
</view>
<view
v-if="item.rowHtml"
:class="['row-html',{'cell-hide':collapseControl && !titleList[boxIdx].collapseAll}]"
>
<slot :name="item.rowHtml"></slot>
</view>
</view>
</template>
</view>
......@@ -155,7 +170,8 @@ export default {
titleList: {
type: Array,
default: () => []
}
},
collapseControl: Boolean
},
data () {
return {
......@@ -179,6 +195,9 @@ export default {
},
handleBlur (e, item) {
this.$emit('inputBlur', e, item)
},
collapseAll (index) {
this.$emit('collapseAll', index)
}
}
}
......@@ -203,13 +222,28 @@ export default {
.cell-title {
min-height: 72rpx;
padding: 0 32rpx;
color: #6c6f75;
color: #777;
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 {
padding-left: toRpx(32);
transition: all 0.15s;
}
.cell-hide {
height: 0;
}
.cell {
display: flex;
align-items: center;
......
......@@ -554,6 +554,8 @@ export default {
const noInterceptPage = ['DailyReport', 'DeliveryManagement'],
{ sceneType } = this
if (!noInterceptPage.includes(item.name)) {
// 日报
if (await this.checkDailyReport(sceneType != 7)) return
if (sceneType != 7) {
// if (await this.inspectionOfProhibitionBill()) return
// 检查是否限制录单
......@@ -564,7 +566,6 @@ export default {
return
}
}
if (await this.checkDailyReport(sceneType != 7)) return
}
if (item.name === 'EvaluationFormList') {
mediaResourceManager.cleanupExpired()
......
<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
......@@ -71,6 +71,8 @@
<script>
import { uploadFile } from '@/utils/ossUploadFile/uploadFile.js'
import { debounce } from 'lodash'
import permision from '@/js_sdk/wa-permission/permission.js'
export default {
name: 'UploadProofOfPayment',
props: {
......
......@@ -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 }
......@@ -48,6 +48,8 @@ import StudyPopup from '@/components/StudyPopup.vue'
import StudyCenterPermissionPopup from '@/components/StudyCenterPermissionPopup.vue'
import EquityManagement from './components/EquityManagement.vue'
import CreateEquity from './components/CreateEquity.vue'
export default {
mixins: [interceptionMixin],
components: {
......@@ -62,7 +64,8 @@ export default {
UpdateOrderInfo,
StudyPopup,
StudyCenterPermissionPopup,
EquityManagement
EquityManagement,
CreateEquity
},
data() {
return {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!