HlwInvoiceManagePaymentModalForm.vue 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  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-row>
  9. </a-form>
  10. </div>
  11. <!-- 查询区域-END -->
  12. <div class="ant-descriptions-title">付款信息</div>
  13. <a-row :gutter="24">
  14. <a-col :lg="12" :md="12" :sm="24">
  15. <a-form-item label="批次单号" :labelCol="labelCol" :wrapperCol="wrapperCol" >
  16. {{this.model.paymentCode}}
  17. </a-form-item>
  18. </a-col>
  19. <a-col :lg="12" :md="12" :sm="24">
  20. <a-form-item label="需求单号" :labelCol="labelCol" :wrapperCol="wrapperCol" >
  21. {{this.model.requirementCode}}
  22. </a-form-item>
  23. </a-col>
  24. </a-row>
  25. <a-row :gutter="24">
  26. <a-col :lg="12" :md="12" :sm="24">
  27. <a-form-item label="需求名称" :labelCol="labelCol" :wrapperCol="wrapperCol" >
  28. {{this.model.requirementName}}
  29. </a-form-item>
  30. </a-col>
  31. </a-row>
  32. <div class="ant-descriptions-title">企业信息</div>
  33. <a-row :gutter="24">
  34. <a-col :lg="12" :md="12" :sm="24">
  35. <a-form-item label="企业名称" :labelCol="labelCol" :wrapperCol="wrapperCol" >
  36. {{this.model.companyName}}
  37. </a-form-item>
  38. </a-col>
  39. </a-row>
  40. <div class="ant-descriptions-title">服务商</div>
  41. <a-row :gutter="24">
  42. <a-col :lg="12" :md="12" :sm="24">
  43. <a-form-item label="服务商" :labelCol="labelCol" :wrapperCol="wrapperCol" >
  44. {{this.model.subcontractorName}}
  45. </a-form-item>
  46. </a-col>
  47. <a-col :lg="12" :md="12" :sm="24">
  48. <a-form-item label="服务费率" :labelCol="labelCol" :wrapperCol="wrapperCol" >
  49. {{this.model.serviceRate}}%
  50. </a-form-item>
  51. </a-col>
  52. </a-row>
  53. <!-- 操作按钮区域 -->
  54. <div class="table-operator">
  55. <div class="ant-descriptions-title">付款名单</div>
  56. </div>
  57. <!-- table区域-begin -->
  58. <div>
  59. <a-table
  60. ref="table"
  61. size="middle"
  62. bordered
  63. rowKey="id"
  64. :columns="columns"
  65. :dataSource="dataSource"
  66. :pagination="ipagination"
  67. :loading="loading"
  68. class="j-table-force-nowrap"
  69. @change="handleTableChange">
  70. </a-table>
  71. </div>
  72. </a-form>
  73. </a-spin>
  74. </template>
  75. <script>
  76. import '@/assets/less/TableExpand.less'
  77. import { mixinDevice } from '@/utils/mixin'
  78. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  79. import { httpAction, getAction,deleteAction } from '@/api/manage'
  80. export default {
  81. name: "HlwInvoiceManagePaymentModalForm",
  82. mixins:[JeecgListMixin, mixinDevice],
  83. components: {
  84. },
  85. data () {
  86. return {
  87. form: this.$form.createForm(this),
  88. validatorRules:{},
  89. title:"操作",
  90. bodyStyle: {
  91. padding: '0',
  92. height: (window.innerHeight * 0.66) + 'px',
  93. 'overflow-y': 'auto'
  94. },
  95. modelStyle: {
  96. width: '76%',
  97. style: { top: '20px' },
  98. fullScreen: false
  99. },
  100. visible: false,
  101. model: {},
  102. labelCol: {
  103. xs: { span: 24 },
  104. sm: { span: 5 },
  105. },
  106. wrapperCol: {
  107. xs: { span: 24 },
  108. sm: { span: 16 },
  109. },
  110. confirmLoading: false,
  111. description: 'HlwInvoiceManageModalForm管理',
  112. // 表头
  113. columns: [
  114. {
  115. title:'姓名',
  116. align:"center",
  117. dataIndex: 'userName',
  118. },
  119. {
  120. title:'证件号码',
  121. align:"center",
  122. dataIndex: 'idcardNumber',
  123. customRender:function (text,record) {
  124. return text.replace(/^(.{6})(?:\d+)(.{4})$/, "$1****$2")
  125. }
  126. },
  127. {
  128. title:'手机号',
  129. align:"center",
  130. dataIndex: 'phone'
  131. },
  132. {
  133. title:'付款状态',
  134. align:"center",
  135. dataIndex: 'status_dictText'
  136. },
  137. {
  138. title:'创客佣金',
  139. align:"center",
  140. dataIndex: 'netPayment'
  141. },
  142. {
  143. title: '创建人',
  144. dataIndex: 'createBy',
  145. align: "center",
  146. },
  147. {
  148. title: '创建时间',
  149. dataIndex: 'createTime',
  150. align: "center",
  151. },
  152. {
  153. title: '更新时间',
  154. dataIndex: 'updateTime',
  155. align: "center",
  156. },
  157. {
  158. title: '更新人',
  159. dataIndex: 'updateBy',
  160. align: "center",
  161. },
  162. ],
  163. url: {
  164. list: "/wisdom/hlwInvoice/detailList",
  165. },
  166. dictOptions:{},
  167. }
  168. },
  169. computed: {
  170. importExcelUrl: function(){
  171. return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  172. },
  173. },
  174. created () {
  175. this.model=JSON.parse(this.$route.query.record)
  176. this.loadData(1)
  177. },
  178. methods: {
  179. initDictConfig(){
  180. },
  181. edit (record) {
  182. this.form.resetFields();
  183. this.model = Object.assign({}, record);
  184. this.visible = true;
  185. },
  186. loadData(arg) {
  187. if (!this.url.list) {
  188. this.$message.error('请设置url.list属性!')
  189. return
  190. }
  191. if(!this.model.paymentId){
  192. return;
  193. }
  194. //加载数据 若传入参数1则加载第一页的内容
  195. if (arg === 1) {
  196. this.ipagination.current = 1
  197. }
  198. var params = this.getQueryParams();//查询条件
  199. params.paymentId=this.model.paymentId;
  200. this.loading = true
  201. getAction(this.url.list, params).then((res) => {
  202. if (res.success) {
  203. this.dataSource = res.result.records
  204. this.ipagination.total = res.result.total
  205. }
  206. this.loading = false
  207. })
  208. },
  209. handleOk () {
  210. this.$emit('ok');
  211. this.close()
  212. },
  213. handleCancel () {
  214. this.$emit('ok');
  215. this.close()
  216. },
  217. close() {
  218. this.visible = false
  219. },
  220. }
  221. }
  222. </script>
  223. <style scoped>
  224. @import '~@assets/less/common.less';
  225. .ant-descriptions-title {
  226. margin-bottom: 20px;
  227. color: rgba(0,0,0,.85);
  228. font-weight: 700;
  229. font-size: 16px;
  230. line-height: 1.5;
  231. }
  232. </style>