| | |
| | | <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) { |
| | | 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) { |
| | | 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; |