0f787dbfd811fd604dfb31513e7a417d2d85205d.svn-base 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. <template>
  2. <a-card :bordered="false">
  3. <!-- 查询区域 -->
  4. <div class="table-page-search-wrapper">
  5. <a-form layout="inline" @keyup.enter.native="searchQuery">
  6. <a-row :gutter="24">
  7. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  8. <a-form-item label="项目检查名称">
  9. <a-input placeholder="请输入检查名称" v-model="queryParam.jcmc"></a-input>
  10. </a-form-item>
  11. </a-col>
  12. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  13. <a-form-item label="数据来源">
  14. <j-dict-select-tag placeholder="请选择数据来源" v-model="queryParam.sjly" dictCode="laiyuan"/>
  15. </a-form-item>
  16. </a-col>
  17. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  18. <a-form-item label="审批情况">
  19. <j-dict-select-tag placeholder="请选择审批情况" v-model="queryParam.spqk" dictCode="spzt"/>
  20. </a-form-item>
  21. </a-col>
  22. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  23. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  24. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  25. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
  26. <!-- <a @click="handleToggleSearch" style="margin-left: 8px">-->
  27. <!-- {{ toggleSearchStatus ? '收起' : '展开' }}-->
  28. <!-- <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>-->
  29. <!-- </a>-->
  30. </span>
  31. </a-col>
  32. </a-row>
  33. </a-form>
  34. </div>
  35. <!-- 查询区域-END -->
  36. <!-- 操作按钮区域 -->
  37. <div class="table-operator">
  38. <a-button @click="handleAdd" v-has="'xcjgjl:add'" type="primary" icon="plus">新增</a-button>
  39. <a-button v-has="'xcjgjl:dc'" type="primary" icon="download" @click="handleExportXls('现场监管记录')">导出</a-button>
  40. <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
  41. <a-button v-has="'xcjgjl:dr'" type="primary" icon="import">导入</a-button>
  42. </a-upload>
  43. <!-- 高级查询区域 -->
  44. <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
  45. <a-dropdown v-if="selectedRowKeys.length > 0">
  46. <a-menu slot="overlay">
  47. <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
  48. </a-menu>
  49. <a-button style="margin-left: 8px" v-has="'xcjgjl:pldelete'"> 批量操作 <a-icon type="down" /></a-button>
  50. </a-dropdown>
  51. </div>
  52. <!-- table区域-begin -->
  53. <div>
  54. <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
  55. <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
  56. <a style="margin-left: 24px" @click="onClearSelected">清空</a>
  57. </div>
  58. <a-table
  59. ref="table"
  60. size="middle"
  61. :scroll="{x:true}"
  62. bordered
  63. rowKey="id"
  64. :columns="columns"
  65. :dataSource="dataSource"
  66. :pagination="ipagination"
  67. :loading="loading"
  68. :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
  69. class="j-table-force-nowrap"
  70. @change="handleTableChange">
  71. <template slot="jsxmmc" slot-scope="text,record">
  72. <a @click="handleDetail(record)">{{ text }}</a>
  73. </template>
  74. <template slot="htmlSlot" slot-scope="text">
  75. <div v-html="text"></div>
  76. </template>
  77. <template slot="imgSlot" slot-scope="text">
  78. <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
  79. <img v-else :src="getImgView(text)" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
  80. </template>
  81. <template slot="fileSlot" slot-scope="text">
  82. <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
  83. <a-button
  84. v-else
  85. :ghost="true"
  86. type="primary"
  87. icon="download"
  88. size="small"
  89. @click="downloadFile(text)">
  90. 下载
  91. </a-button>
  92. </template>
  93. <span slot="action" slot-scope="text, record">
  94. <a-space>
  95. <a-button @click='handleEdit(record)' v-has="'xcjgjl:bj'" size='small' type='primary'>编辑</a-button>
  96. <a-popconfirm title='确定删除吗?' @confirm='() => handleDelete(record.id)'>
  97. <a-button size='small' v-has="'xcjgjl:delete'" type='danger'>删除</a-button>
  98. </a-popconfirm>
  99. </a-space>
  100. <!-- <a-divider type="vertical" />-->
  101. <!-- <a-dropdown>-->
  102. <!-- <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>-->
  103. <!-- <a-menu slot="overlay">-->
  104. <!-- <a-menu-item>-->
  105. <!-- <a @click="handleDetail(record)">详情</a>-->
  106. <!-- </a-menu-item>-->
  107. <!-- <a-menu-item>-->
  108. <!-- <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">-->
  109. <!-- <a>删除</a>-->
  110. <!-- </a-popconfirm>-->
  111. <!-- </a-menu-item>-->
  112. <!-- </a-menu>-->
  113. <!-- </a-dropdown>-->
  114. </span>
  115. </a-table>
  116. </div>
  117. <rm-xcjgjl-modal ref="modalForm" @ok="modalFormOk"></rm-xcjgjl-modal>
  118. </a-card>
  119. </template>
  120. <script>
  121. import '@/assets/less/TableExpand.less'
  122. import { mixinDevice } from '@/utils/mixin'
  123. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  124. import RmXcjgjlModal from './modules/RmXcjgjlModal'
  125. import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
  126. export default {
  127. name: 'RmXcjgjlList',
  128. mixins:[JeecgListMixin, mixinDevice],
  129. components: {
  130. RmXcjgjlModal
  131. },
  132. data () {
  133. return {
  134. description: '现场监管记录管理页面',
  135. // 表头
  136. columns: [
  137. {
  138. title: '序号',
  139. dataIndex: '',
  140. key:'rowIndex',
  141. width:60,
  142. align:"center",
  143. customRender:function (t,r,index) {
  144. return parseInt(index)+1;
  145. }
  146. },
  147. {
  148. title:'项目名称',
  149. align:"center",
  150. dataIndex: 'jsxmmc',
  151. scopedSlots: { customRender: 'jsxmmc'}
  152. },
  153. {
  154. title:'工程名称',
  155. align:"center",
  156. dataIndex: 'gcmc',
  157. scopedSlots: { customRender: 'gcmc'}
  158. },
  159. {
  160. title:'施工单位',
  161. align:"center",
  162. dataIndex: 'sgdw'
  163. },
  164. {
  165. title:'监管单位',
  166. align:"center",
  167. dataIndex: 'jgdw'
  168. },
  169. // {
  170. // title:'开工日期',
  171. // align:"center",
  172. // dataIndex: 'kgrq',
  173. // customRender:function (text) {
  174. // return !text?"":(text.length>10?text.substr(0,10):text)
  175. // }
  176. // },
  177. // {
  178. // title:'竣工日期',
  179. // align:"center",
  180. // dataIndex: 'jgrq',
  181. // customRender:function (text) {
  182. // return !text?"":(text.length>10?text.substr(0,10):text)
  183. // }
  184. // },
  185. {
  186. title:'填报人',
  187. align:"center",
  188. dataIndex: 'tbr'
  189. },
  190. {
  191. title:'检查时间',
  192. align:"center",
  193. dataIndex: 'createTime'
  194. },
  195. // {
  196. // title:'建设项目是否已竣工验收',
  197. // align:"center",
  198. // dataIndex: 'jsxmsfyjgys_dictText'
  199. // },
  200. {
  201. title: '操作',
  202. dataIndex: 'action',
  203. align:"center",
  204. fixed:"right",
  205. width:147,
  206. scopedSlots: { customRender: 'action' }
  207. }
  208. ],
  209. url: {
  210. list: "/hzz.shjsgc.xcjgjl/rmXcjgjl/list",
  211. delete: "/hzz.shjsgc.xcjgjl/rmXcjgjl/delete",
  212. deleteBatch: "/hzz.shjsgc.xcjgjl/rmXcjgjl/deleteBatch",
  213. exportXlsUrl: "/hzz.shjsgc.xcjgjl/rmXcjgjl/exportXls",
  214. importExcelUrl: "hzz.shjsgc.xcjgjl/rmXcjgjl/importExcel",
  215. },
  216. dictOptions:{},
  217. superFieldList:[],
  218. }
  219. },
  220. created() {
  221. this.getSuperFieldList();
  222. },
  223. computed: {
  224. importExcelUrl: function(){
  225. return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  226. },
  227. },
  228. methods: {
  229. initDictConfig(){
  230. },
  231. handleDetail: function (record) {
  232. this.$refs.modalForm.edit(record);
  233. this.$refs.modalForm.title = "详情";
  234. this.$refs.modalForm.disableSubmit = true;
  235. },
  236. getSuperFieldList(){
  237. let fieldList=[];
  238. fieldList.push({type:'string',value:'jsxmmc',text:'建设项目名称',popup:{code:'xmlist',field:'xmmc',orgFields:'xmmc,xmlx',destFields:'xmmc,xmlx'}})
  239. fieldList.push({type:'string',value:'jsxmid',text:'建设项目ID',dictCode:''})
  240. fieldList.push({type:'string',value:'yzdwmc',text:'业主单位名称',dictCode:''})
  241. fieldList.push({type:'string',value:'jsxmszd',text:'建设项目所在地',dictCode:''})
  242. fieldList.push({type:'string',value:'jsxmszhd',text:'建设项目所在河道',dictCode:''})
  243. fieldList.push({type:'date',value:'kgrq',text:'开工日期'})
  244. fieldList.push({type:'date',value:'jgrq',text:'竣工日期'})
  245. fieldList.push({type:'string',value:'jsqk',text:'建设情况',dictCode:'gcjsqk'})
  246. fieldList.push({type:'string',value:'sfxybz',text:'是否需要编制',dictCode:'yn'})
  247. fieldList.push({type:'string',value:'sfbz',text:'是否编制',dictCode:'yn'})
  248. fieldList.push({type:'string',value:'sfps',text:'是否评审',dictCode:'yn'})
  249. fieldList.push({type:'string',value:'spjg',text:'审批机关',dictCode:''})
  250. fieldList.push({type:'string',value:'spwh',text:'审批文号',dictCode:''})
  251. fieldList.push({type:'string',value:'sfsh',text:'是否审核',dictCode:'yn'})
  252. fieldList.push({type:'string',value:'sgshjgwjsj',text:'施工审核机关、文件、时间',dictCode:''})
  253. fieldList.push({type:'string',value:'sgdw',text:'施工单位',dictCode:''})
  254. fieldList.push({type:'string',value:'jgdw',text:'监管单位',dictCode:''})
  255. fieldList.push({type:'string',value:'sgxcsffhyq',text:'施工现场是否符合要求',dictCode:'yn'})
  256. fieldList.push({type:'string',value:'sgjssfhfhdyz',text:'施工结束是否恢复河道原状',dictCode:'yn'})
  257. fieldList.push({type:'string',value:'sfkxsg',text:'是否跨汛施工',dictCode:'yn'})
  258. fieldList.push({type:'string',value:'dxfasfbz',text:'度汛方案是否编制',dictCode:'yn'})
  259. fieldList.push({type:'string',value:'zrzsfls',text:'责任制是否落实',dictCode:'yn'})
  260. fieldList.push({type:'string',value:'rywzsfls',text:'人员、物资是否落实',dictCode:'yn'})
  261. fieldList.push({type:'string',value:'sfyq',text:'是否要求',dictCode:'yn'})
  262. fieldList.push({type:'string',value:'ayqwcqk',text:'按要求完成情况',dictCode:'ayqwcqk'})
  263. fieldList.push({type:'string',value:'sfys',text:'是否验收',dictCode:'yn'})
  264. fieldList.push({type:'string',value:'jsxmsfyjgys',text:'建设项目是否已竣工验收',dictCode:'yn'})
  265. fieldList.push({type:'string',value:'sfcjjsxmjgys',text:'是否参加建设项目竣工验收',dictCode:'yn'})
  266. fieldList.push({type:'string',value:'ygzlsfbb',text:'有关资料是否报备',dictCode:'yn'})
  267. fieldList.push({type:'Text',value:'czwtjclqk',text:'存在问题及处理情况',dictCode:''})
  268. fieldList.push({type:'string',value:'xgtj',text:'相关图件',dictCode:''})
  269. fieldList.push({type:'string',value:'wbfa',text:'视频上传',dictCode:''})
  270. this.superFieldList = fieldList
  271. }
  272. }
  273. }
  274. </script>
  275. <style scoped>
  276. @import '~@assets/less/common.less';
  277. </style>