| | |
| | | float: left; |
| | | display: inline-block; |
| | | } |
| | | button.btn_sava { |
| | | width:100%; |
| | | margin-top: 50rpx; |
| | | padding: 20rpx; |
| | | line-height: 1.5; |
| | | background: #27A6E1; |
| | | border: none; |
| | | color: #fff; |
| | | font-size: 38rpx; |
| | | font-weight: bold; |
| | | float: left; |
| | | display: inline-block; |
| | | } |
| | | .i_tishi{ |
| | | color: red; |
| | | vertical-align: sub; |
| | |
| | | text-align: center; |
| | | font-weight: bold; |
| | | } |
| | | .v-panel{ |
| | | min-height:788rpx; |
| | | } |
| | | .v-panellist{ |
| | | border:4rpx solid #aaa; |
| | | border-radius: 10rpx; |
| | | margin: 0rpx 20rpx 10rpx 20rpx; |
| | | margin: 10rpx 20rpx 0rpx 20rpx; |
| | | } |
| | | .v-paneldel{ |
| | | text-align: right; |
| | |
| | | |
| | | <template> |
| | | <view class="content"> |
| | | <!-- 主数据 --> |
| | | <view class="v-area" v-for="(classattr,index) in classAttrList"> |
| | | <div class="class_attr_title" style="display: none;"> |
| | | <div class="title_line"></div> |
| | |
| | | <span class="title">{{classattr.Name}}</span> |
| | | <a href="javascript:;" class="arrow" @tap="onarrow(index,classattr.Open)"><i class="ace-icon fa ":class="classattr.Open?'fa-angle-down':'fa-angle-up'"></i></a> |
| | | </div> |
| | | <!-- 主数据显示详情区 --> |
| | | <div class="class_attr_body" :style="{'display':classattr.Open?'block':'none'}"> |
| | | <div class="dv_field_div" v-for="(attr,iindex) in classattr.Attr"> |
| | | <view class="form-group" v-if="attr.Type=='字符串' || attr.Type=='可变长字符串' || attr.Type=='整数' || attr.Type=='浮点数'" :style="{'display':attr.hidden == 'True'?'none':''}"> |
| | |
| | | </div> |
| | | </div> |
| | | </view> |
| | | <view class="v-area class_attr_body"> |
| | | <view class="form-group"> |
| | | <!-- 左右布局 --> |
| | | <p class="tx_title2" >{{param.Scan_Code.Name}}:</p> |
| | | <input type="text" class="attr_field" :value="scanCodeVal" @focus="scan_ontap" :style="param.Scan_Code.Have_Select_Button==true?'width: '+(100-(param.Scan_Code.Name.length * 5)-14)+'%;':'width: '+(100-(param.Scan_Code.Name.length * 5)-5)+'%;'"> |
| | | <div class="text-right2" v-if="param.Scan_Code.Have_Select_Button==true"> |
| | | <a @tap="scan_classAttr_extButton()" ><i class="ace-icon fa" :class="param.Scan_Code.Img?param.Scan_Code.Img:'fa-plus-circle'"></i></a> |
| | | </div> |
| | | <!-- 上下布局 --> |
| | | <!-- <text class="tx_title">{{param.Scan_Code.Name}}:</text> |
| | | <div class="text-right" v-if="param.Scan_Code.Have_Select_Button==true"> |
| | | <a @tap="ms_classAttr_extButton()"><i class="ace-icon fa" :class="param.Scan_Code.Img?param.Scan_Code.Img:'fa-plus-circle'"></i></a> |
| | | </div> |
| | | <input type="text" value="" > --> |
| | | </view> |
| | | </view> |
| | | |
| | | <!-- 从数据 --> |
| | | <view class="v-panel"> |
| | | <div class="panel_title">{{param.Sub_Cls.Title}}</div> |
| | | <!-- 从数据扫码区 --> |
| | | <view class="v-area class_attr_body" v-if="param.Sub_Cls.Can_Add_Delete == true"> |
| | | <h4 style="margin: 15rpx 0 0 30rpx;font-weight: bold;">新增{{param.Sub_Cls.Name }}</h4> |
| | | <view class="form-group"> |
| | | <!-- 左右布局 --> |
| | | <p class="tx_title2" >{{param.Scan_Code.Name}}:</p> |
| | | <input type="text" class="attr_field" :value="scanCodeVal" @focus="scan_ontap" @blur="scan_onevent" :style="param.Scan_Code.Have_Select_Button==true?'width: '+(100-(param.Scan_Code.Name.length * 5)-14)+'%;':'width: '+(100-(param.Scan_Code.Name.length * 5)-5)+'%;'"> |
| | | <div class="text-right2" v-if="param.Scan_Code.Have_Select_Button==true"> |
| | | <a @tap="scan_classAttr_extButton()" ><i class="ace-icon fa" :class="param.Scan_Code.Img?param.Scan_Code.Img:'fa-plus-circle'"></i></a> |
| | | </div> |
| | | <!-- 上下布局 --> |
| | | <!-- <text class="tx_title">{{param.Scan_Code.Name}}:</text> |
| | | <div class="text-right" v-if="param.Scan_Code.Have_Select_Button==true"> |
| | | <a @tap="ms_classAttr_extButton()"><i class="ace-icon fa" :class="param.Scan_Code.Img?param.Scan_Code.Img:'fa-plus-circle'"></i></a> |
| | | </div> |
| | | <input type="text" value="" > --> |
| | | </view> |
| | | </view> |
| | | <!-- 从数据显示详情区 --> |
| | | <view class="v-panellist" v-for="(subpanel,index) in subPanelList"> |
| | | <view class="v-area" v-for="(subclassattr,index) in subpanel.subClassAttr"> |
| | | <div class="class_attr_title" style="display: none;"> |
| | |
| | | </div> |
| | | </view> |
| | | |
| | | <view class="v-paneldel"><a href="javascript:;" class="panel_del" @tap="panel_del(index)"><i class="ace-icon fu-delete"></i></a></view> |
| | | <view class="v-paneldel" v-if="param.Sub_Cls.Can_Add_Delete == true"> |
| | | <a href="javascript:;" class="panel_del" @tap="panel_del(index)"><i class="ace-icon fu-delete"></i></a> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <button type="default" @tap="cancel" class="btn_cancel">取消</button> |
| | | <button type="default" @tap="sava" class="btn_add">{{title}}</button> |
| | | <button type="default" @tap="cancel" class="btn_cancel" v-if="param.Sub_Cls.Can_Add_Delete == true">取消</button> |
| | | <button type="default" @tap="sava" class="btn_add" v-if="param.Sub_Cls.Can_Add_Delete == true">{{title}}</button> |
| | | <button type="default" @tap="cancel" class="btn_sava" v-else-if="param.Sub_Cls.Can_Add_Delete == false">{{title}}</button> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | }); |
| | | }, |
| | | panel_del(index){ |
| | | var $this = this; |
| | | if (this.$data.subPanelList[index].scanCodeVal == this.$data.scanCodeVal) { |
| | | this.$data.scanCodeVal=''; |
| | | } |
| | | this.$data.subPanelList.splice(index, 1); |
| | | if(!this.$data.subPanelList[index].ObjID) |
| | | this.$data.subPanelList.splice(index, 1); |
| | | else{ |
| | | var dataInfo = { |
| | | clsId:this.$data.param.Sub_Cls.ID, |
| | | objId:this.$data.subPanelList[index].ObjID |
| | | }; |
| | | console.log(dataInfo); |
| | | // return; |
| | | uni.showLoading({ title:"加载中..." }); |
| | | this.$store.dispatch('DelObj',dataInfo).then(success=>{ |
| | | console.log(success); |
| | | uni.hideLoading(); |
| | | if (success.code=='00000') { |
| | | $this.$data.subPanelList.splice(index, 1); |
| | | uni.showModal({title:"提示",content:"删除成功!",showCancel:false,confirmText:"取消"}); |
| | | }else{ |
| | | uni.showModal({title:"错误9",content:success.msg,showCancel:false,confirmText:"取消"}); |
| | | } |
| | | }).catch(ex=>{ |
| | | console.log(ex); |
| | | uni.hideLoading(); |
| | | uni.showModal({title:"提示9.1",content:ex.errMsg,showCancel:false,confirmText:"取消"}); |
| | | }); |
| | | } |
| | | }, |
| | | async classGridStyleInfo(clsid,styleName,clsType){ |
| | | var $this = this; |
| | |
| | | name: styleName, |
| | | type: '2' |
| | | }; |
| | | $this.$store.state.thisEditName = styleName; |
| | | // console.log($this.$store.getters.getclassGridStyleInfo); |
| | | //获取主数据类界面样式 |
| | | if(clsType=='Mast'){ |
| | | $this.$store.state.thisEditName = styleName; |
| | | if($this.$store.getters.getclassGridStyleInfo){ |
| | | $this.$data.classGridStyle = $this.$store.getters.getclassGridStyleInfo.data; |
| | | $this.class_attr_init(); |
| | |
| | | }); |
| | | } |
| | | } else if(clsType=='Sub'){ //获取从数据类界面样式 |
| | | $this.$store.state.thisEditSubName = styleName; |
| | | if($this.$store.getters.getSubClassGridStyleInfo){ |
| | | $this.$data.subClassGridStyle = $this.$store.getters.getSubClassGridStyleInfo.data; |
| | | $this.subClass_attr_init(); |
| | |
| | | getApp().onScan((result)=>{ |
| | | //console.log(result.decodedata); |
| | | var isVal =this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value; |
| | | |
| | | //主数据类扫码查询数据 |
| | | if (isVal!=result.decodedata) { |
| | | this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value=result.decodedata; |
| | | |
| | | uni.hideKeyboard(); |
| | | //子数据类扫码区事件脚本 |
| | | var eventid = this.$data.param.Scan_Code.Input_Change_Event.ID; |
| | | if (eventid) { |
| | | var req=[]; |
| | | var attrlist = this.$data.classAttrList; |
| | | var attrlist = this.$data.classAttrList; //主数据类属性 |
| | | for (var i = 0; i < attrlist.length; i++) { |
| | | var attr = attrlist[i].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | |
| | | if(ar.Type=='引用对象(多个)') |
| | | if(ar.Value=='请') ar.Value=''; |
| | | if(ar.Type=='引用人员' || ar.Type=='引用项目') |
| | | req.push({ attr: ar.Name, val: ar.ValID ?ar.ValID :'' }); |
| | | req.push({ attr: ar.Name, value: ar.ValID ?ar.ValID :'' }); |
| | | else if(ar.Type=='布尔值') |
| | | req.push({ attr: ar.Name, val: ar.Value?'1':'0'}); |
| | | req.push({ attr: ar.Name, value: ar.Value?'1':'0'}); |
| | | else |
| | | req.push({ attr: ar.Name, val: ar.Value ?ar.Value :''}); |
| | | req.push({ attr: ar.Name, value: ar.Value ?ar.Value :''}); |
| | | } |
| | | } |
| | | var info = { |
| | | eventid: eventid, |
| | | edtype: "0", |
| | | edtype: "7",//"0", |
| | | projectid: '', |
| | | rclsid: '', |
| | | robjid: '', |
| | | userlogin: '', |
| | | clsid: this.$data.param.Sub_Cls.ID, |
| | | clsid: 'MBOX',//this.$data.param.Sub_Cls.ID, |
| | | objid: "", |
| | | attr: req, |
| | | inputParamter:[{ attr: 'input_3037', value: result.decodedata }] |
| | | mast_attr: [], |
| | | inputParamter:[{ attr: 'mast_input_3037', value: result.decodedata }] |
| | | } |
| | | |
| | | this.scan_DataObjRunCustomEvent(info, ""); |
| | |
| | | if(this.$data.subPanelList[i].scanCodeVal == result.decodedata) |
| | | isflag=false; |
| | | } |
| | | |
| | | //子数据类扫码查询数据 |
| | | if (isflag) { |
| | | uni.hideKeyboard(); |
| | | this.$data.scanCodeVal=result.decodedata; |
| | | var eventid = this.$data.param.Scan_Code.Input_Change_Event.ID; |
| | | if (eventid) { |
| | | var mast_req=[]; |
| | | //主数据类属性 |
| | | var classattrlist = this.$data.classAttrList; |
| | | for (var i = 0; i < classattrlist.length; i++) { |
| | | var attr = classattrlist[i].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | | if(ar.Type=='引用对象(多个)') |
| | | if(ar.Value=='请') ar.Value=''; |
| | | if(ar.Type=='引用人员' || ar.Type=='引用项目') |
| | | mast_req.push({ attr: ar.Name, value: ar.ValID ?ar.ValID :'' }); |
| | | else if(ar.Type=='布尔值') |
| | | mast_req.push({ attr: ar.Name, value: ar.Value?'1':'0'}); |
| | | else |
| | | mast_req.push({ attr: ar.Name, value: ar.Value ?ar.Value :''}); |
| | | } |
| | | } |
| | | var req=[]; |
| | | var attrlist = this.$data.subClassAttrList; |
| | | for (var i = 0; i < attrlist.length; i++) { |
| | | //子数据类属性 |
| | | var attrlist = this.$data.subClassAttrList; |
| | | for (var i = 0; i < attrlist.length; i++) { |
| | | var attr = attrlist[i].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | |
| | | } |
| | | var info = { |
| | | eventid: eventid, |
| | | edtype: "0", |
| | | edtype: '7',//"0", |
| | | projectid: '', |
| | | rclsid: '', |
| | | robjid: '', |
| | | userlogin: '', |
| | | clsid: this.$data.param.Sub_Cls.ID, |
| | | clsid: 'MBOX',//this.$data.param.Sub_Cls.ID, |
| | | objid: "", |
| | | attr: req, |
| | | mast_attr: mast_req, |
| | | inputParamter:[{ attr: 'input_3037', value: this.$data.scanCodeVal }] |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | scan_onevent(e){ |
| | | // console.log(e.target); |
| | | if(e.target.value){ |
| | | var isflag=true; |
| | | for(var i in this.$data.subPanelList){ |
| | | if(this.$data.subPanelList[i].scanCodeVal == e.target.value) |
| | | isflag=false; |
| | | } |
| | | //子数据类扫码查询数据 |
| | | if (isflag) { |
| | | uni.hideKeyboard(); |
| | | this.$data.scanCodeVal=e.target.value; |
| | | var eventid = this.$data.param.Scan_Code.Input_Change_Event.ID; |
| | | if (eventid) { |
| | | var mast_req=[]; |
| | | //主数据类属性 |
| | | var classattrlist = this.$data.classAttrList; |
| | | for (var i = 0; i < classattrlist.length; i++) { |
| | | var attr = classattrlist[i].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | | if(ar.Type=='引用对象(多个)') |
| | | if(ar.Value=='请') ar.Value=''; |
| | | if(ar.Type=='引用人员' || ar.Type=='引用项目') |
| | | mast_req.push({ attr: ar.Name, value: ar.ValID ?ar.ValID :'' }); |
| | | else if(ar.Type=='布尔值') |
| | | mast_req.push({ attr: ar.Name, value: ar.Value?'1':'0'}); |
| | | else |
| | | mast_req.push({ attr: ar.Name, value: ar.Value ?ar.Value :''}); |
| | | } |
| | | } |
| | | var req=[]; |
| | | //子数据类属性 |
| | | var attrlist = this.$data.subClassAttrList; |
| | | for (var i = 0; i < attrlist.length; i++) { |
| | | var attr = attrlist[i].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | | var ar = attr[j]; |
| | | if(ar.Type=='引用对象(多个)') |
| | | if(ar.Value=='请') ar.Value=''; |
| | | if(ar.Type=='引用人员' || ar.Type=='引用项目') |
| | | req.push({ attr: ar.Name, value: ar.ValID ?ar.ValID :'' }); |
| | | else if(ar.Type=='布尔值') |
| | | req.push({ attr: ar.Name, value: ar.Value?'1':'0'}); |
| | | else |
| | | req.push({ attr: ar.Name, value: ar.Value ?ar.Value :''}); |
| | | } |
| | | } |
| | | var info = { |
| | | eventid: eventid, |
| | | edtype: '7',//"0", |
| | | projectid: '', |
| | | rclsid: '', |
| | | robjid: '', |
| | | userlogin: '', |
| | | clsid: 'MBOX',//this.$data.param.Sub_Cls.ID, |
| | | objid: "", |
| | | attr: req, |
| | | mast_attr: mast_req, |
| | | inputParamter:[{ attr: 'input_3037', value: this.$data.scanCodeVal }] |
| | | } |
| | | |
| | | this.scan_DataObjRunCustomEvent(info, ""); |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | onarrow(index,open){ |
| | | // console.log(index+'--'+open); |
| | |
| | | // console.log(data_attr); |
| | | if (e.target.value != data_attr.Value) { |
| | | this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].Value=e.target.value; |
| | | var eventid = this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].action; |
| | | // var eventid = this.$data.classAttrList[e.target.dataset['index']].Attr[e.target.dataset['iindex']].action; |
| | | //子数据类扫码区事件脚本 |
| | | var eventid = this.$data.param.Scan_Code.Input_Change_Event.ID; |
| | | if (eventid) { |
| | | // self.event_no_sub = 1; |
| | | var req=[]; |
| | | var attrlist = this.$data.classAttrList; |
| | | var attrlist = this.$data.classAttrList; //主数据类属性 |
| | | for (var i = 0; i < attrlist.length; i++) { |
| | | var attr = attrlist[i].Attr; |
| | | for (var j = 0; j < attr.length; j++) { |
| | |
| | | if(ar.Type=='引用对象(多个)') |
| | | if(ar.Value=='请') ar.Value=''; |
| | | if(ar.Type=='引用人员' || ar.Type=='引用项目') |
| | | req.push({ attr: ar.Name, val: ar.ValID ?ar.ValID :'' }); |
| | | req.push({ attr: ar.Name, value: ar.ValID ?ar.ValID :'' }); |
| | | else if(ar.Type=='布尔值') |
| | | req.push({ attr: ar.Name, val: ar.Value?'1':'0'}); |
| | | req.push({ attr: ar.Name, value: ar.Value?'1':'0'}); |
| | | else |
| | | req.push({ attr: ar.Name, val: ar.Value ?ar.Value :''}); |
| | | req.push({ attr: ar.Name, value: ar.Value ?ar.Value :''}); |
| | | } |
| | | } |
| | | var info = { |
| | | eventid: eventid, |
| | | edtype: "0", |
| | | edtype: "7",//"0", |
| | | projectid: '', |
| | | rclsid: '', |
| | | robjid: '', |
| | | userlogin: '', |
| | | clsid: this.$data.param.Master_Cls.ID, |
| | | clsid: 'MBOX',//this.$data.param.Sub_Cls.ID, |
| | | objid: "", |
| | | attr: req, |
| | | mast_attr: [], |
| | | inputParamter:[{ attr: 'mast_input_3037', value: e.target.value }] |
| | | } |
| | | this.DataObjRunCustomEvent(info, data_attr); |
| | | |
| | | this.scan_DataObjRunCustomEvent(info, ""); |
| | | } |
| | | } |
| | | |
| | |
| | | var $this = this; |
| | | var enviroment = { |
| | | 'function': '3000', // 功能点编号 |
| | | cls_id: this.$data.param.Sub_Cls.ID, // 功能点从数据类标识 |
| | | cls_id: 'MBOX',//this.$data.param.Sub_Cls.ID, // 功能点从数据类标识 |
| | | 'button': 'top', // top/bottom |
| | | button_name: '新增', |
| | | master: { |
| | | cls_id: this.$data.param.Sub_Cls.ID, // button=bottom时 master的cls_id |
| | | cls_id: 'MBOX',//this.$data.param.Sub_Cls.ID, // button=bottom时 master的cls_id |
| | | attr: info.mast_attr //主数据类属性 |
| | | //obj_id: '' // button=bottom时 master的obj_id |
| | | } |
| | | }; |
| | | enviroment.edit_dlg = { |
| | | type: 'small',//小窗口 |
| | | class_id: this.$data.param.Sub_Cls.ID,//当前数据类id |
| | | class_id: 'MBOX',//this.$data.param.Sub_Cls.ID,//当前数据类id |
| | | } |
| | | if (data_attr) { |
| | | enviroment.edit_dlg.form_control = {//所属的表单控件 |
| | |
| | | if (success.code=='00000') { |
| | | var data = JSON.parse(success.data); |
| | | var actionlist = data.action; |
| | | |
| | | |
| | | if (actionlist) { |
| | | console.log(actionlist); |
| | | for (var i = 0; i < actionlist.length; i++) { |
| | | var action = actionlist[i]; |
| | | for (var ii = 0; ii < actionlist.length; ii++) { |
| | | var action = actionlist[ii]; |
| | | if (action.action_type == 'set_dlg_attr') { |
| | | var result = action.value; |
| | | for (var i = 0; i < result.length; i++) { |
| | |
| | | } |
| | | } |
| | | } |
| | | } else if (data.action[i].action_type == 'set_global_attr') { |
| | | $this.$data.global_attr = data.action[i].value || []; |
| | | } else if (data.action[i].action_type == 'add_subcls_panel') { |
| | | } else if (action.action_type == 'set_global_attr') { |
| | | $this.$actiontr = action.value || []; |
| | | } else if (action.action_type == 'add_subcls_panel') { //主从数据类扫码查询数据 |
| | | var result = action.value; |
| | | let list_1 = JSON.parse(JSON.stringify(this.$data.subClassAttrList)); |
| | | var scanCodeVal = $this.$data.scanCodeVal; |
| | | if(info.inputParamter[0].attr=="mast_input_3037") //判断是主数据类扫码查询数据 |
| | | scanCodeVal = "mast_input_3037-"+ii; |
| | | $this.$data.subPanelList.push({ |
| | | scanCodeVal:$this.$data.scanCodeVal, |
| | | scanCodeVal:scanCodeVal, |
| | | subClassAttr:list_1 |
| | | }); |
| | | for (var i = 0; i < result.length; i++) { |
| | | for (var s = 0; s < $this.$data.subPanelList.length; s++) { |
| | | if($this.$data.subPanelList[s].scanCodeVal == $this.$data.scanCodeVal){ |
| | | if($this.$data.subPanelList[s].scanCodeVal == scanCodeVal){ |
| | | if(result[i].attr=="S_ID") |
| | | $this.$data.subPanelList[s].ObjID=result[i].value; |
| | | var _subClassAttr = $this.$data.subPanelList[s].subClassAttr; |
| | | for (var c = 0; c < _subClassAttr.length; c++) { |
| | | var attr = _subClassAttr[c].Attr; |
| | |
| | | |
| | | if (data.result) { |
| | | let list_1 = JSON.parse(JSON.stringify(this.$data.subClassAttrList)); |
| | | var scanCodeVal = $this.$data.scanCodeVal; |
| | | if(info.inputParamter[0].attr=="mast_input_3037") |
| | | scanCodeVal = "mast_input_3037-"+ii; |
| | | $this.$data.subPanelList.push({ |
| | | scanCodeVal:$this.$data.scanCodeVal, |
| | | scanCodeVal:scanCodeVal, |
| | | subClassAttr:list_1 |
| | | }); |
| | | var result = data.result; |
| | | for (var i = 0; i < result.length; i++) { |
| | | for (var s = 0; s < $this.$data.subPanelList.length; s++) { |
| | | if($this.$data.subPanelList[s].scanCodeVal == $this.$data.scanCodeVal){ |
| | | if($this.$data.subPanelList[s].scanCodeVal == scanCodeVal){ |
| | | if(result[i].attr=="S_ID") |
| | | $this.$data.subPanelList[s].ObjID=result[i].value; |
| | | var _subClassAttr = $this.$data.subPanelList[s].subClassAttr; |
| | | for (var c = 0; c < _subClassAttr.length; c++) { |
| | | var attr = _subClassAttr[c].Attr; |
| | |
| | | } |
| | | var dataJson={ |
| | | master_cls:{ |
| | | cls_name:$this.$data.param.Master_Cls.Name, |
| | | cls_name:'MBOX',//$this.$data.param.Master_Cls.Name, |
| | | obj_attrs:req |
| | | }, |
| | | input_3037:$this.$data.scanCodeVal, //扫码内容 |
| | | op_type:$this.$data.param.OperationType, //作业类型定义 |
| | | sub_cls:{ |
| | | cls_name:$this.$data.param.Sub_Cls.Name, |
| | | cls_name:'MBOX',//$this.$data.param.Sub_Cls.Name, |
| | | objects:objects |
| | | } |
| | | }; |
| | | console.log(JSON.stringify(dataJson)); |
| | | var dataInfo = { |
| | | edtype: "0", eventid: eventID, projectid: '',rclsid: '', robjid: '', userlogin: '', |
| | | clsid: $this.$data.param.Sub_Cls.ID, objid: '',attr: JSON.stringify([]), extinfo: JSON.stringify([]), |
| | | edtype: "7", eventid: eventID, projectid: '',rclsid: '', robjid: '', userlogin: '', |
| | | clsid: 'MBOX', objid: '',attr: JSON.stringify([]), extinfo: JSON.stringify([]), |
| | | global_attr: JSON.stringify($this.$data.global_attr),dataJson:JSON.stringify(dataJson) |
| | | } |
| | | console.log(JSON.stringify(dataInfo)); |