QcSsgqzysytdqkList.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  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="5" :lg="7" :md="8" :sm="24">
  8. <a-form-item label="地块名称">
  9. <a-input placeholder="请输入地块名称" v-model="queryParam.dk"></a-input>
  10. </a-form-item>
  11. </a-col>
  12. <a-col v-has="'Query:xzqh'" :xl="5" :lg="7" :md="8" :sm="24">
  13. <a-form-item label="行政区划">
  14. <j-area-linkage type="cascader" v-model="queryParam.xzqh" placeholder="请输入省市区"/>
  15. </a-form-item>
  16. </a-col>
  17. <a-col :xl="5" :lg="7" :md="8" :sm="24">
  18. <a-form-item label="文件编号">
  19. <a-input placeholder="请输入文件编号" v-model="queryParam.wjbh"></a-input>
  20. </a-form-item>
  21. </a-col>
  22. <a-col :xl="5" :lg="7" :md="8" :sm="24">
  23. <a-form-item label="土地使用现状">
  24. <j-dict-select-tag type='list' v-model='queryParam.tdsyxz' dictCode='tdsyxz' placeholder='请选择土地使用现状' />
  25. </a-form-item>
  26. </a-col>
  27. <template v-if="toggleSearchStatus">
  28. <a-col :xl="5" :lg="7" :md="8" :sm="24">
  29. <a-form-item label="土地使用权人">
  30. <a-input placeholder="请输入土地使用权人" v-model="queryParam.tdsyqr"></a-input>
  31. </a-form-item>
  32. </a-col>
  33. <a-col :xl="4" :lg="7" :md="8" :sm="24">
  34. <a-form-item label="是否上报">
  35. <j-dict-select-tag placeholder="请选择是否上报" v-model="queryParam.sfsb" dictCode="xxsbzt"/>
  36. </a-form-item>
  37. </a-col>
  38. </template>
  39. <a-col :xl="4" :lg="7" :md="8" :sm="24">
  40. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  41. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  42. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
  43. <a @click="handleToggleSearch" style="margin-left: 8px">
  44. {{ toggleSearchStatus ? '收起' : '展开' }}
  45. <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
  46. </a>
  47. </span>
  48. </a-col>
  49. </a-row>
  50. </a-form>
  51. </div>
  52. <!-- 查询区域-END -->
  53. <!-- 操作按钮区域 -->
  54. <div class="table-operator">
  55. <a-button v-has="'conts:add'"@click="handleAdd2" type="primary" icon="plus">填报信息</a-button>
  56. <a-button type="primary" icon="download" @click="handleExportXls('省属国企占有使用土地情况调查')">导出</a-button>
  57. <a-button v-has="'conts:select'" type="primary" icon="download" @click="selectBybh">查询</a-button>
  58. <!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
  59. <a-button type="primary" icon="import">导入</a-button>
  60. </a-upload>
  61. &lt;!&ndash; 高级查询区域 &ndash;&gt;
  62. <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
  63. <a-dropdown v-if="selectedRowKeys.length > 0">
  64. <a-menu slot="overlay">
  65. <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
  66. </a-menu>
  67. <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
  68. </a-dropdown>-->
  69. </div>
  70. <!-- table区域-begin -->
  71. <div>
  72. <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
  73. <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
  74. <a style="margin-left: 24px" @click="onClearSelected">清空</a>
  75. </div>
  76. <a-table
  77. ref="table"
  78. size="middle"
  79. :scroll="{x:true}"
  80. bordered
  81. rowKey="id"
  82. :columns="columns"
  83. :dataSource="dataSource"
  84. :pagination="ipagination"
  85. :loading="loading"
  86. :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
  87. class="j-table-force-nowrap"
  88. @change="handleTableChange">
  89. <template slot="htmlSlot" slot-scope="text">
  90. <div v-html="text"></div>
  91. </template>
  92. <template slot="imgSlot" slot-scope="text,record">
  93. <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
  94. <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
  95. </template>
  96. <template slot="fileSlot" slot-scope="text">
  97. <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
  98. <a-button
  99. v-else
  100. :ghost="true"
  101. type="primary"
  102. icon="download"
  103. size="small"
  104. @click="downloadFile(text)">
  105. 下载
  106. </a-button>
  107. </template>
  108. <span slot="action" slot-scope="text, record">
  109. <a-space>
  110. <!-- <a-button @click="handleSpace(record)" type='primary'>空间信息</a-button>-->
  111. <a-button v-has="'conts:bj'" v-if="record.sfsb===0" @click="handleEdit(record)">编辑</a-button>
  112. <a-button @click="handleDetail(record)" type='primary'>查看</a-button>
  113. <a-button v-if="record.sfsb===3" @click="handleEdit1(record)" type='primary'>变更</a-button>
  114. <a-popconfirm title="上报后将不可修改,是否确认上报?" @confirm="() => handleSB(record.id)">
  115. <a-button v-has="'conts:sb'" v-if="record.sfsb===0" >上报</a-button>
  116. </a-popconfirm>
  117. <a-popconfirm title="是否撤回?" @confirm="() => handleCH(record.id)">
  118. <a-button v-has="'conts:ch'" v-if="record.sfsb===1" >撤回</a-button>
  119. </a-popconfirm>
  120. <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
  121. <a-button v-has="'conts:sc'" v-if="record.sfsb===0" type='danger'>删除</a-button>
  122. </a-popconfirm>
  123. </a-space>
  124. </span>
  125. </a-table>
  126. </div>
  127. <qc-ssgqzysytdqk-modal ref="modalForm" @ok="modalFormOk"></qc-ssgqzysytdqk-modal>
  128. <qc-ssgqzysytdqk-space-modal ref="modalForm1" ></qc-ssgqzysytdqk-space-modal>
  129. <qc-ssgqzysytdqk-modal3 ref="modalForm1"></qc-ssgqzysytdqk-modal3>
  130. </a-card>
  131. </template>
  132. <script>
  133. import '@/assets/less/TableExpand.less'
  134. import { mixinDevice } from '@/utils/mixin'
  135. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  136. import QcSsgqzysytdqkModal from './modules/QcSsgqzysytdqkModal'
  137. import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
  138. import { getAction } from '../../api/manage'
  139. import { loadCategoryData } from '@/api/api'
  140. import store from '@/store'
  141. import QcSsgqzysytdqkModal3 from "@views/qcsb/modules/QcSsgqzysytdqkModal3";
  142. export default {
  143. name: 'QcSsgqzysytdqkList',
  144. mixins:[JeecgListMixin, mixinDevice],
  145. components: {
  146. QcSsgqzysytdqkModal,
  147. QcSsgqzysytdqkModal3,
  148. },
  149. data () {
  150. return {
  151. dlr:false,
  152. description: '省属国企占有使用土地情况调查管理页面',
  153. // 表头
  154. columns: [
  155. {
  156. title: '#',
  157. dataIndex: '',
  158. key:'rowIndex',
  159. width:60,
  160. align:"center",
  161. customRender:function (t,r,index) {
  162. return parseInt(index)+1;
  163. }
  164. },
  165. {
  166. title:'用地单位名称',
  167. align:"center",
  168. dataIndex: 'sysOrgCode_dictText'
  169. },
  170. {
  171. title:'地块',
  172. align:"center",
  173. dataIndex: 'dk'
  174. },
  175. {
  176. title:'文件类型',
  177. align:"center",
  178. dataIndex: 'wjlx_dictText'
  179. },
  180. {
  181. title:'证书/合同/文件编号',
  182. align:"center",
  183. dataIndex: 'wjbh'
  184. },
  185. {
  186. title:'土地使用权人',
  187. align:"center",
  188. dataIndex: 'tdsyqr'
  189. },
  190. {
  191. title:'使用权使用方式',
  192. align:"center",
  193. dataIndex: 'syqsyfs_dictText'
  194. },
  195. {
  196. title:'实际用途',
  197. align:"center",
  198. dataIndex: 'sjyt',
  199. customRender:
  200. (text) => (text ? filterMultiDictText(this.dictOptions['sjyt'], text) : '')
  201. },
  202. {
  203. title:'是否上报',
  204. align:"center",
  205. dataIndex: 'sfsb_dictText'
  206. },
  207. {
  208. title: '操作',
  209. dataIndex: 'action',
  210. align:"center",
  211. fixed:"right",
  212. width:147,
  213. scopedSlots: { customRender: 'action' }
  214. }
  215. ],
  216. url: {
  217. list: "/qcsb/qcSsgqzysytdqk/list",
  218. delete: "/qcsb/qcSsgqzysytdqk/delete",
  219. deleteBatch: "/qcsb/qcSsgqzysytdqk/deleteBatch",
  220. exportXlsUrl: "/qcsb/qcSsgqzysytdqk/exportXls",
  221. importExcelUrl: "qcsb/qcSsgqzysytdqk/importExcel",
  222. sfsb:"/qcsb/qcSsgqzysytdqk/sfsb",
  223. sfch:"/qcsb/qcSsgqzysytdqk/sfch"
  224. },
  225. dictOptions:{},
  226. superFieldList:[],
  227. }
  228. },
  229. created() {
  230. this.getSuperFieldList();
  231. },
  232. mounted() {
  233. this.show()
  234. },
  235. computed: {
  236. importExcelUrl: function(){
  237. return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  238. },
  239. },
  240. methods: {
  241. selectBybh(){
  242. getAction("/qcsb/qcSsgqzysytdqk/wjcl").then(res => {
  243. if (res.success) {
  244. this.$message.success('成功');
  245. }
  246. else{
  247. this.$message.error("失败");
  248. }
  249. })
  250. },
  251. show(){
  252. getAction("/qcsb.qyxx/qcQyxx/dlr").then(res => {
  253. if (res.success) {
  254. if(res.result=='gzw'){
  255. this.dl=true
  256. }
  257. }
  258. })
  259. }
  260. ,
  261. handleSB(id){
  262. getAction(this.url.sfsb,{id:id}).then(res => {
  263. if (res.success) {
  264. this.$message.success('上报成功');
  265. this.loadData();
  266. }
  267. })
  268. },
  269. handleSpace(record){
  270. this.$refs.modalForm1.edit(record);
  271. },
  272. handleCH(id){
  273. getAction(this.url.sfch,{id:id}).then(res => {
  274. if (res.success) {
  275. this.$message.success('撤回成功');
  276. this.loadData();
  277. }
  278. })
  279. },
  280. initDictConfig(){
  281. loadCategoryData({code:'A04'}).then((res) => {
  282. if (res.success) {
  283. console.log(res.result)
  284. this.$set(this.dictOptions, 'sjyt', res.result)
  285. }
  286. })
  287. },
  288. getSuperFieldList(){
  289. let fieldList=[];
  290. fieldList.push({type:'string',value:'dk',text:'地块',dictCode:''})
  291. fieldList.push({type:'string',value:'wjlx',text:'文件类型',dictCode:'wjlx'})
  292. fieldList.push({type:'string',value:'wjbh',text:'证书/合同/文件编号',dictCode:''})
  293. fieldList.push({type:'string',value:'tdsyqr',text:'土地使用权人',dictCode:''})
  294. fieldList.push({type:'double',value:'sjzytdmj',text:'实际占用土地面积',dictCode:''})
  295. fieldList.push({type:'double',value:'qzpzsymj',text:'其中批准使用面积',dictCode:''})
  296. fieldList.push({type:'double',value:'sjsyjzmj',text:'实际使用建筑面积',dictCode:''})
  297. fieldList.push({type:'double',value:'qzpzsymj2',text:'其中批准使用面积',dictCode:''})
  298. fieldList.push({type:'double',value:'sjrjl',text:'容积率',dictCode:''})
  299. fieldList.push({type:'string',value:'syqsyfs',text:'使用权使用方式',dictCode:'syqsyfs'})
  300. fieldList.push({type:'string',value:'zlwz',text:'坐落位置',dictCode:''})
  301. fieldList.push({type:'string',value:'sjyt',text:'实际用途',dictCode:'tdyt'})
  302. fieldList.push({type:'date',value:'qsqssj',text:'权属起始时间'})
  303. fieldList.push({type:'date',value:'qsdqsj',text:'权属到期时间'})
  304. fieldList.push({type:'string',value:'tdsyxz',text:'土地使用现状',dictCode:'tdsyxz'})
  305. fieldList.push({type:'list_multi',value:'dbdycfqk',text:'担保、抵押、查封情况',dictTable:"", dictText:'', dictCode:'dbdycfqk'})
  306. fieldList.push({type:'string',value:'bz',text:'备注',dictCode:''})
  307. fieldList.push({type:'string',value:'xgwj',text:'附件材料',dictCode:''})
  308. fieldList.push({type:'int',value:'sfsb',text:'是否上报',dictCode:'xxsbzt'})
  309. this.superFieldList = fieldList
  310. }
  311. }
  312. }
  313. </script>
  314. <style scoped>
  315. @import '~@assets/less/common.less';
  316. </style>