{"version":3,"sources":["webpack:///./src/views/Checking/exemption/setup.vue?f128","webpack:///./src/assets/images/rv/upload.svg","webpack:///./src/API/claimDelay/common.ts","webpack:///./src/API/checking/exemptionSetup.ts","webpack:///./node_modules/@ant-design/icons-svg/es/asn/UploadOutlined.js","webpack:///./node_modules/@ant-design/icons-vue/es/icons/UploadOutlined.js","webpack:///./src/views/Checking/exemption/setup.vue?1bc2","webpack:///./src/views/Checking/components/UploadDrawer.vue?3882","webpack:///./src/views/Checking/components/UploadDrawer.vue","webpack:///./src/views/Checking/components/UploadDrawer.vue?f310","webpack:///./src/views/Checking/exemption/setup.vue","webpack:///./src/views/Checking/exemption/setup.vue?cdfa","webpack:///./src/assets/images/add-icon.svg","webpack:///./src/API/checking/checkingManagement.ts","webpack:///./src/views/Checking/components/UploadDrawer.vue?7d6a","webpack:///./src/views/Checking/components/UploadDrawer.vue?57e5"],"names":["module","exports","getRegionApi","param","bu","getOfferType","getCustomerType","getDealerGroup","findByGroupCode","params","batchSave","getAllDealerInfos","_objectSpread","target","i","arguments","length","source","Object","ownKeys","keys","getOwnPropertySymbols","concat","filter","sym","getOwnPropertyDescriptor","enumerable","forEach","key","_defineProperty","obj","value","defineProperty","configurable","writable","props","context","p","attrs","AntdIcon","displayName","inheritAttrs","_withScopeId","n","_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","src","alt","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","render","_ctx","_cache","$props","$setup","$data","$options","_component_Breadcrumb","_component_a_input","_component_a_space","_component_a_select_option","_component_a_select","_component_a_spin","_component_a_range_picker","_component_a_table","_component_a_divider","_component_a_date_picker","_component_UploadOutlined","_component_a_button","_component_UploadDrawer","dataSource","name","direction","size","style","default","exemptionName","$event","maxlength","placeholder","_","columns","data","rowClassName","record","index","pagination","scroll","x","buTitle","periodTitle","reasonTitle","dealer","ref","eligibleDealerKey","onChange","option","selectDealer","cleanDealerValue","dealerOptions","item","itemCode","currentItem","title","itemNameEn","undefined","fetching","eligibleDealerValue","onSearch","filterDealerInfo","selectDealerCode","dealerInfoList","dealerCode","fn","selectDealerGroup","dealerGroupList","groupId","dealerGroupEn","selectDealerRegion","regionMapList","id","subRegionEn","program","eligibleProgramKey","onClick","cleanProgramValue","selectProgram","programOptions","eligibleProgramValue","searchProgramCode","disabled","programCodeList","pcl","selectProgramCategory","programTypeList","nameEn","selectCustomerType","customerTypeList","selectBu","getRegionByBu","buList","vinCount","amountWithoutVat","period","format","exemptionReason","reasonList","re","itemNameCn","operation","deleteRow","addData","args","allowClear","requestDate","disabledDate","current","endDate","type","openDrawer","icon","goBack","submit","uploadDrawerVisible","onCloseUploadDrawer","closeDrawer","onShareFileInfo","shareFileInfo","_component_a_upload_dragger","_component_a_progress","_component_CheckCircleOutlined","_component_a_drawer","closable","visible","width","onClose","close","listType","showUploadList","multiple","customRequest","uploadRequest","beforeUpload","isBeforeUpload","curUploadFile","percent","curPercent","strokeColor","completeTips","uploadFileSize","isClickAbled","uploadFile","showUploadHandle","cancel","confirm","components","CheckCircleOutlined","emits","Boolean","required","setup","emit","isShowUploadBtn","isImport","uploadComplete","formData","FormData","emptyVisible","emptyTipsText","file","FILE_TYPE","isSelectedType","includes","message","error","isLt5M","has","delete","append","toFixed","Math","floor","fileInfo","documentId","fileName","filePath","fileType","url","serviceName","method","then","res","docName","docPath","docType","catch","err","console","log","window","sessionStorage","removeItem","__exports__","UploadOutlined","UploadDrawer","slots","customRender","getDealerOptions","groupCode","r","eligibleDealerId","eligibleDealerNameCn","nameCn","eligibleDealerNameEn","dealerGroupCn","subRegionCn","getProgramOptions","eligibleProgramId","eligibleProgramNameCn","eligibleProgramNameEn","buId","getReasonList","genDealerGroup","timeout","genRegionList","val","clearTimeout","code","getData","setTimeout","genProgramTypeList","offerTypeList","incentiveCategory","reduce","totalList","arr","offerType","genCustomerTypeList","allDealerInfos","timer","push","splice","router","dataFlag","exemptionPeriodStart","exemptionPeriodEnd","success","indexOf","ele","parentId","map","getAGManagementData","getTAManagementData","getTDTAManagementData","searchVehicle","getBrand","getProgramCodeList","findProgramCodeList","getProgramTANameList","getUser"],"mappings":"kHAAA,W,uBCAAA,EAAOC,QAAU,IAA0B,2B,6DCA3C,wJAEaC,EAAe,SAACC,GACzB,OAAO,eAAU,mCAAmCA,EAAMC,KAGjDC,EAAe,WACxB,OAAO,eAAS,0CAGPC,EAAkB,WAC3B,OAAO,eAAS,6CAGPC,EAAiB,WAC1B,OAAO,eAAS,yC,oCCfpB,sHAUaC,EAAkB,SAACC,GAC5B,OAAO,eAAS,4CAA6C,CAAEA,OAAM,KAI5DC,EAAY,SAACD,GACtB,OAAO,eAAa,gCAAiCA,IAI5CE,EAAoB,WAC7B,OAAO,eAAS,wC,oDCpBhB,EAAiB,CAAE,KAAQ,CAAE,IAAO,MAAO,MAAS,CAAE,QAAW,gBAAiB,UAAa,SAAW,SAAY,CAAC,CAAE,IAAO,OAAQ,MAAS,CAAE,EAAK,gTAAoT,KAAQ,SAAU,MAAS,YAC5d,I,YCAf,SAASC,EAAcC,GAAU,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAAE,IAAIG,EAAyB,MAAhBF,UAAUD,GAAaI,OAAOH,UAAUD,IAAM,GAAQK,EAAUD,OAAOE,KAAKH,GAAqD,oBAAjCC,OAAOG,wBAAwCF,EAAUA,EAAQG,OAAOJ,OAAOG,sBAAsBJ,GAAQM,QAAO,SAAUC,GAAO,OAAON,OAAOO,yBAAyBR,EAAQO,GAAKE,gBAAmBP,EAAQQ,SAAQ,SAAUC,GAAOC,EAAgBhB,EAAQe,EAAKX,EAAOW,OAAa,OAAOf,EAEhe,SAASgB,EAAgBC,EAAKF,EAAKG,GAAiK,OAApJH,KAAOE,EAAOZ,OAAOc,eAAeF,EAAKF,EAAK,CAAEG,MAAOA,EA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BAAiB,EACjBV,cAAa,EACboB,cAAa,EACbxB,gBAAe,EACfgB,gBAAe,EACfG,gBAAe,EACfG,iBAAgB,EAChBvC,iBAAgB,EAChB2B,kBAAiB,EACjBhB,iBAAgB,EAChBE,eAAc,EACdL,SAAQ,EACRiD,aAAY,M,UCvbxB,MAAM,GAA2B,KAAgB,GAAQ,CAAC,CAAC,SAASzG,GAAQ,CAAC,YAAY,qBAE1E,iB,uBCTflE,EAAOC,QAAU,IAA0B,6B,oFCA3C,kUAWakT,EAAsB,SAC/B1S,GAEA,OAAO,eAAU,8CAA+CA,IAIvD2S,EAAsB,SAC/B3S,GAEA,OAAO,eAAU,kDAAmDA,IAI3D4S,EAAwB,SACjC5S,GAEA,OAAO,eAAU,wBAAyBA,IAIjC6S,EAAgB,SAAC7S,GAC1B,OAAO,eAAU,gCAAiCA,IAIzC8S,EAAW,SAAC9S,GACrB,OAAO,eAAS,6BAA8BA,IAIrC+S,EAAqB,SAAC/S,GAC/B,OAAO,eAAS,0CAA2C,CAAEA,OAAM,KAI1DgT,EAAsB,SAACrC,EAAcO,GAC9C,OAAO,eAAS,2CAA4C,CAC1DlR,OAAQ,CACN2Q,KAAI,EACJO,KAAI,MAMC+B,EAAuB,SAACjT,GACjC,OAAO,eAAS,4CAA6C,CAAEA,OAAM,KAI5DkT,EAAU,WACnB,OAAO,eAAS,8B,kCC/DpB,W,kCCAA","file":"js/chunk-7a6007fe.b4f5bd1f.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!./setup.vue?vue&type=style&index=0&id=571e1a9a&lang=scss&scoped=true\"","module.exports = __webpack_public_path__ + \"img/upload.e4734716.svg\";","import { fetchGet, fetchPost } from '../index';\n\nexport const getRegionApi = (param: any): Promise => {\n return fetchPost(`/claimapi/common/regionQuery?bu=${param.bu}`);\n};\n\nexport const getOfferType = (): Promise => {\n return fetchGet('/pgapi/program/setting/get_offer_type');\n};\n\nexport const getCustomerType = (): Promise => {\n return fetchGet('/pgapi/program/setting/get_customer_type');\n};\n\nexport const getDealerGroup = (): Promise => {\n return fetchGet('/dapi/noAuth/dealer/dealerGroupList');\n};\n","/*\n * @Author: zhengda.lv\n * @Date: 2021-10-30 10:15:26\n * @LastEditTime: 2021-11-26 16:45:46\n * @LastEditors: zhengda.lv\n * @Description:\n */\nimport { fetchGet, fetchPost, fetchPostPic } from '../index';\n\n//? 按groupCode查询数据字典\nexport const findByGroupCode = (params: any): Promise => {\n return fetchGet(`/claimapi/claimDictionary/findByGroupCode`, { params });\n};\n\n//[OASIS-9755]批量新增\nexport const batchSave = (params: any): Promise => {\n return fetchPostPic(`/claimapi/exemption/batchSave`, params);\n};\n\n// 获取所有已激活的经销商信息\nexport const getAllDealerInfos = (): Promise => {\n return fetchGet(`/dapi/noAuth/dealer/allDealerInfos`);\n};\n","// This icon file is generated automatically.\nvar UploadOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z\" } }] }, \"name\": \"upload\", \"theme\": \"outlined\" };\nexport default UploadOutlined;\n","import * as _vue from \"vue\";\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\nimport UploadOutlinedSvg from \"@ant-design/icons-svg/es/asn/UploadOutlined\";\nimport AntdIcon from '../components/AntdIcon';\n\nvar UploadOutlined = function UploadOutlined(props, context) {\n var p = _objectSpread({}, props, context.attrs);\n\n return _vue.createVNode(AntdIcon, _vue.mergeProps(p, {\n \"icon\": UploadOutlinedSvg\n }), null);\n};\n\nUploadOutlined.displayName = 'UploadOutlined';\nUploadOutlined.inheritAttrs = false;\nexport default UploadOutlined;","import { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, withCtx as _withCtx, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createBlock as _createBlock, createSlots as _createSlots, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nimport _imports_0 from '@/assets/images/add-icon.svg'\n\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-571e1a9a\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"name__wrapper\" }\nconst _hoisted_2 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"warning\" }, \"Exemption Name\", -1))\nconst _hoisted_3 = { class: \"table__wrapper\" }\nconst _hoisted_4 = { class: \"table\" }\nconst _hoisted_5 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"warning\" }, \"Business Unit\", -1))\nconst _hoisted_6 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"warning\" }, \"Exemption Period\", -1))\nconst _hoisted_7 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"warning\" }, \"Exemption Reason\", -1))\nconst _hoisted_8 = [\"onClick\"]\nconst _hoisted_9 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"img\", {\n src: _imports_0,\n alt: \"\"\n}, null, -1))\nconst _hoisted_10 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"blue-word\" }, \"Add\", -1))\nconst _hoisted_11 = [\n _hoisted_9,\n _hoisted_10\n]\nconst _hoisted_12 = { class: \"table__date\" }\nconst _hoisted_13 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"warning\" }, \"Request Date\", -1))\nconst _hoisted_14 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"warning\" }, \"End Date\", -1))\nconst _hoisted_15 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"label\", { class: \"warning\" }, \"Document\", -1))\nconst _hoisted_16 = /*#__PURE__*/_createTextVNode(\" Upload Exemption File\")\nconst _hoisted_17 = { class: \"footer__wrapper\" }\nconst _hoisted_18 = /*#__PURE__*/_createTextVNode(\"Cancel\")\nconst _hoisted_19 = /*#__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_input = _resolveComponent(\"a-input\")!\n const _component_a_space = _resolveComponent(\"a-space\")!\n const _component_a_select_option = _resolveComponent(\"a-select-option\")!\n const _component_a_select = _resolveComponent(\"a-select\")!\n const _component_a_spin = _resolveComponent(\"a-spin\")!\n const _component_a_range_picker = _resolveComponent(\"a-range-picker\")!\n const _component_a_table = _resolveComponent(\"a-table\")!\n const _component_a_divider = _resolveComponent(\"a-divider\")!\n const _component_a_date_picker = _resolveComponent(\"a-date-picker\")!\n const _component_UploadOutlined = _resolveComponent(\"UploadOutlined\")!\n const _component_a_button = _resolveComponent(\"a-button\")!\n const _component_UploadDrawer = _resolveComponent(\"UploadDrawer\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createVNode(_component_Breadcrumb, { dataSource: [{ name: 'Exemption Setup' }] }),\n _createElementVNode(\"div\", _hoisted_1, [\n _createVNode(_component_a_space, {\n direction: \"vertical\",\n size: 6,\n style: {\"margin-right\":\"15px\",\"width\":\"220px\"}\n }, {\n default: _withCtx(() => [\n _hoisted_2,\n _createVNode(_component_a_input, {\n value: _ctx.exemptionName,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.exemptionName) = $event)),\n maxlength: 128,\n placeholder: \"Input...\"\n }, null, 8, [\"value\"])\n ]),\n _: 1\n })\n ]),\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createVNode(_component_a_table, {\n class: \"ant-table-striped\",\n size: \"middle\",\n columns: _ctx.columns,\n \"data-source\": _ctx.data,\n rowClassName: \n (record, index) =>\n index % 2 === 1 ? 'table-striped' : null\n ,\n pagination: false,\n scroll: {\n x: 1400,\n }\n }, {\n buTitle: _withCtx(() => [\n _hoisted_5\n ]),\n periodTitle: _withCtx(() => [\n _hoisted_6\n ]),\n reasonTitle: _withCtx(() => [\n _hoisted_7\n ]),\n dealer: _withCtx(({record}) => [\n _createVNode(_component_a_space, null, {\n default: _withCtx(() => [\n _createVNode(_component_a_select, {\n ref: \"select\",\n value: record.eligibleDealerKey,\n \"onUpdate:value\": ($event: any) => ((record.eligibleDealerKey) = $event),\n style: {\"width\":\"160px\"},\n placeholder: \"Please Select\",\n onChange: \n (value, option) => {\n _ctx.selectDealer(value, option, record);\n _ctx.cleanDealerValue(record);\n }\n \n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.dealerOptions, (item) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n value: item.itemCode,\n key: item.itemCode,\n currentItem: item,\n title: item.itemNameEn\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(item.itemNameEn), 1)\n ]),\n _: 2\n }, 1032, [\"value\", \"currentItem\", \"title\"]))\n }), 128))\n ]),\n _: 2\n }, 1032, [\"value\", \"onUpdate:value\", \"onChange\"]),\n (\n record.eligibleDealerKey === undefined ||\n record.eligibleDealerKey === 1\n )\n ? (_openBlock(), _createBlock(_component_a_select, {\n key: 0,\n ref: \"select\",\n \"show-search\": \"\",\n \"filter-option\": false,\n \"not-found-content\": _ctx.fetching ? undefined : null,\n value: record.eligibleDealerValue,\n \"onUpdate:value\": ($event: any) => ((record.eligibleDealerValue) = $event),\n style: {\"width\":\"240px\"},\n placeholder: \"Please Select\",\n onSearch: _ctx.filterDealerInfo,\n onChange: \n (value, option) =>\n _ctx.selectDealerCode(value, option, record)\n \n }, _createSlots({\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.dealerInfoList, (item) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n value: item.dealerCode,\n key: item.dealerCode,\n currentItem: item,\n title: item.dealerCode\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(item.dealerCode), 1)\n ]),\n _: 2\n }, 1032, [\"value\", \"currentItem\", \"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, [\"not-found-content\", \"value\", \"onUpdate:value\", \"onSearch\", \"onChange\"]))\n : _createCommentVNode(\"\", true),\n (record.eligibleDealerKey === 2)\n ? (_openBlock(), _createBlock(_component_a_select, {\n key: 1,\n ref: \"select\",\n value: record.eligibleDealerValue,\n \"onUpdate:value\": ($event: any) => ((record.eligibleDealerValue) = $event),\n style: {\"width\":\"240px\"},\n placeholder: \"Please Select\",\n onChange: \n (value, option) =>\n _ctx.selectDealerGroup(value, option, record)\n \n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.dealerGroupList, (item) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n value: item.groupId,\n key: item.groupId,\n currentItem: item,\n title: item.dealerGroupEn\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(item.dealerGroupEn), 1)\n ]),\n _: 2\n }, 1032, [\"value\", \"currentItem\", \"title\"]))\n }), 128))\n ]),\n _: 2\n }, 1032, [\"value\", \"onUpdate:value\", \"onChange\"]))\n : _createCommentVNode(\"\", true),\n (record.eligibleDealerKey === 3)\n ? (_openBlock(), _createBlock(_component_a_select, {\n key: 2,\n ref: \"select\",\n value: record.eligibleDealerValue,\n \"onUpdate:value\": ($event: any) => ((record.eligibleDealerValue) = $event),\n style: {\"width\":\"240px\"},\n placeholder: \"Please Select\",\n onChange: \n (value, option) =>\n _ctx.selectDealerRegion(value, option, record)\n \n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.regionMapList[record.bu], (item) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n value: item.id,\n key: item.id,\n currentItem: item,\n title: item.subRegionEn\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(item.subRegionEn), 1)\n ]),\n _: 2\n }, 1032, [\"value\", \"currentItem\", \"title\"]))\n }), 128))\n ]),\n _: 2\n }, 1032, [\"value\", \"onUpdate:value\", \"onChange\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 2\n }, 1024)\n ]),\n program: _withCtx(({record}) => [\n _createVNode(_component_a_space, null, {\n default: _withCtx(() => [\n _createVNode(_component_a_select, {\n ref: \"select\",\n value: record.eligibleProgramKey,\n \"onUpdate:value\": ($event: any) => ((record.eligibleProgramKey) = $event),\n style: {\"width\":\"160px\"},\n placeholder: \"Please Select\",\n onClick: ($event: any) => (_ctx.cleanProgramValue(record)),\n onChange: \n (value, option) => {\n _ctx.selectProgram(value, option, record);\n _ctx.cleanProgramValue(record);\n }\n \n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.programOptions, (item) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n value: item.itemCode,\n key: item.itemCode,\n currentItem: item,\n title: item.itemNameEn\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(item.itemNameEn), 1)\n ]),\n _: 2\n }, 1032, [\"value\", \"currentItem\", \"title\"]))\n }), 128))\n ]),\n _: 2\n }, 1032, [\"value\", \"onUpdate:value\", \"onClick\", \"onChange\"]),\n (\n record.eligibleProgramKey === undefined ||\n record.eligibleProgramKey === 1\n )\n ? (_openBlock(), _createBlock(_component_a_select, {\n key: 0,\n \"show-search\": \"\",\n value: record.eligibleProgramValue,\n \"onUpdate:value\": ($event: any) => ((record.eligibleProgramValue) = $event),\n placeholder: \"Input...\",\n \"default-active-first-option\": false,\n \"show-arrow\": false,\n \"filter-option\": false,\n \"not-found-content\": null,\n onSearch: _ctx.searchProgramCode,\n style: {\"width\":\"240px\"},\n disabled: record.eligibleProgramKey === undefined\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.programCodeList, (pcl) => {\n return (_openBlock(), _createBlock(_component_a_select_option, { key: pcl }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(pcl), 1)\n ]),\n _: 2\n }, 1024))\n }), 128))\n ]),\n _: 2\n }, 1032, [\"value\", \"onUpdate:value\", \"onSearch\", \"disabled\"]))\n : _createCommentVNode(\"\", true),\n (record.eligibleProgramKey === 2)\n ? (_openBlock(), _createBlock(_component_a_select, {\n key: 1,\n ref: \"select\",\n value: record.eligibleProgramValue,\n \"onUpdate:value\": ($event: any) => ((record.eligibleProgramValue) = $event),\n style: {\"width\":\"240px\"},\n placeholder: \"Please Select\",\n onChange: \n (value, option) =>\n _ctx.selectProgramCategory(value, option, record)\n \n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.programTypeList, (item) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n value: item.id,\n key: item.id,\n currentItem: item,\n title: item.nameEn\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(item.nameEn), 1)\n ]),\n _: 2\n }, 1032, [\"value\", \"currentItem\", \"title\"]))\n }), 128))\n ]),\n _: 2\n }, 1032, [\"value\", \"onUpdate:value\", \"onChange\"]))\n : _createCommentVNode(\"\", true),\n (record.eligibleProgramKey === 3)\n ? (_openBlock(), _createBlock(_component_a_select, {\n key: 2,\n ref: \"select\",\n value: record.eligibleProgramValue,\n \"onUpdate:value\": ($event: any) => ((record.eligibleProgramValue) = $event),\n style: {\"width\":\"240px\"},\n placeholder: \"Please Select\",\n onChange: \n (value, option) =>\n _ctx.selectCustomerType(value, option, record)\n \n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.customerTypeList, (item) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n value: item.id,\n key: item.id,\n currentItem: item,\n title: item.name\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(item.name), 1)\n ]),\n _: 2\n }, 1032, [\"value\", \"currentItem\", \"title\"]))\n }), 128))\n ]),\n _: 2\n }, 1032, [\"value\", \"onUpdate:value\", \"onChange\"]))\n : _createCommentVNode(\"\", true)\n ]),\n _: 2\n }, 1024)\n ]),\n bu: _withCtx(({record}) => [\n _createVNode(_component_a_select, {\n ref: \"select\",\n value: record.bu,\n \"onUpdate:value\": ($event: any) => ((record.bu) = $event),\n style: {\"width\":\"130px\"},\n placeholder: \"Please Select\",\n onChange: \n (value, option) => {\n _ctx.selectBu(value, option, record);\n _ctx.getRegionByBu(record);\n }\n \n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.buList, (bu) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n value: bu.name,\n key: bu.id,\n currentItem: bu,\n title: bu.name\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(bu.name), 1)\n ]),\n _: 2\n }, 1032, [\"value\", \"currentItem\", \"title\"]))\n }), 128))\n ]),\n _: 2\n }, 1032, [\"value\", \"onUpdate:value\", \"onChange\"])\n ]),\n vinCount: _withCtx(({record}) => [\n _createVNode(_component_a_input, {\n value: record.vinCount,\n \"onUpdate:value\": ($event: any) => ((record.vinCount) = $event),\n maxlength: 9,\n placeholder: \"Input...\",\n style: {\"width\":\"130px\"}\n }, null, 8, [\"value\", \"onUpdate:value\"])\n ]),\n amountWithoutVat: _withCtx(({record}) => [\n _createVNode(_component_a_input, {\n value: record.amountWithoutVat,\n \"onUpdate:value\": ($event: any) => ((record.amountWithoutVat) = $event),\n maxlength: 64,\n placeholder: \"Input...\",\n style: {\"width\":\"130px\"}\n }, null, 8, [\"value\", \"onUpdate:value\"])\n ]),\n period: _withCtx(({record}) => [\n _createVNode(_component_a_range_picker, {\n value: record.period,\n \"onUpdate:value\": ($event: any) => ((record.period) = $event),\n format: \"YYYY-MM-DD\",\n placeholder: ['Start Time', 'End Time'],\n style: {\"width\":\"190px\"}\n }, null, 8, [\"value\", \"onUpdate:value\"])\n ]),\n exemptionReason: _withCtx(({record}) => [\n _createVNode(_component_a_select, {\n ref: \"select\",\n value: record.exemptionReason,\n \"onUpdate:value\": ($event: any) => ((record.exemptionReason) = $event),\n style: {\"width\":\"130px\"},\n placeholder: \"Please Select\"\n }, {\n default: _withCtx(() => [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.reasonList, (re) => {\n return (_openBlock(), _createBlock(_component_a_select_option, {\n value: re.itemCode,\n key: re.itemCode,\n title: re.itemNameCn\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(re.itemNameCn), 1)\n ]),\n _: 2\n }, 1032, [\"value\", \"title\"]))\n }), 128))\n ]),\n _: 2\n }, 1032, [\"value\", \"onUpdate:value\"])\n ]),\n operation: _withCtx(({record, index}) => [\n _createElementVNode(\"span\", {\n class: \"blue-word\",\n onClick: ($event: any) => (_ctx.deleteRow(record, index))\n }, \"Delete\", 8, _hoisted_8)\n ]),\n _: 1\n }, 8, [\"columns\", \"data-source\", \"rowClassName\"])\n ]),\n _createElementVNode(\"div\", null, [\n _createElementVNode(\"div\", {\n class: \"add\",\n onClick: _cache[1] || (_cache[1] = \n//@ts-ignore\n(...args) => (_ctx.addData && _ctx.addData(...args)))\n }, _hoisted_11)\n ]),\n _createVNode(_component_a_divider),\n _createElementVNode(\"div\", _hoisted_12, [\n _createVNode(_component_a_space, {\n direction: \"vertical\",\n size: 6,\n style: {\"margin-right\":\"15px\",\"width\":\"220px\"}\n }, {\n default: _withCtx(() => [\n _hoisted_13,\n _createVNode(_component_a_date_picker, {\n allowClear: false,\n value: _ctx.requestDate,\n \"onUpdate:value\": _cache[2] || (_cache[2] = ($event: any) => ((_ctx.requestDate) = $event)),\n placeholder: \"Please select...\",\n disabledDate: \n (current) => _ctx.disabledDate(current, 'request')\n \n }, null, 8, [\"value\", \"disabledDate\"])\n ]),\n _: 1\n }),\n _createVNode(_component_a_space, {\n direction: \"vertical\",\n size: 6,\n style: {\"margin-right\":\"15px\",\"width\":\"220px\"}\n }, {\n default: _withCtx(() => [\n _hoisted_14,\n _createVNode(_component_a_date_picker, {\n allowClear: false,\n value: _ctx.endDate,\n \"onUpdate:value\": _cache[3] || (_cache[3] = ($event: any) => ((_ctx.endDate) = $event)),\n placeholder: \"Please select...\",\n disabledDate: (current) => _ctx.disabledDate(current, 'end')\n }, null, 8, [\"value\", \"disabledDate\"])\n ]),\n _: 1\n }),\n _createVNode(_component_a_space, {\n direction: \"vertical\",\n size: 6,\n style: {\"margin-right\":\"15px\",\"width\":\"220px\"}\n }, {\n default: _withCtx(() => [\n _hoisted_15,\n _createVNode(_component_a_button, {\n type: \"primary\",\n onClick: _ctx.openDrawer\n }, {\n icon: _withCtx(() => [\n _createVNode(_component_UploadOutlined)\n ]),\n default: _withCtx(() => [\n _hoisted_16\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n _: 1\n })\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_17, [\n _createVNode(_component_a_space, null, {\n default: _withCtx(() => [\n _createVNode(_component_a_button, { onClick: _ctx.goBack }, {\n default: _withCtx(() => [\n _hoisted_18\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_a_button, {\n type: \"primary\",\n onClick: _ctx.submit\n }, {\n default: _withCtx(() => [\n _hoisted_19\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n _: 1\n })\n ]),\n _createVNode(_component_UploadDrawer, {\n uploadDrawerVisible: _ctx.uploadDrawerVisible,\n onCloseUploadDrawer: _ctx.closeDrawer,\n onShareFileInfo: _ctx.shareFileInfo\n }, null, 8, [\"uploadDrawerVisible\", \"onCloseUploadDrawer\", \"onShareFileInfo\"])\n ], 64))\n}","import { createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\nimport _imports_0 from '@/assets/images/rv/upload.svg'\n\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-1ac44f5c\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"div\", null, [\n /*#__PURE__*/_createElementVNode(\"span\", null, \"Upload Exemption File\")\n], -1))\nconst _hoisted_2 = { class: \"border-style\" }\nconst _hoisted_3 = {\n key: 0,\n class: \"before-process\"\n}\nconst _hoisted_4 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"p\", { class: \"ant-upload-drag-icon\" }, [\n /*#__PURE__*/_createElementVNode(\"img\", {\n src: _imports_0,\n class: \"uploadIcon\"\n })\n], -1))\nconst _hoisted_5 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"p\", { class: \"ant-upload-text\" }, [\n /*#__PURE__*/_createTextVNode(\" Drag and drop to upload or \"),\n /*#__PURE__*/_createElementVNode(\"span\", { class: \"blueFont\" }, \"browse for files\")\n], -1))\nconst _hoisted_6 = {\n key: 1,\n class: \"process-con\"\n}\nconst _hoisted_7 = /*#__PURE__*/_createTextVNode(\" Selected Files: \")\nconst _hoisted_8 = { class: \"margin-style\" }\nconst _hoisted_9 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"process-title-style\" }, \"Total Process:\", -1))\nconst _hoisted_10 = { class: \"process-style\" }\nconst _hoisted_11 = { key: 0 }\nconst _hoisted_12 = { key: 1 }\nconst _hoisted_13 = /*#__PURE__*/_createTextVNode(\" Complete\")\nconst _hoisted_14 = { class: \"size-style\" }\nconst _hoisted_15 = /*#__PURE__*/_createTextVNode(\"Upload\")\nconst _hoisted_16 = /*#__PURE__*/_createTextVNode(\"Browse\")\nconst _hoisted_17 = { class: \"footer\" }\nconst _hoisted_18 = /*#__PURE__*/_createTextVNode(\"Cancel\")\nconst _hoisted_19 = /*#__PURE__*/_createTextVNode(\"Confirm\")\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_progress = _resolveComponent(\"a-progress\")!\n const _component_CheckCircleOutlined = _resolveComponent(\"CheckCircleOutlined\")!\n const _component_a_button = _resolveComponent(\"a-button\")!\n const _component_a_space = _resolveComponent(\"a-space\")!\n const _component_a_drawer = _resolveComponent(\"a-drawer\")!\n\n return (_openBlock(), _createBlock(_component_a_drawer, {\n closable: true,\n visible: _ctx.uploadDrawerVisible,\n width: \"35.14%\",\n class: \"upload-drawer claim-drawer\",\n onClose: _ctx.close\n }, {\n title: _withCtx(() => [\n _hoisted_1\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_2, [\n (_ctx.isBeforeUpload)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [\n _createVNode(_component_a_upload_dragger, {\n name: \"file\",\n listType: \"picture-card\",\n showUploadList: false,\n multiple: false,\n customRequest: _ctx.uploadRequest,\n \"before-upload\": _ctx.beforeUpload\n }, {\n default: _withCtx(() => [\n _hoisted_4,\n _hoisted_5\n ]),\n _: 1\n }, 8, [\"customRequest\", \"before-upload\"])\n ]))\n : _createCommentVNode(\"\", true),\n (!_ctx.isBeforeUpload)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_6, [\n _createElementVNode(\"p\", null, [\n _hoisted_7,\n _createElementVNode(\"strong\", null, _toDisplayString(_ctx.curUploadFile.name), 1)\n ]),\n _createElementVNode(\"p\", _hoisted_8, [\n _hoisted_9,\n _createElementVNode(\"span\", _hoisted_10, [\n _createVNode(_component_a_progress, {\n percent: _ctx.curPercent,\n strokeColor: \"#108ee9\"\n }, null, 8, [\"percent\"]),\n (!_ctx.completeTips)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_11, _toDisplayString(_ctx.curPercent) + \"% done\", 1))\n : _createCommentVNode(\"\", true),\n (_ctx.completeTips)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_12, [\n _createVNode(_component_CheckCircleOutlined, { style: {\"color\":\"#108ee9\"} }),\n _hoisted_13\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"span\", _hoisted_14, _toDisplayString(_ctx.uploadFileSize), 1)\n ])\n ]),\n (_ctx.isShowUploadBtn)\n ? (_openBlock(), _createBlock(_component_a_button, {\n key: 0,\n class: \"right-style\",\n type: \"primary\",\n disabled: !_ctx.isClickAbled,\n onClick: _ctx.uploadFile\n }, {\n default: _withCtx(() => [\n _hoisted_15\n ]),\n _: 1\n }, 8, [\"disabled\", \"onClick\"]))\n : (_openBlock(), _createBlock(_component_a_button, {\n key: 1,\n class: \"right-style\",\n type: \"primary\",\n onClick: _ctx.showUploadHandle\n }, {\n default: _withCtx(() => [\n _hoisted_16\n ]),\n _: 1\n }, 8, [\"onClick\"]))\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_17, [\n _createVNode(_component_a_space, null, {\n default: _withCtx(() => [\n _createVNode(_component_a_button, { onClick: _ctx.cancel }, {\n default: _withCtx(() => [\n _hoisted_18\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_a_button, {\n type: \"primary\",\n onClick: _ctx.confirm\n }, {\n default: _withCtx(() => [\n _hoisted_19\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n _: 1\n })\n ])\n ]),\n _: 1\n }, 8, [\"visible\", \"onClose\"]))\n}","\nimport axios from 'axios';\nimport { defineComponent, ref, computed, watch } from 'vue';\nimport { CheckCircleOutlined } from '@ant-design/icons-vue';\nimport { FileItem } from '@/API/types';\nimport { message } from 'ant-design-vue';\n\ninterface Doc {\n docName: string | null;\n docPath: string | null;\n docType: string | null;\n fileSize: number | null;\n id: string | null;\n is_watermark: string | null;\n serviceName: string | null;\n uploadTime: string | null;\n uploadUser: string | null;\n visibility: string | null;\n}\n\nexport default defineComponent({\n components: {\n CheckCircleOutlined,\n },\n emits: ['close-upload-drawer', 'share-file-info'],\n props: {\n uploadDrawerVisible: {\n type: Boolean,\n required: true,\n default: false,\n },\n },\n setup(props, { emit }) {\n const isBeforeUpload = ref(true);\n // 进度条\n const isShowUploadBtn = ref(true);\n const curUploadFile = ref({});\n const curPercent = ref(0);\n const uploadFileSize = ref('');\n const completeTips = ref(false);\n // 上传功能出错后下载模态窗口\n // const loading = ref(false);\n // const downloadModalVisible = ref(false);\n // const downloadTipsText = ref('');\n // const roundVal = ref();\n // 导入控制按钮\n const isImport = ref(false);\n // 文件上传\n const isClickAbled = ref(true);\n const uploadComplete = ref(true);\n const formData = new FormData();\n const emptyVisible = ref(false);\n const emptyTipsText = ref('');\n\n // 设置抽屉显示状态\n const close = () => {\n emit('close-upload-drawer');\n };\n\n // 上传前\n const beforeUpload = (file: FileItem) => {\n const FILE_TYPE = ['application/pdf', 'image/jpeg'];\n const isSelectedType = FILE_TYPE.includes(file.type as string);\n if (!isSelectedType) {\n message.error('请上传PDF或JPG格式文件!');\n }\n const isLt5M = file.size / 1024 / 1024 < 5;\n if (!isLt5M) {\n message.error('请上传不超过5M的文件!');\n }\n return isSelectedType && isLt5M;\n };\n\n const uploadRequest = (source: any) => {\n if (formData.has('document')) {\n formData.delete('document');\n }\n formData.append('document', source.file);\n curUploadFile.value = source.file;\n uploadFileSize.value =\n source.file.size / 1024 > 1024\n ? `${(source.file.size / 1024 / 1024).toFixed(1)} MB`\n : `${Math.floor(source.file.size / 1024)} KB`;\n isBeforeUpload.value = false;\n };\n\n const fileInfo = ref({\n documentId: '',\n fileName: '',\n filePath: '',\n fileType: '',\n });\n\n // 上传文件\n const uploadFile = (source: any) => {\n isClickAbled.value = false;\n const url = '/docapi/upload';\n const params = {\n serviceName: 'oasis-claim-service',\n };\n axios({\n method: 'post',\n data: formData,\n url,\n params,\n })\n .then((res: any) => {\n isShowUploadBtn.value = false;\n curPercent.value = 100;\n completeTips.value = true;\n isClickAbled.value = true;\n const data = res.data.data;\n fileInfo.value.documentId = data.id;\n fileInfo.value.fileName = data.docName;\n fileInfo.value.filePath = data.docPath;\n fileInfo.value.fileType = data.docType;\n })\n .catch((err) => {\n console.log(err);\n });\n };\n // 上传功能出错后下载模态窗口\n // const handleDownload = () => {\n // loading.value = true;\n // // 调下载错误文件接口\n // const path = window.sessionStorage.getItem('errorFileName')\n // ? window.sessionStorage.getItem('errorFileName')\n // : null;\n // if (!path) return;\n // const downloadParams = {\n // // payoutRoundId: roundVal.value,\n // path: window.sessionStorage.getItem('errorFileName'),\n // };\n // const params = {\n // url: `/claimapi/payout/reimbursement/download`,\n // method: 'get',\n // params: downloadParams,\n // // fileName: `${+new Date()}.xlsx`,\n // };\n // downLoadTemplate(\n // params,\n // 'application/vnd-excel; char-set=UTF-8'\n // ).then((res) => {\n // loading.value = false;\n // downloadModalVisible.value = false;\n // emptyVisible.value = false;\n // });\n // };\n // const handleCancel = () => {\n // downloadModalVisible.value = false;\n // };\n const showUploadHandle = () => {\n isBeforeUpload.value = true;\n isShowUploadBtn.value = true;\n curPercent.value = 0;\n completeTips.value = false;\n window.sessionStorage.removeItem('errorFileName');\n isImport.value = false;\n };\n\n const cancel = () => {\n close();\n };\n\n const confirm = () => {\n close();\n emit('share-file-info', fileInfo.value);\n };\n\n return {\n // loading,\n // downloadModalVisible,\n // downloadTipsText,\n // handleDownload,\n // handleCancel,\n // roundVal,\n close,\n uploadFile,\n beforeUpload,\n uploadComplete,\n isBeforeUpload,\n isShowUploadBtn,\n uploadRequest,\n curPercent,\n curUploadFile,\n uploadFileSize,\n isImport,\n showUploadHandle,\n completeTips,\n isClickAbled,\n emptyVisible,\n emptyTipsText,\n cancel,\n confirm,\n };\n },\n});\n","import { render } from \"./UploadDrawer.vue?vue&type=template&id=1ac44f5c&scoped=true&ts=true\"\nimport script from \"./UploadDrawer.vue?vue&type=script&lang=ts\"\nexport * from \"./UploadDrawer.vue?vue&type=script&lang=ts\"\n\nimport \"./UploadDrawer.vue?vue&type=style&index=0&id=1ac44f5c&lang=scss&scoped=true\"\nimport \"./UploadDrawer.vue?vue&type=style&index=1&id=1ac44f5c&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-1ac44f5c\"]])\n\nexport default __exports__","\nimport { defineComponent, ref, onMounted, reactive, onUnmounted } from 'vue';\nimport { useRouter } from 'vue-router';\nimport { UploadOutlined } from '@ant-design/icons-vue';\nimport { Moment } from 'moment';\nimport UploadDrawer from '@/views/Checking/components/UploadDrawer.vue';\nimport { ProgramType } from '@/views/Delay/type';\nimport {\n batchSave,\n findByGroupCode,\n getAllDealerInfos,\n} from '@/API/checking/exemptionSetup';\nimport { getUser, getProgramCodeList } from '@/API/checking/checkingManagement';\nimport {\n getRegionApi,\n getDealerGroup,\n getOfferType,\n getCustomerType,\n} from '@/API/claimDelay/common';\nimport { message } from 'ant-design-vue';\n\ninterface DataInterface {\n amountWithoutVat: string;\n bu: string | undefined;\n buId?: number | undefined;\n documentId?: string;\n eligibleDealerId?: string | undefined;\n eligibleDealerKey: number | undefined;\n eligibleDealerNameCn?: string;\n eligibleDealerNameEn?: string;\n eligibleDealerValue: string | undefined;\n eligibleProgramId?: string | undefined;\n eligibleProgramKey: number | undefined;\n eligibleProgramNameCn?: string;\n eligibleProgramNameEn?: string;\n eligibleProgramValue: string | undefined;\n exemptionCode?: string | undefined;\n exemptionName?: string | undefined;\n exemptionPeriodEnd?: string;\n exemptionPeriodStart?: string;\n exemptionReason: string | undefined;\n fileName?: string;\n filePath?: string;\n fileType?: string;\n vinCount: string;\n period: Moment[];\n requestDate?: string | undefined;\n endDate?: string | undefined;\n}\n\nexport default defineComponent({\n components: {\n UploadOutlined,\n UploadDrawer,\n },\n setup() {\n const columns = [\n {\n title: 'Eligible Dealer',\n width: 420,\n slots: { customRender: 'dealer' },\n },\n {\n title: 'Eligible Program',\n width: 420,\n slots: { customRender: 'program' },\n },\n {\n width: 150,\n slots: { title: 'buTitle', customRender: 'bu' },\n },\n {\n title: 'VIN Count',\n width: 150,\n slots: { customRender: 'vinCount' },\n },\n {\n title: 'Amount(W/O VAT)',\n width: 150,\n slots: { customRender: 'amountWithoutVat' },\n },\n {\n width: 200,\n slots: { title: 'periodTitle', customRender: 'period' },\n },\n {\n width: 150,\n slots: {\n title: 'reasonTitle',\n customRender: 'exemptionReason',\n },\n },\n {\n title: 'Operation',\n width: 150,\n slots: { customRender: 'operation' },\n },\n ];\n const data = ref([\n {\n eligibleDealerKey: undefined,\n eligibleDealerValue: undefined,\n eligibleProgramKey: undefined,\n eligibleProgramValue: undefined,\n bu: undefined,\n vinCount: '',\n amountWithoutVat: '',\n period: [],\n exemptionReason: undefined,\n },\n ]);\n\n const exemptionName = ref('');\n const requestDate = ref();\n const endDate = ref();\n\n // 表格需要人为选择的数据获取\n const dealerOptions = ref([]);\n const getDealerOptions = () => {\n findByGroupCode({ groupCode: 'eligible_dealer' }).then(\n (res: any) => {\n dealerOptions.value = res.filter((r: any) => {\n return r.itemCode !== 0;\n });\n }\n );\n };\n const selectDealer = (value: string, option: any, record: any) => {\n record.eligibleDealerId = option.currentItem.id;\n };\n\n const selectDealerCode = (value: string, option: any, record: any) => {\n record.eligibleDealerNameCn = option.currentItem.nameCn;\n record.eligibleDealerNameEn = option.currentItem.nameEn;\n };\n\n const selectDealerGroup = (value: string, option: any, record: any) => {\n record.eligibleDealerNameCn = option.currentItem.dealerGroupCn;\n record.eligibleDealerNameEn = option.currentItem.dealerGroupEn;\n };\n const selectDealerRegion = (\n value: string,\n option: any,\n record: any\n ) => {\n record.eligibleDealerNameCn = option.currentItem.subRegionCn;\n record.eligibleDealerNameEn = option.currentItem.subRegionEn;\n };\n\n const programOptions = ref([]);\n const getProgramOptions = () => {\n findByGroupCode({ groupCode: 'eligible_program' }).then(\n (res: any) => {\n programOptions.value = res.filter((r: any) => {\n return r.itemCode !== 0;\n });\n }\n );\n };\n const selectProgram = (value: string, option: any, record: any) => {\n record.eligibleProgramId = option.currentItem.id;\n };\n const selectProgramCategory = (\n value: string,\n option: any,\n record: any\n ) => {\n record.eligibleProgramNameCn = option.currentItem.nameCn;\n record.eligibleProgramNameEn = option.currentItem.nameEn;\n };\n const selectCustomerType = (\n value: string,\n option: any,\n record: any\n ) => {\n record.eligibleProgramNameCn = option.currentItem.nameCn;\n record.eligibleProgramNameEn = option.currentItem.name;\n };\n\n const buList = ref([]);\n const selectBu = (value: string, option: any, record: any) => {\n record.buId = option.currentItem.id;\n };\n\n const reasonList = ref([]);\n const getReasonList = () => {\n findByGroupCode({ groupCode: 'exemption_reason' }).then(\n (res: any) => {\n reasonList.value = res;\n }\n );\n };\n getDealerOptions();\n getProgramOptions();\n getReasonList();\n\n //? Eiligble Dealer 数据获取 code group region\n const dealerGroupList = ref([]);\n const genDealerGroup = () => {\n getDealerGroup().then((res: any) => {\n dealerGroupList.value = res;\n });\n };\n genDealerGroup();\n\n const regionMapList = reactive({});\n const genRegionList = (bu: string) => {\n if (bu in regionMapList) return;\n getRegionApi({ bu }).then((res: any) => {\n regionMapList[bu] = res;\n });\n };\n const getRegionByBu = (record: any) => {\n if (record.eligibleDealerKey === 3)\n record.eligibleDealerValue = undefined;\n genRegionList(record.bu);\n };\n\n const cleanDealerValue = (record: any) => {\n record.eligibleDealerValue = undefined;\n };\n\n //? Eiligble Program 数据获取 code category custom\n const programCodeList = ref([]);\n let timeout: any;\n const searchProgramCode = (val: string) => {\n if (timeout) {\n clearTimeout(timeout);\n timeout = null;\n }\n const params = {\n code: val,\n };\n function getData() {\n getProgramCodeList(params).then((res: any) => {\n programCodeList.value = res;\n });\n }\n timeout = setTimeout(getData, 800);\n };\n\n const programTypeList = ref([]);\n const genProgramTypeList = () => {\n getOfferType().then((res: any) => {\n const offerTypeList = res.incentiveCategory.reduce(\n (totalList: any, arr: any) => {\n return [...totalList, ...arr.offerType];\n },\n []\n );\n programTypeList.value = offerTypeList;\n });\n };\n genProgramTypeList();\n\n const customerTypeList = ref([]);\n const genCustomerTypeList = () => {\n getCustomerType().then((res: any) => {\n customerTypeList.value = res;\n });\n };\n genCustomerTypeList();\n\n const cleanProgramValue = (record: any) => {\n record.eligibleProgramValue = undefined;\n };\n\n // 上传drawer\n const uploadDrawerVisible = ref(false);\n const fileInfo = ref(undefined);\n\n const openDrawer = () => {\n uploadDrawerVisible.value = true;\n };\n\n const closeDrawer = () => {\n uploadDrawerVisible.value = false;\n };\n\n const shareFileInfo = (file: any) => {\n fileInfo.value = file;\n };\n\n const addData = () => {\n data.value.push({\n eligibleDealerKey: undefined,\n eligibleDealerValue: undefined,\n eligibleProgramKey: undefined,\n eligibleProgramValue: undefined,\n bu: undefined,\n vinCount: '',\n amountWithoutVat: '',\n period: [],\n exemptionReason: undefined,\n });\n };\n\n const deleteRow = (record: any, index: number) => {\n data.value.splice(index, 1);\n };\n\n // 右下角Cancel\n const router = useRouter();\n const goBack = () => {\n router.push({\n name: 'exemption',\n });\n };\n // 右下角 Submit\n const submit = () => {\n let dataFlag = false;\n for (let i = 0; i < data.value.length; i++) {\n const item = data.value[i];\n if (\n item.period.length === 0 ||\n item.bu === undefined ||\n item.exemptionReason === undefined\n ) {\n dataFlag = true;\n break;\n }\n }\n if (\n dataFlag ||\n exemptionName.value === '' ||\n requestDate.value === undefined ||\n endDate.value === undefined ||\n fileInfo.value === undefined\n ) {\n message.error('Please input all required field');\n return;\n }\n data.value.forEach((item: DataInterface) => {\n item.exemptionPeriodStart = item.period[0].format('MM/DD/YYYY');\n item.exemptionPeriodEnd = item.period[1].format('MM/DD/YYYY');\n item.documentId = fileInfo.value.documentId;\n item.fileName = fileInfo.value.fileName;\n item.filePath = fileInfo.value.filePath;\n item.fileType = fileInfo.value.fileType;\n item.endDate = endDate.value?.format('MM/DD/YYYY');\n item.requestDate = requestDate.value?.format('MM/DD/YYYY');\n item.exemptionName = exemptionName.value;\n });\n batchSave(data.value).then((res: any) => {\n if (res.code === '0') {\n message.success('Submit Success!');\n }\n });\n };\n\n let allDealerInfos: any[];\n const dealerInfoList = ref([]);\n getAllDealerInfos().then((res: any) => {\n allDealerInfos = res;\n dealerInfoList.value = res;\n });\n\n let timer: any;\n const fetching = ref(false);\n const filterDealerInfo = (val: string) => {\n fetching.value = true;\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n timer = setTimeout(() => {\n dealerInfoList.value = allDealerInfos.filter((dealer: any) => {\n return dealer.dealerCode.indexOf(val) > -1;\n });\n fetching.value = false;\n }, 300);\n };\n // dealer code 远程搜索防抖版\n\n const disabledDate = (current: Moment, type: string) => {\n if (\n type === 'request' &&\n endDate.value !== undefined &&\n endDate.value !== null\n ) {\n return current > endDate.value;\n }\n if (\n type === 'end' &&\n requestDate.value !== undefined &&\n requestDate.value !== null\n ) {\n return current < requestDate.value;\n }\n return false;\n };\n\n onMounted(() => {\n getUser().then((res) => {\n buList.value = res.buList\n .filter((ele: any) => {\n return ele.parentId === null;\n })\n .map((ele: any) => {\n return { name: ele.nameCn, id: ele.id };\n });\n });\n });\n\n onUnmounted(() => {\n clearTimeout(timer);\n });\n\n return {\n exemptionName,\n requestDate,\n endDate,\n columns,\n dealerOptions,\n selectDealer,\n selectDealerCode,\n selectDealerGroup,\n selectDealerRegion,\n programOptions,\n selectProgram,\n selectProgramCategory,\n selectCustomerType,\n buList,\n selectBu,\n reasonList,\n data,\n addData,\n deleteRow,\n uploadDrawerVisible,\n openDrawer,\n closeDrawer,\n shareFileInfo,\n goBack,\n submit,\n searchProgramCode,\n regionMapList,\n getRegionByBu,\n dealerGroupList,\n programCodeList,\n programTypeList,\n customerTypeList,\n cleanDealerValue,\n cleanProgramValue,\n filterDealerInfo,\n dealerInfoList,\n fetching,\n disabledDate,\n };\n },\n});\n","import { render } from \"./setup.vue?vue&type=template&id=571e1a9a&scoped=true&ts=true\"\nimport script from \"./setup.vue?vue&type=script&lang=ts\"\nexport * from \"./setup.vue?vue&type=script&lang=ts\"\n\nimport \"./setup.vue?vue&type=style&index=0&id=571e1a9a&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-571e1a9a\"]])\n\nexport default __exports__","module.exports = __webpack_public_path__ + \"img/add-icon.d874a2d7.svg\";","import { fetchGet, fetchPost } from '../index';\nimport {\n AGManagementQueryParams,\n TAManagementQueryParams,\n} from '@/views/Checking/CheckingManagement/type';\n//* 获取bu接口\nexport const getBuData = (): Promise => {\n return fetchGet('');\n};\n\n//* AG table数据查询接口\nexport const getAGManagementData = (\n params: AGManagementQueryParams\n): Promise => {\n return fetchPost('/claimapi/claimChecking/agManagement/search', params);\n};\n\n//* TA table数据查询接口\nexport const getTAManagementData = (\n params: TAManagementQueryParams\n): Promise => {\n return fetchPost('/claimapi/claimChecking/taManagement/signTAList', params);\n};\n\n//* TDTA table数据查询接口\nexport const getTDTAManagementData = (\n params: TAManagementQueryParams\n): Promise => {\n return fetchPost('/claimapi/tdta/search', params);\n};\n\n//* 车辆信息级联查询\nexport const searchVehicle = (params: any): Promise => {\n return fetchPost('/claimapi/tdta/search/vehicle', params);\n};\n\n//* findBrandByBu\nexport const getBrand = (params: any): Promise => {\n return fetchGet('/vapi/noAuth/findBrandByBu', params);\n};\n\n//* 根据 Program Code 模糊查询 Program Code 列表\nexport const getProgramCodeList = (params: any): Promise => {\n return fetchGet('/pgapi/calc/claim/get_program_code_list', { params });\n};\n\n//* 根据BU、Program Code 模糊查询 Program Code 列表\nexport const findProgramCodeList = (buId: string, code: string): Promise => {\n return fetchGet('/pgapi/calc/claim/find_program_code_list', {\n params: {\n buId,\n code\n }\n });\n}\n\n//* 根据program code 查询 taname\nexport const getProgramTANameList = (params: any): Promise => {\n return fetchGet('/pgapi/calc/claim/get_program_taname_list', { params });\n};\n\n//* 获取用户信息的接口\nexport const getUser = (): Promise => {\n return fetchGet('/usapi/users/currentuser');\n};\n","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!./UploadDrawer.vue?vue&type=style&index=0&id=1ac44f5c&lang=scss&scoped=true\"","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!./UploadDrawer.vue?vue&type=style&index=1&id=1ac44f5c&lang=scss\""],"sourceRoot":""}