dict.php 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691
  1. <?php
  2. namespace common\components;
  3. //字典
  4. class dict
  5. {
  6. public static $data = [
  7. // 配送方式默认配置
  8. 'shMethod' => [
  9. 0 => [
  10. 'name' => '送货',
  11. 'originName' => '送货',
  12. 'status' => 1,
  13. 'sort' => 1,
  14. 'minAmount' => 0.00,
  15. 'minNum' => 0,
  16. 'unMeet' => 0,
  17. 'unMeetFee' => 0.00,
  18. 'startKm' => 0.00,
  19. 'startPrice' => 0.00,
  20. 'perKmPrice' => 0.00,
  21. 'changeRate' => 0.00
  22. ],
  23. 1 => [
  24. 'name' => '自取',
  25. 'originName' => '自取',
  26. 'status' => 1,
  27. 'sort' => 2,
  28. 'minAmount' => 0.00,
  29. 'minNum' => 0,
  30. 'unMeet' => 0,
  31. 'unMeetFee' => 0.00,
  32. 'startKm' => 0.00,
  33. 'startPrice' => 0.00,
  34. 'perKmPrice' => 0.00,
  35. 'changeRate' => 0.00
  36. ],
  37. 2 => [
  38. 'name' => '跑腿',
  39. 'originName' => '跑腿',
  40. 'status' => 1,
  41. 'sort' => 3,
  42. 'minAmount' => 0.00,
  43. 'minNum' => 0,
  44. 'unMeet' => 0,
  45. 'unMeetFee' => 0.00,
  46. 'startKm' => 0.00,
  47. 'startPrice' => 0.00,
  48. 'perKmPrice' => 0.00,
  49. 'changeRate' => 0.00
  50. ],
  51. 4 => [
  52. 'name' => '快递',
  53. 'originName' => '快递',
  54. 'status' => 1,
  55. 'sort' => 4,
  56. 'minAmount' => 0.00,
  57. 'minNum' => 0,
  58. 'unMeet' => 0,
  59. 'unMeetFee' => 0.00,
  60. 'startKm' => 0.00,
  61. 'startPrice' => 0.00,
  62. 'perKmPrice' => 0.00,
  63. 'changeRate' => 0.00
  64. ],
  65. 3 => [
  66. 'name' => '物流',
  67. 'originName' => '物流',
  68. 'status' => 1,
  69. 'sort' => 5,
  70. 'minAmount' => 0.00,
  71. 'minNum' => 0,
  72. 'unMeet' => 0,
  73. 'unMeetFee' => 0.00,
  74. 'startKm' => 0.00,
  75. 'startPrice' => 0.00,
  76. 'perKmPrice' => 0.00,
  77. 'changeRate' => 0.00
  78. ],
  79. ],
  80. //APP通知打开关闭状态 1打开 0关闭
  81. 'appNotice' => 1,
  82. //微信通知打开关闭状态 1打开 0关闭
  83. 'wxNotice' => 1,
  84. //是否具备地址功能 0不具备 1具备
  85. 'hasMap' => 1,
  86. //mainId对应物流月结账号
  87. 'expressBizIdMap' => [
  88. //长春花路鲜花,
  89. '36707' => '4312960899',
  90. //龙岩花掌柜
  91. '50' => '5925274162',
  92. ],
  93. //花材售后原因
  94. 'itemRefundOption' => [
  95. 0 => ['id' => 0, 'name' => '未选'],
  96. 1 => ['id' => 1, 'name' => '烂瓣,掉瓣'],
  97. 2 => ['id' => 2, 'name' => '上点'],
  98. 3 => ['id' => 3, 'name' => '少货'],
  99. 4 => ['id' => 4, 'name' => '品质问题退差价'],
  100. ],
  101. //允许看商家列表的人员
  102. 'couldLookAllShop' => [
  103. 4,//石头
  104. 7335,//骆总
  105. 1960,//少奇
  106. ],
  107. 'getPayType' => 1,
  108. 'appVersion' => 2,
  109. 'transType' => [
  110. //德邦
  111. 'db' => 0,
  112. //顺丰
  113. 'sh' => 1,
  114. //冷链
  115. 'll' => 2,
  116. //航空
  117. 'hk' => 3,
  118. //同城配送
  119. 'local' => 4,
  120. //到店自取
  121. 'zt' => 5,
  122. ],
  123. //昆明基地包装费计算
  124. 'kmPackCost' => [
  125. ['num' => 10, 'amount' => 15],
  126. ['num' => 25, 'amount' => 25],
  127. ['num' => 30, 'amount' => 30],
  128. ['num' => 40, 'amount' => 35],
  129. ['num' => 50, 'amount' => 40],
  130. ['num' => 60, 'amount' => 45],
  131. ['num' => 80, 'amount' => 65],
  132. ['num' => 100, 'amount' => 80],
  133. ],
  134. //昆明基地包装费计算2
  135. 'kmPackCost2' => [
  136. ['num' => 10, 'amount' => 0],
  137. ['num' => 25, 'amount' => 0],
  138. ['num' => 30, 'amount' => 0],
  139. ['num' => 40, 'amount' => 0],
  140. ['num' => 50, 'amount' => 0],
  141. ['num' => 60, 'amount' => 0],
  142. ['num' => 80, 'amount' => 0],
  143. ['num' => 100, 'amount' => 0],
  144. ],
  145. //昆明基地包装费计算3
  146. 'kmPackCost3' => [
  147. ['num' => 20, 'amount' => 30],
  148. ['num' => 50, 'amount' => 60],
  149. ['num' => 100, 'amount' => 80],
  150. ],
  151. //测试环境
  152. // 'kmPackCost' => [
  153. // ['num' => 10, 'amount' => 0.15],
  154. // ['num' => 25, 'amount' => 0.25],
  155. // ['num' => 30, 'amount' => 0.3],
  156. // ['num' => 40, 'amount' => 0.35],
  157. // ['num' => 50, 'amount' => 0.40],
  158. // ['num' => 60, 'amount' => 0.45],
  159. // ['num' => 80, 'amount' => 0.65],
  160. // ['num' => 100, 'amount' => 0.8],
  161. // ],
  162. //重量计算标准,包括德邦、顺丰、冷链和航空。其中冷链物流,40公斤以下小件,60公斤以下中件,100公斤以下大件
  163. 'transCost' => [
  164. ['sign' => 0, 'perKiloCost' => 5],
  165. ['sign' => 1, 'perKiloCost' => 9],
  166. ['sign' => 2, 'option' => [['num' => 20, 'amount' => 50], ['num' => 30, 'amount' => 80], ['num' => 50, 'amount' => 120], ['num' => 70, 'amount' => 180], ['num' => 100, 'amount' => 200]]],
  167. ['sign' => 3, 'perKiloCost' => 4],
  168. ['sign' => 4, 'perKiloCost' => 0],
  169. ['sign' => 5, 'perKiloCost' => 0],
  170. ],
  171. //测试环境,德邦、顺丰、冷链和航空
  172. // 'transCost' => [
  173. // ['sign' => 0, 'perKiloCost' => 0.05],
  174. // ['sign' => 1, 'perKiloCost' => 0.09],
  175. // ['sign' => 2, 'option' => [['num' => 40, 'amount' => 0.05], ['num' => 60, 'amount' => 0.1], ['num' => 100, 'amount' => 0.2]]],
  176. // ['sign' => 3, 'perKiloCost' => 0.04],
  177. // ],
  178. //默认开启订阅消息
  179. 'subscribeMessage' => 1,
  180. 'hdMiniMessage' => [
  181. //优惠券到账通知
  182. 'giveCoupon' => ['msgId' => '_MqYqXLgNPWvHg-tUuh3vJMTb2aAOvvIFf0Vm2pwjiI'],
  183. //购买成功通知
  184. 'cgSuccess' => ['msgId' => 'UAIsxaFbkyi34CRYqncQ6pNsjNgn6Gcqte_AoHmPbxA'],
  185. //账单生成提醒
  186. 'remindHdClear' => ['msgId' => 'Xyjo2M0uMbrTLg76wuMf0b7i_tqjcqosKj-hACDHPds'],
  187. //发货通知
  188. 'fhNotice' => ['msgId' => 'WyktXtxES58RwUbkXhD1N9lNNmxM3tNKiOuDf_YG_DQ'],
  189. //售后通知
  190. 'afterSale' => ['msgId' => 'QbQLZy-Mxv1wrqKHhaH8lM6BuXDZv4IoOZPHpJQmMTY'],
  191. ],
  192. 'hdMiniMessageDev' => [
  193. //优惠券到账通知
  194. 'giveCoupon' => ['msgId' => 'r7BIUWRqpVmqqOqdtq5BhjffkLyOaZxi0fvme_l-V8A'],
  195. //购买成功通知
  196. 'cgSuccess' => ['msgId' => 'ZfCmPfD96W_H0-pWDyQHCJQC5ht41NXtTS8nP28xKQQ'],
  197. //账单生成提醒
  198. 'remindHdClear' => ['msgId' => '1mj55S920TbW_iF_jpHQrdVShs7LQgPBzy_GeU3kbhk'],
  199. //发货通知
  200. 'fhNotice' => ['msgId' => 'aqrvfRVus0PbxaSeqhuPd6W4T7awoQX9nIT2y2jLPB0'],
  201. //售后通知
  202. 'afterSale' => ['msgId' => 'eLRc2blfKBMsuGHkFnQ_rWDBZwMmJErr7L-BDwAHBLc'],
  203. ],
  204. 'mtConfig' => [
  205. 'app_id' => '119094',
  206. 'app_secret' => 'b7e86d768391180f805621b40ec31e33',
  207. 'request_url' => '', // 默认 `https://waimaiopen.meituan.com/api/v1/`
  208. ],
  209. //小程序原始ID
  210. 'miniOriginalId' => [
  211. 'dev' => ['mall' => 'gh_071ff9f39df6', 'hd' => 'gh_177befc881cb', 'ghs' => 'gh_2a429284375a', 'jd' => '',],
  212. 'product' => ['mall' => 'gh_38f1a1af64ca', 'hd' => 'gh_73b8b357d19a', 'ghs' => 'gh_2e886744af66', 'jd' => '',],
  213. 'current' => ['mall' => '', 'hd' => '', 'ghs' => '', 'jd' => '',],
  214. ],
  215. //是否需要打印
  216. 'needPrint' => [
  217. 'need' => 1,
  218. 'noNeed' => 2,
  219. ],
  220. //结账方式
  221. 'hasPay' => [
  222. //待付款,扫码付
  223. 'unPay' => 0,
  224. //线下
  225. 'payed' => 1,
  226. //欠款
  227. 'debt' => 2,
  228. //现金
  229. 'cash' => 3,
  230. //余额
  231. 'balance' => 4,
  232. ],
  233. 'hasPayMap' => [
  234. ],
  235. //产品属性
  236. 'property' => [
  237. //商品
  238. 'goods' => 0,
  239. //花材
  240. 'item' => 1,
  241. ],
  242. //单位类型 0大单位 1小单位
  243. 'unitType' => [
  244. 'big' => 0,
  245. 'small' => 1,
  246. ],
  247. //配送方式,0送货上门 1到店自取 2跑腿 3发物流 4快递
  248. 'sendType' => [
  249. 'carGet' => 0,
  250. 'shopGet' => 1,
  251. 'thirdSend' => 2,
  252. 'wl' => 3,
  253. 'express' => 4,
  254. ],
  255. //批发店囤货时显示给零售库存的最高值
  256. 'showMaxStock' => 260,
  257. //余额满miniCashAmount才能提现
  258. 'miniCashAmount' => 1,
  259. //本条流水的余额是否可以提现
  260. 'yeTx' => [
  261. //不可以
  262. 'canNot' => 1,
  263. //可以
  264. 'can' => 2,
  265. ],
  266. //平台资产
  267. 'ptAsset' => [
  268. 'hdBalance' => ['id' => 1, 'name' => '零售余额'],
  269. 'ghsBalance' => ['id' => 2, 'name' => '供货商余额'],
  270. 'hdTxBalance' => ['id' => 3, 'name' => '零售可提现'],
  271. 'ghsTxBalance' => ['id' => 4, 'name' => '供货商可提现'],
  272. ],
  273. //是否在线支付
  274. 'onlinePay' => ['not' => 1, 'yes' => 2],
  275. //商家开单了,客户多少秒后未付款,自动标记欠款。由于未付款单自动标记为欠款,商家开的订单360天内都不过期。此功能弃用
  276. 'local_gys_kd_auto_set_debt_time' => 600,
  277. //客户采购订单有效期是多少秒,有效期内可以支付,到期自动取消。
  278. 'order_pay_has_time' => 600,
  279. //客户采购线上付款的,在订单到期前多少秒还能支付
  280. 'order_online_pay_has_ahead_time' => 100,
  281. 'expressList' => [
  282. [
  283. "id" => 1,
  284. "deliveryId" => "dada",
  285. "deliveryName" => "达达"
  286. ]
  287. ],
  288. //默认的日期搜索选项
  289. 'dateDefaultOption' => [
  290. ['name' => '昨天', 'value' => 'yesterday'],
  291. ['name' => '今天', 'value' => 'today',],
  292. ['name' => '本月', 'value' => 'thisMonth',],
  293. ['name' => '上月', 'value' => 'lastMonth',],
  294. ['name' => '今年', 'value' => 'thisYear',],
  295. ['name' => '近一周', 'value' => 'last7Days',],
  296. ['name' => '近30天', 'value' => 'last30Days',],
  297. ],
  298. //所属平台类型
  299. 'ptStyle' => [
  300. 'hd' => 1,//零售花店端
  301. 'ghs' => 2,//二级批发端
  302. 'mall' => 3,//商城端
  303. 'kmGhs' => 4,//基地端
  304. ],
  305. //订单发起方,与ptStyle一致
  306. 'cgStyle' => [
  307. 'hd' => 1,//零售花店端
  308. 'ghs' => 2,//二级批发端
  309. 'mall' => 3,//商城端
  310. 'kmGhs' => 4,//基地端
  311. ],
  312. //结帐方式
  313. 'clearStyle' => [
  314. 'hd2Gys' => 1,//零售主动供货商结帐
  315. 'gys2Hd' => 2,//供货商要求花店结帐
  316. 'gys2KmGys' => 3,//供货商向昆明供货商结帐
  317. 'kmGys2gys' => 4,//昆明供货商向供货商结账
  318. ],
  319. 'merchantStatus' => ['checking' => 0, 'pass' => 1, 'noPass' => 2, 'freeze' => 3, 'unfreeze' => 4, 'shut' => 5],
  320. //涨价方式
  321. 'riseType' => ['noRise' => 0, 'percent' => 1, 'amount' => 2,],
  322. 'riseTypeName' => [0 => '不涨价', 1 => '按百分比', 2 => '按金额'],
  323. //支付方式
  324. 'payWay' => ['wxPay' => 0, 'alipay' => 1, 'balancePay' => 2, 'debtPay' => 3, 'cash' => 4, 'bankCard' => 5, 'unknown' => 9, 'unPay' => 10, 'deduction' => 11,],
  325. 'payWayName' => [0 => '微信', 1 => '支付宝', 2 => '余额', 3 => '欠款', 4 => '现金', 5 => '银行卡', 9 => '其它', 10 => '待付款', 11 => '抵扣'],
  326. 'payWayFullName' => [0 => '微信支付', 1 => '支付宝', 2 => '余额支付', 3 => '欠款支付', 4 => '现金', 5 => '银行卡', 9 => '其它', 10 => '待付款', 11 => '抵扣'],
  327. //后台支付方式选项
  328. 'htPayWayOption' => [
  329. ['name' => '微信', 'id' => 0],
  330. ['name' => '支付宝', 'id' => 1],
  331. ['name' => '现金', 'id' => 4],
  332. ['name' => '银行卡', 'id' => 5],
  333. ],
  334. //零售会员的等级
  335. 'memberLevel' => ['general' => 1, 'silver' => 2, 'gold' => 3, 'diamond' => 4, 'blackGold' => 5,],
  336. 'memberLevelName' => [1 => '会员', 2 => '白银会员', 3 => '黄金会员', 4 => '钻石会员', 5 => '黑金会员'],
  337. 'memberLevelMap' => [
  338. ['name' => '会员', 'level' => 1, 'levelSn' => 'general', 'amount' => 3000,],
  339. ['name' => '白银会员', 'level' => 2, 'levelSn' => 'silver', 'amount' => 6000,],
  340. ['name' => '黄金会员', 'level' => 3, 'levelSn' => 'gold', 'amount' => 10000,],
  341. ['name' => '钻石会员', 'level' => 4, 'levelSn' => 'diamond', 'amount' => 20000,],
  342. ['name' => '黑金会员', 'level' => 5, 'levelSn' => 'blackGold', 'amount' => 100000,],
  343. ],
  344. 'rechargeMap' => [
  345. ['recharge' => 500, 'give' => 3,],
  346. ['recharge' => 1000, 'give' => 10,],
  347. ['recharge' => 2000, 'give' => 30,],
  348. ['recharge' => 5000, 'give' => 100,],
  349. ['recharge' => 10000, 'give' => 280,],
  350. ],
  351. //优惠类型
  352. 'discountType' => [
  353. //没有优惠
  354. 'noDiscount' => 1,
  355. //使用平台优惠券
  356. 'usePtCoupon' => 2,
  357. //商家打折
  358. 'discount' => 3,
  359. //红包
  360. 'hb' => 4,
  361. ],
  362. 'payStatus' => ['cancel' => -1, 'waitForPay' => 0, 'waitForSend' => 1],
  363. 'sendStatusName' => [0 => '待发货', 1 => '送货中', 2 => '已送达'],
  364. 'sendStatus' => ['waitForSend' => 0, 'sending' => 1, 'reached' => 2],
  365. 'replyType' => ['redirectUrl' => 0, 'text' => 1, 'news' => 2, 'multiNews' => 3],
  366. 'goodsStatusName' => [0 => '正常', 1 => '下架', 2 => '删除'],
  367. 'goodsStatus' => ['online' => 0, 'soldOut' => 1, 'del' => 2],
  368. 'goodsDelStatusName' => [0 => '正常,未删除', 1 => '删除'],
  369. 'goodsDelStatus' => ['normal' => 0, 'del' => 1],
  370. 'reachPeriodName' => [0 => '上午', 1 => '下午', 2 => '晚上'],
  371. 'reachPeriod' => ['am' => 0, 'pm' => 1, 'night' => 2],
  372. //运费
  373. 'freight' => [
  374. 'firstDistance' => 5000,//5公里内
  375. 'firstPrice' => 0,//16元运费
  376. 'nextDistance' => 1000,//每增加1公里
  377. 'nextPrice' => 2,//增加2元
  378. ],
  379. //4
  380. "io" => ['payout' => 0, 'income' => 1, 'other' => 2],
  381. "ioName" => [0 => '支出', 1 => '收入', 2 => '其它'],
  382. //流水类型,充值支付回调时的订单类型
  383. "capitalType" => [
  384. //散客买花
  385. 'xhOrder' => ['id' => 0, 'name' => 'xhOrder'],
  386. 'xhActiveOrder' => ['id' => 2, 'name' => 'xhActiveOrder'],
  387. //散客向零售花店充值
  388. 'xhRecharge' => ['id' => 4, 'name' => 'xhRecharge'],
  389. //支付宝关联微信
  390. 'xhUserUnite' => ['id' => 5, 'name' => 'xhUserUnite'],
  391. 'xhDrawCash' => ['id' => 6, 'name' => 'xhDrawCash'],
  392. 'xhApplyOrder' => ['id' => 7, 'name' => 'xhApplyOrder'],
  393. 'xhMergeUser' => ['id' => 8, 'name' => 'xhMergeUser'],
  394. 'xhRenew' => ['id' => 9, 'name' => 'xhRenew'],
  395. //供货商订单
  396. 'xhGhsOrder' => ['id' => 10, 'name' => 'xhGhsOrder'],
  397. //零售采购
  398. 'xhPurchase' => ['id' => 11, 'name' => 'xhPurchase'],
  399. //培训报名
  400. 'pxApply' => ['id' => 12, 'name' => 'pxApply'],
  401. //花店采购结算
  402. 'hdPurchaseClear' => ['id' => 20, 'name' => 'hdPurchaseClear'],
  403. //供货商采购
  404. 'ghsPurchase' => ['id' => 25, 'name' => 'ghsPurchase'],
  405. //供货商出库
  406. 'ghsCheckOut' => ['id' => 26, 'name' => 'ghsCheckOut'],
  407. //供货商入库
  408. 'ghsCheckIn' => ['id' => 27, 'name' => 'ghsCheckIn'],
  409. 'usePtCoupon' => ['id' => 30, 'name' => 'usePtCoupon'],
  410. 'wastage' => ['id' => 35, 'name' => 'wastage'],
  411. //零售采购退款
  412. 'cgRefund' => ['id' => 38, 'name' => 'cgRefund'],
  413. //供货商销售退款
  414. 'saleRefund' => ['id' => 40, 'name' => 'saleRefund'],
  415. 'pd' => ['id' => 45, 'name' => 'pd'],
  416. //供货商的佣金 lqh 2021.12.11
  417. 'brokerage' => ['id' => 46, 'name' => 'brokerage'],
  418. //供货商销售单对账
  419. 'ghsXsClear' => ['id' => 20, 'name' => 'ghsXsClear'],
  420. //城市供货商的预订单多付退款
  421. 'ghsBookRefund' => ['id' => 48, 'name' => 'ghsBookRefund'],
  422. //花店预订退款
  423. 'hdBookRefund' => ['id' => 50, 'name' => 'hdBookRefund'],
  424. //城市供货商的预订单少付补款
  425. 'ghsBookOrderGetBack' => ['id' => 51, 'name' => 'ghsBookOrderGetBack'],
  426. //花店预订补尾款
  427. 'hdBookFinalPay' => ['id' => 52, 'name' => 'hdBookFinalPay'],
  428. 'hdCgPlant' => ['id' => 53, 'name' => 'hdCgPlant'],
  429. //花店订单退款
  430. 'hdOrderRefund' => ['id' => 54, 'name' => 'hdOrderRefund'],
  431. //存入现金
  432. 'inMoney' => ['id' => 55, 'name' => 'inMoney'],
  433. //取出现金
  434. 'outMoney' => ['id' => 56, 'name' => 'outMoney'],
  435. //支出登记
  436. 'expendRegister' => ['id' => 57, 'name' => 'expendRegister'],
  437. //花店销售结账单
  438. 'hdXsClear' => ['id' => 58, 'name' => 'hdXsClear'],
  439. 'hdRefund' => ['id' => 59, 'name' => 'hdRefund'],
  440. 'ljhApply' => ['id' => 60, 'name' => 'ljhApply'],
  441. //供货商结账支出
  442. 'ghsClearExpend' => ['id' => 61, 'name' => 'ghsClearExpend'],
  443. //供货商帮客户充值
  444. 'ghsHelpCustomRecharge' => ['id' => 62, 'name' => 'ghsHelpCustomRecharge'],
  445. //客户叫供货商充值
  446. 'customAskGhsRecharge' => ['id' => 63, 'name' => 'customAskGhsRecharge'],
  447. //供货商帮客户用余额结账
  448. 'ghsHelpCustomUseBalanceClear' => ['id' => 64, 'name' => 'ghsHelpCustomUseBalanceClear'],
  449. //客户请供货商帮忙用余额结账
  450. 'customAskGhsUseBalanceClear' => ['id' => 65, 'name' => 'customAskGhsUseBalanceClear'],
  451. //客户主动向供货商充值
  452. 'customRechargeToGhs' => ['id' => 66, 'name' => 'customRechargeToGhs'],
  453. //供货商采购单售后
  454. 'ghsCgOrderRefund' => ['id' => 67, 'name' => 'ghsCgOrderRefund'],
  455. //供货商采购单结账
  456. 'ghsCgOrderClear' => ['id' => 68, 'name' => 'ghsCgOrderClear'],
  457. //供货商的采购单取消
  458. 'ghsCgCancel' => ['id' => 70, 'name' => 'ghsCgCancel'],
  459. //借库存
  460. 'loanStock' => ['id' => 71, 'name' => 'loanStock'],
  461. //新增预订
  462. 'addBook' => ['id' => 72, 'name' => 'addBook'],
  463. //减少预订
  464. 'delBook' => ['id' => 73, 'name' => 'delBook'],
  465. //供货商采购退款
  466. 'ghsCgRefund' => ['id' => 74, 'name' => 'ghsCgRefund'],
  467. //供货商帮客户充值(售后返充)
  468. 'ghsHelpCustomRechargeReturn' => ['id' => 75, 'name' => 'ghsHelpCustomRechargeReturn'],
  469. //客户叫供货商充值(售后返充)
  470. 'customAskGhsRechargeReturn' => ['id' => 76, 'name' => 'customAskGhsRechargeReturn'],
  471. //减少散客的余额
  472. 'deduct' => ['id' => 77, 'name' => 'deduct'],
  473. //如果涉及是系统处理和操作,都可以用这个流水类型
  474. 'system' => ['id' => 78, 'name' => 'system'],
  475. 'scanPay' => ['id' => 79, 'name' => 'scanPay'],
  476. 'scanPayRefund' => ['id' => 80, 'name' => 'scanPayRefund'],
  477. // AccountMoneyClass 首次合并挂账入 balance 时写入余额变动的事项类型
  478. 'balanceMerge' => ['id' => 81, 'name' => 'balanceMerge'],
  479. // 客户充值退款(供货商后台操作)
  480. 'customRechargeRefund' => ['id' => 82, 'name' => 'customRechargeRefund'],
  481. ],
  482. "capitalTypeList" => [//流水类型的对应链接,后台收支明细查看时跳转的链接
  483. 0 => ['link' => '/capital/order-detail', 'name' => '网店', 'orderLink' => '/order/detail', 'id' => 0,],
  484. 2 => ['link' => '/capital/active-order-detail', 'name' => '活动报名', 'id' => 2,],
  485. 4 => ['link' => '/capital/recharge-detail', 'name' => '充值', 'id' => 4,],
  486. 5 => ['link' => '/capital/user-unite', 'name' => '帐号关联', 'id' => 5,],
  487. 6 => ['link' => '/capital/draw-cash', 'name' => '提现', 'id' => 6,],
  488. 7 => ['link' => '/capital/apply-order-detail', 'name' => '接入申请', 'id' => 7,],
  489. 8 => ['link' => '/capital/merge-user', 'name' => '帐号合并', 'id' => 8,],
  490. 9 => ['link' => '/capital/renew', 'name' => '续费', 'id' => 9,],
  491. 10 => ['link' => '/capital/order-detail', 'name' => '订单', 'id' => 10,],
  492. 11 => ['link' => '/capital/purchase-detail', 'name' => '订单', 'id' => 11,],
  493. 12 => ['link' => '/capital/purchase-detail', 'name' => '培训报名', 'id' => 12,],
  494. 20 => ['link' => '', 'name' => '采购结算', 'id' => 20,],
  495. 25 => ['link' => '', 'name' => '采购', 'id' => 25,],
  496. 30 => ['link' => '', 'name' => '使用平台优惠券', 'id' => 30,],
  497. 35 => ['link' => '', 'name' => '报损', 'id' => 35,],
  498. 38 => ['link' => '', 'name' => '采购退款', 'id' => 38,],
  499. 40 => ['link' => '', 'name' => '销售退款', 'id' => 40,],
  500. 45 => ['link' => '', 'name' => '盘点', 'id' => 45,],
  501. 46 => ['link' => '', 'name' => '佣金', 'id' => 46,],
  502. 48 => ['link' => '', 'name' => '预订单多退少补', 'id' => 48,],
  503. 50 => ['link' => '', 'name' => '预订单多退少补', 'id' => 50,],
  504. 51 => ['link' => '', 'name' => '预订单补款', 'id' => 51,],
  505. 52 => ['link' => '', 'name' => '花店预订补尾款', 'id' => 52,],
  506. 53 => ['link' => '', 'name' => '采购盆栽等', 'id' => 53,],
  507. 54 => ['link' => '', 'name' => '退货退款', 'id' => 54,],
  508. 55 => ['link' => '', 'name' => '存入现金', 'id' => 55,],
  509. 56 => ['link' => '', 'name' => '取出现金', 'id' => 56,],
  510. 57 => ['link' => '', 'name' => '支出登记', 'id' => 57,],
  511. 58 => ['link' => '', 'name' => '结算', 'id' => 58,],
  512. 59 => ['link' => '', 'name' => '退货退款', 'id' => 59,],
  513. 60 => ['link' => '', 'name' => '零交会报名', 'id' => 60,],
  514. 61 => ['link' => '', 'name' => '结账支出', 'id' => 61,],
  515. 62 => ['link' => '', 'name' => '充值', 'id' => 62,],
  516. 63 => ['link' => '', 'name' => '充值', 'id' => 63,],
  517. 64 => ['link' => '', 'name' => '结账', 'id' => 64,],
  518. 65 => ['link' => '', 'name' => '结账', 'id' => 65,],
  519. 66 => ['link' => '', 'name' => '充值', 'id' => 66,],
  520. 67 => ['link' => '', 'name' => '采购售后', 'id' => 67,],
  521. 68 => ['link' => '', 'name' => '采购单结账', 'id' => 68,],
  522. 70 => ['link' => '', 'name' => '采购单取消', 'id' => 70,],
  523. 71 => ['link' => '', 'name' => '借库存', 'id' => 71,],
  524. 72 => ['link' => '', 'name' => '新增预订', 'id' => 72,],
  525. 73 => ['link' => '', 'name' => '减少预订', 'id' => 73,],
  526. 74 => ['link' => '', 'name' => '采购退款', 'id' => 74,],
  527. 75 => ['link' => '', 'name' => '售后返充', 'id' => 75,],
  528. 76 => ['link' => '', 'name' => '售后返充', 'id' => 76,],
  529. 77 => ['link' => '', 'name' => '手动减少', 'id' => 77,],
  530. 78 => ['link' => '', 'name' => '系统操作', 'id' => 78,],
  531. 79 => ['link' => '', 'name' => '扫码付款', 'id' => 79,],
  532. 80 => ['link' => '', 'name' => '扫码退款', 'id' => 80,],
  533. 81 => ['link' => '', 'name' => '账户合并', 'id' => 81,],
  534. ],
  535. //用户来源
  536. 'userSource' => [
  537. 0 => 'official',
  538. 1 => 'alipay',
  539. 2 => 'mini',
  540. 3 => 'app',
  541. ],
  542. 'userSourceGetId' => [
  543. 'official' => ['id' => 0, 'name' => 'official'],
  544. 'alipay' => ['id' => 1, 'name' => 'alipay'],
  545. 'mini' => ['id' => 2, 'name' => 'mini'],
  546. 'app' => ['id' => 3, 'name' => 'app'],
  547. ],
  548. //来源
  549. 'fromType' => [
  550. 'shop' => 1,//门店
  551. 'mall' => 2,//商城
  552. 'friend' => 3,//微信朋友圈
  553. 'mt' => 4,//美团
  554. 'elm' => 5,//饿了么
  555. ],
  556. 'fromTypeMap' => [
  557. 1 => '门店',
  558. 2 => '商城',
  559. 3 => '微信',
  560. 4 => '美团',
  561. 5 => '饿了么',
  562. ],
  563. 'expendType' => [
  564. 'dz' => 0,//店租
  565. 'sd' => 1,//水电
  566. 'wy' => 2,//物业
  567. 'hs' => 3,//伙食
  568. 'fz' => 4,//房租
  569. 'qt' => 5,//其它
  570. ],
  571. 'expendTypeMap' => [
  572. 0 => '店租', 1 => '水电', 2 => '物业', 3 => '伙食', 4 => '房租', 5 => '其它', 6 => '物品', 7 => '办公用品', 8 => '运费', 9 => '工资', 10 => '线下售后'
  573. ],
  574. 'expendTypeList' => [
  575. ['id' => 9, 'name' => '工资'],
  576. ['id' => 8, 'name' => '运费'],
  577. ['id' => 7, 'name' => '办公用品'],
  578. ['id' => 6, 'name' => '物品'],
  579. ['id' => 0, 'name' => '店租'],
  580. ['id' => 1, 'name' => '水电'],
  581. ['id' => 2, 'name' => '物业'],
  582. ['id' => 3, 'name' => '伙食'],
  583. ['id' => 10, 'name' => '线下售后'],
  584. ['id' => 4, 'name' => '房租'],
  585. ['id' => 5, 'name' => '其它'],
  586. ],
  587. ];
  588. //取配置文件的值
  589. public static function getDict($category, $first = null, $second = null, $mainId = 0)
  590. {
  591. $respond = self::$data[$category];
  592. if (isset($first) && isset($second)) {
  593. if (isset($respond[$first][$second]) == false) {
  594. util::fail("没有找到相应字典 category:{$category} first:{$first} second:{$second}");
  595. }
  596. return $respond[$first][$second];
  597. }
  598. if (isset($first)) {
  599. if (isset($respond[$first]) == false) {
  600. util::fail("没有找到相应字典 category:{$category} first:{$first}");
  601. }
  602. return $respond[$first];
  603. }
  604. if (getenv('YII_ENV') == 'production') {
  605. //老油云漫梦金鹏 徐记花卉 康多鲜 旭海 不需要收运费,搜索关键词dbNoFee
  606. if (in_array($mainId, [20528, 10866, 38657, 41121]) && $category == 'transCost') {
  607. $respond = [
  608. ['sign' => 0, 'perKiloCost' => 0],
  609. ['sign' => 1, 'perKiloCost' => 0],
  610. ['sign' => 2, 'option' => [['num' => 20, 'amount' => 0], ['num' => 30, 'amount' => 0], ['num' => 50, 'amount' => 0], ['num' => 70, 'amount' => 0], ['num' => 100, 'amount' => 0]]],
  611. ['sign' => 3, 'perKiloCost' => 0],
  612. ['sign' => 4, 'perKiloCost' => 0],
  613. ['sign' => 5, 'perKiloCost' => 0],
  614. ];
  615. }
  616. } else {
  617. }
  618. return $respond;
  619. }
  620. //列出所有的常量 ssh 2021.3.18
  621. public static function get($mainId = 0)
  622. {
  623. $respond = self::$data;
  624. //根据环境获取小程序原始ID
  625. if (isset($respond['miniOriginalId']['dev'])) {
  626. $respond['miniOriginalId']['current'] = $respond['miniOriginalId']['dev'];
  627. }
  628. if (getenv('YII_ENV') == 'production') {
  629. if (isset($respond['miniOriginalId']['product'])) {
  630. $respond['miniOriginalId']['current'] = $respond['miniOriginalId']['product'];
  631. }
  632. }
  633. if (getenv('YII_ENV') != 'production') {
  634. $respond['hdMiniMessage'] = $respond['hdMiniMessageDev'];
  635. }
  636. if (getenv('YII_ENV') == 'production') {
  637. //老油云漫梦金鹏、徐记花卉、康多鲜、旭海不需要收运费,搜索关键词dbNoFee
  638. if (in_array($mainId, [20528, 10866, 38657, 41121])) {
  639. $respond['transCost'] = [
  640. ['sign' => 0, 'perKiloCost' => 0],
  641. ['sign' => 1, 'perKiloCost' => 0],
  642. ['sign' => 2, 'option' => [['num' => 20, 'amount' => 0], ['num' => 30, 'amount' => 0], ['num' => 50, 'amount' => 0], ['num' => 70, 'amount' => 0], ['num' => 100, 'amount' => 0]]],
  643. ['sign' => 3, 'perKiloCost' => 0],
  644. ['sign' => 4, 'perKiloCost' => 0],
  645. ['sign' => 5, 'perKiloCost' => 0],
  646. ];
  647. }
  648. } else {
  649. }
  650. return $respond;
  651. }
  652. }