提交 d7a5f5bd 编写于 作者: ibizdev's avatar ibizdev

lxm1993 发布系统代码 [TrainSys,网页端]

上级 740f2fbe
...@@ -12,14 +12,14 @@ ...@@ -12,14 +12,14 @@
}, },
"dependencies": { "dependencies": {
"@floating-ui/dom": "^1.0.11", "@floating-ui/dom": "^1.0.11",
"@ibiz-template/command": "^0.0.1-beta.44", "@ibiz-template/command": "^0.0.1-beta.45",
"@ibiz-template/controller": "^0.0.1-beta.44", "@ibiz-template/controller": "^0.0.1-beta.45",
"@ibiz-template/core": "^0.0.1-beta.44", "@ibiz-template/core": "^0.0.1-beta.45",
"@ibiz-template/model": "^0.0.1-beta.44", "@ibiz-template/model": "^0.0.1-beta.45",
"@ibiz-template/runtime": "^0.0.1-beta.44", "@ibiz-template/runtime": "^0.0.1-beta.45",
"@ibiz-template/service": "^0.0.1-beta.44", "@ibiz-template/service": "^0.0.1-beta.45",
"@ibiz-template/theme": "^0.0.1-beta.44", "@ibiz-template/theme": "^0.0.1-beta.45",
"@ibiz-template/vue-util": "^0.0.1-beta.44", "@ibiz-template/vue-util": "^0.0.1-beta.45",
"@ibiz/dynamic-model-api": "^2.1.11", "@ibiz/dynamic-model-api": "^2.1.11",
"dayjs": "^1.11.7", "dayjs": "^1.11.7",
"lodash-es": "^4.17.21", "lodash-es": "^4.17.21",
......
...@@ -4,14 +4,14 @@ specifiers: ...@@ -4,14 +4,14 @@ specifiers:
'@commitlint/cli': ^17.3.0 '@commitlint/cli': ^17.3.0
'@commitlint/config-conventional': ^17.3.0 '@commitlint/config-conventional': ^17.3.0
'@floating-ui/dom': ^1.0.11 '@floating-ui/dom': ^1.0.11
'@ibiz-template/command': ^0.0.1-beta.44 '@ibiz-template/command': ^0.0.1-beta.45
'@ibiz-template/controller': ^0.0.1-beta.44 '@ibiz-template/controller': ^0.0.1-beta.45
'@ibiz-template/core': ^0.0.1-beta.44 '@ibiz-template/core': ^0.0.1-beta.45
'@ibiz-template/model': ^0.0.1-beta.44 '@ibiz-template/model': ^0.0.1-beta.45
'@ibiz-template/runtime': ^0.0.1-beta.44 '@ibiz-template/runtime': ^0.0.1-beta.45
'@ibiz-template/service': ^0.0.1-beta.44 '@ibiz-template/service': ^0.0.1-beta.45
'@ibiz-template/theme': ^0.0.1-beta.44 '@ibiz-template/theme': ^0.0.1-beta.45
'@ibiz-template/vue-util': ^0.0.1-beta.44 '@ibiz-template/vue-util': ^0.0.1-beta.45
'@ibiz/dynamic-model-api': ^2.1.11 '@ibiz/dynamic-model-api': ^2.1.11
'@types/lodash-es': ^4.17.6 '@types/lodash-es': ^4.17.6
'@types/node': ^18.11.15 '@types/node': ^18.11.15
...@@ -63,14 +63,14 @@ specifiers: ...@@ -63,14 +63,14 @@ specifiers:
dependencies: dependencies:
'@floating-ui/dom': 1.0.11 '@floating-ui/dom': 1.0.11
'@ibiz-template/command': 0.0.1-beta.44 '@ibiz-template/command': 0.0.1-beta.45
'@ibiz-template/controller': 0.0.1-beta.44_oxjbnusdps4lblyxtte2ypoxhm '@ibiz-template/controller': 0.0.1-beta.45_ascd52r4b2mz7q73re4ekobrom
'@ibiz-template/core': 0.0.1-beta.44_qzytosuu5eg3bvoa74ldx6evva '@ibiz-template/core': 0.0.1-beta.45_qzytosuu5eg3bvoa74ldx6evva
'@ibiz-template/model': 0.0.1-beta.44_nngk5znuztmoeynqrwf7jk7xse '@ibiz-template/model': 0.0.1-beta.45_nngk5znuztmoeynqrwf7jk7xse
'@ibiz-template/runtime': 0.0.1-beta.44_jknvc3m3pbv7cj7kghad7zxdne '@ibiz-template/runtime': 0.0.1-beta.45_vb3m65ek2qqwieoxowjqlpfbfm
'@ibiz-template/service': 0.0.1-beta.44_kcrltozjoki7oueymgwgiwiulq '@ibiz-template/service': 0.0.1-beta.45_rti225zbzf663o3ut5kaezgz7i
'@ibiz-template/theme': 0.0.1-beta.44 '@ibiz-template/theme': 0.0.1-beta.45
'@ibiz-template/vue-util': 0.0.1-beta.44_tzwjhizx3xe4lnwqrqkmwkieae '@ibiz-template/vue-util': 0.0.1-beta.45_y2pdy62rrm3ctb4esspfmsho5a
'@ibiz/dynamic-model-api': 2.1.11_qx-util@0.4.4 '@ibiz/dynamic-model-api': 2.1.11_qx-util@0.4.4
dayjs: 1.11.7 dayjs: 1.11.7
lodash-es: 4.17.21 lodash-es: 4.17.21
...@@ -891,14 +891,14 @@ packages: ...@@ -891,14 +891,14 @@ packages:
resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==} resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==}
dev: true dev: true
/@ibiz-template/command/0.0.1-beta.44: /@ibiz-template/command/0.0.1-beta.45:
resolution: {integrity: sha512-KEzd0WO1YlaW28ptLbELeZ88f8Hm4DQYxqCjamRFnlUAvInIaae8Zl55VNqfN/PWWbyHAGfmzcaQxeAyG4mbkw==} resolution: {integrity: sha512-o/LTY7RiU/pn+vClhoSJLMdaO+l8lECT9UEyPCdrqwYdLo0/xbBiIPhYqHiCrmNpABIbsOEUlRo2i+aZb2R42Q==}
dependencies: dependencies:
qx-util: 0.4.4 qx-util: 0.4.4
dev: false dev: false
/@ibiz-template/controller/0.0.1-beta.44_oxjbnusdps4lblyxtte2ypoxhm: /@ibiz-template/controller/0.0.1-beta.45_ascd52r4b2mz7q73re4ekobrom:
resolution: {integrity: sha512-OWoibmIx0YyB+Bd7YlZQkWDr2qeaZr910p85N/i0QKWjzanImv7xk2e3DupIWRbtXid6IukCzMw/K5nK7kLN+w==} resolution: {integrity: sha512-Bc0oJgvH2QoAM3b/BLkxeVea1yZv5+oFIQAnkuDfFGoJ/4P52cYGXJhHjOGJB40w1zlPJOM32Wj2mLNVc8C2bA==}
peerDependencies: peerDependencies:
'@ibiz-template/core': ^0.0.1-beta.30 '@ibiz-template/core': ^0.0.1-beta.30
'@ibiz-template/model': ^0.0.1-beta.30 '@ibiz-template/model': ^0.0.1-beta.30
...@@ -908,10 +908,10 @@ packages: ...@@ -908,10 +908,10 @@ packages:
qs: ^6.11.0 qs: ^6.11.0
qx-util: ^0.4.4 qx-util: ^0.4.4
dependencies: dependencies:
'@ibiz-template/core': 0.0.1-beta.44_qzytosuu5eg3bvoa74ldx6evva '@ibiz-template/core': 0.0.1-beta.45_qzytosuu5eg3bvoa74ldx6evva
'@ibiz-template/model': 0.0.1-beta.44_nngk5znuztmoeynqrwf7jk7xse '@ibiz-template/model': 0.0.1-beta.45_nngk5znuztmoeynqrwf7jk7xse
'@ibiz-template/runtime': 0.0.1-beta.44_jknvc3m3pbv7cj7kghad7zxdne '@ibiz-template/runtime': 0.0.1-beta.45_vb3m65ek2qqwieoxowjqlpfbfm
'@ibiz-template/service': 0.0.1-beta.44_kcrltozjoki7oueymgwgiwiulq '@ibiz-template/service': 0.0.1-beta.45_rti225zbzf663o3ut5kaezgz7i
async-validator: 4.2.5 async-validator: 4.2.5
dayjs: 1.11.7 dayjs: 1.11.7
lodash-es: 4.17.21 lodash-es: 4.17.21
...@@ -919,8 +919,8 @@ packages: ...@@ -919,8 +919,8 @@ packages:
qx-util: 0.4.4 qx-util: 0.4.4
dev: false dev: false
/@ibiz-template/core/0.0.1-beta.44_qzytosuu5eg3bvoa74ldx6evva: /@ibiz-template/core/0.0.1-beta.45_qzytosuu5eg3bvoa74ldx6evva:
resolution: {integrity: sha512-A0jyXwGnzUszBBlA2ifk+i+FKWRl/SicYBSELnSzsprUp6uYhyRM8UxymgQJ2hvjOu6TLwcnuwZitY7a7SO5hg==} resolution: {integrity: sha512-unVWmpQPuA0hUuweZjS0+vOkErtRYAt4fV8DSLVTESIyHFBKvA56fYLA2Qa750vV1dDELwntvijRYEhRGcPuCA==}
peerDependencies: peerDependencies:
lodash-es: ^4.17.21 lodash-es: ^4.17.21
qx-util: ^0.4.4 qx-util: ^0.4.4
...@@ -935,8 +935,8 @@ packages: ...@@ -935,8 +935,8 @@ packages:
- debug - debug
dev: false dev: false
/@ibiz-template/model/0.0.1-beta.44_nngk5znuztmoeynqrwf7jk7xse: /@ibiz-template/model/0.0.1-beta.45_nngk5znuztmoeynqrwf7jk7xse:
resolution: {integrity: sha512-1aTEvgMNdPAv6pvAyt3f5WoQFTE1qJrbEL0XX269eXVVQz1zQeUEOVPdMPFkS/I9JSPjX1InWeJk/lpNEfIpOA==} resolution: {integrity: sha512-OQXFSeCLCAxNeaLGeFuoTGYIRhxnv4dLMGmjwL6c0vJTY8SPWU537ILSsCHsaTyEWNBm5BajpnRzYJYZQUKj2Q==}
peerDependencies: peerDependencies:
'@ibiz/dynamic-model-api': ^2.1.11 '@ibiz/dynamic-model-api': ^2.1.11
lodash-es: ^4.17.21 lodash-es: ^4.17.21
...@@ -948,42 +948,42 @@ packages: ...@@ -948,42 +948,42 @@ packages:
qx-util: 0.4.4 qx-util: 0.4.4
dev: false dev: false
/@ibiz-template/runtime/0.0.1-beta.44_jknvc3m3pbv7cj7kghad7zxdne: /@ibiz-template/runtime/0.0.1-beta.45_vb3m65ek2qqwieoxowjqlpfbfm:
resolution: {integrity: sha512-4AOwlRM2oWtlYzoOIJtS1i/9M3EhPxRORdVOnCg3PM89hC6Vs8VWK8sW+xPfqX8FHhjMSQFXRoNzkFGeFl4/cQ==} resolution: {integrity: sha512-zke/3sHy4E2ikC3x5yrq13zZac9BzmRr0tOjPckLmcmZhNqkURXu+ob2E1r8T0pwouXh3RLsMe7R4ilDDm7kOw==}
peerDependencies: peerDependencies:
'@ibiz-template/core': ^0.0.1-beta.30 '@ibiz-template/core': ^0.0.1-beta.30
'@ibiz-template/model': ^0.0.1-beta.30 '@ibiz-template/model': ^0.0.1-beta.30
'@ibiz-template/service': ^0.0.1-beta.30 '@ibiz-template/service': ^0.0.1-beta.30
qx-util: ^0.4.4 qx-util: ^0.4.4
dependencies: dependencies:
'@ibiz-template/command': 0.0.1-beta.44 '@ibiz-template/command': 0.0.1-beta.45
'@ibiz-template/core': 0.0.1-beta.44_qzytosuu5eg3bvoa74ldx6evva '@ibiz-template/core': 0.0.1-beta.45_qzytosuu5eg3bvoa74ldx6evva
'@ibiz-template/model': 0.0.1-beta.44_nngk5znuztmoeynqrwf7jk7xse '@ibiz-template/model': 0.0.1-beta.45_nngk5znuztmoeynqrwf7jk7xse
'@ibiz-template/service': 0.0.1-beta.44_kcrltozjoki7oueymgwgiwiulq '@ibiz-template/service': 0.0.1-beta.45_rti225zbzf663o3ut5kaezgz7i
qs: 6.11.0 qs: 6.11.0
qx-util: 0.4.4 qx-util: 0.4.4
dev: false dev: false
/@ibiz-template/service/0.0.1-beta.44_kcrltozjoki7oueymgwgiwiulq: /@ibiz-template/service/0.0.1-beta.45_rti225zbzf663o3ut5kaezgz7i:
resolution: {integrity: sha512-kCZ7nj8Ul0T84cbO5+ugjvasXnD/gc2P2svyYflrLLWtLne7qhiW6qk51s3gvwQeNsj/yI5hkiZ74MhaC9+mNg==} resolution: {integrity: sha512-xFYABBbrJJMInwQvDTTX8tlDGVbJiB/Fj5pa9JPWIwy97NcODObeoJkFk1BQy2HnTwJiOATbRL+s4E2adRSdnw==}
peerDependencies: peerDependencies:
'@ibiz-template/core': ^0.0.1-beta.30 '@ibiz-template/core': ^0.0.1-beta.30
'@ibiz-template/model': ^0.0.1-beta.30 '@ibiz-template/model': ^0.0.1-beta.30
qx-util: ^0.4.4 qx-util: ^0.4.4
ramda: ^0.28.0 ramda: ^0.28.0
dependencies: dependencies:
'@ibiz-template/core': 0.0.1-beta.44_qzytosuu5eg3bvoa74ldx6evva '@ibiz-template/core': 0.0.1-beta.45_qzytosuu5eg3bvoa74ldx6evva
'@ibiz-template/model': 0.0.1-beta.44_nngk5znuztmoeynqrwf7jk7xse '@ibiz-template/model': 0.0.1-beta.45_nngk5znuztmoeynqrwf7jk7xse
qx-util: 0.4.4 qx-util: 0.4.4
ramda: 0.28.0 ramda: 0.28.0
dev: false dev: false
/@ibiz-template/theme/0.0.1-beta.44: /@ibiz-template/theme/0.0.1-beta.45:
resolution: {integrity: sha512-sYdE5XuKglrRSWWxdMVvLNURzLkhHaxNRAVXWS5ThyPsk9v529/ZnN4Am/y/t58y9riqodx+DkL+HQwSsbhGzw==} resolution: {integrity: sha512-lsgfyUqFUOIZWd34qKd2pubpzmfeaSRe81IQEkcdOBWhd5UdBzDfY4ChQhs9AQohMZXct1l+OBk2pDGi7TJNTQ==}
dev: false dev: false
/@ibiz-template/vue-util/0.0.1-beta.44_tzwjhizx3xe4lnwqrqkmwkieae: /@ibiz-template/vue-util/0.0.1-beta.45_y2pdy62rrm3ctb4esspfmsho5a:
resolution: {integrity: sha512-qHHAGg8grboFWHH46KI+UrFHJGjVLqevjmo3EASUKH2iNgD4yANMTU+sRTgIT0Bp4CqxcHllpMY4959rFfqsBA==} resolution: {integrity: sha512-rvmLnQxLQJQBxXV3KwAy7w39RgN3wm1rE9B1R6csGWB8hyou0z9OwJygIz9afAPd1rVmK3LHMi7OVKVPOVfBkA==}
peerDependencies: peerDependencies:
'@ibiz-template/controller': ^0.0.1-beta.30 '@ibiz-template/controller': ^0.0.1-beta.30
'@ibiz-template/core': ^0.0.1-beta.30 '@ibiz-template/core': ^0.0.1-beta.30
...@@ -994,9 +994,9 @@ packages: ...@@ -994,9 +994,9 @@ packages:
vue: ^2.7.14 vue: ^2.7.14
vue-router: ^3.6.5 vue-router: ^3.6.5
dependencies: dependencies:
'@ibiz-template/controller': 0.0.1-beta.44_oxjbnusdps4lblyxtte2ypoxhm '@ibiz-template/controller': 0.0.1-beta.45_ascd52r4b2mz7q73re4ekobrom
'@ibiz-template/core': 0.0.1-beta.44_qzytosuu5eg3bvoa74ldx6evva '@ibiz-template/core': 0.0.1-beta.45_qzytosuu5eg3bvoa74ldx6evva
'@ibiz-template/model': 0.0.1-beta.44_nngk5znuztmoeynqrwf7jk7xse '@ibiz-template/model': 0.0.1-beta.45_nngk5znuztmoeynqrwf7jk7xse
qs: 6.11.0 qs: 6.11.0
qx-util: 0.4.4 qx-util: 0.4.4
ramda: 0.28.0 ramda: 0.28.0
......
...@@ -4,6 +4,6 @@ git commit -m "build: 升级底包" ...@@ -4,6 +4,6 @@ git commit -m "build: 升级底包"
git push git push
git checkout publish git checkout publish
git pull git pull
git merge master git merge vue2
git push git push
git checkout master git checkout vue2
\ No newline at end of file \ No newline at end of file
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { import {
getGridEditorEmits,
getGridInputProps, getGridInputProps,
useGridCellEditor, useGridCellEditor,
useNamespace, useNamespace,
...@@ -8,13 +9,11 @@ import { ...@@ -8,13 +9,11 @@ import {
export const IBizGridCheckbox = defineComponent({ export const IBizGridCheckbox = defineComponent({
name: 'IBizGridCheckbox', name: 'IBizGridCheckbox',
props: getGridInputProps(), props: getGridInputProps(),
setup(props) { emits: getGridEditorEmits(),
setup(props, { emit }) {
const ns = useNamespace('grid-checkbox'); const ns = useNamespace('grid-checkbox');
const { isInfoMode, componentRef, onOperateChange, onChange } = const { isInfoMode, componentRef, onOperateChange, onChange } =
useGridCellEditor(props.rowDataChange, props.rowSave, { useGridCellEditor(props, { emit });
isDelaySave: true,
});
return { return {
ns, ns,
...@@ -35,7 +34,7 @@ export const IBizGridCheckbox = defineComponent({ ...@@ -35,7 +34,7 @@ export const IBizGridCheckbox = defineComponent({
{h('IBizCheckbox', { {h('IBizCheckbox', {
props: { props: {
...this.$props, ...this.$props,
readonly: this.readonly || this.isInfoMode, readonly: this.isInfoMode,
disabled: this.disabled, disabled: this.disabled,
}, },
on: { on: {
......
import { defineComponent, ref } from 'vue'; import { defineComponent, ref } from 'vue';
import { import {
getGridDataPickerProps, getGridDataPickerProps,
getGridEditorEmits,
useGridCellEditor, useGridCellEditor,
useNamespace, useNamespace,
} from '@ibiz-template/vue-util'; } from '@ibiz-template/vue-util';
...@@ -8,31 +9,28 @@ import { ...@@ -8,31 +9,28 @@ import {
export const IBizGridPicker = defineComponent({ export const IBizGridPicker = defineComponent({
name: 'IBizGridPicker', name: 'IBizGridPicker',
props: getGridDataPickerProps(), props: getGridDataPickerProps(),
setup(props) { emits: getGridEditorEmits(),
setup(props, { emit }) {
const ns = useNamespace('grid-picker'); const ns = useNamespace('grid-picker');
const multiple = ['ADDRESSPICKUP_AC', 'ADDRESSPICKUP'].includes(
props.controller.model.editorType,
);
const provider = ref(); const provider = ref();
ibiz.register.editor.get(props.controller.model).then(value => { ibiz.register.editor.get(props.controller.model).then(value => {
provider.value = value; provider.value = value;
}); });
const { isInfoMode, componentRef, onOperateChange, onChange } = const multiple = ['ADDRESSPICKUP_AC', 'ADDRESSPICKUP'].includes(
useGridCellEditor( props.controller.model.editorType,
async (val: unknown, name?: string) => { );
await props.rowDataChange(val, name);
// 最后一次值变更是自身的值变更,name为空,此时执行保存 const { isInfoMode, componentRef, onOperateChange, onChange, onBlur } =
if (!multiple && !name) { useGridCellEditor(props, { emit });
await props.rowSave();
isInfoMode.value = true; const onPickerChange = async (val: unknown, name?: string) => {
} // 最后一次值变更是自身的值变更,name为空,此时执行保存
}, await onChange(val, name);
props.rowSave, if (!multiple && !name) {
{ onBlur();
isDelaySave: true, }
}, };
);
return { return {
ns, ns,
...@@ -40,7 +38,7 @@ export const IBizGridPicker = defineComponent({ ...@@ -40,7 +38,7 @@ export const IBizGridPicker = defineComponent({
componentRef, componentRef,
provider, provider,
onOperateChange, onOperateChange,
onChange, onPickerChange,
}; };
}, },
render(h) { render(h) {
...@@ -55,11 +53,11 @@ export const IBizGridPicker = defineComponent({ ...@@ -55,11 +53,11 @@ export const IBizGridPicker = defineComponent({
h(this.provider.formEditor, { h(this.provider.formEditor, {
props: { props: {
...this.$props, ...this.$props,
readonly: this.readonly || this.isInfoMode, readonly: this.isInfoMode,
disabled: this.disabled, disabled: this.disabled,
}, },
on: { on: {
change: this.onChange, change: this.onPickerChange,
operate: this.onOperateChange, operate: this.onOperateChange,
}, },
})} })}
......
...@@ -84,6 +84,7 @@ export const IBizPicker = defineComponent({ ...@@ -84,6 +84,7 @@ export const IBizPicker = defineComponent({
const onACSelect = async (item: IData) => { const onACSelect = async (item: IData) => {
await handleDataSelect(item); await handleDataSelect(item);
isShowAll.value = true; isShowAll.value = true;
emit('operate', false);
}; };
// 搜索 // 搜索
...@@ -113,10 +114,16 @@ export const IBizPicker = defineComponent({ ...@@ -113,10 +114,16 @@ export const IBizPicker = defineComponent({
// 聚焦 // 聚焦
const onFocus = (e: IData) => { const onFocus = (e: IData) => {
emit('operate', true);
const query = isShowAll.value ? '' : e.target.value; const query = isShowAll.value ? '' : e.target.value;
onSearch(query); onSearch(query);
}; };
// 失焦
const onBlur = () => {
emit('operate', false);
};
const closeCircle = (c.linkView ? 1 : 0) + (c.pickupView ? 1 : 0); const closeCircle = (c.linkView ? 1 : 0) + (c.pickupView ? 1 : 0);
return { return {
...@@ -131,6 +138,7 @@ export const IBizPicker = defineComponent({ ...@@ -131,6 +138,7 @@ export const IBizPicker = defineComponent({
onClear, onClear,
onFocus, onFocus,
closeCircle, closeCircle,
onBlur,
}; };
}, },
render() { render() {
...@@ -177,10 +185,12 @@ export const IBizPicker = defineComponent({ ...@@ -177,10 +185,12 @@ export const IBizPicker = defineComponent({
placeholder={this.c.placeHolder} placeholder={this.c.placeHolder}
placement='bottom' placement='bottom'
clearable clearable
transfer
transfer-class-name={this.ns.e('transfer')} transfer-class-name={this.ns.e('transfer')}
on-on-focus={this.onFocus} on-on-focus={this.onFocus}
on-on-search={this.onSearch} on-on-search={this.onSearch}
on-on-clear={this.onClear} on-on-clear={this.onClear}
on-on-blur={this.onBlur}
disabled={this.disabled} disabled={this.disabled}
> >
{this.items.map(item => { {this.items.map(item => {
......
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { import {
getGridDatePickerProps, getGridDatePickerProps,
getGridEditorEmits,
useGridCellEditor, useGridCellEditor,
useNamespace, useNamespace,
} from '@ibiz-template/vue-util'; } from '@ibiz-template/vue-util';
...@@ -8,16 +9,16 @@ import { ...@@ -8,16 +9,16 @@ import {
export const IBizGridDatePicker = defineComponent({ export const IBizGridDatePicker = defineComponent({
name: 'IBizGridDatePicker', name: 'IBizGridDatePicker',
props: getGridDatePickerProps(), props: getGridDatePickerProps(),
setup(props) { emits: getGridEditorEmits(),
setup(props, { emit }) {
const ns = useNamespace('grid-date-picker'); const ns = useNamespace('grid-date-picker');
const { isInfoMode, componentRef, onOperateChange, onChange } = const { isInfoMode, componentRef, autoFocus, onOperateChange, onChange } =
useGridCellEditor(props.rowDataChange, props.rowSave, { useGridCellEditor(props, { emit });
isDelaySave: true,
});
return { return {
ns, ns,
isInfoMode, isInfoMode,
autoFocus,
componentRef, componentRef,
onOperateChange, onOperateChange,
onChange, onChange,
...@@ -34,9 +35,9 @@ export const IBizGridDatePicker = defineComponent({ ...@@ -34,9 +35,9 @@ export const IBizGridDatePicker = defineComponent({
{h('IBizDatePicker', { {h('IBizDatePicker', {
props: { props: {
...this.$props, ...this.$props,
readonly: this.readonly || this.isInfoMode, readonly: this.isInfoMode,
disabled: this.disabled, disabled: this.disabled,
autoFocus: true, autoFocus: this.autoFocus,
}, },
on: { on: {
change: this.onChange, change: this.onChange,
......
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { import {
getGridDropdownProps, getGridDropdownProps,
getGridEditorEmits,
useGridCellEditor, useGridCellEditor,
useNamespace, useNamespace,
} from '@ibiz-template/vue-util'; } from '@ibiz-template/vue-util';
...@@ -8,19 +9,35 @@ import { ...@@ -8,19 +9,35 @@ import {
export const IBizGridDropdown = defineComponent({ export const IBizGridDropdown = defineComponent({
name: 'IBizGridDropdown', name: 'IBizGridDropdown',
props: getGridDropdownProps(), props: getGridDropdownProps(),
setup(props) { emits: getGridEditorEmits(),
setup(props, { emit }) {
const ns = useNamespace('grid-dropdown'); const ns = useNamespace('grid-dropdown');
const { isInfoMode, componentRef, onOperateChange, onChange } = const {
useGridCellEditor(props.rowDataChange, props.rowSave, { isInfoMode,
isDelaySave: props.controller.multiple, autoFocus,
}); componentRef,
onOperateChange,
onChange,
onBlur,
} = useGridCellEditor(props, {
emit,
});
const onDropDownChange = async (val: unknown, name?: string) => {
await onChange(val, name);
// 单选时失焦触发行编辑失焦
if (!props.controller.multiple) {
onBlur();
}
};
return { return {
ns, ns,
isInfoMode, isInfoMode,
autoFocus,
componentRef, componentRef,
onOperateChange, onOperateChange,
onChange, onDropDownChange,
}; };
}, },
render(h) { render(h) {
...@@ -34,12 +51,12 @@ export const IBizGridDropdown = defineComponent({ ...@@ -34,12 +51,12 @@ export const IBizGridDropdown = defineComponent({
{h('IBizDropdown', { {h('IBizDropdown', {
props: { props: {
...this.$props, ...this.$props,
readonly: this.readonly || this.isInfoMode, readonly: this.isInfoMode,
disabled: this.disabled, disabled: this.disabled,
autoFocus: true, autoFocus: this.autoFocus,
}, },
on: { on: {
change: this.onChange, change: this.onDropDownChange,
operate: this.onOperateChange, operate: this.onOperateChange,
}, },
})} })}
......
...@@ -15,7 +15,12 @@ export const GridEditor = defineComponent({ ...@@ -15,7 +15,12 @@ export const GridEditor = defineComponent({
setup(props) { setup(props) {
const ns = useNamespace('grid-editor'); const ns = useNamespace('grid-editor');
const editable = computed(() => { const editable = computed(() => {
return !props.disabled && !props.readonly; return (
!props.disabled &&
!props.readonly &&
// 单元格模式下才会显示悬浮编辑状态
ibiz.config.gridEditShowMode === 'cell'
);
}); });
return { ns, editable }; return { ns, editable };
}, },
......
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { import {
getGridEditorEmits,
getGridRadioProps, getGridRadioProps,
useGridCellEditor, useGridCellEditor,
useNamespace, useNamespace,
...@@ -8,19 +9,26 @@ import { ...@@ -8,19 +9,26 @@ import {
export const IBizGridRadio = defineComponent({ export const IBizGridRadio = defineComponent({
name: 'IBizGridRadio', name: 'IBizGridRadio',
props: getGridRadioProps(), props: getGridRadioProps(),
setup(props) { emits: getGridEditorEmits(),
setup(props, { emit }) {
const ns = useNamespace('grid-radio'); const ns = useNamespace('grid-radio');
const { isInfoMode, componentRef, onOperateChange, onChange } = const { isInfoMode, componentRef, onOperateChange, onChange, onBlur } =
useGridCellEditor(props.rowDataChange, props.rowSave, { useGridCellEditor(props, {
isDelaySave: false, emit,
}); });
const onRadioChange = async (val: unknown, name?: string) => {
await onChange(val, name);
// 选中后就失焦
onBlur();
};
return { return {
ns, ns,
isInfoMode, isInfoMode,
componentRef, componentRef,
onOperateChange, onOperateChange,
onChange, onRadioChange,
}; };
}, },
render(h) { render(h) {
...@@ -34,11 +42,11 @@ export const IBizGridRadio = defineComponent({ ...@@ -34,11 +42,11 @@ export const IBizGridRadio = defineComponent({
{h('IBizRadio', { {h('IBizRadio', {
props: { props: {
...this.$props, ...this.$props,
readonly: this.readonly || this.isInfoMode, readonly: this.isInfoMode,
disabled: this.disabled, disabled: this.disabled,
}, },
on: { on: {
change: this.onChange, change: this.onRadioChange,
operate: this.onOperateChange, operate: this.onOperateChange,
}, },
})} })}
......
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { import {
getGridEditorEmits,
getGridInputNumberProps, getGridInputNumberProps,
useGridCellEditor, useGridCellEditor,
useNamespace, useNamespace,
...@@ -8,16 +9,16 @@ import { ...@@ -8,16 +9,16 @@ import {
export const IBizGridInputNumber = defineComponent({ export const IBizGridInputNumber = defineComponent({
name: 'IBizGridInputNumber', name: 'IBizGridInputNumber',
props: getGridInputNumberProps(), props: getGridInputNumberProps(),
setup(props) { emits: getGridEditorEmits(),
setup(props, { emit }) {
const ns = useNamespace('grid-input-number'); const ns = useNamespace('grid-input-number');
const { isInfoMode, componentRef, onOperateChange, onChange } = const { isInfoMode, autoFocus, componentRef, onOperateChange, onChange } =
useGridCellEditor(props.rowDataChange, props.rowSave, { useGridCellEditor(props, { emit });
isDelaySave: true,
});
return { return {
ns, ns,
isInfoMode, isInfoMode,
autoFocus,
componentRef, componentRef,
onOperateChange, onOperateChange,
onChange, onChange,
...@@ -34,9 +35,9 @@ export const IBizGridInputNumber = defineComponent({ ...@@ -34,9 +35,9 @@ export const IBizGridInputNumber = defineComponent({
{h('IBizInputNumber', { {h('IBizInputNumber', {
props: { props: {
...this.$props, ...this.$props,
readonly: this.readonly || this.isInfoMode, readonly: this.isInfoMode,
disabled: this.disabled, disabled: this.disabled,
autoFocus: true, autoFocus: this.autoFocus,
}, },
on: { on: {
change: this.onChange, change: this.onChange,
......
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { import {
getGridEditorEmits,
getGridInputProps, getGridInputProps,
useGridCellEditor, useGridCellEditor,
useNamespace, useNamespace,
...@@ -8,16 +9,16 @@ import { ...@@ -8,16 +9,16 @@ import {
export const IBizGridInput = defineComponent({ export const IBizGridInput = defineComponent({
name: 'IBizGridInput', name: 'IBizGridInput',
props: getGridInputProps(), props: getGridInputProps(),
setup(props) { emits: getGridEditorEmits(),
setup(props, { emit }) {
const ns = useNamespace('grid-input'); const ns = useNamespace('grid-input');
const { isInfoMode, componentRef, onOperateChange, onChange } = const { isInfoMode, autoFocus, componentRef, onOperateChange, onChange } =
useGridCellEditor(props.rowDataChange, props.rowSave, { useGridCellEditor(props, { emit });
isDelaySave: true,
});
return { return {
ns, ns,
isInfoMode, isInfoMode,
autoFocus,
componentRef, componentRef,
onOperateChange, onOperateChange,
onChange, onChange,
...@@ -34,9 +35,9 @@ export const IBizGridInput = defineComponent({ ...@@ -34,9 +35,9 @@ export const IBizGridInput = defineComponent({
{h('IBizInput', { {h('IBizInput', {
props: { props: {
...this.$props, ...this.$props,
readonly: this.readonly || this.isInfoMode, readonly: this.isInfoMode,
disabled: this.disabled, disabled: this.disabled,
autoFocus: true, autoFocus: this.autoFocus,
}, },
on: { on: {
change: this.onChange, change: this.onChange,
......
...@@ -56,10 +56,15 @@ export const IBizInput = defineComponent({ ...@@ -56,10 +56,15 @@ export const IBizInput = defineComponent({
let isDebounce = false; let isDebounce = false;
let awaitSearch: () => void; let awaitSearch: () => void;
let blurCacheValue: string | undefined;
// 防抖值变更回调 // 防抖值变更回调
const debounceChange = debounce( const debounceChange = debounce(
(e: IData) => { (e: IData) => {
emit('change', e.target.value); // 拦截掉blur触发后change
if (blurCacheValue !== e.target.value) {
emit('change', e.target.value);
}
blurCacheValue = undefined;
isDebounce = false; isDebounce = false;
if (awaitSearch) { if (awaitSearch) {
awaitSearch(); awaitSearch();
...@@ -84,6 +89,16 @@ export const IBizInput = defineComponent({ ...@@ -84,6 +89,16 @@ export const IBizInput = defineComponent({
} }
}; };
/**
* blur时马上抛值变更
* @author lxm
* @date 2023-03-06 06:36:23
*/
const handleBlur = () => {
blurCacheValue = inputRef.value.currentValue;
emit('change', blurCacheValue);
};
// 自动聚焦 // 自动聚焦
if (props.autoFocus) { if (props.autoFocus) {
watch(inputRef, newVal => { watch(inputRef, newVal => {
...@@ -101,6 +116,7 @@ export const IBizInput = defineComponent({ ...@@ -101,6 +116,7 @@ export const IBizInput = defineComponent({
currentVal, currentVal,
handleChange, handleChange,
handleKeyUp, handleKeyUp,
handleBlur,
inputRef, inputRef,
}; };
}, },
...@@ -124,6 +140,7 @@ export const IBizInput = defineComponent({ ...@@ -124,6 +140,7 @@ export const IBizInput = defineComponent({
type={this.type} type={this.type}
rows={this.rows} rows={this.rows}
on-on-change={this.handleChange} on-on-change={this.handleChange}
on-on-blur={this.handleBlur}
nativeOnkeyup={this.handleKeyUp} nativeOnkeyup={this.handleKeyUp}
class={this.ns.b('input')} class={this.ns.b('input')}
disabled={this.disabled} disabled={this.disabled}
......
/* eslint-disable no-param-reassign */ /* eslint-disable no-param-reassign */
import { RuntimeError } from '@ibiz-template/core'; import { RuntimeError } from '@ibiz-template/core';
import { import {
getGridEditorEmits,
getGridUploadProps, getGridUploadProps,
useEventListener, useEventListener,
useNamespace, useNamespace,
...@@ -17,7 +18,8 @@ import '@ibiz-template/theme/style/components/editor/ibiz-grid-file-upload/ibiz- ...@@ -17,7 +18,8 @@ import '@ibiz-template/theme/style/components/editor/ibiz-grid-file-upload/ibiz-
export const IBizGridFileUpload = defineComponent({ export const IBizGridFileUpload = defineComponent({
name: 'IBizGridFileUpload', name: 'IBizGridFileUpload',
props: getGridUploadProps(), props: getGridUploadProps(),
setup(props) { emits: getGridEditorEmits(),
setup(props, { emit }) {
const ns = useNamespace('grid-file-upload'); const ns = useNamespace('grid-file-upload');
// 初始化文件上传编辑器的数据解析 // 初始化文件上传编辑器的数据解析
...@@ -80,14 +82,14 @@ export const IBizGridFileUpload = defineComponent({ ...@@ -80,14 +82,14 @@ export const IBizGridFileUpload = defineComponent({
resultFiles.map(file => ({ name: file.name, id: file.id })), resultFiles.map(file => ({ name: file.name, id: file.id })),
) )
: null; : null;
await props.rowDataChange(valueStr); emit('change', valueStr);
await props.rowSave(); emit('rowSave');
} }
}; };
// 非禁用的时候点击打开飘窗 // 非禁用和只读的时候点击打开飘窗
useEventListener(componentRef, 'click', _evt => { useEventListener(componentRef, 'click', _evt => {
if (!props.disabled) { if (!props.disabled && !props.readonly) {
openPopover(); openPopover();
} }
}); });
......
...@@ -87,7 +87,10 @@ export const GridFieldEditColumn = defineComponent({ ...@@ -87,7 +87,10 @@ export const GridFieldEditColumn = defineComponent({
// 单元格行编辑下,单个出禁用无意义,所以禁用走的还是只读 // 单元格行编辑下,单个出禁用无意义,所以禁用走的还是只读
disabled: false, disabled: false,
readonly: this.isReadonly, readonly: this.isReadonly,
rowDataChange: this.rowDataChange.bind(this), hasError: !!this.row.errors[codeName],
},
on: {
change: this.rowDataChange.bind(this),
rowSave: this.rowSave.bind(this), rowSave: this.rowSave.bind(this),
}, },
})} })}
......
...@@ -26,6 +26,7 @@ export class DataPickerEditorProvider implements IEditorProvider { ...@@ -26,6 +26,7 @@ export class DataPickerEditorProvider implements IEditorProvider {
componentName = 'IBizPickerDropDown'; componentName = 'IBizPickerDropDown';
break; break;
case 'PICKEREX_LINK': case 'PICKEREX_LINK':
case 'PICKEREX_LINKONLY':
componentName = 'IBizPickerLink'; componentName = 'IBizPickerLink';
break; break;
case 'ADDRESSPICKUP': case 'ADDRESSPICKUP':
......
...@@ -83,6 +83,10 @@ export function presetEditorProvider(): void { ...@@ -83,6 +83,10 @@ export function presetEditorProvider(): void {
'PICKEREX_LINK', 'PICKEREX_LINK',
new DataPickerEditorProvider('PICKEREX_LINK'), new DataPickerEditorProvider('PICKEREX_LINK'),
); );
editorRegister.register(
'PICKEREX_LINKONLY',
new DataPickerEditorProvider('PICKEREX_LINKONLY'),
);
editorRegister.register( editorRegister.register(
'ADDRESSPICKUP', 'ADDRESSPICKUP',
new DataPickerEditorProvider('ADDRESSPICKUP'), new DataPickerEditorProvider('ADDRESSPICKUP'),
......
...@@ -637,61 +637,61 @@ ...@@ -637,61 +637,61 @@
resolved "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz" resolved "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz"
integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==
"@ibiz-template/command@^0.0.1-beta.44": "@ibiz-template/command@^0.0.1-beta.45":
version "0.0.1-beta.44" version "0.0.1-beta.45"
resolved "http://npm.zhr.icu/@ibiz-template%2fcommand/-/command-0.0.1-beta.44.tgz#a1e491fb3c0871ac67f082ee239f73b99c9fe324" resolved "http://npm.zhr.icu/@ibiz-template%2fcommand/-/command-0.0.1-beta.45.tgz#3fcdf95f60416d9398cffacef9abbf50540f8a2d"
integrity sha512-KEzd0WO1YlaW28ptLbELeZ88f8Hm4DQYxqCjamRFnlUAvInIaae8Zl55VNqfN/PWWbyHAGfmzcaQxeAyG4mbkw== integrity sha512-o/LTY7RiU/pn+vClhoSJLMdaO+l8lECT9UEyPCdrqwYdLo0/xbBiIPhYqHiCrmNpABIbsOEUlRo2i+aZb2R42Q==
dependencies: dependencies:
qx-util "^0.4.4" qx-util "^0.4.4"
"@ibiz-template/controller@^0.0.1-beta.44": "@ibiz-template/controller@^0.0.1-beta.45":
version "0.0.1-beta.44" version "0.0.1-beta.45"
resolved "http://npm.zhr.icu/@ibiz-template%2fcontroller/-/controller-0.0.1-beta.44.tgz#7e7bb85f8fb87fc44bb388c144da5d75dee23ac8" resolved "http://npm.zhr.icu/@ibiz-template%2fcontroller/-/controller-0.0.1-beta.45.tgz#499ab4325b0632ee83d48a6b3e7351641ff427f1"
integrity sha512-OWoibmIx0YyB+Bd7YlZQkWDr2qeaZr910p85N/i0QKWjzanImv7xk2e3DupIWRbtXid6IukCzMw/K5nK7kLN+w== integrity sha512-Bc0oJgvH2QoAM3b/BLkxeVea1yZv5+oFIQAnkuDfFGoJ/4P52cYGXJhHjOGJB40w1zlPJOM32Wj2mLNVc8C2bA==
dependencies: dependencies:
async-validator "^4.2.5" async-validator "^4.2.5"
dayjs "^1.11.5" dayjs "^1.11.5"
"@ibiz-template/core@^0.0.1-beta.44": "@ibiz-template/core@^0.0.1-beta.45":
version "0.0.1-beta.44" version "0.0.1-beta.45"
resolved "http://npm.zhr.icu/@ibiz-template%2fcore/-/core-0.0.1-beta.44.tgz#ff2be50ff8216895159555e528b02fcca0638c77" resolved "http://npm.zhr.icu/@ibiz-template%2fcore/-/core-0.0.1-beta.45.tgz#a7886e2b27cfdee14cdc6814e444357091a344bf"
integrity sha512-A0jyXwGnzUszBBlA2ifk+i+FKWRl/SicYBSELnSzsprUp6uYhyRM8UxymgQJ2hvjOu6TLwcnuwZitY7a7SO5hg== integrity sha512-unVWmpQPuA0hUuweZjS0+vOkErtRYAt4fV8DSLVTESIyHFBKvA56fYLA2Qa750vV1dDELwntvijRYEhRGcPuCA==
dependencies: dependencies:
axios "^1.2.1" axios "^1.2.1"
loglevel "^1.8.0" loglevel "^1.8.0"
pluralize "^8.0.0" pluralize "^8.0.0"
qs "^6.11.0" qs "^6.11.0"
"@ibiz-template/model@^0.0.1-beta.44": "@ibiz-template/model@^0.0.1-beta.45":
version "0.0.1-beta.44" version "0.0.1-beta.45"
resolved "http://npm.zhr.icu/@ibiz-template%2fmodel/-/model-0.0.1-beta.44.tgz#ead6c4139e355b79323d367cd0922c802b2227fc" resolved "http://npm.zhr.icu/@ibiz-template%2fmodel/-/model-0.0.1-beta.45.tgz#4dd27c4c4dfdd9ae3c9cbaa4a20dace8ff79f882"
integrity sha512-1aTEvgMNdPAv6pvAyt3f5WoQFTE1qJrbEL0XX269eXVVQz1zQeUEOVPdMPFkS/I9JSPjX1InWeJk/lpNEfIpOA== integrity sha512-OQXFSeCLCAxNeaLGeFuoTGYIRhxnv4dLMGmjwL6c0vJTY8SPWU537ILSsCHsaTyEWNBm5BajpnRzYJYZQUKj2Q==
dependencies: dependencies:
"@ibiz/dynamic-model-api" "^2.1.11" "@ibiz/dynamic-model-api" "^2.1.11"
pluralize "^8.0.0" pluralize "^8.0.0"
"@ibiz-template/runtime@^0.0.1-beta.44": "@ibiz-template/runtime@^0.0.1-beta.45":
version "0.0.1-beta.44" version "0.0.1-beta.45"
resolved "http://npm.zhr.icu/@ibiz-template%2fruntime/-/runtime-0.0.1-beta.44.tgz#2fa355071e9ef718fd739395f5c50760a232754c" resolved "http://npm.zhr.icu/@ibiz-template%2fruntime/-/runtime-0.0.1-beta.45.tgz#340c85ef916c70274b87c7ed0378fc42799a651f"
integrity sha512-4AOwlRM2oWtlYzoOIJtS1i/9M3EhPxRORdVOnCg3PM89hC6Vs8VWK8sW+xPfqX8FHhjMSQFXRoNzkFGeFl4/cQ== integrity sha512-zke/3sHy4E2ikC3x5yrq13zZac9BzmRr0tOjPckLmcmZhNqkURXu+ob2E1r8T0pwouXh3RLsMe7R4ilDDm7kOw==
dependencies: dependencies:
"@ibiz-template/command" "^0.0.1-beta.44" "@ibiz-template/command" "^0.0.1-beta.45"
qs "^6.11.0" qs "^6.11.0"
"@ibiz-template/service@^0.0.1-beta.44": "@ibiz-template/service@^0.0.1-beta.45":
version "0.0.1-beta.44" version "0.0.1-beta.45"
resolved "http://npm.zhr.icu/@ibiz-template%2fservice/-/service-0.0.1-beta.44.tgz#974a92bafa7e4bbe4c7834c6ed156e8f148155c7" resolved "http://npm.zhr.icu/@ibiz-template%2fservice/-/service-0.0.1-beta.45.tgz#a973a0def6fdb1d1abc52cb2137d6e018cb4a94d"
integrity sha512-kCZ7nj8Ul0T84cbO5+ugjvasXnD/gc2P2svyYflrLLWtLne7qhiW6qk51s3gvwQeNsj/yI5hkiZ74MhaC9+mNg== integrity sha512-xFYABBbrJJMInwQvDTTX8tlDGVbJiB/Fj5pa9JPWIwy97NcODObeoJkFk1BQy2HnTwJiOATbRL+s4E2adRSdnw==
"@ibiz-template/theme@^0.0.1-beta.44": "@ibiz-template/theme@^0.0.1-beta.45":
version "0.0.1-beta.44" version "0.0.1-beta.45"
resolved "http://npm.zhr.icu/@ibiz-template%2ftheme/-/theme-0.0.1-beta.44.tgz#ab155378c41b710e4c2d48eea0e1c1993b644fdb" resolved "http://npm.zhr.icu/@ibiz-template%2ftheme/-/theme-0.0.1-beta.45.tgz#a4998f93d01e5c6e93daf3f8d4103a373630ea97"
integrity sha512-sYdE5XuKglrRSWWxdMVvLNURzLkhHaxNRAVXWS5ThyPsk9v529/ZnN4Am/y/t58y9riqodx+DkL+HQwSsbhGzw== integrity sha512-lsgfyUqFUOIZWd34qKd2pubpzmfeaSRe81IQEkcdOBWhd5UdBzDfY4ChQhs9AQohMZXct1l+OBk2pDGi7TJNTQ==
"@ibiz-template/vue-util@^0.0.1-beta.44": "@ibiz-template/vue-util@^0.0.1-beta.45":
version "0.0.1-beta.44" version "0.0.1-beta.45"
resolved "http://npm.zhr.icu/@ibiz-template%2fvue-util/-/vue-util-0.0.1-beta.44.tgz#47eb74e7990e50dbd2465ff691c37aa7addca854" resolved "http://npm.zhr.icu/@ibiz-template%2fvue-util/-/vue-util-0.0.1-beta.45.tgz#f4bb6b6abc1e5bb9af4740ce69a0fbefbc697108"
integrity sha512-qHHAGg8grboFWHH46KI+UrFHJGjVLqevjmo3EASUKH2iNgD4yANMTU+sRTgIT0Bp4CqxcHllpMY4959rFfqsBA== integrity sha512-rvmLnQxLQJQBxXV3KwAy7w39RgN3wm1rE9B1R6csGWB8hyou0z9OwJygIz9afAPd1rVmK3LHMi7OVKVPOVfBkA==
"@ibiz/dynamic-model-api@^2.1.11": "@ibiz/dynamic-model-api@^2.1.11":
version "2.1.11" version "2.1.11"
......
...@@ -1209,16 +1209,16 @@ ...@@ -1209,16 +1209,16 @@
"mOSFilePath" : "pssysapps/TemplatePublish/psappviewmsggroups/VMGroup2", "mOSFilePath" : "pssysapps/TemplatePublish/psappviewmsggroups/VMGroup2",
"name" : "视图消息组2", "name" : "视图消息组2",
"getPSAppViewMsgGroupDetails" : [ { "getPSAppViewMsgGroupDetails" : [ {
"name" : "视图消息2", "name" : "视图消息",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg3" "id" : "ViewMsg2"
} }
}, { }, {
"name" : "视图消息", "name" : "视图消息2",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg2" "id" : "ViewMsg3"
} }
} ], } ],
"rTMOSFilePath" : "pssysapps/TemplatePublish/psappviewmsggroups/VMGroup2" "rTMOSFilePath" : "pssysapps/TemplatePublish/psappviewmsggroups/VMGroup2"
......
...@@ -37,125 +37,6 @@ ...@@ -37,125 +37,6 @@
} }
} ], } ],
"getPSDEFormItemVRs" : [ { "getPSDEFormItemVRs" : [ {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule7",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7",
"name" : "field6值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "[条件组]AND",
"getPSDEFVRConditions" : [ {
"condOp" : "NOTEQ",
"condType" : "SIMPLE",
"dEFName" : "FIELD6",
"name" : "[常规条件] 不等于(<>) (20)",
"paramValue" : "20"
}, {
"condOp" : "GT",
"condType" : "SIMPLE",
"dEFName" : "FIELD6",
"name" : "[常规条件] 大于(>) (5)",
"paramValue" : "5"
} ],
"ruleInfo" : ">5并且不等于20"
} ],
"ruleInfo" : ">5并且不等于20"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7",
"ruleInfo" : ">5并且不等于20",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "field6",
"valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule8",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"name" : "field7值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "OR",
"condType" : "GROUP",
"name" : "[条件组]OR",
"getPSDEFVRConditions" : [ {
"condType" : "VALUERANGE2",
"dEFName" : "FIELD7",
"maxValue" : 20.0,
"minValue" : 10.0,
"name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0",
"ruleInfo" : "数值必须大于等于[10.0]且小于等于[20.0]",
"includeMaxValue" : true,
"includeMinValue" : true
}, {
"condType" : "VALUERANGE2",
"dEFName" : "FIELD7",
"maxValue" : 40.0,
"minValue" : 30.0,
"name" : "[数值范围] 大于等于 30.0 且 小于等于 40.0",
"ruleInfo" : "数值必须大于等于[30.0]且小于等于[40.0]",
"includeMaxValue" : true,
"includeMinValue" : true
} ],
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
} ],
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "field7",
"valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule",
"name" : "amount值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "EQ",
"condType" : "SIMPLE",
"dEFName" : "AMOUNT",
"name" : "[常规条件] 等于(=) (100)",
"paramType" : "SRCENTITYFIELD",
"paramValue" : "100",
"ruleInfo" : "amount等于100"
} ],
"ruleInfo" : "amount等于100"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule",
"ruleInfo" : "amount等于100",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "amount",
"valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
...@@ -328,6 +209,37 @@ ...@@ -328,6 +209,37 @@
}, },
"getPSDEFormItemName" : "field4", "getPSDEFormItemName" : "field4",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule",
"name" : "amount值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "EQ",
"condType" : "SIMPLE",
"dEFName" : "AMOUNT",
"name" : "[常规条件] 等于(=) (100)",
"paramType" : "SRCENTITYFIELD",
"paramValue" : "100",
"ruleInfo" : "amount等于100"
} ],
"ruleInfo" : "amount等于100"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule",
"ruleInfo" : "amount等于100",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "amount",
"valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
...@@ -391,6 +303,94 @@ ...@@ -391,6 +303,94 @@
}, },
"getPSDEFormItemName" : "field8", "getPSDEFormItemName" : "field8",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule7",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7",
"name" : "field6值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "[条件组]AND",
"getPSDEFVRConditions" : [ {
"condOp" : "NOTEQ",
"condType" : "SIMPLE",
"dEFName" : "FIELD6",
"name" : "[常规条件] 不等于(<>) (20)",
"paramValue" : "20"
}, {
"condOp" : "GT",
"condType" : "SIMPLE",
"dEFName" : "FIELD6",
"name" : "[常规条件] 大于(>) (5)",
"paramValue" : "5"
} ],
"ruleInfo" : ">5并且不等于20"
} ],
"ruleInfo" : ">5并且不等于20"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7",
"ruleInfo" : ">5并且不等于20",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "field6",
"valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule8",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"name" : "field7值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "OR",
"condType" : "GROUP",
"name" : "[条件组]OR",
"getPSDEFVRConditions" : [ {
"condType" : "VALUERANGE2",
"dEFName" : "FIELD7",
"maxValue" : 20.0,
"minValue" : 10.0,
"name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0",
"ruleInfo" : "数值必须大于等于[10.0]且小于等于[20.0]",
"includeMaxValue" : true,
"includeMinValue" : true
}, {
"condType" : "VALUERANGE2",
"dEFName" : "FIELD7",
"maxValue" : 40.0,
"minValue" : 30.0,
"name" : "[数值范围] 大于等于 30.0 且 小于等于 40.0",
"ruleInfo" : "数值必须大于等于[30.0]且小于等于[40.0]",
"includeMaxValue" : true,
"includeMinValue" : true
} ],
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
} ],
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "field7",
"valueRuleType" : "DEFVALUERULE"
} ], } ],
"getPSDEFormItems" : [ { "getPSDEFormItems" : [ {
"id" : "srfupdatedate", "id" : "srfupdatedate",
......
...@@ -166,125 +166,6 @@ ...@@ -166,125 +166,6 @@
"id" : "FORM" "id" : "FORM"
}, },
"getPSDEFormItemVRs" : [ { "getPSDEFormItemVRs" : [ {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule7",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7",
"name" : "field6值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "[条件组]AND",
"getPSDEFVRConditions" : [ {
"condOp" : "NOTEQ",
"condType" : "SIMPLE",
"dEFName" : "FIELD6",
"name" : "[常规条件] 不等于(<>) (20)",
"paramValue" : "20"
}, {
"condOp" : "GT",
"condType" : "SIMPLE",
"dEFName" : "FIELD6",
"name" : "[常规条件] 大于(>) (5)",
"paramValue" : "5"
} ],
"ruleInfo" : ">5并且不等于20"
} ],
"ruleInfo" : ">5并且不等于20"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7",
"ruleInfo" : ">5并且不等于20",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "field6",
"valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule8",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"name" : "field7值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "OR",
"condType" : "GROUP",
"name" : "[条件组]OR",
"getPSDEFVRConditions" : [ {
"condType" : "VALUERANGE2",
"dEFName" : "FIELD7",
"maxValue" : 20.0,
"minValue" : 10.0,
"name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0",
"ruleInfo" : "数值必须大于等于[10.0]且小于等于[20.0]",
"includeMaxValue" : true,
"includeMinValue" : true
}, {
"condType" : "VALUERANGE2",
"dEFName" : "FIELD7",
"maxValue" : 40.0,
"minValue" : 30.0,
"name" : "[数值范围] 大于等于 30.0 且 小于等于 40.0",
"ruleInfo" : "数值必须大于等于[30.0]且小于等于[40.0]",
"includeMaxValue" : true,
"includeMinValue" : true
} ],
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
} ],
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "field7",
"valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule",
"name" : "amount值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "EQ",
"condType" : "SIMPLE",
"dEFName" : "AMOUNT",
"name" : "[常规条件] 等于(=) (100)",
"paramType" : "SRCENTITYFIELD",
"paramValue" : "100",
"ruleInfo" : "amount等于100"
} ],
"ruleInfo" : "amount等于100"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule",
"ruleInfo" : "amount等于100",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "amount",
"valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
...@@ -457,6 +338,37 @@ ...@@ -457,6 +338,37 @@
}, },
"getPSDEFormItemName" : "field4", "getPSDEFormItemName" : "field4",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule",
"name" : "amount值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "EQ",
"condType" : "SIMPLE",
"dEFName" : "AMOUNT",
"name" : "[常规条件] 等于(=) (100)",
"paramType" : "SRCENTITYFIELD",
"paramValue" : "100",
"ruleInfo" : "amount等于100"
} ],
"ruleInfo" : "amount等于100"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule",
"ruleInfo" : "amount等于100",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "amount",
"valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
...@@ -520,6 +432,94 @@ ...@@ -520,6 +432,94 @@
}, },
"getPSDEFormItemName" : "field8", "getPSDEFormItemName" : "field8",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule7",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7",
"name" : "field6值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "[条件组]AND",
"getPSDEFVRConditions" : [ {
"condOp" : "NOTEQ",
"condType" : "SIMPLE",
"dEFName" : "FIELD6",
"name" : "[常规条件] 不等于(<>) (20)",
"paramValue" : "20"
}, {
"condOp" : "GT",
"condType" : "SIMPLE",
"dEFName" : "FIELD6",
"name" : "[常规条件] 大于(>) (5)",
"paramValue" : "5"
} ],
"ruleInfo" : ">5并且不等于20"
} ],
"ruleInfo" : ">5并且不等于20"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7",
"ruleInfo" : ">5并且不等于20",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "field6",
"valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule8",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"name" : "field7值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "OR",
"condType" : "GROUP",
"name" : "[条件组]OR",
"getPSDEFVRConditions" : [ {
"condType" : "VALUERANGE2",
"dEFName" : "FIELD7",
"maxValue" : 20.0,
"minValue" : 10.0,
"name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0",
"ruleInfo" : "数值必须大于等于[10.0]且小于等于[20.0]",
"includeMaxValue" : true,
"includeMinValue" : true
}, {
"condType" : "VALUERANGE2",
"dEFName" : "FIELD7",
"maxValue" : 40.0,
"minValue" : 30.0,
"name" : "[数值范围] 大于等于 30.0 且 小于等于 40.0",
"ruleInfo" : "数值必须大于等于[30.0]且小于等于[40.0]",
"includeMaxValue" : true,
"includeMinValue" : true
} ],
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
} ],
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "field7",
"valueRuleType" : "DEFVALUERULE"
} ], } ],
"getPSDEFormItems" : [ { "getPSDEFormItems" : [ {
"id" : "srfupdatedate", "id" : "srfupdatedate",
......
...@@ -2311,16 +2311,16 @@ ...@@ -2311,16 +2311,16 @@
"mOSFilePath" : "pssysapps/Web/psappviewmsggroups/VMGroup2", "mOSFilePath" : "pssysapps/Web/psappviewmsggroups/VMGroup2",
"name" : "视图消息组2", "name" : "视图消息组2",
"getPSAppViewMsgGroupDetails" : [ { "getPSAppViewMsgGroupDetails" : [ {
"name" : "视图消息2", "name" : "视图消息",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg3" "id" : "ViewMsg2"
} }
}, { }, {
"name" : "视图消息", "name" : "视图消息2",
"getPSAppViewMsg" : { "getPSAppViewMsg" : {
"modelref" : true, "modelref" : true,
"id" : "ViewMsg2" "id" : "ViewMsg3"
} }
} ], } ],
"rTMOSFilePath" : "pssysapps/Web/psappviewmsggroups/VMGroup2" "rTMOSFilePath" : "pssysapps/Web/psappviewmsggroups/VMGroup2"
...@@ -17194,125 +17194,6 @@ ...@@ -17194,125 +17194,6 @@
"id" : "FORM" "id" : "FORM"
}, },
"getPSDEFormItemVRs" : [ { "getPSDEFormItemVRs" : [ {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule7",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7",
"name" : "field6值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "[条件组]AND",
"getPSDEFVRConditions" : [ {
"condOp" : "NOTEQ",
"condType" : "SIMPLE",
"dEFName" : "FIELD6",
"name" : "[常规条件] 不等于(<>) (20)",
"paramValue" : "20"
}, {
"condOp" : "GT",
"condType" : "SIMPLE",
"dEFName" : "FIELD6",
"name" : "[常规条件] 大于(>) (5)",
"paramValue" : "5"
} ],
"ruleInfo" : ">5并且不等于20"
} ],
"ruleInfo" : ">5并且不等于20"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7",
"ruleInfo" : ">5并且不等于20",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "field6",
"valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule8",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"name" : "field7值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "OR",
"condType" : "GROUP",
"name" : "[条件组]OR",
"getPSDEFVRConditions" : [ {
"condType" : "VALUERANGE2",
"dEFName" : "FIELD7",
"maxValue" : 20.0,
"minValue" : 10.0,
"name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0",
"ruleInfo" : "数值必须大于等于[10.0]且小于等于[20.0]",
"includeMaxValue" : true,
"includeMinValue" : true
}, {
"condType" : "VALUERANGE2",
"dEFName" : "FIELD7",
"maxValue" : 40.0,
"minValue" : 30.0,
"name" : "[数值范围] 大于等于 30.0 且 小于等于 40.0",
"ruleInfo" : "数值必须大于等于[30.0]且小于等于[40.0]",
"includeMaxValue" : true,
"includeMinValue" : true
} ],
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
} ],
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "field7",
"valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule",
"name" : "amount值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "EQ",
"condType" : "SIMPLE",
"dEFName" : "AMOUNT",
"name" : "[常规条件] 等于(=) (100)",
"paramType" : "SRCENTITYFIELD",
"paramValue" : "100",
"ruleInfo" : "amount等于100"
} ],
"ruleInfo" : "amount等于100"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule",
"ruleInfo" : "amount等于100",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "amount",
"valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
"getPSDEFValueRule" : { "getPSDEFValueRule" : {
...@@ -17485,6 +17366,37 @@ ...@@ -17485,6 +17366,37 @@
}, },
"getPSDEFormItemName" : "field4", "getPSDEFormItemName" : "field4",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule",
"name" : "amount值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "EQ",
"condType" : "SIMPLE",
"dEFName" : "AMOUNT",
"name" : "[常规条件] 等于(=) (100)",
"paramType" : "SRCENTITYFIELD",
"paramValue" : "100",
"ruleInfo" : "amount等于100"
} ],
"ruleInfo" : "amount等于100"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/AMOUNT/psdefvaluerules/ValueRule",
"ruleInfo" : "amount等于100",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "amount",
"valueRuleType" : "DEFVALUERULE"
}, { }, {
"checkMode" : 3, "checkMode" : 3,
"name" : "表单项值规则", "name" : "表单项值规则",
...@@ -17548,6 +17460,94 @@ ...@@ -17548,6 +17460,94 @@
}, },
"getPSDEFormItemName" : "field8", "getPSDEFormItemName" : "field8",
"valueRuleType" : "DEFVALUERULE" "valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule7",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7",
"name" : "field6值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "[条件组]AND",
"getPSDEFVRConditions" : [ {
"condOp" : "NOTEQ",
"condType" : "SIMPLE",
"dEFName" : "FIELD6",
"name" : "[常规条件] 不等于(<>) (20)",
"paramValue" : "20"
}, {
"condOp" : "GT",
"condType" : "SIMPLE",
"dEFName" : "FIELD6",
"name" : "[常规条件] 大于(>) (5)",
"paramValue" : "5"
} ],
"ruleInfo" : ">5并且不等于20"
} ],
"ruleInfo" : ">5并且不等于20"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD6/psdefvaluerules/ValueRule7",
"ruleInfo" : ">5并且不等于20",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "field6",
"valueRuleType" : "DEFVALUERULE"
}, {
"checkMode" : 3,
"name" : "表单项值规则",
"getPSDEFValueRule" : {
"codeName" : "ValueRule8",
"mOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"name" : "field7值规则",
"getPSDEFVRGroupCondition" : {
"condOp" : "AND",
"condType" : "GROUP",
"name" : "默认组",
"getPSDEFVRConditions" : [ {
"condOp" : "OR",
"condType" : "GROUP",
"name" : "[条件组]OR",
"getPSDEFVRConditions" : [ {
"condType" : "VALUERANGE2",
"dEFName" : "FIELD7",
"maxValue" : 20.0,
"minValue" : 10.0,
"name" : "[数值范围] 大于等于 10.0 且 小于等于 20.0",
"ruleInfo" : "数值必须大于等于[10.0]且小于等于[20.0]",
"includeMaxValue" : true,
"includeMinValue" : true
}, {
"condType" : "VALUERANGE2",
"dEFName" : "FIELD7",
"maxValue" : 40.0,
"minValue" : 30.0,
"name" : "[数值范围] 大于等于 30.0 且 小于等于 40.0",
"ruleInfo" : "数值必须大于等于[30.0]且小于等于[40.0]",
"includeMaxValue" : true,
"includeMinValue" : true
} ],
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
} ],
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])"
},
"rTMOSFilePath" : "psmodules/Test/psdataentities/TEST/psdefields/FIELD7/psdefvaluerules/ValueRule8",
"ruleInfo" : "(数值必须大于等于[10.0]且小于等于[20.0] 或者 数值必须大于等于[30.0]且小于等于[40.0])",
"checkDefault" : false,
"defaultMode" : false,
"enableBackend" : true,
"enableFront" : true
},
"getPSDEFormItemName" : "field7",
"valueRuleType" : "DEFVALUERULE"
} ], } ],
"getPSDEFormItems" : [ { "getPSDEFormItems" : [ {
"id" : "srfupdatedate", "id" : "srfupdatedate",
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册