HlwInvoiceManageList.vue 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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 :md="6" :sm="8">
  8. <a-form-item label="企业名称">
  9. <a-input placeholder="请输入企业名称" v-model="queryParam.companyName"></a-input>
  10. </a-form-item>
  11. </a-col>
  12. <a-col :md="6" :sm="8">
  13. <a-form-item label="服务商名称">
  14. <a-input placeholder="请输入服务商名称" v-model="queryParam.subcontractorName"></a-input>
  15. </a-form-item>
  16. </a-col>
  17. <a-col :md="6" :sm="8">
  18. <a-form-item label="发票号">
  19. <a-input placeholder="请输入付款单号" v-model="queryParam.invoiceNumber"></a-input>
  20. </a-form-item>
  21. </a-col>
  22. <a-col :md="6" :sm="8">
  23. <a-form-item label="开票状态">
  24. <j-dict-select-tag v-model="queryParam.invoiceStatus" placeholder="请选择开票状态" dictCode="invoiceStatus"/>
  25. </a-form-item>
  26. </a-col>
  27. <a-col :md="6" :sm="8">
  28. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  29. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  30. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
  31. <!--<a @click="handleToggleSearch" style="margin-left: 8px">-->
  32. <!--{{ toggleSearchStatus ? '收起' : '展开' }}-->
  33. <!--<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>-->
  34. <!--</a>-->
  35. </span>
  36. </a-col>
  37. </a-row>
  38. </a-form>
  39. </div>
  40. <!-- 查询区域-END -->
  41. <!-- 操作按钮区域 -->
  42. <div class="table-operator">
  43. </div>
  44. <!-- table区域-begin -->
  45. <div>
  46. <a-table
  47. ref="table"
  48. size="middle"
  49. bordered
  50. rowKey="id"
  51. :columns="columns"
  52. :scroll="{x:true}"
  53. :dataSource="dataSource"
  54. :pagination="ipagination"
  55. :loading="loading"
  56. class="j-table-force-nowrap"
  57. @change="handleTableChange">
  58. <span slot="action" slot-scope="text, record">
  59. <a v-has="'hcwinvoice:invoiceDetail'" @click="invoiceDetail(record)" >开票明细</a>
  60. <template v-if="record.invoiceNumber">
  61. <a-divider v-has="'hcwinvoice:viewInvoice'" type="vertical" />
  62. <a v-has="'hcwinvoice:viewInvoice'" style="color: limegreen" @click="viewInvoice(record)" >发票查看</a>
  63. </template>
  64. </span>
  65. </a-table>
  66. </div>
  67. <HwPictureModal ref="hwViewPictureForm" @ok="modalFormOk"></HwPictureModal>
  68. </a-card>
  69. </template>
  70. <script>
  71. import { httpAction ,getAction,putAction} from '@/api/manage'
  72. import '@/assets/less/TableExpand.less'
  73. import { mixinDevice } from '@/utils/mixin'
  74. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  75. import HwPictureModal from '../tools/HwPictureModal'
  76. export default {
  77. name: "HlwInvoiceManageList",
  78. mixins:[JeecgListMixin, mixinDevice],
  79. components: {
  80. HwPictureModal
  81. },
  82. data () {
  83. return {
  84. queryParam: {},
  85. selectedRowKeys: [],
  86. selectedRows: [],
  87. description: '开票申请',
  88. // 表头
  89. columns: [
  90. {
  91. title:'企业名称',
  92. align:"center",
  93. dataIndex: 'companyName',
  94. customRender:function (text) {
  95. return text
  96. }
  97. },
  98. {
  99. title:'通过平台',
  100. align:"center",
  101. dataIndex: 'isThroughPlatform_dictText'
  102. },
  103. {
  104. title:'平台名称',
  105. align:"center",
  106. dataIndex: 'cpName'
  107. },
  108. {
  109. title:'服务商',
  110. align:"center",
  111. dataIndex: 'subcontractorName'
  112. },
  113. {
  114. title:'发票明细',
  115. align:"center",
  116. dataIndex: 'invoiceDetailNum',
  117. },
  118. {
  119. title:'平台发票号',
  120. align:"center",
  121. dataIndex: 'serviceInvoiceNumber'
  122. },
  123. {
  124. title:'平台开票金额',
  125. align:"center",
  126. dataIndex: 'serviceAmount'
  127. },
  128. {
  129. title:'服务商发票号',
  130. align:"center",
  131. dataIndex: 'invoiceNumber'
  132. },
  133. {
  134. title:'发票类型',
  135. align:"center",
  136. dataIndex: 'invoiceType_dictText'
  137. },
  138. {
  139. title:'服务商发票金额',
  140. align:"center",
  141. dataIndex: 'amount'
  142. },
  143. {
  144. title:'开票状态',
  145. align:"center",
  146. dataIndex: 'invoiceStatus',
  147. customRender:function (text,record) {
  148. return record.invoiceNumber?"已开票":"待处理"
  149. }
  150. },
  151. {
  152. title:'申请人',
  153. align:"center",
  154. dataIndex: 'createBy'
  155. },
  156. {
  157. title:'申请时间',
  158. align:"center",
  159. dataIndex: 'createTime'
  160. },
  161. {
  162. title:'开票人',
  163. align:"center",
  164. dataIndex: 'uploadBy'
  165. },
  166. {
  167. title:'开票时间',
  168. align:"center",
  169. dataIndex: 'uploadTime'
  170. },
  171. {
  172. title: '操作',
  173. dataIndex: 'action',
  174. align:"center",
  175. fixed:"right",
  176. width:147,
  177. scopedSlots: { customRender: 'action' }
  178. }
  179. ],
  180. url: {
  181. list: "/wisdom/hlwInvoice/alreadyInvoiceList",
  182. imgerver: window._CONFIG['imgDomainOssURL']
  183. },
  184. dictOptions:{},
  185. }
  186. },
  187. computed: {
  188. importExcelUrl: function(){
  189. return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  190. },
  191. },
  192. methods: {
  193. initDictConfig(){
  194. },
  195. viewInvoice(record){
  196. var idcard = [];
  197. var arr=record.invoice.split(",")
  198. for (let i = 0; i <arr.length ; i++) {
  199. if( arr[i].indexOf("http")!=-1){
  200. idcard.push(arr[i])
  201. }else{
  202. idcard.push(this.url.imgerver +arr[i])
  203. }
  204. }
  205. this.$refs.hwViewPictureForm.edit(idcard);
  206. this.$refs.hwViewPictureForm.title = '发票照片'
  207. this.$refs.hwViewPictureForm.disableSubmit = false
  208. },
  209. invoiceDetail(record){
  210. this.$router.push({ path: '/wisdom/hlwInvoice/queryById',query:{id:record.id }})
  211. },
  212. }
  213. }
  214. </script>
  215. <style scoped>
  216. @import '~@assets/less/common.less';
  217. </style>