{"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\\components\\SelectQuantityMaterialDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Manage\\material\\components\\SelectQuantityMaterialDialog.vue","mtime":1667545183145},{"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/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//\nimport quantityManage from '@/views/Manage/material/api/materialQuantityManage.js';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport dictContracts from '@/components/dict/DictSelectUtils.js';\nexport default {\n name: 'QuantityMaterialManage',\n components: {},\n mixins: [TableMixin],\n data: function data() {\n return {\n titles: '',\n tableData: [],\n showDia: false,\n treeData: [{\n code: '0',\n id: 0,\n typeName: '物资分类信息',\n parentId: 0,\n children: []\n }],\n defaultProps: {\n value: 'id',\n label: 'typeName',\n parentId: 'parentId',\n code: 'code',\n children: 'children'\n },\n data: [],\n treeNode: {\n code: '0',\n id: 0,\n typeName: '物资分类信息',\n parentId: 0,\n children: []\n },\n updateTreeNode: null,\n url: {},\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'name_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: '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 materialSelection: []\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 this.getTreen();\n },\n methods: {\n // 树查询\n getTreen: function getTreen() {\n var _this = this;\n\n quantityManage.loadAllClass({}, function (res) {\n _this.treeData[0].children = res;\n\n _this.$set(_this.treeData);\n });\n },\n reload: function reload() {\n this.treeData = [{\n code: '',\n id: 0,\n typeName: '物资管理',\n parentId: 0,\n children: []\n }];\n this.$set(this.treeData);\n this.getTreen(); // 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 = [];\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(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 handleSelectChange: function handleSelectChange(val) {\n this.materialSelection = val;\n },\n handleClose: function handleClose() {\n this.materialSelection = [];\n this.$refs.multipleSelection.clearSelection(); // done()\n\n this.showDia = false;\n },\n saveMaterial: function saveMaterial() {\n // 获取选中数据\n var materials = [];\n this.materialSelection.forEach(function (r) {\n materials.push({\n quantity: 0,\n availableQuantity: r.quantity,\n name: r.cmgtMaterialInfo.name,\n memo: '',\n id: null,\n price: 0,\n amount: 0,\n warehouseInoutId: null,\n materialInfoId: r.mid,\n supplier: '',\n unit: r.cmgtMaterialInfo.unit,\n model: r.cmgtMaterialInfo.model,\n description: r.id // 库存id\n\n });\n });\n this.$emit('saveSelectMaterial', materials);\n this.$refs.multipleSelection.clearSelection(); // this.showDia = false\n },\n checkSelectable: function checkSelectable(row) {\n return row.quantity > 0;\n }\n }\n};",null]}