{"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\\eslint-loader\\index.js??ref--13-0!D:\\jenkins\\workspace\\bzzgj-fvue\\src\\api\\device\\relationContract.js","dependencies":[{"path":"D:\\jenkins\\workspace\\bzzgj-fvue\\src\\api\\device\\relationContract.js","mtime":1667545180588},{"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\\eslint-loader\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import req from '@/request.js';\nvar portal = window.context.portal;\nexport default {\n // 获取单位供应商\n getSupplier: function getSupplier(data, cb) {\n req.post(portal + \"/device/base/company/findAll\", data).then(function (res) {\n cb(res.data);\n });\n },\n // 获取产品\n getProduct: function getProduct(data, cb) {\n req.post(portal + \"/device/product/info/findAll\", data).then(function (res) {\n cb(res.data);\n });\n },\n // 获取产品分类\n getProductTree: function getProductTree(data, cb) {\n req.post(portal + \"/device/product/type/getTree\", data).then(function (res) {\n cb(res.data);\n });\n },\n // 获取设备列表\n deviceInfo: function deviceInfo(data, cb) {\n req.post(portal + \"/device/info/findAll\", data).then(function (res) {\n cb(res.data);\n });\n },\n // 保存关联设备\n save: function save(data, cb) {\n req.post(portal + \"/device/relation/contract/bindDevice\", data).then(function (res) {\n cb(res.data);\n });\n },\n // 修改关联设备\n updated: function updated(data, cb) {\n req.post(portal + \"/device/relation/contract/\", data).then(function (res) {\n cb(res.data);\n });\n },\n // 分页查询合同关联设备\n loadContract: function loadContract(data, cb) {\n req.post(portal + \"/device/relation/contract/findByPage\", data).then(function (res) {\n cb(res.data);\n });\n },\n // 查询合同已关联设备\n getDeviceList: function getDeviceList(data, cb) {\n req.post(portal + \"/device/relation/contract/getDeviceList\", data).then(function (res) {\n cb(res.data);\n });\n },\n AllproductType: function AllproductType(data) {\n return new Promise(function (resolve, reject) {\n req.post(portal + \"/device/product/type/getAllTree\", data).then(function (resp) {\n resolve(resp.data);\n }, function (error) {\n reject(error);\n });\n });\n }\n};",null]}