Commit 802eb7d4 by 前端

fixed

1 parent 37494e86
{ {
"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"
} }
...@@ -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 18:46:44 * @LastEditTime: 2024-04-09 19: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();
......
...@@ -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 17:57:46 * @LastEditTime: 2024-04-09 19: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();
}, },
}, },
}; };
......
...@@ -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">
...@@ -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) {
...@@ -266,7 +259,7 @@ export default { ...@@ -266,7 +259,7 @@ export default {
submit() { submit() {
console.log(this.formData); console.log(this.formData);
this.messageBoxVisible = false; this.messageBoxVisible = false;
this.stopAudio(); this.stopAudio(this.infoList);
}, },
// 选择车型与销售 // 选择车型与销售
showPop(key) { showPop(key) {
...@@ -283,14 +276,14 @@ export default { ...@@ -283,14 +276,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;
......
...@@ -2,32 +2,32 @@ ...@@ -2,32 +2,32 @@
* @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-08 14:11:38 * @LastEditTime: 2024-04-09 19:23:10
*/ */
// import { setToken, getToken, removeToken } from '@/utils/token';; // import { setToken, getToken, removeToken } from '@/utils/token';;
export default { export default {
state () { state() {
return { return {
customerInfo: {}, customerInfo: {},
}; };
}, },
mutations: { mutations: {
getCustomerInfo(state){ getCustomerInfo(state) {
return state.customerInfo return state.customerInfo;
}, },
setCustomerInfo (state, data) { setCustomerInfo(state, data) {
state.customerInfo = data state.customerInfo = data;
}, },
}, },
actions: { actions: {
// 获取用户详情 // 获取用户详情
async getCustomerInfo ({ commit }) { async getCustomerInfo({ commit }) {
return commit('getCustomerInfo') return commit("getCustomerInfo");
}, },
async setCustomerInfo ({ commit }, value) { async setCustomerInfo({ commit }, value) {
commit('setCustomerInfo', value); commit("setCustomerInfo", value);
}, },
}, },
}; };
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!