book-list.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643
  1. <template>
  2. <!-- 预托书列表 -->
  3. <div id="preBookList">
  4. <!-- 查询区域 -->
  5. <a-card :bordered="false">
  6. <div class="table-page-search-wrapper">
  7. <a-form layout="inline" @keyup.enter.native="searchQuery">
  8. <a-row :gutter="24">
  9. <a-col :md="5" :sm="8">
  10. <a-form-item label="订单号">
  11. <a-input placeholder="请输入订单号" v-model="queryParam.orderNumber"></a-input>
  12. </a-form-item>
  13. </a-col>
  14. <a-col :md="5" :sm="8">
  15. <a-form-item label="托书号">
  16. <a-input placeholder="请输入托书号" v-model="queryParam.shippingOrderNumber"></a-input>
  17. </a-form-item>
  18. </a-col>
  19. <a-col :md="5" :sm="8">
  20. <a-form-item label="客户简称">
  21. <!-- <a-input placeholder="请输入客户简称" v-model="queryParam.clientAbbreviation"></a-input> -->
  22. <j-search-select-tag
  23. placeholder="请选择客户简称"
  24. v-model="queryParam.clientAbbreviation"
  25. dict="view_customer,customername,customername">
  26. </j-search-select-tag>
  27. </a-form-item>
  28. </a-col>
  29. <a-col :md="5" :sm="8">
  30. <a-form-model-item label="类型">
  31. <a-select v-model="queryParam.type">
  32. <a-select-option value="成衣">成衣</a-select-option>
  33. <a-select-option value="面辅料">面辅料</a-select-option>
  34. </a-select>
  35. </a-form-model-item>
  36. </a-col>
  37. <template v-if="toggleSearchStatus">
  38. <a-col :md="4" :sm="8">
  39. <a-form-item label="账套号">
  40. <j-search-select-tag
  41. placeholder="请选择账套号"
  42. v-model="queryParam.pkOrg"
  43. dict="view_account,account,account">
  44. </j-search-select-tag>
  45. </a-form-item>
  46. </a-col>
  47. <!-- <a-col :md="6" :sm="8">
  48. <a-form-item label="箱号">
  49. <a-input placeholder="请输入箱号" v-model="queryParam.containerNumber"></a-input>
  50. </a-form-item>
  51. </a-col> -->
  52. <a-col :md="5" :sm="8">
  53. <a-form-item label="小po号">
  54. <a-input placeholder="请输入小po号" v-model="queryParam.smailPo"></a-input>
  55. </a-form-item>
  56. </a-col>
  57. <a-col :md="5" :sm="8">
  58. <a-form-item label="单据日期" has-feedback>
  59. <a-date-picker style="width: 100%" v-model="queryParam.shippingOrderDate" @change="orderDataChange" > </a-date-picker>
  60. </a-form-item>
  61. </a-col>
  62. <a-col :md="5" :sm="8">
  63. <a-form-item label="外销发票">
  64. <a-input placeholder="请输入外销发票" v-model="queryParam.exportInvoiceNo"></a-input>
  65. </a-form-item>
  66. </a-col>
  67. </template>
  68. <a-col :md="4" :sm="8">
  69. <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
  70. <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
  71. <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
  72. <a @click="handleToggleSearch" style="margin-left: 8px">
  73. {{ toggleSearchStatus ? '收起' : '展开' }}
  74. <a-icon :type="toggleSearchStatus ? 'up' : 'down'" />
  75. </a>
  76. </span>
  77. </a-col>
  78. </a-row>
  79. </a-form>
  80. </div>
  81. </a-card>
  82. <!-- 操作按钮区域 新增-->
  83. <a-card :bordered="false" style="marginTop:10px;">
  84. <div class="table-operator">
  85. <a-button type="primary" @click="addBookDrawer" icon="plus">新增</a-button>
  86. <a-button type="primary" @click="batchSubmit()" icon="plus">批量提交</a-button>
  87. <a-button type="primary" @click="batchCanaleSubmit()" icon="plus">批量取消提交</a-button>
  88. </div>
  89. <!-- 子表 -->
  90. <a-table
  91. bordered
  92. :columns="bookListColumns"
  93. :data-source="bookListData"
  94. :loading="loading"
  95. :scroll="{x: 1200 , y: 600 }"
  96. :pagination="pagination"
  97. :row-key="record => record.id"
  98. :rowSelection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
  99. @change="handleTableChange"
  100. >
  101. <!-- 金额 输入框
  102. <template slot="money" slot-scope="text, record, index">
  103. <a-form-model-item prop="money" :rules="rules.money" required>
  104. <a-input style="width:100%" type="text" v-model="record.money" />
  105. </a-form-model-item>
  106. </template> -->
  107. <!-- 单据状态 -->
  108. <span slot="documentStateSlot" slot-scope="text, record">
  109. <a-tag color="orange" v-if="record.theDocumentsState == '0'">未提交</a-tag>
  110. <a-tag color="green" v-if="record.theDocumentsState == '1'">提交</a-tag>
  111. </span>
  112. <!-- 推送状态 -->
  113. <span slot="syStuta" slot-scope="text, record">
  114. <a-tag color="orange" v-if="record.syStuta == '0'">未推送</a-tag>
  115. <a-tag color="green" v-if="record.syStuta == '1'">已推送</a-tag>
  116. </span>
  117. <!-- if 已提交 -->
  118. <!-- <span slot="documentStateSlot">
  119. <a-tag color="#2db7f5">已提交</a-tag>
  120. </span> -->
  121. <!-- 操作 -->
  122. <span slot="operationSlot" slot-scope="text, record">
  123. <a @click="handleExportXls(record)" style="color:green;">{{record.isAhaa}}-结汇发票打印</a>
  124. <a-divider type="vertical" />
  125. <a-dropdown>
  126. <a class="ant-dropdown-link">更多 <a-icon type="down"/></a>
  127. <a-menu slot="overlay" v-if="record.theDocumentsState == '0'">
  128. <!-- <a-menu-item><a @click="submit(record)">提交</a></a-menu-item> -->
  129. <a-menu-item><a @click="edit(record,'2')">详情</a></a-menu-item>
  130. <a-menu-item><a @click="edit(record,'1')">编辑</a></a-menu-item>
  131. <a-menu-item v-if="record.readyFabric=='辅料'"><a @click="copyForm(record)">复制</a></a-menu-item>
  132. <!-- <a-menu-item ><a @click="pushU8(record)">推送u8</a></a-menu-item> -->
  133. <!-- <a-menu-item><a @click="print(record)">打印</a></a-menu-item> -->
  134. <a-menu-item>
  135. <a-popconfirm title="确定删除吗?" ok-text="是" cancel-text="否" @confirm="handleDelete(record.id)">
  136. <a href="javascript:void(0);" style="color:red;">删除</a>
  137. </a-popconfirm></a-menu-item
  138. >
  139. </a-menu>
  140. <a-menu slot="overlay" v-if="record.theDocumentsState == '1'">
  141. <!-- <a-menu-item><a @click="canaleSubmit(record)">取消提交</a></a-menu-item> -->
  142. <a-menu-item><a @click="edit(record,'2')">详情</a></a-menu-item>
  143. <a-menu-item v-if="record.readyFabric=='辅料'"><a @click="copyForm(record)">复制</a></a-menu-item>
  144. <a-menu-item ><a @click="pushU8(record)" >推送u8</a></a-menu-item>
  145. <a-menu-item ><a @click="pushPackLst(record)" >推送装箱单发票</a></a-menu-item>
  146. </a-menu>
  147. </a-dropdown>
  148. </span>
  149. </a-table>
  150. <span style="position: absolute;bottom: 9%;">共勾选{{selectedNumber}}条数</span>
  151. </a-card>
  152. <!-- 抽屉 -->
  153. <addBook-drawer ref="addBookDrawer" @ok="modalFormOk" @back="getBookList"></addBook-drawer>
  154. <detailsBook-drawer ref="detailsBookDrawer" @ok="modalFormOk"></detailsBook-drawer>
  155. <!-- <editBook-drawer ref="editBookDrawer" :father="cc" @ok="modalFormOk"></editBook-drawer> -->
  156. </div>
  157. </template>
  158. <script>
  159. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  160. import JEllipsis from '@/components/jeecg/JEllipsis'
  161. import moment from 'moment'
  162. import { downFile } from '@/api/manage'
  163. import addBookDrawer from '@views/book/addBookDrawer.vue'
  164. import detailsBookDrawer from '@views/book/detailsBookDrawer.vue'
  165. import editBookDrawer from '@views/book/editBookDrawer.vue'
  166. import {bookList,bookListId,submitPackingList,deletePackingList,settlement,pushU8,pushPackeList} from '@api/document/book.js'
  167. export default {
  168. name: 'BookList', // 托书列表
  169. mixins: [JeecgListMixin],
  170. components: { JEllipsis, moment, addBookDrawer, detailsBookDrawer, editBookDrawer },
  171. data() {
  172. let ellipsis = (v, l = 20) => <j-ellipsis value={v} length={l} />
  173. return {
  174. // 表头
  175. bookListColumns: [
  176. { title: '托书号', width: 150, dataIndex: 'shippingOrderNumber', className: 'replacecolor' , ellipsis: true,fixed: 'left'},
  177. { title: '成衣工厂', width: 150, dataIndex: 'garmentFactory', className: 'replacecolor', ellipsis: true, },
  178. { title: '客户简称', dataIndex: 'clientAbbreviation', width: 120, className: 'replacecolor' , ellipsis: true,},
  179. {
  180. title: '分销点',
  181. dataIndex: 'distributionPoint',
  182. width: 120,
  183. ellipsis: true,
  184. className: 'replacecolor'
  185. },
  186. {
  187. title: '经营单位',
  188. dataIndex: 'unitInOperation',
  189. width: 160,
  190. ellipsis: true,
  191. className: 'replacecolor'
  192. },
  193. { title: '总箱数', dataIndex: 'boxNumber', width: 80, className: 'replacecolor', ellipsis: true, },
  194. { title: '总毛重', dataIndex: 'totalGrossWeight', width: 80, className: 'replacecolor', ellipsis: true, },
  195. { title: '总体积', dataIndex: 'totalVolume', width: 80, className: 'replacecolor', ellipsis: true, },
  196. {
  197. title: '金额',
  198. dataIndex: 'money',
  199. // scopedSlots: { customRender: 'money' },
  200. width: 100,
  201. ellipsis: true,
  202. className: 'replacecolor'
  203. },
  204. {
  205. title: '实际船期',
  206. dataIndex: 'theFinalShippingDate',
  207. ellipsis: true,
  208. width: 110,
  209. // customRender: text => { 有问题 显示当日日期
  210. // return moment(text).format('YYYY-MM-DD')
  211. // },
  212. className: 'replacecolor'
  213. },
  214. { title: '外销发票号码', dataIndex: 'exportInvoiceNo', width: 120, className: 'replacecolor', ellipsis: true, },
  215. {
  216. title: '状态',
  217. dataIndex: 'theDocumentsState',
  218. scopedSlots: { customRender: 'documentStateSlot' },
  219. width: 95,
  220. ellipsis: true,
  221. fixed: 'right',
  222. className: 'replacecolor'
  223. },
  224. // { title: '收汇方式', dataIndex: 'exchangeEarningsValue', width: 120, className: 'replacecolor' },
  225. // {
  226. // title: '收货人',
  227. // dataIndex: 'consignee',
  228. // width: 100,
  229. // customRender: t => ellipsis(t),
  230. // className: 'replacecolor'
  231. // },
  232. // {
  233. // title: '提单或承运收据',
  234. // dataIndex: 'billOfLadingOrCarriageReceipt',
  235. // width: 140,
  236. // customRender: t => ellipsis(t),
  237. // className: 'replacecolor'
  238. // },
  239. // {
  240. // title: '抬头人',
  241. // dataIndex: 'addressee',
  242. // width: 120,
  243. // customRender: t => ellipsis(t),
  244. // className: 'replacecolor'
  245. // },
  246. // { title: '贸易国别', dataIndex: 'tradeCountry', width: 100, className: 'replacecolor' },
  247. // { title: '运抵国别', dataIndex: 'arriveInCountry', width: 100, className: 'replacecolor' },
  248. // { title: '出口口岸', dataIndex: 'exportPort', width: 100, className: 'replacecolor' },
  249. // {
  250. // title: '通知人',
  251. // dataIndex: 'notifier',
  252. // width: 100,
  253. // customRender: t => ellipsis(t),
  254. // className: 'replacecolor'
  255. // },
  256. // { title: 'NOTIFY', dataIndex: 'nottfy', width: 150, className: 'replacecolor' },
  257. // { title: '目的港', dataIndex: 'destinationPort', width: 100, className: 'replacecolor' },
  258. // { title: '装运期限', dataIndex: 'latestDateOfShipment', width: 100, className: 'replacecolor' },
  259. {
  260. title: '推送状态',
  261. dataIndex: 'syStuta',
  262. width: 90,
  263. scopedSlots: { customRender: 'syStuta' },
  264. fixed: 'right',
  265. className: 'replacecolor'
  266. },
  267. {
  268. title: '操作',
  269. dataIndex: 'operation',
  270. scopedSlots: { customRender: 'operationSlot' },
  271. width: 220,
  272. fixed: 'right',
  273. className: 'replacecolor'
  274. }
  275. ],
  276. bookListData: [],
  277. id: '',
  278. selectedRowKeys:[],//选中行id
  279. loading: false, // 表格加载
  280. pagination:{
  281. pageSizeOptions: ["50", "100", "150"],
  282. showSizeChanger: true,
  283. },
  284. selectedNumber:0,//已选择条数
  285. // 查询条件
  286. queryParam: {
  287. pageNo:'',
  288. pageSize:'50',
  289. type:'成衣'
  290. }
  291. }
  292. },
  293. created() {
  294. this.getBookList( )
  295. },
  296. watch:{
  297. selectedRowKeys(newVal){
  298. this.selectedNumber =newVal.length
  299. }
  300. },
  301. methods: {
  302. moment,
  303. //获取表格数据
  304. getBookList(){
  305. this.$nextTick(() => {
  306. // this.queryParam.pageSize = 50
  307. this.loading = true
  308. bookList(this.queryParam).then(res => {
  309. this.loading = false
  310. if (res.success) {
  311. this.bookListData = res.result.records
  312. this.selectedRowKeys = []
  313. this.pagination = {
  314. total: res.result.total,
  315. current: res.result.current,
  316. pageSize: res.result.size
  317. }
  318. }else {
  319. this.$message.error(res.message);
  320. }
  321. })
  322. })
  323. },
  324. // 查询按钮
  325. searchQuery() {
  326. this.toggleSearchStatus = false
  327. this.queryParam.pageNo = ''
  328. if(this.queryParam.type==''||!this.queryParam.type){
  329. this.$message.error('请选择类型');
  330. }else{
  331. this.getBookList()
  332. }
  333. // this.getpreBookList() // 渲染渲染预托书
  334. },
  335. // 重置
  336. searchReset() {
  337. this.queryParam = {
  338. pageNo:'',
  339. pageSize:this.pagination.pageSize
  340. }
  341. this.getBookList()
  342. // this.getpreBookList()
  343. },
  344. // 新增
  345. addBookDrawer() {
  346. console.log('新增托书')
  347. this.$refs.addBookDrawer.visible = true
  348. this.$refs.addBookDrawer.query ='1'
  349. },
  350. // -----------------------------------
  351. // 结汇发票打印
  352. handleExportXls(record) {
  353. if(record.isAhaa == '国内'){
  354. if(record.readyFabric=='成衣'){
  355. var exinvoiceArr = ["-报关资料","-结汇发票"]
  356. }else{
  357. var exinvoiceArr = ["-报关资料"]
  358. }
  359. }else{//
  360. var exinvoiceArr = ["国外-报关信息-装箱单","国外-报关信息-发票","国外-报关信息-托书","-结汇发票"]
  361. }
  362. exinvoiceArr.map(item =>{
  363. downFile('/syShippingOrder/syShippingOrder/syShippingOrderPrint',{id:record.id,testName:item,isAhaa:record.isAhaa}).then(data => {
  364. if (!data) {
  365. this.$message.warning('文件下载失败')
  366. return
  367. }
  368. if (typeof window.navigator.msSaveBlob !== 'undefined') {
  369. window.navigator.msSaveBlob(new Blob([data], { type: 'application/vnd.ms-excel' }), item + '.xlsx')
  370. } else {
  371. let url = window.URL.createObjectURL(new Blob([data], { type: 'application/vnd.ms-excel' }))
  372. let link = document.createElement('a')
  373. link.style.display = 'none'
  374. link.href = url
  375. link.setAttribute('download', record.shippingOrderNumber+item + '.xlsx')
  376. document.body.appendChild(link)
  377. link.click()
  378. document.body.removeChild(link) // 下载完成移除元素
  379. window.URL.revokeObjectURL(url) // 释放掉blob对象
  380. }
  381. })
  382. })
  383. },
  384. // 上传附件
  385. accessoryUpload() {},
  386. // 操作 提交
  387. submit(record) {
  388. this.$nextTick(() => {
  389. submitPackingList({ id: record.id, type: '1' }).then(res => {
  390. if (res.success) {
  391. // record.theDocumentsState = '1'
  392. this.getBookList()
  393. this.$message.success('提交成功')
  394. }else {
  395. this.$message.error(res.message);
  396. }
  397. })
  398. })
  399. },
  400. // //批量提交
  401. batchSubmit(){
  402. this.$nextTick(() => {
  403. submitPackingList({ ids: this.selectedRowKeys, type: '1'}).then(res => {
  404. if (res.success) {
  405. // record.theDocumentsState = '1'
  406. this.getBookList()
  407. this.$message.success('提交成功')
  408. this.selectedRowKeys = []
  409. }else {
  410. this.$message.error(res.message);
  411. }
  412. })
  413. })
  414. },
  415. //取消提交
  416. canaleSubmit(record) {
  417. this.$nextTick(() => {
  418. submitPackingList({ id: record.id, type: '2' }).then(res => {
  419. if (res.success) {
  420. this.$message.success('取消提交成功')
  421. record.theDocumentsState = '0'
  422. this.getBookList()
  423. }else {
  424. this.$message.error(res.message);
  425. }
  426. })
  427. })
  428. },
  429. batchCanaleSubmit(){
  430. this.$nextTick(() => {
  431. submitPackingList({ ids: this.selectedRowKeys, type: '2' }).then(res => {
  432. if (res.success) {
  433. this.$message.success('取消提交成功')
  434. // record.theDocumentsState = '0'
  435. this.getBookList()
  436. this.selectedRowKeys = []
  437. }else {
  438. this.$message.error(res.message);
  439. }
  440. })
  441. })
  442. },
  443. //推送U8
  444. pushU8(record){
  445. pushU8({ id: record.id}).then(res => {
  446. if (res.success) {
  447. this.$message.success('推送U8成功')
  448. // record.theDocumentsState = '0'
  449. this.getBookList()
  450. }else {
  451. this.$message.error(res.message);
  452. }
  453. })
  454. },
  455. pushPackLst(record){
  456. pushPackeList({ id: record.id}).then(res => {
  457. if (res.success) {
  458. this.$message.success('推送装箱单发票成功')
  459. // record.theDocumentsState = '0'
  460. this.getBookList()
  461. }else {
  462. this.$message.error(res.message);
  463. }
  464. })
  465. },
  466. // 操作 详情
  467. details(record) {
  468. this.$refs.detailsBookDrawer.visible = true
  469. },
  470. // 操作 编辑
  471. edit(record,pattern) {
  472. this.$nextTick(() => {
  473. bookListId({id:record.id,type:this.queryParam.type}).then(res => {
  474. if (res.success) {
  475. var data =res.result
  476. if(pattern == '1'){
  477. this.$refs.addBookDrawer.visible = true
  478. this.$refs.addBookDrawer.defaultMethod = 'edit'
  479. if(data.latestDateOfShipment!==''&&data.latestDateOfShipment){
  480. data.latestDateOfShipment = (moment(data.latestDateOfShipment)).format('YYYY-MM-DD')
  481. }
  482. this.$refs.addBookDrawer.getFreightForwarder(data.syShippingOrderItemList[0].pkOrg)
  483. this.$refs.addBookDrawer.addBook = data
  484. this.$refs.addBookDrawer.addBookData = data.syShippingOrderItemList
  485. this.$refs.addBookDrawer.addBookData.map(item =>{
  486. item.smallPo = item.smailPo
  487. item.itemNumber = item.styleNumber
  488. // item.volume = item.volume
  489. item.price = item.unitPrice
  490. item.englishProductName = item.englishName
  491. })
  492. if(data.rmbList.length == 0){
  493. data.rmbList = [{}]
  494. }
  495. if(data.usdList.length == 0){
  496. data.usdList = [{}]
  497. }
  498. this.$refs.addBookDrawer.rmbList = data.rmbList
  499. this.$refs.addBookDrawer.usdList = data.usdList
  500. }else {
  501. this.$refs.detailsBookDrawer.visible = true
  502. if(data.latestDateOfShipment!==''&&data.latestDateOfShipment){
  503. data.latestDateOfShipment = (moment(data.latestDateOfShipment)).format('YYYY-MM-DD')
  504. }
  505. this.$refs.detailsBookDrawer.addBook = data
  506. this.$refs.detailsBookDrawer.addBookData = data.syShippingOrderItemList
  507. this.$refs.detailsBookDrawer.rmbList = data.rmbList
  508. this.$refs.detailsBookDrawer.usdList = data.usdList
  509. if(data.syStuta == 0){
  510. this.$refs.detailsBookDrawer.disabled = false
  511. }
  512. }
  513. this.$refs.addBookDrawer.query = '1'
  514. }else {
  515. this.$message.error(res.message);
  516. }
  517. })
  518. })
  519. },
  520. //辅料 - 复制
  521. copyForm(record){
  522. bookListId({id:record.id,type:this.queryParam.type}).then(res => {
  523. if (res.success) {
  524. var data =res.result
  525. this.$refs.addBookDrawer.visible = true
  526. this.$refs.addBookDrawer.defaultMethod = 'edit'
  527. if(data.latestDateOfShipment!==''&&data.latestDateOfShipment){
  528. data.latestDateOfShipment = (moment(data.latestDateOfShipment)).format('YYYY-MM-DD')
  529. }
  530. this.$refs.addBookDrawer.addBook = data
  531. }
  532. })
  533. },
  534. // 操作 打印
  535. print(record) {},
  536. // 操作 删除
  537. handleDelete(id) {
  538. this.$nextTick(() => {
  539. if(this.queryParam.pageNo > 1 && this.bookListData.length === 1){
  540. this.queryParam.pageNo = this.queryParam.pageNo -1
  541. }
  542. this.loading = true
  543. deletePackingList({id:id}).then(res => {
  544. this.loading = false
  545. if (res.success) {
  546. this.getBookList()
  547. }else {
  548. this.$message.error(res.message);
  549. }
  550. })
  551. })
  552. },
  553. // 单据日期发生改变时
  554. orderDataChange(){
  555. this.queryParam.shippingOrderDate = (moment( this.queryParam.shippingOrderDate)).format('YYYY-MM-DD')
  556. },
  557. // // 分页、排序、筛选变化时触发
  558. handleTableChange(pagination, filters, sorter) {
  559. // console.log('当前页信息>>>>',pagination)
  560. this.queryParam.pageNo = pagination.current
  561. this.queryParam.pageSize = pagination.pageSize
  562. this.getBookList()
  563. },
  564. // 选中行
  565. onSelectChange(keys) {
  566. this.selectedRowKeys = keys
  567. }
  568. },
  569. computed: {},
  570. mounted() {}
  571. }
  572. </script>
  573. <style lang="less" scoped>
  574. @import '~@assets/less/common.less';
  575. @import '~@assets/less/overwriter.less';
  576. /deep/ .ant-table-thead > tr > th {
  577. text-align: center;
  578. // font-weight: 700;
  579. }
  580. /deep/ .ant-table-tbody {
  581. text-align: center;
  582. }
  583. /deep/ .ant-table-tbody .ant-table-row td{
  584. padding-top: 8px;
  585. padding-bottom: 8px;
  586. }
  587. /deep/.ant-card-body{
  588. padding-top: 10px !important;
  589. padding-bottom: 0px !important;
  590. }
  591. /deep/.table-operator .ant-btn{
  592. margin: 0 8px 3px 0;
  593. }
  594. /deep/.table-page-search-wrapper .ant-form-inline .ant-form-item{
  595. margin-bottom: 10px;
  596. }
  597. /deep/.table-page-search-wrapper .table-page-search-submitButtons{
  598. margin-bottom: 10px;
  599. }
  600. // /deep/ th.replacecolor {
  601. // background-color: #ccc;
  602. // }
  603. /deep/ .ant-table-fixed-left table,.ant-table-fixed-right table{
  604. width: min-content;
  605. }
  606. /deep/ thead.ant-table-thead>tr{
  607. height: 0 !important;
  608. }
  609. /deep/ .ant-table-thead > tr > th, .ant-table-tbody > tr > td{
  610. padding: 9px 16px
  611. }
  612. </style>