cuiqian2004
2025-08-14 d066a9659f793dee40ac7fa0bc399ebd30664b4a
pages/modal/5601.vue
@@ -185,7 +185,8 @@
         //获取主数据类ID
         this.ClsID = this.param.master_cls?.id;
         if (this.ClsID) {
            this.loadData(options.paramValue)
            const  paramValue = options.paramValue ?JSON.parse(options.paramValue) :undefined
            this.loadData(paramValue)
         } else {
            uni.showModal({
               title: this.translateSys("error"),
@@ -224,6 +225,7 @@
            //获取数据类的自定义表单参数
            await this.Head_UIStyleGetInfo(this.ClsID, this.param.Input_UI_Style.ID);
            //传入参数值
            console.log(paramValue)
            if (paramValue) {
               const attrs = paramValue.attrs || [];
               (this.head_styledef?.form?.items || []).forEach(async (ele, index) => {
@@ -522,9 +524,13 @@
            } catch (ex) {
               // console.log(ex);
               let exStr = JSON.stringify(ex)
               if (exStr == "{}")
                  exStr = ex
               let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr
               uni.showModal({
                  title: this.translateSys("error") + "1",
                  content: ex.errMsg,
                  content: tip,
                  showCancel: false,
                  confirmText: this.translateSys('close')
               });
@@ -590,10 +596,14 @@
               console.log("Detail_UIstyleGetInfo", detailstyledef);
               return detailstyledef
            } catch (ex) {
               // console.log(ex);
               console.log(ex);
               let exStr = JSON.stringify(ex)
               if (exStr == "{}")
                  exStr = ex
               let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr
               uni.showModal({
                  title: this.translateSys("error") + "2",
                  content: ex.errMsg,
                  content: tip,
                  showCancel: false,
                  confirmText: this.translateSys('close')
               });
@@ -629,10 +639,14 @@
               }
               formItem.dict = list;
            } catch (ex) {
               // console.log(ex);
               console.log(ex);
               let exStr = JSON.stringify(ex)
               if (exStr == "{}")
                  exStr = ex
               let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr
               uni.showModal({
                  title: this.translateSys("error") + "3",
                  content: ex.errMsg,
                  content: tip,
                  showCancel: false,
                  confirmText: this.translateSys('close')
               });
@@ -853,7 +867,7 @@
               };
               const result = await runCustomEvent(dataInfo)
               console.log(result)
               if (result.ret != 0) {
               if (result.ret != 0&& result.ret != 1) {
                  var tip = result.err_info ? typeof result
                     .err_info == 'string' ? result
                     .err_info : result.err_info.join('<br/>') :
@@ -938,7 +952,10 @@
            } catch (ex) {
               console.log(ex)
               var tip = typeof ex == "string" ? ex : ex.message;
               let exStr = JSON.stringify(ex)
               if (exStr == "{}")
                  exStr = ex
               let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr
               uni.showModal({
                  title: this.translateSys("error") + "6.1",
                  content: this.translate(
@@ -1075,7 +1092,7 @@
                  };
                  const result = await runCustomEvent(dataInfo)
                  console.log(result);
                  if (result.ret != 0) {
                  if (result.ret != 0&& result.ret != 1) {
                     var tip = result.err_info ? typeof result
                        .err_info == 'string' ? result
                        .err_info : result.err_info.join('<br/>') :
@@ -1264,7 +1281,11 @@
               }
            } catch (ex) {
               var tip = typeof ex == "string" ? ex : ex.message;
               console.log(ex);
               let exStr = JSON.stringify(ex)
               if (exStr == "{}")
                  exStr = ex
               let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr
               uni.showModal({
                  title: this.translateSys("error") + "4.2",
                  content: this.translate(
@@ -2132,7 +2153,7 @@
            console.log(dataInfo);
            // return;
            runCustomEvent(dataInfo).then(data => {
               if (data.ret != 0) {
               if (data.ret != 0&& data.ret != 1) {
                  var tip = data.err_info ? typeof data.err_info == 'string' ? data
                     .err_info :
                     data
@@ -2305,7 +2326,7 @@
            console.log(dataInfo);
            // return;
            runCustomEvent(dataInfo).then(data => {
               if (data.ret != 0) {
               if (data.ret != 0&& data.ret != 1) {
                  var tip = data.err_info ? typeof data.err_info == 'string' ? data
                     .err_info :
                     data
@@ -2963,7 +2984,7 @@
            console.log(dataInfo);
            runCustomEvent(dataInfo).then(result => {
               console.log(result);
               if (result.ret != 0) {
               if (result.ret != 0&& result.ret != 1) {
                  var tip = result.err_info ? typeof result
                     .err_info == 'string' ? result.err_info :
                     result.err_info.join('<br/>') : '';
@@ -3205,7 +3226,10 @@
            }).catch(ex => {
               console.log(ex);
               let tip = typeof ex.errMsg == "string" ? ex.errMsg : ex
            let exStr = JSON.stringify(ex)
            if (exStr == "{}")
               exStr = ex
            let tip = typeof ex.errMsg == "string" ? ex.errMsg : exStr
               uni.showModal({
                  title: this.translateSys("error") + "8.1",
                  content: this.translate("execute_after_ok_event_failed") +
@@ -3428,7 +3452,7 @@
            button {
               text-align: left;
               line-height: 1.5;
               line-height: 1.6;
               border: none;
               margin-right: 10rpx;