HlwInvoiceManageModalForm.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. <template>
  2. <a-spin :spinning="confirmLoading">
  3. <a-form :form="form">
  4. <!-- 查询区域 -->
  5. <div class="table-page-search-wrapper">
  6. <a-form layout="inline" @keyup.enter.native="searchQuery">
  7. <a-row :gutter="24">
  8. <a-col :md="6" :sm="8">
  9. <a-form-item label="批次单号">
  10. <a-input placeholder="请输入批次单号" v-model="queryParam.paymentCode"></a-input>
  11. </a-form-item>
  12. </a-col>
  13. <a-col :md="6" :sm="8">
  14. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  15. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  16. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
  17. <!--<a @click="handleToggleSearch" style="margin-left: 8px">-->
  18. <!--{{ toggleSearchStatus ? '收起' : '展开' }}-->
  19. <!--<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>-->
  20. <!--</a>-->
  21. </span>
  22. </a-col>
  23. </a-row>
  24. </a-form>
  25. </div>
  26. <!-- 查询区域-END -->
  27. <!-- 操作按钮区域 -->
  28. <!-- table区域-begin -->
  29. <div>
  30. <a-table
  31. ref="table"
  32. size="middle"
  33. bordered
  34. rowKey="id"
  35. :columns="columns"
  36. :dataSource="dataSource"
  37. :pagination="ipagination"
  38. :loading="loading"
  39. class="j-table-force-nowrap"
  40. @change="handleTableChange">
  41. <span slot="action" slot-scope="text, record">
  42. <a v-has="'hcwinvoice:viewpaymentDetail'" @click="paymentDetail(record)" >创客付款单</a>
  43. </span>
  44. </a-table>
  45. </div>
  46. </a-form>
  47. </a-spin>
  48. </template>
  49. <script>
  50. import '@/assets/less/TableExpand.less'
  51. import { mixinDevice } from '@/utils/mixin'
  52. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  53. import { httpAction, getAction,deleteAction } from '@/api/manage'
  54. export default {
  55. name: "HlwInvoiceManageModalForm",
  56. mixins:[JeecgListMixin, mixinDevice],
  57. components: {
  58. },
  59. data () {
  60. return {
  61. form: this.$form.createForm(this),
  62. validatorRules:{},
  63. title:"操作",
  64. bodyStyle: {
  65. padding: '0',
  66. height: (window.innerHeight * 0.66) + 'px',
  67. 'overflow-y': 'auto'
  68. },
  69. modelStyle: {
  70. width: '76%',
  71. style: { top: '20px' },
  72. fullScreen: false
  73. },
  74. visible: false,
  75. model: {},
  76. labelCol: {
  77. xs: { span: 24 },
  78. sm: { span: 5 },
  79. },
  80. wrapperCol: {
  81. xs: { span: 24 },
  82. sm: { span: 16 },
  83. },
  84. confirmLoading: false,
  85. description: 'HlwInvoiceManageModalForm管理',
  86. // 表头
  87. columns: [
  88. {
  89. title:'批次单号',
  90. align:"center",
  91. dataIndex: 'paymentCode',
  92. },
  93. {
  94. title:'任务名称',
  95. align:"center",
  96. dataIndex: 'requirementName'
  97. },
  98. {
  99. title:'企业名称',
  100. align:"center",
  101. dataIndex: 'companyName'
  102. },
  103. {
  104. title:'服务商',
  105. align:"center",
  106. dataIndex: 'subcontractorName'
  107. },
  108. {
  109. title:'付款人数',
  110. align:"center",
  111. dataIndex: 'paymentNumber'
  112. },
  113. {
  114. title:'创客佣金',
  115. align:"center",
  116. dataIndex: 'payment'
  117. },
  118. {
  119. title:'服务费',
  120. align:"center",
  121. dataIndex: 'serviceFee',
  122. },
  123. {
  124. title:'付款总金额',
  125. align:"center",
  126. dataIndex: 'totalPayment',
  127. },
  128. {
  129. title:'任务单号',
  130. align:"center",
  131. dataIndex: 'requirementCode',
  132. },
  133. {
  134. title: '操作',
  135. dataIndex: 'action',
  136. align:"center",
  137. fixed:"right",
  138. width:147,
  139. scopedSlots: { customRender: 'action' }
  140. }
  141. ],
  142. url: {
  143. list: "/wisdom/hlwInvoice/paymentList",
  144. },
  145. dictOptions:{},
  146. }
  147. },
  148. computed: {
  149. importExcelUrl: function(){
  150. return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  151. },
  152. },
  153. created () {
  154. this.loadData(1)
  155. },
  156. methods: {
  157. initDictConfig(){
  158. },
  159. edit (record) {
  160. this.form.resetFields();
  161. this.model = Object.assign({}, record);
  162. this.visible = true;
  163. },
  164. loadData(arg) {
  165. if (!this.url.list) {
  166. this.$message.error('请设置url.list属性!')
  167. return
  168. }
  169. //加载数据 若传入参数1则加载第一页的内容
  170. if (arg === 1) {
  171. this.ipagination.current = 1
  172. }
  173. var params = this.getQueryParams();//查询条件
  174. params.id=this.$route.query.id;
  175. this.loading = true
  176. getAction(this.url.list, params).then((res) => {
  177. if (res.success) {
  178. this.dataSource = res.result.records
  179. this.ipagination.total = res.result.total
  180. }
  181. this.loading = false
  182. })
  183. },
  184. handleOk () {
  185. this.$emit('ok');
  186. this.close()
  187. },
  188. handleCancel () {
  189. this.$emit('ok');
  190. this.close()
  191. },
  192. close() {
  193. this.visible = false
  194. },
  195. paymentDetail(record){
  196. record.paymentId=record.id
  197. this.$router.push({ path: '/wisdom/hlwInvoice/add',query:{record:JSON.stringify(record) }})
  198. }
  199. }
  200. }
  201. </script>
  202. <style scoped>
  203. @import '~@assets/less/common.less';
  204. </style>