sun-biz 0.0.4-beta.53 → 0.0.4-beta.55

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.
@@ -7245,7 +7245,7 @@ const user_selectvue_type_script_lang_tsx_name_UserSelect_setup_true_hoisted_1 =
7245
7245
  }
7246
7246
  };
7247
7247
  const user_selectvue_type_script_lang_tsx_name_UserSelect_setup_true_hoisted_2 = {
7248
- class: "border-t pt-2 px-2"
7248
+ class: "border-t px-2 pt-2"
7249
7249
  };
7250
7250
  // 全局事件:用于关闭其他实例的 popover
7251
7251
  const CLOSE_OTHER_POPOVERS_EVENT = 'user-select:close-others'; /*
@@ -7271,7 +7271,8 @@ const CLOSE_OTHER_POPOVERS_EVENT = 'user-select:close-others'; /*
7271
7271
  allowSelectDisabledFlag: {}
7272
7272
  },
7273
7273
  emits: [
7274
- 'change'
7274
+ 'change',
7275
+ 'update:modelValue'
7275
7276
  ],
7276
7277
  setup (__props, { expose: __expose, emit: __emit }) {
7277
7278
  const props = __props;
@@ -7336,23 +7337,6 @@ const CLOSE_OTHER_POPOVERS_EVENT = 'user-select:close-others'; /*
7336
7337
  deep: true,
7337
7338
  immediate: true
7338
7339
  });
7339
- (0, __WEBPACK_EXTERNAL_MODULE_vue__.watch)(()=>props.defaultValue, ()=>{
7340
- if (attrs.modelValue && Array.isArray(props.defaultValue) && props.defaultValue.length && !defaultSetTableSelected.value) {
7341
- const list = props.defaultValue.map((item)=>({
7342
- ...item,
7343
- userId: item.value || item.userId,
7344
- userName: item.label || item.userName,
7345
- value: item.value || item.userId,
7346
- label: item.label || item.userName
7347
- }));
7348
- userList.value = [
7349
- ...list
7350
- ];
7351
- }
7352
- }, {
7353
- deep: true,
7354
- immediate: true
7355
- });
7356
7340
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.watch)(()=>props.userJobCodes, (newVal, oldVal)=>{
7357
7341
  if (newVal && !(0, __WEBPACK_EXTERNAL_MODULE__sun_toolkit_shared__.isEqual)(oldVal, newVal)) initComponentData();
7358
7342
  });
@@ -7437,32 +7421,7 @@ const CLOSE_OTHER_POPOVERS_EVENT = 'user-select:close-others'; /*
7437
7421
  ...item,
7438
7422
  label: item.userName,
7439
7423
  value: item.userId
7440
- })); // 保留已选中的项,确保选中状态能正确回显
7441
- if (selectedRows.value?.length) {
7442
- const selectedList = selectedRows.value.map((item)=>({
7443
- ...item,
7444
- userId: item.value || item.userId,
7445
- userName: item.label || item.userName,
7446
- value: item.value || item.userId,
7447
- label: item.label || item.userName
7448
- }));
7449
- list = (0, __WEBPACK_EXTERNAL_MODULE_lodash__.uniqBy)([
7450
- ...list,
7451
- ...selectedList
7452
- ], 'userId');
7453
- } else if (attrs.modelValue && Array.isArray(props.defaultValue) && props.defaultValue.length) {
7454
- const defaultList = props.defaultValue.map((item)=>({
7455
- ...item,
7456
- userId: item.value || item.userId,
7457
- userName: item.label || item.userName,
7458
- value: item.value || item.userId,
7459
- label: item.label || item.userName
7460
- }));
7461
- list = (0, __WEBPACK_EXTERNAL_MODULE_lodash__.uniqBy)([
7462
- ...list,
7463
- ...defaultList
7464
- ], 'userId');
7465
- }
7424
+ }));
7466
7425
  userList.value = list;
7467
7426
  currentRowIndex.value = -1;
7468
7427
  tableRef.value?.eleTable?.setCurrentRow?.(void 0);
@@ -7480,7 +7439,7 @@ const CLOSE_OTHER_POPOVERS_EVENT = 'user-select:close-others'; /*
7480
7439
  };
7481
7440
  const handleChange = ()=>{
7482
7441
  let value = selectedRows.value.map((item)=>item.value || item.userId);
7483
- if (attrs['onUpdate:modelValue']) attrs['onUpdate:modelValue'](props.multiSelectFlag ? value : value[0]);
7442
+ emit('update:modelValue', props.multiSelectFlag ? value : value[0]);
7484
7443
  if (props.multiSelectFlag) emit('change', value, selectedRows.value);
7485
7444
  else {
7486
7445
  const data = value[0] ? userList.value.find((item)=>item.value === value[0] || item.userId === value[0]) : void 0;
@@ -9453,7 +9412,8 @@ const FormUnitvue_type_script_setup_true_lang_ts_name_formUnit_hoisted_1 = {
9453
9412
  class: "overflow-hidden"
9454
9413
  };
9455
9414
  const FormUnitvue_type_script_setup_true_lang_ts_name_formUnit_hoisted_2 = {
9456
- key: 1
9415
+ key: 1,
9416
+ class: "text-base"
9457
9417
  };
9458
9418
  const DICT_SELECT = 'dictSelect';
9459
9419
  /* ESM default export */ const FormUnitvue_type_script_setup_true_lang_ts_name_formUnit = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
@@ -11999,7 +11959,7 @@ function useUpdateInvoiceFormConfig(options) {
11999
11959
  reasonLoading.value = true;
12000
11960
  const [, res] = await queryReasonList(constant_REASON_USE_SCOPE_CODE.ADJUST_NUMBER);
12001
11961
  reasonLoading.value = false;
12002
- if (res?.success) reasonList.value = res?.data;
11962
+ if (res?.success) reasonList.value = res?.data?.filter((item)=>item.displayFlag === __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.YES);
12003
11963
  };
12004
11964
  /** 提交 */ const confirmFn = async ()=>{
12005
11965
  const isValid = await formRef.value.ref.validate();
package/dist/index.js CHANGED
@@ -7914,7 +7914,7 @@ const user_selectvue_type_script_lang_tsx_name_UserSelect_setup_true_hoisted_1 =
7914
7914
  }
7915
7915
  };
7916
7916
  const user_selectvue_type_script_lang_tsx_name_UserSelect_setup_true_hoisted_2 = {
7917
- class: "border-t pt-2 px-2"
7917
+ class: "border-t px-2 pt-2"
7918
7918
  };
7919
7919
  // 全局事件:用于关闭其他实例的 popover
7920
7920
  const CLOSE_OTHER_POPOVERS_EVENT = 'user-select:close-others'; /*
@@ -7940,7 +7940,8 @@ const CLOSE_OTHER_POPOVERS_EVENT = 'user-select:close-others'; /*
7940
7940
  allowSelectDisabledFlag: {}
7941
7941
  },
7942
7942
  emits: [
7943
- 'change'
7943
+ 'change',
7944
+ 'update:modelValue'
7944
7945
  ],
7945
7946
  setup (__props, { expose: __expose, emit: __emit }) {
7946
7947
  const props = __props;
@@ -8005,23 +8006,6 @@ const CLOSE_OTHER_POPOVERS_EVENT = 'user-select:close-others'; /*
8005
8006
  deep: true,
8006
8007
  immediate: true
8007
8008
  });
8008
- (0, __WEBPACK_EXTERNAL_MODULE_vue__.watch)(()=>props.defaultValue, ()=>{
8009
- if (attrs.modelValue && Array.isArray(props.defaultValue) && props.defaultValue.length && !defaultSetTableSelected.value) {
8010
- const list = props.defaultValue.map((item)=>({
8011
- ...item,
8012
- userId: item.value || item.userId,
8013
- userName: item.label || item.userName,
8014
- value: item.value || item.userId,
8015
- label: item.label || item.userName
8016
- }));
8017
- userList.value = [
8018
- ...list
8019
- ];
8020
- }
8021
- }, {
8022
- deep: true,
8023
- immediate: true
8024
- });
8025
8009
  (0, __WEBPACK_EXTERNAL_MODULE_vue__.watch)(()=>props.userJobCodes, (newVal, oldVal)=>{
8026
8010
  if (newVal && !(0, __WEBPACK_EXTERNAL_MODULE__sun_toolkit_shared__.isEqual)(oldVal, newVal)) initComponentData();
8027
8011
  });
@@ -8106,32 +8090,7 @@ const CLOSE_OTHER_POPOVERS_EVENT = 'user-select:close-others'; /*
8106
8090
  ...item,
8107
8091
  label: item.userName,
8108
8092
  value: item.userId
8109
- })); // 保留已选中的项,确保选中状态能正确回显
8110
- if (selectedRows.value?.length) {
8111
- const selectedList = selectedRows.value.map((item)=>({
8112
- ...item,
8113
- userId: item.value || item.userId,
8114
- userName: item.label || item.userName,
8115
- value: item.value || item.userId,
8116
- label: item.label || item.userName
8117
- }));
8118
- list = (0, __WEBPACK_EXTERNAL_MODULE_lodash__.uniqBy)([
8119
- ...list,
8120
- ...selectedList
8121
- ], 'userId');
8122
- } else if (attrs.modelValue && Array.isArray(props.defaultValue) && props.defaultValue.length) {
8123
- const defaultList = props.defaultValue.map((item)=>({
8124
- ...item,
8125
- userId: item.value || item.userId,
8126
- userName: item.label || item.userName,
8127
- value: item.value || item.userId,
8128
- label: item.label || item.userName
8129
- }));
8130
- list = (0, __WEBPACK_EXTERNAL_MODULE_lodash__.uniqBy)([
8131
- ...list,
8132
- ...defaultList
8133
- ], 'userId');
8134
- }
8093
+ }));
8135
8094
  userList.value = list;
8136
8095
  currentRowIndex.value = -1;
8137
8096
  tableRef.value?.eleTable?.setCurrentRow?.(void 0);
@@ -8149,7 +8108,7 @@ const CLOSE_OTHER_POPOVERS_EVENT = 'user-select:close-others'; /*
8149
8108
  };
8150
8109
  const handleChange = ()=>{
8151
8110
  let value = selectedRows.value.map((item)=>item.value || item.userId);
8152
- if (attrs['onUpdate:modelValue']) attrs['onUpdate:modelValue'](props.multiSelectFlag ? value : value[0]);
8111
+ emit('update:modelValue', props.multiSelectFlag ? value : value[0]);
8153
8112
  if (props.multiSelectFlag) emit('change', value, selectedRows.value);
8154
8113
  else {
8155
8114
  const data = value[0] ? userList.value.find((item)=>item.value === value[0] || item.userId === value[0]) : void 0;
@@ -10395,7 +10354,8 @@ const FormUnitvue_type_script_setup_true_lang_ts_name_formUnit_hoisted_1 = {
10395
10354
  class: "overflow-hidden"
10396
10355
  };
10397
10356
  const FormUnitvue_type_script_setup_true_lang_ts_name_formUnit_hoisted_2 = {
10398
- key: 1
10357
+ key: 1,
10358
+ class: "text-base"
10399
10359
  };
10400
10360
  const DICT_SELECT = 'dictSelect';
10401
10361
  /* ESM default export */ const FormUnitvue_type_script_setup_true_lang_ts_name_formUnit = /*@__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent)({
@@ -10834,7 +10794,7 @@ const Title_exports_ = Titlevue_type_script_setup_true_lang_ts_name_sunTitle;
10834
10794
  reasonLoading.value = true;
10835
10795
  const [, res] = await queryReasonList(constant_REASON_USE_SCOPE_CODE.ADJUST_NUMBER);
10836
10796
  reasonLoading.value = false;
10837
- if (res?.success) reasonList.value = res?.data;
10797
+ if (res?.success) reasonList.value = res?.data?.filter((item)=>item.displayFlag === __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.YES);
10838
10798
  };
10839
10799
  /** 提交 */ const confirmFn = async ()=>{
10840
10800
  const isValid = await formRef.value.ref.validate();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sun-biz",
3
- "version": "0.0.4-beta.53",
3
+ "version": "0.0.4-beta.55",
4
4
  "type": "module",
5
5
  "workspaces": [
6
6
  "src/*",