{"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\\Mobile\\Manage\\MobileMaterialStock.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\views\\Mobile\\Manage\\MobileMaterialStock.vue","mtime":1688109363933},{"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.array.find\";\nimport \"core-js/modules/es6.function.name\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 VanDatePicker from \"../components/VanDatePicker.vue\";\nimport moment from 'moment';\nimport CommonApi from '@/views/Manage/CommonApi.js';\nimport DingMaterialApi from '@/views/Mobile/Manage/api/DingMaterialApi.js';\nimport quantityManage from '@/views/Manage/material/api/materialQuantityManage.js';\nimport dictContracts from '@/components/dict/DictSelectUtils.js';\nexport default {\n components: {\n VanDatePicker: VanDatePicker\n },\n name: 'MobileMaterialStock',\n data: function data() {\n return {\n value: '',\n startDate: '',\n endDate: '',\n showPicker: false,\n dropdownTitle: '请选择日期',\n popupShow: false,\n minDate: new Date(2020, 0, 1),\n maxDate: new Date(2025, 10, 1),\n currentDate: new Date(),\n warehouses: [],\n // tabActiveName: 'all',\n materialFirstClassList: [],\n tableData: [],\n pageNo: 0,\n querys: [{\n group: 'main',\n operation: 'LIKE',\n parentGroup: '',\n property: 'l.material_name_',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'BETWEEN',\n parentGroup: '',\n property: 'queryMonth',\n relation: 'AND',\n value: ''\n }, {\n group: 'main',\n operation: 'EQUAL',\n parentGroup: '',\n property: 'm.class_Id_',\n relation: 'AND',\n value: ''\n }],\n loading: false,\n finished: false,\n refreshing: false\n };\n },\n mounted: function mounted() {\n var _this = this;\n\n DingMaterialApi.findMaterialClass({\n parent: 'null'\n }, function (res) {\n console.log(res);\n _this.materialFirstClassList = res.map(function (item) {\n return {\n text: item.name,\n value: item.id\n };\n });\n\n _this.materialFirstClassList.unshift({\n text: '全部',\n value: ''\n }); // this.tabActiveName = 'all'\n // this.loadData()\n\n });\n this.warehouses = dictContracts.getDictItemsFromCache('cmgt_ckmc');\n },\n methods: {\n //搜索\n seoBtn: function seoBtn(v) {\n // this.regionMast = 1\n // this.siftActive = '0'\n this.popupShow = true;\n },\n //重置\n resetBtn: function resetBtn() {\n this.querys[1].value = '';\n this.querys[2].value = '';\n this.pageNo = 1;\n this.tableData = [];\n this.loadData();\n this.popupShow = false;\n },\n //确认\n confirmBtn: function confirmBtn() {\n this.pageNo = 1;\n this.tableData = [];\n this.loadData();\n this.popupShow = false;\n },\n //返回\n reviseShowBack: function reviseShowBack() {\n this.popupShow = false;\n },\n //\n confirm: function confirm(value) {\n console.log(value); // console.log(value[0] + '-' + value[1] + ',' + value[3] + '-' + value[4])\n\n this.querys[1].value = [];\n this.querys[1].value.push(value[0] + '-' + value[1]);\n this.querys[1].value.push(value[3] + '-' + value[4]);\n this.showPicker = false;\n },\n //\n cancel: function cancel() {\n this.showPicker = false;\n },\n //\n teamChange: function teamChange() {\n this.pageNo = 1;\n this.tableData = [];\n this.loadData();\n },\n //搜索\n onSearch: function onSearch() {\n this.pageNo = 1;\n this.tableData = [];\n this.loadData();\n },\n // 跳转设备详情\n handleDetail: function handleDetail(item) {\n this.$router.push({\n name: 'MobileMaterialStockDetail',\n query: {\n item: item\n }\n });\n },\n formatter: function formatter(type, val) {\n if (type === 'year') {\n return \"\".concat(val, \"\\u5E74\");\n } else if (type === 'month') {\n return \"\".concat(val, \"\\u6708\");\n }\n\n return val;\n },\n // onTabClick(name, title) {\n // this.pageNo = 1\n // if (name !== 'all') {\n // this.querys[1].value = name\n // } else {\n // this.querys[1].value = ''\n // }\n // this.tableData = []\n // this.loadData()\n // },\n onRefresh: function onRefresh() {\n var _this2 = this;\n\n setTimeout(function () {\n _this2.refreshing = true;\n _this2.pageNo = 1;\n _this2.tableData = [];\n\n _this2.loadData();\n }, 500);\n },\n // 分页查询物资信息\n loadData: function loadData() {\n var _this3 = this;\n\n var queryParam = {\n pageBean: {\n pageSize: -1,\n page: this.pageNo\n },\n params: {},\n querys: []\n }; // this.tableData = []\n\n queryParam.querys = [];\n\n if (this.querys[0].value) {\n queryParam.querys.push(this.querys[0]);\n }\n\n if (this.querys[1].value) {\n queryParam.querys.push(this.querys[1]);\n }\n\n if (this.querys[2].value) {\n queryParam.querys.push(this.querys[2]);\n } // this.loading = false\n // this.finished = false\n // console.log('=======queryParam==========', queryParam)\n // /manager/aaeilmrt / quantity / inventoryQuery\n\n\n DingMaterialApi.inventoryQuery(queryParam, function (res) {\n // console.log('=======materialQuantityQuery==========', res)\n if (res.rows.length !== 0) {\n _this3.tableData = res.rows;\n console.log(_this3.tableData); // res.rows.forEach(e => {\n // this.tableData.push(e)\n // })\n } else {\n _this3.finished = true;\n }\n\n _this3.finished = true;\n setTimeout(function () {\n //code\n _this3.refreshing = false;\n }, 1000); // this.loading = false\n // this.refreshing = false\n });\n },\n onLoad: function onLoad() {\n // console.log('=======onLoad==========')\n this.pageNo++;\n this.loading = true;\n this.loadData();\n },\n formartWarehouseName: function formartWarehouseName(row) {\n // console.log('=======formartWarehouseName==========')\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 }\n};",null]}