index.vue 8.2 KB

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