| | |
| | | //获取主数据类ID |
| | | this.ClsID = this.param.master_cls?.id; |
| | | if (this.ClsID) { |
| | | this.loadData(options.paramValue) |
| | | const paramValue = options.paramValue ?JSON.parse(options.paramValue) :undefined |
| | | this.loadData(paramValue) |
| | | } else { |
| | | uni.showModal({ |
| | | title: this.translateSys("error"), |
| | |
| | | //获取数据类的自定义表单参数 |
| | | await this.Head_UIStyleGetInfo(this.ClsID, this.param.Input_UI_Style.ID); |
| | | //传入参数值 |
| | | console.log(paramValue) |
| | | if (paramValue) { |
| | | const attrs = paramValue.attrs || []; |
| | | (this.head_styledef?.form?.items || []).forEach(async (ele, index) => { |
| | |
| | | |
| | | } catch (ex) { |
| | | // console.log(ex); |
| | | let exStr = JSON.stringify(ex) |
| | | if (exStr == "{}") |
| | | exStr = ex |
| | | let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr |
| | | uni.showModal({ |
| | | title: this.translateSys("error") + "1", |
| | | content: ex.errMsg, |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | |
| | | console.log("Detail_UIstyleGetInfo", detailstyledef); |
| | | return detailstyledef |
| | | } catch (ex) { |
| | | // console.log(ex); |
| | | console.log(ex); |
| | | let exStr = JSON.stringify(ex) |
| | | if (exStr == "{}") |
| | | exStr = ex |
| | | let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr |
| | | uni.showModal({ |
| | | title: this.translateSys("error") + "2", |
| | | content: ex.errMsg, |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | |
| | | } |
| | | formItem.dict = list; |
| | | } catch (ex) { |
| | | // console.log(ex); |
| | | console.log(ex); |
| | | let exStr = JSON.stringify(ex) |
| | | if (exStr == "{}") |
| | | exStr = ex |
| | | let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr |
| | | uni.showModal({ |
| | | title: this.translateSys("error") + "3", |
| | | content: ex.errMsg, |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | |
| | | }; |
| | | const result = await runCustomEvent(dataInfo) |
| | | console.log(result) |
| | | if (result.ret != 0) { |
| | | if (result.ret != 0&& result.ret != 1) { |
| | | var tip = result.err_info ? typeof result |
| | | .err_info == 'string' ? result |
| | | .err_info : result.err_info.join('<br/>') : |
| | |
| | | |
| | | } catch (ex) { |
| | | console.log(ex) |
| | | var tip = typeof ex == "string" ? ex : ex.message; |
| | | let exStr = JSON.stringify(ex) |
| | | if (exStr == "{}") |
| | | exStr = ex |
| | | let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr |
| | | uni.showModal({ |
| | | title: this.translateSys("error") + "6.1", |
| | | content: this.translate( |
| | |
| | | }; |
| | | const result = await runCustomEvent(dataInfo) |
| | | console.log(result); |
| | | if (result.ret != 0) { |
| | | if (result.ret != 0&& result.ret != 1) { |
| | | var tip = result.err_info ? typeof result |
| | | .err_info == 'string' ? result |
| | | .err_info : result.err_info.join('<br/>') : |
| | |
| | | |
| | | } |
| | | } catch (ex) { |
| | | var tip = typeof ex == "string" ? ex : ex.message; |
| | | console.log(ex); |
| | | let exStr = JSON.stringify(ex) |
| | | if (exStr == "{}") |
| | | exStr = ex |
| | | let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr |
| | | uni.showModal({ |
| | | title: this.translateSys("error") + "4.2", |
| | | content: this.translate( |
| | |
| | | console.log(dataInfo); |
| | | // return; |
| | | runCustomEvent(dataInfo).then(data => { |
| | | if (data.ret != 0) { |
| | | if (data.ret != 0&& data.ret != 1) { |
| | | var tip = data.err_info ? typeof data.err_info == 'string' ? data |
| | | .err_info : |
| | | data |
| | |
| | | console.log(dataInfo); |
| | | // return; |
| | | runCustomEvent(dataInfo).then(data => { |
| | | if (data.ret != 0) { |
| | | if (data.ret != 0&& data.ret != 1) { |
| | | var tip = data.err_info ? typeof data.err_info == 'string' ? data |
| | | .err_info : |
| | | data |
| | |
| | | console.log(dataInfo); |
| | | runCustomEvent(dataInfo).then(result => { |
| | | console.log(result); |
| | | if (result.ret != 0) { |
| | | if (result.ret != 0&& result.ret != 1) { |
| | | var tip = result.err_info ? typeof result |
| | | .err_info == 'string' ? result.err_info : |
| | | result.err_info.join('<br/>') : ''; |
| | |
| | | console.log(ex) |
| | | return |
| | | } |
| | | }if ([0, 2, 3, 4, -1].includes(result.result_type)) { |
| | | } |
| | | } |
| | | |
| | | }).catch(ex => { |
| | | console.log(ex); |
| | | let tip = typeof ex.errMsg == "string" ? ex.errMsg : ex |
| | | let exStr = JSON.stringify(ex) |
| | | if (exStr == "{}") |
| | | exStr = ex |
| | | let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr |
| | | uni.showModal({ |
| | | title: this.translateSys("error") + "8.1", |
| | | content: this.translate("execute_after_ok_event_failed") + |
| | |
| | | |
| | | button { |
| | | text-align: left; |
| | | line-height: 1.5; |
| | | line-height: 1.6; |
| | | border: none; |
| | | |
| | | margin-right: 10rpx; |