zhangjinan
2018-04-13 9957e0cf3f609a61fc7ec6692cf6e83a47ccdeae
publish/js/customMin/customS_min.js
@@ -673,7 +673,7 @@
                console.log(value);
                // if(value == ' '){
                //     if(value == ' '){
                //         value =  window.localStorage.getItem('businessTypeAuto');
                //         value =  window.getEnclocal('businessTypeAuto');
                //     }
                // }else{
                    if (typeof value == "string") {
@@ -1261,7 +1261,7 @@
customBase.getItemValue = function (itemId, type) {
    var item = "";
    //单行文本 多行文本 数字 日历  customBase.itemEdit   var prefix =  JSON.parse(window.localStorage.getItem("customItem"));
    //单行文本 多行文本 数字 日历  customBase.itemEdit   var prefix =  JSON.parse(window.getEnclocal("customItem"));
    if (type == 'text' || type == 'textarea' || type == 'number' || type == 'calendar' || type == "auto") {
        item = customBase.itemEdit['text'].getItem("." + itemId + "value");
    } else if (type == 'radio' || type == 'checkbox') {
@@ -1565,7 +1565,7 @@
}
//图片上传
customBase.uploaderShow = function (potion) {
    var customShowFlag = window.localStorage.getItem("customShowFlag")
    var customShowFlag = window.getEnclocal("customShowFlag")
    console.log(customShowFlag);
    console.log(customBase.options);
    console.log(customShow.options.customItemShow.item);
@@ -2927,15 +2927,15 @@
}
function getProcessLog() {//获得流程信息 李雁鸣  12-25
    localStorage.setItem("processLog", null);
    if (localStorage.getItem("customItem") != undefined && localStorage.getItem("customItem") != "undefined" && localStorage.getItem("customItem") != null && localStorage.getItem("customItem") != "" && localStorage.getItem("customItem") != null) {
        var ss = { "formID": JSON.parse(localStorage.getItem("customForm")).newFormID, "dataRowNum": JSON.parse(localStorage.getItem("customItem")).DATAROWNUM };
    setDeclocal("processLog", null);
    if (getEnclocal("customItem") != undefined && getEnclocal("customItem") != "undefined" && getEnclocal("customItem") != null && getEnclocal("customItem") != "" && getEnclocal("customItem") != null) {
        var ss = { "formID": JSON.parse(getEnclocal("customForm")).newFormID, "dataRowNum": JSON.parse(getEnclocal("customItem")).DATAROWNUM };
        var requestSingleForm = window.commonAjax("/ubp-api-seache/process/inst/log", ss, "POST", true, false);
        requestSingleForm.done(function (rs) {
            console.log(rs.data);
            console.log("新改的");
            if (rs.data != undefined) {
                localStorage.setItem("processLog", JSON.stringify(rs.data.data));
                setDeclocal("processLog", JSON.stringify(rs.data.data));
            } else {
            }
@@ -2950,7 +2950,7 @@
    //数据源
    //数据源信息取得
    var datasource = $.parseJSON(window.localStorage.getItem("datasource"));
    var datasource = $.parseJSON(window.getEnclocal("datasource"));
    customShow.options.datasource = {};
    if (datasource != null) {
@@ -2960,7 +2960,7 @@
    }
    // 0:预览 1:数据管理中新建 2:数据管理中展示(数据表示) 3:发布 4:模板中心
    var customShowFlag = window.localStorage.getItem("customShowFlag");
    var customShowFlag = window.getEnclocal("customShowFlag");
    customShow.options.customShowFlag = customShowFlag;
    //  12/13 测试模拟用
@@ -3006,10 +3006,10 @@
    }
    if (customShowFlag == "0") {
        //表单ID
        var customlocalStorage = window.localStorage.getItem("customForm");
        var customlocalStorage = window.getEnclocal("customForm");
        customlocalStorage = $.parseJSON(customlocalStorage);
        customShow.options.formid = customlocalStorage.newFormID;
        var customViewItem = window.localStorage.getItem("customViewItem");
        var customViewItem = window.getEnclocal("customViewItem");
        customShow.InitShow({
            //绑定DIV
@@ -3026,7 +3026,7 @@
        $(".s_savebtn").hide();
        // $(".customShow .fa-calendar").addClass();
    } else {
        customShow.options.formid = window.localStorage.getItem("newFormID");
        customShow.options.formid = window.getEnclocal("newFormID");
        //初期数据取得
        customDataBound.getFormbase(customShow.options.formid, function (rs) {
            if (rs.rspCode == "000000" && rs.data != null) {
@@ -3061,7 +3061,7 @@
                    }
                }
                var formbase = window.localStorage.getItem("customItem");
                var formbase = window.getEnclocal("customItem");
                //console.log(formbase)
                //////////////console.log(formbase);
                // //console.log(formbase);
@@ -3166,7 +3166,7 @@
    if (customShowFlag == "0" || customShowFlag == "6") {
        //2017-12-27 马习同   专家模式打印
        var print_btnFlag = window.localStorage.getItem("print_btnFlag");
        var print_btnFlag = window.getEnclocal("print_btnFlag");
        if (customShowFlag == "0" && print_btnFlag == "1"){
            var btns = [
                "printableBtn"
@@ -3250,7 +3250,7 @@
        console.log("显示X");
        console.log($('#childclick'));
        $('#childclick').css("display", "block");
        if (JSON.parse(window.localStorage.getItem('allow')) == true) {
        if (JSON.parse(window.getEnclocal('allow')) == true) {
            $('#childclick').css("display", "none");
        } else {
            $('#childclick').css("display", "block");
@@ -3352,7 +3352,7 @@
    }
    //第三方事件绑定
    var token = localStorage.getItem('token');//页面事件绑定 李伟民 12-22
    var token = getEnclocal('token');//页面事件绑定 李伟民 12-22
    if (token != '' && token != undefined) {
        token = JSON.parse(token);
    }
@@ -3403,7 +3403,7 @@
    //2017-12-12  马习同隐藏
    SC.Superior_hide();
    if (customShowFlag == "1" || customShowFlag == "0") {
        // window.localStorage.setItem('businessTypeAuto','240');
        // window.setDeclocal('businessTypeAuto','240');
        $(".preview-edit-pane").find('#disposableBtn').css('display', 'none');
        $(".preview-edit-pane").find('#clearBtn').css('display', 'none');
        $(".preview-edit-pane").find('#queryBtn').css('display', 'none');
@@ -3448,13 +3448,13 @@
//      }
//      post_data.push(control);
//   });
//   var customShowFlag = window.localStorage.getItem("customShowFlag");
//   var customForm = window.localStorage.getItem("customForm");
//   var customShowFlag = window.getEnclocal("customShowFlag");
//   var customForm = window.getEnclocal("customForm");
//   if(customForm && customForm != ""){
//      customForm = JSON.parse(customForm);
//   }
//   if(customShowFlag == 2){//详情
//      var customItem = window.localStorage.getItem("customItem");
//      var customItem = window.getEnclocal("customItem");
//      if(customItem && customItem != ""){
//         customItem = JSON.parse(customItem);
//         //console.log(customItem);
@@ -3509,13 +3509,13 @@
//  //       }
//  //       post_data.push(control);
//  //   });
//  //   var customShowFlag = window.localStorage.getItem("customShowFlag");
//  //   var customForm = window.localStorage.getItem("customForm");
//  //   var customShowFlag = window.getEnclocal("customShowFlag");
//  //   var customForm = window.getEnclocal("customForm");
//  //   if(customForm && customForm != ""){
//  //       customForm = JSON.parse(customForm);
//  //   }
//  //   if(customShowFlag == 2){//详情
//  //       var customItem = window.localStorage.getItem("customItem");
//  //       var customItem = window.getEnclocal("customItem");
//  //       if(customItem && customItem != ""){
//  //           customItem = JSON.parse(customItem);
//   //       //console.log(customItem);
@@ -3547,9 +3547,9 @@
//扩展费用自定义方法,yuezhw 2017-11-13
customShow.extended_budget = function (where) {
    var obj = {};
    obj.formId = localStorage.getItem("newFormID");
    obj.dataId = JSON.parse(localStorage.getItem("customItem")).DATAROWNUM;
    obj.tenantID = JSON.parse(localStorage.getItem("tenantID")).tenantID;
    obj.formId = getEnclocal("newFormID");
    obj.dataId = JSON.parse(getEnclocal("customItem")).DATAROWNUM;
    obj.tenantID = JSON.parse(getEnclocal("tenantID")).tenantID;
    var query_request;
    flatpickr("#budget_time", {
        dateFormat: "Y-m-d"
@@ -3566,7 +3566,7 @@
        obj.department = $('#budget_department').val();
        obj.info = $('#budget_time').val();
        var nowTime = new Date(Date.parse(obj.info));
        var endTime = new Date(Date.parse(JSON.parse(localStorage.getItem("customItem")).budgetEndDate));
        var endTime = new Date(Date.parse(JSON.parse(getEnclocal("customItem")).budgetEndDate));
        console.log(obj.info);
        console.log(nowTime);
        console.log(endTime);
@@ -3788,7 +3788,7 @@
                        }
                    });
                } else {
                    var myTitle = JSON.parse(window.localStorage.getItem("title"));
                    var myTitle = JSON.parse(window.getEnclocal("title"));
                    item_title = myTitle[item];
                    itemVal = items[item];
                }
@@ -3882,14 +3882,14 @@
customShow.uploadBill = function () {//票据上传
    $('#upload_iframe').show();
    var token = localStorage.getItem(token);
    var token = getEnclocal(token);
    if (token != '' && token != undefined) {
        token = JSON.parse(token).accessToken;
    }
    var compid = getCookie('companyId');
    var tenantId = localStorage.getItem("tenantID");
    var tenantId = getEnclocal("tenantID");
    // var iframe_src = "http://csza.chfcloud.com/views/order_create_visit.html?token=" + token + "&compid=" + compid +"&tenantId=" + tenantId;
    var iframe_src = "http://csza.chfcloud.com/views/order_create_visit.html?token=" + localStorage.getItem("testToken") + "&compid=" + localStorage.getItem("testCompanyId") +"&tenantId=" + localStorage.getItem("testTenantId");
    var iframe_src = "http://csza.chfcloud.com/views/order_create_visit.html?token=" + getEnclocal("testToken") + "&compid=" + getEnclocal("testCompanyId") +"&tenantId=" + getEnclocal("testTenantId");
    //var iframe_src = "http://csza.chfcloud.com/views/order_create_visit.html?token=a23efb1df2303a914b1139d4e1d1859f&compid=66&tenantId=13";
    $("#upload_iframe").append("<iframe id='uploadBill' style='width:100%;overflow: auto;'></iframe>");
    ////console.log($("body"));
@@ -3910,10 +3910,10 @@
        var exCouldNumber = event.data.split('=')[1];
        console.log(exCouldNumber);
        customShow.exCouldNumber = exCouldNumber;
        if(localStorage.getItem('customShowFlag') == 2){//详情页上传票据需将云单编号传给后台  李伟民  01-04
        if(getEnclocal('customShowFlag') == 2){//详情页上传票据需将云单编号传给后台  李伟民  01-04
            var orderData = {
                "formId":customShow.options.formid,
                "formDataId":localStorage.getItem("datarowNum"),
                "formDataId":getEnclocal("datarowNum"),
                "orderCode":exCouldNumber
            }
            var orderUpdate = window.cloudAjax("epc-form/formData/updataBillInfoAndForm",orderData,"POST",true);
@@ -5595,10 +5595,10 @@
            //改变
            let mthis = this;
            var tenantId = localStorage.getItem("tenantID");
            var formID = localStorage.getItem("newFormID");
            var tenantId = getEnclocal("tenantID");
            var formID = getEnclocal("newFormID");
            var tenant = JSON.parse(tenantId);
            var user = localStorage.getItem("userName");
            var user = getEnclocal("userName");
            var userName = JSON.parse(user);
            var aba = a;
            console.log(aba);
@@ -5791,7 +5791,7 @@
                var attrData = JSON.parse($(obj)[0].target.previousSibling.getAttribute("chooseForm"));
                head = attrData.huixianObj.chooseData;
            }//函数分支修改 李伟民 12-05
            // window.localStorage.setItem("bussiness", attrData.formID.bussinessSystem)  //不用了?
            // window.setDeclocal("bussiness", attrData.formID.bussinessSystem)  //不用了?
            //获取id值
            //用于验证是否已经存在div
            var $divsLength = $('#' + $iconId + 'divIcons').length;
@@ -6546,7 +6546,7 @@
    auditableBtn();
}
function auditableBtn() {
    var processLog = JSON.parse(localStorage.getItem("processLog"));
    var processLog = JSON.parse(getEnclocal("processLog"));
    if (processLog != null && processLog != undefined) {
    } else {
        alert("请先创建一个流程");
@@ -7154,7 +7154,7 @@
                        }
                    });
                } else {
                    var myTitle = JSON.parse(window.localStorage.getItem("title"));
                    var myTitle = JSON.parse(window.getEnclocal("title"));
                    item_title = myTitle[item];
                    itemVal = items[item];
                }
@@ -7319,7 +7319,7 @@
            } else if (items[item].type == "subform" || items[item].type == "tag" || items[item].type == "tab") {
            } else if (items[item].type == "auto") {
                var str = window.localStorage.getItem("customItem");
                var str = window.getEnclocal("customItem");
                var prefix = (str != undefined && str != "undefined") ? JSON.parse(str) : null;
                if (prefix != null && (prefix[item] != null || prefix[item] != undefined)) {
                    itemTempS[item] = prefix[item];
@@ -7457,7 +7457,7 @@
    var removePrintArea = function (id) {
        $("iframe#" + id).remove();
    };
    var customShowFlag = window.localStorage.getItem("customShowFlag");
    var customShowFlag = window.getEnclocal("customShowFlag");
    if (customShowFlag == "0") {
        var itemOnPrint = $("#customViewUEditor")[0].cloneNode(true);
        $(itemOnPrint).css("overflow", 'visible');
@@ -7472,7 +7472,7 @@
//编辑按钮按下时
customShow.onEditor = function () {
    // $(".preview-edit-pane").css("display", "none");
    window.localStorage.setItem("customShowFlag", 3);
    window.setDeclocal("customShowFlag", 3);
    var formIDs = customlocalStorage.newFormID;
    customDataBound.formsetting(formIDs, function () { });
@@ -9584,8 +9584,8 @@
//表单数据保存
customDataBound.fromSave = function (formid, formbase, callback) {
    // if(window.localStorage.getItem("bussinessSystem")){
    //    var flag = window.localStorage.getItem("bussinessSystem");
    // if(window.getEnclocal("bussinessSystem")){
    //    var flag = window.getEnclocal("bussinessSystem");
    // }
    var dataObj = {};
    dataObj.formID = formid;
@@ -9611,8 +9611,8 @@
//表单数据编辑
customDataBound.fromEdit = function (formid, formbase, dataRowNum, callback) {
    var dataObj = {};
    // if(window.localStorage.getItem("bussinessSystem")){
    //    var flag = window.localStorage.getItem("bussinessSystem");
    // if(window.getEnclocal("bussinessSystem")){
    //    var flag = window.getEnclocal("bussinessSystem");
    // }
    // dataObj.flag = flag;
    dataObj.formID = formid;
@@ -9674,7 +9674,7 @@
        }
        dataObj.callbackId = callbackId;
        //console.log(dataObj);
        let customlocalStorage = window.localStorage.getItem("bussinessSystem");
        let customlocalStorage = window.getEnclocal("bussinessSystem");
        var reg = new RegExp('"', "g"); // service  修改  李元杰 11-16
        customlocalStorage = customlocalStorage.replace(reg, ""); // service  修改  李元杰 11-16
        console.log(customlocalStorage);
@@ -9690,8 +9690,8 @@
                SC.money_cur();
                // 12/13
                console.log(window.localStorage.getItem('customShowFlag'))
                if (window.localStorage.getItem('customShowFlag') == 1) {
                console.log(window.getEnclocal('customShowFlag'))
                if (window.getEnclocal('customShowFlag') == 1) {
                    // customShow.businessTypeAutoFun( 'businessTypeAuto','budget_itemCostType');
                    SC.autoFieldKey();
                }
@@ -9767,7 +9767,7 @@
customDataBound.bindInterface = function (formid) {//绑定接口注册方法//保存前计算费用  李伟民   10 - 31
    var dataObj = {};
    dataObj.formID = formid;
    var accessToken = JSON.parse(localStorage.getItem("token")).accessToken;
    var accessToken = JSON.parse(getEnclocal("token")).accessToken;
    dataObj.access_token = accessToken;
    var requestRight = window.commonAjax("/forminterface/getFormInterfaceListService", dataObj, "GET", true, false);
    requestRight.done(function (rs) {
@@ -9781,7 +9781,7 @@
    // 工具栏自定义10/18
    $('.edit_form').html("");
    var type = "";
    var flag = window.localStorage.getItem("customShowFlag");
    var flag = window.getEnclocal("customShowFlag");
    switch (flag) {
        case "1": type = "TJ"; break;
        case "3": type = "XG"; break;
@@ -9799,7 +9799,7 @@
    var request = window.commonAjax("/formbase/getFormInfoService", dataObjFlag, "GET", true);
    request.done(function (rs) {
        if (rs.data != null) {
            window.localStorage.setItem('bussinessSystem', rs.data.bussinesssystem)
            window.setDeclocal('bussinessSystem', rs.data.bussinesssystem)
        }
    })
@@ -9849,11 +9849,11 @@
                    // 撤销流程实例
                    $("#" + dd.id).click(function () {
                        var process = localStorage.getItem("processid");
                        var process = getEnclocal("processid");
                        //console.log(process);
                        var dd = JSON.parse(process);
                        var tent = JSON.parse(localStorage.getItem("tenantID")).tenantID;
                        var tent = JSON.parse(getEnclocal("tenantID")).tenantID;
                        //console.log(dd.data);
                        window.queryAjaxs("ubp-api-seache/process/inst/log", { "processInstId": dd.data.processInstId }, "POST", true).done(function (res) {
@@ -9881,7 +9881,7 @@
                    $("#" + dd.id)[0].setAttribute('data-toggle', "modal");
                    $("#" + dd.id)[0].setAttribute('data-target', ".bs-example-modal-sm");
                    $("#" + dd.id).click(function () {
                        var processLog = JSON.parse(localStorage.getItem("processLog"));
                        var processLog = JSON.parse(getEnclocal("processLog"));
                        if (processLog != null && processLog != undefined) {
                        } else {
                            $("#liucheng").html("<h3 class='sp_title'>请先创建一个流程<h3>");
@@ -9903,7 +9903,7 @@
                    $("#" + dd.id)[0].setAttribute('data-toggle', "modal");
                    $("#" + dd.id)[0].setAttribute('data-target', ".bs-example-modal-sm");
                    $("#" + dd.id).click(function () {
                        var processLog = JSON.parse(localStorage.getItem("processLog"));
                        var processLog = JSON.parse(getEnclocal("processLog"));
                        if (processLog[0].processState == 60) {
                            customBase.alert('E',"流程已结束");
                            return null;
@@ -9959,7 +9959,7 @@
                } else if (obt.buttonName == "审批") {
                    $("#" + dd.id).click(function () {
                        var processLog = JSON.parse(localStorage.getItem("processLog"));
                        var processLog = JSON.parse(getEnclocal("processLog"));
                        if (processLog != null && processLog != undefined) {
                        } else {
                            customBase.alert('W',"请先创建一个流程");
@@ -10953,7 +10953,7 @@
                    console.log(rsArr);
                    var subId = $('#' + $iconId + "ActiveId").attr("choosesubform");
                    console.log($(".myipt"))
                    var formObj = window.localStorage.getItem("netformid");
                    var formObj = window.getEnclocal("netformid");
                    var globalFormID = formObj;
                    var dataObj = {};
                    dataObj.formID = globalFormID;
@@ -10966,7 +10966,7 @@
                        order_id = rs.data;
                    })
                    // var tenantID =JSON.parse(window.localStorage.getItem('tenantID'))
                    // var tenantID =JSON.parse(window.getEnclocal('tenantID'))
                    // dataObj.tenantID= tenantID.tenantID;
                    //          var order_ids = JSON.parse($(".myipt").val());
@@ -11081,11 +11081,11 @@
    } else {
        dataUrl = "/datamanagement/getAssociatedFormDataService";
        dataObj = { "formID": formId.formID, "tenantID": "001", "screenCondition": sCondition, "pageSize": pageSize, "pageNum": pageNum, "search": anydata };
        window.localStorage.setItem("netformid", dataObj.formID);
        window.setDeclocal("netformid", dataObj.formID);
    }
    //关联数据 函数 数据源 李伟民  11-07
    //   var dataObj = {"formID":formId.formID,"tenantID":"001","screenCondition":sCondition,"pageSize":pageSize,"pageNum":pageNum};
    //window.localStorage.setItem("netformid",dataObj.formID);
    //window.setDeclocal("netformid",dataObj.formID);
    var requestRight = window.commonAjax(dataUrl, dataObj, "POST", true, false);
    var counts = "";
    requestRight.done(function (rs) {
@@ -11265,7 +11265,7 @@
function submitCheck(){//提交前验证审查必须 李伟民 0119
    $('.submitrErr').remove();
    var checkFlag = true;
    var item = localStorage.getItem('customItem');
    var item = getEnclocal('customItem');
    if(item != undefined && item != ''){
        item = JSON.parse(item);
    }
@@ -11343,12 +11343,12 @@
        if(checkFlag != true){
            return false;
        }
        console.log(localStorage.getItem("organizationId"));
        console.log(localStorage.getItem("datarowNum"));
        console.log(getEnclocal("organizationId"));
        console.log(getEnclocal("datarowNum"));
        //从local取出log
        var processLog = localStorage.getItem("processLog");
        var tenant = JSON.parse(localStorage.getItem("tenantID"));
        var cust = JSON.parse(localStorage.getItem("customItem"));
        var processLog = getEnclocal("processLog");
        var tenant = JSON.parse(getEnclocal("tenantID"));
        var cust = JSON.parse(getEnclocal("customItem"));
        //暂时修改流程lym
        // var org = cust.expend_department.trim();
        //暂时修改流程lym
@@ -11375,8 +11375,8 @@
            var ss = {
                "tenantID": tenant.tenantID,
                //"organizationId": org,
                "formID": localStorage.getItem("newFormID"),
                "dataRowNum": localStorage.getItem("datarowNum")
                "formID": getEnclocal("newFormID"),
                "dataRowNum": getEnclocal("datarowNum")
            }
            var requestSingleForm = window.commonAjax("/ubp-api-control/process/inst/create", ss, "POST", true);
            requestSingleForm.done(function (rs) {
@@ -11406,7 +11406,7 @@
function over(data) {
    if (data == true) {
        //确定提交后操作
        var processLog = JSON.parse(localStorage.getItem("processLog"));
        var processLog = JSON.parse(getEnclocal("processLog"));
        console.log(processLog);
        var ss = {
            "processInstId": processLog[0].processInstId
@@ -11439,13 +11439,13 @@
            customBase.alert("W","请选择退回的活动");
            return null;
        }
        var processLog = JSON.parse(localStorage.getItem("processLog"));
        var processLog = JSON.parse(getEnclocal("processLog"));
        var ss = {
            "activityInstId": processLog[0].activityInstId,
            "activityDefId": $('.actcur').val(),
            "processInstId": processLog[0].processInstId,
            "formID": localStorage.getItem("newFormID"),
            "dataRowNum": localStorage.getItem("datarowNum")
            "formID": getEnclocal("newFormID"),
            "dataRowNum": getEnclocal("datarowNum")
        }
        var requestSingleForm = window.commonAjax("/ubp-api-control/process/inst/bac", ss, "POST", true);
        requestSingleForm.done(function (rs) {
@@ -11472,17 +11472,17 @@
        $("#sssd").click();
    } else {
        var processLog = JSON.parse(localStorage.getItem("processLog"));
        var processLog = JSON.parse(getEnclocal("processLog"));
        console.log(processLog[0].processInstId);
        var ss = {
            "processInstId": processLog[0].processInstId,
            "activityInstId": processLog[0].activityInstId,
            "data": $("#datas").val(),
            "formID": localStorage.getItem("newFormID"),
            "dataRowNum": localStorage.getItem("datarowNum"),
            "token": localStorage.getItem("testToken"),//差旅token 特殊处理
            "tenantId": localStorage.getItem("testTenantId"),
            "companyId": localStorage.getItem("testCompanyId"),
            "formID": getEnclocal("newFormID"),
            "dataRowNum": getEnclocal("datarowNum"),
            "token": getEnclocal("testToken"),//差旅token 特殊处理
            "tenantId": getEnclocal("testTenantId"),
            "companyId": getEnclocal("testCompanyId"),
        }
        console.log("标记token");
@@ -11501,14 +11501,14 @@
}
//2017.11.24  qld 追加预算
customBase.budgetAddmoney = function () {
    var id = JSON.parse(localStorage.getItem("tenantID"))
    var id = JSON.parse(getEnclocal("tenantID"))
    console.log(id.tenantID);
    var sub = JSON.parse(localStorage.getItem("customItem"));
    var sub = JSON.parse(getEnclocal("customItem"));
    var submit_data = {
        "formId": localStorage.getItem("newFormID"),
        "netformid": localStorage.getItem("netformid"),
        "parentDataRowNum": localStorage.getItem("datarowNum"),
        "dataRowNum": localStorage.getItem("datarowNum"),
        "formId": getEnclocal("newFormID"),
        "netformid": getEnclocal("netformid"),
        "parentDataRowNum": getEnclocal("datarowNum"),
        "dataRowNum": getEnclocal("datarowNum"),
        "tenantID": id.tenantID,
        "formType": "ZJ"
    };
@@ -11540,14 +11540,14 @@
}
customBase.budgetBackmoney = function () {
    var id = JSON.parse(localStorage.getItem("tenantID"))
    var id = JSON.parse(getEnclocal("tenantID"))
    console.log(id.tenantID);
    var sub = JSON.parse(localStorage.getItem("customItem"));
    var sub = JSON.parse(getEnclocal("customItem"));
    var submit_data = {
        "formId": localStorage.getItem("newFormID"),
        "netformid": localStorage.getItem("netformid"),
        "parentDataRowNum": localStorage.getItem("datarowNum"),
        "dataRowNum": localStorage.getItem("datarowNum"),
        "formId": getEnclocal("newFormID"),
        "netformid": getEnclocal("netformid"),
        "parentDataRowNum": getEnclocal("datarowNum"),
        "dataRowNum": getEnclocal("datarowNum"),
        "formType": "TH",
        "tenantID": id.tenantID
    };
@@ -11582,17 +11582,17 @@
    return true;
}
customBase.repayment = function () {
    var id = JSON.parse(localStorage.getItem("tenantID"))
    var id = JSON.parse(getEnclocal("tenantID"))
    console.log(id.tenantID);
    var sub = JSON.parse(localStorage.getItem("customItem"));
    var sub = JSON.parse(getEnclocal("customItem"));
    console.log(sub);
    var subForm = sub.DATAROWNUM;
    console.log("我是" + subForm)
    var submit_data = {
        "formId": localStorage.getItem("newFormID"),
        "netformid": localStorage.getItem("netformid"),
        "parentDataRowNum": localStorage.getItem("datarowNum"),
        "datarowNum": localStorage.getItem("datarowNum"),
        "formId": getEnclocal("newFormID"),
        "netformid": getEnclocal("netformid"),
        "parentDataRowNum": getEnclocal("datarowNum"),
        "datarowNum": getEnclocal("datarowNum"),
        "tenantId": id.tenantID
    };
@@ -11717,7 +11717,7 @@
//         }
//     }else{
//         if(customBase.options.customItems[fieldKey].parentsubFormNum == '0'){
//             var businessTypeAuto = window.localStorage.getItem(key);
//             var businessTypeAuto = window.getEnclocal(key);
//             customBase.setItemValue(customBase.options.customItems[fieldKey].id, customBase.options.customItems[fieldKey].type, businessTypeAuto, '', '');
//         }
//     }