fix(lint): clear dynamic delete violations
This commit is contained in:
@@ -237,10 +237,10 @@ const selectProcessListener = (listener: any) => {
|
||||
bpmnElement.businessObject?.extensionElements?.values?.filter(
|
||||
(ex: any) => ex.$type !== `${prefix}:TaskListener`,
|
||||
) ?? [];
|
||||
updateElementExtensions(
|
||||
bpmnElement,
|
||||
[...otherExtensionList.value, ...bpmnElementListeners.value],
|
||||
);
|
||||
updateElementExtensions(bpmnElement, [
|
||||
...otherExtensionList.value,
|
||||
...bpmnElementListeners.value,
|
||||
]);
|
||||
};
|
||||
|
||||
const [ListenerDrawer, listenerDrawerApi] = useVbenDrawer({
|
||||
|
||||
@@ -259,14 +259,14 @@ function updateFormFieldKey(
|
||||
) {
|
||||
if (!formSetting?.updateFormFields || !newKey) return;
|
||||
const value = formSetting.updateFormFields[oldKey];
|
||||
delete formSetting.updateFormFields[oldKey];
|
||||
Reflect.deleteProperty(formSetting.updateFormFields, oldKey);
|
||||
formSetting.updateFormFields[String(newKey)] = value;
|
||||
}
|
||||
|
||||
/** 删除修改字段设置项 */
|
||||
function deleteFormFieldSetting(formSetting: FormTriggerSetting, key: string) {
|
||||
if (!formSetting?.updateFormFields) return;
|
||||
delete formSetting.updateFormFields[key];
|
||||
Reflect.deleteProperty(formSetting.updateFormFields, key);
|
||||
}
|
||||
|
||||
/** 保存配置 */
|
||||
|
||||
@@ -430,7 +430,9 @@ defineExpose({ setCustomApproveUsers, batchSetCustomApproveUsers });
|
||||
|
||||
<!-- 审批意见,附件和签名 -->
|
||||
<div
|
||||
v-if="shouldShowReasonAndAttachment(task, activity.nodeType, index)"
|
||||
v-if="
|
||||
shouldShowReasonAndAttachment(task, activity.nodeType, index)
|
||||
"
|
||||
class="mt-1 w-full rounded-md bg-gray-100 p-2 text-sm text-gray-500"
|
||||
>
|
||||
<div v-if="task.reason">审批意见:{{ task.reason }}</div>
|
||||
|
||||
@@ -54,7 +54,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ const [DetailModal, detailModalApi] = useVbenModal({
|
||||
function clearDetailMap() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ async function handleExpandChange(
|
||||
if (key == null) {
|
||||
return;
|
||||
}
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
detailMap[key] = await getCheckOrderDetailListByOrderId(key);
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ const [DetailModal, detailModalApi] = useVbenModal({
|
||||
function clearDetailMap() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ async function handleExpandChange(
|
||||
if (key == null) {
|
||||
return;
|
||||
}
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
detailMap[key] = await getMovementOrderDetailListByOrderId(key);
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ const [DetailModal, detailModalApi] = useVbenModal({
|
||||
function clearDetailMap() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ async function handleExpandChange(
|
||||
if (key == null) {
|
||||
return;
|
||||
}
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
detailMap[key] = await getReceiptOrderDetailListByOrderId(key);
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ const [DetailModal, detailModalApi] = useVbenModal({
|
||||
function clearDetailMap() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ async function handleExpandChange(
|
||||
if (key == null) {
|
||||
return;
|
||||
}
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
detailMap[key] = await getShipmentOrderDetailListByOrderId(key);
|
||||
}
|
||||
|
||||
|
||||
@@ -229,10 +229,10 @@ const selectProcessListener = (listener: any) => {
|
||||
bpmnElement.businessObject?.extensionElements?.values?.filter(
|
||||
(ex: any) => ex.$type !== `${prefix}:TaskListener`,
|
||||
) ?? [];
|
||||
updateElementExtensions(
|
||||
bpmnElement,
|
||||
[...otherExtensionList.value, ...bpmnElementListeners.value],
|
||||
);
|
||||
updateElementExtensions(bpmnElement, [
|
||||
...otherExtensionList.value,
|
||||
...bpmnElementListeners.value,
|
||||
]);
|
||||
};
|
||||
|
||||
const [ListenerDrawer, listenerDrawerApi] = useVbenDrawer({
|
||||
|
||||
@@ -258,14 +258,14 @@ function updateFormFieldKey(
|
||||
) {
|
||||
if (!formSetting?.updateFormFields || !newKey) return;
|
||||
const value = formSetting.updateFormFields[oldKey];
|
||||
delete formSetting.updateFormFields[oldKey];
|
||||
Reflect.deleteProperty(formSetting.updateFormFields, oldKey);
|
||||
formSetting.updateFormFields[String(newKey)] = value;
|
||||
}
|
||||
|
||||
/** 删除修改字段设置项 */
|
||||
function deleteFormFieldSetting(formSetting: FormTriggerSetting, key: string) {
|
||||
if (!formSetting?.updateFormFields) return;
|
||||
delete formSetting.updateFormFields[key];
|
||||
Reflect.deleteProperty(formSetting.updateFormFields, key);
|
||||
}
|
||||
|
||||
/** 保存配置 */
|
||||
|
||||
@@ -437,7 +437,9 @@ defineExpose({ setCustomApproveUsers, batchSetCustomApproveUsers });
|
||||
|
||||
<!-- 审批意见、附件和签名 -->
|
||||
<div
|
||||
v-if="shouldShowReasonAndAttachment(task, activity.nodeType, index)"
|
||||
v-if="
|
||||
shouldShowReasonAndAttachment(task, activity.nodeType, index)
|
||||
"
|
||||
class="mt-1 w-full rounded-md bg-gray-100 p-2 text-sm text-gray-500"
|
||||
>
|
||||
<div v-if="task.reason">审批意见:{{ task.reason }}</div>
|
||||
|
||||
@@ -54,7 +54,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ const [DetailModal, detailModalApi] = useVbenModal({
|
||||
function clearDetailMap() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ async function handleExpandChange(
|
||||
if (key == null) {
|
||||
return;
|
||||
}
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
detailMap[key] = await getCheckOrderDetailListByOrderId(key);
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ const [DetailModal, detailModalApi] = useVbenModal({
|
||||
function clearDetailMap() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ async function handleExpandChange(
|
||||
if (key == null) {
|
||||
return;
|
||||
}
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
detailMap[key] = await getMovementOrderDetailListByOrderId(key);
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ const [DetailModal, detailModalApi] = useVbenModal({
|
||||
function clearDetailMap() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ async function handleExpandChange(
|
||||
if (key == null) {
|
||||
return;
|
||||
}
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
detailMap[key] = await getReceiptOrderDetailListByOrderId(key);
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ const [DetailModal, detailModalApi] = useVbenModal({
|
||||
function clearDetailMap() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ async function handleExpandChange(
|
||||
if (key == null) {
|
||||
return;
|
||||
}
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
detailMap[key] = await getShipmentOrderDetailListByOrderId(key);
|
||||
}
|
||||
|
||||
|
||||
@@ -237,10 +237,10 @@ const selectProcessListener = (listener: any) => {
|
||||
bpmnElement.businessObject?.extensionElements?.values?.filter(
|
||||
(ex: any) => ex.$type !== `${prefix}:TaskListener`,
|
||||
) ?? [];
|
||||
updateElementExtensions(
|
||||
bpmnElement,
|
||||
[...otherExtensionList.value, ...bpmnElementListeners.value],
|
||||
);
|
||||
updateElementExtensions(bpmnElement, [
|
||||
...otherExtensionList.value,
|
||||
...bpmnElementListeners.value,
|
||||
]);
|
||||
};
|
||||
|
||||
const [ListenerDrawer, listenerDrawerApi] = useVbenDrawer({
|
||||
|
||||
@@ -258,14 +258,14 @@ function updateFormFieldKey(
|
||||
) {
|
||||
if (!formSetting?.updateFormFields || !newKey) return;
|
||||
const value = formSetting.updateFormFields[oldKey];
|
||||
delete formSetting.updateFormFields[oldKey];
|
||||
Reflect.deleteProperty(formSetting.updateFormFields, oldKey);
|
||||
formSetting.updateFormFields[String(newKey)] = value;
|
||||
}
|
||||
|
||||
/** 删除修改字段设置项 */
|
||||
function deleteFormFieldSetting(formSetting: FormTriggerSetting, key: string) {
|
||||
if (!formSetting?.updateFormFields) return;
|
||||
delete formSetting.updateFormFields[key];
|
||||
Reflect.deleteProperty(formSetting.updateFormFields, key);
|
||||
}
|
||||
|
||||
/** 保存配置 */
|
||||
|
||||
@@ -435,7 +435,9 @@ defineExpose({ setCustomApproveUsers, batchSetCustomApproveUsers });
|
||||
|
||||
<!-- 审批意见,附件和签名 -->
|
||||
<div
|
||||
v-if="shouldShowReasonAndAttachment(task, activity.nodeType, index)"
|
||||
v-if="
|
||||
shouldShowReasonAndAttachment(task, activity.nodeType, index)
|
||||
"
|
||||
class="mt-1 w-full rounded-md bg-gray-100 p-2 text-sm text-gray-500"
|
||||
>
|
||||
<div v-if="task.reason">审批意见:{{ task.reason }}</div>
|
||||
|
||||
@@ -158,9 +158,7 @@ onMounted(getList);
|
||||
{{ data.day.split('-')[2] }}
|
||||
</span>
|
||||
<ElTag
|
||||
v-if="
|
||||
data.type === 'current-month' && holidaySet.has(data.day)
|
||||
"
|
||||
v-if="data.type === 'current-month' && holidaySet.has(data.day)"
|
||||
effect="dark"
|
||||
size="small"
|
||||
type="success"
|
||||
|
||||
@@ -54,7 +54,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ const [DetailFormModal, detailFormModalApi] = useVbenModal({
|
||||
function handleRefresh() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
gridApi.query();
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ const [DetailModal, detailModalApi] = useVbenModal({
|
||||
function clearDetailMap() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ async function handleExpandChange(
|
||||
if (key == null) {
|
||||
return;
|
||||
}
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
detailMap[key] = await getCheckOrderDetailListByOrderId(key);
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ const [DetailModal, detailModalApi] = useVbenModal({
|
||||
function clearDetailMap() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ async function handleExpandChange(
|
||||
if (key == null) {
|
||||
return;
|
||||
}
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
detailMap[key] = await getMovementOrderDetailListByOrderId(key);
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ const [DetailModal, detailModalApi] = useVbenModal({
|
||||
function clearDetailMap() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ async function handleExpandChange(
|
||||
if (key == null) {
|
||||
return;
|
||||
}
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
detailMap[key] = await getReceiptOrderDetailListByOrderId(key);
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ const [DetailModal, detailModalApi] = useVbenModal({
|
||||
function clearDetailMap() {
|
||||
for (const id of Object.keys(detailMap)) {
|
||||
const key = Number(id);
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ async function handleExpandChange(
|
||||
if (key == null) {
|
||||
return;
|
||||
}
|
||||
delete detailMap[key];
|
||||
Reflect.deleteProperty(detailMap, key);
|
||||
detailMap[key] = await getShipmentOrderDetailListByOrderId(key);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user