cloud-web-corejs 1.0.54-dev.800 → 1.0.54-dev.801

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/package.json +1 -1
  2. package/src/components/bizTab/BizBillActions.vue +2 -2
  3. package/src/components/bizTab/bizBillDetailMixin.js +27 -9
  4. package/src/components/excelExport/exportFieldDialog.vue +11 -9
  5. package/src/components/table/config.js +6 -4
  6. package/src/components/table/index.js +78 -22
  7. package/src/components/table/state.js +42 -0
  8. package/src/components/table/vxeFilter/index.js +4 -2
  9. package/src/components/table/vxeFilter/mixin.js +10 -4
  10. package/src/components/wf/content.vue +4 -0
  11. package/src/components/wf/wf.js +72 -23
  12. package/src/components/wf/wfActionDropdown.vue +58 -0
  13. package/src/components/wf/wfActionItems.js +116 -0
  14. package/src/components/wf/wfAutoConfirm.js +55 -0
  15. package/src/components/wf/wfUserRange.js +53 -0
  16. package/src/components/wf/wfUtil.js +20 -0
  17. package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +2 -1
  18. package/src/components/xform/form-designer/setting-panel/form-dynamicField-setting.vue +5 -5
  19. package/src/components/xform/form-designer/setting-panel/form-setting.vue +48 -26
  20. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +16 -19
  21. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid/gutter-editor.vue +13 -12
  22. package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-dynamicField-editor.vue +16 -18
  23. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/afterColumnsCreated-editor.vue +30 -0
  24. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +237 -237
  25. package/src/components/xform/form-designer/setting-panel/property-editor/field-common/keyName-editor.vue +4 -4
  26. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +1 -1
  27. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +20 -3
  28. package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +188 -178
  29. package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +1 -1
  30. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +1 -0
  31. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1 -0
  32. package/src/components/xform/form-render/container-item/data-table-mixin.js +35 -2
  33. package/src/components/xform/form-render/container-item/detail-item.vue +8 -12
  34. package/src/components/xform/mixins/defaultHandle.js +18 -3
  35. package/src/views/user/outLink/cc_form_view.vue +33 -30
  36. package/src/components/xform/form-render/container-item/data-table-mixin copy.js +0 -5910
@@ -45,10 +45,6 @@ const CC_CONFIG = {
45
45
  formCode: "patentApply_edit",
46
46
  // 写死的单据 ID,新建为 0
47
47
  dataId: "0",
48
- // 换取 tp 的后台接口(需后台提供:入参 appId/appKey/account/callNo,出参 tp)
49
- tpApi: USER_PREFIX + "/thirdparty_auth/getTpByCallCenter",
50
- // 业务系统固定下发的 appid,链接未带时用它兜底
51
- defaultAppId: "6789B4BBAF71D4F9D79E0912856E04E",
52
48
  };
53
49
 
54
50
  /** 透传给业务表单的参数(form_outLinkView 会 v-bind 到目标组件上) */
@@ -73,7 +69,12 @@ export default {
73
69
  let keys = Object.keys(query);
74
70
  for (let name of names) {
75
71
  let key = keys.find((k) => k.toLowerCase() === name.toLowerCase());
76
- if (key && query[key] !== "" && query[key] !== undefined && query[key] !== null) {
72
+ if (
73
+ key &&
74
+ query[key] !== "" &&
75
+ query[key] !== undefined &&
76
+ query[key] !== null
77
+ ) {
77
78
  return query[key];
78
79
  }
79
80
  }
@@ -81,69 +82,71 @@ export default {
81
82
  },
82
83
  resolveParams() {
83
84
  return {
84
- appId: this.pickQuery("appid", "appId") || CC_CONFIG.defaultAppId,
85
- appKey: this.pickQuery("appkey", "appKey"),
85
+ appid: this.pickQuery("appid"),
86
+ appkey: this.pickQuery("appkey"),
86
87
  account: this.pickQuery("account"),
87
- callNo: this.pickQuery("callNo", "callno", "phone"),
88
+ callNo: this.pickQuery("callNo"),
88
89
  };
89
90
  },
90
- /** 兼容后台把 tp 放在 objx 字符串 / objx.tp / objx.thirdpartyInfo 三种返回形态 */
91
- resolveTp(res) {
92
- let objx = res && res.objx;
93
- if (!objx) return "";
94
- if (typeof objx === "string") return objx;
95
- return objx.tp || objx.thirdpartyInfo || objx.thirdparty_info || "";
96
- },
97
91
  start() {
98
92
  this.errMsg = "";
99
93
  let params = this.resolveParams();
100
- let missing = ["appId", "appKey", "account"].filter((key) => !params[key]);
94
+ let missing = ["appkey", "account"].filter((key) => !params[key]);
101
95
  if (missing.length) {
102
- this.errMsg = "缺少必要参数:" + missing.join("、") + ",请检查呼叫中心跳转链接";
96
+ this.errMsg =
97
+ "缺少必要参数:" + missing.join("、") + ",请检查呼叫中心跳转链接";
103
98
  return;
104
99
  }
105
- this.getTp(params);
100
+ this.getToken(params);
106
101
  },
107
- getTp(params) {
102
+ getToken(params) {
108
103
  this.loading = true;
109
104
  this.$http({
110
- url: CC_CONFIG.tpApi,
105
+ url: USER_PREFIX + "/auth/login",
111
106
  method: "post",
112
- data: params,
107
+ data: {
108
+ custom: "true",
109
+ loginFlag: 1,
110
+ appkey: params.appkey,
111
+ account: params.account,
112
+ },
113
113
  // 无 token 场景,且自行接管提示与遮罩
114
114
  useToken: false,
115
115
  isLoading: false,
116
116
  failMsg: false,
117
117
  errorMsg: false,
118
118
  success: (res) => {
119
- let tp = this.resolveTp(res);
120
- if (!tp) {
119
+ let token = res.objx;
120
+ if (!token) {
121
121
  this.loading = false;
122
- this.errMsg = "身份信息(tp)获取失败:接口未返回 tp";
122
+ this.errMsg = "身份信息(token)获取失败:接口未返回 token";
123
123
  return;
124
124
  }
125
- this.redirect(params, tp);
125
+ this.redirect(params, token);
126
126
  },
127
127
  fail: (res) => {
128
128
  this.loading = false;
129
- this.errMsg = "身份信息(tp)获取失败:" + ((res && (res.content || res.msg)) || "接口返回异常");
129
+ this.errMsg =
130
+ "身份信息(token)获取失败:" +
131
+ ((res && (res.content || res.msg)) || "接口返回异常");
130
132
  },
131
133
  error: (err) => {
132
134
  this.loading = false;
133
- this.errMsg = "身份信息(tp)获取失败:" + ((err && err.message) || "网络异常");
135
+ this.errMsg =
136
+ "身份信息(token)获取失败:" + ((err && err.message) || "网络异常");
134
137
  },
135
138
  });
136
139
  },
137
- redirect(params, tp) {
140
+ redirect(params, token) {
138
141
  this.loadingText = "正在打开单据…";
139
142
  let query = {
140
143
  url: CC_CONFIG.formUrl,
141
144
  formCode: CC_CONFIG.formCode,
142
145
  dataId: CC_CONFIG.dataId,
143
- tp: tp,
146
+ access_token: token,
144
147
  };
145
148
  // 来电号码等业务参数透传给表单,供表单脚本取用
146
- let source = { ...params, agentId: params.appKey };
149
+ let source = { ...params, agentId: params.appkey };
147
150
  PASS_THROUGH.forEach((key) => {
148
151
  if (source[key]) {
149
152
  query[key] = source[key];