index.vue 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  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)" v-if="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 :ehaersList="ehaersList" :echartData="echartData" 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 areaList" :key="index">
  51. <span>{{item.deptName}}</span>
  52. <span>{{item.successMission?item.successMission:0}}个</span>
  53. <span>{{item.targetSigningNum?item.targetSigningNum:0}}个</span>
  54. </div>
  55. </div>
  56. </div>
  57. <div class="rig_tab_top" style="background-color: #1C84C6;">
  58. <div class="rig_title">
  59. 市直单位
  60. </div>
  61. <div class="rig_tab_top">
  62. <div class="rig_tab_item">
  63. 单位名称
  64. </div>
  65. <div class="rig_tab_item">
  66. 目标到资
  67. </div>
  68. <div class="rig_tab_item">
  69. 实际到资
  70. </div>
  71. </div>
  72. <div class="rig_cont">
  73. <div class="rig_items" v-for="(item,index) in unitList" :key="index">
  74. <span>{{item.deptName}}</span>
  75. <span>{{item.targetContractAmount?item.targetContractAmount:0}}万</span>
  76. <span>{{item.payForMoney?item.payForMoney:0}}万</span>
  77. </div>
  78. </div>
  79. </div> -->
  80. <div class="in_right">
  81. <div class="rig_title">
  82. "两区"及乡镇
  83. </div>
  84. <div class="rig_tab_top">
  85. <div class="rig_tab_item">
  86. 单位名称
  87. </div>
  88. <div class="rig_tab_item">
  89. 目标任务
  90. </div>
  91. <div class="rig_tab_item">
  92. 在建个数
  93. </div>
  94. </div>
  95. <div class="rig_cont">
  96. <div class="rig_items" v-for="(item,index) in areaList" :key="index">
  97. <span>{{item.deptName}}</span>
  98. <span>{{item.successMission?item.successMission:0}}个</span>
  99. <span>{{item.targetSigningNum?item.targetSigningNum:0}}个</span>
  100. </div>
  101. </div>
  102. <div class="rig_title">
  103. 市直单位
  104. </div>
  105. <div class="rig_tab_top" style="background-color: #1C84C6;">
  106. <div class="rig_tab_item">
  107. 单位名称
  108. </div>
  109. <div class="rig_tab_item">
  110. 目标到资
  111. </div>
  112. <div class="rig_tab_item">
  113. 实际到资
  114. </div>
  115. </div>
  116. <div class="rig_cont">
  117. <div class="rig_items" v-for="(item,index) in unitList" :key="index">
  118. <span>{{item.deptName}}</span>
  119. <span>{{item.targetContractAmount?item.targetContractAmount:0}}万</span>
  120. <span>{{item.payForMoney?item.payForMoney:0}}万</span>
  121. </div>
  122. </div>
  123. </div>
  124. </el-col>
  125. </el-row>
  126. </div>
  127. </template>
  128. <script>
  129. import echarts from '@/components/Echarts/index.vue'
  130. import {
  131. getStatisticst,
  132. delProject,
  133. toBeReviewedList,
  134. setExamine,
  135. setReject,
  136. setProjectUnitAmountUnit,
  137. getProjectUnitAmountEharts, setProjectAreaAmountUnit
  138. } from '@/api/statistical'
  139. export default {
  140. data() {
  141. return {
  142. infoList: [],
  143. zjList: [],
  144. ehaersList: {},
  145. echartData: {
  146. name: '到资金额柱状图',
  147. numName: '到资金额',
  148. numNameArr: ['到资金额']
  149. },
  150. loading: false,
  151. unitList: [],
  152. areaList: [],
  153. flags: false,
  154. lb_value: '2021', // 柱状图类别
  155. }
  156. },
  157. components: {
  158. echarts
  159. },
  160. mounted() {
  161. this.getList()
  162. this.bd_btn()
  163. this.zht_fn()
  164. this.eharts_fn()
  165. this.area_btn()
  166. },
  167. methods: {
  168. picher_fn() {
  169. this.eharts_fn()
  170. },
  171. eharts_fn(val) {
  172. getProjectUnitAmountEharts({
  173. year: this.lb_value
  174. }).then(res => {
  175. this.ehaersList = res.data
  176. this.flags = true
  177. })
  178. },
  179. zht_fn() {
  180. },
  181. bd_btn() {
  182. setProjectUnitAmountUnit().then(res => {
  183. this.unitList = res.data
  184. })
  185. },
  186. area_btn() {
  187. setProjectAreaAmountUnit().then(res => {
  188. this.areaList = res.data
  189. })
  190. },
  191. dec_btn(row) {
  192. this.$router.push({
  193. path: '/management/row/index',
  194. query: {
  195. setid: row.id,
  196. setrd: row.projectStatus,
  197. tabIndex: 3,
  198. },
  199. })
  200. },
  201. bh_brn(scope) {
  202. const _this = this
  203. this.$confirm('是否确认销号', "提醒", {
  204. confirmButtonText: "确定",
  205. cancelButtonText: "取消",
  206. type: "warning"
  207. }).then(function() {
  208. delProject(scope.id).then(() => {
  209. _this.getList();
  210. _this.msgSuccess("提交成功");
  211. })
  212. })
  213. },
  214. infoBtn(scope) {
  215. const _this = this
  216. this.$confirm('是否确认提交申请', "提醒", {
  217. confirmButtonText: "确定",
  218. cancelButtonText: "取消",
  219. type: "warning"
  220. }).then(function() {
  221. setExamine({
  222. code: 1,
  223. bmProjectId: scope.id
  224. });
  225. }).then(() => {
  226. _this.getList();
  227. _this.msgSuccess("提交成功");
  228. })
  229. },
  230. getList() {
  231. getStatisticst('6,7').then(res => {
  232. this.infoList = res.rows
  233. })
  234. },
  235. }
  236. }
  237. </script>
  238. <style lang="scss" scoped>
  239. .rig_tab_top {
  240. display: flex;
  241. background: #6DCEF6;
  242. line-height: 36px;
  243. color: #fff;
  244. .rig_tab_item {
  245. font-size: 14px;
  246. flex: 1;
  247. text-align: center;
  248. overflow: hidden;
  249. text-overflow: ellipsis;
  250. white-space: nowrap;
  251. }
  252. }
  253. .rig_cont {
  254. border: 1px solid #CDCDCD;
  255. box-sizing: border-box;
  256. margin-bottom: 31px;
  257. max-height: 270px;
  258. overflow-y: auto;
  259. scrollbar-width: none;
  260. /* firefox */
  261. -ms-overflow-style: none;
  262. /* IE 10+ */
  263. &::-webkit-scrollbar {
  264. display: none;
  265. /* Chrome Safari */
  266. }
  267. .rig_items {
  268. line-height: 36px;
  269. color: #343434;
  270. font-size: 12px;
  271. display: flex;
  272. span {
  273. flex: 1;
  274. text-align: center;
  275. }
  276. }
  277. }
  278. .in_right {
  279. padding: 15px 15px 0;
  280. border: 1px solid #DADADA;
  281. box-shadow: 0px 7px 9px 2px rgba(201, 201, 201, 0.36);
  282. .rig_title {
  283. color: #1C84C6;
  284. font-size: 18px;
  285. line-height: 36px;
  286. margin-bottom: 15px;
  287. }
  288. }
  289. .in_left {
  290. padding: 24px 20px 40px;
  291. .toReviewed {
  292. padding: 19px 16px;
  293. border: 1px solid #DADADA;
  294. box-shadow: 0px 7px 9px 2px rgba(201, 201, 201, 0.36);
  295. margin-bottom: 38px;
  296. .rev_title {
  297. margin-bottom: 23px;
  298. }
  299. }
  300. .exl_box {
  301. border: 1px solid #DADADA;
  302. box-shadow: 0px 7px 9px 2px rgba(201, 201, 201, 0.36);
  303. padding: 20px;
  304. box-sizing: border-box;
  305. .exl_title {
  306. display: flex;
  307. justify-content: space-between;
  308. span {
  309. color: #1C84C6;
  310. font-size: 18px;
  311. line-height: 36px;
  312. }
  313. }
  314. }
  315. }
  316. </style>