quick-launch.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426
  1. <template>
  2. <div class="home-container">
  3. <el-card class="home-container__card">
  4. <div class="title">
  5. <span>
  6. 快速发起
  7. </span>
  8. </div>
  9. <div class="content" v-if="sysType == 3">
  10. <div class="content-icon" @click="inPage('cg')">
  11. <i class="tradingIcon icon-purchase" style="color:#75CD28"></i>
  12. <span>采购</span>
  13. </div>
  14. <div class="content-icon" @click="inPage('xs')">
  15. <i class="tradingIcon icon-sales" style="color:#409EFF"></i>
  16. <span>销售</span>
  17. </div>
  18. <div class="content-icon" @click="inPage('sh')">
  19. <i class="tradingIcon icon-receipt" style="color:#921939"></i>
  20. <span>收货</span>
  21. </div>
  22. <div class="content-icon" @click="inPage('fh')">
  23. <i class="tradingIcon icon-ship" style="color:#143056"></i>
  24. <span>发货</span>
  25. </div>
  26. <div class="content-icon" @click="inPage('sqfk')">
  27. <i class="tradingIcon icon-apply" style="color:#BE3216"></i>
  28. <span>付费申请</span>
  29. </div>
  30. <div class="content-icon" @click="inPage('ff')">
  31. <i class="tradingIcon icon-pay" style="color:#7E8270"></i>
  32. <span>付费</span>
  33. </div>
  34. <div class="content-icon" @click="inPage('sf')">
  35. <i class="tradingIcon icon-charge" style="color:#4D6016"></i>
  36. <span>收费</span>
  37. </div>
  38. </div>
  39. <!-- <div class="content" v-if="sysType == 5">
  40. <div class="content-icon" @click="inPage('zy')">
  41. <i class="tradingIcon icon-pay" style="color:#57927a"></i>
  42. <span>主营业务</span>
  43. </div>
  44. <div class="content-icon" @click="inPage('yf')">
  45. <i class="tradingIcon icon-pay" style="color:#576892"></i>
  46. <span>业绩分析</span>
  47. </div>
  48. <div class="content-icon" @click="inPage('tj')">
  49. <i class="tradingIcon icon-pay" style="color:#57927a"></i>
  50. <span>统计列表</span>
  51. </div>
  52. <div class="content-icon" @click="inPage('fw')">
  53. <i class="tradingIcon icon-pay" style="color:#576892"></i>
  54. <span>服务项目</span>
  55. </div>
  56. <div class="content-icon" @click="inPage('sp')">
  57. <i class="tradingIcon icon-pay" style="color:#57927a"></i>
  58. <span>商品信息</span>
  59. </div>
  60. <div class="content-icon" @click="inPage('fy')">
  61. <i class="tradingIcon icon-pay" style="color:#576892"></i>
  62. <span>费用详情</span>
  63. </div>
  64. </div> -->
  65. <div class="content2" v-if="sysType === 5" v-loading="loading">
  66. <div class="content2-item">
  67. <div class="card">
  68. <div class="card-title card-title1">
  69. <span>
  70. </span>
  71. </div>
  72. <div class="card-content">
  73. <span class="card-content-text">销售机会</span>
  74. </div>
  75. </div>
  76. </div>
  77. <div class="divider" />
  78. <div class="content2-item">
  79. <div class="card">
  80. <div class="card-title card-title2">
  81. <span>
  82. </span>
  83. </div>
  84. <div class="card-content">
  85. <span class="card-content-text">主营业务</span>
  86. </div>
  87. </div>
  88. </div>
  89. <div class="divider" />
  90. <div class="content2-item">
  91. <div class="card">
  92. <div class="card-title card-title3">
  93. <span>
  94. </span>
  95. </div>
  96. <div class="card-content">
  97. <span class="card-content-text">任务</span>
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. <div class="content" v-if="sysType == 4 || sysType == 2">
  103. <div class="content-icon" @click="inPage('bj')" v-if="sysType == 4">
  104. <i class="tradingIcon icon-sales" style="color:#606266"></i>
  105. <span>报价</span>
  106. </div>
  107. <div class="content-icon" @click="inPage('xs')">
  108. <i class="tradingIcon icon-sales" style="color:#409EFF"></i>
  109. <span>销售</span>
  110. </div>
  111. <div class="content-icon" @click="inPage('cg')">
  112. <i class="tradingIcon icon-purchase" style="color:#75CD28"></i>
  113. <span>采购</span>
  114. </div>
  115. <div class="content-icon" @click="inPage('fh')">
  116. <i class="tradingIcon icon-ship" style="color:#143056"></i>
  117. <span v-if="sysType == 4">发货</span>
  118. <span v-if="sysType == 2">客户收货</span>
  119. </div>
  120. <div class="content-icon" @click="inPage('sh')">
  121. <i class="tradingIcon icon-receipt" style="color:#921939"></i>
  122. <span v-if="sysType == 4">收货</span>
  123. <span v-if="sysType == 2">工厂发货</span>
  124. </div>
  125. <div class="content-icon" @click="inPage('sqfk')">
  126. <i class="tradingIcon icon-apply" style="color:#BE3216"></i>
  127. <span>付费申请</span>
  128. </div>
  129. <div class="content-icon" @click="inPage('sf')">
  130. <i class="tradingIcon icon-charge" style="color:#4D6016"></i>
  131. <span>收费</span>
  132. </div>
  133. <div class="content-icon" @click="inPage('ff')">
  134. <i class="tradingIcon icon-pay" style="color:#7E8270"></i>
  135. <span>付费</span>
  136. </div>
  137. <div class="content-icon" @click="inPage('smart')" v-if="sysType == 2">
  138. <div
  139. style="width: 36px;height: 37px;border-radius: 10px;background-color: #0771e3;text-align: center;margin-top: 1px">
  140. <i class="el-icon-basketball" style="color:#FFFFFF;font-size: 26px;line-height: 37px;"></i>
  141. </div>
  142. <span style="margin-top: 4px">智慧大屏</span>
  143. </div>
  144. </div>
  145. <div class="content" v-if="sysType == 6">
  146. <div class="content-icon" @click="inPage('cg')">
  147. <i class="tradingIcon icon-purchase" style="color:#75CD28"></i>
  148. <span>采购</span>
  149. </div>
  150. <div class="content-icon" @click="inPage('xs')">
  151. <i class="tradingIcon icon-sales" style="color:#409EFF"></i>
  152. <span>销售</span>
  153. </div>
  154. </div>
  155. </el-card>
  156. </div>
  157. </template>
  158. <script>
  159. import { getToken } from "@/util/auth";
  160. export default {
  161. name: "basicContainer",
  162. data() {
  163. return {
  164. largeScreenToken: '',
  165. };
  166. },
  167. props: {
  168. sysType: Number
  169. },
  170. created() {
  171. if (this.sysType == 2) {
  172. this.getWorkDicts('large_screen').then(res => {
  173. this.largeScreenToken = res.data.data[0].dictKey;
  174. })
  175. }
  176. },
  177. methods: {
  178. inPage(type) {
  179. //出口
  180. if (this.sysType == 4) {
  181. switch (type) {
  182. case "bj":
  183. this.$router.push("/exportTrade/customerInquiry/index");
  184. break;
  185. case "xs":
  186. this.$router.push("/exportTrade/salesContract/index");
  187. break;
  188. case "cg":
  189. this.$router.push("/exportTrade/purchaseContract/index");
  190. break;
  191. case "fh":
  192. this.$router.push("/exportTrade/invoice/index");
  193. break;
  194. case "sh":
  195. this.$router.push("/exportTrade/receipt/index");
  196. break;
  197. case "sqfk":
  198. this.$router.push("/financialManagement/paymentRequest/index");
  199. break;
  200. case "sf":
  201. this.$router.push(
  202. "/financialManagement/receiptSettle/receiptSettle"
  203. );
  204. break;
  205. case "ff":
  206. this.$router.push(
  207. "/financialManagement/paymentSettle/paymentSettle"
  208. );
  209. break;
  210. }
  211. } else if (this.sysType == 2) {
  212. switch (type) {
  213. case "xs":
  214. this.$router.push("/businessManagement/salesOrder/index");
  215. break;
  216. case "cg":
  217. this.$router.push("/businessManagement/purchaseOrder/index");
  218. break;
  219. case "fh":
  220. this.$router.push("/businessManagement/deliveryNotice/index");
  221. break;
  222. case "sh":
  223. this.$router.push("/businessManagement/receipt/index");
  224. break;
  225. case "sqfk":
  226. this.$router.push("/financialManagement/paymentRequest/index");
  227. break;
  228. case "sf":
  229. this.$router.push(
  230. "/financialManagement/receiptSettle/receiptSettle"
  231. );
  232. break;
  233. case "ff":
  234. this.$router.push(
  235. "/financialManagement/paymentSettle/paymentSettle"
  236. );
  237. break;
  238. case "smart":
  239. if ((localStorage.getItem("roleName").split(',')).indexOf('IDC') !== -1) {
  240. window.open('http://119.3.74.195:9527/view/' + this.largeScreenToken + '?token=' + getToken())
  241. } else {
  242. this.$message.error('此帐号无权限');
  243. }
  244. break;
  245. }
  246. } else if (this.sysType == 3) {
  247. switch (type) {
  248. case "xs":
  249. this.$router.push("/salesManagement/salesContract/index");
  250. break;
  251. case "cg":
  252. this.$router.push("/purchase/contract/index");
  253. break;
  254. case "fh":
  255. this.$router.push("/importTrade/invoice/index");
  256. break;
  257. case "sh":
  258. this.$router.push("/importTrade/receipt/index");
  259. break;
  260. case "sqfk":
  261. this.$router.push("/financialManagement/paymentRequest/index");
  262. break;
  263. case "sf":
  264. this.$router.push(
  265. "/financialManagement/receiptSettle/receiptSettle"
  266. );
  267. break;
  268. case "ff":
  269. this.$router.push(
  270. "/financialManagement/paymentSettle/paymentSettle"
  271. );
  272. break;
  273. }
  274. } else if (this.sysType == 5) {
  275. switch (type) {
  276. case "zy":
  277. this.$router.push("/workManagement/main-items/list");
  278. break;
  279. case "yf":
  280. this.$router.push("/workManagement/performanceAnalysis/index");
  281. break;
  282. case "tj":
  283. this.$router.push("/workManagement/receipt/statisticalList");
  284. break;
  285. case "fw":
  286. this.$router.push("/workManagement/service-items/project");
  287. break;
  288. case "sp":
  289. this.$router.push("/basicData/commodityType/index");
  290. break;
  291. case "fy":
  292. this.$router.push("/basicData/basicFeesDesc/index");
  293. break;
  294. }
  295. } else if (this.sysType == 6) {
  296. switch (type) {
  297. case "xs":
  298. this.$router.push("/dealer/sales/index");
  299. break;
  300. case "cg":
  301. this.$router.push("/dealer/purchase/index");
  302. break;
  303. }
  304. }
  305. }
  306. }
  307. };
  308. </script>
  309. <style lang="scss" scoped>
  310. .home-container {
  311. padding: 5px;
  312. box-sizing: border-box;
  313. height: 100%;
  314. ::v-deep .el-card__body {
  315. padding: 10px 15px;
  316. font-size: 14px;
  317. }
  318. &__card {
  319. width: 100%;
  320. height: 100%;
  321. }
  322. .title {
  323. display: flex;
  324. justify-content: space-between;
  325. }
  326. }
  327. .tradingIcon {
  328. font-size: 36px;
  329. }
  330. .content {
  331. display: flex;
  332. &-icon {
  333. display: flex;
  334. flex-direction: column;
  335. align-items: center;
  336. margin: 1.5vh 1vw 0vh 1vw;
  337. span {
  338. margin-top: 0.2vh;
  339. }
  340. }
  341. }
  342. .content2 {
  343. display: flex;
  344. justify-content: center;
  345. align-items: center;
  346. height: 10vh;
  347. width: 80vw;
  348. .divider {
  349. display: block;
  350. height: 0px;
  351. width: 100%;
  352. margin-top: -20px;
  353. border-top: 1px dashed #dcdfe6;
  354. }
  355. &-item {
  356. margin-left: 1vw;
  357. .card {
  358. width: 100px;
  359. display: flex;
  360. flex-direction: column;
  361. align-items: center;
  362. &-title {
  363. width: 40px;
  364. height: 40px;
  365. text-align: center;
  366. border-radius: 50%;
  367. font-size: 20px;
  368. font-weight: 600;
  369. display: flex;
  370. justify-content: center;
  371. align-items: center;
  372. span {
  373. line-height: 20px;
  374. }
  375. }
  376. &-title1 {
  377. color: #037fe1;
  378. background-color: rgba(3, 127, 225, 0.15);
  379. }
  380. &-title2 {
  381. color: #ffa21e;
  382. background-color: rgba(255, 162, 30, 0.15);
  383. }
  384. &-title3 {
  385. color: #fb5b60;
  386. background-color: rgba(251, 91, 96, 0.15);
  387. }
  388. &-title4 {
  389. color: #42bc6f;
  390. background-color: rgba(66, 188, 111, 0.15);
  391. }
  392. &-content {
  393. display: flex;
  394. flex-direction: column;
  395. margin-top: 4px;
  396. &-text {
  397. color: #909399;
  398. }
  399. }
  400. }
  401. }
  402. }
  403. </style>