{"version":3,"sources":["webpack:///./src/assets/images/rv/upload.svg","webpack:///./src/assets/images/rv/rect.png","webpack:///./src/views/Payment/DealerBreakdown/detail/uploadDetail.vue?0446","webpack:///./src/views/Payment/components/commentModal.vue?2f3b","webpack:///./src/views/Payment/components/commentModal.vue","webpack:///./src/views/Payment/components/commentModal.vue?f3bd","webpack:///./src/components/TableWrapper.vue?0107","webpack:///./src/views/Payment/DealerBreakdown/detail/index.vue?1129","webpack:///./src/hooks/useModel.ts","webpack:///./src/views/Payment/DealerBreakdown/detail/index.vue?3a3c","webpack:///./src/hooks/payment/DealerBreakdown/useBreakdownDetail.ts","webpack:///./src/views/Payment/DealerBreakdown/detail/uploadDetail.vue?985e","webpack:///./src/views/Payment/DealerBreakdown/detail/uploadDetail.vue","webpack:///./src/views/Payment/DealerBreakdown/detail/uploadDetail.vue?d13e","webpack:///./src/views/Payment/DealerBreakdown/detail/index.vue","webpack:///./src/views/Payment/DealerBreakdown/detail/index.vue?4886","webpack:///./src/components/TableWrapper.vue?0edf","webpack:///./src/components/TableWrapper.vue","webpack:///./src/components/TableWrapper.vue?c8bb","webpack:///./src/utils/payment/numberFormat.ts","webpack:///./src/utils/payment/useThousandsAndTwoDecimal.ts"],"names":["module","exports","_hoisted_1","_hoisted_2","render","_ctx","_cache","$props","$setup","$data","$options","_component_a_table","_component_a_button","_component_a_modal","visible","_visible","$event","onCancel","handleCancel","width","title","footer","type","onClick","default","_","columns","commentColumns","pagination","dataSource","commentData","rowKey","bordered","name","props","Boolean","required","Array","setup","context","useModel","dataIndex","value","__exports__","emit","get","set","val","_withScopeId","n","class","_hoisted_3","_hoisted_4","src","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_component_Breadcrumb","_component_a_input","_component_TableWrapper","_component_upload_detail","_component_main_wrapper","className","header","$t","searchParams","payoutRoundCN","disabled","swtCode","dealerCode","dealerNameCn","downloadClick","rowSelection","columnsData","scroll","x","tableWidth","y","tableHeight","tableData","rowClassName","record","index","download","fileRespVOList","item","key","fileFlag","fileClick","fileCode","fileNameCN","vehicleDetailsFileFlag","paymentClaimExport","entity","payoutRound","vehicleDetailsFile","demoCarDeductionExport","upload","status","style","uploadClick","onChangeTable","refreshTable","isUploadVisible","uploadTitle","dealerDetailApproveId","onCloseUploadVisible","closeUpload","useBreakdownDetail","store","state","payment","breakdownRow","total","pageNumber","pageSize","entityList","customRender","useThousandsAndTwoDecimal","align","slots","onChange","selectedRowKeys","selectedRows","selectedRowData","columnWidth","getTableData","params","then","data","pageChange","page","size","sizeChange","length","entityFileMap","selectData","i","j","push","undefined","url","method","downloadFile","catch","msg","message","warning","id","param","position","right","bottom","borderTop","padding","background","textAlign","zIndex","_component_a_radio","_component_a_radio_group","_component_a_textarea","_component_a_upload_dragger","_component_a_drawer","_component_comment_modal","closable","onClose","close","check","comment","showCount","maxlength","placeholder","multiple","showUploadList","remove","handleRemove","beforeUpload","fileChange","fileList","attachmentColumns","myAttachmentData","action","downloadAttachment","commentList","openComment","loading","uploading","commentVisible","components","CommentModal","emits","String","getFileList","res","isLt5M","uploadComplete","file","console","log","maxFileSize","info","lastFile","error","splice","indexOf","newFileList","slice","forEach","submitFile","formData","FormData","isMore5m","every","append","originFileObj","code","success","rejectFunc","fileId","downloadElement","document","createElement","href","click","window","innerWidth","innerHeight","UploadDetail","TableWrapper","handlePageChange","handleSizeChange","$slots","toThousandsAndTwoDecimal","count","Number","toFixed","toString","replace","$0","$1","toThousands","substring","Math","round","text"],"mappings":"8HAAAA,EAAOC,QAAU,IAA0B,2B,qBCA3CD,EAAOC,QAAU,sT,oCCAjB,W,6ECEMC,EAA0B,6BAAiB,aAC3CC,EAA0B,6BAAiB,WAE1C,SAASC,EAAOC,EAAUC,EAAYC,EAAYC,EAAY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WAC9B,OAAO,SAAC,G,IAAC8H,EAAI,OAGT,OAAO,eAAE,OAAQ,eAAyBA,MAGjC","file":"js/chunk-382d54f2.9f7a1691.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/upload.e4734716.svg\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAQCAYAAADTasWKAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAA6ADAAQAAAABAAAAEAAAAABTVpExAAAARklEQVQIHWNgWPf+GcO6Dx0MV/+zsTD8Z5BkYPhfznDzIwMTAxz8j0NwgCoQHKAK+nMYGZ4jWcq4iIUBKMLAwLiIQZ2/DgAi2RE9IOkxIAAAAABJRU5ErkJggg==\"","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!./uploadDetail.vue?vue&type=style&index=0&id=b919a4e8&lang=scss&scoped=true\"","import { resolveComponent as _resolveComponent, createVNode as _createVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = /*#__PURE__*/_createTextVNode(\" Comment \")\nconst _hoisted_2 = /*#__PURE__*/_createTextVNode(\" Close \")\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_a_table = _resolveComponent(\"a-table\")!\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._visible,\n \"onUpdate:visible\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx._visible) = $event)),\n onCancel: _ctx.handleCancel,\n width: \"50%\"\n }, {\n title: _withCtx(() => [\n _hoisted_1\n ]),\n footer: _withCtx(() => [\n _createVNode(_component_a_button, {\n type: \"primary\",\n onClick: _ctx.handleCancel\n }, {\n default: _withCtx(() => [\n _hoisted_2\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n default: _withCtx(() => [\n _createVNode(_component_a_table, {\n columns: _ctx.commentColumns,\n pagination: false,\n dataSource: _ctx.commentData,\n rowKey: \"id\",\n bordered: \"\"\n }, null, 8, [\"columns\", \"dataSource\"])\n ]),\n _: 1\n }, 8, [\"visible\", \"onCancel\"]))\n}","\nimport { defineComponent, reactive, ref, watch, computed } from \"vue\";\nimport useModel from \"@/hooks/useModel\";\nexport default defineComponent({\n name: \"App\",\n props: {\n visible: {\n type: Boolean,\n default: false,\n },\n commentData: {\n required: true,\n type: Array,\n default: () => []\n }\n },\n setup(props, context) {\n const _visible = useModel(props, \"visible\");\n const commentColumns = computed(() => {\n return [\n { title: \"Comment\", dataIndex: \"comment\" },\n { title: \"Date\", dataIndex: \"date\" }\n ]\n })\n // type TableData = {\n // comment: string;\n // date: string;\n // }\n // const commentData = ref()\n const handleCancel = () => {\n _visible.value = false;\n }\n return {\n _visible,\n handleCancel,\n commentColumns\n };\n },\n});\n","import { render } from \"./commentModal.vue?vue&type=template&id=6deda7be&ts=true\"\nimport script from \"./commentModal.vue?vue&type=script&lang=ts\"\nexport * from \"./commentModal.vue?vue&type=script&lang=ts\"\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]])\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!./TableWrapper.vue?vue&type=style&index=0&id=037b2547&scoped=true&lang=scss\"","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=530109da&scoped=true&lang=scss\"","import { computed, getCurrentInstance } from \"vue\";\n\nconst useModel = (props: any, name: string) => {\n const emit = getCurrentInstance()?.emit;\n return computed({\n get() {\n return props[name]\n },\n set(val) {\n if (emit) {\n emit(`update:${name}`, val)\n }\n },\n });\n};\nexport default useModel;\n","import { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeClass as _normalizeClass, createCommentVNode as _createCommentVNode, vShow as _vShow, withDirectives as _withDirectives, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nimport _imports_0 from '@/assets/images/rv/rect.png'\n\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-530109da\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"container\" }\nconst _hoisted_2 = { class: \"searchMain bg-fff m-t-8\" }\nconst _hoisted_3 = { class: \"condition\" }\nconst _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"img\", {\n src: _imports_0,\n class: \"rect\"\n}, null, -1))\nconst _hoisted_5 = { class: \"wrap-title\" }\nconst _hoisted_6 = { class: \"d-f\" }\nconst _hoisted_7 = { class: \"d-f flex-d-c flex-w-auto m-l-16\" }\nconst _hoisted_8 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"label-text-12\" }, \"付款轮次\", -1))\nconst _hoisted_9 = { class: \"d-f flex-d-c flex-w-auto m-l-16\" }\nconst _hoisted_10 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"label-text-12\" }, \"经销商SWT编码\", -1))\nconst _hoisted_11 = { class: \"d-f flex-d-c flex-w-auto m-l-16\" }\nconst _hoisted_12 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"label-text-12\" }, \"经销商编码\", -1))\nconst _hoisted_13 = { class: \"d-f flex-d-c flex-w-auto m-l-16\" }\nconst _hoisted_14 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"label-text-12\" }, \"经销商名称\", -1))\nconst _hoisted_15 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"d-f flex-w-auto flex-d-c m-l-16\" }, null, -1))\nconst _hoisted_16 = { class: \"main bg-fff m-t-8 flex-w-auto d-f flex-d-c\" }\nconst _hoisted_17 = { class: \"d-f justify-e\" }\nconst _hoisted_18 = { class: \"d-f\" }\nconst _hoisted_19 = /*#__PURE__*/_createTextVNode(\"下载\")\nconst _hoisted_20 = { class: \"table-wrapper flex-w-auto m-t-16\" }\nconst _hoisted_21 = [\"onClick\"]\nconst _hoisted_22 = [\"onClick\"]\nconst _hoisted_23 = [\"onClick\"]\nconst _hoisted_24 = [\"onClick\"]\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_Breadcrumb = _resolveComponent(\"Breadcrumb\")!\n const _component_a_input = _resolveComponent(\"a-input\")!\n const _component_a_button = _resolveComponent(\"a-button\")!\n const _component_a_table = _resolveComponent(\"a-table\")!\n const _component_TableWrapper = _resolveComponent(\"TableWrapper\")!\n const _component_upload_detail = _resolveComponent(\"upload-detail\")!\n const _component_main_wrapper = _resolveComponent(\"main-wrapper\")!\n\n return (_openBlock(), _createBlock(_component_main_wrapper, { className: \"p-l-r-10\" }, {\n header: _withCtx(() => [\n _createVNode(_component_Breadcrumb, {\n dataSource: [{name: _ctx.$t('payment.BreakdownDetail')}]\n }, null, 8, [\"dataSource\"])\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"section\", null, [\n _hoisted_4,\n _createElementVNode(\"strong\", _hoisted_5, _toDisplayString(_ctx.$t('payment.BreakdownDetail')), 1)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_6, [\n _createElementVNode(\"div\", _hoisted_7, [\n _hoisted_8,\n _createVNode(_component_a_input, {\n value: _ctx.searchParams.payoutRoundCN,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.searchParams.payoutRoundCN) = $event)),\n disabled: \"\"\n }, null, 8, [\"value\"])\n ]),\n _createElementVNode(\"div\", _hoisted_9, [\n _hoisted_10,\n _createVNode(_component_a_input, {\n value: _ctx.searchParams.swtCode,\n \"onUpdate:value\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.searchParams.swtCode) = $event)),\n disabled: \"\"\n }, null, 8, [\"value\"])\n ]),\n _createElementVNode(\"div\", _hoisted_11, [\n _hoisted_12,\n _createVNode(_component_a_input, {\n value: _ctx.searchParams.dealerCode,\n \"onUpdate:value\": _cache[2] || (_cache[2] = ($event: any) => ((_ctx.searchParams.dealerCode) = $event)),\n disabled: \"\"\n }, null, 8, [\"value\"])\n ]),\n _createElementVNode(\"div\", _hoisted_13, [\n _hoisted_14,\n _createVNode(_component_a_input, {\n value: _ctx.searchParams.dealerNameCn,\n \"onUpdate:value\": _cache[3] || (_cache[3] = ($event: any) => ((_ctx.searchParams.dealerNameCn) = $event)),\n disabled: \"\"\n }, null, 8, [\"value\"])\n ]),\n _hoisted_15\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_16, [\n _createElementVNode(\"div\", _hoisted_17, [\n _createElementVNode(\"div\", _hoisted_18, [\n _createVNode(_component_a_button, {\n class: \"m-l-16\",\n onClick: _ctx.downloadClick\n }, {\n default: _withCtx(() => [\n _hoisted_19\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_20, [\n _createVNode(_component_TableWrapper, null, {\n default: _withCtx(() => [\n _createVNode(_component_a_table, {\n class: \"tab-container default-self-table-text\",\n \"row-selection\": _ctx.rowSelection,\n columns: _ctx.columnsData,\n scroll: { x: _ctx.tableWidth, y: _ctx.tableHeight},\n pagination: false,\n dataSource: _ctx.tableData,\n rowKey: \"id\",\n rowClassName: (record, index) => (index % 2 === 1 ? 'table-striped' : null)\n }, {\n download: _withCtx(({ record }) => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(record.fileRespVOList, (item, index) => {\n return (_openBlock(), _createElementBlock(\"span\", {\n key: index,\n class: _normalizeClass(['download-link', item.fileFlag ? 'link cursor-p' : 'color-g']),\n onClick: ($event: any) => (_ctx.fileClick(record, item.fileCode, item.fileFlag))\n }, _toDisplayString(item.fileNameCN), 11, _hoisted_21))\n }), 128)),\n (record.vehicleDetailsFile)\n ? (_openBlock(), _createElementBlock(\"span\", {\n key: 0,\n class: _normalizeClass(['download-link', record.vehicleDetailsFileFlag ? 'link cursor-p' : 'color-g']),\n onClick: ($event: any) => (_ctx.paymentClaimExport(_ctx.searchParams.dealerCode, record.entity, _ctx.searchParams.payoutRound, record.vehicleDetailsFileFlag))\n }, _toDisplayString(record.vehicleDetailsFile), 11, _hoisted_22))\n : _createCommentVNode(\"\", true),\n (record.shouldDisplayDeductionFile)\n ? (_openBlock(), _createElementBlock(\"span\", {\n key: 1,\n class: _normalizeClass(['download-link', record.vehicleDetailsFileFlag ? 'link cursor-p' : 'color-g']),\n onClick: ($event: any) => (_ctx.demoCarDeductionExport(record.entity))\n }, \" 试驾车扣款明细 \", 10, _hoisted_23))\n : _createCommentVNode(\"\", true)\n ]),\n upload: _withCtx(({ record }) => [\n _withDirectives(_createElementVNode(\"span\", {\n class: _normalizeClass(['font_family icon-shangchuan', record.status !== '已通过' && record.status !== '' ? 'link cursor-p' : 'color-g']),\n style: {\"font-size\":\"16px\"},\n onClick: ($event: any) => (_ctx.uploadClick(record))\n }, null, 10, _hoisted_24), [\n [_vShow, record.entity === 'MBCL']\n ])\n ]),\n _: 1\n }, 8, [\"row-selection\", \"columns\", \"scroll\", \"dataSource\", \"rowClassName\"])\n ]),\n _: 1\n })\n ])\n ])\n ]),\n (_ctx.isUploadVisible)\n ? (_openBlock(), _createBlock(_component_upload_detail, {\n key: 0,\n onChangeTable: _ctx.refreshTable,\n isUploadVisible: _ctx.isUploadVisible,\n uploadTitle: \"Upload BBAC Vehicle List\",\n dealerDetailApproveId: _ctx.dealerDetailApproveId,\n onCloseUploadVisible: _ctx.closeUpload\n }, null, 8, [\"onChangeTable\", \"isUploadVisible\", \"dealerDetailApproveId\", \"onCloseUploadVisible\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }))\n}","import { ref, reactive, computed } from \"vue\";\nimport * as API from \"@/API/payment\";\nimport downloadFile from '@/utils/payment/downloadFile'\n// import moment from 'moment';\nimport useThousandsAndTwoDecimal from \"@/utils/payment/useThousandsAndTwoDecimal\";\nimport { ColumnProps } from 'ant-design-vue/es/table/interface';\nimport { useStore } from 'vuex';\nimport { message } from 'ant-design-vue';\nimport { downloadFromStream } from '@/utils/payment/downloadFile'\n\ntype Key = ColumnProps['key'];\n\ntype SearchParams = {\n payoutRound: string;\n swtCode: string;\n dealerCode: string;\n dealerNameCn: string;\n dealerDetailApproveId: string;\n}\n\nexport interface SalesTableData {\n id: string;\n entity: string;\n amountWVat: string;\n amountWOVat: string;\n status: string;\n fileRespVOList: { fileNameCN: string; fileFlag: boolean; fileCode: string }[];\n}\n\nconst useBreakdownDetail = () => {\n const store = useStore()\n const searchParams = reactive(store.state.payment.breakdownRow)\n const total = ref(0)\n const pageNumber = ref(0)\n const pageSize = ref(10)\n const entityList = ref([])\n const columnsData = computed(() => {\n return [\n { title: \"批发来源\", dataIndex: \"entity\"},\n { title: \"含税付款金额合计\", dataIndex: \"amountWVat\",customRender: useThousandsAndTwoDecimal(),width: 190, align: \"right\"},\n { title: \"不含税付款金额合计\", dataIndex: \"amountWOVat\",customRender: useThousandsAndTwoDecimal(),width: 190, align: \"right\"},\n { title: \"销售激励付款批发来源\", dataIndex: \"download\",slots: { customRender: 'download' }, width: 650 },\n { title: \"上传\", dataIndex: \"upload\",slots: { customRender: 'upload' }, width: 100},\n { title: \"上传状态\", dataIndex: \"status\", align: \"center\"}\n ]\n })\n const tableData = ref()\n const rowSelection = reactive<{ selectedRowKeys: Key[]; selectedRowData: SalesTableData[]; onChange: Function;columnWidth: string}>({\n onChange: (selectedRowKeys: Key[], selectedRows: SalesTableData[]) => {\n rowSelection.selectedRowKeys = selectedRowKeys;\n rowSelection.selectedRowData = selectedRows;\n },\n selectedRowKeys: [],\n selectedRowData: [],\n columnWidth: '30px'\n })\n const getTableData = () => {\n const params = {\n payoutRound: searchParams.payoutRound,\n dealerCode: searchParams.dealerCode\n }\n API.breakDownDetailList(params).then(data => {\n tableData.value = data\n })\n // tableData.value = [\n // {\n // id: '383',\n // entity: 'MBCL',\n // amountWVat: '1000',\n // amountWOVat: '9999',\n // status: '',\n // fileRespVOList: []\n // }\n // ]\n }\n const pageChange = (page: number, size: number) => {\n pageNumber.value = page > 0 ? page : 1\n pageSize.value = size\n getTableData()\n };\n const sizeChange = (page: number, size: number) => {\n pageNumber.value = page > 0 ? page : 1\n pageSize.value = size\n getTableData()\n }\n const isUploadVisible = ref(false)\n const dealerDetailApproveId = ref('')\n const downloadClick = () => {\n if (rowSelection.selectedRowKeys.length === 0) {\n message.warning('Please select the data first')\n return\n }\n const entityFileMap = {}\n const selectData = rowSelection.selectedRowData\n for (let i = 0; i < rowSelection.selectedRowData.length; i ++) {\n entityFileMap[selectData[i].entity] = []\n for (let j = 0; j < selectData[i].fileRespVOList.length; j ++) {\n if (selectData[i].fileRespVOList[j].fileCode && selectData[i].fileRespVOList[j].fileFlag) {\n entityFileMap[selectData[i].entity].push(selectData[i].fileRespVOList[j].fileCode)\n }\n }\n if (entityFileMap[selectData[i].entity].length === 0) {\n entityFileMap[selectData[i].entity] = undefined\n }\n }\n const params = {\n url: '/ptapi/export/dealer/breakdown/downloadFile/dealer',\n method: 'post',\n params: {\n dealerCode: searchParams.dealerCode,\n entityFileMap,\n payoutRound: searchParams.payoutRound\n } \n }\n downloadFile(params).catch(msg =>\n message.warning(msg)\n )\n }\n const uploadClick = (record: SalesTableData) => {\n if (record.status === '已通过' || record.status === '') return\n dealerDetailApproveId.value = record.id\n isUploadVisible.value = true\n }\n const closeUpload = (param: { isUploadVisible: boolean }) => {\n isUploadVisible.value = param.isUploadVisible\n }\n const refreshTable =()=>{\n closeUpload({ isUploadVisible: false })\n getTableData()\n }\n\n const fileClick = (record: SalesTableData, fileCode: string, fileFlag: boolean) => {\n if (!fileFlag) {\n return\n }\n const entityFileMap = {}\n entityFileMap[record.entity] = [ fileCode ]\n const params = {\n url: '/ptapi/export/dealer/breakdown/downloadFile/dealer',\n method: 'post',\n params: {\n dealerCode: searchParams.dealerCode,\n entityFileMap,\n payoutRound: searchParams.payoutRound\n } \n }\n downloadFile(params).catch(msg =>\n message.warning(msg)\n )\n }\n\n const paymentClaimExport = async (dealerCode: string, entity: string, payoutRound: string, vehicleDetailsFileFlag: boolean) => {\n if (!vehicleDetailsFileFlag) {\n return\n }\n const data = await API.paymentClaimExport({\n dealerCode,\n entity,\n payoutRound\n })\n downloadFromStream(data)\n }\n\n const demoCarDeductionExport = async (entity: string) => {\n const data = await API.demoCarDeductionDealerDownload(searchParams.payoutRound, entity, searchParams.dealerCode)\n downloadFromStream(data)\n }\n\n return {\n searchParams,\n entityList,\n columnsData,\n tableData,\n rowSelection,\n getTableData,\n pageChange,\n sizeChange,\n pageSize,\n pageNumber,\n total,\n isUploadVisible,\n dealerDetailApproveId,\n downloadClick,\n uploadClick,\n closeUpload,\n refreshTable,\n fileClick,\n paymentClaimExport,\n demoCarDeductionExport\n }\n}\nexport default useBreakdownDetail","import { createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, vShow as _vShow, withDirectives as _withDirectives, normalizeClass as _normalizeClass, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nimport _imports_0 from '@/assets/images/rv/rect.png'\nimport _imports_1 from '@/assets/images/rv/upload.svg'\n\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-b919a4e8\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"condition\" }, [\n /*#__PURE__*/_createElementVNode(\"section\", null, [\n /*#__PURE__*/_createElementVNode(\"img\", {\n src: _imports_0,\n class: \"rect\"\n }),\n /*#__PURE__*/_createElementVNode(\"strong\", { class: \"wrap-title\" }, \"核对\"),\n /*#__PURE__*/_createElementVNode(\"span\", { class: \"m-l-6\" }, \"(若拒绝,请填写拒绝理由并提交)\")\n ])\n], -1))\nconst _hoisted_2 = { class: \"m-t-10 check-part\" }\nconst _hoisted_3 = /*#__PURE__*/_createTextVNode(\"确认\")\nconst _hoisted_4 = /*#__PURE__*/_createTextVNode(\"拒绝\")\nconst _hoisted_5 = { class: \"m-t-10\" }\nconst _hoisted_6 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", null, \"拒绝理由(限定100字)\", -1))\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", { class: \"condition\" }, [\n /*#__PURE__*/_createElementVNode(\"section\", null, [\n /*#__PURE__*/_createElementVNode(\"img\", {\n src: _imports_0,\n class: \"rect\"\n }),\n /*#__PURE__*/_createElementVNode(\"strong\", { class: \"wrap-title\" }, \"上传盖章版经销商折让明细:\")\n ])\n], -1))\nconst _hoisted_8 = { class: \"clearfix\" }\nconst _hoisted_9 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"p\", { class: \"ant-upload-drag-icon\" }, [\n /*#__PURE__*/_createElementVNode(\"img\", {\n src: _imports_1,\n class: \"uploadIcon\"\n })\n], -1))\nconst _hoisted_10 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"p\", { class: \"ant-upload-text\" }, [\n /*#__PURE__*/_createTextVNode(\" 拖拽文件或 \"),\n /*#__PURE__*/_createElementVNode(\"span\", { class: \"blueFont\" }, \"点击此处浏览文件上传\")\n], -1))\nconst _hoisted_11 = { style: {\"margin-top\":\"10px\"} }\nconst _hoisted_12 = [\"onClick\"]\nconst _hoisted_13 = [\"onClick\"]\nconst _hoisted_14 = { style: {\n position: 'absolute',\n right: 0,\n bottom: 0,\n width: '100%',\n borderTop: '1px solid #e9e9e9',\n padding: '10px 16px',\n background: '#fff',\n textAlign: 'right',\n zIndex: 1,\n } }\nconst _hoisted_15 = /*#__PURE__*/_createTextVNode(\"取消\")\nconst _hoisted_16 = /*#__PURE__*/_createTextVNode(\"提交\")\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_a_radio = _resolveComponent(\"a-radio\")!\n const _component_a_radio_group = _resolveComponent(\"a-radio-group\")!\n const _component_a_textarea = _resolveComponent(\"a-textarea\")!\n const _component_a_upload_dragger = _resolveComponent(\"a-upload-dragger\")!\n const _component_a_table = _resolveComponent(\"a-table\")!\n const _component_a_button = _resolveComponent(\"a-button\")!\n const _component_a_drawer = _resolveComponent(\"a-drawer\")!\n const _component_comment_modal = _resolveComponent(\"comment-modal\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createVNode(_component_a_drawer, {\n title: _ctx.title,\n closable: true,\n visible: _ctx.isUploadVisible,\n width: \"35.14%\",\n onClose: _ctx.close\n }, {\n default: _withCtx(() => [\n _hoisted_1,\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_component_a_radio_group, {\n value: _ctx.check,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.check) = $event))\n }, {\n default: _withCtx(() => [\n _createVNode(_component_a_radio, { value: \"upload\" }, {\n default: _withCtx(() => [\n _hoisted_3\n ]),\n _: 1\n }),\n _createVNode(_component_a_radio, { value: \"reject\" }, {\n default: _withCtx(() => [\n _hoisted_4\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"value\"])\n ]),\n _withDirectives(_createElementVNode(\"div\", _hoisted_5, [\n _hoisted_6,\n _createVNode(_component_a_textarea, {\n value: _ctx.comment,\n \"onUpdate:value\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.comment) = $event)),\n showCount: \"\",\n maxlength: 100,\n placeholder: \"请输入\"\n }, null, 8, [\"value\"])\n ], 512), [\n [_vShow, _ctx.check === 'reject']\n ]),\n _hoisted_7,\n _createElementVNode(\"div\", _hoisted_8, [\n _createVNode(_component_a_upload_dragger, {\n name: \"file\",\n multiple: true,\n showUploadList: true,\n remove: _ctx.handleRemove,\n \"before-upload\": _ctx.beforeUpload,\n onChange: _ctx.fileChange,\n \"file-list\": _ctx.fileList,\n \"onUpdate:file-list\": _cache[2] || (_cache[2] = ($event: any) => ((_ctx.fileList) = $event))\n }, {\n default: _withCtx(() => [\n _hoisted_9,\n _hoisted_10\n ]),\n _: 1\n }, 8, [\"remove\", \"before-upload\", \"onChange\", \"file-list\"])\n ]),\n _createElementVNode(\"div\", _hoisted_11, [\n _createVNode(_component_a_table, {\n columns: _ctx.attachmentColumns,\n pagination: false,\n dataSource: _ctx.myAttachmentData,\n rowKey: \"id\",\n bordered: \"\"\n }, {\n action: _withCtx(({ record }) => [\n _createElementVNode(\"a\", null, [\n _createElementVNode(\"span\", {\n class: \"font_family\",\n style: {\"font-size\":\"16px\"},\n onClick: ($event: any) => (_ctx.downloadAttachment(record))\n }, \"下载\", 8, _hoisted_12)\n ])\n ]),\n comment: _withCtx(({ record }) => [\n _createElementVNode(\"span\", {\n class: _normalizeClass(['font_family icon-Comment', record.commentList.length > 0 ? 'link cursor-p' : 'color-g']),\n style: {\"font-size\":\"16px\"},\n onClick: ($event: any) => (_ctx.openComment(record))\n }, null, 10, _hoisted_13)\n ]),\n _: 1\n }, 8, [\"columns\", \"dataSource\"])\n ]),\n _createElementVNode(\"div\", _hoisted_14, [\n _createVNode(_component_a_button, {\n style: {\"margin-right\":\"8px\"},\n onClick: _ctx.close\n }, {\n default: _withCtx(() => [\n _hoisted_15\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_a_button, {\n type: \"primary\",\n loading: _ctx.uploading,\n onClick: _ctx.uploadClick\n }, {\n default: _withCtx(() => [\n _hoisted_16\n ]),\n _: 1\n }, 8, [\"loading\", \"onClick\"])\n ])\n ]),\n _: 1\n }, 8, [\"title\", \"visible\", \"onClose\"]),\n _createVNode(_component_comment_modal, {\n visible: _ctx.commentVisible,\n \"onUpdate:visible\": _cache[3] || (_cache[3] = ($event: any) => ((_ctx.commentVisible) = $event)),\n commentData: _ctx.commentData\n }, null, 8, [\"visible\", \"commentData\"])\n ], 64))\n}","\nimport { defineComponent, ref, computed, onMounted, reactive } from 'vue'\nimport { FileItem } from '@/API/types';\nimport { message } from 'ant-design-vue';\nimport * as API from \"@/API/payment\";\nimport { Modal } from 'ant-design-vue'\nimport { FileInfo } from '@/API/types';\nimport CommentModal from '@/views/Payment/components/commentModal.vue'\nimport { useStore } from 'vuex'\nconst attachmentColumns = [\n { title: \"文件名称\", dataIndex: \"fileName\", width: 200 },\n { title: \"上传日期\", dataIndex: \"updatedAt\", width: 110 },\n { title: \"操作\", key: \"operation\", width: 110, slots: { customRender: \"action\"}},\n { title: \"被拒原因\", dataIndex: \"comment\", width: 110, slots: { customRender: \"comment\"} }\n]\ntype CommentData = {\n comment: string;\n date: string;\n}\ntype AttachmentData = {\n fileName: string;\n updatedAt: string;\n commentList: CommentData[];\n id: string;\n}\n\nexport default defineComponent({\n components: {\n CommentModal\n },\n emits: ['close-upload-visible', 'change-table'],\n props: {\n isUploadVisible: {\n type: Boolean,\n required: true,\n default: false\n },\n dealerDetailApproveId: {\n type: String,\n required: true,\n default: ''\n }\n },\n setup(props, context) {\n const { state } = useStore()\n\n const check = ref('upload')\n const comment = ref('')\n\n const myAttachmentData = ref(null)\n const getFileList = () => {\n API.breakDownDetailFileList(props.dealerDetailApproveId).then((res) => {\n myAttachmentData.value = res\n })\n }\n getFileList()\n onMounted(() => {\n //rrrr\n })\n // 文件上传\n const uploading = ref(false);\n const isLt5M = ref([]);\n const uploadComplete = ref(true);\n // 获取标题内容\n const title = computed(() => `上传文件`)\n // // 设置抽屉显示状态\n // const modal = (props as any).isUploadVisible;\n const close = () => {\n context.emit('close-upload-visible', { isUploadVisible: false })\n }\n\n const fileList = ref([]);\n // 上传前\n const beforeUpload = (file: FileItem) => {\n console.log('进入上传前方法中。。。。。。。')\n // const isHtml = file.type === 'text/html';\n // if (isHtml) {\n // message.error('不能上传html格式文件!')\n // }\n isLt5M.value.push(file.size / 1024 / 1024 < state.payment.maxFileSize)\n /*if (file.size / 1024 / 1024 > 5) {\n message.error('图片不得大于5MB!')\n }*/\n return false\n }\n\n const fileChange = (info: FileInfo) => {\n const lastFile: FileItem = info.fileList[info.fileList.length - 1]\n if (lastFile && lastFile.type === 'text/html') {\n message.error('Attachment can not be an HTML file.')\n fileList.value.splice(info.fileList.length - 1, 1)\n isLt5M.value.splice(info.fileList.length - 1, 1)\n }\n }\n const handleRemove = (file: FileItem) => {\n const index = fileList.value.indexOf(file);\n const newFileList = fileList.value.slice();\n newFileList.splice(index, 1);\n fileList.value = newFileList;\n isLt5M.value = []\n //console.log('isLt5m===============',isLt5M)\n fileList.value.forEach((item: FileItem)=>{\n isLt5M.value.push(item.size / 1024 / 1024 < state.payment.maxFileSize)\n })\n };\n const submitFile = () => {\n console.log('上传的附件个数为:',fileList.value.length)\n const formData = new FormData();\n if (fileList.value.length<=0){\n message.warning('you have not uploaded any attachments');\n return\n }\n if (fileList.value.length>1){\n message.warning('Attachment batch upload can not more than 1.');\n return\n }\n const isMore5m = isLt5M.value.every(( item )=>{\n return item;\n })\n if (!isMore5m){\n message.warning(`Attachment can not large than ${state.payment.maxFileSize}M.`);\n return\n }\n fileList.value.forEach((file: FileItem) => {\n formData.append('document', file.originFileObj);\n });\n uploading.value = true;\n const params = {\n dealerDetailApproveId: props.dealerDetailApproveId\n }\n API.breakDownDetailApprove(params, formData).then((data: any) => {\n fileList.value = [];\n uploading.value = false;\n if (data.code !== '0') {\n message.warning(data.message)\n } else {\n message.success('文件上传成功')\n getFileList()\n context.emit('change-table')\n }\n })\n }\n\n const rejectFunc = () => {\n const params = {\n dealerDetailApproveId: props.dealerDetailApproveId,\n comment: comment.value\n }\n if (fileList.value.length > 0) {\n message.warning('拒绝无需上传文件,请删除已上传文件后重新提交')\n return\n }\n API.breakDownDetailReject(params).then((res: any) => {\n if (res.code === '0') {\n message.warning('拒绝成功')\n getFileList()\n context.emit('change-table')\n } else {\n message.warning(res.message)\n }\n })\n }\n\n const uploadClick = () => {\n if (check.value === 'upload') {\n if (fileList.value.length === 0) {\n message.warning('请上传盖章版折让明细')\n return\n }\n submitFile()\n } else {\n if (!comment.value) {\n message.warning('请输入拒绝理由再提交')\n return\n }\n rejectFunc()\n }\n }\n\n const downloadAttachment = (record: any)=>{\n API.getSalesDownloadFile(record.fileId).then(data => {\n const downloadElement = document.createElement('a')\n downloadElement.href = data\n downloadElement.click()\n })\n }\n \n const commentVisible = ref(false)\n const commentData = ref()\n const openComment = (record: AttachmentData) => {\n if (record.commentList.length === 0) return\n commentData.value = record.commentList\n commentVisible.value = true\n }\n return {\n myAttachmentData,\n fileList,\n title,\n // modal,\n close,\n isLt5M,\n submitFile,\n beforeUpload,\n handleRemove,\n uploadComplete,\n attachmentColumns,\n downloadAttachment,\n fileChange,\n uploading,\n check,\n comment,\n uploadClick,\n commentVisible,\n commentData,\n openComment\n }\n }\n})\n","import { render } from \"./uploadDetail.vue?vue&type=template&id=b919a4e8&scoped=true&ts=true\"\nimport script from \"./uploadDetail.vue?vue&type=script&lang=ts\"\nexport * from \"./uploadDetail.vue?vue&type=script&lang=ts\"\n\nimport \"./uploadDetail.vue?vue&type=style&index=0&id=b919a4e8&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-b919a4e8\"]])\n\nexport default __exports__","\n import { defineComponent } from 'vue'\n import useBreakdownDetail from \"@/hooks/payment/DealerBreakdown/useBreakdownDetail\";\n import { ColumnProps } from 'ant-design-vue/es/table/interface';\n type Key = ColumnProps['key'];\n const tableWidth = window.innerWidth\n const tableHeight = window.innerHeight-402\n import UploadDetail from '@/views/Payment/DealerBreakdown/detail/uploadDetail.vue'\n // import Pagination from \"@/components/Pagination.vue\";\n import TableWrapper from \"@/components/TableWrapper.vue\";\n import { useStore } from \"vuex\";\n export default defineComponent({\n name: 'DealerVendorCodeSet',\n components: {\n UploadDetail,\n // Pagination,\n TableWrapper\n },\n props: {},\n setup() {\n const store = useStore()\n const {\n searchParams, entityList, getTableData, rowSelection,\n columnsData, tableData, pageChange, sizeChange, pageSize, pageNumber, total,\n isUploadVisible, dealerDetailApproveId, downloadClick, uploadClick, closeUpload, refreshTable,\n fileClick, paymentClaimExport, demoCarDeductionExport\n } = useBreakdownDetail()\n getTableData()\n const handlePageChange = (page: number,pageSize: number) =>{\n pageChange(page, pageSize)\n }\n const handleSizeChange = (page: number,pageSize: number) =>{\n sizeChange(page, pageSize)\n }\n return {\n store,\n searchParams,\n entityList,\n tableWidth,\n tableHeight,\n columnsData,\n tableData,\n rowSelection,\n pageSize,\n pageNumber,\n total,\n handlePageChange,\n handleSizeChange,\n isUploadVisible,\n dealerDetailApproveId,\n downloadClick,\n uploadClick,\n closeUpload,\n refreshTable,\n fileClick,\n paymentClaimExport,\n demoCarDeductionExport\n }\n }\n })\n ","import { render } from \"./index.vue?vue&type=template&id=530109da&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=530109da&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-530109da\"]])\n\nexport default __exports__","import { renderSlot as _renderSlot, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(\"div\", {\n class: \"table\",\n style: _normalizeStyle({width: _ctx.visible ? '50%' : '100%'})\n }, [\n _renderSlot(_ctx.$slots, \"default\", {}, undefined, true)\n ], 4))\n}","\n import { defineComponent } from 'vue';\n export default defineComponent({\n name: \"TableWrapper\",\n props: {\n visible: {\n type: Boolean,\n default: false\n }\n }\n })\n","import { render } from \"./TableWrapper.vue?vue&type=template&id=037b2547&scoped=true&ts=true\"\nimport script from \"./TableWrapper.vue?vue&type=script&lang=ts\"\nexport * from \"./TableWrapper.vue?vue&type=script&lang=ts\"\n\nimport \"./TableWrapper.vue?vue&type=style&index=0&id=037b2547&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-037b2547\"]])\n\nexport default __exports__","/*\n * @Author: hanxi\n * @Date: 2021-06-08 15:27:45\n * @Description: 千分位符处理,处理后的数字保留两位小数\n */\nexport const toThousandsAndTwoDecimal = (count: number | string): string => {\n if (count === undefined || count === null) {\n return \"\";\n }\n if (typeof count === \"string\") {\n if (count.indexOf(\",\") !== -1) {\n if (count.indexOf(\".\") !== -1) {\n return count;\n } else {\n return count + \".00\";\n }\n }\n count = Number(count);\n }\n count = count.toFixed(2);\n return count\n .toString()\n .replace(/(\\d)(?=(\\d{3})+\\.)/g, function($0, $1) {\n return $1 + \",\";\n })\n .replace(/\\.$/, \"\");\n};\n\nexport const toThousands = (count: number | string): string => {\n if (count === undefined) {\n return \"\";\n }\n if (typeof count === \"string\") {\n if (count.indexOf(\",\") !== -1) {\n if (count.indexOf(\".\") !== -1) {\n return count.substring(0, count.indexOf(\".\") + 1)\n } else {\n return count;\n }\n }\n count = Number(count);\n }\n count = Math.round(count)\n return count\n .toString()\n .replace(/(\\d)(?=(?:\\d{3})+$)/g,'$1,')\n};","import { h } from 'vue'\nimport { toThousandsAndTwoDecimal } from './numberFormat'\nconst useThousandsAndTwoDecimal = () => {\n return ({text}: {\n text: number | string;\n }) => {\n return h('span', toThousandsAndTwoDecimal(text));\n };\n };\n export default useThousandsAndTwoDecimal;\n "],"sourceRoot":""}