Commit 8db3a080 by cen

feat: 新增报告管理

1 parent 1c2f6af7
......@@ -523,7 +523,7 @@ module.exports = {
})
},
// 新学习中心 - 员工学习中心剩余时间
getStudyCenterResidueTime(data={}) {
getStudyCenterResidueTime(data = {}) {
return http.post({
method: 'dj.api.pad.learning.center.residue.time',
projectName: 'pad',
......@@ -531,7 +531,7 @@ module.exports = {
})
},
// 新学习中心 - 查询我的课程页签数量
getMyCourseTabCount(data={}) {
getMyCourseTabCount(data = {}) {
return http.post({
method: 'dj.api.pad.learning.center.myself.course.count',
projectName: 'pad',
......@@ -539,7 +539,7 @@ module.exports = {
})
},
// 新学习中心 - 考试结果
getExamResult(data={}) {
getExamResult(data = {}) {
return http.post({
method: 'dj.api.pad.learning.center.beisen.exam.result',
projectName: 'pad',
......@@ -547,20 +547,19 @@ module.exports = {
})
},
// 限制录单
getLimitRecord(data={}) {
getLimitRecord(data = {}) {
return http.post({
method: 'dj.api.pad.learning.center.study.permission',
projectName: 'pad',
...data
})
},
// VIN车架号校验
checkVinValidate(data={}) {
console.log("调用接口checkVinValidate",data);
return http.post({
method: 'dj.pad.api.vin.validate',
projectName: 'pad',
...data,
})
},
// VIN车架号校验
checkVinValidate(data = {}) {
return http.post({
method: 'dj.pad.api.vin.validate',
projectName: 'pad',
...data
})
}
}
......@@ -248,5 +248,11 @@ module.exports = {
},
{ returnAll: true }
)
},
/**
* 根据VIN查询查博士数据
*/
queryByVin(data) {
return gscPost('/chaboshi/queryByVin', data, { returnAll: true })
}
}
import { gscPost } from '../request/signHttp'
module.exports = {
/** 二手车驻店日报列表 */
getCarDailyReportList (data) {
getCarDailyReportList(data) {
return gscPost('/carDailyReport/list', {
...data
})
......@@ -10,7 +9,7 @@ module.exports = {
/**
* 新增二手车驻店日报
*/
addCarDailyReport (data) {
addCarDailyReport(data) {
return gscPost('/carDailyReport/add', {
...data
})
......@@ -18,7 +17,7 @@ module.exports = {
/**
* 二手车驻店日报详情
*/
getCarDailyReportDetail (data) {
getCarDailyReportDetail(data) {
return gscPost('/carDailyReport/detail', {
...data
})
......@@ -26,7 +25,7 @@ module.exports = {
/**
* 修改二手车驻店日报
*/
editCarDailyReport (data) {
editCarDailyReport(data) {
return gscPost('/carDailyReport/edit', {
...data
})
......@@ -34,39 +33,63 @@ module.exports = {
/**
* 交付单列表
*/
getDeliveryOrderPageList (data) {
return gscPost('/deliveryOrderManage/getDeliveryOrderPageList', data ,{
getDeliveryOrderPageList(data) {
return gscPost('/deliveryOrderManage/getDeliveryOrderPageList', data, {
returnAll: true
})
},
/**
* 交付单列表按照支付状态统计数量
*/
getDeliveryOrderListCount (data) {
getDeliveryOrderListCount(data) {
return gscPost('/deliveryOrderManage/getDeliveryOrderListCount', data)
},
/**
* 交付单详情
*/
getDeliveryOrderDetail (data) {
getDeliveryOrderDetail(data) {
return gscPost('/deliveryOrderManage/getDeliveryOrderDetail', data)
},
/**
* 交付单操作日志
*/
getDeliveryOrderOpLog (data) {
getDeliveryOrderOpLog(data) {
return gscPost('/deliveryOrderManage/getDeliveryOrderOpLog', data)
},
/**
* 客户确认到店
*/
confirmArrive (data) {
* 客户确认到店
*/
confirmArrive(data) {
return gscPost('/deliveryOrderManage/confirmArrive', data, { returnAll: true })
},
/**
* 客户确认提车
*/
confirmDelivery (data) {
confirmDelivery(data) {
return gscPost('/deliveryOrderManage/confirmDelivery', data, { returnAll: true })
},
/**
* 车辆检测报告管理列表
*/
getCheckReportPageList(data) {
return gscPost('/checkReport/pageList', data, { returnAll: true })
},
/**
* 新增查询任务
*/
checkReportCreate(data) {
return gscPost('/checkReport/create', data, { returnAll: true })
},
/**
* 数量统计
*/
checkReportNumCount(data) {
return gscPost('/checkReport/numCount', data, { returnAll: true })
},
/**
* 检查是否具备访问按钮的权限
*/
checkVisitButton(data) {
return gscPost('/permissionAccess/checkVisitButton', data, { returnAll: true })
}
}
No preview for this file type
......@@ -180,6 +180,9 @@
.mb-24 {
margin-bottom: toRpx(24);
}
.mb-28 {
margin-bottom: toRpx(28);
}
.mb-30 {
margin-bottom: toRpx(30);
}
......

2.94 MB | W: | H:

2.99 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -71,6 +71,13 @@ export default {
name: 'DeliveryManagement',
page: '/pages/usedCar/deliveryManagement/index',
sceneType: [7]
},
{
icon: 'report-management',
label: '报告管理',
name: 'ReportManagement',
page: '/pages/usedCar/reportManagement/index',
sceneType: [7]
}
]
return entranceList.filter(e => e.sceneType.includes(sceneType))
......
......@@ -197,7 +197,7 @@ export default {
mounted() {
uni.$logger.local.info('levelStudyPopup 开始监听mounted')
uni.$on('levelStudyPopup', obj => {
uni.$logger.local.info('接收到学习弹窗事件', obj)
uni.$logger.local.info('接收到学习弹窗事件', obj)
this.showExamPopup = true
})
const userInfo = uni.$storage.get('userInfo') || {}
......@@ -549,9 +549,9 @@ export default {
this.checkVersion()
},
async entranceClick(item) {
console.log(item, 'item')
// 清除评估单的图片视频资源缓存
const noInterceptPage = ['DailyReport', 'DeliveryManagement'],
const noInterceptPage = ['DailyReport', 'DeliveryManagement', 'ReportManagement'],
{ sceneType } = this
if (!noInterceptPage.includes(item.name)) {
if (sceneType != 7) {
......@@ -573,6 +573,18 @@ export default {
})
return
}
if (item.name === 'ReportManagement') {
const res = await uni.$api.usedCarApi.checkVisitButton({
buttonCode: 'quotation'
})
if (!res.data.data) {
uni.showToast({
title: '功能暂未开放',
icon: 'none'
})
return
}
}
if (item.page)
return uni.navigateTo({
url: item.page
......
const target = ['ip', 'dev', 'uat', 'prod', 'beta']
const index = 2
const index = 1
/**
*
0本地
......
......@@ -139,7 +139,7 @@
"navigationStyle": "custom"
}
},
{
{
"path": "pages/common/studyCenter/courseDetail",
"style": {
"navigationStyle": "custom"
......@@ -294,6 +294,12 @@
}
},
{
"path": "pages/usedCar/reportManagement/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/common/filePreview",
"style": {
"navigationStyle": "custom",
......
......@@ -83,7 +83,7 @@
<!-- 弹窗 -->
<OrderPopup ref="orderPopup" :data="displayData" :isDefeatOrder="true" :externalData="[]" @onConfirm="onConfirm" :popupType="0" />
<SelectCar ref="selectCar" title="选择车型" :car-brand-data="carBrandData" @car-selected="handleCarSelected" :on-load-year-data="loadYearDataForModel" />
<SelectCar ref="selectCar" title="选择车型" :car-brand-data="carBrandData" @car-selected="handleCarSelected" :on-load-year-data="loadYearDataForModel" :car-tips="carTips" />
<SelectCity
ref="selectCity"
title="选择城市"
......@@ -557,7 +557,8 @@ export default {
uploadOtherFields: [{ key: 41, label: '其他图片', required: false, accept: 'image', maxCount: 30, fullwidth: true }],
currentField: null,
query: {},
validateState: true
validateState: true,
carTips: ''
}
},
onLoad(options) {
......@@ -1338,6 +1339,18 @@ export default {
.catch(err => {
console.log('validateVinErr', result)
})
uni.$api.evaluationApi
.queryByVin({
vin: this.formData.carBaseReqDTO.vin
})
.then(res => {
console.log('res:', res)
if (res.data.code == 0) {
this.carTips = res.data.data.base.commonName || ''
} else {
this.carTips = ''
}
})
uni.showToast({ title: '车架号识别完成并已自动填写到表单中', icon: 'none' })
uni.hideLoading()
} else {
......
......@@ -13,6 +13,7 @@
@step-change="onStepChange"
:isShowStepNumber="false"
></StepTab>
<view v-if="carTips" class="carTips">{{ carTips }}</view>
<view class="list-component">
<!-- 修复activeValue绑定,统一使用currentSelectedId -->
<SortByNameList :items="currentStepData" :activeValue="currentSelectedId" :activeField="'id'" :itemNameField="'name'" :groupKeyField="'letter'" :itemsPerRow="3" :itemSpacing="32" @item-click="handleItemClick" :enableFastScroll="false" />
......@@ -47,6 +48,10 @@ export default {
onLoadYearData: {
type: Function,
default: () => Promise.resolve([])
},
carTips: {
type: String,
default: ''
}
},
data() {
......@@ -448,4 +453,14 @@ export default {
}
}
}
.carTips {
border-radius: toRpx(16);
background: #fef4e8;
padding: toRpx(16) 0;
color: #f59619;
font-size: toRpx(26);
font-weight: 400;
text-align: center;
margin: 0 toRpx(48) toRpx(16);
}
</style>
......@@ -173,7 +173,20 @@
<view class="tab-panel-title">二手车转让协议</view>
<view class="gridBoxNoPadding">
<template v-for="(item, index) in vehicleItems">
<view v-if="(!detailsInfo.signingInfo.saleContract.depositPrice ? item.key !== 'signingInfo.saleContract.depositPrice' && item.key !== 'signingInfo.saleContract.finalPrice' : item.key !== 'signingInfo.saleContract.fullPrice') && (item.key !== 'signingInfo.saleContract.thirdPartyTransactionVoucher' || formatValue(item, detailsInfo))" :key="index" :class="['flex align-start', { 'full-width': item.fullWidth }, { 'align-center': item.type == 'link' }]">
<view
v-if="
(!detailsInfo.signingInfo.saleContract.depositPrice ? item.key !== 'signingInfo.saleContract.depositPrice' && item.key !== 'signingInfo.saleContract.finalPrice' : item.key !== 'signingInfo.saleContract.fullPrice') &&
(item.key !== 'signingInfo.saleContract.thirdPartyTransactionVoucher' || formatValue(item, detailsInfo)) &&
(item.key !== 'signingInfo.saleContract.handler' || detailsInfo.signingInfo.saleContract.signerType === 2) &&
(item.key !== 'signingInfo.saleContract.idCard' || detailsInfo.signingInfo.saleContract.signerType === 0 || detailsInfo.signingInfo.saleContract.signerType === 1) &&
(item.key !== 'signingInfo.saleContract.orgLicenseNumber' || detailsInfo.signingInfo.saleContract.signerType === 1 || detailsInfo.signingInfo.saleContract.signerType === 2) &&
(item.key !== 'signingInfo.saleContract.idCardFrontUrl' || (formatValue(item, detailsInfo) && (detailsInfo.signingInfo.saleContract.signerType === 0 || detailsInfo.signingInfo.saleContract.signerType === 1))) &&
(item.key !== 'signingInfo.saleContract.idCardBackUrl' || (formatValue(item, detailsInfo) && (detailsInfo.signingInfo.saleContract.signerType === 0 || detailsInfo.signingInfo.saleContract.signerType === 1))) &&
(item.key !== 'signingInfo.saleContract.orgLicenseUrl' || (formatValue(item, detailsInfo) && (detailsInfo.signingInfo.saleContract.signerType === 1 || detailsInfo.signingInfo.saleContract.signerType === 2)))
"
:key="index"
:class="['flex align-start', { 'full-width': item.fullWidth }, { 'align-center': item.type == 'link' }]"
>
<view class="title-label-see mr-16">{{ item.label }}</view>
<view v-if="item.type == 'image'">
<!-- 三方/委托交易凭证可能是视频 -->
......@@ -563,13 +576,26 @@ export default {
{ label: '尾款金额', key: 'signingInfo.saleContract.finalPrice', cell: '元' },
{ label: '全款金额', key: 'signingInfo.saleContract.fullPrice', cell: '元' },
{ label: '签约车主', key: 'signingInfo.saleContract.partAName' },
{
label: '签署人类型',
key: 'signingInfo.saleContract.signerType',
formatter: value => {
if (value === 1) return '企业委托'
if (value === 0) return '个人'
if (value === 2) return '企业'
return value || '-'
}
},
{ label: '经办人', key: 'signingInfo.saleContract.handler' },
{ label: '手机号码', key: 'signingInfo.saleContract.phone' },
{ label: '身份证号', key: 'signingInfo.saleContract.idCard' },
{ label: '营业执照号', key: 'signingInfo.saleContract.orgLicenseNumber' },
{ label: '合同模版名称', key: 'signingInfo.saleContract.docTemplateName' },
{ label: '交车时间', key: 'signingInfo.saleContract.handoverTime' },
{ label: '交车地点', key: 'signingInfo.saleContract.handoverAddress' },
{ label: '身份证国徽面', key: 'signingInfo.saleContract.idCardFrontUrl', type: 'image' },
{ label: '身份证人像面', key: 'signingInfo.saleContract.idCardBackUrl', type: 'image' },
{ label: '营业执照图片', key: 'signingInfo.saleContract.orgLicenseUrl', type: 'image' },
{ label: '三方/委托交易凭证', key: 'signingInfo.saleContract.thirdPartyTransactionVoucher', type: 'image' },
{ label: '查阅合同', key: 'signingInfo.saleContract.contractUrl', type: 'link' }
],
......
const ORDER_STATUS = {
0: '生成中',
1: '生成成功',
2: '生成失败'
}
const PAYMENT_STATUS = {
0: '待支付',
1: '已结清'
}
const OP_TYPE = {
1: '创建交付工单',
2: '确认客户到店',
3: '确认客户提车'
}
module.exports = {
ORDER_STATUS,
PAYMENT_STATUS,
OP_TYPE
}
<template>
<view class="detail-box">
<view class="nav-bar">
<view
class="back"
@click="backPage"
>
<uni-icons
type="left"
:size="20"
color="#000"
></uni-icons>
<view class="back" @click="backPage">
<uni-icons type="left" :size="20" color="#000"></uni-icons>
</view>
<view class="title">展业工具</view>
</view>
......@@ -17,49 +10,20 @@
<view class="detail-left">
<view class="common-title">展业</view>
<view class="content">
<image
class="banner"
src="../../../assets/images/common/tool_banner.png"
mode="scaleToFill"
/>
<image class="banner" src="../../../assets/images/common/tool_banner.png" mode="scaleToFill" />
<template v-if="toolComponentName !== 'DailyReport'">
<Entrance @entranceClick="entranceClick"></Entrance>
</template>
<template v-else>
<uni-calendar
ref="calendar"
:clearDate="false"
:endDate="endDate"
:showMonth="false"
@monthSwitch="currentMonth = `${$event.year}-${$event.month}`"
openBeforeChange
@beforeChange="changeDate"
@change="currentDate = $event.fulldate"
backgroundColor="transparent"
:selected="selectedDays"
:date="currentDate"
/>
<uni-calendar ref="calendar" :clearDate="false" :endDate="endDate" :showMonth="false" @monthSwitch="currentMonth = `${$event.year}-${$event.month}`" openBeforeChange @beforeChange="changeDate" @change="currentDate = $event.fulldate" backgroundColor="transparent" :selected="selectedDays" :date="currentDate" />
</template>
</view>
</view>
<view class="detail-right">
<component
:ref="`detail-${toolComponentName}-Ref`"
:is="toolComponentName"
@jump="jump"
:transmission-of-data="transmissionOfData"
:currentDate="currentDate"
:currentMonth="currentMonth"
@setCalendarSelected="selectedDays = $event"
/>
<component :ref="`detail-${toolComponentName}-Ref`" :is="toolComponentName" @jump="jump" :transmission-of-data="transmissionOfData" :currentDate="currentDate" :currentMonth="currentMonth" @setCalendarSelected="selectedDays = $event" />
</view>
</view>
<NoticePopup
ref="notice"
title="重要提示"
text="内容尚未提交,是否退出编辑?"
type="warning"
></NoticePopup>
<NoticePopup ref="notice" title="重要提示" text="内容尚未提交,是否退出编辑?" type="warning"></NoticePopup>
</view>
</template>
......@@ -77,7 +41,7 @@ export default {
DailyReport,
NoticePopup
},
data () {
data() {
return {
toolComponentName: '',
transmissionOfData: null,
......@@ -87,7 +51,7 @@ export default {
selectedDays: []
}
},
onLoad (options) {
onLoad(options) {
if (options.componentName) this.toolComponentName = options.componentName
if (options.currentDate) this.setCurrentDate(options.currentDate)
uni.$on('jumpToDailyReport', currentDate => {
......@@ -95,7 +59,7 @@ export default {
if (currentDate) this.setCurrentDate(currentDate)
})
},
onBackPress (options) {
onBackPress(options) {
if (options.from === 'backbutton') {
// 物理返回按钮触发
// 阻止默认行为,即不执行页面返回
......@@ -106,14 +70,14 @@ export default {
return false
},
methods: {
setCurrentDate (currentDate) {
setCurrentDate(currentDate) {
this.currentDate = currentDate
this.currentMonth = dayjs(currentDate).format('YYYY-MM')
},
async entranceClick (item) {
if(this.toolComponentName == item.name) return
async entranceClick(item) {
if (this.toolComponentName == item.name) return
const noInterceptPage = ['DailyReport']
if (!noInterceptPage.includes(item.name) && ((await this.checkDailyReport()))) return
if (!noInterceptPage.includes(item.name) && (await this.checkDailyReport())) return
// 保存当前选择的组件信息,但不立即切换
const selectedItem = item
if (this.toolComponentName === selectedItem.name && (!this.transmissionOfData || this.transmissionOfData.type !== 'supplementOrder')) return
......@@ -127,7 +91,7 @@ export default {
this.openNotice(selectedItem)
},
openNotice (selectedItem, back = true, callBack) {
openNotice(selectedItem, back = true, callBack) {
// 配置弹窗按钮
this.$refs.notice.buttonsList = [
{
......@@ -156,19 +120,19 @@ export default {
// 打开弹窗
this.$refs.notice.open()
},
async backPage () {
async backPage() {
const openNotice = await this.checkReport()
if (openNotice) this.openNotice()
else uni.navigateBack()
},
// name:跳转组件名,val:跳转参数
jump (name, val) {
jump(name, val) {
this.toolComponentName = name
if (val) {
this.transmissionOfData = val
}
},
async checkReport () {
async checkReport() {
let dailyReportRef = this.$refs['detail-DailyReport-Ref']
if (dailyReportRef) {
let { isDateWithin7Days, isFilled } = dailyReportRef
......@@ -176,7 +140,7 @@ export default {
}
return true
},
async changeDate (e) {
async changeDate(e) {
if (e.fullDate == this.currentDate) return
const openNotice = await this.checkReport()
if (!openNotice) return this.$refs.calendar.manualChangeDate(e)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!