CollectDetailList.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  1. <template>
  2. <a-card :bordered="false" class="u-dialog-card">
  3. <!-- 查询区域 -->
  4. <div class="table-page-search-wrapper">
  5. <a-form layout="inline" @keyup.enter.native="searchQuery">
  6. <a-row :gutter="24">
  7. </a-row>
  8. </a-form>
  9. </div>
  10. <!-- 查询区域-END -->
  11. <!-- 操作按钮区域 -->
  12. <div class="table-operator">
  13. <!-- <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> -->
  14. <a-button type="primary" icon="download" @click="handleExportXls(taskno+'已收款明细')">导出</a-button>
  15. <!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
  16. <a-button type="primary" icon="import">导入</a-button>
  17. </a-upload> -->
  18. <!-- 高级查询区域 -->
  19. <!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
  20. <a-dropdown v-if="selectedRowKeys.length > 0">
  21. <a-menu slot="overlay">
  22. <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
  23. </a-menu>
  24. <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
  25. </a-dropdown> -->
  26. </div>
  27. <!-- table区域-begin -->
  28. <div>
  29. <!-- <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
  30. <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
  31. <a style="margin-left: 24px" @click="onClearSelected">清空</a>
  32. </div> -->
  33. <a-table
  34. ref="table"
  35. size="middle"
  36. :scroll="{x:true}"
  37. bordered
  38. rowKey="id"
  39. :columns="columns"
  40. :dataSource="dataSource"
  41. :pagination="ipagination"
  42. :loading="loading"
  43. class="j-table-force-nowrap"
  44. @change="handleTableChange">
  45. <!-- :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" -->
  46. <template slot="htmlSlot" slot-scope="text">
  47. <div v-html="text"></div>
  48. </template>
  49. <template slot="imgSlot" slot-scope="text,record">
  50. <span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
  51. <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
  52. </template>
  53. <template slot="fileSlot" slot-scope="text">
  54. <span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
  55. <a-button
  56. v-else
  57. :ghost="true"
  58. type="primary"
  59. icon="download"
  60. size="small"
  61. @click="downloadFile(text)">
  62. 下载
  63. </a-button>
  64. </template>
  65. <!-- <span slot="action" slot-scope="text, record">
  66. <a @click="handleEdit(record)">编辑</a>
  67. <a-divider type="vertical" />
  68. <a-dropdown>
  69. <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
  70. <a-menu slot="overlay">
  71. <a-menu-item>
  72. <a @click="handleDetail(record)">详情</a>
  73. </a-menu-item>
  74. <a-menu-item>
  75. <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
  76. <a>删除</a>
  77. </a-popconfirm>
  78. </a-menu-item>
  79. </a-menu>
  80. </a-dropdown>
  81. </span> -->
  82. </a-table>
  83. </div>
  84. </a-card>
  85. </template>
  86. <script>
  87. import '@/assets/less/TableExpand.less'
  88. import { mixinDevice } from '@/utils/mixin'
  89. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  90. import { getAction } from '@/api/manage'
  91. export default {
  92. name: 'ContractDetailList',
  93. mixins:[JeecgListMixin, mixinDevice],
  94. props: {
  95. taskno: {
  96. type: String,
  97. default: ''
  98. }
  99. },
  100. data () {
  101. return {
  102. description: '合同信息存储表管理页面',
  103. // 表头
  104. columns: [
  105. {
  106. title: '序号',
  107. dataIndex: '',
  108. key:'rowIndex',
  109. width:60,
  110. align:"center",
  111. customRender:function (t,r,index) {
  112. return parseInt(index)+1;
  113. },
  114. fixed: 'left',
  115. },
  116. {
  117. title:'任务号',
  118. align:"center",
  119. dataIndex: 'rwbh',
  120. width: 120,
  121. fixed: 'left',
  122. },
  123. {
  124. title:'任务名称',
  125. align:"center",
  126. dataIndex: 'rwmc',
  127. width: 120,
  128. fixed: 'left',
  129. },
  130. // 所属型号
  131. {
  132. title:'阶段',
  133. align:"center",
  134. dataIndex: 'jd'
  135. },
  136. {
  137. title:'数量', // (合同付款)
  138. align:"center",
  139. dataIndex: 'sl'
  140. },
  141. {
  142. title:'类型', // (无用)
  143. align:"center",
  144. dataIndex: 'pici'
  145. },
  146. {
  147. title:'客户ID',
  148. align:"center",
  149. dataIndex: 'khid'
  150. },
  151. {
  152. title:'客户流程编号',
  153. align:"center",
  154. dataIndex: 'khlcbh'
  155. },
  156. {
  157. title:'编号',
  158. align:"center",
  159. dataIndex: 'bh'
  160. },
  161. {
  162. title:'收款编号',
  163. align:"center",
  164. dataIndex: 'skbh'
  165. },
  166. {
  167. title:'执行状态',
  168. align:"center",
  169. dataIndex: 'zxzt'
  170. },
  171. {
  172. title:'付款方名称',
  173. align:"center",
  174. dataIndex: 'fkfmc'
  175. },
  176. {
  177. title:'用户简称',
  178. align:"center",
  179. dataIndex: 'yhjc'
  180. },
  181. {
  182. title:'合同编号',
  183. align:"center",
  184. dataIndex: 'htbh'
  185. },
  186. {
  187. title:'合同名称',
  188. align:"center",
  189. dataIndex: 'htmc'
  190. },
  191. {
  192. title:'合同类型',
  193. align:"center",
  194. dataIndex: 'htlx'
  195. },
  196. {
  197. title:'部门', // (合同付款)
  198. align:"center",
  199. dataIndex: 'bm'
  200. },
  201. // 业务员部门
  202. {
  203. title:'到款日期', // /汇票到期日期
  204. align:"center",
  205. dataIndex: 'dkhpdqrq',
  206. customRender:function (text) {
  207. return !text?"":(text.length>10?textsubstr(0,10):text)
  208. }
  209. },
  210. {
  211. title:'收款类型',
  212. align:"center",
  213. dataIndex: 'sklx'
  214. },
  215. {
  216. title:'收款科目代码',
  217. align:"center",
  218. dataIndex: 'skkmdm'
  219. },
  220. {
  221. title:'凭证号',
  222. align:"center",
  223. dataIndex: 'pzh'
  224. },
  225. {
  226. title:'业务员',
  227. align:"center",
  228. dataIndex: 'ywy'
  229. },
  230. {
  231. title:'录入人', // 、申请人
  232. align:"center",
  233. dataIndex: 'lrsqr'
  234. },
  235. {
  236. title:'录入日期', // 起草日期、 、申请日期
  237. align:"center",
  238. dataIndex: 'qclrsqrq',
  239. customRender:function (text) {
  240. return !text?"":(text.length>10?text.substr(0,10):text)
  241. }
  242. },
  243. {
  244. title:'收款总金额(元)', // 金额(元)、 、开票金额
  245. align:"center",
  246. dataIndex: 'jeskzkp',
  247. width: 120,
  248. fixed: 'right',
  249. },
  250. {
  251. title:'任务收款金额(元)',
  252. align:"center",
  253. dataIndex: 'rwskje',
  254. width: 120,
  255. fixed: 'right',
  256. },
  257. // {
  258. // title:'产品型号',
  259. // align:"center",
  260. // dataIndex: 'cpxh'
  261. // },
  262. // {
  263. // title:'合同主管部门',
  264. // align:"center",
  265. // dataIndex: 'htzgbm'
  266. // },
  267. // {
  268. // title:'联系人(对方)',
  269. // align:"center",
  270. // dataIndex: 'lxr'
  271. // },
  272. // {
  273. // title:'数据来源',
  274. // // :10:合同管理,20:合同任务,30:任务合同,40:合同付款,50:合同发票,60:外协合同
  275. // align:"center",
  276. // dataIndex: 'sjly'
  277. // },
  278. // {
  279. // title:'序号',
  280. // align:"center",
  281. // dataIndex: 'xh'
  282. // },
  283. // {
  284. // title:'用户id',
  285. // align:"center",
  286. // dataIndex: 'yhid'
  287. // },
  288. // {
  289. // title:'用户名称',
  290. // align:"center",
  291. // dataIndex: 'yhmc'
  292. // },
  293. ],
  294. url: {
  295. list: "/xmcbDetail/comContractInfoExchange/getCrmYskDetail",
  296. // delete: "/xmcbDetail/comContractInfoExchange/delete",
  297. // deleteBatch: "/xmcbDetail/comContractInfoExchange/deleteBatch",
  298. exportXlsUrl: "/xmcbDetail/comContractInfoExchange/exportYskDetail",
  299. // importExcelUrl: "xmcbDetail/comContractInfoExchange/importExcel",
  300. },
  301. dictOptions:{},
  302. superFieldList:[],
  303. queryParam: {
  304. taskno: this.taskno
  305. }
  306. }
  307. },
  308. created() {
  309. this.getSuperFieldList();
  310. this.loadData()
  311. },
  312. computed: {
  313. // importExcelUrl: function(){
  314. // return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  315. // },
  316. },
  317. methods: {
  318. loadData() {
  319. this.loading = true;
  320. getAction(this.url.list, {taskno: this.taskno}).then((res) => {
  321. this.dataSource = res
  322. }).finally(() => {
  323. this.loading = false
  324. })
  325. },
  326. initDictConfig(){
  327. },
  328. getSuperFieldList(){
  329. let fieldList=[];
  330. fieldList.push({type:'string',value:'bz',text:'备注.',dictCode:''})
  331. fieldList.push({type:'string',value:'bh',text:'编号.',dictCode:''})
  332. fieldList.push({type:'string',value:'bm',text:'部门(合同付款).',dictCode:''})
  333. fieldList.push({type:'string',value:'cpxh',text:'产品型号.',dictCode:''})
  334. fieldList.push({type:'date',value:'dkhpdqrq',text:'到款日期/汇票到期日期.'})
  335. fieldList.push({type:'string',value:'fkfmc',text:'付款方名称.',dictCode:''})
  336. fieldList.push({type:'string',value:'htbh',text:'合同编号.',dictCode:''})
  337. fieldList.push({type:'string',value:'htlx',text:'合同类型.',dictCode:''})
  338. fieldList.push({type:'string',value:'htmc',text:'合同名称.',dictCode:''})
  339. fieldList.push({type:'string',value:'htzgbm',text:'合同主管部门.',dictCode:''})
  340. fieldList.push({type:'string',value:'jd',text:'阶段.',dictCode:''})
  341. fieldList.push({type:'BigDecimal',value:'jeskzkp',text:'金额(元)、收款总金额、开票金额.',dictCode:''})
  342. fieldList.push({type:'string',value:'khid',text:'客户id.',dictCode:''})
  343. fieldList.push({type:'string',value:'khlcbh',text:'客户流程编号.',dictCode:''})
  344. fieldList.push({type:'string',value:'lxr',text:'联系人(对方).',dictCode:''})
  345. fieldList.push({type:'string',value:'lrsqr',text:'录入人、申请人.',dictCode:''})
  346. fieldList.push({type:'string',value:'pzh',text:'凭证号.',dictCode:''})
  347. fieldList.push({type:'date',value:'qclrsqrq',text:'起草日期、录入日期、申请日期.'})
  348. fieldList.push({type:'string',value:'rwbh',text:'任务编号.',dictCode:''})
  349. fieldList.push({type:'string',value:'rwmc',text:'任务名称.',dictCode:''})
  350. fieldList.push({type:'BigDecimal',value:'rwskje',text:'任务收款金额.',dictCode:''})
  351. fieldList.push({type:'string',value:'skbh',text:'收款编号(sn).',dictCode:''})
  352. fieldList.push({type:'string',value:'skkmdm',text:'收款科目代码.',dictCode:''})
  353. fieldList.push({type:'string',value:'sklx',text:'收款类型.',dictCode:''})
  354. fieldList.push({type:'int',value:'sjly',text:'数据来源:10:合同管理,20:合同任务,30:任务合同,40:合同付款,50:合同发票,60:外协合同.',dictCode:''})
  355. fieldList.push({type:'int',value:'sl',text:'数量(合同付款).',dictCode:''})
  356. fieldList.push({type:'string',value:'xh',text:'序号.',dictCode:''})
  357. fieldList.push({type:'string',value:'ywy',text:'业务员.',dictCode:''})
  358. fieldList.push({type:'string',value:'yhid',text:'用户id.',dictCode:''})
  359. fieldList.push({type:'string',value:'yhjc',text:'用户简称.',dictCode:''})
  360. fieldList.push({type:'string',value:'yhmc',text:'用户名称.',dictCode:''})
  361. fieldList.push({type:'string',value:'zxzt',text:'执行状态(status).',dictCode:''})
  362. fieldList.push({type:'string',value:'pici',text:'类型(无用).',dictCode:''})
  363. this.superFieldList = fieldList
  364. }
  365. }
  366. }
  367. </script>
  368. <style scoped>
  369. @import '~@assets/less/common.less';
  370. </style>
  371. <style lang="less" scoped>
  372. .u-dialog-card{
  373. /deep/.ant-card-body{
  374. padding: 0 !important;
  375. }
  376. }
  377. </style>