dict.php 27 KB

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