{"version":3,"sources":["webpack:///./src/views/Open/List.vue?9fe0","webpack:///./src/views/Open/List.vue","webpack:///./src/views/Open/List.vue?e46c","webpack:///./src/api/approve.ts"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_defineComponent","setup","__props","tableData","ref","pagination","reactive","total","current","defaultPageSize","pageSize","showQuickJumper","showSizeChanger","pageSizeOptions","showTotal","router","useRouter","route","useRoute","data","filterForm","Key","RegionId","CompanyId","ApproveNode","ApprovalMatters","Approves","CompanyType","ExpectOpenStartTime","ExpectOpenEndTime","LocationId","ApplyTimeArr","getProcessFlowList","async","Data","Success","Message","Total","getApplylList","PageIndex","PageSize","ApplyStartTime","ApplyEndTime","length","forEach","item","ApproveStaffName","includes","substring","indexOf","value","message","warning","onActivated","meta","flag","DataSearch","val","handleTableChange","row","handleDetail","Id","IsCreated","push","path","query","type","id","tableFlag","_ctx","_cache","_component_a_table","_resolveComponent","_openBlock","_createElementBlock","_Fragment","_createVNode","Title","title","ApproveFilter","titleFlag","onDataSearch","_createElementVNode","columns","_unref","APPLY","scroll","x","onChange","constatus","_withCtx","text","state","record","_normalizeClass","_toDisplayString","btn","onClick","$event","_","__exports__","getPendingApprovalList","params","post","getApprovalList","getCopylList","getMyCreatedList","setReadStatus"],"mappings":"kHAAA,W,2ICGA,MACMA,EAAa,CAAEC,MAAO,cACtBC,EAAa,CAAED,MAAO,SACtBE,EAAa,CAAC,SACdC,EAAa,CAAC,SACdC,EAAa,CAAEJ,MAAO,aACtBK,EAAa,CAAC,WAaQC,qBAAiB,CAC3CC,MAAMC,GAER,MAAMC,EAAYC,eAAI,IAChBC,EAAaC,eAAS,CAC1BC,MAAO,EACPC,QAAS,EACTC,gBAAiB,GACjBC,SAAU,GACVC,iBAAiB,EACjBC,iBAAiB,EACjBC,gBAAiB,CAAC,IAAK,KAAM,KAAM,KAAM,MACzCC,UAAYP,GAAkB,KAAKA,UAG/BQ,EAASC,iBACTC,EAAQC,i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iBH,GACjBC,EAAO/C,kBAA8B,QAAV8C,EACxB,KACCC,EAAO/C,iBAAiBC,SAAS,KAC9B8C,EAAO/C,iBAAiBE,UACtB,EACA6C,EAAO/C,iBAAiBG,QAAQ,MAElC4C,EAAO/C,kBACX,IACA,KAAM,GAAIlD,OAGpBkD,iBAAkB4C,gBAAS,EAAGC,KAAMC,KAAY,CAC9CV,eAAoB,OAAQ,CAAEJ,MAAOc,GAASG,gBAAiBH,EAAM7C,SAAS,KAAO6C,EAAM5C,UAAU,EAAG4C,EAAM3C,QAAQ,MAAQ2C,GAAQ,EAAG/F,KAE3ImG,IAAKN,gBAAS,EAAGC,KAAME,KAAa,CAClCX,eAAoB,MAAOpF,EAAY,CACrCoF,eAAoB,SAAU,CAC5BxF,MAAO,WACPuG,QAAUC,GAAiBtC,EAAaiC,IACvC,KAAM,EAAG9F,OAGhBoG,EAAG,GACF,EAAG,CAAC,UAAW,cAAe,kBAElC,Q,iCCrOL,MAAMC,EAA2B,IAAgB,EAAQ,CAAC,CAAC,YAAY,qBAExD,gB,kCCRf,4NAEO,MAAMC,EAA0BC,GACrCC,eAAK,+CAAgDD,GAE1CE,EAAmBF,GAC9BC,eAAK,kDAAmDD,GAE7CG,EAAgBH,GAC3BC,eAAK,4CAA6CD,GAEvChE,EAAiBgE,GAC5BC,eAAK,gCAAiCD,GAE3BI,EAAoBJ,GAC/BC,eAAK,+CAAgDD,GAE1CK,EAAiBL,GAC5BC,eAAK,wCAAyCD,I","file":"js/chunk-424d1b8b.9f25a5b5.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--11-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!./List.vue?vue&type=style&index=0&id=9511d89a&scoped=true&lang=less\"","import { defineComponent as _defineComponent } from 'vue'\nimport { createVNode as _createVNode, unref as _unref, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, withCtx as _withCtx, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-9511d89a\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"table-part\" }\nconst _hoisted_2 = { class: \"state\" }\nconst _hoisted_3 = [\"title\"]\nconst _hoisted_4 = [\"title\"]\nconst _hoisted_5 = { class: \"table-btn\" }\nconst _hoisted_6 = [\"onClick\"]\n\nimport Title from \"@/components/Title.vue\";\nimport ApproveFilter from \"@/components/ApproveFilter.vue\";\nimport { APPLY } from \"../../const/openManageTableList.ts\";\nimport { getApplylList } from \"../../api/approve\";\n\nimport { ref, reactive, onMounted, onActivated } from \"vue\";\n\nimport { useRoute, useRouter } from \"vue-router\";\nimport { message } from \"ant-design-vue\";\n\n\nexport default /*#__PURE__*/_defineComponent({\n setup(__props) {\n\nconst tableData = ref([]);\nconst pagination = reactive({\n total: 0,\n current: 1,\n defaultPageSize: 10,\n pageSize: 10,\n showQuickJumper: true,\n showSizeChanger: true,\n pageSizeOptions: [\"5\", \"10\", \"20\", \"30\", \"40\"],\n showTotal: (total: number) => `共 ${total} 条数据`,\n});\n\nconst router = useRouter();\nconst route = useRoute();\nconst data = reactive({\n filterForm: {\n Key: \"\",\n RegionId: 0,\n CompanyId: 0,\n ApproveNode: 0,\n ApprovalMatters: 0,\n Approves: -1,\n CompanyType: 0,\n ExpectOpenStartTime: \"\",\n ExpectOpenEndTime: \"\",\n LocationId: \"\",\n ApplyTimeArr: [],\n },\n});\nconst getProcessFlowList = async () => {\n const { Data, Success, Message, Total } = await getApplylList({\n ApproveNode: data.filterForm.ApproveNode,\n ApprovalMatters: data.filterForm.ApprovalMatters,\n Approves: data.filterForm.Approves,\n PageIndex: pagination.current,\n PageSize: pagination.pageSize,\n CompanyId: data.filterForm.CompanyId,\n RegionId: data.filterForm.RegionId,\n Key: data.filterForm.Key,\n CompanyType: data.filterForm.CompanyType || 0,\n ExpectOpenStartTime: data.filterForm.ExpectOpenStartTime,\n ExpectOpenEndTime: data.filterForm.ExpectOpenEndTime,\n LocationId: data.filterForm.LocationId,\n ApplyStartTime: data.filterForm.ApplyTimeArr\n ? data.filterForm.ApplyTimeArr[0]\n : \"\",\n ApplyEndTime: data.filterForm.ApplyTimeArr\n ? data.filterForm.ApplyTimeArr[1]\n : \"\",\n });\n if (Success) {\n Data.length > 0 &&\n Data.forEach((item: any) => {\n if (item.ApproveStaffName.includes(\";\")) {\n item.ApproveStaffName = item.ApproveStaffName.substring(\n 0,\n item.ApproveStaffName.indexOf(\";\")\n );\n }\n });\n tableData.value = Data;\n pagination.total = Total;\n } else {\n message.warning(Message);\n }\n};\n\n// getProcessFlowList();\n// 判断页面是从相关二级页面 返回\nonActivated(() => {\n if (route.meta.flag) {\n // 保留筛选条件\n } else {\n data.filterForm = {\n Key: \"\",\n RegionId: 0,\n CompanyId: 0,\n ApproveNode: 0,\n ApprovalMatters: 0,\n Approves: -1,\n CompanyType: 0,\n ExpectOpenStartTime: \"\",\n ExpectOpenEndTime: \"\",\n LocationId: \"\",\n ApplyTimeArr: [],\n };\n pagination.current = 1;\n pagination.pageSize = 10;\n }\n\n getProcessFlowList();\n});\n// 数据筛选\nconst DataSearch = (val) => {\n data.filterForm = val;\n pagination.current = 1;\n getProcessFlowList();\n};\nconst handleTableChange = (row) => {\n pagination.current = row.current;\n pagination.pageSize = row.pageSize;\n getProcessFlowList();\n};\n// 详情\nconst handleDetail = (row: string) => {\n const ApprovalMatters = \"1\";\n const Id = row.Id;\n const IsCreated = row.IsCreated;\n if (IsCreated) {\n // 是否是创建人 1 是 0 否\n router.push({\n path: \"/open\",\n // query: {\n // type: ApprovalMatters,\n // id: Id,\n // tableFlag: \"isFromApplyTable\",\n // },\n });\n } else {\n router.push({\n path: \"/signsure/detail\",\n query: {\n type: ApprovalMatters,\n id: Id,\n tableFlag: \"isFromApplyTable\",\n },\n });\n }\n};\n\nreturn (_ctx: any,_cache: any) => {\n const _component_a_table = _resolveComponent(\"a-table\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createVNode(Title, { title: '申请列表' }),\n _createVNode(ApproveFilter, {\n titleFlag: '申请列表',\n onDataSearch: DataSearch\n }),\n _createElementVNode(\"div\", _hoisted_1, [\n _createVNode(_component_a_table, {\n columns: _unref(APPLY),\n \"data-source\": tableData.value,\n pagination: _unref(pagination),\n scroll: { x: 1000 },\n onChange: handleTableChange\n }, {\n constatus: _withCtx(({ text: state, record }) => [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", {\n class: _normalizeClass([\n state === '已通过'\n ? 'cricle-go'\n : state === '已驳回'\n ? 'cricle-reject'\n : state === '已撤销'\n ? 'cricle-back'\n : 'cricle',\n ])\n }, null, 2),\n _createElementVNode(\"div\", {\n class: _normalizeClass([\n state === '已通过'\n ? 'state-go'\n : state === '已驳回'\n ? 'state-reject'\n : state === '已撤销'\n ? 'state-back'\n : 'state',\n ]),\n title: \n state +\n (record.ApproveStaffName && state !== '已通过'\n ? '(' +\n (record.ApproveStaffName.includes(';')\n ? record.ApproveStaffName.substring(\n 0,\n record.ApproveStaffName.indexOf(';')\n )\n : record.ApproveStaffName) +\n ')'\n : '')\n \n }, _toDisplayString(state +\n (record.ApproveStaffName && state !== \"已通过\"\n ? \"(\" +\n (record.ApproveStaffName.includes(\";\")\n ? record.ApproveStaffName.substring(\n 0,\n record.ApproveStaffName.indexOf(\";\")\n )\n : record.ApproveStaffName) +\n \")\"\n : \"\")), 11, _hoisted_3)\n ])\n ]),\n ApproveStaffName: _withCtx(({ text: state }) => [\n _createElementVNode(\"span\", { title: state }, _toDisplayString(state.includes(\";\") ? state.substring(0, state.indexOf(\";\")) : state), 9, _hoisted_4)\n ]),\n btn: _withCtx(({ text: record }) => [\n _createElementVNode(\"div\", _hoisted_5, [\n _createElementVNode(\"button\", {\n class: \"btnClass\",\n onClick: ($event: any) => (handleDetail(record))\n }, \"详情\", 8, _hoisted_6)\n ])\n ]),\n _: 1\n }, 8, [\"columns\", \"data-source\", \"pagination\"])\n ])\n ], 64))\n}\n}\n\n})","import script from \"./List.vue?vue&type=script&lang=ts&setup=true\"\nexport * from \"./List.vue?vue&type=script&lang=ts&setup=true\"\n\nimport \"./List.vue?vue&type=style&index=0&id=9511d89a&scoped=true&lang=less\"\n\nimport exportComponent from \"/Users/zhengjunjie/risfond-branchmanagementsystem/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-9511d89a\"]])\n\nexport default __exports__","import { get, post } from \"@/utils/request\";\n// 待审批\nexport const getPendingApprovalList = (params: any) =>\n post(\"/api/approvalManagement/getCurrentMyPageList\", params);\n// 已审批\nexport const getApprovalList = (params: any) =>\n post(\"/api/approvalManagement/getApprovaledMyPageList\", params);\n// 抄送我的\nexport const getCopylList = (params: any) =>\n post(\"/api/approvalManagement/getCCToMyPageList\", params);\n// 申请列表\nexport const getApplylList = (params: any) =>\n post(\"/api/companyBusiness/pagelist\", params);\n// 我发起的\nexport const getMyCreatedList = (params: any) =>\n post(\"/api/approvalManagement/getCreatedMyPageList\", params);\n // 设置抄送状态\nexport const setReadStatus = (params: any) =>\n post(\"/api/approvalManagement/setReadStatus\", params);\n \n"],"sourceRoot":""}