{"version":3,"sources":["webpack:///./src/components/Pagination.vue?1871","webpack:///./src/components/Pagination.vue","webpack:///./src/components/Pagination.vue?abc7","webpack:///./src/views/SSSC/SSSCIndex.vue?e9a9","webpack:///./src/components/Pagination.vue?8fea","webpack:///./src/views/SSSC/SSSCIndex.vue?cbd3","webpack:///./src/API/sssc.ts","webpack:///./src/views/SSSC/SSSCIndex.vue","webpack:///./src/views/SSSC/SSSCIndex.vue?0866"],"names":["_hoisted_1","class","render","_ctx","_cache","$props","$setup","$data","$options","_component_a_pagination","total","current","defaultPageSize","pageSize","pageSizeOptions","onChange","handlerChange","onShowSizeChange","handlerShowSizeChange","name","props","type","Number","default","required","Array","hideOnSinglePage","Boolean","showQuickJumper","showSizeChanger","emits","setup","content","pageNumber","emit","__exports__","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","style","_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","_hoisted_25","_hoisted_26","_hoisted_27","_component_Breadcrumb","_component_a_button","_component_a_select_option","_component_a_select","_component_a_input","_component_a_table","_component_a_upload_dragger","_component_a_drawer","_component_a_modal","_component_Pagination","dataSource","$btnPermissions","key","onClick","handleExportAll","_","value","bu","$event","ref","buSelectData","item","orgid","orgnmen","model_name","placeholder","allowClear","baumuster","handleSearch","handleExport","visible","columns","dataSoure","rowKey","pagination","scroll","y","tableHeight","x","rowClassName","record","index","title","width","onClose","handleClose","fileList","multiple","action","baseURL","headers","handleUpload","visibleModal","centered","onCancel","footer","href","errorURL","innerHTML","errorMsg","replace","handlerPaginationChange","page","ssscSearch","params","components","Pagination","store","useTableHeight","queryParams","state","user","url","blobDownload","Object","assign","getColumns","data","tableCol","forEach","display","dataIndex","id","push","getBuUnit","then","res","useFetch","tableCell","refreshFetch","Authorization","info","file","status","console","log","response","description","message","downloadUrl","onOk","error"],"mappings":"gIAGMA,EAAa,CAAEC,MAAO,sCAErB,SAASC,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,IAAMC,EAA0B,8BAAkB,gBAElD,OAAQ,yBAAc,gCAAoB,MAAOT,EAAY,CAC3D,yBAAaS,EAAyB,CACpCC,MAAOP,EAAKO,MACZ,oBAAqB,GACrB,oBAAqB,GACrBC,QAASR,EAAKQ,QACdC,gBAAiBT,EAAKS,gBACtBC,SAAUV,EAAKU,SACfC,gBAAiBX,EAAKW,gBACtB,aAAc,SAAAJ,GAAS,eAASA,EAAK,UACrCK,SAAUZ,EAAKa,cACfC,iBAAkBd,EAAKe,uBACtB,KAAM,EAAG,CAAC,QAAS,UAAW,kBAAmB,WAAY,kBAAmB,aAAc,WAAY,uBCjB9F,mCAAgB,CAC3BC,KAAM,aACNC,MAAO,CACHV,MAAO,CACHW,KAAMC,OACNC,QAAS,EACTC,UAAU,GAEdV,gBAAiB,CACbO,KAAMI,OAEVZ,SAAU,CACNQ,KAAMC,OACNC,QAAS,IAEbX,gBAAiB,CACbS,KAAMC,OACNC,QAAS,IAEbZ,QAAS,CACLU,KAAMC,OACNC,QAAS,EACTC,UAAU,GAEdE,iBAAkB,CACdL,KAAMM,QACNJ,SAAS,GAEbK,gBAAiB,CACbP,KAAMM,QACNJ,SAAS,GAEbM,gBAAiB,CACbR,KAAMM,QACNJ,SAAS,IAGjBO,MAAO,CAAC,SAAU,oBAClBC,MAAA,SAAMX,EAAOY,GACT,IAAMhB,EAAgB,SAACiB,GACnBD,EAAQE,KAAK,SAAUD,IAGrBf,EAAwB,SAACP,EAAiBE,GAC5CmB,EAAQE,KAAK,mBAAoBvB,EAASE,IAG9C,MAAO,CACHG,cAAa,EACbE,sBAAqB,M,iCC7CrC,MAAMiB,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASjC,GAAQ,CAAC,YAAY,qBAE1E,U,2DCTf,W,oCCA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KC,KAAKI,SAAiBnB,KAAKqB,QAClDzC,EAASzC,MAAS2E,EAAKC,KAAKI,SAAiBnB,KAAKsB,aAGtD,OAAMR,KAAK,CACPjD,MAAO,MACPzE,QAAS,2BACTmI,KAAI,WACAvD,OAIoB,UAArB8C,EAAKC,KAAKC,QACjBK,EAAA,KAAQG,MAASV,EAAKC,KAAKxI,KAAI,yBAOvC,OAHA,wBAAU,WACNgI,OAEG,gBACHhE,aAAY,EACZY,UAAS,EACTD,QAAO,EACPD,QAAO,EACPgB,SAAQ,EACR2C,aAAY,EACZ5C,YAAW,EACXM,aAAY,EACZrC,gBAAe,EACfe,aAAY,EACZqB,QAAO,EACPD,QAAO,OACPG,aAAY,EACZO,SAAQ,EACRF,SAAQ,EACRI,wBAAuB,EACvB1G,sBAAqB,EACrB+E,WAAU,EACVG,YAAW,EACXT,aAAY,GACT,oBAAOyC,O,iCC9ItB,MAAMjG,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASjC,KAErD","file":"js/chunk-6bc7c3ee.3b9de25c.js","sourcesContent":["import { resolveComponent as _resolveComponent, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-cee45ef6\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"pagination-container d-f justify-e\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_a_pagination = _resolveComponent(\"a-pagination\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_a_pagination, {\n total: _ctx.total,\n \"show-size-changer\": \"\",\n \"show-quick-jumper\": \"\",\n current: _ctx.current,\n defaultPageSize: _ctx.defaultPageSize,\n pageSize: _ctx.pageSize,\n pageSizeOptions: _ctx.pageSizeOptions,\n \"show-total\": total => `Total ${total} items`,\n onChange: _ctx.handlerChange,\n onShowSizeChange: _ctx.handlerShowSizeChange\n }, null, 8, [\"total\", \"current\", \"defaultPageSize\", \"pageSize\", \"pageSizeOptions\", \"show-total\", \"onChange\", \"onShowSizeChange\"])\n ]))\n}","\n import { defineComponent } from 'vue';\n\n export default defineComponent({\n name: \"Pagination\",\n props: {\n total: {\n type: Number,\n default: 0,\n required: true\n },\n pageSizeOptions: {\n type: Array,\n },\n pageSize: {\n type: Number,\n default: 10\n },\n defaultPageSize: {\n type: Number,\n default: 10\n },\n current: {\n type: Number,\n default: 1,\n required: true\n },\n hideOnSinglePage: {\n type: Boolean,\n default: false\n },\n showQuickJumper: {\n type: Boolean,\n default: true\n },\n showSizeChanger: {\n type: Boolean,\n default: true\n }\n },\n emits: ['change', 'show-size-change'],\n setup(props, content) {\n const handlerChange = (pageNumber: number) => {\n content.emit('change', pageNumber);\n }\n\n const handlerShowSizeChange = (current: number, pageSize: number) => {\n content.emit('show-size-change', current, pageSize);\n }\n\n return {\n handlerChange,\n handlerShowSizeChange\n }\n }\n })\n","import { render } from \"./Pagination.vue?vue&type=template&id=cee45ef6&scoped=true&ts=true\"\nimport script from \"./Pagination.vue?vue&type=script&lang=ts\"\nexport * from \"./Pagination.vue?vue&type=script&lang=ts\"\n\nimport \"./Pagination.vue?vue&type=style&index=0&id=cee45ef6&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-cee45ef6\"]])\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!./SSSCIndex.vue?vue&type=style&index=0&id=62ae56f1&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!./Pagination.vue?vue&type=style&index=0&id=cee45ef6&scoped=true&lang=scss\"","import { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString } from \"vue\"\n\nconst _hoisted_1 = { class: \"sssc\" }\nconst _hoisted_2 = { class: \"bg-fff sssc-content\" }\nconst _hoisted_3 = { class: \"flex-div sssc-content-header\" }\nconst _hoisted_4 = /*#__PURE__*/_createElementVNode(\"h1\", { class: \"mid-font-size\" }, [\n /*#__PURE__*/_createElementVNode(\"i\", { class: \"sign-line\" }),\n /*#__PURE__*/_createTextVNode(),\n /*#__PURE__*/_createElementVNode(\"span\", { class: \"m-l-10\" }, \"SSSC Quotation\")\n], -1)\nconst _hoisted_5 = /*#__PURE__*/_createElementVNode(\"span\", { style: {\"flex\":\"1\"} }, null, -1)\nconst _hoisted_6 = /*#__PURE__*/_createTextVNode(\"Export all\")\nconst _hoisted_7 = { class: \"flex-div m-l-10 sssc-content-search\" }\nconst _hoisted_8 = { class: \"flex-div justify-s op-wrap align-e\" }\nconst _hoisted_9 = { class: \"m-l-10\" }\nconst _hoisted_10 = /*#__PURE__*/_createElementVNode(\"p\", null, \"Business Unit\", -1)\nconst _hoisted_11 = { class: \"m-l-10\" }\nconst _hoisted_12 = /*#__PURE__*/_createElementVNode(\"p\", null, \"Model Name\", -1)\nconst _hoisted_13 = { class: \"m-l-10\" }\nconst _hoisted_14 = /*#__PURE__*/_createElementVNode(\"p\", null, \"Baumust\", -1)\nconst _hoisted_15 = /*#__PURE__*/_createTextVNode(\"Search\")\nconst _hoisted_16 = /*#__PURE__*/_createElementVNode(\"span\", { style: {\"flex\":\"1\"} }, null, -1)\nconst _hoisted_17 = /*#__PURE__*/_createTextVNode(\"Export\")\nconst _hoisted_18 = /*#__PURE__*/_createTextVNode(\"Upload\")\nconst _hoisted_19 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"upload-wrap\" }, [\n /*#__PURE__*/_createElementVNode(\"i\", { class: \"font_family icon-CloudUpload1 icon-upload\" }),\n /*#__PURE__*/_createElementVNode(\"p\", null, [\n /*#__PURE__*/_createElementVNode(\"span\", { class: \"ant-upload-hint\" }, \"Drag and drop to upload or\"),\n /*#__PURE__*/_createElementVNode(\"a\", { class: \"m-l-10\" }, \"browse for files\")\n ])\n], -1)\nconst _hoisted_20 = { class: \"draw-bm\" }\nconst _hoisted_21 = /*#__PURE__*/_createTextVNode(\"Cancel\")\nconst _hoisted_22 = /*#__PURE__*/_createTextVNode(\"Submit\")\nconst _hoisted_23 = /*#__PURE__*/_createElementVNode(\"i\", { class: \"font_family icon-tips color-y f20\" }, null, -1)\nconst _hoisted_24 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"font-tips m-l-10\" }, \"Tips\", -1)\nconst _hoisted_25 = [\"innerHTML\"]\nconst _hoisted_26 = /*#__PURE__*/_createTextVNode(\"Cancel\")\nconst _hoisted_27 = [\"href\"]\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_button = _resolveComponent(\"a-button\")!\n const _component_a_select_option = _resolveComponent(\"a-select-option\")!\n const _component_a_select = _resolveComponent(\"a-select\")!\n const _component_a_input = _resolveComponent(\"a-input\")!\n const _component_a_table = _resolveComponent(\"a-table\")!\n const _component_a_upload_dragger = _resolveComponent(\"a-upload-dragger\")!\n const _component_a_drawer = _resolveComponent(\"a-drawer\")!\n const _component_a_modal = _resolveComponent(\"a-modal\")!\n const _component_Pagination = _resolveComponent(\"Pagination\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_Breadcrumb, { dataSource: [] }),\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _hoisted_4,\n _hoisted_5,\n (_ctx.$btnPermissions('EXPORTALL'))\n ? (_openBlock(), _createBlock(_component_a_button, {\n key: 0,\n onClick: _ctx.handleExportAll\n }, {\n default: _withCtx(() => [\n _hoisted_6\n ]),\n _: 1\n }, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n _createElementVNode(\"div\", _hoisted_8, [\n _createElementVNode(\"div\", _hoisted_9, [\n _hoisted_10,\n _createVNode(_component_a_select, {\n value: _ctx.bu,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.bu) = $event)),\n style: {\"width\":\"120px\"},\n ref: \"select\"\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.buSelectData, (item) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n value: item.orgid,\n key: item.orgid\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(item.orgnmen), 1)\n ]),\n _: 2\n }, 1032, [\"value\"]))\n }), 128))\n ]),\n _: 1\n }, 8, [\"value\"])\n ]),\n _createElementVNode(\"div\", _hoisted_11, [\n _hoisted_12,\n _createVNode(_component_a_input, {\n value: _ctx.model_name,\n \"onUpdate:value\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.model_name) = $event)),\n placeholder: \"Input Model Name\",\n allowClear: \"\"\n }, null, 8, [\"value\"])\n ]),\n _createElementVNode(\"div\", _hoisted_13, [\n _hoisted_14,\n _createVNode(_component_a_input, {\n value: _ctx.baumuster,\n \"onUpdate:value\": _cache[2] || (_cache[2] = ($event: any) => ((_ctx.baumuster) = $event)),\n placeholder: \"Input Baumust\",\n allowClear: \"\"\n }, null, 8, [\"value\"])\n ]),\n (_ctx.$btnPermissions('SEARCH'))\n ? (_openBlock(), _createBlock(_component_a_button, {\n key: 0,\n class: \"m-l-16\",\n type: \"primary\",\n onClick: _ctx.handleSearch\n }, {\n default: _withCtx(() => [\n _hoisted_15\n ]),\n _: 1\n }, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _hoisted_16,\n _createElementVNode(\"div\", null, [\n (_ctx.$btnPermissions('EXPORT'))\n ? (_openBlock(), _createBlock(_component_a_button, {\n key: 0,\n onClick: _ctx.handleExport\n }, {\n default: _withCtx(() => [\n _hoisted_17\n ]),\n _: 1\n }, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.$btnPermissions('UPLOAD'))\n ? (_openBlock(), _createBlock(_component_a_button, {\n key: 1,\n type: \"primary\",\n class: \"m-l-10\",\n onClick: _cache[3] || (_cache[3] = ($event: any) => (_ctx.visible = true))\n }, {\n default: _withCtx(() => [\n _hoisted_18\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _createVNode(_component_a_table, {\n columns: _ctx.columns,\n \"data-source\": _ctx.dataSoure,\n class: \"m-t-20 self-table-text\",\n rowKey: item => item['ID_BM6'],\n pagination: false,\n scroll: { y: _ctx.tableHeight, x: 1500 },\n rowClassName: (record, index) => (index % 2 === 1 ? 'table-striped' : null)\n }, null, 8, [\"columns\", \"data-source\", \"rowKey\", \"scroll\", \"rowClassName\"])\n ]),\n _createVNode(_component_a_drawer, {\n title: \"Upload SSSC Quotation\",\n width: 500,\n visible: _ctx.visible,\n onClose: _ctx.handleClose\n }, {\n default: _withCtx(() => [\n _createVNode(_component_a_upload_dragger, {\n fileList: _ctx.fileList,\n \"onUpdate:fileList\": _cache[4] || (_cache[4] = ($event: any) => ((_ctx.fileList) = $event)),\n name: \"file\",\n multiple: true,\n action: `${_ctx.baseURL}/pgapi/offer_type/sssc/import_quotation`,\n headers: _ctx.headers,\n onChange: _ctx.handleUpload\n }, {\n default: _withCtx(() => [\n _hoisted_19\n ]),\n _: 1\n }, 8, [\"fileList\", \"action\", \"headers\", \"onChange\"]),\n _createElementVNode(\"div\", _hoisted_20, [\n _createVNode(_component_a_button, {\n style: {\"margin-right\":\"8px\"},\n onClick: _ctx.handleClose\n }, {\n default: _withCtx(() => [\n _hoisted_21\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_a_button, {\n type: \"primary\",\n onClick: _ctx.handleClose\n }, {\n default: _withCtx(() => [\n _hoisted_22\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ])\n ]),\n _: 1\n }, 8, [\"visible\", \"onClose\"]),\n _createVNode(_component_a_modal, {\n visible: _ctx.visibleModal,\n centered: \"\",\n onCancel: _cache[6] || (_cache[6] = ($event: any) => {_ctx.visibleModal = false; _ctx.visible = false})\n }, {\n title: _withCtx(() => [\n _hoisted_23,\n _hoisted_24\n ]),\n footer: _withCtx(() => [\n _createVNode(_component_a_button, {\n style: {\"margin-right\":\"8px\"},\n onClick: _cache[5] || (_cache[5] = ($event: any) => {_ctx.visibleModal = false;_ctx.handleClose()})\n }, {\n default: _withCtx(() => [\n _hoisted_26\n ]),\n _: 1\n }),\n (_ctx.errorURL)\n ? (_openBlock(), _createBlock(_component_a_button, {\n key: 0,\n style: {\"margin-right\":\"8px\"}\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"a\", { href: _ctx.errorURL }, \"Download\", 8, _hoisted_27)\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true)\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"p\", {\n class: \"upload-text\",\n innerHTML: _ctx.errorMsg.replace(/\\r\\n/g, '
')\n }, null, 8, _hoisted_25)\n ]),\n _: 1\n }, 8, [\"visible\"]),\n _createVNode(_component_Pagination, {\n onChange: _ctx.handlerPaginationChange,\n onShowSizeChange: _ctx.handlerShowSizeChange,\n pageSize: _ctx.pagination.pageSize,\n current: _ctx.pagination.page,\n total: _ctx.pagination.total\n }, null, 8, [\"onChange\", \"onShowSizeChange\", \"pageSize\", \"current\", \"total\"])\n ]))\n}","import { fetchGet, fetchPost, fetchPut } from './index'\n\n// offer_type/sssc/search\n// 检索 SSSC\nexport interface PgSsscProps {\n tableCell: any;\n tableCol: any;\n}\nexport const ssscSearch = (params = {}): Promise => {\n return fetchGet('/pgapi/offer_type/sssc/search', params)\n}","\nimport { defineComponent, ref, onMounted, reactive, toRefs } from 'vue'\nimport { useStore } from 'vuex'\nimport { message, Modal } from 'ant-design-vue'\nimport { FileInfo, ColumnsProps, AutoTableColProps } from '@/types'\nimport blobDownload from '@/utils/blobDownload'\nimport { ssscSearch, PgSsscProps } from '@/API/sssc'\nimport { getSubscribedBu } from \"@/API/approve\"\nimport { BuItem } from \"@/views/Approve/SalesRoleApprove/ProgramHome/types\";\nimport { baseURL } from '@/API'\nimport Pagination from \"@/components/Pagination.vue\";\nimport useFetch from \"@/hooks/useFetch\";\nimport useTableHeight from \"@/hooks/useTableHeight\";\nexport default defineComponent({\n components: { Pagination },\n setup () {\n const store = useStore()\n const dataSoure = ref([])\n const visible = ref(false)\n const columns = ref([])\n const buSelectData = ref([])\n const visibleModal = ref(false)\n const errorMsg = ref('')\n const errorURL = ref('')\n const { tableHeight } = useTableHeight();\n const queryParams = reactive<{\n bu: string;\n 'model_name': string;\n baumuster: string;\n }>({\n bu: store.state.user.bu.orgid,\n 'model_name': '',\n baumuster: ''\n })\n\n const fileList = ref([])\n\n // 导出excel\n const handleExport = () => {\n const params = {\n url: '/pgapi/offer_type/sssc/export',\n params: queryParams\n }\n blobDownload(params)\n }\n // 导出excel\n const handleExportAll = () => {\n const params = {\n url: '/pgapi/offer_type/sssc/export',\n params: Object.assign(queryParams, { 'export-all': true })\n }\n blobDownload(params)\n }\n const getColumns = (data: PgSsscProps) => {\n columns.value = []\n data.tableCol.forEach((item: AutoTableColProps, index: number) => {\n const params: ColumnsProps = {\n title: item.display,\n dataIndex: item.id,\n key: item.id,\n }\n columns.value.push(params)\n })\n }\n // 获取business unit\n const getBuUnit = () => {\n getSubscribedBu().then(res => {\n buSelectData.value = res\n })\n }\n\n const { pagination, refreshFetch } = useFetch(Object.assign(queryParams, {page: 1, pageSize: 10}), [], ssscSearch, true, (res: any) => {\n dataSoure.value = res.tableCell\n getColumns(res)\n });\n\n //分页事件处理\n const handlerPaginationChange = (page: number): void => {\n pagination.page = page;\n refreshFetch();\n }\n\n const handlerShowSizeChange = (current: number, pageSize: number): void => {\n pagination.pageSize = pageSize;\n Object.assign(pagination, { page: current, pageSize: pageSize });\n refreshFetch();\n }\n\n const handleSearch = () => {\n refreshFetch(1)\n }\n\n const headers = {\n Authorization: store.state.Authorization\n }\n // 关闭上传弹窗,需要刷新列表\n const handleClose = () => {\n visible.value = false\n fileList.value = []\n refreshFetch()\n }\n const handleUpload = (info: FileInfo) => {\n if (info.file.status !== 'uploading') {\n console.log(info.file, info.fileList);\n }\n if (info.file.status === 'done') {\n if ((info.file.response as any).data && (info.file.response as any).data.description && (info.file.response as any).data.message !== 'File upload successfully!') {\n visibleModal.value = true\n errorMsg.value = (info.file.response as any).data.message\n errorURL.value = (info.file.response as any).data.downloadUrl\n } else {\n // 上传文件成功\n Modal.info({\n title: 'Tip',\n content: `File upload successfully`,\n onOk() {\n handleClose()\n }\n });\n }\n } else if (info.file.status === 'error') {\n message.error(`${info.file.name} file upload failed.`);\n }\n\n }\n onMounted(() => {\n getBuUnit()\n })\n return {\n buSelectData,\n dataSoure,\n columns,\n visible,\n fileList,\n refreshFetch,\n handleClose,\n handleUpload,\n handleExportAll,\n handleExport,\n headers,\n baseURL,\n visibleModal,\n errorMsg,\n errorURL,\n handlerPaginationChange,\n handlerShowSizeChange,\n pagination,\n tableHeight,\n handleSearch,\n ...toRefs(queryParams)\n }\n }\n})\n","import { render } from \"./SSSCIndex.vue?vue&type=template&id=62ae56f1&ts=true\"\nimport script from \"./SSSCIndex.vue?vue&type=script&lang=ts\"\nexport * from \"./SSSCIndex.vue?vue&type=script&lang=ts\"\n\nimport \"./SSSCIndex.vue?vue&type=style&index=0&id=62ae56f1&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]])\n\nexport default __exports__"],"sourceRoot":""}