index.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. <template>
  2. <BsPageWrapper class="">
  3. <bs-table v-bind="tableOptions">
  4. </bs-table>
  5. </BsPageWrapper>
  6. </template>
  7. <script setup lang="jsx">
  8. import { ref, reactive } from "vue"
  9. import { useRouter } from "vue-router";
  10. import BsTable, { useBsTable } from '/@/components/BsUi/Table/index.js';
  11. import { DISPLAY_STATE } from '/@/components/BsUi/constant.js';
  12. const router = useRouter()
  13. const {
  14. tableOptions,
  15. setTablePropsValue: setValue,
  16. getTablePropsValue: getValue,
  17. } = useBsTable({
  18. tableOptions: {
  19. // url: '/supports/activity/queryPage',
  20. gridOptions: {
  21. loading: false,
  22. columns: [
  23. {
  24. type: 'seq',
  25. width: 80,
  26. },
  27. {
  28. field: 'projectName',
  29. title: '项目名称',
  30. },
  31. {
  32. field: 'projectCode',
  33. title: '项目ID',
  34. },
  35. {
  36. field: 'projectLocation',
  37. title: '项目地址',
  38. slots: {
  39. default({ row, column }) {
  40. return <span>{row?.projectLocation?.name}</span>;
  41. },
  42. },
  43. // cellRender: {
  44. // name: 'CellDict',
  45. // },
  46. },
  47. {
  48. field: 'estimatedContractAmount',
  49. title: '预计合同金额(元)',
  50. },
  51. {
  52. field: 'projectSource',
  53. title: '项目来源',
  54. },
  55. {
  56. field: 'projectType',
  57. title: '项目类型',
  58. },
  59. {
  60. field: 'productCategory',
  61. title: '产品类型',
  62. },
  63. {
  64. field: 'estimatedBidOpenDate',
  65. title: '预计开标时间',
  66. },
  67. {
  68. field: 'estimatedBidSubmission',
  69. title: '预计投标',
  70. },
  71. {
  72. field: 'salesOwner',
  73. title: '归属营销',
  74. },
  75. {
  76. field: 'operator',
  77. title: '操作人',
  78. },
  79. {
  80. field: 'operationTime',
  81. title: '操作时间',
  82. },
  83. {
  84. // fixed: 'right',
  85. cellRender: {
  86. name: 'CellOption',
  87. extraProps: {
  88. buttons: [
  89. {
  90. title: '查看详情',
  91. code: 'view',
  92. display: ({ row }) => {
  93. return DISPLAY_STATE.VISIBLE;
  94. },
  95. disabled({ row }) {
  96. return false;
  97. },
  98. onClick({ row }) {
  99. router.push('/project-manage/bid-manage/detail?id=' + row.id)
  100. },
  101. extraProps: {},
  102. },
  103. ],
  104. },
  105. },
  106. },
  107. ],
  108. data: [
  109. {
  110. id: 'BID20230001',
  111. projectName: '智慧城市数据中心建设项目',
  112. projectCode: 'DC-2023-001',
  113. projectLocation: { code: 'BJ', name: '北京市' },
  114. estimatedContractAmount: '28,500,000',
  115. projectSource: '政府招标',
  116. projectType: '新基建',
  117. productCategory: 'EPC总包',
  118. estimatedBidOpenDate: '2023-09-15 09:30',
  119. estimatedBidSubmission: '2023-09-10',
  120. salesOwner: '张经理',
  121. operator: '投标专员A',
  122. operationTime: '2023-08-01 14:20:00',
  123. bidStatus: '准备标书'
  124. },
  125. {
  126. id: 'BID20230002',
  127. projectName: '新能源充电桩网络工程',
  128. projectCode: 'EV-2023-002',
  129. projectLocation: { code: 'SH', name: '上海市' },
  130. estimatedContractAmount: '15,200,000',
  131. projectSource: '战略合作',
  132. projectType: '新能源',
  133. productCategory: '设备供应',
  134. estimatedBidOpenDate: '2023-08-20 10:00',
  135. estimatedBidSubmission: '2023-08-15',
  136. salesOwner: '李经理',
  137. operator: '投标专员B',
  138. operationTime: '2023-07-15 09:45:00',
  139. bidStatus: '技术方案编制'
  140. },
  141. {
  142. id: 'BID20230003',
  143. projectName: '医疗云平台升级项目',
  144. projectCode: 'MED-2023-003',
  145. projectLocation: { code: 'GZ', name: '广州市' },
  146. estimatedContractAmount: '9,800,000',
  147. projectSource: '老客户',
  148. projectType: '医疗信息化',
  149. productCategory: '软件服务',
  150. estimatedBidOpenDate: '2023-08-25 14:00',
  151. estimatedBidSubmission: '2023-08-20',
  152. salesOwner: '王总监',
  153. operator: '投标专员C',
  154. operationTime: '2023-07-20 11:30:00',
  155. bidStatus: '商务条款确认'
  156. },
  157. {
  158. id: 'BID20230004',
  159. projectName: '高校智慧校园改造',
  160. projectCode: 'EDU-2023-004',
  161. projectLocation: { code: 'WH', name: '武汉市' },
  162. estimatedContractAmount: '12,500,000',
  163. projectSource: '公开招标',
  164. projectType: '教育信息化',
  165. productCategory: '综合解决方案',
  166. estimatedBidOpenDate: '2023-10-10 09:00',
  167. estimatedBidSubmission: '2023-10-05',
  168. salesOwner: '赵经理',
  169. operator: '投标专员D',
  170. operationTime: '2023-09-01 16:15:00',
  171. bidStatus: '预算编制'
  172. },
  173. {
  174. id: 'BID20230005',
  175. projectName: '金融数据中心容灾系统',
  176. projectCode: 'FIN-2023-005',
  177. projectLocation: { code: 'SZ', name: '深圳市' },
  178. estimatedContractAmount: '32,000,000',
  179. projectSource: '定向邀标',
  180. projectType: '金融科技',
  181. productCategory: '专业服务',
  182. estimatedBidOpenDate: '2023-08-15 10:30',
  183. estimatedBidSubmission: '2023-08-10',
  184. salesOwner: '陈主管',
  185. operator: '投标专员E',
  186. operationTime: '2023-07-10-10:00:00',
  187. bidStatus: '资质文件准备'
  188. },
  189. {
  190. id: 'BID20230006',
  191. projectName: '工业4.0智能工厂项目',
  192. projectCode: 'IND-2023-006',
  193. projectLocation: { code: 'CD', name: '成都市' },
  194. estimatedContractAmount: '45,000,000',
  195. projectSource: '战略客户',
  196. projectType: '工业自动化',
  197. productCategory: '交钥匙工程',
  198. estimatedBidOpenDate: '2023-06-30-14:00',
  199. estimatedBidSubmission: '2023-06-25',
  200. salesOwner: '马总监',
  201. operator: '投标专员F',
  202. operationTime: '2023-05-25-13:30:00',
  203. bidStatus: '标书制作完成'
  204. },
  205. {
  206. id: 'BID20230007',
  207. projectName: '跨境电商物流中心',
  208. projectCode: 'LOG-2023-007',
  209. projectLocation: { code: 'HZ', name: '杭州市' },
  210. estimatedContractAmount: '18,600,000',
  211. projectSource: '生态合作',
  212. projectType: '物流自动化',
  213. productCategory: '设备集成',
  214. estimatedBidOpenDate: '2023-05-20-10:00',
  215. estimatedBidSubmission: '2023-05-15',
  216. salesOwner: '徐经理',
  217. operator: '投标专员G',
  218. operationTime: '2023-04-15-09:20:00',
  219. bidStatus: '已投标'
  220. },
  221. {
  222. id: 'BID20230008',
  223. projectName: '5G基站配套电源系统',
  224. projectCode: 'TEL-2023-008',
  225. projectLocation: { code: 'NJ', name: '南京市' },
  226. estimatedContractAmount: '8,500,000',
  227. projectSource: '框架协议',
  228. projectType: '通信基建',
  229. productCategory: '产品供应',
  230. estimatedBidOpenDate: '2023-04-15-09:00',
  231. estimatedBidSubmission: '2023-04-10',
  232. salesOwner: '刘经理',
  233. operator: '投标专员H',
  234. operationTime: '2023-03-10-15:45:00',
  235. bidStatus: '等待开标'
  236. }
  237. ],
  238. },
  239. searchConfig: {
  240. fieldSpan: 4,
  241. fields: [
  242. {
  243. field: 'name',
  244. label: '项目名称',
  245. component: 'a-input',
  246. componentProps: {
  247. placeholder: '请输入项目名称',
  248. },
  249. },
  250. {
  251. field: 'name',
  252. label: '项目ID',
  253. component: 'a-input',
  254. componentProps: {
  255. placeholder: '请输入项目名称',
  256. },
  257. },
  258. {
  259. field: 'name',
  260. label: '项目地址',
  261. component: 'a-select',
  262. componentProps: {
  263. placeholder: '请选择项目地址',
  264. },
  265. },
  266. {
  267. field: 'name',
  268. label: '项目状态',
  269. component: 'a-select',
  270. componentProps: {
  271. placeholder: '请选择项目状态',
  272. },
  273. },
  274. ],
  275. },
  276. },
  277. });
  278. </script>
  279. <style lang="scss" scoped></style>