SmsCheckWorkLogList.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  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. <j-input placeholder="请输入客户编号" v-model="queryParam.customerNo"></j-input>
  10. </a-form-item>
  11. </a-col>
  12. <template v-if="toggleSearchStatus">
  13. <a-col :xl="10" :lg="11" :md="12" :sm="24">
  14. <a-form-item label="稽核时间">
  15. <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择开始时间" class="query-group-cust" v-model="queryParam.createTime_begin"></j-date>
  16. <span class="query-group-split-cust"></span>
  17. <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择结束时间" class="query-group-cust" v-model="queryParam.createTime_end"></j-date>
  18. </a-form-item>
  19. </a-col>
  20. </template>
  21. <a-col :xl="6" :lg="7" :md="8" :sm="24">
  22. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  23. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  24. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
  25. <a @click="handleToggleSearch" style="margin-left: 8px">
  26. {{ toggleSearchStatus ? '收起' : '展开' }}
  27. <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
  28. </a>
  29. </span>
  30. </a-col>
  31. </a-row>
  32. </a-form>
  33. </div>
  34. <!-- 查询区域-END -->
  35. <!-- 操作按钮区域 -->
  36. <div class="table-operator">
  37. <a-button type="primary" icon="download" @click="handleExportXls('稽核工作日志')">导出</a-button>
  38. <!-- <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
  39. <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
  40. <a-button type="primary" icon="import">导入</a-button>
  41. </a-upload>-->
  42. <!-- 高级查询区域 -->
  43. <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
  44. <!-- <a-dropdown v-if="selectedRowKeys.length > 0">
  45. <a-menu slot="overlay">
  46. <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
  47. </a-menu>
  48. <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
  49. </a-dropdown>-->
  50. </div>
  51. <!-- table区域-begin -->
  52. <div>
  53. <!-- <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
  54. <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
  55. <a style="margin-left: 24px" @click="onClearSelected">清空</a>
  56. </div>-->
  57. <a-table
  58. ref="table"
  59. size="middle"
  60. :scroll="{x:true}"
  61. bordered
  62. rowKey="id"
  63. :columns="columns"
  64. :dataSource="dataSource"
  65. :pagination="ipagination"
  66. :loading="loading"
  67. class="j-table-force-nowrap"
  68. @change="handleTableChange">
  69. <!-- :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"-->
  70. <!-- <template slot="htmlSlot" slot-scope="text">
  71. <div v-html="text"></div>
  72. </template>
  73. <template slot="imgSlot" slot-scope="text,record">
  74. <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
  75. <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
  76. </template>-->
  77. <template slot="fileSlot" slot-scope="text">
  78. <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
  79. <a-button
  80. v-else
  81. :ghost="true"
  82. type="primary"
  83. icon="download"
  84. size="small"
  85. @click="downloadFile(text)">
  86. 下载
  87. </a-button>
  88. </template>
  89. <span slot="action" slot-scope="text, record">
  90. <a @click="handleDetail(record)">详情</a>
  91. <!-- <a @click="handleEdit(record)">编辑</a>-->
  92. <a-divider type="vertical" />
  93. <!-- <a-dropdown>
  94. &lt;!&ndash; <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>&ndash;&gt;
  95. <a-menu slot="overlay">
  96. <a-menu-item>
  97. <a @click="handleDetail(record)">详情</a>
  98. </a-menu-item>
  99. &lt;!&ndash; <a-menu-item>
  100. <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
  101. <a>删除</a>
  102. </a-popconfirm>
  103. </a-menu-item>&ndash;&gt;
  104. </a-menu>
  105. </a-dropdown>-->
  106. </span>
  107. </a-table>
  108. </div>
  109. <sms-check-work-log-modal ref="modalForm" @ok="modalFormOk"></sms-check-work-log-modal>
  110. </a-card>
  111. </template>
  112. <script>
  113. import '@/assets/less/TableExpand.less'
  114. import { mixinDevice } from '@/utils/mixin'
  115. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  116. import SmsCheckWorkLogModal from './modules/SmsCheckWorkLogModal'
  117. export default {
  118. name: 'SmsCheckWorkLogList',
  119. mixins:[JeecgListMixin, mixinDevice],
  120. components: {
  121. SmsCheckWorkLogModal
  122. },
  123. data () {
  124. return {
  125. description: '稽核工作日志管理页面',
  126. // 表头
  127. columns: [
  128. {
  129. title: '#',
  130. dataIndex: '',
  131. key:'rowIndex',
  132. width:60,
  133. align:"center",
  134. customRender:function (t,r,index) {
  135. return parseInt(index)+1;
  136. }
  137. },
  138. /* {
  139. title:'客户信息',
  140. align:"center",
  141. dataIndex: 'infoId'
  142. },*/
  143. {
  144. title:'客户编号',
  145. align:"center",
  146. dataIndex: 'customerNo'
  147. },
  148. /* {
  149. title:'客户资料编号',
  150. align:"center",
  151. dataIndex: 'dataId'
  152. },*/
  153. {
  154. title:'基本信息稽核状态',
  155. align:"center",
  156. dataIndex: 'basicCheckState',
  157. customRender:function (text){
  158. if (text===0){
  159. return "未处理";
  160. }else if (text===1){
  161. return "未通过";
  162. }else if (text===2){
  163. return "通过";
  164. }
  165. }
  166. },
  167. {
  168. title:'基本信息稽核结果',
  169. align:"center",
  170. dataIndex: 'basicCheckNote'
  171. },
  172. {
  173. title:'规范信息稽核状态',
  174. align:"center",
  175. dataIndex: 'standardCheckState',
  176. customRender:function (text){
  177. if (text===0){
  178. return "未处理";
  179. }else if (text===1){
  180. return "未通过";
  181. }else if (text===2){
  182. return "通过";
  183. }
  184. }
  185. },
  186. {
  187. title:'规范信息稽核结果',
  188. align:"center",
  189. dataIndex: 'istandardCheckNote'
  190. },
  191. {
  192. title:'附件资料稽核状态',
  193. align:"center",
  194. dataIndex: 'dataCheckState',
  195. customRender:function (text){
  196. if (text===0){
  197. return "未处理";
  198. }else if (text===1){
  199. return "未通过";
  200. }else if (text===2){
  201. return "通过";
  202. }
  203. }
  204. },
  205. {
  206. title:'附件资料稽核结果',
  207. align:"center",
  208. dataIndex: 'dataCheckNote'
  209. },
  210. /*{
  211. title:'员工id',
  212. align:"center",
  213. dataIndex: 'staffId'
  214. },*/
  215. {
  216. title:'员工编号',
  217. align:"center",
  218. dataIndex: 'staffNo'
  219. },
  220. {
  221. title:'稽核时间',
  222. align:"center",
  223. dataIndex: 'createTime'
  224. },
  225. {
  226. title: '操作',
  227. dataIndex: 'action',
  228. align:"center",
  229. /*fixed:"right",*/
  230. width:100,
  231. scopedSlots: { customRender: 'action' }
  232. }
  233. ],
  234. url: {
  235. list: "/smsCheck/workLog/list",
  236. delete: "/smsCheck/workLog/delete",
  237. deleteBatch: "/smsCheck/workLog/deleteBatch",
  238. exportXlsUrl: "/smsCheck/workLog/exportXls",
  239. importExcelUrl: "smsCheck/workLog/importExcel",
  240. },
  241. dictOptions:{},
  242. superFieldList:[],
  243. }
  244. },
  245. created() {
  246. this.getSuperFieldList();
  247. },
  248. computed: {
  249. importExcelUrl: function(){
  250. return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  251. },
  252. },
  253. methods: {
  254. initDictConfig(){
  255. },
  256. getSuperFieldList(){
  257. let fieldList=[];
  258. fieldList.push({type:'string',value:'infoId',text:'客户信息id',dictCode:''})
  259. fieldList.push({type:'string',value:'customerNo',text:'客户编号',dictCode:''})
  260. fieldList.push({type:'string',value:'dataId',text:'客户资料id',dictCode:''})
  261. fieldList.push({type:'int',value:'basicCheckState',text:'基本信息稽核状态',dictCode:''})
  262. fieldList.push({type:'string',value:'basicCheckNote',text:'基本信息稽核结果',dictCode:''})
  263. fieldList.push({type:'int',value:'standardCheckState',text:'规范信息稽核状态',dictCode:''})
  264. fieldList.push({type:'string',value:'istandardCheckNote',text:'规范信息稽核结果',dictCode:''})
  265. fieldList.push({type:'int',value:'dataCheckState',text:'附件资料稽核状态',dictCode:''})
  266. fieldList.push({type:'string',value:'dataCheckNote',text:'附件资料稽核结果',dictCode:''})
  267. fieldList.push({type:'string',value:'staffId',text:'员工id',dictCode:''})
  268. fieldList.push({type:'string',value:'staffNo',text:'员工编号',dictCode:''})
  269. this.superFieldList = fieldList
  270. }
  271. }
  272. }
  273. </script>
  274. <style scoped>
  275. @import '~@assets/less/common.less';
  276. </style>