sun-biz 0.0.4-beta.36 → 0.0.4-beta.38
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/dist/components/index.js +108 -57
- package/dist/hooks/index.js +9 -1
- package/dist/hooks/use-editable-table/index.d.ts +2 -0
- package/dist/index.js +117 -58
- package/package.json +1 -1
package/dist/components/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_lodash__ from "lodash";
|
|
|
12
12
|
import * as __WEBPACK_EXTERNAL_MODULE_i18next_vue__ from "i18next-vue";
|
|
13
13
|
import * as __WEBPACK_EXTERNAL_MODULE_js_pinyin__ from "js-pinyin";
|
|
14
14
|
var __webpack_modules__ = {
|
|
15
|
-
"./node_modules/.pnpm/vue-loader@17.4.2_vue@3.5.
|
|
15
|
+
"./node_modules/.pnpm/vue-loader@17.4.2_vue@3.5.18_typescript@5.9.2__webpack@5.101.0_esbuild@0.24.2_/node_modules/vue-loader/dist/exportHelper.js": function(__unused_webpack_module, exports) {
|
|
16
16
|
// runtime helper for setting properties on components
|
|
17
17
|
// in a tree-shakable way
|
|
18
18
|
exports["default"] = (sfc, props)=>{
|
|
@@ -72,8 +72,8 @@ function __webpack_require__(moduleId) {
|
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
});
|
|
75
|
-
// EXTERNAL MODULE: ./node_modules/.pnpm/vue-loader@17.4.2_vue@3.5.
|
|
76
|
-
var exportHelper = __webpack_require__("./node_modules/.pnpm/vue-loader@17.4.2_vue@3.5.
|
|
75
|
+
// EXTERNAL MODULE: ./node_modules/.pnpm/vue-loader@17.4.2_vue@3.5.18_typescript@5.9.2__webpack@5.101.0_esbuild@0.24.2_/node_modules/vue-loader/dist/exportHelper.js
|
|
76
|
+
var exportHelper = __webpack_require__("./node_modules/.pnpm/vue-loader@17.4.2_vue@3.5.18_typescript@5.9.2__webpack@5.101.0_esbuild@0.24.2_/node_modules/vue-loader/dist/exportHelper.js");
|
|
77
77
|
const __exports__ = /*#__PURE__*/ (0, exportHelper["default"])(Containervue_type_script_setup_true_lang_tsx, [
|
|
78
78
|
[
|
|
79
79
|
'__scopeId',
|
|
@@ -621,10 +621,10 @@ function useTableConfigColumn(changeInputSort, length, disabledDraggable) {
|
|
|
621
621
|
}, [
|
|
622
622
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)("i", {
|
|
623
623
|
class: `sort-caret ascending ${row.ascendFlag === __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.YES ? '!border-b-blue-500' : ''}`
|
|
624
|
-
}, null),
|
|
624
|
+
}, null, 2),
|
|
625
625
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)("i", {
|
|
626
626
|
class: `sort-caret descending ${row.ascendFlag === __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.NO ? '!border-t-blue-500' : ''}`
|
|
627
|
-
}, null)
|
|
627
|
+
}, null, 2)
|
|
628
628
|
])
|
|
629
629
|
], 8, [
|
|
630
630
|
"onClick"
|
|
@@ -955,7 +955,7 @@ const _hoisted_3 = {
|
|
|
955
955
|
reference: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
956
956
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)(_component_el_button, null, {
|
|
957
957
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
958
|
-
_cache[0] || (_cache[0] = (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)("组合排序 ")),
|
|
958
|
+
_cache[0] || (_cache[0] = (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)("组合排序 ", -1)),
|
|
959
959
|
isSHow.value ? (0, __WEBPACK_EXTERNAL_MODULE_vue__.createCommentVNode)("", true) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("span", _hoisted_1, [
|
|
960
960
|
((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(true), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)(__WEBPACK_EXTERNAL_MODULE_vue__.Fragment, null, (0, __WEBPACK_EXTERNAL_MODULE_vue__.renderList)(tableData.value.filter((item)=>item?.ascendFlag === (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG).NO || item?.ascendFlag === (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG).YES), (item)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(_component_el_tag, {
|
|
961
961
|
hit: false,
|
|
@@ -995,7 +995,10 @@ const _hoisted_3 = {
|
|
|
995
995
|
]))), 128))
|
|
996
996
|
]))
|
|
997
997
|
]),
|
|
998
|
-
_: 1
|
|
998
|
+
_: 1,
|
|
999
|
+
__: [
|
|
1000
|
+
0
|
|
1001
|
+
]
|
|
999
1002
|
})
|
|
1000
1003
|
]),
|
|
1001
1004
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
@@ -1011,7 +1014,7 @@ const _hoisted_3 = {
|
|
|
1011
1014
|
]),
|
|
1012
1015
|
_: 1
|
|
1013
1016
|
}),
|
|
1014
|
-
_cache[1] || (_cache[1] = (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)("请根据以下规则编辑排序条件 "))
|
|
1017
|
+
_cache[1] || (_cache[1] = (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)("请根据以下规则编辑排序条件 ", -1))
|
|
1015
1018
|
]),
|
|
1016
1019
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)(pro_table, {
|
|
1017
1020
|
onDragEnd: handleSortEnd,
|
|
@@ -1032,9 +1035,12 @@ const _hoisted_3 = {
|
|
|
1032
1035
|
onClick: confirm
|
|
1033
1036
|
}, {
|
|
1034
1037
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>_cache[2] || (_cache[2] = [
|
|
1035
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)(" 关闭 ")
|
|
1038
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)(" 关闭 ", -1)
|
|
1036
1039
|
])),
|
|
1037
|
-
_: 1
|
|
1040
|
+
_: 1,
|
|
1041
|
+
__: [
|
|
1042
|
+
2
|
|
1043
|
+
]
|
|
1038
1044
|
})
|
|
1039
1045
|
])
|
|
1040
1046
|
]),
|
|
@@ -1443,19 +1449,17 @@ function dbgrid_component_settingvue_type_script_setup_true_lang_tsx_isSlot(s) {
|
|
|
1443
1449
|
if (result?.data?.length) {
|
|
1444
1450
|
componentId.value = result.data[0].componentId || "";
|
|
1445
1451
|
serveDbgridComponentSettingList.value = result.data[0].dbgridComponentSettingList || [];
|
|
1446
|
-
if (
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
}
|
|
1458
|
-
} else influenceScopeCode.value = __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.INFLUENCE_SCOPE_CODE.PUBLIC;
|
|
1452
|
+
if (isAdmin && userInfo?.userJobCode !== __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG_STR.NO) influenceScopeCode.value = __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.INFLUENCE_SCOPE_CODE.PUBLIC;
|
|
1453
|
+
else {
|
|
1454
|
+
influenceScopeCode.value = __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.INFLUENCE_SCOPE_CODE.PRiVATE;
|
|
1455
|
+
bizId.value = userInfo?.userId || "";
|
|
1456
|
+
userList.value = [
|
|
1457
|
+
{
|
|
1458
|
+
userId: userInfo?.userId || "",
|
|
1459
|
+
userName: userInfo?.userName || ""
|
|
1460
|
+
}
|
|
1461
|
+
];
|
|
1462
|
+
}
|
|
1459
1463
|
}
|
|
1460
1464
|
}
|
|
1461
1465
|
loading.value = false;
|
|
@@ -1587,8 +1591,8 @@ function dbgrid_component_settingvue_type_script_setup_true_lang_tsx_isSlot(s) {
|
|
|
1587
1591
|
__expose({
|
|
1588
1592
|
dialogRef
|
|
1589
1593
|
}); /**
|
|
1590
|
-
|
|
1591
|
-
|
|
1594
|
+
* 左右滚动
|
|
1595
|
+
*/
|
|
1592
1596
|
const scrollToColumn = (columnName)=>{
|
|
1593
1597
|
scrollKeyWord.value = columnName;
|
|
1594
1598
|
let columnIndex = tableColumn.value.findIndex((item)=>item.prop === columnName);
|
|
@@ -1654,9 +1658,12 @@ function dbgrid_component_settingvue_type_script_setup_true_lang_tsx_isSlot(s) {
|
|
|
1654
1658
|
onClick: handleCancel
|
|
1655
1659
|
}, {
|
|
1656
1660
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>_cache[7] || (_cache[7] = [
|
|
1657
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)("取消")
|
|
1661
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)("取消", -1)
|
|
1658
1662
|
])),
|
|
1659
|
-
_: 1
|
|
1663
|
+
_: 1,
|
|
1664
|
+
__: [
|
|
1665
|
+
7
|
|
1666
|
+
]
|
|
1660
1667
|
}),
|
|
1661
1668
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE_element_sun__.ElButton), {
|
|
1662
1669
|
type: "primary",
|
|
@@ -1668,9 +1675,12 @@ function dbgrid_component_settingvue_type_script_setup_true_lang_tsx_isSlot(s) {
|
|
|
1668
1675
|
})
|
|
1669
1676
|
}, {
|
|
1670
1677
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>_cache[8] || (_cache[8] = [
|
|
1671
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)("应用")
|
|
1678
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)("应用", -1)
|
|
1672
1679
|
])),
|
|
1673
|
-
_: 1
|
|
1680
|
+
_: 1,
|
|
1681
|
+
__: [
|
|
1682
|
+
8
|
|
1683
|
+
]
|
|
1674
1684
|
}, 8, [
|
|
1675
1685
|
"loading",
|
|
1676
1686
|
"disabled"
|
|
@@ -1684,9 +1694,12 @@ function dbgrid_component_settingvue_type_script_setup_true_lang_tsx_isSlot(s) {
|
|
|
1684
1694
|
})
|
|
1685
1695
|
}, {
|
|
1686
1696
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>_cache[9] || (_cache[9] = [
|
|
1687
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)(" 确认 ")
|
|
1697
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)(" 确认 ", -1)
|
|
1688
1698
|
])),
|
|
1689
|
-
_: 1
|
|
1699
|
+
_: 1,
|
|
1700
|
+
__: [
|
|
1701
|
+
9
|
|
1702
|
+
]
|
|
1690
1703
|
}, 8, [
|
|
1691
1704
|
"loading",
|
|
1692
1705
|
"disabled"
|
|
@@ -1847,7 +1860,7 @@ function dbgrid_component_settingvue_type_script_setup_true_lang_tsx_isSlot(s) {
|
|
|
1847
1860
|
const dbgrid_component_setting_exports_ = /*#__PURE__*/ (0, exportHelper["default"])(dbgrid_component_settingvue_type_script_setup_true_lang_tsx, [
|
|
1848
1861
|
[
|
|
1849
1862
|
'__scopeId',
|
|
1850
|
-
"data-v-
|
|
1863
|
+
"data-v-662b8e54"
|
|
1851
1864
|
]
|
|
1852
1865
|
]);
|
|
1853
1866
|
/* ESM default export */ const dbgrid_component_setting = dbgrid_component_setting_exports_;
|
|
@@ -2786,6 +2799,10 @@ const SELECTION = 'selection';
|
|
|
2786
2799
|
const validateProps = props.columns.filter((item)=>item.rules).map((item)=>`tableData.${index}.${item.prop}`);
|
|
2787
2800
|
return formRef.value.validateField(validateProps, callback);
|
|
2788
2801
|
},
|
|
2802
|
+
clearValidateRow: (index)=>{
|
|
2803
|
+
const validateProps = props.columns.filter((item)=>item.rules).map((item)=>`tableData.${index}.${item.prop}`);
|
|
2804
|
+
return formRef.value.clearValidate(validateProps);
|
|
2805
|
+
},
|
|
2789
2806
|
fetchList: (init = true, initPageInfo = {
|
|
2790
2807
|
pageNumber: 1
|
|
2791
2808
|
})=>{
|
|
@@ -6248,6 +6265,8 @@ const createPrint = ()=>{
|
|
|
6248
6265
|
defaultContext.printParams = params;
|
|
6249
6266
|
/** 1.查询单据信息 */ await fetchReceiptInfo();
|
|
6250
6267
|
if (breakPrint) return;
|
|
6268
|
+
/**2.1 是否为不打印*/ whetherPrint();
|
|
6269
|
+
if (breakPrint) return;
|
|
6251
6270
|
/** 2.弹窗询问 */ if (defaultContext?.printParams?.designFlag === __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.NO) await dialogAsk();
|
|
6252
6271
|
if (breakPrint) return;
|
|
6253
6272
|
/** 3.模版选择 */ await selectPrintTemplateFn();
|
|
@@ -6281,6 +6300,21 @@ const createPrint = ()=>{
|
|
|
6281
6300
|
receiptInfo: res.data[0]
|
|
6282
6301
|
};
|
|
6283
6302
|
};
|
|
6303
|
+
/**
|
|
6304
|
+
* 2.1 是否为不打印(2025-9-22 任务号【25720】)
|
|
6305
|
+
*/ const whetherPrint = ()=>{
|
|
6306
|
+
const { receiptPrintRuleCode, receiptPrintCategCode, menuXReceiptList } = defaultContext.receiptInfo || {};
|
|
6307
|
+
if (!receiptPrintRuleCode) return;
|
|
6308
|
+
let code = receiptPrintCategCode;
|
|
6309
|
+
if (receiptPrintRuleCode === constant_RECEIPT_PRINT_RULE_CODE.MENU) {
|
|
6310
|
+
const menuReceiptInfo = menuXReceiptList?.find((item)=>item.menuId === defaultContext.printParams?.menuId);
|
|
6311
|
+
code = menuReceiptInfo?.receiptPrintCategCode || receiptPrintCategCode;
|
|
6312
|
+
} else code = receiptPrintCategCode;
|
|
6313
|
+
if (code === constant_RECEIPT_PRINT_CATEG_CODE.NO_PRINT) {
|
|
6314
|
+
breakPrint = true; // 如果是不打印则取消打印
|
|
6315
|
+
return;
|
|
6316
|
+
}
|
|
6317
|
+
};
|
|
6284
6318
|
/**
|
|
6285
6319
|
* 2.弹窗询问
|
|
6286
6320
|
*/ const dialogAsk = async ()=>{
|
|
@@ -6308,7 +6342,7 @@ const createPrint = ()=>{
|
|
|
6308
6342
|
* 2.弹窗询问ElMessageBox询问
|
|
6309
6343
|
*/ const messageBoxAsk = async (code, receiptNameDisplay)=>{
|
|
6310
6344
|
try {
|
|
6311
|
-
await __WEBPACK_EXTERNAL_MODULE_element_sun__.ElMessageBox.confirm(`是否${code === constant_RECEIPT_PRINT_CATEG_CODE.ASK_PRINT ? "打印" : "开具"}
|
|
6345
|
+
await __WEBPACK_EXTERNAL_MODULE_element_sun__.ElMessageBox.confirm(`是否${code === constant_RECEIPT_PRINT_CATEG_CODE.ASK_PRINT ? "打印" : "开具"} “${receiptNameDisplay}”?`, "提示", {
|
|
6312
6346
|
confirmButtonText: "确定",
|
|
6313
6347
|
cancelButtonText: "取消",
|
|
6314
6348
|
type: "warning"
|
|
@@ -6660,7 +6694,7 @@ const print = async (params)=>{
|
|
|
6660
6694
|
class: "min-w-[50px]"
|
|
6661
6695
|
}, {
|
|
6662
6696
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
6663
|
-
_cache[0] || (_cache[0] = (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)(" 打印 ")),
|
|
6697
|
+
_cache[0] || (_cache[0] = (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)(" 打印 ", -1)),
|
|
6664
6698
|
showReceipt.value && !_ctx.disabled ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE_element_sun__.ElIcon), {
|
|
6665
6699
|
key: 0,
|
|
6666
6700
|
class: "el-icon--right"
|
|
@@ -6671,7 +6705,10 @@ const print = async (params)=>{
|
|
|
6671
6705
|
_: 1
|
|
6672
6706
|
})) : (0, __WEBPACK_EXTERNAL_MODULE_vue__.createCommentVNode)("", true)
|
|
6673
6707
|
]),
|
|
6674
|
-
_: 1
|
|
6708
|
+
_: 1,
|
|
6709
|
+
__: [
|
|
6710
|
+
0
|
|
6711
|
+
]
|
|
6675
6712
|
}, 8, [
|
|
6676
6713
|
"type",
|
|
6677
6714
|
"disabled"
|
|
@@ -7097,8 +7134,8 @@ const hospital_select_exports_ = hospital_selectvue_type_script_setup_true_lang_
|
|
|
7097
7134
|
}
|
|
7098
7135
|
};
|
|
7099
7136
|
const handelRemoteMethod = async (value)=>{
|
|
7100
|
-
filterKeyWord.value = value || '';
|
|
7101
|
-
if (!value && userList.value.length) return;
|
|
7137
|
+
if (filterKeyWord.value !== value) filterKeyWord.value = value || '';
|
|
7138
|
+
else if (!value && userList.value.length) return;
|
|
7102
7139
|
try {
|
|
7103
7140
|
loading.value = true;
|
|
7104
7141
|
await getUserList({
|
|
@@ -7108,8 +7145,8 @@ const hospital_select_exports_ = hospital_selectvue_type_script_setup_true_lang_
|
|
|
7108
7145
|
loading.value = false;
|
|
7109
7146
|
}
|
|
7110
7147
|
};
|
|
7111
|
-
const fetchData = async ()=>{
|
|
7112
|
-
await getUserList();
|
|
7148
|
+
const fetchData = async (data)=>{
|
|
7149
|
+
await getUserList(data);
|
|
7113
7150
|
};
|
|
7114
7151
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.onMounted)(()=>{
|
|
7115
7152
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.nextTick)(async ()=>{
|
|
@@ -7302,7 +7339,7 @@ const user_select_exports_ = user_selectvue_type_script_setup_true_lang_ts_name_
|
|
|
7302
7339
|
]
|
|
7303
7340
|
});
|
|
7304
7341
|
const getRowClassName = (data)=>{
|
|
7305
|
-
if (props.disabledValueIds?.length && data.row.orgId && props.disabledValueIds.includes(data.row.orgId)) return 'cursor-not-allowed';
|
|
7342
|
+
if (props.disabledValueIds?.length && data.row.orgId && props.disabledValueIds.includes(data.row.orgId)) return 'cursor-not-allowed !bg-gray-100 text-gray-300';
|
|
7306
7343
|
return 'cursor-pointer';
|
|
7307
7344
|
};
|
|
7308
7345
|
const getBizUnitList = async (data)=>{
|
|
@@ -7475,8 +7512,8 @@ const user_select_exports_ = user_selectvue_type_script_setup_true_lang_ts_name_
|
|
|
7475
7512
|
document.removeEventListener('keydown', handleKeydown, true);
|
|
7476
7513
|
if (props.multiSelectFlag) document.removeEventListener('click', handleClickOutside);
|
|
7477
7514
|
});
|
|
7478
|
-
const fetchData = async ()=>{
|
|
7479
|
-
await getBizUnitList();
|
|
7515
|
+
const fetchData = async (data)=>{
|
|
7516
|
+
await getBizUnitList(data);
|
|
7480
7517
|
};
|
|
7481
7518
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.onMounted)(()=>{
|
|
7482
7519
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.nextTick)(async ()=>{
|
|
@@ -7718,7 +7755,7 @@ const biz_unit_select_exports_ = biz_unit_selectvue_type_script_setup_true_lang_
|
|
|
7718
7755
|
]
|
|
7719
7756
|
});
|
|
7720
7757
|
const getRowClassName = (data)=>{
|
|
7721
|
-
if (props.disabledValueIds?.length && data.row.orgId && props.disabledValueIds.includes(data.row.orgId)) return 'cursor-not-allowed';
|
|
7758
|
+
if (props.disabledValueIds?.length && data.row.orgId && props.disabledValueIds.includes(data.row.orgId)) return 'cursor-not-allowed !bg-gray-100 text-gray-300';
|
|
7722
7759
|
return 'cursor-pointer';
|
|
7723
7760
|
};
|
|
7724
7761
|
const getDepartmentList = async (data)=>{
|
|
@@ -7907,8 +7944,8 @@ const biz_unit_select_exports_ = biz_unit_selectvue_type_script_setup_true_lang_
|
|
|
7907
7944
|
document.removeEventListener('keydown', handleKeydown, true);
|
|
7908
7945
|
if (props.multiSelectFlag) document.removeEventListener('click', handleClickOutside);
|
|
7909
7946
|
});
|
|
7910
|
-
const fetchData = async ()=>{
|
|
7911
|
-
await getDepartmentList();
|
|
7947
|
+
const fetchData = async (data)=>{
|
|
7948
|
+
await getDepartmentList(data);
|
|
7912
7949
|
};
|
|
7913
7950
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.onMounted)(()=>{
|
|
7914
7951
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.nextTick)(async ()=>{
|
|
@@ -8144,7 +8181,7 @@ const department_select_exports_ = department_selectvue_type_script_setup_true_l
|
|
|
8144
8181
|
]
|
|
8145
8182
|
});
|
|
8146
8183
|
const getRowClassName = (data)=>{
|
|
8147
|
-
if (props.disabledValueIds?.length && data.row.orgId && props.disabledValueIds.includes(data.row.orgId)) return 'cursor-not-allowed';
|
|
8184
|
+
if (props.disabledValueIds?.length && data.row.orgId && props.disabledValueIds.includes(data.row.orgId)) return 'cursor-not-allowed !bg-gray-100 text-gray-300';
|
|
8148
8185
|
return 'cursor-pointer';
|
|
8149
8186
|
};
|
|
8150
8187
|
const getWardList = async (data)=>{
|
|
@@ -8332,8 +8369,8 @@ const department_select_exports_ = department_selectvue_type_script_setup_true_l
|
|
|
8332
8369
|
document.removeEventListener('keydown', handleKeydown, true);
|
|
8333
8370
|
if (props.multiSelectFlag) document.removeEventListener('click', handleClickOutside);
|
|
8334
8371
|
});
|
|
8335
|
-
const fetchData = async ()=>{
|
|
8336
|
-
await getWardList();
|
|
8372
|
+
const fetchData = async (data)=>{
|
|
8373
|
+
await getWardList(data);
|
|
8337
8374
|
};
|
|
8338
8375
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.onMounted)(()=>{
|
|
8339
8376
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.nextTick)(async ()=>{
|
|
@@ -8831,7 +8868,8 @@ const WB_NO = "wbNo";
|
|
|
8831
8868
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
8832
8869
|
((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(true), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)(__WEBPACK_EXTERNAL_MODULE_vue__.Fragment, null, (0, __WEBPACK_EXTERNAL_MODULE_vue__.renderList)(configData.value, (item, index)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("div", (0, __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps)({
|
|
8833
8870
|
key: item.name + index,
|
|
8834
|
-
class: item.span || item.isFullWidth ? item.isFullWidth ? 'col-span-full' : `... col-span-${item.span}` : isInlineMode ? 'inline-block' : ''
|
|
8871
|
+
class: item.span || item.isFullWidth ? item.isFullWidth ? 'col-span-full' : `... col-span-${item.span}` : isInlineMode ? 'inline-block' : ''
|
|
8872
|
+
}, {
|
|
8835
8873
|
ref_for: true
|
|
8836
8874
|
}, item.formItemProps || {}), [
|
|
8837
8875
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)(_component_el_form_item, (0, __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps)({
|
|
@@ -8839,7 +8877,8 @@ const WB_NO = "wbNo";
|
|
|
8839
8877
|
label: 'function' == typeof item.label ? '' : item.label,
|
|
8840
8878
|
prop: item.name,
|
|
8841
8879
|
class: item.className,
|
|
8842
|
-
style: isInlineMode ? 'margin-right: 16px;' : ''
|
|
8880
|
+
style: isInlineMode ? 'margin-right: 16px;' : ''
|
|
8881
|
+
}, {
|
|
8843
8882
|
ref_for: true
|
|
8844
8883
|
}, item.formItemProps || {}), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createSlots)({
|
|
8845
8884
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
@@ -8849,7 +8888,8 @@ const WB_NO = "wbNo";
|
|
|
8849
8888
|
type: item.type,
|
|
8850
8889
|
"support-copy-and-tips": item.supportCopyAndTips,
|
|
8851
8890
|
placeholder: item.placeholder,
|
|
8852
|
-
options: item.options
|
|
8891
|
+
options: item.options
|
|
8892
|
+
}, {
|
|
8853
8893
|
ref_for: true
|
|
8854
8894
|
}, item.extraProps || {}, {
|
|
8855
8895
|
modelValue: formModel[item.name],
|
|
@@ -8880,6 +8920,8 @@ const WB_NO = "wbNo";
|
|
|
8880
8920
|
ref_for: true,
|
|
8881
8921
|
ref_key: "itemRefs",
|
|
8882
8922
|
ref: itemRefs
|
|
8923
|
+
}, {
|
|
8924
|
+
ref_for: true
|
|
8883
8925
|
}, item.extraProps || {}, {
|
|
8884
8926
|
modelValue: formModel[item.name],
|
|
8885
8927
|
"onUpdate:modelValue": ($event)=>formModel[item.name] = $event,
|
|
@@ -8922,9 +8964,12 @@ const WB_NO = "wbNo";
|
|
|
8922
8964
|
})
|
|
8923
8965
|
}, {
|
|
8924
8966
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>_cache[1] || (_cache[1] = [
|
|
8925
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)("查询")
|
|
8967
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)("查询", -1)
|
|
8926
8968
|
])),
|
|
8927
|
-
_: 1
|
|
8969
|
+
_: 1,
|
|
8970
|
+
__: [
|
|
8971
|
+
1
|
|
8972
|
+
]
|
|
8928
8973
|
})) : (0, __WEBPACK_EXTERNAL_MODULE_vue__.createCommentVNode)("", true)
|
|
8929
8974
|
])
|
|
8930
8975
|
]),
|
|
@@ -9876,9 +9921,12 @@ const FIELD_REF = 'fieldRef_'; // 存储动态 ref 的对象
|
|
|
9876
9921
|
onClick: cancel
|
|
9877
9922
|
}, {
|
|
9878
9923
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>_cache[0] || (_cache[0] = [
|
|
9879
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)("取消")
|
|
9924
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)("取消", -1)
|
|
9880
9925
|
])),
|
|
9881
|
-
_: 1
|
|
9926
|
+
_: 1,
|
|
9927
|
+
__: [
|
|
9928
|
+
0
|
|
9929
|
+
]
|
|
9882
9930
|
}),
|
|
9883
9931
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)(_component_el_button, {
|
|
9884
9932
|
disabled: submitLoading.value || props.propsLoading,
|
|
@@ -9887,9 +9935,12 @@ const FIELD_REF = 'fieldRef_'; // 存储动态 ref 的对象
|
|
|
9887
9935
|
type: "primary"
|
|
9888
9936
|
}, {
|
|
9889
9937
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>_cache[1] || (_cache[1] = [
|
|
9890
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)(" 保存 ")
|
|
9938
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)(" 保存 ", -1)
|
|
9891
9939
|
])),
|
|
9892
|
-
_: 1
|
|
9940
|
+
_: 1,
|
|
9941
|
+
__: [
|
|
9942
|
+
1
|
|
9943
|
+
]
|
|
9893
9944
|
}, 8, [
|
|
9894
9945
|
"disabled",
|
|
9895
9946
|
"loading"
|
package/dist/hooks/index.js
CHANGED
|
@@ -525,6 +525,13 @@ function useFetchParams(options) {
|
|
|
525
525
|
}
|
|
526
526
|
};
|
|
527
527
|
/**
|
|
528
|
+
* 清理行数据验证信息
|
|
529
|
+
*/ const clearValidateItem = (row)=>{
|
|
530
|
+
const cacheKey = getRowKey(row);
|
|
531
|
+
const index = tableData.value.findIndex((item)=>item[cacheKey] === row[cacheKey]);
|
|
532
|
+
tableRef?.value?.clearValidateRow(index);
|
|
533
|
+
};
|
|
534
|
+
/**
|
|
528
535
|
* 切换编辑状态
|
|
529
536
|
*/ const toggleEdit = async (row)=>{
|
|
530
537
|
const cacheKey = getRowKey(row);
|
|
@@ -595,7 +602,8 @@ function useFetchParams(options) {
|
|
|
595
602
|
delItem,
|
|
596
603
|
insertItem,
|
|
597
604
|
updateItem,
|
|
598
|
-
validateItem
|
|
605
|
+
validateItem,
|
|
606
|
+
clearValidateItem
|
|
599
607
|
};
|
|
600
608
|
}
|
|
601
609
|
/* ESM default export */ const use_editable_table = useEditableTable;
|
|
@@ -3,6 +3,7 @@ import type { FormInstance } from "element-sun";
|
|
|
3
3
|
export type TableRef = {
|
|
4
4
|
formRef: FormInstance;
|
|
5
5
|
validateRow: (index: number, cb?: (isValid: boolean) => void) => Promise<boolean>;
|
|
6
|
+
clearValidateRow: (index: number) => void;
|
|
6
7
|
} | undefined;
|
|
7
8
|
/**
|
|
8
9
|
* 表格编辑功能
|
|
@@ -25,5 +26,6 @@ export declare function useEditableTable<TData extends {
|
|
|
25
26
|
insertItem: (row: TData, index: number, step?: number) => void;
|
|
26
27
|
updateItem: (row: TData, index?: number) => void;
|
|
27
28
|
validateItem: (row: TData) => Promise<boolean>;
|
|
29
|
+
clearValidateItem: (row: TData) => void;
|
|
28
30
|
};
|
|
29
31
|
export default useEditableTable;
|
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_js_pinyin__ from "js-pinyin";
|
|
|
12
12
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash__ from "lodash";
|
|
13
13
|
import * as __WEBPACK_EXTERNAL_MODULE_i18next_vue__ from "i18next-vue";
|
|
14
14
|
var __webpack_modules__ = {
|
|
15
|
-
"./node_modules/.pnpm/vue-loader@17.4.2_vue@3.5.
|
|
15
|
+
"./node_modules/.pnpm/vue-loader@17.4.2_vue@3.5.18_typescript@5.9.2__webpack@5.101.0_esbuild@0.24.2_/node_modules/vue-loader/dist/exportHelper.js": function(__unused_webpack_module, exports) {
|
|
16
16
|
// runtime helper for setting properties on components
|
|
17
17
|
// in a tree-shakable way
|
|
18
18
|
exports["default"] = (sfc, props)=>{
|
|
@@ -72,8 +72,8 @@ function __webpack_require__(moduleId) {
|
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
});
|
|
75
|
-
// EXTERNAL MODULE: ./node_modules/.pnpm/vue-loader@17.4.2_vue@3.5.
|
|
76
|
-
var exportHelper = __webpack_require__("./node_modules/.pnpm/vue-loader@17.4.2_vue@3.5.
|
|
75
|
+
// EXTERNAL MODULE: ./node_modules/.pnpm/vue-loader@17.4.2_vue@3.5.18_typescript@5.9.2__webpack@5.101.0_esbuild@0.24.2_/node_modules/vue-loader/dist/exportHelper.js
|
|
76
|
+
var exportHelper = __webpack_require__("./node_modules/.pnpm/vue-loader@17.4.2_vue@3.5.18_typescript@5.9.2__webpack@5.101.0_esbuild@0.24.2_/node_modules/vue-loader/dist/exportHelper.js");
|
|
77
77
|
const __exports__ = /*#__PURE__*/ (0, exportHelper["default"])(Containervue_type_script_setup_true_lang_tsx, [
|
|
78
78
|
[
|
|
79
79
|
'__scopeId',
|
|
@@ -657,10 +657,10 @@ function useTableConfigColumn(changeInputSort, length, disabledDraggable) {
|
|
|
657
657
|
}, [
|
|
658
658
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)("i", {
|
|
659
659
|
class: `sort-caret ascending ${row.ascendFlag === __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.YES ? '!border-b-blue-500' : ''}`
|
|
660
|
-
}, null),
|
|
660
|
+
}, null, 2),
|
|
661
661
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)("i", {
|
|
662
662
|
class: `sort-caret descending ${row.ascendFlag === __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.NO ? '!border-t-blue-500' : ''}`
|
|
663
|
-
}, null)
|
|
663
|
+
}, null, 2)
|
|
664
664
|
])
|
|
665
665
|
], 8, [
|
|
666
666
|
"onClick"
|
|
@@ -991,7 +991,7 @@ const _hoisted_3 = {
|
|
|
991
991
|
reference: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
992
992
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)(_component_el_button, null, {
|
|
993
993
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
994
|
-
_cache[0] || (_cache[0] = (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)("组合排序 ")),
|
|
994
|
+
_cache[0] || (_cache[0] = (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)("组合排序 ", -1)),
|
|
995
995
|
isSHow.value ? (0, __WEBPACK_EXTERNAL_MODULE_vue__.createCommentVNode)("", true) : ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("span", _hoisted_1, [
|
|
996
996
|
((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(true), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)(__WEBPACK_EXTERNAL_MODULE_vue__.Fragment, null, (0, __WEBPACK_EXTERNAL_MODULE_vue__.renderList)(tableData.value.filter((item)=>item?.ascendFlag === (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG).NO || item?.ascendFlag === (0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG).YES), (item)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)(_component_el_tag, {
|
|
997
997
|
hit: false,
|
|
@@ -1031,7 +1031,10 @@ const _hoisted_3 = {
|
|
|
1031
1031
|
]))), 128))
|
|
1032
1032
|
]))
|
|
1033
1033
|
]),
|
|
1034
|
-
_: 1
|
|
1034
|
+
_: 1,
|
|
1035
|
+
__: [
|
|
1036
|
+
0
|
|
1037
|
+
]
|
|
1035
1038
|
})
|
|
1036
1039
|
]),
|
|
1037
1040
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
@@ -1047,7 +1050,7 @@ const _hoisted_3 = {
|
|
|
1047
1050
|
]),
|
|
1048
1051
|
_: 1
|
|
1049
1052
|
}),
|
|
1050
|
-
_cache[1] || (_cache[1] = (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)("请根据以下规则编辑排序条件 "))
|
|
1053
|
+
_cache[1] || (_cache[1] = (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)("请根据以下规则编辑排序条件 ", -1))
|
|
1051
1054
|
]),
|
|
1052
1055
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)(pro_table, {
|
|
1053
1056
|
onDragEnd: handleSortEnd,
|
|
@@ -1068,9 +1071,12 @@ const _hoisted_3 = {
|
|
|
1068
1071
|
onClick: confirm
|
|
1069
1072
|
}, {
|
|
1070
1073
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>_cache[2] || (_cache[2] = [
|
|
1071
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)(" 关闭 ")
|
|
1074
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)(" 关闭 ", -1)
|
|
1072
1075
|
])),
|
|
1073
|
-
_: 1
|
|
1076
|
+
_: 1,
|
|
1077
|
+
__: [
|
|
1078
|
+
2
|
|
1079
|
+
]
|
|
1074
1080
|
})
|
|
1075
1081
|
])
|
|
1076
1082
|
]),
|
|
@@ -1479,19 +1485,17 @@ function dbgrid_component_settingvue_type_script_setup_true_lang_tsx_isSlot(s) {
|
|
|
1479
1485
|
if (result?.data?.length) {
|
|
1480
1486
|
componentId.value = result.data[0].componentId || "";
|
|
1481
1487
|
serveDbgridComponentSettingList.value = result.data[0].dbgridComponentSettingList || [];
|
|
1482
|
-
if (
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
}
|
|
1494
|
-
} else influenceScopeCode.value = __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.INFLUENCE_SCOPE_CODE.PUBLIC;
|
|
1488
|
+
if (isAdmin && userInfo?.userJobCode !== __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG_STR.NO) influenceScopeCode.value = __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.INFLUENCE_SCOPE_CODE.PUBLIC;
|
|
1489
|
+
else {
|
|
1490
|
+
influenceScopeCode.value = __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.INFLUENCE_SCOPE_CODE.PRiVATE;
|
|
1491
|
+
bizId.value = userInfo?.userId || "";
|
|
1492
|
+
userList.value = [
|
|
1493
|
+
{
|
|
1494
|
+
userId: userInfo?.userId || "",
|
|
1495
|
+
userName: userInfo?.userName || ""
|
|
1496
|
+
}
|
|
1497
|
+
];
|
|
1498
|
+
}
|
|
1495
1499
|
}
|
|
1496
1500
|
}
|
|
1497
1501
|
loading.value = false;
|
|
@@ -1623,8 +1627,8 @@ function dbgrid_component_settingvue_type_script_setup_true_lang_tsx_isSlot(s) {
|
|
|
1623
1627
|
__expose({
|
|
1624
1628
|
dialogRef
|
|
1625
1629
|
}); /**
|
|
1626
|
-
|
|
1627
|
-
|
|
1630
|
+
* 左右滚动
|
|
1631
|
+
*/
|
|
1628
1632
|
const scrollToColumn = (columnName)=>{
|
|
1629
1633
|
scrollKeyWord.value = columnName;
|
|
1630
1634
|
let columnIndex = tableColumn.value.findIndex((item)=>item.prop === columnName);
|
|
@@ -1690,9 +1694,12 @@ function dbgrid_component_settingvue_type_script_setup_true_lang_tsx_isSlot(s) {
|
|
|
1690
1694
|
onClick: handleCancel
|
|
1691
1695
|
}, {
|
|
1692
1696
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>_cache[7] || (_cache[7] = [
|
|
1693
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)("取消")
|
|
1697
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)("取消", -1)
|
|
1694
1698
|
])),
|
|
1695
|
-
_: 1
|
|
1699
|
+
_: 1,
|
|
1700
|
+
__: [
|
|
1701
|
+
7
|
|
1702
|
+
]
|
|
1696
1703
|
}),
|
|
1697
1704
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE_element_sun__.ElButton), {
|
|
1698
1705
|
type: "primary",
|
|
@@ -1704,9 +1711,12 @@ function dbgrid_component_settingvue_type_script_setup_true_lang_tsx_isSlot(s) {
|
|
|
1704
1711
|
})
|
|
1705
1712
|
}, {
|
|
1706
1713
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>_cache[8] || (_cache[8] = [
|
|
1707
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)("应用")
|
|
1714
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)("应用", -1)
|
|
1708
1715
|
])),
|
|
1709
|
-
_: 1
|
|
1716
|
+
_: 1,
|
|
1717
|
+
__: [
|
|
1718
|
+
8
|
|
1719
|
+
]
|
|
1710
1720
|
}, 8, [
|
|
1711
1721
|
"loading",
|
|
1712
1722
|
"disabled"
|
|
@@ -1720,9 +1730,12 @@ function dbgrid_component_settingvue_type_script_setup_true_lang_tsx_isSlot(s) {
|
|
|
1720
1730
|
})
|
|
1721
1731
|
}, {
|
|
1722
1732
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>_cache[9] || (_cache[9] = [
|
|
1723
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)(" 确认 ")
|
|
1733
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)(" 确认 ", -1)
|
|
1724
1734
|
])),
|
|
1725
|
-
_: 1
|
|
1735
|
+
_: 1,
|
|
1736
|
+
__: [
|
|
1737
|
+
9
|
|
1738
|
+
]
|
|
1726
1739
|
}, 8, [
|
|
1727
1740
|
"loading",
|
|
1728
1741
|
"disabled"
|
|
@@ -1883,7 +1896,7 @@ function dbgrid_component_settingvue_type_script_setup_true_lang_tsx_isSlot(s) {
|
|
|
1883
1896
|
const dbgrid_component_setting_exports_ = /*#__PURE__*/ (0, exportHelper["default"])(dbgrid_component_settingvue_type_script_setup_true_lang_tsx, [
|
|
1884
1897
|
[
|
|
1885
1898
|
'__scopeId',
|
|
1886
|
-
"data-v-
|
|
1899
|
+
"data-v-662b8e54"
|
|
1887
1900
|
]
|
|
1888
1901
|
]);
|
|
1889
1902
|
/* ESM default export */ const dbgrid_component_setting = dbgrid_component_setting_exports_;
|
|
@@ -2822,6 +2835,10 @@ const SELECTION = 'selection';
|
|
|
2822
2835
|
const validateProps = props.columns.filter((item)=>item.rules).map((item)=>`tableData.${index}.${item.prop}`);
|
|
2823
2836
|
return formRef.value.validateField(validateProps, callback);
|
|
2824
2837
|
},
|
|
2838
|
+
clearValidateRow: (index)=>{
|
|
2839
|
+
const validateProps = props.columns.filter((item)=>item.rules).map((item)=>`tableData.${index}.${item.prop}`);
|
|
2840
|
+
return formRef.value.clearValidate(validateProps);
|
|
2841
|
+
},
|
|
2825
2842
|
fetchList: (init = true, initPageInfo = {
|
|
2826
2843
|
pageNumber: 1
|
|
2827
2844
|
})=>{
|
|
@@ -4132,6 +4149,13 @@ function useSelectByDirectionEvent(options) {
|
|
|
4132
4149
|
}
|
|
4133
4150
|
};
|
|
4134
4151
|
/**
|
|
4152
|
+
* 清理行数据验证信息
|
|
4153
|
+
*/ const clearValidateItem = (row)=>{
|
|
4154
|
+
const cacheKey = getRowKey(row);
|
|
4155
|
+
const index = tableData.value.findIndex((item)=>item[cacheKey] === row[cacheKey]);
|
|
4156
|
+
tableRef?.value?.clearValidateRow(index);
|
|
4157
|
+
};
|
|
4158
|
+
/**
|
|
4135
4159
|
* 切换编辑状态
|
|
4136
4160
|
*/ const toggleEdit = async (row)=>{
|
|
4137
4161
|
const cacheKey = getRowKey(row);
|
|
@@ -4202,7 +4226,8 @@ function useSelectByDirectionEvent(options) {
|
|
|
4202
4226
|
delItem,
|
|
4203
4227
|
insertItem,
|
|
4204
4228
|
updateItem,
|
|
4205
|
-
validateItem
|
|
4229
|
+
validateItem,
|
|
4230
|
+
clearValidateItem
|
|
4206
4231
|
};
|
|
4207
4232
|
}
|
|
4208
4233
|
function useDataChangeDetector(sources, options) {
|
|
@@ -6740,6 +6765,8 @@ const createPrint = ()=>{
|
|
|
6740
6765
|
defaultContext.printParams = params;
|
|
6741
6766
|
/** 1.查询单据信息 */ await fetchReceiptInfo();
|
|
6742
6767
|
if (breakPrint) return;
|
|
6768
|
+
/**2.1 是否为不打印*/ whetherPrint();
|
|
6769
|
+
if (breakPrint) return;
|
|
6743
6770
|
/** 2.弹窗询问 */ if (defaultContext?.printParams?.designFlag === __WEBPACK_EXTERNAL_MODULE__sun_toolkit_enums__.FLAG.NO) await dialogAsk();
|
|
6744
6771
|
if (breakPrint) return;
|
|
6745
6772
|
/** 3.模版选择 */ await selectPrintTemplateFn();
|
|
@@ -6773,6 +6800,21 @@ const createPrint = ()=>{
|
|
|
6773
6800
|
receiptInfo: res.data[0]
|
|
6774
6801
|
};
|
|
6775
6802
|
};
|
|
6803
|
+
/**
|
|
6804
|
+
* 2.1 是否为不打印(2025-9-22 任务号【25720】)
|
|
6805
|
+
*/ const whetherPrint = ()=>{
|
|
6806
|
+
const { receiptPrintRuleCode, receiptPrintCategCode, menuXReceiptList } = defaultContext.receiptInfo || {};
|
|
6807
|
+
if (!receiptPrintRuleCode) return;
|
|
6808
|
+
let code = receiptPrintCategCode;
|
|
6809
|
+
if (receiptPrintRuleCode === constant_RECEIPT_PRINT_RULE_CODE.MENU) {
|
|
6810
|
+
const menuReceiptInfo = menuXReceiptList?.find((item)=>item.menuId === defaultContext.printParams?.menuId);
|
|
6811
|
+
code = menuReceiptInfo?.receiptPrintCategCode || receiptPrintCategCode;
|
|
6812
|
+
} else code = receiptPrintCategCode;
|
|
6813
|
+
if (code === constant_RECEIPT_PRINT_CATEG_CODE.NO_PRINT) {
|
|
6814
|
+
breakPrint = true; // 如果是不打印则取消打印
|
|
6815
|
+
return;
|
|
6816
|
+
}
|
|
6817
|
+
};
|
|
6776
6818
|
/**
|
|
6777
6819
|
* 2.弹窗询问
|
|
6778
6820
|
*/ const dialogAsk = async ()=>{
|
|
@@ -6800,7 +6842,7 @@ const createPrint = ()=>{
|
|
|
6800
6842
|
* 2.弹窗询问ElMessageBox询问
|
|
6801
6843
|
*/ const messageBoxAsk = async (code, receiptNameDisplay)=>{
|
|
6802
6844
|
try {
|
|
6803
|
-
await __WEBPACK_EXTERNAL_MODULE_element_sun__.ElMessageBox.confirm(`是否${code === constant_RECEIPT_PRINT_CATEG_CODE.ASK_PRINT ? "打印" : "开具"}
|
|
6845
|
+
await __WEBPACK_EXTERNAL_MODULE_element_sun__.ElMessageBox.confirm(`是否${code === constant_RECEIPT_PRINT_CATEG_CODE.ASK_PRINT ? "打印" : "开具"} “${receiptNameDisplay}”?`, "提示", {
|
|
6804
6846
|
confirmButtonText: "确定",
|
|
6805
6847
|
cancelButtonText: "取消",
|
|
6806
6848
|
type: "warning"
|
|
@@ -7152,7 +7194,7 @@ const print = async (params)=>{
|
|
|
7152
7194
|
class: "min-w-[50px]"
|
|
7153
7195
|
}, {
|
|
7154
7196
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
7155
|
-
_cache[0] || (_cache[0] = (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)(" 打印 ")),
|
|
7197
|
+
_cache[0] || (_cache[0] = (0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)(" 打印 ", -1)),
|
|
7156
7198
|
showReceipt.value && !_ctx.disabled ? ((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createBlock)((0, __WEBPACK_EXTERNAL_MODULE_vue__.unref)(__WEBPACK_EXTERNAL_MODULE_element_sun__.ElIcon), {
|
|
7157
7199
|
key: 0,
|
|
7158
7200
|
class: "el-icon--right"
|
|
@@ -7163,7 +7205,10 @@ const print = async (params)=>{
|
|
|
7163
7205
|
_: 1
|
|
7164
7206
|
})) : (0, __WEBPACK_EXTERNAL_MODULE_vue__.createCommentVNode)("", true)
|
|
7165
7207
|
]),
|
|
7166
|
-
_: 1
|
|
7208
|
+
_: 1,
|
|
7209
|
+
__: [
|
|
7210
|
+
0
|
|
7211
|
+
]
|
|
7167
7212
|
}, 8, [
|
|
7168
7213
|
"type",
|
|
7169
7214
|
"disabled"
|
|
@@ -7868,8 +7913,8 @@ const hospital_select_exports_ = hospital_selectvue_type_script_setup_true_lang_
|
|
|
7868
7913
|
}
|
|
7869
7914
|
};
|
|
7870
7915
|
const handelRemoteMethod = async (value)=>{
|
|
7871
|
-
filterKeyWord.value = value || '';
|
|
7872
|
-
if (!value && userList.value.length) return;
|
|
7916
|
+
if (filterKeyWord.value !== value) filterKeyWord.value = value || '';
|
|
7917
|
+
else if (!value && userList.value.length) return;
|
|
7873
7918
|
try {
|
|
7874
7919
|
loading.value = true;
|
|
7875
7920
|
await getUserList({
|
|
@@ -7879,8 +7924,8 @@ const hospital_select_exports_ = hospital_selectvue_type_script_setup_true_lang_
|
|
|
7879
7924
|
loading.value = false;
|
|
7880
7925
|
}
|
|
7881
7926
|
};
|
|
7882
|
-
const fetchData = async ()=>{
|
|
7883
|
-
await getUserList();
|
|
7927
|
+
const fetchData = async (data)=>{
|
|
7928
|
+
await getUserList(data);
|
|
7884
7929
|
};
|
|
7885
7930
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.onMounted)(()=>{
|
|
7886
7931
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.nextTick)(async ()=>{
|
|
@@ -8073,7 +8118,7 @@ const user_select_exports_ = user_selectvue_type_script_setup_true_lang_ts_name_
|
|
|
8073
8118
|
]
|
|
8074
8119
|
});
|
|
8075
8120
|
const getRowClassName = (data)=>{
|
|
8076
|
-
if (props.disabledValueIds?.length && data.row.orgId && props.disabledValueIds.includes(data.row.orgId)) return 'cursor-not-allowed';
|
|
8121
|
+
if (props.disabledValueIds?.length && data.row.orgId && props.disabledValueIds.includes(data.row.orgId)) return 'cursor-not-allowed !bg-gray-100 text-gray-300';
|
|
8077
8122
|
return 'cursor-pointer';
|
|
8078
8123
|
};
|
|
8079
8124
|
const getBizUnitList = async (data)=>{
|
|
@@ -8246,8 +8291,8 @@ const user_select_exports_ = user_selectvue_type_script_setup_true_lang_ts_name_
|
|
|
8246
8291
|
document.removeEventListener('keydown', handleKeydown, true);
|
|
8247
8292
|
if (props.multiSelectFlag) document.removeEventListener('click', handleClickOutside);
|
|
8248
8293
|
});
|
|
8249
|
-
const fetchData = async ()=>{
|
|
8250
|
-
await getBizUnitList();
|
|
8294
|
+
const fetchData = async (data)=>{
|
|
8295
|
+
await getBizUnitList(data);
|
|
8251
8296
|
};
|
|
8252
8297
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.onMounted)(()=>{
|
|
8253
8298
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.nextTick)(async ()=>{
|
|
@@ -8489,7 +8534,7 @@ const biz_unit_select_exports_ = biz_unit_selectvue_type_script_setup_true_lang_
|
|
|
8489
8534
|
]
|
|
8490
8535
|
});
|
|
8491
8536
|
const getRowClassName = (data)=>{
|
|
8492
|
-
if (props.disabledValueIds?.length && data.row.orgId && props.disabledValueIds.includes(data.row.orgId)) return 'cursor-not-allowed';
|
|
8537
|
+
if (props.disabledValueIds?.length && data.row.orgId && props.disabledValueIds.includes(data.row.orgId)) return 'cursor-not-allowed !bg-gray-100 text-gray-300';
|
|
8493
8538
|
return 'cursor-pointer';
|
|
8494
8539
|
};
|
|
8495
8540
|
const getDepartmentList = async (data)=>{
|
|
@@ -8678,8 +8723,8 @@ const biz_unit_select_exports_ = biz_unit_selectvue_type_script_setup_true_lang_
|
|
|
8678
8723
|
document.removeEventListener('keydown', handleKeydown, true);
|
|
8679
8724
|
if (props.multiSelectFlag) document.removeEventListener('click', handleClickOutside);
|
|
8680
8725
|
});
|
|
8681
|
-
const fetchData = async ()=>{
|
|
8682
|
-
await getDepartmentList();
|
|
8726
|
+
const fetchData = async (data)=>{
|
|
8727
|
+
await getDepartmentList(data);
|
|
8683
8728
|
};
|
|
8684
8729
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.onMounted)(()=>{
|
|
8685
8730
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.nextTick)(async ()=>{
|
|
@@ -8915,7 +8960,7 @@ const department_select_exports_ = department_selectvue_type_script_setup_true_l
|
|
|
8915
8960
|
]
|
|
8916
8961
|
});
|
|
8917
8962
|
const getRowClassName = (data)=>{
|
|
8918
|
-
if (props.disabledValueIds?.length && data.row.orgId && props.disabledValueIds.includes(data.row.orgId)) return 'cursor-not-allowed';
|
|
8963
|
+
if (props.disabledValueIds?.length && data.row.orgId && props.disabledValueIds.includes(data.row.orgId)) return 'cursor-not-allowed !bg-gray-100 text-gray-300';
|
|
8919
8964
|
return 'cursor-pointer';
|
|
8920
8965
|
};
|
|
8921
8966
|
const getWardList = async (data)=>{
|
|
@@ -9103,8 +9148,8 @@ const department_select_exports_ = department_selectvue_type_script_setup_true_l
|
|
|
9103
9148
|
document.removeEventListener('keydown', handleKeydown, true);
|
|
9104
9149
|
if (props.multiSelectFlag) document.removeEventListener('click', handleClickOutside);
|
|
9105
9150
|
});
|
|
9106
|
-
const fetchData = async ()=>{
|
|
9107
|
-
await getWardList();
|
|
9151
|
+
const fetchData = async (data)=>{
|
|
9152
|
+
await getWardList(data);
|
|
9108
9153
|
};
|
|
9109
9154
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.onMounted)(()=>{
|
|
9110
9155
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.nextTick)(async ()=>{
|
|
@@ -9494,7 +9539,8 @@ const WB_NO = "wbNo";
|
|
|
9494
9539
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
9495
9540
|
((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(true), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)(__WEBPACK_EXTERNAL_MODULE_vue__.Fragment, null, (0, __WEBPACK_EXTERNAL_MODULE_vue__.renderList)(configData.value, (item, index)=>((0, __WEBPACK_EXTERNAL_MODULE_vue__.openBlock)(), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createElementBlock)("div", (0, __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps)({
|
|
9496
9541
|
key: item.name + index,
|
|
9497
|
-
class: item.span || item.isFullWidth ? item.isFullWidth ? 'col-span-full' : `... col-span-${item.span}` : isInlineMode ? 'inline-block' : ''
|
|
9542
|
+
class: item.span || item.isFullWidth ? item.isFullWidth ? 'col-span-full' : `... col-span-${item.span}` : isInlineMode ? 'inline-block' : ''
|
|
9543
|
+
}, {
|
|
9498
9544
|
ref_for: true
|
|
9499
9545
|
}, item.formItemProps || {}), [
|
|
9500
9546
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)(_component_el_form_item, (0, __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps)({
|
|
@@ -9502,7 +9548,8 @@ const WB_NO = "wbNo";
|
|
|
9502
9548
|
label: 'function' == typeof item.label ? '' : item.label,
|
|
9503
9549
|
prop: item.name,
|
|
9504
9550
|
class: item.className,
|
|
9505
|
-
style: isInlineMode ? 'margin-right: 16px;' : ''
|
|
9551
|
+
style: isInlineMode ? 'margin-right: 16px;' : ''
|
|
9552
|
+
}, {
|
|
9506
9553
|
ref_for: true
|
|
9507
9554
|
}, item.formItemProps || {}), (0, __WEBPACK_EXTERNAL_MODULE_vue__.createSlots)({
|
|
9508
9555
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>[
|
|
@@ -9512,7 +9559,8 @@ const WB_NO = "wbNo";
|
|
|
9512
9559
|
type: item.type,
|
|
9513
9560
|
"support-copy-and-tips": item.supportCopyAndTips,
|
|
9514
9561
|
placeholder: item.placeholder,
|
|
9515
|
-
options: item.options
|
|
9562
|
+
options: item.options
|
|
9563
|
+
}, {
|
|
9516
9564
|
ref_for: true
|
|
9517
9565
|
}, item.extraProps || {}, {
|
|
9518
9566
|
modelValue: formModel[item.name],
|
|
@@ -9543,6 +9591,8 @@ const WB_NO = "wbNo";
|
|
|
9543
9591
|
ref_for: true,
|
|
9544
9592
|
ref_key: "itemRefs",
|
|
9545
9593
|
ref: itemRefs
|
|
9594
|
+
}, {
|
|
9595
|
+
ref_for: true
|
|
9546
9596
|
}, item.extraProps || {}, {
|
|
9547
9597
|
modelValue: formModel[item.name],
|
|
9548
9598
|
"onUpdate:modelValue": ($event)=>formModel[item.name] = $event,
|
|
@@ -9585,9 +9635,12 @@ const WB_NO = "wbNo";
|
|
|
9585
9635
|
})
|
|
9586
9636
|
}, {
|
|
9587
9637
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>_cache[1] || (_cache[1] = [
|
|
9588
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)("查询")
|
|
9638
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)("查询", -1)
|
|
9589
9639
|
])),
|
|
9590
|
-
_: 1
|
|
9640
|
+
_: 1,
|
|
9641
|
+
__: [
|
|
9642
|
+
1
|
|
9643
|
+
]
|
|
9591
9644
|
})) : (0, __WEBPACK_EXTERNAL_MODULE_vue__.createCommentVNode)("", true)
|
|
9592
9645
|
])
|
|
9593
9646
|
]),
|
|
@@ -11939,9 +11992,12 @@ const FIELD_REF = 'fieldRef_'; // 存储动态 ref 的对象
|
|
|
11939
11992
|
onClick: cancel
|
|
11940
11993
|
}, {
|
|
11941
11994
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>_cache[0] || (_cache[0] = [
|
|
11942
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)("取消")
|
|
11995
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)("取消", -1)
|
|
11943
11996
|
])),
|
|
11944
|
-
_: 1
|
|
11997
|
+
_: 1,
|
|
11998
|
+
__: [
|
|
11999
|
+
0
|
|
12000
|
+
]
|
|
11945
12001
|
}),
|
|
11946
12002
|
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createVNode)(_component_el_button, {
|
|
11947
12003
|
disabled: submitLoading.value || props.propsLoading,
|
|
@@ -11950,9 +12006,12 @@ const FIELD_REF = 'fieldRef_'; // 存储动态 ref 的对象
|
|
|
11950
12006
|
type: "primary"
|
|
11951
12007
|
}, {
|
|
11952
12008
|
default: (0, __WEBPACK_EXTERNAL_MODULE_vue__.withCtx)(()=>_cache[1] || (_cache[1] = [
|
|
11953
|
-
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)(" 保存 ")
|
|
12009
|
+
(0, __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode)(" 保存 ", -1)
|
|
11954
12010
|
])),
|
|
11955
|
-
_: 1
|
|
12011
|
+
_: 1,
|
|
12012
|
+
__: [
|
|
12013
|
+
1
|
|
12014
|
+
]
|
|
11956
12015
|
}, 8, [
|
|
11957
12016
|
"disabled",
|
|
11958
12017
|
"loading"
|