Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 892a20c2
authored
Apr 09, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.0.1' of
http://192.168.3.233:8090/glsx/gl_tape
into v1.0.1
2 parents
10c67fd2
818f9de9
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
110 additions
and
103 deletions
manifest.json
mixin/click.js
pages/detail/components/payPop.vue
pages/informationEntry/informationEntry.vue
store/modules/user.js
manifest.json
View file @
892a20c
{
{
"name"
:
"展业助手"
,
"name"
:
"展业助手"
,
"appid"
:
"__UNI__D3BD3DF"
,
"appid"
:
"__UNI__D3BD3DF"
,
"description"
:
""
,
"description"
:
""
,
"versionName"
:
"1.0.0"
,
"versionName"
:
"1.0.0"
,
"versionCode"
:
"100"
,
"versionCode"
:
"100"
,
"transformPx"
:
false
,
"transformPx"
:
false
,
/*
5
+App特有相关
*/
/*
5
+App特有相关
*/
"app-plus"
:
{
"app-plus"
:
{
"bounce"
:
"none"
,
"bounce"
:
"none"
,
"usingComponents"
:
true
,
"usingComponents"
:
true
,
"nvueStyleCompiler"
:
"uni-app"
,
"nvueStyleCompiler"
:
"uni-app"
,
"compilerVersion"
:
3
,
"compilerVersion"
:
3
,
"screenOrientation"
:
"landscape"
,
"screenOrientation"
:
"landscape"
,
"splashscreen"
:
{
"splashscreen"
:
{
"alwaysShowBeforeRender"
:
true
,
"alwaysShowBeforeRender"
:
true
,
"waiting"
:
true
,
"waiting"
:
true
,
"autoclose"
:
true
,
"autoclose"
:
true
,
"delay"
:
0
"delay"
:
0
},
},
/*
模块配置
*/
/*
模块配置
*/
"modules"
:
{},
"modules"
:
{},
/*
应用发布信息
*/
/*
应用发布信息
*/
"distribute"
:
{
"distribute"
:
{
/*
android打包配置
*/
/*
android打包配置
*/
"android"
:
{
"android"
:
{
"permissions"
:
[
"permissions"
:
[
"<uses-feature android:name=
\"
android.hardware.camera
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera.autofocus
\"
/>"
,
"<uses-feature android:name=
\"
android.hardware.camera.autofocus
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_FINE_LOCATION
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.ACCESS_FINE_LOCATION
\"
/>"
,
...
@@ -44,46 +44,46 @@
...
@@ -44,46 +44,46 @@
"<uses-permission android:name=
\"
android.permission.WAKE_LOCK
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WAKE_LOCK
\"
/>"
,
"<uses-permission android:name=
\"
android.permission.WRITE_SETTINGS
\"
/>"
"<uses-permission android:name=
\"
android.permission.WRITE_SETTINGS
\"
/>"
],
],
"orientation"
:
"landscape"
"orientation"
:
"landscape"
},
},
/*
ios打包配置
*/
/*
ios打包配置
*/
"ios"
:
{
"ios"
:
{
"dSYMs"
:
false
"dSYMs"
:
false
},
},
/*
SDK配置
*/
/*
SDK配置
*/
"sdkConfigs"
:
{
"sdkConfigs"
:
{
"ad"
:
{}
"ad"
:
{}
},
},
"icons"
:
{
"icons"
:
{
"android"
:
{
"android"
:
{
"hdpi"
:
"static/72.png"
,
"hdpi"
:
"static/72.png"
,
"xhdpi"
:
"static/96.png"
,
"xhdpi"
:
"static/96.png"
,
"xxhdpi"
:
"static/144.png"
"xxhdpi"
:
"static/144.png"
}
}
}
}
}
}
},
},
/*
快应用特有相关
*/
/*
快应用特有相关
*/
"quickapp"
:
{},
"quickapp"
:
{},
/*
小程序特有相关
*/
/*
小程序特有相关
*/
"mp-weixin"
:
{
"mp-weixin"
:
{
"appid"
:
"wx79d1ff39bee3d047"
,
"appid"
:
"wx79d1ff39bee3d047"
,
"setting"
:
{
"setting"
:
{
"urlCheck"
:
false
"urlCheck"
:
false
},
},
"usingComponents"
:
true
"usingComponents"
:
true
},
},
"mp-alipay"
:
{
"mp-alipay"
:
{
"usingComponents"
:
true
"usingComponents"
:
true
},
},
"mp-baidu"
:
{
"mp-baidu"
:
{
"usingComponents"
:
true
"usingComponents"
:
true
},
},
"mp-toutiao"
:
{
"mp-toutiao"
:
{
"usingComponents"
:
true
"usingComponents"
:
true
},
},
"uniStatistics"
:
{
"uniStatistics"
:
{
"enable"
:
false
"enable"
:
false
},
},
"vueVersion"
:
"2"
"vueVersion"
:
"2"
}
}
mixin/click.js
View file @
892a20c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-08 11:28:48
* @Date: 2024-04-08 11:28:48
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-09 1
8:46:44
* @LastEditTime: 2024-04-09 1
9:42:21
* @FilePath: \gl_tape\mixin\click.js
* @FilePath: \gl_tape\mixin\click.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -12,6 +12,7 @@ import { mapMutations, mapState } from "vuex";
...
@@ -12,6 +12,7 @@ import { mapMutations, mapState } from "vuex";
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
receptionCustomerPaySourceList
:
[],
tipVisible
:
false
,
tipVisible
:
false
,
voicePath
:
""
,
voicePath
:
""
,
timer
:
null
,
timer
:
null
,
...
@@ -32,6 +33,7 @@ export default {
...
@@ -32,6 +33,7 @@ export default {
"receptionEndTime"
,
"receptionEndTime"
,
"receptionStartTime"
,
"receptionStartTime"
,
]),
]),
...
mapState
([
"user.customerInfo"
]),
},
},
methods
:
{
methods
:
{
...
mapMutations
(
"audio"
,
[
"setAudioStart"
,
"setAudioList"
,
"setAudioEnd"
]),
...
mapMutations
(
"audio"
,
[
"setAudioStart"
,
"setAudioList"
,
"setAudioEnd"
]),
...
@@ -52,19 +54,29 @@ export default {
...
@@ -52,19 +54,29 @@ export default {
},
},
//保存录音记录及其他信息
//保存录音记录及其他信息
async
uploadVoice
(
tempFilePath
)
{
async
uploadVoice
(
tempFilePath
)
{
const
{
phone
,
merchantId
,
uuid
,
name
}
=
uni
.
$storage
.
get
(
"userInfo"
),
const
{
merchantId
,
phone
}
=
uni
.
$storage
.
get
(
"userInfo"
),
{
customerName
,
phoneNumber
,
salesUuid
,
carModel
}
=
this
.
$store
.
state
.
user
.
customerInfo
,
receptionCustomerPaySourceList
=
this
.
receptionCustomerPaySourceList
.
map
((
item
)
=>
{
return
{
id
:
item
.
id
,
sourceType
:
item
.
id
,
sourceUrl
:
item
.
imgUrl
,
};
}),
params
=
{
params
=
{
carModel
:
"问界"
,
carModel
,
endReasonType
:
""
,
endReasonType
:
""
,
customerName
:
name
,
customerName
,
phoneNumber
:
phone
,
phoneNumber
,
loginPhone
:
phone
,
loginPhone
:
phone
,
salesUuid
:
uuid
,
salesUuid
,
receptionStatus
:
1
,
//接待结果 1.成交 0.战败
receptionStatus
:
1
,
//接待结果 1.成交 0.战败
recordUrlList
:
tempFilePath
,
recordUrlList
:
tempFilePath
,
receptionStartTime
:
this
.
receptionStartTime
,
receptionStartTime
:
this
.
receptionStartTime
,
receptionEndTime
:
this
.
receptionEndTime
,
receptionEndTime
:
this
.
receptionEndTime
,
receptionCustomerPaySourceList
:
[]
,
//1.付款凭证文件路径 2.客户购车发票文件路径 3.客户延保合同文件路径
receptionCustomerPaySourceList
,
//1.付款凭证文件路径 2.客户购车发票文件路径 3.客户延保合同文件路径
merchantId
,
merchantId
,
};
};
console
.
log
(
params
,
"params"
);
console
.
log
(
params
,
"params"
);
...
@@ -96,7 +108,8 @@ export default {
...
@@ -96,7 +108,8 @@ export default {
});
});
},
},
//结束录音
//结束录音
stopAudio
()
{
stopAudio
(
receptionCustomerPaySourceList
)
{
if
(
receptionCustomerPaySourceList
)
this
.
receptionCustomerPaySourceList
;
this
.
setAudioStart
(
false
);
this
.
setAudioStart
(
false
);
this
.
setAudioEnd
(
true
);
this
.
setAudioEnd
(
true
);
recorderManager
.
stop
();
recorderManager
.
stop
();
...
...
pages/detail/components/payPop.vue
View file @
892a20c
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: huyue
* @Author: huyue
* @Date: 2024-04-07 14:54:28
* @Date: 2024-04-07 14:54:28
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-09 1
7:57:46
* @LastEditTime: 2024-04-09 1
9:38:12
-->
-->
<
template
>
<
template
>
<uni-popup
<uni-popup
...
@@ -143,7 +143,6 @@ export default {
...
@@ -143,7 +143,6 @@ export default {
url
:
`/pages/informationEntry/informationEntry`
,
url
:
`/pages/informationEntry/informationEntry`
,
});
});
this
.
close
();
this
.
close
();
this
.
$parent
.
stopAudio
();
},
},
},
},
};
};
...
...
pages/informationEntry/informationEntry.vue
View file @
892a20c
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
* @Description:
* @Description:
* @Author: huyue
* @Author: huyue
* @Date: 2024-04-07 14:54:28
* @Date: 2024-04-07 14:54:28
* @LastEditors:
huyue
* @LastEditors:
前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-09 19:
22:47
* @LastEditTime: 2024-04-09 19:
33:50
-->
-->
<
template
>
<
template
>
<view
class=
"information-entry"
>
<view
class=
"information-entry"
>
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
<template
v-for=
"(i, index) in formObject"
>
<template
v-for=
"(i, index) in formObject"
>
<view
class=
"form-item"
:key=
"index"
>
<view
class=
"form-item"
:key=
"index"
>
<view
class=
"label"
>
{{
i
.
label
}}
</view>
<view
class=
"label"
>
{{
i
.
label
}}
</view>
<view
:class=
"['value',
{
error:i.error
}]">
<view
:class=
"['value',
{
error: i.error
}]">
<template
v-if=
"i.type == 'input'"
>
<template
v-if=
"i.type == 'input'"
>
<input
<input
:type=
"i.inputType"
:type=
"i.inputType"
...
@@ -185,11 +185,11 @@ export default {
...
@@ -185,11 +185,11 @@ export default {
},
},
],
],
formData
:
{
formData
:
{
customerName
:
''
,
customerName
:
""
,
carModel
:
''
,
carModel
:
""
,
phoneNumber
:
''
,
phoneNumber
:
""
,
salesUuid
:
''
,
salesUuid
:
""
,
staffName
:
''
staffName
:
""
,
},
},
carBoxVisible
:
false
,
carBoxVisible
:
false
,
previewImg
:
""
,
previewImg
:
""
,
...
@@ -207,15 +207,8 @@ export default {
...
@@ -207,15 +207,8 @@ export default {
});
});
this
.
$store
.
dispatch
(
"getCustomerInfo"
).
then
((
customerInfo
)
=>
{
this
.
$store
.
dispatch
(
"getCustomerInfo"
).
then
((
customerInfo
)
=>
{
this
.
isPass
=
Object
.
values
(
customerInfo
).
every
((
value
)
=>
!!
value
);
this
.
isPass
=
Object
.
values
(
customerInfo
).
every
((
value
)
=>
!!
value
);
});
});
},
},
watch
:
{
infoList
:
{
hander
(
val
)
{},
deep
:
true
,
},
},
methods
:
{
methods
:
{
// 上传图
// 上传图
choose
(
index
)
{
choose
(
index
)
{
...
@@ -265,13 +258,15 @@ export default {
...
@@ -265,13 +258,15 @@ export default {
// 保存
// 保存
submit
()
{
submit
()
{
console
.
log
(
this
.
formData
);
console
.
log
(
this
.
formData
);
this
.
messageBoxVisible
=
false
;
this
.
stopAudio
(
this
.
infoList
);
// this.messageBoxVisible = false;
// this.messageBoxVisible = false;
try
{
try
{
for
(
let
i
in
this
.
formData
)
{
for
(
let
i
in
this
.
formData
)
{
if
(
!
this
.
formData
[
i
])
throw
i
if
(
!
this
.
formData
[
i
])
throw
i
;
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
this
.
formData
[
i
].
error
=
true
this
.
formData
[
i
].
error
=
true
;
}
}
this
.
stopAudio
();
this
.
stopAudio
();
},
},
...
@@ -290,14 +285,14 @@ export default {
...
@@ -290,14 +285,14 @@ export default {
this
.
$refs
.
preview
.
open
(
"center"
);
this
.
$refs
.
preview
.
open
(
"center"
);
},
},
handleSelect
(
item
,
popkey
)
{
handleSelect
(
item
,
popkey
)
{
console
.
log
(
item
)
console
.
log
(
item
)
;
this
[
popkey
]
=
false
;
this
[
popkey
]
=
false
;
if
(
popkey
==
"employeeBoxVisible"
)
{
if
(
popkey
==
"employeeBoxVisible"
)
{
this
.
formData
.
salesUuid
=
item
.
uuid
;
this
.
formData
.
salesUuid
=
item
.
uuid
;
this
.
formData
.
staffName
=
item
.
staffName
;
this
.
formData
.
staffName
=
item
.
staffName
;
}
else
this
.
formData
.
carModel
=
item
.
name
;
}
else
this
.
formData
.
carModel
=
item
.
name
;
this
.
$store
.
dispatch
(
"setCustomerInfo"
,
this
.
formData
);
this
.
$store
.
dispatch
(
"setCustomerInfo"
,
this
.
formData
);
console
.
log
(
this
.
formData
)
console
.
log
(
this
.
formData
)
;
},
},
showPopup
(
e
)
{
showPopup
(
e
)
{
this
[
e
]
=
true
;
this
[
e
]
=
true
;
...
...
store/modules/user.js
View file @
892a20c
...
@@ -2,50 +2,50 @@
...
@@ -2,50 +2,50 @@
* @Description:
* @Description:
* @Author: huyue
* @Author: huyue
* @Date: 2024-04-07 18:15:11
* @Date: 2024-04-07 18:15:11
* @LastEditors:
huyue
* @LastEditors:
前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-0
8 14:11:3
8
* @LastEditTime: 2024-04-0
9 19:49:4
8
*/
*/
// import { setToken, getToken, removeToken } from '@/utils/token';;
// import { setToken, getToken, removeToken } from '@/utils/token';;
export
default
{
export
default
{
state
()
{
state
()
{
return
{
return
{
customerInfo
:
{
customerInfo
:
{
customerName
:
''
,
customerName
:
""
,
carModel
:
''
,
carModel
:
""
,
phoneNumber
:
''
,
phoneNumber
:
""
,
salesUuid
:
''
,
salesUuid
:
""
,
staffName
:
''
staffName
:
""
,
},
},
};
};
},
},
mutations
:
{
mutations
:
{
getCustomerInfo
(
state
)
{
getCustomerInfo
(
state
)
{
return
state
.
customerInfo
return
state
.
customerInfo
;
},
},
setCustomerInfo
(
state
,
data
)
{
setCustomerInfo
(
state
,
data
)
{
state
.
customerInfo
=
data
state
.
customerInfo
=
data
;
},
},
clearCustomerInfo
(
state
){
clearCustomerInfo
(
state
)
{
state
.
customerInfo
=
{
state
.
customerInfo
=
{
customerName
:
''
,
customerName
:
""
,
carModel
:
''
,
carModel
:
""
,
phoneNumber
:
''
,
phoneNumber
:
""
,
salesUuid
:
''
,
salesUuid
:
""
,
staffName
:
''
staffName
:
""
,
}
}
;
}
}
,
},
},
actions
:
{
actions
:
{
// 获取用户详情
// 获取用户详情
getCustomerInfo
({
state
})
{
getCustomerInfo
({
state
})
{
return
state
.
customerInfo
return
state
.
customerInfo
;
},
setCustomerInfo
({
commit
},
value
)
{
commit
(
"setCustomerInfo"
,
value
);
},
},
setCustomerInfo
({
commit
},
value
)
{
clearCustomerInfo
({
commit
}
)
{
commit
(
'setCustomerInfo'
,
value
);
commit
(
"clearCustomerInfo"
);
},
},
clearCustomerInfo
({
commit
}){
commit
(
'clearCustomerInfo'
)
}
},
},
};
};
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