cloud-web-corejs 1.0.54-dev.798 → 1.0.54-dev.799
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 +3 -1
- package/src/components/baseTabs/mixins.js +11 -12
- package/src/components/bizTab/BizBillActions.vue +129 -0
- package/src/components/bizTab/BizTabListPage.vue +391 -0
- package/src/components/bizTab/README.md +378 -0
- package/src/components/bizTab/billTableUtil.js +48 -0
- package/src/components/bizTab/billValidators.js +136 -0
- package/src/components/bizTab/bizBillDetailMixin.js +687 -0
- package/src/components/bizTab/index.js +24 -0
- package/src/components/excelExport/exportFieldDialog.vue +373 -367
- package/src/components/excelExport/exportType.js +49 -0
- package/src/components/excelExport/mixins.js +1153 -1144
- package/src/components/vb-tabs/x-tabs.vue +167 -143
- package/src/components/wf/wfUtil.js +327 -292
- package/src/components/xform/form-designer/designer.js +56 -8
- package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +59 -5
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +60 -8
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +8 -2
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-item-button-widget.vue +120 -92
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +63 -94
- package/src/components/xform/form-designer/index.vue +0 -1
- package/src/components/xform/form-designer/setting-panel/dataSource-setting.vue +397 -397
- package/src/components/xform/form-designer/setting-panel/form-dynamicField-setting.vue +602 -602
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +13 -13
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +585 -585
- package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/a-text-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/alignType-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1154 -1154
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +96 -80
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-plain/detail-plain-editor.vue +75 -75
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid/colHeight-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid/gutter-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-height-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-span-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/container-h5-card/h5-card-editor.vue +124 -124
- package/src/components/xform/form-designer/setting-panel/property-editor/container-panel/height-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-panel/width-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tab/tab-customClass-editor.vue +119 -119
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tab/tabClass-editor.vue +45 -45
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-dynamicField-editor.vue +344 -344
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table-cell/cellHeight-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table-cell/cellWidth-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-customClass-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree-pane/tree-pane-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/cancelButtonLabel-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/okButtonLabel-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/title-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-vf-dialog/width-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/containerClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/customClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/descriptionsItems-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/downloadButtonFlag-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/dsName-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/echartHeight-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/endPlaceholder-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-accessUrl/accessUrl-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaDataType-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaMinLevel-editor.vue +50 -50
- package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaName-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-autocomplete/autocomplete-vabSearchName-editor.vue +7 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/addTableData-event-editor.vue +84 -84
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/button-type-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +97 -97
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/form-host-event-editor.vue +188 -188
- 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 +74 -67
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-dateLimit-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-format-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-type-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-valueFormat-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-format-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-type-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-valueFormat-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-divider/contentPosition-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-menu-editor.vue +59 -59
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +11 -11
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +10 -10
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +12 -12
- package/src/components/xform/form-designer/setting-panel/property-editor/field-file-upload/file-upload-fileTypes-editor.vue +44 -44
- package/src/components/xform/form-designer/setting-panel/property-editor/field-html-text/htmlContent-editor.vue +29 -29
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +6 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/field-number/controlsPosition-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-picture-upload/picture-upload-fileTypes-editor.vue +44 -44
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +115 -115
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +115 -115
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/highThreshold-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/lowThreshold-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-max-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-script/script-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/field-script-input/script-input-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/fontSize-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/textContent-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/activeText-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/inactiveText-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-switch/switchWidth-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-button-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-item-button-editor.vue +74 -71
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-format-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-timeLimit-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-format-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchField-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vue-page/vue-page-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/fileMaxSize-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/fileTypesSelect.vue +176 -176
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +2 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/formatType-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +972 -972
- package/src/components/xform/form-designer/setting-panel/property-editor/iconClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/label-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelAlign-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelWidth-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/limit-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/max-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/maxLength-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/min-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/minLength-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +178 -178
- package/src/components/xform/form-designer/setting-panel/property-editor/oplog-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +6 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/requiredHint-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/rows-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/space-editor-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/startPlaceholder-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/step-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/styleTableClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/styleTitClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/tempStorage-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/type-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/uploadTip-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/uploadURL-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/urlValueEnabled-editor.vue +91 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/validation-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/widgetWidth-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +1 -0
- package/src/components/xform/form-designer/widget-panel/index.vue +3 -1
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +55 -13
- package/src/components/xform/form-render/container-item/data-table-mixin copy.js +5910 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +59 -13
- package/src/components/xform/form-render/container-item/detail-item.vue +52 -11
- package/src/components/xform/form-render/container-item/tab-item.vue +6 -2
- package/src/components/xform/form-render/indexMixin.js +56 -16
- package/src/components/xform/lang/zh-CN.js +2 -1
- package/src/components/xform/utils/attachmentValueUtil.js +239 -0
- package/src/components/xform/utils/util.js +27 -0
- package/src/mixins/wf/index.js +40 -38
- package/src/router/modules/customer.js +50 -0
- package/src/store/config/index.js +46 -0
- package/src/utils/scrollUtil.js +25 -0
- package/src/views/demo/bizTab/bill/billConfig.js +41 -0
- package/src/views/demo/bizTab/bill/detail.vue +436 -0
- package/src/views/demo/bizTab/bill/list.vue +288 -0
- package/src/views/demo/bizTab/bill/productDialog.vue +176 -0
- package/src/views/demo/bizTab/simple/billApi.js +123 -0
- package/src/views/demo/bizTab/simple/detail.vue +407 -0
- package/src/views/demo/bizTab/simple/list.vue +217 -0
- package/src/views/demo/bizTab/standalone/index.vue +121 -0
- package/src/views/demo/bizTab/wf/billConfig.js +44 -0
- package/src/views/demo/bizTab/wf/detail.vue +661 -0
- package/src/views/demo/bizTab/wf/list.vue +242 -0
- package/src/views/user/outLink/cc_form_view.vue +185 -0
package/src/mixins/wf/index.js
CHANGED
|
@@ -1,38 +1,40 @@
|
|
|
1
|
-
/**version-1.0*/
|
|
2
|
-
import {initWf} from '../../components/wf/wfUtil'
|
|
3
|
-
|
|
4
|
-
let mixins = {};
|
|
5
|
-
mixins = {
|
|
6
|
-
methods: {
|
|
7
|
-
'_getBillInfo': async function (option) {
|
|
8
|
-
let defaultOption = {
|
|
9
|
-
url: null,
|
|
10
|
-
method: `post`,
|
|
11
|
-
data: {},
|
|
12
|
-
isLoading: true,
|
|
13
|
-
modalStrictly: true,
|
|
14
|
-
success: null
|
|
15
|
-
};
|
|
16
|
-
let opt = Object.assign({}, defaultOption, option);
|
|
17
|
-
delete opt.wfConfig;
|
|
18
|
-
return this.$commonHttp({
|
|
19
|
-
...opt,
|
|
20
|
-
success: (res, response) => {
|
|
21
|
-
option.success && option.success(res, response);
|
|
22
|
-
if (option.wfConfig) {
|
|
23
|
-
let wfConfig = option.wfConfig(res);
|
|
24
|
-
if (wfConfig) {
|
|
25
|
-
let urlArr = opt.url.split('/');
|
|
26
|
-
let opt2 = Object.assign({}, wfConfig, {
|
|
27
|
-
serviceId
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
1
|
+
/**version-1.0*/
|
|
2
|
+
import {initWf} from '../../components/wf/wfUtil'
|
|
3
|
+
|
|
4
|
+
let mixins = {};
|
|
5
|
+
mixins = {
|
|
6
|
+
methods: {
|
|
7
|
+
'_getBillInfo': async function (option) {
|
|
8
|
+
let defaultOption = {
|
|
9
|
+
url: null,
|
|
10
|
+
method: `post`,
|
|
11
|
+
data: {},
|
|
12
|
+
isLoading: true,
|
|
13
|
+
modalStrictly: true,
|
|
14
|
+
success: null
|
|
15
|
+
};
|
|
16
|
+
let opt = Object.assign({}, defaultOption, option);
|
|
17
|
+
delete opt.wfConfig;
|
|
18
|
+
return this.$commonHttp({
|
|
19
|
+
...opt,
|
|
20
|
+
success: (res, response) => {
|
|
21
|
+
option.success && option.success(res, response);
|
|
22
|
+
if (option.wfConfig) {
|
|
23
|
+
let wfConfig = option.wfConfig(res);
|
|
24
|
+
if (wfConfig) {
|
|
25
|
+
let urlArr = opt.url.split('/');
|
|
26
|
+
let opt2 = Object.assign({}, wfConfig, {
|
|
27
|
+
//显式传的 serviceId 优先(与 xform/mixins/scriptHttp.js 口径一致),
|
|
28
|
+
//没传才按取数 url 的首段推导——单据取数与流程不在同一服务时必须显式传。
|
|
29
|
+
serviceId: wfConfig.serviceId || urlArr[1]
|
|
30
|
+
});
|
|
31
|
+
//初始化流程
|
|
32
|
+
initWf.call(this, opt2);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export default mixins;
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
export const constantRoutes = [
|
|
2
|
+
{
|
|
3
|
+
// 呼叫中心(CC)专用入口:只带 appid/appkey/account/callNo,
|
|
4
|
+
// 先换取 tp 再 replace 到 /form_outLinkView
|
|
5
|
+
path: "/cc_form_outLinkView",
|
|
6
|
+
component: () => import("@base/views/user/outLink/cc_form_view"),
|
|
7
|
+
meta: {
|
|
8
|
+
checkToken: false,
|
|
9
|
+
},
|
|
10
|
+
hidden: true,
|
|
11
|
+
},
|
|
2
12
|
{
|
|
3
13
|
path: "",
|
|
4
14
|
component: () => import("@/layout/index"),
|
|
@@ -12,6 +22,46 @@ export const constantRoutes = [
|
|
|
12
22
|
icon: "dashboard",
|
|
13
23
|
},
|
|
14
24
|
},
|
|
25
|
+
{
|
|
26
|
+
// bizTab 示例 A:手写接口版(前端 mock,无流程,不吃后台前置条件)
|
|
27
|
+
path: "/demo/bizTab/simple",
|
|
28
|
+
component: () => import("@base/views/demo/bizTab/simple/list"),
|
|
29
|
+
name: "demoBizTabSimple",
|
|
30
|
+
meta: {
|
|
31
|
+
title: "bizTab 示例(手写接口)",
|
|
32
|
+
icon: "dashboard",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
// bizTab 示例 B:formCode + 通用 bd_api(照 stdxx 的产品变更申请页)
|
|
37
|
+
path: "/demo/bizTab/bill",
|
|
38
|
+
component: () => import("@base/views/demo/bizTab/bill/list"),
|
|
39
|
+
name: "demoBizTabBill",
|
|
40
|
+
meta: {
|
|
41
|
+
title: "bizTab 示例(formCode+流程)",
|
|
42
|
+
icon: "dashboard",
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
// bizTab 示例 C:自定义控制器 + 流程(照 std / 本仓库 pmd/price/ladderPrice 页)
|
|
47
|
+
path: "/demo/bizTab/wf",
|
|
48
|
+
component: () => import("@base/views/demo/bizTab/wf/list"),
|
|
49
|
+
name: "demoBizTabWf",
|
|
50
|
+
meta: {
|
|
51
|
+
title: "bizTab 示例(自定义接口+流程)",
|
|
52
|
+
icon: "dashboard",
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
// bizTab 示例 D:独立模式(不在页签里,待办直开走的路径),复用示例 C 的详情
|
|
57
|
+
path: "/demo/bizTab/standalone",
|
|
58
|
+
component: () => import("@base/views/demo/bizTab/standalone/index.vue"),
|
|
59
|
+
name: "demoBizTabStandalone",
|
|
60
|
+
meta: {
|
|
61
|
+
title: "bizTab 示例(独立模式)",
|
|
62
|
+
icon: "dashboard",
|
|
63
|
+
},
|
|
64
|
+
},
|
|
15
65
|
{
|
|
16
66
|
path: "/support/form-dialog-demo",
|
|
17
67
|
component: () => import("@/views/support/form-dialog-demo/index.vue"),
|
|
@@ -529,6 +529,52 @@ modules = {
|
|
|
529
529
|
...bdProjectMenuList,
|
|
530
530
|
],
|
|
531
531
|
7: [
|
|
532
|
+
/* {
|
|
533
|
+
id: 6949,
|
|
534
|
+
createDate: "2024-06-13 14:29:01",
|
|
535
|
+
modifyDate: "2025-01-02 10:20:52",
|
|
536
|
+
createBy: "admin",
|
|
537
|
+
modifyBy: "admin",
|
|
538
|
+
orders: 3,
|
|
539
|
+
parent: 6656,
|
|
540
|
+
menuName: "表单模板",
|
|
541
|
+
menuEnName: null,
|
|
542
|
+
menuCode: "bd_form_template:list",
|
|
543
|
+
sn: null,
|
|
544
|
+
menuImg: "icon-biaodanguanli",
|
|
545
|
+
url: "@base/views/bd/setting/form_template/list",
|
|
546
|
+
route: "/bd/setting/form_template/list",
|
|
547
|
+
enabled: true,
|
|
548
|
+
treePath: ",6655,6656,",
|
|
549
|
+
treePathName: ",",
|
|
550
|
+
hasChild: false,
|
|
551
|
+
grade: 2,
|
|
552
|
+
type: 0,
|
|
553
|
+
children: [],
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
id: 9768,
|
|
557
|
+
createDate: "2024-10-14 14:35:03",
|
|
558
|
+
modifyDate: "2025-01-02 10:20:52",
|
|
559
|
+
createBy: "admin",
|
|
560
|
+
modifyBy: "admin",
|
|
561
|
+
orders: 5,
|
|
562
|
+
parent: 6656,
|
|
563
|
+
menuName: "逻辑脚本",
|
|
564
|
+
menuEnName: null,
|
|
565
|
+
menuCode: "form_script:list1",
|
|
566
|
+
sn: null,
|
|
567
|
+
menuImg: "icon-liuchengshu",
|
|
568
|
+
url: "@base/views/bd/setting/form_script/list1",
|
|
569
|
+
route: "/bd/setting/form_script/list1",
|
|
570
|
+
enabled: true,
|
|
571
|
+
treePath: ",6655,6656,",
|
|
572
|
+
treePathName: ",",
|
|
573
|
+
hasChild: false,
|
|
574
|
+
grade: 2,
|
|
575
|
+
type: 0,
|
|
576
|
+
children: [],
|
|
577
|
+
}, */
|
|
532
578
|
{
|
|
533
579
|
id: 6664,
|
|
534
580
|
createDate: "2024-06-01 15:19:04",
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//在元素最近的可滚动祖先内部滚动到该元素;确实没有可滚动祖先时才退回 scrollIntoView。
|
|
2
|
+
//不能一上来就 scrollIntoView:那会把外层文档/宿主容器一起滚起来(固定头被顶走、
|
|
3
|
+
//微前端下滚的是主应用)。反过来也不能写死某一层容器——同一套详情结构里,真正带
|
|
4
|
+
//overflow 的是哪一层由 CSS 决定(有的布局是 .d-cont,有的是它外面那层 flex:1 的 div),
|
|
5
|
+
//写死就会在另一种布局里变成空操作。
|
|
6
|
+
//使用方:baseTabs 的页签锚点(components/baseTabs/mixins.js)、wf 的「流程信息」导航(components/wf/wfUtil.js)。
|
|
7
|
+
function scrollIntoScrollParent(el) {
|
|
8
|
+
if (!el || !el.parentElement) return;
|
|
9
|
+
let container = el.parentElement;
|
|
10
|
+
let root = document.documentElement;
|
|
11
|
+
while (container && container !== document.body && container !== root) {
|
|
12
|
+
let overflowY = window.getComputedStyle(container).overflowY;
|
|
13
|
+
let scrollable = /auto|scroll|overlay/.test(overflowY);
|
|
14
|
+
if (scrollable && container.scrollHeight > container.clientHeight) {
|
|
15
|
+
let containerRect = container.getBoundingClientRect();
|
|
16
|
+
let targetRect = el.getBoundingClientRect();
|
|
17
|
+
container.scrollTop += targetRect.top - containerRect.top;
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
container = container.parentElement;
|
|
21
|
+
}
|
|
22
|
+
el.scrollIntoView();
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { scrollIntoScrollParent };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import prefixConfig from "@/prefixConfig.js";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* demo B 接的是真实单据:PMD 的「产品变更申请」,走通用 bd_api(getPage / getOne / getList / saveUpdate)。
|
|
5
|
+
* 换成你自己的单据只改这里:表单编码、表名、流程编码、页签标题字段。
|
|
6
|
+
*
|
|
7
|
+
* 请求写法逐条对齐 stdxx 的真实页面 `views/pmd/product/product_change/{list,edit,productItemDialog}.vue`,
|
|
8
|
+
* 那边跑得通这边就跑得通(连 getOne/saveUpdate 不带 formVersion 都是照它来的)。
|
|
9
|
+
*
|
|
10
|
+
* ⚠️ 前置条件(跑不起来先核对这几条):
|
|
11
|
+
* 1. 表单模板 item_change(列表)/ item_change_edit(详情),且配了脚本
|
|
12
|
+
* getPage / getOne / getList / saveUpdate / findItemPage;
|
|
13
|
+
* 2. 表 pcp_item_change / pcp_item_change_item 存在;
|
|
14
|
+
* 3. 流程 product_change_edit 存在,且至少有一个允许改单据(toModify)的节点,
|
|
15
|
+
* 否则「通过自动保存」这条验不到。
|
|
16
|
+
* 真实页面还会写第三张表 pcp_product_properties_change(产品参数),demo 不带它——
|
|
17
|
+
* saveUpdate 只写 data 里出现的表,不传即不动,所以参数不会被清空。
|
|
18
|
+
* 不吃这些前置条件的版本看 ../simple/(前端 mock,不打后台)。
|
|
19
|
+
*
|
|
20
|
+
* ⚠️ 保存是整表提交:saveUpdate 的 data 里带哪几张表,后台就按哪几张表落库。
|
|
21
|
+
* 所以 detail.vue 把子表 pcp_item_change_item 一起读出来、原样带回,
|
|
22
|
+
* 不然拿真实单据试保存会把子表冲掉。你自己的单据有子表时照此办理。
|
|
23
|
+
*/
|
|
24
|
+
export const BILL = {
|
|
25
|
+
prefix: prefixConfig.PMD_PREFIX,
|
|
26
|
+
listFormCode: "item_change", // 列表分页用的表单编码
|
|
27
|
+
formCode: "item_change_edit", // 详情取数/保存用的表单编码
|
|
28
|
+
taBm: "pcp_item_change", // 主表表名
|
|
29
|
+
itemTaBm: "pcp_item_change_item", // 子表表名
|
|
30
|
+
wfCode: "div_form_item_change_edit", // 流程编码
|
|
31
|
+
titleField: "sn", // 页签标题字段(变更单号)
|
|
32
|
+
type: 0, // 业务过滤条件:0 产品变更 / 1 零件变更
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export const STATUS_MAP = {
|
|
36
|
+
0: { label: "未审核", cls: "list-tag warning" },
|
|
37
|
+
1: { label: "审核中", cls: "list-tag" },
|
|
38
|
+
2: { label: "已审核", cls: "list-tag success" },
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export default BILL;
|