Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 647dca8d
authored
Mar 20, 2026
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'feature/rework' of
http://192.168.3.233:8090/monorepo/venus
into feature/rework
2 parents
f389b14d
9443e949
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
61 deletions
apps/uniappX/uniapp-x-tape/components/FinishStep.uvue
apps/uniappX/uniapp-x-tape/components/HomeFrame/ReceptionCenter/FormAdd.uvue
apps/uniappX/uniapp-x-tape/pages/equity/detail/index.uvue
apps/uniappX/uniapp-x-tape/components/FinishStep.uvue
View file @
647dca8
...
@@ -33,7 +33,8 @@
...
@@ -33,7 +33,8 @@
<view
<view
class="form-item"
class="form-item"
>
>
<view :class="['label', { required: i.required == true}]">
<view class="label flex">
<view v-if="i.required == true" class="required">*</view>
{{ i.label }}
{{ i.label }}
</view>
</view>
<view :class="['value', { error: showError(i.key) && i.required == true }, { disabled: customerType == 0 || i.disabled == true }]">
<view :class="['value', { error: showError(i.key) && i.required == true }, { disabled: customerType == 0 || i.disabled == true }]">
...
@@ -51,7 +52,7 @@
...
@@ -51,7 +52,7 @@
</template>
</template>
<template v-else>
<template v-else>
<view
<view
:class="['select',
`${(formData as UTSJSONObject)[i.key] != '' ? '' : 'placeholder'}`
]"
:class="['select',
{'placeholder': (formData as UTSJSONObject)[i.key] == ''}
]"
@click="showPopup(i)"
@click="showPopup(i)"
:key="selectKey"
:key="selectKey"
>
>
...
@@ -290,7 +291,9 @@
...
@@ -290,7 +291,9 @@
(formRef.value as ComponentPublicInstance).$callMethod('close')
(formRef.value as ComponentPublicInstance).$callMethod('close')
}
}
}, { immediate: true })
}, { immediate: true })
watch(errorTip, () => {
console.log('errorTip', errorTip.value)
})
function showError(key: string): boolean {
function showError(key: string): boolean {
const value = formData.value
const value = formData.value
let flag = (value as UTSJSONObject)[key] == ''
let flag = (value as UTSJSONObject)[key] == ''
...
@@ -300,7 +303,6 @@
...
@@ -300,7 +303,6 @@
flag = phoneRex.test(phoneValue) == false
flag = phoneRex.test(phoneValue) == false
}
}
}
}
console.log(errorTip.value , flag)
return errorTip.value && flag
return errorTip.value && flag
}
}
...
@@ -358,7 +360,7 @@
...
@@ -358,7 +360,7 @@
if (successRef.value != null) {
if (successRef.value != null) {
(successRef.value as ComponentPublicInstance).$callMethod('open')
(successRef.value as ComponentPublicInstance).$callMethod('open')
}
}
emit('submit')
emit('submit'
,receptionStatus.value
)
}
}
// 保存
// 保存
function submit(): void {
function submit(): void {
...
@@ -393,10 +395,9 @@
...
@@ -393,10 +395,9 @@
const customerInfo = dispatch('getCustomerInfo') as IUTSObject
const customerInfo = dispatch('getCustomerInfo') as IUTSObject
const value = formData.value as UTSJSONObject
const value = formData.value as UTSJSONObject
if (popkey == "employeeBoxVisible") {
if (popkey == "employeeBoxVisible") {
(value as UTSJSONObject).salesUuid = item['uuid'] as string
(value as UTSJSONObject).salesUuid = item['uuid'] as string
(value as UTSJSONObject).staffName = item['staffName'] as string
(value as UTSJSONObject).staffName = item['staffName'] as string
dispatch("setCustomerInfo", { ...customerInfo,
...value
})
dispatch("setCustomerInfo", { ...customerInfo,
salesUuid: item['uuid'] as string, staffName: item['staffName'] as string
})
} else {
} else {
if (carBrandListVisible.value != null) {
if (carBrandListVisible.value != null) {
(carBrandListVisible.value as ComponentPublicInstance).$callMethod('close')
(carBrandListVisible.value as ComponentPublicInstance).$callMethod('close')
...
@@ -421,7 +422,7 @@
...
@@ -421,7 +422,7 @@
for (let i = 0; i < keys.length; i++) {
for (let i = 0; i < keys.length; i++) {
const key = keys[i]
const key = keys[i]
const value = customerInfo[key] as string | null
const value = customerInfo[key] as string | null
if (value == null || value ==
=
'') {
if (value == null || value == '') {
stepValue = 1
stepValue = 1
break
break
}
}
...
@@ -507,10 +508,8 @@
...
@@ -507,10 +508,8 @@
.form {
.form {
display: flex;
display: flex;
flex-wrap: wrap;
gap: 24rpx 0;
padding-top: 30rpx;
padding-top: 30rpx;
flex-direction: column;
&-item {
&-item {
width: 100%;
width: 100%;
display: flex;
display: flex;
...
@@ -518,7 +517,7 @@
...
@@ -518,7 +517,7 @@
color: #6c6c70;
color: #6c6c70;
font-size: 30rpx;
font-size: 30rpx;
box-sizing: border-box;
box-sizing: border-box;
margin: 0 auto;
margin: 0 auto
24rpx
;
flex-direction: row;
flex-direction: row;
.label {
.label {
position: relative;
position: relative;
...
@@ -526,18 +525,8 @@
...
@@ -526,18 +525,8 @@
flex-shrink: 0;
flex-shrink: 0;
width: 144rpx;
width: 144rpx;
font-size: 30rpx;
font-size: 30rpx;
.required{
&.required {
padding-left: 20rpx;
&::before {
content: '*';
color: #ff0000;
color: #ff0000;
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
}
}
}
}
}
...
@@ -574,7 +563,7 @@
...
@@ -574,7 +563,7 @@
.select {
.select {
display: flex;
display: flex;
align-items: center;
align-items: center;
justify-content: space-between;
.arrow {
.arrow {
margin-left: auto;
margin-left: auto;
}
}
...
@@ -582,7 +571,7 @@
...
@@ -582,7 +571,7 @@
.placeholder {
.placeholder {
font-size: 30rpx;
font-size: 30rpx;
color: #c9c9c9;
color: #c9c9c9
!important
;
}
}
}
}
...
...
apps/uniappX/uniapp-x-tape/components/HomeFrame/ReceptionCenter/FormAdd.uvue
View file @
647dca8
...
@@ -185,39 +185,39 @@ const brandCascaderValue = ref<Array<string | number>>([])
...
@@ -185,39 +185,39 @@ const brandCascaderValue = ref<Array<string | number>>([])
// 汽车品牌车型模拟数据(级联:品牌 -> 车型)
// 汽车品牌车型模拟数据(级联:品牌 -> 车型)
const brandCascaderOptions: UnCascaderOption[] = [
const brandCascaderOptions: UnCascaderOption[] = [
{
//
{
text: 'AITO 问界',
//
text: 'AITO 问界',
value: 'aito',
//
value: 'aito',
children: [
//
children: [
{ text: '问界 M9', value: 'aito-m9' },
//
{ text: '问界 M9', value: 'aito-m9' },
{ text: '问界 M8', value: 'aito-m8' },
//
{ text: '问界 M8', value: 'aito-m8' },
{ text: '问界 M7', value: 'aito-m7' },
//
{ text: '问界 M7', value: 'aito-m7' },
{ text: '问界 M5', value: 'aito-m5' },
//
{ text: '问界 M5', value: 'aito-m5' },
{ text: '问界 S9', value: 'aito-s9' }
//
{ text: '问界 S9', value: 'aito-s9' }
]
//
]
},
//
},
{
//
{
text: '比亚迪',
//
text: '比亚迪',
value: 'byd',
//
value: 'byd',
children: [
//
children: [
{ text: '汉', value: 'byd-han' },
//
{ text: '汉', value: 'byd-han' },
{ text: '唐', value: 'byd-tang' },
//
{ text: '唐', value: 'byd-tang' },
{ text: '宋', value: 'byd-song' },
//
{ text: '宋', value: 'byd-song' },
{ text: '秦', value: 'byd-qin' },
//
{ text: '秦', value: 'byd-qin' },
{ text: '海豹', value: 'byd-haibao' },
//
{ text: '海豹', value: 'byd-haibao' },
{ text: '海豚', value: 'byd-haitun' }
//
{ text: '海豚', value: 'byd-haitun' }
]
//
]
},
//
},
{
//
{
text: '一汽-大众奥迪',
//
text: '一汽-大众奥迪',
value: 'audi',
//
value: 'audi',
children: [
//
children: [
{ text: '奥迪 A7L', value: 'audi-a7l' },
//
{ text: '奥迪 A7L', value: 'audi-a7l' },
{ text: '奥迪 Q5 e-tron', value: 'audi-q5-etron' },
//
{ text: '奥迪 Q5 e-tron', value: 'audi-q5-etron' },
{ text: '奥迪 Q6', value: 'audi-q6' },
//
{ text: '奥迪 Q6', value: 'audi-q6' },
{ text: '奥迪 A5L Sportback', value: 'audi-a5l' }
//
{ text: '奥迪 A5L Sportback', value: 'audi-a5l' }
]
//
]
}
//
}
]
]
// 接待场景选择器
// 接待场景选择器
...
...
apps/uniappX/uniapp-x-tape/pages/equity/detail/index.uvue
View file @
647dca8
...
@@ -164,7 +164,7 @@
...
@@ -164,7 +164,7 @@
import { state , dispatch} from "@/store/index.uts"
import { state , dispatch} from "@/store/index.uts"
import { getSoureData } from '@/api/system-api.uts'
import { getSoureData } from '@/api/system-api.uts'
import { findPayInfo as findPayInfoApi } from '@/api/common-api.uts'
import { findPayInfo as findPayInfoApi } from '@/api/common-api.uts'
import { recordService, BusinessDataType } from '@/services/recorder/index.uts'
type BackPressEvent = {
type BackPressEvent = {
from: string
from: string
}
}
...
@@ -396,6 +396,7 @@ const currentCarInfo = computed(() => {
...
@@ -396,6 +396,7 @@ const currentCarInfo = computed(() => {
paymentTypeList.value = paymentType
paymentTypeList.value = paymentType
}
}
onLoad((options) => {
onLoad((options) => {
recordService.startAudio()
dispatch('setCustomerInfo', {})
dispatch('setCustomerInfo', {})
moduleList.value = [
moduleList.value = [
{
{
...
@@ -488,7 +489,6 @@ const currentCarInfo = computed(() => {
...
@@ -488,7 +489,6 @@ const currentCarInfo = computed(() => {
dispatch('clearReceptionTrack')
dispatch('clearReceptionTrack')
}
}
function backHome():void{
function backHome():void{
clearHistory()
uni.navigateBack()
uni.navigateBack()
}
}
function back(): void {
function back(): void {
...
@@ -505,7 +505,7 @@ const currentCarInfo = computed(() => {
...
@@ -505,7 +505,7 @@ const currentCarInfo = computed(() => {
backHome()
backHome()
}
}
function done() {
function done(
val: string
) {
showPayPage.value = false
showPayPage.value = false
if (toolRef.value != null) {
if (toolRef.value != null) {
(toolRef.value as ComponentPublicInstance).$callMethod('hide')
(toolRef.value as ComponentPublicInstance).$callMethod('hide')
...
@@ -513,6 +513,15 @@ const currentCarInfo = computed(() => {
...
@@ -513,6 +513,15 @@ const currentCarInfo = computed(() => {
if (stepRef.value != null) {
if (stepRef.value != null) {
(stepRef.value as ComponentPublicInstance).$callMethod('close')
(stepRef.value as ComponentPublicInstance).$callMethod('close')
}
}
const customerInfo = state.user.customerInfo as UTSJSONObject
customerInfo.receptionStatus = val
console.log(JSON.stringify(customerInfo))
recordService.updateBusinessData(
'customer',
customerInfo
)
recordService.stopAudio()
uni.navigateBack()
uni.navigateBack()
// receptionTrackLeave()
// receptionTrackLeave()
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment