{"version":3,"sources":["webpack:///./src/views/Setting/AttachementMasterSetting.vue?6cc9","webpack:///./src/API/setting.ts","webpack:///./src/components/DrawerUpload.vue?1db1","webpack:///./src/components/DrawerUpload.vue","webpack:///./src/components/DrawerUpload.vue?1c49","webpack:///./src/components/DrawerUpload.vue?c9dc","webpack:///./src/views/Setting/AttachementMasterSetting.vue?2bec","webpack:///./src/views/Setting/AttachementMasterSetting.vue","webpack:///./src/views/Setting/AttachementMasterSetting.vue?7eff","webpack:///./src/hooks/Program/useAllCheck.ts"],"names":["settingSearchPdi","params","loadAttachment","programSettingGetOfferType","getAttachmentSetting","importProgramAttachment","deleteProgramAttachment","data","saveAttachment","importAttachment","loadCommentsMaster","getProgramAttachment","commentsSearchOption","storeCommentsMaster","deleteCommentsMaster","_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","render","_ctx","_cache","$props","$setup","$data","$options","_component_a_upload_dragger","_component_a_button","_component_a_drawer","title","width","visible","onClose","handleClose","default","fileList","$event","name","multiple","headers","handleBeforeUpload","onChange","handleUpload","_","type","onClick","handleClickUpload","props","Boolean","String","url","emit","setup","store","Authorization","state","fileLists","file","value","uploadFileFormData","FormData","forEach","ele","append","then","res","message","success","catch","e","info","sessionStorage","getItem","status","console","log","error","baseURL","__exports__","_withScopeId","n","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","key","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_component_Breadcrumb","_component_a_select_option","_component_a_select","_component_a_space","_component_a_spin","_component_v_nodes","_component_a_divider","_component_a_input","_component_a_checkbox","_component_a_table","_component_DrawerUpload","dataSource","align","buSelected","placeholder","allowClear","buOptions","item","orgid","orgnmen","$btnPermissions","getTableData","handleSave","pagination","scroll","y","tableHeight","x","rowKey","index","rowClassName","record","columns","tableData","action","handleDownload","id","handleDelete","tableCol","col","fn","onFocus","handleFocus","style","options","buOption","handleChange","fetching","undefined","tableCellSelect","ite","nameEn","size","mode","onBlur","checked","hanleChangeOfferType","dropdownRender","menu","vnodes","onMousedown","preventDefault","handleAllCheck","tableCellSelectOffer","rowData","currentIndex","onUpdateTable","updateTable","components","DrawerUpload","VNodes","attrs","delArr","uploadIds","history","useAllCheck","useFetch","map","label","getColumns","display","dataIndex","slots","customRender","push","fixed","addNewRow","param","autoInsetRow","tableCell","getIndex","findIndex","length","cloneObj","deepClone","init","bu","buId","buName","refreshFetch","handlerPaginationChange","page","handlerShowSizeChange","current","pageSize","Object","assign","tableDatas","rows","deleteIds","_getOfferType","row","incentiveCategory","offerObj","find","offerType","filter","children","JSON","stringify","attachmentId","blobDownload","indexOf","ids","parse","concat","uploads","resizeHandler","document","body","clientHeight","window","addEventListener","currentChecked","val"],"mappings":"kHAAA,W,6DCAA,0cA+CaA,EAAmB,SAACC,GAC7B,YAD6B,IAAAA,MAAA,IACtB,eAAS,oCAAqCA,IAI5CC,EAAiB,SAACD,GAC3B,YAD2B,IAAAA,MAAA,IACpB,eAAS,yCAA0CA,IAGjDE,EAA6B,SAACF,GACvC,YADuC,IAAAA,MAAA,IAChC,eAAS,wCAAyCA,IAOhDG,EAAuB,SAACH,GACjC,YADiC,IAAAA,MAAA,IAC1B,eAAU,+CAAgDA,IAGxDI,EAA0B,SAACJ,GACpC,YADoC,IAAAA,MAAA,IAC7B,eAAU,kDAAmDA,IAM3DK,EAA0B,SAACL,EAAaM,GACjD,YADoC,IAAAN,MAAA,IAC7B,eAAU,6DAA+DM,EAAMN,IAI7EO,EAAiB,SAACP,GAC3B,YAD2B,IAAAA,MAAA,IACpB,eAAU,yCAA0CA,IAGlDQ,EAAmB,SAACR,GAC7B,YAD6B,IAAAA,MAAA,IACtB,eAAU,2CAA4CA,IAEpDS,EAAqB,SAACT,GAC/B,YAD+B,IAAAA,MAAA,IACxB,eAAU,8CAA+CA,IAGvDU,EAAuB,SAACV,GACjC,YADiC,IAAAA,MAAA,IAC1B,eAAS,6CAA8CA,IAIrDW,EAAuB,SAACX,GACjC,YADiC,IA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U,EACVoC,gBAAe,EACfZ,aAAY,EACZK,YAAW,EACXvG,QAAO,EACPW,aAAY,EACZqF,eAAc,EACdW,aAAY,EACZiB,qBAAoB,EACpBhB,SAAQ,EACR1B,aAAY,EACZ2C,QAAO,EACPT,QAAO,EACPO,eAAc,EACdN,qBAAoB,EACpB9B,YAAW,EACXuC,aAAY,EACZE,YAAW,EACXvJ,iBAAgB,W,iCC1X5B,MAAMsE,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAAS3D,GAAQ,CAAC,YAAY,qBAE1E,gB,oCCTf,kDACaoJ,EAAc,WAEvB,IAAMpB,EAAU,kBAAI,GACd8E,EAAiB,SAACpF,EAAsBqF,GAE1C/E,EAAQzF,OAAQ,EACZmF,EAAgB2C,SAAW0C,EAAI1C,SAAQrC,EAAQzF,OAAQ,IAE/D,MAAO,CACHyF,QAAO,EACP8E,eAAc","file":"js/chunk-3f662f2d.d9490be4.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!./AttachementMasterSetting.vue?vue&type=style&index=0&id=0478fc40&lang=scss&scoped=true\"","import { fetchGet, fetchPost, fetchPut, fetchDelete } from './index'\nimport { AttachementProps } from '@/views/Program/types'\nimport { string } from 'vue-types';\n\nexport interface LoadAttachmentProps {\n pageAt: number;\n pageSize: number;\n tableCell: {[key: string]: string}[];\n tableCol: {id: string; display: string; type: string}[];\n totalCount: number;\n\n}\nexport interface OBProps {\n id: string; \n name: string;\n}\nexport interface OBBProps {\n label: string; \n value: string;\n}\nexport interface LoadCommentsTableCellProps{\n bu?: OBProps;\n cn?: OBProps;\n customerType?: OBProps[];\n dealerType?: OBProps[];\n id: string;\n incentiveCategory?: OBProps;\n offerType: OBProps[];\n position?: OBProps;\n powerTrain?: OBProps[];\n preconditionType?: OBProps;\n}\nexport interface LoadCommentsProps{\n pageAt: number;\n pageSize: number;\n tableCell: LoadCommentsTableCellProps[];\n tableCol: {id: string; display: string; type: string}[];\n totalCount: number;\n}\n\nexport interface AttachementListProps {\n docId: string;\n docName: string;\n docPeriod: string;\n docUrl: string;\n}\n// 查询最新PDI List\nexport const settingSearchPdi = (params = {}): Promise => {\n return fetchGet('/pgapi/program/setting/search_pdi', params)\n}\n\n// Attachment Master Setting Overview\nexport const loadAttachment = (params = {}): Promise => {\n return fetchGet('/pgapi/program/setting/load_attachment', params)\n}\n\nexport const programSettingGetOfferType = (params = {}): Promise<{incentiveCategory: []}> => {\n return fetchGet('/pgapi/program/setting/get_offer_type', params)\n}\nexport const deleteAttachment = (params = {}): Promise => {\n return fetchGet('/pgapi/program/setting/delete_attachment', params)\n}\n\n// Get program attachment setting\nexport const getAttachmentSetting = (params = {}): Promise => {\n return fetchPost('/pgapi/program/design/get_attachment_setting', params)\n}\n\nexport const importProgramAttachment = (params = {}): Promise => {\n return fetchPost('/pgapi/program/design/import_program_attachment', params)\n}\n\nexport const downloadProgramAttachment = (params = {}): Promise => {\n return fetchPost('/pgapi/program/design/download_program_attachment', params)\n}\nexport const deleteProgramAttachment = (params = {}, data: string): Promise => {\n return fetchPost('/pgapi/program/design/delete_program_attachment?programId=' + data, params)\n}\n\n\nexport const saveAttachment = (params = {}): Promise => {\n return fetchPost('/pgapi/program/setting/save_attachment', params)\n}\n\nexport const importAttachment = (params = {}): Promise => {\n return fetchPost('/pgapi/program/setting/import_attachment', params)\n}\nexport const loadCommentsMaster = (params = {}): Promise => {\n return fetchPost('/pgapi/program/setting/load_comments_master', params)\n}\n\nexport const getProgramAttachment = (params = {}): Promise<{attachment: AttachementListProps[]; programId: string}> => {\n return fetchGet('/pgapi/program/data/get_program_attachment', params)\n}\n\n\nexport const commentsSearchOption = (params = {}): Promise => {\n return fetchPost('/pgapi/program/setting/comments_search_option', params)\n}\nexport const storeCommentsMaster = (params = {}): Promise => {\n return fetchPost('/pgapi/program/setting/store_comments_master', params)\n}\n\nexport const deleteCommentsMaster = (params = {}): Promise<{incentiveCategory: []}> => {\n return fetchGet('/pgapi/program/setting/delete_comments_master', params)\n}\n\n\n\n","import { createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, createTextVNode as _createTextVNode, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nconst _hoisted_1 = /*#__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_2 = { class: \"draw-bm cursor-p\" }\nconst _hoisted_3 = /*#__PURE__*/_createTextVNode(\"Upload\")\nconst _hoisted_4 = /*#__PURE__*/_createTextVNode(\"Close\")\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_a_upload_dragger = _resolveComponent(\"a-upload-dragger\")!\n const _component_a_button = _resolveComponent(\"a-button\")!\n const _component_a_drawer = _resolveComponent(\"a-drawer\")!\n\n return (_openBlock(), _createBlock(_component_a_drawer, {\n title: _ctx.title,\n width: 500,\n visible: _ctx.visible,\n onClose: _ctx.handleClose\n }, {\n default: _withCtx(() => [\n _createVNode(_component_a_upload_dragger, {\n \"file-list\": _ctx.fileList,\n \"onUpdate:file-list\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.fileList) = $event)),\n name: \"file\",\n multiple: true,\n headers: _ctx.headers,\n \"before-upload\": _ctx.handleBeforeUpload,\n onChange: _ctx.handleUpload\n }, {\n default: _withCtx(() => [\n _hoisted_1\n ]),\n _: 1\n }, 8, [\"file-list\", \"headers\", \"before-upload\", \"onChange\"]),\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_component_a_button, {\n type: \"primary\",\n class: \"cursor-p\",\n onClick: _ctx.handleClickUpload\n }, {\n default: _withCtx(() => [\n _hoisted_3\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_a_button, {\n type: \"primary\",\n class: \"m-l-10 cursor-p\",\n onClick: _ctx.handleClose\n }, {\n default: _withCtx(() => [\n _hoisted_4\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ])\n ]),\n _: 1\n }, 8, [\"title\", \"visible\", \"onClose\"]))\n}","\nimport { defineComponent, ref, onMounted } from 'vue'\nimport { useStore } from 'vuex'\nimport { message } from 'ant-design-vue'\nimport { FileInfo, ColumnsProps, AutoTableColProps } from '@/types'\nimport { ssscSearch, PgSsscProps } from '@/API/sssc'\nimport { baseURL } from '@/API'\nimport { importAttachment } from '@/API/setting'\ninterface FileItem {\n uid: string;\n name?: string;\n status?: string;\n response?: string;\n url?: string;\n preview?: string;\n originFileObj?: any;\n file: string | Blob;\n}\nexport default defineComponent({\n props: {\n visible: {\n default: false,\n type: Boolean\n },\n title: {\n default: '',\n type: String\n },\n data: {\n default: () => '',\n type: String\n },\n url: {\n default: () => importAttachment,\n }\n },\n emit: ['updateTable'],\n setup (props, { emit }) {\n const store = useStore()\n const visible = ref(false)\n \n\n const headers = {\n Authorization: store.state.Authorization\n }\n // fileLists是用于上传需要合并成files: (binary)\n const fileLists = ref([]);\n // fileList用于清空上列表,如果用fileLists这一个的话,清空没有问题,但是上传的files:[Object Object]\n const fileList = ref()\n \n const handleBeforeUpload = (file: FileItem, fileList: any) => {\n fileLists.value = fileList\n fileList.value = fileList\n return false;\n }\n\n const handleClickUpload = () => {\n const uploadFileFormData = new FormData();\n fileLists.value.forEach((ele: any) => {\n uploadFileFormData.append('files', ele as any);\n });\n uploadFileFormData.append('row', props.data)\n uploadFileFormData.append('programId', props.data)\n props.url(uploadFileFormData).then((res) => {\n message.success('File uploaded successfully')\n emit('update-table', res)\n\n fileLists.value = []\n fileList.value = []\n }).catch((e) => {\n fileLists.value = []\n fileList.value = []\n\n })\n \n }\n const handleUpload = (info: FileInfo) => {\n sessionStorage.getItem('rowId')\n\n if (info.file.status !== 'uploading') {\n console.log(info.file, info.fileList);\n }\n if (info.file.status === 'done') {\n // 上传文件成功\n message.success(`${info.file.name} file uploaded successfully`);\n visible.value = true\n info.fileList = []\n fileLists.value = []\n fileList.value = []\n } else if (info.file.status === 'error') {\n message.error(`${info.file.name} file upload failed.`);\n fileLists.value = []\n fileList.value = []\n }\n \n }\n\n // 关闭上传弹窗,需要刷新列表\n const handleClose = () => {\n visible.value = false\n fileLists.value = []\n fileList.value = []\n emit('update:visible', false)\n }\n \n return {\n handleClose,\n handleUpload,\n headers,\n baseURL,\n handleBeforeUpload,\n handleClickUpload,\n fileList\n }\n }\n})\n","import { render } from \"./DrawerUpload.vue?vue&type=template&id=1f1835ba&ts=true\"\nimport script from \"./DrawerUpload.vue?vue&type=script&lang=ts\"\nexport * from \"./DrawerUpload.vue?vue&type=script&lang=ts\"\n\nimport \"./DrawerUpload.vue?vue&type=style&index=0&id=1f1835ba&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__","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!./DrawerUpload.vue?vue&type=style&index=0&id=1f1835ba&lang=scss\"","import { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createSlots as _createSlots, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-0478fc40\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"wrap claim-wrap\" }\nconst _hoisted_2 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"label\" }, \"BU\", -1))\nconst _hoisted_3 = /*#__PURE__*/_createTextVNode(\"Search\")\nconst _hoisted_4 = { class: \"ag-table\" }\nconst _hoisted_5 = /*#__PURE__*/_createTextVNode(\"Save\")\nconst _hoisted_6 = /*#__PURE__*/_createTextVNode(\" // loading加载 \")\nconst _hoisted_7 = [\"onClick\"]\nconst _hoisted_8 = { key: 4 }\nconst _hoisted_9 = [\"onClick\"]\nconst _hoisted_10 = { key: 6 }\nconst _hoisted_11 = { key: 7 }\nconst _hoisted_12 = [\"onClick\"]\nconst _hoisted_13 = [\"onClick\"]\nconst _hoisted_14 = [\"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_select_option = _resolveComponent(\"a-select-option\")!\n const _component_a_select = _resolveComponent(\"a-select\")!\n const _component_a_button = _resolveComponent(\"a-button\")!\n const _component_a_space = _resolveComponent(\"a-space\")!\n const _component_a_spin = _resolveComponent(\"a-spin\")!\n const _component_v_nodes = _resolveComponent(\"v-nodes\")!\n const _component_a_divider = _resolveComponent(\"a-divider\")!\n const _component_a_input = _resolveComponent(\"a-input\")!\n const _component_a_checkbox = _resolveComponent(\"a-checkbox\")!\n const _component_a_table = _resolveComponent(\"a-table\")!\n const _component_DrawerUpload = _resolveComponent(\"DrawerUpload\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createVNode(_component_Breadcrumb, { dataSource: [] }),\n _createElementVNode(\"div\", _hoisted_1, [\n _createVNode(_component_a_space, {\n class: \"feature-con\",\n align: \"end\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_a_space, null, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", null, [\n _hoisted_2,\n _createVNode(_component_a_select, {\n value: _ctx.buSelected,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.buSelected) = $event)),\n placeholder: \"Please select\",\n class: \"sel-inp-size\",\n allowClear: \"\"\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.buOptions, (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 (_ctx.$btnPermissions('SEARCH'))\n ? (_openBlock(), _createBlock(_component_a_button, {\n key: 0,\n class: \"s-w btn-style\",\n type: \"primary\",\n onClick: _ctx.getTableData\n }, {\n default: _withCtx(() => [\n _hoisted_3\n ]),\n _: 1\n }, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createElementVNode(\"div\", _hoisted_4, [\n _createVNode(_component_a_space, { class: \"table-button flex-div justify-e\" }, {\n default: _withCtx(() => [\n (_ctx.$btnPermissions('SAVE'))\n ? (_openBlock(), _createBlock(_component_a_button, {\n key: 0,\n type: \"primary\",\n onClick: _ctx.handleSave\n }, {\n default: _withCtx(() => [\n _hoisted_5\n ]),\n _: 1\n }, 8, [\"onClick\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }),\n _createElementVNode(\"div\", null, [\n _createVNode(_component_a_table, {\n pagination: false,\n scroll: { y: _ctx.tableHeight - 380, x: 1000 },\n rowKey: (item, index) => index,\n class: \"modle-header self-table-input\",\n rowClassName: (record, index) => (index % 2 === 1 ? 'table-striped' : null),\n columns: _ctx.columns,\n \"data-source\": _ctx.tableData\n }, _createSlots({\n action: _withCtx(({ record, index }) => [\n (_ctx.$btnPermissions('UPLOAD'))\n ? (_openBlock(), _createElementBlock(\"a\", {\n key: 0,\n onClick: ($event: any) => (_ctx.handleUpload(record, index)),\n class: \"cursor-p m-l-10\"\n }, \"Upload\", 8, _hoisted_12))\n : _createCommentVNode(\"\", true),\n (_ctx.$btnPermissions('DOWNLOAD'))\n ? (_openBlock(), _createElementBlock(\"a\", {\n key: 1,\n onClick: ($event: any) => (_ctx.handleDownload(record.id)),\n class: \"cursor-p m-l-10\"\n }, \"Download\", 8, _hoisted_13))\n : _createCommentVNode(\"\", true),\n (_ctx.$btnPermissions('DELETE'))\n ? (_openBlock(), _createElementBlock(\"a\", {\n key: 2,\n onClick: ($event: any) => (_ctx.handleDelete(record.id)),\n class: \"cursor-p m-l-10\"\n }, \"Delete\", 8, _hoisted_14))\n : _createCommentVNode(\"\", true)\n ]),\n _: 2\n }, [\n _renderList(_ctx.tableCol, (col) => {\n return {\n name: col.id,\n fn: _withCtx(({ record }) => [\n (col.id === 'bu')\n ? (_openBlock(), _createBlock(_component_a_select, {\n key: 0,\n value: record[col.id],\n \"onUpdate:value\": ($event: any) => ((record[col.id]) = $event),\n onFocus: ($event: any) => (_ctx.handleFocus(col.id, record)),\n style: {\"width\":\"150px\"},\n \"label-in-value\": \"\",\n options: _ctx.buOption\n }, null, 8, [\"value\", \"onUpdate:value\", \"onFocus\", \"options\"]))\n : _createCommentVNode(\"\", true),\n (col.id === 'incentiveCategory')\n ? (_openBlock(), _createBlock(_component_a_select, {\n key: 1,\n value: record[col.id],\n \"onUpdate:value\": ($event: any) => ((record[col.id]) = $event),\n style: {\"width\":\"180px\"},\n onFocus: ($event: any) => (_ctx.handleFocus(col.id, record)),\n onChange: ($event: any) => (_ctx.handleChange(col.id, record)),\n \"not-found-content\": _ctx.fetching ? undefined : 'No Data'\n }, _createSlots({\n default: _withCtx(() => [\n _hoisted_6,\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.tableCellSelect, (ite) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n key: ite.id,\n value: ite.nameEn,\n title: ite.nameEn\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(ite.nameEn), 1)\n ]),\n _: 2\n }, 1032, [\"value\", \"title\"]))\n }), 128))\n ]),\n _: 2\n }, [\n (_ctx.fetching)\n ? {\n name: \"notFoundContent\",\n fn: _withCtx(() => [\n _createVNode(_component_a_spin, { size: \"small\" })\n ])\n }\n : undefined\n ]), 1032, [\"value\", \"onUpdate:value\", \"onFocus\", \"onChange\", \"not-found-content\"]))\n : _createCommentVNode(\"\", true),\n (col.id === 'offerType')\n ? (_openBlock(), _createBlock(_component_a_select, {\n key: 2,\n value: record[col.id],\n \"onUpdate:value\": ($event: any) => ((record[col.id]) = $event),\n mode: \"multiple\",\n style: {\"width\":\"180px\"},\n onFocus: ($event: any) => (_ctx.handleFocus(col.id, record)),\n onBlur: _cache[2] || (_cache[2] = ($event: any) => (_ctx.checked = false)),\n onChange: ($event: any) => (_ctx.hanleChangeOfferType(col.id, record)),\n \"not-found-content\": _ctx.fetching ? undefined : 'No Data'\n }, _createSlots({\n dropdownRender: _withCtx(({ menuNode: menu }) => [\n _createVNode(_component_v_nodes, { vnodes: menu }, null, 8, [\"vnodes\"]),\n _createVNode(_component_a_divider, { style: {\"margin\":\"4px 0\"} }),\n _createElementVNode(\"div\", {\n onMousedown: _cache[1] || (_cache[1] = e => e.preventDefault()),\n class: \"all-check\",\n onClick: ($event: any) => (_ctx.handleAllCheck(col.id, record))\n }, _toDisplayString(_ctx.checked ? '取消全选' : '全选'), 41, _hoisted_7)\n ]),\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.tableCellSelectOffer, (item) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n value: item.nameEn,\n key: item.id,\n \"item.nameEn\": \"\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(item.nameEn), 1)\n ]),\n _: 2\n }, 1032, [\"value\"]))\n }), 128))\n ]),\n _: 2\n }, [\n (_ctx.fetching)\n ? {\n name: \"notFoundContent\",\n fn: _withCtx(() => [\n _createVNode(_component_a_spin, { size: \"small\" })\n ])\n }\n : undefined\n ]), 1032, [\"value\", \"onUpdate:value\", \"onFocus\", \"onChange\", \"not-found-content\"]))\n : _createCommentVNode(\"\", true),\n (col.type === 'TEXT')\n ? (_openBlock(), _createBlock(_component_a_input, {\n key: 3,\n style: {\"width\":\"180px\"},\n value: record[col.id],\n \"onUpdate:value\": ($event: any) => ((record[col.id]) = $event)\n }, null, 8, [\"value\", \"onUpdate:value\"]))\n : _createCommentVNode(\"\", true),\n (col.type === 'CHECK')\n ? (_openBlock(), _createElementBlock(\"p\", _hoisted_8, [\n _createElementVNode(\"i\", {\n class: _normalizeClass([\"font_family f20\", record[col.id] === 'true' ? 'icon-icon-test color-blue' : 'icon-fuxuankuang']),\n onClick: ($event: any) => (record[col.id] = record[col.id] === 'true' ? 'false' : 'true')\n }, null, 10, _hoisted_9)\n ]))\n : _createCommentVNode(\"\", true),\n (col.type === 'CHECK_BOX')\n ? (_openBlock(), _createBlock(_component_a_checkbox, {\n key: 5,\n checked: record[col.id],\n \"onUpdate:checked\": ($event: any) => ((record[col.id]) = $event)\n }, null, 8, [\"checked\", \"onUpdate:checked\"]))\n : _createCommentVNode(\"\", true),\n (col.type === 'INTEGER')\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_10, _toDisplayString(record[col.id]), 1))\n : _createCommentVNode(\"\", true),\n (col.id === 'Operation')\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_11, \"Delete\"))\n : _createCommentVNode(\"\", true)\n ])\n }\n })\n ]), 1032, [\"scroll\", \"rowKey\", \"rowClassName\", \"columns\", \"data-source\"])\n ])\n ]),\n _createVNode(_component_DrawerUpload, {\n visible: _ctx.visible,\n \"onUpdate:visible\": _cache[3] || (_cache[3] = ($event: any) => ((_ctx.visible) = $event)),\n url: _ctx.importAttachment,\n title: 'Upload Attachement',\n data: _ctx.rowData,\n index: _ctx.currentIndex,\n onUpdateTable: _ctx.updateTable\n }, null, 8, [\"visible\", \"url\", \"data\", \"index\", \"onUpdateTable\"])\n ])\n ], 64))\n}","\nimport { ref, defineComponent, onMounted } from 'vue';\nimport { loadAttachment, LoadAttachmentProps, programSettingGetOfferType, deleteAttachment, saveAttachment, importAttachment } from '@/API/setting'\n// import Pagination from \"@/components/Pagination.vue\";\nimport useFetch from \"@/hooks/useFetch\";\nimport { message } from 'ant-design-vue';\nimport { BuItem } from \"@/views/Approve/SalesRoleApprove/ProgramHome/types\";\nimport { getSubscribedBu } from \"@/API/approve\"\nimport { ColumnsProps, AutoTableColProps } from '@/types'\nimport DrawerUpload from '@/components/DrawerUpload.vue'\nimport blobDownload from '@/utils/blobDownload'\nimport { guid } from '@/utils'\nimport deepClone from '@/utils/deepClone'\nimport { useAllCheck } from '@/hooks/Program/useAllCheck'\ninterface CellProps {\n id?: string;\n bu?: {\n buId?: any;\n buName?: string | number;\n };\n documentTypeCn?: string;\n documentTypeEn?: string;\n externalMark?: string;\n incentiveCategory?: string;\n internalMark?: string;\n offerType?: string[] | [];\n}\ninterface TableCellProps {\n id?: string;\n bu?: {\n label?: any;\n value?: string | number;\n };\n documentTypeCn?: string;\n documentTypeEn?: string;\n externalMark?: string;\n incentiveCategory?: string;\n internalMark?: string;\n offerType?: string[] | [];\n}\ninterface OfferTypeProps {\n id: string;\n nameCn: string;\n nameEn: string;\n pathKey: string;\n}\ninterface TableCellSelectProps {\n id: string;\n nameCn: string;\n nameEn: string;\n offerType: OfferTypeProps[];\n}\nexport default defineComponent({\n components: {\n // Pagination,\n DrawerUpload,\n VNodes: (_, { attrs }) => {\n return attrs.vnodes;\n },\n },\n setup() {\n const buSelected = ref('')\n const tableHeight = ref(0)\n\n const tableCellSelect = ref([])\n const tableCellSelectOffer = ref([])\n\n const columns = ref([])\n \n const tableData = ref([])\n const visible = ref(false)\n const tableCol = ref([])\n const fetching = ref(false)\n const rowData = ref('')\n const delArr = ref([])\n const uploadIds = ref([])\n const history = ref([])\n \n\n // 下拉里面的全选,取消全选\n const { checked, currentChecked } = useAllCheck()\n const buOption = ref([])\n \n\n //查询bu options\n const { data: buOptions } = useFetch({}, [], getSubscribedBu, true, (res: any) => {\n buOption.value = res.map((item: any) => {\n return {\n label: item.orgnmen,\n value: item.orgid\n }\n })\n })\n\n // 得到table想要的columns结构\n const getColumns = (data: LoadAttachmentProps) => {\n columns.value = []\n data.tableCol.forEach((item: AutoTableColProps) => {\n const params: ColumnsProps = {\n title: item.display,\n dataIndex: item.id,\n slots: { customRender: item.id },\n }\n params.width = 210\n if (item.display === 'Internal Mark' || item.display === 'External Mark') {\n params.width = 130 \n }\n columns.value.push(params)\n })\n const params = {\n title: 'Operation',\n dataIndex: 'Operation',\n width: 200,\n fixed: 'right',\n slots: { customRender: 'action' },\n }\n columns.value.push(params)\n }\n // 新增一行\n const addNewRow = (tableCol: AutoTableColProps[]) => {\n const param: TableCellProps = {\n id: guid()\n };\n tableCol.forEach((item: any) => {\n // 和表头一致的空数据行\n param[item.id] = item.type === 'MULTI_SELECT' ? [] : ''\n if (item.id === \"internalMark\" || item.id === \"externalMark\") {\n param[item.id] = false\n }\n if (item.id === 'bu') {\n param[item.id] = {\n value: '',\n label: ''\n }\n }\n })\n return param\n }\n\n // 自动新增一行,因为他的结构和其它的结构不一样,所以单独写\n const autoInsetRow = (tableCell: TableCellProps[], tableCol: AutoTableColProps[], record?: TableCellProps) => {\n // 当改变一行中的数据,只是它是最后一行,就要触发自动加一行\n \n if (record) {\n const getIndex = tableCell.findIndex((item: TableCellProps) => item.id === record.id)\n if (getIndex === tableCell.length - 1) {\n const cloneObj = deepClone(record)\n cloneObj.id = guid()\n tableCell.push(cloneObj)\n }\n\n // 不管有没有数据都需要加入一行\n } else {\n tableCell.push(addNewRow(tableCol))\n }\n }\n\n const init = () => {\n const params = {\n params: {bu: buSelected.value}\n }\n \n loadAttachment(params).then((res: any) => {\n if (res.tableCell.length > 0) {\n res.tableCell.forEach((item: any) => {\n item.bu = {\n value: item.bu?.buId,\n label: item.bu?.buName\n }\n })\n }\n\n getColumns(res)\n autoInsetRow(res.tableCell, res.tableCol)\n tableData.value = res.tableCell\n tableCol.value = res.tableCol\n })\n }\n\n const { pagination, refreshFetch } = useFetch({}, [], loadAttachment, true, (res: any) => {\n \n res.tableCell.forEach((item: any) => {\n item.bu = {\n value: item.bu?.buId,\n label: item.bu?.buName\n }\n })\n getColumns(res)\n autoInsetRow(res.tableCell, res.tableCol)\n tableData.value = res.tableCell\n tableCol.value = res.tableCol\n });\n \n //分页事件处理\n const handlerPaginationChange = (page: number): void => {\n pagination.page = page;\n refreshFetch();\n }\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 const handleSave = () => {\n const tableDatas: any = deepClone(tableData.value)\n for (const rows of tableDatas) {\n const value = rows.bu.value\n const label = rows.bu.label\n rows.bu = {}\n rows.bu.buId = value\n rows.bu.buName = label\n delete rows.bu.value\n delete rows.bu.label\n delete rows.bu.key\n }\n const params = {\n tableCell: tableDatas,\n tableCol: tableCol.value,\n deleteIds: delArr.value,\n uploadIds: uploadIds.value,\n history: history.value\n }\n saveAttachment(params).then(() => {\n \n init()\n delArr.value = []\n uploadIds.value = []\n history.value = []\n message.success('Save successed!')\n })\n }\n\n // 获取Incentive Category和offerType和数据,他们数据在一起,是级联的\n const _getOfferType = (row: TableCellProps) => {\n fetching.value = true\n programSettingGetOfferType({params: {bu: row.bu?.value}}).then(res => {\n tableCellSelect.value = res.incentiveCategory\n const offerObj = tableCellSelect.value.find((item: TableCellSelectProps) => item.nameEn === row.incentiveCategory)\n tableCellSelectOffer.value = offerObj ? offerObj.offerType : []\n fetching.value = false\n })\n }\n // Incentive Category和offerType获取焦点,需要加载下拉数据\n /**@param col 就是列id\n * @param row 一列的数据\n */\n const handleFocus = (col: string, row: TableCellProps) => {\n autoInsetRow(tableData.value, tableCol.value, row)\n tableCellSelect.value = []\n switch (col) {\n case 'incentiveCategory':\n _getOfferType(row)\n break;\n case 'offerType':\n if (tableCellSelect.value.length < 1) {\n _getOfferType(row)\n } else {\n const offerObj = tableCellSelect.value.find((item: TableCellSelectProps) => item.nameEn === row.incentiveCategory)\n tableCellSelectOffer.value = offerObj ? offerObj.offerType : []\n }\n break;\n default:\n break;\n }\n }\n \n // Incentive Category切换后,要清掉offerType\n const handleChange = (col: string, row: TableCellProps) => {\n tableCellSelectOffer.value = []\n row.offerType = []\n }\n const handleDelete = (id: string) => {\n // deleteAttachment({params: {id: id}}).then(() => {\n // tableData.value = tableData.value.filter((item: TableCellProps) => item.id !== id)\n // })\n delArr.value.push(id)\n tableData.value = tableData.value.filter((item: TableCellProps) => item.id !== id)\n }\n const currentIndex = ref()\n // 点上传弹出抽屉\n const handleUpload = (row: any, index: number) => {\n visible.value = true\n const rows = deepClone(row)\n rows.bu.buId = rows.bu.value\n rows.bu.buName = rows.bu.label.children\n delete rows.bu.value\n delete rows.bu.label\n delete rows.bu.key\n rowData.value = JSON.stringify(rows)\n currentIndex.value = index\n }\n const handleDownload = (id: string) => {\n const params = {\n url: '/pgapi/program/setting/download_attachment',\n params: {\n attachmentId: id\n }\n }\n blobDownload(params)\n }\n // offerType全选\n const handleAllCheck = (col: string, row: TableCellProps) => {\n checked.value = !checked.value\n if (checked.value) {\n row[col] = tableCellSelectOffer.value.map((item: any) => item.nameEn);\n } else {\n row[col] = []\n }\n autoInsetRow(tableData.value, tableCol.value, row)\n }\n\n\n // 当offerType选择时,有ALL时,又不是全选时,需要去掉\n const hanleChangeOfferType = (col: string, row: TableCellProps) => {\n if (row[col].length > 1 && row[col].indexOf('ALL') > -1) row[col] = row[col].filter((item: string) => item !== 'ALL')\n }\n\n\n const getTableData = () => {\n loadAttachment({params: {bu: buSelected.value}}).then((res: any) => {\n if (res.tableCell.length > 0) {\n res.tableCell.forEach((item: any) => {\n item.bu = {\n value: item.bu?.buId,\n label: item.bu?.buName\n }\n })\n }\n\n getColumns(res)\n autoInsetRow(res.tableCell, res.tableCol)\n tableData.value = res.tableCell\n tableCol.value = res.tableCol\n })\n }\n \n\n // 更新数据的id\n const updateTable = (ids: any) => {\n const data = JSON.parse(rowData.value)\n rowData.value = JSON.stringify(data)\n uploadIds.value = uploadIds.value.concat(ids.uploads)\n history.value = history.value.concat(ids.history)\n }\n const resizeHandler = (): void => {\n try {\n tableHeight.value = document.body.clientHeight;\n } catch (e) {\n console.log(e)\n }\n }\n onMounted(() => {\n window.addEventListener('resize', resizeHandler);\n resizeHandler();\n })\n return {\n tableCol,\n buOptions,\n buOption,\n columns,\n tableData,\n handlerPaginationChange,\n handlerShowSizeChange,\n pagination,\n handleSave,\n buSelected,\n tableCellSelect,\n handleDelete,\n handleFocus,\n visible,\n handleUpload,\n handleDownload,\n handleChange,\n tableCellSelectOffer,\n fetching,\n getTableData,\n rowData,\n checked,\n handleAllCheck,\n hanleChangeOfferType,\n tableHeight,\n currentIndex,\n updateTable,\n importAttachment\n };\n },\n});\n","import { render } from \"./AttachementMasterSetting.vue?vue&type=template&id=0478fc40&scoped=true&ts=true\"\nimport script from \"./AttachementMasterSetting.vue?vue&type=script&lang=ts\"\nexport * from \"./AttachementMasterSetting.vue?vue&type=script&lang=ts\"\n\nimport \"./AttachementMasterSetting.vue?vue&type=style&index=0&id=0478fc40&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-0478fc40\"]])\n\nexport default __exports__","import { ref } from 'vue'\nexport const useAllCheck = () => {\n // 下拉里面的全选,取消全选\n const checked = ref(false)\n const currentChecked = (tableCellSelect: any, val: string[]) => {\n // .清空上一次的全选状态\n checked.value = false\n if (tableCellSelect.length === val.length) checked.value = true\n }\n return {\n checked,\n currentChecked\n }\n}\n"],"sourceRoot":""}