{"version":3,"sources":["webpack:///./src/api/processtablelist.ts","webpack:///./src/views/Process/List.vue","webpack:///./src/views/Process/List.vue?7ad0","webpack:///./src/views/Process/List.vue?675b"],"names":["getFlowList","params","post","_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","ApplyTimeArr","getProcessFlowList","async","Data","Success","Message","Total","PageIndex","PageSize","ApplyStartTime","ApplyEndTime","value","message","warning","onActivated","meta","flag","DataSearch","val","handleTableChange","row","handleDetail","Id","ApplicationStaffId","push","path","query","type","id","staffId","tableFlag","_ctx","_cache","_component_a_table","_resolveComponent","_openBlock","_createElementBlock","_Fragment","_createVNode","Title","title","ApproveFilter","titleFlag","onDataSearch","_createElementVNode","columns","_unref","PROCESS","scroll","x","onChange","constatus","_withCtx","text","state","record","_normalizeClass","ApproveStaffName","includes","substring","indexOf","_toDisplayString","btn","onClick","$event","_","__exports__"],"mappings":"4NAEO,MAAMA,EAAeC,GAAeC,eAAK,4BAA6BD,G,4BCC7E,MACME,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,iBACRC,EAAOb,eAAS,CACpBc,WAAY,CACVC,IAAK,GACL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,MAAO,WACPgG,QAAUC,GAAiB3C,EAAakC,IACvC,KAAM,EAAGnF,OAGhB6F,EAAG,GACF,EAAG,CAAC,UAAW,cAAe,kBAElC,Q,iCC/ML,MAAMC,EAA2B,IAAgB,EAAQ,CAAC,CAAC,YAAY,qBAExD,gB,oCCRf","file":"js/chunk-2af676f8.b4d16604.js","sourcesContent":["import { get, post } from \"@/utils/request\";\n// 获取流程列表\nexport const getFlowList = (params:any) => post('/api/companyFlow/pagelist', params)\n","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-32e6816a\"),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 { PROCESS } from \"../../const/openManageTableList.ts\";\nimport { getFlowList } from \"../../api/processtablelist\";\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 ApplyTimeArr: [],\n },\n});\nconst getProcessFlowList = async () => {\n const { Data, Success, Message, Total } = await getFlowList({\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 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 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) => {\n const ApprovalMatters = row.ApprovalMatters;\n const Id = row.Id;\n const ApplicationStaffId = row.ApplicationStaffId;\n router.push({\n path: \"/process\",\n query: {\n type: ApprovalMatters,\n id: Id,\n staffId: ApplicationStaffId,\n tableFlag: \"isFromProcessList\",\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 class: \"table\",\n columns: _unref(PROCESS),\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=32e6816a&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-32e6816a\"]])\n\nexport default __exports__","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=32e6816a&scoped=true&lang=less\""],"sourceRoot":""}