index.vue 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. <template>
  2. <div class="in_box">
  3. <el-row>
  4. <el-col :span="18">
  5. <div class="in_left">
  6. <div class="toReviewed">
  7. <el-table v-loading="loading" style="max-height: 695px;overflow-y: auto;" :data="infoList">
  8. <el-table-column label="项目名称" align="center" prop="name" />
  9. <el-table-column label="时间" align="center" prop="createTime" />
  10. <el-table-column label="操作" width="280" align="center" class-name="small-padding fixed-width">
  11. <template slot-scope="scope">
  12. <el-button size="mini" type="text" style="background: #F5A40C;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:query']"
  13. @click="dec_btn(scope.row)">查看和编辑</el-button>
  14. <!-- <el-button size="mini" type="text" style="background: #0669B2;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']"
  15. @click="infoBtn(scope.row)">{{scope.row.projectStatus%2==1?'提交':'驳回'}}</el-button>
  16. <el-button size="mini" type="text" style="background: #DE1939;color: #FFF;padding: 7px;" v-hasPermi="['projectInfo:info:edit']"
  17. @click="bh_brn(scope.row)">销号</el-button> -->
  18. </template>
  19. </el-table-column>
  20. </el-table>
  21. </div>
  22. <div class="exl_box">
  23. <div class="exl_title">
  24. <span></span>
  25. <el-date-picker v-model="lb_value" style="width: 100px;" type="year" value-format="yyyy" @change="picher_fn"
  26. placeholder="选择年">
  27. </el-date-picker>
  28. </div>
  29. <echarts :echartData="echartData" :ehaersList="ehaersList" v-if="flags"></echarts>
  30. </div>
  31. </div>
  32. </el-col>
  33. <el-col :span="6" style="padding: 24px 12px 24px 0 ;">
  34. <div class="in_right">
  35. <div class="rig_title">
  36. "两区"及乡镇
  37. </div>
  38. <div class="rig_tab_top">
  39. <div class="rig_tab_item">
  40. 单位名称
  41. </div>
  42. <div class="rig_tab_item">
  43. 目标任务
  44. </div>
  45. <div class="rig_tab_item">
  46. 已完成任务
  47. </div>
  48. </div>
  49. <div class="rig_cont">
  50. <div class="rig_items" v-for="(item,index) in unitList" :key="index">
  51. <span>{{item.deptName}}</span>
  52. <span>{{item.targetSigningNum != '0.0000'?item.targetSigningNum:0}}个</span>
  53. <span>{{item.successMission?item.successMission:0}}个</span>
  54. </div>
  55. </div>
  56. <div class="rig_title">
  57. 市直榜单
  58. </div>
  59. <div class="rig_tab_top" style="background-color: #1C84C6;">
  60. <div class="rig_tab_item">
  61. 单位名称
  62. </div>
  63. <div class="rig_tab_item">
  64. 新签约目标金额
  65. </div>
  66. <div class="rig_tab_item">
  67. 实际合同金额
  68. </div>
  69. </div>
  70. <div class="rig_cont">
  71. <div class="rig_items" v-for="(item,index) in zjList" :key="index">
  72. <span>{{item.deptName}}</span>
  73. <span>{{item.targetArrivalAmount}}万</span>
  74. <span>{{item.totAmt}}万</span>
  75. </div>
  76. </div>
  77. </div>
  78. </el-col>
  79. </el-row>
  80. </div>
  81. </template>
  82. <script>
  83. import echarts from '@/components/Echarts/indexTwo.vue'
  84. import {
  85. toBeReviewedList,
  86. getStatisticst,
  87. getTotAmtList,
  88. setExamine,
  89. setReject,
  90. getUnitList,
  91. getUnitAmountList,
  92. getProjectContractEharts
  93. } from '@/api/statistical/index.js'
  94. export default {
  95. data() {
  96. return {
  97. infoList: [],
  98. echartData: {
  99. name: '签约数及合同金额柱状图',
  100. numName: ['签约项目个数', '合同金额'],
  101. numNameArr: ['签约项目个数', '合同金额']
  102. },
  103. zjList: [],
  104. ehaersList: {},
  105. loading: false,
  106. unitList: [],
  107. flags: false,
  108. lb_value: '2021', // 柱状图类别
  109. }
  110. },
  111. components: {
  112. echarts
  113. },
  114. mounted() {
  115. this.getList()
  116. this.bd_btn()
  117. this.zj_btn()
  118. this.eharts_fn()
  119. },
  120. methods: {
  121. picher_fn() {
  122. this.eharts_fn()
  123. },
  124. eharts_fn(val) {
  125. getProjectContractEharts({
  126. year: this.lb_value
  127. }).then(res => {
  128. this.ehaersList = res.data
  129. this.flags = true
  130. })
  131. },
  132. zj_btn() {
  133. getTotAmtList().then(res => {
  134. console.log(res)
  135. this.zjList = res.rows
  136. })
  137. },
  138. bd_btn() {
  139. getUnitAmountList().then(res => {
  140. console.log(res)
  141. this.unitList = res.rows
  142. })
  143. },
  144. dec_btn(row) {
  145. this.$router.push({
  146. path: '/management/row/index',
  147. query: {
  148. setid: row.id,
  149. setrd: row.projectStatus,
  150. tabIndex: 2,
  151. },
  152. })
  153. },
  154. bh_brn(scope) {
  155. const _this = this
  156. this.$confirm('是否确认销号', "提醒", {
  157. confirmButtonText: "确定",
  158. cancelButtonText: "取消",
  159. type: "warning"
  160. }).then(function() {
  161. delProject(scope.id).then(() => {
  162. _this.getList();
  163. _this.msgSuccess("提交成功");
  164. })
  165. })
  166. },
  167. infoBtn(scope) {
  168. const _this = this
  169. if (scope.projectStatus % 2 == 1) {
  170. this.$confirm('是否确认提交审核', "提醒", {
  171. confirmButtonText: "确定",
  172. cancelButtonText: "取消",
  173. type: "warning"
  174. }).then(function() {
  175. return setExamine({
  176. code: 1,
  177. bmProjectId: scope.id
  178. });
  179. }).then(() => {
  180. _this.getList();
  181. _this.msgSuccess("提交成功");
  182. })
  183. } else {
  184. this.$confirm('是否确认驳回', "提醒", {
  185. confirmButtonText: "确定",
  186. cancelButtonText: "取消",
  187. type: "warning"
  188. }).then(function() {
  189. return setReject({
  190. code: 2,
  191. bmProjectId: scope.id
  192. });
  193. }).then(() => {
  194. _this.getList();
  195. _this.msgSuccess("提交成功");
  196. })
  197. }
  198. },
  199. getList() {
  200. getStatisticst('4,5').then(res => {
  201. this.infoList = res.rows
  202. })
  203. },
  204. }
  205. }
  206. </script>
  207. <style lang="scss" scoped>
  208. .rig_tab_top {
  209. display: flex;
  210. background: #6DCEF6;
  211. line-height: 36px;
  212. color: #fff;
  213. .rig_tab_item {
  214. font-size: 14px;
  215. flex: 1;
  216. text-align: center;
  217. overflow: hidden;
  218. text-overflow: ellipsis;
  219. white-space: nowrap;
  220. }
  221. }
  222. .rig_cont {
  223. border: 1px solid #CDCDCD;
  224. box-sizing: border-box;
  225. margin-bottom: 31px;
  226. max-height: 270px;
  227. overflow-y: auto;
  228. scrollbar-width: none;
  229. /* firefox */
  230. -ms-overflow-style: none;
  231. /* IE 10+ */
  232. &::-webkit-scrollbar {
  233. display: none;
  234. /* Chrome Safari */
  235. }
  236. .rig_items {
  237. line-height: 36px;
  238. color: #343434;
  239. font-size: 12px;
  240. display: flex;
  241. span {
  242. flex: 1;
  243. text-align: center;
  244. }
  245. }
  246. }
  247. .in_right {
  248. padding: 15px 15px 0;
  249. border: 1px solid #DADADA;
  250. box-shadow: 0px 7px 9px 2px rgba(201, 201, 201, 0.36);
  251. .rig_title {
  252. color: #1C84C6;
  253. font-size: 18px;
  254. line-height: 36px;
  255. margin-bottom: 15px;
  256. }
  257. }
  258. .in_left {
  259. padding: 24px 20px 40px;
  260. .toReviewed {
  261. padding: 19px 16px;
  262. border: 1px solid #DADADA;
  263. box-shadow: 0px 7px 9px 2px rgba(201, 201, 201, 0.36);
  264. margin-bottom: 38px;
  265. .rev_title {
  266. margin-bottom: 23px;
  267. }
  268. }
  269. .exl_box {
  270. border: 1px solid #DADADA;
  271. box-shadow: 0px 7px 9px 2px rgba(201, 201, 201, 0.36);
  272. padding: 20px;
  273. box-sizing: border-box;
  274. .exl_title {
  275. display: flex;
  276. justify-content: space-between;
  277. span {
  278. color: #1C84C6;
  279. font-size: 18px;
  280. line-height: 36px;
  281. }
  282. }
  283. }
  284. }
  285. </style>