{"version":3,"sources":["webpack:///./src/views/Setting/PDIManagement.vue?a02a","webpack:///./src/views/Setting/PDIManagement.vue","webpack:///./src/views/Setting/PDIManagement.vue?9f2b","webpack:///./src/views/Setting/PDIManagement.vue?002e","webpack:///./src/API/setting.ts"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","style","_hoisted_4","_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","render","_ctx","_cache","$props","$setup","$data","$options","_component_Breadcrumb","_component_a_select_option","_component_a_select","_component_a_button","_component_a_table","_component_a_upload_dragger","_component_a_drawer","dataSource","value","buSelected","$event","allowClear","default","buOptions","item","index","orgid","key","orgnmen","_","parentBu","type","onClick","getTableData","visible","columns","dataSoure","rowKey","pagination","rowClassName","record","title","width","onClose","handleClose","fileList","name","multiple","action","baseURL","data","bu","headers","beforeUpload","handleBeforeUpload","onChange","handleUpload","setup","store","buUnit","modelName","Baumust","buSelectData","buOption","useFetch","res","map","label","message","error","info","console","log","file","status","success","getColumns","tableCol","forEach","params","display","dataIndex","id","push","init","state","user","setting","then","tableCell","Authorization","__exports__","settingSearchPdi","loadAttachment","programSettingGetOfferType","getAttachmentSetting","importProgramAttachment","deleteProgramAttachment","saveAttachment","importAttachment","loadCommentsMaster","getProgramAttachment","commentsSearchOption","storeCommentsMaster","deleteCommentsMaster"],"mappings":"yIAEMA,EAAa,CAAEC,MAAO,UACtBC,EAAa,CAAED,MAAO,mBACtBE,EAA0B,gCAAoB,MAAO,CAAEC,MAAO,CAAC,KAAO,MAAQ,MAAO,GACrFC,EAAa,CAAEJ,MAAO,sCACtBK,EAAa,CAAEL,MAAO,gBACtBM,EAA0B,gCAAoB,OAAQ,CAAEN,MAAO,iBAAmB,MAAO,GACzFO,EAA0B,6BAAiB,UAC3CC,EAAa,CAAER,MAAO,eACtBS,EAAa,CAAET,MAAO,UACtBU,EAA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AAA,MAAA,IAC1B,eAAU,+CAAgDA,IAGxDiB,EAA0B,SAACjB,GACpC,YADoC,IAAAA,MAAA,IAC7B,eAAU,kDAAmDA,IAM3DkB,EAA0B,SAAClB,EAAa7B,GACjD,YADoC,IAAA6B,MAAA,IAC7B,eAAU,6DAA+D7B,EAAM6B,IAI7EmB,EAAiB,SAACnB,GAC3B,YAD2B,IAAAA,MAAA,IACpB,eAAU,yCAA0CA,IAGlDoB,EAAmB,SAACpB,GAC7B,YAD6B,IAAAA,MAAA,IACtB,eAAU,2CAA4CA,IAEpDqB,EAAqB,SAACrB,GAC/B,YAD+B,IAAAA,MAAA,IACxB,eAAU,8CAA+CA,IAGvDsB,EAAuB,SAACtB,GACjC,YADiC,IAAAA,MAAA,IAC1B,eAAS,6CAA8CA,IAIrDuB,EAAuB,SAACvB,GACjC,YADiC,IAAAA,MAAA,IAC1B,eAAU,gDAAiDA,IAEzDwB,EAAsB,SAACxB,GAChC,YADgC,IAAAA,MAAA,IACzB,eAAU,+CAAgDA,IAGxDyB,EAAuB,SAACzB,GACjC,YADiC,IAAAA,MAAA,IAC1B,eAAS,gDAAiDA,K","file":"js/chunk-08f3419f.009bb4b5.js","sourcesContent":["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, vShow as _vShow, withCtx as _withCtx, createBlock as _createBlock, withDirectives as _withDirectives } from \"vue\"\n\nconst _hoisted_1 = { class: \"pdi-mg\" }\nconst _hoisted_2 = { class: \"flex-div bg-fff\" }\nconst _hoisted_3 = /*#__PURE__*/_createElementVNode(\"div\", { style: {\"flex\":\"1\"} }, null, -1)\nconst _hoisted_4 = { class: \"d-f flex-w-auto m-t-10 bg-fff p-10\" }\nconst _hoisted_5 = { class: \"flex-d-c d-f\" }\nconst _hoisted_6 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"label-text-12\" }, \"BU\", -1)\nconst _hoisted_7 = /*#__PURE__*/_createTextVNode(\"Search\")\nconst _hoisted_8 = { class: \"pdi-content\" }\nconst _hoisted_9 = { class: \"bg-fff\" }\nconst _hoisted_10 = /*#__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\" }, \"PDI List\")\n], -1)\nconst _hoisted_11 = { class: \"flex-div\" }\nconst _hoisted_12 = /*#__PURE__*/_createElementVNode(\"span\", { style: {\"flex\":\"1\"} }, null, -1)\nconst _hoisted_13 = /*#__PURE__*/_createTextVNode(\"Upload\")\nconst _hoisted_14 = /*#__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_15 = { class: \"draw-bm\" }\nconst _hoisted_16 = /*#__PURE__*/_createTextVNode(\"Cancel\")\nconst _hoisted_17 = /*#__PURE__*/_createTextVNode(\"Submit\")\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_table = _resolveComponent(\"a-table\")!\n const _component_a_upload_dragger = _resolveComponent(\"a-upload-dragger\")!\n const _component_a_drawer = _resolveComponent(\"a-drawer\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_component_Breadcrumb, {\n class: \"title-bg\",\n dataSource: []\n }),\n _hoisted_3\n ]),\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n _hoisted_6,\n _createVNode(_component_a_select, {\n value: _ctx.buSelected,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.buSelected) = $event)),\n style: {\"width\":\"200px\"},\n allowClear: \"\"\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.buOptions, (item, index) => {\n return _withDirectives((_openBlock(), _createBlock(_component_a_select_option, {\n value: item.orgid,\n key: index\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(item.orgnmen), 1)\n ]),\n _: 2\n }, 1032, [\"value\"])), [\n [_vShow, !item.parentBu]\n ])\n }), 128))\n ]),\n _: 1\n }, 8, [\"value\"])\n ]),\n _createVNode(_component_a_button, {\n class: \"s-w btn-style m-l-16\",\n type: \"primary\",\n onClick: _ctx.getTableData\n }, {\n default: _withCtx(() => [\n _hoisted_7\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _createElementVNode(\"div\", _hoisted_9, [\n _hoisted_10,\n _createElementVNode(\"div\", _hoisted_11, [\n _hoisted_12,\n _createVNode(_component_a_button, {\n type: \"primary\",\n class: \"m-r-20\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.visible = true))\n }, {\n default: _withCtx(() => [\n _hoisted_13\n ]),\n _: 1\n })\n ]),\n _createVNode(_component_a_table, {\n columns: _ctx.columns,\n \"data-source\": _ctx.dataSoure,\n class: \"m-t-10 tab-container default-self-table-text\",\n rowKey: item => item['ID_BM6'],\n pagination: false,\n rowClassName: (record, index) => (index % 2 === 1 ? 'table-striped' : null)\n }, null, 8, [\"columns\", \"data-source\", \"rowKey\", \"rowClassName\"])\n ])\n ]),\n _createVNode(_component_a_drawer, {\n title: \"Upload PDI\",\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[2] || (_cache[2] = ($event: any) => ((_ctx.fileList) = $event)),\n name: \"file\",\n multiple: true,\n action: `${_ctx.baseURL}/pgapi/program/setting/import_pdi`,\n data: {bu: _ctx.buSelected},\n headers: _ctx.headers,\n beforeUpload: _ctx.handleBeforeUpload,\n onChange: _ctx.handleUpload\n }, {\n default: _withCtx(() => [\n _hoisted_14\n ]),\n _: 1\n }, 8, [\"fileList\", \"action\", \"data\", \"headers\", \"beforeUpload\", \"onChange\"]),\n _createElementVNode(\"div\", _hoisted_15, [\n _createVNode(_component_a_button, {\n style: {\"margin-right\":\"8px\"},\n onClick: _ctx.handleClose\n }, {\n default: _withCtx(() => [\n _hoisted_16\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_a_button, {\n type: \"primary\",\n onClick: _ctx.handleClose\n }, {\n default: _withCtx(() => [\n _hoisted_17\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ])\n ]),\n _: 1\n }, 8, [\"visible\", \"onClose\"])\n ]))\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 { settingSearchPdi } from '@/API/setting'\nimport { getSubscribedBu } from \"@/API/approve\"\nimport { BuItem } from \"@/views/Approve/SalesRoleApprove/ProgramHome/types\";\nimport { baseURL } from '@/API'\nimport useFetch from \"@/hooks/useFetch\";\nexport default defineComponent({\n setup () {\n const store = useStore()\n const dataSoure = ref([])\n const buUnit = ref()\n const modelName = ref()\n const Baumust = ref()\n const visible = ref(false)\n const columns = ref([])\n const buSelectData = ref([])\n const fileList = ref([])\n const buOption = ref([])\n const buSelected = ref('')\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 const handleBeforeUpload = () => {\n if (!buSelected.value) {\n message.error('Please Select BU')\n return false\n }\n }\n\n const handleUpload = (info: FileInfo) => {\n \n console.log(11111);\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 \n } else if (info.file.status === 'error') {\n message.error(`${info.file.name} file upload failed.`);\n }\n \n }\n \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 \n const init = () => {\n buUnit.value = store.state.user.bu.orgid\n const params = {\n bu: buSelected.value\n }\n settingSearchPdi({params}).then((res: any) => {\n dataSoure.value = res.tableCell\n getColumns(res)\n })\n }\n \n // 搜索\n const getTableData = () => {\n init()\n }\n \n const headers = {\n Authorization: store.state.Authorization\n }\n // 关闭上传弹窗,需要刷新列表\n const handleClose = () => {\n visible.value = false\n fileList.value = []\n init()\n }\n onMounted(() => {\n // init()\n })\n return {\n buUnit,\n modelName,\n Baumust,\n buSelectData,\n dataSoure,\n columns,\n visible,\n fileList,\n handleClose,\n handleUpload,\n headers,\n baseURL,\n buOptions,\n buSelected,\n getTableData,\n handleBeforeUpload,\n }\n }\n})\n","import { render } from \"./PDIManagement.vue?vue&type=template&id=31591899&ts=true\"\nimport script from \"./PDIManagement.vue?vue&type=script&lang=ts\"\nexport * from \"./PDIManagement.vue?vue&type=script&lang=ts\"\n\nimport \"./PDIManagement.vue?vue&type=style&index=0&id=31591899&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!./PDIManagement.vue?vue&type=style&index=0&id=31591899&lang=scss\"","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"],"sourceRoot":""}