request.js 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766
  1. import fetch from './fetch'
  2. import { api, physics } from './config'
  3. import http from './httpUtil'
  4. let dataForm = '/data-platform-3'
  5. let arithmetic = '/arithmetic'
  6. // let dataForm = ''
  7. var Comming = 'revit'
  8. var ProjId = 'Pj1101080001'
  9. var UserId = '25518428919955458'
  10. //获取打印标签模板test
  11. export function getTest() {
  12. return fetch({ method: 'GET', url: `${api}/ScanBuilding/service/template/note_template` })
  13. }
  14. //查看扫楼日志接口
  15. export function getBuildLog(
  16. param
  17. ) {
  18. let data = {
  19. "BeginTime": param.startTime,
  20. "Comming": Comming,
  21. "EndTime": param.endTime,
  22. "Filter": param.filter,
  23. "PageNum": param.pageNum,
  24. "PageSize": param.pageSize,
  25. "ProjId": param.ProjId,
  26. "UserId": param.UserId
  27. }
  28. return fetch({ method: 'POST', url: `${api}/ScanBuilding/service/user_log/query`, data })
  29. }
  30. //下载扫楼日志接口
  31. export function dowmloadLog(
  32. param
  33. ) {
  34. let data = {
  35. "BeginTime": param.startTime,
  36. "Comming": Comming,
  37. "EndTime": param.endTime,
  38. "Filter": param.filter,
  39. "ProjId": param.ProjId,
  40. "UserId": param.UserId
  41. }
  42. return fetch({ method: 'POST', url: `${api}/ScanBuilding/service/user_log/export`, data })
  43. }
  44. //获取扫楼用户表格
  45. export function getUser(
  46. param
  47. ) {
  48. let data = {
  49. "Comming": Comming,
  50. "Filter": param.filter,
  51. "PageNum": param.pageNum,
  52. "PageSize": param.pageSize,
  53. "ProjId": param.ProjId,
  54. "UserId": param.UserId
  55. }
  56. return fetch({ method: 'POST', url: `${api}/ScanBuilding/service/user/query`, data })
  57. }
  58. //修改扫楼用户
  59. export function loadUser(
  60. param
  61. ) {
  62. let data = {
  63. "Comming": Comming,
  64. "ProjId": param.ProjId,
  65. "UserId": param.UserId,
  66. "UserList": param.UserList
  67. }
  68. return fetch({ method: 'POST', url: `${api}/ScanBuilding/service/user/update`, data })
  69. }
  70. //删除扫楼用户
  71. export function delUser(
  72. param
  73. ) {
  74. let data = {
  75. "Comming": Comming,
  76. "ProjId": param.ProjId,
  77. "UserId": param.UserId,
  78. "UserList": param.UserList
  79. }
  80. return fetch({ method: 'POST', url: `${api}/ScanBuilding/service/user/delete`, data })
  81. }
  82. //添加扫楼用户
  83. export function addUser(
  84. param
  85. ) {
  86. let data = {
  87. "Comming": Comming,
  88. "ProjId": param.ProjId,
  89. "UserId": param.UserId,
  90. "User": param.User
  91. }
  92. return fetch({ method: 'POST', url: `${api}/ScanBuilding/service/user/create`, data })
  93. }
  94. //根据项目ID获得建筑列表
  95. export function getBuildSelect(param) {
  96. let data = {
  97. "Comming": Comming,
  98. "ProjId": param.ProjId,
  99. "UserId": param.UserId,
  100. }
  101. return fetch({ method: 'POST', url: `${api}/ScanBuilding/service/building/query`, data })
  102. }
  103. //根据建筑ID获取楼层系信息
  104. export function getFloor(param) {
  105. let data = {
  106. "Comming": Comming,
  107. "ProjId": param.ProjId,
  108. "UserId": param.UserId,
  109. "BuildId": param.BuildId
  110. }
  111. return fetch({ method: 'POST', url: `${api}/ScanBuilding/service/building/floor`, data })
  112. }
  113. //获取异常资产接口
  114. export function getErrAssets(param) {
  115. let data = {
  116. "Comming": Comming,
  117. "ProjId": param.ProjId,
  118. "UserId": param.UserId,
  119. "BuildId": param.BuildId,
  120. "PageNum": param.PageNum,
  121. "PageSize": param.PageSize,
  122. "Type": param.Type,
  123. "CodeType": param.CodeType
  124. }
  125. if (param.BuildId == 'all') {
  126. delete data.BuildId
  127. }
  128. if (!param.CodeType) {
  129. delete data.CodeType
  130. }
  131. return fetch({ method: 'POST', url: `${api}/ScanBuilding/service/fm/exception`, data })
  132. }
  133. //删除资产接口
  134. export function delErrAssets(param, paramList) {
  135. let data = {
  136. "Comming": Comming,
  137. "ProjId": param.ProjId,
  138. "UserId": param.UserId,
  139. "FmList": paramList
  140. }
  141. return fetch({ method: 'POST', url: `${api}/ScanBuilding/service/fm/delete`, data })
  142. }
  143. //根据选择的建筑楼层时间查询点位标签
  144. export function getPT(param) {
  145. let data = {
  146. "Comming": Comming,
  147. "BeginTime": param.BeginTime,
  148. "ProjId": param.ProjId,
  149. "UserId": param.UserId,
  150. "BeginTime": param.BeginTime,
  151. "EndTime": param.EndTime,
  152. "BuildId": param.BuildId,
  153. "FloorId": param.FloorId
  154. }
  155. if (data.FloorId == 'all') {
  156. delete data.FloorId
  157. }
  158. return fetch({ method: 'POST', url: `${api}/ScanBuilding/service/fm/point_group`, data })
  159. }
  160. //点位标签查看详情
  161. export function getPoint(param) {
  162. let data = {
  163. "Comming": Comming,
  164. "ProjId": param.ProjId,
  165. "UserId": param.UserId,
  166. "PointId": param.PointId,
  167. }
  168. return fetch({ method: 'POST', url: `${api}/ScanBuilding/service/point/query`, data })
  169. }
  170. //点位标签详情修改
  171. export function updatePoint(param) {
  172. let data = {
  173. "Comming": Comming,
  174. "ProjId": param.ProjId,
  175. "UserId": param.UserId,
  176. "PointList": [param.PointList],
  177. }
  178. return fetch({ method: 'POST', url: `${api}/ScanBuilding/service/point/update`, data })
  179. }
  180. //点击点位标签获取tab设备族列表
  181. export function getTabFamily(param) {
  182. let data = {
  183. "Comming": Comming,
  184. "ProjId": param.ProjId,
  185. "UserId": param.UserId,
  186. "BeginTime": param.BeginTime,
  187. "EndTime": param.EndTime,
  188. "FloorId": param.FloorId,
  189. "Checked": param.Checked,
  190. "BuildId": param.BuildId,
  191. "PointId": param.PointId
  192. }
  193. if (data.PointId == 'all') {
  194. delete data.PointId
  195. }
  196. if (data.FloorId == 'all') {
  197. delete data.FloorId
  198. }
  199. return fetch({ method: 'POST', url: `${api}/ScanBuilding/service/fm/family_list`, data })
  200. }
  201. //获取表格数据的title
  202. export function getTableHeader(param) {
  203. let data = {
  204. "AppType": Comming,
  205. "Code": param.code,
  206. "ProjId": param.ProjId
  207. }
  208. return fetch({ method: 'POST', url: `${api}/ScanBuilding/service/dict/infocode_query`, data })
  209. }
  210. //获取表格主体内容
  211. export function getTableMain(param) {
  212. let data = {
  213. "BeginTime": param.BeginTime,
  214. "BuildId": param.BuildId,
  215. "Checked": param.Checked,
  216. "Comming": Comming,
  217. "EndTime": param.EndTime,
  218. "Family": param.Family,
  219. "FloorId": param.FloorId,
  220. "PageNum": param.PageNum,
  221. "PageSize": param.PageSize,
  222. "PointId": param.PointId,
  223. "ProjId": param.ProjId,
  224. "UserId": param.UserId
  225. }
  226. if (data.PointId == 'all') {
  227. delete data.PointId
  228. }
  229. if (data.Checked === '') {
  230. delete data.Checked
  231. }
  232. return fetch({ method: 'POST', url: `${api}/ScanBuilding/service/fm/query`, data })
  233. }
  234. export function getPointList(param, success) {
  235. let url = `${api}/ScanBuilding/service/point/queryByIdList`
  236. let data = param
  237. data.Comming = Comming
  238. http.postJson(url, data, success)
  239. }
  240. export function getdelMain(param) {
  241. let data = {
  242. "BeginTime": param.BeginTime,
  243. "BuildId": param.BuildId,
  244. "Checked": param.Checked,
  245. "CodeType": param.CodeType,
  246. "Comming": Comming,
  247. "EndTime": param.EndTime,
  248. "Family": param.Family,
  249. "FloorId": param.FloorId,
  250. "PageNum": param.PageNum,
  251. "PageSize": param.PageSize,
  252. "PointId": param.PointId,
  253. "ProjId": param.ProjId,
  254. "UserId": param.UserId
  255. }
  256. if (data.PointId == 'all') {
  257. delete data.PointId
  258. }
  259. if (data.Checked === '') {
  260. delete data.Checked
  261. }
  262. if (data.FloorId == 'all') {
  263. delete data.FloorId
  264. }
  265. return fetch({ method: 'POST', url: `${api}/ScanBuilding/service/fm/queryRevit`, data })
  266. }
  267. export function getTestEquire() {
  268. let data = {
  269. "Comming": "revit",
  270. "FloorId": "Fl110108000327d8f006c39f49feb40e24a7ef223232",
  271. "ProjId": "Pj1101080003",
  272. "UserId": "string"
  273. }
  274. return fetch({ method: 'POST', url: `${api}/ScanBuilding/service/fm/query`, data })
  275. }
  276. //批量更新表格数据
  277. export function upDateTableMain(param, paramList) {
  278. let data = {
  279. "Comming": Comming,
  280. "FmList": paramList,
  281. "ProjId": param.ProjId,
  282. "UserId": param.UserId
  283. }
  284. return fetch({ method: 'POST', url: `${api}/ScanBuilding/service/fm/update`, data })
  285. }
  286. //获取所有设备族/service/dict/equipment_family
  287. export function getAllFamily() {
  288. return fetch({ method: 'GET', url: `${api}/ScanBuilding/service/dict/equipment_family` })
  289. }
  290. //获取当前默认楼层/service/fm/default_floor
  291. export function defaultFloor(param) {
  292. let data = {
  293. "Comming": Comming,
  294. "ProjId": param.ProjId,
  295. "UserId": param.UserId
  296. }
  297. return fetch({ method: 'POST', url: `${api}/ScanBuilding/service/fm/default_floor`, data })
  298. }
  299. //物理世界新建岗位(设备系统)
  300. export function createPost(param) {
  301. let data = {
  302. "building_id": param.BuildId,
  303. "floor_id": param.BIMID,
  304. "equipment_category": param.category,
  305. "infos": {
  306. "BIMID": [
  307. { "value": param.BIMID }
  308. ],
  309. "BIMLocation": [
  310. { "value": param.BIMLocation }
  311. ]
  312. }
  313. }
  314. return fetch({ method: 'POST', url: `${physics}/godhand/equipment/create?projectId=${param.perjectId}&secret=${param.secret}`, data })
  315. }
  316. //物理世界新建岗位(部件)
  317. export function createComponent(param) {
  318. let data = {
  319. "building_id": param.BuildId,
  320. "component_category": param.category,
  321. "floor_id": param.BIMID,
  322. "infos": {
  323. "BIMID": [
  324. { "value": param.BIMID }
  325. ],
  326. "BIMLocation": [
  327. { "value": param.BIMLocation }
  328. ]
  329. }
  330. }
  331. return fetch({ method: 'POST', url: `${physics}${dataForm}/component/create?projectId=${param.perjectId}&secret=${param.secret}`, data })
  332. }
  333. //通过岗位id查询元空间id
  334. export function getSpaceId(param) {
  335. let data = {
  336. "criterias": param.list
  337. }
  338. return fetch({ method: 'POST', url: `${physics}${dataForm}/relation/query?projectId=${param.perjectId}&secret=${param.secret}`, data })
  339. }
  340. //通过元空间id查询元空间名称
  341. export function getSpaceName(param) {
  342. let data = {
  343. "criterias": param.list
  344. }
  345. return fetch({ method: 'POST', url: `${physics}${dataForm}/object/batch_query?projectId=${param.perjectId}&secret=${param.secret}`, data })
  346. }
  347. //设备族修改显示接口
  348. export function setHeader(param) {
  349. let data = {
  350. "Comming": Comming,
  351. "InfoType": param.FamilyId,
  352. "InfopointCode": param.code,
  353. "ProjId": param.perjectId,
  354. "UserId": param.UserId,
  355. "Visible": param.Visible
  356. }
  357. return fetch({ method: 'POST', url: `${api}/ScanBuilding/service/dict/infopoint_visible`, data })
  358. }
  359. //获取头部接口
  360. export function getHeader(param) {
  361. let data = {
  362. "AppType": Comming,
  363. "Code": param.code,
  364. "ProjId": param.perjectId
  365. }
  366. // return fetch({ method: 'POST', url: `${api}/ScanBuilding/service/dict/equipment_family_info_header`, data })
  367. return fetch({ method: 'POST', url: `${api}/ScanBuilding/service/dict/infocode_query_header`, data })
  368. }
  369. /** 业务空间相关 */
  370. // 业务空间
  371. export function getSpaceHeader(param) {
  372. return fetch({ method: 'GET', url: `${physics}${dataForm}/infocode/query_property?projectId=${param.ProjId}&type=${param.code ? param.code : 'space'}&enrich=true` })
  373. }
  374. //获取某个业务空间下的
  375. export function getAllbusiness(param) {
  376. let data = null
  377. if (!!param.id) {
  378. data = {
  379. "criteria": {
  380. "id": param.id,
  381. "type": param.type
  382. }
  383. }
  384. } else {
  385. data = param.data
  386. }
  387. return fetch({ method: "POST", url: `${physics}${dataForm}/object/subset_query?projectId=${param.ProjId}&secret=${param.secret}`, data })
  388. }
  389. //通过BIMID获取物理世界id
  390. export function formBIMToPri(param) {
  391. let data = {
  392. "criteria": {
  393. "type": param.type,
  394. "BIMID": param.ids
  395. }
  396. }
  397. return fetch({ method: "POST", url: `${physics}${dataForm}/fast/object/in_query?projectId=${param.ProjId}&secret=${param.secret}`, data })
  398. }
  399. //获取业务空间楼层的关系
  400. export function getSpaceFloor(param) {
  401. return fetch({ method: "POST", url: `${physics}/business-space/floor/tree?projectId=${param.ProjId}&secret=${param.secret}` })
  402. }
  403. //创建业务空间
  404. export function createBusiness(param) {
  405. let data = param.data
  406. return fetch({ method: "POST", url: `${physics}${dataForm}/space/create?projectId=${param.ProjId}&secret=${param.secret}`, data })
  407. // return fetch({ method: "POST", url: `/test/space/create?projectId=${param.ProjId}&secret=${param.secret}`, data })
  408. }
  409. //批量创建业务空间
  410. export function createBusinessList(param) {
  411. let data = param.data
  412. return fetch({ method: "POST", url: `${physics}${dataForm}/space/batch/create?projectId=${param.ProjId}&secret=${param.secret}`, data })
  413. }
  414. //更新业务空间
  415. export function updateBusiness(param) {
  416. let data = param.data
  417. return fetch({ method: "POST", url: `${physics}${dataForm}/object/batch_update?projectId=${param.ProjId}&secret=${param.secret}`, data })
  418. }
  419. //模糊搜索设备类型
  420. export function searchCode(param) {
  421. let data = param
  422. return fetch({ method: "POST", url: `${physics}${dataForm}/dict/query/equipment_all`, data })
  423. }
  424. //获取所有设备类型
  425. export function getEqCode() {
  426. return fetch({ method: "GET", url: `${physics}${dataForm}/dict/query/equipment_all` })
  427. }
  428. //批量删除业务空间
  429. export function delManySpace(param) {
  430. let data = param.data
  431. return fetch({ method: "POST", url: `${physics}${dataForm}/space/batch/delete?projectId=${param.ProjId}&secret=${param.secret}`, data })
  432. }
  433. //添加关系
  434. export function createRelation(param) {
  435. let data = param.data
  436. return fetch({ method: "POST", url: `${physics}${dataForm}/relation/create?projectId=${param.ProjId}&secret=${param.secret}`, data })
  437. }
  438. //获取图实例关系
  439. export function getGraphyId(param) {
  440. let data = {
  441. "graph_type": param.type
  442. }
  443. return fetch({ method: "POST", url: `${physics}${dataForm}/relation/graph_instance/get?projectId=${param.ProjId}&secret=${param.secret}`, data })
  444. }
  445. //查询业务空间
  446. export function getBussines(param) {
  447. let data = param.data
  448. return fetch({ method: "POST", url: `${physics}${dataForm}/object/outside_query?projectId=${param.ProjId}&secret=${param.secret}`, data })
  449. // return fetch({ method: "POST", url: `/test/object/outside_query?projectId=${param.ProjId}&secret=${param.secret}`, data })
  450. }
  451. //替代前一个接口
  452. export function getBussines2(param) {
  453. let data = param.data
  454. return fetch({ method: "POST", url: `${physics}${dataForm}/fast/object/in_query?projectId=${param.ProjId}&secret=${param.secret}`, data })
  455. }
  456. //查询业务空间下的元空间
  457. export function getRelation(param) {
  458. let data = param.criterias
  459. return fetch({ method: 'POST', url: `${physics}${dataForm}/relation/query?projectId=${param.ProjId}&secret=${param.secret}`, data })
  460. }
  461. //查询业务空间下的设备
  462. export function getSpaceEquip(param) {
  463. let data = param.data
  464. return fetch({ method: 'POST', url: `${physics}/business-space/space/equip/query?projectId=${param.ProjId}&secret=${param.secret}`, data })
  465. }
  466. //删除关系实例
  467. export function deleteRelation(param) {
  468. let data = param.data
  469. return fetch({ method: 'POST', url: `${physics}${dataForm}/relation/delete?projectId=${param.ProjId}&secret=${param.secret}`, data })
  470. }
  471. //查询是否关联元空间的业务空间
  472. export function isSpaceBuss(param) {
  473. let data = param.data
  474. return fetch({ method: 'POST', url: `${physics}/business-space/floor/space/query?projectId=${param.ProjId}&secret=${param.secret}`, data })
  475. }
  476. //查询所有提示
  477. export function getAllMess(param) {
  478. let data = {}
  479. return fetch({ method: 'POST', url: `${physics}${dataForm}/space/affected/query?projectId=${param.ProjId}&secret=${param.secret}`, data })
  480. }
  481. //删除提示
  482. export function deleteNotice(param) {
  483. let data = param.data
  484. return fetch({ method: 'POST', url: `${physics}${dataForm}/space/affected/delete_notice?projectId=${param.ProjId}&secret=${param.secret}`, data })
  485. }
  486. //模糊查询楼层下的设备
  487. export function getEquipSearch(param) {
  488. let data = param.data
  489. return fetch({ method: 'POST', url: `${physics}/business-space/floor/equip/query?projectId=${param.ProjId}&secret=${param.secret}`, data })
  490. }
  491. export function getBussTypes(success) {
  492. http.getJson(`${physics}${dataForm}/infocode/business_space_type/query`, {}, success)
  493. }
  494. export function getBussTypes2() {
  495. return fetch({ method: 'GET', url: `${physics}${dataForm}/infocode/business_space_type/query` })
  496. }
  497. //验证元空间是否相邻
  498. export function isAbut(param) {
  499. let data = param.data
  500. return fetch({ method: 'POST', url: `${physics}/business-space/space/abut?projectId=${param.ProjId}&secret=${param.secret}`, data })
  501. }
  502. /**算法接口 */
  503. export function strDiff(param) {
  504. let data = param
  505. return fetch({ method: 'POST', url: `${arithmetic}/str_diff`, data })
  506. }
  507. /********* 台账部分 厂商库接口 */
  508. //获取供应商列表
  509. export function getManuLib(param, success) {
  510. let data = param
  511. http.postJson(`${physics}venders/supplier/query`, data, success)
  512. }
  513. //查询所有供应商信息
  514. export function getLib(param) {
  515. let data = param
  516. return fetch({ method: 'POST', url: `${physics}/venders/auxiliary/query/all`, data })
  517. }
  518. //查询资产的list
  519. export function getPropertyList(param, success) {
  520. let data = param.data
  521. let url = `${physics}/data-platform-3/property/relation_query?projectId=${param.ProjId}&secret=${param.secret}`
  522. http.postJson(url, data, success)
  523. }
  524. //获取资产种族编码query/equipment_family
  525. export function getEquipmentFamily(success) {
  526. let url = `${physics}/data-platform-3/dict/query/equipment_family`
  527. http.getJson(url, {}, success)
  528. }
  529. //删除资产
  530. export function delProperty(param, success) {
  531. let url = `${physics}/data-platform-3/property/delete?projectId=${param.ProjId}&secret=${param.secret}`
  532. let data = param.data
  533. http.postJson(url, data, success)
  534. }
  535. //获取制定供应商下的供应合同编号
  536. export function getListForSupplier(param, success) {
  537. let url = `${physics}/venders-dp/supplier/contract/query?projectId=${param.ProjId}&secret=${param.secret}`
  538. let data = param.data
  539. http.postJson(url, data, success)
  540. }
  541. //获取保单列表
  542. export function getListForGuarantee(param, success) {
  543. let url = `${physics}/venders-dp/insurance/contract/query`
  544. let data = param.data
  545. http.postJson(url, data, success)
  546. }
  547. //新建保单
  548. export function createGuarantee(param, success) {
  549. let url = `${physics}/venders/insurance/contract/create `
  550. let data = param.data
  551. http.postJson(url, data, success)
  552. }
  553. //创建资产
  554. export function createProperty(param, success) {
  555. let url = `${physics}${dataForm}/property/create?projectId=${param.ProjId}&secret=${param.secret}`
  556. let data = param.data
  557. http.postJson(url, data, success)
  558. }
  559. //获取项目内[岗位]和[绑定岗位的资产]的数量
  560. export function getNumber(param, success) {
  561. let url = `${physics}/business-space/equip/count?projectId=${param.ProjId}&secret=${param.secret}`
  562. let data = param.data
  563. http.postJson(url, data, success)
  564. }
  565. //获取项目内有实例的所有种族
  566. export function getFamilyList(param, success) {
  567. let url = `${physics}/business-space/equip/type/list?projectId=${param.ProjId}&secret=${param.secret}`
  568. let data = param.data
  569. http.postJson(url, data, success)
  570. }
  571. //删除系统、设备
  572. export function delSystem(param, success) {
  573. let url = `${physics}${dataForm}/equipment/delete?projectId=${param.ProjId}&secret=${param.secret}`
  574. let data = param.data
  575. http.postJson(url, data, success)
  576. }
  577. //创建系统设备
  578. export function createSystem(param, success) {
  579. let url = `${physics}${dataForm}/equipment/create?projectId=${param.ProjId}&secret=${param.secret}`
  580. let data = param.data
  581. http.postJson(url, data, success)
  582. }
  583. //获取台账资产列表
  584. export function getBillPropList(param, success) {
  585. let url = `${physics}/business-space/property/list?projectId=${param.ProjId}&secret=${param.secret}`
  586. let data = param.data
  587. http.postJson(url, data, success)
  588. }
  589. //台账修改资产信息
  590. export function updateProperty(param, success) {
  591. let url = `${physics}${dataForm}/property/update?projectId=${param.ProjId}&secret=${param.secret}`
  592. let data = param.data
  593. http.postJson(url, data, success)
  594. }
  595. //台账获取设备列表
  596. export function getBillEquipList(param, success) {
  597. let url = `${physics}/business-space/equip/list?projectId=${param.ProjId}&secret=${param.secret}`
  598. let data = param.data
  599. http.postJson(url, data, success)
  600. }
  601. //台账获取系统列表
  602. export function getBillSystemList(param, success) {
  603. let url = `${physics}/business-space/system/list?projectId=${param.ProjId}&secret=${param.secret}`
  604. let data = param.data
  605. http.postJson(url, data, success)
  606. }
  607. //台账获取系统关联的设备
  608. export function getSysToEq(param, success) {
  609. let url = `${physics}${dataForm}/object/rel_query?projectId=${param.ProjId}&secret=${param.secret}`
  610. let data = param.data
  611. http.postJson(url, data, success)
  612. }
  613. //台账查询型号
  614. export function getSpecList(param, success) {
  615. let url = `${physics}/venders/manufacturer/specification/query_spec`
  616. let data = param
  617. http.postJson(url, data, success)
  618. }
  619. //台账根据设备id创建岗位
  620. export function EqToAssets(param, success) {
  621. let url = `${physics}${dataForm}/property/create_by_equip?projectId=${param.ProjId}&secret=${param.secret}`
  622. let data = param.data
  623. http.postJson(url, data, success)
  624. }
  625. //获取设定参数和动态参数
  626. export function BeatchQueryParam(param, success) {
  627. let url = `${physics}${dataForm}/parameter/batch_query_param?projectId=${param.ProjId}&secret=${param.secret}`
  628. let data = param.data
  629. http.postJson(url, data, success)
  630. }
  631. export function BatchCreateSome(param, success) {
  632. let url = `${physics}${dataForm}/equipment/batch/create?projectId=${param.ProjId}&secret=${param.secret}`
  633. let data = param.data
  634. http.postJson(url, data, success)
  635. }
  636. export function delBatchList(param, success) {
  637. let url = `${physics}${dataForm}/equipment/batch/delete?projectId=${param.ProjId}&secret=${param.secret}`
  638. let data = param.data
  639. http.postJson(url, data, success)
  640. }
  641. //扫楼创建资产
  642. export function createFmList(param, success) {
  643. let url = `${api}/ScanBuilding/service/fm/create`
  644. param.Comming = Comming
  645. let data = param
  646. http.postJson(url, data, success)
  647. }
  648. export function createAssetsList(param, success) {
  649. let url = `${api}/ScanBuilding/service/fm/create_list`
  650. param.Comming = Comming
  651. let data = param
  652. http.postJson(url, data, success)
  653. }
  654. export function getListForBuss(param, success) {
  655. let url = `${physics}/business-space/space/ispace/equip/query?projectId=${param.ProjId}&secret=${param.secret}`
  656. let data = param.data
  657. http.postJson(url, data, success)
  658. }
  659. //获取产品list
  660. export function getProductList(param, success) {
  661. let url = `${physics}/venders/manufacturer/product/queryByType`
  662. http.postJson(url, param, success)
  663. }
  664. //完全匹配的厂商信息
  665. export function getBasicMatch(param) {
  666. console.log(param, "param")
  667. let data = param
  668. return fetch({ method: 'POST', url: `${physics}/venders/basic/match`, data })
  669. }