index.ts 25 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331
  1. import type {
  2. u_company,
  3. u_billcode,
  4. u_sc_workgroup,
  5. u_sys_post,
  6. sys_option,
  7. u_cust,
  8. u_cust_rep,
  9. u_station,
  10. u_cust_interview,
  11. oa_emp_workplan,
  12. u_mtrltype,
  13. u_mtrlware,
  14. u_mtrlware_mx,
  15. u_mtrlware_location,
  16. u_storage_loca,
  17. u_scdef,
  18. FileData,
  19. FileClass,
  20. sys_print_template
  21. // u_mtrldef,
  22. // u_quote,
  23. // u_quotemx,
  24. // u_outwaremx
  25. } from "@/typings/business";
  26. import type { uSale } from "@/typings/modules/sale";
  27. import type { uTech } from "@/typings/modules/technology";
  28. // 请求响应参数(不包含data)
  29. export interface Result {
  30. code: string;
  31. msg: string;
  32. }
  33. // 请求响应参数(包含data)
  34. export interface ResultData<T = any> extends Result {
  35. data: T;
  36. }
  37. // 分页响应参数
  38. export interface ResPage<T> {
  39. list: T[];
  40. pageNum: number;
  41. pageSize: number;
  42. total: number;
  43. }
  44. // 分页请求参数
  45. export interface ReqPage {
  46. pageNum: number;
  47. pageSize: number;
  48. }
  49. // 文件上传模块
  50. export namespace Upload {
  51. export interface ResFileUrl {
  52. fileUrl: string;
  53. }
  54. }
  55. // 获取递归数据结构
  56. export interface Recursion {
  57. /**
  58. * @description 文本
  59. */
  60. text: string;
  61. /**
  62. * @description 值
  63. */
  64. value: number;
  65. /**
  66. * @description 子级递归列表
  67. */
  68. children?: Recursion[];
  69. }
  70. // 登录模块
  71. export namespace Login {
  72. /**
  73. * @name response: 获取账套
  74. */
  75. export interface ResToken {
  76. /**
  77. * @description 账户列表
  78. */
  79. accounts: string[];
  80. /**
  81. * @description IP地址
  82. */
  83. ip: string;
  84. /**
  85. * @description 端口号
  86. */
  87. port: number;
  88. }
  89. /**
  90. * @name request: 登陆
  91. */
  92. export interface ReqLoginForm {
  93. // /**
  94. // * @argument 账号
  95. // */
  96. // account: string;
  97. // /**
  98. // * @argument 用户ID
  99. // */
  100. // userid: string;
  101. // /**
  102. // * @argument 密码
  103. // */
  104. // password: string;
  105. // /**
  106. // * @argument 客户端类型 (20-工位机平板用户名密码登陆(默认), 30-插件)
  107. // * 10-OA用户名密码登陆
  108. // * 11-移动端用户验证码登录
  109. // * 20-工位机平板用户名密码登陆
  110. // * 21-工位机刷卡登陆
  111. // * 22-工位机临时登陆
  112. // * 23-工位机扫码登录
  113. // * 30-插件
  114. // */
  115. // clientType: number;
  116. // /**
  117. // * @argument 请求登陆的客户端类型
  118. // */
  119. // typeName: string;
  120. // /**
  121. // * @argument 登录设备唯一码
  122. // */
  123. // phoneUUID?: string;
  124. usercode: string;
  125. psw: string;
  126. }
  127. /**
  128. * @name response: 登陆返回模型
  129. */
  130. export interface ResLogin {
  131. /**
  132. * @description 登陆成功只需求返回用户名与权限就可以,token应该由客户端建立会话后一直保存
  133. */
  134. token: string;
  135. username: string;
  136. usercode: string;
  137. empid: number;
  138. /**
  139. * @argument 可用权限列表
  140. */
  141. rsltFunids?: number[];
  142. usermode: number;
  143. }
  144. export interface ReqL1APPUserInfo {
  145. /**
  146. * @argument 请求权限列表
  147. */
  148. funids: number[];
  149. /**
  150. * @argument 请求系统选项列表
  151. */
  152. options: (number | string)[];
  153. }
  154. export interface ResL1APPUserInfo {
  155. /**
  156. * @argument 账套名称
  157. */
  158. account?: string;
  159. /**
  160. * @argument 用户帐号
  161. */
  162. usercode?: string;
  163. /**
  164. * @argument 用户名称
  165. */
  166. username: string;
  167. /**
  168. * @argument 员工ID
  169. */
  170. empid?: number;
  171. /**
  172. * @argument 分部ID
  173. */
  174. scid?: number;
  175. /**
  176. * @argument 部门ID
  177. */
  178. deptid?: number;
  179. usermode?: number;
  180. // /**
  181. // * @argument UUID
  182. // */
  183. // uuid?: string;
  184. // /**
  185. // * @argument 极光推送ID
  186. // */
  187. // ajpushid?: string;
  188. /**
  189. * @argument 可用权限列表
  190. */
  191. rsltFunids?: number[];
  192. /**
  193. * @argument 系统选项列表
  194. */
  195. optionList?: sys_option[];
  196. // /**
  197. // * @argument 存在新结构MtrlConfigStr,但没开始用
  198. // */
  199. // statusname?: string;
  200. // woodcodename?: string;
  201. // pcodename?: string;
  202. // zxmtrlmodename?: string;
  203. // usermtrlmodename?: string;
  204. // mtrlsectypename?: string;
  205. // outrepstrTips?: string;
  206. // outrepcode?: string;
  207. // dollarRate?: number;
  208. // dollarMoneyid?: number;
  209. // gw_inuse?: number | null;
  210. // gw_power1?: number | null;
  211. // gw_power3?: number | null;
  212. // ifnotin?: number | null;
  213. // phoneNumber?: string;
  214. // phoneUUID?: string;
  215. // /**
  216. // * @argument 公告栏列表
  217. // */
  218. // postList?: u_sys_post[];
  219. // powerWrkgrp?: u_sc_workgroup[];
  220. // /**
  221. // * @argument 该客户是否金龙恒
  222. // */
  223. // isJLH?: boolean;
  224. // /**
  225. // * @argument 商品所有类别
  226. // */
  227. // mtrltypeAllList?: Set<string>;
  228. // /**
  229. // * @argument 商品主要类别
  230. // */
  231. // mtrltypeList?: string[];
  232. // /**
  233. // * @argument 畅销类别
  234. // */
  235. // saletypeList?: string[];
  236. // /**
  237. // * @argument 产品系列
  238. // */
  239. // bandList?: string[];
  240. // /**
  241. // * @argument 单据塔头
  242. // */
  243. // billcodeList?: u_billcode[];
  244. // /**
  245. // * @argument 分账套权限
  246. // */
  247. // companyList?: u_company[];
  248. // /**
  249. // * @argument 分部权限
  250. // */
  251. // scstr?: string;
  252. // /**
  253. // * @argument 物料分类
  254. // */
  255. // mtrltypestr?: string;
  256. // /**
  257. // * @argument 仓库权限-查询
  258. // */
  259. // storagestr?: string;
  260. // /**
  261. // * @argument 仓库权限-新增
  262. // */
  263. // storagestr_new?: string;
  264. // /**
  265. // * @argument 仓库权限-审核
  266. // */
  267. // storagestr_audit?: string;
  268. // /**
  269. // * @argument 出纳账号
  270. // */
  271. // accountsidstr?: string;
  272. }
  273. }
  274. /**
  275. * @name 用户
  276. */
  277. export namespace User {
  278. /**
  279. * @name response: 获取分部出参
  280. */
  281. export interface ResL1UserScdef {
  282. /**
  283. * @argument 分部列表
  284. */
  285. scdefList?: u_scdef[];
  286. }
  287. }
  288. /**
  289. * @description 布局接口
  290. */
  291. export namespace DwLayout {
  292. export interface ReqGetDwLayout {
  293. /**
  294. * @description 用户ID
  295. */
  296. empid?: number;
  297. /**
  298. * @description 窗口名
  299. */
  300. dwname: string;
  301. /**
  302. * @description 表格名
  303. */
  304. itemname: string;
  305. /**
  306. * @description 是否压缩
  307. */
  308. ifcompress: number;
  309. /**
  310. * @description 是否删除token.empid的布局信息
  311. */
  312. ifdel?: number;
  313. }
  314. export interface ReqSetDwLayout extends ReqGetDwLayout {
  315. /**
  316. * @description 自定义值
  317. */
  318. itemvalue?: string;
  319. }
  320. export interface ResGetDwLayout {
  321. /**
  322. * @argument 自定义值
  323. */
  324. itemvalue: string;
  325. }
  326. }
  327. /**
  328. * @name 销售
  329. */
  330. export namespace Saletask {
  331. /**
  332. * @name request: 获取客户所属区域入参
  333. */
  334. export interface ReqCusare {
  335. /**
  336. * @description 是否递归输出:1:是
  337. */
  338. RecurionType?: number;
  339. }
  340. export interface ResCusare {
  341. /**
  342. * @description 文本
  343. */
  344. RecurionList: Recursion[];
  345. }
  346. /**
  347. * @name request: 获取客户列表
  348. */
  349. export interface ReqCustList {
  350. /**
  351. * @description 区域ID
  352. */
  353. cusareaid?: number;
  354. /**
  355. * @description 关键词
  356. */
  357. keyword?: string;
  358. /**
  359. * @description 客户ID
  360. */
  361. cusid?: number;
  362. /**
  363. * @description 是否有效
  364. */
  365. inuse?: number;
  366. /**
  367. * @description 状态
  368. */
  369. state?: number;
  370. /**
  371. * @description 客户名称
  372. */
  373. name?: string;
  374. /**
  375. * @description 客户编码xxx
  376. */
  377. cuscode?: string;
  378. /**
  379. * @description 联系电话
  380. */
  381. tele?: string;
  382. /**
  383. * @description 页码
  384. */
  385. pageindex?: number;
  386. /**
  387. * @description 每页大小
  388. */
  389. pagesize?: number;
  390. }
  391. /**
  392. * @name response: 获取客户列表
  393. */
  394. export interface ResCustList {
  395. custList: u_cust[];
  396. }
  397. /**
  398. * @name request: 获取客户档案详情
  399. */
  400. export interface ReqCustDetail {
  401. /**
  402. * @description 客户ID
  403. */
  404. cusid: number;
  405. /**
  406. * @description 活动列表: 0:客户基础信息补充,1:联系人信息,2:货运部信息,3:走访记录,4:工作计划
  407. */
  408. active: number[];
  409. /**
  410. * @description 开始日期
  411. */
  412. fdate?: string;
  413. /**
  414. * @description 结束日期
  415. */
  416. edate?: string;
  417. }
  418. /**
  419. * @name response: 获取客户列表
  420. */
  421. export interface ResCustDetail {
  422. /**
  423. * @description 客户信息
  424. */
  425. cust: u_cust;
  426. /**
  427. * @description 客户关系列表
  428. */
  429. custRelList: u_cust_rep[];
  430. /**
  431. * @description 站点列表
  432. */
  433. stationList: u_station[];
  434. /**
  435. * @description 客户访谈列表
  436. */
  437. interviewList: u_cust_interview[];
  438. /**
  439. * @description 工作计划列表
  440. */
  441. workplanList: oa_emp_workplan[];
  442. }
  443. /**
  444. * @name request: 获取物料库存入参
  445. */
  446. export interface ReqMtrlWareList {
  447. /**
  448. * 仓库
  449. */
  450. storageid?: number;
  451. /**
  452. * 仓位
  453. */
  454. locacode?: string;
  455. /**
  456. * keyword
  457. */
  458. keyword?: string;
  459. /**
  460. * tab: 仓位库存
  461. */
  462. iflocacode?: boolean;
  463. /**
  464. * tab: 库存分析
  465. */
  466. ifanalyze?: number;
  467. /**
  468. * 物料编码
  469. */
  470. mtrlcode?: string;
  471. /**
  472. * 物料名称
  473. */
  474. mtrlname?: string;
  475. /**
  476. * 物料类别id
  477. */
  478. mtrltypeid?: number;
  479. /**
  480. * 规格
  481. */
  482. mtrlmode?: string;
  483. /**
  484. * 自定义
  485. */
  486. mtrlsectype?: string;
  487. /**
  488. * 自定义1
  489. */
  490. zxmtrlmode?: string;
  491. /**
  492. * 自定义2
  493. */
  494. usermtrlmode?: string;
  495. /**
  496. * 生产批号
  497. */
  498. plancode?: string;
  499. /**
  500. * 条码
  501. */
  502. barcode?: string;
  503. /**
  504. * 库存id
  505. */
  506. mtrlwareid?: number;
  507. pageindex: number;
  508. pagesize: number;
  509. /**
  510. * 1 显示0库存 0不显示0库存
  511. */
  512. ifzeromtrlware?: number;
  513. }
  514. /**
  515. * @name response: 获取物料库存出参
  516. */
  517. export interface ResMtrlWareList {
  518. mtrlwareList: u_mtrlware[];
  519. locaList: u_storage_loca[];
  520. }
  521. /**
  522. * @name request: 获取物料库存明细入参
  523. */
  524. export interface ReqMtrlwareDetailList {
  525. /**
  526. * 分部
  527. */
  528. scid?: number;
  529. /**
  530. * 仓库
  531. */
  532. storageid?: number;
  533. /**
  534. * 库存id
  535. */
  536. mtrlwareid?: number;
  537. /**
  538. * 明细tab页
  539. */
  540. tabs?: string[];
  541. /**
  542. * 是否显示未出仓库存
  543. */
  544. ifnotout?: number;
  545. }
  546. /**
  547. * @name response: 获取物料库存明细出参
  548. */
  549. export interface ResMtrlwareDetailList {
  550. mtrlwareMxList: u_mtrlware_mx[];
  551. locaList: u_mtrlware_location[];
  552. }
  553. /**
  554. * @name request: 获取销售订单列表入参
  555. */
  556. export interface ReqSaleTaskList {
  557. /**
  558. * @description: 分部id
  559. */
  560. scid?: number;
  561. /**
  562. * @description: 订单id
  563. */
  564. taskid?: number;
  565. /**
  566. * @description: 建单人
  567. */
  568. assignEmp?: string;
  569. /**
  570. * @description: 参数:日期开始
  571. */
  572. begindate?: Date;
  573. /**
  574. * @description: 参数:日期结束
  575. */
  576. enddate?: Date;
  577. /**
  578. * @description: 单据编号
  579. */
  580. keyword?: string;
  581. /**
  582. * @description: 订单号
  583. */
  584. taskcode?: string;
  585. /**
  586. * @description: 客户名称
  587. */
  588. custname?: string;
  589. /**
  590. * @description: 相关号
  591. */
  592. relcode?: string;
  593. /**
  594. * @description: 商品编码
  595. */
  596. mtrlcode?: string;
  597. /**
  598. * @description: 生产批号
  599. */
  600. mtrlcuscode?: string;
  601. /**
  602. * @description: 状态
  603. */
  604. flag?: number;
  605. /**
  606. * @description 页码
  607. */
  608. pageindex?: number;
  609. /**
  610. * @description 每页大小
  611. */
  612. pagesize?: number;
  613. }
  614. /**
  615. * @name response: 获取销售订单列表出参
  616. */
  617. export interface ResSaleTaskList {
  618. saletaskList: uSale.u_saletask[];
  619. }
  620. /**
  621. * @name request: 获取销售订单明细列表入参
  622. */
  623. export interface ReqSaleTaskMxList {
  624. /**
  625. * @description: 分部id
  626. */
  627. scid?: number;
  628. /**
  629. * @description: 订单id
  630. */
  631. taskid?: number;
  632. }
  633. /**
  634. * @name response: 获取销售订单明细列表出参
  635. */
  636. export interface ResSaleTaskMxList {
  637. saletaskmxList: uSale.u_saletask_mx[];
  638. }
  639. /**
  640. * @name request: 获取销售报价单列表入参
  641. */
  642. export interface ReqSaleQuoteList {
  643. /**
  644. * @description: scid
  645. */
  646. scid?: number;
  647. /**
  648. * @description: billid
  649. */
  650. billid?: number;
  651. /**
  652. * @description: billtype
  653. */
  654. billtype?: number;
  655. /**
  656. * @description: 单据编号
  657. */
  658. keyword?: string;
  659. /**
  660. * @description: 相关号
  661. */
  662. relcode?: string;
  663. /**
  664. * @description: quotecode
  665. */
  666. quotecode?: string;
  667. /**
  668. * @description: flag
  669. */
  670. flag?: number;
  671. /**
  672. * @description 页码
  673. */
  674. pageindex?: number;
  675. /**
  676. * @description 每页大小
  677. */
  678. pagesize?: number;
  679. }
  680. /**
  681. * @name request: 获取销售报价单明细列表入参
  682. */
  683. export interface ReqSaleQuoteMx {
  684. /**
  685. * @description: 分部id
  686. */
  687. scid?: number;
  688. /**
  689. * @description: 订单id
  690. */
  691. billid?: number;
  692. }
  693. /**
  694. * @name request: 获取销售发货单列表出参
  695. */
  696. export interface ReqSaleOutwareList {
  697. /**
  698. * @description 分部id
  699. */
  700. scid?: number;
  701. /**
  702. * @description 单据id
  703. */
  704. outwareid?: number;
  705. /**
  706. * @description: 仓库id
  707. */
  708. storageid?: number;
  709. /**
  710. * @description: 参数:日期开始
  711. */
  712. begindate?: Date;
  713. /**
  714. * @description: 参数:日期结束
  715. */
  716. enddate?: Date;
  717. /**
  718. * @description: 审核状态 -1/null 全部,1 待仓审,2 待财审,3 已财审
  719. */
  720. flag?: number;
  721. /**
  722. * @description: 确认状态 null/-1 全部, 0 待确认, 2 初确认, 1 已确认
  723. */
  724. priceflag?: number;
  725. /**
  726. * @description: 客户名称
  727. */
  728. cusname?: string;
  729. /**
  730. * @description: 单据编号
  731. */
  732. keyword?: string;
  733. /**
  734. * @description: 车牌号码
  735. */
  736. carcode?: string;
  737. /**
  738. * @description: billtype
  739. */
  740. billtype?: number;
  741. /**
  742. * @description: thflag
  743. */
  744. thflag?: number;
  745. /**
  746. * @description: pageindex
  747. */
  748. pageindex?: number;
  749. /**
  750. * @description: pagesize
  751. */
  752. pagesize?: number;
  753. }
  754. /**
  755. * @name request: 获取销售发货单明细出参
  756. */
  757. export interface ReqSaleOutwareMx {
  758. /**
  759. * @description: 分部id
  760. */
  761. scid?: number;
  762. /**
  763. * @description: 订单id
  764. */
  765. outwareid?: number;
  766. }
  767. }
  768. /**
  769. * @name 技术
  770. */
  771. export namespace Technology {
  772. /**
  773. * @name request: 获取物料类别入参
  774. */
  775. export interface ReqMtrlType {
  776. /**
  777. * @description 是否递归输出:1:是
  778. */
  779. RecurionType?: number;
  780. parentid?: number;
  781. }
  782. /**
  783. * @name response: 获取物料类别出参
  784. */
  785. export interface ResMtrlType {
  786. /**
  787. * @description 物料类别递归树
  788. */
  789. RecurionList: Recursion[];
  790. DataList: u_mtrltype[];
  791. }
  792. /**
  793. * @name request: 获取物料信息入参
  794. */
  795. export interface ReqMtrldefList {
  796. /**
  797. * @description 材料ID
  798. */
  799. mtrlid?: number;
  800. /**
  801. * @description 仓库ID
  802. */
  803. storageid?: number;
  804. /**
  805. * @description 属性
  806. * */
  807. mtrlprp?: number;
  808. /**
  809. * @description 物料类别
  810. */
  811. mtrltypeid?: number;
  812. /**
  813. * @description 材料来源
  814. * */
  815. mtrlorigin?: number;
  816. /**
  817. * @description 是否使用
  818. * */
  819. isuse?: number;
  820. /**
  821. * @description 关键词
  822. */
  823. keyword?: string;
  824. /**
  825. * @description 材料名称
  826. * */
  827. mtrlname?: string;
  828. /**
  829. * @description 材料编码
  830. * */
  831. mtrlcode?: string;
  832. /**
  833. * @description 材料模式
  834. * */
  835. mtrlmode?: string;
  836. /**
  837. * @description 材料选择类型
  838. */
  839. mtrlsectype?: string;
  840. /**
  841. * @description 主线材料模式
  842. * */
  843. zxmtrlmode?: string;
  844. /**
  845. * @description 用户材料模式
  846. * */
  847. usermtrlmode?: string;
  848. /**
  849. * @description 计划编码
  850. */
  851. plancode?: string;
  852. /**
  853. * @description 产品类别
  854. */
  855. mtrltype?: string;
  856. }
  857. /**
  858. * @name response: 获取物料信息出参
  859. */
  860. export interface ResMtrldefList {
  861. mtrldefList: uTech.u_mtrldef[];
  862. }
  863. /**
  864. * @name request: 获取物料信息入参
  865. */
  866. export interface ReqMtrldefDetailList {
  867. /**
  868. * @description 材料ID
  869. */
  870. mtrlid?: number;
  871. }
  872. /**
  873. * @name response: 获取物料信息出参
  874. */
  875. export interface ResMtrldefDetailList {
  876. mtrldef: uTech.u_mtrldef;
  877. }
  878. }
  879. /**
  880. * @name 通用接口
  881. */
  882. export namespace GenericApi {
  883. /**
  884. * @name request: 获取通用接口:查询数据入参
  885. */
  886. export interface ReqCommonDynamicSelect {
  887. dsname?: string;
  888. queryparams?: any;
  889. /**
  890. * @description 排序 "attr1 desc, attr2 esc"
  891. */
  892. orderstr?: string;
  893. /**
  894. * @description: pageindex
  895. */
  896. pageindex?: number;
  897. /**
  898. * @description: pagesize
  899. */
  900. pagesize?: number;
  901. /**
  902. * @description 用户习惯dwname: 产品名称
  903. */
  904. dwname?: string;
  905. /**
  906. * @description 用户习惯itemname:窗口名称
  907. */
  908. itemname?: string;
  909. /**
  910. * @description 用户习惯是否加密储存
  911. */
  912. ifcompress?: string;
  913. }
  914. interface CommonDynamicSelectTableInfo {
  915. columns: any[];
  916. }
  917. /**
  918. * @name response: 获取通用接口:查询数据出参
  919. */
  920. export interface ResCommonDynamicSelect {
  921. datatable: any[];
  922. fields: any[];
  923. /**
  924. * @description: pageindex
  925. */
  926. pageindex?: number;
  927. /**
  928. * @description: pagesize
  929. */
  930. pagesize?: number;
  931. /**
  932. * @description: 数据总条数
  933. */
  934. tablecnt?: number;
  935. /**
  936. * @description: 表格布局{columns}
  937. */
  938. tableinfo?: CommonDynamicSelectTableInfo;
  939. }
  940. export interface CommonClass {
  941. /**
  942. * @description uo名称
  943. */
  944. uoName: string;
  945. /**
  946. * @description 动作名称
  947. */
  948. functionName: string;
  949. /**
  950. * @description uo入参
  951. */
  952. SParms: any;
  953. /**
  954. * @description 是否需要保存到数据库
  955. */
  956. ifcommit: boolean;
  957. /**
  958. * @description 需要返回的字段名称
  959. */
  960. returnStrList?: string[];
  961. }
  962. // /**
  963. // * @name request: 获取通用接口:uo逻辑入参
  964. // */
  965. // export interface ReqCommonBill {
  966. // CList: CommonClass[];
  967. // }
  968. /**
  969. * @name response: 获取通用接口:uo逻辑出参
  970. */
  971. export interface ResCommonBill {
  972. /**
  973. * @description 返回的字段属性,根据returnStrList
  974. */
  975. reJob: any;
  976. }
  977. export interface ReqFormulaCompute {
  978. /**
  979. * @description 计算公式
  980. */
  981. formulas: any[];
  982. }
  983. export interface ResFormulaCompute {
  984. /**
  985. * @description 返回的结果
  986. */
  987. values: number[];
  988. }
  989. export interface ReqGetERPMtrldefList {
  990. /**
  991. * @description 物料id
  992. */
  993. mtrlid?: number;
  994. keyword?: string;
  995. isuse?: number;
  996. mtrltype?: string;
  997. }
  998. export interface ResGetERPMtrldefList {
  999. /**
  1000. * @description 返回的结果
  1001. */
  1002. mtrldefList: any[];
  1003. }
  1004. export interface ReqGetERPConfigureList {
  1005. /**
  1006. * @description 配置id
  1007. */
  1008. typeid?: number;
  1009. }
  1010. export interface ResGetERPConfigureList {
  1011. /**
  1012. * @description 返回的结果
  1013. */
  1014. configureList: any[];
  1015. }
  1016. export interface ReqGetERPWrkGrpList {
  1017. /**
  1018. * @description 工组id
  1019. */
  1020. wrkgrpid?: number;
  1021. }
  1022. export interface ResGetERPWrkGrpList {
  1023. /**
  1024. * @description 返回的结果
  1025. */
  1026. workgroupList: any[];
  1027. }
  1028. }
  1029. export namespace FileApi {
  1030. export interface ReqFileClass {
  1031. billType: number;
  1032. }
  1033. export interface ResFileClass {
  1034. list: FileClass[];
  1035. /**
  1036. * @description 附件删除权限: -1:无权限,0:全部
  1037. */
  1038. classdelstr: string;
  1039. /**
  1040. * @description 附件新增权限: -1:无权限,0:全部
  1041. */
  1042. classeditstr: string;
  1043. /**
  1044. * @description 附件查看权限: -1:无权限,0:全部
  1045. */
  1046. classviewstr: string;
  1047. }
  1048. export interface ReqFileData {
  1049. fjdata: FileData;
  1050. }
  1051. export interface ResFileData {
  1052. FjFileList: FileData[];
  1053. }
  1054. export interface ReqCacheFile {
  1055. filemd5: string;
  1056. width?: number;
  1057. height?: number;
  1058. }
  1059. export interface ResCacheFile {
  1060. filedata: any;
  1061. filetype: string;
  1062. FileName: string;
  1063. }
  1064. export interface ReqUploadFile {
  1065. fileList: FileData[];
  1066. }
  1067. }
  1068. export namespace PrintTemplate {
  1069. export interface ReqGetPrintTemplate {
  1070. dwname: string;
  1071. printid?: number;
  1072. }
  1073. export interface ResGetPrintTemplate {
  1074. list: sys_print_template[];
  1075. }
  1076. export interface ReqSavePrintTemplate {
  1077. template: sys_print_template;
  1078. }
  1079. }
  1080. export namespace Basicinfo {
  1081. export interface ResUserList {
  1082. userList: any[];
  1083. }
  1084. export interface ResSaveUserList {
  1085. empid: number;
  1086. }
  1087. export interface ResDelUserList {
  1088. useridList: number[];
  1089. }
  1090. export interface ReqDeleteBasicinfo {
  1091. list: any[];
  1092. }
  1093. export interface ResDeleteBasicinfo {}
  1094. export interface ReqBanBasicinfo {
  1095. list: any[];
  1096. type: Number;
  1097. }
  1098. export interface ResBanBasicinfo {}
  1099. export interface ReqSaveBedNetType {
  1100. bednet: any;
  1101. }
  1102. export interface ReqSaveMattressType {
  1103. mattress: any;
  1104. }
  1105. export interface ReqSaveMattressFormula {
  1106. mattress: any;
  1107. }
  1108. export interface ReqSaveShrinkage {
  1109. shrinkage: any;
  1110. }
  1111. export interface ReqSaveSpring {
  1112. spring: any;
  1113. }
  1114. export interface ReqAuditSpring {
  1115. list: any[];
  1116. type: number;
  1117. }
  1118. export interface ReqSaveBedNetVar {
  1119. bednetvar: any;
  1120. }
  1121. export interface ReqGetMtrlTypeList {
  1122. parentid?: any;
  1123. RecurionType?: any;
  1124. }
  1125. export interface ResGetMtrlTypeList {
  1126. list: any[];
  1127. reList: any[];
  1128. }
  1129. export interface ReqSaveMtrlType {
  1130. mtrltype: any;
  1131. }
  1132. export interface ReqSaveMtrlDef {
  1133. mtrls: any[];
  1134. }
  1135. export interface ReqSaveMultiPrice {
  1136. price: any;
  1137. }
  1138. export interface ReqSaveBedNetArea {
  1139. area: any;
  1140. }
  1141. export interface ReqSaveMattressExtra {
  1142. data: any;
  1143. }
  1144. export interface ReqSaveConfigure {
  1145. configure: any;
  1146. }
  1147. export interface ReqGetMtrlDefList {
  1148. pricelistid: number;
  1149. mtrltypeids: number[];
  1150. }
  1151. export interface ResGetMtrlDefList {
  1152. list: any[];
  1153. pagesize: number;
  1154. pageindex: number;
  1155. totalcnt: number;
  1156. }
  1157. export interface ReqCopyMtrlDef {
  1158. pricelistid_from: number;
  1159. pricelistid_to: number;
  1160. rate: number;
  1161. mtrlids: number[];
  1162. }
  1163. export interface ReqImportApi {
  1164. filedata: FileData[];
  1165. }
  1166. export interface ResImportApi {
  1167. successMsg: string;
  1168. taskcodeList: any[];
  1169. }
  1170. export interface ReqFormulaCheck {
  1171. formula: string;
  1172. }
  1173. }
  1174. export namespace SalePrice {
  1175. export interface ResPriceList {
  1176. list: any[];
  1177. }
  1178. export interface ReqSaveDept {
  1179. dept: any;
  1180. }
  1181. export interface ResSaveDept {}
  1182. export interface ReqDeleteDept {
  1183. list: any[];
  1184. }
  1185. export interface ResDeleteDept {}
  1186. export interface ReqSaveProfitrate {
  1187. list: any[];
  1188. }
  1189. export interface ResSaveProfitrate {}
  1190. export interface ReqSaveWorkmanShip {
  1191. workmanship: any;
  1192. }
  1193. export interface ResSaveWorkmanShip {}
  1194. export interface ReqDeleteWorkmanShip {
  1195. list: any[];
  1196. }
  1197. export interface ResDeleteWorkmanShip {}
  1198. export interface ReqAuditSalePrice {
  1199. list: any[];
  1200. type: number;
  1201. }
  1202. export interface ResAuditSalePrice {}
  1203. }
  1204. export namespace Mattress {
  1205. export interface ReqSaveMattress {
  1206. mattress: any;
  1207. mattressMx?: any[];
  1208. subspecs?: any[];
  1209. check_original?: number;
  1210. }
  1211. export interface ResSaveMattress {
  1212. mattressid: number;
  1213. mattresscode: string;
  1214. message: string;
  1215. mxmessage: string[];
  1216. }
  1217. export interface ReqMultiMattress {
  1218. mattressids: number[];
  1219. /**
  1220. * @description 业务下单
  1221. */
  1222. xd_flag?: number;
  1223. /**
  1224. * @description 审核
  1225. */
  1226. flag?: number;
  1227. }
  1228. export interface ReqMultiMattressBcp {
  1229. list: any[];
  1230. type?: number;
  1231. }
  1232. export interface ResSaveMattressBcp {
  1233. mattress: any;
  1234. }
  1235. export interface ReqSaveBedNet {
  1236. bednet: any;
  1237. bednetMx?: any;
  1238. spring?: any;
  1239. }
  1240. export interface ResSaveBedNet {
  1241. bednet: any;
  1242. message: string;
  1243. }
  1244. export interface ResComputeBednet {
  1245. bednet?: any;
  1246. bednetMx?: any;
  1247. replace: any;
  1248. formulas: any;
  1249. message: string;
  1250. }
  1251. export interface ResComputeMattress {
  1252. replace: any;
  1253. formulas: any;
  1254. message: string;
  1255. formulas_origin: any;
  1256. formulas_bednet: any;
  1257. differ?: any;
  1258. }
  1259. export interface ReqRefreshMattressInterface {
  1260. mattressid: number;
  1261. isPz?: number;
  1262. isCheck?: number;
  1263. isEdit?: number;
  1264. configcodetype?: number;
  1265. }
  1266. export interface ResRefreshMattressInterface {
  1267. mxList: any[];
  1268. }
  1269. export interface ResGetMattressInterfaceList {
  1270. mattress: any;
  1271. interfaceList: any[];
  1272. qdList: any[];
  1273. }
  1274. export interface ReqSaveMattressInterface {
  1275. mattress: any;
  1276. interfaceList: any[];
  1277. qdList: any[];
  1278. }
  1279. export interface ReqMattressImport {
  1280. mattressid?: number;
  1281. mattresstypeid: number;
  1282. ifbcptype: number;
  1283. packtype: number;
  1284. pricelistid?: number;
  1285. }
  1286. export interface ResMattressImport {
  1287. mattressMx: any[];
  1288. biandai_qty?: number;
  1289. diancengarea?: any[];
  1290. extraProcessesMx?: any[];
  1291. extraCostsMx?: any[];
  1292. extraEnum?: any[];
  1293. extraTypeEnum?: any[];
  1294. }
  1295. }