| | |
| | | </a> |
| | | </view> |
| | | </view> |
| | | <button type="default" @tap="sava" class="btn_add" v-if="dropdownBtns.length==0">{{title}}</button> |
| | | <button type="default" @tap="sava" class="btn_add" v-if="dropdownBtns.length==0" :class="saving?'btn_disabled':''" :disabled="saving">{{title}}</button> |
| | | <button type="default" @tap="cancel" class="btn_cancel">{{translateSys('cancel')}}</button> |
| | | |
| | | </view> |
| | |
| | | activity: null, |
| | | receiver: null, |
| | | intentFilter: null, |
| | | content: '' |
| | | content: '', |
| | | saving:false |
| | | }; |
| | | }, |
| | | onNavigationBarButtonTap(e) { |
| | |
| | | title: this.translateSys("loading"), |
| | | mask: true |
| | | }); |
| | | var obj_attr = this.head_styledef.form.model; |
| | | this.saving = true |
| | | var obj_attr = this.head_styledef.form.model || []; |
| | | console.log(obj_attr); |
| | | // var req = Object.keys(obj_attr).map((a) => ({ |
| | | // name: a, |
| | |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | }); |
| | | this.saving = false |
| | | return; |
| | | } |
| | | if (action.info) { |
| | |
| | | confirmText: this.translateSys("cancel") |
| | | }); |
| | | } |
| | | this.saving = false |
| | | }).catch(ex => { |
| | | console.log(ex); |
| | | this.saving = false |
| | | uni.hideLoading(); |
| | | uni.showModal({ |
| | | title: this.translateSys("tip"), |
| | |
| | | }); |
| | | }, |
| | | afterOK() { |
| | | this.saving = true |
| | | var obj_attr = this.head_styledef.form.model; |
| | | // console.log(obj_attr); |
| | | var input_param = { |
| | |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | }); |
| | | this.saving = false |
| | | return false |
| | | } else { |
| | | var tip = data.info ? typeof data.info == 'string' ? data.info : data |
| | |
| | | confirmText: this.translateSys("cancel") |
| | | }); |
| | | } |
| | | this.saving = false |
| | | }).catch(ex => { |
| | | // console.log(ex); |
| | | this.saving = false |
| | | uni.showModal({ |
| | | title: this.translateSys('tip') + "7.1", |
| | | content: ex.errMsg, |
| | |
| | | float: left; |
| | | display: inline-block; |
| | | } |
| | | |
| | | .btn_disabled { |
| | | background-color: #ddd; |
| | | color: #888; |
| | | } |
| | | .btn_cancel { |
| | | width: 45%; |
| | | margin: 0 10rpx; |
| | |
| | | <view class="view-floor"> |
| | | <button type="default" @tap="cancel" class="btn_cancel" |
| | | v-if="param.Sub_Cls.Can_Add_Delete == true">{{translateSys('cancel')}}</button> |
| | | <button type="default" @tap="sava" class="btn_add" |
| | | v-if="param.Sub_Cls.Can_Add_Delete == true">{{title}}</button> |
| | | <button type="default" @tap="sava" class="btn_sava" |
| | | v-else-if="param.Sub_Cls.Can_Add_Delete == false">{{title}}</button> |
| | | <button type="default" @tap="sava" class="btn_add" v-if="param.Sub_Cls.Can_Add_Delete == true" |
| | | :class="saving?'btn_disabled':''" :disabled="saving">{{title}}</button> |
| | | <button type="default" @tap="sava" class="btn_sava" v-else-if="param.Sub_Cls.Can_Add_Delete == false" |
| | | :class="saving?'btn_disabled':''" :disabled="saving">{{title}}</button> |
| | | </view> |
| | | <!-- 普通弹窗 top bottom center left right --> |
| | | <view> |
| | |
| | | detail1_styledef: {}, |
| | | detail1StyleDefList: [], |
| | | activelist: [], |
| | | saving: false, |
| | | }; |
| | | }, |
| | | onLoad(options) { |
| | |
| | | // console.log(e.target); |
| | | var $this = this; |
| | | console.log(item); |
| | | if (item.oldvalue != item.value&& item.value.trim() != "") { |
| | | if (item.oldvalue != item.value && item.value.trim() != "") { |
| | | item.oldvalue = item.value; |
| | | var attr = item.fieldId; |
| | | $this.head_styledef.form.model[attr] = item.value; |
| | |
| | | console.log(item); |
| | | var $this = this; |
| | | console.log(item); |
| | | if (item.oldvalue != item.value&& item.value.trim() != "") { |
| | | if (item.oldvalue != item.value && item.value.trim() != "") { |
| | | item.oldvalue = item.value; |
| | | var attr = item.fieldId; |
| | | $this.head_styledef.form.model[attr] = item.value; |
| | |
| | | }); //返回层数,2则上上页 |
| | | }, |
| | | scan_OKDataObjRunCustomEvent(eventID) { |
| | | this.saving = true |
| | | uni.showLoading({ |
| | | title: this.translateSys("loading"), |
| | | mask: true |
| | |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | }); |
| | | this.saving =false |
| | | return false |
| | | } else { |
| | | var tip = data.info ? typeof data.info == 'string' ? data.info : data.info.join( |
| | |
| | | confirmText: this.translateSys("cancel") |
| | | }); |
| | | } |
| | | this.saving = false |
| | | }).catch(ex => { |
| | | // console.log(ex); |
| | | this.saving = false |
| | | uni.hideLoading(); |
| | | uni.showModal({ |
| | | title: this.translateSys("error") + "8.1", |
| | |
| | | display: inline-block; |
| | | } |
| | | |
| | | button.btn_disabled { |
| | | background-color: #ddd; |
| | | color: #888; |
| | | } |
| | | |
| | | .class_attr_body .form-group { |
| | | margin: 20rpx 30rpx; |
| | | /* margin-left: -12px; |
| | |
| | | this.pageindex = 1; |
| | | this.page_size = 3; |
| | | this.query_id = ""; |
| | | this.detail1StyleDefList = []; |
| | | await this.loadDataGetList(); |
| | | } |
| | | |
| | |
| | | }, |
| | | //跳转 |
| | | async RelatedFunction(btn, style, enviroment) { |
| | | |
| | | const defCode = btn.Related_Function?.Def_Code |
| | | var $this = this; |
| | | if ( |
| | | btn.Related_Function?.Def_Code == "3018" || |
| | | btn.Related_Function?.Def_Code == "3037" || |
| | | btn.Related_Function?.Def_Code == "3200" || |
| | | btn.Related_Function?.Def_Code == "3201" || |
| | | btn.Related_Function?.Def_Code == "5600" || |
| | | btn.Related_Function?.Def_Code == "5601" || |
| | | btn.Related_Function?.Def_Code == "5602" |
| | | defCode == "3018" || |
| | | defCode == "3037" || |
| | | defCode == "3200" || |
| | | defCode == "3201" || |
| | | defCode == "5600" || |
| | | defCode == "5601" || |
| | | defCode == "5602" |
| | | ) { |
| | | let name = btn.Related_Function?.Def_Code |
| | | if (btn.Related_Function?.Def_Code == "3018" || btn.Related_Function?.Def_Code == "3037") |
| | | name = btn.Related_Function?.Def_Code + "_2" |
| | | |
| | | var $this = this; |
| | | let name = defCode |
| | | if (defCode == "3018" || defCode == "3037") |
| | | name = defCode + "_2" |
| | | var json = { |
| | | app_id: appId, |
| | | app_id: [btn.Related_Function.ID], |
| | | }; |
| | | console.log("RelatedFunction2", json); |
| | | this.$store.dispatch('appGetInfo', json).then(success => { |
| | | // console.log(success); |
| | | console.log(success); |
| | | if (success.err_code == 0) { |
| | | if ((success.result || []).length > 0) { |
| | | const app = success.result[0] |
| | |
| | | }); |
| | | } |
| | | }).catch(ex => { |
| | | // console.log(ex); |
| | | console.log(ex); |
| | | uni.showModal({ |
| | | title: this.translateSys("error"), |
| | | content: ex.errMsg, |
| | |
| | | <view class="view-bottom" v-if="param.Sub_Page[0].OK_Button==true"> |
| | | <button type="default" @tap="cancel" |
| | | class="btn_cancel">{{translateSys('cancel')}}</button> |
| | | <button type="primary" @tap="ok" class="btn_add">{{translateSys('ok')}}</button> |
| | | <button type="primary" @tap="ok" class="btn_add" :class="okLoading?'btn_disabled':''" |
| | | :disabled="okLoading">{{translateSys('ok')}}</button> |
| | | </view> |
| | | </view> |
| | | </swiper-item> |
| | |
| | | <view class="view-bottom" v-if="param.Sub_Page[1].OK_Button==true"> <!-- --> |
| | | <button type="default" @tap="cancel" |
| | | class="btn_cancel">{{translateSys('cancel')}}</button> |
| | | <button type="primary" @tap="ok2" class="btn_add">{{translateSys('ok')}}</button> |
| | | <button type="primary" @tap="ok2" class="btn_add" :class="ok2Loading?'btn_disabled':''" |
| | | :disabled="ok2Loading">{{translateSys('ok')}}</button> |
| | | </view> |
| | | </view> |
| | | </swiper-item> |
| | |
| | | active_id: '', |
| | | activelist: [], |
| | | selectAttrObj: {}, |
| | | okLoading: false, |
| | | ok2Loading: false, |
| | | }; |
| | | }, |
| | | onLoad(options) { |
| | |
| | | // .exec(); |
| | | // } |
| | | //console.log(item); |
| | | if (item.oldvalue != item.value&& item.value.trim() != "") { |
| | | if (item.oldvalue != item.value && item.value.trim() != "") { |
| | | item.oldvalue = item.value; |
| | | var attr = item.fieldId; |
| | | this.head_styledef.form.model[attr] = item.value; |
| | |
| | | }, |
| | | onEnterChange(item) { //回车,点击按钮,取消节点事件 |
| | | // console.log(item); |
| | | if (item.oldvalue != item.value&& item.value.trim() != "") { |
| | | if (item.oldvalue != item.value && item.value.trim() != "") { |
| | | item.oldvalue = item.value; |
| | | var attr = item.fieldId; |
| | | this.head_styledef.form.model[attr] = item.value; |
| | |
| | | this.translateSys( |
| | | "quotation_mark_left") + value |
| | | .page_name + this.translateSys( |
| | | "sys.quotation_mark_right") + |
| | | "quotation_mark_right") + |
| | | this.translate( |
| | | "are_you_sure_clear_last"), |
| | | success: function(res) { |
| | |
| | | uni.showModal({ |
| | | title: this.translateSys("tip"), |
| | | content: this.translate( |
| | | "page.tip_no_data_first") + |
| | | "tip_no_data_first") + |
| | | this.translateSys( |
| | | "quotation_mark_left") + this.param.Sub_Page[0].Name + this.translateSys( |
| | | "sys.quotation_mark_right") + |
| | | "quotation_mark_right") + |
| | | this.translate( |
| | | "page.tip_no_data_last"), |
| | | "tip_no_data_last"), |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | }); |
| | | return false; |
| | | } |
| | | this.okLoading = true |
| | | //获取表头属性 |
| | | var head_attr = {}; |
| | | this.$data.head_styledef.form.items.forEach(item => { |
| | |
| | | }); |
| | | const list = [] |
| | | if (jsonlist.length == 0) { |
| | | //this.okLoading = false |
| | | uni.showModal({ |
| | | title: this.translateSys("tip"), |
| | | content: this.translate("tip_no_select_data"), |
| | |
| | | uni.showModal({ |
| | | title: this.translateSys("tip"), |
| | | content: this.translate( |
| | | "page.tip_no_data_first") + |
| | | "tip_no_data_first") + |
| | | this.translateSys( |
| | | "quotation_mark_left") + this.param.Sub_Page[1].Name + this.translateSys( |
| | | "sys.quotation_mark_right") + |
| | | "quotation_mark_right") + |
| | | this.translate( |
| | | "page.tip_no_data_last"), |
| | | "tip_no_data_last"), |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | }); |
| | | return false; |
| | | } |
| | | this.ok2Loading = true |
| | | //获取表头属性 |
| | | var head_attr = {}; |
| | | this.$data.head_styledef.form.items.forEach(item => { |
| | |
| | | }); |
| | | }); |
| | | if (jsonlist.length == 0) { |
| | | this.ok2Loading = false |
| | | uni.showModal({ |
| | | title: this.translateSys("tip"), |
| | | content: this.translate("tip_no_select_data"), |
| | |
| | | confirmText: this.translateSys("cancel") |
| | | }); |
| | | } |
| | | if (type == "1") |
| | | this.okLoading = false |
| | | else if (type == "2") |
| | | this.ok2Loading = false |
| | | }).catch(ex => { |
| | | var tip = typeof ex == "string" ? ex : ex.errMsg; |
| | | if (type == "1") |
| | | this.okLoading = false |
| | | else if (type == "2") |
| | | this.ok2Loading = false |
| | | uni.showModal({ |
| | | title: this.translateSys("error") + "8.1", |
| | | content: this.translate("execute_after_ok_event_failed") + this.translateSys( |
| | |
| | | |
| | | button.btn_add { |
| | | width: 49.5%; |
| | | |
| | | padding: 20rpx; |
| | | line-height: 1.5; |
| | | border: none; |
| | | font-size: 38rpx; |
| | | font-weight: bold; |
| | | float: right; |
| | | color: #fff; |
| | | display: inline-block; |
| | | } |
| | | |
| | | button.btn_disabled { |
| | | background-color: #ddd; |
| | | color: #888; |
| | | } |
| | | |
| | | .logo { |
| | | height: 100rpx; |
| | | width: 460rpx; |
| | |
| | | <button type="default" @tap="cancel" |
| | | class="btn_cancel">{{translateSys('cancel')}}</button> |
| | | <button type="primary" @tap="ok(pageData)" |
| | | class="btn_add">{{translateSys('ok')}}</button> |
| | | class="btn_add" :class="pageData.okLoading?'btn_disabled':''" :disabled="pageData.okLoading? true:false">{{translateSys('ok')}}</button> |
| | | </view> |
| | | </view> |
| | | </swiper-item> |
| | |
| | | .page_name + |
| | | this |
| | | .translateSys( |
| | | "sys.quotation_mark_right" |
| | | "quotation_mark_right" |
| | | ) + |
| | | this |
| | | .translate( |
| | |
| | | uni.showModal({ |
| | | title: this.translateSys("tip"), |
| | | content: this.translate( |
| | | "page.tip_no_data_first") + |
| | | "tip_no_data_first") + |
| | | this.translateSys( |
| | | "quotation_mark_left") + pageData.Name + this |
| | | .translateSys( |
| | | "sys.quotation_mark_right") + |
| | | "quotation_mark_right") + |
| | | this.translate( |
| | | "page.tip_no_data_last"), |
| | | "tip_no_data_last"), |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | }); |
| | | return false; |
| | | } |
| | | //获取表头属性 |
| | | pageData.okLoading = true |
| | | var head_attr = {}; |
| | | this.$data.head_styledef.form.items.forEach(item => { |
| | | if (item.name == "Layout") { //判断是否是栅栏格式 |
| | |
| | | }); |
| | | }); |
| | | if (jsonlist.length == 0) { |
| | | pageData.okLoading = false |
| | | uni.showModal({ |
| | | title: this.translateSys("tip"), |
| | | content: this.translate("tip_no_select_data"), |
| | |
| | | "cancel") |
| | | }); |
| | | } |
| | | pageParam.okLoading = false |
| | | }).catch(ex => { |
| | | pageParam.okLoading = false |
| | | var tip = typeof ex == "string" ? ex : ex.errMsg; |
| | | uni.showModal({ |
| | | title: this.translateSys("error") + "8.1", |
| | |
| | | font-size: 38rpx; |
| | | font-weight: bold; |
| | | float: right; |
| | | color: #fff; |
| | | display: inline-block; |
| | | } |
| | | .btn_disabled { |
| | | background-color: #ddd; |
| | | color: #888; |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | <view v-if="param.Sub_Page[0].OK_Button==true"> |
| | | <button type="default" @tap="cancel" |
| | | class="btn_cancel">{{translateSys('cancel')}}</button> |
| | | <button type="primary" @tap="ok" class="btn_add">{{translateSys('ok')}}</button> |
| | | <button type="primary" @tap="ok" class="btn_add" :class="okLoading?'btn_disabled':''" |
| | | :disabled="okLoading">{{translateSys('ok')}}</button> |
| | | </view> |
| | | </view> |
| | | </swiper-item> |
| | |
| | | <view v-if=" param.Sub_Page[1].OK_Button==true"> |
| | | <button type="default" @tap="cancel" |
| | | class="btn_cancel">{{translateSys('cancel')}}</button> |
| | | <button type="primary" @tap="ok2" class="btn_add">{{translateSys('ok')}}</button> |
| | | <button type="primary" @tap="ok2" class="btn_add" :class="ok2Loading?'btn_disabled':''" |
| | | :disabled="ok2Loading">{{translateSys('ok')}}</button> |
| | | </view> |
| | | </view> |
| | | </swiper-item> |
| | |
| | | items: [], |
| | | active_id: '', |
| | | activelist: [], |
| | | okLoading: false, |
| | | ok2Loading: false, |
| | | }; |
| | | }, |
| | | onLoad(options) { |
| | |
| | | var $this = this; |
| | | |
| | | console.log(item); |
| | | if (item.oldvalue != item.value&& item.value.trim() != "") { |
| | | if (item.oldvalue != item.value && item.value.trim() != "") { |
| | | item.oldvalue = item.value; |
| | | var attr = item.fieldId; |
| | | this.head_styledef.form.model[attr] = item.value; |
| | |
| | | }, |
| | | onEnterChange(item) { //回车,点击按钮,取消节点事件 |
| | | // console.log(item); |
| | | if (item.oldvalue != item.value&& item.value.trim() != "") { |
| | | if (item.oldvalue != item.value && item.value.trim() != "") { |
| | | item.oldvalue = item.value; |
| | | var attr = item.fieldId; |
| | | this.head_styledef.form.model[attr] = item.value; |
| | |
| | | this.translateSys( |
| | | "quotation_mark_left") + value |
| | | .page_name + this.translateSys( |
| | | "sys.quotation_mark_right") + |
| | | "quotation_mark_right") + |
| | | this.translate( |
| | | "are_you_sure_clear_last"), |
| | | |
| | |
| | | }, |
| | | sava(event) { |
| | | var $this = this; |
| | | |
| | | if (this.$data.detail1StyleDefList.length == 0) { |
| | | uni.showModal({ |
| | | title: this.translateSys("tip"), |
| | | content: this.translate( |
| | | "page.tip_no_data_first") + |
| | | "tip_no_data_first") + |
| | | this.translateSys( |
| | | "quotation_mark_left") + this.param.Sub_Page[0].Name + this.translateSys( |
| | | "sys.quotation_mark_right") + |
| | | "quotation_mark_right") + |
| | | this.translate( |
| | | "page.tip_no_data_last"), |
| | | "tip_no_data_last"), |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | }); |
| | | return false; |
| | | } |
| | | this.okLoading = true |
| | | //获取表头属性 |
| | | var head_attr = {}; |
| | | this.$data.head_styledef.form.items.forEach(item => { |
| | |
| | | }); |
| | | }); |
| | | if (jsonlist.length == 0) { |
| | | this.okLoading = false |
| | | uni.showModal({ |
| | | title: this.translateSys("tip"), |
| | | content: this.translate("tip_no_select_data"), |
| | |
| | | }, |
| | | sava2(event) { |
| | | var $this = this; |
| | | |
| | | if (this.$data.detail1StyleDefList.length == 0) { |
| | | uni.showModal({ |
| | | title: this.translateSys("tip"), |
| | | content: this.translate( |
| | | "page.tip_no_data_first") + |
| | | "tip_no_data_first") + |
| | | this.translateSys( |
| | | "quotation_mark_left") + this.param.Sub_Page[1].Name + this.translateSys( |
| | | "sys.quotation_mark_right") + |
| | | "quotation_mark_right") + |
| | | this.translate( |
| | | "page.tip_no_data_last"), |
| | | "tip_no_data_last"), |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | }); |
| | | return false; |
| | | } |
| | | this.ok2Loading = true |
| | | //获取表头属性 |
| | | var head_attr = {}; |
| | | this.$data.head_styledef.form.items.forEach(item => { |
| | |
| | | }); |
| | | }); |
| | | if (jsonlist.length == 0) { |
| | | this.ok2Loading = false |
| | | uni.showModal({ |
| | | title: this.translateSys("tip"), |
| | | content: this.translate("tip_no_select_data"), |
| | | showCancel: false, |
| | | confirmText: this.translateSys("cancel") |
| | | }); |
| | | |
| | | return; |
| | | } |
| | | const list = [] |
| | |
| | | this.translateSys( |
| | | "quotation_mark_left") + value |
| | | .page_name + this.translateSys( |
| | | "sys.quotation_mark_right") + |
| | | "quotation_mark_right") + |
| | | this.translate( |
| | | "are_you_sure_clear_last"), |
| | | success: function(res) { |
| | |
| | | confirmText: this.translateSys("cancel") |
| | | }); |
| | | } |
| | | if (type == "1") |
| | | this.okLoading = false |
| | | else if (type == "2") |
| | | this.ok2Loading = false |
| | | }).catch(ex => { |
| | | if (type == "1") |
| | | this.okLoading = false |
| | | else if (type == "2") |
| | | this.ok2Loading = false |
| | | var tip = typeof ex == "string" ? ex : ex.errMsg; |
| | | uni.showModal({ |
| | | title: this.translateSys("error") + "8.1", |
| | |
| | | font-size: 38rpx; |
| | | font-weight: bold; |
| | | float: right; |
| | | color: #fff; |
| | | display: inline-block; |
| | | } |
| | | |
| | | button.btn_disabled { |
| | | background-color: #ddd; |
| | | color: #888; |
| | | } |
| | | |
| | | .logo { |
| | | height: 100rpx; |
| | | width: 460rpx; |