| | |
| | | <template> |
| | | <view class="uni-page-modal-5601" :class="largeMode?'large-mode':''"> |
| | | <!-- 表头样式 --> |
| | | <OIForm ref="refBaseForm" class="v-headStyle" :form="head_styledef.form" :hiddenIds="head_styledef.hiddenIds ?head_styledef.hiddenIds :[] " :focusId="focusFieldId" |
| | | <OIForm ref="refBaseForm" class="v-headStyle" :form="head_styledef.form" |
| | | :hiddenIds="head_styledef.hiddenIds ?head_styledef.hiddenIds :[] " :focusId="focusFieldId" |
| | | @on-click="onClick" @on-focus="ontap" @on-change="onEnterChange" @on-click-prefix="classAttr_extButton" |
| | | @on-click-suffix="classAttr_extButton"></OIForm> |
| | | |
| | |
| | | var tip = result.info ? typeof result.info == |
| | | 'string' ? result.info : |
| | | result.info.join('<br/>') : ''; |
| | | tip = tip || result.err_info |
| | | if (tip) uni.showModal({ |
| | | title: this.translateSys('tip'), |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | if (result.result_type == 2) { |
| | | |
| | | if (result.result_type == 0 && result.action) { |
| | | result.action.forEach(item => { |
| | | } else if (typeof result.result == 'string') { |
| | | if (result.result) { |
| | | uni.showModal({ |
| | | title: this.translateSys('tip'), |
| | | content: result.result, |
| | | showCancel: false, |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | } |
| | | } |
| | | try { |
| | | var actionList = result.action || [] |
| | | actionList.forEach(item => { |
| | | if (item.action_type == "set_dlg_attr") { |
| | | // value = {"attr":"xxx", "value":"xxx"} |
| | | var data = item.value; |
| | |
| | | this.setDetailFormItemVisible(data, style, pageIndex) |
| | | } |
| | | }); |
| | | } else { |
| | | |
| | | if (result.info) { |
| | | } catch (ex) { |
| | | let actionList = (result.action || []).map(a => a.action_type).join(';') |
| | | let tip = typeof ex == 'string' ? ex : ex.message |
| | | tip = `执行脚本返回的${actionList}时出现异常,请检查脚本返回的数据格式是否正确。${tip}` |
| | | uni.showModal({ |
| | | title: this.translateSys( |
| | | "error") + "6.3", |
| | | content: result.info, |
| | | title: this.translateSys('tip'), |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: this |
| | | .translateSys('close') |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | console.log(ex) |
| | | return |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | |
| | | var tip = result.info ? typeof result.info == |
| | | 'string' ? result.info : |
| | | result.info.join('<br/>') : ''; |
| | | tip = tip || result.err_info |
| | | if (tip) uni.showModal({ |
| | | title: this.translateSys('tip'), |
| | | content: tip, |
| | |
| | | confirmText: this.translateSys( |
| | | 'close') |
| | | }); |
| | | if (result.result_type == 2) { |
| | | |
| | | if (result.result_type == 0 && result.action) { |
| | | result.action.forEach(item => { |
| | | } else if (typeof result.result == 'string') { |
| | | if (result.result) { |
| | | uni.showModal({ |
| | | title: this.translateSys('tip'), |
| | | content: result.result, |
| | | showCancel: false, |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | } |
| | | } |
| | | try { |
| | | let actionList = result.action || [] |
| | | actionList.forEach(item => { |
| | | if (item.action_type == "insert_subtable_page_row") { //码盘中 |
| | | $this.param.Show_Welcom_Page = false; |
| | | var value = item.value; |
| | |
| | | // value = {"attr":"xxx", "value":"xxx"} |
| | | var data = item.value; |
| | | $this.setFormValues(data) |
| | | } |
| | | else if (item.action_type == 'set_dlg_attr_show') { |
| | | } else if (item.action_type == 'set_dlg_attr_show') { |
| | | var data = item.value; |
| | | $this.setFormItemVisible(data) |
| | | } |
| | | }); |
| | | } else { |
| | | |
| | | if (result.info) { |
| | | } catch (ex) { |
| | | let actionList = (result.action || []).map(a => a.action_type).join(';') |
| | | let tip = typeof ex == 'string' ? ex : ex.message |
| | | tip = `执行脚本返回的${actionList}时出现异常,请检查脚本返回的数据格式是否正确。${tip}` |
| | | uni.showModal({ |
| | | title: this.translateSys( |
| | | "error") + "4.3", |
| | | content: result.info, |
| | | title: this.translateSys('tip'), |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: this |
| | | .translateSys('close') |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | console.log(ex) |
| | | return |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | |
| | | this.After_OK_Event = pageData.After_ok; |
| | | // console.log(this.Before_OK_Event); |
| | | // console.log(this.After_OK_Event); |
| | | console.log("ok"); |
| | | if (this.Before_OK_Event.ID) //是否有确定前事件 |
| | | this.sava(pageData, this.Before_OK_Event); |
| | | else if (this.After_OK_Event.ID) //是否有确定后事件 |
| | | this.sava(pageData, this.After_OK_Event); |
| | | }, |
| | | sava(pageData, event) { |
| | | |
| | | var $this = this; |
| | | // if (pageData.DefList.length == 0) { |
| | | // uni.showModal({ |
| | |
| | | item_list: jsonlist, |
| | | ext_data: pageData.ExtData |
| | | }) |
| | | // console.log(jsonlist); |
| | | |
| | | $this.runCustomEvent(pageData, event, input_param, list); |
| | | // jsonlist.forEach(async (json,key)=>{ |
| | | // await $this.runCustomEvent(event,input_param,json,'1'); |
| | |
| | | global_attr: '', |
| | | input_param: input_param, |
| | | }; |
| | | console.log(dataInfo); |
| | | runCustomEvent(dataInfo).then(result => { |
| | | console.log(result); |
| | | if (result.ret != 0) { |
| | |
| | | var tip = result.info ? typeof result.info == |
| | | 'string' ? result.info : result.info |
| | | .join('<br/>') : ''; |
| | | tip = tip || result.err_info |
| | | if (tip) uni.showModal({ |
| | | title: this.translateSys('tip'), |
| | | content: tip, |
| | |
| | | confirmText: this.translateSys( |
| | | 'close') |
| | | }); |
| | | if (result.result_type == 0) { |
| | | if (result.action) { |
| | | // uni.showModal({title:this.translateSys("tip"),content:JSON.stringify(result.action),showCancel:false,confirmText:this.translateSys("cancel")}); |
| | | if (result.result_type == 2) { |
| | | |
| | | result.action.forEach(item => { |
| | | } else if (typeof result.result == 'string') { |
| | | if (result.result) { |
| | | uni.showModal({ |
| | | title: this.translateSys('tip'), |
| | | content: result.result, |
| | | showCancel: false, |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | } |
| | | } |
| | | try { |
| | | let actionList = result.action || [] |
| | | actionList.forEach(item => { |
| | | if (item.action_type == |
| | | "insert_subtable_page_row") { //码盘中 |
| | | var value = item.value; |
| | |
| | | // value = {"attr":"xxx", "value":"xxx"} |
| | | var data = item.value; |
| | | $this.setFormValues(data) |
| | | } |
| | | else if (item.action_type == 'set_dlg_attr_show') { |
| | | } else if (item.action_type == 'set_dlg_attr_show') { |
| | | var data = item.value; |
| | | $this.setFormItemVisible(data) |
| | | } |
| | | |
| | | }); |
| | | } else { |
| | | if ($this.After_OK_Event.ID != event.ID) { //判断当前事件是否是确定后事件 |
| | | |
| | | if ($this.After_OK_Event?.ID && $this.After_OK_Event.ID != event |
| | | .ID) { //判断当前事件是否是确定后事件 |
| | | $this.sava(pageParam, $this.After_OK_Event); //执行确定后事件 |
| | | |
| | | } |
| | | } |
| | | } else { |
| | | |
| | | if (result.info) { |
| | | } catch (ex) { |
| | | let actionList = (result.action || []).map(a => a.action_type).join(';') |
| | | let tip = typeof ex == 'string' ? ex : ex.message |
| | | tip = `执行脚本返回的${actionList}时出现异常,请检查脚本返回的数据格式是否正确。${tip}` |
| | | uni.showModal({ |
| | | title: this.translateSys("tip"), |
| | | content: result.info, |
| | | title: this.translateSys('tip'), |
| | | content: tip, |
| | | showCancel: false, |
| | | confirmText: this.translateSys('close') |
| | | }); |
| | | console.log(ex) |
| | | return |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | }).catch(ex => { |