| | |
| | | if (this.$data.subPanelList[index].scanCodeVal == this.$data.scanCodeVal) { |
| | | this.$data.scanCodeVal=''; |
| | | } |
| | | if (this.$data.param.Sub_Cls.Slave_Change_Event) { //判断从数据是否有从处理事件 |
| | | var eventid = this.$data.param.Sub_Cls.Slave_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, val: ar.ValID ?ar.ValID :'' }); |
| | | else if(ar.Type=='布尔值') |
| | | mast_req.push({ attr: ar.Name, val: ar.Value?'1':'0'}); |
| | | else |
| | | mast_req.push({ attr: ar.Name, val: 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: "0", |
| | | projectid: '', |
| | | rclsid: '', |
| | | robjid: '', |
| | | userlogin: '', |
| | | clsid: this.$data.param.Sub_Cls.ID, |
| | | objid: "", |
| | | attr: req, |
| | | mast_attr: mast_req, |
| | | inputParamter:[{ attr: 'input_3037', value: this.$data.scanCodeVal }], |
| | | delIndex:index |
| | | } |
| | | |
| | | this.scan_DataObjRunCustomEvent(info, ""); |
| | | } |
| | | }else{ |
| | | this.$data.subPanelList.splice(index, 1); |
| | | } |
| | | }, |
| | | async classGridStyleInfo(clsid,styleName,clsType){ |
| | | var $this = this; |
| | |
| | | } |
| | | } |
| | | } |
| | | } else if (action.action_type == 'del_subcls_panel') { |
| | | |
| | | $this.$data.subPanelList.splice(info.delIndex, 1); |
| | | } |
| | | } |
| | | } |