Commit 892a20c2 by 李伟康

Merge branch 'v1.0.1' of http://192.168.3.233:8090/glsx/gl_tape into v1.0.1

2 parents 10c67fd2 818f9de9
{
"name": "展业助手",
"appid": "__UNI__D3BD3DF",
"description": "",
"versionName": "1.0.0",
"versionCode": "100",
"transformPx": false,
"name" : "展业助手",
"appid" : "__UNI__D3BD3DF",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : "100",
"transformPx" : false,
/* 5+App特有相关 */
"app-plus": {
"bounce": "none",
"usingComponents": true,
"nvueStyleCompiler": "uni-app",
"compilerVersion": 3,
"screenOrientation": "landscape",
"splashscreen": {
"alwaysShowBeforeRender": true,
"waiting": true,
"autoclose": true,
"delay": 0
"app-plus" : {
"bounce" : "none",
"usingComponents" : true,
"nvueStyleCompiler" : "uni-app",
"compilerVersion" : 3,
"screenOrientation" : "landscape",
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : true,
"autoclose" : true,
"delay" : 0
},
/* 模块配置 */
"modules": {},
"modules" : {},
/* 应用发布信息 */
"distribute": {
"distribute" : {
/* android打包配置 */
"android": {
"permissions": [
"android" : {
"permissions" : [
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
......@@ -44,46 +44,46 @@
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
],
"orientation": "landscape"
"orientation" : "landscape"
},
/* ios打包配置 */
"ios": {
"dSYMs": false
"ios" : {
"dSYMs" : false
},
/* SDK配置 */
"sdkConfigs": {
"ad": {}
"sdkConfigs" : {
"ad" : {}
},
"icons": {
"android": {
"hdpi": "static/72.png",
"xhdpi": "static/96.png",
"xxhdpi": "static/144.png"
"icons" : {
"android" : {
"hdpi" : "static/72.png",
"xhdpi" : "static/96.png",
"xxhdpi" : "static/144.png"
}
}
}
},
/* 快应用特有相关 */
"quickapp": {},
"quickapp" : {},
/* 小程序特有相关 */
"mp-weixin": {
"appid": "wx79d1ff39bee3d047",
"setting": {
"urlCheck": false
"mp-weixin" : {
"appid" : "wx79d1ff39bee3d047",
"setting" : {
"urlCheck" : false
},
"usingComponents": true
"usingComponents" : true
},
"mp-alipay": {
"usingComponents": true
"mp-alipay" : {
"usingComponents" : true
},
"mp-baidu": {
"usingComponents": true
"mp-baidu" : {
"usingComponents" : true
},
"mp-toutiao": {
"usingComponents": true
"mp-toutiao" : {
"usingComponents" : true
},
"uniStatistics": {
"enable": false
"uniStatistics" : {
"enable" : false
},
"vueVersion": "2"
}
\ No newline at end of file
"vueVersion" : "2"
}
......@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-08 11:28:48
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-09 18:46:44
* @LastEditTime: 2024-04-09 19:42:21
* @FilePath: \gl_tape\mixin\click.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -12,6 +12,7 @@ import { mapMutations, mapState } from "vuex";
export default {
data() {
return {
receptionCustomerPaySourceList: [],
tipVisible: false,
voicePath: "",
timer: null,
......@@ -32,6 +33,7 @@ export default {
"receptionEndTime",
"receptionStartTime",
]),
...mapState(["user.customerInfo"]),
},
methods: {
...mapMutations("audio", ["setAudioStart", "setAudioList", "setAudioEnd"]),
......@@ -52,19 +54,29 @@ export default {
},
//保存录音记录及其他信息
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 = {
carModel: "问界",
carModel,
endReasonType: "",
customerName: name,
phoneNumber: phone,
customerName,
phoneNumber,
loginPhone: phone,
salesUuid: uuid,
salesUuid,
receptionStatus: 1, //接待结果 1.成交 0.战败
recordUrlList: tempFilePath,
receptionStartTime: this.receptionStartTime,
receptionEndTime: this.receptionEndTime,
receptionCustomerPaySourceList: [], //1.付款凭证文件路径 2.客户购车发票文件路径 3.客户延保合同文件路径
receptionCustomerPaySourceList, //1.付款凭证文件路径 2.客户购车发票文件路径 3.客户延保合同文件路径
merchantId,
};
console.log(params, "params");
......@@ -96,7 +108,8 @@ export default {
});
},
//结束录音
stopAudio() {
stopAudio(receptionCustomerPaySourceList) {
if (receptionCustomerPaySourceList) this.receptionCustomerPaySourceList;
this.setAudioStart(false);
this.setAudioEnd(true);
recorderManager.stop();
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-04-07 14:54:28
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-09 17:57:46
* @LastEditTime: 2024-04-09 19:38:12
-->
<template>
<uni-popup
......@@ -143,7 +143,6 @@ export default {
url: `/pages/informationEntry/informationEntry`,
});
this.close();
this.$parent.stopAudio();
},
},
};
......
......@@ -2,8 +2,8 @@
* @Description:
* @Author: huyue
* @Date: 2024-04-07 14:54:28
* @LastEditors: huyue
* @LastEditTime: 2024-04-09 19:22:47
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-09 19:33:50
-->
<template>
<view class="information-entry">
......@@ -60,7 +60,7 @@
<template v-for="(i, index) in formObject">
<view class="form-item" :key="index">
<view class="label">{{ i.label }}</view>
<view :class="['value', {error:i.error}]">
<view :class="['value', { error: i.error }]">
<template v-if="i.type == 'input'">
<input
:type="i.inputType"
......@@ -185,11 +185,11 @@ export default {
},
],
formData: {
customerName: '',
carModel: '',
phoneNumber: '',
salesUuid: '',
staffName: ''
customerName: "",
carModel: "",
phoneNumber: "",
salesUuid: "",
staffName: "",
},
carBoxVisible: false,
previewImg: "",
......@@ -207,15 +207,8 @@ export default {
});
this.$store.dispatch("getCustomerInfo").then((customerInfo) => {
this.isPass = Object.values(customerInfo).every((value) => !!value);
});
},
watch: {
infoList: {
hander(val) {},
deep: true,
},
},
methods: {
// 上传图
choose(index) {
......@@ -265,13 +258,15 @@ export default {
// 保存
submit() {
console.log(this.formData);
this.messageBoxVisible = false;
this.stopAudio(this.infoList);
// this.messageBoxVisible = false;
try {
for(let i in this.formData) {
if (!this.formData[i]) throw i
for (let i in this.formData) {
if (!this.formData[i]) throw i;
}
} catch (error) {
this.formData[i].error = true
this.formData[i].error = true;
}
this.stopAudio();
},
......@@ -290,14 +285,14 @@ export default {
this.$refs.preview.open("center");
},
handleSelect(item, popkey) {
console.log(item)
console.log(item);
this[popkey] = false;
if (popkey == "employeeBoxVisible") {
this.formData.salesUuid = item.uuid;
this.formData.staffName = item.staffName;
} else this.formData.carModel = item.name;
this.$store.dispatch("setCustomerInfo", this.formData);
console.log(this.formData)
console.log(this.formData);
},
showPopup(e) {
this[e] = true;
......
/*
* @Description:
* @Description:
* @Author: huyue
* @Date: 2024-04-07 18:15:11
* @LastEditors: huyue
* @LastEditTime: 2024-04-08 14:11:38
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-09 19:49:48
*/
// import { setToken, getToken, removeToken } from '@/utils/token';;
export default {
state () {
state() {
return {
customerInfo: {
customerName: '',
carModel: '',
phoneNumber: '',
salesUuid: '',
staffName: ''
customerName: "",
carModel: "",
phoneNumber: "",
salesUuid: "",
staffName: "",
},
};
},
mutations: {
getCustomerInfo (state) {
return state.customerInfo
getCustomerInfo(state) {
return state.customerInfo;
},
setCustomerInfo (state, data) {
state.customerInfo = data
setCustomerInfo(state, data) {
state.customerInfo = data;
},
clearCustomerInfo(state){
clearCustomerInfo(state) {
state.customerInfo = {
customerName: '',
carModel: '',
phoneNumber: '',
salesUuid: '',
staffName: ''
}
}
customerName: "",
carModel: "",
phoneNumber: "",
salesUuid: "",
staffName: "",
};
},
},
actions: {
// 获取用户详情
getCustomerInfo ({state}) {
return state.customerInfo
getCustomerInfo({ state }) {
return state.customerInfo;
},
setCustomerInfo({ commit }, value) {
commit("setCustomerInfo", value);
},
setCustomerInfo ({ commit }, value) {
commit('setCustomerInfo', value);
clearCustomerInfo({ commit }) {
commit("clearCustomerInfo");
},
clearCustomerInfo({commit}){
commit('clearCustomerInfo')
}
},
};
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!