e4d70e29a557b9cee2e2f1fb37d47208d2d8628d.svn-base 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. <template>
  2. <page-layout title="单号:234231029431" logo="https://gw.alipayobjects.com/zos/rmsportal/nxkuOJlFJuAUhzlMTCEe.png">
  3. <detail-list slot="headerContent" size="small" :col="2" class="detail-layout">
  4. <detail-list-item term="创建人">曲丽丽</detail-list-item>
  5. <detail-list-item term="订购产品">XX服务</detail-list-item>
  6. <detail-list-item term="创建时间">2018-08-07</detail-list-item>
  7. <detail-list-item term="关联单据"><a>12421</a></detail-list-item>
  8. <detail-list-item term="生效日期">2018-08-07 ~ 2018-12-11</detail-list-item>
  9. <detail-list-item term="备注">请于两个工作日内确认</detail-list-item>
  10. </detail-list>
  11. <a-row slot="extra" class="status-list">
  12. <a-col :xs="12" :sm="12">
  13. <div class="text">状态</div>
  14. <div class="heading">待审批</div>
  15. </a-col>
  16. <a-col :xs="12" :sm="12">
  17. <div class="text">订单金额</div>
  18. <div class="heading">¥ 568.08</div>
  19. </a-col>
  20. </a-row>
  21. <!-- actions -->
  22. <template slot="action">
  23. <a-button-group style="margin-right: 4px;">
  24. <a-button>操作</a-button>
  25. <a-button>操作</a-button>
  26. <a-button><a-icon type="ellipsis"/></a-button>
  27. </a-button-group>
  28. <a-button type="primary" >主操作</a-button>
  29. </template>
  30. <a-card :bordered="false" title="流程进度">
  31. <a-steps :direction="isMobile() && 'vertical' || 'horizontal'" :current="1" progressDot>
  32. <a-step title="创建项目">
  33. </a-step>
  34. <a-step title="部门初审">
  35. </a-step>
  36. <a-step title="财务复核">
  37. </a-step>
  38. <a-step title="完成">
  39. </a-step>
  40. </a-steps>
  41. </a-card>
  42. <a-card style="margin-top: 24px" :bordered="false" title="用户信息">
  43. <detail-list>
  44. <detail-list-item term="用户姓名">付晓晓</detail-list-item>
  45. <detail-list-item term="会员卡号">32943898021309809423</detail-list-item>
  46. <detail-list-item term="身份证">3321944288191034921</detail-list-item>
  47. <detail-list-item term="联系方式">18112345678</detail-list-item>
  48. <detail-list-item term="联系地址">浙江省杭州市西湖区黄姑山路工专路交叉路口</detail-list-item>
  49. </detail-list>
  50. <detail-list title="信息组">
  51. <detail-list-item term="某某数据">725</detail-list-item>
  52. <detail-list-item term="该数据更新时间">2018-08-08</detail-list-item>
  53. <detail-list-item >&nbsp;</detail-list-item>
  54. <detail-list-item term="某某数据">725</detail-list-item>
  55. <detail-list-item term="该数据更新时间">2018-08-08</detail-list-item>
  56. <detail-list-item >&nbsp;</detail-list-item>
  57. </detail-list>
  58. <a-card type="inner" title="多层信息组">
  59. <detail-list title="组名称" size="small">
  60. <detail-list-item term="负责人">林东东</detail-list-item>
  61. <detail-list-item term="角色码">1234567</detail-list-item>
  62. <detail-list-item term="所属部门">XX公司-YY部</detail-list-item>
  63. <detail-list-item term="过期时间">2018-08-08</detail-list-item>
  64. <detail-list-item term="描述">这段描述很长很长很长很长很长很长很长很长很长很长很长很长很长很长...</detail-list-item>
  65. </detail-list>
  66. <a-divider style="margin: 16px 0" />
  67. <detail-list title="组名称" size="small" :col="1">
  68. <detail-list-item term="学名"> Citrullus lanatus (Thunb.) Matsum. et Nakai一年生蔓生藤本;茎、枝粗壮,具明显的棱。卷须较粗..</detail-list-item>
  69. </detail-list>
  70. <a-divider style="margin: 16px 0" />
  71. <detail-list title="组名称" size="small" :col="2">
  72. <detail-list-item term="负责人">付小小</detail-list-item>
  73. <detail-list-item term="角色码">1234567</detail-list-item>
  74. </detail-list>
  75. </a-card>
  76. </a-card>
  77. <a-card style="margin-top: 24px" :bordered="false" title="用户近半年来电记录">
  78. <div class="no-data"><a-icon type="frown-o"/>暂无数据</div>
  79. </a-card>
  80. <!-- 操作 -->
  81. <a-card
  82. style="margin-top: 24px"
  83. :bordered="false"
  84. :tabList="tabList"
  85. :activeTabKey="activeTabKey"
  86. @tabChange="(key) => {this.activeTabKey = key}"
  87. >
  88. <a-table
  89. v-if="activeTabKey === '1'"
  90. :columns="operationColumns"
  91. :dataSource="operation1"
  92. :pagination="false"
  93. >
  94. <template
  95. slot="status"
  96. slot-scope="status">
  97. <a-badge :status="status | statusTypeFilter" :text="status | statusFilter"/>
  98. </template>
  99. </a-table>
  100. <a-table
  101. v-if="activeTabKey === '2'"
  102. :columns="operationColumns"
  103. :dataSource="operation2"
  104. :pagination="false"
  105. >
  106. <template
  107. slot="status"
  108. slot-scope="status">
  109. <a-badge :status="status | statusTypeFilter" :text="status | statusFilter"/>
  110. </template>
  111. </a-table>
  112. <a-table
  113. v-if="activeTabKey === '3'"
  114. :columns="operationColumns"
  115. :dataSource="operation3"
  116. :pagination="false"
  117. >
  118. <template
  119. slot="status"
  120. slot-scope="status">
  121. <a-badge :status="status | statusTypeFilter" :text="status | statusFilter"/>
  122. </template>
  123. </a-table>
  124. </a-card>
  125. </page-layout>
  126. </template>
  127. <script>
  128. import { mixinDevice } from '@/utils/mixin.js'
  129. import PageLayout from '@/components/page/PageLayout'
  130. import DetailList from '@/components/tools/DetailList'
  131. const DetailListItem = DetailList.Item
  132. export default {
  133. name: "Advanced",
  134. components: {
  135. PageLayout,
  136. DetailList,
  137. DetailListItem
  138. },
  139. mixins: [mixinDevice],
  140. data () {
  141. return {
  142. tabList: [
  143. {
  144. key: '1',
  145. tab: '操作日志一'
  146. },
  147. {
  148. key: '2',
  149. tab: '操作日志二'
  150. },
  151. {
  152. key: '3',
  153. tab: '操作日志三'
  154. }
  155. ],
  156. activeTabKey: '1',
  157. operationColumns: [
  158. {
  159. title: '操作类型',
  160. dataIndex: 'type',
  161. key: 'type'
  162. },
  163. {
  164. title: '操作人',
  165. dataIndex: 'name',
  166. key: 'name'
  167. },
  168. {
  169. title: '执行结果',
  170. dataIndex: 'status',
  171. key: 'status',
  172. scopedSlots: { customRender: 'status' },
  173. },
  174. {
  175. title: '操作时间',
  176. dataIndex: 'updatedAt',
  177. key: 'updatedAt'
  178. },
  179. {
  180. title: '备注',
  181. dataIndex: 'remark',
  182. key: 'remark'
  183. }
  184. ],
  185. operation1: [
  186. {
  187. key: 'op1',
  188. type: '订购关系生效',
  189. name: '曲丽丽',
  190. status: 'agree',
  191. updatedAt: '2017-10-03 19:23:12',
  192. remark: '-'
  193. },
  194. {
  195. key: 'op2',
  196. type: '财务复审',
  197. name: '付小小',
  198. status: 'reject',
  199. updatedAt: '2017-10-03 19:23:12',
  200. remark: '不通过原因'
  201. },
  202. {
  203. key: 'op3',
  204. type: '部门初审',
  205. name: '周毛毛',
  206. status: 'agree',
  207. updatedAt: '2017-10-03 19:23:12',
  208. remark: '-'
  209. },
  210. {
  211. key: 'op4',
  212. type: '提交订单',
  213. name: '林东东',
  214. status: 'agree',
  215. updatedAt: '2017-10-03 19:23:12',
  216. remark: '很棒'
  217. },
  218. {
  219. key: 'op5',
  220. type: '创建订单',
  221. name: '汗牙牙',
  222. status: 'agree',
  223. updatedAt: '2017-10-03 19:23:12',
  224. remark: '-'
  225. }
  226. ],
  227. operation2: [
  228. {
  229. key: 'op2',
  230. type: '财务复审',
  231. name: '付小小',
  232. status: 'reject',
  233. updatedAt: '2017-10-03 19:23:12',
  234. remark: '不通过原因'
  235. },
  236. {
  237. key: 'op3',
  238. type: '部门初审',
  239. name: '周毛毛',
  240. status: 'agree',
  241. updatedAt: '2017-10-03 19:23:12',
  242. remark: '-'
  243. },
  244. {
  245. key: 'op4',
  246. type: '提交订单',
  247. name: '林东东',
  248. status: 'agree',
  249. updatedAt: '2017-10-03 19:23:12',
  250. remark: '很棒'
  251. }
  252. ],
  253. operation3: [
  254. {
  255. key: 'op2',
  256. type: '财务复审',
  257. name: '付小小',
  258. status: 'reject',
  259. updatedAt: '2017-10-03 19:23:12',
  260. remark: '不通过原因'
  261. },
  262. {
  263. key: 'op3',
  264. type: '部门初审',
  265. name: '周毛毛',
  266. status: 'agree',
  267. updatedAt: '2017-10-03 19:23:12',
  268. remark: '-'
  269. }
  270. ],
  271. }
  272. },
  273. filters: {
  274. statusFilter(status) {
  275. const statusMap = {
  276. 'agree': '成功',
  277. 'reject': '驳回'
  278. }
  279. return statusMap[status]
  280. },
  281. statusTypeFilter(type) {
  282. const statusTypeMap = {
  283. 'agree': 'success',
  284. 'reject': 'error'
  285. }
  286. return statusTypeMap[type]
  287. }
  288. }
  289. }
  290. </script>
  291. <style lang="less" scoped>
  292. .detail-layout {
  293. margin-left: 44px;
  294. }
  295. .text {
  296. color: rgba(0, 0, 0, .45);
  297. }
  298. .heading {
  299. color: rgba(0, 0, 0, .85);
  300. font-size: 20px;
  301. }
  302. .no-data {
  303. color: rgba(0, 0, 0, .25);
  304. text-align: center;
  305. line-height: 64px;
  306. font-size: 16px;
  307. i {
  308. font-size: 24px;
  309. margin-right: 16px;
  310. position: relative;
  311. top: 3px;
  312. }
  313. }
  314. .mobile {
  315. .detail-layout {
  316. margin-left: unset;
  317. }
  318. .text {
  319. }
  320. .status-list {
  321. text-align: left;
  322. }
  323. }
  324. </style>