dict.php 25 KB

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