0aea3172a4dffe1b739ae570aa29d747cf4159ef.svn-base 51 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223
  1. <template>
  2. <el-container class="monthReport">
  3. <el-dialog title="监督进度月报" width="90%" :visible.sync="monthDialogVisible" modal-append-to-body append-to-body :before-close="closeDialog">
  4. <h2 class="title_monthReport">监督检查详细计划</h2>
  5. <el-form :inline="true" size="mini" class="demo-form-inline" label-width="130px">
  6. <el-form-item label="检查事项">
  7. <el-select v-model="searchForm.objType" multiple collapse-tags placeholder="检查事项" clearable>
  8. <el-option
  9. v-for="item in dcTypeList"
  10. :key="item.code"
  11. :label="item.inspName"
  12. :value="item.inspType">
  13. </el-option>
  14. </el-select>
  15. </el-form-item>
  16. <el-form-item label="检查时间">
  17. <el-date-picker
  18. v-model="dateRange"
  19. type="daterange"
  20. format="yyyy-MM-dd"
  21. value-format="yyyy-MM-dd"
  22. clearable
  23. range-separator="至"
  24. start-placeholder="开始日期"
  25. end-placeholder="结束日期">
  26. </el-date-picker>
  27. </el-form-item>
  28. <el-form-item label="检查区域">
  29. <addvSearch
  30. style="width: 178px;margin-left:10px;margin-right:15px"
  31. :rootAddCode='organCode'
  32. :level='"1"'
  33. @checkchange="checkchange"
  34. ></addvSearch>
  35. </el-form-item>
  36. <el-form-item label="检查技术支撑单位">
  37. <el-input v-model="searchForm.chkDpnm" placeholder="请选择" clearable></el-input>
  38. </el-form-item>
  39. <el-form-item style="float:right;">
  40. <el-button type="primary" size="mini" @click="searchBtn">查 询</el-button>
  41. <el-button type="primary" size="mini" @click="exportExcel">导 出</el-button>
  42. <el-button type="primary" size="mini" @click="addBtn">添 加 行</el-button>
  43. </el-form-item>
  44. </el-form>
  45. <div style="padding-bottom: 20px;">
  46. <el-button type="primary" size="mini" @click="closeDialog" style="float:left;">返回年度检查计划</el-button>
  47. <el-table
  48. border
  49. ref="table"
  50. :height="tableHeight"
  51. :data="tableData"
  52. tooltip-effect="dark"
  53. @cell-dblclick="celledit"
  54. style="width: 100%"
  55. v-loading="loading">
  56. <el-table-column align="center" type="index" label="序号" width="80">
  57. <template slot-scope="scope">{{ (pageNum - 1) * pageSize + (scope.$index + 1) }}</template>
  58. </el-table-column>
  59. <el-table-column
  60. min-width="200"
  61. prop="col1"
  62. align="center"
  63. label="检查事项">
  64. <template slot-scope="scope">
  65. <el-select v-model="scope.row.col1"
  66. v-if="scope.row.edit">
  67. <el-option
  68. v-for="item in dcTypeList"
  69. :key="item.inspType"
  70. :label="item.inspName"
  71. :value="item.inspType">
  72. </el-option>
  73. </el-select>
  74. <span v-else>{{scope.row.col1 | chkDcType(dcTypeList)}}</span>
  75. </template>
  76. </el-table-column>
  77. <el-table-column
  78. min-width="240"
  79. prop="col2"
  80. align="center"
  81. label="检查时间">
  82. <template slot-scope="scope">
  83. <el-date-picker
  84. style="width: 220px"
  85. v-model="scope.row.col2"
  86. v-if="scope.row.edit"
  87. type="daterange"
  88. format="yyyy-MM-dd"
  89. value-format="yyyy-MM-dd"
  90. range-separator="至"
  91. start-placeholder="开始日期"
  92. end-placeholder="结束日期">
  93. </el-date-picker>
  94. <span v-else>{{scope.row.col2?(scope.row.col2.length>0?scope.row.col2[0]+"~"+scope.row.col2[1]:""):""}}</span>
  95. </template>
  96. </el-table-column>
  97. <el-table-column
  98. min-width="200"
  99. align="center"
  100. prop="col3"
  101. label="检查区域">
  102. <template slot-scope="scope">
  103. <colsTree v-if="scope.row.edit" :key="'tree'+scope.$index" :rootAddCode='organCode' :rowData="scope.row" :level='"2"'></colsTree>
  104. <span v-else>{{scope.row.col3}}</span>
  105. </template>
  106. </el-table-column>
  107. <el-table-column
  108. min-width="200"
  109. prop="col4"
  110. align="center"
  111. label="检查项目">
  112. <template slot-scope="scope">
  113. <el-input v-model="scope.row.col4" v-if="scope.row.edit" placeholder="请选择检查项目">
  114. <template slot="append"><el-button type="primary" @click="rowClick_4(scope.row)"><i class="el-icon-plus"></i></el-button></template>
  115. </el-input>
  116. <span v-else>{{scope.row.col4}}</span>
  117. </template>
  118. </el-table-column>
  119. <el-table-column
  120. min-width="200"
  121. prop="col5"
  122. align="center"
  123. label="检查技术支撑单位">
  124. <template slot-scope="scope">
  125. <el-input v-model="scope.row.col5" v-if="scope.row.edit" placeholder="请输入检查技术支撑单位"></el-input>
  126. <span v-else>{{scope.row.col5}}</span>
  127. </template>
  128. </el-table-column>
  129. <el-table-column
  130. min-width="200"
  131. prop="col6"
  132. align="center"
  133. label="检查批次名称">
  134. <template slot-scope="scope">
  135. <el-input v-model="scope.row.col6" v-if="scope.row.edit" placeholder="请输入检查批次名称"></el-input>
  136. <span v-else>{{scope.row.col6}}</span>
  137. </template>
  138. </el-table-column>
  139. <el-table-column
  140. min-width="200"
  141. prop="col7"
  142. align="center"
  143. label="检查组次名称">
  144. <template slot-scope="scope">
  145. <el-input v-model="scope.row.col7" v-if="scope.row.edit" placeholder="请输入检查组次名称"></el-input>
  146. <span v-else>{{scope.row.col7}}</span>
  147. </template>
  148. </el-table-column>
  149. <el-table-column
  150. min-width="200"
  151. prop="col8"
  152. align="center"
  153. label="检查组长">
  154. <template slot-scope="scope">
  155. <el-input v-model="scope.row.col8" v-if="scope.row.edit" placeholder="请选择检查组长">
  156. <template slot="append"><el-button type="primary" @click="rowClick_8(scope.row)"><i class="el-icon-plus"></i></el-button></template>
  157. </el-input>
  158. <span v-else>{{scope.row.col8}}</span>
  159. </template>
  160. </el-table-column>
  161. <el-table-column
  162. min-width="200"
  163. prop="col9"
  164. align="center"
  165. label="检查组员">
  166. <template slot-scope="scope">
  167. <el-input v-model="scope.row.col9" v-if="scope.row.edit" placeholder="请选择检查组员">
  168. <template slot="append"><el-button type="primary" @click="rowClick_9(scope.row)"><i class="el-icon-plus"></i></el-button></template>
  169. </el-input>
  170. <span v-else>{{scope.row.col9}}</span>
  171. </template>
  172. </el-table-column>
  173. <el-table-column
  174. min-width="200"
  175. prop="col10"
  176. align="center"
  177. label="检查形式">
  178. <template slot-scope="scope">
  179. <el-select v-model="scope.row.col10" v-if="scope.row.edit" placeholder="请选择检查形式">
  180. <el-option
  181. v-for="item in chkFormList"
  182. :key="item.value"
  183. :label="item.label"
  184. :value="item.value">
  185. </el-option>
  186. </el-select>
  187. <span v-else>{{scope.row.col10 | ChkForm}}</span>
  188. </template>
  189. </el-table-column>
  190. <el-table-column
  191. align="center"
  192. label="操作"
  193. min-width="150"
  194. fixed="right">
  195. <template slot-scope="scope">
  196. <el-button type="primary" size="mini" @click.stop="finishData(scope.row)" v-if="scope.row.edit && !scope.row.id">完成</el-button>
  197. <el-button type="danger" size="mini" @click.stop="deleteData(scope.row.id,scope.$index)">删除</el-button>
  198. </template>
  199. </el-table-column>
  200. </el-table>
  201. <el-pagination
  202. style="margin: 10px auto"
  203. background
  204. :pager-count="5"
  205. :current-page="pageNum"
  206. :page-size="pageSize"
  207. :page-sizes="[10, 20, 30, 40, 50, 100]"
  208. layout="sizes, total, prev, pager, next"
  209. :total="total"
  210. @current-change="handleCurrentChange"
  211. ></el-pagination>
  212. </div>
  213. <component :is="curEditDcdxInfo" ref="editDcdxInfoRef" :isNewPlan="true" :rowData="currowRow" :adCodes="adCodes" :objType="duChaType" @addSuccess="DuiXiangAddSuccessHandler"/>
  214. <el-dialog
  215. class="outerDialog custom_dialog"
  216. title="添加人员"
  217. width="60%"
  218. modal-append-to-body
  219. append-to-body
  220. @close="closeAddDialog"
  221. v-if="addDialogVisible"
  222. :visible.sync="addDialogVisible">
  223. <el-form ref="addForm" label-width="100px" :inline="true" class="demo-form-inline">
  224. <el-form-item label="人员姓名">
  225. <el-input v-model="addSearchForm.userName" placeholder="人员姓名" clearable></el-input>
  226. </el-form-item>
  227. <el-form-item label="所属部门">
  228. <el-input v-model="addSearchForm.dpnm" placeholder="人员姓名" clearable></el-input>
  229. </el-form-item>
  230. <el-form-item label="">
  231. <el-button type="primary" size="mini" @click="searchBtn1">查询</el-button>
  232. </el-form-item>
  233. </el-form>
  234. <el-table
  235. border
  236. ref="multipleTable1"
  237. :height="tableHeight1"
  238. :data="tableData1"
  239. tooltip-effect="dark"
  240. style="width: 100%"
  241. @selection-change="handleSelectionChange"
  242. v-loading="loading1">
  243. <el-table-column
  244. type="selection"
  245. width="55">
  246. </el-table-column>
  247. <el-table-column
  248. header-align="center"
  249. align="center"
  250. min-width="100"
  251. prop="persName"
  252. label="人员姓名"
  253. show-overflow-tooltip
  254. ></el-table-column>
  255. <el-table-column
  256. header-align="center"
  257. align="center"
  258. min-width="100"
  259. prop="sex"
  260. label="性别"
  261. show-overflow-tooltip
  262. >
  263. <template slot-scope="scope">
  264. <span v-if="scope.row.sex==1">男</span>
  265. <span v-else-if="scope.row.sex==2">女</span>
  266. <span v-else></span>
  267. </template>
  268. </el-table-column>
  269. <el-table-column
  270. header-align="center"
  271. align="center"
  272. min-width="200"
  273. prop="mobilenumb"
  274. label="手机号码"
  275. show-overflow-tooltip
  276. ></el-table-column>
  277. <el-table-column
  278. header-align="center"
  279. align="center"
  280. min-width="150"
  281. prop="orgNm"
  282. label="机构名称"
  283. show-overflow-tooltip
  284. ></el-table-column>
  285. <el-table-column
  286. header-align="center"
  287. align="center"
  288. min-width="150"
  289. prop="dpnm"
  290. label="所属部门"
  291. show-overflow-tooltip
  292. ></el-table-column>
  293. </el-table>
  294. <el-pagination
  295. style="margin: 10px auto"
  296. background
  297. :pager-count="5"
  298. :current-page="pageNum1"
  299. :page-size="pageSize1"
  300. :page-sizes="[10, 20, 30, 40, 50, 100]"
  301. layout="sizes, total, prev, pager, next"
  302. :total="total1"
  303. @current-change="handleCurrentChange1"
  304. ></el-pagination>
  305. <span slot="footer" class="dialog-footer">
  306. <el-button @click="addDialogVisible = false">取 消</el-button>
  307. <el-button type="primary" @click="addSubmitPer">确 定</el-button>
  308. </span>
  309. </el-dialog>
  310. </el-dialog>
  311. </el-container>
  312. </template>
  313. <script>
  314. import {exportModel} from "@util/gw_exportModel";
  315. import request from '@util/gw_ajax_request'
  316. import addvSearch from "../../../widgets/addvTree.vue"
  317. import colsTree from "../../../widgets/colsTree.vue"
  318. import { getAddTree} from "../../../api/duChaAPI.js";
  319. export default {
  320. name: "",
  321. props: ['rowData'],
  322. data() {
  323. return {
  324. treeValue:[],
  325. treeLabel:[],
  326. treeData:[],
  327. treeLoading:false,
  328. defaultProps: {
  329. children: 'children',
  330. label: 'nm'
  331. },
  332. level:"2",
  333. dcTypeList:[],
  334. detailDialogVisible:false,
  335. dateRange:[],
  336. dialogT:"",
  337. monthDialogVisible:true,
  338. addDialogVisible:false,
  339. tableHeight:window.innerHeight-400,
  340. tableData:[],
  341. loading:false,
  342. pageNum:1,
  343. pageSize:10,
  344. total:0,
  345. searchForm:{
  346. sttm:"",
  347. entm:"",
  348. chkObjId:"",
  349. chkAdCode:"",
  350. chkDpnm:""
  351. },
  352. YM:"",
  353. orgIdDefault:"",
  354. addForm:{
  355. chkYearId:"",
  356. chkForm:"",
  357. chkMnth:"",
  358. chkNote:"",
  359. chkGroup:"",
  360. chkPers:"",
  361. chkPblm:"",
  362. chkLeder:"",
  363. trainNum:"",
  364. trainPers:"",
  365. nextPlan:"",
  366. note:"",
  367. },
  368. chkFormList:[
  369. {label:"暗访",value:"1"},
  370. {label:"明察",value:"2"},
  371. {label:"书面",value:"3"},
  372. {label:"四不两直",value:"4"}
  373. ],
  374. currowRow:{},
  375. currentCol:"",
  376. isVisible_1:false,
  377. curEditDcdxInfo:false,
  378. duChaType:"",
  379. adCodes:"",
  380. addDialogVisible:false,
  381. pageNum1:1,
  382. pageSize1:10,
  383. total1:0,
  384. tableHeight1:500,
  385. tableData1:[],
  386. loading1:false,
  387. addSearchForm:{
  388. userName:"",
  389. dpnm:""
  390. },
  391. multipleSelection: []
  392. }
  393. },
  394. filters:{
  395. ChkForm(val){
  396. return val=="1"?"暗访":val=="2"?"明察":val=="3"?"书面":val=="4"?"四不两直":"";
  397. },
  398. chkDcType(val,dcTypeList){
  399. var name = "";
  400. dcTypeList.forEach((item)=>{
  401. if(item.inspType==val){
  402. name = item.inspName;
  403. }
  404. })
  405. return name;
  406. }
  407. },
  408. components: {
  409. addvSearch,
  410. colsTree,
  411. editDcdxInfo: resolve => {
  412. require(['../editDcdxInfo.vue'], resolve)
  413. },//添加监督对象(包含小水库,江西大中型水库督查,水库防洪调度,2019年农饮,水毁,地下水监测站督查)
  414. editDcdxInfosz: resolve => {
  415. require(['../editDcdxInfo_sz.vue'], resolve)
  416. },//添加水闸监督对象
  417. editDcdxInfojianshe: resolve => {
  418. require(['../editDcdxInfo_jianshe.vue'], resolve)
  419. },//添加工程建设监督对象
  420. editDcdxInfoyunxing: resolve => {
  421. require(['../editDcdxInfo_yunxing.vue'], resolve)
  422. },//添加工程运行监督对象
  423. editDcdxInfoyudiba: resolve => {
  424. require(['../editDcdxInfoydb.vue'], resolve)
  425. },//添加淤泥坝监督对象
  426. editDcdxInfotdfj: resolve => {
  427. require(['../editDcdxInfo_tdfj.vue'], resolve)
  428. },//添加特定飞检监督对象
  429. editDcdxInfoqita: resolve => {
  430. require(['../editDcdxInfo_qtjc.vue'], resolve)
  431. },
  432. editDcdxInfoszyxjxzq: resolve => {
  433. require(['../editDcdxInfoSzyxjxzq.vue'], resolve)
  434. }, //分水管控
  435. editDcdxInfoqsk: resolve => {
  436. require(['../editDcdxInfoQsk.vue'], resolve)
  437. },
  438. editDcdxInfosyd: resolve => {
  439. require(['../editDcdxInfoSyd.vue'], resolve)
  440. },
  441. editDcdxInfojsgl: resolve => {
  442. require(['../editDcdxInfoJsglypj.vue'], resolve)
  443. }, //节水管理与评价
  444. editDcdxInfojsdw: resolve => {
  445. require(['../editDcdxInfoJsdwcc.vue'], resolve)
  446. }, //用水单位
  447. editDcdxInfosb: resolve => {
  448. require(['../editDcdxInfo_shuibao.vue'], resolve)
  449. }, //水保
  450. editDcdxInfosl: resolve => {
  451. require(['../editDcdxInfo_siluan.vue'], resolve)
  452. }, //四乱,水政
  453. editDcdxInfozyhbdc: resolve => {
  454. require(['../editDcdxInfo_zyhbdc.vue'], resolve)
  455. }, //中央环保督查
  456. editDcdxInfoSkFj: resolve => {
  457. require(['../editDcdxInfo_sk_fj.vue'], resolve)
  458. }, //福建大中型水库
  459. editDcdxInfoQuanScore: resolve => {
  460. require(['../editDcdxInfo_quanScore.vue'], resolve)
  461. }, //福建量化评分
  462. editDcdxInfoXskbzh: resolve => {
  463. require(['../editDcdxInfo_xskbzh.vue'], resolve)
  464. }, //江西小水库标准化
  465. editDcdxInfoRyZj: resolve => {
  466. require(['../editDcdxInfo_ryZj.vue'], resolve)
  467. }, //浙江人饮
  468. editDcdxInfoZjqjg: resolve => {
  469. require(['../editDcdxInfo_zjqjg.vue'], resolve)
  470. }, //浙江强监管
  471. editDcqyInfo: resolve => {
  472. require(['../editDcqyInfo.vue'], resolve)
  473. },
  474. editDcdxInfoRynew: resolve => {
  475. require(['../editDcdxInfo_rynew.vue'], resolve)
  476. },
  477. editDcdxInfoYiGongLi: resolve => {
  478. require(['../editDcdxInfo_yigongli.vue'], resolve)
  479. }, //灌区最后一公里
  480. editDcdxInfoDiFang: resolve => {
  481. require(['../editDcdxInfo_difang.vue'], resolve)
  482. }, //堤防
  483. editDcdxInfoChaoBiaoHongYuAn: resolve => {
  484. require(['../editDcdxInfo_chaobiaohongyuan.vue'], resolve)
  485. }, //超标
  486. editDcdxInfoQys: resolve => {
  487. require(['../editDcdxInfoQys.vue'], resolve)
  488. }, //取用水
  489. editDcdxInfoJieshui: resolve => {
  490. require(['../editDcdxInfo_jieshui.vue'], resolve)
  491. }, //取用水
  492. editDcdxInfoSkcxjg: resolve => {
  493. require(['../editDcdxInfo_skcxjg.vue'], resolve)
  494. }, // 34 水库除险加固
  495. editDcdxInfoZxhl: resolve => {
  496. require(['../editDcdxInfo_zxhl.vue'], resolve)
  497. }, // 35 水库除险加固
  498. editDcdxInfoNyhtk: resolve => {
  499. require(['../editDcdxInfo_nyhtk.vue'], resolve)
  500. }, // 37 水库除险加固
  501. editDcdxInfoSzygl: resolve => {
  502. require(['../editDcdxInfo_szygl.vue'], resolve)
  503. }, //取用水
  504. editDcdxInfoJsztfh: resolve => {
  505. require(['../editDcdxInfo_jsztfh.vue'], resolve)
  506. }, //节水载体复核
  507. editDcdxInfoQsxkglfhhdw: resolve => {
  508. require(['../editDcdxInfo_qsxkglfhhdw.vue'], resolve)
  509. }, //取水许可管理复核
  510. editDcdxInfoSzyjsgl: resolve => {
  511. require(['../editDcdxInfo_szyjsgl.vue'], resolve)
  512. }, //取水许可管理复核
  513. editDcdxInfoXjSzyjsgl: resolve => {
  514. require(['../editDcdxInfo_xjszyjsgl.vue'], resolve)
  515. }, //取水许可管理复核
  516. editDcdxInfoQsxkglfhsdz: resolve => {
  517. require(['../editDcdxInfo_qsxkglfhsdz.vue'], resolve)
  518. }, //取水许可管理复核
  519. editDcdxInfoAqscssjygk: resolve => {
  520. require(['../editDcdxInfo_aqscssjygk.vue'], resolve)
  521. }, //取水许可管理复核
  522. editDcdxInfoNcysaq: resolve => {
  523. require(['../editDcdxInfo_ncysaq.vue'], resolve)
  524. }, //取水许可管理复核
  525. editDcdxInfoQsxk: resolve => {
  526. require(['../editDcdxInfo_qsxk.vue'], resolve)
  527. }, //青海取水许可
  528. editDcdxInfoWrsAndWswmSpe: (resolve) => {
  529. require(['../editDcdxInfoWrsAndWswmSpe.vue'], resolve)
  530. },//江苏水资源和节水管理专项
  531. editDcdxInfoZhaoTouBiao: (resolve) => {
  532. require(['../editDcdxInfo_zhaotoubiao.vue'], resolve)
  533. },//江苏水资源和节水管理专项
  534. editDcdxInfoShuiyacai: (resolve) => {
  535. require(['../editDcdxInfo_shuiyacai.vue'], resolve)
  536. },//水压采
  537. editDcdxInfoTuidiJianshui: (resolve) => {
  538. require(['../editDcdxInfo_tuidijianshui.vue'], resolve)
  539. }//068(rlrw)退地减水督查(新疆)
  540. ,
  541. editDcdxInfoXiaofangYiqing: (resolve) => {
  542. require(['../editDcdxInfo_xiaofangyiqing.vue'], resolve)
  543. },//074(safety)074消防安全及疫情防控对象督查(江西)
  544. editDcdxInfoShuiXingZhenBuMen: (resolve) => {
  545. require(['../editDcdxInfo_shuixingzhengbumen.vue'], resolve)
  546. },//075水行政部门安全生产巡查
  547. editDcdxInfoHehuzhangzhi: (resolve) => {
  548. require(['../editDcdxInfo_hehuzhangzhi.vue'], resolve)
  549. },//河湖长制
  550. editDcdxInfoHehuguanli: (resolve) => {
  551. require(['../editDcdxInfo_hehuguanli.vue'], resolve)
  552. },//河湖管理
  553. editDcdxInfoSlxmaqscxj: (resolve) => {
  554. require(['../editDcdxInfo_slxmaqscxj.vue'], resolve)
  555. },//河湖管理
  556. editDcdxInfoNcysaqAf: (resolve) => {
  557. require(['../editDcdxInfo_ncysaqaf.vue'], resolve)
  558. },//河湖管理
  559. editDcdxInfoBxzzqlaq: (resolve) => {
  560. require(['../editDcdxInfo_bxzzqlaq.vue'], resolve)
  561. },//病险闸站
  562. editDcdxInfoXsd: (resolve) => {
  563. require(['../editDcdxInfo_xsd.vue'], resolve)
  564. },//小水电清理暗访督查
  565. editDcdxInfoSxzzf: (resolve) => {
  566. require(['../editDcdxInfo_shuixingzhengzhifa.vue'], resolve)
  567. },//青海水行政执法
  568. editDcdxInfoWxhxpsyaq: (resolve) => {
  569. require(['../editDcdxInfo_weixianhuaxuepinanquan.vue'], resolve)
  570. },//江苏危险化学品使用安全
  571. editDcdxInfoXskcxjg: (resolve) => {
  572. require(['../editDcdxInfo_xskcxjg.vue'], resolve)
  573. },//小水库除险加固
  574. editDcdxInfoDxs: (resolve) => {
  575. require(['../editDcdxInfo_hbdxs.vue'], resolve)
  576. },//河北地下水
  577. editDcdxInfoStbczdgc: (resolve) => {
  578. require(['../editDcdxInfo_stbczdgc.vue'], resolve)
  579. },//河北地下水
  580. editDcdxInfoCbhsfy: (resolve) => {
  581. require(['../editDcdxInfo_cbhsfy.vue'], resolve)
  582. },//青海超标洪水防御
  583. editDcdxInfoShzhfy: (resolve) => {
  584. require(['../editDcdxInfo_shzhfy.vue'], resolve)
  585. },//青海山洪灾害防御
  586. editDcdxInfoShxf: (resolve) => {
  587. require(['../editDcdxInfo_shxf.vue'], resolve)
  588. },//青海水毁修复
  589. editDcdxInfoSkfhdd: (resolve) => {
  590. require(['../editDcdxInfo_skfhdd.vue'], resolve)
  591. },//青海水毁修复
  592. editDcdxInfoFjncysaq: (resolve) => {
  593. require(['../editDcdxInfo_fjncysaq.vue'], resolve)
  594. },//福建农村饮水安全
  595. editDcdxInfoXyjsxshdbjs: (resolve) => {
  596. require(['../editDcdxInfo_xyjsxshjs.vue'], resolve)
  597. },//县域节水型社会达标建设监督
  598. editDcdxInfoSlzjjdjc:(resolve) => {
  599. require(['../editDcdxInfo_slzjjdjc.vue'], resolve)
  600. },//新疆水利资金监督检查
  601. editDcdxInfoSlgcjsaqsc:(resolve) => {
  602. require(['../editDcdxInfo_slgcjsaqsc.vue'], resolve)
  603. },//青海水利工程建设安全生产
  604. editDcdxInfoSlgcjszljc:(resolve) => {
  605. require(['../editDcdxInfo_slgcjszljc.vue'], resolve)
  606. },//青海水利工程建设质量检测
  607. editDcdxInfoBzhgd:(resolve) => {
  608. require(['../editDcdxInfo_bzhgd.vue'], resolve)
  609. },//标准化工地
  610. editDcdxInfoZlglpj:(resolve) => {
  611. require(['../editDcdxInfo_zlglpj.vue'], resolve)
  612. },//质量管理评价
  613. editDcdxInfoNcysaqXjbt: resolve => {
  614. require(['../editDcdxInfo_ncysaqxjbt.vue'], resolve)
  615. }, //
  616. editDcdxInfoFjSxzzf: resolve => {
  617. require(['../editDcdxInfo_fjsxzzf.vue'], resolve)
  618. },
  619. editDcdxInfoCommon:resolve => {
  620. require(['../editDcdxInfo_common.vue'], resolve)
  621. },
  622. editDcdxPwuAWiu:resolve => {
  623. require(['../editDcdxInfo_pwuawiu.vue'], resolve)
  624. },
  625. editDcdxDrinkWaterSource:resolve => {
  626. require(['../editDcdxInfo_drinkwatersource.vue'], resolve)
  627. },
  628. editDcdxXskSd:resolve => {
  629. require(['../editDcdxInfo.vue'], resolve)
  630. },
  631. editDcdxXsdyhgl:resolve => {
  632. require(['../editDcdxInfo_xsdyhgl.vue'], resolve)
  633. }
  634. },
  635. computed: {
  636. persId() {
  637. return localStorage.getItem("userid")
  638. ? localStorage.getItem("userid")
  639. : "1098101939614724096";
  640. },
  641. orgId() {
  642. return localStorage.getItem('currentOrgId') ? localStorage.getItem("currentOrgId") : "";
  643. },
  644. organCode() {
  645. return localStorage.getItem('currentRlcode') ? localStorage.getItem('currentRlcode') : ''
  646. },
  647. },
  648. created(){
  649. this.getTypes();
  650. this.getAdDataList()
  651. },
  652. mounted() {
  653. this.initTableData();
  654. },
  655. methods: {
  656. searchBtn1(){
  657. this.getAllPersName();
  658. },
  659. handleCurrentChange1(val){
  660. this.pageNum1 = val;
  661. this.getAllPersName();
  662. },
  663. getAllPersName(){
  664. this.addSearchForm.pageNum = this.pageNum1;
  665. this.addSearchForm.pageSize = this.pageSize1;
  666. this.loading1 = true;
  667. var _self = this;
  668. request.post('/bis/insp/mtprg/sms/listByNotMonthReport',this.addSearchForm).then(res=>{
  669. if(res.success){
  670. _self.tableData1 = res.data.list;
  671. _self.total1 = res.data.total;
  672. _self.loading1 = false;
  673. }else{
  674. _self.$message.warning(res.message)
  675. }
  676. })
  677. },
  678. handleSelectionChange(val){
  679. this.multipleSelection = val;
  680. },
  681. addSubmitPer(){
  682. var _self = this;
  683. var perNames = [];
  684. if(this.multipleSelection && this.multipleSelection.length>0){
  685. this.multipleSelection.forEach((item,index) =>{
  686. perNames.push(item.persName);
  687. })
  688. }
  689. this.currowRow[this.currentCol] = perNames.join(",");
  690. this.currowRow[this.currentCol+"Data"] = this.multipleSelection;
  691. this.addDialogVisible = false;
  692. },
  693. closeAddDialog(){
  694. this.addDialogVisible = false;
  695. },
  696. DuiXiangAddSuccessHandler(obj){
  697. this.currowRow.col4 = obj.names;
  698. this.currowRow.col4Data = obj.obj;
  699. },
  700. rowClick_8(row){
  701. this.currowRow = row;
  702. this.currentCol = "col8"
  703. this.addDialogVisible = true;
  704. this.addSearchForm = {};
  705. this.getAllPersName();
  706. },
  707. rowClick_9(row){
  708. this.currowRow = row;
  709. this.currentCol = "col9"
  710. this.addDialogVisible = true;
  711. this.addSearchForm = {};
  712. this.getAllPersName();
  713. },
  714. rowClick_4(row){
  715. if(row.col1==null || row.col1.length==0){
  716. this.$message.warning("请选择检查事项");
  717. return false;
  718. }else{
  719. this.isVisible_1 = true;
  720. var val = parseInt(row.col1).toString();
  721. this.duChaType = val;
  722. this.adCodes = row.col3Data;
  723. this.currowRow = row;
  724. switch (val) {
  725. case '1':
  726. case '2':
  727. case '3':
  728. case '5':
  729. case '36':
  730. case '26':
  731. case '34': //水库除险加固
  732. case '80': //中大型水库回头看
  733. this.curEditDcdxInfo = 'editDcdxInfo'
  734. break;
  735. case '4': //水利工程建设督查
  736. this.curEditDcdxInfo = 'editDcdxInfojianshe'
  737. break;
  738. case '6': //水闸工程督查
  739. this.curEditDcdxInfo = 'editDcdxInfosz'
  740. break;
  741. case '7': //水利工程运行督查
  742. this.curEditDcdxInfo = 'editDcdxInfoyunxing'
  743. break;
  744. case '9': //特定飞检
  745. this.curEditDcdxInfo = 'editDcdxInfotdfj'
  746. break;
  747. case '10': //其他检查
  748. this.curEditDcdxInfo = 'editDcdxInfoqita'
  749. break;
  750. case '11': //淤地坝督查
  751. this.curEditDcdxInfo = 'editDcdxInfoyudiba'
  752. break;
  753. case '12': //取水口督查
  754. this.curEditDcdxInfo = 'editDcdxInfoqsk'
  755. break;
  756. case '13': //水源地督查
  757. this.curEditDcdxInfo = 'editDcdxInfosyd'
  758. break;
  759. case '14': //分水及管控督查
  760. this.curEditDcdxInfo = 'editDcdxInfoszyxjxzq'
  761. break;
  762. case '15': //节水管理与评价
  763. this.curEditDcdxInfo = 'editDcdxInfojsgl'
  764. break;
  765. case '16': //用水单位抽查
  766. this.curEditDcdxInfo = 'editDcdxInfojsdw'
  767. break;
  768. case '17': //水保项目
  769. this.curEditDcdxInfo = 'editDcdxInfosb'
  770. break;
  771. case '18':
  772. case '19': //18 河湖四乱督查 19非法采砂督查
  773. this.curEditDcdxInfo = 'editDcdxInfosl'
  774. break;
  775. case '20': //中央环保督查
  776. this.curEditDcdxInfo = 'editDcdxInfozyhbdc'
  777. break;
  778. case '22': //大中型水库督查
  779. this.curEditDcdxInfo = 'editDcdxInfoSkFj'
  780. break;
  781. case '23': //量化评分
  782. this.curEditDcdxInfo = 'editDcdxInfoQuanScore'
  783. break;
  784. case '24': //小水库标准化
  785. this.curEditDcdxInfo = 'editDcdxInfoXskbzh'
  786. break;
  787. case '25': //2020年农饮
  788. case '37': //农饮回头看
  789. this.curEditDcdxInfo = 'editDcdxInfoRynew'
  790. break;
  791. case '27': //山洪灾害防御
  792. this.curEditDcdxInfo = 'editDcdxInfoRyZj'
  793. break;
  794. case '28': //灌区最后一公里
  795. case '62': // 新疆乙级检测单位
  796. this.curEditDcdxInfo = 'editDcdxInfoYiGongLi'
  797. break;
  798. case '67': // 新疆乙级检测单位
  799. this.curEditDcdxInfo = 'editDcdxInfoZhaoTouBiao'
  800. break;
  801. case '29': //堤防险工险段
  802. this.curEditDcdxInfo = 'editDcdxInfoDiFang'
  803. break;
  804. case '30': //超标洪水防御
  805. this.curEditDcdxInfo = 'editDcdxInfoChaoBiaoHongYuAn'
  806. break;
  807. case '31': //取用水
  808. this.curEditDcdxInfo = 'editDcdxInfoQys'
  809. break;
  810. case '32': //水资源
  811. this.curEditDcdxInfo = 'editDcdxInfoSzygl'
  812. break;
  813. case '33': //节约用水
  814. this.curEditDcdxInfo = 'editDcdxInfoJieshui'
  815. break;
  816. // case '34': //水库除险加固
  817. // this.curEditDcdxInfo = 'editDcdxInfoSkcxjg'
  818. // break;
  819. case '35': //中小河流
  820. this.curEditDcdxInfo = 'editDcdxInfoZxhl'
  821. break;
  822. // case '37': //农饮回头看
  823. // this.curEditDcdxInfo = 'editDcdxInfoNyhtk'
  824. // break;
  825. case '41': //浙江人饮
  826. this.curEditDcdxInfo = 'editDcdxInfoRyZj'
  827. break;
  828. case '42': //浙江强监管
  829. this.curEditDcdxInfo = 'editDcdxInfoZjqjg'
  830. break;
  831. case '54': //福建节水载体复核
  832. this.curEditDcdxInfo = 'editDcdxInfoJsztfh'
  833. break;
  834. case '55': //福建取水许可管理复核河道外
  835. this.curEditDcdxInfo = 'editDcdxInfoQsxkglfhhdw'
  836. break;
  837. case '53': //福建水资源及节水管理
  838. this.curEditDcdxInfo = 'editDcdxInfoSzyjsgl'
  839. break;
  840. case '56': //福建水资源及节水管理县级
  841. this.curEditDcdxInfo = 'editDcdxInfoXjSzyjsgl'
  842. break;
  843. case '57': //福建取水许可管理复核水电站
  844. this.curEditDcdxInfo = 'editDcdxInfoQsxkglfhsdz'
  845. break;
  846. case '68': // 退地减水
  847. this.curEditDcdxInfo = 'editDcdxInfoTuidiJianshui'
  848. break;
  849. case '69': //福建取水许可管理复核水电站
  850. this.curEditDcdxInfo = 'editDcdxInfoAqscssjygk'
  851. break;
  852. case '70': // 地下水压采
  853. this.curEditDcdxInfo = 'editDcdxInfoShuiyacai'
  854. break;
  855. case '71': //福建取水许可管理复核水电站
  856. this.curEditDcdxInfo = 'editDcdxInfoNcysaq'
  857. break;
  858. case '72': //青海取水许可
  859. this.curEditDcdxInfo = 'editDcdxInfoQsxk'
  860. break;
  861. case '73': //小水电清理暗访督查
  862. this.curEditDcdxInfo = 'editDcdxInfoXsd'
  863. break;
  864. case '74': //消防安全及疫情防控对象督查
  865. this.curEditDcdxInfo = 'editDcdxInfoXiaofangYiqing'
  866. break;
  867. case '75': //水行政部门安全生产巡查
  868. this.curEditDcdxInfo = 'editDcdxInfoShuiXingZhenBuMen'
  869. break;
  870. case '76': //河湖长制
  871. this.curEditDcdxInfo = 'editDcdxInfoHehuzhangzhi'
  872. break;
  873. case '77': //河湖管理
  874. this.curEditDcdxInfo = 'editDcdxInfoHehuguanli'
  875. break;
  876. case '78': //水利项目安全生产巡检
  877. this.curEditDcdxInfo = 'editDcdxInfoSlxmaqscxj'
  878. break;
  879. case '79': //广东农村饮水安全暗访
  880. this.curEditDcdxInfo = 'editDcdxInfoNcysaqAf'
  881. break;
  882. case '81': //病险闸站桥梁安全
  883. this.curEditDcdxInfo = 'editDcdxInfoBxzzqlaq'
  884. break;
  885. case '82': //青海水行政执法
  886. this.curEditDcdxInfo = 'editDcdxInfoSxzzf'
  887. break;
  888. case '83': //江苏危险化学品使用安全督查
  889. this.curEditDcdxInfo = 'editDcdxInfoWxhxpsyaq'
  890. break;
  891. case '84': //小水库除险加固
  892. this.curEditDcdxInfo = 'editDcdxInfoXskcxjg'
  893. break;
  894. case '89': //河北地下水
  895. this.curEditDcdxInfo = 'editDcdxInfoDxs'
  896. break;
  897. case '91': //青海水土保持重点工程
  898. this.curEditDcdxInfo = 'editDcdxInfoStbczdgc'
  899. break;
  900. case '93': //青海超标洪水防御
  901. this.curEditDcdxInfo = 'editDcdxInfoCbhsfy'
  902. break;
  903. case '94': //青海山洪灾害防御
  904. this.curEditDcdxInfo = 'editDcdxInfoShzhfy'
  905. break;
  906. case '95': //水毁修复
  907. this.curEditDcdxInfo = 'editDcdxInfoShxf'
  908. break;
  909. case '96': //水库防洪调度
  910. this.curEditDcdxInfo = 'editDcdxInfoSkfhdd'
  911. break;
  912. case '97': //福建2021农饮
  913. this.curEditDcdxInfo = 'editDcdxInfoFjncysaq'
  914. break;
  915. case '98': //新疆兵团水利资金监督检查
  916. this.curEditDcdxInfo = 'editDcdxInfoSlzjjdjc'
  917. break;
  918. case '99': //青海水利工程建设安全生产
  919. this.curEditDcdxInfo = 'editDcdxInfoSlgcjsaqsc'
  920. break;
  921. case '100': //青海水利工程建设质量检测
  922. this.curEditDcdxInfo = 'editDcdxInfoSlgcjszljc'
  923. break;
  924. case '101': //县域节水型社会达标建设监督(青海)
  925. this.curEditDcdxInfo = 'editDcdxInfoXyjsxshdbjs'
  926. break;
  927. case '104': //标准化工具(福建)
  928. this.curEditDcdxInfo = 'editDcdxInfoBzhgd'
  929. break;
  930. case '105': //质量管理评价(福建)
  931. this.curEditDcdxInfo = 'editDcdxInfoZlglpj'
  932. break;
  933. case '106'://小水库复查(云南)
  934. this.curEditDcdxInfo = 'editDcdxInfo'
  935. break;
  936. case '108'://新疆兵团农村饮水
  937. this.curEditDcdxInfo = 'editDcdxInfoNcysaqXjbt'
  938. break;
  939. case '110'://福建县水行政执法
  940. this.curEditDcdxInfo = 'editDcdxInfoFjSxzzf'
  941. break;
  942. case '111': //通用督查(海南)
  943. this.curEditDcdxInfo = 'editDcdxInfoCommon'
  944. break;
  945. case '112': //计划用水户及取水单位(江苏)
  946. this.curEditDcdxInfo = 'editDcdxPwuAWiu'
  947. break;
  948. case '113': //饮用水水源地管理督查(江苏)
  949. this.curEditDcdxInfo = 'editDcdxDrinkWaterSource'
  950. break;
  951. case '115': //小水库(山东)
  952. this.curEditDcdxInfo = 'editDcdxXskSd'
  953. break;
  954. case '116': //小水电隐患管理(福建)
  955. this.curEditDcdxInfo = 'editDcdxXsdyhgl'
  956. break;
  957. // case '101': //江苏水资源和节水管理专项
  958. // this.curEditDcdxInfo = 'editDcdxInfoWrsAndWswmSpe'
  959. // break;
  960. default:
  961. this.curEditDcdxInfo = 'editDcdxInfoyudiba'
  962. break;
  963. }
  964. this.$nextTick(()=>{
  965. setTimeout(() => {
  966. this.$refs['editDcdxInfoRef'].showDialog(this.duChaType);
  967. }, 500)
  968. })
  969. }
  970. },
  971. finishData(row){
  972. row.edit = false;
  973. },
  974. getAdDataList() {
  975. var _self = this;
  976. _self.treeLoading = true;
  977. getAddTree(this.organCode,this.level).then((res)=>{
  978. if(res.data){
  979. _self.treeData = res.data.children;
  980. _self.treeLoading = false;
  981. }
  982. })
  983. },
  984. checkchange(addvcd){
  985. this.searchForm.chkAdCode = addvcd;
  986. },
  987. checkchangeRow(addvcd){
  988. this.searchForm.chkAdCode = addvcd;
  989. },
  990. async changeData(row,colum) {
  991. console.log(row)
  992. },
  993. celledit(row, column,cell,event){
  994. if(column.property){
  995. this.$nextTick(()=>{
  996. if(!row.id){
  997. row.edit = true;
  998. }
  999. })
  1000. }
  1001. },
  1002. getTypes() {
  1003. var _self = this;
  1004. request.get(`/bis/insp/rel/org/insp/type/getInspTypeByOrgId/${this.orgId}`)
  1005. .then(res => {
  1006. if (res.success) {
  1007. _self.dcTypeList = res.data;
  1008. }
  1009. })
  1010. },
  1011. closeDetailDialog(){
  1012. this.detailDialogVisible = false;
  1013. },
  1014. lookOver(obj){
  1015. this.detailObj = obj;
  1016. this.detailObj.chkMnth = this.detailObj.chkMnth?this.formatDate(this.detailObj,{property:"chkMnth"},null,null):"";
  1017. this.detailDialogVisible = true;
  1018. },
  1019. closeDialog(){
  1020. this.$emit('closeDialogMonth')
  1021. },
  1022. formatDate(row, column, cellValue, index){
  1023. var dateF = row[column.property];
  1024. if(dateF){
  1025. var date = new Date(dateF);
  1026. return date.getFullYear()+"-"+((date.getMonth()+1)>9?(date.getMonth()+1):'0'+(date.getMonth()+1))
  1027. }
  1028. return "";
  1029. },
  1030. chkFormFormat(row, column, cellValue, index){
  1031. return row.chkForm=="1"?"暗访":row.chkForm=="2"?"明察":row.chkForm=="3"?"书面":row.chkForm=="4"?"四不两直":"";
  1032. },
  1033. async exportExcel() {
  1034. this.searchForm.chkYearId = this.rowData.id;
  1035. this.searchForm.persId = this.persId;
  1036. if(this.dateRange&&this.dateRange.length>1&&this.dateRange[0]!=''&&this.dateRange[1]!=''){
  1037. this.searchForm.sttm = this.dateRange[0];
  1038. this.searchForm.entm = this.dateRange[1];
  1039. }
  1040. let url = "/pdcApi//bis/insp/plan/year/prg/export";
  1041. let type = "POST";
  1042. let exportName = "监督进度月报.xls"
  1043. let result = await exportModel(type, url, exportName,JSON.stringify(this.searchForm));
  1044. },
  1045. deleteData(id,index){
  1046. if(!id){
  1047. this.tableData.splice(index,1);
  1048. return;
  1049. }
  1050. var _self = this;
  1051. this.$confirm('确定删除该条数据吗, 是否继续?', '提示', {
  1052. confirmButtonText: '确定',
  1053. cancelButtonText: '取消',
  1054. type: 'warning'
  1055. }).then(() => {
  1056. request.post('/bis/insp/plan/year/prg/delete/'+id).then(res=>{
  1057. if(res.success){
  1058. _self.initTableData();
  1059. }else{
  1060. _self.$message.warning(res.message);
  1061. }
  1062. })
  1063. }).catch(() => {
  1064. this.$message({
  1065. type: 'info',
  1066. message: '已取消删除'
  1067. });
  1068. });
  1069. },
  1070. addSubmit(){
  1071. var _self = this;
  1072. request.post('/bis/insp/plan/year/prg/',this.addForm).then(res=>{
  1073. if(res.success){
  1074. _self.$message.success("保存成功");
  1075. _self.addDialogVisible = false;
  1076. _self.addForm = {};
  1077. _self.initTableData();
  1078. }else{
  1079. _self.$message.warning(res.message);
  1080. }
  1081. })
  1082. },
  1083. async initTableData() {
  1084. this.searchForm.chkYearId = this.rowData.id;
  1085. this.searchForm.pageNum = this.pageNum;
  1086. this.searchForm.pageSize = this.pageSize;
  1087. this.searchForm.persId = this.persId;
  1088. if (this.dateRange && this.dateRange.length > 1 && this.dateRange[0] != '' && this.dateRange[1] != '') {
  1089. this.searchForm.sttm = this.dateRange[0];
  1090. this.searchForm.entm = this.dateRange[1];
  1091. }
  1092. // this.loading = true;
  1093. // await request.post(`/bis/insp/plan/year/prg/findPageList`, this.searchForm).then(res => {
  1094. // if (res.success) {
  1095. var dataList = [{id:"", col1:[], col2:[], col3:"", col4:"", col5:"", col6:"", col7:"", col8:"", col9:"", col10:"", edit:false}]
  1096. dataList.forEach((item, index) => {
  1097. item.edit = false;
  1098. });
  1099. this.tableData = dataList;
  1100. // var dataList = res.data.list;
  1101. // dataList.forEach((item,index)=>{
  1102. // if(item.sttm && item.entm){
  1103. // item.chkTime = [item.sttm,item.entm];
  1104. // }else{
  1105. // item.chkTime = [];
  1106. // }
  1107. //
  1108. // for(let i in item) {
  1109. // item[i] = {
  1110. // value: item[i],
  1111. // edit: false,
  1112. // ref:i+index
  1113. // }
  1114. // }
  1115. // });
  1116. // _self.total = res.data.total;
  1117. // _self.loading = false;
  1118. // _self.$nextTick(()=>{
  1119. // _self.tableData = dataList;
  1120. // _self.$refs.table.doLayout();
  1121. // })
  1122. // } else {
  1123. // this.$message.warning(res.message)
  1124. // }
  1125. // })
  1126. },
  1127. handleCurrentChange(val){
  1128. this.pageNum = val;
  1129. this.initTableData();
  1130. },
  1131. searchBtn(){
  1132. this.initTableData();
  1133. },
  1134. addBtn(){
  1135. var dataList = this.tableData;
  1136. this.tableData = [];
  1137. var newArr = [{id:"", col1:[], col2:[], col3:"", col4:"", col5:"", col6:"", col7:"", col8:"", col9:"", col10:"", edit:false}];
  1138. this.tableData = newArr.concat(dataList);
  1139. }
  1140. }
  1141. }
  1142. </script>
  1143. <style lang="scss" scoped>
  1144. .filter-tree{
  1145. height:auto;
  1146. overflow-y:auto;
  1147. max-height: 200px;
  1148. padding: 0;
  1149. background: white;
  1150. }
  1151. .monthReport >>>.el-dialog{
  1152. margin-top: 10vh !important;
  1153. }
  1154. table{
  1155. width: 100%;
  1156. height:100%;
  1157. border-collapse: collapse;
  1158. margin-bottom: 30px;
  1159. }
  1160. table tr td{
  1161. border:1px solid #cecece;
  1162. height:35px;
  1163. text-indent: 15px;
  1164. padding-right: 15px;
  1165. }
  1166. table tr td:first-child{
  1167. background: #f2f1f1;
  1168. width: 260px;
  1169. text-align: right;
  1170. }
  1171. .monthReport{
  1172. width: 100%;
  1173. height:100%;
  1174. margin: 0;
  1175. padding: 10px;
  1176. }
  1177. .box-card{
  1178. width: calc(100% - 60px);
  1179. height:calc(100% - 20px);
  1180. margin: 0 auto;
  1181. margin-top: 10px;
  1182. }
  1183. .title_monthReport{
  1184. text-align: center;
  1185. padding: 10px;
  1186. }
  1187. .note_monthReport{
  1188. width: 100%;
  1189. background-color: rgba(255, 251, 230, 1);
  1190. box-sizing: border-box;
  1191. border-width: 1px;
  1192. border-style: solid;
  1193. border-color: rgba(255, 229, 143, 1);
  1194. color: rgba(0, 0, 0, 0.447058823529412);
  1195. font-size: 14px;
  1196. padding: 10px;
  1197. }
  1198. .note_monthReport p:first-child{
  1199. font-size: 16px !important;
  1200. }
  1201. .monthReport{
  1202. .demo-form-inline{
  1203. .el-form-item{
  1204. margin-bottom: 5px;
  1205. margin-top: 8px;
  1206. }
  1207. }
  1208. }
  1209. </style>