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