StatusCode.Class.php 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710
  1. <?php
  2. /**
  3. * 统一的内容状态码
  4. * 原则上按照数字顺序申请,可以提前占位,体现分组
  5. * !!!不允许出现重复状态码!!!
  6. */
  7. namespace Mall\Framework\Core;
  8. class StatusCode
  9. {
  10. /**
  11. * 公用模块状态码
  12. *
  13. * 数值范围 1-100
  14. */
  15. /** @var int $partion 部分 */
  16. public static $partion = 3;
  17. /** @var int $delete 删除 */
  18. public static $delete = 4;
  19. /** @var int $standard 正常 */
  20. public static $standard = 5;
  21. /** @var int $offline 下线 */
  22. public static $offline = 6;
  23. /**
  24. * XX模块状态码
  25. *
  26. * 数值范围 101-200
  27. */
  28. /**
  29. * XX模块状态码
  30. *
  31. * 数值范围 201-300
  32. */
  33. /**
  34. * 系统设置类型type
  35. */
  36. public static $settingType = [
  37. 'applets' => 1, // 小程序设置
  38. 'message' => 2, // 模板消息设置
  39. 'class' => 3, // 分类设置
  40. ];
  41. public static $adminSettingType = [
  42. 'pay' => 1, // 支付
  43. 'delivery' => 2, // 配送
  44. 'financeType' => 3, // 财务类型
  45. 'unit' => 4, //属性
  46. 'printTemplate' => 5,//打印模版,
  47. 'role' => 6,//角色
  48. 'process' => 7,//流程,
  49. 'notice' => 8,//语音提示
  50. ];
  51. public static $systemFinanceType = [
  52. 'saleReturnReceipt' => 1,//销售退货退款
  53. 'saleReceipt' => 2,//销售收款
  54. 'purchaseReturnReceipt' => 3,//采购退货收款
  55. 'purchasePrepaid' => 4,//采购预付
  56. 'purchaseReceipt' => 5,//采购付款
  57. 'depositsReceived' => 6,//预存收款
  58. 'expenseSingleIn' => 7,//费用单收款
  59. 'expenseSingleOut' => 8,//费用单支出
  60. 1 => '销售退货退款',//费用单支出
  61. 2 => '销售收款',//费用单支出
  62. 3 => '采购退货收款',//费用单支出
  63. 4 => '采购预付',//费用单支出
  64. 5 => '采购付款',//费用单支出
  65. 6 => '预存收款',//费用单支出
  66. 7 => '费用单收款',//费用单支出
  67. 8 => '费用单支出',//费用单支出
  68. ];
  69. public static $messageType = [
  70. 'inventoryNull' => 1,//库存不足消息
  71. ];
  72. /**
  73. * 通用审核状态
  74. */
  75. public static $auditStatus = [
  76. 'completion' => 0, //待补全
  77. 'auditing' => 1, // 待审
  78. 'auditPass' => 2, // 审核通过
  79. 'auditNotPass' => 3, //审核未通过
  80. 'auditIng' => 4, // 审核中
  81. 0 => '待补全',
  82. 1 => '待审核',
  83. 2 => '审核通过',
  84. 3 => '审核未通过',
  85. 4 => '审核中',
  86. ];
  87. /**
  88. * 分销层级
  89. */
  90. public static $level = [
  91. 'off' => 0, //分销开关
  92. 'one' => 1, //第一级
  93. 'two' => 2, //第二级
  94. 'three' => 3, //第三级
  95. ];
  96. public static $subConditions = [
  97. 'oneCheck' => 1, //首次点击链接
  98. 'oneOrder' => 2, //首次下单
  99. 'onePay' => 3, //首次付款
  100. ];
  101. /** @var array $userActionID 用户操作行为 */
  102. public static $userActionID = [
  103. 'favour' => 1,// 点赞
  104. 'tread' => 2, // 踩--不喜欢
  105. 'report' => 3, // 举报
  106. 'fllow' => 4, // 关注
  107. 'avorites' => 5, //收藏
  108. 'notAvorites' => 6, // 取消收藏
  109. 'notFollow' => 7, //取消关注
  110. 'notTread' => 8,//取消踩--不喜欢
  111. 'notFavour' => 9, //取消点赞
  112. ];
  113. /** @var array $type 价格类型 */
  114. public static $priceType = [
  115. 'salePrice' => 1,//销售价
  116. 'costPrice' => 2,// 成本价
  117. 'qtPrice' => 3,// 其他价
  118. ];
  119. /** @var array $type 运费类型 */
  120. public static $freightType = [
  121. 'enterCharge' => 1,//销售价
  122. 'pourCharge' => 2,// 成本价
  123. ];
  124. /** @var array $userActionObj 用户操作对象 此处标识修改需谨慎多处关联 */
  125. public static $userActionObj = [
  126. /** @var int $actionContent 用户操作对象-文章 */
  127. 'actionContent' => 1,
  128. /** @var int $actionUser 用户操作对象-用户 */
  129. 'actionUser' => 2,
  130. /** @var int $actionComment 用户操作对象-评论 */
  131. 'actionComment' => 3,
  132. /** @var int $actionMall 用户操作对象-商场 -店铺 */
  133. 'actionMallStore' => 4,
  134. /** @var int $actionMall 用户操作对象-商场 -商品 */
  135. 'actionMallShop' => 5,
  136. /** @var int $actionSea 用户操作对象-海淘--店铺 */
  137. 'actionSeaStore' => 6,
  138. /** @var int $actionSea 用户操作对象-海淘--商品 */
  139. 'actionSeaShop' => 7,
  140. /** @var int $actionMall 用户操作对象-商场 */
  141. 'actionMall' => 8,
  142. /** @var int $actionMall 用户操作对象-旅游景点 */
  143. 'actionScenic' => 9,
  144. /** @var int $actionPromotion 用户操作对象-消费打折信息 */
  145. 'actionPromotion' => 10,
  146. /** @var int $actionArVocalConcert 用户操作对象-休闲--演唱会a */
  147. 'actionArVocalConcert' => 24,
  148. /** @var int $actionArTheatre 用户操作对象-休闲--剧场a */
  149. 'actionArTheatre' => 25,
  150. /** @var int $actionArTusicale 用户操作对象-休闲--音乐会a */
  151. 'actionArMusicale' => 26,
  152. /** @var int $actionArCompete 用户操作对象-休闲--比赛a */
  153. 'actionArCompete' => 27,
  154. /** @var int $actionArVariety 用户操作对象-休闲--综艺a */
  155. 'actionArVariety' => 28,
  156. /** @var int $actionArder 用户操作对象-休闲--博物馆p */
  157. 'actionArMuseum' => 29,
  158. /** @var int $actionArSport 用户操作对象-休闲--健身p */
  159. 'actionArSport' => 30,
  160. /** @var int $actionArCoffee 用户操作对象-休闲--咖啡p */
  161. 'actionArCoffee' => 31,
  162. /** @var int $actionMall 用户操作对象-其他 */
  163. 'actionArOther' => 32,
  164. /** @var int $actionArCoffee 用户操作对象-休闲--下午茶p */
  165. 'actionArTea' => 33,
  166. /** @var int $actionArCoffee 用户操作对象-休闲--酒吧p */
  167. 'actionArWine' => 34,
  168. /** @var int $actionArCoffee 用户操作对象-休闲--足疗p */
  169. 'actionArFoot' => 35,
  170. /** @var int $actionArCoffee 用户操作对象-休闲--轰趴p */
  171. 'actionArParty' => 36,
  172. /** @var int $actionArCoffee 用户操作对象-休闲--瑜伽p */
  173. 'actionArYoga' => 37,
  174. /** @var int $actionArCoffee 用户操作对象-休闲--舞蹈p */
  175. 'actionArDance' => 38,
  176. ];
  177. /**
  178. * 成本计算标识
  179. */
  180. public static $costType = [
  181. 'mwa' => 1,//移动加权平均法
  182. 'sp' => 2,//个别计价法
  183. ];
  184. /**
  185. * 成本标识名称
  186. */
  187. public static $costTypeTitle = [
  188. 1 => '移动加权平均法',
  189. 2 => '个别计价法',
  190. ];
  191. /**
  192. * 采购订单 状态码
  193. * @var array
  194. * 1:创建2:审核中3:已审核4:重新审核
  195. */
  196. public static $purchaseOrder = [
  197. 'create' => 1,
  198. 'auditing' => 2,
  199. 'audited' => 3,
  200. 'reAudite' => 4
  201. ];
  202. /**
  203. * 销售出库是否已出库状态
  204. * @var array
  205. */
  206. public static $outWarehouseStatus = [
  207. 'shopPut' => 1, //未出库商品推送出库单,状态未出库
  208. 'erpOut' => 2, //已出库 erp自己创建的销售出库
  209. 'shopPutOut' => 2, //已出库 商城推的订单
  210. ];
  211. /**
  212. * 销售订单来源
  213. * @var array
  214. */
  215. public static $orderFrom = [
  216. 'shopOrder' => 1, //商城订单
  217. 'stockOrder' => 2, //库存服务自建订单
  218. ];
  219. /**
  220. *锁库存与解库存标识
  221. * @var array
  222. */
  223. public static $lockType = [
  224. 'lock' => 1, //未出库商品推送出库单,状态未出库
  225. 'unlock' => 2, //已出库 erp自己创建的销售出库
  226. ];
  227. /**
  228. * 销售退货方式
  229. * @var array
  230. */
  231. public static $sellReturnMoney = [
  232. 'returnMoney' => 1, //销售退货退资金
  233. 'notReturnMoney' => 2, //销售退货不退资金
  234. ];
  235. /*
  236. * 订单状态
  237. */
  238. public static $orderShippingStatus = [
  239. 'out' => 1, //已经提交出库
  240. 'get' => 2, //已收货
  241. 'returnAll' => 3, //全部退货
  242. 'returnPart' => 4, //部分退货
  243. ];
  244. /*
  245. * 订单操作来源
  246. */
  247. public static $actionType = [
  248. 'shop' => 0, //商城
  249. 'stock' => 1, //库存服务
  250. 'tms' => 2, //已收货
  251. ];
  252. /**
  253. * 定价系统 - 销售价格生效区域类型
  254. */
  255. public static $salePriceAreaType = [
  256. 'nationalUnifiedPrice' => 1, // 全国统一价格
  257. 'areaPrice' => 2, // 大区和片区价格
  258. ];
  259. /**
  260. * 定价系统 - 销售价格类型
  261. */
  262. public static $salePriceType = [
  263. 'salePrice' => 1, // 普通市场价
  264. 'seckillPrice' => 2, // 活动秒杀价
  265. ];
  266. /**
  267. * 定价系统 - 权限标识
  268. */
  269. public static $aclType = [
  270. 'edit' => 1, // 编辑
  271. 'cat' => 2, // 查看
  272. 'noCast' => 3, // 去除成本
  273. ];
  274. /**
  275. * 支付方式
  276. */
  277. public static $payType = [
  278. 'wxPay' => 1, //微信
  279. 'aliPay' => 2, //支付宝
  280. 'cashPay' => 3, //货到付款
  281. 'bankLoans' => 4, //银行打款
  282. 'cash' => 5,//现金支付
  283. 'other' => 6,//其他
  284. 'balance' => 7, // 余额支付
  285. 'byte' => 8, // 字节跳动
  286. 'cashBefore'=> 9, // 先款后货
  287. 1 => '微信支付',
  288. 2 => '支付宝',
  289. 3 => '货到付款',
  290. 4 => '银行打款',
  291. 5 => '现金支付',
  292. 6 => '其它',
  293. 7 => '余额支付',
  294. 8 => '字节跳动',
  295. 9 => '先款后货'
  296. ];
  297. /**
  298. * 配送方式
  299. */
  300. public static $deliveryType = [
  301. 'goodsDelivery' => 1, //商品配送
  302. 'selfMention' => 2, //上门自提
  303. 'logistics' => 3, //物流
  304. 'logisticsLines' => 4, // 物流专线
  305. 'logisticsVehicle' => 5, // 物流专车
  306. 1 => '快递',
  307. 2 => '上门自提',
  308. 3 => '物流',
  309. 4 => '物流专线',
  310. 5 => '物流专车',
  311. ];
  312. /**
  313. * 业务来源
  314. */
  315. public static $source = [
  316. 'ios' => 1, //ios
  317. 'android' => 2,//安卓
  318. 'miniProgram' => 3,//小程序
  319. 'manage' => 4, //后台创建
  320. 'H5' => 5, //H5页面
  321. 'Pc' => 6, //Pc页面
  322. 'manageMiniProgram' => 7,//微信小程序后台管理端
  323. 'ByteProgram' => 8,//字节小程序
  324. 'weiXinBrowser' => 9, // 微信浏览器
  325. 1 => '苹果',
  326. 2 => '安卓',
  327. 3 => '小程序',
  328. 4 => '后台创建',
  329. 5 => 'H5页面',
  330. 6 => 'PC页面',
  331. 7 => '微信小程序后台管理',
  332. 8 => '字节小程序',
  333. 9 => '微信浏览器'
  334. ];
  335. /**
  336. * 订单状态
  337. */
  338. public static $orderStatus = [
  339. //'create' => 1, //创建
  340. 'waitPay' => 2, //等待支付
  341. 'waitDelivery' => 3, //待发货
  342. 'waitReceive' => 4, //待收货
  343. 'finish' => 5, //已完成
  344. 'close' => 6, //已关闭
  345. 'cancelIng' => 7, // 待取消
  346. 2 => '等待支付',
  347. 3 => '待发货',
  348. 4 => '待收货',
  349. 5 => '已完成',
  350. 6 => '已关闭',
  351. 7 => '待取消', // 申请取消订单,等待审核
  352. ];
  353. /**
  354. * 订单退货状态
  355. */
  356. public static $orderReturn = [
  357. 'notReturn' => 0, //未退货
  358. 'partReturn' => 1, //部分退货 (详情里用是已退货)
  359. 'allReturn' => 2, //全部退货 (详情里用是已退货)
  360. ];
  361. /**
  362. * 单据状态
  363. */
  364. public static $documentStatus = [
  365. 'create' => 1, //已创建
  366. 'audit' => 2, //已审核
  367. 'inventoryAudit' => 3, //库存已审核
  368. 'return' => 9, //已退货 (单据详情)
  369. 'returnAll' => 7, //全部退货 (主单据)
  370. 'returnPart' => 8, //部分退货 (主单据)
  371. ];
  372. /**
  373. * 订单退货状态
  374. */
  375. public static $orderPickStatus = [
  376. 'notPicking' => 1,
  377. 'picking' => 2,
  378. 'finishPicking' => 3,
  379. 1 => '未拣货',
  380. 2 => '拣货中',
  381. 3 => '拣货完成',
  382. ];
  383. /**
  384. * 客户账号状态
  385. */
  386. public static $customerStatus = [
  387. 'enable' => 1, //已审核
  388. 'delete' => 2, //待审核
  389. ];
  390. /**
  391. * 客户类型
  392. */
  393. public static $customerType = [
  394. 'customer' => 5, //企业客户
  395. 'user' => 4, //企业用户
  396. ];
  397. /**
  398. * 单据类型
  399. * @var array
  400. */
  401. public static $orderType = [
  402. 'saleOrder' => 1,//销售订单
  403. 'purchaseOrder' => 2,//采购订单
  404. 'purchaseIn' => 3,//采购入库
  405. 'purchaseReturn' => 4,//采购退货
  406. 'saleOut' => 5,//销售出库
  407. 'saleReturn' => 6,//销售退货
  408. 'allocate' => 7,//调拨库存
  409. 'allocateOut' => 8,//调拨出库
  410. 'batch' => 9,//批次编号
  411. 'priceAdjustment' => 10,//商品调价单
  412. 'customerPriceAdjustment' => 11,//客户调价单
  413. 'customerTypePriceAdjustment' => 11,//客户类型调价单
  414. 'allocateIn' => 12,//调拨入库
  415. 'stocktaking' => 13,//盘点库存
  416. 'purchaseReturnOut' => 14,//采购退货出库
  417. 'saleReturnIn' => 15,//销售退货入库
  418. 'reportLoss' => 27,//库存报损
  419. 'merchantPurchase' => 29,//商户采购单
  420. 'merchantPurchaseIn' => 30,//商户入库单
  421. /*财务*/
  422. 'shouldReceive' => 16,//应收单
  423. 'received' => 17,//收款单
  424. 'shouldPay' => 18,//应付单
  425. 'payed' => 19,//付款单
  426. 'accountTransfer' => 20,//资金转账
  427. 'ExpenseSingle' => 28, //费用单
  428. //单据
  429. 'warehouseBeginning' => 21,//仓库期初
  430. //会员卡
  431. 'vipCard' => 22,
  432. //销售单(销售单管理)
  433. 'salesSlip' => 23,//销售单
  434. 'cashierOrder' => 24,//收银台订单
  435. 'storeWithdraw' => 25,//商户提现
  436. 'supplierOfferPrice' => 26,//供应商报价单
  437. ];
  438. /**
  439. * 单据编码前缀
  440. * @var array
  441. */
  442. public static $noPrefix = [
  443. 1 => 'XSDD',// 1 销售订单
  444. 2 => 'CGDD',// 2 采购订单
  445. 3 => 'CGRK',// 3 采购入库
  446. 4 => 'CGTH',// 4 采购退货
  447. 5 => 'XSCK',// 5 销售出库
  448. 6 => 'TH',// 6 销售退货
  449. 7 => 'DBKC',// 7 调拨库存
  450. 8 => 'DBCK',// 8 调拨出库
  451. 12 => 'DBRK',//12 调拨入库
  452. 13 => 'PDKC',//13 盘点库存
  453. 14 => 'CGTHCK',//14 采购退货出库
  454. 15 => 'XSTHRK',//15 销售退货入库
  455. 16 => 'YS', // 16 应收单
  456. 17 => 'SK', // 17 收款单
  457. 18 => 'YF', // 18 应付单
  458. 19 => 'FK', // 19 付款单
  459. 20 => 'TK', // 20 退款单
  460. 26 => 'RFQS',// 26 供应商报价单
  461. 27 => 'BSD',//27 报损单
  462. 28 => 'FY', // 28 费用单
  463. 29 =>'SHCG',//商户采购单
  464. 30 => 'SHRK',//商户入库单
  465. 31 => 'JHD',//拣货单
  466. 32 => 'DBD',//调拨单
  467. 33 => 'BCD',//报损单
  468. ];
  469. /**
  470. * 编码前缀
  471. * @var array
  472. */
  473. public static $code = [
  474. 'brand' => ['prefix' => 'BRAND', 'length' => 6],//品牌
  475. 'customer' => ['prefix' => 'CUSTOMER', 'length' => 6],//客户
  476. 'category' => ['prefix' => 'CATEGORY', 'length' => 6],//分类
  477. 'goodsBasic' => ['prefix' => 'MATERIEL', 'length' => 6],//基础物料code
  478. 'shop' => ['prefix' => 'SHOP', 'length' => 6],//商铺
  479. 'supplier' => ['prefix' => 'SUPPLIER', 'length' => 6],//供应商
  480. 'staff' => ['prefix' => 'STAFF', 'length' => 6],//员工
  481. 'warehouse' => ['prefix' => 'WAREHOUSE', 'length' => 6],//仓库
  482. 'account' => ['prefix' => 'ACCOUNT', 'length' => 6],//账户编码
  483. ];
  484. /**
  485. * 角色类型
  486. * @var array
  487. */
  488. public static $roleType = [
  489. 'admin' => 1,//后台管理员
  490. 'staff' => 2,//员工
  491. 'customer' => 3,//客户
  492. 'merchant' => 4,//商户
  493. 'supplier' => 5,//供应商
  494. ];
  495. /**
  496. * 数据域类型
  497. * @var array
  498. */
  499. public static $dataFieldType = [
  500. 'person' => 1,//个人
  501. 'staff' => 2,//员工
  502. 'all' => 3,//所有
  503. ];
  504. /**
  505. * 小程序模板审核状态
  506. */
  507. public static $weixinTemplateStatus = [
  508. 'commit' => 1, // 提交代码
  509. 'auditing' => 2, // 提交审核
  510. ];
  511. /*** @var array 模版状态********* */
  512. public static $wxAuditStatus = [
  513. 'pass' => 0,//审核成功
  514. 'refuse' => 1,//审核拒绝
  515. 'inAudit' => 2,//审核中
  516. 'withdrawn' => 3,//已撤回
  517. 'postponed' => 4,//延后
  518. 'noSubmit' => 5,//提交审核
  519. 'beenRelease' => 6,//提交代码
  520. 'beingUsed' => 7,//正在使用
  521. ];
  522. /*** @var array 优惠券类型 */
  523. public static $couponType = [
  524. 'commonly' => 10,// 普通优惠券
  525. 'vipCoupon' => 20,// 会员卡优惠券
  526. ];
  527. /**@var array 发放方式****** */
  528. public static $grantType = [
  529. 'receive' => 10,//主动领取
  530. 'grant' => 20,//定向发放
  531. 'register' => 30,//注册领取
  532. 'onlinePay' => 40,//在线支付领取
  533. ];
  534. /***@var array 商品适用范围* */
  535. public static $applyRange = [
  536. 'allGoods' => 10,//全部商品
  537. 'appointCategory' => 20,//指定分类
  538. 'appointBrand' => 30,//指定品牌
  539. 'goodsCollect' => 40,//指定商品
  540. ];
  541. /***************活动类型*********/
  542. public static $activityType = [
  543. 'specialOffer' => 10,//特价
  544. 'secKill' => 20,//秒杀
  545. ];
  546. /************************/
  547. public static $delivery = [
  548. '包邮',
  549. '自提'
  550. ];
  551. /******@var array $templateType 模版类型 * */
  552. public static $templateType = [
  553. 'ordinary' => 1,//普通模版
  554. 'universal' => 2,//万能模版
  555. ];
  556. /***@var array $pageType 页面类型** */
  557. public static $pageType = [
  558. 'home' => 1,//首页,
  559. 'special' => 2,//专题
  560. ];
  561. /*** @var array $specType 规格类型 */
  562. public static $specType = [
  563. 'single' => 1,//单规格
  564. 'multiple' => 2,//多规格
  565. ];
  566. /*** @var array 系统默认角色id */
  567. public static $roleId = [
  568. 'cashier' => 1,//收银员工,
  569. 'guide' => 2,//导购员
  570. ];
  571. public static $expressType = [
  572. 'free' => 1,
  573. 'rule' => 2,
  574. 'unify' => 3
  575. ];
  576. //匿名用户UID
  577. public static $noneUserCenter = 99999;
  578. //匿名客户id
  579. public static $noneCustomer = 99999;
  580. /**
  581. * @var array 流程类型
  582. */
  583. public static $processType = [
  584. 'sales' => 1,//订货流程
  585. 'retSales' => 2,//退货流程
  586. ];
  587. /**
  588. * @var array 小程序主体类型
  589. */
  590. public static $principalType = [
  591. 'personal' => 0,
  592. 'enterprise' => 1,
  593. 'media' => 2,
  594. 'gov' => 3,
  595. 'other' => 4,
  596. ];
  597. /**
  598. * @var array 业务模式
  599. */
  600. public static $modelType = [
  601. 'B2C' => 1,
  602. 'B2B' => 2,
  603. 'multi' => 3,//多商户
  604. ];
  605. /**
  606. * @var array 标签颜色
  607. */
  608. public static $colourType = [
  609. 1 => '蓝色',
  610. 2 => '绿色',
  611. 3 => '粉色',
  612. 4 => '橙色',
  613. ];
  614. /**
  615. * 财务账户类型
  616. */
  617. public static $financeAccountType = [
  618. 'ali' => 1, // 支付宝账户
  619. 'wx' => 2, // 微信账户
  620. 'bank' => 3, //银行卡账户
  621. 'ordinary' => 4, // 普通账户
  622. ];
  623. /**
  624. * 出库状态
  625. */
  626. public static $outStatus = [
  627. 'notOut' => 4, // 未出库
  628. 'allOut' => 5, // 全部出库
  629. 'notAllOut' => 6, // 部分出库
  630. ];
  631. /**
  632. * 支付状态
  633. */
  634. public static $payStatus = [
  635. 'pay' => 4,
  636. 'notPay' => 5,
  637. 'refund' => 6,
  638. 'partRefund'=>7,
  639. ];
  640. }