ContractDetailList.vue 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476
  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" style="padding: -24px !important;">
  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: 'xh',
  120. // fixed: 'left',
  121. // },
  122. {
  123. title:'任务编号',
  124. align:"center",
  125. dataIndex: 'rwbh',
  126. fixed: 'left',
  127. },
  128. {
  129. title:'任务名称',
  130. align:"center",
  131. dataIndex: 'rwmc',
  132. fixed: 'left',
  133. },
  134. {
  135. title:'所属型号',
  136. align:"center",
  137. dataIndex: 'ssxh'
  138. },
  139. {
  140. title:'产品型号',
  141. align:"center",
  142. dataIndex: 'cpxh'
  143. },
  144. {
  145. title:'阶段',
  146. align:"center",
  147. dataIndex: 'jd'
  148. },
  149. {
  150. title:'研制部门',
  151. align:"center",
  152. dataIndex: 'yzbm'
  153. },
  154. {
  155. title:'主管设计师',
  156. align:"center",
  157. dataIndex: 'zgsjs'
  158. },
  159. {
  160. title:'已收款(元)',
  161. align:"center",
  162. dataIndex: 'ysk'
  163. },
  164. {
  165. title:'合同编号',
  166. align:"center",
  167. dataIndex: 'htbh'
  168. },
  169. {
  170. title:'合同名称',
  171. align:"center",
  172. dataIndex: 'htmc'
  173. },
  174. {
  175. title:'合同状态',
  176. align:"center",
  177. dataIndex: 'htzt'
  178. },
  179. {
  180. title:'合同类型',
  181. align:"center",
  182. dataIndex: 'htlx'
  183. },
  184. // 签署日期
  185. {
  186. title:'合同密级',
  187. align:"center",
  188. dataIndex: 'htmj'
  189. },
  190. {
  191. title:'项目密级',
  192. align:"center",
  193. dataIndex: 'xmmj'
  194. },
  195. {
  196. title:'合同数量',
  197. align:"center",
  198. dataIndex: 'htsl'
  199. },
  200. {
  201. title:'合同页数',
  202. align:"center",
  203. dataIndex: 'htys'
  204. },
  205. {
  206. title:'归档编号',
  207. align:"center",
  208. dataIndex: 'gdbh'
  209. },
  210. {
  211. title:'归档日期',
  212. align:"center",
  213. dataIndex: 'gdrq',
  214. customRender:function (text) {
  215. return !text?"":(text.length>10?text.substr(0,10):text)
  216. }
  217. },
  218. {
  219. title:'合同款状态',
  220. align:"center",
  221. dataIndex: 'htkzt'
  222. },
  223. {
  224. title:'甲方(付款方)',
  225. align:"center",
  226. dataIndex: 'jf'
  227. },
  228. {
  229. title:'甲方简称',
  230. align:"center",
  231. dataIndex: 'jfyhjc'
  232. },
  233. {
  234. title:'乙方(收款方)',
  235. align:"center",
  236. dataIndex: 'yf'
  237. },
  238. {
  239. title:'金额(元)', // 、收款总金额、开票金额
  240. align:"center",
  241. dataIndex: 'jeskzkp'
  242. },
  243. {
  244. title:'自筹(元)',
  245. align:"center",
  246. dataIndex: 'zc'
  247. },
  248. {
  249. title:'到款(元)',
  250. align:"center",
  251. dataIndex: 'dk'
  252. },
  253. {
  254. title:'待付款(元)',
  255. align:"center",
  256. dataIndex: 'dfk'
  257. },
  258. {
  259. title:'开票状态',
  260. align:"center",
  261. dataIndex: 'kpzt'
  262. },
  263. {
  264. title:'已开票(元)',
  265. align:"center",
  266. dataIndex: 'ykp'
  267. },
  268. {
  269. title:'待开票(元)',
  270. align:"center",
  271. dataIndex: 'dkp'
  272. },
  273. {
  274. title:'联系人(对方)',
  275. align:"center",
  276. dataIndex: 'lxr'
  277. },
  278. {
  279. title:'电话',
  280. align:"center",
  281. dataIndex: 'dh'
  282. },
  283. {
  284. title:'合同起草人',
  285. align:"center",
  286. dataIndex: 'htqcr'
  287. },
  288. {
  289. title:'起草日期', // 、录入日期、申请日期
  290. align:"center",
  291. dataIndex: 'qclrsqrq',
  292. customRender:function (text) {
  293. return !text?"":(text.length>10?text.substr(0,10):text)
  294. }
  295. },
  296. {
  297. title:'合同主管部门',
  298. align:"center",
  299. dataIndex: 'htzgbm'
  300. },
  301. {
  302. title:'业务员',
  303. align:"center",
  304. dataIndex: 'ywy'
  305. },
  306. {
  307. title:'抓总部门',
  308. align:"center",
  309. dataIndex: 'zzbm'
  310. },
  311. {
  312. title:'合同履行情况',
  313. align:"center",
  314. dataIndex: 'htlxqk'
  315. },
  316. {
  317. title:'合同状态说明',
  318. align:"center",
  319. dataIndex: 'htztsm'
  320. },
  321. {
  322. title:'合同分配额(元)',
  323. align:"center",
  324. dataIndex: 'htfpe',
  325. fixed: 'right',
  326. },
  327. // {
  328. // title:'id',
  329. // align:"center",
  330. // dataIndex: 'id'
  331. // },
  332. // {
  333. // title:'开票时间',
  334. // align:"center",
  335. // dataIndex: 'kpsj',
  336. // customRender:function (text) {
  337. // return !text?"":(text.length>10?text.substr(0,10):text)
  338. // }
  339. // },
  340. // {
  341. // title:'客户id',
  342. // align:"center",
  343. // dataIndex: 'khid'
  344. // },
  345. // {
  346. // title:'数据来源:10:合同管理,20:合同任务,30:任务合同,40:合同付款,50:合同发票,60:外协合同',
  347. // align:"center",
  348. // dataIndex: 'sjly'
  349. // },
  350. // {
  351. // title:'用户id',
  352. // align:"center",
  353. // dataIndex: 'yhid'
  354. // },
  355. // {
  356. // title:'类型(无用)',
  357. // align:"center",
  358. // dataIndex: 'pici'
  359. // },
  360. ],
  361. url: {
  362. list: "/xmcbDetail/comContractInfoExchange/getCrmHteDetail",
  363. // delete: "/xmcbDetail/comContractInfoExchange/delete",
  364. // deleteBatch: "/xmcbDetail/comContractInfoExchange/deleteBatch",
  365. exportXlsUrl: "/xmcbDetail/comContractInfoExchange/exportHteDetail",
  366. // importExcelUrl: "xmcbDetail/comContractInfoExchange/importExcel",
  367. },
  368. dictOptions:{},
  369. superFieldList:[],
  370. queryParam: {
  371. taskno: this.taskno
  372. }
  373. }
  374. },
  375. created() {
  376. this.getSuperFieldList();
  377. this.loadData()
  378. },
  379. computed: {
  380. // importExcelUrl: function(){
  381. // return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
  382. // },
  383. },
  384. methods: {
  385. loadData() {
  386. this.loading = true;
  387. getAction(this.url.list, {taskno: this.taskno}).then((res) => {
  388. console.log(res)
  389. this.dataSource = res
  390. }).finally(() => {
  391. this.loading = false
  392. })
  393. },
  394. initDictConfig(){
  395. },
  396. getSuperFieldList(){
  397. let fieldList=[];
  398. fieldList.push({type:'string',value:'cpxh',text:'产品型号.',dictCode:''})
  399. fieldList.push({type:'BigDecimal',value:'dfk',text:'待付款(元).',dictCode:''})
  400. fieldList.push({type:'BigDecimal',value:'dkp',text:'待开票(元).',dictCode:''})
  401. fieldList.push({type:'BigDecimal',value:'dk',text:'到款(元).',dictCode:''})
  402. fieldList.push({type:'string',value:'dh',text:'电话.',dictCode:''})
  403. fieldList.push({type:'string',value:'gdbh',text:'归档编号.',dictCode:''})
  404. fieldList.push({type:'date',value:'gdrq',text:'归档日期.'})
  405. fieldList.push({type:'string',value:'htbh',text:'合同编号.',dictCode:''})
  406. fieldList.push({type:'BigDecimal',value:'htfpe',text:'合同分配额.',dictCode:''})
  407. fieldList.push({type:'string',value:'htkzt',text:'合同款状态.',dictCode:''})
  408. fieldList.push({type:'string',value:'htlx',text:'合同类型.',dictCode:''})
  409. fieldList.push({type:'string',value:'htlxqk',text:'合同履行情况.',dictCode:''})
  410. fieldList.push({type:'string',value:'htmj',text:'合同密级.',dictCode:''})
  411. fieldList.push({type:'string',value:'htmc',text:'合同名称.',dictCode:''})
  412. fieldList.push({type:'string',value:'htqcr',text:'合同起草人.',dictCode:''})
  413. fieldList.push({type:'int',value:'htsl',text:'合同数量.',dictCode:''})
  414. fieldList.push({type:'int',value:'htys',text:'合同页数.',dictCode:''})
  415. fieldList.push({type:'string',value:'htzgbm',text:'合同主管部门.',dictCode:''})
  416. fieldList.push({type:'string',value:'htzt',text:'合同状态.',dictCode:''})
  417. fieldList.push({type:'string',value:'htztsm',text:'合同状态说明.',dictCode:''})
  418. fieldList.push({type:'string',value:'jf',text:'甲方(付款方).',dictCode:''})
  419. fieldList.push({type:'string',value:'jfyhjc',text:'甲方简称、用户简称.',dictCode:''})
  420. fieldList.push({type:'string',value:'jd',text:'阶段.',dictCode:''})
  421. fieldList.push({type:'BigDecimal',value:'jeskzkp',text:'金额(元)、收款总金额、开票金额.',dictCode:''})
  422. fieldList.push({type:'date',value:'kpsj',text:'开票时间.'})
  423. fieldList.push({type:'string',value:'kpzt',text:'开票状态.',dictCode:''})
  424. fieldList.push({type:'string',value:'khid',text:'客户id.',dictCode:''})
  425. fieldList.push({type:'string',value:'lxr',text:'联系人(对方).',dictCode:''})
  426. fieldList.push({type:'date',value:'qclrsqrq',text:'起草日期、录入日期、申请日期.'})
  427. fieldList.push({type:'string',value:'rwbh',text:'任务编号.',dictCode:''})
  428. fieldList.push({type:'string',value:'rwmc',text:'任务名称.',dictCode:''})
  429. fieldList.push({type:'int',value:'sjly',text:'数据来源:10:合同管理,20:合同任务,30:任务合同,40:合同付款,50:合同发票,60:外协合同.',dictCode:''})
  430. fieldList.push({type:'string',value:'ssxh',text:'所属型号.',dictCode:''})
  431. fieldList.push({type:'string',value:'xmmj',text:'项目密级.',dictCode:''})
  432. fieldList.push({type:'string',value:'xh',text:'序号.',dictCode:''})
  433. fieldList.push({type:'string',value:'yzbm',text:'研制部门.',dictCode:''})
  434. fieldList.push({type:'string',value:'ywy',text:'业务员.',dictCode:''})
  435. fieldList.push({type:'string',value:'yf',text:'乙方(收款方).',dictCode:''})
  436. fieldList.push({type:'BigDecimal',value:'ykp',text:'已开票(元).',dictCode:''})
  437. fieldList.push({type:'BigDecimal',value:'ysk',text:'已收款.',dictCode:''})
  438. fieldList.push({type:'string',value:'yhid',text:'用户id.',dictCode:''})
  439. fieldList.push({type:'string',value:'zgsjs',text:'主管设计师.',dictCode:''})
  440. fieldList.push({type:'string',value:'zzbm',text:'抓总部门.',dictCode:''})
  441. fieldList.push({type:'BigDecimal',value:'zc',text:'自筹(元).',dictCode:''})
  442. fieldList.push({type:'string',value:'pici',text:'类型(无用).',dictCode:''})
  443. this.superFieldList = fieldList
  444. }
  445. }
  446. }
  447. </script>
  448. <style scoped>
  449. @import '~@assets/less/common.less';
  450. </style>
  451. <style lang="less" scoped>
  452. .u-dialog-card{
  453. /deep/.ant-card-body{
  454. padding: 0 !important;
  455. }
  456. }
  457. </style>