{"version":3,"sources":["webpack:///./src/views/supplierquery/record.vue?ff79","webpack:///./src/views/supplierquery/index.vue?1459","webpack:///./src/api/supplier/index.ts","webpack:///./src/views/supplierquery/record.vue?4f64","webpack:///./src/views/supplierquery/record.vue","webpack:///./src/views/supplierquery/record.vue?43a3","webpack:///./src/views/supplierquery/index.vue","webpack:///./src/views/supplierquery/index.vue?a047"],"names":["_hoisted_1","_hoisted_2","render","_ctx","_cache","$props","$setup","$data","$options","_component_el_input","_component_el_col","_component_el_button","_component_el_row","_component_el_table_column","_component_el_table","_component_el_pagination","_component_Record","_directive_loading","gutter","default","xs","sm","class","modelValue","jsm","$event","placeholder","size","_","type","onClick","search","id","data","goodslist","slice","currentPage","pagesize","border","style","prop","label","width","getUserInfos","userName","key","scope","onGoDetailsClick","row","small","background","layout","total","onCurrentChange","handleCurrentChange","ref","loading","supplierquery","params","request","url","method","_hoisted_3","_component_el_date_picker","_component_el_dialog","title","isShowDialog","span","dwbh","dwm","defaultdate","exportExcel","recordlist","height","formatter","formatDate","name","setup","state","dt","Date","push","getFullYear","getMonth","getDate","openDialog","getrecord","closeDialog","console","log","record","filterstring","sdate","edate","JSON","parse","stringify","success","wb","table_to_book","document","querySelector","wbout","bookType","bookSST","saveAs","Blob","e","column","property","__exports__","components","Record","pm","store","RecordRef","length","gl","a","id_sp","sh","json_to_sheet","book_new","book_append_sheet","userInfos","value"],"mappings":"kHAAA,W,8GCEMA,EAA0B,6BAAiB,MAC3CC,EAA0B,6BAAiB,MAE3C,SAAUC,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,IAAMC,EAAsB,8BAAkB,YACxCC,EAAoB,8BAAkB,UACtCC,EAAuB,8BAAkB,aACzCC,EAAoB,8BAAkB,UACtCC,EAA6B,8BAAkB,mBAC/CC,EAAsB,8BAAkB,YACxCC,EAA2B,8BAAkB,iBAC7CC,EAAoB,8BAAkB,UACtCC,EAAqB,8BAAkB,WAE7C,OAAO,6BAAiB,yBAAc,gC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IAE7B,uBACEjB,SACAY,eACAW,sBACAiB,cACAxB,mBACAoE,aACG,oBAAOrC,MCnEhB,MAAM,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAAS5E,KAErD","file":"js/chunk-8746f134.669bf3ea.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--0-1!./record.vue?vue&type=style&index=0&id=4bb059e0&lang=scss\"","import { resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, createTextVNode as _createTextVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, resolveDirective as _resolveDirective, withDirectives as _withDirectives, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = /*#__PURE__*/_createTextVNode(\"查询\")\nconst _hoisted_2 = /*#__PURE__*/_createTextVNode(\"流向\")\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_el_input = _resolveComponent(\"el-input\")!\n const _component_el_col = _resolveComponent(\"el-col\")!\n const _component_el_button = _resolveComponent(\"el-button\")!\n const _component_el_row = _resolveComponent(\"el-row\")!\n const _component_el_table_column = _resolveComponent(\"el-table-column\")!\n const _component_el_table = _resolveComponent(\"el-table\")!\n const _component_el_pagination = _resolveComponent(\"el-pagination\")!\n const _component_Record = _resolveComponent(\"Record\")!\n const _directive_loading = _resolveDirective(\"loading\")!\n\n return _withDirectives((_openBlock(), _createElementBlock(\"div\", null, [\n _createVNode(_component_el_row, { gutter: 5 }, {\n default: _withCtx(() => [\n _createVNode(_component_el_col, {\n xs: 20,\n sm: 6,\n class: \"mb15\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_el_input, {\n modelValue: _ctx.jsm,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.jsm) = $event)),\n placeholder: \"单位编号/单位名称/单位简称\",\n size: \"small\"\n }, null, 8, [\"modelValue\"])\n ]),\n _: 1\n }),\n _createVNode(_component_el_col, {\n xs: 4,\n sm: 4,\n class: \"mb15\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_el_button, {\n type: \"primary\",\n size: \"small\",\n onClick: $setup.search\n }, {\n default: _withCtx(() => [\n _hoisted_1\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createVNode(_component_el_row, { gutter: 10 }, {\n default: _withCtx(() => [\n _createVNode(_component_el_table, {\n id: \"out-table\",\n data: _ctx.goodslist.slice((_ctx.currentPage-1)*_ctx.pagesize,_ctx.currentPage*_ctx.pagesize),\n border: \"\",\n style: {\"width\":\"100%\"},\n size: \"small\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_el_table_column, {\n prop: \"dwbh\",\n label: \"单位编号\",\n width: \"90px\"\n }),\n _createVNode(_component_el_table_column, {\n prop: \"dwm\",\n label: \"单位名称\",\n width: \"400px\"\n }),\n _createVNode(_component_el_table_column, {\n prop: \"jsm\",\n label: \"单位简称\",\n width: \"200px\"\n }),\n _createVNode(_component_el_table_column, {\n prop: \"cz\",\n label: \"购销类别\",\n width: \"150px\"\n }),\n _createVNode(_component_el_table_column, {\n prop: \"ywybh\",\n label: \"业务员\",\n width: \"150px\"\n }),\n ($setup.getUserInfos.userName!=='admin')\n ? (_openBlock(), _createBlock(_component_el_table_column, {\n key: 0,\n label: \"操作\",\n width: \"50px\"\n }, {\n default: _withCtx((scope) => [\n _createVNode(_component_el_button, {\n size: \"mini\",\n type: \"text\",\n onClick: ($event: any) => ($setup.onGoDetailsClick(scope.row))\n }, {\n default: _withCtx(() => [\n _hoisted_2\n ]),\n _: 2\n }, 1032, [\"onClick\"])\n ]),\n _: 1\n }))\n : _createCommentVNode(\"\", true)\n ]),\n _: 1\n }, 8, [\"data\"])\n ]),\n _: 1\n }),\n _createElementVNode(\"div\", null, [\n _createVNode(_component_el_pagination, {\n currentPage: _ctx.currentPage,\n \"onUpdate:currentPage\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.currentPage) = $event)),\n \"page-size\": _ctx.pagesize,\n \"onUpdate:page-size\": _cache[2] || (_cache[2] = ($event: any) => ((_ctx.pagesize) = $event)),\n \"page-sizes\": [10, 50, 100, 200],\n small: true,\n background: true,\n layout: \"total, sizes, prev, pager, next, jumper\",\n total: _ctx.total,\n onCurrentChange: $setup.handleCurrentChange\n }, null, 8, [\"currentPage\", \"page-size\", \"total\", \"onCurrentChange\"])\n ]),\n _createVNode(_component_Record, { ref: \"RecordRef\" }, null, 512)\n ], 512)), [\n [_directive_loading, _ctx.loading]\n ])\n}","import request from '@/utils/request'\r\n\r\n/**\r\n * 用户登录\r\n * @param params 要传的参数值\r\n * @returns 返回接口数据\r\n */\r\nexport function supplierquery (params: object) {\r\n return request({\r\n url: '/supplier',\r\n method: 'get',\r\n params: params\r\n })\r\n}\r\n","import { toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { style: {\"background\":\"blue\"} }\nconst _hoisted_2 = /*#__PURE__*/_createTextVNode(\"查询\")\nconst _hoisted_3 = /*#__PURE__*/_createTextVNode(\"导出\")\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_el_col = _resolveComponent(\"el-col\")!\n const _component_el_row = _resolveComponent(\"el-row\")!\n const _component_el_date_picker = _resolveComponent(\"el-date-picker\")!\n const _component_el_button = _resolveComponent(\"el-button\")!\n const _component_el_table_column = _resolveComponent(\"el-table-column\")!\n const _component_el_table = _resolveComponent(\"el-table\")!\n const _component_el_dialog = _resolveComponent(\"el-dialog\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createVNode(_component_el_dialog, {\n title: \"流向\",\n modelValue: _ctx.isShowDialog,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.isShowDialog) = $event)),\n \"close-on-click-modal\": false\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", null, [\n _createVNode(_component_el_row, null, {\n default: _withCtx(() => [\n _createVNode(_component_el_col, { span: 8 }, {\n default: _withCtx(() => [\n _createTextVNode(\"单位编号:\" + _toDisplayString(_ctx.row.dwbh), 1)\n ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createVNode(_component_el_row, null, {\n default: _withCtx(() => [\n _createVNode(_component_el_col, { span: 8 }, {\n default: _withCtx(() => [\n _createTextVNode(\"单位名称:\" + _toDisplayString(_ctx.row.dwm), 1)\n ]),\n _: 1\n })\n ]),\n _: 1\n })\n ]),\n _createVNode(_component_el_row, null, {\n default: _withCtx(() => [\n _createVNode(_component_el_col, { span: 8 }, {\n default: _withCtx(() => [\n _createVNode(_component_el_date_picker, {\n modelValue: _ctx.defaultdate,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.defaultdate) = $event)),\n type: \"daterange\",\n \"range-separator\": \"至\",\n \"start-placeholder\": \"开始日期\",\n \"end-placeholder\": \"结束日期\",\n size: \"small\",\n style: {\"width\":\"95%\"}\n }, null, 8, [\"modelValue\"])\n ]),\n _: 1\n }),\n _createVNode(_component_el_col, { span: 16 }, {\n default: _withCtx(() => [\n _createVNode(_component_el_button, {\n type: \"primary\",\n size: \"small\",\n onClick: $setup.search\n }, {\n default: _withCtx(() => [\n _hoisted_2\n ]),\n _: 1\n }, 8, [\"onClick\"]),\n _createVNode(_component_el_button, {\n type: \"primary\",\n size: \"small\",\n onClick: $setup.exportExcel\n }, {\n default: _withCtx(() => [\n _hoisted_3\n ]),\n _: 1\n }, 8, [\"onClick\"])\n ]),\n _: 1\n })\n ]),\n _: 1\n }),\n _createVNode(_component_el_table, {\n id: \"out-recordtable\",\n data: _ctx.recordlist,\n border: \"\",\n style: {\"width\":\"100%\"},\n size: \"small\",\n height: \"80%\"\n }, {\n default: _withCtx(() => [\n _createVNode(_component_el_table_column, {\n formatter: $setup.formatDate,\n prop: \"rq\",\n label: \"日期\",\n width: \"90px\"\n }, null, 8, [\"formatter\"]),\n _createVNode(_component_el_table_column, {\n prop: \"dwbh\",\n label: \"单位编码\",\n width: \"90px\"\n }),\n _createVNode(_component_el_table_column, {\n prop: \"dwm\",\n label: \"单位名\"\n }),\n _createVNode(_component_el_table_column, {\n prop: \"gxbj\",\n label: \"购销标记\",\n width: \"70px\"\n }),\n _createVNode(_component_el_table_column, {\n prop: \"sl\",\n label: \"数量\",\n width: \"60px\"\n }),\n _createVNode(_component_el_table_column, {\n prop: \"dj\",\n label: \"单价\",\n width: \"60px\"\n }),\n _createVNode(_component_el_table_column, {\n prop: \"hsje\",\n label: \"含税金额\",\n width: \"70px\"\n }),\n _createVNode(_component_el_table_column, {\n prop: \"kl\",\n label: \"扣率\",\n width: \"50px\"\n }),\n _createVNode(_component_el_table_column, {\n prop: \"ph\",\n label: \"批号\",\n width: \"200px\"\n }),\n _createVNode(_component_el_table_column, {\n prop: \"fph\",\n label: \"发票号\",\n width: \"100px\"\n })\n ]),\n _: 1\n }, 8, [\"data\"])\n ]),\n _: 1\n }, 8, [\"modelValue\"])\n ]))\n}","\r\nimport { reactive, toRefs } from 'vue'\r\nimport { ElMessage } from 'element-plus'\r\nimport { recordquerybysupplier } from '@/api/record/index'\r\nimport filesaver from 'file-saver'\r\nimport * as XLSX from 'xlsx'\r\nexport default ({\r\n name: 'record',\r\n setup () {\r\n const state:any = reactive({\r\n isShowDialog: false,\r\n defaultdate: [],\r\n recordlist: [],\r\n row: {}\r\n })\r\n\r\n const dt = new Date()\r\n state.defaultdate.push(dt.getFullYear() + '-01-01')\r\n state.defaultdate.push(dt.getFullYear() + '-' + (dt.getMonth() + 1) + '-' + dt.getDate())\r\n // 打开弹窗\r\n const openDialog = (row?: any) => {\r\n state.row = row\r\n getrecord(row)\r\n state.isShowDialog = true\r\n }\r\n // 关闭弹窗\r\n const closeDialog = (row?: object) => {\r\n console.log(row)\r\n state.isShowDialog = false\r\n }\r\n const search = () => {\r\n getrecord(state.row)\r\n }\r\n async function getrecord (row:any) {\r\n state.loading = true\r\n const recordlist = await recordquerybysupplier({ filterstring: row.dwbh, sdate: state.defaultdate[0], edate: state.defaultdate[1] })\r\n state.recordlist = JSON.parse(JSON.stringify(recordlist))\r\n ElMessage.success('查询成功')\r\n }\r\n const exportExcel = () => {\r\n /* out-table关联导出的dom节点 */\r\n var wb = XLSX.utils.table_to_book(document.querySelector('#out-recordtable'))\r\n /* get binary string as output */\r\n var wbout = XLSX.write(wb, { bookType: 'xlsx', bookSST: true, type: 'array' })\r\n try {\r\n filesaver.saveAs(new Blob([wbout], { type: 'application/octet-stream' }), '流向.xlsx')\r\n } catch (e) { if (typeof console !== 'undefined') console.log(e, wbout) }\r\n return wbout\r\n }\r\n const formatDate = (row:any, column:any) => {\r\n // 获取单元格数据\r\n const data = row[column.property]\r\n if (data == null) {\r\n return null\r\n }\r\n const dt = new Date(data)\r\n return dt.getFullYear() + '-' + (dt.getMonth() + 1) + '-' + dt.getDate()\r\n }\r\n // 获取用户信息\r\n return {\r\n openDialog,\r\n closeDialog,\r\n search,\r\n exportExcel,\r\n formatDate,\r\n ...toRefs(state)\r\n }\r\n }\r\n\r\n})\r\n","import { render } from \"./record.vue?vue&type=template&id=4bb059e0&ts=true\"\nimport script from \"./record.vue?vue&type=script&lang=ts\"\nexport * from \"./record.vue?vue&type=script&lang=ts\"\n\nimport \"./record.vue?vue&type=style&index=0&id=4bb059e0&lang=scss\"\n\nimport exportComponent from \"D:\\\\SourceCode\\\\czyycgcx\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\r\nimport { reactive, toRefs, computed, ref } from 'vue'\r\nimport { ElMessage } from 'element-plus'\r\nimport { supplierquery } from '@/api/supplier/index'\r\nimport filesaver from 'file-saver'\r\nimport * as XLSX from 'xlsx'\r\nimport { useStore } from '@/store/index.ts'\r\nimport Record from '@/views/supplierquery/record.vue'\r\nexport default ({\r\n name: 'goodsquery',\r\n components: { Record },\r\n setup () {\r\n const state = reactive({\r\n goodslist: [],\r\n jsm: '',\r\n pm: '',\r\n loading: false,\r\n total: 0,\r\n pagesize: 10,\r\n currentPage: 1,\r\n isShowDialog: false\r\n })\r\n\r\n const store = useStore()\r\n const RecordRef = ref()\r\n\r\n const search = async () => {\r\n state.loading = true\r\n const goodslist = await supplierquery({ filterstring: state.jsm })\r\n state.goodslist = JSON.parse(JSON.stringify(goodslist))\r\n // console.log(state.goodslist)\r\n state.total = state.goodslist.length\r\n state.loading = false\r\n ElMessage.success('查询成功')\r\n }\r\n const handleCurrentChange = (currentPage) => {\r\n state.currentPage = currentPage\r\n }\r\n const exportExcel = () => {\r\n /* out-table关联导出的dom节点 */\r\n // var wb = XLSX.utils.table_to_book(document.querySelector('#out-table'))\r\n const gl = JSON.parse(JSON.stringify(state.goodslist))\r\n for (const key in gl) {\r\n const a:any = gl[key]\r\n delete a.id_sp\r\n }\r\n // console.log(state.goodslist)\r\n // console.log(gl)\r\n const sh = XLSX.utils.json_to_sheet(gl)\r\n var wb = XLSX.utils.book_new()\r\n XLSX.utils.book_append_sheet(wb, sh)\r\n /* get binary string as output */\r\n var wbout = XLSX.write(wb, { bookType: 'xlsx', bookSST: true, type: 'array' })\r\n try {\r\n filesaver.saveAs(new Blob([wbout], { type: 'application/octet-stream' }), '药品信息.xlsx')\r\n } catch (e) { if (typeof console !== 'undefined') console.log(e, wbout) }\r\n return wbout\r\n }\r\n // 获取用户信息\r\n const getUserInfos = computed(() => {\r\n return store.state.userInfos.userInfos\r\n })\r\n const onGoDetailsClick = (row: object) => {\r\n RecordRef.value.openDialog(row)\r\n }\r\n return {\r\n search,\r\n getUserInfos,\r\n handleCurrentChange,\r\n exportExcel,\r\n onGoDetailsClick,\r\n RecordRef,\r\n ...toRefs(state)\r\n }\r\n }\r\n})\r\n","import { render } from \"./index.vue?vue&type=template&id=654c3f88&ts=true\"\nimport script from \"./index.vue?vue&type=script&lang=ts\"\nexport * from \"./index.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"D:\\\\SourceCode\\\\czyycgcx\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"sourceRoot":""}