{"version":3,"sources":["webpack:///./src/views/Payment/components/approvalModal.vue?b122","webpack:///./src/views/Payment/components/approvalModal.vue?d70e","webpack:///./src/views/Payment/components/approvalModal.vue","webpack:///./src/views/Payment/components/approvalModal.vue?8d8c","webpack:///./src/views/Payment/Mgmt/PendingApproval/PayoutRound/index.vue?bab3","webpack:///./src/views/Payment/Mgmt/PendingApproval/PayoutRound/index.vue?5667","webpack:///./src/views/Payment/Mgmt/PendingApproval/PayoutRound/index.vue","webpack:///./src/views/Payment/Mgmt/PendingApproval/PayoutRound/index.vue?0fbc"],"names":["_withScopeId","n","_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","key","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","render","_ctx","_cache","$props","$setup","$data","$options","_component_a_textarea","_component_ExclamationCircleFilled","_component_a_button","_component_a_modal","visible","tableModalVisible","$event","onCancel","handleCancel","title","footer","onClick","handleConfirm","disabled","commentsRequired","comments","loading","default","_","list","item","index","formatkey","value","placeholder","placeholderMap","approvalType","rows","name","props","type","Boolean","Array","String","required","defalut","setup","context","reject","approve","templist","newV","console","log","emit","components","ExclamationCircleFilled","__exports__","src","style","_component_a_select_option","_component_a_select","_component_a_space","_component_DownloadOutlined","_component_a_tooltip","_component_entity","_component_entity_wrapper","_component_a_table","_component_approval_modal","align","size","payoutRound","onChange","handlePayroundChange","payoutList","handleDownload","handleReject","handleApprove","ref","width","rowSelection","selectedRowKeys","length","scroll","y","dataSource","data","columns","rowKey","record","pagination","rowClassName","getRowClass","formatThousand","text","toThousandsAndTwoDecimal","onOnConfirm","handleCommentsConfirm","approvalModalVisible","selectedRowData","COLUMNS","dataIndex","className","slots","customRender","route","query","useDealerPayout","undefined","tableList","payoutCodes","getPayoutList","val","tableData","selectedRows","clearSelection","titleMap","entityRef","refreshPageData","refreshData","next","map","approveComment","delegationUserId","id","requestUserId","then","res","info","content","catch","rejectComment","params","url","method","downloadFile","DownloadOutlined","EntityWrapper","Entity","Approv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BuF,IACAL,QAKFxC,EAAiB,WAYrB,IAAMyD,EAAS,CACbC,IAAK,6DAA6D9D,EAAYtC,MAC9EqG,OAAQ,OACRF,OAAQtB,EAAY7E,OAEtB,OAAAsG,EAAA,MAAaH,IAGf,OAAO,+BACL7D,YAAW,EACXG,WAAU,EACVD,qBAAoB,EACpB1D,kBAAiB,EACjB6D,aAAY,EACZC,cAAa,EACb3D,aAAY,EACZI,cAAa,GACV,oBAAO2F,IAAU,CACpBjC,aAAY,EACZY,YAAW,EACXM,qBAAoB,EACpBD,sBAAqB,EACrB7D,aAAY,EACZ2D,yBAAwB,OACxBqB,SAAQ,EACRC,UAAS,EACT1C,eAAc,KAGlBpB,WAAY,CACViF,iBAAgB,OAChBC,cAAa,OACbC,OAAM,OACNC,cAAa,U,iCClNjB,MAAMlF,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAAStD,GAAQ,CAAC,YAAY,qBAE1E","file":"js/chunk-379d96ee.4a26f2f4.js","sourcesContent":["export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./approvalModal.vue?vue&type=style&index=0&id=98cf0630&scoped=true&lang=scss\"","import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-98cf0630\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"payout-wrapper\" }\nconst _hoisted_2 = { class: \"payout-list\" }\nconst _hoisted_3 = { class: \"approve-comment\" }\nconst _hoisted_4 = { key: 0 }\nconst _hoisted_5 = /*#__PURE__*/_createTextVNode(\"Comment:\")\nconst _hoisted_6 = { class: \"title\" }\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", null, \"Tips\", -1))\nconst _hoisted_8 = /*#__PURE__*/_createTextVNode(\" Yes \")\nconst _hoisted_9 = /*#__PURE__*/_createTextVNode(\" No \")\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_a_textarea = _resolveComponent(\"a-textarea\")!\n const _component_ExclamationCircleFilled = _resolveComponent(\"ExclamationCircleFilled\")!\n const _component_a_button = _resolveComponent(\"a-button\")!\n const _component_a_modal = _resolveComponent(\"a-modal\")!\n\n return (_openBlock(), _createBlock(_component_a_modal, {\n visible: _ctx.tableModalVisible,\n \"onUpdate:visible\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.tableModalVisible) = $event)),\n onCancel: _ctx.handleCancel\n }, {\n title: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_6, [\n _createVNode(_component_ExclamationCircleFilled, { class: \"title-icon\" }),\n _hoisted_7\n ])\n ]),\n footer: _withCtx(() => [\n _createVNode(_component_a_button, {\n onClick: _ctx.handleConfirm,\n disabled: _ctx.commentsRequired && !_ctx.comments,\n loading: _ctx.loading\n }, {\n default: _withCtx(() => [\n _hoisted_8\n ]),\n _: 1\n }, 8, [\"onClick\", \"disabled\", \"loading\"]),\n _createVNode(_component_a_button, { onClick: _ctx.handleCancel }, {\n default: _withCtx(() => [\n _hoisted_9\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"h3\", null, _toDisplayString(_ctx.title), 1),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.list, (item, index) => {\n return (_openBlock(), _createElementBlock(\"div\", { key: index }, _toDisplayString(item[_ctx.formatkey]), 1))\n }), 128))\n ]),\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", null, [\n (_ctx.commentsRequired)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_4, \"*\"))\n : _createCommentVNode(\"\", true),\n _hoisted_5\n ]),\n _createVNode(_component_a_textarea, {\n value: _ctx.comments,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.comments) = $event)),\n placeholder: _ctx.placeholderMap[_ctx.approvalType],\n rows: 4\n }, null, 8, [\"value\", \"placeholder\"])\n ])\n ])\n ]),\n _: 1\n }, 8, [\"visible\", \"onCancel\"]))\n}","\nimport { computed, defineComponent, PropType, ref, watch, reactive } from \"vue\";\nimport { ExclamationCircleFilled } from \"@ant-design/icons-vue\";\nexport default defineComponent({\n name: \"approvalModal\",\n props: {\n visible: {\n type: Boolean,\n default: false,\n },\n list: {\n type: Array as PropType,\n default: () => [],\n },\n formatkey: {\n type: String,\n required: true,\n },\n approvalType: {\n type: String,\n default: \"approve\",\n },\n // placeholder: {\n // type: String,\n // defalut: 'Please input'\n // },\n commentsRequired: {\n type: Boolean,\n defalut: true,\n },\n },\n setup(props, context) {\n const placeholderMap = reactive({\n reject: \"Please provide your comments for rejection\",\n approve: \"Please provide your comments for approval\",\n });\n const templist = computed(() => props.list);\n const tableModalVisible = computed(() => props.visible);\n const title = computed(() =>\n props.approvalType == \"approve\"\n ? \"Approve Payout:\"\n : props.approvalType == \"reject\"\n ? \"Reject Payout:\"\n : \"Approve Payout:\"\n );\n const loading = ref(false);\n const comments = ref(null);\n watch(templist, (newV) => {\n console.log(\"templistwwww=====\", newV);\n });\n /*watch(\n () => props.visible,\n (newVal) => {\n console.log(typeof newVal, \"watch\");\n tableModalVisible.value = newVal;\n },{\n immediate:true\n });\n watch([props.visible, props.approveType], (newValues, prevValues) => {\n console.log(newValues, prevValues,'进入弹框侦听中。。');\n console.log(typeof newValues[0])\n tableModalVisible.value = newValues[0]\n },{\n immediate:true\n })*/\n const handleCancel = () => {\n //tableModalVisible.value = false;\n context.emit(\"update:visible\", false);\n comments.value = ''\n };\n const handleConfirm = () => {\n loading.value = true;\n context.emit(\"on-confirm\", comments.value, () => {\n comments.value = null;\n loading.value = false;\n });\n };\n return {\n handleCancel,\n handleConfirm,\n tableModalVisible,\n loading,\n comments,\n title,\n placeholderMap\n };\n },\n components: {\n ExclamationCircleFilled,\n },\n});\n","import { render } from \"./approvalModal.vue?vue&type=template&id=98cf0630&scoped=true&ts=true\"\nimport script from \"./approvalModal.vue?vue&type=script&lang=ts\"\nexport * from \"./approvalModal.vue?vue&type=script&lang=ts\"\n\nimport \"./approvalModal.vue?vue&type=style&index=0&id=98cf0630&scoped=true&lang=scss\"\n\nimport exportComponent from \"/app/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-98cf0630\"]])\n\nexport default __exports__","export * from \"-!../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--1-1!./index.vue?vue&type=style&index=0&id=306386bf&lang=scss&scoped=true\"","import { createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createBlock as _createBlock, createVNode as _createVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nimport _imports_0 from '@/assets/images/claim/rect.png'\n\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-306386bf\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"claim-wrap wrap\" }\nconst _hoisted_2 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"section\", null, [\n /*#__PURE__*/_createElementVNode(\"img\", {\n src: _imports_0,\n class: \"rect\"\n }),\n /*#__PURE__*/_createElementVNode(\"strong\", { class: \"wrap-title\" }, \"Payout Overview\")\n], -1))\nconst _hoisted_3 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"label\" }, \"Payout round\", -1))\nconst _hoisted_4 = /*#__PURE__*/_createTextVNode(\" Reject \")\nconst _hoisted_5 = /*#__PURE__*/_createTextVNode(\" Approve \")\nconst _hoisted_6 = { style: {\"padding\":\"0 20px\",\"margin-top\":\"10px\"} }\nconst _hoisted_7 = {\n style: {\"padding-top\":\"30px\"},\n class: \"table-wrapper payment-table-column-wrapper\"\n}\nconst _hoisted_8 = /*#__PURE__*/_createTextVNode(\" Cancel \")\nconst _hoisted_9 = /*#__PURE__*/_createTextVNode(\" Confirm \")\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_a_select_option = _resolveComponent(\"a-select-option\")!\n const _component_a_select = _resolveComponent(\"a-select\")!\n const _component_a_space = _resolveComponent(\"a-space\")!\n const _component_DownloadOutlined = _resolveComponent(\"DownloadOutlined\")!\n const _component_a_tooltip = _resolveComponent(\"a-tooltip\")!\n const _component_a_button = _resolveComponent(\"a-button\")!\n const _component_entity = _resolveComponent(\"entity\")!\n const _component_entity_wrapper = _resolveComponent(\"entity-wrapper\")!\n const _component_a_table = _resolveComponent(\"a-table\")!\n const _component_a_modal = _resolveComponent(\"a-modal\")!\n const _component_approval_modal = _resolveComponent(\"approval-modal\")!\n\n return (_openBlock(), _createElementBlock(\"div\", null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _hoisted_2,\n _createVNode(_component_a_space, {\n class: \"feature-con\",\n align: \"end\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_a_space, { size: 6 }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", null, [\n _hoisted_3,\n _createVNode(_component_a_select, {\n value: _ctx.payoutRound,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.payoutRound) = $event)),\n placeholder: \"Please select\",\n class: \"sel-inp-size\",\n disabled: \"\",\n onChange: _ctx.handlePayroundChange\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.payoutList, (item) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n value: item,\n key: item,\n title: item\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(item), 1)\n ]),\n _: 2\n }, 1032, [\"value\", \"title\"]))\n }), 128))\n ]),\n _: 1\n }, 8, [\"value\", \"onChange\"])\n ])\n ]),\n _: 1\n }),\n _createVNode(_component_a_space, {\n size: 20,\n style: {\"text-align\":\"right\"}\n }, {\n default: _withCtx(() => [\n _createVNode(_component_a_tooltip, null, {\n default: _withCtx(() => [\n _createVNode(_component_DownloadOutlined, {\n style: {\"font-size\":\"20px\"},\n onClick: _ctx.handleDownload\n }, null, 8, [\"onClick\"])\n ]),\n _: 1\n }),\n _createVNode(_component_a_tooltip, null, {\n default: _withCtx(() => [\n _createVNode(_component_a_button, { onClick: _ctx.handleReject }, {\n default: _withCtx(() => [\n _hoisted_4\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n _: 1\n }),\n _createVNode(_component_a_tooltip, null, {\n default: _withCtx(() => [\n _createVNode(_component_a_button, {\n type: \"primary\",\n onClick: _ctx.handleApprove\n }, {\n default: _withCtx(() => [\n _hoisted_5\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n _: 1\n })\n ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createElementVNode(\"div\", _hoisted_6, [\n _createVNode(_component_entity_wrapper, null, {\n default: _withCtx(() => [\n _createVNode(_component_entity, {\n \"payout-round\": _ctx.payoutRound,\n type: \"pendingApproval\",\n ref: \"entityRef\"\n }, null, 8, [\"payout-round\"])\n ]),\n _: 1\n })\n ])\n ]),\n _createVNode(_component_a_modal, {\n visible: _ctx.tableModalVisible,\n \"onUpdate:visible\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.tableModalVisible) = $event)),\n onCancel: _ctx.handleCancel,\n width: \"65%\"\n }, {\n footer: _withCtx(() => [\n _createVNode(_component_a_button, { onClick: _ctx.handleCancel }, {\n default: _withCtx(() => [\n _hoisted_8\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_a_button, {\n onClick: _ctx.handleConfirm,\n type: \"primary\",\n disabled: !_ctx.rowSelection.selectedRowKeys.length\n }, {\n default: _withCtx(() => [\n _hoisted_9\n ]),\n _: 1\n }, 8, [\"onClick\", \"disabled\"])\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_7, [\n _createVNode(_component_a_table, {\n scroll: { y: 300 },\n dataSource: _ctx.data,\n columns: _ctx.columns,\n rowKey: (record, index) => index,\n pagination: false,\n \"row-selection\": _ctx.rowSelection,\n rowClassName: _ctx.getRowClass\n }, {\n formatThousand: _withCtx(({ text }) => [\n _createTextVNode(_toDisplayString(_ctx.toThousandsAndTwoDecimal(text)), 1)\n ]),\n _: 1\n }, 8, [\"dataSource\", \"columns\", \"rowKey\", \"row-selection\", \"rowClassName\"])\n ])\n ]),\n _: 1\n }, 8, [\"visible\", \"onCancel\"]),\n _createVNode(_component_approval_modal, {\n onOnConfirm: _ctx.handleCommentsConfirm,\n visible: _ctx.approvalModalVisible,\n \"onUpdate:visible\": _cache[2] || (_cache[2] = ($event: any) => ((_ctx.approvalModalVisible) = $event)),\n list: _ctx.rowSelection.selectedRowData,\n \"comments-required\": _ctx.approvalType === 'reject',\n approvalType: _ctx.approvalType,\n formatkey: \"payoutCode\"\n }, null, 8, [\"onOnConfirm\", \"visible\", \"list\", \"comments-required\", \"approvalType\"])\n ]))\n}","\nimport { defineComponent, reactive, ref, toRefs } from \"vue\";\nimport { useRoute } from \"vue-router\";\nimport { DownloadOutlined } from \"@ant-design/icons-vue\";\nimport useDealerPayout from \"@/hooks/payment/Mgmt/PendingApproval/PayoutRound/useDealerPayout\";\nimport { ApprovalProps } from \"@/views/Payment/Mgmt/PendingApproval/PayoutRound/type\";\nimport { fetchPaymentApprove, fetchPaymentReject } from \"@/API/payment\";\nimport EntityWrapper from \"@/views/Payment/Mgmt/components/entityWrapper.vue\";\nimport Entity from \"@/views/Payment/Mgmt/components/entity.vue\";\nimport ApprovalModal from \"@/views/Payment/components/approvalModal.vue\";\nimport { toThousandsAndTwoDecimal } from \"@/utils/payment/numberFormat\";\nimport { Modal } from \"ant-design-vue\";\nimport downloadFile from \"@/utils/payment/downloadFile\";\nconst COLUMNS = [\n {\n title: \"Payout Code\",\n dataIndex: \"payoutCode\",\n className: \"column-no-wrap\",\n },\n {\n title: \"Payout Amount w/o VAT\",\n dataIndex: \"payoutAmountWVoat\",\n align: \"right\",\n slots: { customRender: \"formatThousand\" },\n },\n {\n title: \"Period Amount w VAT\",\n dataIndex: \"payoutAmountWVat\",\n align: \"right\",\n slots: { customRender: \"formatThousand\" },\n },\n];\nexport default defineComponent({\n name: \"paymentTracking\",\n props: {},\n setup() {\n const route = useRoute();\n const payoutRound = ref(route.query.payoutRound as string);\n const {\n payoutList,\n tableList,\n payoutCodes,\n getPayoutList,\n getRowClass,\n } = useDealerPayout(payoutRound.value ?? undefined);\n\n //#region [payround下拉列表相关]\n getPayoutList();\n const handlePayroundChange = (val: string) => {\n payoutRound.value = val;\n };\n //#endregion\n\n //#region [审批列表相关]\n const tableData = reactive({\n columns: COLUMNS,\n data: tableList,\n });\n const rowSelection = reactive<{\n selectedRowKeys: string[];\n selectedRowData: ApprovalProps[];\n onChange: Function;\n }>({\n onChange: (selectedRowKeys: string[], selectedRows: ApprovalProps[]) => {\n rowSelection.selectedRowKeys = selectedRowKeys;\n rowSelection.selectedRowData = selectedRows;\n },\n selectedRowKeys: [],\n selectedRowData: [],\n });\n const clearSelection = () => {\n rowSelection.selectedRowKeys = [];\n rowSelection.selectedRowData = [];\n };\n //#endregion\n\n //#region [审批相关]\n const tableModalVisible = ref(false);\n const approvalModalVisible = ref(false);\n const approvalType = ref(null);\n const titleMap = reactive({\n reject: \"reject\",\n approve: \"approve\",\n });\n const handleReject = () => {\n tableModalVisible.value = true;\n approvalType.value = \"reject\";\n };\n const handleApprove = () => {\n tableModalVisible.value = true;\n approvalType.value = \"approve\";\n };\n const handleCancel = () => {\n approvalType.value = \"\";\n tableModalVisible.value = false;\n clearSelection();\n };\n const handleConfirm = () => {\n // approvalType.value = \"\";\n approvalModalVisible.value = true;\n };\n // 当审批和拒绝时刷新列表数据\n const entityRef = ref();\n const refreshPageData = () => {\n entityRef.value.refreshData();\n };\n const handleCommentsConfirm = (comments: string, next: Function) => {\n if (approvalType.value === \"approve\") {\n fetchPaymentApprove(\n rowSelection.selectedRowData.map((item) => {\n return {\n approveComment: comments,\n delegationUserId: item.delegationUserId,\n id: item.id,\n requestUserId: item.requestUserId,\n };\n })\n )\n .then((res) => {\n // message.success('Approved successfully');\n Modal.info({\n title: \"Tips\",\n content: \"Successfully Approve!\", //res.data.message\n });\n tableModalVisible.value = false;\n approvalModalVisible.value = false;\n next();\n clearSelection();\n getPayoutList();\n // 刷新页面数据\n refreshPageData();\n })\n .catch(() => {\n tableModalVisible.value = false;\n approvalModalVisible.value = false;\n next();\n clearSelection();\n });\n } else {\n fetchPaymentReject(\n rowSelection.selectedRowData.map((item) => {\n return {\n rejectComment: comments,\n delegationUserId: item.delegationUserId,\n id: item.id,\n requestUserId: item.requestUserId,\n };\n })\n )\n .then((res) => {\n // message.success('Rejected successfully');\n Modal.info({\n title: \"Tips\",\n content: \"Successfully Reject!\", //res.data.message\n });\n tableModalVisible.value = false;\n approvalModalVisible.value = false;\n next();\n clearSelection();\n getPayoutList();\n // 刷新页面数据\n refreshPageData();\n })\n .catch(() => {\n tableModalVisible.value = false;\n approvalModalVisible.value = false;\n next();\n clearSelection();\n });\n }\n };\n // 下载 sample check form\n const handleDownload = () => {\n // getProgramOfferTypeByPayoutRound(payoutRound.value).then((res: any) => {\n // downloadFile({\n // url: `/claimapi/paymentDownload/downloadSampleCheckForm`,\n // method: \"post\",\n // params: {\n // payoutRound: payoutRound.value,\n // programCodeOfferTypeReqVOList: res,\n // },\n // });\n // });\n // 12.8修改\n const params = {\n url: `/ptapi/export/downloadPayoutFilesByPayoutCode?payoutRound=${payoutRound.value}`,\n method: \"post\",\n params: payoutCodes.value,\n };\n downloadFile(params);\n };\n //#endregion\n return {\n payoutRound,\n payoutList,\n handlePayroundChange,\n tableModalVisible,\n handleReject,\n handleApprove,\n handleCancel,\n handleConfirm,\n ...toRefs(tableData),\n rowSelection,\n getRowClass,\n approvalModalVisible,\n handleCommentsConfirm,\n approvalType,\n toThousandsAndTwoDecimal,\n titleMap,\n entityRef,\n handleDownload,\n };\n },\n components: {\n DownloadOutlined,\n EntityWrapper,\n Entity,\n ApprovalModal, // 审批组件\n },\n});\n","import { render } from \"./index.vue?vue&type=template&id=306386bf&scoped=true&ts=true\"\nimport script from \"./index.vue?vue&type=script&lang=ts\"\nexport * from \"./index.vue?vue&type=script&lang=ts\"\n\nimport \"./index.vue?vue&type=style&index=0&id=306386bf&lang=scss&scoped=true\"\n\nimport exportComponent from \"/app/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-306386bf\"]])\n\nexport default __exports__"],"sourceRoot":""}