optionList.js 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  1. import { number } from "echarts"
  2. export const option = {
  3. searchShow: true,
  4. searchMenuSpan: 8,
  5. align: "center",
  6. searchSpan: 8,
  7. tip: false,
  8. border: true,
  9. index: true,
  10. addBtn: false,
  11. viewBtn: false,
  12. editBtn: false,
  13. delBtn: false,
  14. menu: true,
  15. menuWidth: 100,
  16. searchIcon: true,
  17. searchIndex: 2,
  18. showSummary: true,
  19. summaryText: "合计",
  20. expand: true, //是否有展开表格
  21. sumColumnList: [
  22. {
  23. name: "debitAmount",
  24. type: "sum"
  25. },
  26. {
  27. name: "deliveringAmount",
  28. type: "sum"
  29. },
  30. {
  31. name: "balanceAmount",
  32. type: "sum"
  33. },
  34. {
  35. name: "settlmentAmount",
  36. type: "sum"
  37. }
  38. ],
  39. column: [
  40. {
  41. label: "客户名称",
  42. prop: "corpId",
  43. width:165,
  44. overHidden: true,
  45. search: true,
  46. hide:true,
  47. index: 1
  48. },
  49. {
  50. label: "客户名称",
  51. prop: "corpName",
  52. width:165,
  53. overHidden: true,
  54. index: 1
  55. },
  56. {
  57. label: "编号",
  58. prop: "sysNo",
  59. overHidden: true,
  60. index: 3
  61. },
  62. {
  63. label: "联系人",
  64. prop: "contacts",
  65. overHidden: true,
  66. search: true,
  67. index: 3
  68. },
  69. {
  70. label: "电话",
  71. prop: "contactsTel",
  72. search: true,
  73. overHidden: true,
  74. index: 3
  75. },
  76. {
  77. label: "设备名称",
  78. prop: "deviceJson",
  79. search: true,
  80. overHidden: true,
  81. index: 3
  82. },
  83. {
  84. label: "设备数量",
  85. prop: "equipmentNumber",
  86. overHidden: true,
  87. index: 4
  88. },
  89. {
  90. label: "维修次数",
  91. prop: "maintenanceSecond",
  92. index: 12
  93. },
  94. // {
  95. // label: "功能分类",
  96. // prop: "categoryitem",
  97. // type: "select",
  98. // props: {
  99. // label: "dictValue",
  100. // value: "dictValue"
  101. // },
  102. // dicUrl: "/api/blade-system/dict-biz/dictionary?code=functional_classification",
  103. // index:12
  104. // },
  105. {
  106. label: "合同起",
  107. prop: "signingDateStart",
  108. width: 120,
  109. index: 12
  110. },
  111. {
  112. label: "合同止",
  113. prop: "signingDateEnd",
  114. search: true,
  115. type:'date',
  116. format: "yyyy-MM-dd",
  117. valueFormat: 'yyyy-MM-dd HH:mm:ss',
  118. width: 120,
  119. index: 12
  120. },
  121. {
  122. label: "更新时间",
  123. prop: "updateTime",
  124. width: 160,
  125. index: 12
  126. },
  127. {
  128. label: "更新人",
  129. prop: "updateUser",
  130. width: 160,
  131. index: 12
  132. },
  133. {
  134. label: "备注",
  135. prop: "remarks",
  136. index: 12
  137. }
  138. ]
  139. }
  140. export const optionXiala = {
  141. align: "center",
  142. addBtn: false,
  143. refreshBtn: false,
  144. editBtn: false,
  145. delBtn: false,
  146. border: true,
  147. menuWidth: 120,
  148. stripe: true,
  149. index: true,
  150. header:false,
  151. indexSlot: true,
  152. showSummary: false,
  153. columnBtn:false,
  154. column: [
  155. {
  156. label: "设备名称",
  157. prop: "cname",
  158. width:'250px',
  159. overHidden: true
  160. },
  161. {
  162. label: "设备编号",
  163. prop: "code",
  164. overHidden: true
  165. },
  166. {
  167. label: "设备描述",
  168. prop: "equipmentDescribe",
  169. cell: true,
  170. overHidden: true
  171. },
  172. {
  173. label: "出厂日期",
  174. prop: "exitDate",
  175. overHidden: true
  176. },
  177. {
  178. label: "保养日期",
  179. prop: "maintenanceDate",
  180. overHidden: true
  181. },
  182. {
  183. label: "维修次数",
  184. prop: "maintenanceSecond",
  185. overHidden: true
  186. },
  187. {
  188. label: "工厂",
  189. prop: "factoryName",
  190. overHidden: true
  191. },
  192. {
  193. label: "规格",
  194. prop: "specs",
  195. },
  196. {
  197. label: "备注",
  198. prop: "remarks",
  199. cell: true,
  200. overHidden: true
  201. },
  202. ]
  203. }
  204. export const optionList = {
  205. align: "center",
  206. addBtn: false,
  207. refreshBtn: false,
  208. editBtn: false,
  209. delBtn: false,
  210. border: true,
  211. menuWidth: 200,
  212. stripe: true,
  213. index: true,
  214. indexSlot: true,
  215. showSummary: true,
  216. summaryText: "合计",
  217. sumColumnList: [
  218. {
  219. name: "amount",
  220. type: "sum"
  221. },
  222. {
  223. name: "storageAmount",
  224. type: "sum"
  225. },
  226. {
  227. name: "storageInQuantity",
  228. type: "sum"
  229. },
  230. {
  231. name: "actualQuantity",
  232. type: "sum"
  233. }
  234. ],
  235. column: [
  236. {
  237. label: "设备名称",
  238. hide:true,
  239. prop: "cname",
  240. width:'250px',
  241. overHidden: true
  242. },
  243. {
  244. label: "设备编号",
  245. prop: "code",
  246. width:'200px',
  247. overHidden: true
  248. },
  249. {
  250. label: "设备名",
  251. prop: "equipmentDescribe",
  252. cell: true,
  253. width:'200px',
  254. overHidden: true
  255. },
  256. {
  257. label: "出厂日期",
  258. prop: "exitDate",
  259. overHidden: true
  260. },
  261. {
  262. label: "保养日期",
  263. prop: "maintenanceDate",
  264. overHidden: true
  265. },
  266. {
  267. label: "安装日期",
  268. prop: "installDate",
  269. overHidden: true
  270. },
  271. {
  272. label: "维修次数",
  273. prop: "maintenanceSecond",
  274. overHidden: true
  275. },
  276. {
  277. label: "工厂",
  278. prop: "factoryName",
  279. overHidden: true,
  280. cell: true,
  281. },
  282. {
  283. label: "功能分类",
  284. prop: "categoryitem",
  285. hide:true,
  286. type: "select",
  287. props: {
  288. label: "dictValue",
  289. value: "dictValue"
  290. },
  291. dicUrl: "/api/blade-system/dict-biz/dictionary?code=functional_classification",
  292. overHidden: true
  293. },
  294. {
  295. label: "设备分类",
  296. prop: "goodsTypeId",
  297. hide:true,
  298. type: 'select',
  299. dicData: [],
  300. props: {
  301. label: 'title',
  302. value: 'id'
  303. },
  304. },
  305. {
  306. label: "规格",
  307. prop: "specs",
  308. cell:true,
  309. },
  310. {
  311. label: "品牌",
  312. prop: "brand",
  313. type: "select",
  314. props: {
  315. label: "cname",
  316. value: "cname"
  317. },
  318. dicData: [],
  319. cell: true,
  320. change:(val)=>{
  321. for(let item of val.column.dicData) {
  322. if (val.value == item.cname) {
  323. val.row.brandId = item.id
  324. break;
  325. }
  326. }
  327. }
  328. },
  329. {
  330. label: "备注",
  331. prop: "remarks",
  332. cell: true,
  333. overHidden: true
  334. },
  335. ]
  336. }
  337. export const feeOption = {
  338. align: "center",
  339. addBtn: false,
  340. refreshBtn: false,
  341. editBtn: false,
  342. delBtn: false,
  343. border: true,
  344. menuWidth: 120,
  345. stripe: true,
  346. index: true,
  347. indexSlot: true,
  348. column: [
  349. {
  350. label: "付款单号",
  351. prop: "sysNo",
  352. overHidden: true
  353. },
  354. {
  355. label: "付款日期",
  356. prop: "settlementDate",
  357. type: "datetime",
  358. format: "yyyy-MM-dd HH:mm:ss",
  359. valueFormat: "yyyy-MM-dd HH:mm:ss",
  360. overHidden: true
  361. },
  362. {
  363. label: "付款金额",
  364. prop: "amount",
  365. cell: true,
  366. overHidden: true
  367. },
  368. {
  369. label: "付款账户",
  370. prop: "account",
  371. type: "select",
  372. props: {
  373. label: "dictValue",
  374. value: "dictValue"
  375. },
  376. dicData:[],
  377. cell: true,
  378. overHidden: true
  379. },
  380. {
  381. label: "备注",
  382. prop: "remark",
  383. cell: true,
  384. overHidden: true
  385. }
  386. ]
  387. }