dict.php 26 KB

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