index.ts 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446
  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 0 - 配置增行 1 - 清单增行
  1007. */
  1008. isPz: number;
  1009. /**
  1010. * @description 配置类型
  1011. */
  1012. configcodetype: number;
  1013. /**
  1014. * @description 配置列表
  1015. */
  1016. interfaceList?: any[];
  1017. /**
  1018. * @description 清单列表
  1019. */
  1020. qdList?: any[];
  1021. }
  1022. export interface ResGetERPConfigureList {
  1023. /**
  1024. * @description 返回配置列表
  1025. */
  1026. interfaceList: any[];
  1027. /**
  1028. * @description 返回清单列表
  1029. */
  1030. qdList: any[];
  1031. }
  1032. export interface ReqGetERPWrkGrpList {
  1033. /**
  1034. * @description 工组id
  1035. */
  1036. wrkgrpid?: number;
  1037. }
  1038. export interface ResGetERPWrkGrpList {
  1039. /**
  1040. * @description 返回的结果
  1041. */
  1042. workgroupList: any[];
  1043. }
  1044. export interface ReqLockBill {
  1045. keyword: string;
  1046. billid: number;
  1047. billcode: string;
  1048. }
  1049. export interface ReqCheckLock {
  1050. keyword: string;
  1051. billid: number;
  1052. billcode: string;
  1053. }
  1054. }
  1055. export namespace FileApi {
  1056. export interface ReqFileClass {
  1057. billType: number;
  1058. }
  1059. export interface ResFileClass {
  1060. list: FileClass[];
  1061. /**
  1062. * @description 附件删除权限: -1:无权限,0:全部
  1063. */
  1064. classdelstr: string;
  1065. /**
  1066. * @description 附件新增权限: -1:无权限,0:全部
  1067. */
  1068. classeditstr: string;
  1069. /**
  1070. * @description 附件查看权限: -1:无权限,0:全部
  1071. */
  1072. classviewstr: string;
  1073. }
  1074. export interface ReqFileData {
  1075. fjdata: FileData;
  1076. }
  1077. export interface ResFileData {
  1078. FjFileList: FileData[];
  1079. }
  1080. export interface ReqCacheFile {
  1081. filemd5: string;
  1082. width?: number;
  1083. height?: number;
  1084. }
  1085. export interface ResCacheFile {
  1086. filedata: any;
  1087. filetype: string;
  1088. FileName: string;
  1089. }
  1090. export interface ReqUploadFile {
  1091. fileList: FileData[];
  1092. }
  1093. }
  1094. export namespace PrintTemplate {
  1095. export interface ReqGetPrintTemplate {
  1096. dwname: string;
  1097. printid?: number;
  1098. }
  1099. export interface ResGetPrintTemplate {
  1100. list: sys_print_template[];
  1101. }
  1102. export interface ReqSavePrintTemplate {
  1103. template: sys_print_template;
  1104. }
  1105. }
  1106. export namespace Basicinfo {
  1107. export interface ReqUserList {
  1108. simple?: number;
  1109. }
  1110. export interface ResUserList {
  1111. userList: any[];
  1112. }
  1113. export interface ResSaveUserList {
  1114. empid: number;
  1115. }
  1116. export interface ResDelUserList {
  1117. useridList: number[];
  1118. }
  1119. export interface ReqDeleteBasicinfo {
  1120. list: any[];
  1121. }
  1122. export interface ResDeleteBasicinfo {}
  1123. export interface ReqBanBasicinfo {
  1124. list: any[];
  1125. type: Number;
  1126. }
  1127. export interface ResBanBasicinfo {}
  1128. export interface ReqSaveBedNetType {
  1129. bednet: any;
  1130. }
  1131. export interface ReqSaveMattressType {
  1132. mattress: any;
  1133. }
  1134. export interface ReqSaveMattressFormula {
  1135. mattress: any;
  1136. }
  1137. export interface ReqSaveShrinkage {
  1138. shrinkage: any;
  1139. }
  1140. export interface ReqSaveSpring {
  1141. spring: any;
  1142. }
  1143. export interface ReqAuditSpring {
  1144. list: any[];
  1145. type: number;
  1146. }
  1147. export interface ReqSaveBedNetVar {
  1148. bednetvar: any;
  1149. }
  1150. export interface ReqGetMtrlTypeList {
  1151. parentid?: any;
  1152. RecurionType?: any;
  1153. }
  1154. export interface ResGetMtrlTypeList {
  1155. list: any[];
  1156. reList: any[];
  1157. }
  1158. export interface ReqSaveMtrlType {
  1159. mtrltype: any;
  1160. }
  1161. export interface ReqSaveMtrlDef {
  1162. mtrls: any[];
  1163. }
  1164. export interface ReqSaveMultiPrice {
  1165. price: any;
  1166. }
  1167. export interface ReqSaveBedNetArea {
  1168. area: any;
  1169. }
  1170. export interface ReqSaveMattressExtra {
  1171. data: any;
  1172. }
  1173. export interface ReqSaveConfigure {
  1174. configure: any;
  1175. }
  1176. export interface ReqSaveConfigureBom {
  1177. bomList: any[];
  1178. }
  1179. export interface ReqGetMtrlDefList {
  1180. pricelistid: number;
  1181. mtrltypeids: number[];
  1182. }
  1183. export interface ResGetMtrlDefList {
  1184. list: any[];
  1185. pagesize: number;
  1186. pageindex: number;
  1187. totalcnt: number;
  1188. }
  1189. export interface ReqCopyMtrlDef {
  1190. pricelistid_from: number;
  1191. pricelistid_to: number;
  1192. rate: number;
  1193. mtrlids: number[];
  1194. }
  1195. export interface ReqImportApi {
  1196. filedata: FileData[];
  1197. }
  1198. export interface ResImportApi {
  1199. successMsg: string;
  1200. taskcodeList: any[];
  1201. }
  1202. export interface ReqFormulaCheck {
  1203. formula: string;
  1204. }
  1205. export interface ResimportMtrl {
  1206. messageList: any[];
  1207. successqty: number;
  1208. allqty: number;
  1209. }
  1210. export interface ReqCopyConfigureCodeMxList {
  1211. subject: any;
  1212. mxList: any[];
  1213. type: number;
  1214. }
  1215. export interface ReqSoftBedFormula {
  1216. formula: any;
  1217. }
  1218. export interface ReqSaveErpMtrlPrice {
  1219. mtrldefList: any[];
  1220. }
  1221. export interface ReqSaveSysPost {
  1222. postMessage: any;
  1223. }
  1224. export interface ReqDeleteSysPost {
  1225. postid: number;
  1226. }
  1227. }
  1228. export namespace SalePrice {
  1229. export interface ReqPriceList {
  1230. inuse?: number;
  1231. }
  1232. export interface ResPriceList {
  1233. list: any[];
  1234. }
  1235. export interface ReqSaveDept {
  1236. dept: any;
  1237. }
  1238. export interface ResSaveDept {}
  1239. export interface ReqDeleteDept {
  1240. list: any[];
  1241. }
  1242. export interface ResDeleteDept {}
  1243. export interface ReqSaveProfitrate {
  1244. list: any[];
  1245. }
  1246. export interface ResSaveProfitrate {}
  1247. export interface ReqSaveWorkmanShip {
  1248. workmanship: any;
  1249. }
  1250. export interface ResSaveWorkmanShip {}
  1251. export interface ReqDeleteWorkmanShip {
  1252. list: any[];
  1253. }
  1254. export interface ResDeleteWorkmanShip {}
  1255. export interface ReqAuditSalePrice {
  1256. list: any[];
  1257. type: number;
  1258. }
  1259. export interface ResAuditSalePrice {}
  1260. }
  1261. export namespace Mattress {
  1262. export interface ReqSaveMattress {
  1263. mattress: any;
  1264. mattressMx?: any[];
  1265. subspecs?: any[];
  1266. subspecsList?: any[];
  1267. check_original?: number;
  1268. }
  1269. export interface ResSaveMattress {
  1270. mattressid: number;
  1271. mattresscode: string;
  1272. message: string;
  1273. mxmessage: string[];
  1274. }
  1275. export interface ReqMultiMattress {
  1276. mattressids: number[];
  1277. /**
  1278. * @description 业务下单
  1279. */
  1280. xd_flag?: number;
  1281. /**
  1282. * @description 审核
  1283. */
  1284. flag?: number;
  1285. }
  1286. export interface ReqMultiMattressBcp {
  1287. list: any[];
  1288. type?: number;
  1289. }
  1290. export interface ResSaveMattressBcp {
  1291. mattress: any;
  1292. }
  1293. export interface ReqSaveBedNet {
  1294. bednet: any;
  1295. bednetMx?: any;
  1296. spring?: any;
  1297. }
  1298. export interface ResSaveBedNet {
  1299. bednet: any;
  1300. message: string;
  1301. }
  1302. export interface ResComputeBednet {
  1303. bednet?: any;
  1304. bednetMx?: any;
  1305. replace: any;
  1306. formulas: any;
  1307. message: string;
  1308. }
  1309. export interface ResComputeMattress {
  1310. replace: any;
  1311. formulas: any;
  1312. message: string;
  1313. formulas_origin: any;
  1314. formulas_bednet: any;
  1315. differ?: any;
  1316. }
  1317. export interface ReqRefreshMattressInterface {
  1318. mattressid: number;
  1319. mattressid_fu?: number;
  1320. isPz?: number;
  1321. isCheck?: number;
  1322. isEdit?: number;
  1323. configcodetype?: number;
  1324. }
  1325. export interface ReqMattressSubspecs {
  1326. mattressid: number;
  1327. onlymattress?: number;
  1328. }
  1329. export interface ResRefreshMattressInterface {
  1330. mxList: any[];
  1331. }
  1332. export interface ResGetMattressInterfaceList {
  1333. mattress: any;
  1334. interfaceList: any[];
  1335. qdList: any[];
  1336. ErrMsg?: string;
  1337. }
  1338. export interface ReqSaveMattressInterface {
  1339. mattress: any;
  1340. interfaceList: any[];
  1341. qdList: any[];
  1342. }
  1343. export interface ReqGetResetWiptype {
  1344. qdList: any[];
  1345. }
  1346. export interface ResUpdateL1Basicinfo {
  1347. mtrlnum: number;
  1348. wkgnum: number;
  1349. mtrltypenum: number;
  1350. }
  1351. export interface ReqMattressImport {
  1352. mattressid?: number;
  1353. mattresstypeid: number;
  1354. ifbcptype: number;
  1355. packtype: number;
  1356. pricelistid?: number;
  1357. }
  1358. export interface ResMattressImport {
  1359. mattressMx: any[];
  1360. biandai_qty?: number;
  1361. diancengarea?: any[];
  1362. extraProcessesMx?: any[];
  1363. extraCostsMx?: any[];
  1364. extraEnum?: any[];
  1365. extraTypeEnum?: any[];
  1366. }
  1367. export interface ResMattressSubspecs {
  1368. mattresses?: any[];
  1369. bednetMxs?: any[];
  1370. mtrllist?: any[];
  1371. }
  1372. export interface ResReCalculateERPCost {
  1373. logMsg: string;
  1374. }
  1375. export interface ReqGetComputeMattressById {
  1376. mattressid?: number;
  1377. check_original: number;
  1378. }
  1379. export interface ResGetComputeMattressById {
  1380. mattress: any;
  1381. mattressMx: any;
  1382. replace: any;
  1383. formulas: any;
  1384. message: string;
  1385. formulas_origin: any;
  1386. formulas_bednet: any;
  1387. differ?: any;
  1388. }
  1389. }
  1390. export namespace SoftBed {
  1391. export interface ReqSoftBed {
  1392. softbed: any;
  1393. }
  1394. export interface ResSoftBed {
  1395. softbed: any;
  1396. mxList: any[];
  1397. typeList: any[];
  1398. }
  1399. export interface ResGetSoftBedMxList {
  1400. billid: number;
  1401. }
  1402. export interface ResGetSoftBedConfigureList {
  1403. typeList: any[];
  1404. }
  1405. export interface ReqGetChangeSoftBedMxList {
  1406. billid: number;
  1407. codeList: any[];
  1408. }
  1409. }