| | |
| | | .v-panellist{ |
| | | border:4rpx solid #aaa; |
| | | border-radius: 10rpx; |
| | | margin: 0rpx 20rpx 10rpx 20rpx; |
| | | margin: 10rpx 20rpx 0rpx 20rpx; |
| | | } |
| | | .v-paneldel{ |
| | | text-align: right; |
| | |
| | | }); |
| | | }, |
| | | 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; |
| | |
| | | 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, |
| | | mast_attr: [], |
| | |
| | | if(ar.Type=='引用对象(多个)') |
| | | if(ar.Value=='请') ar.Value=''; |
| | | if(ar.Type=='引用人员' || ar.Type=='引用项目') |
| | | mast_req.push({ attr: ar.Name, val: ar.ValID ?ar.ValID :'' }); |
| | | mast_req.push({ attr: ar.Name, value: ar.ValID ?ar.ValID :'' }); |
| | | else if(ar.Type=='布尔值') |
| | | mast_req.push({ attr: ar.Name, val: ar.Value?'1':'0'}); |
| | | mast_req.push({ attr: ar.Name, value: ar.Value?'1':'0'}); |
| | | else |
| | | mast_req.push({ attr: ar.Name, val: ar.Value ?ar.Value :''}); |
| | | mast_req.push({ attr: ar.Name, value: ar.Value ?ar.Value :''}); |
| | | } |
| | | } |
| | | var req=[]; |
| | |
| | | } |
| | | 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, |
| | |
| | | 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 ii = 0; ii < actionlist.length; ii++) { |
| | |
| | | for (var i = 0; i < result.length; i++) { |
| | | for (var s = 0; s < $this.$data.subPanelList.length; s++) { |
| | | 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; |
| | |
| | | for (var i = 0; i < result.length; i++) { |
| | | for (var s = 0; s < $this.$data.subPanelList.length; s++) { |
| | | 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)); |