book-list.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629
  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>
  146. </a-dropdown>
  147. </span>
  148. </a-table>
  149. <span style="position: absolute;bottom: 9%;">共勾选{{selectedNumber}}条数</span>
  150. </a-card>
  151. <!-- 抽屉 -->
  152. <addBook-drawer ref="addBookDrawer" @ok="modalFormOk" @back="getBookList"></addBook-drawer>
  153. <detailsBook-drawer ref="detailsBookDrawer" @ok="modalFormOk"></detailsBook-drawer>
  154. <!-- <editBook-drawer ref="editBookDrawer" :father="cc" @ok="modalFormOk"></editBook-drawer> -->
  155. </div>
  156. </template>
  157. <script>
  158. import { JeecgListMixin } from '@/mixins/JeecgListMixin'
  159. import JEllipsis from '@/components/jeecg/JEllipsis'
  160. import moment from 'moment'
  161. import { downFile } from '@/api/manage'
  162. import addBookDrawer from '@views/book/addBookDrawer.vue'
  163. import detailsBookDrawer from '@views/book/detailsBookDrawer.vue'
  164. import editBookDrawer from '@views/book/editBookDrawer.vue'
  165. import {bookList,bookListId,submitPackingList,deletePackingList,settlement,pushU8} from '@api/document/book.js'
  166. export default {
  167. name: 'BookList', // 托书列表
  168. mixins: [JeecgListMixin],
  169. components: { JEllipsis, moment, addBookDrawer, detailsBookDrawer, editBookDrawer },
  170. data() {
  171. let ellipsis = (v, l = 20) => <j-ellipsis value={v} length={l} />
  172. return {
  173. // 表头
  174. bookListColumns: [
  175. { title: '托书号', width: 150, dataIndex: 'shippingOrderNumber', className: 'replacecolor' , ellipsis: true,fixed: 'left'},
  176. { title: '成衣工厂', width: 150, dataIndex: 'garmentFactory', className: 'replacecolor', ellipsis: true, },
  177. { title: '客户简称', dataIndex: 'clientAbbreviation', width: 120, className: 'replacecolor' , ellipsis: true,},
  178. {
  179. title: '分销点',
  180. dataIndex: 'distributionPoint',
  181. width: 120,
  182. ellipsis: true,
  183. className: 'replacecolor'
  184. },
  185. {
  186. title: '经营单位',
  187. dataIndex: 'unitInOperation',
  188. width: 160,
  189. ellipsis: true,
  190. className: 'replacecolor'
  191. },
  192. { title: '总箱数', dataIndex: 'boxNumber', width: 80, className: 'replacecolor', ellipsis: true, },
  193. { title: '总毛重', dataIndex: 'totalGrossWeight', width: 80, className: 'replacecolor', ellipsis: true, },
  194. { title: '总体积', dataIndex: 'totalVolume', width: 80, className: 'replacecolor', ellipsis: true, },
  195. {
  196. title: '金额',
  197. dataIndex: 'money',
  198. // scopedSlots: { customRender: 'money' },
  199. width: 100,
  200. ellipsis: true,
  201. className: 'replacecolor'
  202. },
  203. {
  204. title: '实际船期',
  205. dataIndex: 'theFinalShippingDate',
  206. ellipsis: true,
  207. width: 110,
  208. // customRender: text => { 有问题 显示当日日期
  209. // return moment(text).format('YYYY-MM-DD')
  210. // },
  211. className: 'replacecolor'
  212. },
  213. { title: '外销发票号码', dataIndex: 'exportInvoiceNo', width: 120, className: 'replacecolor', ellipsis: true, },
  214. {
  215. title: '状态',
  216. dataIndex: 'theDocumentsState',
  217. scopedSlots: { customRender: 'documentStateSlot' },
  218. width: 95,
  219. ellipsis: true,
  220. fixed: 'right',
  221. className: 'replacecolor'
  222. },
  223. // { title: '收汇方式', dataIndex: 'exchangeEarningsValue', width: 120, className: 'replacecolor' },
  224. // {
  225. // title: '收货人',
  226. // dataIndex: 'consignee',
  227. // width: 100,
  228. // customRender: t => ellipsis(t),
  229. // className: 'replacecolor'
  230. // },
  231. // {
  232. // title: '提单或承运收据',
  233. // dataIndex: 'billOfLadingOrCarriageReceipt',
  234. // width: 140,
  235. // customRender: t => ellipsis(t),
  236. // className: 'replacecolor'
  237. // },
  238. // {
  239. // title: '抬头人',
  240. // dataIndex: 'addressee',
  241. // width: 120,
  242. // customRender: t => ellipsis(t),
  243. // className: 'replacecolor'
  244. // },
  245. // { title: '贸易国别', dataIndex: 'tradeCountry', width: 100, className: 'replacecolor' },
  246. // { title: '运抵国别', dataIndex: 'arriveInCountry', width: 100, className: 'replacecolor' },
  247. // { title: '出口口岸', dataIndex: 'exportPort', width: 100, className: 'replacecolor' },
  248. // {
  249. // title: '通知人',
  250. // dataIndex: 'notifier',
  251. // width: 100,
  252. // customRender: t => ellipsis(t),
  253. // className: 'replacecolor'
  254. // },
  255. // { title: 'NOTIFY', dataIndex: 'nottfy', width: 150, className: 'replacecolor' },
  256. // { title: '目的港', dataIndex: 'destinationPort', width: 100, className: 'replacecolor' },
  257. // { title: '装运期限', dataIndex: 'latestDateOfShipment', width: 100, className: 'replacecolor' },
  258. {
  259. title: '推送状态',
  260. dataIndex: 'syStuta',
  261. width: 90,
  262. scopedSlots: { customRender: 'syStuta' },
  263. fixed: 'right',
  264. className: 'replacecolor'
  265. },
  266. {
  267. title: '操作',
  268. dataIndex: 'operation',
  269. scopedSlots: { customRender: 'operationSlot' },
  270. width: 220,
  271. fixed: 'right',
  272. className: 'replacecolor'
  273. }
  274. ],
  275. bookListData: [],
  276. id: '',
  277. selectedRowKeys:[],//选中行id
  278. loading: false, // 表格加载
  279. pagination:{
  280. pageSizeOptions: ["50", "100", "150"],
  281. showSizeChanger: true,
  282. },
  283. selectedNumber:0,//已选择条数
  284. // 查询条件
  285. queryParam: {
  286. pageNo:'',
  287. pageSize:'50',
  288. type:'成衣'
  289. }
  290. }
  291. },
  292. created() {
  293. this.getBookList( )
  294. },
  295. watch:{
  296. selectedRowKeys(newVal){
  297. this.selectedNumber =newVal.length
  298. }
  299. },
  300. methods: {
  301. moment,
  302. //获取表格数据
  303. getBookList(){
  304. this.$nextTick(() => {
  305. // this.queryParam.pageSize = 50
  306. bookList(this.queryParam).then(res => {
  307. if (res.success) {
  308. this.bookListData = res.result.records
  309. this.selectedRowKeys = []
  310. this.pagination = {
  311. total: res.result.total,
  312. current: res.result.current,
  313. pageSize: res.result.size
  314. }
  315. }else {
  316. this.$message.error(res.message);
  317. }
  318. })
  319. })
  320. },
  321. // 查询按钮
  322. searchQuery() {
  323. this.toggleSearchStatus = false
  324. this.queryParam.pageNo = ''
  325. if(this.queryParam.type==''||!this.queryParam.type){
  326. this.$message.error('请选择类型');
  327. }else{
  328. this.getBookList()
  329. }
  330. // this.getpreBookList() // 渲染渲染预托书
  331. },
  332. // 重置
  333. searchReset() {
  334. this.queryParam = {
  335. pageNo:'',
  336. pageSize:this.pagination.pageSize
  337. }
  338. this.getBookList()
  339. // this.getpreBookList()
  340. },
  341. // 新增
  342. addBookDrawer() {
  343. console.log('新增托书')
  344. this.$refs.addBookDrawer.visible = true
  345. this.$refs.addBookDrawer.query ='1'
  346. },
  347. // -----------------------------------
  348. // 结汇发票打印
  349. handleExportXls(record) {
  350. if(record.isAhaa == '国内'){
  351. if(record.readyFabric=='成衣'){
  352. var exinvoiceArr = ["-报关资料","-结汇发票"]
  353. }else{
  354. var exinvoiceArr = ["-报关资料"]
  355. }
  356. }else{//
  357. var exinvoiceArr = ["国外-报关信息-装箱单","国外-报关信息-发票","国外-报关信息-托书","-结汇发票"]
  358. }
  359. exinvoiceArr.map(item =>{
  360. downFile('/syShippingOrder/syShippingOrder/syShippingOrderPrint',{id:record.id,testName:item,isAhaa:record.isAhaa}).then(data => {
  361. if (!data) {
  362. this.$message.warning('文件下载失败')
  363. return
  364. }
  365. if (typeof window.navigator.msSaveBlob !== 'undefined') {
  366. window.navigator.msSaveBlob(new Blob([data], { type: 'application/vnd.ms-excel' }), item + '.xlsx')
  367. } else {
  368. let url = window.URL.createObjectURL(new Blob([data], { type: 'application/vnd.ms-excel' }))
  369. let link = document.createElement('a')
  370. link.style.display = 'none'
  371. link.href = url
  372. link.setAttribute('download', record.shippingOrderNumber+item + '.xlsx')
  373. document.body.appendChild(link)
  374. link.click()
  375. document.body.removeChild(link) // 下载完成移除元素
  376. window.URL.revokeObjectURL(url) // 释放掉blob对象
  377. }
  378. })
  379. })
  380. },
  381. // 上传附件
  382. accessoryUpload() {},
  383. // 操作 提交
  384. submit(record) {
  385. this.$nextTick(() => {
  386. submitPackingList({ id: record.id, type: '1' }).then(res => {
  387. if (res.success) {
  388. // record.theDocumentsState = '1'
  389. this.getBookList()
  390. this.$message.success('提交成功')
  391. }else {
  392. this.$message.error(res.message);
  393. }
  394. })
  395. })
  396. },
  397. // //批量提交
  398. batchSubmit(){
  399. this.$nextTick(() => {
  400. submitPackingList({ ids: this.selectedRowKeys, type: '1'}).then(res => {
  401. if (res.success) {
  402. // record.theDocumentsState = '1'
  403. this.getBookList()
  404. this.$message.success('提交成功')
  405. this.selectedRowKeys = []
  406. }else {
  407. this.$message.error(res.message);
  408. }
  409. })
  410. })
  411. },
  412. //取消提交
  413. canaleSubmit(record) {
  414. this.$nextTick(() => {
  415. submitPackingList({ id: record.id, type: '2' }).then(res => {
  416. if (res.success) {
  417. this.$message.success('取消提交成功')
  418. record.theDocumentsState = '0'
  419. this.getBookList()
  420. }else {
  421. this.$message.error(res.message);
  422. }
  423. })
  424. })
  425. },
  426. batchCanaleSubmit(){
  427. this.$nextTick(() => {
  428. submitPackingList({ ids: this.selectedRowKeys, type: '2' }).then(res => {
  429. if (res.success) {
  430. this.$message.success('取消提交成功')
  431. // record.theDocumentsState = '0'
  432. this.getBookList()
  433. this.selectedRowKeys = []
  434. }else {
  435. this.$message.error(res.message);
  436. }
  437. })
  438. })
  439. },
  440. //推送U8
  441. pushU8(record){
  442. pushU8({ id: record.id}).then(res => {
  443. if (res.success) {
  444. this.$message.success('推送U8成功')
  445. // record.theDocumentsState = '0'
  446. this.getBookList()
  447. }else {
  448. this.$message.error(res.message);
  449. }
  450. })
  451. },
  452. // 操作 详情
  453. details(record) {
  454. this.$refs.detailsBookDrawer.visible = true
  455. },
  456. // 操作 编辑
  457. edit(record,pattern) {
  458. this.$nextTick(() => {
  459. bookListId({id:record.id,type:this.queryParam.type}).then(res => {
  460. if (res.success) {
  461. var data =res.result
  462. if(pattern == '1'){
  463. this.$refs.addBookDrawer.visible = true
  464. this.$refs.addBookDrawer.defaultMethod = 'edit'
  465. if(data.latestDateOfShipment!==''&&data.latestDateOfShipment){
  466. data.latestDateOfShipment = (moment(data.latestDateOfShipment)).format('YYYY-MM-DD')
  467. }
  468. this.$refs.addBookDrawer.getFreightForwarder(data.syShippingOrderItemList[0].pkOrg)
  469. this.$refs.addBookDrawer.addBook = data
  470. this.$refs.addBookDrawer.addBookData = data.syShippingOrderItemList
  471. this.$refs.addBookDrawer.addBookData.map(item =>{
  472. item.smallPo = item.smailPo
  473. item.itemNumber = item.styleNumber
  474. // item.volume = item.volume
  475. item.price = item.unitPrice
  476. item.englishProductName = item.englishName
  477. })
  478. if(data.rmbList.length == 0){
  479. data.rmbList = [{}]
  480. }
  481. if(data.usdList.length == 0){
  482. data.usdList = [{}]
  483. }
  484. this.$refs.addBookDrawer.rmbList = data.rmbList
  485. this.$refs.addBookDrawer.usdList = data.usdList
  486. }else {
  487. this.$refs.detailsBookDrawer.visible = true
  488. if(data.latestDateOfShipment!==''&&data.latestDateOfShipment){
  489. data.latestDateOfShipment = (moment(data.latestDateOfShipment)).format('YYYY-MM-DD')
  490. }
  491. this.$refs.detailsBookDrawer.addBook = data
  492. this.$refs.detailsBookDrawer.addBookData = data.syShippingOrderItemList
  493. this.$refs.detailsBookDrawer.rmbList = data.rmbList
  494. this.$refs.detailsBookDrawer.usdList = data.usdList
  495. if(data.syStuta == 0){
  496. this.$refs.detailsBookDrawer.disabled = false
  497. }
  498. }
  499. this.$refs.addBookDrawer.query = '1'
  500. }else {
  501. this.$message.error(res.message);
  502. }
  503. })
  504. })
  505. },
  506. //辅料 - 复制
  507. copyForm(record){
  508. bookListId({id:record.id,type:this.queryParam.type}).then(res => {
  509. if (res.success) {
  510. var data =res.result
  511. this.$refs.addBookDrawer.visible = true
  512. this.$refs.addBookDrawer.defaultMethod = 'edit'
  513. if(data.latestDateOfShipment!==''&&data.latestDateOfShipment){
  514. data.latestDateOfShipment = (moment(data.latestDateOfShipment)).format('YYYY-MM-DD')
  515. }
  516. this.$refs.addBookDrawer.addBook = data
  517. }
  518. })
  519. },
  520. // 操作 打印
  521. print(record) {},
  522. // 操作 删除
  523. handleDelete(id) {
  524. this.$nextTick(() => {
  525. if(this.queryParam.pageNo > 1 && this.bookListData.length === 1){
  526. this.queryParam.pageNo = this.queryParam.pageNo -1
  527. }
  528. this.loading = true
  529. deletePackingList({id:id}).then(res => {
  530. this.loading = false
  531. if (res.success) {
  532. this.getBookList()
  533. }else {
  534. this.$message.error(res.message);
  535. }
  536. })
  537. })
  538. },
  539. // 单据日期发生改变时
  540. orderDataChange(){
  541. this.queryParam.shippingOrderDate = (moment( this.queryParam.shippingOrderDate)).format('YYYY-MM-DD')
  542. },
  543. // // 分页、排序、筛选变化时触发
  544. handleTableChange(pagination, filters, sorter) {
  545. // console.log('当前页信息>>>>',pagination)
  546. this.queryParam.pageNo = pagination.current
  547. this.queryParam.pageSize = pagination.pageSize
  548. this.getBookList()
  549. },
  550. // 选中行
  551. onSelectChange(keys) {
  552. this.selectedRowKeys = keys
  553. }
  554. },
  555. computed: {},
  556. mounted() {}
  557. }
  558. </script>
  559. <style lang="less" scoped>
  560. @import '~@assets/less/common.less';
  561. @import '~@assets/less/overwriter.less';
  562. /deep/ .ant-table-thead > tr > th {
  563. text-align: center;
  564. // font-weight: 700;
  565. }
  566. /deep/ .ant-table-tbody {
  567. text-align: center;
  568. }
  569. /deep/ .ant-table-tbody .ant-table-row td{
  570. padding-top: 8px;
  571. padding-bottom: 8px;
  572. }
  573. /deep/.ant-card-body{
  574. padding-top: 10px !important;
  575. padding-bottom: 0px !important;
  576. }
  577. /deep/.table-operator .ant-btn{
  578. margin: 0 8px 3px 0;
  579. }
  580. /deep/.table-page-search-wrapper .ant-form-inline .ant-form-item{
  581. margin-bottom: 10px;
  582. }
  583. /deep/.table-page-search-wrapper .table-page-search-submitButtons{
  584. margin-bottom: 10px;
  585. }
  586. // /deep/ th.replacecolor {
  587. // background-color: #ccc;
  588. // }
  589. /deep/ .ant-table-fixed-left table,.ant-table-fixed-right table{
  590. width: min-content;
  591. }
  592. /deep/ thead.ant-table-thead>tr{
  593. height: 0 !important;
  594. }
  595. /deep/ .ant-table-thead > tr > th, .ant-table-tbody > tr > td{
  596. padding: 9px 16px
  597. }
  598. </style>