cloud-web-corejs 1.1.0-dev.10 → 1.1.0-dev.11

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 (22) hide show
  1. package/package.json +1 -1
  2. package/src/components/mobile/wf/content.vue +1 -1
  3. package/src/components/mobile/wf/selectUserDialog.vue +8 -12
  4. package/src/components/xform/form-render/container-item/detail-h5-item.vue +1 -1
  5. package/src/components/xform/styles/h5.scss +483 -459
  6. package/src/components/xform/docs/2026-08 xform H5 P0 /345/256/236/347/216/260/350/247/204/346/240/274.md" +0 -528
  7. package/src/components/xform/docs/2026-08 xform H5 P1 /345/256/236/347/216/260/350/247/204/346/240/274.md" +0 -412
  8. package/src/components/xform/docs/2026-08 xform H5 P2 /345/256/236/347/216/260/350/247/204/346/240/274.md" +0 -287
  9. package/src/components/xform/docs/2026-08 xform /347/247/273/345/212/250/347/253/257/345/270/203/345/261/200/345/257/271/351/275/220 bill_setting /346/226/271/346/241/210.md" +0 -400
  10. package/src/views/demo/bizTab/bill/billConfig.js +0 -41
  11. package/src/views/demo/bizTab/bill/detail.vue +0 -436
  12. package/src/views/demo/bizTab/bill/list.vue +0 -288
  13. package/src/views/demo/bizTab/bill/productDialog.vue +0 -176
  14. package/src/views/demo/bizTab/simple/billApi.js +0 -123
  15. package/src/views/demo/bizTab/simple/detail.vue +0 -407
  16. package/src/views/demo/bizTab/simple/list.vue +0 -217
  17. package/src/views/demo/bizTab/standalone/index.vue +0 -121
  18. package/src/views/demo/bizTab/wf/billConfig.js +0 -44
  19. package/src/views/demo/bizTab/wf/detail.vue +0 -661
  20. package/src/views/demo/bizTab/wf/list.vue +0 -242
  21. package/src/views/user/home/wjl/content.vue +0 -1569
  22. package/src/views/user/outLink/cc_form_view.vue +0 -188
@@ -1,188 +0,0 @@
1
- <template>
2
- <div
3
- class="cc-entry"
4
- v-loading="loading"
5
- :element-loading-text="loadingText"
6
- element-loading-background="rgba(255, 255, 255, 0.9)"
7
- >
8
- <div class="cc-entry__box" v-if="errMsg">
9
- <el-alert :title="errMsg" type="error" :closable="false" show-icon />
10
- <div class="cc-entry__footer">
11
- <el-button type="primary" size="small" @click="start">重试</el-button>
12
- </div>
13
- </div>
14
- </div>
15
- </template>
16
-
17
- <script>
18
- /**
19
- * 呼叫中心(CC)业务专用外链入口。
20
- *
21
- * 背景:业务系统(呼叫中心)只会带 appid / appkey / account / callNo 四个参数跳过来,
22
- * 拿不到 form_outLinkView 所需的 tp(用户身份密文)。本页在 form_outLinkView 之前加一层:
23
- * 1. 取四个参数
24
- * 2. 调后台接口换取 tp
25
- * 3. replace 到 /form_outLinkView,formCode 写死、dataId 固定 0
26
- *
27
- * 入口地址示例:
28
- * https://csmuat.chinamacro.com/#/cc_form_outLinkView
29
- * ?appid=6789B4BBAF71D4F9D79E0912856E04E
30
- * &appkey=坐席id
31
- * &account=坐席帐号
32
- * &callNo=来电手机
33
- *
34
- * 最终跳转:
35
- * #/form_outLinkView?url=/user/form/view/edit&formCode=xxx&dataId=0&tp=xxx&callNo=xxx...
36
- */
37
-
38
- /* ------------------------------------------------------------------ *
39
- * 业务定制配置:换业务页面只改这里
40
- * ------------------------------------------------------------------ */
41
- const CC_CONFIG = {
42
- // 固定的表单视图路由,form_outLinkView 的 url 参数
43
- formUrl: "/user/form/view/edit",
44
- // 写死的表单编码(按实际业务表单调整)
45
- formCode: "patentApply_edit",
46
- // 写死的单据 ID,新建为 0
47
- dataId: "0",
48
- };
49
-
50
- /** 透传给业务表单的参数(form_outLinkView 会 v-bind 到目标组件上) */
51
- const PASS_THROUGH = ["callNo", "account", "agentId"];
52
-
53
- export default {
54
- name: "ccFormOutLinkView",
55
- data() {
56
- return {
57
- loading: false,
58
- loadingText: "正在获取身份信息…",
59
- errMsg: "",
60
- };
61
- },
62
- created() {
63
- this.start();
64
- },
65
- methods: {
66
- /** 大小写不敏感地取 query,业务系统对参数大小写不一定稳定 */
67
- pickQuery(...names) {
68
- let query = this.$route.query || {};
69
- let keys = Object.keys(query);
70
- for (let name of names) {
71
- let key = keys.find((k) => k.toLowerCase() === name.toLowerCase());
72
- if (
73
- key &&
74
- query[key] !== "" &&
75
- query[key] !== undefined &&
76
- query[key] !== null
77
- ) {
78
- return query[key];
79
- }
80
- }
81
- return "";
82
- },
83
- resolveParams() {
84
- return {
85
- appid: this.pickQuery("appid"),
86
- appkey: this.pickQuery("appkey"),
87
- account: this.pickQuery("account"),
88
- callNo: this.pickQuery("callNo"),
89
- };
90
- },
91
- start() {
92
- this.errMsg = "";
93
- let params = this.resolveParams();
94
- let missing = ["appkey", "account"].filter((key) => !params[key]);
95
- if (missing.length) {
96
- this.errMsg =
97
- "缺少必要参数:" + missing.join("、") + ",请检查呼叫中心跳转链接";
98
- return;
99
- }
100
- this.getToken(params);
101
- },
102
- getToken(params) {
103
- this.loading = true;
104
- this.$http({
105
- url: USER_PREFIX + "/auth/login",
106
- method: "post",
107
- data: {
108
- custom: "true",
109
- loginFlag: 1,
110
- appkey: params.appkey,
111
- account: params.account,
112
- },
113
- // 无 token 场景,且自行接管提示与遮罩
114
- useToken: false,
115
- isLoading: false,
116
- failMsg: false,
117
- errorMsg: false,
118
- success: (res) => {
119
- let token = res.objx;
120
- if (!token) {
121
- this.loading = false;
122
- this.errMsg = "身份信息(token)获取失败:接口未返回 token";
123
- return;
124
- }
125
- this.redirect(params, token);
126
- },
127
- fail: (res) => {
128
- this.loading = false;
129
- this.errMsg =
130
- "身份信息(token)获取失败:" +
131
- ((res && (res.content || res.msg)) || "接口返回异常");
132
- },
133
- error: (err) => {
134
- this.loading = false;
135
- this.errMsg =
136
- "身份信息(token)获取失败:" + ((err && err.message) || "网络异常");
137
- },
138
- });
139
- },
140
- redirect(params, token) {
141
- this.loadingText = "正在打开单据…";
142
- let query = {
143
- url: CC_CONFIG.formUrl,
144
- formCode: CC_CONFIG.formCode,
145
- dataId: CC_CONFIG.dataId,
146
- access_token: token,
147
- };
148
- // 来电号码等业务参数透传给表单,供表单脚本取用
149
- let source = { ...params, agentId: params.appkey };
150
- PASS_THROUGH.forEach((key) => {
151
- if (source[key]) {
152
- query[key] = source[key];
153
- }
154
- });
155
- let i18nLang = this.pickQuery("i18nLang");
156
- if (i18nLang) {
157
- query.i18nLang = i18nLang;
158
- }
159
- // replace:不在历史里留下本入口页,避免回退时重复换取 tp
160
- // 注:vue-router 3.0.2 的 replace 不返回 Promise,不能链 .then/.catch
161
- this.$router.replace({
162
- path: "/form_outLinkView",
163
- query: query,
164
- });
165
- },
166
- },
167
- };
168
- </script>
169
-
170
- <style lang="scss" scoped>
171
- .cc-entry {
172
- display: flex;
173
- align-items: center;
174
- justify-content: center;
175
- width: 100%;
176
- height: 100vh;
177
- }
178
-
179
- .cc-entry__box {
180
- width: 420px;
181
- max-width: 80%;
182
- }
183
-
184
- .cc-entry__footer {
185
- margin-top: 12px;
186
- text-align: center;
187
- }
188
- </style>