Commit 95db8d38 by 前端

Merge branch 'SAAS+V4.49' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V4.49

2 parents 71da5594 d5cb1dc2
...@@ -62,7 +62,7 @@ export default { ...@@ -62,7 +62,7 @@ export default {
data() { data() {
return { return {
errorTip:false, errorTip:false,
receptionList: [{ receptionList: Object.freeze([{
label: '成交', label: '成交',
value: 1 value: 1
}, },
...@@ -70,8 +70,8 @@ export default { ...@@ -70,8 +70,8 @@ export default {
label: '战败', label: '战败',
value: 0 value: 0
} }
], ]),
formObject: [{ formObject: Object.freeze([{
label: "车主姓名", label: "车主姓名",
placeholder: '车主姓名', placeholder: '车主姓名',
key: 'customerName', key: 'customerName',
...@@ -108,7 +108,7 @@ export default { ...@@ -108,7 +108,7 @@ export default {
popKey: "employeeBoxVisible", popKey: "employeeBoxVisible",
placeholder: '请选择', placeholder: '请选择',
}, },
], ]),
focusIndex: -1, focusIndex: -1,
customerInfo:{} customerInfo:{}
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-12-26 10:03:54 * @Date: 2024-12-26 10:03:54
* @LastEditors: limin * @LastEditors: limin
* @LastEditTime: 2025-01-09 11:05:10 * @LastEditTime: 2025-01-15 21:23:38
* @FilePath: \gl_tape\mixin\record\recorder.js * @FilePath: \gl_tape\mixin\record\recorder.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
*/ */
...@@ -112,7 +112,9 @@ export default { ...@@ -112,7 +112,9 @@ export default {
stop() { stop() {
this.endWatchClick() this.endWatchClick()
this.record.clearLoopTimer() this.record.clearLoopTimer()
if(this.audioManager.isRecording){
this.audioManager.stop() this.audioManager.stop()
}
}, },
handler(params, fn) { handler(params, fn) {
if (!this.audioManager.isRecording) return if (!this.audioManager.isRecording) return
......
...@@ -40,7 +40,7 @@ export default { ...@@ -40,7 +40,7 @@ export default {
}, },
methods: { methods: {
async init() { async init() {
// await this.checkDB() try {
// 初始化 WebView // 初始化 WebView
this.wv = await this.initWebview() this.wv = await this.initWebview()
this.interval = UPLOAD_INTERVAL this.interval = UPLOAD_INTERVAL
...@@ -52,6 +52,9 @@ export default { ...@@ -52,6 +52,9 @@ export default {
// uni.$logger.local.error({ extra : { key: 'data', value: {'abc':123,'sss':456,'GDF':888} }, msg:'test', tag : { key: 'tag', value: 'tagtest' } }) // uni.$logger.local.error({ extra : { key: 'data', value: {'abc':123,'sss':456,'GDF':888} }, msg:'test', tag : { key: 'tag', value: 'tagtest' } })
// uni.$logger.local.getFiles('20240905','2024-09/05') // uni.$logger.local.getFiles('20240905','2024-09/05')
// uni.$logger.local.removeOverDays(1) // uni.$logger.local.removeOverDays(1)
} catch (error) {
this.reportError(`【上传管理Uploader】初始化失败 error:${error.message}`, error.message)
}
}, },
/** /**
* 订阅事件 * 订阅事件
...@@ -691,7 +694,7 @@ export default { ...@@ -691,7 +694,7 @@ export default {
* 清除 timer * 清除 timer
*/ */
canclePromises() { canclePromises() {
this.timeoutManager.cancelAllTasks() this.timeoutManager?.cancelAllTasks()
this.endTask() this.endTask()
}, },
off() { off() {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: limin * @Author: limin
* @Date: 2025-01-02 18:49:17 * @Date: 2025-01-02 18:49:17
* @LastEditors: limin * @LastEditors: limin
* @LastEditTime: 2025-01-06 19:37:32 * @LastEditTime: 2025-01-15 22:01:56
* @FilePath: \gl_tape\utils\recordManager\TempRecord.js * @FilePath: \gl_tape\utils\recordManager\TempRecord.js
*/ */
import utils from '../utils' import utils from '../utils'
...@@ -53,6 +53,7 @@ class TempRecord { ...@@ -53,6 +53,7 @@ class TempRecord {
} }
async save(record = this.record) { async save(record = this.record) {
try { try {
if(!record) throw new Error('记录对象为空')
uni.$logger.local.info('〖接待记录Record〗 == 开始持久化记录 ==' + JSON.stringify(record)) uni.$logger.local.info('〖接待记录Record〗 == 开始持久化记录 ==' + JSON.stringify(record))
this.clearLoopTimer() this.clearLoopTimer()
await this.saveTempFile(record) await this.saveTempFile(record)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!