{"remainingRequest":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\material\\MaterialAccoutManager.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\material\\MaterialAccoutManager.vue","mtime":1686706098958},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.number.constructor\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/es6.array.find\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport { dragControllerDiv } from \"./api/dragControllerDiv\";\nimport quantityManage from '@/views/Manage/material/api/materialQuantityManage.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport dictContracts from '@/components/dict/DictSelectUtils.js';\nimport ebsTreeSelect from '@/views/Manage/components/SelectTree.vue';\nexport default {\n name: 'MaterialAccoutManage',\n components: {\n ebsTreeSelect: ebsTreeSelect\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n flowData: {\n pageBean: {\n page: 1,\n pageSize: 10,\n showTotal: true\n },\n querys: [],\n sorter: [{\n direction: 'ASC',\n property: 'forTheDate'\n }]\n },\n flowTotal: '',\n getQuantityID: '',\n titles: '',\n search: '',\n tableData: [],\n detailsData: [],\n detailDialogVisible: false,\n showFormDias: false,\n treeData: [{\n code: '0',\n id: 0,\n name: '物资分类信息',\n parentId: 0,\n children: []\n }],\n defaultProps: {\n value: 'id',\n label: 'name',\n parentId: 'parentId',\n code: 'code',\n children: 'children'\n },\n data: [],\n treeNode: {\n code: '0',\n id: 0,\n name: '物资分类信息',\n parentId: 0,\n children: []\n },\n updateTreeNode: null,\n url: {},\n flowQuerys: [{\n group: 'main',\n operation: 'BETWEEN',\n parentGroup: '',\n property: 'forTheDate',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'inoutName',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'inoutType',\n relation: 'AND',\n value: ''\n }],\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'm.name_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'q.warehouse_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'manufacturer_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'class_Id_',\n relation: 'AND',\n value: ''\n }],\n warehouses: []\n };\n },\n watch: {\n filterText: function filterText(val) {\n // console.log(val)\n this.$refs.tree.filter(val);\n }\n },\n created: function created() {\n this.warehouses = dictContracts.getDictItemsFromCache('cmgt_ckmc');\n },\n mounted: function mounted() {\n dragControllerDiv();\n this.$refs['tree'].setCurrentKey('物资分类信息');\n this.getTreen();\n },\n methods: {\n flowhandleSizeChange: function flowhandleSizeChange(val) {\n this.flowData.pageBean.pageSize = val;\n this.getQuantityList();\n },\n flowhandleCurrentChange: function flowhandleCurrentChange(val) {\n this.flowData.pageBean.page = val;\n this.getQuantityList();\n },\n //出入库明细重置\n flowReset: function flowReset() {\n this.flowQuerys[0].value = '';\n this.flowQuerys[1].value = '';\n this.flowQuerys[2].value = ''; // this.$refs.getQuantityBtn.$el.click()\n\n this.getQuantityList();\n },\n //出入库明细搜索\n flowSearch: function flowSearch() {\n // this.$refs.getQuantityBtn.$el.click()\n this.getQuantityList();\n },\n handleClose: function handleClose() {\n this.detailDialogVisible = false;\n },\n // 树查询\n getTreen: function getTreen() {\n var _this = this;\n\n quantityManage.loadAllClass({}, function (res) {\n console.log(res);\n _this.treeData[0].children = res.value;\n\n _this.$set(_this.treeData);\n });\n },\n reload: function reload() {\n this.treeData = [{\n code: '',\n id: 0,\n name: '物资管理',\n parentId: 0,\n children: []\n }];\n this.$set(this.treeData);\n this.getTreen();\n this.loadData();\n },\n // 重置\n clearQuerys: function clearQuerys() {\n this.querys[0].value = '';\n this.querys[1].value = '';\n this.querys[2].value = '';\n },\n // 分页查询物资信息\n loadData: function loadData(page) {\n var _this2 = this;\n\n if (page) {\n this.queryParam.pageBean.page = page;\n }\n\n this.loading = true;\n this.tableData = [];\n this.queryParam.querys = []; // this.queryParam.sorter = [\n // {\n // direction: 'ASC',\n // property: 'sn'\n // }\n // ]\n\n if (this.querys[0].value) {\n this.queryParam.querys.push(this.querys[0]);\n }\n\n if (this.querys[1].value) {\n this.queryParam.querys.push(this.querys[1]);\n }\n\n if (this.querys[2].value) {\n this.queryParam.querys.push(this.querys[2]);\n }\n\n if (this.querys[3].value) {\n this.queryParam.querys.push(this.querys[3]);\n }\n\n quantityManage.materialQuantityQuery(this.queryParam).then(function (res) {\n console.log('=======materialQuantityQuery==========', res);\n _this2.total = res.total;\n _this2.tableData = res.rows;\n\n _this2.$set(_this2.tableData);\n\n _this2.loading = false;\n });\n },\n handleNodeClick: function handleNodeClick(data) {\n // 点击分类树节点\n this.treeNode = data;\n\n if (data.id == '0') {\n this.querys[3].value = this.treeNode.id;\n this.loadData(1);\n } else {\n this.querys[3].value = this.treeNode.id;\n this.loadData(1);\n }\n },\n formartWarehouseName: function formartWarehouseName(row, column, cellValue, index) {\n var obj = this.warehouses.find(function (item) {\n if (item.value === row.warehouse) {\n return item;\n }\n });\n\n if (obj !== undefined) {\n return obj.name;\n } else {\n return '';\n }\n },\n getQuantityList: function getQuantityList() {\n var _this3 = this;\n\n this.flowData.querys = [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'materialId',\n relation: 'AND',\n value: this.getQuantityID\n }];\n\n if (this.flowQuerys[0].value) {\n this.flowData.querys.push(this.flowQuerys[0]);\n }\n\n if (this.flowQuerys[1].value) {\n this.flowData.querys.push(this.flowQuerys[1]);\n }\n\n if (this.flowQuerys[2].value) {\n this.flowData.querys.push(this.flowQuerys[2]);\n } // console.log(flowData)\n\n\n quantityManage.flowLogQuery(this.flowData, function (res) {\n console.log(res);\n res.rows.map(function (item) {\n item.inoutType = item.inoutType == '1' ? '签收入库' : '出库领用';\n });\n _this3.flowTotal = res.total;\n _this3.detailsData = res.rows;\n\n _this3.$set(_this3.detailsData);\n\n _this3.detailDialogVisible = true;\n });\n },\n getQuantityDetail: function getQuantityDetail(row) {\n console.log(row);\n this.getQuantityID = row.id;\n this.getQuantityList();\n },\n // formatterTypeName(row, column, cellValue, index) {\n // if (row.type == '0') {\n // return '入库'\n // }\n // if (row.type == '1') {\n // return '领用'\n // }\n // },\n formatterDate: function formatterDate(row, column, cellValue, index) {\n var date = new Date(row.inoutDate);\n var month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1;\n var currentDate = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();\n return date.getFullYear() + '-' + month + '-' + currentDate;\n },\n getSummaries: function getSummaries(param) {\n var columns = param.columns,\n data = param.data;\n var sums = [];\n columns.forEach(function (column, index) {\n if (index === 0) {\n sums[index] = '总计';\n return;\n }\n\n if (index === 1 || index === 2 || index === 3 || index === 6) {\n sums[index] = '';\n return;\n }\n\n var values = data.map(function (item) {\n if (index === 4 && item.type === '0') {\n return Number(item[column.property]);\n } else if (index === 5 && item.type === '1') {\n return Number(item[column.property]);\n } else {\n return 0;\n }\n });\n\n if (!values.every(function (value) {\n return isNaN(value);\n })) {\n sums[index] = values.reduce(function (prev, curr) {\n var value = Number(curr);\n\n if (!isNaN(value)) {\n return prev + curr;\n } else {\n return prev;\n }\n }, 0);\n sums[index] += '';\n } else {\n sums[index] = 'N/A';\n }\n });\n return sums;\n }\n }\n};",null]}