jt
2023-02-09 d9d1b4332986fae66a00ef1f309d50560588920c
pages/modal/ms_classAttr.vue
@@ -793,21 +793,21 @@
                             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: [],
@@ -843,11 +843,11 @@
                           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=[];
@@ -869,12 +869,12 @@
                       }
                       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,
@@ -2187,18 +2187,18 @@
             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 = {//所属的表单控件
@@ -2467,20 +2467,20 @@
            }
            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));