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,IAAa2J,EAAAA,EAAO,KAAM,CACxB,YAAY9J,EAAAA,EAAAA,KAAS,IAAM,CACzB+C,KAEF,gBAAgB/C,EAAAA,EAAAA,KAAS,IAAM,EAC7BsJ,EAAAA,EAAAA,IAAiB,aAEnB,gBAAgBtJ,EAAAA,EAAAA,KAAS,IAAM,EAC7BG,EAAAA,EAAAA,IAAa4J,EAAAA,EAAQ,CACnBlJ,YAAYkH,EAAAA,EAAAA,IAAOiC,EAAAA,IACnB1G,QAASA,EACTxC,UAAWA,GACV,CACDmJ,OAAOjK,EAAAA,EAAAA,KAAS,EAAG6I,SAAU,EAC3B1I,EAAAA,EAAAA,IAAa0J,EAAsB,CACjCK,KAAM,GACNxG,KAAM,UACNW,KAAM,SACL,CACDd,SAASvD,EAAAA,EAAAA,KAAS,IAAM,EACtBsJ,EAAAA,EAAAA,IAAiB,SAEnBR,EAAG,KAEL3I,EAAAA,EAAAA,IAAa0J,EAAsB,CACjCK,KAAM,GACNxG,KAAM,SACNW,KAAM,SACL,CACDd,SAASvD,EAAAA,EAAAA,KAAS,IAAM,EACtBsJ,EAAAA,EAAAA,IAAiB,SAEnBR,EAAG,OAGPA,EAAG,GACF,EAAG,CAAC,kBAETA,EAAG,KAEL,CAEJ,IE1FA,MAAMpI,EAAc,EAEpB,O","sources":["webpack://baozhidao-putoutstorage/./src/components/card.vue","webpack://baozhidao-putoutstorage/./src/components/card.vue?01b1","webpack://baozhidao-putoutstorage/./src/hooks/useTable.ts","webpack://baozhidao-putoutstorage/./src/components/table.vue?c286","webpack://baozhidao-putoutstorage/./src/components/table.vue","webpack://baozhidao-putoutstorage/./src/components/table.vue?0270","webpack://baozhidao-putoutstorage/./src/views/personalInfo/index.vue?2265","webpack://baozhidao-putoutstorage/./src/views/personalInfo/index.vue","webpack://baozhidao-putoutstorage/./src/views/personalInfo/index.vue?ad0b"],"sourcesContent":["\r\n\r\n\r\n\r\n","import { render } from \"./card.vue?vue&type=template&id=355a127a\"\nconst script = {}\n\nimport \"./card.vue?vue&type=style&index=0&id=355a127a&lang=scss\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { reactive, toRefs } from 'vue'\r\ninterface Pageable {\r\n pageNum: number\r\n pageSize: number\r\n total: number\r\n RemainingTime?: number\r\n small: boolean\r\n disabled: boolean\r\n}\r\ninterface Table {\r\n loading: boolean\r\n tableData: any[]\r\n pageable: Pageable\r\n searchParam: any\r\n searchInitParam: any\r\n totalParam: any\r\n}\r\n\r\n/**\r\n *\r\n * @param requestApi 请求接口\r\n * @param initParam 请求参数\r\n * @param isPagination 是否需要分页\r\n * @param dataCallback 对后台返回参数进行处理\r\n * @returns\r\n */\r\nexport const useTable = (\r\n requestApi: (params: any) => Promise,\r\n initParam: object = {},\r\n isPagination: boolean = true,\r\n dataCallback?: (data: any) => any\r\n) => {\r\n const state = reactive({\r\n // 表格数据\r\n tableData: [],\r\n loading: true,\r\n // 分页数据\r\n pageable: {\r\n // 当前页数\r\n pageNum: 1,\r\n // 每页显示条数\r\n pageSize: 8,\r\n // 总条数\r\n total: 0,\r\n RemainingTime: 0,\r\n small: true,\r\n disabled: false\r\n },\r\n // 查询参数(只包括查询)\r\n searchParam: {},\r\n // 初始化默认的查询参数\r\n searchInitParam: {},\r\n // 总参数(包含分页和查询参数)\r\n totalParam: {}\r\n })\r\n\r\n const getTableList = async () => {\r\n const params: any = {\r\n page: state.pageable.pageNum,\r\n pageSize: state.pageable.pageSize,\r\n ...initParam\r\n }\r\n requestApi(params).then(res => {\r\n state.tableData = res.data?.list || []\r\n // dataCallback && (state.tableData = dataCallback(res))\r\n state.pageable.total = parseInt(res.data?.count)\r\n // console.log('返回数据', res, state.tableData)\r\n\r\n if (res.Data?.RemainingTime) {\r\n state.pageable.RemainingTime = res.Data.RemainingTime\r\n }\r\n state.loading = false\r\n })\r\n }\r\n if (isPagination) {\r\n }\r\n const handleSizeChange = (val: number) => {\r\n state.pageable.pageSize = val\r\n getTableList()\r\n }\r\n\r\n const handleCurrentChange = (val: number) => {\r\n state.pageable.pageNum = val\r\n getTableList()\r\n }\r\n\r\n const searchTable = () => {\r\n state.pageable.pageNum = 1\r\n getTableList()\r\n }\r\n\r\n return {\r\n ...toRefs(state),\r\n getTableList,\r\n searchTable,\r\n handleSizeChange,\r\n handleCurrentChange\r\n }\r\n}\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, renderSlot as _renderSlot, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, mergeProps as _mergeProps, createBlock as _createBlock, createCommentVNode as _createCommentVNode, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createVNode as _createVNode, resolveDirective as _resolveDirective, withDirectives as _withDirectives, createElementVNode as _createElementVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"y-tabs\" }\nconst _hoisted_2 = {\n key: 0,\n style: {\"color\":\"red\"}\n}\nconst _hoisted_3 = { style: {\"margin-top\":\"20px\"} }\n\nimport { ref, CSSProperties,watch } from \"vue\";\r\nimport { useTable } from '@/hooks/useTable'\r\nimport { TableProps } from 'element-plus'\r\nimport { ColumnProps } from './interface/index'\r\ninterface ProTableProps extends Partial, 'data'>> {\r\n columns: ColumnProps[] // 列配置项\r\n requestApi: (params: any) => Promise // 请求表格数据的api ==> 必传\r\n dataCallback?: (data: any) => any // 返回数据的回调函数,可以对数据进行处理 ==> 非必传\r\n title?: string // 表格标题,目前只在打印的时候用到 ==> 非必传\r\n pagination?: boolean // 是否需要分页组件 ==> 非必传(默认为true)\r\n layout?: string\r\n initParam?: any // 初始化请求参数 ==> 非必传(默认为{})\r\n border?: boolean // 是否带有纵向边框 ==> 非必传(默认为true)\r\n toolButton?: boolean // 是否显示表格功能按钮 ==> 非必传(默认为true)\r\n selectId?: string // 当表格数据多选时,所指定的 id ==> 非必传(默认为 id)\r\n displayHeader?: boolean // 是否隐藏头部\r\n rowClick?: (row: any, column: any, event: any) => void // 点击行\r\n selectionChange?: (row: any) => void // 选择函数\r\n getRowKey?: ((row: any) => string) | string // 用于优化select勾选框\r\n tableRowClassName?: (data: any) => CSSProperties\r\n}\r\n// 接受父组件参数,配置默认值\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'table',\n props: {\n columns: { default: () => [] },\n requestApi: {},\n dataCallback: {},\n title: {},\n pagination: { type: Boolean, default: true },\n layout: { default: 'total, sizes, prev, pager, next, jumper' },\n initParam: { default: {} },\n border: { type: Boolean, default: true },\n toolButton: { type: Boolean, default: true },\n selectId: { default: 'id' },\n displayHeader: { type: Boolean },\n rowClick: {},\n selectionChange: {},\n getRowKey: {},\n tableRowClassName: {},\n size: {},\n width: {},\n height: {},\n maxHeight: {},\n fit: { type: Boolean },\n stripe: { type: Boolean },\n rowKey: {},\n context: {},\n showHeader: { type: Boolean },\n showSummary: { type: Boolean },\n sumText: {},\n summaryMethod: {},\n rowClassName: {},\n rowStyle: {},\n cellClassName: {},\n cellStyle: {},\n headerRowClassName: {},\n headerRowStyle: {},\n headerCellClassName: {},\n headerCellStyle: {},\n highlightCurrentRow: { type: Boolean },\n currentRowKey: {},\n emptyText: {},\n expandRowKeys: {},\n defaultExpandAll: { type: Boolean },\n defaultSort: {},\n tooltipEffect: {},\n tooltipOptions: {},\n spanMethod: {},\n selectOnIndeterminate: { type: Boolean },\n indent: {},\n treeProps: {},\n lazy: { type: Boolean },\n load: {},\n className: {},\n style: {},\n tableLayout: {},\n scrollbarAlwaysOn: { type: Boolean },\n flexible: { type: Boolean },\n showOverflowTooltip: { type: [Boolean, Object] }\n },\n setup(__props: any, { expose: __expose }) {\n\r\nconst props = __props\r\n\r\n\r\n// 表格操作 Hooks\r\nconst { tableData, getTableList, pageable, loading, handleSizeChange, handleCurrentChange } = useTable(\r\n props.requestApi,\r\n props.initParam,\r\n props.pagination,\r\n \r\n props.dataCallback\r\n)\r\n\r\ngetTableList()\r\n// 接收 columns 并设置为响应式\r\nconst tableColumns = ref(props.columns)\r\n\r\n//暴露方法\r\n__expose({\r\ngetTableList,tableColumns,props\r\n})\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_el_table_column = _resolveComponent(\"el-table-column\")!\n const _component_el_tooltip = _resolveComponent(\"el-tooltip\")!\n const _component_el_empty = _resolveComponent(\"el-empty\")!\n const _component_el_table = _resolveComponent(\"el-table\")!\n const _component_el_pagination = _resolveComponent(\"el-pagination\")!\n const _directive_loading = _resolveDirective(\"loading\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _withDirectives((_openBlock(), _createBlock(_component_el_table, {\n data: _unref(tableData),\n onRowClick: props.rowClick,\n onSelectionChange: props.selectionChange,\n \"row-key\": props.getRowKey,\n border: props.border,\n \"max-height\": \"450\",\n \"row-style\": _ctx.tableRowClassName,\n \"table-layout\": \"auto\"\n }, {\n append: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"append\")\n ]),\n empty: _withCtx(() => [\n _createVNode(_component_el_empty)\n ]),\n default: _withCtx(() => [\n _renderSlot(_ctx.$slots, \"default\"),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(tableColumns.value, (item) => {\n return (_openBlock(), _createElementBlock(_Fragment, { key: item }, [\n (item.type == 'selection' || item.type == 'index')\n ? (_openBlock(), _createBlock(_component_el_table_column, _mergeProps({ key: 0 }, item, {\n align: item.align ?? 'center',\n \"reserve-selection\": item.type == 'selection',\n \"show-overflow-tooltip\": true\n }), null, 16, [\"align\", \"reserve-selection\"]))\n : _createCommentVNode(\"\", true),\n (item.type === 'expand')\n ? (_openBlock(), _createBlock(_component_el_table_column, _mergeProps({ key: 1 }, item, {\n align: item.align ?? 'center',\n \"show-overflow-tooltip\": true\n }), {\n default: _withCtx((scope) => [\n (item.render)\n ? (_openBlock(), _createBlock(_resolveDynamicComponent(item.render), {\n key: 0,\n row: scope.row\n }, null, 8, [\"row\"]))\n : _renderSlot(_ctx.$slots, item.type, {\n key: 1,\n row: scope.row\n })\n ]),\n _: 2\n }, 1040, [\"align\"]))\n : _createCommentVNode(\"\", true),\n (!item.type && item.prop && item.name !== item.prop)\n ? (_openBlock(), _createBlock(_component_el_table_column, _mergeProps({ key: 2 }, item, {\n align: item.align ?? 'center',\n \"show-overflow-tooltip\": true\n }), {\n default: _withCtx((scope) => [\n (item.prop=='T_wait_audit')\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, _toDisplayString(scope.row[item.prop]==true?'待审核':''), 1))\n : _createCommentVNode(\"\", true),\n (item.ellipsis)\n ? (_openBlock(), _createBlock(_component_el_tooltip, {\n key: 1,\n effect: \"dark\",\n content: scope.row[item.prop],\n placement: \"bottom\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(scope.row[item.prop]), 1)\n ]),\n _: 2\n }, 1032, [\"content\"]))\n : _createCommentVNode(\"\", true),\n (item.fixed)\n ? _renderSlot(_ctx.$slots, item.fixed, {\n key: 2,\n row: scope.row\n })\n : _createCommentVNode(\"\", true)\n ]),\n _: 2\n }, 1040, [\"align\"]))\n : _createCommentVNode(\"\", true),\n (!item.type && item.prop && item.name === item.prop)\n ? (_openBlock(), _createBlock(_component_el_table_column, _mergeProps({ key: 3 }, item, {\n align: item.align ?? 'center',\n \"show-overflow-tooltip\": true\n }), {\n default: _withCtx((scope) => [\n _renderSlot(_ctx.$slots, item.prop, {\n row: scope.row\n })\n ]),\n _: 2\n }, 1040, [\"align\"]))\n : _createCommentVNode(\"\", true)\n ], 64))\n }), 128))\n ]),\n _: 3\n }, 8, [\"data\", \"onRowClick\", \"onSelectionChange\", \"row-key\", \"border\", \"row-style\"])), [\n [_directive_loading, _unref(loading)]\n ]),\n _createElementVNode(\"div\", _hoisted_3, [\n (_ctx.pagination)\n ? (_openBlock(), _createBlock(_component_el_pagination, {\n key: 0,\n \"current-page\": _unref(pageable).pageNum,\n \"onUpdate:currentPage\": _cache[0] || (_cache[0] = ($event: any) => ((_unref(pageable).pageNum) = $event)),\n \"page-size\": _unref(pageable).pageSize,\n \"onUpdate:pageSize\": _cache[1] || (_cache[1] = ($event: any) => ((_unref(pageable).pageSize) = $event)),\n layout: props.layout,\n total: _unref(pageable).total,\n \"page-sizes\": [8, 10, 20, 50],\n onSizeChange: _unref(handleSizeChange),\n onCurrentChange: _unref(handleCurrentChange)\n }, null, 8, [\"current-page\", \"page-size\", \"layout\", \"total\", \"onSizeChange\", \"onCurrentChange\"]))\n : _createCommentVNode(\"\", true)\n ])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n","import script from \"./table.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./table.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./table.vue?vue&type=style&index=0&id=588e57b4&lang=scss\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, unref as _unref, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"personalInfo\" }\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"div\", { style: {\"display\":\"flex\",\"align-items\":\"center\"} }, [\n /*#__PURE__*/_createElementVNode(\"p\", null, \"单位(栋)\"),\n /*#__PURE__*/_createElementVNode(\"div\", { style: {\"display\":\"flex\",\"align-items\":\"center\",\"margin\":\"0 30px\"} }, [\n /*#__PURE__*/_createElementVNode(\"div\", { style: {\"width\":\"15px\",\"height\":\"15px\",\"border-radius\":\"50%\",\"background\":\"#2251f7\"} }),\n /*#__PURE__*/_createElementVNode(\"p\", { style: {\"margin-left\":\"10px\"} }, \"楼宇数量\")\n ]),\n /*#__PURE__*/_createElementVNode(\"div\", { style: {\"display\":\"flex\",\"align-items\":\"center\"} }, [\n /*#__PURE__*/_createElementVNode(\"div\", { style: {\"width\":\"15px\",\"height\":\"15px\",\"border-radius\":\"50%\",\"background\":\"#fd8c38\"} }),\n /*#__PURE__*/_createElementVNode(\"p\", { style: {\"margin-left\":\"10px\"} }, \"写字楼数量\")\n ])\n], -1)\n\nimport tables from \"@/components/table.vue\";\nimport cards from '@/components/card.vue'\n\nimport { CompanyTree } from \"@/api/index\";\nimport { ref } from \"vue\";\nimport type { TabsPaneContext } from 'element-plus'\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'index',\n setup(__props) {\n\nconst tabData = [\n { name: 'first', label: '血液制品名称' },\n { name: 'first1', label: '生产企业' },\n { name: 'first2', label: '规格' },\n { name: 'first3', label: '剂型' },\n { name: 'first4', label: '单位' },\n]\nconst activeName = ref('first')\n// 渲染表格\nconst columns: any = [\n { type: 'index', label: '编号', width: 80, },\n { prop: 'T_D_name', label: '名称', width: 200 },\n { prop: 'operation', label: '操作', fixed: 'right', 'min-width': 200 }\n]\n//请求参数\nconst initParam = { T_name: '' }\nconst handleClick = (tab: TabsPaneContext, event: Event) => {\n console.log(tab, event)\n}\n\n\nreturn (_ctx: any,_cache: any) => {\n const _component_el_button = _resolveComponent(\"el-button\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(cards, null, {\n \"card-tit\": _withCtx(() => [\n _hoisted_2\n ]),\n \"card-subhead\": _withCtx(() => [\n _createTextVNode(\"血液制品名称\")\n ]),\n \"card-content\": _withCtx(() => [\n _createVNode(tables, {\n requestApi: _unref(CompanyTree),\n columns: columns,\n initParam: initParam\n }, {\n right: _withCtx(({ row }) => [\n _createVNode(_component_el_button, {\n link: \"\",\n type: \"primary\",\n size: \"small\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"编辑\")\n ]),\n _: 1\n }),\n _createVNode(_component_el_button, {\n link: \"\",\n type: \"danger\",\n size: \"small\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"删除\")\n ]),\n _: 1\n })\n ]),\n _: 1\n }, 8, [\"requestApi\"])\n ]),\n _: 1\n })\n ]))\n}\n}\n\n})","\n\n\n\n","import script from \"./index.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./index.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./index.vue?vue&type=style&index=0&id=ccc58d14&lang=scss\"\n\nconst __exports__ = script;\n\nexport default __exports__"],"names":["class","_createBlock","_component_el_card","header","_withCtx","_createElementVNode","_hoisted_1","_createVNode","_component_el_text","_renderSlot","_ctx","$slots","tag","script","__exports__","render","useTable","requestApi","initParam","isPagination","dataCallback","state","reactive","tableData","loading","pageable","pageNum","pageSize","total","RemainingTime","small","disabled","searchParam","searchInitParam","totalParam","getTableList","async","params","page","then","res","data","list","parseInt","count","Data","handleSizeChange","val","handleCurrentChange","searchTable","toRefs","_hoisted_2","key","style","_hoisted_3","_defineComponent","__name","props","columns","default","title","pagination","type","Boolean","layout","border","toolButton","selectId","displayHeader","rowClick","selectionChange","getRowKey","tableRowClassName","size","width","height","maxHeight","fit","stripe","rowKey","context","showHeader","showSummary","sumText","summaryMethod","rowClassName","rowStyle","cellClassName","cellStyle","headerRowClassName","headerRowStyle","headerCellClassName","headerCellStyle","highlightCurrentRow","currentRowKey","emptyText","expandRowKeys","defaultExpandAll","defaultSort","tooltipEffect","tooltipOptions","spanMethod","selectOnIndeterminate","indent","treeProps","lazy","load","className","tableLayout","scrollbarAlwaysOn","flexible","showOverflowTooltip","Object","setup","__props","expose","__expose","tableColumns","ref","_cache","_component_el_table_column","_resolveComponent","_component_el_tooltip","_component_el_empty","_component_el_table","_component_el_pagination","_directive_loading","_resolveDirective","_openBlock","_createElementBlock","_withDirectives","_unref","onRowClick","onSelectionChange","append","empty","_Fragment","_renderList","value","item","_mergeProps","align","_createCommentVNode","scope","_resolveDynamicComponent","row","_","prop","name","_toDisplayString","ellipsis","effect","content","placement","_createTextVNode","fixed","$event","onSizeChange","onCurrentChange","label","T_name","_component_el_button","cards","tables","CompanyTree","right","link"],"sourceRoot":""}