{"remainingRequest":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\ljzc-fvue\\src\\views\\FixedAsset\\FixedAssetsLedger\\AssetInformation\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\src\\views\\FixedAsset\\FixedAssetsLedger\\AssetInformation\\index.vue","mtime":1701943659846},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\ljzc-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport _defineProperty from \"D:/jenkins/workspace/ljzc-fvue/node_modules/@babel/runtime/helpers/esm/defineProperty\";\nimport _objectWithoutProperties from \"D:/jenkins/workspace/ljzc-fvue/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 pagination from '@/components/pagination';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport utils from '@/utils.js';\nimport detailDialog from \"./components/detailDialog.vue\";\nimport editAddDialog from \"./components/editAddDialog.vue\";\nimport SuperSearch from '@/components/SuperSearch/index.vue';\nimport api from '@/api/FixedAsset/FixedAssetsLedger/AssetInformation.js';\nimport treeSide from '@/components/treeSide/index.vue';\nexport default {\n name: 'IndividualCustomers',\n components: {\n SuperSearch: SuperSearch,\n pagination: pagination,\n editAddDialog: editAddDialog,\n detailDialog: detailDialog,\n treeSide: treeSide\n },\n mixins: [TableMixin],\n data: function data() {\n return {\n tableMaxHeight: '600px',\n loading: false,\n tableLoading: false,\n componentName: 'table',\n treeData: [],\n //左边树\n fixedData: [],\n orgData: [],\n tabList: ['资产类型', '公司'],\n //左边tab\n defaultProps: {\n children: 'children',\n label: 'name' // value: 'id'\n\n },\n tableData: [],\n multipleSelection: [],\n queryParams: {\n page: 1,\n pageSize: 20,\n total: 0,\n typeId: '',\n belongsOrgId: '',\n projectName: '',\n projectCode: '',\n projectBelong: [],\n projectNature: [],\n projectSrc: [],\n projectType: []\n },\n searchForm: {},\n // 顶部搜索对象\n currentDataDel: [],\n sorter: [{\n direction: 'DESC',\n property: 'createTime'\n }],\n basisOption: [{\n itemLabel: '计量单位',\n itemProp: 'unit',\n itemType: 'checkbox',\n searchType: 'basic',\n labelWidth: '100px',\n option: []\n }, {\n itemLabel: '资产名称',\n itemProp: 'name',\n itemType: 'input',\n labelWidth: '90px',\n searchType: 'advance'\n }, {\n itemLabel: '资产编码',\n itemProp: 'code',\n itemType: 'input',\n labelWidth: '90px',\n searchType: 'advance'\n }, {\n itemLabel: '资产型号',\n itemProp: 'model',\n itemType: 'input',\n labelWidth: '90px',\n searchType: 'advance'\n }, {\n itemLabel: '生产厂商',\n itemProp: 'manufacturer',\n itemType: 'input',\n labelWidth: '90px',\n searchType: 'advance'\n }]\n };\n },\n created: function created() {\n this.basisOption[0].option = utils.getDictItemsFromCache('assetUnit');\n this.getUserOrgTree();\n this.getFixedTree();\n this.loadData();\n },\n mounted: function mounted() {\n var _this = this;\n\n this.calcTableHeight();\n this.$root.$on('resize', function () {\n _this.calcTableHeight(500);\n });\n },\n computed: {\n // 加工为后端需要的请求格式\n computedQuery: function computedQuery() {\n /*\r\n * 定义 escapeOpt 字段对应字典名 对象\r\n * 为重新加工结构赋值的新请求配置参数\r\n * */\n var querys = [{\n operation: 'IN',\n property: 'unit',\n relation: 'AND'\n }, {\n operation: 'LIKE',\n property: 'name',\n relation: 'AND'\n }, {\n operation: 'LIKE',\n property: 'code',\n relation: 'AND'\n }, {\n operation: 'LIKE',\n property: 'manufacturer',\n relation: 'AND'\n }, {\n operation: 'LIKE',\n property: 'model',\n relation: 'AND'\n }, {\n operation: 'EQUAL',\n property: 'belongsOrgId',\n relation: 'AND'\n }, {\n operation: 'EQUAL',\n property: 'typeId',\n relation: 'AND'\n }];\n\n var _this$queryParams = this.queryParams,\n pageSize = _this$queryParams.pageSize,\n page = _this$queryParams.page,\n item = _objectWithoutProperties(_this$queryParams, [\"pageSize\", \"page\"]);\n\n return {\n pageBean: {\n pageSize: pageSize,\n page: page\n },\n querys: querys.flatMap(function (i) {\n var value = item[i.property];\n if (Array.isArray(value) && !value.length) return [];\n if (value === '') return [];\n return _objectSpread(_objectSpread({\n group: 'main'\n }, i), {}, {\n value: value\n });\n }),\n sorter: this.sorter.filter(function (i) {\n return i.direction !== '';\n })\n };\n }\n },\n methods: {\n //关闭组件\n closeComponent: function closeComponent(row) {\n this.componentName = 'table';\n this.loadData();\n },\n //字典翻译\n getDictName: function getDictName(code, value) {\n return utils.getDictName(code, value);\n },\n //获取资产类型\n getFixedTree: function getFixedTree() {\n var _this2 = this;\n\n api.getFixedTree({}, function (res) {\n console.log(res);\n\n if (res.state) {\n _this2.fixedData = res.value;\n _this2.treeData = res.value;\n }\n });\n },\n //获取组织树\n getUserOrgTree: function getUserOrgTree() {\n var _this3 = this;\n\n var curUserDetail = this.$store.state.user.currentUserDetail;\n var orgId = curUserDetail.org[0].orgId;\n api.getUserOrgTree(orgId, function (res) {\n if (res) {\n _this3.orgData = res;\n }\n });\n },\n //获取数据\n loadData: function loadData() {\n var _this4 = this;\n\n this.tableLoading = true;\n api.queryData(this.computedQuery, function (res) {\n if (res.rows) {\n _this4.tableData = res.rows;\n _this4.queryParams.total = res.total;\n _this4.tableLoading = false;\n }\n });\n },\n //左边树节点\n currentChange: function currentChange(value, data) {\n this.queryParams.belongsOrgId = '';\n this.queryParams.typeId = '';\n console.log(value);\n\n if (value) {\n if (value.pathName) {\n this.queryParams.belongsOrgId = value.id;\n } else {\n this.queryParams.typeId = value.id;\n }\n }\n\n this.loadData();\n },\n //左边树tab\n tabChange: function tabChange(tab) {\n if (tab.label === '资产类型') {\n this.treeData = this.fixedData;\n } else if (tab.label === '公司') {\n this.treeData = this.orgData;\n }\n },\n //左边树搜索\n filterChange: function filterChange(val) {},\n //添加\n handleAdd: function handleAdd() {\n this.componentName = 'editAddDialog';\n this.$refs.editAddDialog.addModifyBtn();\n },\n //详情\n detailBtn: function detailBtn(row) {\n this.componentName = 'detailDialog';\n this.$refs.detailDialog.detail(row);\n },\n // 删除\n handleDelete: function handleDelete(val) {\n var _this5 = this;\n\n var ids;\n\n if (val) {\n ids = val.id;\n } else {\n ids = this.currentDataDel.join();\n }\n\n this.$confirm('确定删除选中数据吗?', '提示', {\n confirmButtonText: '确认',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(function () {\n api.deleteData(ids, function (res) {\n if (res.state) {\n _this5.$message.success('删除成功');\n\n _this5.loadData();\n }\n });\n });\n },\n //修改\n handleDbClick: function handleDbClick(row) {\n this.componentName = 'editAddDialog';\n this.$refs.editAddDialog.addModifyBtn(row);\n },\n // 顶部搜索\n handleSearch: function handleSearch(data) {\n this.queryParams = data;\n this.loadData();\n },\n // 指定一个key标识这一行的数据\n getRowKey: function getRowKey(row) {\n return row.id;\n },\n //表格选中\n handleSelectionChange: function handleSelectionChange(val) {\n this.currentDataDel = val.map(function (item) {\n return item.id;\n });\n },\n //分页页数\n handleCurrentChange: function handleCurrentChange(page) {\n this.queryParams.page = page;\n this.loadData();\n },\n //分页大小\n handleSizeChange: function handleSizeChange(pageSize) {\n this.queryParams.pageSize = pageSize;\n this.loadData();\n }\n }\n};",null]}