quick-launch.vue 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  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="content" v-if="sysType == 4 || sysType == 2">
  66. <div class="content-icon" @click="inPage('bj')">
  67. <i class="tradingIcon icon-sales" style="color:#606266"></i>
  68. <span>报价</span>
  69. </div>
  70. <div class="content-icon" @click="inPage('xs')">
  71. <i class="tradingIcon icon-sales" style="color:#409EFF"></i>
  72. <span>销售</span>
  73. </div>
  74. <div class="content-icon" @click="inPage('cg')">
  75. <i class="tradingIcon icon-purchase" style="color:#75CD28"></i>
  76. <span>采购</span>
  77. </div>
  78. <div class="content-icon" @click="inPage('fh')">
  79. <i class="tradingIcon icon-ship" style="color:#143056"></i>
  80. <span v-if="sysType == 4">发货</span>
  81. <span v-if="sysType == 2">客户收货</span>
  82. </div>
  83. <div class="content-icon" @click="inPage('sh')">
  84. <i class="tradingIcon icon-receipt" style="color:#921939"></i>
  85. <span v-if="sysType == 4">收货</span>
  86. <span v-if="sysType == 2">工厂发货</span>
  87. </div>
  88. <div class="content-icon" @click="inPage('sqfk')">
  89. <i class="tradingIcon icon-apply" style="color:#BE3216"></i>
  90. <span>付费申请</span>
  91. </div>
  92. <div class="content-icon" @click="inPage('sf')">
  93. <i class="tradingIcon icon-charge" style="color:#4D6016"></i>
  94. <span>收费</span>
  95. </div>
  96. <div class="content-icon" @click="inPage('ff')">
  97. <i class="tradingIcon icon-pay" style="color:#7E8270"></i>
  98. <span>付费</span>
  99. </div>
  100. </div>
  101. <div class="content" v-if="sysType == 6">
  102. <div class="content-icon" @click="inPage('cg')">
  103. <i class="tradingIcon icon-purchase" style="color:#75CD28"></i>
  104. <span>采购</span>
  105. </div>
  106. <div class="content-icon" @click="inPage('xs')">
  107. <i class="tradingIcon icon-sales" style="color:#409EFF"></i>
  108. <span>销售</span>
  109. </div>
  110. </div>
  111. </el-card>
  112. </div>
  113. </template>
  114. <script>
  115. export default {
  116. name: "basicContainer",
  117. data() {
  118. return {};
  119. },
  120. props: {
  121. sysType: Number
  122. },
  123. methods: {
  124. inPage(type) {
  125. //出口
  126. if (this.sysType == 4) {
  127. switch (type) {
  128. case "bj":
  129. this.$router.push("/exportTrade/customerInquiry/index");
  130. break;
  131. case "xs":
  132. this.$router.push("/exportTrade/salesContract/index");
  133. break;
  134. case "cg":
  135. this.$router.push("/exportTrade/purchaseContract/index");
  136. break;
  137. case "fh":
  138. this.$router.push("/exportTrade/invoice/index");
  139. break;
  140. case "sh":
  141. this.$router.push("/exportTrade/receipt/index");
  142. break;
  143. case "sqfk":
  144. this.$router.push("/financialManagement/paymentRequest/index");
  145. break;
  146. case "sf":
  147. this.$router.push(
  148. "/financialManagement/receiptSettle/receiptSettle"
  149. );
  150. break;
  151. case "ff":
  152. this.$router.push(
  153. "/financialManagement/paymentSettle/paymentSettle"
  154. );
  155. break;
  156. }
  157. } else if (this.sysType == 2) {
  158. switch (type) {
  159. case "xs":
  160. this.$router.push("/businessManagement/salesOrder/index");
  161. break;
  162. case "cg":
  163. this.$router.push("/businessManagement/purchaseOrder/index");
  164. break;
  165. case "fh":
  166. this.$router.push("/businessManagement/deliveryNotice/index");
  167. break;
  168. case "sh":
  169. this.$router.push("/businessManagement/receipt/index");
  170. break;
  171. case "sqfk":
  172. this.$router.push("/financialManagement/paymentRequest/index");
  173. break;
  174. case "sf":
  175. this.$router.push(
  176. "/financialManagement/receiptSettle/receiptSettle"
  177. );
  178. break;
  179. case "ff":
  180. this.$router.push(
  181. "/financialManagement/paymentSettle/paymentSettle"
  182. );
  183. break;
  184. }
  185. } else if (this.sysType == 3) {
  186. switch (type) {
  187. case "xs":
  188. this.$router.push("/salesManagement/salesContract/index");
  189. break;
  190. case "cg":
  191. this.$router.push("/purchase/contract/index");
  192. break;
  193. case "fh":
  194. this.$router.push("/importTrade/invoice/index");
  195. break;
  196. case "sh":
  197. this.$router.push("/importTrade/receipt/index");
  198. break;
  199. case "sqfk":
  200. this.$router.push("/financialManagement/paymentRequest/index");
  201. break;
  202. case "sf":
  203. this.$router.push(
  204. "/financialManagement/receiptSettle/receiptSettle"
  205. );
  206. break;
  207. case "ff":
  208. this.$router.push(
  209. "/financialManagement/paymentSettle/paymentSettle"
  210. );
  211. break;
  212. }
  213. } else if (this.sysType == 5) {
  214. switch (type) {
  215. case "zy":
  216. this.$router.push("/workManagement/main-items/list");
  217. break;
  218. case "yf":
  219. this.$router.push("/workManagement/performanceAnalysis/index");
  220. break;
  221. case "tj":
  222. this.$router.push("/workManagement/receipt/statisticalList");
  223. break;
  224. case "fw":
  225. this.$router.push("/workManagement/service-items/project");
  226. break;
  227. case "sp":
  228. this.$router.push("/basicData/commodityType/index");
  229. break;
  230. case "fy":
  231. this.$router.push("/basicData/basicFeesDesc/index");
  232. break;
  233. }
  234. } else if (this.sysType == 6) {
  235. switch (type) {
  236. case "xs":
  237. this.$router.push("/dealer/sales/index");
  238. break;
  239. case "cg":
  240. this.$router.push("/dealer/purchase/index");
  241. break;
  242. }
  243. }
  244. }
  245. }
  246. };
  247. </script>
  248. <style lang="scss" scoped>
  249. .home-container {
  250. padding: 5px;
  251. box-sizing: border-box;
  252. height: 100%;
  253. ::v-deep .el-card__body {
  254. padding: 10px 15px;
  255. font-size: 14px;
  256. }
  257. &__card {
  258. width: 100%;
  259. height: 100%;
  260. }
  261. .title {
  262. display: flex;
  263. justify-content: space-between;
  264. }
  265. }
  266. .tradingIcon {
  267. font-size: 36px;
  268. }
  269. .content {
  270. display: flex;
  271. &-icon {
  272. display: flex;
  273. flex-direction: column;
  274. align-items: center;
  275. margin: 1.5vh 1vw 0vh 1vw;
  276. span {
  277. margin-top: 1vh;
  278. }
  279. }
  280. }
  281. </style>