cloud-web-corejs 1.0.54-dev.800 → 1.0.54-dev.802
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.
- package/package.json +1 -1
- package/src/components/baseArea/index.vue +82 -27
- package/src/components/bizTab/BizBillActions.vue +2 -2
- package/src/components/bizTab/bizBillDetailMixin.js +27 -9
- package/src/components/excelExport/exportFieldDialog.vue +11 -9
- package/src/components/table/config.js +6 -4
- package/src/components/table/index.js +78 -22
- package/src/components/table/state.js +42 -0
- package/src/components/table/tableForm.vue +16 -5
- package/src/components/table/tableFormMixin.js +35 -7
- package/src/components/table/vxeFilter/index.js +4 -2
- package/src/components/table/vxeFilter/mixin.js +10 -4
- package/src/components/wf/content.vue +12 -0
- package/src/components/wf/wf.js +72 -23
- package/src/components/wf/wfActionDropdown.vue +85 -0
- package/src/components/wf/wfActionItems.js +136 -0
- package/src/components/wf/wfAutoConfirm.js +55 -0
- package/src/components/wf/wfUserRange.js +53 -0
- package/src/components/wf/wfUtil.js +46 -2
- package/src/components/xform/form-designer/designer.js +6 -1
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +9 -3
- package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +2 -1
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +3 -2
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +3 -12
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/date-limit-mixin.js +2 -46
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/relative-default-mixin.js +107 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/relativeDateUtil.js +321 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/time-limit-mixin.js +2 -17
- package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +3 -2
- package/src/components/xform/form-designer/form-widget/field-widget/time-widget.vue +3 -12
- package/src/components/xform/form-designer/setting-panel/form-dynamicField-setting.vue +5 -5
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +48 -26
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +16 -19
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid/gutter-editor.vue +13 -12
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-dynamicField-editor.vue +16 -18
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/afterColumnsCreated-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +237 -237
- package/src/components/xform/form-designer/setting-panel/property-editor/field-common/keyName-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-defaultValue-editor.vue +35 -36
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultValue-editor.vue +35 -18
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-defaultValue-editor.vue +34 -36
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-defaultValue-editor.vue +35 -18
- package/src/components/xform/form-designer/setting-panel/property-editor/fixedQuery-editor.vue +39 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +20 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +188 -178
- package/src/components/xform/form-designer/setting-panel/property-editor/relative-default-block.vue +369 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +35 -2
- package/src/components/xform/form-render/container-item/data-table-mixin.js +150 -75
- package/src/components/xform/form-render/container-item/detail-item.vue +8 -12
- package/src/components/xform/lang/en-US.js +3 -0
- package/src/components/xform/lang/zh-CN.js +3 -0
- package/src/components/xform/mixins/defaultHandle.js +18 -3
- package/src/components/xform/utils/fixedQueryUtil.js +93 -0
- package/src/views/user/outLink/cc_form_view.vue +33 -30
- package/src/views/user/wf/wf_manage/list.vue +17 -1
- 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 (
|
|
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
|
-
|
|
85
|
-
|
|
85
|
+
appid: this.pickQuery("appid"),
|
|
86
|
+
appkey: this.pickQuery("appkey"),
|
|
86
87
|
account: this.pickQuery("account"),
|
|
87
|
-
callNo: this.pickQuery("callNo"
|
|
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 = ["
|
|
94
|
+
let missing = ["appkey", "account"].filter((key) => !params[key]);
|
|
101
95
|
if (missing.length) {
|
|
102
|
-
this.errMsg =
|
|
96
|
+
this.errMsg =
|
|
97
|
+
"缺少必要参数:" + missing.join("、") + ",请检查呼叫中心跳转链接";
|
|
103
98
|
return;
|
|
104
99
|
}
|
|
105
|
-
this.
|
|
100
|
+
this.getToken(params);
|
|
106
101
|
},
|
|
107
|
-
|
|
102
|
+
getToken(params) {
|
|
108
103
|
this.loading = true;
|
|
109
104
|
this.$http({
|
|
110
|
-
url:
|
|
105
|
+
url: USER_PREFIX + "/auth/login",
|
|
111
106
|
method: "post",
|
|
112
|
-
data:
|
|
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
|
|
120
|
-
if (!
|
|
119
|
+
let token = res.objx;
|
|
120
|
+
if (!token) {
|
|
121
121
|
this.loading = false;
|
|
122
|
-
this.errMsg = "身份信息(
|
|
122
|
+
this.errMsg = "身份信息(token)获取失败:接口未返回 token";
|
|
123
123
|
return;
|
|
124
124
|
}
|
|
125
|
-
this.redirect(params,
|
|
125
|
+
this.redirect(params, token);
|
|
126
126
|
},
|
|
127
127
|
fail: (res) => {
|
|
128
128
|
this.loading = false;
|
|
129
|
-
this.errMsg =
|
|
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 =
|
|
135
|
+
this.errMsg =
|
|
136
|
+
"身份信息(token)获取失败:" + ((err && err.message) || "网络异常");
|
|
134
137
|
},
|
|
135
138
|
});
|
|
136
139
|
},
|
|
137
|
-
redirect(params,
|
|
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
|
-
|
|
146
|
+
access_token: token,
|
|
144
147
|
};
|
|
145
148
|
// 来电号码等业务参数透传给表单,供表单脚本取用
|
|
146
|
-
let source = { ...params, agentId: params.
|
|
149
|
+
let source = { ...params, agentId: params.appkey };
|
|
147
150
|
PASS_THROUGH.forEach((key) => {
|
|
148
151
|
if (source[key]) {
|
|
149
152
|
query[key] = source[key];
|
|
@@ -312,6 +312,18 @@
|
|
|
312
312
|
</el-select>
|
|
313
313
|
</template>
|
|
314
314
|
</vxe-form-item>
|
|
315
|
+
<vxe-form-item
|
|
316
|
+
:title="$t1('禁用用户') + ':'"
|
|
317
|
+
field="disabledUserName"
|
|
318
|
+
>
|
|
319
|
+
<template v-slot>
|
|
320
|
+
<el-input
|
|
321
|
+
v-model="formData2.disabledUserName"
|
|
322
|
+
size="small"
|
|
323
|
+
clearable
|
|
324
|
+
/>
|
|
325
|
+
</template>
|
|
326
|
+
</vxe-form-item>
|
|
315
327
|
</vxe-form>
|
|
316
328
|
</template>
|
|
317
329
|
</vxe-grid>
|
|
@@ -675,7 +687,11 @@ export default {
|
|
|
675
687
|
owner: res.owner,
|
|
676
688
|
targetPath: res.targetPath,
|
|
677
689
|
bizParams: this.param,
|
|
678
|
-
viewMeta: {
|
|
690
|
+
viewMeta: {
|
|
691
|
+
visibleKey: "showWfContent",
|
|
692
|
+
defaultShowWfContent: true,
|
|
693
|
+
viewType: 1,
|
|
694
|
+
},
|
|
679
695
|
}
|
|
680
696
|
: null;
|
|
681
697
|
this.wfContent = res.component;
|